All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.6e61897c-35.472622149827c1587209.js Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
/*! For license information please see 6e61897c-35.472622149827c1587209.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([["6e61897c-35"],{"+8FAZV0x":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("/oRevOrA");e.exports=function(e){e.each((function(e){var t=e[0].trace,n=t.error_y||{},i=t.error_x||{},o=r.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(a.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(a.stroke,i.color)}))}},"+ELfTWmT":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("yAcToaBS"),n=t("y1n3bGum"),i=t("R5um7Wku"),o=t("/oRevOrA"),l=t("n/pWmEhD"),s=t("0Ft3SWJB"),c=s.strTranslate,u=t("7k8rh0sJ"),d=t("nfwe4Djo"),f=t("kca9bvt+").LINE_SPACING,h=t("Tdks4qa7").DESELECTDIM,p=t("FAQM5QER"),g=t("swYnW0Uh"),v=t("ErV1Ibqz").appendArrayPointValue,m=e.exports={};m.font=function(e,t,r,a){s.isPlainObject(t)&&(a=t.color,r=t.size,t=t.family),t&&e.style("font-family",t),r+1&&e.style("font-size",r+"px"),a&&e.call(o.fill,a)},m.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)},m.setSize=function(e,t,r){e.attr("width",t).attr("height",r)},m.setRect=function(e,t,r,a,n){e.call(m.setPosition,t,r).call(m.setSize,a,n)},m.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),o=n.c2p(e.y);return!!(a(i)&&a(o)&&t.node())&&("text"===t.node().nodeName?t.attr("x",i).attr("y",o):t.attr("transform",c(i,o)),!0)},m.translatePoints=function(e,t,a){e.each((function(e){var n=r.select(this);m.translatePoint(e,n,t,a)}))},m.hideOutsideRangePoint=function(e,t,r,a,n,i){t.attr("display",r.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")},m.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var a=t.xaxis,n=t.yaxis;e.each((function(t){var o=t[0].trace,l=o.xcalendar,s=o.ycalendar,c=i.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each((function(e){m.hideOutsideRangePoint(e,r.select(this),a,n,l,s)}))}))}},m.crispRound=function(e,t,r){return t&&a(t)?e._context.staticPlot?t:t<1?1:Math.round(t):r||0},m.singleLineStyle=function(e,t,r,a,n){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,s=n||i.dash||"";o.stroke(t,a||i.color),m.dashLine(t,s,l)},m.lineGroupStyle=function(e,t,a,n){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,s=n||i.dash||"";r.select(this).call(o.stroke,a||i.color).call(m.dashLine,s,l)}))},m.dashLine=function(e,t,r){r=+r||0,t=m.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})},m.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=r+"px,"+r+"px":"dash"===e?e=3*r+"px,"+3*r+"px":"longdash"===e?e=5*r+"px,"+5*r+"px":"dashdot"===e?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===e&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e},m.singleFillStyle=function(e){var t=(((r.select(e.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;t&&e.call(o.fill,t)},m.fillGroupStyle=function(e){e.style("stroke-width",0).each((function(e){var t=r.select(this);e[0].trace&&t.call(o.fill,e[0].trace.fillcolor)}))};var y=t("Oq3NKwwJ");m.symbolNames=[],m.symbolFuncs=[],m.symbolNeedLines={},m.symbolNoDot={},m.symbolNoFill={},m.symbolList=[],Object.keys(y).forEach((function(e){var t=y[e],r=t.n;m.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),m.symbolNames[r]=e,m.symbolFuncs[r]=t.f,t.needLine&&(m.symbolNeedLines[r]=!0),t.noDot?m.symbolNoDot[r]=!0:m.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(m.symbolNoFill[r]=!0)}));var x=m.symbolNames.length;function b(e,t){var r=e%100;return m.symbolFuncs[r](t)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}m.symbolNumber=function(e){if(a(e))e=+e;else if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=m.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=x||e>=400?0:Math.floor(Math.max(e,0))};var _={x1:1,x2:0,y1:0,y2:0},w={x1:0,x2:0,y1:1,y2:0},k=r.format("~.1f"),A={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:_},horizontalreversed:{node:"linearGradient",attrs:_,reversed:!0},vertical:{node:"linearGradient",attrs:w},verticalreversed:{node:"linearGradient",attrs:w,reversed:!0}};m.gradient=function(e,t,a,i,l,c){for(var u=l.length,d=A[i],f=new Array(u),h=0;h"+m(e);p._gradientUrlQueryParts[y]=1},m.initGradients=function(e){var t=e._fullLayout;s.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},m.pointStyle=function(e,t,a){if(e.size()){var n=m.makePointStyleFns(t);e.each((function(e){m.singlePointStyle(e,r.select(this),t,n,a)}))}},m.singlePointStyle=function(e,t,r,a,n){var i=r.marker,l=i.line;if(t.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):void 0===e.mo?i.opacity:e.mo),a.ms2mrc){var c;c="various"===e.ms||"various"===i.size?3:a.ms2mrc(e.ms),e.mrc=c,a.selectedSizeFn&&(c=e.mrc=a.selectedSizeFn(e));var u=m.symbolNumber(e.mx||i.symbol)||0;e.om=u%200>=100,t.attr("d",b(u,c))}var d,f,h,p=!1;if(e.so)h=l.outlierwidth,f=l.outliercolor,d=i.outliercolor;else{var g=(l||{}).width;h=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,f="mlc"in e?e.mlcc=a.lineScale(e.mlc):s.isArrayOrTypedArray(l.color)?o.defaultLine:l.color,s.isArrayOrTypedArray(i.color)&&(d=o.defaultLine,p=!0),d="mc"in e?e.mcc=a.markerScale(e.mc):i.color||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)t.call(o.stroke,d).style({"stroke-width":(h||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:h)+"px");var v=i.gradient,y=e.mgt;if(y?p=!0:y=v&&v.type,Array.isArray(y)&&(y=y[0],A[y]||(y=0)),y&&"none"!==y){var x=e.mgc;x?p=!0:x=v.color;var _=r.uid;p&&(_+="-"+e.i),m.gradient(t,n,_,y,[[0,x],[1,d]],"fill")}else o.fill(t,d);h&&o.stroke(t,f)}},m.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=m.tryColorscale(r,""),t.lineScale=m.tryColorscale(r,"line"),i.traceIs(e,"symbols")&&(t.ms2mrc=p.isBubble(e)?g(e):function(){return(r.size||6)/2}),e.selectedpoints&&s.extendFlat(t,m.makeSelectedPointStyleFns(e)),t},m.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},a=e.unselected||{},n=e.marker||{},o=r.marker||{},l=a.marker||{},c=n.opacity,u=o.opacity,d=l.opacity,f=void 0!==u,p=void 0!==d;(s.isArrayOrTypedArray(c)||f||p)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?n.opacity:e.mo;return e.selected?f?u:t:p?d:h*t});var g=n.color,v=o.color,m=l.color;(v||m)&&(t.selectedColorFn=function(e){var t=e.mcc||g;return e.selected?v||t:m||t});var y=n.size,x=o.size,b=l.size,_=void 0!==x,w=void 0!==b;return i.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||y/2;return e.selected?_?x/2:t:w?b/2:t}),t},m.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=r.textfont||{},l=a.textfont||{},s=n.color,c=i.color,u=l.color;return t.selectedTextColorFn=function(e){var t=e.tc||s;return e.selected?c||t:u||(c?t:o.addOpacity(t,h))},t},m.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var a=m.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];a.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",a.selectedOpacityFn(t))})),a.selectedColorFn&&i.push((function(e,t){o.fill(e,a.selectedColorFn(t))})),a.selectedSizeFn&&i.push((function(e,t){var r=t.mx||n.symbol||0,i=a.selectedSizeFn(t);e.attr("d",b(m.symbolNumber(r),i)),t.mrc2=i})),i.length&&e.each((function(e){for(var t=r.select(this),a=0;a0?r:0}m.textPointStyle=function(e,t,a){if(e.size()){var n;if(t.selectedpoints){var i=m.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var o=t.texttemplate,l=a._fullLayout;e.each((function(e){var i=r.select(this),c=o?s.extractOption(e,t,"txt","texttemplate"):s.extractOption(e,t,"tx","text");if(c||0===c){if(o){var d=t._module.formatLabels?t._module.formatLabels(e,t,l):{},f={};v(f,t,e.i);var h=t._meta||{};c=s.texttemplateString(c,d,l._d3locale,f,e,h)}var p=e.tp||t.textposition,g=S(e,t),y=n?n(e):e.tc||t.textfont.color;i.call(m.font,e.tf||t.textfont.family,g,y).text(c).call(u.convertToTspans,a).call(M,p,g,e.mrc)}else i.remove()}))}},m.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var a=m.makeSelectedTextStyleFns(t);e.each((function(e){var n=r.select(this),i=a.selectedTextColorFn(e),l=e.tp||t.textposition,s=S(e,t);o.fill(n,i),M(n,l,s,e.mrc2||e.mrc)}))}};function L(e,t,a,n){var i=e[0]-t[0],o=e[1]-t[1],l=a[0]-t[0],s=a[1]-t[1],c=Math.pow(i*i+o*o,.25),u=Math.pow(l*l+s*s,.25),d=(u*u*i-c*c*l)*n,f=(u*u*o-c*c*s)*n,h=3*u*(c+u),p=3*c*(c+u);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)]]}m.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r,a="M"+e[0],n=[];for(r=1;r=1e4&&(m.savedBBoxes={},O=0),a&&(m.savedBBoxes[a]=v),O++,s.extendFlat({},v)},m.setClipUrl=function(e,t,r){e.attr("clip-path",I(t,r))},m.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},m.setTranslate=function(e,t,r){var a=e.attr?"attr":"getAttribute",n=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return t=t||0,r=r||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=c(t,r)).trim(),e[n]("transform",i),i},m.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},m.setScale=function(e,t,r){var a=e.attr?"attr":"getAttribute",n=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return t=t||1,r=r||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+="scale("+t+","+r+")").trim(),e[n]("transform",i),i};var F=/\s*sc.*/;m.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,e){var a=1===t&&1===r?"":"scale("+t+","+r+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(F,"");e=(e+=a).trim(),this.setAttribute("transform",e)}))}};var D=/translate\([^)]*\)\s*$/;m.setTextPointsScale=function(e,t,a){e&&e.each((function(){var e,n=r.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(D);e=1===t&&1===a?[]:[c(o,l),"scale("+t+","+a+")",c(-o,-l)],s&&e.push(s),n.attr("transform",e.join(""))}}))}},"+Hk6JDWQ":function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),a=t("/oRevOrA"),n=t("ErV1Ibqz").isUnifiedHover,i=t("4FumUcA6"),o=t("A5P9b9BX"),l=t("JEbHibKP"),s=t("zSF5pjBO"),c=t("xxu9688R"),u=t("vg6lu/AO"),d=t("6hRdzyd8"),f=t("kAv/b5aV"),h=t("nXHY852p"),p=h.id2name,g=h.name2id,v=t("Vq8+Ip3e").AX_ID_PATTERN,m=t("R5um7Wku"),y=m.traceIs,x=m.getComponentMethod;function b(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}e.exports=function(e,t,m){var _,w,k=t.autotypenumbers,A={},T={},M={},S={},L={},C={},z={},O={},P={},I={};for(_=0;_0?[0]:[]);if(l.enter().append("g").classed(u.containerClassName,!0).style("cursor","pointer"),l.exit().each((function(){r.select(this).selectAll("g."+u.headerGroupClassName).each(i)})).remove(),0!==n.length){var s=l.selectAll("g."+u.headerGroupClassName).data(n,f);s.enter().append("g").classed(u.headerGroupClassName,!0);for(var c=o.ensureSingle(l,"g",u.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),m=0;m2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var Z=!1,X=["x","y"],J=0;J1)&&(ne===ae?((pe=ie.r2fraction(t["a"+re]))<0||pe>1)&&(Z=!0):Z=!0),Y=ie._offset+ie.r2p(t[re]),ee=.5}else{var ge="domain"===he;"x"===re?(K=t[re],Y=ge?ie._offset+ie._length*K:Y=k.l+k.w*K):(K=1-t[re],Y=ge?ie._offset+ie._length*K:Y=k.t+k.h*K),ee=t.showarrow?.5:K}if(t.showarrow){fe.head=Y;var ve=t["a"+re];if(te=le*G(.5,t.xanchor)-se*G(.5,t.yanchor),ne===ae){var me=l.getRefType(ne);"domain"===me?("y"===re&&(ve=1-ve),fe.tail=ie._offset+ie._length*ve):"paper"===me?"y"===re?(ve=1-ve,fe.tail=k.t+k.h*ve):fe.tail=k.l+k.w*ve:fe.tail=ie._offset+ie.r2p(ve),Q=te}else fe.tail=Y+ve,Q=te+ve;fe.text=fe.tail+te;var ye=w["x"===re?"width":"height"];if("paper"===ae&&(fe.head=i.constrain(fe.head,1,ye-1)),"pixel"===ne){var xe=-Math.max(fe.tail-3,fe.text),be=Math.min(fe.tail+3,fe.text)-ye;xe>0?(fe.tail+=xe,fe.text+=xe):be>0&&(fe.tail-=be,fe.text-=be)}fe.tail+=de,fe.head+=de}else Q=te=ce*G(ee,ue),fe.text=Y+te;fe.text+=de,te+=de,Q+=de,t["_"+re+"padplus"]=ce/2+Q,t["_"+re+"padminus"]=ce/2-Q,t["_"+re+"size"]=ce,t["_"+re+"shift"]=te}if(Z)R.remove();else{var _e=0,we=0;if("left"!==t.align&&(_e=(T-b)*("center"===t.align?.5:1)),"top"!==t.valign&&(we=(D-_)*("middle"===t.valign?.5:1)),u)n.select("svg").attr({x:B+_e-1,y:B+we}).call(c.setClipUrl,H?C:null,e);else{var ke=B+we-p.top,Ae=B+_e-p.left;q.call(d.positionText,Ae,ke).call(c.setClipUrl,H?C:null,e)}W.select("rect").call(c.setRect,B,B,T,D),N.call(c.setRect,E/2,E/2,j-E,V-E),R.call(c.setTranslate,Math.round(z.x.text-j/2),Math.round(z.y.text-V/2)),I.attr({transform:"rotate("+O+","+z.x.text+","+z.y.text+")"});var Te,Me=function(r,n){P.selectAll(".annotation-arrow-g").remove();var l=z.x.head,u=z.y.head,d=z.x.tail+r,f=z.y.tail+n,p=z.x.text+r,b=z.y.text+n,_=i.rotationXYMatrix(O,p,b),w=i.apply2DTransform(_),T=i.apply2DTransform2(_),C=+N.attr("width"),F=+N.attr("height"),D=p-.5*C,E=D+C,j=b-.5*F,B=j+F,H=[[D,j,D,B],[D,B,E,B],[E,B,E,j],[E,j,D,j]].map(T);if(!H.reduce((function(e,t){return e^!!i.segmentsIntersect(l,u,l+1e6,u+1e6,t[0],t[1],t[2],t[3])}),!1)){H.forEach((function(e){var t=i.segmentsIntersect(d,f,l,u,e[0],e[1],e[2],e[3]);t&&(d=t.x,f=t.y)}));var W=t.arrowwidth,V=t.arrowcolor,G=t.arrowside,q=P.append("g").style({opacity:s.opacity(V)}).classed("annotation-arrow-g",!0),U=q.append("path").attr("d","M"+d+","+f+"L"+l+","+u).style("stroke-width",W+"px").call(s.stroke,s.rgb(V));if(g(U,G,t),A.annotationPosition&&U.node().parentNode&&!v){var Z=l,X=u;if(t.standoff){var J=Math.sqrt(Math.pow(l-d,2)+Math.pow(u-f,2));Z+=t.standoff*(d-l)/J,X+=t.standoff*(f-u)/J}var Y,Q,K=q.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(d-Z)+","+(f-X),transform:o(Z,X)}).style("stroke-width",W+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");h.init({element:K.node(),gd:e,prepFn:function(){var e=c.getTranslate(R);Y=e.x,Q=e.y,y&&y.autorange&&M(y._name+".autorange",!0),x&&x.autorange&&M(x._name+".autorange",!0)},moveFn:function(e,r){var a=w(Y,Q),n=a[0]+e,i=a[1]+r;R.call(c.setTranslate,n,i),S("x",m(y,e,"x",k,t)),S("y",m(x,r,"y",k,t)),t.axref===t.xref&&S("ax",m(y,e,"ax",k,t)),t.ayref===t.yref&&S("ay",m(x,r,"ay",k,t)),q.attr("transform",o(e,r)),I.attr({transform:"rotate("+O+","+n+","+i+")"})},doneFn:function(){a.call("_guiRelayout",e,L());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&Me(0,0),F)h.init({element:R.node(),gd:e,prepFn:function(){Te=I.attr("transform")},moveFn:function(e,r){var a="pointer";if(t.showarrow)t.axref===t.xref?S("ax",m(y,e,"ax",k,t)):S("ax",t.ax+e),t.ayref===t.yref?S("ay",m(x,r,"ay",k.w,t)):S("ay",t.ay+r),Me(e,r);else{if(v)return;var n,i;if(y)n=m(y,e,"x",k,t);else{var l=t._xsize/k.w,s=t.x+(t._xshift-t.xshift)/k.w-l/2;n=h.align(s+e/k.w,l,0,1,t.xanchor)}if(x)i=m(x,r,"y",k,t);else{var c=t._ysize/k.h,u=t.y-(t._yshift+t.yshift)/k.h-c/2;i=h.align(u-r/k.h,c,0,1,t.yanchor)}S("x",n),S("y",i),y&&x||(a=h.getCursor(y?.5:n,x?.5:i,t.xanchor,t.yanchor))}I.attr({transform:o(e,r)+Te}),f(R,a)},clickFn:function(r,a){t.captureevents&&e.emit("plotly_clickannotation",U(a))},doneFn:function(){f(R),a.call("_guiRelayout",e,L());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r=r/2)return e;for(var a=r-(e=e||"").length;a>0;a--)e+=" ";return e}function k(e,t){var n,i=t._context.doubleClickDelay,o=1,l=a.ensureSingle(e,"rect","legendtoggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(c.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(l.on("mousedown",(function(){(n=(new Date).getTime())-t._legendMouseDownTimei&&(o=Math.max(o-1,1)),b(t,a,e,o,r.event)}})))}function A(e,t,r,a){a._main||e.attr("data-notex",!0),u.convertToTspans(e,r,(function(){!function(e,t,r){var a=e.data()[0][0];if(r._main&&a&&!a.trace.showlegend)return void e.remove();var n=e.select("g[class*=math-group]"),i=n.node();r||(r=t._fullLayout.legend);var o,l,c=r.borderwidth,d=(a?r:r.title).font.size*p;if(i){var h=s.bBox(i);o=h.height,l=h.width,a?s.setTranslate(n,0,.25*o):s.setTranslate(n,c,.75*o+c)}else{var g=e.select(a?".legendtext":".legendtitletext"),v=u.lineCount(g),m=g.node();o=d*v,l=m?s.bBox(m).width:0;var y=d*((v-1)/2-.3);if(a){var x=r.itemwidth+2*f.itemGap;u.positionText(g,x,-y)}else u.positionText(g,f.titlePad+c,d+c)}a?(a.lineHeight=d,a.height=Math.max(o,16)+3,a.width=l):(r._titleWidth=l,r._titleHeight=o)}(t,r,a)}))}function T(e){return a.isRightAnchor(e)?"right":a.isCenterAnchor(e)?"center":"left"}function M(e){return a.isBottomAnchor(e)?"bottom":a.isMiddleAnchor(e)?"middle":"top"}e.exports=function(e,t){var o,u=e._fullLayout,d="legend"+u._uid;if(t?(o=t.layer,d+="-hover"):((t=u.legend||{})._main=!0,o=u._infolayer),o){var h;if(e._legendMouseDownTime||(e._legendMouseDownTime=0),t._main){if(!e.calcdata)return;h=u.showlegend&&m(e.calcdata,t)}else{if(!t.entries)return;h=m(t.entries,t)}var p=u.hiddenlabels||[];if(t._main&&(!u.showlegend||!h.length))return o.selectAll(".legend").remove(),u._topdefs.select("#"+d).remove(),n.autoMargin(e,"legend");var w=a.ensureSingle(o,"g","legend",(function(e){t._main&&e.attr("pointer-events","all")})),S=a.ensureSingleById(u._topdefs,"clipPath",d,(function(e){e.append("rect")})),L=a.ensureSingle(w,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));L.call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=a.ensureSingle(w,"g","scrollbox"),z=t.title;if(t._titleWidth=0,t._titleHeight=0,z.text){var O=a.ensureSingle(C,"text","legendtitletext");O.attr("text-anchor","start").call(s.font,z.font).text(z.text),A(O,C,e,t)}else C.selectAll(".legendtitletext").remove();var P=a.ensureSingle(w,"rect","scrollbar",(function(e){e.attr(f.scrollBarEnterAttrs).call(c.fill,f.scrollBarColor)})),I=C.selectAll("g.groups").data(h);I.enter().append("g").attr("class","groups"),I.exit().remove();var F=I.selectAll("g.traces").data(a.identity);F.enter().append("g").attr("class","traces"),F.exit().remove(),F.style("opacity",(function(e){var t=e[0].trace;return i.traceIs(t,"pie-like")?-1!==p.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){r.select(this).call(_,e,t)})).call(y,e,t).each((function(){t._main&&r.select(this).call(k,e)})),a.syncOrAsync([n.previousPromises,function(){return function(e,t,a,n){var i=e._fullLayout;n||(n=i.legend);var o=i._size,l=x.isVertical(n),c=x.isGrouped(n),u=n.borderwidth,d=2*u,h=f.itemGap,p=n.itemwidth+2*h,g=2*(u+h),v=M(n),m=n.y<0||0===n.y&&"top"===v,y=n.y>1||1===n.y&&"bottom"===v;n._maxHeight=Math.max(m||y?i.height/2:o.h,30);var b=0;n._width=0,n._height=0;var _=function(e){var t=0,r=0,a=e.title.side;a&&(-1!==a.indexOf("left")&&(t=e._titleWidth),-1!==a.indexOf("top")&&(r=e._titleHeight));return[t,r]}(n);if(l)a.each((function(e){var t=e[0].height;s.setTranslate(this,u+_[0],u+_[1]+n._height+t/2+h),n._height+=t,n._width=Math.max(n._width,e[0].width)})),b=p+n._width,n._width+=h+p+d,n._height+=g,c&&(t.each((function(e,t){s.setTranslate(this,0,t*n.tracegroupgap)})),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var w=T(n),k=n.x<0||0===n.x&&"right"===w,A=n.x>1||1===n.x&&"left"===w,S=y||m,L=i.width/2;n._maxWidth=Math.max(k?S&&"left"===w?o.l+o.w:L:A?S&&"right"===w?o.r+o.w:L:o.w,2*p);var C=0,z=0;a.each((function(e){var t=e[0].width+p;C=Math.max(C,t),z+=t})),b=null;var O=0;if(c){var P=0,I=0,F=0;t.each((function(){var e=0,t=0;r.select(this).selectAll("g.traces").each((function(r){var a=r[0].height;s.setTranslate(this,_[0],_[1]+u+h+a/2+t),t+=a,e=Math.max(e,p+r[0].width)})),P=Math.max(P,t);var a=e+h;a+u+I>n._maxWidth&&(O=Math.max(O,I),I=0,F+=P+n.tracegroupgap,P=t),s.setTranslate(this,I,F),I+=a})),n._width=Math.max(O,I)+u,n._height=F+P+g}else{var D=a.size(),R=z+d+(D-1)*h=n._maxWidth&&(O=Math.max(O,N),j=0,B+=E,n._height+=E,E=0),s.setTranslate(this,_[0]+u+j,_[1]+u+B+t/2+h),N=j+r+h,j+=a,E=Math.max(E,t)})),R?(n._width=j+d,n._height=E+g):(n._width=Math.max(O,N)+d,n._height+=E+g)}}n._width=Math.ceil(Math.max(n._width+_[0],n._titleWidth+2*(u+f.titlePad))),n._height=Math.ceil(Math.max(n._height+_[1],n._titleHeight+2*(u+f.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var H=e._context.edits,W=H.legendText||H.legendPosition;a.each((function(e){var t=r.select(this).select(".legendtoggle"),a=e[0].height,n=W?p:b||p+e[0].width;l||(n+=h/2),s.setRect(t,0,-a/2,n,a)}))}(e,I,F,t)},function(){if(!t._main||!function(e){var t=e._fullLayout.legend,r=T(t),a=M(t);return n.autoMargin(e,"legend",{x:t.x,y:t.y,l:t._width*g[r],r:t._width*v[r],b:t._effHeight*v[a],t:t._effHeight*g[a]})}(e)){var c,h,p,m,y=u._size,x=t.borderwidth,_=y.l+y.w*t.x-g[T(t)]*t._width,k=y.t+y.h*(1-t.y)-g[M(t)]*t._effHeight;if(t._main&&u.margin.autoexpand){var A=_,z=k;_=a.constrain(_,0,u.width-t._width),k=a.constrain(k,0,u.height-t._effHeight),_!==A&&a.log("Constrain legend.x to make legend fit inside graph"),k!==z&&a.log("Constrain legend.y to make legend fit inside graph")}if(t._main&&s.setTranslate(w,_,k),P.on(".drag",null),w.on("wheel",null),!t._main||t._height<=t._maxHeight||e._context.staticPlot){var O=t._effHeight;t._main||(O=t._height),L.attr({width:t._width-x,height:O-x,x:x/2,y:x/2}),s.setTranslate(C,0,0),S.select("rect").attr({width:t._width-2*x,height:O-2*x,x:x,y:x}),s.setClipUrl(C,d,e),s.setRect(P,0,0,0,0),delete t._scrollY}else{var I,F,D,R=Math.max(f.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),E=t._effHeight-R-2*f.scrollBarMargin,j=t._height-t._effHeight,B=E/j,N=Math.min(t._scrollY||0,j);L.attr({width:t._width-2*x+f.scrollBarWidth+f.scrollBarMargin,height:t._effHeight-x,x:x/2,y:x/2}),S.select("rect").attr({width:t._width-2*x+f.scrollBarWidth+f.scrollBarMargin,height:t._effHeight-2*x,x:x,y:x+N}),s.setClipUrl(C,d,e),V(N,R,B),w.on("wheel",(function(){V(N=a.constrain(t._scrollY+r.event.deltaY/E*j,0,j),R,B),0!==N&&N!==j&&r.event.preventDefault()}));var H=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;I="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,D=N})).on("drag",(function(){var e=r.event.sourceEvent;2===e.buttons||e.ctrlKey||(F="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,V(N=function(e,t,r){var n=(r-t)/B+e;return a.constrain(n,0,j)}(D,I,F),R,B))}));P.call(H);var W=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;"touchstart"===e.type&&(I=e.changedTouches[0].clientY,D=N)})).on("drag",(function(){var e=r.event.sourceEvent;"touchmove"===e.type&&(F=e.changedTouches[0].clientY,V(N=function(e,t,r){var n=(t-r)/B+e;return a.constrain(n,0,j)}(D,I,F),R,B))}));C.call(W)}if(e._context.edits.legendPosition)w.classed("cursor-move",!0),l.init({element:w.node(),gd:e,prepFn:function(){var e=s.getTranslate(w);p=e.x,m=e.y},moveFn:function(e,r){var a=p+e,n=m+r;s.setTranslate(w,a,n),c=l.align(a,0,y.l,y.l+y.w,t.xanchor),h=l.align(n,0,y.t+y.h,y.t,t.yanchor)},doneFn:function(){void 0!==c&&void 0!==h&&i.call("_guiRelayout",e,{"legend.x":c,"legend.y":h})},clickFn:function(t,r){var a=o.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return r.clientX>=e.left&&r.clientX<=e.right&&r.clientY>=e.top&&r.clientY<=e.bottom}));a.size()>0&&b(e,w,a,t,r)}})}function V(r,a,n){t._scrollY=e._fullLayout.legend._scrollY=r,s.setTranslate(C,0,-r),s.setRect(P,t._width,f.scrollBarMargin+r*n,f.scrollBarWidth,a),S.select("rect").attr("y",x+r)}}],e)}}},"2RQvW7Lc":function(e,exports,t){"use strict";var r=t("46lPXjlm"),a=r.ONEAVGYEAR,n=r.ONEAVGMONTH,i=r.ONEDAY,o=r.ONEHOUR,l=r.ONEMIN,s=r.ONESEC,c=t("4JfnfFRI").tickIncrement;function u(e,t,r,a){if(e*t<=0)return 1/0;for(var n=Math.abs(t-e),i="date"===r.type,o=d(n,i),l=0;l<10;l++){var s=d(80*o,i);if(o===s)break;if(!f(s,e,t,i,r,a))break;o=s}return o}function d(e,t){return t&&e>s?e>i?e>1.1*a?a:e>1.1*n?n:i:e>o?o:e>l?l:s:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function f(e,t,r,n,o,l){if(n&&e>i){var s=h(t,o,l),c=h(r,o,l),u=e===a?0:1;return s[u]!==c[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function h(e,t,r){var n=t.c2d(e,a,r).split("-");return""===n[0]&&(n.unshift(),n[0]="-"+n[0]),n}e.exports=function(e,t,r,n,o){var l,s,d=-1.1*t,f=-.1*t,h=e-f,p=r[0],g=r[1],v=Math.min(u(p+f,p+h,n,o),u(g+f,g+h,n,o)),m=Math.min(u(p+d,p+f,n,o),u(g+d,g+f,n,o));if(v>m&&mi){var y=l===a?1:6,x=l===a?"M12":"M1";return function(t,r){var i=n.c2d(t,a,o),l=i.indexOf("-",y);l>0&&(i=i.substr(0,l));var u=n.d2c(i,0,o);if(u0;o&&(n="array");var l,s=r("categoryorder",n);"array"===s&&(l=r("categoryarray")),o||"array"!==s||(s=t.categoryorder="trace"),"trace"===s?t._initialCategories=[]:"array"===s?t._initialCategories=l.slice():(l=function(e,t){var r,a,n,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)r=t.axData;else for(r=[],a=0;a:not(.watermark)":"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":"content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;","X [data-title]:after":"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:white;","X .select-outline-2":"stroke:black;stroke-dasharray:2px 2px;",Y:"font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;","Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var n in a){var i=n.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");r.addStyleRule(i,a[n])}},"3oxsHAjo":function(e,exports,t){"use strict";var r=t("lf8+9Xc7"),a=t("Khpmx9F5"),n=(0,t("A5P9b9BX").templatedArray)("button",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",role:"info",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot",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",editType:"plot",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,editType:"plot",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",editType:"plot",description:"Sets the text label to appear on the button."},editType:"plot",description:["Sets the specifications for each buttons.","By default, a range selector comes with no buttons."].join(" ")});e.exports={visible:{valType:"boolean",role:"info",editType:"plot",description:["Determines whether or not this range selector is visible.","Note that range selectors are only available for x axes of","`type` set to or auto-typed to *date*."].join(" ")},buttons:n,x:{valType:"number",min:-2,max:3,role:"style",editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",editType:"plot",description:["Sets the range selector'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,role:"style",editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",role:"info",editType:"plot",description:["Sets the range selector's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},font:r({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:a.lightLine,role:"style",editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",role:"style",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:a.defaultLine,role:"style",editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"}},"3yii3GsE":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("R5um7Wku"),n=t("0Ft3SWJB"),i=n.strTranslate,o=t("+ELfTWmT"),l=t("/oRevOrA"),s=t("s48LrSF+").extractOpts,c=t("FAQM5QER"),u=t("4R47EHYh"),d=t("cscO2DHv").castOption,f=t("MQxNBUFm");function h(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}e.exports=function(e,t,p){var g=t._fullLayout;p||(p=g.legend);var v="constant"===p.itemsizing,m=p.itemwidth,y=(m+2*f.itemGap)/2,x=i(y,0),b=function(e,t,r,a){var n;if(e+1)n=e;else{if(!(t&&t.width>0))return 0;n=t.width}return v?a:Math.min(n,r)};function _(e,t,n){var i=e[0].trace,o=i.marker||{},s=o.line||{},c=n?i.visible&&i.type===n:a.traceIs(i,"bar"),u=r.select(t).select("g.legendpoints").selectAll("path.legend"+n).data(c?[e]:[]);u.enter().append("path").classed("legend"+n,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",x),u.exit().remove(),u.each((function(e){var t=r.select(this),a=e[0],n=b(a.mlw,o.line,5,2);t.style("stroke-width",n+"px").call(l.fill,a.mc||o.color),n&&l.stroke(t,a.mlc||s.color)}))}function w(e,t,i){var o=e[0],l=o.trace,s=i?l.visible&&l.type===i:a.traceIs(l,i),c=r.select(t).select("g.legendpoints").selectAll("path.legend"+i).data(s?[e]:[]);if(c.enter().append("path").classed("legend"+i,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",x),c.exit().remove(),c.size()){var f=(l.marker||{}).line,h=b(d(f.width,o.pts),f,5,2),p=n.minExtend(l,{marker:{line:{width:h}}});p.marker.line.color=f.color;var g=n.minExtend(o,{trace:p});u(c,g,p)}}e.each((function(e){var t=r.select(this),a=n.ensureSingle(t,"g","layers");a.style("opacity",e[0].trace.opacity);var o=p.valign,l=e[0].lineHeight,s=e[0].height;if("middle"!==o&&l&&s){var c={top:1,bottom:-1}[o]*(.5*(l-s+3));a.attr("transform",i(0,c))}else a.attr("transform",null);a.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),a.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var u=a.selectAll("g.legendsymbols").data([e]);u.enter().append("g").classed("legendsymbols",!0),u.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var a,i=e[0].trace,c=[];if(i.visible)switch(i.type){case"histogram2d":case"heatmap":c=[["M-15,-2V4H15V-2Z"]],a=!0;break;case"choropleth":case"choroplethmapbox":c=[["M-6,-6V6H6V-6Z"]],a=!0;break;case"densitymapbox":c=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],a="radial";break;case"cone":c=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],a=!1;break;case"streamtube":c=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],a=!1;break;case"surface":c=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],a=!0;break;case"mesh3d":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],a=!1;break;case"volume":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],a=!0;break;case"isosurface":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],a=!1}var u=r.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(c);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform",x).style("stroke-miterlimit",1),u.exit().remove(),u.each((function(e,c){var u,d=r.select(this),f=s(i),p=f.colorscale,g=f.reversescale;if(p){if(!a){var v=p.length;u=0===c?p[g?v-1:0][1]:1===c?p[g?0:v-1][1]:p[Math.floor((v-1)/2)][1]}}else{var m=i.vertexcolor||i.facecolor||i.color;u=n.isArrayOrTypedArray(m)?m[c]||m[0]:m}d.attr("d",e[0]),u?d.call(l.fill,u):d.call((function(e){if(e.size()){var r="legendfill-"+i.uid;o.gradient(e,t,r,h(g,"radial"===a),p,"fill")}}))}))})).each((function(e){var t=e[0].trace,a="waterfall"===t.type;if(e[0]._distinct&&a){var n=e[0].trace[e[0].dir].marker;return e[0].mc=n.color,e[0].mlw=n.line.width,e[0].mlc=n.line.color,_(e,this,"waterfall")}var i=[];t.visible&&a&&(i=e[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=r.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",x).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(e){var a=r.select(this),n=t[e[0]].marker,i=b(void 0,n.line,5,2);a.attr("d",e[1]).style("stroke-width",i+"px").call(l.fill,n.color),i&&a.call(l.stroke,n.line.color)}))})).each((function(e){_(e,this,"funnel")})).each((function(e){_(e,this)})).each((function(e){var i=e[0].trace,s=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(i.visible&&a.traceIs(i,"box-violin")?[e]:[]);s.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",x),s.exit().remove(),s.each((function(){var e=r.select(this);if("all"!==i.boxpoints&&"all"!==i.points||0!==l.opacity(i.fillcolor)||0!==l.opacity((i.line||{}).color)){var a=b(void 0,i.line,5,2);e.style("stroke-width",a+"px").call(l.fill,i.fillcolor),a&&l.stroke(e,i.line.color)}else{var c=n.minExtend(i,{marker:{size:v?12:n.constrain(i.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});s.call(o.pointStyle,c,t)}}))})).each((function(e){w(e,this,"funnelarea")})).each((function(e){w(e,this,"pie")})).each((function(e){var a,i,l=e[0],u=l.trace,d=u.visible&&u.fill&&"none"!==u.fill,f=c.hasLines(u),p=u.contours,g=!1,v=!1,y=s(u),x=y.colorscale,_=y.reversescale;if(p){var w=p.coloring;"lines"===w?g=!0:f="none"===w||"heatmap"===w||p.showlines,"constraint"===p.type?d="="!==p._operation:"fill"!==w&&"heatmap"!==w||(v=!0)}var k=c.hasMarkers(u)||c.hasText(u),A=d||v,T=f||g,M=k||!A?"M5,0":T?"M5,-2":"M5,-3",S=r.select(this),L=S.select(".legendfill").selectAll("path").data(d||v?[e]:[]);if(L.enter().append("path").classed("js-fill",!0),L.exit().remove(),L.attr("d",M+"h"+m+"v6h-"+m+"z").call(d?o.fillGroupStyle:function(e){if(e.size()){var r="legendfill-"+u.uid;o.gradient(e,t,r,h(_),x,"fill")}}),f||g){var C=b(void 0,u.line,10,5);i=n.minExtend(u,{line:{width:C}}),a=[n.minExtend(l,{trace:i})]}var z=S.select(".legendlines").selectAll("path").data(f||g?[a]:[]);z.enter().append("path").classed("js-line",!0),z.exit().remove(),z.attr("d",M+(g?"l"+m+",0.0001":"h"+m)).call(f?o.lineGroupStyle:function(e){if(e.size()){var r="legendline-"+u.uid;o.lineGroupStyle(e),o.gradient(e,t,r,h(_),x,"stroke")}})})).each((function(e){var a,i,l=e[0],s=l.trace,u=c.hasMarkers(s),d=c.hasText(s),f=c.hasLines(s);function h(e,t,r,a){var i=n.nestedProperty(s,e).get(),o=n.isArrayOrTypedArray(i)&&t?t(i):i;if(v&&o&&void 0!==a&&(o=a),r){if(or[1])return r[1]}return o}function p(e){return l._distinct&&l.index&&e[l.index]?e[l.index]:e[0]}if(u||d||f){var g={},m={};if(u){g.mc=h("marker.color",p),g.mx=h("marker.symbol",p),g.mo=h("marker.opacity",n.mean,[.2,1]),g.mlc=h("marker.line.color",p),g.mlw=h("marker.line.width",n.mean,[0,5],2),m.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var y=h("marker.size",n.mean,[2,16],12);g.ms=y,m.marker.size=y}f&&(m.line={width:h("line.width",p,[0,10],5)}),d&&(g.tx="Aa",g.tp=h("textposition",p),g.ts=10,g.tc=h("textfont.color",p),g.tf=h("textfont.family",p)),a=[n.minExtend(l,g)],(i=n.minExtend(s,m)).selectedpoints=null,i.texttemplate=null}var b=r.select(this).select("g.legendpoints"),_=b.selectAll("path.scatterpts").data(u?a:[]);_.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",x),_.exit().remove(),_.call(o.pointStyle,i,t),u&&(a[0].mrc=3);var w=b.selectAll("g.pointtext").data(d?a:[]);w.enter().append("g").classed("pointtext",!0).append("text").attr("transform",x),w.exit().remove(),w.selectAll("text").call(o.textPointStyle,i,t)})).each((function(e){var t=e[0].trace,a=r.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);a.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",x).style("stroke-miterlimit",1),a.exit().remove(),a.each((function(e,a){var n=r.select(this),i=t[a?"increasing":"decreasing"],o=b(void 0,i.line,5,2);n.style("stroke-width",o+"px").call(l.fill,i.fillcolor),o&&l.stroke(n,i.line.color)}))})).each((function(e){var t=e[0].trace,a=r.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);a.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",x).style("stroke-miterlimit",1),a.exit().remove(),a.each((function(e,a){var n=r.select(this),i=t[a?"increasing":"decreasing"],s=b(void 0,i.line,5,2);n.style("fill","none").call(o.dashLine,i.line.dash,s),s&&l.stroke(n,i.line.color)}))}))}},"42xT/S4m":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("R5um7Wku"),n=t("0Ft3SWJB"),i=t("8MlMO9wt"),o=t("+ELfTWmT"),l=t("JvoEnJDT").getModuleCalcData,s=t("nXHY852p"),c=t("Vq8+Ip3e"),u=t("nfwe4Djo"),d=n.ensureSingle;function f(e,t,r){return n.ensureSingle(e,t,r,(function(e){e.datum(r)}))}function h(e,t,n,i,s){for(var u,d,f,h=c.traceLayerClasses,p=e._fullLayout,g=p._modules,v=[],m=[],y=0;y-1?o="closest":(t._isHoriz=function(e,t){for(var r=t._scatterStackOpts||{},a=0;a2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},E.saveRangeInitial=function(e,t){for(var r=E.list(e,"",!0),a=!1,n=0;n.3*f||u(n)||u(i))){var h=r.dtick/2;e+=e+hl){var s=Number(r.substr(1));i.exactYears>l&&s%12==0?e=E.tickIncrement(e,"M6","reverse")+1.5*T:i.exactMonths>l?e=E.tickIncrement(e,"M1","reverse")+15.5*T:e-=M;var c=E.tickIncrement(e,r);if(c<=a)return c}return e}(y,e,m,c,i)),v=y,0;v<=u;)v=E.tickIncrement(v,m,!1,i);return{start:t.c2r(y,0,i),end:t.c2r(v,0,i),size:m,_dataSpan:u-c}},E.prepTicks=function(e,t){var r=o.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e._dtickInit=e.dtick,e._tick0Init=e.tick0,"auto"===e.tickmode||!e.dtick){var n,i=e.nticks;i||("category"===e.type||"multicategory"===e.type?(n=e.tickfont?1.2*(e.tickfont.size||12):15,i=e._length/n):(n="y"===e._id.charAt(0)?40:80,i=o.constrain(e._length/n,4,9)+1),"radialaxis"===e._name&&(i*=2)),"array"===e.tickmode&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,E.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function r(){return!(a(e.dtick)||"M"!==e.dtick.charAt(0))}var n=r(),i=E.getTickFormat(e);if(i){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=S,o&&!n&&e.dticki&&d=l:h<=l;h=E.tickIncrement(h,e.dtick,s,e.calendar)){if(e.rangebreaks&&!s){if(h=u)break}if(C.length>L||h===z)break;z=h;var P=!1;d&&h!==(0|h)&&(P=!0),C.push({minor:P,value:h})}if(f&&function(e,t,r){for(var a=0;a0?(i=a-1,o=a):(i=a,o=a);var l,s=e[i].value,c=e[o].value,u=Math.abs(c-s),d=r||u,f=0;d>=m?f=u>=m&&u<=g?u:v:r===x&&d>=b?f=u>=b&&u<=y?u:x:d>=k?f=u>=k&&u<=_?u:w:r===A&&d>=A?f=A:d>=T?f=T:r===M&&d>=M?f=M:r===S&&d>=S&&(f=S),f>=u&&(f=u,l=!0);var h=n+f;if(t.rangebreaks&&f>0){for(var p=0,L=0;L<84;L++){var C=(L+.5)/84;t.maskBreaks(n*(1-C)+C*h)!==O&&p++}(f*=p/84)||(e[a].drop=!0),l&&u>A&&(f=u)}(f>0||0===a)&&(e[a].periodX=n+f/2)}}(C,e,e._definedDelta),e.rangebreaks){var I="y"===e._id.charAt(0),F=1;"auto"===e.tickmode&&(F=e.tickfont?e.tickfont.size:12);var D=NaN;for(p=C.length-1;p>-1;p--)if(C[p].drop)C.splice(p,1);else{C[p].value=we(C[p].value,e);var R=e.c2p(C[p].value);(I?D>R-F:Du||Bu&&(j.periodX=u),B10||"01-01"!==n.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=T&&i<=10||t>=15*T)e._tickround="d";else if(t>=L&&i<=16||t>=S)e._tickround="M";else if(t>=C&&i<=19||t>=L)e._tickround="S";else{var o=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20,e._tickround<0&&(e._tickround=4)}}else if(a(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);a(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),c=Math.floor(Math.log(s)/Math.LN10+.01),u=void 0===e.minexponent?3:e.minexponent;Math.abs(c)>u&&(oe(e.exponentformat)&&!le(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function ne(e,t,r){var a=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:a.size,font:a.family,fontColor:a.color}}E.autoTicks=function(e,t){var r;function n(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=o.dateTick0(e.calendar,0);var i=2*t;if(i>v)t/=v,r=n(10),e.dtick="M"+12*re(t,r,X);else if(i>w)t/=w,e.dtick="M"+re(t,1,J);else if(i>T){e.dtick=re(t,T,e._hasDayOfWeekBreaks?[1,2,7,14]:Q);var l=E.getTickFormat(e),s="period"===e.ticklabelmode;s&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=o.dateTick0(e.calendar,2):e.tick0=o.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}else i>S?e.dtick=re(t,S,J):i>L?e.dtick=re(t,L,Y):i>C?e.dtick=re(t,C,Y):(r=n(10),e.dtick=re(t,r,X))}else if("log"===e.type){e.tick0=0;var c=o.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(c[1]-c[0])<1){var u=1.5*Math.abs((c[1]-c[0])/t);t=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),e.dtick="L"+re(t,r,X)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):_e(e)?(e.tick0=0,r=1,e.dtick=re(t,r,te)):(e.tick0=0,r=n(10),e.dtick=re(t,r,X));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!=typeof e.dtick){var d=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(d)}},E.tickIncrement=function(e,t,n,i){var l=n?-1:1;if(a(t))return o.increment(e,l*t);var s=t.charAt(0),c=l*Number(t.substr(1));if("M"===s)return o.incrementMonth(e,c,i);if("L"===s)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===s){var u="D2"===t?ee:K,d=e+.01*l,f=o.roundUp(o.mod(d,1),u,n);return Math.floor(d)+Math.log(r.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},E.tickFirst=function(e,t){var n=e.r2l||Number,i=o.simpleMap(e.range,n,void 0,void 0,t),l=i[1] ")}else e._prevDateHead=s,c+="
"+s;t.text=c}(e,l,r,c):"log"===u?function(e,t,r,n,i){var l=e.dtick,s=t.x,c=e.tickformat,u="string"==typeof l&&l.charAt(0);"never"===i&&(i="");n&&"L"!==u&&(l="L3",u="L");if(c||"L"===u)t.text=se(Math.pow(10,s),e,i,n);else if(a(l)||"D"===u&&o.mod(s+.01,1)<.1){var d=Math.round(s),f=Math.abs(d),h=e.exponentformat;"power"===h||oe(h)&&le(d)?(t.text=0===d?1:1===d?"10":"10"+(d>1?"":z)+f+"",t.fontSize*=1.25):("e"===h||"E"===h)&&f>2?t.text="1"+h+(d>0?"+":z)+f:(t.text=se(Math.pow(10,s),e,"","fakehover"),"D1"===l&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(l);t.text=String(Math.round(Math.pow(10,o.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var p=String(t.text).charAt(0);"0"!==p&&"1"!==p||("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,l,0,c,g):"category"===u?function(e,t){var r=e._categories[Math.round(t.x)];void 0===r&&(r="");t.text=String(r)}(e,l):"multicategory"===u?function(e,t,r){var a=Math.round(t.x),n=e._categories[a]||[],i=void 0===n[1]?"":String(n[1]),o=void 0===n[0]?"":String(n[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,l,r):_e(e)?function(e,t,r,a,n){if("radians"!==e.thetaunit||r)t.text=se(t.x,e,n,a);else{var i=t.x/180;if(0===i)t.text="0";else{var l=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}function r(e,a){return t(a,0)?e:r(a,e%a)}function a(e){for(var r=1;!t(Math.round(e*r)/r,e);)r*=10;return r}var n=a(e),i=e*n,o=Math.abs(r(i,n));return[Math.round(i/o),Math.round(n/o)]}(i);if(l[1]>=100)t.text=se(o.deg2rad(t.x),e,n,a);else{var s=t.x<0;1===l[1]?1===l[0]?t.text="π":t.text=l[0]+"π":t.text=["",l[0],"","⁄","",l[1],"","π"].join(""),s&&(t.text=z+t.text)}}}}(e,l,r,c,g):function(e,t,r,a,n){"never"===n?n="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(n="hide");t.text=se(t.x,e,n,a)}(e,l,0,c,g),n||(e.tickprefix&&!p(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!p(e.showticksuffix)&&(l.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var v=function(t){var r=e.l2p(t);return r>=0&&r<=e._length?t:null};l.xbnd=[v(l.x-.5),v(l.x+e.dtick-.5)]}return l},E.hoverLabelText=function(e,t,r){if(r!==O&&r!==t)return E.hoverLabelText(e,t)+" - "+E.hoverLabelText(e,r);var a="log"===e.type&&t<=0,n=E.tickText(e,e.c2l(a?-t:t),"hover").text;return a?0===t?"0":z+n:n};var ie=["f","p","n","μ","m","","k","M","G","T"];function oe(e){return"SI"===e||"B"===e}function le(e){return e>14||e<-15}function se(e,t,r,n){var i=e<0,l=t._tickround,s=r||t.exponentformat||"B",c=t._tickexponent,u=E.getTickFormat(t),d=t.separatethousands;if(n){var f={exponentformat:s,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};ae(f),l=(Number(f._tickround)||0)+4,c=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,z);var h,p=Math.pow(10,-l)/2;if("none"===s&&(c=0),(e=Math.abs(e))"+h+"":"B"===s&&9===c?e+="B":oe(s)&&(e+=ie[c/3+5]));return i?z+e:e}function ce(e,t){for(var r=[],a={},n=0;n1&&r=n.min&&e=0,i=u(e,t[1])<=0;return(r||n)&&(a||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t=o(n)))){r=a;break}break;case"log":for(t=0;t0?r.bottom-u:0,d)))),t.automargin){a={x:0,y:0,r:0,l:0,t:0,b:0};var h=[0,1];if("x"===p){if("b"===s?a[s]=t._depth:(a[s]=t._depth=Math.max(r.width>0?u-r.top:0,d),h.reverse()),r.width>0){var v=r.right-(t._offset+t._length);v>0&&(a.xr=1,a.r=v);var m=t._offset-r.left;m>0&&(a.xl=0,a.l=m)}}else if("l"===s?a[s]=t._depth=Math.max(r.height>0?u-r.left:0,d):(a[s]=t._depth=Math.max(r.height>0?r.right-u:0,d),h.reverse()),r.height>0){var y=r.bottom-(t._offset+t._length);y>0&&(a.yb=0,a.b=y);var x=t._offset-r.top;x>0&&(a.yt=1,a.t=x)}a[g]="free"===t.anchor?t.position:t._anchorAxis.domain[h[0]],t.title.text!==f._dfltTitle[p]&&(a[s]+=fe(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((o={x:0,y:0,r:0,l:0,t:0,b:0})[c]=t.linewidth,t.mirror&&!0!==t.mirror&&(o[c]+=d),!0===t.mirror||"ticks"===t.mirror?o[g]=t._anchorAxis.domain[h[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(o[g]=[t._counterDomainMin,t._counterDomainMax][h[1]]))}Q&&(l=i.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),n.autoMargin(e,ge(t),a),n.autoMargin(e,ve(t),o),n.autoMargin(e,me(t),l)})),r.skipTitle||Q&&"bottom"===t.side||J.push((function(){return function(e,t){var r,a=e._fullLayout,n=t._id,i=n.charAt(0),o=t.title.font.size;if(t.title.hasOwnProperty("standoff"))r=t._depth+t.title.standoff+fe(t);else{var l=-1!==(t.ticklabelposition||"").indexOf("inside");if("multicategory"===t.type)r=t._depth;else{var s=1.5*o;l&&(s=.5*o,"outside"===t.ticks&&(s+=t.ticklen)),r=10+s+(t.linewidth?t.linewidth-1:0)}l||(r+="x"===i?"top"===t.side?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):"right"===t.side?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0))}var u,f,h,p,g=E.getPxPosition(e,t);"x"===i?(f=t._offset+t._length/2,h="top"===t.side?g-r:g+r):(h=t._offset+t._length/2,f="right"===t.side?g+r:g-r,u={rotate:"-90",offset:0});if("multicategory"!==t.type){var v=t._selections[t._id+"tick"];if(p={selection:v,side:t.side},v&&v.node()&&v.node().parentNode){var m=d.getTranslate(v.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return c.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:a._dfltTitle[i],avoid:p,transform:u,attributes:{x:f,y:h,"text-anchor":"middle"}})}(e,t)})),o.syncOrAsync(J)}}function K(e){var r=h+(e||"tick");return w[r]||(w[r]=function(e,t){var r,a,n,i;e._selections[t].size()?(r=1/0,a=-1/0,n=1/0,i=-1/0,e._selections[t].each((function(){var e=pe(this),t=d.bBox(e.node().parentNode);r=Math.min(r,t.top),a=Math.max(a,t.bottom),n=Math.min(n,t.left),i=Math.max(i,t.right)}))):(r=0,a=0,n=0,i=0);return{top:r,bottom:a,left:n,right:i,height:a-r,width:i-n}}(t,r)),w[r]}},E.getTickSigns=function(e){var t=e._id.charAt(0),r={x:"top",y:"right"}[t],a=e.side===r?1:-1,n=[-1,1,a,-a];return"inside"!==e.ticks==("x"===t)&&(n=n.map((function(e){return-e}))),e.side&&n.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),n},E.makeTransTickFn=function(e){return"x"===e._id.charAt(0)?function(t){return l(e._offset+e.l2p(t.x),0)}:function(t){return l(0,e._offset+e.l2p(t.x))}},E.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",r=function(e){return-1!==t.indexOf(e)},a=r("top"),n=r("left"),i=r("right"),o=r("bottom"),l=r("inside"),s=o||n||a||i;if(!s&&!l)return[0,0];var c=e.side,u=s?(e.tickwidth||0)/2:0,d=3,f=e.tickfont?e.tickfont.size:12;(o||a)&&(u+=f*F,d+=(e.linewidth||0)/2);(n||i)&&(u+=(e.linewidth||0)/2,d+=3);l&&"top"===c&&(d-=f*(1-F));(n||a)&&(u=-u);"bottom"!==c&&"right"!==c||(d=-d);return[s?u:0,l?d:0]}(e),r=t[0],a=t[1];return"x"===e._id.charAt(0)?function(t){return l(r+e._offset+e.l2p(ue(t)),a)}:function(t){return l(a,r+e._offset+e.l2p(ue(t)))}},E.makeTickPath=function(e,t,r,a){a=void 0!==a?a:e.ticklen;var n=e._id.charAt(0),i=(e.linewidth||1)/2;return"x"===n?"M0,"+(t+i*r)+"v"+a*r:"M"+(t+i*r)+",0h"+a*r},E.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=function(e){return-1!==n.indexOf(e)},l=i("top"),s=i("left"),c=i("right"),u=i("bottom")||s||l||c,d=i("inside"),f="inside"===n&&"inside"===e.ticks||!d&&"outside"===e.ticks&&"boundaries"!==e.tickson,h=0,p=0,g=f?e.ticklen:0;if(d?g*=-1:u&&(g=0),f&&(h+=g,r)){var v=o.deg2rad(r);h=g*Math.cos(v)+1,p=g*Math.sin(v)}e.showticklabels&&(f||e.showline)&&(h+=.2*e.tickfont.size);var m,y,x,b,_,w={labelStandoff:h+=(e.linewidth||1)/2*(d?-1:1),labelShift:p},k=0,A=e.side,T=e._id.charAt(0),M=e.tickangle;if("x"===T)b=(_=!d&&"bottom"===A||d&&"top"===A)?1:-1,d&&(b*=-1),m=p*b,y=t+h*b,x=_?1:-.2,90===Math.abs(M)&&(d?x+=I:x=-90===M&&"bottom"===A?F:90===M&&"top"===A?I:.5,k=I/2*(M/90)),w.xFn=function(e){return e.dx+m+k*e.fontSize},w.yFn=function(e){return e.dy+y+e.fontSize*x},w.anchorFn=function(e,t){if(u){if(s)return"end";if(c)return"start"}return a(t)&&0!==t&&180!==t?t*b<0!==d?"end":"start":"middle"},w.heightFn=function(t,r,a){return r<-60||r>60?-.5*a:"top"===e.side!==d?-a:0};else if("y"===T){if(b=(_=!d&&"left"===A||d&&"right"===A)?1:-1,d&&(b*=-1),m=h,y=p*b,x=0,d||90!==Math.abs(M)||(x=-90===M&&"left"===A||90===M&&"right"===A?F:.5),d){var S=a(M)?+M:0;if(0!==S){var L=o.deg2rad(S);k=Math.abs(Math.sin(L))*F*b,x=0}}w.xFn=function(e){return e.dx+t-(m+e.fontSize*x)*b+k*e.fontSize},w.yFn=function(e){return e.dy+y+e.fontSize*I},w.anchorFn=function(e,t){return a(t)&&90===Math.abs(t)?"middle":_?"end":"start"},w.heightFn=function(t,r,a){return"right"===e.side&&(r*=-1),r<-30?-a:r<30?-.5*a:0}}return w},E.drawTicks=function(e,t,r){r=r||{};var a=t._id+"tick",n=r.vals;"period"===t.ticklabelmode&&(n=n.slice()).shift();var i=r.layer.selectAll("path."+a).data(t.ticks?n:[],de);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",!1!==r.crisp).call(u.stroke,t.tickcolor).style("stroke-width",d.crispRound(e,t.tickwidth,1)+"px").attr("d",r.path),i.attr("transform",r.transFn)},E.drawGrid=function(e,t,r){r=r||{};var a=t._id+"grid",n=r.vals,i=r.counterAxis;if(!1===t.showgrid)n=[];else if(i&&E.shouldShowZeroLine(e,t,i))for(var o="array"===t.tickmode,l=0;ll||n.leftl||n.top+(t.tickangle?0:e.fontSize/4)1)for(a=1;a=0;o--)(l=((d[[(a=(i=f[o])[0])-1,n=i[1]]]||g)[2]+(d[[a+1,n]]||g)[2]+(d[[a,n-1]]||g)[2]+(d[[a,n+1]]||g)[2])/20)&&(s[i]=[a,n,l],f.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(i in s)d[i]=s[i],u.push(s[i])}return u.sort((function(e,t){return t[2]-e[2]}))}},"6NEikfh9":function(e,exports,t){"use strict";var r=t("nwKXjxmY").EventEmitter,a={init:function(e){if(e._ev instanceof r)return e;var t=new r,a=new r;return e._ev=t,e._internalEv=a,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=a.on.bind(a),e._internalOnce=a.once.bind(a),e._removeInternalListener=a.removeListener.bind(a),e._removeAllInternalListeners=a.removeAllListeners.bind(a),e.emit=function(r,n){"undefined"!=typeof jQuery&&jQuery(e).trigger(r,n),t.emit(r,n),a.emit(r,n)},e},triggerHandler:function(e,t,r){var a,n;"undefined"!=typeof jQuery&&(a=jQuery(e).triggerHandler(t,r));var i=e._ev;if(!i)return a;var o,l=i._events[t];if(!l)return a;function s(e){return e.listener?(i.removeListener(t,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(i,[r]))):e.apply(i,[r])}for(l=Array.isArray(l)?l:[l],o=0;oa?n.substr(a):i.substr(r))+o:n+i+e*t:o}function g(e,t){for(var r=t._size,a=r.h/r.w,n={},i=Object.keys(e),o=0;os*x)||k)for(r=0;rI&&EO&&(O=E);f/=(O-z)/(2*P),z=c.l2r(z),O=c.l2r(O),c.range=c._input.range=S*:not(.chart-root)").remove(),t=t?l(t,a):a,n||(n=i.Axis()),c=i.adapter.plotly().convert(t),n.config(c).render(u),e.data=t.data,e.layout=t.layout,s.fillLayout(e),t}return exports.isPolar=!0,exports.svg=function(){return n.svg()},exports.getConfig=function(){return t},exports.getLiveConfig=function(){return i.adapter.plotly().convert(n.getLiveConfig(),!0)},exports.getLiveScales=function(){return{t:n.angularScale(),r:n.radialScale()}},exports.setUndoPoint=function(){var e,r,n=this,o=i.util.cloneJson(t);e=o,r=a,d.add({undo:function(){r&&n(r)},redo:function(){n(e)}}),a=i.util.cloneJson(o)},exports.undo=function(){d.undo()},exports.redo=function(){d.redo()},exports},s.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),a=t.selectAll(".svg-container"),i=e.framework&&e.framework.svg&&e.framework.svg(),o={width:800,height:600,paper_bgcolor:n.background,_container:t,_paperdiv:a,_paper:i};e._fullLayout=l(o,e.layout)}},"723cH3qU":function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),a=t("4JfnfFRI"),n=t("JdrF9yG0"),i=t("a6BPHvoN");function o(e,t,n){function o(a,n){return r.coerce(e,t,i,a,n)}var l=o("source");if(!o("visible",!!l))return t;o("layer"),o("xanchor"),o("yanchor"),o("sizex"),o("sizey"),o("sizing"),o("opacity");for(var s={_fullLayout:n},c=["x","y"],u=0;u<2;u++){var d=c[u],f=a.coerceRef(e,t,s,d,"paper",void 0);if("paper"!==f)a.getFromId(s,f)._imgIndices.push(t._index);a.coercePosition(t,s,o,f,d,0)}return t}e.exports=function(e,t){n(e,t,{name:"images",handleItemDefaults:o})}},"7TYI5MTh":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("y1n3bGum"),n=t("uORtHUsV"),i=t("R5um7Wku"),o=t("0Ft3SWJB"),l=o.strTranslate,s=t("7k8rh0sJ"),c=t("/oRevOrA"),u=t("+ELfTWmT"),d=t("9fFWTih4"),f=t("4JfnfFRI"),h=t("LnvsDkyo"),p=t("WFvnZ06c"),g=t("rC/dcWPV"),v=g.selectingOrDrawing,m=g.freeMode,y=t("kca9bvt+").FROM_TL,x=t("NLf4w7dD"),b=t("PM37TqjZ").redrawReglTraces,_=t("8MlMO9wt"),w=t("nXHY852p").getFromId,k=t("TXQQh07e").prepSelect,A=t("TXQQh07e").clearSelect,T=t("TXQQh07e").selectOnClick,M=t("gfz/NZnA"),S=t("Vq8+Ip3e"),L=S.MINDRAG,C=S.MINZOOM,z=!0;function O(e,t,r,a){var n=o.ensureSingle(e.draglayer,t,r,(function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)}));return n.call(h,a),n.node()}function P(e,t,a,n,i,o,l){var s=O(e,"rect",t,a);return r.select(s).call(u.setRect,n,i,o,l),s}function I(e,t){for(var r=0;r=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function E(e,t,r,a,n){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",l(r,a)).attr("d",n+"Z")}function j(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("transform",l(t,r)).attr("d","M0,0Z")}function B(e,t,r,a,n,i){e.attr("d",a+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),N(e,t,n,i)}function N(e,t,r,a){r||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function H(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function W(e){z&&e.data&&e._context.showTips&&(o.notifier(o._(e,"Double-click to zoom back out"),"long"),z=!1)}function V(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,C)/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"}function G(e,t,r,a,n){for(var i,l,s,c,u=!1,d={},f={},h=(n||{}).xaHash,p=(n||{}).yaHash,g=0;g=0)n._fullLayout._deactivateShape(n);else{var o=n._fullLayout.clickmode;if(H(n),2!==e||me||Ge(),ve)o.indexOf("select")>-1&&T(a,n,J,Y,t.id,Oe),o.indexOf("event")>-1&&d.click(n,a,t.id);else if(1===e&&me){var l=g?N:O,c="s"===g||"w"===z?0:1,u=l._name+".range["+c+"]",f=function(e,t){var a,n=e.range[t],i=Math.abs(n-e.range[1-t]);return"date"===e.type?n:"log"===e.type?(a=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,r.format("."+a+"g")(Math.pow(10,n))):(a=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,r.format("."+String(a)+"g")(n))}(l,c),h="left",p="middle";if(l.fixedrange)return;g?(p="n"===g?"top":"bottom","right"===l.side&&(h="right")):"e"===z&&(h="right"),n._context.showAxisRangeEntryBoxes&&r.select(be).call(s.makeEditable,{gd:n,immediate:!0,background:n._fullLayout.paper_bgcolor,text:String(f),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:h,verticalAlign:p}).on("edit",(function(e){var t=l.d2r(e);void 0!==t&&i.call("_guiRelayout",n,u,t)}))}}}function Fe(t,r){if(e._transitioningWithDuration)return!1;var a=Math.max(0,Math.min(ee,he*t+_e)),n=Math.max(0,Math.min(te,pe*r+we)),i=Math.abs(a-_e),o=Math.abs(n-we);function l(){Se="",ke.r=ke.l,ke.t=ke.b,Ce.attr("d","M0,0Z")}if(ke.l=Math.min(_e,a),ke.r=Math.max(_e,a),ke.t=Math.min(we,n),ke.b=Math.max(we,n),re.isSubplotConstrained)i>C||o>C?(Se="xy",i/ee>o/te?(o=i*te/ee,we>n?ke.t=we-o:ke.b=we+o):(i=o*ee/te,_e>a?ke.l=_e-i:ke.r=_e+i),Ce.attr("d",V(ke))):l();else if(ae.isSubplotConstrained)if(i>C||o>C){Se="xy";var s=Math.min(ke.l/ee,(te-ke.b)/te),c=Math.max(ke.r/ee,(te-ke.t)/te);ke.l=s*ee,ke.r=c*ee,ke.b=(1-s)*te,ke.t=(1-c)*te,Ce.attr("d",V(ke))}else l();else!ie||o0){var u;if(ae.isSubplotConstrained||!ne&&1===ie.length){for(u=0;u1)for(var l=1;l doesnt match end tag <"+e+">. Pretending it did match.",t),n=s[s.length-1].node}else a.log("Ignoring unexpected end tag .",t)}x.test(t)?u():(n=e,s=[{node:e}]);for(var z=t.split(m),O=0;O|>|>)/g;var d={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"},f={sub:"0.3em",sup:"-0.6em"},h={sub:"-0.21em",sup:"0.42em"},p="​",g=["http:","https:","mailto:","",void 0,":"],v=exports.NEWLINES=/(\r\n?|\n)/g,m=/(<[^<>]*>)/,y=/<(\/?)([^ >]*)(\s+(.*))?>/i,x=//i;exports.BR_TAG_ALL=//gi;var b=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,_=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,k=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function A(e,t){if(!e)return null;var r=e.match(t),a=r&&(r[3]||r[4]);return a&&L(a)}var T=/(^|;)\s*color:/;exports.plainText=function(e,t){for(var r=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,a=void 0!==t.allowedTags?t.allowedTags:["br"],n="...".length,i=e.split(m),o=[],l="",s=0,c=0;cn?o.push(u.substr(0,p-n)+"..."):o.push(u.substr(0,p));break}l=""}}return o.join("")};var M={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},S=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function L(e){return e.replace(S,(function(e,t){return("#"===t.charAt(0)?function(e){if(e>1114111)return;var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r(55232+(e>>10),e%1024+56320)}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):M[t])||e}))}function C(e,t,r){var n,i,o,l=r.horizontalAlign,s=r.verticalAlign||"top",c=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===s?function(){return c.bottom-n.height}:"middle"===s?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o="right"===l?function(){return c.right-n.width}:"center"===l?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var e=o()-u.left,t=i()-u.top,l=r.gd||{};if(r.gd){l._fullLayout._calcInverseTransform(l);var s=a.apply3DTransform(l._fullLayout._invTransform)(e,t);e=s[0],t=s[1]}return this.style({top:t+"px",left:e+"px","z-index":1e3}),this}}exports.convertEntities=L,exports.sanitizeHTML=function(e){e=e.replace(v," ");for(var t=document.createElement("p"),a=t,n=[],i=e.split(m),o=0;o=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),a.attr(i);var o=a.select(".js-link-to-tool"),l=a.select(".js-link-spacer"),u=a.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var r=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)r.on("click",(function(){y.sendDataToCloud(e)}));else{var a=window.location.pathname.split("/"),n=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}(e,o),l.text(o.text()&&u.text()?" - ":"")}},y.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var a=r.select(e).append("div").attr("id","hiddenform").style("display","none"),n=a.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return n.append("input").attr({type:"text",name:"data"}).node().value=y.graphJson(e,!1,"keepdata"),n.node().submit(),a.remove(),e.emit("plotly_afterexport"),!1}};var _=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],w=["year","month","dayMonth","dayMonthYear"];function k(e,t){var r=e._context.locale;r||(r="en-US");var a=!1,n={};function o(e){for(var r=!0,i=0;i1&&F.length>1){for(i.getComponentMethod("grid","sizeDefaults")(u,c),l=0;l15&&F.length>15&&0===c.shapes.length&&0===c.images.length,c._hasCartesian=c._has("cartesian"),c._hasGeo=c._has("geo"),c._hasGL3D=c._has("gl3d"),c._hasGL2D=c._has("gl2d"),c._hasTernary=c._has("ternary"),c._hasPie=c._has("pie"),y.linkSubplots(h,c,d,o),y.cleanPlot(h,c,d,o);var B=!(!o._has||!o._has("gl2d")),N=!(!c._has||!c._has("gl2d")),H=!(!o._has||!o._has("cartesian"))||B,W=!(!c._has||!c._has("cartesian"))||N;H&&!W?o._bgLayer.remove():W&&!H&&(c._shouldCreateBgLayer=!0),o._zoomlayer&&!e._dragging&&f({_fullLayout:o}),function(e,t){var r,a=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var n=0;n0){var d=1-2*l;a=Math.round(d*a),i=Math.round(d*i)}}var f=y.layoutAttributes.width.min,h=y.layoutAttributes.height.min;a1,g=!t.height&&Math.abs(r.height-i)>1;(g||p)&&(p&&(r.width=a),g&&(r.height=i)),e._initialAutoSize||(e._initialAutoSize={width:a,height:i}),y.sanitizeMargins(r)},y.supplyLayoutModuleDefaults=function(e,t,r,a){var n,o,l,c=i.componentsRegistry,u=t._basePlotModules,d=i.subplotsRegistry.cartesian;for(n in c)(l=c[n]).includeBasePlot&&l.includeBasePlot(e,t);for(var f in u.length||u.push(d),t._has("cartesian")&&(i.getComponentMethod("grid","contentDefaults")(e,t),d.finalizeSubplots(e,t)),t._subplots)t._subplots[f].sort(s.subplotSort);for(o=0;o1&&(r.l/=g,r.r/=g)}if(d){var v=(r.t+r.b)/d;v>1&&(r.t/=v,r.b/=v)}var m=void 0!==r.xl?r.xl:r.x,x=void 0!==r.xr?r.xr:r.x,b=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;f[t]={l:{val:m,size:r.l+p},r:{val:x,size:r.r+p},b:{val:_,size:r.b+p},t:{val:b,size:r.t+p}},h[t]=1}else delete f[t],delete h[t];if(!a._replotting)return y.doAutoMargin(e)}},y.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,a=t.height;t._size||(t._size={}),L(t);var o=t._size,l=t.margin,c=s.extendFlat({},o),u=l.l,f=l.r,h=l.t,p=l.b,g=t._pushmargin,v=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var m in g)v[m]||delete g[m];for(var x in g.base={l:{val:0,size:u},r:{val:1,size:f},t:{val:1,size:h},b:{val:0,size:p}},g){var b=g[x].l||{},_=g[x].b||{},w=b.val,k=b.size,A=_.val,T=_.size;for(var M in g){if(n(k)&&g[M].r){var S=g[M].r.val,C=g[M].r.size;if(S>w){var z=(k*S+(C-r)*w)/(S-w),O=(C*(1-w)+(k-r)*(1-S))/(S-w);z+O>u+f&&(u=z,f=O)}}if(n(T)&&g[M].t){var P=g[M].t.val,I=g[M].t.size;if(P>A){var F=(T*P+(I-a)*A)/(P-A),D=(I*(1-A)+(T-a)*(1-P))/(P-A);F+D>p+h&&(p=F,h=D)}}}}}var R=s.constrain(r-l.l-l.r,2,64),E=s.constrain(a-l.t-l.b,2,64),j=Math.max(0,r-R),B=Math.max(0,a-E);if(j){var N=(u+f)/j;N>1&&(u/=N,f/=N)}if(B){var H=(p+h)/B;H>1&&(p/=H,h/=H)}if(o.l=Math.round(u),o.r=Math.round(f),o.t=Math.round(h),o.b=Math.round(p),o.p=Math.round(l.pad),o.w=Math.round(r)-o.l-o.r,o.h=Math.round(a)-o.t-o.b,!t._replotting&&y.didMarginChange(c,o)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var W=3*(1+Object.keys(v).length);if(t._redrawFromAutoMarginCount0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){a=!0})),r.redraw&&e._transitionData._interruptCallbacks.push((function(){return i.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var o=0,l=0;function s(){return o++,function(){l++,a||l!==o||function(t){if(!e._transitionData)return;(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return i.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(n)}}r.runFn(s),setTimeout(s())}))}],o=s.syncOrAsync(n,e);return o&&o.then||(o=Promise.resolve()),o.then((function(){return e}))}y.didMarginChange=function(e,t){for(var r=0;r1)return!0}return!1},y.graphJson=function(e,t,r,a,n,i){(n&&t&&!e._fullData||n&&!t&&!e._fullLayout)&&y.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,c=(e._transitionData||{})._frames;function u(e,t){if("function"==typeof e)return t?"_function_":null;if(s.isPlainObject(e)){var a,n={};return Object.keys(e).sort().forEach((function(i){if(-1===["_","["].indexOf(i.charAt(0)))if("function"!=typeof e[i]){if("keepdata"===r){if("src"===i.substr(i.length-3))return}else if("keepstream"===r){if("string"==typeof(a=e[i+"src"])&&a.indexOf(":")>0&&!s.isPlainObject(e.stream))return}else if("keepall"!==r&&"string"==typeof(a=e[i+"src"])&&a.indexOf(":")>0)return;n[i]=u(e[i],t)}else t&&(n[i]="_function")})),n}return Array.isArray(e)?e.map((function(e){return u(e,t)})):s.isTypedArray(e)?s.simpleMap(e,s.identity):s.isJSDate(e)?s.ms2DateTimeLocal(+e):e}var d={data:(o||[]).map((function(e){var r=u(e);return t&&delete r.fit,r}))};if(!t&&(d.layout=u(l),n)){var f=l._size;d.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return e.framework&&e.framework.isPolar&&(d=e.framework.getConfig()),c&&(d.frames=u(c)),i&&(d.config=u(e._context,!0)),"object"===a?d:JSON.stringify(d)},y.modifyFrames=function(e,t){var r,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r=0;l--)if(o[l].enabled){r._indexToPoints=o[l]._indexToPoints;break}a&&a.calc&&(i=a.calc(e,r))}Array.isArray(i)&&i[0]||(i=[{x:u,y:u}]),i[0].t||(i[0].t={}),i[0].trace=r,p[t]=i}}for(P(c,f,h),n=0;n1?(L=["toggleHover"],C=["resetViews"]):p?(S=["zoomInGeo","zoomOutGeo"],L=["hoverClosestGeo"],C=["resetGeo"]):h?(L=["hoverClosest3d"],C=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(S=["zoomInMapbox","zoomOutMapbox"],L=["toggleHover"],C=["resetViewMapbox"]):m?L=["hoverClosestGl2d"]:g?L=["hoverClosestPie"]:_?(L=["hoverClosestCartesian","hoverCompareCartesian"],C=["resetViewSankey"]):L=["toggleHover"];f&&(L=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]);(function(e){for(var t=0;t=0?f.angularAxis.domain:r.extent(k),L=Math.abs(k[1]-k[0]);T&&!A&&(L=0);var C=S.slice();M&&A&&(C[1]+=L);var z=f.angularAxis.ticksCount||4;z>8&&(z=z/(z/8)+z%8),f.angularAxis.ticksStep&&(z=(C[1]-C[0])/z);var O=f.angularAxis.ticksStep||(C[1]-C[0])/(z*(f.minorTicks+1));w&&(O=Math.max(Math.round(O),1)),C[2]||(C[2]=O);var P=r.range.apply(this,C);if(P=P.map((function(e,t){return parseFloat(e.toPrecision(12))})),l=r.scale.linear().domain(C.slice(0,2)).range("clockwise"===f.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=l.domain(),u.layout.angularAxis.endPadding=M?L:0,void 0===(e=r.select(this).select("svg.chart-root"))||e.empty()){var I=(new DOMParser).parseFromString("' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '","application/xml"),F=this.appendChild(this.ownerDocument.importNode(I.documentElement,!0));e=r.select(F)}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 D,R=e.select(".chart-group"),E={fill:"none",stroke:f.tickColor},j={"font-size":f.font.size,"font-family":f.font.family,fill:f.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map((function(e,t){return" "+e+" 0 "+f.font.outlineColor})).join(",")};if(f.showLegend){D=e.select(".legend-group").attr({transform:"translate("+[x,f.margin.top]+")"}).style({display:"block"});var B=h.map((function(e,t){var r=i.util.cloneJson(e);return r.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",r.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,r.color="LinePlot"===e.geometry?e.strokeColor:e.color,r}));i.Legend().config({data:h.map((function(e,t){return e.name||"Element"+t})),legendConfig:a({},i.Legend.defaultConfig().legendConfig,{container:D,elements:B,reverseOrder:f.legend.reverseOrder})})();var N=D.node().getBBox();x=Math.min(f.width-N.width-f.margin.left-f.margin.right,f.height-f.margin.top-f.margin.bottom)/2,x=Math.max(10,x),_=[f.margin.left+x,f.margin.top+x],o.range([0,x]),u.layout.radialAxis.domain=o.domain(),D.attr("transform","translate("+[_[0]+x,_[1]-x]+")")}else D=e.select(".legend-group").style({display:"none"});e.attr({width:f.width,height:f.height}).style({opacity:f.opacity}),R.attr("transform","translate("+_+")").style({cursor:"crosshair"});var H=[(f.width-(f.margin.left+f.margin.right+2*x+(N?N.width:0)))/2,(f.height-(f.margin.top+f.margin.bottom+2*x))/2];if(H[0]=Math.max(0,H[0]),H[1]=Math.max(0,H[1]),e.select(".outer-group").attr("transform","translate("+H+")"),f.title&&f.title.text){var W=e.select("g.title-group text").style(j).text(f.title.text),V=W.node().getBBox();W.attr({x:_[0]-V.width/2,y:_[1]-x-20})}var G=e.select(".radial.axis-group");if(f.radialAxis.gridLinesVisible){var q=G.selectAll("circle.grid-circle").data(o.ticks(5));q.enter().append("circle").attr({class:"grid-circle"}).style(E),q.attr("r",o),q.exit().remove()}G.select("circle.outside-circle").attr({r:x}).style(E);var U=e.select("circle.background-circle").attr({r:x}).style({fill:f.backgroundColor,stroke:f.stroke});function Z(e,t){return l(e)%360+f.orientation}if(f.radialAxis.visible){var X=r.svg.axis().scale(o).ticks(5).tickSize(5);G.call(X).attr({transform:"rotate("+f.radialAxis.orientation+")"}),G.selectAll(".domain").style(E),G.selectAll("g>text").text((function(e,t){return this.textContent+f.radialAxis.ticksSuffix})).style(j).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===f.radialAxis.tickOrientation?"rotate("+-f.radialAxis.orientation+") translate("+[0,j["font-size"]]+")":"translate("+[0,j["font-size"]]+")"}}),G.selectAll("g>line").style({stroke:"black"})}var J=e.select(".angular.axis-group").selectAll("g.angular-tick").data(P),Y=J.enter().append("g").classed("angular-tick",!0);J.attr({transform:function(e,t){return"rotate("+Z(e)+")"}}).style({display:f.angularAxis.visible?"block":"none"}),J.exit().remove(),Y.append("line").classed("grid-line",!0).classed("major",(function(e,t){return t%(f.minorTicks+1)==0})).classed("minor",(function(e,t){return!(t%(f.minorTicks+1)==0)})).style(E),Y.selectAll(".minor").style({stroke:f.minorTickColor}),J.select("line.grid-line").attr({x1:f.tickLength?x-f.tickLength:0,x2:x}).style({display:f.angularAxis.gridLinesVisible?"block":"none"}),Y.append("text").classed("axis-text",!0).style(j);var Q=J.select("text.axis-text").attr({x:x+f.labelOffset,dy:n+"em",transform:function(e,t){var r=Z(e),a=x+f.labelOffset,n=f.angularAxis.tickOrientation;return"horizontal"==n?"rotate("+-r+" "+a+" 0)":"radial"==n?r<270&&r>90?"rotate(180 "+a+" 0)":null:"rotate("+(r<=180&&r>0?-90:90)+" "+a+" 0)"}}).style({"text-anchor":"middle",display:f.angularAxis.labelsVisible?"block":"none"}).text((function(e,t){return t%(f.minorTicks+1)!=0?"":w?w[e]+f.angularAxis.ticksSuffix:e+f.angularAxis.ticksSuffix})).style(j);f.angularAxis.rewriteTicks&&Q.text((function(e,t){return t%(f.minorTicks+1)!=0?"":f.angularAxis.rewriteTicks(this.textContent,t)}));var K=r.max(R.selectAll(".angular-tick text")[0].map((function(e,t){return e.getCTM().e+e.getBBox().width})));D.attr({transform:"translate("+[x+K,f.margin.top]+")"});var ee=e.select("g.geometry-group").selectAll("g").size()>0,te=e.select("g.geometry-group").selectAll("g.geometry").data(h);if(te.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),te.exit().remove(),h[0]||ee){var re=[];h.forEach((function(e,t){var r={};r.radialScale=o,r.angularScale=l,r.container=te.filter((function(e,r){return r==t})),r.geometry=e.geometry,r.orientation=f.orientation,r.direction=f.direction,r.index=t,re.push({data:e,geometryConfig:r})}));var ae=r.nest().key((function(e,t){return void 0!==e.data.groupId||"unstacked"})).entries(re),ne=[];ae.forEach((function(e,t){"unstacked"===e.key?ne=ne.concat(e.values.map((function(e,t){return[e]}))):ne.push(e.values)})),ne.forEach((function(e,t){var r;r=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var n=e.map((function(e,t){return a(i[r].defaultConfig(),e)}));i[r]().config(n)()}))}var ie,oe,le=e.select(".guides-group"),se=e.select(".tooltips-group"),ce=i.tooltipPanel().config({container:se,fontSize:8})(),ue=i.tooltipPanel().config({container:se,fontSize:8})(),de=i.tooltipPanel().config({container:se,hasTick:!0})();if(!A){var fe=le.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});R.on("mousemove.angular-guide",(function(e,t){var r=i.util.getMousePos(U).angle;fe.attr({x2:-x,transform:"rotate("+r+")"}).style({opacity:.5});var a=(r+180+360-f.orientation)%360;ie=l.invert(a);var n=i.util.convertToCartesian(x+12,r+180);ce.text(i.util.round(ie)).move([n[0]+_[0],n[1]+_[1]])})).on("mouseout.angular-guide",(function(e,t){le.select("line").style({opacity:0})}))}var he=le.select("circle").style({stroke:"grey",fill:"none"});R.on("mousemove.radial-guide",(function(e,t){var r=i.util.getMousePos(U).radius;he.attr({r:r}).style({opacity:.5}),oe=o.invert(i.util.getMousePos(U).radius);var a=i.util.convertToCartesian(r,f.radialAxis.orientation);ue.text(i.util.round(oe)).move([a[0]+_[0],a[1]+_[1]])})).on("mouseout.radial-guide",(function(e,t){he.style({opacity:0}),de.hide(),ce.hide(),ue.hide()})),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",(function(t,a){var n=r.select(this),o=this.style.fill,l="black",s=this.style.opacity||1;if(n.attr({"data-opacity":s}),o&&"none"!==o){n.attr({"data-fill":o}),l=r.hsl(o).darker().toString(),n.style({fill:l,opacity:1});var c={t:i.util.round(t[0]),r:i.util.round(t[1])};A&&(c.t=w[t[0]]);var u="t: "+c.t+", r: "+c.r,d=this.getBoundingClientRect(),f=e.node().getBoundingClientRect(),h=[d.left+d.width/2-H[0]-f.left,d.top+d.height/2-H[1]-f.top];de.config({color:l}).text(u),de.move(h)}else o=this.style.stroke||"black",n.attr({"data-stroke":o}),l=r.hsl(o).darker().toString(),n.style({stroke:l,opacity:1})})).on("mousemove.tooltip",(function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&de.show()})).on("mouseout.tooltip",(function(e,t){de.hide();var a=r.select(this),n=a.attr("data-fill");n?a.style({fill:n,opacity:a.attr("data-opacity")}):a.style({stroke:a.attr("data-stroke"),opacity:a.attr("data-opacity")})}))}))}(c),this},exports.config=function(e){if(!arguments.length)return s;var t=i.util.cloneJson(e);return t.data.forEach((function(e,t){s.data[t]||(s.data[t]={}),a(s.data[t],i.Axis.defaultConfig().data[0]),a(s.data[t],e)})),a(s.layout,i.Axis.defaultConfig().layout),a(s.layout,t.layout),this},exports.getLiveConfig=function(){return u},exports.getinputConfig=function(){return c},exports.radialScale=function(e){return o},exports.angularScale=function(e){return l},exports.svg=function(){return e},r.rebind(exports,d,"on"),exports},i.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}}},i.util={},i.DATAEXTENT="dataExtent",i.AREA="AreaChart",i.LINE="LinePlot",i.DOT="DotPlot",i.BAR="BarChart",i.util._override=function(e,t){for(var r in e)r in t&&(t[r]=e[r])},i.util._extend=function(e,t){for(var r in e)t[r]=e[r]},i.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},i.util.dataFromEquation2=function(e,t){var a=t||6;return r.range(0,360+a,a).map((function(t,r){var a=t*Math.PI/180;return[t,e(a)]}))},i.util.dataFromEquation=function(e,t,a){var n=t||6,i=[],o=[];r.range(0,360+n,n).forEach((function(t,r){var a=t*Math.PI/180,n=e(a);i.push(t),o.push(n)}));var l={t:i,r:o};return a&&(l.name=a),l},i.util.ensureArray=function(e,t){if(void 0===e)return null;var a=[].concat(e);return r.range(t).map((function(e,t){return a[t]||a[0]}))},i.util.fillArrays=function(e,t,r){return t.forEach((function(t,a){e[t]=i.util.ensureArray(e[t],r)})),e},i.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},i.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var r=t.shift();return e[r]&&(!t.length||objHasKeys(e[r],t))},i.util.sumArrays=function(e,t){return r.zip(e,t).map((function(e,t){return r.sum(e)}))},i.util.arrayLast=function(e){return e[e.length-1]},i.util.arrayEqual=function(e,t){for(var r=Math.max(e.length,t.length,1);r-- >=0&&e[r]===t[r];);return-2===r},i.util.flattenArray=function(e){for(var t=[];!i.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},i.util.deduplicate=function(e){return e.filter((function(e,t,r){return r.indexOf(e)==t}))},i.util.convertToCartesian=function(e,t){var r=t*Math.PI/180;return[e*Math.cos(r),e*Math.sin(r)]},i.util.round=function(e,t){var r=t||2,a=Math.pow(10,r);return Math.round(e*a)/a},i.util.getMousePos=function(e){var t=r.mouse(e.node()),a=t[0],n=t[1],i={};return i.x=a,i.y=n,i.pos=t,i.angle=180*(Math.atan2(n,a)+Math.PI)/Math.PI,i.radius=Math.sqrt(a*a+n*n),i},i.util.duplicatesCount=function(e){for(var t,r={},a={},n=0,i=e.length;n0)){var s=r.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:u(l),transform:function(e,r){return"rotate("+(t.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return p.fill(a,n,i)},"fill-opacity":0,stroke:function(e,t){return p.stroke(a,n,i)},"stroke-width":function(e,t){return p["stroke-width"](a,n,i)},"stroke-dasharray":function(e,t){return p["stroke-dasharray"](a,n,i)},opacity:function(e,t){return p.opacity(a,n,i)},display:function(e,t){return p.display(a,n,i)}})}};var d=t.angularScale.range(),f=Math.abs(d[1]-d[0])/o[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])}));c.arc=function(e,a,n){r.select(this).attr({class:"mark arc",d:h,transform:function(e,r){return"rotate("+(t.orientation+l(e[0])+90)+")"}})};var p={fill:function(t,r,a){return e[a].data.color},stroke:function(t,r,a){return e[a].data.strokeColor},"stroke-width":function(t,r,a){return e[a].data.strokeSize+"px"},"stroke-dasharray":function(t,r,a){return n[e[a].data.strokeDash]},opacity:function(t,r,a){return e[a].data.opacity},display:function(t,r,a){return void 0===e[a].data.visible||e[a].data.visible?"block":"none"}},g=r.select(this).selectAll("g.layer").data(o);g.enter().append("g").attr({class:"layer"});var v=g.selectAll("path.mark").data((function(e,t){return e}));v.enter().append("path").attr({class:"mark"}),v.style(p).each(c[t.geometryType]),v.exit().remove(),g.exit().remove()}))}return exports.config=function(t){return arguments.length?(t.forEach((function(t,r){e[r]||(e[r]={}),a(e[r],i.PolyChart.defaultConfig()),a(e[r],t)})),this):e},exports.getColorScale=function(){},r.rebind(exports,t,"on"),exports},i.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()}}},i.BarChart=function(){return i.PolyChart()},i.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},i.AreaChart=function(){return i.PolyChart()},i.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},i.DotPlot=function(){return i.PolyChart()},i.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},i.LinePlot=function(){return i.PolyChart()},i.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},i.Legend=function(){var e=i.Legend.defaultConfig(),t=r.dispatch("hover");function exports(){var t=e.legendConfig,n=e.data.map((function(e,r){return[].concat(e).map((function(e,n){var i=a({},t.elements[r]);return i.name=e,i.color=[].concat(t.elements[r].color)[n],i}))})),i=r.merge(n);i=i.filter((function(e,r){return t.elements[r]&&(t.elements[r].visibleInLegend||void 0===t.elements[r].visibleInLegend)})),t.reverseOrder&&(i=i.reverse());var o=t.container;("string"==typeof o||o.nodeName)&&(o=r.select(o));var l=i.map((function(e,t){return e.color})),s=t.fontSize,c=null==t.isContinuous?"number"==typeof i[0]:t.isContinuous,u=c?t.height:s*i.length,d=o.classed("legend-group",!0).selectAll("svg").data([0]),f=d.enter().append("svg").attr({width:300,height:u+s,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});f.append("g").classed("legend-axis",!0),f.append("g").classed("legend-marks",!0);var h=r.range(i.length),p=r.scale[c?"linear":"ordinal"]().domain(h).range(l),g=r.scale[c?"linear":"ordinal"]().domain(h)[c?"range":"rangePoints"]([0,u]);if(c){var v=d.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(l);v.enter().append("stop"),v.attr({offset:function(e,t){return t/(l.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),d.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var m=d.select(".legend-marks").selectAll("path.legend-mark").data(i);m.enter().append("path").classed("legend-mark",!0),m.attr({transform:function(e,t){return"translate("+[s/2,g(t)+s/2]+")"},d:function(e,t){var a,n,i,o=e.symbol;return i=3*(n=s),"line"===(a=o)?"M"+[[-n/2,-n/12],[n/2,-n/12],[n/2,n/12],[-n/2,n/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(a)?r.svg.symbol().type(a).size(i)():r.svg.symbol().type("square").size(i)()},fill:function(e,t){return p(t)}}),m.exit().remove()}var y=r.svg.axis().scale(g).orient("right"),x=d.select("g.legend-axis").attr({transform:"translate("+[c?t.colorBandWidth:s,s/2]+")"}).call(y);return x.selectAll(".domain").style({fill:"none",stroke:"none"}),x.selectAll("line").style({fill:"none",stroke:c?t.textColor:"none"}),x.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text((function(e,t){return i[t].name})),exports}return exports.config=function(t){return arguments.length?(a(e,t),this):e},r.rebind(exports,t,"on"),exports},i.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}}},i.tooltipPanel=function(){var e,t,n,o={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},l="tooltip-"+i.tooltipPanel.uid++,s=10,exports=function(){var r=(e=o.container.selectAll("g."+l).data([0])).enter().append("g").classed(l,!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:o.padding+s,dy:.3*+o.fontSize}),exports};return exports.text=function(a){var i=r.hsl(o.color).l,l=i>=.5?"#aaa":"white",c=i>=.5?"black":"white",u=a||"";t.style({fill:c,"font-size":o.fontSize+"px"}).text(u);var d=o.padding,f=t.node().getBBox(),h={fill:o.color,stroke:l,"stroke-width":"2px"},p=f.width+2*d+s,g=f.height+2*d;return n.attr({d:"M"+[[s,-g/2],[s,-g/4],[o.hasTick?0:s,0],[s,g/4],[s,g/2],[p,g/2],[p,-g/2]].join("L")+"Z"}).style(h),e.attr({transform:"translate("+[s,-g/2+2*d]+")"}),e.style({display:"block"}),exports},exports.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),exports},exports.hide=function(){if(e)return e.style({display:"none"}),exports},exports.show=function(){if(e)return e.style({display:"block"}),exports},exports.config=function(e){return a(o,e),exports},exports},i.tooltipPanel.uid=1,i.adapter={},i.adapter.plotly=function(){var exports={convert:function(e,t){var n={};if(e.data&&(n.data=e.data.map((function(e,r){var n=a({},e);return[[n,["marker","color"],["color"]],[n,["marker","opacity"],["opacity"]],[n,["marker","line","color"],["strokeColor"]],[n,["marker","line","dash"],["strokeDash"]],[n,["marker","line","width"],["strokeSize"]],[n,["marker","symbol"],["dotType"]],[n,["marker","size"],["dotSize"]],[n,["marker","barWidth"],["barWidth"]],[n,["line","interpolation"],["lineInterpolation"]],[n,["showlegend"],["visibleInLegend"]]].forEach((function(e,r){i.util.translator.apply(null,e.concat(t))})),t||delete n.marker,t&&delete n.groupId,t?("LinePlot"===n.geometry?(n.type="scatter",!0===n.dotVisible?(delete n.dotVisible,n.mode="lines+markers"):n.mode="lines"):"DotPlot"===n.geometry?(n.type="scatter",n.mode="markers"):"AreaChart"===n.geometry?n.type="area":"BarChart"===n.geometry&&(n.type="bar"),delete n.geometry):("scatter"===n.type?"lines"===n.mode?n.geometry="LinePlot":"markers"===n.mode?n.geometry="DotPlot":"lines+markers"===n.mode&&(n.geometry="LinePlot",n.dotVisible=!0):"area"===n.type?n.geometry="AreaChart":"bar"===n.type&&(n.geometry="BarChart"),delete n.mode,delete n.type),n})),!t&&e.layout&&"stack"===e.layout.barmode)){var o=i.util.duplicates(n.data.map((function(e,t){return e.geometry})));n.data.forEach((function(e,t){var r=o.indexOf(e.geometry);-1!=r&&(n.data[t].groupId=r)}))}if(e.layout){var l=a({},e.layout);if([[l,["plot_bgcolor"],["backgroundColor"]],[l,["showlegend"],["showLegend"]],[l,["radialaxis"],["radialAxis"]],[l,["angularaxis"],["angularAxis"]],[l.angularaxis,["showline"],["gridLinesVisible"]],[l.angularaxis,["showticklabels"],["labelsVisible"]],[l.angularaxis,["nticks"],["ticksCount"]],[l.angularaxis,["tickorientation"],["tickOrientation"]],[l.angularaxis,["ticksuffix"],["ticksSuffix"]],[l.angularaxis,["range"],["domain"]],[l.angularaxis,["endpadding"],["endPadding"]],[l.radialaxis,["showline"],["gridLinesVisible"]],[l.radialaxis,["tickorientation"],["tickOrientation"]],[l.radialaxis,["ticksuffix"],["ticksSuffix"]],[l.radialaxis,["range"],["domain"]],[l.angularAxis,["showline"],["gridLinesVisible"]],[l.angularAxis,["showticklabels"],["labelsVisible"]],[l.angularAxis,["nticks"],["ticksCount"]],[l.angularAxis,["tickorientation"],["tickOrientation"]],[l.angularAxis,["ticksuffix"],["ticksSuffix"]],[l.angularAxis,["range"],["domain"]],[l.angularAxis,["endpadding"],["endPadding"]],[l.radialAxis,["showline"],["gridLinesVisible"]],[l.radialAxis,["tickorientation"],["tickOrientation"]],[l.radialAxis,["ticksuffix"],["ticksSuffix"]],[l.radialAxis,["range"],["domain"]],[l.font,["outlinecolor"],["outlineColor"]],[l.legend,["traceorder"],["reverseOrder"]],[l,["labeloffset"],["labelOffset"]],[l,["defaultcolorrange"],["defaultColorRange"]]].forEach((function(e,r){i.util.translator.apply(null,e.concat(t))})),t?(void 0!==l.tickLength&&(l.angularaxis.ticklen=l.tickLength,delete l.tickLength),l.tickColor&&(l.angularaxis.tickcolor=l.tickColor,delete l.tickColor)):(l.angularAxis&&void 0!==l.angularAxis.ticklen&&(l.tickLength=l.angularAxis.ticklen),l.angularAxis&&void 0!==l.angularAxis.tickcolor&&(l.tickColor=l.angularAxis.tickcolor)),l.legend&&"boolean"!=typeof l.legend.reverseOrder&&(l.legend.reverseOrder="normal"!=l.legend.reverseOrder),l.legend&&"boolean"==typeof l.legend.traceorder&&(l.legend.traceorder=l.legend.traceorder?"reversed":"normal",delete l.legend.reverseOrder),l.margin&&void 0!==l.margin.t){var s=["t","r","b","l","pad"],c=["top","right","bottom","left","pad"],u={};r.entries(l.margin).forEach((function(e,t){u[c[s.indexOf(e.key)]]=e.value})),l.margin=u}t&&(delete l.needsEndSpacing,delete l.minorTickColor,delete l.minorTicks,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksStep,delete l.angularaxis.rewriteTicks,delete l.angularaxis.nticks,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksStep,delete l.radialaxis.rewriteTicks,delete l.radialaxis.nticks),n.layout=l}return n}};return exports}},"D/sHMWhy":function(e,exports){function t(e,t,r){var a=[];return e.forEach((function(e){var n=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[n]&&a.push({id:r?r.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[n],below:2===t[n]},otherFill:null})})),r&&r.selected(a),a}var r={union:function(e,r){return t(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return t(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return t(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return t(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return t(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};e.exports=r},D93E4Uqr:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),a=t("oaJ8xVPa").counter,n=t("qxp2i9QF").attributes,i=t("Vq8+Ip3e").idRegex,o=t("A5P9b9BX"),l={rows:{valType:"integer",min:1,role:"info",editType:"plot",description:["The number of rows in the grid. If you provide a 2D `subplots`","array or a `yaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",role:"info",editType:"plot",description:["Is the first row the top or the bottom? Note that columns","are always enumerated from left to right."].join(" ")},columns:{valType:"integer",min:1,role:"info",editType:"plot",description:["The number of columns in the grid. If you provide a 2D `subplots`","array, the length of its longest row is used as the default.","If you give an `xaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[a("xy").toString(),""],editType:"plot"},role:"info",editType:"plot",description:["Used for freeform grids, where some axes may be shared across subplots","but others are not. Each entry should be a cartesian subplot id, like","*xy* or *x3y2*, or ** to leave that cell empty. You may reuse x axes","within the same column, and y axes within the same row.","Non-cartesian subplots and traces that support `domain` can place themselves","in this grid separately using the `gridcell` attribute."].join(" ")},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[i.x.toString(),""],editType:"plot"},role:"info",editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an x axis id like *x*, *x2*, etc., or ** to","not put an x axis in that column. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `yaxes` is present,","will generate consecutive IDs."].join(" ")},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[i.y.toString(),""],editType:"plot"},role:"info",editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an y axis id like *y*, *y2*, etc., or ** to","not put a y axis in that row. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `xaxes` is present,","will generate consecutive IDs."].join(" ")},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",role:"info",editType:"plot",description:["If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`,","we can generate defaults using consecutive axis IDs, in two ways:","*coupled* gives one x axis per column and one y axis per row.","*independent* uses a new xy pair for each cell, left-to-right across each row","then iterating rows according to `roworder`."].join(" ")},xgap:{valType:"number",min:0,max:1,role:"info",editType:"plot",description:["Horizontal space between grid cells, expressed as a fraction","of the total width available to one cell. Defaults to 0.1","for coupled-axes grids and 0.2 for independent grids."].join(" ")},ygap:{valType:"number",min:0,max:1,role:"info",editType:"plot",description:["Vertical space between grid cells, expressed as a fraction","of the total height available to one cell. Defaults to 0.1","for coupled-axes grids and 0.3 for independent grids."].join(" ")},domain:n({name:"grid",editType:"plot",noGridCell:!0},{description:["The first and last cells end exactly at the domain","edges, with no grout around the edges."].join(" ")}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",role:"info",editType:"plot",description:["Sets where the x axis labels and titles go. *bottom* means","the very bottom of the grid. *bottom plot* is the lowest plot","that each x axis is used in. *top* and *top plot* are similar."].join(" ")},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",role:"info",editType:"plot",description:["Sets where the y axis labels and titles go. *left* means","the very left edge of the grid. *left plot* is the leftmost plot","that each y axis is used in. *right* and *right plot* are similar."].join(" ")},editType:"plot"};function s(e,t,r){var a=t[r+"axes"],n=Object.keys((e._splomAxes||{})[r]||{});return Array.isArray(a)?a:n.length?n:void 0}function c(e,t,r,a,n,i){var o=t(e+"gap",r),l=t("domain."+e);t(e+"side",a);for(var s=new Array(n),c=l[0],u=(l[1]-c)/(n-o),d=u*(1-o),f=0;f1){if(!f&&!h&&!p)"independent"===A("pattern")&&(f=!0);v._hasSubplotGrid=f;var x,b,_="top to bottom"===A("roworder"),w=f?.2:.1,k=f?.3:.1;g&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),v._domains={x:c("x",A,w,x,y),y:c("y",A,k,b,m,_)}}else delete t.grid}function A(e,t){return r.coerce(a,v,l,e,t)}},contentDefaults:function(e,t){var r=t.grid;if(r&&r._domains){var a,n,i,o,l,c,d,f=e.grid||{},h=t._subplots,p=r._hasSubplotGrid,g=r.rows,v=r.columns,m="independent"===r.pattern,y=r._axisMap={};if(p){var x=f.subplots||[];c=r.subplots=new Array(g);var b=1;for(a=0;aq!=(E=P[z][1])>=q&&(F=P[z-1][0],D=P[z][0],E-R&&(I=F+(D-F)*(q-R)/(E-R),H=Math.min(H,I),W=Math.max(W,I)));H=Math.max(H,0),W=Math.min(W,f._length);var U=o.defaultLine;return o.opacity(d.fillcolor)?U=d.fillcolor:o.opacity((d.line||{}).color)&&(U=d.line.color),r.extendFlat(e,{distance:e.maxHoverDistance,x0:H,x1:W,y0:q,y1:q,color:U,hovertemplate:!1}),delete e.index,d.text&&!Array.isArray(d.text)?e.text=String(d.text):e.text=d.name,[e]}}}},DaHMLOVM:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("+ELfTWmT"),n=t("R5um7Wku");function i(e,t,r){a.pointStyle(e.selectAll("path.point"),t,r)}function o(e,t,r){a.textPointStyle(e.selectAll("text"),t,r)}e.exports={style: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){i(r.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.text").each((function(t){o(r.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.trace path.js-line").call(a.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(a.fillGroupStyle),n.getComponentMethod("errorbars","style")(t)},stylePoints:i,styleText:o,styleOnSelect:function(e,t,r){var n=t[0].trace;n.selectedpoints?(a.selectedPointStyle(r.selectAll("path.point"),n),a.selectedTextStyle(r.selectAll("text"),n)):(i(r,n,e),o(r,n,e))}}},"E+KwxggA":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("yAcToaBS"),n=t("0Ft3SWJB"),i=t("7k8rh0sJ"),o=t("/oRevOrA"),l=t("+ELfTWmT"),s=t("R5um7Wku"),c=t("4JfnfFRI").tickText,u=t("5jl4DkMq"),d=u.recordMinTextSize,f=u.clearMinTextSize,h=t("Vs67SwPF"),p=t("Lpym/Kdp"),g=t("MzXAamq8"),v=t("msRxLST1"),m=v.text,y=v.textposition,x=t("ErV1Ibqz").appendArrayPointValue,b=g.TEXTPAD;function _(e){return e.id}function w(e){if(e.ids)return _}function k(e,t){return e0}function M(e){return"auto"===e?0:e}function S(e,t){var r=Math.PI/180*t,a=Math.abs(Math.sin(r)),n=Math.abs(Math.cos(r));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function L(e,t,r,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor||"end",u="end"===c,d="start"===c,f=((i.leftToRight||0)+1)/2,h=1-f,p=n.width,g=n.height,v=Math.abs(t-e),m=Math.abs(a-r),y=v>2*b&&m>2*b?b:0;v-=2*y,m-=2*y;var x=M(s);"auto"!==s||p<=v&&g<=m||!(p>v||g>m)||(p>m||g>v)&&p.01?G:function(e,t,r){return r&&e===t?e:Math.abs(e-t)>=2?G(e):e>t?Math.ceil(e):Math.floor(e)};j=q(j,B,D),B=q(B,j,D),N=q(N,H,!D),H=q(H,N,!D)}var U=A(n.ensureSingle(P,"path"),O,v,_);if(U.style("vector-effect","non-scaling-stroke").attr("d",isNaN((B-j)*(H-N))||W&&e._context.staticPlot?"M0,0Z":"M"+j+","+N+"V"+H+"H"+B+"V"+N+"Z").call(l.setClipUrl,t.layerClipId,e),!O.uniformtext.mode&&R){var Z=l.makePointStyleFns(f);l.singlePointStyle(u,U,f,Z,e)}!function(e,t,r,a,o,s,u,f,g,v,_){var w,T=t.xaxis,C=t.yaxis,z=e._fullLayout;function O(t,r,a){return n.ensureSingle(t,"text").text(r).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(l.font,a).call(i.convertToTspans,e)}var P=a[0].trace,I="h"===P.orientation,F=function(e,t,r,a,i){var o,l=t[0].trace;o=l.texttemplate?function(e,t,r,a,i){var o=t[0].trace,l=n.castOption(o,r,"texttemplate");if(!l)return"";var s,u,d,f,h="waterfall"===o.type,p="funnel"===o.type;"h"===o.orientation?(s="y",u=i,d="x",f=a):(s="x",u=a,d="y",f=i);function g(e){return c(u,e,!0).text}function v(e){return c(f,+e,!0).text}var m=t[r],y={};y.label=m.p,y.labelLabel=y[s+"Label"]=g(m.p);var b=n.castOption(o,m.i,"text");(0===b||b)&&(y.text=b);y.value=m.s,y.valueLabel=y[d+"Label"]=v(m.s);var _={};x(_,o,m.i),h&&(y.delta=+m.rawS||m.s,y.deltaLabel=v(y.delta),y.final=m.v,y.finalLabel=v(y.final),y.initial=y.final-y.delta,y.initialLabel=v(y.initial));p&&(y.value=m.s,y.valueLabel=v(y.value),y.percentInitial=m.begR,y.percentInitialLabel=n.formatPercent(m.begR),y.percentPrevious=m.difR,y.percentPreviousLabel=n.formatPercent(m.difR),y.percentTotal=m.sumR,y.percenTotalLabel=n.formatPercent(m.sumR));var w=n.castOption(o,m.i,"customdata");w&&(y.customdata=w);return n.texttemplateString(l,y,e._d3locale,_,y,o._meta||{})}(e,t,r,a,i):l.textinfo?function(e,t,r,a){var i=e[0].trace,o="h"===i.orientation,l="waterfall"===i.type,s="funnel"===i.type;function u(e){return c(o?a:r,e,!0).text}function d(e){return c(o?r:a,+e,!0).text}var f,h=i.textinfo,p=e[t],g=h.split("+"),v=[],m=function(e){return-1!==g.indexOf(e)};m("label")&&v.push(u(e[t].p));m("text")&&(0===(f=n.castOption(i,p.i,"text"))||f)&&v.push(f);if(l){var y=+p.rawS||p.s,x=p.v,b=x-y;m("initial")&&v.push(d(b)),m("delta")&&v.push(d(y)),m("final")&&v.push(d(x))}if(s){m("value")&&v.push(d(p.s));var _=0;m("percent initial")&&_++,m("percent previous")&&_++,m("percent total")&&_++;var w=_>1;m("percent initial")&&(f=n.formatPercent(p.begR),w&&(f+=" of initial"),v.push(f)),m("percent previous")&&(f=n.formatPercent(p.difR),w&&(f+=" of previous"),v.push(f)),m("percent total")&&(f=n.formatPercent(p.sumR),w&&(f+=" of total"),v.push(f))}return v.join("
")}(t,r,a,i):p.getValue(l.text,r);return p.coerceString(m,o)}(z,a,o,T,C);w=function(e,t){var r=p.getValue(e.textposition,t);return p.coerceEnumerated(y,r)}(P,o);var D="stack"===v.mode||"relative"===v.mode,R=a[o],E=!D||R._outmost;if(!F||"none"===w||(R.isBlank||s===u||f===g)&&("auto"===w||"inside"===w))return void r.select("text").remove();var j=z.font,B=h.getBarColor(a[o],P),N=h.getInsideTextFont(P,o,j,B),H=h.getOutsideTextFont(P,o,j),W=r.datum();I?"log"===T.type&&W.s0<=0&&(s=T.range[0]0&&U>0&&(q<=X&&U<=J||q<=J&&U<=X||(I?X>=q*(J/U):J>=U*(X/q)))?w="inside":(w="outside",V.remove(),V=null);else w="inside"}if(!V){var Y=(V=O(r,F,Z=n.ensureUniformFontSize(e,"outside"===w?H:N))).attr("transform");if(V.attr("transform",""),q=(G=l.bBox(V.node())).width,U=G.height,V.attr("transform",Y),q<=0||U<=0)return void V.remove()}var Q,K=P.textangle;Q="outside"===w?function(e,t,r,a,n,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,u=n.width,d=n.height,f=Math.abs(t-e),h=Math.abs(a-r);o=l?h>2*b?b:0:f>2*b?b:0;var p=1;s&&(p=l?Math.min(1,h/d):Math.min(1,f/u));var g=M(c),v=S(n,g),m=(l?v.x:v.y)/2,y=(n.left+n.right)/2,x=(n.top+n.bottom)/2,_=(e+t)/2,w=(r+a)/2,A=0,T=0,L=l?k(t,e):k(r,a);l?(_=t-L*o,A=L*m):(w=a+L*o,T=-L*m);return{textX:y,textY:x,targetX:_,targetY:w,anchorX:A,anchorY:T,scale:p,rotate:g}}(s,u,f,g,G,{isHorizontal:I,constrained:"both"===P.constraintext||"outside"===P.constraintext,angle:K}):L(s,u,f,g,G,{isHorizontal:I,constrained:"both"===P.constraintext||"inside"===P.constraintext,angle:K,anchor:P.insidetextanchor});Q.fontSize=Z.size,d(P.type,Q,z),R.transform=Q,A(V,z,v,_).attr("transform",n.getTextTransform(Q))}(e,t,P,s,g,j,B,N,H,v,_),t.layerClipId&&l.hideOutsideRangePoint(u,P.select("text"),C,z,f.xcalendar,f.ycalendar)}));var N=!1===f.cliponaxis;l.setClipUrl(u,N?null:t.layerClipId,e)}));s.getComponentMethod("errorbars","plot")(e,P,t,v)},toMoveInsideBar:L}},E0Erayg3:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("yAcToaBS"),n=t("y1n3bGum"),i=t("0Ft3SWJB"),o=i.strTranslate,l=i.strRotate,s=t("6NEikfh9"),c=t("7k8rh0sJ"),u=t("FLLMPlzg"),d=t("+ELfTWmT"),f=t("/oRevOrA"),h=t("WFvnZ06c"),p=t("4JfnfFRI"),g=t("R5um7Wku"),v=t("ErV1Ibqz"),m=t("HoF8EwuB"),y=t("sAx/oUxG"),x=t("2Lvd5/R9"),b=m.YANGLE,_=Math.PI*b/180,w=1/Math.sin(_),k=Math.cos(_),A=Math.sin(_),T=m.HOVERARROWSIZE,M=m.HOVERTEXTPAD;function S(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa,e.ya||""].join(",")}exports.hover=function(e,t,n,o){e=i.getGraphDiv(e),i.throttle(e._fullLayout._uid+m.HOVERID,m.HOVERMINTIME,(function(){!function(e,t,n,o){n||(n="xy");var l=Array.isArray(n)?n:[n],c=e._fullLayout,d=c._plots||[],p=d[n],m=c._has("cartesian");if(p){var y=p.overlays.map((function(e){return e.id}));l=l.concat(y)}for(var x=l.length,b=new Array(x),_=new Array(x),k=!1,A=0;Ab[0]._length||te<0||te>_[0]._length)return h.unhoverRaw(e,t)}if(t.pointerX=ee+b[0]._offset,t.pointerY=te+_[0]._offset,z="xval"in t?v.flat(l,t.xval):v.p2c(b,ee),D="yval"in t?v.flat(l,t.yval):v.p2c(_,te),!a(z[0])||!a(D[0]))return i.warn("Fx.hover failed",t,e),h.unhoverRaw(e,t)}var ne=1/0;function ie(e,r){for(E=0;EU&&(J.splice(0,U),ne=J[0].distance),m&&0!==X&&0===J.length){q.distance=X,q.index=!1;var d=B._module.hoverPoints(q,V,G,"closest",c._hoverlayer);if(d&&(d=d.filter((function(e){return e.spikeDistance<=X}))),d&&d.length){var h,p=d.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(p.length){var g=p[0];a(g.x0)&&a(g.y0)&&(h=le(g),(!Q.vLinePoint||Q.vLinePoint.spikeDistance>h.spikeDistance)&&(Q.vLinePoint=h))}var y=d.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(y.length){var x=y[0];a(x.x0)&&a(x.y0)&&(h=le(x),(!Q.hLinePoint||Q.hLinePoint.spikeDistance>h.spikeDistance)&&(Q.hLinePoint=h))}}}}}function oe(e,t){for(var r,a=null,n=1/0,i=0;i1||J.length>1)||"closest"===L&&K&&J.length>1,Se=f.combine(c.plot_bgcolor||f.background,c.paper_bgcolor),Le={hovermode:L,rotateLabels:Me,bgColor:Se,container:c._hoverlayer,outerContainer:c._paperdiv,commonLabelOpts:c.hoverlabel,hoverdistance:c.hoverdistance},Ce=C(J,Le,e);v.isUnifiedHover(L)||(!function(e,t,r){var a,n,i,o,l,s,c,u=0,d=1,f=e.size(),h=new Array(f),p=0;function g(e){var t=e[0],r=e[e.length-1];if(n=t.pmin-t.pos-t.dp+t.size,i=r.pos+r.dp+r.size-t.pmax,n>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=n;a=!1}if(!(i<.01)){if(n<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;a=!1}if(a){var c=0;for(o=0;ot.pmax&&c++;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos>t.pmax-1&&(s.del=!0,c--);for(o=0;o=0;l--)e[l].dp-=i;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos+s.dp+s.size>t.pmax&&(s.del=!0,c--)}}}e.each((function(e){var a=e[t],n="x"===a._id.charAt(0),i=a.range;0===p&&i&&i[0]>i[1]!==n&&(d=-1),h[p++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(n?w:1)/2,pmin:0,pmax:n?r.width:r.height}]})),h.sort((function(e,t){return e[0].posref-t[0].posref||d*(t[0].traceIndex-e[0].traceIndex)}));for(;!a&&u<=f;){for(u++,a=!0,o=0;o.01&&y.pmin===x.pmin&&y.pmax===x.pmax){for(l=m.length-1;l>=0;l--)m[l].dp+=n;for(v.push.apply(v,m),h.splice(o+1,1),c=0,l=v.length-1;l>=0;l--)c+=v[l].dp;for(i=c/v.length,l=v.length-1;l>=0;l--)v[l].dp-=i;a=!1}else o++}h.forEach(g)}for(o=h.length-1;o>=0;o--){var b=h[o];for(l=b.length-1;l>=0;l--){var _=b[l],k=_.datum;k.offset=_.dp,k.del=_.del}}}(Ce,Me?"xa":"ya",c),O(Ce,Me,c._invScaleX,c._invScaleY));if(t.target&&t.target.tagName){var ze=g.getComponentMethod("annotations","hasClickToShow")(e,we);u(r.select(t.target),ze?"pointer":"")}if(!t.target||o||!function(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var a=r.length-1;a>=0;a--){var n=r[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,_e))return;_e&&e.emit("plotly_unhover",{event:t,points:_e});e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:b,yaxes:_,xvals:z,yvals:D})}(e,t,n,o)}))},exports.loneHover=function(e,t){var a=!0;Array.isArray(e)||(a=!1,e=[e]);var n=e.map((function(e){return{color:e.color||f.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,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,eventData:e.eventData||!1,hovertemplateLabels:e.hovertemplateLabels||!1}})),i=r.select(t.container),o=t.outerContainer?r.select(t.outerContainer):i,l={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||f.background,container:i,outerContainer:o},s=C(n,l,t.gd),c=0,u=0;s.sort((function(e,t){return e.y0-t.y0})).each((function(e,r){var a=e.y0-e.by/2;e.offset=a-5([\s\S]*)<\/extra>/;function C(e,t,a){var n=a._fullLayout,s=t.hovermode,u=t.rotateLabels,h=t.bgColor,p=t.container,g=t.outerContainer,_=t.commonLabelOpts||{},w=t.fontFamily||m.HOVERFONT,k=t.fontSize||m.HOVERFONTSIZE,A=e[0],L=A.xa,C=A.ya,O="y"===s.charAt(0)?"yLabel":"xLabel",P=A[O],I=(String(P)||"").split(" ")[0],F=g.node().getBoundingClientRect(),D=F.top,R=F.width,E=F.height,j=void 0!==P&&A.distance<=t.hoverdistance&&("x"===s||"y"===s);if(j){var B,N,H=!0;for(B=0;Bn.width-S?(m=n.width-S,l.attr("d","M"+(S-T)+",0L"+S+","+b+T+"v"+b+(2*M+x.height)+"H-"+S+"V"+b+T+"H"+(S-2*T)+"Z")):l.attr("d","M0,0L"+T+","+b+T+"H"+(M+x.width/2)+"v"+b+(2*M+x.height)+"H-"+(M+x.width/2)+"V"+b+T+"H-"+T+"Z")}else{var z,O,I;"right"===C.side?(z="start",O=1,I="",m=L._offset+L._length):(z="end",O=-1,I="-",m=L._offset),y=C._offset+(A.y0+A.y1)/2,u.attr("text-anchor",z),l.attr("d","M0,0L"+I+T+","+T+"V"+(M+x.height/2)+"h"+I+(2*M+x.width)+"V-"+(M+x.height/2)+"H"+I+T+"V-"+T+"Z");var F,R=x.height/2,E=D-x.top-R,j="clip"+n._uid+"commonlabel"+C._id;if(m=0?re-=ie:re+=2*M;var oe=ne.height+2*M,le=te+oe>=E;return oe<=E&&(te<=D?te=C._offset+2*M:le&&(te=E-oe)),ae.attr("transform",o(re,te)),ae}var se=p.selectAll("g.hovertext").data(e,(function(e){return S(e)}));return se.enter().append("g").classed("hovertext",!0).each((function(){var e=r.select(this);e.append("rect").call(f.fill,f.addOpacity(h,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(d.font,w,k)})),se.exit().remove(),se.each((function(e){var t=r.select(this).attr("transform",""),i=e.color;Array.isArray(i)&&(i=i[e.eventData[0].pointNumber]);var p=e.bgcolor||i,g=f.combine(f.opacity(p)?p:f.defaultLine,h),v=f.combine(f.opacity(i)?i:f.defaultLine,h),m=e.borderColor||f.contrast(g),y=z(e,j,s,n,P,t),x=y[0],_=y[1],A=t.select("text.nums").call(d.font,e.fontFamily||w,e.fontSize||k,e.fontColor||m).text(x).attr("data-notex",1).call(c.positionText,0,0).call(c.convertToTspans,a),S=t.select("text.name"),L=0,C=0;if(_&&_!==x){S.call(d.font,e.fontFamily||w,e.fontSize||k,v).text(_).attr("data-notex",1).call(c.positionText,0,0).call(c.convertToTspans,a);var O=S.node().getBoundingClientRect();L=O.width+2*M,C=O.height+2*M}else S.remove(),t.select("rect").remove();t.select("path").style({fill:g,stroke:m});var I,F,B=A.node().getBoundingClientRect(),N=e.xa._offset+(e.x0+e.x1)/2,H=e.ya._offset+(e.y0+e.y1)/2,W=Math.abs(e.x1-e.x0),V=Math.abs(e.y1-e.y0),G=B.width+T+M+L;if(e.ty0=D-B.top,e.bx=B.width+2*M,e.by=Math.max(B.height+2*M,C),e.anchor="start",e.txwidth=B.width,e.tx2width=L,e.offset=0,u)e.pos=N,I=H+V/2+G<=E,F=H-V/2-G>=0,"top"!==e.idealAlign&&I||!F?I?(H+=V/2,e.anchor="start"):e.anchor="middle":(H-=V/2,e.anchor="end");else if(e.pos=H,I=N+W/2+G<=R,F=N-W/2-G>=0,"left"!==e.idealAlign&&I||!F)if(I)N+=W/2,e.anchor="start";else{e.anchor="middle";var q=G/2,U=N+q-R,Z=N-q;U>0&&(N-=U),Z<0&&(N+=-Z)}else N-=W/2,e.anchor="end";A.attr("text-anchor",e.anchor),L&&S.attr("text-anchor",e.anchor),t.attr("transform",o(N,H)+(u?l(b):""))})),se}function z(e,t,r,a,n,o){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=i.templateString(e.name,e.trace._meta)),l=D(e.name,e.nameLength)),void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"
"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[r.charAt(0)+"Label"]===n?s=e[("x"===r.charAt(0)?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(s=e.yLabel):s=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(s+=(s?"
":"")+e.text),void 0!==e.extraText&&(s+=(s?"
":"")+e.extraText),o&&""===s&&!e.hovertemplate&&(""===l&&o.remove(),s=l);var c=a._d3locale,u=e.hovertemplate||!1,d=e.hovertemplateLabels||e,f=e.eventData[0]||{};return u&&(s=(s=i.hovertemplateString(u,d,c,f,e.trace._meta)).replace(L,(function(t,r){return l=D(r,e.nameLength),""}))),[s,l]}function O(e,t,a,n){var i=function(e){return e*a},o=function(e){return e*n};e.each((function(e){var a=r.select(this);if(e.del)return a.remove();var n=a.select("text.nums"),l=e.anchor,s="end"===l?-1:1,u={start:1,end:-1,middle:0}[l],f=u*(T+M),h=f+u*(e.txwidth+M),p=0,g=e.offset,v="middle"===l;v&&(f-=e.tx2width/2,h+=e.txwidth/2+M),t&&(g*=-A,p=e.offset*k),a.select("path").attr("d",v?"M-"+i(e.bx/2+e.tx2width/2)+","+o(g-e.by/2)+"h"+i(e.bx)+"v"+o(e.by)+"h-"+i(e.bx)+"Z":"M0,0L"+i(s*T+p)+","+o(T+g)+"v"+o(e.by/2-T)+"h"+i(s*e.bx)+"v-"+o(e.by)+"H"+i(s*T+p)+"V"+o(g-T)+"Z");var m=p+f,y=g+e.ty0-e.by/2+M,x=e.textAlign||"auto";"auto"!==x&&("left"===x&&"start"!==l?(n.attr("text-anchor","start"),m=v?-e.bx/2-e.tx2width/2+M:-e.bx-M):"right"===x&&"end"!==l&&(n.attr("text-anchor","end"),m=v?e.bx/2-e.tx2width/2-M:e.bx+M)),n.call(c.positionText,i(m),o(y)),e.tx2width&&(a.select("text.name").call(c.positionText,i(h+u*M+p),o(g+e.ty0-e.by/2+M)),a.select("rect").call(d.setRect,i(h+(u-1)*e.tx2width/2+p),o(g-e.by/2-1),i(e.tx2width),o(e.by+2)))}))}function P(e,t){var r=e.index,n=e.trace||{},o=e.cd[0],l=e.cd[r]||{};function s(e){return e||a(e)&&0===e}var c=Array.isArray(r)?function(e,t){var a=i.castOption(o,r,e);return s(a)?a:i.extractOption({},n,"",t)}:function(e,t){return i.extractOption(l,n,e,t)};function u(t,r,a){var n=c(r,a);s(n)&&(e[t]=n)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===n.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=i.constrain(e.x0,0,e.xa._length),e.x1=i.constrain(e.x1,0,e.xa._length),e.y0=i.constrain(e.y0,0,e.ya._length),e.y1=i.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:p.hoverLabelText(e.xa,e.xLabelVal),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:p.hoverLabelText(e.ya,e.yLabelVal),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var d=p.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+d+" / -"+p.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+d,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var f=p.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+f+" / -"+p.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+f,"y"===t&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&"all"!==h&&(-1===(h=Array.isArray(h)?h:h.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===h.indexOf("y")&&(e.yLabel=void 0),-1===h.indexOf("z")&&(e.zLabel=void 0),-1===h.indexOf("text")&&(e.text=void 0),-1===h.indexOf("name")&&(e.name=void 0)),e}function I(e,t,r){var a,i,o=r.container,l=r.fullLayout,s=l._size,c=r.event,u=!!t.hLinePoint,h=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),h||u){var g=f.combine(l.plot_bgcolor,l.paper_bgcolor);if(u){var v,m,y=t.hLinePoint;a=y&&y.xa,"cursor"===(i=y&&y.ya).spikesnap?(v=c.pointerX,m=c.pointerY):(v=a._offset+y.x,m=i._offset+y.y);var x,b,_=n.readability(y.color,g)<1.5?f.contrast(g):y.color,w=i.spikemode,k=i.spikethickness,A=i.spikecolor||_,T=p.getPxPosition(e,i);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=T,b=v),-1!==w.indexOf("across")){var M=i._counterDomainMin,S=i._counterDomainMax;"free"===i.anchor&&(M=Math.min(M,i.position),S=Math.max(S,i.position)),x=s.l+M*s.w,b=s.l+S*s.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:m,y2:m,"stroke-width":k,stroke:A,"stroke-dasharray":d.dashStyle(i.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:m,y2:m,"stroke-width":k+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:T+("right"!==i.side?k:-k),cy:m,r:k,fill:A}).classed("spikeline",!0)}if(h){var L,C,z=t.vLinePoint;a=z&&z.xa,i=z&&z.ya,"cursor"===a.spikesnap?(L=c.pointerX,C=c.pointerY):(L=a._offset+z.x,C=i._offset+z.y);var O,P,I=n.readability(z.color,g)<1.5?f.contrast(g):z.color,F=a.spikemode,D=a.spikethickness,R=a.spikecolor||I,E=p.getPxPosition(e,a);if(-1!==F.indexOf("toaxis")||-1!==F.indexOf("across")){if(-1!==F.indexOf("toaxis")&&(O=E,P=C),-1!==F.indexOf("across")){var j=a._counterDomainMin,B=a._counterDomainMax;"free"===a.anchor&&(j=Math.min(j,a.position),B=Math.max(B,a.position)),O=s.t+(1-B)*s.h,P=s.t+(1-j)*s.h}o.insert("line",":first-child").attr({x1:L,x2:L,y1:O,y2:P,"stroke-width":D,stroke:R,"stroke-dasharray":d.dashStyle(a.spikedash,D)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:L,x2:L,y1:O,y2:P,"stroke-width":D+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==F.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:L,cy:E-("top"!==a.side?D:-D),r:D,fill:R}).classed("spikeline",!0)}}}function F(e,t){return!t||(t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint)}function D(e,t){return c.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}},E0ymBWcp:function(e,exports,t){"use strict";e.exports={percent:function(e,t){for(var r=e.length,a=100/t,n=0;n=0&&r.index0&&s=0&&u(m),i.attr("d",p(t)),T&&!v)&&(A=function(e,t){for(var r=0;r1&&(2!==e.length||"Z"!==e[1][0])&&(0===k&&(e[0][0]="M"),t[w]=e,y(),x())}}()}}function P(e,r){!function(e,r){if(t.length)for(var a=0;a0;)f=h.c2p(k[y]),y--;for(f0;)m=p.c2p(A[y]),y--;if(m0)){var g=function(e,t,r){for(var a=r.filter((function(r){return t[r].anchor===e._id})),n=0,i=0;i0&&i.log("Clearing previous rejected promises from queue."),e._promises=[]},exports.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(o.subplotsRegistry.cartesian||{}).attrRegex,l=(o.subplotsRegistry.polar||{}).attrRegex,u=(o.subplotsRegistry.ternary||{}).attrRegex,d=(o.subplotsRegistry.gl3d||{}).attrRegex,p=Object.keys(e);for(t=0;t3?(P.x=1.02,P.xanchor="left"):P.x<-2&&(P.x=-.02,P.xanchor="right"),P.y>3?(P.y=1.02,P.yanchor="bottom"):P.y<-2&&(P.y=-.02,P.yanchor="top")),h(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),s.clean(e),e.template&&e.template.layout&&exports.cleanLayout(e.template.layout),e},exports.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}exports.hasParent=function(e,t){for(var r=x(t);r;){if(r in e)return!0;r=x(r)}return!1};var b=["x","y","z"];exports.clearAxisTypes=function(e,t,r){for(var a=0;a0&&((k=L-l(x)-s(b))>C?A/k>z&&(_=x,w=b,z=A/k):A/L>z&&(_={val:x.val,nopad:1},w={val:b.val,nopad:1},z=A/L));if(g===v){var O=g-1,P=g+1;if(M)if(0===g)i=[0,1];else{var I=(g>0?p:h).reduce((function(e,t){return Math.max(e,s(t))}),0),F=g/(1-Math.min(.5,I/L));i=g>0?[0,F]:[F,0]}else i=S?[Math.max(0,O),Math.max(1,P)]:[O,P]}else M?(_.val>=0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:0,nopad:1})):S&&(_.val-z*l(_)<0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:1,nopad:1})),z=(w.val-_.val-u(t,x.val,b.val))/(L-l(_)-s(w)),i=[_.val-z*l(_),w.val+z*s(w)];return m&&i.reverse(),a.simpleMap(i,t.l2r||Number)}function u(e,t,r){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(t,r),i=0;i0?a.ppadplus:a.ppadminus)||a.ppad||0),S=T((e._m>0?a.ppadminus:a.ppadplus)||a.ppad||0),L=T(a.vpadplus||a.vpad),C=T(a.vpadminus||a.vpad);if(!k){if(f=1/0,g=-1/0,w)for(i=0;i0&&(f=o),o>g&&o-n&&(f=o),o>g&&o=P;i--)O(i);return{min:m,max:y,opts:a}},concatExtremes:f};function f(e,t,r){var a,n,i,o=t._id,s=e._fullData,c=e._fullLayout,u=[],d=[];function g(e,t){for(a=0;a=r&&(c.extrapad||!o)){l=!1;break}n(t,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&0===t;e.push({val:t,pad:u?0:r,extrapad:!u&&o})}}function v(e){return r(e)&&Math.abs(e)=t}},Ib4Cm2pX:function(e,exports,t){"use strict";var r=t("yAcToaBS"),a=t("0Ft3SWJB"),n=t("R5um7Wku"),i=t("4JfnfFRI"),o=t("QwKhVvvj"),l=t("zGjfuAgi"),s=t("E0ymBWcp"),c=t("8WyRVZ33"),u=t("2RQvW7Lc");function d(e,t,o,l,s){var c,u,f,h,p,g,v,m=l+"bins",y=e._fullLayout,x=t["_"+l+"bingroup"],b=y._histogramBinOpts[x],_="overlay"===y.barmode,w=function(e){return o.r2c(e,0,h)},k=function(e){return o.c2r(e,0,h)},A="date"===o.type?function(e){return e||0===e?a.cleanDate(e,null,h):null}:function(e){return r(e)?Number(e):null};function T(e,t,r){t[e+"Found"]?(t[e]=A(t[e]),null===t[e]&&(t[e]=r[e])):(g[e]=t[e]=r[e],a.nestedProperty(u[0],m+"."+e).set(r[e]))}if(t["_"+l+"autoBinFinished"])delete t["_"+l+"autoBinFinished"];else{u=b.traces;var M=[],S=!0,L=!1,C=!1;for(c=0;co.r2l(j)&&(N=i.tickIncrement(N,b.size,!0,h)),F.start=o.l2r(N),E||a.nestedProperty(t,m+".start").set(F.start)}var H=b.end,W=o.r2l(I.end),V=void 0!==W;if((b.endFound||V)&&W!==o.r2l(H)){var G=V?W:a.aggNums(Math.max,null,p);F.end=o.l2r(G),V||a.nestedProperty(t,m+".start").set(F.end)}var q="autobin"+l;return!1===t._input[q]&&(t._input[m]=a.extendFlat({},t[m]||{}),delete t._input[q],delete t[q]),[F,p]}e.exports={calc:function(e,t){var n,f,h,p,g=[],v=[],m=i.getFromId(e,"h"===t.orientation?t.yaxis:t.xaxis),y="h"===t.orientation?"y":"x",x={x:"y",y:"x"}[y],b=t[y+"calendar"],_=t.cumulative,w=d(e,t,m,y),k=w[0],A=w[1],T="string"==typeof k.size,M=[],S=T?M:k,L=[],C=[],z=[],O=0,P=t.histnorm,I=t.histfunc,F=-1!==P.indexOf("density");_.enabled&&F&&(P=P.replace(/ ?density$/,""),F=!1);var D,R="max"===I||"min"===I?null:0,E=l.count,j=s[P],B=!1,N=function(e){return m.r2c(e,0,b)};for(a.isArrayOrTypedArray(t[x])&&"count"!==I&&(D=t[x],B="avg"===I,E=l[I]),n=N(k.start),h=N(k.end)+(n-i.tickIncrement(n,k.size,!1,b))/1e6;n=0&&p=0;a--)l(a);else if("increasing"===t){for(a=1;a=0;a--)e[a]+=e[a+1];"exclude"===r&&(e.push(0),e.shift())}}(v,_.direction,_.currentbin);var Y=Math.min(g.length,v.length),Q=[],K=0,ee=Y-1;for(n=0;n=K;n--)if(v[n]){ee=n;break}for(n=K;n<=ee;n++)if(r(g[n])&&r(v[n])){var te={p:g[n],s:v[n],b:0};_.enabled||(te.pts=z[n],q?te.ph0=te.ph1=z[n].length?A[z[n][0]]:g[n]:(t._computePh=!0,te.ph0=V(M[n]),te.ph1=V(M[n+1],!0))),Q.push(te)}return 1===Q.length&&(Q[0].width1=i.tickIncrement(Q[0].p,k.size,!1,b)-Q[0].p),o(Q,t),a.isArrayOrTypedArray(t.selectedpoints)&&a.tagSelected(Q,t,X),Q},calcAllAutoBins:d}},IejtdMW5:function(e,exports,t){"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(" ")}}},IhK9L9VC:function(e,exports,t){"use strict";var r=t("R5um7Wku"),a=t("0Ft3SWJB"),n=t("4JfnfFRI"),i=t("qPokwaSi"),o=t("ixeefcrV"),l=t("lNueT97u"),s=t("RF44uHEW"),c=t("tLYo6Exq"),u=t("bujHEgrl"),d=t("6J/IMU+T"),f=t("ZPYyNz95"),h=t("46lPXjlm").BADNUM;function p(e){for(var t=[],r=e.length,a=0;aD){I("x scale is not linear");break}}if(x.length&&"fast"===O){var R=(x[x.length-1]-x[0])/(x.length-1),E=Math.abs(R/100);for(A=0;AE){I("y scale is not linear");break}}}var j=a.maxRowLength(k),B="scaled"===t.xtype?"":g,N=f(t,B,v,m,j,M),H="scaled"===t.ytype?"":x,W=f(t,H,b,_,k.length,S);z||(t._extremes[M._id]=n.findExtremes(M,N),t._extremes[S._id]=n.findExtremes(S,W));var V={x:N,y:W,z:k,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&y&&(V.orig_x=y),t.yperiodalignment&&w&&(V.orig_y=w),B&&B.length===N.length-1&&(V.xCenter=B),H&&H.length===W.length-1&&(V.yCenter=H),C&&(V.xRanges=T.xRanges,V.yRanges=T.yRanges,V.pts=T.pts),L||l(e,t,{vals:k,cLetter:"z"}),L&&t.contours&&"heatmap"===t.contours.coloring){var G={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};V.xfill=f(G,B,v,m,j,M),V.yfill=f(G,H,b,_,k.length,S)}return[V]}},"It6vW0T+":function(e,exports,t){"use strict";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},"J+WNd9JU":function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),a=t("JdrF9yG0"),n=t("3C3qwmq/"),i=t("Zf49CTZG").name,o=n.buttons;function l(e,t,i){function o(a,i){return r.coerce(e,t,n,a,i)}o("visible",a(e,t,{name:"buttons",handleItemDefaults:s}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),r.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),r.coerceFont(o,"font",i.font),o("bgcolor",i.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function s(e,t){function a(a,n){return r.coerce(e,t,o,a,n)}a("visible","skip"===e.method||Array.isArray(e.args))&&(a("method"),a("args"),a("args2"),a("label"),a("execute"))}e.exports=function(e,t){a(e,t,{name:i,handleItemDefaults:l})}},"JPrGcRM+":function(e,exports,t){"use strict";var r=t("ErV1Ibqz").appendArrayMultiPointValues;e.exports=function(e,t){var a={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,v:e.v};return 1===e.pts.length&&(a.pointNumber=a.i=e.pts[0]),r(a,t,e.pts),"funnelarea"===t.type&&(delete a.v,delete a.i),a}},"JWkd8+G/":function(e,exports,t){"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,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},JvoEnJDT:function(e,exports,t){"use strict";var r=t("R5um7Wku"),a=t("Vq8+Ip3e").SUBPLOT_PATTERN;exports.getSubplotCalcData=function(e,t,a){var n=r.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,o=[],l=0;l0&&(i=!0);for(var s=0;s), bold (), italics (),","hyperlinks (). Tags , , "," are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,role:"style",editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:a({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,role:"style",editType:"calc+arraydraw",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",editType:"calc+arraydraw",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",editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",role:"style",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans 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",editType:"arraydraw",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",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,role:"style",editType:"calc+arraydraw",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",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",role:"style",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the size of the end annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},startarrowsize:{valType:"number",min:.3,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the size of the start annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},arrowwidth:{valType:"number",min:.1,role:"style",editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,role:"style",editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the end 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(" ")},startstandoff:{valType:"number",min:0,dflt:0,role:"style",editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the start 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",editType:"calc+arraydraw",description:[s("x","left","right")].join(" ")},ay:{valType:"any",role:"info",editType:"calc+arraydraw",description:[s("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",n.idRegex.x.toString()],role:"info",editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",o.axisRefDescription("ax","left","right"),l("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",n.idRegex.y.toString()],role:"info",editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",o.axisRefDescription("ay","bottom","top"),l("y")].join(" ")},xref:{valType:"enumerated",values:["paper",n.idRegex.x.toString()],role:"info",editType:"calc",description:["Sets the annotation's x coordinate axis.",o.axisRefDescription("x","left","right")].join(" ")},x:{valType:"any",role:"info",editType:"calc+arraydraw",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",editType:"calc+arraydraw",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",editType:"calc+arraydraw",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",n.idRegex.y.toString()],role:"info",editType:"calc",description:["Sets the annotation's y coordinate axis.",o.axisRefDescription("y","bottom","top")].join(" ")},y:{valType:"any",role:"info",editType:"calc+arraydraw",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",editType:"calc+arraydraw",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",editType:"calc+arraydraw",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",editType:"arraydraw",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",editType:"arraydraw",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",editType:"arraydraw",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",editType:"arraydraw",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",editType:"arraydraw",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",editType:"arraydraw",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:a({editType:"arraydraw",description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")}),editType:"arraydraw"},captureevents:{valType:"boolean",role:"info",editType:"arraydraw",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(" ")},editType:"calc",_deprecated:{ref:{valType:"string",role:"info",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}})},LdHlM4it:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),a=t("K+tMoKu9");e.exports=function(e,t){function n(n,i){return r.coerce(e,t,a,n,i)}n("hiddenlabels"),n("piecolorway",t.colorway),n("extendpiecolors")}},LdzhoiNW:function(e,exports,t){"use strict";var r=t("yAcToaBS"),a=t("wJP3FIsq");e.exports=function(e,t,n,i){t=t||{};var o="log"===n&&"linear"===t.type,l="linear"===n&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.images,d=t._id.charAt(0),f=0;fi))return t}return void 0!==a?a:e.dflt},exports.coerceColor=function(e,t,r){return a(t).isValid()?t:void 0!==r?r:e.dflt},exports.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==r?r:e.dflt},exports.getValue=function(e,t){var r;return Array.isArray(e)?t0){for(var a=[],n=0;n` is displayed in the secondary box, for example "{fullData.name}".',"To hide the secondary box completely, use an empty tag ``."].join(" ")};return!1!==e.arrayOk&&(i.arrayOk=!0),i},exports.texttemplateAttrs=function(e,t){e=e||{};var n=a(t=t||{}),i={valType:"string",role:"info",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",r,"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",n].join(" ")};return!1!==e.arrayOk&&(i.arrayOk=!0),i}},P1XCdGWS:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),a=t("nwKXjxmY").EventEmitter,n=t("/1xV6pOg");e.exports=function(e){var t=e.emitter||new a,i=new Promise((function(a,o){var l=window.Image,s=e.svg,c=e.format||"png";if(r.isIE()&&"svg"!==c){var u=new Error(n.MSG_IE_BAD_FORMAT);return o(u),e.promise?i:t.emit("error",u)}var d,f,h=e.canvas,p=e.scale||1,g=e.width||300,v=e.height||150,m=p*g,y=p*v,x=h.getContext("2d"),b=new l;"svg"===c||r.isIE9orBelow()||r.isSafari()?f=n.encodeSVG(s):(d=n.createBlob(s,"svg"),f=n.createObjectURL(d)),h.width=m,h.height=y,b.onload=function(){var r;switch(d=null,n.revokeObjectURL(f),"svg"!==c&&x.drawImage(b,0,0,m,y),c){case"jpeg":r=h.toDataURL("image/jpeg");break;case"png":r=h.toDataURL("image/png");break;case"webp":r=h.toDataURL("image/webp");break;case"svg":r=f;break;default:var i="Image format is not jpeg, png, svg or webp.";if(o(new Error(i)),!e.promise)return t.emit("error",i)}a(r),e.promise||t.emit("success",r)},b.onerror=function(r){if(d=null,n.revokeObjectURL(f),o(r),!e.promise)return t.emit("error",r)},b.src=f}));return e.promise?i:t}},PEbxUAGz:function(e,exports,t){"use strict";var r=t("R5um7Wku"),a=t("E0Erayg3").hover;e.exports=function(e,t,n){var i=r.getComponentMethod("annotations","onClick")(e,e._hoverdata);function o(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==n&&a(e,t,n,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},PM37TqjZ:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("R5um7Wku"),n=t("8MlMO9wt"),i=t("0Ft3SWJB"),o=t("NLf4w7dD"),l=t("/oRevOrA"),s=t("+ELfTWmT"),c=t("xjYqbXs+"),u=t("ElYFxeqq"),d=t("4JfnfFRI"),f=t("kca9bvt+"),h=t("6hRdzyd8"),p=h.enforce,g=h.clean,v=t("IaNOhRG8").doAutoRange,m="start",y="middle",x="end";function b(e,t,r){for(var a=0;a=e[1]||n[1]<=e[0])&&(i[0]t[0]))return!0}return!1}function _(e){var t,a,o,c,h,p,g=e._fullLayout,v=g._size,m=v.p,y=d.list(e,"",!0);if(g._paperdiv.style({width:e._context.responsive&&g.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":g.width+"px",height:e._context.responsive&&g.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":g.height+"px"}).selectAll(".main-svg").call(s.setSize,g.width,g.height),e._context.setBackground(e,g.paper_bgcolor),exports.drawMainTitle(e),u.manage(e),!g._has("cartesian"))return n.previousPromises(e);function x(e,t,r){var a=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===r?t._offset-m-a:t._offset+t._length+m+a:v.t+v.h*(1-(e.position||0))+a%1:t?"right"===r?t._offset+t._length+m+a:t._offset-m-a:v.l+v.w*(e.position||0)+a%1}for(t=0;t0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var a=e.range[0],n=e.range[1];return.5*(a+n-2*p*Math.abs(a-n))}return h}function L(t,r,a,o){if((o||{}).msUTC&&n(t))return+t;var l=s(t,a||e.calendar);if(l===h){if(!n(t))return h;t=+t;var c=Math.floor(10*i.mod(t+.05,1)),u=Math.round(t-c/10);l=s(new Date(u))+c/10}return l}function C(t,r,a){return l(t,r,a||e.calendar)}function z(t){return e._categories[Math.round(t)]}function O(t){if(T(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"==typeof t?String(t):t);var r=e._categories.length-1;return e._categoriesMap[t]=r,r}return h}function P(t){if(e._categoriesMap)return e._categoriesMap[t]}function I(e){var t=P(e);return void 0!==t?t:n(e)?+e:void 0}function F(e){return n(e)?+e:P(e)}function D(e,t,a){return r.round(a+t*e,2)}function R(e,t,r){return(e-r)/t}var E=function(t){return n(t)?D(t,e._m,e._b):h},j=function(t){return R(t,e._m,e._b)};if(e.rangebreaks){var B="y"===M;E=function(t){if(!n(t))return h;var r=e._rangebreaks.length;if(!r)return D(t,e._m,e._b);var a=B;e.range[0]>e.range[1]&&(a=!a);for(var i=a?-1:1,o=i*t,l=0,s=0;su)){l=o<(c+u)/2?s:s+1;break}l=s+1}var d=e._B[l]||0;return isFinite(d)?D(t,e._m2,d):0},j=function(t){var r=e._rangebreaks.length;if(!r)return R(t,e._m,e._b);for(var a=0,n=0;ne._rangebreaks[n].pmax&&(a=n+1);return R(t,e._m2,e._B[a])}}e.c2l="log"===e.type?S:c,e.l2c="log"===e.type?A:c,e.l2p=E,e.p2l=j,e.c2p="log"===e.type?function(e,t){return E(S(e,t))}:E,e.p2c="log"===e.type?function(e){return A(j(e))}:j,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=o,e.c2d=e.c2r=e.l2d=e.l2r=c,e.d2p=e.r2p=function(t){return e.l2p(o(t))},e.p2d=e.p2r=j,e.cleanPos=c):"log"===e.type?(e.d2r=e.d2l=function(e,t){return S(o(e),t)},e.r2d=e.r2c=function(e){return A(o(e))},e.d2c=e.r2l=o,e.c2d=e.l2r=c,e.c2r=S,e.l2d=A,e.d2p=function(t,r){return e.l2p(e.d2r(t,r))},e.p2d=function(e){return A(j(e))},e.r2p=function(t){return e.l2p(o(t))},e.p2r=j,e.cleanPos=c):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=L,e.c2d=e.c2r=e.l2d=e.l2r=C,e.d2p=e.r2p=function(t,r,a){return e.l2p(L(t,0,a))},e.p2d=e.p2r=function(e,t,r){return C(j(e),t,r)},e.cleanPos=function(t){return i.cleanDate(t,h,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=O,e.r2d=e.c2d=e.l2d=z,e.d2r=e.d2l_noadd=I,e.r2c=function(t){var r=F(t);return void 0!==r?r:e.fraction2r(.5)},e.l2r=e.c2r=c,e.r2l=F,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return z(j(e))},e.r2p=e.d2p,e.p2r=j,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:c(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=z,e.d2r=e.d2l_noadd=I,e.r2c=function(t){var r=I(t);return void 0!==r?r:e.fraction2r(.5)},e.r2c_just_indices=P,e.l2r=e.c2r=c,e.r2l=I,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return z(j(e))},e.r2p=e.d2p,e.p2r=j,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:c(e)},e.setupMultiCategory=function(r){var a,n,o=e._traceIndices,l=e._matchGroup;if(l&&0===e._categories.length)for(var s in l)if(s!==d){var c=t[b.id2name(s)];o=o.concat(c._traceIndices)}var f=[[0,{}],[0,{}]],h=[];for(a=0;af&&(l[a]=f),l[0]===l[1]){var c=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=c,l[1]+=c}}else i.nestedProperty(e,t).set(o)},e.setScale=function(r){var a=t._size;if(e.overlaying){var n=b.getFromId({_fullLayout:t},e.overlaying);e.domain=n.domain}var i=r&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var l,s,c=e.r2l(e[i][0],o),u=e.r2l(e[i][1],o),d="y"===M;if((d?(e._offset=a.t+(1-e.domain[1])*a.h,e._length=a.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=a.l+e.domain[0]*a.w,e._length=a.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks)&&(e._rangebreaks=e.locateBreaks(Math.min(c,u),Math.max(c,u)),e._rangebreaks.length)){for(l=0;lu&&(f=!f),f&&e._rangebreaks.reverse();var h=f?-1:1;for(e._m2=h*e._length/(Math.abs(u-c)-e._lBreaks),e._B.push(-e._m2*(d?u:c)),l=0;ln&&(n+=7,ln&&(n+=24,l=a&&l=a&&t=l.min&&(el.max&&(l.max=a),n=!1)}n&&c.push({min:e,max:a})}};for(a=0;aF&&i>D&&!r.shiftKey?d.getCursor(o/n,1-l/i):"move";f(t,s),I=s.split("-")[0]}}function te(r){v(e)||(R&&(w=q(i.xanchor)),E&&(k=U(i.yanchor)),"path"===i.type?P=i.path:(u=R?i.x0:q(i.x0),g=E?i.y0:U(i.y0),m=R?i.x1:q(i.x1),y=E?i.y1:U(i.y1)),uy?(A=g,L="y0",T=y,C="y1"):(A=y,L="y1",T=g,C="y0"),ee(r),oe(l,i),se(t,i,e),Y.moveFn="move"===I?ne:ie,Y.altKey=r.altKey)}function re(){v(e)||(f(t),le(l),x(t,e,i),r.call("_guiRelayout",e,s.getUpdateObj()))}function ae(){v(e)||le(l)}function ne(r,a){if("path"===i.type){var n=function(e){return e},o=n,s=n;R?N("xanchor",i.xanchor=Z(w+r)):(o=function(e){return Z(q(e)+r)},H&&"date"===H.type&&(o=p.encodeDate(o))),E?N("yanchor",i.yanchor=X(k+a)):(s=function(e){return X(U(e)+a)},V&&"date"===V.type&&(s=p.encodeDate(s))),N("path",i.path=_(P,o,s))}else R?N("xanchor",i.xanchor=Z(w+r)):(N("x0",i.x0=Z(u+r)),N("x1",i.x1=Z(m+r))),E?N("yanchor",i.yanchor=X(k+a)):(N("y0",i.y0=X(g+a)),N("y1",i.y1=X(y+a)));t.attr("d",b(e,i)),oe(l,i)}function ie(r,a){if(B){var n=function(e){return e},o=n,s=n;R?N("xanchor",i.xanchor=Z(w+r)):(o=function(e){return Z(q(e)+r)},H&&"date"===H.type&&(o=p.encodeDate(o))),E?N("yanchor",i.yanchor=X(k+a)):(s=function(e){return X(U(e)+a)},V&&"date"===V.type&&(s=p.encodeDate(s))),N("path",i.path=_(P,o,s))}else if(j){if("resize-over-start-point"===I){var c=u+r,d=E?g-a:g+a;N("x0",i.x0=R?c:Z(c)),N("y0",i.y0=E?d:X(d))}else if("resize-over-end-point"===I){var f=m+r,h=E?y-a:y+a;N("x1",i.x1=R?f:Z(f)),N("y1",i.y1=E?h:X(h))}}else{var v=function(e){return-1!==I.indexOf(e)},x=v("n"),W=v("s"),G=v("w"),J=v("e"),Y=x?A+a:A,Q=W?T+a:T,K=G?M+r:M,ee=J?S+r:S;E&&(x&&(Y=A-a),W&&(Q=T-a)),(!E&&Q-Y>D||E&&Y-Q>D)&&(N(L,i[L]=E?Y:X(Y)),N(C,i[C]=E?Q:X(Q))),ee-K>F&&(N(z,i[z]=R?K:Z(K)),N(O,i[O]=R?ee:Z(ee)))}t.attr("d",b(e,i)),oe(l,i)}function oe(e,t){function r(){var r="path"!==t.type,n=e.selectAll(".visual-cue").data([0]),i=1;n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":i}).classed("visual-cue",!0);var o=q(R?t.xanchor:a.midRange(r?[t.x0,t.x1]:p.extractPathCoords(t.path,h.paramIsX))),l=U(E?t.yanchor:a.midRange(r?[t.y0,t.y1]:p.extractPathCoords(t.path,h.paramIsY)));if(o=p.roundPositionForSharpStrokeRendering(o,i),l=p.roundPositionForSharpStrokeRendering(l,i),R&&E){var s="M"+(o-1-i)+","+(l-1-i)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",s)}else if(R){var c="M"+(o-1-i)+","+(l-9-i)+"v18 h2 v-18 Z";n.attr("d",c)}else{var u="M"+(o-9-i)+","+(l-1-i)+"h18 v2 h-18 Z";n.attr("d",u)}}(R||E)&&r()}function le(e){e.selectAll(".visual-cue").remove()}function se(e,t,r){var a=t.xref,i=t.yref,o=n.getFromId(r,a),l=n.getFromId(r,i),s="";"paper"===a||o.autorange||(s+=a),"paper"===i||l.autorange||(s+=i),c.setClipUrl(e,s?"clip"+r._fullLayout._uid+s:null,r)}d.init(Y),J.node().onmousemove=ee}(e,F,y,t,l,I):!0===y.editable&&F.style("pointer-events",O||s.opacity(S)*M<=.5?"stroke":"all");F.node().addEventListener("click",(function(){return function(e,t){if(!m(e))return;var r=+t.node().getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeShapeIndex)return void w(e);e._fullLayout._activeShapeIndex=r,e._fullLayout._deactivateShape=w,g(e)}}(e,F)}))}}function x(e,t,r){var a=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");c.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}function b(e,t){var r,i,o,l,s,c,u,d,f=t.type,g=n.getRefType(t.xref),v=n.getRefType(t.yref),m=n.getFromId(e,t.xref),y=n.getFromId(e,t.yref),x=e._fullLayout._size;if(m?"domain"===g?i=function(e){return m._offset+m._length*e}:(r=p.shapePositionToRange(m),i=function(e){return m._offset+m.r2p(r(e,!0))}):i=function(e){return x.l+x.w*e},y?"domain"===v?l=function(e){return y._offset+y._length*(1-e)}:(o=p.shapePositionToRange(y),l=function(e){return y._offset+y.r2p(o(e,!0))}):l=function(e){return x.t+x.h*(1-e)},"path"===f)return m&&"date"===m.type&&(i=p.decodeDate(i)),y&&"date"===y.type&&(l=p.decodeDate(l)),function(e,t,r){var n=e.path,i=e.xsizemode,o=e.ysizemode,l=e.xanchor,s=e.yanchor;return n.replace(h.segmentRE,(function(e){var n=0,c=e.charAt(0),u=h.paramIsX[c],d=h.paramIsY[c],f=h.numParams[c],p=e.substr(1).replace(h.paramRE,(function(e){return u[n]?e="pixel"===i?t(l)+Number(e):t(e):d[n]&&(e="pixel"===o?r(s)-Number(e):r(e)),++n>f&&(e="X"),e}));return n>f&&(p=p.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),c+p}))}(t,i,l);if("pixel"===t.xsizemode){var b=i(t.xanchor);s=b+t.x0,c=b+t.x1}else s=i(t.x0),c=i(t.x1);if("pixel"===t.ysizemode){var _=l(t.yanchor);u=_-t.y0,d=_-t.y1}else u=l(t.y0),d=l(t.y1);if("line"===f)return"M"+s+","+u+"L"+c+","+d;if("rect"===f)return"M"+s+","+u+"H"+c+"V"+d+"H"+s+"Z";var w=(s+c)/2,k=(u+d)/2,A=Math.abs(w-s),T=Math.abs(k-u),M="A"+A+","+T,S=w+A+","+k;return"M"+S+M+" 0 1,1 "+(w+","+(k-T))+M+" 0 0,1 "+S+"Z"}function _(e,t,r){return e.replace(h.segmentRE,(function(e){var a=0,n=e.charAt(0),i=h.paramIsX[n],o=h.paramIsY[n],l=h.numParams[n];return n+e.substr(1).replace(h.paramRE,(function(e){return a>=l||(i[a]?e=t(e):o[a]&&(e=r(e)),a++),e}))}))}function w(e){m(e)&&(e._fullLayout._activeShapeIndex>=0&&(l(e),delete e._fullLayout._activeShapeIndex,g(e)))}e.exports={draw:g,drawOne:y,eraseActiveShape:function(e){if(!m(e))return;l(e);var t=e._fullLayout._activeShapeIndex,a=(e.layout||{}).shapes||[];if(t* on the "+e+" axis.","Special values in the form of *M* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function d(e){return{valType:"any",role:"info",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the base for period positioning in milliseconds or date string on the "+e+" axis.","When `"+e+"period` is round number of weeks,","the `"+e+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function f(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",role:"style",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the alignment of data points on the "+e+" axis."].join(" ")}}e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,role:"info",editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `x`.","Builds a linear space of x coordinates.","Use with `dx`","where `x0` is the starting coordinate and `dx` the step."].join(" ")},dx:{valType:"number",dflt:1,role:"info",editType:"calc",anim:!0,description:["Sets the x coordinate step.","See `x0` for more info."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the y coordinates."},y0:{valType:"any",dflt:0,role:"info",editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `y`.","Builds a linear space of y coordinates.","Use with `dy`","where `y0` is the starting coordinate and `dy` the step."].join(" ")},dy:{valType:"number",dflt:1,role:"info",editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},xperiod:u("x"),yperiod:u("y"),xperiod0:d("x0"),yperiod0:d("y0"),xperiodalignment:f("x"),yperiodalignment:f("y"),stackgroup:{valType:"string",role:"info",dflt:"",editType:"calc",description:["Set several scatter traces (on the same subplot) to the same","stackgroup in order to add their y values (or their x values if","`orientation` is *h*). If blank or omitted this trace will not be","stacked. Stacking also turns `fill` on by default, using *tonexty*","(*tonextx*) if `orientation` is *h* (*v*) and sets the default","`mode` to *lines* irrespective of point count.","You can only stack on a numeric (linear or log) axis.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},orientation:{valType:"enumerated",role:"info",values:["v","h"],editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`orientation` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`. Sets the","stacking direction. With *v* (*h*), the y (x) values of subsequent","traces are added. Also affects the default value of `fill`."].join(" ")},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",role:"info",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`groupnorm` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Sets the normalization for the sum of this `stackgroup`.","With *fraction*, the value of each trace at each location is","divided by the sum of all trace values at that location.","*percent* is the same but multiplied by 100 to show percentages.","If there are multiple subplots, or multiple `stackgroup`s on one","subplot, each will be normalized within its own set."].join(" ")},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",role:"info",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`stackgaps` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Determines how we handle locations at which other traces in this","group have data but this one does not.","With *infer zero* we insert a zero at these locations.","With *interpolate* we linearly interpolate between existing","values, and extrapolate a constant beyond the existing values."].join(" ")},text:{valType:"string",role:"info",dflt:"",arrayOk:!0,editType:"calc",description:["Sets text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},texttemplate:r({},{}),hovertext:{valType:"string",role:"info",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],role:"info",editType:"calc",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover.","If there are less than "+s.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],role:"info",editType:"style",description:["Do the hover effects highlight individual points (markers or","line points) or do they highlight filled regions?","If the fill is *toself* or *tonext* and there are no markers","or text, then the default is *fills*, otherwise it is *points*."].join(" ")},hovertemplate:a({},{keys:s.eventDataKeys}),line:{color:{valType:"color",role:"style",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,role:"style",editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",role:"style",editType:"plot",description:["Determines the line shape.","With *spline* the lines are drawn using spline interpolation.","The other available values correspond to step-wise line shapes."].join(" ")},smoothing:{valType:"number",min:0,max:1.3,dflt:1,role:"style",editType:"plot",description:["Has an effect only if `shape` is set to *spline*","Sets the amount of smoothing.","*0* corresponds to no smoothing (equivalent to a *linear* shape)."].join(" ")},dash:c({},o,{editType:"style"}),simplify:{valType:"boolean",dflt:!0,role:"info",editType:"plot",description:["Simplifies lines by removing nearly-collinear points. When transitioning","lines, it may be desirable to disable this so that the number of points","along the resulting SVG path is unaffected."].join(" ")},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,role:"info",editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the provided data arrays are connected."].join(" ")},cliponaxis:{valType:"boolean",dflt:!0,role:"info",editType:"plot",description:["Determines whether or not markers and text nodes","are clipped about the subplot axes.","To show markers and text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],role:"style",editType:"calc",description:["Sets the area to fill with a solid color.","Defaults to *none* unless this trace is stacked, then it gets","*tonexty* (*tonextx*) if `orientation` is *v* (*h*)","Use with `fillcolor` if not *none*.","*tozerox* and *tozeroy* fill to x=0 and y=0 respectively.","*tonextx* and *tonexty* fill between the endpoints of this","trace and the endpoints of the trace before it, connecting those","endpoints with straight lines (to make a stacked area graph);","if there is no trace before it, they behave like *tozerox* and","*tozeroy*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},fillcolor:{valType:"color",role:"style",editType:"style",anim:!0,description:["Sets the fill color.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."].join(" ")},marker:c({symbol:{valType:"enumerated",values:l.symbolList,dflt:"circle",arrayOk:!0,role:"style",editType:"style",description:["Sets the marker symbol type.","Adding 100 is equivalent to appending *-open* to a symbol name.","Adding 200 is equivalent to appending *-dot* to a symbol name.","Adding 300 is equivalent to appending *-open-dot*","or *dot-open* to a symbol name."].join(" ")},opacity:{valType:"number",min:0,max:1,arrayOk:!0,role:"style",editType:"style",anim:!0,description:"Sets the marker opacity."},size:{valType:"number",min:0,dflt:6,arrayOk:!0,role:"style",editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,role:"style",editType:"plot",description:["Sets a maximum number of points to be drawn on the graph.","*0* corresponds to no limit."].join(" ")},sizeref:{valType:"number",dflt:1,role:"style",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the scale factor used to determine the rendered size of","marker points. Use with `sizemin` and `sizemode`."].join(" ")},sizemin:{valType:"number",min:0,dflt:0,role:"style",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the minimum size (in px) of the rendered marker points."].join(" ")},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",role:"info",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the rule for which the data in `size` is converted","to pixels."].join(" ")},line:c({width:{valType:"number",min:0,arrayOk:!0,role:"style",editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},editType:"calc"},n("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",role:"style",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,role:"style",editType:"calc",description:["Sets the final color of the gradient fill:","the center color for radial, the right for horizontal,","or the bottom for vertical."].join(" ")},editType:"calc"},editType:"calc"},n("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,role:"style",editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",role:"style",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,role:"style",editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",role:"style",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,role:"style",editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",role:"style",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,role:"style",editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",role:"style",editType:"style",description:"Sets the text font color of unselected points, applied only when a selection exists."},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,role:"style",editType:"calc",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:i({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."}),r:{valType:"data_array",editType:"calc",description:["r coordinates in scatter traces are deprecated!","Please switch to the *scatterpolar* trace type.","Sets the radial coordinates","for legacy polar chart only."].join("")},t:{valType:"data_array",editType:"calc",description:["t coordinates in scatter traces are deprecated!","Please switch to the *scatterpolar* trace type.","Sets the angular coordinates","for legacy polar chart only."].join("")}}},TGWj3pqf:function(e,exports){e.exports=!0},TXQQh07e:function(e,exports,t){"use strict";var r=t("nuD6RlFT"),a=t("R5um7Wku"),n=t("+ELfTWmT").dashStyle,i=t("/oRevOrA"),o=t("9fFWTih4"),l=t("ErV1Ibqz").makeEventData,s=t("rC/dcWPV"),c=s.freeMode,u=s.rectMode,d=s.drawMode,f=s.openMode,h=s.selectMode,p=t("Fl5XEEXl"),g=t("FaAFECtK").handleEllipse,v=t("FRK4tLaG"),m=t("0Ft3SWJB"),y=t("fhYYOvxE"),x=t("9bxIX4ke"),b=t("nXHY852p").getFromId,_=t("NLf4w7dD"),w=t("PM37TqjZ").redrawReglTraces,k=t("Vq8+Ip3e"),A=k.MINSELECT,T=y.filter,M=y.tester,S=t("jH0PU/G+").clearSelect,L=t("Z/5I/swV"),C=L.p2r,z=L.axValue,O=L.getTransform;function P(e,t,r,a,n,i,o){var l,s,c,u,d,h,g,v,m,y=t._hoverdata,x=t._fullLayout.clickmode.indexOf("event")>-1,b=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(y)){R(e,t,i);var _=function(e,t){var r,a,n=e[0],i=-1,o=[];for(a=0;a0?function(e,t){var r,a,n,i=[];for(n=0;n0&&i.push(r);if(1===i.length&&i[0]===t.searchInfo&&(a=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(n=0;n1)return!1;if((a+=t.selectedpoints.length)>1)return!1}return 1===a}(l)&&(h=B(_))){for(o&&o.remove(),m=0;m=0&&n._fullLayout._deactivateShape(n),d(t)){var i=n._fullLayout._zoomlayer.selectAll(".select-outline-"+r.id);if(i&&n._fullLayout._drawing){var o=v(i,e);o&&a.call("_guiRelayout",n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=e.selectionDefs=[],r.selection.mergedPolygons=e.mergedPolygons=[]}function j(e,t,r,a){var n,i,o,l=[],s=t.map((function(e){return e._id})),c=r.map((function(e){return e._id}));for(o=0;o0?a[0]:r;return!!t.selectedpoints&&t.selectedpoints.indexOf(n)>-1}function N(e,t,r){var n,i,o,l;for(n=0;n=0)I._fullLayout._deactivateShape(I);else if(!_){var r=F.clickmode;x.done(ve).then((function(){if(x.clear(ve),2===e){for(fe.remove(),ee=0;ee-1&&P(t,I,l.xaxes,l.yaxes,l.subplot,l,fe),"event"===r&&I.emit("plotly_selected",void 0);o.click(I,t)})).catch(m.error)}},l.doneFn=function(){ge.remove(),x.done(ve).then((function(){x.clear(ve),l.gd.emit("plotly_selected",re),K&&l.selectionDefs&&(K.subtract=de,l.selectionDefs.push(K),l.mergedPolygons.length=0,[].push.apply(l.mergedPolygons,Q)),l.doneFnCompleted&&l.doneFnCompleted(me)})).catch(m.error),_&&E(l)}},clearSelect:S,clearSelectionsCache:E,selectOnClick:P}},TcVG9fhs:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),a=t("8MlMO9wt"),n=t("dbVsU3X7"),i=t("OrkhUD6z").dfltConfig,o=r.isPlainObject,l=Array.isArray,s=r.isArrayOrTypedArray;function c(e,t,a,n,i,u){u=u||[];for(var d=Object.keys(e),f=0;fx.length&&n.push(h("unused",i,m.concat(x.length)));var T,M,S,L,C,z=x.length,O=Array.isArray(A);if(O&&(z=Math.min(z,A.length)),2===b.dimensions)for(M=0;Mx[M].length&&n.push(h("unused",i,m.concat(M,x[M].length)));var P=x[M].length;for(T=0;T<(O?Math.min(P,A[M].length):P);T++)S=O?A[M][T]:A,L=y[M][T],C=x[M][T],r.validate(L,S)?C!==L&&C!==+L&&n.push(h("dynamic",i,m.concat(M,T),L,C)):n.push(h("value",i,m.concat(M,T),L))}else n.push(h("array",i,m.concat(M),y[M]));else for(M=0;M1&&p.push(h("object","layout"))),a.supplyDefaults(g);for(var v=g._fullData,m=s.length,y=0;y0?".":"")+i;a.isPlainObject(o)?l(o,t,s,n+1):t(s,i,o)}}))}exports.manageCommandObserver=function(e,t,r,i){var o={},l=!0;t&&t._commandObserver&&(o=t._commandObserver),o.cache||(o.cache={}),o.lookupTable={};var s=exports.hasSimpleAPICommandBindings(e,r,o.lookupTable);if(t&&t._commandObserver){if(s)return o;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,o}if(s){n(e,s,o.cache),o.check=function(){if(l){var t=n(e,s,o.cache);return t.changed&&i&&void 0!==o.lookupTable[t.value]&&(o.disable(),Promise.resolve(i({value:t.value,type:s.type,prop:s.prop,traces:s.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"],u=0;u0?n+=i:t<0&&(n-=i)}return r.inbox(a-t,n-t,b+(n-t)/(n-a)-1)}"h"===v.orientation?(o=a,c=t,u="y",d="x",f=S,h=M):(o=t,c=a,u="x",d="y",h=S,f=M);var L=e[u+"a"],C=e[d+"a"];p=Math.abs(L.r2c(L.range[1])-L.r2c(L.range[0]));var z=r.getDistanceFunction(n,f,h,(function(e){return(f(e)+h(e))/2}));if(r.getClosest(g,z,e),!1!==e.index&&g[e.index].p!==s){y||(k=function(e){return Math.min(_(e),e.p-m.bargroupwidth/2)},A=function(e){return Math.max(w(e),e.p+m.bargroupwidth/2)});var O=g[e.index],P=v.base?O.b+O.s:O.s;e[d+"0"]=e[d+"1"]=C.c2p(O[d],!0),e[d+"LabelVal"]=P;var I=m.extents[m.extents.round(O.p)];e[u+"0"]=L.c2p(y?k(O):I[0],!0),e[u+"1"]=L.c2p(y?A(O):I[1],!0);var F=void 0!==O.orig_p;return e[u+"LabelVal"]=F?O.orig_p:O.p,e.labelLabel=l(L,e[u+"LabelVal"]),e.valueLabel=l(C,e[d+"LabelVal"]),e.baseLabel=l(C,O.b),e.spikeDistance=(S(O)+function(e){return T(_(e),w(e))}(O))/2-b,e[u+"Spike"]=L.c2p(O.p,!0),i(O,v,e),e.hovertemplate=v.hovertemplate,e}}function u(e,t){var r=t.mcc||e.marker.color,a=t.mlcc||e.marker.line.color,i=o(e,t);return n.opacity(r)?r:n.opacity(a)&&i?a:void 0}e.exports={hoverPoints:function(e,t,r,n){var i=c(e,t,r,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=u(l,s),a.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}},hoverOnBars:c,getTraceColor:u}},VC0JglZ3:function(e,exports,t){"use strict";var r=t("yAcToaBS"),a=t("R5um7Wku"),n=t("0Ft3SWJB"),i=t("A5P9b9BX"),o=t("uLuh32aH");e.exports=function(e,t,l,s){var c="error_"+s.axis,u=i.newContainer(t,c),d=e[c]||{};function f(e,t){return n.coerce(d,u,o,e,t)}if(!1!==f("visible",void 0!==d.array||void 0!==d.value||"sqrt"===d.type)){var h=f("type","array"in d?"data":"percent"),p=!0;"sqrt"!==h&&(p=f("symmetric",!(("data"===h?"arrayminus":"valueminus")in d))),"data"===h?(f("array"),f("traceref"),p||(f("arrayminus"),f("tracerefminus"))):"percent"!==h&&"constant"!==h||(f("value"),p||f("valueminus"));var g="copy_"+s.inherit+"style";if(s.inherit)(t["error_"+s.inherit]||{}).visible&&f(g,!(d.color||r(d.thickness)||r(d.width)));s.inherit&&u[g]||(f("color",l),f("thickness"),f("width",a.traceIs(t,"gl3d")?0:4))}}},VGS0kEp2:function(e,exports,t){"use strict";var r=t("9fFWTih4"),a=t("0Ft3SWJB"),n=t("4JfnfFRI"),i=t("n/pWmEhD").extractOpts;e.exports=function(e,t,o,l,s,c){var u,d,f,h,p=e.cd[0],g=p.trace,v=e.xa,m=e.ya,y=p.x,x=p.y,b=p.z,_=p.xCenter,w=p.yCenter,k=p.zmask,A=g.zhoverformat,T=y,M=x;if(!1!==e.index){try{f=Math.round(e.index[1]),h=Math.round(e.index[0])}catch(t){return void a.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(f<0||f>=b[0].length||h<0||h>b.length)return}else{if(r.inbox(t-y[0],t-y[y.length-1],0)>0||r.inbox(o-x[0],o-x[x.length-1],0)>0)return;if(c){var S;for(T=[2*y[0]-y[1]],S=1;S1||0===n.bargap&&0===n.bargroupgap&&!e[0].trace.marker.line.width)&&r.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){h(r.select(this),t[0].trace,e)})),o.getComponentMethod("errorbars","style")(t)},styleTextPoints:p,styleOnSelect:function(e,t,a){var l=t[0].trace;l.selectedpoints?function(e,t,a){n.selectedPointStyle(e.selectAll("path"),t),function(e,t,a){e.each((function(e){var o,l=r.select(this);if(e.selected){o=i.ensureUniformFontSize(a,g(l,e,t,a));var s=t.selected.textfont&&t.selected.textfont.color;s&&(o.color=s),n.font(l,o)}else n.selectedTextStyle(l,t)}))}(e.selectAll("text"),t,a)}(a,l,e):(h(a,l,e),o.getComponentMethod("errorbars","style")(a))},getInsideTextFont:m,getOutsideTextFont:y,getBarColor:b,resizeText:l}},Vyghum2a:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("y1n3bGum"),n=t("8MlMO9wt"),i=t("R5um7Wku"),o=t("4JfnfFRI"),l=t("WFvnZ06c"),s=t("0Ft3SWJB"),c=s.strTranslate,u=t("xE+ZFgwY").extendFlat,d=t("LnvsDkyo"),f=t("+ELfTWmT"),h=t("/oRevOrA"),p=t("xjYqbXs+"),g=t("7k8rh0sJ"),v=t("s48LrSF+").flipScale,m=t("vg6lu/AO"),y=t("kAv/b5aV"),x=t("zSF5pjBO"),b=t("kca9bvt+"),_=b.LINE_SPACING,w=b.FROM_TL,k=b.FROM_BR,A=t("PvkztHxu").cn;e.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+A.colorbar).data(function(e){var t,r,a,n,i=e._fullLayout,o=e.calcdata,l=[];function s(e){return u(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"==typeof n.calc?n.calc(e,a,t):(t._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,t._zrange=[r[n.min],r[n.max]])}for(var d=0;d0?a>=s:a<=s));n++)a>u&&a0?a>=s:a<=s));n++)a>r[0]&&a1){var Y=Math.pow(10,Math.floor(Math.log(J)/Math.LN10));Z*=Y*s.roundUp(J/Y,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(U.tick0=0)}U.dtick=Z}U.domain=[V+N,V+E-N],U.setScale(),e.attr("transform",c(Math.round(d.l),Math.round(d.t)));var Q,K=e.select("."+A.cbtitleunshift).attr("transform",c(-Math.round(d.l),-Math.round(d.t))),ee=e.select("."+A.cbaxis),te=0;function re(r,a){var n={propContainer:U,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:l._dfltTitle.colorbar,containerGroup:e.select("."+A.cbtitle)},o="h"===r.charAt(0)?r.substr(1):"h"+r;e.selectAll("."+o+",."+o+"-math-group").remove(),p.draw(i,r,u(n,a||{}))}function ae(){if(-1!==["top","bottom"].indexOf(M)){var e,r=d.l+(t.x+j)*d.w,a=U.title.font.size;e="top"===M?(1-(V+E-N))*d.h+d.t+3+.75*a:(1-(V+N))*d.h+d.t-3-.25*a,re(U._id+"title",{attributes:{x:r,y:e,"text-anchor":"start"}})}}function ne(){if(-1===["top","bottom"].indexOf(M)){var e=U.title.font.size,t=U._offset+U._length/2,a=d.l+(U.position||0)*d.w+("right"===U.side?10+e*(U.showticklabels?1:.5):-10-e*(U.showticklabels?.5:0));re("h"+U._id+"title",{avoid:{selection:r.select(i).selectAll("g."+U._id+"tick"),side:M,offsetLeft:d.l,offsetTop:0,maxShift:l.width},attributes:{x:a,y:t,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}function ie(){if(-1!==["top","bottom"].indexOf(M)){var n=e.select("."+A.cbtitle),l=n.select("text"),u=[-t.outlinewidth/2,t.outlinewidth/2],h=n.select(".h"+U._id+"title-math-group").node(),p=15.6;if(l.node()&&(p=parseInt(l.node().style.fontSize,10)*_),h?(te=f.bBox(h).height)>p&&(u[1]-=(te-p)/2):l.node()&&!l.classed(A.jsPlaceholder)&&(te=f.bBox(l.node()).height),te){if(te+=5,"top"===M)U.domain[1]-=te/d.h,u[1]*=-1;else{U.domain[0]+=te/d.h;var v=g.lineCount(l);u[1]+=(1-v)*p}n.attr("transform",c(u[0],u[1])),U.setScale()}}e.selectAll("."+A.cbfills+",."+A.cblines).attr("transform",c(0,Math.round(d.h*(1-U.domain[1])))),ee.attr("transform",c(0,Math.round(-d.t)));var m=e.select("."+A.cbfills).selectAll("rect."+A.cbfill).attr("style","").data(P);m.enter().append("rect").classed(A.cbfill,!0).style("stroke","none"),m.exit().remove();var y=S.map(U.c2p).map(Math.round).sort((function(e,t){return e-t}));m.each((function(e,n){var o=[0===n?S[0]:(P[n]+P[n-1])/2,n===P.length-1?S[1]:(P[n]+P[n+1])/2].map(U.c2p).map(Math.round);o[1]=s.constrain(o[1]+(o[1]>o[0])?1:-1,y[0],y[1]);var l=r.select(this).attr({x:H,width:Math.max(F,2),y:r.min(o),height:Math.max(r.max(o)-r.min(o),2)});if(t._fillgradient)f.gradient(l,i,t._id,"vertical",t._fillgradient,"fill");else{var c=C(e).replace("e-","");l.attr("fill",a(c).toHexString())}}));var x=e.select("."+A.cblines).selectAll("path."+A.cbline).data(b.color&&b.width?I:[]);x.enter().append("path").classed(A.cbline,!0),x.exit().remove(),x.each((function(e){r.select(this).attr("d","M"+H+","+(Math.round(U.c2p(e))+b.width/2%1)+"h"+F).call(f.lineGroupStyle,b.width,L(e),b.dash)})),ee.selectAll("g."+U._id+"tick,path").remove();var w=H+F+(t.outlinewidth||0)/2-("outside"===t.ticks?1:0),k=o.calcTicks(U),T=o.getTickSigns(U)[2];return o.drawTicks(i,U,{vals:"inside"===U.ticks?o.clipEnds(U,k):k,layer:ee,path:o.makeTickPath(U,w,T),transFn:o.makeTransTickFn(U)}),o.drawLabels(i,U,{vals:k,layer:ee,transFn:o.makeTransTickLabelFn(U),labelFns:o.makeLabelFns(U,w)})}function oe(){var r=F+t.outlinewidth/2;if(-1===U.ticklabelposition.indexOf("inside")&&(r+=f.bBox(ee.node()).width),(Q=K.select("text")).node()&&!Q.classed(A.jsPlaceholder)){var a,o=K.select(".h"+U._id+"title-math-group").node();a=o&&-1!==["top","bottom"].indexOf(M)?f.bBox(o).width:f.bBox(K.node()).right-H-d.l,r=Math.max(r,a)}var l=2*t.xpad+r+t.borderwidth+t.outlinewidth/2,s=G-q;e.select("."+A.cbbg).attr({x:H-t.xpad-(t.borderwidth+t.outlinewidth)/2,y:q-B,width:Math.max(l,2),height:Math.max(s+2*B,2)}).call(h.fill,t.bgcolor).call(h.stroke,t.bordercolor).style("stroke-width",t.borderwidth),e.selectAll("."+A.cboutline).attr({x:H,y:q+t.ypad+("top"===M?te:0),width:Math.max(F,2),height:Math.max(s-2*t.ypad-te,2)}).call(h.stroke,t.outlinecolor).style({fill:"none","stroke-width":t.outlinewidth});var u=({center:.5,right:1}[t.xanchor]||0)*l;e.attr("transform",c(d.l-u,d.t));var p={},g=w[t.yanchor],v=k[t.yanchor];"pixels"===t.lenmode?(p.y=t.y,p.t=s*g,p.b=s*v):(p.t=p.b=0,p.yt=t.y+t.len*g,p.yb=t.y-t.len*v);var m=w[t.xanchor],y=k[t.xanchor];if("pixels"===t.thicknessmode)p.x=t.x,p.l=l*m,p.r=l*y;else{var x=l-F;p.l=x*m,p.r=x*y,p.xl=t.x-t.thickness*m,p.xr=t.x+t.thickness*y}n.autoMargin(i,t._id,p)}return s.syncOrAsync([n.previousPromises,ae,ie,ne,n.previousPromises,oe],i)}(v,t,e);b&&b.then&&(e._promises||[]).push(b),e._context.edits.colorbarPosition&&function(e,t,r){var a,n,o,s=r._fullLayout._size;l.init({element:e.node(),gd:r,prepFn:function(){a=e.attr("transform"),d(e)},moveFn:function(r,i){e.attr("transform",a+c(r,i)),n=l.align(t._xLeftFrac+r/s.w,t._thickFrac,0,1,t.xanchor),o=l.align(t._yBottomFrac-i/s.h,t._lenFrac,0,1,t.yanchor);var u=l.getCursor(n,o,t.xanchor,t.yanchor);d(e,u)},doneFn:function(){if(d(e),void 0!==n&&void 0!==o){var a={};a[t._propPrefix+"x"]=n,a[t._propPrefix+"y"]=o,void 0!==t._traceIndex?i.call("_guiRestyle",r,a,t._traceIndex):i.call("_guiRelayout",r,a)}}})}(v,t,e)})),t.exit().each((function(t){n.autoMargin(e,t._id)})).remove(),t.order()}}},W2eyfIL2:function(e,exports){e.exports=function(e){var n=[];return e.replace(r,(function(e,r,i){var o=r.toLowerCase();for(i=function(e){var t=e.match(a);return t?t.map(Number):[]}(i),"m"==o&&i.length>2&&(n.push([r].concat(i.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(i.length==t[o])return i.unshift(r),n.push(i);if(i.lengthy&&(m=Math.max(m-1,1)),v._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(m,h),!g){var r;try{r=new MouseEvent("click",t)}catch(e){var n=u(t);(r=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,n[0],n[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}p.dispatchEvent(r)}v._dragging=!1,v._dragged=!1}else v._dragged=!1}},l.coverSlip=c},WHVwkmN9:function(e,exports,t){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},Wwi6Xwm4:function(e,exports,t){"use strict";function r(e,t){var r,a,n=[0,0,0,0];for(r=0;r<4;++r)for(a=0;a<4;++a)n[a]+=e[4*r+a]*t[r];return n}e.exports=function(e,t){return r(e.projection,r(e.view,r(e.model,[t[0],t[1],t[2],1])))}},WznuVG2f:function(e,exports,t){"use strict";var r=t("R5um7Wku"),a=t("0Ft3SWJB"),n=a.extendFlat,i=a.extendDeep;function o(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},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 a;e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var l,s=e.data,c=e.layout,u=i([],s),d=i({},c,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(a=0;a-1&&(d[h[a]].title={text:""});for(a=0;ak?d.push({code:"unused",traceType:y,templateCount:w,dataCount:k}):k>w&&d.push({code:"reused",traceType:y,templateCount:w,dataCount:k})}}else d.push({code:"data"});if(function e(t,r){for(var n in t)if("_"!==n.charAt(0)){var i=t[n],o=p(t,n,r);a(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&d.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&g(i)&&e(i,o)}}({data:h,layout:f},""),d.length)return d.map(v)}},XLNBrVO3:function(e,exports,t){var r=t("tz4yzA4w");e.exports=function(e,t,a){function n(e,t,r){return{id:a?a.segmentId():-1,start:e,end:t,myFill:{above:r.myFill.above,below:r.myFill.below},otherFill:null}}var i=r.create();function o(e,r){i.insertBefore(e,(function(a){return function(e,r,a,n,i,o){var l=t.pointsCompare(r,i);return 0!==l?l:t.pointsSame(a,o)?0:e!==n?e?1:-1:t.pointAboveOrOnLine(a,n?i:o,n?o:i)?1:-1}(e.isStart,e.pt,r,a.isStart,a.pt,a.other.pt)<0}))}function l(e,t){var a=function(e,t){var a=r.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return o(a,e.end),a}(e,t);return function(e,t,a){var n=r.node({isStart:!1,pt:t.end,seg:t,primary:a,other:e,status:null});e.other=n,o(n,e.pt)}(a,e,t),a}function s(e,t){var r=n(t,e.seg.end,e.seg);return function(e,t){a&&a.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,o(e.other,e.pt)}(e,t),l(r,e.primary)}function c(n,o){var l=r.create();function c(e){return l.findTransition((function(r){var a,n,i,o,l,s;return(a=e,n=r.ev,i=a.seg.start,o=a.seg.end,l=n.seg.start,s=n.seg.end,t.pointsCollinear(i,l,s)?t.pointsCollinear(o,l,s)||t.pointAboveOrOnLine(o,l,s)?1:-1:t.pointAboveOrOnLine(i,l,s)?1:-1)>0}))}function u(e,r){var n=e.seg,i=r.seg,o=n.start,l=n.end,c=i.start,u=i.end;a&&a.checkIntersection(n,i);var d=t.linesIntersect(o,l,c,u);if(!1===d){if(!t.pointsCollinear(o,l,c))return!1;if(t.pointsSame(o,u)||t.pointsSame(l,c))return!1;var f=t.pointsSame(o,c),h=t.pointsSame(l,u);if(f&&h)return r;var p=!f&&t.pointBetween(o,c,u),g=!h&&t.pointBetween(l,c,u);if(f)return g?s(r,l):s(e,u),r;p&&(h||(g?s(r,l):s(e,u)),s(r,o))}else 0===d.alongA&&(-1===d.alongB?s(e,c):0===d.alongB?s(e,d.pt):1===d.alongB&&s(e,u)),0===d.alongB&&(-1===d.alongA?s(r,o):0===d.alongA?s(r,d.pt):1===d.alongA&&s(r,l));return!1}for(var d=[];!i.isEmpty();){var f=i.getHead();if(a&&a.vert(f.pt[0]),f.isStart){a&&a.segmentNew(f.seg,f.primary);var h=c(f),p=h.before?h.before.ev:null,g=h.after?h.after.ev:null;function v(){if(p){var e=u(f,p);if(e)return e}return!!g&&u(f,g)}a&&a.tempStatus(f.seg,!!p&&p.seg,!!g&&g.seg);var m,y=v();if(y){var x;if(e)(x=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below)&&(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=f.seg.myFill;a&&a.segmentUpdate(y.seg),f.other.remove(),f.remove()}if(i.getHead()!==f){a&&a.rewind(f.seg);continue}if(e)x=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below,f.seg.myFill.below=g?g.seg.myFill.above:n,f.seg.myFill.above=x?!f.seg.myFill.below:f.seg.myFill.below;else if(null===f.seg.otherFill)m=g?f.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:f.primary?o:n,f.seg.otherFill={above:m,below:m};a&&a.status(f.seg,!!p&&p.seg,!!g&&g.seg),f.other.status=h.insert(r.node({ev:f}))}else{var b=f.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(b.prev)&&l.exists(b.next)&&u(b.prev.ev,b.next.ev),a&&a.statusRemove(b.ev.seg),b.remove(),!f.primary){var _=f.seg.myFill;f.seg.myFill=f.seg.otherFill,f.seg.otherFill=_}d.push(f.seg)}i.getHead().remove()}return a&&a.done(),d}return e?{addRegion:function(e){for(var r,n,i,o=e[e.length-1],s=0;sw,T=o.barLength+2*o.barPad,M=o.barWidth+2*o.barPad,S=p,L=v+m;L+M>c&&(L=c-M);var C=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,o.barColor),A?(this.hbar=C.attr({rx:o.barRadius,ry:o.barRadius,x:S,y:L,width:T,height:M}),this._hbarXMin=S+T/2,this._hbarTranslateMax=w-T):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=m>k,O=o.barWidth+2*o.barPad,P=o.barLength+2*o.barPad,I=p+g,F=v;I+O>s&&(I=s-O);var D=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,o.barColor),z?(this.vbar=D.attr({rx:o.barRadius,ry:o.barRadius,x:I,y:F,width:O,height:P}),this._vbarYMin=F+P/2,this._vbarTranslateMax=k-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,E=u-.5,j=z?d+O+.5:d+.5,B=f-.5,N=A?h+M+.5:h+.5,H=l._topdefs.selectAll("#"+R).data(A||z?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",R).append("rect"),A||z?(this._clipRect=H.select("rect").attr({x:Math.floor(E),y:Math.floor(B),width:Math.ceil(j)-Math.floor(E),height:Math.ceil(N)-Math.floor(B)}),this.container.call(n.setClipUrl,R,this.gd),this.bg.attr({x:p,y:v,width:g,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(n.setClipUrl,null),delete this._clipRect),A||z){var W=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(W);var V=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(V),z&&this.vbar.on(".drag",null).call(V)}this.setTranslate(t,i)},o.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(n.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 a=e+this._hbarXMin,n=a+this._hbarTranslateMax;e=(i.constrain(r.event.x,a,n)-a)/(n-a)*(this.position.w-this._box.w)}if(this.vbar){var o=t+this._vbarYMin,l=o+this._vbarTranslateMax;t=(i.constrain(r.event.y,o,l)-o)/(l-o)*(this.position.h-this._box.h)}this.setTranslate(e,t)},o.prototype.setTranslate=function(e,t){var r=this.position.w-this._box.w,a=this.position.h-this._box.h;if(e=i.constrain(e||0,0,r),t=i.constrain(t||0,0,a),this.translateX=e,this.translateY=t,this.container.call(n.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 o=e/r;this.hbar.call(n.setTranslate,e+o*this._hbarTranslateMax,t)}if(this.vbar){var l=t/a;this.vbar.call(n.setTranslate,e,t+l*this._vbarTranslateMax)}}},YBg4gvmH:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("+ELfTWmT"),n=t("4JfnfFRI"),i=t("nXHY852p"),o=t("nfwe4Djo");e.exports=function(e){var t,l,s=e._fullLayout,c=[],u={},d=[];for(l=0;l=a.max)t=E[r+1];else if(e=a.pmax)t=E[r+1];else if(e0?i:o)/(L._m*O*(L._m>0?i:o)))),l*=1e3}if(s===a){if(z&&(s=L.c2p(n.y,!0)),s===a)return!1;s*=1e3}return[l,s]}function G(e,t,r,a){var n=r-e,i=a-t,o=.5-e,l=.5-t,s=n*n+i*i,c=n*o+i*l;if(c>0&&cae||e[1]ie)return[c(e[0],re,ae),c(e[1],ne,ie)]}function se(e,t){return e[0]===t[0]&&(e[0]===re||e[0]===ae)||(e[1]===t[1]&&(e[1]===ne||e[1]===ie)||void 0)}function ce(e,t,r){return function(a,n){var i=le(a),o=le(n),s=[];if(i&&o&&se(i,o))return s;i&&s.push(i),o&&s.push(o);var c=2*l.constrain((a[e]+n[e])/2,t,r)-((i||a)[e]+(o||n)[e]);c&&((i&&o?c>0==i[e]>o[e]?i:o:i||o)[e]+=c);return s}}function ue(e){var t=e[0],r=e[1],a=t===H[W-1][0],n=r===H[W-1][1];if(!a||!n)if(W>1){var i=t===H[W-2][0],o=r===H[W-2][1];a&&(t===re||t===ae)&&i?o?W--:H[W-1]=e:n&&(r===ne||r===ie)&&o?i?W--:H[W-1]=e:H[W++]=e}else H[W++]=e}function de(e){H[W-1][0]!==e[0]&&H[W-1][1]!==e[1]&&ue([J,Y]),ue(e),Q=null,J=Y=0}function fe(e){if(T=e[0]/O,M=e[1]/P,Z=e[0]ae?ae:0,X=e[1]ie?ie:0,Z||X){if(W)if(Q){var t=ee(Q,e);t.length>1&&(de(t[0]),H[W++]=t[1])}else K=ee(H[W-1],e)[0],H[W++]=K;else H[W++]=[Z||e[0],X||e[1]];var r=H[W-1];Z&&X&&(r[0]!==Z||r[1]!==X)?(Q&&(J!==Z&&Y!==X?ue(J&&Y?(a=Q,i=(n=e)[0]-a[0],o=(n[1]-a[1])/i,(a[1]*n[0]-n[1]*a[0])/i>0?[o>0?re:ae,ie]:[o>0?ae:re,ne]):[J||Z,Y||X]):J&&Y&&ue([J,Y])),ue([Z,X])):J-Z&&Y-X&&ue([Z||J,X||Y]),Q=e,J=Z,Y=X}else Q&&de(ee(Q,e)[0]),H[W++]=e;var a,n,i,o}for("linear"===D||"spline"===D?ee=function(e,t){for(var r=[],a=0,n=0;n<4;n++){var i=oe[n],o=s(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!a||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],a&&U(o,e)q(p,he))break;d=p,(_=m[0]*v[0]+m[1]*v[1])>x?(x=_,f=p,g=!1):_=e.length||!p)break;fe(p),n=p}}else fe(f)}Q&&ue([J||Q[0],Y||Q[1]]),j.push(H.slice(0,W))}return j}},"Z/5I/swV":function(e,exports,t){"use strict";var r=t("0Ft3SWJB").strTranslate;function a(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}e.exports={p2r:a,r2p:function(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}},axValue:function(e){var t="y"===e._id.charAt(0)?1:0;return function(r){return a(e,r[t])}},getTransform:function(e){return r(e.xaxis._offset,e.yaxis._offset)}}},ZGlDDGbb:function(e,exports,t){"use strict";var r=t("yAcToaBS"),a=t("0Ft3SWJB"),n=t("G7pMMARu"),i=t("qxp2i9QF").defaults,o=t("jOyGAhAZ").handleText;function l(e,t){var n=Array.isArray(e),i=a.isArrayOrTypedArray(t),o=Math.min(n?e.length:1/0,i?t.length:1/0);if(isFinite(o)||(o=0),o&&i){for(var l,s=0;s0){l=!0;break}}l||(o=0)}return{hasLabels:n,hasValues:i,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(e,t,r,s){function c(r,i){return a.coerce(e,t,n,r,i)}var u=l(c("labels"),c("values")),d=u.len;if(t._hasLabels=u.hasLabels,t._hasValues=u.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),d){t._length=d,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var f,h=c("text"),p=c("texttemplate");if(p||(f=c("textinfo",Array.isArray(h)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),p||f&&"none"!==f){var g=c("textposition");o(e,t,s,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&c("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&c("insidetextorientation")}i(t,s,c);var v=c("hole");if(c("title.text")){var m=c("title.position",v?"middle center":"top center");v||"middle center"!==m||(t.title.position="top center"),a.coerceFont(c,"title.font",s.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else t.visible=!1}}},ZPYyNz95:function(e,exports,t){"use strict";var r=t("R5um7Wku"),a=t("0Ft3SWJB").isArrayOrTypedArray;e.exports=function(e,t,n,i,o,l){var s,c,u,d=[],f=r.traceIs(e,"contour"),h=r.traceIs(e,"histogram"),p=r.traceIs(e,"gl2d");if(a(t)&&t.length>1&&!h&&"category"!==l.type){var g=t.length;if(!(g<=o))return f?t.slice(0,o):t.slice(0,o+1);if(f||p)d=t.slice(0,o);else if(1===o)d=[t[0]-.5,t[0]+.5];else{for(d=[1.5*t[0]-.5*t[1]],u=1;u0||r.explicitOff.length>0},onClick:function(e,t){var o,l,s=i(e,t),c=s.on,u=s.off.concat(s.explicitOff),d={},f=e._fullLayout.annotations;if(!c.length&&!u.length)return;for(o=0;og&&(m=Math.max(m,Math.abs(e[i][o]-p)/(v-g))))}return m}e.exports=function(e,t){var a,o=1;for(i(e,t),a=0;a.01;a++)o=i(e,t,n(o));return o>.01&&r.log("interp2d didn't converge quickly",o),e}},bz6mKfuP:function(e,exports,t){"use strict";var r=t("lf8+9Xc7"),a=t("3dGlwK5L"),n=t("xE+ZFgwY").extendDeepAll,i=t("Oq1Cqb7p").overrideAll,o=t("HlG8UEh+"),l=t("A5P9b9BX").templatedArray,s=t("GEN9BI7z"),c=l("step",{visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this step is included in the slider."].join(" ")},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=i(l("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:c,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:n(a({editType:"arraydraw"}),{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:r({description:"Sets the font of the current value label text."})},font: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"}}),"arraydraw","from-root")},"cCyvnl/b":function(e,exports,t){"use strict";e.exports=t("d82zWuQF")},cotHwVXk:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),a=t("4JfnfFRI"),n=t("JdrF9yG0"),i=t("IXuaY1uE"),o=t("L1qB4u9y");function l(e,t,n){function l(a,n){return r.coerce(e,t,o,a,n)}var s=l("visible"),c=l("clicktoshow");if(s||c){i(e,t,n,l);for(var u=t.showarrow,d=["x","y"],f=[-10,-30],h={_fullLayout:n},p=0;p<2;p++){var g=d[p],v=a.coerceRef(e,t,h,g,"","paper");if("paper"!==v)a.getFromId(h,v)._annIndices.push(t._index);if(a.coercePosition(t,h,l,v,g,.5),u){var m="a"+g,y=a.coerceRef(e,t,h,m,"pixel",["pixel","paper"]);"pixel"!==y&&y!==v&&(y=t[m]="pixel");var x="pixel"===y?f[p]:.4;a.coercePosition(t,h,l,y,m,x)}l(g+"anchor"),l(g+"shift")}if(r.noneOrAll(e,t,["x","y"]),u&&r.noneOrAll(e,t,["ax","ay"]),c){var b=l("xclick"),_=l("yclick");t._xclick=void 0===b?t.x:a.cleanPosition(b,h,t.xref),t._yclick=void 0===_?t.y:a.cleanPosition(_,h,t.yref)}}}e.exports=function(e,t){n(e,t,{name:"annotations",handleItemDefaults:l})}},cscO2DHv:function(e,exports,t){"use strict";var r=t("0Ft3SWJB");function a(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}exports.formatPiePercent=function(e,t){var n=a((100*e).toPrecision(3));return r.numSeparate(n,t)+"%"},exports.formatPieValue=function(e,t){var n=a(e.toPrecision(10));return r.numSeparate(n,t)},exports.getFirstFilled=function(e,t){if(Array.isArray(e))for(var r=0;r=i.length)return!1;if(2===e.dimensions){if(r++,t.length===r)return e;var o=t[r];if(!k(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function k(e){return e===Math.round(e)&&e>=0}function A(){var e,t,a={};for(e in h(a,i),r.subplotsRegistry){if((t=r.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n=s.length)return!1;i=(a=(r.transformsRegistry[s[u].type]||{}).attributes)&&a[t[2]],l=3}else if("area"===e.type)i=c[o];else{var d=e._module;if(d||(d=(r.modules[e.type||n.type.dflt]||{})._module),!d)return!1;if(!(i=(a=d.attributes)&&a[o])){var f=d.basePlotModule;f&&f.attributes&&(i=f.attributes[o])}i||(i=n[o])}return w(i,t,l)},exports.getLayoutValObject=function(e,t){return w(function(e,t){var a,n,o,l,s=e._basePlotModules;if(s){var c;for(a=0;a4/3-l?o:l}},"fa9voUu+":function(e,exports,t){"use strict";e.exports={attributes:t("msRxLST1"),layoutAttributes:t("IOfsZqdi"),supplyDefaults:t("jOyGAhAZ").supplyDefaults,crossTraceDefaults:t("jOyGAhAZ").crossTraceDefaults,supplyLayoutDefaults:t("bC7Gw71F"),calc:t("lMsElyWC"),crossTraceCalc:t("i6LEMeab").crossTraceCalc,colorbar:t("WHVwkmN9"),arraysToCalcdata:t("QwKhVvvj"),plot:t("E+KwxggA").plot,style:t("Vs67SwPF").style,styleOnSelect:t("Vs67SwPF").styleOnSelect,hoverPoints:t("Uq+I87MH").hoverPoints,eventData:t("fjTE3x/z"),selectPoints:t("y9T6CtE5"),moduleType:"trace",name:"bar",basePlotModule:t("42xT/S4m"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{description:["The data visualized by the span of the bars is set in `y`","if `orientation` is set th *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}},fhYYOvxE:function(e,exports,t){"use strict";var r=t("mi7jljcm").dot,a=t("46lPXjlm").BADNUM,n=e.exports={};n.tester=function(e){var t,r=e.slice(),n=r[0][0],i=n,o=r[0][1],l=o;for(r.push(r[0]),t=1;ti||c===a||cl)&&(!t||!s(e))}:function(e,t){var s=e[0],c=e[1];if(s===a||si||c===a||cl)return!1;var u,d,f,h,p,g=r.length,v=r[0][0],m=r[0][1],y=0;for(u=1;uMath.max(d,v)||c>Math.max(f,m)))if(cu||Math.abs(r(o,f))>n)return!0;return!1},n.filter=function(e,t){var r=[e[0]],a=0,i=0;function o(o){e.push(o);var l=r.length,s=a;r.splice(i+1);for(var c=s+1;c1&&o(e.pop());return{addPt:o,raw:e,filtered:r}}},"fjTE3x/z":function(e,exports,t){"use strict";e.exports=function(e,t,r){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),"h"===r.orientation?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},fuud1Mda:function(e,exports,t){"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:t("3oxsHAjo")}}},layoutAttributes:t("3oxsHAjo"),handleDefaults:t("GFRpkpH7"),draw:t("eEVZOYEb")}},"gfz/NZnA":function(e,exports,t){"use strict";var r=t("kca9bvt+").FROM_BL;e.exports=function(e,t,a){void 0===a&&(a=r[e.constraintoward||"center"]);var n=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=n[0]+(n[1]-n[0])*a;e.range=e._input.range=[e.l2r(i+(n[0]-i)*t),e.l2r(i+(n[1]-i)*t)],e.setScale()}},gx2D5Jbc:function(e,exports,t){"use strict";var r=t("/8dZfPfB");e.exports=function(e,t){var a=e._name,n={};if("all"===t.step)n[a+".autorange"]=!0;else{var i=function(e,t){var a,n=e.range,i=new Date(e.r2l(n[1])),o=t.step,l=t.count;switch(t.stepmode){case"backward":a=e.l2r(+r.time[o].utc.offset(i,-l));break;case"todate":var s=r.time[o].utc.offset(i,-l);a=e.l2r(+r.time[o].utc.ceil(s))}var c=n[1];return[a,c]}(e,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n}},"h93+eFZa":function(e,exports,t){"use strict";e.exports={attributes:t("G7pMMARu"),supplyDefaults:t("ZGlDDGbb").supplyDefaults,supplyLayoutDefaults:t("LdHlM4it"),layoutAttributes:t("K+tMoKu9"),calc:t("QeXGuGcX").calc,crossTraceCalc:t("QeXGuGcX").crossTraceCalc,plot:t("hiPtikdV").plot,style:t("Q/CxhveK"),styleOne:t("4R47EHYh"),moduleType:"trace",name:"pie",basePlotModule:t("+ulG1EUY"),categories:["pie-like","pie","showLegend"],meta:{description:["A data visualized by the sectors of the pie is set in `values`.","The sector labels are set in `labels`.","The sector colors are set in `marker.colors`"].join(" ")}}},hdoc7R6p:function(e,exports,t){"use strict";var r=t("nXHY852p").list,a=t("IaNOhRG8").getAutoRange,n=t("eWxD8Nou");e.exports=function(e){for(var t=r(e,"x",!0),i=0;i"),name:u.hovertemplate||-1!==d.indexOf("name")?u.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:g.castOption(b.bgcolor,e.pts)||e.color,borderColor:g.castOption(b.bordercolor,e.pts),fontFamily:g.castOption(_.family,e.pts),fontSize:g.castOption(_.size,e.pts),fontColor:g.castOption(_.color,e.pts),nameLength:g.castOption(b.namelength,e.pts),textAlign:g.castOption(b.align,e.pts),hovertemplate:g.castOption(u.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[v(e,u)]},{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:t}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[v(e,u)],event:r.event})}})),e.on("mouseout",(function(e){var a=t._fullLayout,i=t._fullData[o.index],l=r.select(this).datum();o._hasHoverEvent&&(e.originalEvent=r.event,t.emit("plotly_unhover",{points:[v(l,i)],event:r.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(n.loneUnhover(a._hoverlayer.node()),o._hasHoverLabel=!1)})),e.on("click",(function(e){var a=t._fullLayout,i=t._fullData[o.index];t._dragging||!1===a.hovermode||(t._hoverdata=[v(e,i)],n.click(t,r.event))}))}function x(e,t,r){var a=g.castOption(e.insidetextfont.color,t.pts);!a&&e._input.textfont&&(a=g.castOption(e._input.textfont.color,t.pts));var n=g.castOption(e.insidetextfont.family,t.pts)||g.castOption(e.textfont.family,t.pts)||r.family,o=g.castOption(e.insidetextfont.size,t.pts)||g.castOption(e.textfont.size,t.pts)||r.size;return{color:a||i.contrast(t.color),family:n,size:o}}function b(e,t){for(var r,a,n=0;nt&&t>a||r=-4;v-=2)m(Math.PI*v,"tan");for(v=4;v>=-4;v-=2)m(Math.PI*(v+1),"tan")}if(d||h){for(v=4;v>=-4;v-=2)m(Math.PI*(v+1.5),"rad");for(v=4;v>=-4;v-=2)m(Math.PI*(v+.5),"rad")}}if(l||p||d){var y=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:n*a*2/y,rCenter:1-n,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;g.push(i)}(p||h)&&((i=w(e,a,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i)),(p||f)&&((i=k(e,a,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i));for(var x=0,b=0,_=0;_=1)break}return g[x]}function w(e,t,r,a,n){t=Math.max(0,t-2*p);var i=e.width/e.height,o=M(i,a,t,r);return{scale:2*o/e.height,rCenter:A(i,o/t),rotate:T(n)}}function k(e,t,r,a,n){t=Math.max(0,t-2*p);var i=e.height/e.width,o=M(i,a,t,r);return{scale:2*o/e.width,rCenter:A(i,o/t),rotate:T(n+Math.PI/2)}}function A(e,t){return Math.cos(t)-e*t}function T(e){return(180/Math.PI*e+720)%180-90}function M(e,t,r,a){var n=e+1/(2*Math.tan(t));return r*Math.min(1/(Math.sqrt(n*n+.5)+n),a/(Math.sqrt(e*e+a/2)+e))}function S(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function L(e,t){var r=t.pxmid[0],a=t.pxmid[1],n=e.width/2,i=e.height/2;return r<0&&(n*=-1),a<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:n+Math.abs(i)*(n>0?1:-1)/2,y:i/(1+r*r/(a*a)),outside:!0}}function C(e,t){var r,a,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=O(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+n)*e.r);var s,c,u=(s=e.r,c=e.trace.aspectratio,s/(void 0===c?1:c)),d=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(d+=u,o.x-=(1+n)*u,l.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?d*=2:-1!==i.title.position.indexOf("right")&&(d+=u,o.x+=(1+n)*u,l.tx-=e.titleBox.width/2),r=d/e.titleBox.width,a=z(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,a),tx:l.tx,ty:l.ty}}function z(e,t){var r=e.trace,a=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function O(e){var t,r=e.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function P(e,t){for(var r=[],a=0;a1?u=(c=r.r)/n.aspectratio:c=(u=r.r)*n.aspectratio,s=(c*=(1+n.baseratio)/2)*u}o=Math.min(o,s/r.vTotal)}for(a=0;a")}if(i){var x=l.castOption(n,t.i,"texttemplate");if(x){var b=function(e){return{label:e.label,value:e.v,valueLabel:g.formatPieValue(e.v,a.separators),percent:e.v/r.vTotal,percentLabel:g.formatPiePercent(e.v/r.vTotal,a.separators),color:e.color,text:e.text,customdata:l.castOption(n,e.i,"customdata")}}(t),_=g.getFirstFilled(n.text,t.pts);(m(_)||""===_)&&(b.text=_),t.text=l.texttemplateString(x,b,e._fullLayout._d3locale,b,n._meta||{})}else t.text=""}}function D(e,t){var r=e.rotate*Math.PI/180,a=Math.cos(r),n=Math.sin(r),i=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}e.exports={plot:function(e,t){var n=e._fullLayout,d=n._size;h("pie",n),b(t,e),P(t,d);var p=l.makeTraceGroups(n._pielayer,t,"trace").each((function(t){var h=r.select(this),p=t[0],v=p.trace;!function(e){var t,r,a,n=e[0],i=n.r,o=n.trace,l=g.getRotationAngle(o.rotation),s=2*Math.PI/n.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(t=0;tn.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/n.vTotal,.5),r.ring=1-o.hole,r.rInscribed=S(r,n))}(t),h.attr("stroke-linejoin","round"),h.each((function(){var m=r.select(this).selectAll("g.slice").data(t);m.enter().append("g").classed("slice",!0),m.exit().remove();var b=[[[],[]],[[],[]]],w=!1;m.each((function(a,i){if(a.hidden)r.select(this).selectAll("path,g").remove();else{a.pointNumber=a.i,a.curveNumber=v.index,b[a.pxmid[1]<0?0:1][a.pxmid[0]<0?0:1].push(a);var s=p.cx,c=p.cy,d=r.select(this),h=d.selectAll("path.surface").data([a]);if(h.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),d.call(y,e,t),v.pull){var m=+g.castOption(v.pull,a.pts)||0;m>0&&(s+=m*a.pxmid[0],c+=m*a.pxmid[1])}a.cxFinal=s,a.cyFinal=c;var k=v.hole;if(a.v===p.vTotal){var A="M"+(s+a.px0[0])+","+(c+a.px0[1])+z(a.px0,a.pxmid,!0,1)+z(a.pxmid,a.px0,!0,1)+"Z";k?h.attr("d","M"+(s+k*a.px0[0])+","+(c+k*a.px0[1])+z(a.px0,a.pxmid,!1,k)+z(a.pxmid,a.px0,!1,k)+"Z"+A):h.attr("d",A)}else{var T=z(a.px0,a.px1,!0,1);if(k){var M=1-k;h.attr("d","M"+(s+k*a.px1[0])+","+(c+k*a.px1[1])+z(a.px1,a.px0,!1,k)+"l"+M*a.px0[0]+","+M*a.px0[1]+T+"Z")}else h.attr("d","M"+s+","+c+"l"+a.px0[0]+","+a.px0[1]+T+"Z")}F(e,a,p);var S=g.castOption(v.textposition,a.pts),C=d.selectAll("g.slicetext").data(a.text&&"none"!==S?[0]:[]);C.enter().append("g").classed("slicetext",!0),C.exit().remove(),C.each((function(){var d=l.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),h=l.ensureUniformFontSize(e,"outside"===S?function(e,t,r){var a=g.castOption(e.outsidetextfont.color,t.pts)||g.castOption(e.textfont.color,t.pts)||r.color,n=g.castOption(e.outsidetextfont.family,t.pts)||g.castOption(e.textfont.family,t.pts)||r.family,i=g.castOption(e.outsidetextfont.size,t.pts)||g.castOption(e.textfont.size,t.pts)||r.size;return{color:a,family:n,size:i}}(v,a,n.font):x(v,a,n.font));d.text(a.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(o.font,h).call(u.convertToTspans,e);var m,y=o.bBox(d.node());if("outside"===S)m=L(y,a);else if(m=_(y,a,p),"auto"===S&&m.scale<1){var b=l.ensureUniformFontSize(e,v.outsidetextfont);d.call(o.font,b),m=L(y=o.bBox(d.node()),a)}var k=m.textPosAngle,A=void 0===k?a.pxmid:I(p.r,k);if(m.targetX=s+A[0]*m.rCenter+(m.x||0),m.targetY=c+A[1]*m.rCenter+(m.y||0),D(m,y),m.outside){var T=m.targetY;a.yLabelMin=T-y.height/2,a.yLabelMid=T,a.yLabelMax=T+y.height/2,a.labelExtraX=0,a.labelExtraY=0,w=!0}m.fontSize=h.size,f(v.type,m,n),t[i].transform=m,d.attr("transform",l.getTextTransform(m))}))}function z(e,t,r,n){var i=n*(t[0]-e[0]),o=n*(t[1]-e[1]);return"a"+n*p.r+","+n*p.r+" 0 "+a.largeArc+(r?" 1 ":" 0 ")+i+","+o}}));var k=r.select(this).selectAll("g.titletext").data(v.title.text?[0]:[]);if(k.enter().append("g").classed("titletext",!0),k.exit().remove(),k.each((function(){var t,a=l.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),n=v.title.text;v._meta&&(n=l.templateString(n,v._meta)),a.text(n).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(o.font,v.title.font).call(u.convertToTspans,e),t="middle center"===v.title.position?function(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(p):C(p,d),a.attr("transform",c(t.x,t.y)+s(Math.min(1,t.scale))+c(t.tx,t.ty))})),w&&function(e,t){var r,a,n,i,o,l,s,c,u,d,f,h,p;function v(e,t){return e.pxmid[1]-t.pxmid[1]}function m(e,t){return t.pxmid[1]-e.pxmid[1]}function y(e,r){r||(r={});var n,c,u,f,h=r.labelExtraY+(a?r.yLabelMax:r.yLabelMin),p=a?e.yLabelMin:e.yLabelMax,v=a?e.yLabelMax:e.yLabelMin,m=e.cyFinal+o(e.px0[1],e.px1[1]),y=h-p;if(y*s>0&&(e.labelExtraY=y),Array.isArray(t.pull))for(c=0;c=(g.castOption(t.pull,u.pts)||0)||((e.pxmid[1]-u.pxmid[1])*s>0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-p-e.labelExtraY)*s>0&&(e.labelExtraY+=y):(v+e.labelExtraY-m)*s>0&&(n=3*l*Math.abs(c-d.indexOf(e)),(f=u.cxFinal+i(u.px0[0],u.px1[0])+n-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=f)))}for(a=0;a<2;a++)for(n=a?v:m,o=a?Math.max:Math.min,s=a?1:-1,r=0;r<2;r++){for(i=r?Math.max:Math.min,l=r?1:-1,(c=e[a][r]).sort(n),u=e[1-a][r],d=u.concat(c),h=[],f=0;fMath.abs(d)?s+="l"+d*e.pxmid[0]/e.pxmid[1]+","+d+"H"+(o+e.labelExtraX+c):s+="l"+e.labelExtraX+","+u+"v"+(d-u)+"h"+c}else s+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;l.ensureSingle(a,"path","textline").call(i.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})}else a.select("path.textline").remove()}))}(m,v),w&&v.automargin){var A=o.bBox(h.node()),T=v.domain,M=d.w*(T.x[1]-T.x[0]),S=d.h*(T.y[1]-T.y[0]),z=(.5*M-p.r)/d.w,O=(.5*S-p.r)/d.h;a.autoMargin(e,"pie."+v.uid+".automargin",{xl:T.x[0]-z,xr:T.x[1]+z,yb:T.y[0]-O,yt:T.y[1]+O,l:Math.max(p.cx-p.r-A.left,0),r:Math.max(A.right-(p.cx+p.r),0),b:Math.max(A.bottom-(p.cy+p.r),0),t:Math.max(p.cy-p.r-A.top,0),pad:5})}}))}));setTimeout((function(){p.selectAll("tspan").each((function(){var e=r.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:F,transformInsideText:_,determineInsideTextFont:x,positionTitleOutside:C,prerenderTitles:b,layoutAreas:P,attachFxHandlers:y,computeTransform:D}},hjRUfPJm:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),a=t("FW/+9MgV"),n=t("v1szbzNU");e.exports=function(e,t){a(e,t,(function(a,i){return r.coerce(e,t,n,a,i)}))}},i1GgYbcZ:function(e,exports,t){"use strict";var r=t("yAcToaBS"),a=t("0Ft3SWJB"),n=t("4JfnfFRI"),i=t("qPokwaSi"),o=t("46lPXjlm").BADNUM,l=t("FAQM5QER"),s=t("SeoPvd/E"),c=t("kh0qQ2F+"),u=t("ArZ24uYa");function d(e,t,r,a,i,o,s){var c=t._length,u=e._fullLayout,d=r._id,f=a._id,h=u._firstScatter[p(t)]===t.uid,v=(g(t,u,r,a)||{}).orientation,m=t.fill;r._minDtick=0,a._minDtick=0;var y={padded:!0},x={padded:!0};s&&(y.ppad=x.ppad=s);var b=c<2||i[0]!==i[c-1]||o[0]!==o[c-1];b&&("tozerox"===m||"tonextx"===m&&(h||"h"===v))?y.tozero=!0:(t.error_y||{}).visible||"tonexty"!==m&&"tozeroy"!==m&&(l.hasMarkers(t)||l.hasText(t))||(y.padded=!1,y.ppad=0),b&&("tozeroy"===m||"tonexty"===m&&(h||"v"===v))?x.tozero=!0:"tonextx"!==m&&"tozerox"!==m||(x.padded=!1),d&&(t._extremes[d]=n.findExtremes(r,i,y)),f&&(t._extremes[f]=n.findExtremes(a,o,x))}function f(e,t){if(l.hasMarkers(e)){var r,i=e.marker,o=1.6*(e.marker.sizeref||1);if(r="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/o),3)}:function(e){return Math.max((e||0)/o,3)},a.isArrayOrTypedArray(i.size)){var s={type:"linear"};n.setConvert(s);for(var c=s.makeCalcdata(e.marker,"size"),u=new Array(t),d=0;dp&&L[m].gap;)m--;for(x=L[m].s,v=L.length-1;v>m;v--)L[v].s=x;for(;pd+c||!r(u))}for(var h=0;hS&&k.splice(S,k.length-S),M.length>S&&M.splice(S,M.length-S);var L=[],C=[],z=[],O="string"==typeof w.size,P="string"==typeof T.size,I=[],F=[],D=O?I:w,R=P?F:T,E=0,j=[],B=[],N=t.histnorm,H=t.histfunc,W=-1!==N.indexOf("density"),V="max"===H||"min"===H?null:0,G=n.count,q=i[N],U=!1,Z=[],X=[],J="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";J&&"count"!==H&&(U="avg"===H,G=n[H]);var Y=w.size,Q=x(w.start),K=x(w.end)+(Q-a.tickIncrement(Q,Y,!1,m))/1e6;for(l=Q;l=0&&h=0&&p0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",l(o-.5*u.gripWidth,t._dims.currentValueTotalHeight))}}function S(e,t){var r=e._dims;return r.inputAreaStart+u.stepInset+(r.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,t))}function L(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-u.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*u.stepInset-2*r.inputAreaStart)))}function C(e,t,r){var a=r._dims,l=o.ensureSingle(e,"rect",u.railTouchRectClass,(function(a){a.call(A,t,e,r).style("pointer-events","all")}));l.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,u.tickOffset+r.ticklen+a.labelHeight)}).call(n.fill,r.bgcolor).attr("opacity",0),i.setTranslate(l,0,a.currentValueTotalHeight)}function z(e,t){var r=t._dims,a=r.inputAreaLength-2*u.railInset,l=o.ensureSingle(e,"rect",u.railRectClass);l.attr({width:a,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(n.stroke,t.bordercolor).call(n.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),i.setTranslate(l,u.railInset,.5*(r.inputAreaWidth-u.railWidth)+r.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,n=function(e,t){for(var r=e[u.name],a=[],n=0;n0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),a.autoMargin(e,g(t))}if(o.enter().append("g").classed(u.containerClassName,!0).style("cursor","ew-resize"),o.exit().each((function(){r.select(this).selectAll("g."+u.groupClassName).each(l)})).remove(),0!==n.length){var s=o.selectAll("g."+u.groupClassName).data(n,v);s.enter().append("g").classed(u.groupClassName,!0),s.exit().each(l).remove();for(var c=0;cl.duration?(!function(){for(var r={},n=0;n rect").call(i.setTranslate,0,0).call(i.setScale,1,1),e.plot.call(i.setTranslate,t._offset,r._offset).call(i.setScale,1,1);var a=e.plot.selectAll(".scatterlayer .trace");a.selectAll(".point").call(i.setPointGroupScale,1,1),a.selectAll(".textpoint").call(i.setTextPointsScale,1,1),a.call(i.hideOutsideRangePoints,e)}function v(t,r){var a=t.plotinfo,l=a.xaxis,s=a.yaxis,c=l._length,u=s._length,d=!!t.xr1,f=!!t.yr1,h=[];if(d){var p=n.simpleMap(t.xr0,l.r2l),g=n.simpleMap(t.xr1,l.r2l),v=p[1]-p[0],m=g[1]-g[0];h[0]=(p[0]*(1-r)+r*g[0]-p[0])/(p[1]-p[0])*c,h[2]=c*(1-r+r*m/v),l.range[0]=l.l2r(p[0]*(1-r)+r*g[0]),l.range[1]=l.l2r(p[1]*(1-r)+r*g[1])}else h[0]=0,h[2]=c;if(f){var y=n.simpleMap(t.yr0,s.r2l),x=n.simpleMap(t.yr1,s.r2l),b=y[1]-y[0],_=x[1]-x[0];h[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,h[3]=u*(1-r+r*_/b),s.range[0]=l.l2r(y[0]*(1-r)+r*x[0]),s.range[1]=s.l2r(y[1]*(1-r)+r*x[1])}else h[1]=0,h[3]=u;o.drawOne(e,l,{skipTitle:!0}),o.drawOne(e,s,{skipTitle:!0}),o.redrawComponents(e,[l._id,s._id]);var w=d?c/h[2]:1,k=f?u/h[3]:1,A=d?h[0]:0,T=f?h[1]:0,M=d?h[0]/h[2]*c:0,S=f?h[1]/h[3]*u:0,L=l._offset-M,C=s._offset-S;a.clipRect.call(i.setTranslate,A,T).call(i.setScale,1/w,1/k),a.plot.call(i.setTranslate,L,C).call(i.setScale,w,k),i.setPointGroupScale(a.zoomScalePts,1/w,1/k),i.setTextPointsScale(a.zoomScaleTxt,1/w,1/k)}o.redrawComponents(e)}},"kAv/b5aV":function(e,exports,t){"use strict";var r=t("yAcToaBS"),a=t("0Ft3SWJB");e.exports=function(e,t,n,i){var o,l,s,c,u=i.counterAxes||[],d=i.overlayableAxes||[],f=i.letter,h=i.grid;h&&(l=h._domains[f][h._axisMap[t._id]],o=h._anchors[t._id],l&&(s=h[f+"side"].split(" ")[0],c=h.domain[f]["right"===s||"top"===s?1:0])),l=l||[0,1],o=o||(r(e.position)?"free":u[0]||"free"),s=s||("x"===f?"bottom":"left"),c=c||0,"free"===a.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(u),dflt:o}},"anchor")&&n("position",c),a.coerce(e,t,{side:{valType:"enumerated",values:"x"===f?["bottom","top"]:["left","right"],dflt:s}},"side");var p=!1;if(d.length&&(p=a.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(d),dflt:!1}},"overlaying")),!p){var g=n("domain",l);g[0]>g[1]-1/4096&&(t.domain=l),a.noneOrAll(e.domain,t.domain,l)}return n("layer"),t}},"kca9bvt+":function(e,exports,t){"use strict";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},kgrieRGX:function(e,exports,t){"use strict";var r=t("btK4Orgn"),a=t("lHLBDM7v"),n=t("jGt2471r"),i=t("WoUvVyRa").sorterAsc,o=t("R5um7Wku");exports.containerArrayMatch=t("/uZtpOd0");var l=exports.isAddVal=function(e){return"add"===e||r(e)},s=exports.isRemoveVal=function(e){return null===e||"remove"===e};exports.applyContainerArrayChanges=function(e,t,r,c,u){var d=t.astr,f=o.getComponentMethod(d,"supplyLayoutDefaults"),h=o.getComponentMethod(d,"draw"),p=o.getComponentMethod(d,"drawOne"),g=c.replot||c.recalc||f===a||h===a,v=e.layout,m=e._fullLayout;if(r[""]){Object.keys(r).length>1&&n.warn("Full array edits are incompatible with other edits",d);var y=r[""][""];if(s(y))t.set(null);else{if(!Array.isArray(y))return n.warn("Unrecognized full array edit value",d,y),!0;t.set(y)}return!g&&(f(v,m),h(e),!0)}var x,b,_,w,k,A,T,M,S=Object.keys(r).map(Number).sort(i),L=t.get(),C=L||[],z=u(m,d).get(),O=[],P=-1,I=C.length;for(x=0;xC.length-(T?0:1))n.warn("index out of range",d,_);else if(void 0!==A)k.length>1&&n.warn("Insertion & removal are incompatible with edits to the same index.",d,_),s(A)?O.push(_):T?("add"===A&&(A={}),C.splice(_,0,A),z&&z.splice(_,0,{})):n.warn("Unrecognized full object edit value",d,_,A),-1===P&&(P=_);else for(b=0;b=0;x--)C.splice(O[x],1),z&&z.splice(O[x],1);if(C.length?L||t.set(C):t.set(null),g)return!1;if(f(v,m),p!==a){var F;if(-1===P)F=S;else{for(I=Math.max(C.length,I),F=[],x=0;x=P);x++)F.push(_);for(x=P;xplotly-logomark"}}},m0Wpdmtz:function(e,exports,t){"use strict";var r=t("Zf49CTZG");e.exports={moduleType:"component",name:r.name,layoutAttributes:t("3C3qwmq/"),supplyLayoutDefaults:t("J+WNd9JU"),draw:t("0Ed4c6gV")}},msRxLST1:function(e,exports,t){"use strict";var r=t("SncXPNSm"),a=t("OzUSSj1k").hovertemplateAttrs,n=t("OzUSSj1k").texttemplateAttrs,i=t("kwWFMz5J"),o=t("lf8+9Xc7"),l=t("MzXAamq8"),s=t("xE+ZFgwY").extendFlat,c=o({editType:"calc",arrayOk:!0,colorEditType:"style",description:""}),u=s({},r.marker.line.width,{dflt:0}),d=s({width:u,editType:"calc"},i("marker.line")),f=s({line:d,editType:"calc"},i("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,role:"style",editType:"style",description:"Sets the opacity of the bars."}});e.exports={x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:r.xperiod0,yperiod0:r.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,text:r.text,texttemplate:n({editType:"plot"},{keys:l.eventDataKeys}),hovertext:r.hovertext,hovertemplate:a({},{keys:l.eventDataKeys}),textposition:{valType:"enumerated",role:"info",values:["inside","outside","auto","none"],dflt:"none",arrayOk:!0,editType:"calc",description:["Specifies the location of the `text`.","*inside* positions `text` inside, next to the bar end","(rotated and scaled if needed).","*outside* positions `text` outside, next to the bar end","(scaled if needed), unless there is another bar stacked on","this one, then the text gets pushed inside.","*auto* tries to position `text` inside the bar, but if","the bar is too small and no bar is stacked on this one","the text is moved outside."].join(" ")},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",role:"info",editType:"plot",description:["Determines if texts are kept at center or start/end points in `textposition` *inside* mode."].join(" ")},textangle:{valType:"angle",dflt:"auto",role:"info",editType:"plot",description:["Sets the angle of the tick labels with respect to the bar.","For example, a `tickangle` of -90 draws the tick labels","vertically. With *auto* the texts may automatically be","rotated to fit with the maximum size in bars."].join(" ")},textfont:s({},c,{description:"Sets the font used for `text`."}),insidetextfont:s({},c,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:s({},c,{description:"Sets the font used for `text` lying outside the bar."}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],role:"info",dflt:"both",editType:"calc",description:["Constrain the size of text inside or outside a bar to be no","larger than the bar itself."].join(" ")},cliponaxis:s({},r.cliponaxis,{description:["Determines whether the text nodes","are clipped about the subplot axes.","To show the text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")}),orientation:{valType:"enumerated",role:"info",values:["v","h"],editType:"calc+clearAxisTypes",description:["Sets the orientation of the bars.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal)."].join(" ")},base:{valType:"any",dflt:null,arrayOk:!0,role:"info",editType:"calc",description:["Sets where the bar base is drawn (in position axis units).","In *stack* or *relative* barmode,","traces that set *base* will be excluded","and drawn in *overlay* mode instead."].join(" ")},offset:{valType:"number",dflt:null,arrayOk:!0,role:"info",editType:"calc",description:["Shifts the position where the bar is drawn","(in position axis units).","In *group* barmode,","traces that set *offset* will be excluded","and drawn in *overlay* mode instead."].join(" ")},width:{valType:"number",dflt:null,min:0,arrayOk:!0,role:"info",editType:"calc",description:["Sets the bar width (in position axis units)."].join(" ")},marker:f,offsetgroup:{valType:"string",role:"info",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","offsetgroup where bars of the same position coordinate will line up."].join(" ")},alignmentgroup:{valType:"string",role:"info",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","alignmentgroup. This controls whether bars compute their positional","range dependently or independently."].join(" ")},selected:{marker:{opacity:r.selected.marker.opacity,color:r.selected.marker.color,editType:"style"},textfont:r.selected.textfont,editType:"style"},unselected:{marker:{opacity:r.unselected.marker.opacity,color:r.unselected.marker.color,editType:"style"},textfont:r.unselected.textfont,editType:"style"},r:r.r,t:r.t,_deprecated:{bardir:{valType:"enumerated",role:"info",editType:"calc",values:["v","h"],description:"Renamed to `orientation`."}}}},nA340hA2:function(e,exports,t){"use strict";var r=t("0Ft3SWJB"),a=t("OrkhUD6z").dfltConfig;var n={add:function(e,t,r,n,i){var o,l;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},l=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(l,e.undoQueue.queue.length-l,o),e.undoQueue.index+=1):o=e.undoQueue.queue[l-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(t),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(i)),e.undoQueue.queue.length>a.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,r;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,r=0;r=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;ra?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},exports.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]},exports.isLinked=function(e,t){return n(t,e._axisMatchGroups)||n(t,e._axisConstraintGroups)}},"naJ7bfx/":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("yAcToaBS"),n=t("+ELfTWmT"),i=t("FAQM5QER");e.exports=function(e,t,o,l){var s=o.xaxis,c=o.yaxis,u=l&&l.duration>0;t.each((function(t){var d,f=t[0].trace,h=f.error_x||{},p=f.error_y||{};f.ids&&(d=function(e){return e.id});var g=i.hasMarkers(f)&&f.marker.maxdisplayed>0;p.visible||h.visible||(t=[]);var v=r.select(this).selectAll("g.errorbar").data(t,d);if(v.exit().remove(),t.length){h.visible||v.selectAll("path.xerror").remove(),p.visible||v.selectAll("path.yerror").remove(),v.style("opacity",1);var m=v.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(l.duration).style("opacity",1),n.setClipUrl(v,o.layerClipId,e),v.each((function(e){var t=r.select(this),n=function(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};void 0!==e.yh&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),a(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0)));void 0!==e.xh&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),a(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0)));return n}(e,s,c);if(!g||e.vis){var i,o=t.select("path.yerror");if(p.visible&&a(n.x)&&a(n.yh)&&a(n.ys)){var d=p.width;i="M"+(n.x-d)+","+n.yh+"h"+2*d+"m-"+d+",0V"+n.ys,n.noYS||(i+="m-"+d+",0h"+2*d),!o.size()?o=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):u&&(o=o.transition().duration(l.duration).ease(l.easing)),o.attr("d",i)}else o.remove();var f=t.select("path.xerror");if(h.visible&&a(n.y)&&a(n.xh)&&a(n.xs)){var v=(h.copy_ystyle?p:h).width;i="M"+n.xh+","+(n.y-v)+"v"+2*v+"m0,-"+v+"H"+n.xs,n.noXS||(i+="m0,-"+v+"v"+2*v),!f.size()?f=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):u&&(f=f.transition().duration(l.duration).ease(l.easing)),f.attr("d",i)}else f.remove()}}))}}))}},nfwe4Djo:function(e,exports,t){"use strict";exports.xmlns="http://www.w3.org/2000/xmlns/",exports.svg="http://www.w3.org/2000/svg",exports.xlink="http://www.w3.org/1999/xlink",exports.svgAttrs={xmlns:exports.svg,"xmlns:xlink":exports.xlink}},nuD6RlFT:function(e,exports,t){var r,a=t("Y3NUXw+c"),n=t("pEIGVlOg"),i=t("XLNBrVO3"),o=t("ipaMYO3e"),l=t("D/sHMWhy"),s=t("zMQrMJO6"),c=!1,u=n();function d(e,t,a){var n=r.segments(e),i=r.segments(t),o=a(r.combine(n,i));return r.polygon(o)}r={buildLog:function(e){return!0===e?c=a():!1===e&&(c=!1),!1!==c&&c.list},epsilon:function(e){return u.epsilon(e)},segments:function(e){var t=i(!0,u,c);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:i(!1,u,c).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:l.union(e.combined,c),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:l.intersect(e.combined,c),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:l.difference(e.combined,c),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:l.differenceRev(e.combined,c),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:l.xor(e.combined,c),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:o(e.segments,u,c),inverted:e.inverted}},polygonFromGeoJSON:function(e){return s.toPolygon(r,e)},polygonToGeoJSON:function(e){return s.fromPolygon(r,u,e)},union:function(e,t){return d(e,t,r.selectUnion)},intersect:function(e,t){return d(e,t,r.selectIntersect)},difference:function(e,t){return d(e,t,r.selectDifference)},differenceRev:function(e,t){return d(e,t,r.selectDifferenceRev)},xor:function(e,t){return d(e,t,r.selectXor)}},"object"==typeof window&&(window.PolyBool=r),e.exports=r},nwKXjxmY:function(e,exports,t){"use strict";var r,a="object"==typeof Reflect?Reflect:null,n=a&&"function"==typeof a.apply?a.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var l=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,a){var n,i,o,l;if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=a?[r,o]:[o,r]:a?o.unshift(r):o.push(r),(n=c(e))>0&&o.length>n&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,l=u,console&&console.warn&&console.warn(l)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=d.bind(a);return n.listener=r,a.wrapFn=n,n}function h(e,t,r){var a=e._events;if(void 0===a)return[];var n=a[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else{var c=s.length,u=g(s,c);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,n=i;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},oXmYuaEE:function(e,exports,t){"use strict";e.exports=function(){var e,t=[],r=-1,a=!1;function n(e,t){return e?(a=!0,e[t](),a=!1,this):this}return{add:function(e){return a||(t.splice(r+1,t.length-r),t.push(e),r=t.length-1),this},setCallback:function(t){e=t},undo:function(){var a=t[r];return a?(n(a,"undo"),r-=1,e&&e(a.undo),this):this},redo:function(){var a=t[r+1];return a?(n(a,"redo"),r+=1,e&&e(a.redo),this):this},clear:function(){t=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r=-e},pointBetween:function(t,r,a){var n=t[1]-r[1],i=a[0]-r[0],o=t[0]-r[0],l=a[1]-r[1],s=o*i+n*l;return!(s-e)},pointsSameX:function(t,r){return Math.abs(t[0]-r[0])e!=o-n>e&&(i-c)*(n-u)/(o-u)+c-a>e&&(l=!l),i=c,o=u}return l}};return t}},pJrJ3hmH:function(e,exports,t){"use strict";var r=t("i1GgYbcZ");function a(e,t,r,a,n,i,o){n[a]=!0;var l={i:null,gap:!0,s:0};if(l[o]=r,e.splice(t,0,l),t&&r===e[t-1][o]){var s=e[t-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else i&&(l.s=function(e,t,r,a){var n=e[t-1],i=e[t+1];return i?n?n.s+(i.s-n.s)*(r-n[a])/(i[a]-n[a]):i.s:n.s}(e,t,r,o));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}e.exports=function(e,t){var n=t.xaxis,i=t.yaxis,o=n._id+i._id,l=e._fullLayout._scatterStackOpts[o];if(l){var s,c,u,d,f,h,p,g,v,m,y,x,b,_,w,k=e.calcdata;for(var A in l){var T=(m=l[A]).traceIndices;if(T.length){for(y="interpolate"===m.stackgaps,x=m.groupnorm,"v"===m.orientation?(b="x",_="y"):(b="y",_="x"),w=new Array(T.length),s=0;sM[u]&&u=0,x=t.indexOf("end")>=0,b=p.backoff*v+i.standoff,_=g.backoff*m+i.startstandoff;if("line"===h.nodeName){c={x:+e.attr("x1"),y:+e.attr("y1")},u={x:+e.attr("x2"),y:+e.attr("y2")};var w=c.x-u.x,k=c.y-u.y;if(f=(d=Math.atan2(k,w))+Math.PI,b&&_&&b+_>Math.sqrt(w*w+k*k))return void F();if(b){if(b*b>w*w+k*k)return void F();var A=b*Math.cos(d),T=b*Math.sin(d);u.x+=A,u.y+=T,e.attr({x2:u.x,y2:u.y})}if(_){if(_*_>w*w+k*k)return void F();var M=_*Math.cos(d),S=_*Math.sin(d);c.x-=M,c.y-=S,e.attr({x1:c.x,y1:c.y})}}else if("path"===h.nodeName){var L=h.getTotalLength(),C="";if(L0&&Math.round(d)===d))return l;c=d}for(var f=t.calendar,h="start"===s,p="end"===s,g=e[a+"period0"],v=n(g,f)||0,m=[],y=l.length,x=0;xk;)w=i(w,-c,f);for(;w<=k;)w=i(w,c,f);_=i(w,-c,f)}else{for(w=v+(b=Math.round((k-v)/u))*u;w>k;)w-=u;for(;w<=k;)w+=u;_=w-u}m[x]=h?_:p?w:(_+w)/2}return m}},qYUMvhEP:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("0Ft3SWJB"),n=t("+ELfTWmT"),i=t("/oRevOrA"),o=t("nfwe4Djo"),l=/"/g,s="TOBESTRIPPED",c=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t,u){var d,f=e._fullLayout,h=f._paper,p=f._toppaper,g=f.width,v=f.height;h.insert("rect",":first-child").call(n.setRect,0,0,g,v).call(i.fill,f.paper_bgcolor);var m=f._basePlotModules||[];for(d=0;d")?"":t.html(e).text()}));return t.remove(),a}(A),A=(A=A.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(c,"'"),a.isIE()&&(A=(A=(A=A.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),A}},qv1FlERR:function(e,exports,t){"use strict";var r=t("yAcToaBS"),a=t("0Ft3SWJB"),n=t("46lPXjlm").BADNUM,i=a.isArrayOrTypedArray,o=a.isDateTime,l=a.cleanNumber,s=Math.round;function c(e,t){return t?r(e):"number"==typeof e}function u(e){return Math.max(1,(e-1)/1e3)}e.exports=function(e,t,a){var d=e,f=a.noMultiCategory;if(i(d)&&!d.length)return"-";if(!f&&function(e){return i(e[0])&&i(e[1])}(d))return"multicategory";if(f&&Array.isArray(d[0])){for(var h=[],p=0;p2*l}(d,t))return"date";var v="strict"!==a.autotypenumbers;return function(e,t){for(var r=e.length,a=u(r),i=0,o=0,c={},d=0;d2*i}(d,v)?"category":function(e,t){for(var r=e.length,a=0;a0?f+c:c;return{ppad:c,ppadplus:u?p:g,ppadminus:u?g:p}}return{ppad:c}}function c(e,t,r,a,o){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(r)];if(a){var s,c,u,d,f=1/0,h=-1/0,p=a.match(n.segmentRE);for("date"===e.type&&(l=i.decodeDate(l)),s=0;sh&&(h=d)));return h>=f?[f,h]:void 0}}e.exports=function(e){var t=e._fullLayout,i=r.filterVisible(t.shapes);if(i.length&&e._fullData.length)for(var s=0;s=e.data.length||n<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(n,a+1)>-1||n>=0&&t.indexOf(-e.data.length+n)>-1||n<0&&t.indexOf(e.data.length+n)>-1)throw new Error("each index in "+r+" must be unique.")}}function I(e,t,r){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]),P(e,t,"currentIndices"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&P(e,r,"newIndices"),void 0!==r&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function F(e,t,r,n,l){!function(e,t,r,a){var n=i.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!i.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===r)throw new Error("indices must be an integer or array of integers");for(var o in P(e,r,"indices"),t){if(!Array.isArray(t[o])||t[o].length!==r.length)throw new Error("attribute "+o+" must be an array of length equal to indices array length");if(n&&(!(o in a)||!Array.isArray(a[o])||a[o].length!==t[o].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,r,n);for(var s=function(e,t,r,n){var l,s,c,u,d,f=i.isPlainObject(n),h=[];for(var p in Array.isArray(r)||(r=[r]),r=O(r,e.data.length-1),t)for(var g=0;g-1?s(r,r.replace("titlefont","title.font")):r.indexOf("titleposition")>-1?s(r,r.replace("titleposition","title.position")):r.indexOf("titleside")>-1?s(r,r.replace("titleside","title.side")):r.indexOf("titleoffset")>-1&&s(r,r.replace("titleoffset","title.offset")):s(r,r.replace("title","title.text"));function s(t,r){e[r]=e[t],delete e[t]}}function W(e,t,r){if(e=i.getGraphDiv(e),w.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var a={};if("string"==typeof t)a[t]=r;else{if(!i.isPlainObject(t))return i.warn("Relayout fail.",t,r),Promise.reject();a=i.extendFlat({},t)}Object.keys(a).length&&(e.changed=!0);var n=X(e,a),o=n.flags;o.calc&&(e.calcdata=void 0);var l=[d.previousPromises];o.layoutReplot?l.push(k.layoutReplot):Object.keys(a).length&&(V(e,o,n)||d.supplyDefaults(e),o.legend&&l.push(k.doLegend),o.layoutstyle&&l.push(k.layoutStyles),o.axrange&&G(l,n.rangesAltered),o.ticks&&l.push(k.doTicksRelayout),o.modebar&&l.push(k.doModeBar),o.camera&&l.push(k.doCamera),o.colorbars&&l.push(k.doColorBars),l.push(S)),l.push(d.rehover,d.redrag),s.add(e,W,[e,n.undoit],W,[e,n.redoit]);var c=i.syncOrAsync(l,e);return c&&c.then||(c=Promise.resolve(e)),c.then((function(){return e.emit("plotly_relayout",n.eventData),e}))}function V(e,t,r){var a=e._fullLayout;if(!t.axrange)return!1;for(var n in t)if("axrange"!==n&&t[n])return!1;for(var i in r.rangesAltered){var o=h.id2name(i),l=e.layout[o],s=a[o];if(s.autorange=l.autorange,l.range&&(s.range=l.range.slice()),s.cleanRange(),s._matchGroup)for(var c in s._matchGroup)if(c!==i){var u=a[h.id2name(c)];u.autorange=s.autorange,u.range=s.range.slice(),u._input.range=s.range.slice()}}return!0}function G(e,t){var r=t?function(e){var r=[],a=!0;for(var n in t){var i=h.getFromId(e,n);if(r.push(n),-1!==(i.ticklabelposition||"").indexOf("inside")&&i._anchorAxis&&r.push(i._anchorAxis._id),i._matchGroup)for(var o in i._matchGroup)t[o]||r.push(o);i.automargin&&(a=!1)}return h.draw(e,r,{skipTitle:a})}:function(e){return h.draw(e,"redraw")};e.push(x,k.doAutoRangeAndConstraints,r,k.drawData,k.finalDraw)}var q=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,U=/^[xyz]axis[0-9]*\.autorange$/,Z=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function X(e,t){var r,a,n,l=e.layout,s=e._fullLayout,d=s._guiEditing,f=j(s._preGUI,d),p=Object.keys(t),g=h.list(e),v=i.extendDeepAll({},t),m={};for(H(t),p=Object.keys(t),a=0;a0&&"string"!=typeof I.parts[D];)D--;var R=I.parts[D],B=I.parts[D-1]+"."+R,N=I.parts.slice(0,D).join("."),W=o(e.layout,N).get(),V=o(s,N).get(),G=I.get();if(void 0!==F){M[P]=F,S[P]="reverse"===R?F:E(G);var X=u.getLayoutValObject(s,I.parts);if(X&&X.impliedEdits&&null!==F)for(var Y in X.impliedEdits)L(i.relativeAttr(P,Y),X.impliedEdits[Y]);if(-1!==["width","height"].indexOf(P))if(F){L("autosize",null);var Q="height"===P?"width":"height";L(Q,s[Q])}else s[P]=e._initialAutoSize[P];else if("autosize"===P)L("width",F?null:s.width),L("height",F?null:s.height);else if(B.match(q))O(B),o(s,N+"._inputRange").set(null);else if(B.match(U)){O(B),o(s,N+"._inputRange").set(null);var K=o(s,N).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else B.match(Z)&&o(s,N+"._inputDomain").set(null);if("type"===R){C=W;var ee="linear"===V.type&&"log"===F,te="log"===V.type&&"linear"===F;if(ee||te){if(C&&C.range)if(V.autorange)ee&&(C.range=C.range[1]>C.range[0]?[1,2]:[2,1]);else{var re=C.range[0],ae=C.range[1];ee?(re<=0&&ae<=0&&L(N+".autorange",!0),re<=0?re=ae/1e6:ae<=0&&(ae=re/1e6),L(N+".range[0]",Math.log(re)/Math.LN10),L(N+".range[1]",Math.log(ae)/Math.LN10)):(L(N+".range[0]",Math.pow(10,re)),L(N+".range[1]",Math.pow(10,ae)))}else L(N+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[I.parts[0]]&&"radialaxis"===I.parts[1]&&delete s[I.parts[0]]._subplot.viewInitial["radialaxis.range"],c.getComponentMethod("annotations","convertCoords")(e,V,F,L),c.getComponentMethod("images","convertCoords")(e,V,F,L)}else L(N+".autorange",!0),L(N+".range",null);o(s,N+"._inputRange").set(null)}else if(R.match(T)){var ne=o(s,P).get(),ie=(F||{}).type;ie&&"-"!==ie||(ie="linear"),c.getComponentMethod("annotations","convertCoords")(e,ne,ie,L),c.getComponentMethod("images","convertCoords")(e,ne,ie,L)}var oe=_.containerArrayMatch(P);if(oe){r=oe.array,a=oe.index;var le=oe.property,se=X||{editType:"calc"};""!==a&&""===le&&(_.isAddVal(F)?S[P]=null:_.isRemoveVal(F)?S[P]=(o(l,r).get()||[])[a]:i.warn("unrecognized full object value",t)),A.update(k,se),m[r]||(m[r]={});var ce=m[r][a];ce||(ce=m[r][a]={}),ce[le]=F,delete t[P]}else"reverse"===R?(W.range?W.range.reverse():(L(N+".autorange",!0),W.range=[1,0]),V.autorange?k.calc=!0:k.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===P&&("lasso"===F||"select"===F)&&"lasso"!==G&&"select"!==G||s._has("gl2d")?k.plot=!0:X?A.update(k,X):k.calc=!0,I.set(F))}}for(r in m){_.applyContainerArrayChanges(e,f(l,r),m[r],k,f)||(k.plot=!0)}for(var ue in z){var de=(C=h.getFromId(e,ue))&&C._constraintGroup;if(de)for(var fe in k.calc=!0,de)z[fe]||(h.getFromId(e,fe)._constraintShrinkable=!0)}return(J(e)||t.height||t.width)&&(k.plot=!0),(k.plot||k.calc)&&(k.layoutReplot=!0),{flags:k,rangesAltered:z,undoit:S,redoit:M,eventData:v}}function J(e){var t=e._fullLayout,r=t.width,a=t.height;return e.layout.autosize&&d.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==a}function Y(e,t,r,a){if(e=i.getGraphDiv(e),w.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);i.isPlainObject(t)||(t={}),i.isPlainObject(r)||(r={}),Object.keys(t).length&&(e.changed=!0),Object.keys(r).length&&(e.changed=!0);var n=w.coerceTraceIndices(e,a),o=N(e,i.extendFlat({},t),n),l=o.flags,c=X(e,i.extendFlat({},r)),u=c.flags;(l.calc||u.calc)&&(e.calcdata=void 0),l.clearAxisTypes&&w.clearAxisTypes(e,n,r);var f=[];u.layoutReplot?f.push(k.layoutReplot):l.fullReplot?f.push(exports.plot):(f.push(d.previousPromises),V(e,u,c)||d.supplyDefaults(e),l.style&&f.push(k.doTraceStyle),(l.colorbars||u.colorbars)&&f.push(k.doColorBars),u.legend&&f.push(k.doLegend),u.layoutstyle&&f.push(k.layoutStyles),u.axrange&&G(f,c.rangesAltered),u.ticks&&f.push(k.doTicksRelayout),u.modebar&&f.push(k.doModeBar),u.camera&&f.push(k.doCamera),f.push(S)),f.push(d.rehover,d.redrag),s.add(e,Y,[e,o.undoit,c.undoit,o.traces],Y,[e,o.redoit,c.redoit,o.traces]);var h=i.syncOrAsync(f,e);return h&&h.then||(h=Promise.resolve(e)),h.then((function(){return e.emit("plotly_update",{data:o.eventData,layout:c.eventData}),e}))}function Q(e){return function(t){t._fullLayout._guiEditing=!0;var r=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,r}}var K=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],ee=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function te(e,t){for(var r=0;r1;)if(a.pop(),void 0!==(r=o(t,a.join(".")+".uirevision").get()))return r;return t.uirevision}function ae(e,t){for(var r=0;r=n.length?n[0]:n[e]:n}function s(e){return Array.isArray(o)?e>=o.length?o[0]:o[e]:o}function c(e,t){var r=0;return function(){if(e&&++r===t)return e()}}return void 0===a._frameWaitingCnt&&(a._frameWaitingCnt=0),new Promise((function(o,u){function f(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var t=a._currentFrame=a._frameQueue.shift();if(t){var r=t.name?t.name.toString():null;e._fullLayout._currentFrame=r,a._lastFrameAt=Date.now(),a._timeToNext=t.frameOpts.duration,d.transition(e,t.frame.data,t.frame.layout,w.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:r,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function h(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var t=function(){a._animationRaf=window.requestAnimationFrame(t),Date.now()-a._lastFrameAt>a._timeToNext&&f()};t()}var p,g,v=0;function m(e){return Array.isArray(n)?v>=n.length?e.transitionOpts=n[v]:e.transitionOpts=n[0]:e.transitionOpts=n,v++,e}var y=[],x=null==t,b=Array.isArray(t);if(!x&&!b&&i.isPlainObject(t))y.push({type:"object",data:m(i.extendFlat({},t))});else if(x||-1!==["string","number"].indexOf(typeof t))for(p=0;p0&&AA)&&T.push(g);y=T}}y.length>0?function(t){if(0!==t.length){for(var n=0;n=0;a--)if(i.isPlainObject(t[a])){var g=t[a].name,v=(u[g]||p[g]||{}).name,m=t[a].name,y=u[v]||p[v];v&&m&&"number"==typeof m&&y&&M<5&&(M++,i.warn('addFrames: overwriting frame "'+(u[v]||p[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.'),5===M&&i.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),p[g]={name:g},h.push({frame:d.supplyFrameDefaults(t[a]),index:r&&void 0!==r[a]&&null!==r[a]?r[a]:f+a})}h.sort((function(e,t){return e.index>t.index?-1:e.index=0;a--){if("number"==typeof(n=h[a].frame).name&&i.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;u[n.name="frame "+e._transitionData._counter++];);if(u[n.name]){for(o=0;o=0;r--)a=t[r],o.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var c=d.modifyFrames,u=d.modifyFrames,f=[e,l],h=[e,o];return s&&s.add(e,c,f,u,h),d.modifyFrames(e,o)},exports.addTraces=function e(t,r,a){t=i.getGraphDiv(t);var n,o,l=[],c=exports.deleteTraces,u=e,d=[t,l],f=[t,r];for(function(e,t,r){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),a=0;a=0&&r=0&&r1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*i[0],t.yaxis.r2l(s.y)*i[1],t.zaxis.r2l(s.z)*i[2]]),r(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},"sAx/oUxG":function(e,exports,t){"use strict";var r=t("R5um7Wku"),a=t("0Ft3SWJB"),n=t("A5P9b9BX"),i=t("r3XL/zg0"),o=t("JEbHibKP"),l=t("YnvAs8Q/");e.exports=function(e,t,s){for(var c=e.legend||{},u=0,d=!1,f="normal",h=0;h1);if(!1!==g||c.uirevision){var v=n.newContainer(t,"legend");if(_("uirevision",t.uirevision),!1!==g){_("bgcolor",t.paper_bgcolor),_("bordercolor"),_("borderwidth"),a.coerceFont(_,"font",t.font);var m,y,x,b=_("orientation");"h"===b?(m=0,r.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(y=1.1,x="bottom"):(y=-.1,x="top")):(m=1.02,y=1,x="auto"),_("traceorder",f),l.isGrouped(t.legend)&&_("tracegroupgap"),_("itemsizing"),_("itemwidth"),_("itemclick"),_("itemdoubleclick"),_("x",m),_("xanchor"),_("y",y),_("yanchor",x),_("valign"),a.noneOrAll(c,v,["x","y"]),_("title.text")&&(_("title.side","h"===b?"left":"top"),a.coerceFont(_,"title.font",t.font))}}function _(e,t){return a.coerce(c,v,i,e,t)}}},"scczlX+5":function(e,exports,t){"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:t("a6BPHvoN"),supplyLayoutDefaults:t("723cH3qU"),includeBasePlot:t("lGy/M/Cj")("images"),draw:t("YBg4gvmH"),convertCoords:t("LdzhoiNW")}},sp1wNnHl:function(e,exports,t){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:t("jyzIzA3P"),supplyDefaults:t("5tOsSiMj"),draw:t("Vyghum2a").draw,hasColorbar:t("NU9E/CzI")}},swYnW0Uh:function(e,exports,t){"use strict";var r=t("yAcToaBS");e.exports=function(e){var t=e.marker,a=t.sizeref||1,n=t.sizemin||0,i="area"===t.sizemode?function(e){return Math.sqrt(e/a)}:function(e){return e/a};return function(e){var t=i(e/2);return r(t)&&t>0?Math.max(t,n):0}}},tAeBVoBa:function(e,exports,t){"use strict";var r=t("0Ft3SWJB").dateTick0,a=t("46lPXjlm").ONEWEEK;function n(e,t){return r(t,e%a==0?1:0)}e.exports=function(e,t,r,a,i){if(i||(i={x:!0,y:!0}),i.x){var o=a("xperiod");o&&(a("xperiod0",n(o,t.xcalendar)),a("xperiodalignment"))}if(i.y){var l=a("yperiod");l&&(a("yperiod0",n(l,t.ycalendar)),a("yperiodalignment"))}}},tGjzYLAA:function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("R5um7Wku"),n=t("0Ft3SWJB"),i=n.ensureSingle,o=n.identity,l=t("+ELfTWmT"),s=t("FAQM5QER"),c=t("Yvx+zdsp"),u=t("veoEbvwu"),d=t("fhYYOvxE").tester;function f(e,t,u,f,h,p,g){var v;!function(e,t,a,i,o){var l=a.xaxis,c=a.yaxis,u=r.extent(n.simpleMap(l.range,l.r2c)),d=r.extent(n.simpleMap(c.range,c.r2c)),f=i[0].trace;if(!s.hasMarkers(f))return;var h=f.marker.maxdisplayed;if(0===h)return;var p=i.filter((function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=d[0]&&e.y<=d[1]})),g=Math.ceil(p.length/h),v=0;o.forEach((function(e,r){var a=e[0].trace;s.hasMarkers(a)&&a.marker.maxdisplayed>0&&r0;function y(e){return m?e.transition():e}var x=u.xaxis,b=u.yaxis,_=f[0].trace,w=_.line,k=r.select(p),A=i(k,"g","errorbars"),T=i(k,"g","lines"),M=i(k,"g","points"),S=i(k,"g","text");if(a.getComponentMethod("errorbars","plot")(e,A,u,g),!0===_.visible){var L,C;y(k).style("opacity",_.opacity);var z=_.fill.charAt(_.fill.length-1);"x"!==z&&"y"!==z&&(z=""),f[0][u.isRangePlot?"nodeRangePlot3":"node3"]=k;var O,P,I="",F=[],D=_._prevtrace;D&&(I=D._prevRevpath||"",C=D._nextFill,F=D._polygons);var R,E,j,B,N,H,W,V="",G="",q=[],U=n.noop;if(L=_._ownFill,s.hasLines(_)||"none"!==_.fill){for(C&&C.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(R=l.steps(w.shape),E=l.steps(w.shape.split("").reverse().join(""))):R=E="spline"===w.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?l.smoothclosed(e.slice(1),w.smoothing):l.smoothopen(e,w.smoothing)}:function(e){return"M"+e.join("L")},j=function(e){return E(e.reverse())},q=c(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),W=_._polygons=new Array(q.length),v=0;v1){var a=r.select(this);if(a.datum(f),e)y(a.style("opacity",0).attr("d",O).call(l.lineGroupStyle)).style("opacity",1);else{var n=y(a);n.attr("d",O),l.singleLineStyle(f,n)}}}}}var Z=T.selectAll(".js-line").data(q);y(Z.exit()).style("opacity",0).remove(),Z.each(U(!1)),Z.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(l.lineGroupStyle).each(U(!0)),l.setClipUrl(Z,u.layerClipId,e),q.length?(L?(L.datum(f),B&&H&&(z?("y"===z?B[1]=H[1]=b.c2p(0,!0):"x"===z&&(B[0]=H[0]=x.c2p(0,!0)),y(L).attr("d","M"+H+"L"+B+"L"+V.substr(1)).call(l.singleFillStyle)):y(L).attr("d",V+"Z").call(l.singleFillStyle))):C&&("tonext"===_.fill.substr(0,6)&&V&&I?("tonext"===_.fill?y(C).attr("d",V+"Z"+I+"Z").call(l.singleFillStyle):y(C).attr("d",V+"L"+I.substr(1)+"Z").call(l.singleFillStyle),_._polygons=_._polygons.concat(F)):(J(C),_._polygons=null)),_._prevRevpath=G,_._prevPolygons=W):(L?J(L):C&&J(C),_._polygons=_._prevRevpath=_._prevPolygons=null),M.datum(f),S.datum(f),function(t,a,n){var i,c=n[0].trace,d=s.hasMarkers(c),f=s.hasText(c),h=te(c),p=re,g=re;if(d||f){var v=o,_=c.stackgroup,w=_&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;c.marker.maxdisplayed||c._needsCull?v=w?Q:Y:_&&!w&&(v=K),d&&(p=v),f&&(g=v)}var k,A=(i=t.selectAll("path.point").data(p,h)).enter().append("path").classed("point",!0);m&&A.call(l.pointStyle,c,e).call(l.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),i.order(),d&&(k=l.makePointStyleFns(c)),i.each((function(t){var a=r.select(this),n=y(a);l.translatePoint(t,n,x,b)?(l.singlePointStyle(t,n,c,k,e),u.layerClipId&&l.hideOutsideRangePoint(t,n,x,b,c.xcalendar,c.ycalendar),c.customdata&&a.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):n.remove()})),m?i.exit().transition().style("opacity",0).remove():i.exit().remove(),(i=a.selectAll("g").data(g,h)).enter().append("g").classed("textpoint",!0).append("text"),i.order(),i.each((function(e){var t=r.select(this),a=y(t.select("text"));l.translatePoint(e,a,x,b)?u.layerClipId&&l.hideOutsideRangePoint(e,t,x,b,c.xcalendar,c.ycalendar):t.remove()})),i.selectAll("text").call(l.textPointStyle,c,e).each((function(e){var t=x.c2p(e.x),a=b.c2p(e.y);r.select(this).selectAll("tspan.line").each((function(){y(r.select(this)).attr({x:t,y:a})}))})),i.exit().remove()}(M,S,f);var X=!1===_.cliponaxis?null:u.layerClipId;l.setClipUrl(M,X,e),l.setClipUrl(S,X,e)}function J(e){y(e).attr("d","M0,0Z")}function Y(e){return e.filter((function(e){return!e.gap&&e.vis}))}function Q(e){return e.filter((function(e){return e.vis}))}function K(e){return e.filter((function(e){return!e.gap}))}function ee(e){return e.id}function te(e){if(e.ids)return ee}function re(){return!1}}e.exports=function(e,t,a,n,s,c){var d,h,p=!s,g=!!s&&s.duration>0,v=u(e,t,a);((d=n.selectAll("g.trace").data(v,(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),d.order(),function(e,t,a){t.each((function(t){var n=i(r.select(this),"g","fills");l.setClipUrl(n,a.layerClipId,e);var s=t[0].trace,c=[];s._ownfill&&c.push("_ownFill"),s._nexttrace&&c.push("_nextFill");var u=n.selectAll("g").data(c,o);u.enter().append("g"),u.exit().each((function(e){s[e]=null})).remove(),u.order().each((function(e){s[e]=i(r.select(this),"path","js-fill")}))}))}(e,d,t),g)?(c&&(h=c()),r.transition().duration(s.duration).ease(s.easing).each("end",(function(){h&&h()})).each("interrupt",(function(){h&&h()})).each((function(){n.selectAll("g.trace").each((function(r,a){f(e,a,t,r,v,this,s)}))}))):d.each((function(r,a){f(e,a,t,r,v,this,s)}));p&&d.exit().remove(),n.selectAll("path:not([d])").remove()}},tLYo6Exq:function(e,exports,t){"use strict";var r=t("yAcToaBS"),a=t("0Ft3SWJB"),n=t("46lPXjlm").BADNUM;e.exports=function(e,t,i,o){var l,s,c,u,d,f;function h(e){if(r(e))return+e}if(t&&t.transpose){for(l=0,d=0;d=0;n--){var i=e[n];if("scatter"===i.type&&i.xaxis===r.xaxis&&i.yaxis===r.yaxis){i.opacity=void 0;break}}}}}},uzqM94tz:function(e,exports,t){"use strict";e.exports=t("9GSMkjhW")},"vD+rSQ38":function(e,exports,t){"use strict";var r=t("SncXPNSm"),a=r.marker,n=t("xE+ZFgwY").extendFlat,i=["Area traces are deprecated!","Please switch to the *barpolar* trace type."].join(" ");e.exports={r:n({},r.r,{description:[i,"Sets the radial coordinates","for legacy polar chart only."].join(" ")}),t:n({},r.t,{description:[i,"Sets the angular coordinates","for legacy polar chart only."].join(" ")}),marker:{color:n({},a.color,{description:[i,a.color.description].join(" ")}),size:n({},a.size,{description:[i,a.size.description].join(" ")}),symbol:n({},a.symbol,{description:[i,a.symbol.description].join(" ")}),opacity:n({},a.opacity,{description:[i,a.opacity.description].join(" ")}),editType:"calc"}}},veoEbvwu:function(e,exports,t){"use strict";var r={tonextx:1,tonexty:1,tonext:1};e.exports=function(e,t,a){var n,i,o,l,s,c={},u=!1,d=-1,f=0,h=-1;for(i=0;i=0?s=h:(s=h=f,f++),s=2){var s,c,u="";if(2===l.length)for(s=0;s<2;s++)if(c=m(l[s])){u=h;break}var d=i("pattern",u);if(d===h)for(s=0;s<2;s++)(c=m(l[s]))&&(t.bounds[s]=l[s]=c-1);if(d)for(s=0;s<2;s++)switch(c=l[s],d){case h:if(!r(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[s]=l[s]=c;break;case p:if(!r(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[s]=l[s]=c}if(!1===a.autorange){var f=a.range;if(f[0]f[1])return void(t.enabled=!1)}else if(l[0]>f[0]&&l[1]0||h<0){var m={left:[-p,0],right:[p,0],top:[0,-p],bottom:[0,p]}[b.side];t.attr("transform",l(m[0],m[1]))}}}return D.call(R),I&&(L?D.on(".opacity",null):(T=0,M=!0,D.text(y).on("mouseover.opacity",(function(){r.select(this).transition().duration(d.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(d.HIDE_PLACEHOLDER).style("opacity",0)}))),D.call(u.makeEditable,{gd:e}).on("edit",(function(t){void 0!==x?i.call("_guiRestyle",e,m,t,x):i.call("_guiRelayout",e,m,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(R)})).on("input",(function(e){this.text(e||" ").call(u.positionText,_.x,_.y)}))),D.classed("js-placeholder",M),k}}},"xsJ/SW1t":function(e,exports,t){"use strict";var r=t("/8dZfPfB"),a=t("yAcToaBS"),n=t("0Ft3SWJB"),i=t("lziZQePk"),o=new DOMParser;function l(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var s=l.prototype;s.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,a=this.graphInfo._fullLayout,i="modebar-"+a._uid;this.element.setAttribute("id",i),this._uid=i,this.element.className="modebar","hover"===r.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===a.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var o=a.modebar,l="hover"===r.displayModeBar?".js-plotly-plot .plotly:hover ":"";n.deleteRelatedStyleRule(i),n.addRelatedStyleRule(i,l+"#"+i+" .modebar-group","background-color: "+o.bgcolor),n.addRelatedStyleRule(i,"#"+i+" .modebar-btn .icon path","fill: "+o.color),n.addRelatedStyleRule(i,"#"+i+" .modebar-btn:hover .icon path","fill: "+o.activecolor),n.addRelatedStyleRule(i,"#"+i+" .modebar-btn.active .icon path","fill: "+o.activecolor);var s=!this.hasButtons(t),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||c||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var d=this.getLogo();r.watermark&&(d.className=d.className+" watermark"),"v"===a.modebar.orientation?this.element.insertBefore(d,this.element.childNodes[0]):this.element.appendChild(d),this.hasLogo=!0}this.updateActiveButton()},s.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(e){var r=t.createGroup();e.forEach((function(e){var a=e.name;if(!a)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(a))throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var n=t.createButton(e);t.buttonElements.push(n),r.appendChild(n)})),t.element.appendChild(r)}))},s.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},s.createButton=function(e){var t=this,a=document.createElement("a");a.setAttribute("rel","tooltip"),a.className="modebar-btn";var n=e.title;void 0===n?n=e.name:"function"==typeof n&&(n=n(this.graphInfo)),(n||0===n)&&a.setAttribute("data-title",n),void 0!==e.attr&&a.setAttribute("data-attr",e.attr);var o=e.val;if(void 0!==o&&("function"==typeof o&&(o=o(this.graphInfo)),a.setAttribute("data-val",o)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");a.addEventListener("click",(function(r){e.click(t.graphInfo,r),t.updateActiveButton(r.currentTarget)})),a.setAttribute("data-toggle",e.toggle||!1),e.toggle&&r.select(a).classed("active",!0);var l=e.icon;return"function"==typeof l?a.appendChild(l()):a.appendChild(this.createIcon(l||i.question)),a.setAttribute("data-gravity",e.gravity||"n"),a},s.createIcon=function(e){var t,r=a(e.height)?Number(e.height):e.ascent-e.descent,n="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(n,"svg")).setAttribute("viewBox",[0,0,e.width,r].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(n,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):void 0!==e.ascent&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),t.appendChild(i)}e.svg&&(t=o.parseFromString(e.svg,"application/xml").childNodes[0]);return t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},s.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,a=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach((function(e){var i=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=r.select(e);if(l)o===a&&s.classed("active",!s.classed("active"));else{var c=null===o?o:n.nestedProperty(t,o).get();s.classed("active",c===i)}}))},s.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var r=0;r0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(i(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}(t,l,s);if(!c)return;if("histogram"===c.type&&s==={v:"y",h:"x"}[c.orientation||"v"])return void(e.type="linear");var u=s+"calendar",d=c[u],f={noMultiCategory:!r(c,"cartesian")||r(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(f.noMultiCategory=!0);if(f.autotypenumbers=e.autotypenumbers,i(c,s)){var h=n(c),p=[];for(o=0;oi){var o=i-a[e];return a[e]=i,o}}return 0},max:function(e,t,a,n){var i=n[t];if(r(i)){if(i=Number(i),!r(a[e]))return a[e]=i,i;if(a[e]