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

web-interface.assets.07ba022f-626.8eb4ea63f81cb5bec83d.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["07ba022f-626"],{iLyfqyU4:(oe,q,e)=>{"use strict";e.r(q),e.d(q,{timeDay:()=>T.Z,timeDays:()=>T.a,timeFriday:()=>u.mC,timeFridays:()=>u.b$,timeHour:()=>M,timeHours:()=>b,timeInterval:()=>h.Z,timeMillisecond:()=>S,timeMilliseconds:()=>i,timeMinute:()=>m,timeMinutes:()=>d,timeMonday:()=>u.wA,timeMondays:()=>u.bJ,timeMonth:()=>t,timeMonths:()=>l,timeSaturday:()=>u.EY,timeSaturdays:()=>u.Ff,timeSecond:()=>f,timeSeconds:()=>r,timeSunday:()=>u.OM,timeSundays:()=>u.vm,timeThursday:()=>u.bL,timeThursdays:()=>u.$t,timeTuesday:()=>u.sy,timeTuesdays:()=>u.aU,timeWednesday:()=>u.zg,timeWednesdays:()=>u.Ld,timeWeek:()=>u.OM,timeWeeks:()=>u.vm,timeYear:()=>a.Z,timeYears:()=>a.g,utcDay:()=>s.Z,utcDays:()=>s.y,utcFriday:()=>w.QQ,utcFridays:()=>w.fz,utcHour:()=>F,utcHours:()=>B,utcMillisecond:()=>S,utcMilliseconds:()=>i,utcMinute:()=>y,utcMinutes:()=>E,utcMonday:()=>w.l6,utcMondays:()=>w.$3,utcMonth:()=>I,utcMonths:()=>N,utcSaturday:()=>w.g4,utcSaturdays:()=>w.Q_,utcSecond:()=>f,utcSeconds:()=>r,utcSunday:()=>w.Ox,utcSundays:()=>w.SU,utcThursday:()=>w.hB,utcThursdays:()=>w.xj,utcTuesday:()=>w.J1,utcTuesdays:()=>w.DK,utcWednesday:()=>w.b3,utcWednesdays:()=>w.uy,utcWeek:()=>w.Ox,utcWeeks:()=>w.SU,utcYear:()=>Q.Z,utcYears:()=>Q.D});var h=e("DdlSpyTa"),v=(0,h.Z)(function(){},function(P,D){P.setTime(+P+D)},function(P,D){return D-P});v.every=function(P){return P=Math.floor(P),!isFinite(P)||!(P>0)?null:P>1?(0,h.Z)(function(D){D.setTime(Math.floor(D/P)*P)},function(D,z){D.setTime(+D+z*P)},function(D,z){return(z-D)/P}):v};const S=v;var i=v.range,n=e("h+JB5gVg"),c=(0,h.Z)(function(P){P.setTime(P-P.getMilliseconds())},function(P,D){P.setTime(+P+D*n.Ym)},function(P,D){return(D-P)/n.Ym},function(P){return P.getUTCSeconds()});const f=c;var r=c.range,o=(0,h.Z)(function(P){P.setTime(P-P.getMilliseconds()-P.getSeconds()*n.Ym)},function(P,D){P.setTime(+P+D*n.yB)},function(P,D){return(D-P)/n.yB},function(P){return P.getMinutes()});const m=o;var d=o.range,A=(0,h.Z)(function(P){P.setTime(P-P.getMilliseconds()-P.getSeconds()*n.Ym-P.getMinutes()*n.yB)},function(P,D){P.setTime(+P+D*n.Y2)},function(P,D){return(D-P)/n.Y2},function(P){return P.getHours()});const M=A;var b=A.range,T=e("htLgzOB+"),u=e("7awNiCFD"),p=(0,h.Z)(function(P){P.setDate(1),P.setHours(0,0,0,0)},function(P,D){P.setMonth(P.getMonth()+D)},function(P,D){return D.getMonth()-P.getMonth()+(D.getFullYear()-P.getFullYear())*12},function(P){return P.getMonth()});const t=p;var l=p.range,a=e("zYBkz/oj"),x=(0,h.Z)(function(P){P.setUTCSeconds(0,0)},function(P,D){P.setTime(+P+D*n.yB)},function(P,D){return(D-P)/n.yB},function(P){return P.getUTCMinutes()});const y=x;var E=x.range,L=(0,h.Z)(function(P){P.setUTCMinutes(0,0,0)},function(P,D){P.setTime(+P+D*n.Y2)},function(P,D){return(D-P)/n.Y2},function(P){return P.getUTCHours()});const F=L;var B=L.range,s=e("R30TlNij"),w=e("WH5fkU/w"),g=(0,h.Z)(function(P){P.setUTCDate(1),P.setUTCHours(0,0,0,0)},function(P,D){P.setUTCMonth(P.getUTCMonth()+D)},function(P,D){return D.getUTCMonth()-P.getUTCMonth()+(D.getUTCFullYear()-P.getUTCFullYear())*12},function(P){return P.getUTCMonth()});const I=g;var N=g.range,Q=e("oATDRkZV")},CVZcSkmN:oe=>{"use strict";var q=typeof Reflect=="object"?Reflect:null,e=q&&typeof q.apply=="function"?q.apply:function(a,x,y){return Function.prototype.apply.call(a,x,y)},h;q&&typeof q.ownKeys=="function"?h=q.ownKeys:Object.getOwnPropertySymbols?h=function(a){return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a))}:h=function(a){return Object.getOwnPropertyNames(a)};function v(l){console&&console.warn&&console.warn(l)}var S=Number.isNaN||function(a){return a!==a};function i(){i.init.call(this)}oe.exports=i,oe.exports.once=u,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var n=10;function c(l){if(typeof l!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof l)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return n},set:function(l){if(typeof l!="number"||l<0||S(l))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+l+".");n=l}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(a){if(typeof a!="number"||a<0||S(a))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+a+".");return this._maxListeners=a,this};function f(l){return l._maxListeners===void 0?i.defaultMaxListeners:l._maxListeners}i.prototype.getMaxListeners=function(){return f(this)},i.prototype.emit=function(a){for(var x=[],y=1;y0&&(F=x[0]),F instanceof Error)throw F;var B=new Error("Unhandled error."+(F?" ("+F.message+")":""));throw B.context=F,B}var s=L[a];if(s===void 0)return!1;if(typeof s=="function")e(s,this,x);else for(var w=s.length,g=M(s,w),y=0;y0&&F.length>E&&!F.warned){F.warned=!0;var B=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(a)+" listeners added. Use emitter.setMaxListeners() to increase limit");B.name="MaxListenersExceededWarning",B.emitter=l,B.type=a,B.count=F.length,v(B)}return l}i.prototype.addListener=function(a,x){return r(this,a,x,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(a,x){return r(this,a,x,!0)};function o(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(l,a,x){var y={fired:!1,wrapFn:void 0,target:l,type:a,listener:x},E=o.bind(y);return E.listener=x,y.wrapFn=E,E}i.prototype.once=function(a,x){return c(x),this.on(a,m(this,a,x)),this},i.prototype.prependOnceListener=function(a,x){return c(x),this.prependListener(a,m(this,a,x)),this},i.prototype.removeListener=function(a,x){var y,E,L,F,B;if(c(x),E=this._events,E===void 0)return this;if(y=E[a],y===void 0)return this;if(y===x||y.listener===x)--this._eventsCount===0?this._events=Object.create(null):(delete E[a],E.removeListener&&this.emit("removeListener",a,y.listener||x));else if(typeof y!="function"){for(L=-1,F=y.length-1;F>=0;F--)if(y[F]===x||y[F].listener===x){B=y[F].listener,L=F;break}if(L<0)return this;L===0?y.shift():b(y,L),y.length===1&&(E[a]=y[0]),E.removeListener!==void 0&&this.emit("removeListener",a,B||x)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(a){var x,y,E;if(y=this._events,y===void 0)return this;if(y.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):y[a]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete y[a]),this;if(arguments.length===0){var L=Object.keys(y),F;for(E=0;E=0;E--)this.removeListener(a,x[E]);return this};function d(l,a,x){var y=l._events;if(y===void 0)return[];var E=y[a];return E===void 0?[]:typeof E=="function"?x?[E.listener||E]:[E]:x?T(E):M(E,E.length)}i.prototype.listeners=function(a){return d(this,a,!0)},i.prototype.rawListeners=function(a){return d(this,a,!1)},i.listenerCount=function(l,a){return typeof l.listenerCount=="function"?l.listenerCount(a):A.call(l,a)},i.prototype.listenerCount=A;function A(l){var a=this._events;if(a!==void 0){var x=a[l];if(typeof x=="function")return 1;if(x!==void 0)return x.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?h(this._events):[]};function M(l,a){for(var x=new Array(a),y=0;y{"use strict";var h=e("TGWj3pqf"),v;typeof e.g.matchMedia=="function"?v=!e.g.matchMedia("(hover: none)").matches:v=h,oe.exports=v},uORtHUsV:(oe,q,e)=>{"use strict";var h=e("TGWj3pqf");function v(){var S=!1;try{var i=Object.defineProperty({},"passive",{get:function(){S=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{S=!1}return S}oe.exports=h&&v()},TGWj3pqf:oe=>{oe.exports=!0},jwlPSdji:oe=>{var q={left:0,top:0};oe.exports=e;function e(v,S,i){S=S||v.currentTarget||v.srcElement,Array.isArray(i)||(i=[0,0]);var n=v.clientX||0,c=v.clientY||0,f=h(S);return i[0]=n-f.left,i[1]=c-f.top,i}function h(v){return v===window||v===document||v===document.body?q:v.getBoundingClientRect()}},"3WWdj8FQ":function(oe,q,e){var h;/*! Native Promise Only
    v0.8.1 (c) Kyle Simpson
    MIT License: http://getify.mit-license.org
*/(function(S,i,n){i[S]=i[S]||n(),oe.exports?oe.exports=i[S]:(h=(function(){return i[S]}).call(q,e,q,oe),h!==void 0&&(oe.exports=h))})("Promise",typeof e.g<"u"?e.g:this,function(){"use strict";var S,i,n,c=Object.prototype.toString,f=typeof setImmediate<"u"?function(a){return setImmediate(a)}:setTimeout;try{Object.defineProperty({},"x",{}),S=function(a,x,y,E){return Object.defineProperty(a,x,{value:y,writable:!0,configurable:E!==!1})}}catch{S=function(x,y,E){return x[y]=E,x}}n=function(){var a,x,y;function E(L,F){this.fn=L,this.self=F,this.next=void 0}return{add:function(F,B){y=new E(F,B),x?x.next=y:a=y,x=y,y=void 0},drain:function(){var F=a;for(a=x=i=void 0;F;)F.fn.call(F.self),F=F.next}}}();function r(l,a){n.add(l,a),i||(i=f(n.drain))}function o(l){var a,x=typeof l;return l!=null&&(x=="object"||x=="function")&&(a=l.then),typeof a=="function"?a:!1}function m(){for(var l=0;l0&&r(m,x))}catch(y){M.call(new T(x),y)}}}function M(l){var a=this;a.triggered||(a.triggered=!0,a.def&&(a=a.def),a.msg=l,a.state=2,a.chain.length>0&&r(m,a))}function b(l,a,x,y){for(var E=0;E{oe.exports=h;var q={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},e=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function h(i){var n=[];return i.replace(e,function(c,f,r){var o=f.toLowerCase();for(r=S(r),o=="m"&&r.length>2&&(n.push([f].concat(r.splice(0,2))),o="l",f=f=="m"?"l":"L");;){if(r.length==q[o])return r.unshift(f),n.push(r);if(r.length{"use strict";var h=e("0Ft3SWJB"),v={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .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:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;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 rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",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,.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:.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 S in v){var i=S.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");h.addStyleRule(i,v[S])}},il84Cq12:(oe,q,e)=>{"use strict";oe.exports=e("fa9voUu+")},X1MamdAD:(oe,q,e)=>{"use strict";oe.exports=e("RPvPhHjM")},uzqM94tz:(oe,q,e)=>{"use strict";oe.exports=e("9GSMkjhW")},"Kh7UOp+d":(oe,q,e)=>{"use strict";oe.exports=e("h93+eFZa")},"cCyvnl/b":(oe,q,e)=>{"use strict";oe.exports=e("d82zWuQF")},"JWkd8+G/":oe=>{"use strict";oe.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}]},L1qB4u9y:(oe,q,e)=>{"use strict";var h=e("JWkd8+G/"),v=e("lf8+9Xc7"),S=e("Vq8+Ip3e"),i=e("A5P9b9BX").templatedArray,n=e("SWM1uxTh");function c(r){return["In order for absolute positioning of the arrow to work, *a"+r+"ref* must be exactly the same as *"+r+"ref*, otherwise *a"+r+"ref* will revert to *pixel* (explained next).","For relative positioning, *a"+r+"ref* can be set to *pixel*,","in which case the *a"+r+"* value is specified in pixels","relative to *"+r+"*.","Absolute positioning is useful","for trendline annotations which should continue to indicate","the correct trend when zoomed. Relative positioning is useful","for specifying the text offset for an annotated point."].join(" ")}function f(r,o,m){return["Sets the",r,"component of the arrow tail about the arrow head.","If `a"+r+"ref` is `pixel`, a positive (negative)","component corresponds to an arrow pointing","from",m,"to",o,"("+o,"to",m+").","If `a"+r+"ref` is not `pixel` and is exactly the same as `"+r+"ref`,","this is an absolute value on that axis,","like `"+r+"`, specified in the same coordinates as `"+r+"ref`."].join(" ")}oe.exports=i("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this annotation is visible."].join(" ")},text:{valType:"string",editType:"calc+arraydraw",description:["Sets the text associated with this annotation.","Plotly uses a subset of HTML tags to do things like","newline (
), bold (), italics (),","hyperlinks (). Tags , , "," are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:v({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,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,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,editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",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",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)",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,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",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:h.length,dflt:1,editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:h.length,dflt:1,editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,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,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,editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,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,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",editType:"calc+arraydraw",description:[f("x","left","right")].join(" ")},ay:{valType:"any",editType:"calc+arraydraw",description:[f("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",S.idRegex.x.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",n.axisRefDescription("x","left","right"),c("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",S.idRegex.y.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",n.axisRefDescription("y","bottom","top"),c("y")].join(" ")},xref:{valType:"enumerated",values:["paper",S.idRegex.x.toString()],editType:"calc",description:["Sets the annotation's x coordinate axis.",n.axisRefDescription("x","left","right")].join(" ")},x:{valType:"any",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",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,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",S.idRegex.y.toString()],editType:"calc",description:["Sets the annotation's y coordinate axis.",n.axisRefDescription("y","bottom","top")].join(" ")},y:{valType:"any",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",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,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,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",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",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",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",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",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:v({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",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",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}})},BoYXVIMs:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("4JfnfFRI"),S=e("2DFxFphq").draw;oe.exports=function(f){var r=f._fullLayout,o=h.filterVisible(r.annotations);if(o.length&&f._fullData.length)return h.syncOrAsync([S,i],f)};function i(c){var f=c._fullLayout;h.filterVisible(f.annotations).forEach(function(r){var o=v.getFromId(c,r.xref),m=v.getFromId(c,r.yref),d=v.getRefType(r.xref),A=v.getRefType(r.yref);r._extremes={},d==="range"&&n(r,o),A==="range"&&n(r,m)})}function n(c,f){var r=f._id,o=r.charAt(0),m=c[o],d=c["a"+o],A=c[o+"ref"],M=c["a"+o+"ref"],b=c["_"+o+"padplus"],T=c["_"+o+"padminus"],u={x:1,y:-1}[o]*c[o+"shift"],p=3*c.arrowsize*c.arrowwidth||0,t=p+u,l=p-u,a=3*c.startarrowsize*c.arrowwidth||0,x=a+u,y=a-u,E;if(M===A){var L=v.findExtremes(f,[f.r2c(m)],{ppadplus:t,ppadminus:l}),F=v.findExtremes(f,[f.r2c(d)],{ppadplus:Math.max(b,x),ppadminus:Math.max(T,y)});E={min:[L.min[0],F.min[0]],max:[L.max[0],F.max[0]]}}else x=d?x+d:x,y=d?y-d:y,E=v.findExtremes(f,[f.r2c(m)],{ppadplus:Math.max(b,t,x),ppadminus:Math.max(T,l,y)});c._extremes[r]=E}},ahf7RkTy:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("R5um7Wku"),S=e("A5P9b9BX").arrayEditor;oe.exports={hasClickToShow:i,onClick:n};function i(r,o){var m=c(r,o);return m.on.length>0||m.explicitOff.length>0}function n(r,o){var m=c(r,o),d=m.on,A=m.off.concat(m.explicitOff),M={},b=r._fullLayout.annotations,T,u;if(d.length||A.length){for(T=0;T{"use strict";var h=e("0Ft3SWJB"),v=e("/oRevOrA");oe.exports=function(i,n,c,f){f("opacity");var r=f("bgcolor"),o=f("bordercolor"),m=v.opacity(o);f("borderpad");var d=f("borderwidth"),A=f("showarrow");f("text",A?" ":c._dfltTitle.annotation),f("textangle"),h.coerceFont(f,"font",c.font),f("width"),f("align");var M=f("height");if(M&&f("valign"),A){var b=f("arrowside"),T,u;b.indexOf("end")!==-1&&(T=f("arrowhead"),u=f("arrowsize")),b.indexOf("start")!==-1&&(f("startarrowhead",T),f("startarrowsize",u)),f("arrowcolor",m?n.bordercolor:v.defaultLine),f("arrowwidth",(m&&d||1)*2),f("standoff"),f("startstandoff")}var p=f("hovertext"),t=c.hoverlabel||{};if(p){var l=f("hoverlabel.bgcolor",t.bgcolor||(v.opacity(r)?v.rgb(r):v.defaultLine)),a=f("hoverlabel.bordercolor",t.bordercolor||v.contrast(l));h.coerceFont(f,"hoverlabel.font",{family:t.font.family,size:t.font.size,color:t.font.color||a})}f("captureevents",!!p)}},a7EoPXLN:(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("wJP3FIsq");oe.exports=function(i,n,c,f){n=n||{};var r=c==="log"&&n.type==="linear",o=c==="linear"&&n.type==="log";if(!(r||o))return;var m=i._fullLayout.annotations,d=n._id.charAt(0),A,M;function b(u){var p=A[u],t=null;r?t=v(p,n.range):t=Math.pow(10,p),h(t)||(t=null),f(M+u,t)}for(var T=0;T{"use strict";var h=e("0Ft3SWJB"),v=e("4JfnfFRI"),S=e("JdrF9yG0"),i=e("IXuaY1uE"),n=e("L1qB4u9y");oe.exports=function(r,o){S(r,o,{name:"annotations",handleItemDefaults:c})};function c(f,r,o){function m(B,s){return h.coerce(f,r,n,B,s)}var d=m("visible"),A=m("clicktoshow");if(d||A){i(f,r,o,m);for(var M=r.showarrow,b=["x","y"],T=[-10,-30],u={_fullLayout:o},p=0;p<2;p++){var t=b[p],l=v.coerceRef(f,r,u,t,"","paper");if(l!=="paper"){var a=v.getFromId(u,l);a._annIndices.push(r._index)}if(v.coercePosition(r,u,m,l,t,.5),M){var x="a"+t,y=v.coerceRef(f,r,u,x,"pixel",["pixel","paper"]);y!=="pixel"&&y!==l&&(y=r[x]="pixel");var E=y==="pixel"?T[p]:.4;v.coercePosition(r,u,m,y,x,E)}m(t+"anchor"),m(t+"shift")}if(h.noneOrAll(f,r,["x","y"]),M&&h.noneOrAll(f,r,["ax","ay"]),A){var L=m("xclick"),F=m("yclick");r._xclick=L===void 0?r.x:v.cleanPosition(L,u,r.xref),r._yclick=F===void 0?r.y:v.cleanPosition(F,u,r.yref)}}}},"2DFxFphq":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("R5um7Wku"),S=e("8MlMO9wt"),i=e("0Ft3SWJB"),n=i.strTranslate,c=e("4JfnfFRI"),f=e("/oRevOrA"),r=e("+ELfTWmT"),o=e("9fFWTih4"),m=e("7k8rh0sJ"),d=e("LnvsDkyo"),A=e("WFvnZ06c"),M=e("A5P9b9BX").arrayEditor,b=e("pSCZUchz");oe.exports={draw:T,drawOne:u,drawRaw:t};function T(l){var a=l._fullLayout;a._infolayer.selectAll(".annotation").remove();for(var x=0;x2/3?it="right":it="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[it]}for(var Pe=!1,Be=["x","y"],De=0;De1)&&(Qe===_e?(de=Ue.r2fraction(a["a"+je]),(de<0||de>1)&&(Pe=!0)):Pe=!0),He=Ue._offset+Ue.r2p(a[je]),We=.5}else{var pe=ve==="domain";je==="x"?(Fe=a[je],He=pe?Ue._offset+Ue._length*Fe:He=B.l+B.w*Fe):(Fe=1-a[je],He=pe?Ue._offset+Ue._length*Fe:He=B.t+B.h*Fe),We=a.showarrow?.5:Fe}if(a.showarrow){he.head=He;var be=a["a"+je];if(_=Ge*Me(.5,a.xanchor)-Ye*Me(.5,a.yanchor),Qe===_e){var we=c.getRefType(Qe);we==="domain"?(je==="y"&&(be=1-be),he.tail=Ue._offset+Ue._length*be):we==="paper"?je==="y"?(be=1-be,he.tail=B.t+B.h*be):he.tail=B.l+B.w*be:he.tail=Ue._offset+Ue.r2p(be),Ie=_}else he.tail=He+be,Ie=_+be;he.text=he.tail+_;var Je=F[je==="x"?"width":"height"];if(_e==="paper"&&(he.head=i.constrain(he.head,1,Je-1)),Qe==="pixel"){var Ze=-Math.max(he.tail-3,he.text),Ee=Math.min(he.tail+3,he.text)-Je;Ze>0?(he.tail+=Ze,he.text+=Ze):Ee>0&&(he.tail-=Ee,he.text-=Ee)}he.tail+=Ke,he.head+=Ke}else _=ot*Me(We,rt),Ie=_,he.text=He+_;he.text+=Ke,_+=Ke,Ie+=Ke,a["_"+je+"padplus"]=ot/2+Ie,a["_"+je+"padminus"]=ot/2-Ie,a["_"+je+"size"]=ot,a["_"+je+"shift"]=_}if(Pe){me.remove();return}var Le=0,Oe=0;if(a.align!=="left"&&(Le=(fe-te)*(a.align==="center"?.5:1)),a.valign!=="top"&&(Oe=(ye-ie)*(a.valign==="middle"?.5:1)),ge)le.select("svg").attr({x:C+Le-1,y:C+Oe}).call(r.setClipUrl,k?D:null,l);else{var at=C+Oe-xe.top,ft=C+Le-xe.left;K.call(m.positionText,ft,at).call(r.setClipUrl,k?D:null,l)}G.select("rect").call(r.setRect,C,C,fe,ye),R.call(r.setRect,$/2,$/2,ce-$,ue-$),me.call(r.setTranslate,Math.round(z.x.text-ce/2),Math.round(z.y.text-ue/2)),U.attr({transform:"rotate("+H+","+z.x.text+","+z.y.text+")"});var ht=function(Mt,it){O.selectAll(".annotation-arrow-g").remove();var Tt=z.x.head,wt=z.y.head,pt=z.x.tail+Mt,kt=z.y.tail+it,gt=z.x.text+Mt,$e=z.y.text+it,yt=i.rotationXYMatrix(H,gt,$e),ct=i.apply2DTransform(yt),St=i.apply2DTransform2(yt),Ct=+R.attr("width"),zt=+R.attr("height"),mt=gt-.5*Ct,Z=mt+Ct,V=$e-.5*zt,Te=V+zt,Ae=[[mt,V,mt,Te],[mt,Te,Z,Te],[Z,Te,Z,V],[Z,V,mt,V]].map(St);if(!Ae.reduce(function(lt,ut){return lt^!!i.segmentsIntersect(Tt,wt,Tt+1e6,wt+1e6,ut[0],ut[1],ut[2],ut[3])},!1)){Ae.forEach(function(lt){var ut=i.segmentsIntersect(pt,kt,Tt,wt,lt[0],lt[1],lt[2],lt[3]);ut&&(pt=ut.x,kt=ut.y)});var ke=a.arrowwidth,Re=a.arrowcolor,ze=a.arrowside,Ce=O.append("g").style({opacity:f.opacity(Re)}).classed("annotation-arrow-g",!0),Se=Ce.append("path").attr("d","M"+pt+","+kt+"L"+Tt+","+wt).style("stroke-width",ke+"px").call(f.stroke,f.rgb(Re));if(b(Se,ze,a),s.annotationPosition&&Se.node().parentNode&&!y){var Ne=Tt,Ve=wt;if(a.standoff){var Xe=Math.sqrt(Math.pow(Tt-pt,2)+Math.pow(wt-kt,2));Ne+=a.standoff*(pt-Tt)/Xe,Ve+=a.standoff*(kt-wt)/Xe}var qe=Ce.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(pt-Ne)+","+(kt-Ve),transform:n(Ne,Ve)}).style("stroke-width",ke+6+"px").call(f.stroke,"rgba(0,0,0,0)").call(f.fill,"rgba(0,0,0,0)"),tt,et;A.init({element:qe.node(),gd:l,prepFn:function(){var lt=r.getTranslate(me);tt=lt.x,et=lt.y,E&&E.autorange&&N(E._name+".autorange",!0),L&&L.autorange&&N(L._name+".autorange",!0)},moveFn:function(lt,ut){var dt=ct(tt,et),Rt=dt[0]+lt,At=dt[1]+ut;me.call(r.setTranslate,Rt,At),Q("x",p(E,lt,"x",B,a)),Q("y",p(L,ut,"y",B,a)),a.axref===a.xref&&Q("ax",p(E,lt,"ax",B,a)),a.ayref===a.yref&&Q("ay",p(L,ut,"ay",B,a)),Ce.attr("transform",n(lt,ut)),U.attr({transform:"rotate("+H+","+Rt+","+At+")"})},doneFn:function(){v.call("_guiRelayout",l,P());var lt=document.querySelector(".js-notes-box-panel");lt&<.redraw(lt.selectedObj)}})}}};if(a.showarrow&&ht(0,0),Y){var bt;A.init({element:me.node(),gd:l,prepFn:function(){bt=U.attr("transform")},moveFn:function(Mt,it){var Tt="pointer";if(a.showarrow)a.axref===a.xref?Q("ax",p(E,Mt,"ax",B,a)):Q("ax",a.ax+Mt),a.ayref===a.yref?Q("ay",p(L,it,"ay",B.w,a)):Q("ay",a.ay+it),ht(Mt,it);else{if(y)return;var wt,pt;if(E)wt=p(E,Mt,"x",B,a);else{var kt=a._xsize/B.w,gt=a.x+(a._xshift-a.xshift)/B.w-kt/2;wt=A.align(gt+Mt/B.w,kt,0,1,a.xanchor)}if(L)pt=p(L,it,"y",B,a);else{var $e=a._ysize/B.h,yt=a.y-(a._yshift+a.yshift)/B.h-$e/2;pt=A.align(yt-it/B.h,$e,0,1,a.yanchor)}Q("x",wt),Q("y",pt),(!E||!L)&&(Tt=A.getCursor(E?.5:wt,L?.5:pt,a.xanchor,a.yanchor))}U.attr({transform:n(Mt,it)+bt}),d(me,Tt)},clickFn:function(Mt,it){a.captureevents&&l.emit("plotly_clickannotation",ne(it))},doneFn:function(){d(me),v.call("_guiRelayout",l,P());var Mt=document.querySelector(".js-notes-box-panel");Mt&&Mt.redraw(Mt.selectedObj)}})}}s.annotationText?K.call(m.makeEditable,{delegate:me,gd:l}).call(X).on("edit",function(ae){a.text=ae,this.call(X),Q("text",ae),E&&E.autorange&&N(E._name+".autorange",!0),L&&L.autorange&&N(L._name+".autorange",!0),v.call("_guiRelayout",l,P())}):K.call(X)}},pSCZUchz:(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("/oRevOrA"),S=e("JWkd8+G/"),i=e("0Ft3SWJB"),n=i.strScale,c=i.strRotate,f=i.strTranslate;oe.exports=function(o,m,d){var A=o.node(),M=S[d.arrowhead||0],b=S[d.startarrowhead||0],T=(d.arrowwidth||1)*(d.arrowsize||1),u=(d.arrowwidth||1)*(d.startarrowsize||1),p=m.indexOf("start")>=0,t=m.indexOf("end")>=0,l=M.backoff*T+d.standoff,a=b.backoff*u+d.startstandoff,x,y,E,L;if(A.nodeName==="line"){x={x:+o.attr("x1"),y:+o.attr("y1")},y={x:+o.attr("x2"),y:+o.attr("y2")};var F=x.x-y.x,B=x.y-y.y;if(E=Math.atan2(B,F),L=E+Math.PI,l&&a&&l+a>Math.sqrt(F*F+B*B)){U();return}if(l){if(l*l>F*F+B*B){U();return}var s=l*Math.cos(E),w=l*Math.sin(E);y.x+=s,y.y+=w,o.attr({x2:y.x,y2:y.y})}if(a){if(a*a>F*F+B*B){U();return}var g=a*Math.cos(E),I=a*Math.sin(E);x.x-=g,x.y-=I,o.attr({x1:x.x,y1:x.y})}}else if(A.nodeName==="path"){var N=A.getTotalLength(),Q="";if(N{"use strict";var h=e("2DFxFphq"),v=e("ahf7RkTy");oe.exports={moduleType:"component",name:"annotations",layoutAttributes:e("L1qB4u9y"),supplyLayoutDefaults:e("cotHwVXk"),includeBasePlot:e("lGy/M/Cj")("annotations"),calcAutorange:e("BoYXVIMs"),draw:h.draw,drawOne:h.drawOne,drawRaw:h.drawRaw,hasClickToShow:v.hasClickToShow,onClick:v.onClick,convertCoords:e("a7EoPXLN")}},zbkQ6RHY:(oe,q,e)=>{"use strict";var h=e("L1qB4u9y"),v=e("Oq1Cqb7p").overrideAll,S=e("A5P9b9BX").templatedArray;oe.exports=v(S("annotation",{visible:h.visible,x:{valType:"any",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:h.xanchor,xshift:h.xshift,yanchor:h.yanchor,yshift:h.yshift,text:h.text,textangle:h.textangle,font:h.font,width:h.width,height:h.height,opacity:h.opacity,align:h.align,valign:h.valign,bgcolor:h.bgcolor,bordercolor:h.bordercolor,borderpad:h.borderpad,borderwidth:h.borderwidth,showarrow:h.showarrow,arrowcolor:h.arrowcolor,arrowhead:h.arrowhead,startarrowhead:h.startarrowhead,arrowside:h.arrowside,arrowsize:h.arrowsize,startarrowsize:h.startarrowsize,arrowwidth:h.arrowwidth,standoff:h.standoff,startstandoff:h.startstandoff,hovertext:h.hovertext,hoverlabel:h.hoverlabel,captureevents:h.captureevents}),"calc","from-root")},IKUISRI1:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("4JfnfFRI");oe.exports=function(n){for(var c=n.fullSceneLayout,f=c.annotations,r=0;r{"use strict";var h=e("0Ft3SWJB"),v=e("4JfnfFRI"),S=e("JdrF9yG0"),i=e("IXuaY1uE"),n=e("zbkQ6RHY");oe.exports=function(r,o,m){S(r,o,{name:"annotations",handleItemDefaults:c,fullLayout:m.fullLayout})};function c(f,r,o,m){function d(b,T){return h.coerce(f,r,n,b,T)}function A(b){var T=b+"axis",u={_fullLayout:{}};return u._fullLayout[T]=o[T],v.coercePosition(r,u,d,b,b,.5)}var M=d("visible");M&&(i(f,r,m.fullLayout,d),A("x"),A("y"),A("z"),h.noneOrAll(f,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",d("xanchor"),d("yanchor"),d("xshift"),d("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",d("ax",-10),d("ay",-30),h.noneOrAll(f,r,["ax","ay"])))}},"rdGQvf+P":(oe,q,e)=>{"use strict";var h=e("2DFxFphq").drawRaw,v=e("Wwi6Xwm4"),S=["x","y","z"];oe.exports=function(n){for(var c=n.fullSceneLayout,f=n.dataScale,r=c.annotations,o=0;o1){d=!0;break}}d?n.fullLayout._infolayer.select(".annotation-"+n.id+'[data-index="'+o+'"]').remove():(m._pdata=v(n.glplot.cameraParams,[c.xaxis.r2l(m.x)*f[0],c.yaxis.r2l(m.y)*f[1],c.zaxis.r2l(m.z)*f[2]]),h(n.graphDiv,m,o,n.id,m._xa,m._ya))}}},"4xVj9wTF":(oe,q,e)=>{"use strict";var h=e("R5um7Wku"),v=e("0Ft3SWJB");oe.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e("zbkQ6RHY")}}},layoutAttributes:e("zbkQ6RHY"),handleDefaults:e("dC7VvZKe"),includeBasePlot:S,convert:e("IKUISRI1"),draw:e("rdGQvf+P")};function S(i,n){var c=h.subplotsRegistry.gl3d;if(c)for(var f=c.attrRegex,r=Object.keys(i),o=0;o{"use strict";oe.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},Vyghum2a:(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("VDpxHpeA"),S=e("8MlMO9wt"),i=e("R5um7Wku"),n=e("4JfnfFRI"),c=e("WFvnZ06c"),f=e("0Ft3SWJB"),r=f.strTranslate,o=e("xE+ZFgwY").extendFlat,m=e("LnvsDkyo"),d=e("+ELfTWmT"),A=e("/oRevOrA"),M=e("xjYqbXs+"),b=e("7k8rh0sJ"),T=e("s48LrSF+").flipScale,u=e("vg6lu/AO"),p=e("kAv/b5aV"),t=e("zSF5pjBO"),l=e("kca9bvt+"),a=l.LINE_SPACING,x=l.FROM_TL,y=l.FROM_BR,E=e("PvkztHxu").cn;function L(I){var N=I._fullLayout,Q=N._infolayer.selectAll("g."+E.colorbar).data(F(I),function(P){return P._id});Q.enter().append("g").attr("class",function(P){return P._id}).classed(E.colorbar,!0),Q.each(function(P){var D=h.select(this);f.ensureSingle(D,"rect",E.cbbg),f.ensureSingle(D,"g",E.cbfills),f.ensureSingle(D,"g",E.cblines),f.ensureSingle(D,"g",E.cbaxis,function(H){H.classed(E.crisp,!0)}),f.ensureSingle(D,"g",E.cbtitleunshift,function(H){H.append("g").classed(E.cbtitle,!0)}),f.ensureSingle(D,"rect",E.cboutline);var z=B(D,P,I);z&&z.then&&(I._promises||[]).push(z),I._context.edits.colorbarPosition&&s(D,P,I)}),Q.exit().each(function(P){S.autoMargin(I,P._id)}).remove(),Q.order()}function F(I){var N=I._fullLayout,Q=I.calcdata,P=[],D,z,H,O;function U(W){return o(W,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function Y(){typeof O.calc=="function"?O.calc(I,H,D):(D._fillgradient=z.reversescale?T(z.colorscale):z.colorscale,D._zrange=[z[O.min],z[O.max]])}for(var ee=0;ee1){var he=Math.pow(10,Math.floor(Math.log(Ke)/Math.LN10));ot*=he*f.roundUp(Ke/he,[2,5,10]),(Math.abs(xe.start)/xe.size+1e-6)%1<2e-6&&(Ge.tick0=0)}Ge.dtick=ot}Ge.domain=P?[Ue+re/J.h,Ue+Me-re/J.h]:[Ue+$/J.w,Ue+Me-$/J.w],Ge.setScale(),I.attr("transform",r(Math.round(J.l),Math.round(J.t)));var He=I.select("."+E.cbtitleunshift).attr("transform",r(-Math.round(J.l),-Math.round(J.t))),Ie=Ge.ticklabelposition,Fe=Ge.title.font.size,We=I.select("."+E.cbaxis),_,ve=0,de=0;function pe(Ee,Le){var Oe={propContainer:Ge,propName:N._propPrefix+"title",traceIndex:N._traceIndex,_meta:N._meta,placeholder:W._dfltTitle.colorbar,containerGroup:I.select("."+E.cbtitle)},at=Ee.charAt(0)==="h"?Ee.substr(1):"h"+Ee;I.selectAll("."+at+",."+at+"-math-group").remove(),M.draw(Q,Ee,o(Oe,Le||{}))}function be(){if(P&&Ye||!P&&!Ye){var Ee,Le;ae==="top"&&(Ee=$+J.l+Pe*C,Le=re+J.t+Be*(1-Ue-Me)+3+Fe*.75),ae==="bottom"&&(Ee=$+J.l+Pe*C,Le=re+J.t+Be*(1-Ue)-3-Fe*.25),ae==="right"&&(Le=re+J.t+Be*R+3+Fe*.75,Ee=$+J.l+Pe*Ue),pe(Ge._id+"title",{attributes:{x:Ee,y:Le,"text-anchor":P?"start":"middle"}})}}function we(){if(P&&!Ye||!P&&Ye){var Ee=Ge.position||0,Le=Ge._offset+Ge._length/2,Oe,at;if(ae==="right")at=Le,Oe=J.l+Pe*Ee+10+Fe*(Ge.showticklabels?1:.5);else if(Oe=Le,ae==="bottom"&&(at=J.t+Be*Ee+10+(Ie.indexOf("inside")===-1?Ge.tickfont.size:0)+(Ge.ticks!=="intside"&&N.ticklen||0)),ae==="top"){var ft=j.text.split("
").length;at=J.t+Be*Ee+10-ye-a*Fe*ft}pe((P?"h":"v")+Ge._id+"title",{avoid:{selection:h.select(Q).selectAll("g."+Ge._id+"tick"),side:ae,offsetTop:P?0:J.t,offsetLeft:P?J.l:0,maxShift:P?W.width:W.height},attributes:{x:Oe,y:at,"text-anchor":"middle"},transform:{rotate:P?-90:0,offset:0}})}}function Je(){if(!P&&!Ye||P&&Ye){var Ee=I.select("."+E.cbtitle),Le=Ee.select("text"),Oe=[-U/2,U/2],at=Ee.select(".h"+Ge._id+"title-math-group").node(),ft=15.6;Le.node()&&(ft=parseInt(Le.node().style.fontSize,10)*a);var ht;if(at?(ht=d.bBox(at),de=ht.width,ve=ht.height,ve>ft&&(Oe[1]-=(ve-ft)/2)):Le.node()&&!Le.classed(E.jsPlaceholder)&&(ht=d.bBox(Le.node()),de=ht.width,ve=ht.height),P){if(ve){if(ve+=5,ae==="top")Ge.domain[1]-=ve/J.h,Oe[1]*=-1;else{Ge.domain[0]+=ve/J.h;var bt=b.lineCount(Le);Oe[1]+=(1-bt)*ft}Ee.attr("transform",r(Oe[0],Oe[1])),Ge.setScale()}}else de&&(ae==="right"&&(Ge.domain[0]+=(de+Fe/2)/J.w),Ee.attr("transform",r(Oe[0],Oe[1])),Ge.setScale())}I.selectAll("."+E.cbfills+",."+E.cblines).attr("transform",P?r(0,Math.round(J.h*(1-Ge.domain[1]))):r(Math.round(J.w*Ge.domain[0]),0)),We.attr("transform",P?r(0,Math.round(-J.t)):r(Math.round(-J.l),0));var Mt=I.select("."+E.cbfills).selectAll("rect."+E.cbfill).attr("style","").data(ie);Mt.enter().append("rect").classed(E.cbfill,!0).attr("style",""),Mt.exit().remove();var it=se.map(Ge.c2p).map(Math.round).sort(function(gt,$e){return gt-$e});Mt.each(function(gt,$e){var yt=[$e===0?se[0]:(ie[$e]+ie[$e-1])/2,$e===ie.length-1?se[1]:(ie[$e]+ie[$e+1])/2].map(Ge.c2p).map(Math.round);P&&(yt[1]=f.constrain(yt[1]+(yt[1]>yt[0])?1:-1,it[0],it[1]));var ct=h.select(this).attr(P?"x":"y",De).attr(P?"y":"x",h.min(yt)).attr(P?"width":"height",Math.max(ye,2)).attr(P?"height":"width",Math.max(h.max(yt)-h.min(yt),2));if(N._fillgradient)d.gradient(ct,Q,N._id,P?"vertical":"horizontalreversed",N._fillgradient,"fill");else{var St=ge(gt).replace("e-","");ct.attr("fill",v(St).toHexString())}});var Tt=I.select("."+E.cblines).selectAll("path."+E.cbline).data(X.color&&X.width?fe:[]);Tt.enter().append("path").classed(E.cbline,!0),Tt.exit().remove(),Tt.each(function(gt){var $e=De,yt=Math.round(Ge.c2p(gt))+X.width/2%1;h.select(this).attr("d","M"+(P?$e+","+yt:yt+","+$e)+(P?"h":"v")+ye).call(d.lineGroupStyle,X.width,le(gt),X.dash)}),We.selectAll("g."+Ge._id+"tick,path").remove();var wt=De+ye+(U||0)/2-(N.ticks==="outside"?1:0),pt=n.calcTicks(Ge),kt=n.getTickSigns(Ge)[2];return n.drawTicks(Q,Ge,{vals:Ge.ticks==="inside"?n.clipEnds(Ge,pt):pt,layer:We,path:n.makeTickPath(Ge,wt,kt),transFn:n.makeTransTickFn(Ge)}),n.drawLabels(Q,Ge,{vals:pt,layer:We,transFn:n.makeTransTickLabelFn(Ge),labelFns:n.makeLabelFns(Ge,wt)})}function Ze(){var Ee,Le=ye+U/2;Ie.indexOf("inside")===-1&&(Ee=d.bBox(We.node()),Le+=P?Ee.width:Ee.height),_=He.select("text");var Oe=0,at=P&&ae==="top",ft=!P&&ae==="right",ht=0;if(_.node()&&!_.classed(E.jsPlaceholder)){var bt,Mt=He.select(".h"+Ge._id+"title-math-group").node();Mt&&(P&&Ye||!P&&!Ye)?(Ee=d.bBox(Mt),Oe=Ee.width,bt=Ee.height):(Ee=d.bBox(He.node()),Oe=Ee.right-J.l-(P?De:nt),bt=Ee.bottom-J.t-(P?nt:De),!P&&ae==="top"&&(Le+=Ee.height,ht=Ee.height)),ft&&(_.attr("transform",r(Oe/2+Fe/2,0)),Oe*=2),Le=Math.max(Le,P?Oe:bt)}var it=(P?$:re)*2+Le+Y+U/2,Tt=0;!P&&j.text&&me==="bottom"&&R<=0&&(Tt=it/2,it+=Tt,ht+=Tt),W._hColorbarMoveTitle=Tt,W._hColorbarMoveCBTitle=ht;var wt=Y+U,pt=(P?De:nt)-wt/2-(P?$:0),kt=(P?nt:De)-(P?ue:re+ht-Tt);I.select("."+E.cbbg).attr("x",pt).attr("y",kt).attr(P?"width":"height",Math.max(it-Tt,2)).attr(P?"height":"width",Math.max(ue+wt,2)).call(A.fill,ee).call(A.stroke,N.bordercolor).style("stroke-width",Y);var gt=ft?Math.max(Oe-10,0):0;I.selectAll("."+E.cboutline).attr("x",(P?De:nt+$)+gt).attr("y",(P?nt+re-ue:De)+(at?ve:0)).attr(P?"width":"height",Math.max(ye,2)).attr(P?"height":"width",Math.max(ue-(P?2*re+ve:2*$+gt),2)).call(A.stroke,N.outlinecolor).style({fill:"none","stroke-width":U});var $e=P?je*it:0,yt=P?0:(1-_e)*it-ht;if($e=G?J.l-$e:-$e,yt=k?J.t-yt:-yt,I.attr("transform",r($e,yt)),!P&&(Y||v(ee).getAlpha()&&!v.equals(W.paper_bgcolor,ee))){var ct=We.selectAll("text"),St=ct[0].length,Ct=I.select("."+E.cbbg).node(),zt=d.bBox(Ct),mt=d.getTranslate(I),Z=2;ct.each(function(Ve,Xe){var qe=0,tt=St-1;if(Xe===qe||Xe===tt){var et=d.bBox(this),lt=d.getTranslate(this),ut;if(Xe===tt){var dt=et.right+lt.x,Rt=zt.right+mt.x+nt-Y-Z+C;ut=Rt-dt,ut>0&&(ut=0)}else if(Xe===qe){var At=et.left+lt.x,Lt=zt.left+mt.x+nt+Y+Z;ut=Lt-At,ut<0&&(ut=0)}ut&&(St<3?this.setAttribute("transform","translate("+ut+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var V={},Te=x[ne],Ae=y[ne],ke=x[me],Re=y[me],ze=it-ye;P?(z==="pixels"?(V.y=R,V.t=ue*ke,V.b=ue*Re):(V.t=V.b=0,V.yt=R+D*ke,V.yb=R-D*Re),O==="pixels"?(V.x=C,V.l=it*Te,V.r=it*Ae):(V.l=ze*Te,V.r=ze*Ae,V.xl=C-H*Te,V.xr=C+H*Ae)):(z==="pixels"?(V.x=C,V.l=ue*Te,V.r=ue*Ae):(V.l=V.r=0,V.xl=C+D*Te,V.xr=C-D*Ae),O==="pixels"?(V.y=1-R,V.t=it*ke,V.b=it*Re):(V.t=ze*ke,V.b=ze*Re,V.yt=R-H*ke,V.yb=R+H*Re));var Ce=N.y<.5?"b":"t",Se=N.x<.5?"l":"r";Q._fullLayout._reservedMargin[N._id]={};var Ne={r:W.width-pt-$e,l:pt+V.r,b:W.height-kt-yt,t:kt+V.b};G&&k?S.autoMargin(Q,N._id,V):G?Q._fullLayout._reservedMargin[N._id][Ce]=Ne[Ce]:k||P?Q._fullLayout._reservedMargin[N._id][Se]=Ne[Se]:Q._fullLayout._reservedMargin[N._id][Ce]=Ne[Ce]}return f.syncOrAsync([S.previousPromises,be,Je,we,S.previousPromises,Ze],Q)}function s(I,N,Q){var P=N.orientation==="v",D=Q._fullLayout,z=D._size,H,O,U;c.init({element:I.node(),gd:Q,prepFn:function(){H=I.attr("transform"),m(I)},moveFn:function(Y,ee){I.attr("transform",H+r(Y,ee)),O=c.align((P?N._uFrac:N._vFrac)+Y/z.w,P?N._thickFrac:N._lenFrac,0,1,N.xanchor),U=c.align((P?N._vFrac:1-N._uFrac)-ee/z.h,P?N._lenFrac:N._thickFrac,0,1,N.yanchor);var ne=c.getCursor(O,U,N.xanchor,N.yanchor);m(I,ne)},doneFn:function(){if(m(I),O!==void 0&&U!==void 0){var Y={};Y[N._propPrefix+"x"]=O,Y[N._propPrefix+"y"]=U,N._traceIndex!==void 0?i.call("_guiRestyle",Q,Y,N._traceIndex):i.call("_guiRelayout",Q,Y)}}})}function w(I,N,Q){var P=N._levels,D=[],z=[],H,O,U=P.end+P.size/100,Y=P.size,ee=1.001*Q[0]-.001*Q[1],ne=1.001*Q[1]-.001*Q[0];for(O=0;O<1e5&&(H=P.start+O*Y,!(Y>0?H>=U:H<=U));O++)H>ee&&H0?H>=U:H<=U));O++)H>Q[0]&&H{"use strict";oe.exports={moduleType:"component",name:"colorbar",attributes:e("jyzIzA3P"),supplyDefaults:e("5tOsSiMj"),draw:e("Vyghum2a").draw,hasColorbar:e("NU9E/CzI")}},fX4OMiqf:oe=>{"use strict";oe.exports=function(e,h,v,S,i){var n=(e-v)/(S-v),c=n+h/(S-v),f=(n+c)/2;return i==="left"||i==="bottom"?n:i==="center"||i==="middle"?f:i==="right"||i==="top"?c:n<2/3-f?n:c>4/3-f?c:f}},"Re/WlV4b":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];oe.exports=function(i,n,c,f){return c==="left"?i=0:c==="center"?i=1:c==="right"?i=2:i=h.constrain(Math.floor(i*3),0,2),f==="bottom"?n=0:f==="middle"?n=1:f==="top"?n=2:n=h.constrain(Math.floor(n*3),0,2),v[n][i]}},"rC/dcWPV":(oe,q)=>{"use strict";q.selectMode=function(e){return e==="lasso"||e==="select"},q.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},q.openMode=function(e){return e==="drawline"||e==="drawopenpath"},q.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},q.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},q.selectingOrDrawing=function(e){return q.freeMode(e)||q.rectMode(e)}},WFvnZ06c:(oe,q,e)=>{"use strict";var h=e("jwlPSdji"),v=e("7rWsZTkl"),S=e("uORtHUsV"),i=e("0Ft3SWJB").removeElement,n=e("Vq8+Ip3e"),c=oe.exports={};c.align=e("fX4OMiqf"),c.getCursor=e("Re/WlV4b");var f=e("jGgz+pfT");c.unhover=f.wrapped,c.unhoverRaw=f.raw,c.init=function(d){var A=d.gd,M=1,b=A._context.doubleClickDelay,T=d.element,u,p,t,l,a,x,y,E;A._mouseDownTime||(A._mouseDownTime=0),T.style.pointerEvents="all",T.onmousedown=B,S?(T._ontouchstart&&T.removeEventListener("touchstart",T._ontouchstart),T._ontouchstart=B,T.addEventListener("touchstart",B,{passive:!1})):T.ontouchstart=B;function L(g,I,N){return Math.abs(g)"u"&&typeof g.clientY>"u"&&(g.clientX=u,g.clientY=p),t=new Date().getTime(),t-A._mouseDownTimeb&&(M=Math.max(M-1,1)),A._dragged)d.doneFn&&d.doneFn();else if(d.clickFn&&d.clickFn(M,x),!E){var I;try{I=new MouseEvent("click",g)}catch{var N=o(g);I=document.createEvent("MouseEvents"),I.initMouseEvent("click",g.bubbles,g.cancelable,g.view,g.detail,g.screenX,g.screenY,N[0],N[1],g.ctrlKey,g.altKey,g.shiftKey,g.metaKey,g.button,g.relatedTarget)}y.dispatchEvent(I)}A._dragging=!1,A._dragged=!1}};function r(){var m=document.createElement("div");m.className="dragcover";var d=m.style;return d.position="fixed",d.left=0,d.right=0,d.top=0,d.bottom=0,d.zIndex=999999999,d.background="none",document.body.appendChild(m),m}c.coverSlip=r;function o(m){return h(m.changedTouches?m.changedTouches[0]:m,document.body)}},"jGgz+pfT":(oe,q,e)=>{"use strict";var h=e("6NEikfh9"),v=e("9bxIX4ke"),S=e("5u0twCBb").getGraphDiv,i=e("HoF8EwuB"),n=oe.exports={};n.wrapped=function(c,f,r){c=S(c),c._fullLayout&&v.clear(c._fullLayout._uid+i.HOVERID),n.raw(c,f,r)},n.raw=function(f,r){var o=f._fullLayout,m=f._hoverdata;r||(r={}),!(r.target&&!f._dragged&&h.triggerHandler(f,"plotly_beforehover",r)===!1)&&(o._hoverlayer.selectAll("g").remove(),o._hoverlayer.selectAll("line").remove(),o._hoverlayer.selectAll("circle").remove(),f._hoverdata=void 0,r.target&&m&&f.emit("plotly_unhover",{event:r,points:m}))}},"+ELfTWmT":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("0Ft3SWJB"),S=v.numberFormat,i=e("yAcToaBS"),n=e("VDpxHpeA"),c=e("R5um7Wku"),f=e("/oRevOrA"),r=e("n/pWmEhD"),o=v.strTranslate,m=e("7k8rh0sJ"),d=e("nfwe4Djo"),A=e("kca9bvt+"),M=A.LINE_SPACING,b=e("Tdks4qa7").DESELECTDIM,T=e("FAQM5QER"),u=e("swYnW0Uh"),p=e("ErV1Ibqz").appendArrayPointValue,t=oe.exports={};t.font=function(te,ie,fe,ye){v.isPlainObject(ie)&&(ye=ie.color,fe=ie.size,ie=ie.family),ie&&te.style("font-family",ie),fe+1&&te.style("font-size",fe+"px"),ye&&te.call(f.fill,ye)},t.setPosition=function(te,ie,fe){te.attr("x",ie).attr("y",fe)},t.setSize=function(te,ie,fe){te.attr("width",ie).attr("height",fe)},t.setRect=function(te,ie,fe,ye,ce){te.call(t.setPosition,ie,fe).call(t.setSize,ye,ce)},t.translatePoint=function(te,ie,fe,ye){var ce=fe.c2p(te.x),ue=ye.c2p(te.y);if(i(ce)&&i(ue)&&ie.node())ie.node().nodeName==="text"?ie.attr("x",ce).attr("y",ue):ie.attr("transform",o(ce,ue));else return!1;return!0},t.translatePoints=function(te,ie,fe){te.each(function(ye){var ce=h.select(this);t.translatePoint(ye,ce,ie,fe)})},t.hideOutsideRangePoint=function(te,ie,fe,ye,ce,ue){ie.attr("display",fe.isPtWithinRange(te,ce)&&ye.isPtWithinRange(te,ue)?null:"none")},t.hideOutsideRangePoints=function(te,ie){if(ie._hasClipOnAxisFalse){var fe=ie.xaxis,ye=ie.yaxis;te.each(function(ce){var ue=ce[0].trace,Me=ue.xcalendar,Pe=ue.ycalendar,Be=c.traceIs(ue,"bar-like")?".bartext":".point,.textpoint";te.selectAll(Be).each(function(De){t.hideOutsideRangePoint(De,h.select(this),fe,ye,Me,Pe)})})}},t.crispRound=function(te,ie,fe){return!ie||!i(ie)?fe||0:te._context.staticPlot?ie:ie<1?1:Math.round(ie)},t.singleLineStyle=function(te,ie,fe,ye,ce){ie.style("fill","none");var ue=(((te||[])[0]||{}).trace||{}).line||{},Me=fe||ue.width||0,Pe=ce||ue.dash||"";f.stroke(ie,ye||ue.color),t.dashLine(ie,Pe,Me)},t.lineGroupStyle=function(te,ie,fe,ye){te.style("fill","none").each(function(ce){var ue=(((ce||[])[0]||{}).trace||{}).line||{},Me=ie||ue.width||0,Pe=ye||ue.dash||"";h.select(this).call(f.stroke,fe||ue.color).call(t.dashLine,Pe,Me)})},t.dashLine=function(te,ie,fe){fe=+fe||0,ie=t.dashStyle(ie,fe),te.style({"stroke-dasharray":ie,"stroke-width":fe+"px"})},t.dashStyle=function(te,ie){ie=+ie||1;var fe=Math.max(ie,3);return te==="solid"?te="":te==="dot"?te=fe+"px,"+fe+"px":te==="dash"?te=3*fe+"px,"+3*fe+"px":te==="longdash"?te=5*fe+"px,"+5*fe+"px":te==="dashdot"?te=3*fe+"px,"+fe+"px,"+fe+"px,"+fe+"px":te==="longdashdot"&&(te=5*fe+"px,"+2*fe+"px,"+fe+"px,"+2*fe+"px"),te};function l(te,ie,fe){var ye=ie.fillpattern,ce=ye&&t.getPatternAttr(ye.shape,0,"");if(ce){var ue=t.getPatternAttr(ye.bgcolor,0,null),Me=t.getPatternAttr(ye.fgcolor,0,null),Pe=ye.fgopacity,Be=t.getPatternAttr(ye.size,0,8),De=t.getPatternAttr(ye.solidity,0,.3),je=ie.uid;t.pattern(te,"point",fe,je,ce,Be,De,void 0,ye.fillmode,ue,Me,Pe)}else ie.fillcolor&&te.call(f.fill,ie.fillcolor)}t.singleFillStyle=function(te,ie){var fe=h.select(te.node()),ye=fe.data(),ce=((ye[0]||[])[0]||{}).trace||{};l(te,ce,ie)},t.fillGroupStyle=function(te,ie){te.style("stroke-width",0).each(function(fe){var ye=h.select(this);fe[0].trace&&l(ye,fe[0].trace,ie)})};var a=e("Oq3NKwwJ");t.symbolNames=[],t.symbolFuncs=[],t.symbolBackOffs=[],t.symbolNeedLines={},t.symbolNoDot={},t.symbolNoFill={},t.symbolList=[],Object.keys(a).forEach(function(te){var ie=a[te],fe=ie.n;t.symbolList.push(fe,String(fe),te,fe+100,String(fe+100),te+"-open"),t.symbolNames[fe]=te,t.symbolFuncs[fe]=ie.f,t.symbolBackOffs[fe]=ie.backoff||0,ie.needLine&&(t.symbolNeedLines[fe]=!0),ie.noDot?t.symbolNoDot[fe]=!0:t.symbolList.push(fe+200,String(fe+200),te+"-dot",fe+300,String(fe+300),te+"-open-dot"),ie.noFill&&(t.symbolNoFill[fe]=!0)});var x=t.symbolNames.length,y="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";t.symbolNumber=function(te){if(i(te))te=+te;else if(typeof te=="string"){var ie=0;te.indexOf("-open")>0&&(ie=100,te=te.replace("-open","")),te.indexOf("-dot")>0&&(ie+=200,te=te.replace("-dot","")),te=t.symbolNames.indexOf(te),te>=0&&(te+=ie)}return te%100>=x||te>=400?0:Math.floor(Math.max(te,0))};function E(te,ie,fe,ye){var ce=te%100;return t.symbolFuncs[ce](ie,fe,ye)+(te>=200?y:"")}var L={x1:1,x2:0,y1:0,y2:0},F={x1:0,x2:0,y1:1,y2:0},B=S("~f"),s={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:L},horizontalreversed:{node:"linearGradient",attrs:L,reversed:!0},vertical:{node:"linearGradient",attrs:F},verticalreversed:{node:"linearGradient",attrs:F,reversed:!0}};t.gradient=function(te,ie,fe,ye,ce,ue){for(var Me=ce.length,Pe=s[ye],Be=new Array(Me),De=0;De=0&&te.i===void 0&&(te.i=ue.i),ie.style("opacity",ye.selectedOpacityFn?ye.selectedOpacityFn(te):te.mo===void 0?Me.opacity:te.mo),ye.ms2mrc){var Be;te.ms==="various"||Me.size==="various"?Be=3:Be=ye.ms2mrc(te.ms),te.mrc=Be,ye.selectedSizeFn&&(Be=te.mrc=ye.selectedSizeFn(te));var De=t.symbolNumber(te.mx||Me.symbol)||0;te.om=De%200>=100;var je=xe(te,fe),_e=k(te,fe);ie.attr("d",E(De,Be,je,_e))}var Qe=!1,Ue,nt,Ge;if(te.so)Ge=Pe.outlierwidth,nt=Pe.outliercolor,Ue=Me.outliercolor;else{var Ye=(Pe||{}).width;Ge=(te.mlw+1||Ye+1||(te.trace?(te.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in te?nt=te.mlcc=ye.lineScale(te.mlc):v.isArrayOrTypedArray(Pe.color)?nt=f.defaultLine:nt=Pe.color,v.isArrayOrTypedArray(Me.color)&&(Ue=f.defaultLine,Qe=!0),"mc"in te?Ue=te.mcc=ye.markerScale(te.mc):Ue=Me.color||Me.colors||"rgba(0,0,0,0)",ye.selectedColorFn&&(Ue=ye.selectedColorFn(te))}if(te.om)ie.call(f.stroke,Ue).style({"stroke-width":(Ge||1)+"px",fill:"none"});else{ie.style("stroke-width",(te.isBlank?0:Ge)+"px");var ot=Me.gradient,rt=te.mgt;rt?Qe=!0:rt=ot&&ot.type,v.isArrayOrTypedArray(rt)&&(rt=rt[0],s[rt]||(rt=0));var Ke=Me.pattern,he=Ke&&t.getPatternAttr(Ke.shape,te.i,"");if(rt&&rt!=="none"){var He=te.mgc;He?Qe=!0:He=ot.color;var Ie=fe.uid;Qe&&(Ie+="-"+te.i),t.gradient(ie,ce,Ie,rt,[[0,He],[1,Ue]],"fill")}else if(he){var Fe=!1,We=Ke.fgcolor;!We&&ue&&ue.color&&(We=ue.color,Fe=!0);var _=t.getPatternAttr(We,te.i,ue&&ue.color||null),ve=t.getPatternAttr(Ke.bgcolor,te.i,null),de=Ke.fgopacity,pe=t.getPatternAttr(Ke.size,te.i,8),be=t.getPatternAttr(Ke.solidity,te.i,.3);Fe=Fe||te.mcc||v.isArrayOrTypedArray(Ke.shape)||v.isArrayOrTypedArray(Ke.bgcolor)||v.isArrayOrTypedArray(Ke.fgcolor)||v.isArrayOrTypedArray(Ke.size)||v.isArrayOrTypedArray(Ke.solidity);var we=fe.uid;Fe&&(we+="-"+te.i),t.pattern(ie,"point",ce,we,he,pe,be,te.mcc,Ke.fillmode,ve,_,de)}else v.isArrayOrTypedArray(Ue)?f.fill(ie,Ue[te.i]):f.fill(ie,Ue);Ge&&f.stroke(ie,nt)}},t.makePointStyleFns=function(te){var ie={},fe=te.marker;return ie.markerScale=t.tryColorscale(fe,""),ie.lineScale=t.tryColorscale(fe,"line"),c.traceIs(te,"symbols")&&(ie.ms2mrc=T.isBubble(te)?u(te):function(){return(fe.size||6)/2}),te.selectedpoints&&v.extendFlat(ie,t.makeSelectedPointStyleFns(te)),ie},t.makeSelectedPointStyleFns=function(te){var ie={},fe=te.selected||{},ye=te.unselected||{},ce=te.marker||{},ue=fe.marker||{},Me=ye.marker||{},Pe=ce.opacity,Be=ue.opacity,De=Me.opacity,je=Be!==void 0,_e=De!==void 0;(v.isArrayOrTypedArray(Pe)||je||_e)&&(ie.selectedOpacityFn=function(he){var He=he.mo===void 0?ce.opacity:he.mo;return he.selected?je?Be:He:_e?De:b*He});var Qe=ce.color,Ue=ue.color,nt=Me.color;(Ue||nt)&&(ie.selectedColorFn=function(he){var He=he.mcc||Qe;return he.selected?Ue||He:nt||He});var Ge=ce.size,Ye=ue.size,ot=Me.size,rt=Ye!==void 0,Ke=ot!==void 0;return c.traceIs(te,"symbols")&&(rt||Ke)&&(ie.selectedSizeFn=function(he){var He=he.mrc||Ge/2;return he.selected?rt?Ye/2:He:Ke?ot/2:He}),ie},t.makeSelectedTextStyleFns=function(te){var ie={},fe=te.selected||{},ye=te.unselected||{},ce=te.textfont||{},ue=fe.textfont||{},Me=ye.textfont||{},Pe=ce.color,Be=ue.color,De=Me.color;return ie.selectedTextColorFn=function(je){var _e=je.tc||Pe;return je.selected?Be||_e:De||(Be?_e:f.addOpacity(_e,b))},ie},t.selectedPointStyle=function(te,ie){if(!(!te.size()||!ie.selectedpoints)){var fe=t.makeSelectedPointStyleFns(ie),ye=ie.marker||{},ce=[];fe.selectedOpacityFn&&ce.push(function(ue,Me){ue.style("opacity",fe.selectedOpacityFn(Me))}),fe.selectedColorFn&&ce.push(function(ue,Me){f.fill(ue,fe.selectedColorFn(Me))}),fe.selectedSizeFn&&ce.push(function(ue,Me){var Pe=Me.mx||ye.symbol||0,Be=fe.selectedSizeFn(Me);ue.attr("d",E(t.symbolNumber(Pe),Be,xe(Me,ie),k(Me,ie))),Me.mrc2=Be}),ce.length&&te.each(function(ue){for(var Me=h.select(this),Pe=0;Pe0?fe:0}t.textPointStyle=function(te,ie,fe){if(te.size()){var ye;if(ie.selectedpoints){var ce=t.makeSelectedTextStyleFns(ie);ye=ce.selectedTextColorFn}var ue=ie.texttemplate,Me=fe._fullLayout;te.each(function(Pe){var Be=h.select(this),De=ue?v.extractOption(Pe,ie,"txt","texttemplate"):v.extractOption(Pe,ie,"tx","text");if(!De&&De!==0){Be.remove();return}if(ue){var je=ie._module.formatLabels,_e=je?je(Pe,ie,Me):{},Qe={};p(Qe,ie,Pe.i);var Ue=ie._meta||{};De=v.texttemplateString(De,_e,Me._d3locale,Qe,Pe,Ue)}var nt=Pe.tp||ie.textposition,Ge=I(Pe,ie),Ye=ye?ye(Pe):Pe.tc||ie.textfont.color;Be.call(t.font,Pe.tf||ie.textfont.family,Ge,Ye).text(De).call(m.convertToTspans,fe).call(g,nt,Ge,Pe.mrc)})}},t.selectedTextStyle=function(te,ie){if(!(!te.size()||!ie.selectedpoints)){var fe=t.makeSelectedTextStyleFns(ie);te.each(function(ye){var ce=h.select(this),ue=fe.selectedTextColorFn(ye),Me=ye.tp||ie.textposition,Pe=I(ye,ie);f.fill(ce,ue);var Be=c.traceIs(ie,"bar-like");g(ce,Me,Pe,ye.mrc2||ye.mrc,Be)})}};var N=.5;t.smoothopen=function(te,ie){if(te.length<3)return"M"+te.join("L");var fe="M"+te[0],ye=[],ce;for(ce=1;ce=Be||he>=je&&he<=Be)&&(He<=_e&&He>=De||He>=_e&&He<=De)&&(te=[he,He])}return te}t.applyBackoff=ee,t.makeTester=function(){var te=v.ensureSingleById(h.select("body"),"svg","js-plotly-tester",function(fe){fe.attr(d.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),ie=v.ensureSingle(te,"path","js-reference-point",function(fe){fe.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});t.tester=te,t.testref=ie},t.savedBBoxes={};var ne=0,me=1e4;t.bBox=function(te,ie,fe){fe||(fe=$(te));var ye;if(fe){if(ye=t.savedBBoxes[fe],ye)return v.extendFlat({},ye)}else if(te.childNodes.length===1){var ce=te.childNodes[0];if(fe=$(ce),fe){var ue=+ce.getAttribute("x")||0,Me=+ce.getAttribute("y")||0,Pe=ce.getAttribute("transform");if(!Pe){var Be=t.bBox(ce,!1,fe);return ue&&(Be.left+=ue,Be.right+=ue),Me&&(Be.top+=Me,Be.bottom+=Me),Be}if(fe+="~"+ue+"~"+Me+"~"+Pe,ye=t.savedBBoxes[fe],ye)return v.extendFlat({},ye)}}var De,je;ie?De=te:(je=t.tester.node(),De=te.cloneNode(!0),je.appendChild(De)),h.select(De).attr("transform",null).call(m.positionText,0,0);var _e=De.getBoundingClientRect(),Qe=t.testref.node().getBoundingClientRect();ie||je.removeChild(De);var Ue={height:_e.height,width:_e.width,left:_e.left-Qe.left,top:_e.top-Qe.top,right:_e.right-Qe.left,bottom:_e.bottom-Qe.top};return ne>=me&&(t.savedBBoxes={},ne=0),fe&&(t.savedBBoxes[fe]=Ue),ne++,v.extendFlat({},Ue)};function $(te){var ie=te.getAttribute("data-unformatted");if(ie!==null)return ie+te.getAttribute("data-math")+te.getAttribute("text-anchor")+te.getAttribute("style")}t.setClipUrl=function(te,ie,fe){te.attr("clip-path",re(ie,fe))};function re(te,ie){if(!te)return null;var fe=ie._context,ye=fe._exportedPlot?"":fe._baseUrl||"";return ye?"url('"+ye+"#"+te+"')":"url(#"+te+")"}t.getTranslate=function(te){var ie=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,fe=te.attr?"attr":"getAttribute",ye=te[fe]("transform")||"",ce=ye.replace(ie,function(ue,Me,Pe){return[Me,Pe].join(" ")}).split(" ");return{x:+ce[0]||0,y:+ce[1]||0}},t.setTranslate=function(te,ie,fe){var ye=/(\btranslate\(.*?\);?)/,ce=te.attr?"attr":"getAttribute",ue=te.attr?"attr":"setAttribute",Me=te[ce]("transform")||"";return ie=ie||0,fe=fe||0,Me=Me.replace(ye,"").trim(),Me+=o(ie,fe),Me=Me.trim(),te[ue]("transform",Me),Me},t.getScale=function(te){var ie=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,fe=te.attr?"attr":"getAttribute",ye=te[fe]("transform")||"",ce=ye.replace(ie,function(ue,Me,Pe){return[Me,Pe].join(" ")}).split(" ");return{x:+ce[0]||1,y:+ce[1]||1}},t.setScale=function(te,ie,fe){var ye=/(\bscale\(.*?\);?)/,ce=te.attr?"attr":"getAttribute",ue=te.attr?"attr":"setAttribute",Me=te[ce]("transform")||"";return ie=ie||1,fe=fe||1,Me=Me.replace(ye,"").trim(),Me+="scale("+ie+","+fe+")",Me=Me.trim(),te[ue]("transform",Me),Me};var C=/\s*sc.*/;t.setPointGroupScale=function(te,ie,fe){if(ie=ie||1,fe=fe||1,!!te){var ye=ie===1&&fe===1?"":"scale("+ie+","+fe+")";te.each(function(){var ce=(this.getAttribute("transform")||"").replace(C,"");ce+=ye,ce=ce.trim(),this.setAttribute("transform",ce)})}};var R=/translate\([^)]*\)\s*$/;t.setTextPointsScale=function(te,ie,fe){te&&te.each(function(){var ye,ce=h.select(this),ue=ce.select("text");if(ue.node()){var Me=parseFloat(ue.attr("x")||0),Pe=parseFloat(ue.attr("y")||0),Be=(ce.attr("transform")||"").match(R);ie===1&&fe===1?ye=[]:ye=[o(Me,Pe),"scale("+ie+","+fe+")",o(-Me,-Pe)],Be&&ye.push(Be),ce.attr("transform",ye.join(""))}})};function k(te,ie){var fe;return te&&(fe=te.mf),fe===void 0&&(fe=ie.marker&&ie.marker.standoff||0),!ie._geo&&!ie._xA?-fe:fe}t.getMarkerStandoff=k;var G=Math.atan2,W=Math.cos,J=Math.sin;function K(te,ie){var fe=ie[0],ye=ie[1];return[fe*W(te)-ye*J(te),fe*J(te)+ye*W(te)]}var X,j,ae,se,le,ge;function xe(te,ie){var fe=te.ma;fe===void 0&&(fe=ie.marker.angle||0);var ye,ce,ue=ie.marker.angleref;if(ue==="previous"||ue==="north"){if(ie._geo){var Me=ie._geo.project(te.lonlat);ye=Me[0],ce=Me[1]}else{var Pe=ie._xA,Be=ie._yA;if(Pe&&Be)ye=Pe.c2p(te.x),ce=Be.c2p(te.y);else return 90}if(ie._geo){var De=te.lonlat[0],je=te.lonlat[1],_e=ie._geo.project([De,je+1e-5]),Qe=ie._geo.project([De+1e-5,je]),Ue=G(Qe[1]-ce,Qe[0]-ye),nt=G(_e[1]-ce,_e[0]-ye),Ge;if(ue==="north")Ge=fe/180*Math.PI;else if(ue==="previous"){var Ye=De/180*Math.PI,ot=je/180*Math.PI,rt=X/180*Math.PI,Ke=j/180*Math.PI,he=rt-Ye,He=W(Ke)*J(he),Ie=J(Ke)*W(ot)-W(Ke)*J(ot)*W(he);Ge=-G(He,Ie)-Math.PI,X=De,j=je}var Fe=K(Ue,[W(Ge),0]),We=K(nt,[J(Ge),0]);fe=G(Fe[1]+We[1],Fe[0]+We[0])/Math.PI*180,ue==="previous"&&!(ge===ie.uid&&te.i===le+1)&&(fe=null)}if(ue==="previous"&&!ie._geo)if(ge===ie.uid&&te.i===le+1&&i(ye)&&i(ce)){var _=ye-ae,ve=ce-se,de=ie.line&&ie.line.shape||"",pe=de.slice(de.length-1);pe==="h"&&(ve=0),pe==="v"&&(_=0),fe+=G(ve,_)/Math.PI*180+90}else fe=null}return ae=ye,se=ce,le=te.i,ge=ie.uid,fe}t.getMarkerAngle=xe},Oq3NKwwJ:(oe,q,e)=>{"use strict";var h=e("W2eyfIL2"),v=e("Lou4tdh8").round,S="M0,0Z",i=Math.sqrt(2),n=Math.sqrt(3),c=Math.PI,f=Math.cos,r=Math.sin;oe.exports={circle:{n:0,f:function(T,u,p){if(o(u))return S;var t=v(T,2),l="M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z";return p?b(u,p,l):l}},square:{n:1,f:function(T,u,p){if(o(u))return S;var t=v(T,2);return b(u,p,"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z")}},diamond:{n:2,f:function(T,u,p){if(o(u))return S;var t=v(T*1.3,2);return b(u,p,"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z")}},cross:{n:3,f:function(T,u,p){if(o(u))return S;var t=v(T*.4,2),l=v(T*1.2,2);return b(u,p,"M"+l+","+t+"H"+t+"V"+l+"H-"+t+"V"+t+"H-"+l+"V-"+t+"H-"+t+"V-"+l+"H"+t+"V-"+t+"H"+l+"Z")}},x:{n:4,f:function(T,u,p){if(o(u))return S;var t=v(T*.8/i,2),l="l"+t+","+t,a="l"+t+",-"+t,x="l-"+t+",-"+t,y="l-"+t+","+t;return b(u,p,"M0,"+t+l+a+x+a+x+y+x+y+l+y+l+"Z")}},"triangle-up":{n:5,f:function(T,u,p){if(o(u))return S;var t=v(T*2/n,2),l=v(T/2,2),a=v(T,2);return b(u,p,"M-"+t+","+l+"H"+t+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(T,u,p){if(o(u))return S;var t=v(T*2/n,2),l=v(T/2,2),a=v(T,2);return b(u,p,"M-"+t+",-"+l+"H"+t+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(T,u,p){if(o(u))return S;var t=v(T*2/n,2),l=v(T/2,2),a=v(T,2);return b(u,p,"M"+l+",-"+t+"V"+t+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(T,u,p){if(o(u))return S;var t=v(T*2/n,2),l=v(T/2,2),a=v(T,2);return b(u,p,"M-"+l+",-"+t+"V"+t+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(T,u,p){if(o(u))return S;var t=v(T*.6,2),l=v(T*1.2,2);return b(u,p,"M-"+l+",-"+t+"H"+t+"V"+l+"Z")}},"triangle-se":{n:10,f:function(T,u,p){if(o(u))return S;var t=v(T*.6,2),l=v(T*1.2,2);return b(u,p,"M"+t+",-"+l+"V"+t+"H-"+l+"Z")}},"triangle-sw":{n:11,f:function(T,u,p){if(o(u))return S;var t=v(T*.6,2),l=v(T*1.2,2);return b(u,p,"M"+l+","+t+"H-"+t+"V-"+l+"Z")}},"triangle-nw":{n:12,f:function(T,u,p){if(o(u))return S;var t=v(T*.6,2),l=v(T*1.2,2);return b(u,p,"M-"+t+","+l+"V-"+t+"H"+l+"Z")}},pentagon:{n:13,f:function(T,u,p){if(o(u))return S;var t=v(T*.951,2),l=v(T*.588,2),a=v(-T,2),x=v(T*-.309,2),y=v(T*.809,2);return b(u,p,"M"+t+","+x+"L"+l+","+y+"H-"+l+"L-"+t+","+x+"L0,"+a+"Z")}},hexagon:{n:14,f:function(T,u,p){if(o(u))return S;var t=v(T,2),l=v(T/2,2),a=v(T*n/2,2);return b(u,p,"M"+a+",-"+l+"V"+l+"L0,"+t+"L-"+a+","+l+"V-"+l+"L0,-"+t+"Z")}},hexagon2:{n:15,f:function(T,u,p){if(o(u))return S;var t=v(T,2),l=v(T/2,2),a=v(T*n/2,2);return b(u,p,"M-"+l+","+a+"H"+l+"L"+t+",0L"+l+",-"+a+"H-"+l+"L-"+t+",0Z")}},octagon:{n:16,f:function(T,u,p){if(o(u))return S;var t=v(T*.924,2),l=v(T*.383,2);return b(u,p,"M-"+l+",-"+t+"H"+l+"L"+t+",-"+l+"V"+l+"L"+l+","+t+"H-"+l+"L-"+t+","+l+"V-"+l+"Z")}},star:{n:17,f:function(T,u,p){if(o(u))return S;var t=T*1.4,l=v(t*.225,2),a=v(t*.951,2),x=v(t*.363,2),y=v(t*.588,2),E=v(-t,2),L=v(t*-.309,2),F=v(t*.118,2),B=v(t*.809,2),s=v(t*.382,2);return b(u,p,"M"+l+","+L+"H"+a+"L"+x+","+F+"L"+y+","+B+"L0,"+s+"L-"+y+","+B+"L-"+x+","+F+"L-"+a+","+L+"H-"+l+"L0,"+E+"Z")}},hexagram:{n:18,f:function(T,u,p){if(o(u))return S;var t=v(T*.66,2),l=v(T*.38,2),a=v(T*.76,2);return b(u,p,"M-"+a+",0l-"+l+",-"+t+"h"+a+"l"+l+",-"+t+"l"+l+","+t+"h"+a+"l-"+l+","+t+"l"+l+","+t+"h-"+a+"l-"+l+","+t+"l-"+l+",-"+t+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(T,u,p){if(o(u))return S;var t=v(T*n*.8,2),l=v(T*.8,2),a=v(T*1.6,2),x=v(T*4,2),y="A "+x+","+x+" 0 0 1 ";return b(u,p,"M-"+t+","+l+y+t+","+l+y+"0,-"+a+y+"-"+t+","+l+"Z")}},"star-triangle-down":{n:20,f:function(T,u,p){if(o(u))return S;var t=v(T*n*.8,2),l=v(T*.8,2),a=v(T*1.6,2),x=v(T*4,2),y="A "+x+","+x+" 0 0 1 ";return b(u,p,"M"+t+",-"+l+y+"-"+t+",-"+l+y+"0,"+a+y+t+",-"+l+"Z")}},"star-square":{n:21,f:function(T,u,p){if(o(u))return S;var t=v(T*1.1,2),l=v(T*2,2),a="A "+l+","+l+" 0 0 1 ";return b(u,p,"M-"+t+",-"+t+a+"-"+t+","+t+a+t+","+t+a+t+",-"+t+a+"-"+t+",-"+t+"Z")}},"star-diamond":{n:22,f:function(T,u,p){if(o(u))return S;var t=v(T*1.4,2),l=v(T*1.9,2),a="A "+l+","+l+" 0 0 1 ";return b(u,p,"M-"+t+",0"+a+"0,"+t+a+t+",0"+a+"0,-"+t+a+"-"+t+",0Z")}},"diamond-tall":{n:23,f:function(T,u,p){if(o(u))return S;var t=v(T*.7,2),l=v(T*1.4,2);return b(u,p,"M0,"+l+"L"+t+",0L0,-"+l+"L-"+t+",0Z")}},"diamond-wide":{n:24,f:function(T,u,p){if(o(u))return S;var t=v(T*1.4,2),l=v(T*.7,2);return b(u,p,"M0,"+l+"L"+t+",0L0,-"+l+"L-"+t+",0Z")}},hourglass:{n:25,f:function(T,u,p){if(o(u))return S;var t=v(T,2);return b(u,p,"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z")},noDot:!0},bowtie:{n:26,f:function(T,u,p){if(o(u))return S;var t=v(T,2);return b(u,p,"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z")},noDot:!0},"circle-cross":{n:27,f:function(T,u,p){if(o(u))return S;var t=v(T,2);return b(u,p,"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(T,u,p){if(o(u))return S;var t=v(T,2),l=v(T/i,2);return b(u,p,"M"+l+","+l+"L-"+l+",-"+l+"M"+l+",-"+l+"L-"+l+","+l+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(T,u,p){if(o(u))return S;var t=v(T,2);return b(u,p,"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(T,u,p){if(o(u))return S;var t=v(T,2);return b(u,p,"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(T,u,p){if(o(u))return S;var t=v(T*1.3,2);return b(u,p,"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(T,u,p){if(o(u))return S;var t=v(T*1.3,2),l=v(T*.65,2);return b(u,p,"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+l+",-"+l+"L"+l+","+l+"M-"+l+","+l+"L"+l+",-"+l)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(T,u,p){if(o(u))return S;var t=v(T*1.4,2);return b(u,p,"M0,"+t+"V-"+t+"M"+t+",0H-"+t)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(T,u,p){if(o(u))return S;var t=v(T,2);return b(u,p,"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(T,u,p){if(o(u))return S;var t=v(T*1.2,2),l=v(T*.85,2);return b(u,p,"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+l+","+l+"L-"+l+",-"+l+"M"+l+",-"+l+"L-"+l+","+l)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(T,u,p){if(o(u))return S;var t=v(T/2,2),l=v(T,2);return b(u,p,"M"+t+","+l+"V-"+l+"M"+(t-l)+",-"+l+"V"+l+"M"+l+","+t+"H-"+l+"M-"+l+","+(t-l)+"H"+l)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(T,u,p){if(o(u))return S;var t=v(T*1.2,2),l=v(T*1.6,2),a=v(T*.8,2);return b(u,p,"M-"+t+","+a+"L0,0M"+t+","+a+"L0,0M0,-"+l+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(T,u,p){if(o(u))return S;var t=v(T*1.2,2),l=v(T*1.6,2),a=v(T*.8,2);return b(u,p,"M-"+t+",-"+a+"L0,0M"+t+",-"+a+"L0,0M0,"+l+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(T,u,p){if(o(u))return S;var t=v(T*1.2,2),l=v(T*1.6,2),a=v(T*.8,2);return b(u,p,"M"+a+","+t+"L0,0M"+a+",-"+t+"L0,0M-"+l+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(T,u,p){if(o(u))return S;var t=v(T*1.2,2),l=v(T*1.6,2),a=v(T*.8,2);return b(u,p,"M-"+a+","+t+"L0,0M-"+a+",-"+t+"L0,0M"+l+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(T,u,p){if(o(u))return S;var t=v(T*1.4,2);return b(u,p,"M"+t+",0H-"+t)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(T,u,p){if(o(u))return S;var t=v(T*1.4,2);return b(u,p,"M0,"+t+"V-"+t)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(T,u,p){if(o(u))return S;var t=v(T,2);return b(u,p,"M"+t+",-"+t+"L-"+t+","+t)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(T,u,p){if(o(u))return S;var t=v(T,2);return b(u,p,"M"+t+","+t+"L-"+t+",-"+t)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(T,u,p){if(o(u))return S;var t=v(T,2),l=v(T*2,2);return b(u,p,"M0,0L-"+t+","+l+"H"+t+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(T,u,p){if(o(u))return S;var t=v(T,2),l=v(T*2,2);return b(u,p,"M0,0L-"+t+",-"+l+"H"+t+"Z")},noDot:!0},"arrow-left":{n:47,f:function(T,u,p){if(o(u))return S;var t=v(T*2,2),l=v(T,2);return b(u,p,"M0,0L"+t+",-"+l+"V"+l+"Z")},noDot:!0},"arrow-right":{n:48,f:function(T,u,p){if(o(u))return S;var t=v(T*2,2),l=v(T,2);return b(u,p,"M0,0L-"+t+",-"+l+"V"+l+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(T,u,p){if(o(u))return S;var t=v(T,2),l=v(T*2,2);return b(u,p,"M-"+t+",0H"+t+"M0,0L-"+t+","+l+"H"+t+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(T,u,p){if(o(u))return S;var t=v(T,2),l=v(T*2,2);return b(u,p,"M-"+t+",0H"+t+"M0,0L-"+t+",-"+l+"H"+t+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(T,u,p){if(o(u))return S;var t=v(T*2,2),l=v(T,2);return b(u,p,"M0,-"+l+"V"+l+"M0,0L"+t+",-"+l+"V"+l+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(T,u,p){if(o(u))return S;var t=v(T*2,2),l=v(T,2);return b(u,p,"M0,-"+l+"V"+l+"M0,0L-"+t+",-"+l+"V"+l+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(T,u,p){if(o(u))return S;var t=c/2.5,l=2*T*f(t),a=2*T*r(t);return b(u,p,"M0,0L"+-l+","+a+"L"+l+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(T,u,p){if(o(u))return S;var t=c/4,l=2*T*f(t),a=2*T*r(t);return b(u,p,"M0,0L"+-l+","+a+"A "+2*T+","+2*T+" 0 0 1 "+l+","+a+"Z")},backoff:.4,noDot:!0}};function o(T){return T===null}var m,d,A,M;function b(T,u,p){if((!T||T%360===0)&&!u)return p;if(A===T&&M===u&&m===p)return d;A=T,M=u,m=p;function t(N,Q){var P=f(N),D=r(N),z=Q[0],H=Q[1]+(u||0);return[z*P-H*D,z*D+H*P]}for(var l=T/180*c,a=0,x=0,y=h(p),E="",L=0;L{"use strict";oe.exports={visible:{valType:"boolean",editType:"calc",description:["Determines whether or not this set of error bars is visible."].join(" ")},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc",description:["Determines the rule used to generate the error bars.","If *constant`, the bar lengths are of a constant value.","Set this constant in `value`.","If *percent*, the bar lengths correspond to a percentage of","underlying data. Set this percentage in `value`.","If *sqrt*, the bar lengths correspond to the square of the","underlying data.","If *data*, the bar lengths are set with data set `array`."].join(" ")},symmetric:{valType:"boolean",editType:"calc",description:["Determines whether or not the error bars have the same length","in both direction","(top/bottom for vertical bars, left/right for horizontal bars."].join(" ")},array:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar.","Values are plotted relative to the underlying data."].join(" ")},arrayminus:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar in the","bottom (left) direction for vertical (horizontal) bars","Values are plotted relative to the underlying data."].join(" ")},value:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars."].join(" ")},valueminus:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars in the","bottom (left) direction for vertical (horizontal) bars"].join(" ")},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style",description:"Sets the stoke color of the error bars."},thickness:{valType:"number",min:0,dflt:2,editType:"style",description:"Sets the thickness (in px) of the error bars."},width:{valType:"number",min:0,editType:"plot",description:["Sets the width (in px) of the cross-bar at both ends","of the error bars."].join(" ")},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style",description:["Obsolete.","Use the alpha channel in error bar `color` to set the opacity."].join(" ")}}}},"B2+59IWp":(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("R5um7Wku"),S=e("4JfnfFRI"),i=e("0Ft3SWJB"),n=e("Oetmuozk");oe.exports=function(r){for(var o=r.calcdata,m=0;m{"use strict";oe.exports=function(h){var v=h.type,S=h.symmetric;if(v==="data"){var i=h.array||[];if(S)return function(o,m){var d=+i[m];return[d,d]};var n=h.arrayminus||[];return function(o,m){var d=+i[m],A=+n[m];return!isNaN(d)||!isNaN(A)?[A||0,d||0]:[NaN,NaN]}}else{var c=q(v,h.value),f=q(v,h.valueminus);return S||h.valueminus===void 0?function(o){var m=c(o);return[m,m]}:function(o){return[f(o),c(o)]}}};function q(e,h){if(e==="percent")return function(v){return Math.abs(v*h/100)};if(e==="constant")return function(){return Math.abs(h)};if(e==="sqrt")return function(v){return Math.sqrt(Math.abs(v))}}},VC0JglZ3:(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("R5um7Wku"),S=e("0Ft3SWJB"),i=e("A5P9b9BX"),n=e("uLuh32aH");oe.exports=function(c,f,r,o){var m="error_"+o.axis,d=i.newContainer(f,m),A=c[m]||{};function M(a,x){return S.coerce(A,d,n,a,x)}var b=A.array!==void 0||A.value!==void 0||A.type==="sqrt",T=M("visible",b);if(T!==!1){var u=M("type","array"in A?"data":"percent"),p=!0;u!=="sqrt"&&(p=M("symmetric",!((u==="data"?"arrayminus":"valueminus")in A))),u==="data"?(M("array"),M("traceref"),p||(M("arrayminus"),M("tracerefminus"))):(u==="percent"||u==="constant")&&(M("value"),p||M("valueminus"));var t="copy_"+o.inherit+"style";if(o.inherit){var l=f["error_"+o.inherit];(l||{}).visible&&M(t,!(A.color||h(A.thickness)||h(A.width)))}(!o.inherit||!d[t])&&(M("color",r),M("thickness"),M("width",v.traceIs(f,"gl3d")?0:4))}}},UAdAo3EU:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("Oq1Cqb7p").overrideAll,S=e("uLuh32aH"),i={error_x:h.extendFlat({},S),error_y:h.extendFlat({},S)};delete i.error_x.copy_zstyle,delete i.error_y.copy_zstyle,delete i.error_y.copy_ystyle;var n={error_x:h.extendFlat({},S),error_y:h.extendFlat({},S),error_z:h.extendFlat({},S)};delete n.error_x.copy_ystyle,delete n.error_y.copy_ystyle,delete n.error_z.copy_ystyle,delete n.error_z.copy_zstyle,oe.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:i,bar:i,histogram:i,scatter3d:v(n,"calc","nested"),scattergl:v(i,"calc","nested")}},supplyDefaults:e("VC0JglZ3"),calc:e("B2+59IWp"),makeComputeError:e("Oetmuozk"),plot:e("naJ7bfx/"),style:e("+8FAZV0x"),hoverInfo:c};function c(f,r,o){(r.error_y||{}).visible&&(o.yerr=f.yh-f.y,r.error_y.symmetric||(o.yerrneg=f.y-f.ys)),(r.error_x||{}).visible&&(o.xerr=f.xh-f.x,r.error_x.symmetric||(o.xerrneg=f.x-f.xs))}},"naJ7bfx/":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("yAcToaBS"),S=e("+ELfTWmT"),i=e("FAQM5QER");oe.exports=function(f,r,o,m){var d,A=o.xaxis,M=o.yaxis,b=m&&m.duration>0,T=f._context.staticPlot;r.each(function(u){var p=u[0].trace,t=p.error_x||{},l=p.error_y||{},a;p.ids&&(a=function(L){return L.id});var x=i.hasMarkers(p)&&p.marker.maxdisplayed>0;!l.visible&&!t.visible&&(u=[]);var y=h.select(this).selectAll("g.errorbar").data(u,a);if(y.exit().remove(),!!u.length){t.visible||y.selectAll("path.xerror").remove(),l.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var E=y.enter().append("g").classed("errorbar",!0);b&&E.style("opacity",0).transition().duration(m.duration).style("opacity",1),S.setClipUrl(y,o.layerClipId,f),y.each(function(L){var F=h.select(this),B=n(L,A,M);if(!(x&&!L.vis)){var s,w=F.select("path.yerror");if(l.visible&&v(B.x)&&v(B.yh)&&v(B.ys)){var g=l.width;s="M"+(B.x-g)+","+B.yh+"h"+2*g+"m-"+g+",0V"+B.ys,B.noYS||(s+="m-"+g+",0h"+2*g),d=!w.size(),d?w=F.append("path").style("vector-effect",T?"none":"non-scaling-stroke").classed("yerror",!0):b&&(w=w.transition().duration(m.duration).ease(m.easing)),w.attr("d",s)}else w.remove();var I=F.select("path.xerror");if(t.visible&&v(B.y)&&v(B.xh)&&v(B.xs)){var N=(t.copy_ystyle?l:t).width;s="M"+B.xh+","+(B.y-N)+"v"+2*N+"m0,-"+N+"H"+B.xs,B.noXS||(s+="m0,-"+N+"v"+2*N),d=!I.size(),d?I=F.append("path").style("vector-effect",T?"none":"non-scaling-stroke").classed("xerror",!0):b&&(I=I.transition().duration(m.duration).ease(m.easing)),I.attr("d",s)}else I.remove()}})}})};function n(c,f,r){var o={x:f.c2p(c.x),y:r.c2p(c.y)};return c.yh!==void 0&&(o.yh=r.c2p(c.yh),o.ys=r.c2p(c.ys),v(o.ys)||(o.noYS=!0,o.ys=r.c2p(c.ys,!0))),c.xh!==void 0&&(o.xh=f.c2p(c.xh),o.xs=f.c2p(c.xs),v(o.xs)||(o.noXS=!0,o.xs=f.c2p(c.xs,!0))),o}},"+8FAZV0x":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("/oRevOrA");oe.exports=function(i){i.each(function(n){var c=n[0].trace,f=c.error_y||{},r=c.error_x||{},o=h.select(this);o.selectAll("path.yerror").style("stroke-width",f.thickness+"px").call(v.stroke,f.color),r.copy_ystyle&&(r=f),o.selectAll("path.xerror").style("stroke-width",r.thickness+"px").call(v.stroke,r.color)})}},"iimf+fXS":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("R5um7Wku");oe.exports=function(n){var c=n.calcdata,f=n._fullLayout;function r(M){return function(b){return h.coerceHoverinfo({hoverinfo:b},{_module:M._module},f)}}for(var o=0;o{"use strict";var h=e("R5um7Wku"),v=e("E0Erayg3").hover;oe.exports=function(i,n,c){var f=h.getComponentMethod("annotations","onClick")(i,i._hoverdata);c!==void 0&&v(i,n,c,!0);function r(){i.emit("plotly_click",{points:i._hoverdata,event:n})}i._hoverdata&&n&&n.target&&(f&&f.then?f.then(r):r(),n.stopImmediatePropagation&&n.stopImmediatePropagation())}},ATH0WTii:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("CPF8cYDb"),S=e("FW/+9MgV");oe.exports=function(n,c,f,r){function o(d,A){return h.coerce(n,c,v,d,A)}var m=h.extendFlat({},r.hoverlabel);c.hovertemplate&&(m.namelength=-1),S(n,c,o,m)}},ErV1Ibqz:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB");q.getSubplot=function(f){return f.subplot||f.xaxis+f.yaxis||f.geo},q.isTraceInSubplots=function(f,r){if(f.type==="splom"){for(var o=f.xaxes||[],m=f.yaxes||[],d=0;d=0&&o.index{"use strict";var h=e("Lou4tdh8"),v=e("yAcToaBS"),S=e("VDpxHpeA"),i=e("0Ft3SWJB"),n=i.strTranslate,c=i.strRotate,f=e("6NEikfh9"),r=e("7k8rh0sJ"),o=e("FLLMPlzg"),m=e("+ELfTWmT"),d=e("/oRevOrA"),A=e("WFvnZ06c"),M=e("4JfnfFRI"),b=e("R5um7Wku"),T=e("ErV1Ibqz"),u=e("HoF8EwuB"),p=e("sAx/oUxG"),t=e("2Lvd5/R9"),l=u.YANGLE,a=Math.PI*l/180,x=1/Math.sin(a),y=Math.cos(a),E=Math.sin(a),L=u.HOVERARROWSIZE,F=u.HOVERTEXTPAD,B={box:!0,ohlc:!0,violin:!0,candlestick:!0},s={scatter:!0,scattergl:!0,splom:!0};q.hover=function(G,W,J,K){G=i.getGraphDiv(G);var X=W.target;i.throttle(G._fullLayout._uid+u.HOVERID,u.HOVERMINTIME,function(){w(G,W,J,K,X)})},q.loneHover=function(G,W){var J=!0;Array.isArray(G)||(J=!1,G=[G]);var K=W.gd,X=re(K),j=C(K),ae=G.map(function(ce){var ue=ce._x0||ce.x0||ce.x||0,Me=ce._x1||ce.x1||ce.x||0,Pe=ce._y0||ce.y0||ce.y||0,Be=ce._y1||ce.y1||ce.y||0,De=ce.eventData;if(De){var je=Math.min(ue,Me),_e=Math.max(ue,Me),Qe=Math.min(Pe,Be),Ue=Math.max(Pe,Be),nt=ce.trace;if(b.traceIs(nt,"gl3d")){var Ge=K._fullLayout[nt.scene]._scene.container,Ye=Ge.offsetLeft,ot=Ge.offsetTop;je+=Ye,_e+=Ye,Qe+=ot,Ue+=ot}De.bbox={x0:je+j,x1:_e+j,y0:Qe+X,y1:Ue+X},W.inOut_bbox&&W.inOut_bbox.push(De.bbox)}else De=!1;return{color:ce.color||d.defaultLine,x0:ce.x0||ce.x||0,x1:ce.x1||ce.x||0,y0:ce.y0||ce.y||0,y1:ce.y1||ce.y||0,xLabel:ce.xLabel,yLabel:ce.yLabel,zLabel:ce.zLabel,text:ce.text,name:ce.name,idealAlign:ce.idealAlign,borderColor:ce.borderColor,fontFamily:ce.fontFamily,fontSize:ce.fontSize,fontColor:ce.fontColor,nameLength:ce.nameLength,textAlign:ce.textAlign,trace:ce.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:ce.hovertemplate||!1,hovertemplateLabels:ce.hovertemplateLabels||!1,eventData:De}}),se=!1,le=N(ae,{gd:K,hovermode:"closest",rotateLabels:se,bgColor:W.bgColor||d.background,container:h.select(W.container),outerContainer:W.outerContainer||W.container}),ge=le.hoverLabels,xe=5,te=0,ie=0;ge.sort(function(ce,ue){return ce.y0-ue.y0}).each(function(ce,ue){var Me=ce.y0-ce.by/2;Me-xete[0]._length||pe<0||pe>ie[0]._length)return A.unhoverRaw(k,G)}if(G.pointerX=de+te[0]._offset,G.pointerY=pe+ie[0]._offset,"xval"in G?_e=T.flat(X,G.xval):_e=T.p2c(te,de),"yval"in G?Qe=T.flat(X,G.yval):Qe=T.p2c(ie,pe),!v(_e[0])||!v(Qe[0]))return i.warn("Fx.hover failed",G,k),A.unhoverRaw(k,G)}var Je=1/0;function Ze(st,vt){for(nt=0;ntFe&&(De.splice(0,Fe),Je=De[0].distance),le&&Be!==0&&De.length===0){Ie.distance=Be,Ie.index=!1;var Pt=Ye._module.hoverPoints(Ie,he,He,"closest",{hoverLayer:j._hoverlayer});if(Pt&&(Pt=Pt.filter(function(Wt){return Wt.spikeDistance<=Be})),Pt&&Pt.length){var It,Bt=Pt.filter(function(Wt){return Wt.xa.showspikes&&Wt.xa.spikesnap!=="hovered data"});if(Bt.length){var Ht=Bt[0];v(Ht.x0)&&v(Ht.y0)&&(It=Le(Ht),(!We.vLinePoint||We.vLinePoint.spikeDistance>It.spikeDistance)&&(We.vLinePoint=It))}var Nt=Pt.filter(function(Wt){return Wt.ya.showspikes&&Wt.ya.spikesnap!=="hovered data"});if(Nt.length){var Gt=Nt[0];v(Gt.x0)&&v(Gt.y0)&&(It=Le(Gt),(!We.hLinePoint||We.hLinePoint.spikeDistance>It.spikeDistance)&&(We.hLinePoint=It))}}}}}Ze();function Ee(st,vt,Dt){for(var xt=null,Ft=1/0,Et,Pt=0;Pt0&&Math.abs(st.distance)$e-1;Z--)mt(De[Z]);De=St,ht()}var V=k._hoverdata,Te=[],Ae=re(k),ke=C(k);for(Ue=0;Ue1||De.length>1)||Me==="closest"&&_&&De.length>1,dt=d.combine(j.plot_bgcolor||d.background,j.paper_bgcolor),Rt=N(De,{gd:k,hovermode:Me,rotateLabels:ut,bgColor:dt,container:j._hoverlayer,outerContainer:j._paper.node(),commonLabelOpts:j.hoverlabel,hoverdistance:j.hoverdistance}),At=Rt.hoverLabels;if(T.isUnifiedHover(Me)||(P(At,ut,j,Rt.commonLabelBoundingBox),H(At,ut,j._invScaleX,j._invScaleY)),K&&K.tagName){var Lt=b.getComponentMethod("annotations","hasClickToShow")(k,Te);o(h.select(K),Lt?"pointer":"")}!K||J||!Y(k,G,V)||(V&&k.emit("plotly_unhover",{event:G,points:V}),k.emit("plotly_hover",{event:G,points:k._hoverdata,xaxes:te,yaxes:ie,xvals:_e,yvals:Qe}))}function g(k){return[k.trace.index,k.index,k.x0,k.y0,k.name,k.attr,k.xa?k.xa._id:"",k.ya?k.ya._id:""].join(",")}var I=/([\s\S]*)<\/extra>/;function N(k,G){var W=G.gd,J=W._fullLayout,K=G.hovermode,X=G.rotateLabels,j=G.bgColor,ae=G.container,se=G.outerContainer,le=G.commonLabelOpts||{};if(k.length===0)return[[]];var ge=G.fontFamily||u.HOVERFONT,xe=G.fontSize||u.HOVERFONTSIZE,te=k[0],ie=te.xa,fe=te.ya,ye=K.charAt(0),ce=ye+"Label",ue=te[ce];if(ue===void 0&&ie.type==="multicategory")for(var Me=0;MeJ.width-ke?(V=J.width-ke,yt.attr("d","M"+(ke-L)+",0L"+ke+","+Ae+L+"v"+Ae+(F*2+Z.height)+"H-"+ke+"V"+Ae+L+"H"+(ke-L*2)+"Z")):yt.attr("d","M0,0L"+L+","+Ae+L+"H"+ke+"v"+Ae+(F*2+Z.height)+"H-"+ke+"V"+Ae+L+"H-"+L+"Z"),ot.minX=V-ke,ot.maxX=V+ke,ie.side==="top"?(ot.minY=Te-(F*2+Z.height),ot.maxY=Te-F):(ot.minY=Te+F,ot.maxY=Te+(F*2+Z.height))}else{var Re,ze,Ce;fe.side==="right"?(Re="start",ze=1,Ce="",V=ie._offset+ie._length):(Re="end",ze=-1,Ce="-",V=ie._offset),Te=fe._offset+(te.y0+te.y1)/2,ct.attr("text-anchor",Re),yt.attr("d","M0,0L"+Ce+L+","+L+"V"+(F+Z.height/2)+"h"+Ce+(F*2+Z.width)+"V-"+(F+Z.height/2)+"H"+Ce+L+"V-"+L+"Z"),ot.minY=Te-(F+Z.height/2),ot.maxY=Te+(F+Z.height/2),fe.side==="right"?(ot.minX=V+L,ot.maxX=V+L+(F*2+Z.width)):(ot.minX=V-L-(F*2+Z.width),ot.maxX=V-L);var Se=Z.height/2,Ne=Be-Z.top-Se,Ve="clip"+J._uid+"commonlabel"+fe._id,Xe;if(V=0?pt=Mt:it+Ze=0?pt=it:Tt+Ze=0?kt=ht:bt+Ee=0?kt=bt:wt+Ee=0,($e.idealAlign==="top"||!ut)&&dt?(Ne-=Xe/2,$e.anchor="end"):ut?(Ne+=Xe/2,$e.anchor="start"):$e.anchor="middle",$e.crossPos=Ne;else{if($e.pos=Ne,ut=Se+Ve/2+lt<=De,dt=Se-Ve/2-lt>=0,($e.idealAlign==="left"||!ut)&&dt)Se-=Ve/2,$e.anchor="end";else if(ut)Se+=Ve/2,$e.anchor="start";else{$e.anchor="middle";var Rt=lt/2,At=Se+Rt-De,Lt=Se-Rt;At>0&&(Se-=At),Lt<0&&(Se+=-Lt)}$e.crossPos=Se}Ae.attr("text-anchor",$e.anchor),Re&&ke.attr("text-anchor",$e.anchor),yt.attr("transform",n(Se,Ne)+(X?c(l):""))}),{hoverLabels:gt,commonLabelBoundingBox:ot}}function Q(k,G,W,J,K,X){var j="",ae="";k.nameOverride!==void 0&&(k.name=k.nameOverride),k.name&&(k.trace._meta&&(k.name=i.templateString(k.name,k.trace._meta)),j=ne(k.name,k.nameLength));var se=W.charAt(0),le=se==="x"?"y":"x";k.zLabel!==void 0?(k.xLabel!==void 0&&(ae+="x: "+k.xLabel+"
"),k.yLabel!==void 0&&(ae+="y: "+k.yLabel+"
"),k.trace.type!=="choropleth"&&k.trace.type!=="choroplethmapbox"&&(ae+=(ae?"z: ":"")+k.zLabel)):G&&k[se+"Label"]===K?ae=k[le+"Label"]||"":k.xLabel===void 0?k.yLabel!==void 0&&k.trace.type!=="scattercarpet"&&(ae=k.yLabel):k.yLabel===void 0?ae=k.xLabel:ae="("+k.xLabel+", "+k.yLabel+")",(k.text||k.text===0)&&!Array.isArray(k.text)&&(ae+=(ae?"
":"")+k.text),k.extraText!==void 0&&(ae+=(ae?"
":"")+k.extraText),X&&ae===""&&!k.hovertemplate&&(j===""&&X.remove(),ae=j);var ge=k.hovertemplate||!1;if(ge){var xe=k.hovertemplateLabels||k;k[se+"Label"]!==K&&(xe[se+"other"]=xe[se+"Val"],xe[se+"otherLabel"]=xe[se+"Label"]),ae=i.hovertemplateString(ge,xe,J._d3locale,k.eventData[0]||{},k.trace._meta),ae=ae.replace(I,function(te,ie){return j=ne(ie,k.nameLength),""})}return[ae,j]}function P(k,G,W,J){var K=G?"xa":"ya",X=G?"ya":"xa",j=0,ae=1,se=k.size(),le=new Array(se),ge=0,xe=J.minX,te=J.maxX,ie=J.minY,fe=J.maxY,ye=function(he){return he*W._invScaleX},ce=function(he){return he*W._invScaleY};k.each(function(he){var He=he[K],Ie=he[X],Fe=He._id.charAt(0)==="x",We=He.range;ge===0&&We&&We[0]>We[1]!==Fe&&(ae=-1);var _=0,ve=Fe?W.width:W.height;if(W.hovermode==="x"||W.hovermode==="y"){var de=D(he,G),pe=he.anchor,be=pe==="end"?-1:1,we,Je;if(pe==="middle")we=he.crossPos+(Fe?ce(de.y-he.by/2):ye(he.bx/2+he.tx2width/2)),Je=we+(Fe?ce(he.by):ye(he.bx));else if(Fe)we=he.crossPos+ce(L+de.y)-ce(he.by/2-L),Je=we+ce(he.by);else{var Ze=ye(be*L+de.x),Ee=Ze+ye(be*he.bx);we=he.crossPos+Math.min(Ze,Ee),Je=he.crossPos+Math.max(Ze,Ee)}Fe?ie!==void 0&&fe!==void 0&&Math.min(Je,fe)-Math.max(we,ie)>1&&(Ie.side==="left"?(_=Ie._mainLinePosition,ve=W.width):ve=Ie._mainLinePosition):xe!==void 0&&te!==void 0&&Math.min(Je,te)-Math.max(we,xe)>1&&(Ie.side==="top"?(_=Ie._mainLinePosition,ve=W.height):ve=Ie._mainLinePosition)}le[ge++]=[{datum:he,traceIndex:he.trace.index,dp:0,pos:he.pos,posref:he.posref,size:he.by*(Fe?x:1)/2,pmin:_,pmax:ve}]}),le.sort(function(he,He){return he[0].posref-He[0].posref||ae*(He[0].traceIndex-he[0].traceIndex)});var ue,Me,Pe,Be,De,je,_e;function Qe(he){var He=he[0],Ie=he[he.length-1];if(Me=He.pmin-He.pos-He.dp+He.size,Pe=Ie.pos+Ie.dp+Ie.size-He.pmax,Me>.01){for(De=he.length-1;De>=0;De--)he[De].dp+=Me;ue=!1}if(!(Pe<.01)){if(Me<-.01){for(De=he.length-1;De>=0;De--)he[De].dp-=Pe;ue=!1}if(ue){var Fe=0;for(Be=0;BeHe.pmax&&Fe++;for(Be=he.length-1;Be>=0&&!(Fe<=0);Be--)je=he[Be],je.pos>He.pmax-1&&(je.del=!0,Fe--);for(Be=0;Be=0;De--)he[De].dp-=Pe;for(Be=he.length-1;Be>=0&&!(Fe<=0);Be--)je=he[Be],je.pos+je.dp+je.size>He.pmax&&(je.del=!0,Fe--)}}}for(;!ue&&j<=se;){for(j++,ue=!0,Be=0;Be.01&&Ge.pmin===Ye.pmin&&Ge.pmax===Ye.pmax){for(De=nt.length-1;De>=0;De--)nt[De].dp+=Me;for(Ue.push.apply(Ue,nt),le.splice(Be+1,1),_e=0,De=Ue.length-1;De>=0;De--)_e+=Ue[De].dp;for(Pe=_e/Ue.length,De=Ue.length-1;De>=0;De--)Ue[De].dp-=Pe;ue=!1}else Be++}le.forEach(Qe)}for(Be=le.length-1;Be>=0;Be--){var ot=le[Be];for(De=ot.length-1;De>=0;De--){var rt=ot[De],Ke=rt.datum;Ke.offset=rt.dp,Ke.del=rt.del}}}function D(k,G){var W=0,J=k.offset;return G&&(J*=-E,W=k.offset*y),{x:W,y:J}}function z(k){var G={start:1,end:-1,middle:0}[k.anchor],W=G*(L+F),J=W+G*(k.txwidth+F),K=k.anchor==="middle";return K&&(W-=k.tx2width/2,J+=k.txwidth/2+F),{alignShift:G,textShiftX:W,text2ShiftX:J}}function H(k,G,W,J){var K=function(j){return j*W},X=function(j){return j*J};k.each(function(j){var ae=h.select(this);if(j.del)return ae.remove();var se=ae.select("text.nums"),le=j.anchor,ge=le==="end"?-1:1,xe=z(j),te=D(j,G),ie=te.x,fe=te.y,ye=le==="middle";ae.select("path").attr("d",ye?"M-"+K(j.bx/2+j.tx2width/2)+","+X(fe-j.by/2)+"h"+K(j.bx)+"v"+X(j.by)+"h-"+K(j.bx)+"Z":"M0,0L"+K(ge*L+ie)+","+X(L+fe)+"v"+X(j.by/2-L)+"h"+K(ge*j.bx)+"v-"+X(j.by)+"H"+K(ge*L+ie)+"V"+X(fe-L)+"Z");var ce=ie+xe.textShiftX,ue=fe+j.ty0-j.by/2+F,Me=j.textAlign||"auto";Me!=="auto"&&(Me==="left"&&le!=="start"?(se.attr("text-anchor","start"),ce=ye?-j.bx/2-j.tx2width/2+F:-j.bx-F):Me==="right"&&le!=="end"&&(se.attr("text-anchor","end"),ce=ye?j.bx/2-j.tx2width/2-F:j.bx+F)),se.call(r.positionText,K(ce),X(ue)),j.tx2width&&(ae.select("text.name").call(r.positionText,K(xe.text2ShiftX+xe.alignShift*F+ie),X(fe+j.ty0-j.by/2+F)),ae.select("rect").call(m.setRect,K(xe.text2ShiftX+(xe.alignShift-1)*j.tx2width/2+ie),X(fe-j.by/2-1),K(j.tx2width),X(j.by+2)))})}function O(k,G){var W=k.index,J=k.trace||{},K=k.cd[0],X=k.cd[W]||{};function j(te){return te||v(te)&&te===0}var ae=Array.isArray(W)?function(te,ie){var fe=i.castOption(K,W,te);return j(fe)?fe:i.extractOption({},J,"",ie)}:function(te,ie){return i.extractOption(X,J,te,ie)};function se(te,ie,fe){var ye=ae(ie,fe);j(ye)&&(k[te]=ye)}if(se("hoverinfo","hi","hoverinfo"),se("bgcolor","hbg","hoverlabel.bgcolor"),se("borderColor","hbc","hoverlabel.bordercolor"),se("fontFamily","htf","hoverlabel.font.family"),se("fontSize","hts","hoverlabel.font.size"),se("fontColor","htc","hoverlabel.font.color"),se("nameLength","hnl","hoverlabel.namelength"),se("textAlign","hta","hoverlabel.align"),k.posref=G==="y"||G==="closest"&&J.orientation==="h"?k.xa._offset+(k.x0+k.x1)/2:k.ya._offset+(k.y0+k.y1)/2,k.x0=i.constrain(k.x0,0,k.xa._length),k.x1=i.constrain(k.x1,0,k.xa._length),k.y0=i.constrain(k.y0,0,k.ya._length),k.y1=i.constrain(k.y1,0,k.ya._length),k.xLabelVal!==void 0&&(k.xLabel="xLabel"in k?k.xLabel:M.hoverLabelText(k.xa,k.xLabelVal,J.xhoverformat),k.xVal=k.xa.c2d(k.xLabelVal)),k.yLabelVal!==void 0&&(k.yLabel="yLabel"in k?k.yLabel:M.hoverLabelText(k.ya,k.yLabelVal,J.yhoverformat),k.yVal=k.ya.c2d(k.yLabelVal)),k.zLabelVal!==void 0&&k.zLabel===void 0&&(k.zLabel=String(k.zLabelVal)),!isNaN(k.xerr)&&!(k.xa.type==="log"&&k.xerr<=0)){var le=M.tickText(k.xa,k.xa.c2l(k.xerr),"hover").text;k.xerrneg!==void 0?k.xLabel+=" +"+le+" / -"+M.tickText(k.xa,k.xa.c2l(k.xerrneg),"hover").text:k.xLabel+=" \xB1 "+le,G==="x"&&(k.distance+=1)}if(!isNaN(k.yerr)&&!(k.ya.type==="log"&&k.yerr<=0)){var ge=M.tickText(k.ya,k.ya.c2l(k.yerr),"hover").text;k.yerrneg!==void 0?k.yLabel+=" +"+ge+" / -"+M.tickText(k.ya,k.ya.c2l(k.yerrneg),"hover").text:k.yLabel+=" \xB1 "+ge,G==="y"&&(k.distance+=1)}var xe=k.hoverinfo||k.trace.hoverinfo;return xe&&xe!=="all"&&(xe=Array.isArray(xe)?xe:xe.split("+"),xe.indexOf("x")===-1&&(k.xLabel=void 0),xe.indexOf("y")===-1&&(k.yLabel=void 0),xe.indexOf("z")===-1&&(k.zLabel=void 0),xe.indexOf("text")===-1&&(k.text=void 0),xe.indexOf("name")===-1&&(k.name=void 0)),k}function U(k,G,W){var J=W.container,K=W.fullLayout,X=K._size,j=W.event,ae=!!G.hLinePoint,se=!!G.vLinePoint,le,ge;if(J.selectAll(".spikeline").remove(),!!(se||ae)){var xe=d.combine(K.plot_bgcolor,K.paper_bgcolor);if(ae){var te=G.hLinePoint,ie,fe;le=te&&te.xa,ge=te&&te.ya;var ye=ge.spikesnap;ye==="cursor"?(ie=j.pointerX,fe=j.pointerY):(ie=le._offset+te.x,fe=ge._offset+te.y);var ce=S.readability(te.color,xe)<1.5?d.contrast(xe):te.color,ue=ge.spikemode,Me=ge.spikethickness,Pe=ge.spikecolor||ce,Be=M.getPxPosition(k,ge),De,je;if(ue.indexOf("toaxis")!==-1||ue.indexOf("across")!==-1){if(ue.indexOf("toaxis")!==-1&&(De=Be,je=ie),ue.indexOf("across")!==-1){var _e=ge._counterDomainMin,Qe=ge._counterDomainMax;ge.anchor==="free"&&(_e=Math.min(_e,ge.position),Qe=Math.max(Qe,ge.position)),De=X.l+_e*X.w,je=X.l+Qe*X.w}J.insert("line",":first-child").attr({x1:De,x2:je,y1:fe,y2:fe,"stroke-width":Me,stroke:Pe,"stroke-dasharray":m.dashStyle(ge.spikedash,Me)}).classed("spikeline",!0).classed("crisp",!0),J.insert("line",":first-child").attr({x1:De,x2:je,y1:fe,y2:fe,"stroke-width":Me+2,stroke:xe}).classed("spikeline",!0).classed("crisp",!0)}ue.indexOf("marker")!==-1&&J.insert("circle",":first-child").attr({cx:Be+(ge.side!=="right"?Me:-Me),cy:fe,r:Me,fill:Pe}).classed("spikeline",!0)}if(se){var Ue=G.vLinePoint,nt,Ge;le=Ue&&Ue.xa,ge=Ue&&Ue.ya;var Ye=le.spikesnap;Ye==="cursor"?(nt=j.pointerX,Ge=j.pointerY):(nt=le._offset+Ue.x,Ge=ge._offset+Ue.y);var ot=S.readability(Ue.color,xe)<1.5?d.contrast(xe):Ue.color,rt=le.spikemode,Ke=le.spikethickness,he=le.spikecolor||ot,He=M.getPxPosition(k,le),Ie,Fe;if(rt.indexOf("toaxis")!==-1||rt.indexOf("across")!==-1){if(rt.indexOf("toaxis")!==-1&&(Ie=He,Fe=Ge),rt.indexOf("across")!==-1){var We=le._counterDomainMin,_=le._counterDomainMax;le.anchor==="free"&&(We=Math.min(We,le.position),_=Math.max(_,le.position)),Ie=X.t+(1-_)*X.h,Fe=X.t+(1-We)*X.h}J.insert("line",":first-child").attr({x1:nt,x2:nt,y1:Ie,y2:Fe,"stroke-width":Ke,stroke:he,"stroke-dasharray":m.dashStyle(le.spikedash,Ke)}).classed("spikeline",!0).classed("crisp",!0),J.insert("line",":first-child").attr({x1:nt,x2:nt,y1:Ie,y2:Fe,"stroke-width":Ke+2,stroke:xe}).classed("spikeline",!0).classed("crisp",!0)}rt.indexOf("marker")!==-1&&J.insert("circle",":first-child").attr({cx:nt,cy:He-(le.side!=="top"?Ke:-Ke),r:Ke,fill:he}).classed("spikeline",!0)}}}function Y(k,G,W){if(!W||W.length!==k._hoverdata.length)return!0;for(var J=W.length-1;J>=0;J--){var K=W[J],X=k._hoverdata[J];if(K.curveNumber!==X.curveNumber||String(K.pointNumber)!==String(X.pointNumber)||String(K.pointNumbers)!==String(X.pointNumbers))return!0}return!1}function ee(k,G){return!G||G.vLinePoint!==k._spikepoints.vLinePoint||G.hLinePoint!==k._spikepoints.hLinePoint}function ne(k,G){return r.plainText(k||"",{len:G,allowedTags:["br","sub","sup","b","i","em"]})}function me(k,G){for(var W=G.charAt(0),J=[],K=[],X=[],j=0;j{"use strict";var h=e("0Ft3SWJB"),v=e("/oRevOrA"),S=e("ErV1Ibqz").isUnifiedHover;oe.exports=function(n,c,f,r){r=r||{};var o=c.legend;function m(d){r.font[d]||(r.font[d]=o?c.legend.font[d]:c.font[d])}c&&S(c.hovermode)&&(r.font||(r.font={}),m("size"),m("family"),m("color"),o?(r.bgcolor||(r.bgcolor=v.combine(c.legend.bgcolor,c.paper_bgcolor)),r.bordercolor||(r.bordercolor=c.legend.bordercolor)):r.bgcolor||(r.bgcolor=c.paper_bgcolor)),f("hoverlabel.bgcolor",r.bgcolor),f("hoverlabel.bordercolor",r.bordercolor),f("hoverlabel.namelength",r.namelength),h.coerceFont(f,"hoverlabel.font",r.font),f("hoverlabel.align",r.align)}},"4FumUcA6":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("v1szbzNU");oe.exports=function(i,n){function c(f,r){return n[f]!==void 0?n[f]:h.coerce(i,n,v,f,r)}return c("clickmode"),c("hovermode")}},"9fFWTih4":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("0Ft3SWJB"),S=e("WFvnZ06c"),i=e("ErV1Ibqz"),n=e("v1szbzNU"),c=e("E0Erayg3");oe.exports={moduleType:"component",name:"fx",constants:e("HoF8EwuB"),schema:{layout:n},attributes:e("CPF8cYDb"),layoutAttributes:n,supplyLayoutGlobalDefaults:e("hjRUfPJm"),supplyDefaults:e("ATH0WTii"),supplyLayoutDefaults:e("jPmVXeCo"),calc:e("iimf+fXS"),getDistanceFunction:i.getDistanceFunction,getClosest:i.getClosest,inbox:i.inbox,quadrature:i.quadrature,appendArrayPointValue:i.appendArrayPointValue,castHoverOption:r,castHoverinfo:o,hover:c.hover,unhover:S.unhover,loneHover:c.loneHover,loneUnhover:f,click:e("PEbxUAGz")};function f(m){var d=v.isD3Selection(m)?m:h.select(m);d.selectAll("g.hovertext").remove(),d.selectAll(".spikeline").remove()}function r(m,d,A){return v.castOption(m,d,"hoverlabel."+A)}function o(m,d,A){function M(b){return v.coerceHoverinfo({hoverinfo:b},{_module:m._module},d)}return v.castOption(m,A,"hoverinfo",M)}},jPmVXeCo:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("v1szbzNU"),S=e("4FumUcA6"),i=e("FW/+9MgV");oe.exports=function(c,f){function r(b,T){return h.coerce(c,f,v,b,T)}var o=S(c,f);o&&(r("hoverdistance"),r("spikedistance"));var m=r("dragmode");m==="select"&&r("selectdirection");var d=f._has("mapbox"),A=f._has("geo"),M=f._basePlotModules.length;f.dragmode==="zoom"&&((d||A)&&M===1||d&&A&&M===2)&&(f.dragmode="pan"),i(c,f,r),h.coerceFont(r,"hoverlabel.grouptitlefont",f.hoverlabel.font)}},hjRUfPJm:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("FW/+9MgV"),S=e("v1szbzNU");oe.exports=function(n,c){function f(r,o){return h.coerce(n,c,S,r,o)}v(n,c,f)}},D93E4Uqr:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("oaJ8xVPa").counter,S=e("qxp2i9QF").Y,i=e("Vq8+Ip3e").idRegex,n=e("A5P9b9BX"),c={rows:{valType:"integer",min:1,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",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,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:[v("xy").toString(),""],editType:"plot"},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"},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"},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",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,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,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:S({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",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",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 f(A,M,b){var T=M[b+"axes"],u=Object.keys((A._splomAxes||{})[b]||{});if(Array.isArray(T))return T;if(u.length)return u}function r(A,M){var b=A.grid||{},T=f(M,b,"x"),u=f(M,b,"y");if(!A.grid&&!T&&!u)return;var p=Array.isArray(b.subplots)&&Array.isArray(b.subplots[0]),t=Array.isArray(T),l=Array.isArray(u),a=t&&T!==b.xaxes&&l&&u!==b.yaxes,x,y;p?(x=b.subplots.length,y=b.subplots[0].length):(l&&(x=u.length),t&&(y=T.length));var E=n.newContainer(M,"grid");function L(D,z){return h.coerce(b,E,c,D,z)}var F=L("rows",x),B=L("columns",y);if(!(F*B>1)){delete M.grid;return}if(!p&&!t&&!l){var s=L("pattern")==="independent";s&&(p=!0)}E._hasSubplotGrid=p;var w=L("roworder"),g=w==="top to bottom",I=p?.2:.1,N=p?.3:.1,Q,P;a&&M._splomGridDflt&&(Q=M._splomGridDflt.xside,P=M._splomGridDflt.yside),E._domains={x:o("x",L,I,Q,B),y:o("y",L,N,P,F,g)}}function o(A,M,b,T,u,p){var t=M(A+"gap",b),l=M("domain."+A);M(A+"side",T);for(var a=new Array(u),x=l[0],y=(l[1]-x)/(u-t),E=y*(1-t),L=0;L{"use strict";var h=e("Vq8+Ip3e"),v=e("A5P9b9BX").templatedArray,S=e("SWM1uxTh");oe.exports=v("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw",description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",editType:"arraydraw",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width.","When `xref` ends with ` domain`, units are sized relative","to the axis width."].join(" ")},sizey:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height.","When `yref` ends with ` domain`, units are sized relative","to the axis height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the image."},x:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",h.idRegex.x.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's x coordinate axis.",S.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",h.idRegex.y.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's y coordinate axis.",S.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"})},LdzhoiNW:(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("wJP3FIsq");oe.exports=function(i,n,c,f){n=n||{};var r=c==="log"&&n.type==="linear",o=c==="linear"&&n.type==="log";if(r||o){for(var m=i._fullLayout.images,d=n._id.charAt(0),A,M,b=0;b{"use strict";var h=e("0Ft3SWJB"),v=e("4JfnfFRI"),S=e("JdrF9yG0"),i=e("a6BPHvoN"),n="images";oe.exports=function(r,o){var m={name:n,handleItemDefaults:c};S(r,o,m)};function c(f,r,o){function m(l,a){return h.coerce(f,r,i,l,a)}var d=m("source"),A=m("visible",!!d);if(!A)return r;m("layer"),m("xanchor"),m("yanchor"),m("sizex"),m("sizey"),m("sizing"),m("opacity");for(var M={_fullLayout:o},b=["x","y"],T=0;T<2;T++){var u=b[T],p=v.coerceRef(f,r,M,u,"paper",void 0);if(p!=="paper"){var t=v.getFromId(M,p);t._imgIndices.push(r._index)}v.coercePosition(r,M,m,p,u,0)}return r}},YBg4gvmH:(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("+ELfTWmT"),S=e("4JfnfFRI"),i=e("nXHY852p"),n=e("nfwe4Djo");oe.exports=function(f){var r=f._fullLayout,o=[],m={},d=[],A,M;for(M=0;M{"use strict";oe.exports={moduleType:"component",name:"images",layoutAttributes:e("a6BPHvoN"),supplyLayoutDefaults:e("723cH3qU"),includeBasePlot:e("lGy/M/Cj")("images"),draw:e("YBg4gvmH"),convertCoords:e("LdzhoiNW")}},"r3XL/zg0":(oe,q,e)=>{"use strict";var h=e("lf8+9Xc7"),v=e("Khpmx9F5");oe.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend",description:["Determines whether or not this legend is visible."].join(" ")},bgcolor:{valType:"color",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:v.defaultLine,editType:"legend",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend",description:"Sets the width (in px) of the border enclosing the legend."},font:h({editType:"legend",description:"Sets the font used to text the legend items."}),grouptitlefont:h({editType:"legend",description:["Sets the font for group titles in legend.","Defaults to `legend.font` with its size increased about 10%."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},entrywidth:{valType:"number",min:0,editType:"legend",description:["Sets the width (in px or fraction) of the legend.","Use 0 to size the entry based on the text width,","when `entrywidthmode` is set to *pixels*."].join(" ")},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend",description:"Determines what entrywidth means."},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend",description:["Determines if the legend items symbols scale with their corresponding *trace* attributes","or remain *constant* independent of the symbol size on the graph."].join(" ")},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend",description:"Sets the width (in px) of the legend item symbols (the part other than the title.text)."},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend",description:["Determines the behavior on legend item click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item click interactions."].join(" ")},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend",description:["Determines the behavior on legend item double-click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item double-click interactions."].join(" ")},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend",description:["Determines the behavior on legend group item click.","*toggleitem* toggles the visibility of the individual item clicked on the graph.","*togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph."].join(" ")},x:{valType:"number",editType:"legend",description:["Sets the x position with respect to `xref` (in normalized coordinates) of the legend.","When `xref` is *paper*, defaults to *1.02* for vertical legends and","defaults to *0* for horizontal legends.","When `xref` is *container*, defaults to *1* for vertical legends and","defaults to *0* for horizontal legends.","Must be between *0* and *1* if `xref` is *container*.","and between *-2* and *3* if `xref` is *paper*."].join(" ")},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend.","Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3,","anchors legends to the left for `x` values less than or equal to 1/3 and","anchors legends with respect to their center otherwise."].join(" ")},y:{valType:"number",editType:"legend",description:["Sets the y position with respect to `yref` (in normalized coordinates) of the legend.","When `yref` is *paper*, defaults to *1* for vertical legends,","defaults to *-0.1* for horizontal legends on graphs w/o range sliders and","defaults to *1.1* for horizontal legends on graph with one or multiple range sliders.","When `yref` is *container*, defaults to *1*.","Must be between *0* and *1* if `yref` is *container*","and between *-2* and *3* if `yref` is *paper*."].join(" ")},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend.","Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3,","anchors legends to at their top for `y` values greater than or equal to 2/3 and","anchors legends with respect to their middle otherwise."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of legend-driven changes in trace and pie label","visibility. Defaults to `layout.uirevision`."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend",description:["Sets the vertical alignment of the symbols with respect to their associated text."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"legend",description:["Sets the title of the legend."].join(" ")},font:h({editType:"legend",description:["Sets this legend's title font.","Defaults to `legend.font` with its size increased about 20%."].join(" ")}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend",description:["Determines the location of legend's title","with respect to the legend items.","Defaulted to *top* with `orientation` is *h*.","Defaulted to *left* with `orientation` is *v*.","The *top left* options could be used to expand","top center and top right are for horizontal alignment","legend area in both x and y sides."].join(" ")},editType:"legend"},editType:"legend"}},MQxNBUFm:oe=>{"use strict";oe.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},"sAx/oUxG":(oe,q,e)=>{"use strict";var h=e("R5um7Wku"),v=e("0Ft3SWJB"),S=e("A5P9b9BX"),i=e("FDg8C/At"),n=e("r3XL/zg0"),c=e("JEbHibKP"),f=e("YnvAs8Q/");function r(o,m,d,A){var M=m[o]||{},b=S.newContainer(d,o);function T(me,$){return v.coerce(M,b,n,me,$)}var u=v.coerceFont(T,"font",d.font);T("bgcolor",d.paper_bgcolor),T("bordercolor");var p=T("visible");if(p){for(var t,l=function(me,$){var re=t._input,C=t;return v.coerce(re,C,i,me,$)},a=d.font||{},x=v.coerceFont(T,"grouptitlefont",v.extendFlat({},a,{size:Math.round(a.size*1.1)})),y=0,E=!1,L="normal",F=(d.shapes||[]).filter(function(me){return me.showlegend}),B=A.concat(F).filter(function(me){return o===(me.legend||"legend")}),s=0;s(o==="legend"?1:0));if(g===!1&&(d[o]=void 0),!(g===!1&&!M.uirevision)&&(T("uirevision",d.uirevision),g!==!1)){T("borderwidth");var I=T("orientation"),N=T("yref"),Q=T("xref"),P=I==="h",D=N==="paper",z=Q==="paper",H,O,U,Y="left";P?(H=0,h.getComponentMethod("rangeslider","isVisible")(m.xaxis)?D?(O=1.1,U="bottom"):(O=1,U="top"):D?(O=-.1,U="top"):(O=0,U="bottom")):(O=1,U="auto",z?H=1.02:(H=1,Y="right")),v.coerce(M,b,{x:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:H}},"x"),v.coerce(M,b,{y:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:O}},"y"),T("traceorder",L),f.isGrouped(d[o])&&T("tracegroupgap"),T("entrywidth"),T("entrywidthmode"),T("itemsizing"),T("itemwidth"),T("itemclick"),T("itemdoubleclick"),T("groupclick"),T("xanchor",Y),T("yanchor",U),T("valign"),v.noneOrAll(M,b,["x","y"]);var ee=T("title.text");if(ee){T("title.side",P?"left":"top");var ne=v.extendFlat({},u,{size:v.bigFont(u.size)});v.coerceFont(T,"title.font",ne)}}}}oe.exports=function(m,d,A){var M,b=A.slice(),T=d.shapes;if(T)for(M=0;M{"use strict";var h=e("Lou4tdh8"),v=e("0Ft3SWJB"),S=e("8MlMO9wt"),i=e("R5um7Wku"),n=e("6NEikfh9"),c=e("WFvnZ06c"),f=e("+ELfTWmT"),r=e("/oRevOrA"),o=e("7k8rh0sJ"),m=e("PjPVug0c"),d=e("MQxNBUFm"),A=e("kca9bvt+"),M=A.LINE_SPACING,b=A.FROM_TL,T=A.FROM_BR,u=e("le1xiBFF"),p=e("3yii3GsE"),t=e("YnvAs8Q/"),l=1,a=/^legend[0-9]*$/;oe.exports=function(O,U){if(U)y(O,U);else{var Y=O._fullLayout,ee=Y._legends,ne=Y._infolayer.selectAll('[class^="legend"]');ne.each(function(){var C=h.select(this),R=C.attr("class"),k=R.split(" ")[0];k.match(a)&&ee.indexOf(k)===-1&&C.remove()});for(var me=0;me1)}var J=Y.hiddenlabels||[];if(!$&&(!Y.showlegend||!re.length))return me.selectAll("."+ee).remove(),Y._topdefs.select("#"+ne).remove(),S.autoMargin(H,ee);var K=v.ensureSingle(me,"g",ee,function(ie){$||ie.attr("pointer-events","all")}),X=v.ensureSingleById(Y._topdefs,"clipPath",ne,function(ie){ie.append("rect")}),j=v.ensureSingle(K,"rect","bg",function(ie){ie.attr("shape-rendering","crispEdges")});j.call(r.stroke,U.bordercolor).call(r.fill,U.bgcolor).style("stroke-width",U.borderwidth+"px");var ae=v.ensureSingle(K,"g","scrollbox"),se=U.title;U._titleWidth=0,U._titleHeight=0;var le;se.text?(le=v.ensureSingle(ae,"text",ee+"titletext"),le.attr("text-anchor","start").call(f.font,se.font).text(se.text),w(le,ae,H,U,l)):ae.selectAll("."+ee+"titletext").remove();var ge=v.ensureSingle(K,"rect","scrollbar",function(ie){ie.attr(d.scrollBarEnterAttrs).call(r.fill,d.scrollBarColor)}),xe=ae.selectAll("g.groups").data(re);xe.enter().append("g").attr("class","groups"),xe.exit().remove();var te=xe.selectAll("g.traces").data(v.identity);te.enter().append("g").attr("class","traces"),te.exit().remove(),te.style("opacity",function(ie){var fe=ie[0].trace;return i.traceIs(fe,"pie-like")?J.indexOf(ie[0].label)!==-1?.5:1:fe.visible==="legendonly"?.5:1}).each(function(){h.select(this).call(F,H,U)}).call(p,H,U).each(function(){$||h.select(this).call(s,H,ee)}),v.syncOrAsync([S.previousPromises,function(){return N(H,xe,te,U)},function(){var ie=Y._size,fe=U.borderwidth,ye=U.xref==="paper",ce=U.yref==="paper";if(se.text&&x(le,U,fe),!$){var ue,Me;ye?ue=ie.l+ie.w*U.x-b[P(U)]*U._width:ue=Y.width*U.x-b[P(U)]*U._width,ce?Me=ie.t+ie.h*(1-U.y)-b[D(U)]*U._effHeight:Me=Y.height*(1-U.y)-b[D(U)]*U._effHeight;var Pe=Q(H,ee,ue,Me);if(Pe)return;if(Y.margin.autoexpand){var Be=ue,De=Me;ue=ye?v.constrain(ue,0,Y.width-U._width):Be,Me=ce?v.constrain(Me,0,Y.height-U._effHeight):De,ue!==Be&&v.log("Constrain "+ee+".x to make legend fit inside graph"),Me!==De&&v.log("Constrain "+ee+".y to make legend fit inside graph")}f.setTranslate(K,ue,Me)}if(ge.on(".drag",null),K.on("wheel",null),$||U._height<=U._maxHeight||H._context.staticPlot){var je=U._effHeight;$&&(je=U._height),j.attr({width:U._width-fe,height:je-fe,x:fe/2,y:fe/2}),f.setTranslate(ae,0,0),X.select("rect").attr({width:U._width-2*fe,height:je-2*fe,x:fe,y:fe}),f.setClipUrl(ae,ne,H),f.setRect(ge,0,0,0,0),delete U._scrollY}else{var _e=Math.max(d.scrollBarMinHeight,U._effHeight*U._effHeight/U._height),Qe=U._effHeight-_e-2*d.scrollBarMargin,Ue=U._height-U._effHeight,nt=Qe/Ue,Ge=Math.min(U._scrollY||0,Ue);j.attr({width:U._width-2*fe+d.scrollBarWidth+d.scrollBarMargin,height:U._effHeight-fe,x:fe/2,y:fe/2}),X.select("rect").attr({width:U._width-2*fe+d.scrollBarWidth+d.scrollBarMargin,height:U._effHeight-2*fe,x:fe,y:fe+Ge}),f.setClipUrl(ae,ne,H),Fe(Ge,_e,nt),K.on("wheel",function(){Ge=v.constrain(U._scrollY+h.event.deltaY/Qe*Ue,0,Ue),Fe(Ge,_e,nt),Ge!==0&&Ge!==Ue&&h.event.preventDefault()});var Ye,ot,rt,Ke=function(pe,be,we){var Je=(we-be)/nt+pe;return v.constrain(Je,0,Ue)},he=function(pe,be,we){var Je=(be-we)/nt+pe;return v.constrain(Je,0,Ue)},He=h.behavior.drag().on("dragstart",function(){var pe=h.event.sourceEvent;pe.type==="touchstart"?Ye=pe.changedTouches[0].clientY:Ye=pe.clientY,rt=Ge}).on("drag",function(){var pe=h.event.sourceEvent;pe.buttons===2||pe.ctrlKey||(pe.type==="touchmove"?ot=pe.changedTouches[0].clientY:ot=pe.clientY,Ge=Ke(rt,Ye,ot),Fe(Ge,_e,nt))});ge.call(He);var Ie=h.behavior.drag().on("dragstart",function(){var pe=h.event.sourceEvent;pe.type==="touchstart"&&(Ye=pe.changedTouches[0].clientY,rt=Ge)}).on("drag",function(){var pe=h.event.sourceEvent;pe.type==="touchmove"&&(ot=pe.changedTouches[0].clientY,Ge=he(rt,Ye,ot),Fe(Ge,_e,nt))});ae.call(Ie)}function Fe(pe,be,we){U._scrollY=H._fullLayout[ee]._scrollY=pe,f.setTranslate(ae,0,-pe),f.setRect(ge,U._width,d.scrollBarMargin+pe*we,d.scrollBarWidth,be),X.select("rect").attr("y",fe+pe)}if(H._context.edits.legendPosition){var We,_,ve,de;K.classed("cursor-move",!0),c.init({element:K.node(),gd:H,prepFn:function(){var pe=f.getTranslate(K);ve=pe.x,de=pe.y},moveFn:function(pe,be){var we=ve+pe,Je=de+be;f.setTranslate(K,we,Je),We=c.align(we,U._width,ie.l,ie.l+ie.w,U.xanchor),_=c.align(Je+U._height,-U._height,ie.t+ie.h,ie.t,U.yanchor)},doneFn:function(){if(We!==void 0&&_!==void 0){var pe={};pe[ee+".x"]=We,pe[ee+".y"]=_,i.call("_guiRelayout",H,pe)}},clickFn:function(pe,be){var we=me.selectAll("g.traces").filter(function(){var Je=this.getBoundingClientRect();return be.clientX>=Je.left&&be.clientX<=Je.right&&be.clientY>=Je.top&&be.clientY<=Je.bottom});we.size()>0&&L(H,K,we,pe,be)}})}}],H)}}function E(H,O,U){var Y=H[0],ee=Y.width,ne=O.entrywidthmode,me=Y.trace.legendwidth||O.entrywidth;return ne==="fraction"?O._maxWidth*me:U+(me||ee)}function L(H,O,U,Y,ee){var ne=U.data()[0][0].trace,me={event:ee,node:U.node(),curveNumber:ne.index,expandedIndex:ne._expandedIndex,data:H.data,layout:H.layout,frames:H._transitionData._frames,config:H._context,fullData:H._fullData,fullLayout:H._fullLayout};ne._group&&(me.group=ne._group),i.traceIs(ne,"pie-like")&&(me.label=U.datum()[0].label);var $=n.triggerHandler(H,"plotly_legendclick",me);if(Y===1){if($===!1)return;O._clickTimeout=setTimeout(function(){H._fullLayout&&m(U,H,Y)},H._context.doubleClickDelay)}else if(Y===2){O._clickTimeout&&clearTimeout(O._clickTimeout),H._legendMouseDownTime=0;var re=n.triggerHandler(H,"plotly_legenddoubleclick",me);re!==!1&&$!==!1&&m(U,H,Y)}}function F(H,O,U){var Y=z(U),ee=H.data()[0][0],ne=ee.trace,me=i.traceIs(ne,"pie-like"),$=!U._inHover&&O._context.edits.legendText&&!me,re=U._maxNameLength,C,R;ee.groupTitle?(C=ee.groupTitle.text,R=ee.groupTitle.font):(R=U.font,U.entries?C=ee.text:(C=me?ee.label:ne.name,ne._meta&&(C=v.templateString(C,ne._meta))));var k=v.ensureSingle(H,"text",Y+"text");k.attr("text-anchor","start").call(f.font,R).text($?B(C,re):C);var G=U.itemwidth+d.itemGap*2;o.positionText(k,G,0),$?k.call(o.makeEditable,{gd:O,text:C}).call(w,H,O,U).on("edit",function(W){this.text(B(W,re)).call(w,H,O,U);var J=ee.trace._fullInput||{},K={};if(i.hasTransform(J,"groupby")){var X=i.getTransformIndices(J,"groupby"),j=X[X.length-1],ae=v.keyedContainer(J,"transforms["+j+"].styles","target","value.name");ae.set(ee.trace._group,W),K=ae.constructUpdate()}else K.name=W;return J._isShape?i.call("_guiRelayout",O,"shapes["+ne.index+"].name",K.name):i.call("_guiRestyle",O,K,ne.index)}):w(k,H,O,U)}function B(H,O){var U=Math.max(4,O);if(H&&H.trim().length>=U/2)return H;H=H||"";for(var Y=U-H.length;Y>0;Y--)H+=" ";return H}function s(H,O,U){var Y=O._context.doubleClickDelay,ee,ne=1,me=v.ensureSingle(H,"rect",U+"toggle",function($){O._context.staticPlot||$.style("cursor","pointer").attr("pointer-events","all"),$.call(r.fill,"rgba(0,0,0,0)")});O._context.staticPlot||(me.on("mousedown",function(){ee=new Date().getTime(),ee-O._legendMouseDownTimeY&&(ne=Math.max(ne-1,1)),L(O,$,H,ne,h.event)}}))}function w(H,O,U,Y,ee){Y._inHover&&H.attr("data-notex",!0),o.convertToTspans(H,U,function(){g(O,U,Y,ee)})}function g(H,O,U,Y){var ee=H.data()[0][0];if(!U._inHover&&ee&&!ee.trace.showlegend){H.remove();return}var ne=H.select("g[class*=math-group]"),me=ne.node(),$=z(U);U||(U=O._fullLayout[$]);var re=U.borderwidth,C;Y===l?C=U.title.font:ee.groupTitle?C=ee.groupTitle.font:C=U.font;var R=C.size*M,k,G;if(me){var W=f.bBox(me);k=W.height,G=W.width,Y===l?f.setTranslate(ne,re,re+k*.75):f.setTranslate(ne,0,k*.25)}else{var J="."+$+(Y===l?"title":"")+"text",K=H.select(J),X=o.lineCount(K),j=K.node();if(k=R*X,G=j?f.bBox(j).width:0,Y===l)U.title.side==="left"&&(G+=d.itemGap*2),o.positionText(K,re+d.titlePad,re+R);else{var ae=d.itemGap*2+U.itemwidth;ee.groupTitle&&(ae=d.itemGap,G-=U.itemwidth),o.positionText(K,ae,-R*((X-1)/2-.3))}}Y===l?(U._titleWidth=G,U._titleHeight=k):(ee.lineHeight=R,ee.height=Math.max(k,16)+3,ee.width=G)}function I(H){var O=0,U=0,Y=H.title.side;return Y&&(Y.indexOf("left")!==-1&&(O=H._titleWidth),Y.indexOf("top")!==-1&&(U=H._titleHeight)),[O,U]}function N(H,O,U,Y){var ee=H._fullLayout,ne=z(Y);Y||(Y=ee[ne]);var me=ee._size,$=t.isVertical(Y),re=t.isGrouped(Y),C=Y.entrywidthmode==="fraction",R=Y.borderwidth,k=2*R,G=d.itemGap,W=Y.itemwidth+G*2,J=2*(R+G),K=D(Y),X=Y.y<0||Y.y===0&&K==="top",j=Y.y>1||Y.y===1&&K==="bottom",ae=Y.tracegroupgap,se={};Y._maxHeight=Math.max(X||j?ee.height/2:me.h,30);var le=0;Y._width=0,Y._height=0;var ge=I(Y);if($)U.each(function(rt){var Ke=rt[0].height;f.setTranslate(this,R+ge[0],R+ge[1]+Y._height+Ke/2+G),Y._height+=Ke,Y._width=Math.max(Y._width,rt[0].width)}),le=W+Y._width,Y._width+=G+W+k,Y._height+=J,re&&(O.each(function(rt,Ke){f.setTranslate(this,0,Ke*Y.tracegroupgap)}),Y._height+=(Y._lgroupsLength-1)*Y.tracegroupgap);else{var xe=P(Y),te=Y.x<0||Y.x===0&&xe==="right",ie=Y.x>1||Y.x===1&&xe==="left",fe=j||X,ye=ee.width/2;Y._maxWidth=Math.max(te?fe&&xe==="left"?me.l+me.w:ye:ie?fe&&xe==="right"?me.r+me.w:ye:me.w,2*W);var ce=0,ue=0;U.each(function(rt){var Ke=E(rt,Y,W);ce=Math.max(ce,Ke),ue+=Ke}),le=null;var Me=0;if(re){var Pe=0,Be=0,De=0;O.each(function(){var rt=0,Ke=0;h.select(this).selectAll("g.traces").each(function(He){var Ie=E(He,Y,W),Fe=He[0].height;f.setTranslate(this,ge[0],ge[1]+R+G+Fe/2+Ke),Ke+=Fe,rt=Math.max(rt,Ie),se[He[0].trace.legendgroup]=rt});var he=rt+G;Be>0&&he+R+Be>Y._maxWidth?(Me=Math.max(Me,Be),Be=0,De+=Pe+ae,Pe=Ke):Pe=Math.max(Pe,Ke),f.setTranslate(this,Be,De),Be+=he}),Y._width=Math.max(Me,Be)+R,Y._height=De+Pe+J}else{var je=U.size(),_e=ue+k+(je-1)*G=Y._maxWidth&&(Me=Math.max(Me,Ge),Ue=0,nt+=Qe,Y._height+=Qe,Qe=0),f.setTranslate(this,ge[0]+R+Ue,ge[1]+R+nt+Ke/2+G),Ge=Ue+he+G,Ue+=He,Qe=Math.max(Qe,Ke)}),_e?(Y._width=Ue+k,Y._height=Qe+J):(Y._width=Math.max(Me,Ge)+k,Y._height+=Qe+J)}}Y._width=Math.ceil(Math.max(Y._width+ge[0],Y._titleWidth+2*(R+d.titlePad))),Y._height=Math.ceil(Math.max(Y._height+ge[1],Y._titleHeight+2*(R+d.itemGap))),Y._effHeight=Math.min(Y._height,Y._maxHeight);var Ye=H._context.edits,ot=Ye.legendText||Ye.legendPosition;U.each(function(rt){var Ke=h.select(this).select("."+ne+"toggle"),he=rt[0].height,He=rt[0].trace.legendgroup,Ie=E(rt,Y,W);re&&He!==""&&(Ie=se[He]);var Fe=ot?W:le||Ie;!$&&!C&&(Fe+=G/2),f.setRect(Ke,0,-he/2,Fe,he)})}function Q(H,O,U,Y){var ee=H._fullLayout,ne=ee[O],me=P(ne),$=D(ne),re=ne.xref==="paper",C=ne.yref==="paper";H._fullLayout._reservedMargin[O]={};var R=ne.y<.5?"b":"t",k=ne.x<.5?"l":"r",G={r:ee.width-U,l:U+ne._width,b:ee.height-Y,t:Y+ne._effHeight};if(re&&C)return S.autoMargin(H,O,{x:ne.x,y:ne.y,l:ne._width*b[me],r:ne._width*T[me],b:ne._effHeight*T[$],t:ne._effHeight*b[$]});re?H._fullLayout._reservedMargin[O][R]=G[R]:C||ne.orientation==="v"?H._fullLayout._reservedMargin[O][k]=G[k]:H._fullLayout._reservedMargin[O][R]=G[R]}function P(H){return v.isRightAnchor(H)?"right":v.isCenterAnchor(H)?"center":"left"}function D(H){return v.isBottomAnchor(H)?"bottom":v.isMiddleAnchor(H)?"middle":"top"}function z(H){return H._id||"legend"}},le1xiBFF:(oe,q,e)=>{"use strict";var h=e("R5um7Wku"),v=e("YnvAs8Q/");oe.exports=function(i,n,c){var f=n._inHover,r=v.isGrouped(n),o=v.isReversed(n),m={},d=[],A=!1,M={},b=0,T=0,u,p;function t(H,O,U){if(n.visible!==!1&&!(c&&H!==n._id))if(O===""||!v.isGrouped(n)){var Y="~~i"+b;d.push(Y),m[Y]=[U],b++}else d.indexOf(O)===-1?(d.push(O),A=!0,m[O]=[U]):m[O].push(U)}for(u=0;ug&&(w=g)}B[u][0]._groupMinRank=w,B[u][0]._preGroupSort=u}var I=function(H,O){return H[0]._groupMinRank-O[0]._groupMinRank||H[0]._preGroupSort-O[0]._preGroupSort},N=function(H,O){return H.trace.legendrank-O.trace.legendrank||H._preSort-O._preSort};for(B.forEach(function(H,O){H[0]._preGroupSort=O}),B.sort(I),u=0;u{"use strict";var h=e("R5um7Wku"),v=e("0Ft3SWJB"),S=v.pushUnique,i=!0;oe.exports=function(c,f,r){var o=f._fullLayout;if(f._dragged||f._editing)return;var m=o.legend.itemclick,d=o.legend.itemdoubleclick,A=o.legend.groupclick;r===1&&m==="toggle"&&d==="toggleothers"&&i&&f.data&&f._context.showTips&&v.notifier(v._(f,"Double-click on legend to isolate one trace"),"long"),i=!1;var M;if(r===1?M=m:r===2&&(M=d),!M)return;var b=A==="togglegroup",T=o.hiddenlabels?o.hiddenlabels.slice():[],u=c.data()[0][0];if(u.groupTitle&&u.noClick)return;var p=f._fullData,t=(o.shapes||[]).filter(function(ye){return ye.showlegend}),l=p.concat(t),a=u.trace;a._isShape&&(a=a._fullInput);var x=a.legendgroup,y,E,L,F,B,s,w={},g=[],I=[],N=[];function Q(ye,ce){var ue=g.indexOf(ye),Me=w.visible;return Me||(Me=w.visible=[]),g.indexOf(ye)===-1&&(g.push(ye),ue=g.length-1),Me[ue]=ce,ue}var P=(o.shapes||[]).map(function(ye){return ye._input}),D=!1;function z(ye,ce){P[ye].visible=ce,D=!0}function H(ye,ce){if(!(u.groupTitle&&!b)){var ue=ye._fullInput||ye,Me=ue._isShape,Pe=ue.index;if(Pe===void 0&&(Pe=ue._index),h.hasTransform(ue,"groupby")){var Be=I[Pe];if(!Be){var De=h.getTransformIndices(ue,"groupby"),je=De[De.length-1];Be=v.keyedContainer(ue,"transforms["+je+"].styles","target","value.visible"),I[Pe]=Be}var _e=Be.get(ye._group);_e===void 0&&(_e=!0),_e!==!1&&Be.set(ye._group,ce),N[Pe]=Q(Pe,ue.visible!==!1)}else{var Qe=ue.visible===!1?!1:ce;Me?z(Pe,Qe):Q(Pe,Qe)}}}var O=a.legend,U=a._fullInput,Y=U&&U._isShape;if(!Y&&h.traceIs(a,"pie-like")){var ee=u.label,ne=T.indexOf(ee);if(M==="toggle")ne===-1?T.push(ee):T.splice(ne,1);else if(M==="toggleothers"){var me=ne!==-1,$=[];for(y=0;y{"use strict";q.isGrouped=function(h){return(h.traceorder||"").indexOf("grouped")!==-1},q.isVertical=function(h){return h.orientation!=="h"},q.isReversed=function(h){return(h.traceorder||"").indexOf("reversed")!==-1}},RnBYM1RH:(oe,q,e)=>{"use strict";oe.exports={moduleType:"component",name:"legend",layoutAttributes:e("r3XL/zg0"),supplyLayoutDefaults:e("sAx/oUxG"),draw:e("2Lvd5/R9"),style:e("3yii3GsE")}},"3yii3GsE":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("R5um7Wku"),S=e("0Ft3SWJB"),i=S.strTranslate,n=e("+ELfTWmT"),c=e("/oRevOrA"),f=e("s48LrSF+").extractOpts,r=e("FAQM5QER"),o=e("4R47EHYh"),m=e("cscO2DHv").castOption,d=e("MQxNBUFm"),A=12,M=5,b=2,T=10,u=5;oe.exports=function(x,y,E){var L=y._fullLayout;E||(E=L.legend);var F=E.itemsizing==="constant",B=E.itemwidth,s=(B+d.itemGap*2)/2,w=i(s,0),g=function($,re,C,R){var k;if($+1)k=$;else if(re&&re.width>0)k=re.width;else return 0;return F?R:Math.min(k,C)};x.each(function($){var re=h.select(this),C=S.ensureSingle(re,"g","layers");C.style("opacity",$[0].trace.opacity);var R=E.valign,k=$[0].lineHeight,G=$[0].height;if(R==="middle"||!k||!G)C.attr("transform",null);else{var W={top:1,bottom:-1}[R],J=W*(.5*(k-G+3));C.attr("transform",i(0,J))}var K=C.selectAll("g.legendfill").data([$]);K.enter().append("g").classed("legendfill",!0);var X=C.selectAll("g.legendlines").data([$]);X.enter().append("g").classed("legendlines",!0);var j=C.selectAll("g.legendsymbols").data([$]);j.enter().append("g").classed("legendsymbols",!0),j.selectAll("g.legendpoints").data([$]).enter().append("g").classed("legendpoints",!0)}).each(me).each(Q).each(D).each(P).each(H).each(ee).each(Y).each(I).each(N).each(O).each(U);function I($){var re=t($),C=re.showFill,R=re.showLine,k=re.showGradientLine,G=re.showGradientFill,W=re.anyFill,J=re.anyLine,K=$[0],X=K.trace,j,ae,se=f(X),le=se.colorscale,ge=se.reversescale,xe=function(Me){if(Me.size())if(C)n.fillGroupStyle(Me,y);else{var Pe="legendfill-"+X.uid;n.gradient(Me,y,Pe,p(ge),le,"fill")}},te=function(Me){if(Me.size()){var Pe="legendline-"+X.uid;n.lineGroupStyle(Me),n.gradient(Me,y,Pe,p(ge),le,"stroke")}},ie=r.hasMarkers(X)||!W?"M5,0":J?"M5,-2":"M5,-3",fe=h.select(this),ye=fe.select(".legendfill").selectAll("path").data(C||G?[$]:[]);if(ye.enter().append("path").classed("js-fill",!0),ye.exit().remove(),ye.attr("d",ie+"h"+B+"v6h-"+B+"z").call(xe),R||k){var ce=g(void 0,X.line,T,M);ae=S.minExtend(X,{line:{width:ce}}),j=[S.minExtend(K,{trace:ae})]}var ue=fe.select(".legendlines").selectAll("path").data(R||k?[j]:[]);ue.enter().append("path").classed("js-line",!0),ue.exit().remove(),ue.attr("d",ie+(k?"l"+B+",0.0001":"h"+B)).call(R?n.lineGroupStyle:te)}function N($){var re=t($),C=re.anyFill,R=re.anyLine,k=re.showLine,G=re.showMarker,W=$[0],J=W.trace,K=!G&&!R&&!C&&r.hasText(J),X,j;function ae(ye,ce,ue,Me){var Pe=S.nestedProperty(J,ye).get(),Be=S.isArrayOrTypedArray(Pe)&&ce?ce(Pe):Pe;if(F&&Be&&Me!==void 0&&(Be=Me),ue){if(Beue[1])return ue[1]}return Be}function se(ye){return W._distinct&&W.index&&ye[W.index]?ye[W.index]:ye[0]}if(G||K||k){var le={},ge={};if(G){le.mc=ae("marker.color",se),le.mx=ae("marker.symbol",se),le.mo=ae("marker.opacity",S.mean,[.2,1]),le.mlc=ae("marker.line.color",se),le.mlw=ae("marker.line.width",S.mean,[0,5],b),ge.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var xe=ae("marker.size",S.mean,[2,16],A);le.ms=xe,ge.marker.size=xe}k&&(ge.line={width:ae("line.width",se,[0,10],M)}),K&&(le.tx="Aa",le.tp=ae("textposition",se),le.ts=10,le.tc=ae("textfont.color",se),le.tf=ae("textfont.family",se)),X=[S.minExtend(W,le)],j=S.minExtend(J,ge),j.selectedpoints=null,j.texttemplate=null}var te=h.select(this).select("g.legendpoints"),ie=te.selectAll("path.scatterpts").data(G?X:[]);ie.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",w),ie.exit().remove(),ie.call(n.pointStyle,j,y),G&&(X[0].mrc=3);var fe=te.selectAll("g.pointtext").data(K?X:[]);fe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",w),fe.exit().remove(),fe.selectAll("text").call(n.textPointStyle,j,y)}function Q($){var re=$[0].trace,C=re.type==="waterfall";if($[0]._distinct&&C){var R=$[0].trace[$[0].dir].marker;return $[0].mc=R.color,$[0].mlw=R.line.width,$[0].mlc=R.line.color,z($,this,"waterfall")}var k=[];re.visible&&C&&(k=$[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 G=h.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(k);G.enter().append("path").classed("legendwaterfall",!0).attr("transform",w).style("stroke-miterlimit",1),G.exit().remove(),G.each(function(W){var J=h.select(this),K=re[W[0]].marker,X=g(void 0,K.line,u,b);J.attr("d",W[1]).style("stroke-width",X+"px").call(c.fill,K.color),X&&J.call(c.stroke,K.line.color)})}function P($){z($,this)}function D($){z($,this,"funnel")}function z($,re,C){var R=$[0].trace,k=R.marker||{},G=k.line||{},W=C?R.visible&&R.type===C:v.traceIs(R,"bar"),J=h.select(re).select("g.legendpoints").selectAll("path.legend"+C).data(W?[$]:[]);J.enter().append("path").classed("legend"+C,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",w),J.exit().remove(),J.each(function(K){var X=h.select(this),j=K[0],ae=g(j.mlw,k.line,u,b);X.style("stroke-width",ae+"px");var se=j.mcc;if(!E._inHover&&"mc"in j){var le=f(k),ge=le.mid;ge===void 0&&(ge=(le.max+le.min)/2),se=n.tryColorscale(k,"")(ge)}var xe=se||j.mc||k.color,te=k.pattern,ie=te&&n.getPatternAttr(te.shape,0,"");if(ie){var fe=n.getPatternAttr(te.bgcolor,0,null),ye=n.getPatternAttr(te.fgcolor,0,null),ce=te.fgopacity,ue=l(te.size,8,10),Me=l(te.solidity,.5,1),Pe="legend-"+R.uid;X.call(n.pattern,"legend",y,Pe,ie,ue,Me,se,te.fillmode,fe,ye,ce)}else X.call(c.fill,xe);ae&&c.stroke(X,j.mlc||G.color)})}function H($){var re=$[0].trace,C=h.select(this).select("g.legendpoints").selectAll("path.legendbox").data(re.visible&&v.traceIs(re,"box-violin")?[$]:[]);C.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",w),C.exit().remove(),C.each(function(){var R=h.select(this);if((re.boxpoints==="all"||re.points==="all")&&c.opacity(re.fillcolor)===0&&c.opacity((re.line||{}).color)===0){var k=S.minExtend(re,{marker:{size:F?A:S.constrain(re.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});C.call(n.pointStyle,k,y)}else{var G=g(void 0,re.line,u,b);R.style("stroke-width",G+"px").call(c.fill,re.fillcolor),G&&c.stroke(R,re.line.color)}})}function O($){var re=$[0].trace,C=h.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(re.visible&&re.type==="candlestick"?[$,$]:[]);C.enter().append("path").classed("legendcandle",!0).attr("d",function(R,k){return k?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",w).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(R,k){var G=h.select(this),W=re[k?"increasing":"decreasing"],J=g(void 0,W.line,u,b);G.style("stroke-width",J+"px").call(c.fill,W.fillcolor),J&&c.stroke(G,W.line.color)})}function U($){var re=$[0].trace,C=h.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(re.visible&&re.type==="ohlc"?[$,$]:[]);C.enter().append("path").classed("legendohlc",!0).attr("d",function(R,k){return k?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",w).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(R,k){var G=h.select(this),W=re[k?"increasing":"decreasing"],J=g(void 0,W.line,u,b);G.style("fill","none").call(n.dashLine,W.line.dash,J),J&&c.stroke(G,W.line.color)})}function Y($){ne($,this,"pie")}function ee($){ne($,this,"funnelarea")}function ne($,re,C){var R=$[0],k=R.trace,G=C?k.visible&&k.type===C:v.traceIs(k,C),W=h.select(re).select("g.legendpoints").selectAll("path.legend"+C).data(G?[$]:[]);if(W.enter().append("path").classed("legend"+C,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",w),W.exit().remove(),W.size()){var J=k.marker||{},K=g(m(J.line.width,R.pts),J.line,u,b),X="pieLike",j=S.minExtend(k,{marker:{line:{width:K}}},X),ae=S.minExtend(R,{trace:j},X);o(W,ae,j,y)}}function me($){var re=$[0].trace,C,R=[];if(re.visible)switch(re.type){case"histogram2d":case"heatmap":R=[["M-15,-2V4H15V-2Z"]],C=!0;break;case"choropleth":case"choroplethmapbox":R=[["M-6,-6V6H6V-6Z"]],C=!0;break;case"densitymapbox":R=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],C="radial";break;case"cone":R=[["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"]],C=!1;break;case"streamtube":R=[["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"]],C=!1;break;case"surface":R=[["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"]],C=!0;break;case"mesh3d":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],C=!1;break;case"volume":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],C=!0;break;case"isosurface":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],C=!1;break}var k=h.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(R);k.enter().append("path").classed("legend3dandfriends",!0).attr("transform",w).style("stroke-miterlimit",1),k.exit().remove(),k.each(function(G,W){var J=h.select(this),K=f(re),X=K.colorscale,j=K.reversescale,ae=function(xe){if(xe.size()){var te="legendfill-"+re.uid;n.gradient(xe,y,te,p(j,C==="radial"),X,"fill")}},se;if(X){if(!C){var ge=X.length;se=W===0?X[j?ge-1:0][1]:W===1?X[j?0:ge-1][1]:X[Math.floor((ge-1)/2)][1]}}else{var le=re.vertexcolor||re.facecolor||re.color;se=S.isArrayOrTypedArray(le)?le[W]||le[0]:le}J.attr("d",G[0]),se?J.call(c.fill,se):J.call(ae)})}};function p(a,x){var y=x?"radial":"horizontal";return y+(a?"":"reversed")}function t(a){var x=a[0].trace,y=x.contours,E=r.hasLines(x),L=r.hasMarkers(x),F=x.visible&&x.fill&&x.fill!=="none",B=!1,s=!1;if(y){var w=y.coloring;w==="lines"?B=!0:E=w==="none"||w==="heatmap"||y.showlines,y.type==="constraint"?F=y._operation!=="=":(w==="fill"||w==="heatmap")&&(s=!0)}return{showMarker:L,showLine:E,showFill:F,showGradientLine:B,showGradientFill:s,anyLine:E||B,anyFill:F||s}}function l(a,x,y){return a&&S.isArrayOrTypedArray(a)?x:a>y?y:a}},FE0A7nss:(oe,q,e)=>{"use strict";var h=e("MgwEFEmX");oe.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.","This may include *"+h.backButtons.join("*, *")+"*."].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.","This may include *"+h.foreButtons.join("*, *")+"*."].join(" ")}}},SO8H7QHz:(oe,q,e)=>{"use strict";var h=e("R5um7Wku"),v=e("8MlMO9wt"),S=e("nXHY852p"),i=e("lziZQePk"),n=e("SBrs2Paq").eraseActiveShape,c=e("0Ft3SWJB"),f=c._,r=oe.exports={};r.toImage={name:"toImage",title:function(a){var x=a._context.toImageButtonOptions||{},y=x.format||"png";return y==="png"?f(a,"Download plot as a png"):f(a,"Download plot")},icon:i.camera,click:function(a){var x=a._context.toImageButtonOptions,y={format:x.format||"png"};c.notifier(f(a,"Taking snapshot - this may take a few seconds"),"long"),y.format!=="svg"&&c.isIE()&&(c.notifier(f(a,"IE only supports svg. Changing format to svg."),"long"),y.format="svg"),["filename","width","height","scale"].forEach(function(E){E in x&&(y[E]=x[E])}),h.call("downloadImage",a,y).then(function(E){c.notifier(f(a,"Snapshot succeeded")+" - "+E,"long")}).catch(function(){c.notifier(f(a,"Sorry, there was a problem downloading your snapshot!"),"long")})}},r.sendDataToCloud={name:"sendDataToCloud",title:function(a){return f(a,"Edit in Chart Studio")},icon:i.disk,click:function(a){v.sendDataToCloud(a)}},r.editInChartStudio={name:"editInChartStudio",title:function(a){return f(a,"Edit in Chart Studio")},icon:i.pencil,click:function(a){v.sendDataToCloud(a)}},r.zoom2d={name:"zoom2d",_cat:"zoom",title:function(a){return f(a,"Zoom")},attr:"dragmode",val:"zoom",icon:i.zoombox,click:o},r.pan2d={name:"pan2d",_cat:"pan",title:function(a){return f(a,"Pan")},attr:"dragmode",val:"pan",icon:i.pan,click:o},r.select2d={name:"select2d",_cat:"select",title:function(a){return f(a,"Box Select")},attr:"dragmode",val:"select",icon:i.selectbox,click:o},r.lasso2d={name:"lasso2d",_cat:"lasso",title:function(a){return f(a,"Lasso Select")},attr:"dragmode",val:"lasso",icon:i.lasso,click:o},r.drawclosedpath={name:"drawclosedpath",title:function(a){return f(a,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:i.drawclosedpath,click:o},r.drawopenpath={name:"drawopenpath",title:function(a){return f(a,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:i.drawopenpath,click:o},r.drawline={name:"drawline",title:function(a){return f(a,"Draw line")},attr:"dragmode",val:"drawline",icon:i.drawline,click:o},r.drawrect={name:"drawrect",title:function(a){return f(a,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:i.drawrect,click:o},r.drawcircle={name:"drawcircle",title:function(a){return f(a,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:i.drawcircle,click:o},r.eraseshape={name:"eraseshape",title:function(a){return f(a,"Erase active shape")},icon:i.eraseshape,click:n},r.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(a){return f(a,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:o},r.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(a){return f(a,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:o},r.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(a){return f(a,"Autoscale")},attr:"zoom",val:"auto",icon:i.autoscale,click:o},r.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(a){return f(a,"Reset axes")},attr:"zoom",val:"reset",icon:i.home,click:o},r.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(a){return f(a,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:i.tooltip_basic,gravity:"ne",click:o},r.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(a){return f(a,"Compare data on hover")},attr:"hovermode",val:function(a){return a._fullLayout._isHoriz?"y":"x"},icon:i.tooltip_compare,gravity:"ne",click:o};function o(a,x){var y=x.currentTarget,E=y.getAttribute("data-attr"),L=y.getAttribute("data-val")||!0,F=a._fullLayout,B={},s=S.list(a,null,!0),w=F._cartesianSpikesEnabled,g,I;if(E==="zoom"){var N=L==="in"?.5:2,Q=(1+N)/2,P=(1-N)/2,D;for(I=0;I{"use strict";var h=e("SO8H7QHz"),v=Object.keys(h),S=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],i=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(S),n=[],c=function(f){if(i.indexOf(f._cat||f.name)===-1){var r=f.name,o=(f._cat||f.name).toLowerCase();n.indexOf(r)===-1&&n.push(r),n.indexOf(o)===-1&&n.push(o)}};v.forEach(function(f){c(h[f])}),n.sort(),oe.exports={DRAW_MODES:S,backButtons:i,foreButtons:n}},kqsGewO0:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("/oRevOrA"),S=e("A5P9b9BX"),i=e("FE0A7nss");oe.exports=function(c,f){var r=c.modebar||{},o=S.newContainer(f,"modebar");function m(A,M){return h.coerce(r,o,i,A,M)}m("orientation"),m("bgcolor",v.addOpacity(f.paper_bgcolor,.5));var d=v.contrast(v.rgb(f.modebar.bgcolor));m("color",v.addOpacity(d,.3)),m("activecolor",v.addOpacity(d,.7)),m("uirevision",f.uirevision),m("add"),m("remove")}},ElYFxeqq:(oe,q,e)=>{"use strict";oe.exports={moduleType:"component",name:"modebar",layoutAttributes:e("FE0A7nss"),supplyLayoutDefaults:e("kqsGewO0"),manage:e("A12AxPBT")}},A12AxPBT:(oe,q,e)=>{"use strict";var h=e("nXHY852p"),v=e("FAQM5QER"),S=e("R5um7Wku"),i=e("ErV1Ibqz").isUnifiedHover,n=e("xsJ/SW1t"),c=e("SO8H7QHz"),f=e("MgwEFEmX").DRAW_MODES,r=e("0Ft3SWJB").extendDeep;oe.exports=function(u){var p=u._fullLayout,t=u._context,l=p._modeBar;if(!t.displayModeBar&&!t.watermark){l&&(l.destroy(),delete p._modeBar);return}if(!Array.isArray(t.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(t.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=t.modeBarButtons,x;Array.isArray(a)&&a.length?x=b(a):!t.displayModeBar&&t.watermark?x=[]:x=o(u),l?l.update(u,x):p._modeBar=n(u,x)};function o(T){var u=T._fullLayout,p=T._fullData,t=T._context;function l(W,J){if(typeof J=="string"){if(J.toLowerCase()===W.toLowerCase())return!0}else{var K=J.name,X=J._cat||J.name;if(K===W||X===W.toLowerCase())return!0}return!1}var a=u.modebar.add;typeof a=="string"&&(a=[a]);var x=u.modebar.remove;typeof x=="string"&&(x=[x]);var y=t.modeBarButtonsToAdd.concat(a.filter(function(W){for(var J=0;J1?(ne=["toggleHover"],me=["resetViews"]):B?(ee=["zoomInGeo","zoomOutGeo"],ne=["hoverClosestGeo"],me=["resetGeo"]):F?(ne=["hoverClosest3d"],me=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],ne=["toggleHover"],me=["resetViewMapbox"]):g?ne=["hoverClosestGl2d"]:s?ne=["hoverClosestPie"]:D?(ne=["hoverClosestCartesian","hoverCompareCartesian"],me=["resetViewSankey"]):ne=["toggleHover"],L&&(ne=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(A(p)||H)&&(ne=[]),(L||g)&&!z&&(ee=["zoomIn2d","zoomOut2d","autoScale2d"],me[0]!=="resetViews"&&(me=["resetScale2d"])),F?$=["zoom3d","pan3d","orbitRotation","tableRotation"]:(L||g)&&!z||I?$=["zoom2d","pan2d"]:N||B?$=["pan2d"]:Q&&($=["zoom2d"]),d(p)&&$.push("select2d","lasso2d");var re=[],C=function(W){re.indexOf(W)===-1&&ne.indexOf(W)!==-1&&re.push(W)};if(Array.isArray(y)){for(var R=[],k=0;k{"use strict";var h=e("Lou4tdh8"),v=e("yAcToaBS"),S=e("0Ft3SWJB"),i=e("lziZQePk"),n=e("dH7CFEq5").version,c=new DOMParser;function f(d){this.container=d.container,this.element=document.createElement("div"),this.update(d.graphInfo,d.buttons),this.container.appendChild(this.element)}var r=f.prototype;r.update=function(d,A){this.graphInfo=d;var M=this.graphInfo._context,b=this.graphInfo._fullLayout,T="modebar-"+b._uid;this.element.setAttribute("id",T),this._uid=T,this.element.className="modebar",M.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),b.modebar.orientation==="v"&&(this.element.className+=" vertical",A=A.reverse());var u=b.modebar,p=M.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";S.deleteRelatedStyleRule(T),S.addRelatedStyleRule(T,p+"#"+T+" .modebar-group","background-color: "+u.bgcolor),S.addRelatedStyleRule(T,"#"+T+" .modebar-btn .icon path","fill: "+u.color),S.addRelatedStyleRule(T,"#"+T+" .modebar-btn:hover .icon path","fill: "+u.activecolor),S.addRelatedStyleRule(T,"#"+T+" .modebar-btn.active .icon path","fill: "+u.activecolor);var t=!this.hasButtons(A),l=this.hasLogo!==M.displaylogo,a=this.locale!==M.locale;if(this.locale=M.locale,(t||l||a)&&(this.removeAllButtons(),this.updateButtons(A),M.watermark||M.displaylogo)){var x=this.getLogo();M.watermark&&(x.className=x.className+" watermark"),b.modebar.orientation==="v"?this.element.insertBefore(x,this.element.childNodes[0]):this.element.appendChild(x),this.hasLogo=!0}this.updateActiveButton()},r.updateButtons=function(d){var A=this;this.buttons=d,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(M){var b=A.createGroup();M.forEach(function(T){var u=T.name;if(!u)throw new Error("must provide button 'name' in button config");if(A.buttonsNames.indexOf(u)!==-1)throw new Error("button name '"+u+"' is taken");A.buttonsNames.push(u);var p=A.createButton(T);A.buttonElements.push(p),b.appendChild(p)}),A.element.appendChild(b)})},r.createGroup=function(){var d=document.createElement("div");return d.className="modebar-group",d},r.createButton=function(d){var A=this,M=document.createElement("a");M.setAttribute("rel","tooltip"),M.className="modebar-btn";var b=d.title;b===void 0?b=d.name:typeof b=="function"&&(b=b(this.graphInfo)),(b||b===0)&&M.setAttribute("data-title",b),d.attr!==void 0&&M.setAttribute("data-attr",d.attr);var T=d.val;T!==void 0&&(typeof T=="function"&&(T=T(this.graphInfo)),M.setAttribute("data-val",T));var u=d.click;if(typeof u!="function")throw new Error("must provide button 'click' function in button config");M.addEventListener("click",function(t){d.click(A.graphInfo,t),A.updateActiveButton(t.currentTarget)}),M.setAttribute("data-toggle",d.toggle||!1),d.toggle&&h.select(M).classed("active",!0);var p=d.icon;return typeof p=="function"?M.appendChild(p()):M.appendChild(this.createIcon(p||i.question)),M.setAttribute("data-gravity",d.gravity||"n"),M},r.createIcon=function(d){var A=v(d.height)?Number(d.height):d.ascent-d.descent,M="http://www.w3.org/2000/svg",b;if(d.path){b=document.createElementNS(M,"svg"),b.setAttribute("viewBox",[0,0,d.width,A].join(" ")),b.setAttribute("class","icon");var T=document.createElementNS(M,"path");T.setAttribute("d",d.path),d.transform?T.setAttribute("transform",d.transform):d.ascent!==void 0&&T.setAttribute("transform","matrix(1 0 0 -1 0 "+d.ascent+")"),b.appendChild(T)}if(d.svg){var u=c.parseFromString(d.svg,"application/xml");b=u.childNodes[0]}return b.setAttribute("height","1em"),b.setAttribute("width","1em"),b},r.updateActiveButton=function(d){var A=this.graphInfo._fullLayout,M=d!==void 0?d.getAttribute("data-attr"):null;this.buttonElements.forEach(function(b){var T=b.getAttribute("data-val")||!0,u=b.getAttribute("data-attr"),p=b.getAttribute("data-toggle")==="true",t=h.select(b);if(p)u===M&&t.classed("active",!t.classed("active"));else{var l=u===null?u:S.nestedProperty(A,u).get();t.classed("active",l===T)}})},r.hasButtons=function(d){var A=this.buttons;if(!A||d.length!==A.length)return!1;for(var M=0;M{"use strict";var h=e("lf8+9Xc7"),v=e("Khpmx9F5"),S=e("A5P9b9BX").templatedArray,i=S("button",{visible:{valType:"boolean",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",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",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",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",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(" ")});oe.exports={visible:{valType:"boolean",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:i,x:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",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,editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",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:h({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:v.lightLine,editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:v.defaultLine,editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"}},E7jFWnz0:oe=>{"use strict";oe.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},GFRpkpH7:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("/oRevOrA"),S=e("A5P9b9BX"),i=e("JdrF9yG0"),n=e("3oxsHAjo"),c=e("E7jFWnz0");oe.exports=function(m,d,A,M,b){var T=m.rangeselector||{},u=S.newContainer(d,"rangeselector");function p(y,E){return h.coerce(T,u,n,y,E)}var t=i(T,u,{name:"buttons",handleItemDefaults:f,calendar:b}),l=p("visible",t.length>0);if(l){var a=r(d,A,M);p("x",a[0]),p("y",a[1]),h.noneOrAll(m,d,["x","y"]),p("xanchor"),p("yanchor"),h.coerceFont(p,"font",A.font);var x=p("bgcolor");p("activecolor",v.contrast(x,c.lightAmount,c.darkAmount)),p("bordercolor"),p("borderwidth")}};function f(o,m,d,A){var M=A.calendar;function b(p,t){return h.coerce(o,m,n.buttons,p,t)}var T=b("visible");if(T){var u=b("step");u!=="all"&&(M&&M!=="gregorian"&&(u==="month"||u==="year")?m.stepmode="backward":b("stepmode"),b("count")),b("label")}}function r(o,m,d){for(var A=d.filter(function(u){return m[u].anchor===o._id}),M=0,b=0;b{"use strict";var h=e("Lou4tdh8"),v=e("R5um7Wku"),S=e("8MlMO9wt"),i=e("/oRevOrA"),n=e("+ELfTWmT"),c=e("0Ft3SWJB"),f=c.strTranslate,r=e("7k8rh0sJ"),o=e("nXHY852p"),m=e("kca9bvt+"),d=m.LINE_SPACING,A=m.FROM_TL,M=m.FROM_BR,b=e("E7jFWnz0"),T=e("gx2D5Jbc");oe.exports=function(F){var B=F._fullLayout,s=B._infolayer.selectAll(".rangeselector").data(u(F),p);s.enter().append("g").classed("rangeselector",!0),s.exit().remove(),s.style({cursor:"pointer","pointer-events":"all"}),s.each(function(w){var g=h.select(this),I=w,N=I.rangeselector,Q=g.selectAll("g.button").data(c.filterVisible(N.buttons));Q.enter().append("g").classed("button",!0),Q.exit().remove(),Q.each(function(P){var D=h.select(this),z=T(I,P);P._isActive=t(I,P,z),D.call(l,N,P),D.call(x,N,P,F),D.on("click",function(){F._dragged||v.call("_guiRelayout",F,z)}),D.on("mouseover",function(){P._isHovered=!0,D.call(l,N,P)}),D.on("mouseout",function(){P._isHovered=!1,D.call(l,N,P)})}),E(F,Q,N,I._name,g)})};function u(L){for(var F=o.list(L,"x",!0),B=[],s=0;s{"use strict";var h=e("iLyfqyU4"),v=e("0Ft3SWJB").titleCase;oe.exports=function(n,c){var f=n._name,r={};if(c.step==="all")r[f+".autorange"]=!0;else{var o=S(n,c);r[f+".range[0]"]=o[0],r[f+".range[1]"]=o[1]}return r};function S(i,n){var c=i.range,f=new Date(i.r2l(c[1])),r=n.step,o=h["utc"+v(r)],m=n.count,d;switch(n.stepmode){case"backward":d=i.l2r(+o.offset(f,-m));break;case"todate":var A=o.offset(f,-m);d=i.l2r(+o.ceil(A));break}var M=c[1];return[d,M]}},fuud1Mda:(oe,q,e)=>{"use strict";oe.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:e("3oxsHAjo")}}},layoutAttributes:e("3oxsHAjo"),handleDefaults:e("GFRpkpH7"),draw:e("eEVZOYEb")}},BUYsAOqp:(oe,q,e)=>{"use strict";var h=e("Khpmx9F5");oe.exports={bgcolor:{valType:"color",dflt:h.background,editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:h.defaultLine,editType:"plot",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot",description:"Sets the border width of the range slider."},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range slider range is","computed in relation to the input data.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1},description:["Sets the range of the range slider.","If not set, defaults to the full xaxis range.","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(" ")},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the range slider will be visible.","If visible, perpendicular axes will be set to `fixedrange`"].join(" ")},editType:"calc"}},hdoc7R6p:(oe,q,e)=>{"use strict";var h=e("nXHY852p").list,v=e("IaNOhRG8").getAutoRange,S=e("eWxD8Nou");oe.exports=function(n){for(var c=h(n,"x",!0),f=0;f{"use strict";oe.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},tulWVaVZ:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("A5P9b9BX"),S=e("nXHY852p"),i=e("BUYsAOqp"),n=e("rEizEXXv");oe.exports=function(f,r,o){var m=f[o],d=r[o];if(!(m.rangeslider||r._requestRangeslider[d._id]))return;h.isPlainObject(m.rangeslider)||(m.rangeslider={});var A=m.rangeslider,M=v.newContainer(d,"rangeslider");function b(s,w){return h.coerce(A,M,i,s,w)}var T,u;function p(s,w){return h.coerce(T,u,n,s,w)}var t=b("visible");if(t){b("bgcolor",r.plot_bgcolor),b("bordercolor"),b("borderwidth"),b("thickness"),b("autorange",!d.isValidRange(A.range)),b("range");var l=r._subplots;if(l)for(var a=l.cartesian.filter(function(s){return s.substr(0,s.indexOf("y"))===S.name2id(o)}).map(function(s){return s.substr(s.indexOf("y"),s.length)}),x=h.simpleMap(a,S.id2name),y=0;y{"use strict";var h=e("Lou4tdh8"),v=e("R5um7Wku"),S=e("8MlMO9wt"),i=e("0Ft3SWJB"),n=i.strTranslate,c=e("+ELfTWmT"),f=e("/oRevOrA"),r=e("xjYqbXs+"),o=e("42xT/S4m"),m=e("nXHY852p"),d=e("WFvnZ06c"),A=e("LnvsDkyo"),M=e("eWxD8Nou");oe.exports=function(L){for(var F=L._fullLayout,B=F._rangeSliderData,s=0;s=xe.max)le=K[ge+1];else if(se=xe.pmax)le=K[ge+1];else if(seB._length||O+$<0)return;re=H+$,C=O+$;break;case g:if(R="col-resize",H+$>B._length)return;re=H+$,C=O;break;case I:if(R="col-resize",O+$<0)return;re=H,C=O+$;break;default:R="ew-resize",re=z,C=z+$;break}if(C{"use strict";var h=e("nXHY852p"),v=e("7k8rh0sJ"),S=e("eWxD8Nou"),i=e("kca9bvt+").LINE_SPACING,n=S.name;function c(f){var r=f&&f[n];return r&&r.visible}q.isVisible=c,q.makeData=function(f){var r=h.list({_fullLayout:f},"x",!0),o=f.margin,m=[];if(!f._has("gl2d"))for(var d=0;d{"use strict";var h=e("0Ft3SWJB"),v=e("BUYsAOqp"),S=e("rEizEXXv"),i=e("tcKspEK1");oe.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:h.extendFlat({},v,{yaxis:S})}}},layoutAttributes:e("BUYsAOqp"),handleDefaults:e("tulWVaVZ"),calcAutorange:e("hdoc7R6p"),draw:e("Ynsi9ipj"),isVisible:i.isVisible,makeData:i.makeData,autoMarginOpts:i.autoMarginOpts}},rEizEXXv:oe=>{"use strict";oe.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc",description:["Determines whether or not the range of this axis in","the rangeslider use the same value than in the main plot","when zooming in/out.","If *auto*, the autorange will be used.","If *fixed*, the `range` is used.","If *match*, the current range of the corresponding y-axis on the main subplot is used."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Sets the range of this axis for the rangeslider."].join(" ")},editType:"calc"}},"Uiaf/YcT":(oe,q,e)=>{"use strict";var h=e("L1qB4u9y"),v=e("SncXPNSm").line,S=e("LZ3mZdqo").P,i=e("xE+ZFgwY").extendFlat,n=e("Oq1Cqb7p").overrideAll,c=e("A5P9b9BX").templatedArray,f=e("SWM1uxTh");oe.exports=n(c("selection",{type:{valType:"enumerated",values:["rect","path"],description:["Specifies the selection type to be drawn.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`) and (`x0`,`y1`).","If *path*, draw a custom SVG path using `path`."].join(" ")},xref:i({},h.xref,{description:["Sets the selection's x coordinate axis.",f.axisRefDescription("x","left","right")].join(" ")}),yref:i({},h.yref,{description:["Sets the selection's x coordinate axis.",f.axisRefDescription("y","bottom","top")].join(" ")}),x0:{valType:"any",description:"Sets the selection's starting x position."},x1:{valType:"any",description:"Sets the selection's end x position."},y0:{valType:"any",description:"Sets the selection's starting y position."},y1:{valType:"any",description:"Sets the selection's end y position."},path:{valType:"string",editType:"arraydraw",description:["For `type` *path* - a valid SVG path similar to `shapes.path` in data coordinates.","Allowed segments are: M, L and Z."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw",description:"Sets the opacity of the selection."},line:{color:v.color,width:i({},v.width,{min:1,dflt:1}),dash:i({},S,{dflt:"dot"})}}),"arraydraw","from-root")},"77SfYBrh":oe=>{"use strict";oe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},"epQ7u/Qy":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("4JfnfFRI"),S=e("JdrF9yG0"),i=e("Uiaf/YcT"),n=e("ETO16RmN");oe.exports=function(r,o){S(r,o,{name:"selections",handleItemDefaults:c});for(var m=o.selections,d=0;d{"use strict";var h=e("FaAFECtK").readPaths,v=e("Fiswjjht"),S=e("PWHNECNO").clearOutlineControllers,i=e("/oRevOrA"),n=e("+ELfTWmT"),c=e("A5P9b9BX").arrayEditor,f=e("ETO16RmN"),r=f.getPathString;oe.exports={draw:o,drawOne:d,activateLastSelection:b};function o(u){var p=u._fullLayout;S(u),p._selectionLayer.selectAll("path").remove();for(var t in p._plots){var l=p._plots[t].selectionLayer;l&&l.selectAll("path").remove()}for(var a=0;a=0;Q--){var P=y.append("path").attr(L).style("opacity",Q?.1:F).call(i.stroke,s).call(i.fill,B).call(n.dashLine,Q?"solid":g,Q?4+w:w);if(A(P,u,l),I){var D=c(u.layout,"selections",l);P.style({cursor:"move"});var z={element:P.node(),plotinfo:a,gd:u,editHelpers:D,isActiveSelection:!0},H=h(E,u);v(H,P,z)}else P.style("pointer-events",Q?"all":"none");N[Q]=P}var O=N[0],U=N[1];U.node().addEventListener("click",function(){return M(u,O)})}}function A(u,p,t){var l=t.xref+t.yref;n.setClipUrl(u,"clip"+p._fullLayout._uid+l,p)}function M(u,p){if(m(u)){var t=p.node(),l=+t.getAttribute("data-index");if(l>=0){if(l===u._fullLayout._activeSelectionIndex){T(u);return}u._fullLayout._activeSelectionIndex=l,u._fullLayout._deactivateSelection=T,o(u)}}}function b(u){if(m(u)){var p=u._fullLayout.selections.length-1;u._fullLayout._activeSelectionIndex=p,u._fullLayout._deactivateSelection=T,o(u)}}function T(u){if(m(u)){var p=u._fullLayout._activeSelectionIndex;p>=0&&(S(u),delete u._fullLayout._activeSelectionIndex,o(u))}}},GPZEMd7i:oe=>{"use strict";oe.exports=function(e,h,v){v("newselection.mode");var S=v("newselection.line.width");S&&(v("newselection.line.color"),v("newselection.line.dash")),v("activeselection.fillcolor"),v("activeselection.opacity")}},"sh2+IFXH":(oe,q,e)=>{"use strict";var h=e("rC/dcWPV"),v=h.selectMode,S=e("PWHNECNO"),i=S.clearOutline,n=e("FaAFECtK"),c=n.readPaths,f=n.writePaths,r=n.fixDatesForPaths;oe.exports=function(m,d){if(m.length){var A=m[0][0];if(A){var M=A.getAttribute("d"),b=d.gd,T=b._fullLayout.newselection,u=d.plotinfo,p=u.xaxis,t=u.yaxis,l=d.isActiveSelection,a=d.dragmode,x=(b.layout||{}).selections||[];if(!v(a)&&l!==void 0){var y=b._fullLayout._activeSelectionIndex;if(y{"use strict";var h=e("0Ft3SWJB").strTranslate;function v(c,f){switch(c.type){case"log":return c.p2d(f);case"date":return c.p2r(f,0,c.calendar);default:return c.p2r(f)}}function S(c,f){switch(c.type){case"log":return c.d2p(f);case"date":return c.r2p(f,0,c.calendar);default:return c.r2p(f)}}function i(c){var f=c._id.charAt(0)==="y"?1:0;return function(r){return v(c,r[f])}}function n(c){return h(c.xaxis._offset,c.yaxis._offset)}oe.exports={p2r:v,r2p:S,axValue:i,getTransform:n}},QvhOTlPp:(oe,q,e)=>{"use strict";var h=e("uISfwynB"),v=e("CPAsbHSw");oe.exports={moduleType:"component",name:"selections",layoutAttributes:e("Uiaf/YcT"),supplyLayoutDefaults:e("epQ7u/Qy"),supplyDrawNewSelectionDefaults:e("GPZEMd7i"),includeBasePlot:e("lGy/M/Cj")("selections"),draw:h.draw,drawOne:h.drawOne,reselect:v.reselect,prepSelect:v.prepSelect,clearOutline:v.clearOutline,clearSelectionsCache:v.clearSelectionsCache,selectOnClick:v.selectOnClick}},CPAsbHSw:(oe,q,e)=>{"use strict";var h=e("nuD6RlFT"),v=e("HJMBrBcm"),S=e("R5um7Wku"),i=e("+ELfTWmT").dashStyle,n=e("/oRevOrA"),c=e("9fFWTih4"),f=e("ErV1Ibqz").makeEventData,r=e("rC/dcWPV"),o=r.freeMode,m=r.rectMode,d=r.drawMode,A=r.openMode,M=r.selectMode,b=e("ETO16RmN"),T=e("nDS+kLOj"),u=e("Fiswjjht"),p=e("PWHNECNO").clearOutline,t=e("FaAFECtK"),l=t.handleEllipse,a=t.readPaths,x=e("FRK4tLaG").newShapes,y=e("sh2+IFXH"),E=e("uISfwynB").activateLastSelection,L=e("0Ft3SWJB"),F=L.sorterAsc,B=e("fhYYOvxE"),s=e("9bxIX4ke"),w=e("nXHY852p").getFromId,g=e("NLf4w7dD"),I=e("PM37TqjZ").redrawReglTraces,N=e("77SfYBrh"),Q=N.MINSELECT,P=B.filter,D=B.tester,z=e("kH2xlPVC"),H=z.p2r,O=z.axValue,U=z.getTransform;function Y(he){return he.subplot!==void 0}function ee(he,He,Ie,Fe,We){var _=!Y(Fe),ve=o(We),de=m(We),pe=A(We),be=d(We),we=M(We),Je=We==="drawline",Ze=We==="drawcircle",Ee=Je||Ze,Le=Fe.gd,Oe=Le._fullLayout,at=we&&Oe.newselection.mode==="immediate"&&_,ft=Oe._zoomlayer,ht=Fe.element.getBoundingClientRect(),bt=Fe.plotinfo,Mt=U(bt),it=He-ht.left,Tt=Ie-ht.top;Oe._calcInverseTransform(Le);var wt=L.apply3DTransform(Oe._invTransform)(it,Tt);it=wt[0],Tt=wt[1];var pt=Oe._invScaleX,kt=Oe._invScaleY,gt=it,$e=Tt,yt="M"+it+","+Tt,ct=Fe.xaxes[0],St=Fe.yaxes[0],Ct=ct._length,zt=St._length,mt=he.altKey&&!(d(We)&&pe),Z,V,Te,Ae,ke,Re,ze;R(he,Le,Fe),ve&&(Z=P([[it,Tt]],N.BENDPX));var Ce=ft.selectAll("path.select-outline-"+bt.id).data([1]),Se=be?Oe.newshape:Oe.newselection;be&&(Fe.hasText=Se.label.text||Se.label.texttemplate);var Ne=be&&!pe?Se.fillcolor:"rgba(0,0,0,0)",Ve=Se.line.color||(_?n.contrast(Le._fullLayout.plot_bgcolor):"#7f7f7f");Ce.enter().append("path").attr("class","select-outline select-outline-"+bt.id).style({opacity:be?Se.opacity/2:1,"stroke-dasharray":i(Se.line.dash,Se.line.width),"stroke-width":Se.line.width+"px","shape-rendering":"crispEdges"}).call(n.stroke,Ve).call(n.fill,Ne).attr("fill-rule","evenodd").classed("cursor-move",!!be).attr("transform",Mt).attr("d",yt+"Z");var Xe=ft.append("path").attr("class","zoombox-corners").style({fill:n.background,stroke:n.defaultLine,"stroke-width":1}).attr("transform",Mt).attr("d","M0,0Z");if(be&&Fe.hasText){var qe=ft.select(".label-temp");qe.empty()&&(qe=ft.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var tt=Oe._uid+N.SELECTID,et=[],lt=K(Le,Fe.xaxes,Fe.yaxes,Fe.subplot);at&&!he.shiftKey&&(Fe._clearSubplotSelections=function(){if(_){var dt=ct._id,Rt=St._id;Be(Le,dt,Rt,lt);for(var At=(Le.layout||{}).selections||[],Lt=[],st=!1,vt=0;vt=0){Le._fullLayout._deactivateShape(Le);return}if(!be){var At=Oe.clickmode;s.done(tt).then(function(){if(s.clear(tt),dt===2){for(Ce.remove(),ke=0;ke-1&&ne(Rt,Le,Fe.xaxes,Fe.yaxes,Fe.subplot,Fe,Ce),At==="event"&&rt(Le,void 0);c.click(Le,Rt,bt.id)}).catch(L.error)}},Fe.doneFn=function(){Xe.remove(),s.done(tt).then(function(){s.clear(tt),!at&&Ae&&Fe.selectionDefs&&(Ae.subtract=mt,Fe.selectionDefs.push(Ae),Fe.mergedPolygons.length=0,[].push.apply(Fe.mergedPolygons,Te)),(at||be)&&W(Fe,at),Fe.doneFnCompleted&&Fe.doneFnCompleted(et),we&&rt(Le,ze)}).catch(L.error)}}function ne(he,He,Ie,Fe,We,_,ve){var de=He._hoverdata,pe=He._fullLayout,be=pe.clickmode,we=be.indexOf("event")>-1,Je=[],Ze,Ee,Le,Oe,at,ft,ht,bt,Mt,it;if(j(de)){R(he,He,_),Ze=K(He,Ie,Fe,We);var Tt=ae(de,Ze),wt=Tt.pointNumbers.length>0;if(wt?le(Ze,Tt):ge(Ze)&&(ht=se(Tt))){for(ve&&ve.remove(),it=0;it=0}function G(he){return he._fullLayout._activeSelectionIndex>=0}function W(he,He){var Ie=he.dragmode,Fe=he.plotinfo,We=he.gd;k(We)&&We._fullLayout._deactivateShape(We),G(We)&&We._fullLayout._deactivateSelection(We);var _=We._fullLayout,ve=_._zoomlayer,de=d(Ie),pe=M(Ie);if(de||pe){var be=ve.selectAll(".select-outline-"+Fe.id);if(be&&We._fullLayout._outlining){var we;de&&(we=x(be,he)),we&&S.call("_guiRelayout",We,{shapes:we});var Je;pe&&!Y(he)&&(Je=y(be,he)),Je&&(We._fullLayout._noEmitSelectedAtStart=!0,S.call("_guiRelayout",We,{selections:Je}).then(function(){He&&E(We)})),We._fullLayout._outlining=!1}}Fe.selection={},Fe.selection.selectionDefs=he.selectionDefs=[],Fe.selection.mergedPolygons=he.mergedPolygons=[]}function J(he){return he._id}function K(he,He,Ie,Fe){if(!he.calcdata)return[];var We=[],_=He.map(J),ve=Ie.map(J),de,pe,be;for(be=0;be0,_=We?Fe[0]:Ie;return He.selectedpoints?He.selectedpoints.indexOf(_)>-1:!1}function le(he,He){var Ie=[],Fe,We,_,ve;for(ve=0;ve0&&Ie.push(Fe);if(Ie.length===1&&(_=Ie[0]===He.searchInfo,_&&(We=He.searchInfo.cd[0].trace,We.selectedpoints.length===He.pointNumbers.length))){for(ve=0;ve1||(He+=Fe.selectedpoints.length,He>1)))return!1;return He===1}function xe(he,He,Ie){var Fe;for(Fe=0;Fe-1&&He;if(!ve&&He){var dt=je(he,!0);if(dt.length){var Rt=dt[0].xref,At=dt[0].yref;if(Rt&&At){var Lt=Ue(dt),st=Ge([w(he,Rt,"x"),w(he,At,"y")]);st(et,Lt)}}he._fullLayout._noEmitSelectedAtStart?he._fullLayout._noEmitSelectedAtStart=!1:ut&&rt(he,et),Ze._reselect=!1}if(!ve&&Ze._deselect){var vt=Ze._deselect;de=vt.xref,pe=vt.yref,Pe(de,pe,we)||Be(he,de,pe,Fe),ut&&(et.points.length?rt(he,et):Ke(he)),Ze._deselect=!1}return{eventData:et,selectionTesters:Ie}}function Me(he){var He=he.calcdata;if(He)for(var Ie=0;Ie{"use strict";var h=e("L1qB4u9y"),v=e("lf8+9Xc7"),S=e("SncXPNSm").line,i=e("LZ3mZdqo").P,n=e("xE+ZFgwY").extendFlat,c=e("A5P9b9BX").templatedArray,f=e("SWM1uxTh"),r=e("FDg8C/At"),o=e("OzUSSj1k").R,m=e("PjEQRYen");oe.exports=c("shape",{visible:n({},r.visible,{editType:"calc+arraydraw",description:["Determines whether or not this shape is visible.","If *legendonly*, the shape is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether or not this","shape is shown in the legend."].join(" ")},legend:n({},r.legend,{editType:"calc+arraydraw",description:["Sets the reference to a legend to show this shape in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")}),legendgroup:n({},r.legendgroup,{editType:"calc+arraydraw",description:["Sets the legend group for this shape.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")}),legendgrouptitle:{text:n({},r.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:v({editType:"calc+arraydraw",description:["Sets this legend group's title font."].join(" ")}),editType:"calc+arraydraw"},legendrank:n({},r.legendrank,{editType:"calc+arraydraw",description:["Sets the legend rank for this shape.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items.","When having unranked or equal rank items shapes would be displayed after traces","i.e. according to their order in data and layout."].join(" ")}),legendwidth:n({},r.legendwidth,{editType:"calc+arraydraw",description:"Sets the width (in px or fraction) of the legend for this shape."}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","with respect to the axes' sizing mode.","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","with respect to the axes' sizing mode.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","with respect to the axes' sizing mode.","If *path*, draw a custom SVG path using `path`.","with respect to the axes' sizing mode."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:"Specifies whether shapes are drawn below or above traces."},xref:n({},h.xref,{description:["Sets the shape's x coordinate axis.",f.axisRefDescription("x","left","right")].join(" ")}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the x axis.","If set to *scaled*, `x0`, `x1` and x coordinates within `path` refer to","data values on the x axis or a fraction of the plot area's width","(`xref` set to *paper*).","If set to *pixel*, `xanchor` specifies the x position in terms","of data or plot fraction but `x0`, `x1` and x coordinates within `path`","are pixels relative to `xanchor`. This way, the shape can have","a fixed width while maintaining a position relative to data or","plot fraction."].join(" ")},xanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `xsizemode` set to *pixel*.","Specifies the anchor point on the x axis to which `x0`, `x1`","and x coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `xsizemode` not set to *pixel*."].join(" ")},x0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting x position.","See `type` and `xsizemode` for more info."].join(" ")},x1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end x position.","See `type` and `xsizemode` for more info."].join(" ")},yref:n({},h.yref,{description:["Sets the shape's y coordinate axis.",f.axisRefDescription("y","bottom","top")].join(" ")}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the y axis.","If set to *scaled*, `y0`, `y1` and y coordinates within `path` refer to","data values on the y axis or a fraction of the plot area's height","(`yref` set to *paper*).","If set to *pixel*, `yanchor` specifies the y position in terms","of data or plot fraction but `y0`, `y1` and y coordinates within `path`","are pixels relative to `yanchor`. This way, the shape can have","a fixed height while maintaining a position relative to data or","plot fraction."].join(" ")},yanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `ysizemode` set to *pixel*.","Specifies the anchor point on the y axis to which `y0`, `y1`","and y coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `ysizemode` not set to *pixel*."].join(" ")},y0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting y position.","See `type` and `ysizemode` for more info."].join(" ")},y1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end y position.","See `type` and `ysizemode` for more info."].join(" ")},path:{valType:"string",editType:"calc+arraydraw",description:["For `type` *path* - a valid SVG path with the pixel values","replaced by data values in `xsizemode`/`ysizemode` being *scaled*","and taken unmodified as pixels relative to `xanchor` and `yanchor`","in case of *pixel* size mode.","There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the shape."},line:{color:n({},S.color,{editType:"arraydraw"}),width:n({},S.width,{editType:"calc+arraydraw"}),dash:n({},i,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color filling the shape's interior. Only applies to closed shapes."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw",description:["Determines which regions of complex paths constitute the interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether the shape could be activated for edit or not.","Has no effect when the older editable shapes mode is enabled via","`config.editable` or `config.edits.shapePosition`."].join(" ")},label:{text:{valType:"string",dflt:"",editType:"arraydraw",description:["Sets the text to display with shape.","It is also used for legend item if `name` is not provided."].join(" ")},texttemplate:o({},{keys:Object.keys(m)}),font:v({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the shape label text font."}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw",description:["Sets the position of the label text relative to the shape.","Supported values for rectangles, circles and paths are","*top left*, *top center*, *top right*, *middle left*,","*middle center*, *middle right*, *bottom left*, *bottom center*,","and *bottom right*.","Supported values for lines are *start*, *middle*, and *end*.","Default: *middle center* for rectangles, circles, and paths; *middle* for lines."].join(" ")},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw",description:["Sets the angle at which the label text is drawn","with respect to the horizontal. For lines, angle *auto*","is the same angle as the line. For all other shapes,","angle *auto* is horizontal."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the label's horizontal position anchor","This anchor binds the specified `textposition` to the *left*, *center*","or *right* of the label text.","For example, if `textposition` is set to *top right* and","`xanchor` to *right* then the right-most portion of the","label text lines up with the right-most edge of the","shape."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw",description:["Sets the label's vertical position anchor","This anchor binds the specified `textposition` to the *top*, *middle*","or *bottom* of the label text.","For example, if `textposition` is set to *top right* and","`yanchor` to *top* then the top-most portion of the","label text lines up with the top-most edge of the","shape."].join(" ")},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw",description:"Sets padding (in px) between edge of label and edge of shape."},editType:"arraydraw"},editType:"arraydraw"})},rFx0PDKK:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("4JfnfFRI"),S=e("nDS+kLOj"),i=e("ETO16RmN");oe.exports=function(m){var d=m._fullLayout,A=h.filterVisible(d.shapes);if(!(!A.length||!m._fullData.length))for(var M=0;M0?t+T:T;return{ppad:T,ppadplus:u?a:x,ppadminus:u?x:a}}else return{ppad:T}}function r(o,m,d,A,M){var b=o.type==="category"||o.type==="multicategory"?o.r2c:o.d2c;if(m!==void 0)return[b(m),b(d)];if(A){var T=1/0,u=-1/0,p=A.match(S.segmentRE),t,l,a,x,y;for(o.type==="date"&&(b=i.decodeDate(b)),t=0;tu&&(u=y)));if(u>=T)return[T,u]}}},"nDS+kLOj":oe=>{"use strict";oe.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},VHfnmPJe:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("4JfnfFRI"),S=e("JdrF9yG0"),i=e("wZSGLMqc"),n=e("ETO16RmN");oe.exports=function(o,m){S(o,m,{name:"shapes",handleItemDefaults:f})};function c(r,o){return r?"bottom":o.indexOf("top")!==-1?"top":o.indexOf("bottom")!==-1?"bottom":"middle"}function f(r,o,m){function d($,re){return h.coerce(r,o,i,$,re)}o._isShape=!0;var A=d("visible");if(A){var M=d("showlegend");M&&(d("legend"),d("legendwidth"),d("legendgroup"),d("legendgrouptitle.text"),h.coerceFont(d,"legendgrouptitle.font"),d("legendrank"));var b=d("path"),T=b?"path":"rect",u=d("type",T),p=u!=="path";p&&delete o.path,d("editable"),d("layer"),d("opacity"),d("fillcolor"),d("fillrule");var t=d("line.width");t&&(d("line.color"),d("line.dash"));for(var l=d("xsizemode"),a=d("ysizemode"),x=["x","y"],y=0;y<2;y++){var E=x[y],L=E+"anchor",F=E==="x"?l:a,B={_fullLayout:m},s,w,g,I=v.coerceRef(r,o,B,E,void 0,"paper"),N=v.getRefType(I);if(N==="range"?(s=v.getFromId(B,I),s._shapeIndices.push(o._index),g=n.rangeToShapePosition(s),w=n.shapePositionToRange(s)):w=g=h.identity,p){var Q=.25,P=.75,D=E+"0",z=E+"1",H=r[D],O=r[z];r[D]=w(r[D],!0),r[z]=w(r[z],!0),F==="pixel"?(d(D,0),d(z,10)):(v.coercePosition(o,B,d,I,D,Q),v.coercePosition(o,B,d,I,z,P)),o[D]=g(o[D]),o[z]=g(o[z]),r[D]=H,r[z]=O}if(F==="pixel"){var U=r[L];r[L]=w(r[L],!0),v.coercePosition(o,B,d,I,L,.25),o[L]=g(o[L]),r[L]=U}}p&&h.noneOrAll(r,o,["x0","x1","y0","y1"]);var Y=u==="line",ee,ne;if(p&&(ee=d("label.texttemplate")),ee||(ne=d("label.text")),ne||ee){d("label.textangle");var me=d("label.textposition",Y?"middle":"middle center");d("label.xanchor"),d("label.yanchor",c(Y,me)),d("label.padding"),h.coerceFont(d,"label.font",m.font)}}}},SMCO17zp:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("4JfnfFRI"),S=e("7k8rh0sJ"),i=e("+ELfTWmT"),n=e("FaAFECtK").readPaths,c=e("ETO16RmN"),f=c.getPathString,r=e("PjEQRYen"),o=e("kca9bvt+").FROM_TL;oe.exports=function(M,b,T,u){if(u.selectAll(".shape-label").remove(),!!(T.label.text||T.label.texttemplate)){var p;if(T.label.texttemplate){var t={};if(T.type!=="path"){var l=v.getFromId(M,T.xref),a=v.getFromId(M,T.yref);for(var x in r){var y=r[x](T,l,a);y!==void 0&&(t[x]=y)}}p=h.texttemplateStringForShapes(T.label.texttemplate,{},M._fullLayout._d3locale,t)}else p=T.label.text;var E={"data-index":b},L=T.label.font,F={"data-notex":1},B=u.append("g").attr(E).classed("shape-label",!0),s=B.append("text").attr(F).classed("shape-label-text",!0).text(p),w,g,I,N;if(T.path){var Q=f(M,T),P=n(Q,M);w=1/0,I=1/0,g=-1/0,N=-1/0;for(var D=0;D=A?u=M-T:u=T-M,-180/Math.PI*Math.atan2(u,p)}function d(A,M,b,T,u,p,t){var l=u.label.textposition,a=u.label.textangle,x=u.label.padding,y=u.type,E=Math.PI/180*p,L=Math.sin(E),F=Math.cos(E),B=u.label.xanchor,s=u.label.yanchor,w,g,I,N;if(y==="line"){l==="start"?(w=A,g=M):l==="end"?(w=b,g=T):(w=(A+b)/2,g=(M+T)/2),B==="auto"&&(l==="start"?a==="auto"?b>A?B="left":bA?B="right":bA?B="right":bA?B="left":b{"use strict";var h=e("0Ft3SWJB"),v=h.strTranslate,S=e("WFvnZ06c"),i=e("rC/dcWPV"),n=i.drawMode,c=i.selectMode,f=e("R5um7Wku"),r=e("/oRevOrA"),o=e("rMN7jolB"),m=o.i000,d=o.i090,A=o.i180,M=o.i270,b=e("PWHNECNO"),T=b.clearOutlineControllers,u=e("FaAFECtK"),p=u.pointsOnRectangle,t=u.pointsOnEllipse,l=u.writePaths,a=e("FRK4tLaG").newShapes,x=e("FRK4tLaG").createShapeObj,y=e("sh2+IFXH"),E=e("SMCO17zp");oe.exports=function s(w,g,I,N){N||(N=0);var Q=I.gd;function P(){s(w,g,I,N++),(t(w[0])||I.hasText)&&D({redrawing:!0})}function D(ie){var fe={};I.isActiveShape!==void 0&&(I.isActiveShape=!1,fe=a(g,I)),I.isActiveSelection!==void 0&&(I.isActiveSelection=!1,fe=y(g,I),Q._fullLayout._reselect=!0),Object.keys(fe).length&&f.call((ie||{}).redrawing?"relayout":"_guiRelayout",Q,fe)}var z=Q._fullLayout,H=z._zoomlayer,O=I.dragmode,U=n(O),Y=c(O);(U||Y)&&(Q._fullLayout._outlining=!0),T(Q),g.attr("d",l(w));var ee,ne,me,$,re;if(!N&&(I.isActiveShape||I.isActiveSelection)){re=L([],w);var C=H.append("g").attr("class","outline-controllers");j(C),te()}if(U&&I.hasText){var R=H.select(".label-temp"),k=x(g,I,I.dragmode);E(Q,"label-temp",k,R)}function G(ie){me=+ie.srcElement.getAttribute("data-i"),$=+ie.srcElement.getAttribute("data-j"),ee[me][$].moveFn=W}function W(ie,fe){if(w.length){var ye=re[me][$][1],ce=re[me][$][2],ue=w[me],Me=ue.length;if(p(ue)){var Pe=ie,Be=fe;if(I.isActiveSelection){var De=F(ue,$);De[1]===ue[$][1]?Be=0:Pe=0}for(var je=0;je1&&!(ie.length===2&&ie[1][0]==="Z")&&($===0&&(ie[0][0]="M"),w[me]=ie,P(),D())}}function X(ie,fe){if(ie===2){me=+fe.srcElement.getAttribute("data-i"),$=+fe.srcElement.getAttribute("data-j");var ye=w[me];!p(ye)&&!t(ye)&&K()}}function j(ie){ee=[];for(var fe=0;fe{"use strict";var h=e("Lou4tdh8"),v=e("R5um7Wku"),S=e("0Ft3SWJB"),i=e("4JfnfFRI"),n=e("FaAFECtK").readPaths,c=e("Fiswjjht"),f=e("SMCO17zp"),r=e("PWHNECNO").clearOutlineControllers,o=e("/oRevOrA"),m=e("+ELfTWmT"),d=e("A5P9b9BX").arrayEditor,A=e("WFvnZ06c"),M=e("LnvsDkyo"),b=e("nDS+kLOj"),T=e("ETO16RmN"),u=T.getPathString;oe.exports={draw:p,drawOne:a,eraseActiveShape:B,drawLabel:f};function p(s){var w=s._fullLayout;w._shapeUpperLayer.selectAll("path").remove(),w._shapeLowerLayer.selectAll("path").remove(),w._shapeUpperLayer.selectAll("text").remove(),w._shapeLowerLayer.selectAll("text").remove();for(var g in w._plots){var I=w._plots[g].shapelayer;I&&(I.selectAll("path").remove(),I.selectAll("text").remove())}for(var N=0;NP&&Ie>D&&!Ke.shiftKey?A.getCursor(Fe/He,1-We/Ie):"move";M(w,_),Pe=_.split("-")[0]}}function _e(Ke){t(s)||(z&&(re=ie(g.xanchor)),H&&(C=fe(g.yanchor)),g.type==="path"?ae=g.path:(ee=z?g.x0:ie(g.x0),ne=H?g.y0:fe(g.y0),me=z?g.x1:ie(g.x1),$=H?g.y1:fe(g.y1)),ee$?(R=ne,J="y0",k=$,K="y1"):(R=$,J="y1",k=ne,K="y0"),je(Ke),Ye(N,g),rt(w,g,s),Me.moveFn=Pe==="move"?nt:Ge,Me.altKey=Ke.altKey)}function Qe(){t(s)||(M(w),ot(N),x(w,s,g),v.call("_guiRelayout",s,Q.getUpdateObj()))}function Ue(){t(s)||ot(N)}function nt(Ke,he){if(g.type==="path"){var He=function(We){return We},Ie=He,Fe=He;z?Y("xanchor",g.xanchor=ye(re+Ke)):(Ie=function(_){return ye(ie(_)+Ke)},le&&le.type==="date"&&(Ie=T.encodeDate(Ie))),H?Y("yanchor",g.yanchor=ce(C+he)):(Fe=function(_){return ce(fe(_)+he)},xe&&xe.type==="date"&&(Fe=T.encodeDate(Fe))),Y("path",g.path=E(ae,Ie,Fe))}else z?Y("xanchor",g.xanchor=ye(re+Ke)):(Y("x0",g.x0=ye(ee+Ke)),Y("x1",g.x1=ye(me+Ke))),H?Y("yanchor",g.yanchor=ce(C+he)):(Y("y0",g.y0=ce(ne+he)),Y("y1",g.y1=ce($+he)));w.attr("d",u(s,g)),Ye(N,g),f(s,I,g,se)}function Ge(Ke,he){if(U){var He=function(ft){return ft},Ie=He,Fe=He;z?Y("xanchor",g.xanchor=ye(re+Ke)):(Ie=function(ht){return ye(ie(ht)+Ke)},le&&le.type==="date"&&(Ie=T.encodeDate(Ie))),H?Y("yanchor",g.yanchor=ce(C+he)):(Fe=function(ht){return ce(fe(ht)+he)},xe&&xe.type==="date"&&(Fe=T.encodeDate(Fe))),Y("path",g.path=E(ae,Ie,Fe))}else if(O){if(Pe==="resize-over-start-point"){var We=ee+Ke,_=H?ne-he:ne+he;Y("x0",g.x0=z?We:ye(We)),Y("y0",g.y0=H?_:ce(_))}else if(Pe==="resize-over-end-point"){var ve=me+Ke,de=H?$-he:$+he;Y("x1",g.x1=z?ve:ye(ve)),Y("y1",g.y1=H?de:ce(de))}}else{var pe=function(ft){return Pe.indexOf(ft)!==-1},be=pe("n"),we=pe("s"),Je=pe("w"),Ze=pe("e"),Ee=be?R+he:R,Le=we?k+he:k,Oe=Je?G+Ke:G,at=Ze?W+Ke:W;H&&(be&&(Ee=R-he),we&&(Le=k-he)),(!H&&Le-Ee>D||H&&Ee-Le>D)&&(Y(J,g[J]=H?Ee:ce(Ee)),Y(K,g[K]=H?Le:ce(Le))),at-Oe>P&&(Y(X,g[X]=z?Oe:ye(Oe)),Y(j,g[j]=z?at:ye(at)))}w.attr("d",u(s,g)),Ye(N,g),f(s,I,g,se)}function Ye(Ke,he){(z||H)&&He();function He(){var Ie=he.type!=="path",Fe=Ke.selectAll(".visual-cue").data([0]),We=1;Fe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":We}).classed("visual-cue",!0);var _=ie(z?he.xanchor:S.midRange(Ie?[he.x0,he.x1]:T.extractPathCoords(he.path,b.paramIsX))),ve=fe(H?he.yanchor:S.midRange(Ie?[he.y0,he.y1]:T.extractPathCoords(he.path,b.paramIsY)));if(_=T.roundPositionForSharpStrokeRendering(_,We),ve=T.roundPositionForSharpStrokeRendering(ve,We),z&&H){var de="M"+(_-1-We)+","+(ve-1-We)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Fe.attr("d",de)}else if(z){var pe="M"+(_-1-We)+","+(ve-9-We)+"v18 h2 v-18 Z";Fe.attr("d",pe)}else{var be="M"+(_-9-We)+","+(ve-1-We)+"h18 v2 h-18 Z";Fe.attr("d",be)}}}function ot(Ke){Ke.selectAll(".visual-cue").remove()}function rt(Ke,he,He){var Ie=he.xref,Fe=he.yref,We=i.getFromId(He,Ie),_=i.getFromId(He,Fe),ve="";Ie!=="paper"&&!We.autorange&&(ve+=Ie),Fe!=="paper"&&!_.autorange&&(ve+=Fe),m.setClipUrl(Ke,ve?"clip"+He._fullLayout._uid+ve:null,He)}}function E(s,w,g){return s.replace(b.segmentRE,function(I){var N=0,Q=I.charAt(0),P=b.paramIsX[Q],D=b.paramIsY[Q],z=b.numParams[Q],H=I.substr(1).replace(b.paramRE,function(O){return N>=z||(P[N]?O=w(O):D[N]&&(O=g(O)),N++),O});return Q+H})}function L(s,w){if(l(s)){var g=w.node(),I=+g.getAttribute("data-index");if(I>=0){if(I===s._fullLayout._activeShapeIndex){F(s);return}s._fullLayout._activeShapeIndex=I,s._fullLayout._deactivateShape=F,p(s)}}}function F(s){if(l(s)){var w=s._fullLayout._activeShapeIndex;w>=0&&(r(s),delete s._fullLayout._activeShapeIndex,p(s))}}function B(s){if(l(s)){r(s);var w=s._fullLayout._activeShapeIndex,g=(s.layout||{}).shapes||[];if(w{"use strict";var q=32;oe.exports={CIRCLE_SIDES:q,i000:0,i090:q/4,i180:q/2,i270:q/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},RnBLVGpd:(oe,q,e)=>{"use strict";var h=e("/oRevOrA"),v=e("0Ft3SWJB");function S(i,n){return i?"bottom":n.indexOf("top")!==-1?"top":n.indexOf("bottom")!==-1?"bottom":"middle"}oe.exports=function(n,c,f){f("newshape.visible"),f("newshape.name"),f("newshape.showlegend"),f("newshape.legend"),f("newshape.legendwidth"),f("newshape.legendgroup"),f("newshape.legendgrouptitle.text"),v.coerceFont(f,"newshape.legendgrouptitle.font"),f("newshape.legendrank"),f("newshape.drawdirection"),f("newshape.layer"),f("newshape.fillcolor"),f("newshape.fillrule"),f("newshape.opacity");var r=f("newshape.line.width");if(r){var o=(n||{}).plot_bgcolor||"#FFF";f("newshape.line.color",h.contrast(o)),f("newshape.line.dash")}var m=n.dragmode==="drawline",d=f("newshape.label.text"),A=f("newshape.label.texttemplate");if(d||A){f("newshape.label.textangle");var M=f("newshape.label.textposition",m?"middle":"middle center");f("newshape.label.xanchor"),f("newshape.label.yanchor",S(m,M)),f("newshape.label.padding"),v.coerceFont(f,"newshape.label.font",c.font)}f("activeshape.fillcolor"),f("activeshape.opacity")}},FaAFECtK:(oe,q,e)=>{"use strict";var h=e("W2eyfIL2"),v=e("rMN7jolB"),S=v.CIRCLE_SIDES,i=v.SQRT2,n=e("kH2xlPVC"),c=n.p2r,f=n.r2p,r=[0,3,4,5,6,1,2],o=[0,3,4,1,2];q.writePaths=function(A){var M=A.length;if(!M)return"M0,0Z";for(var b="",T=0;T0&&a{"use strict";var h=e("rC/dcWPV"),v=h.drawMode,S=h.openMode,i=e("rMN7jolB"),n=i.i000,c=i.i090,f=i.i180,r=i.i270,o=i.cos45,m=i.sin45,d=e("kH2xlPVC"),A=d.p2r,M=d.r2p,b=e("PWHNECNO"),T=b.clearOutline,u=e("FaAFECtK"),p=u.readPaths,t=u.writePaths,l=u.ellipseOver,a=u.fixDatesForPaths;function x(E,L){if(E.length){var F=E[0][0];if(F){var B=L.gd,s=L.isActiveShape,w=L.dragmode,g=(B.layout||{}).shapes||[];if(!v(w)&&s!==void 0){var I=B._fullLayout._activeShapeIndex;if(I{"use strict";function q(h){var v=h._fullLayout._zoomlayer;v&&v.selectAll(".outline-controllers").remove()}function e(h){var v=h._fullLayout._zoomlayer;v&&v.selectAll(".select-outline").remove(),h._fullLayout._outlining=!1}oe.exports={clearOutlineControllers:q,clearOutline:e}},ETO16RmN:(oe,q,e)=>{"use strict";var h=e("nDS+kLOj"),v=e("0Ft3SWJB"),S=e("4JfnfFRI");q.rangeToShapePosition=function(n){return n.type==="log"?n.r2d:function(c){return c}},q.shapePositionToRange=function(n){return n.type==="log"?n.d2r:function(c){return c}},q.decodeDate=function(n){return function(c){return c.replace&&(c=c.replace("_"," ")),n(c)}},q.encodeDate=function(n){return function(c){return n(c).replace(" ","_")}},q.extractPathCoords=function(n,c,f){var r=[],o=n.match(h.segmentRE);return o.forEach(function(m){var d=c[m.charAt(0)].drawn;if(d!==void 0){var A=m.substr(1).match(h.paramRE);if(!(!A||A.lengtht&&(a="X"),a});return b>t&&(l=l.replace(/[\s,]*X.*/,""),v.log("Ignoring extra params in segment "+M)),T+l})}},tj5cqloc:(oe,q,e)=>{"use strict";var h=e("SBrs2Paq");oe.exports={moduleType:"component",name:"shapes",layoutAttributes:e("wZSGLMqc"),supplyLayoutDefaults:e("VHfnmPJe"),supplyDrawNewShapeDefaults:e("RnBLVGpd"),includeBasePlot:e("lGy/M/Cj")("shapes"),calcAutorange:e("rFx0PDKK"),draw:h.draw,drawOne:h.drawOne}},bz6mKfuP:(oe,q,e)=>{"use strict";var h=e("lf8+9Xc7"),v=e("3dGlwK5L"),S=e("xE+ZFgwY").extendDeepAll,i=e("Oq1Cqb7p").overrideAll,n=e("HlG8UEh+"),c=e("A5P9b9BX").templatedArray,f=e("GEN9BI7z"),r=c("step",{visible:{valType:"boolean",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",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",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",description:"Sets the text label to appear on the slider"},value:{valType:"string",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",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(" ")}});oe.exports=i(c("slider",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:r,lenmode:{valType:"enumerated",values:["fraction","pixels"],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,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,description:"Sets the x position (in normalized coordinates) of the slider."},pad:S(v({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",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,description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",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",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:n.transition.easing.values,dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:h({description:"Sets the font of the current value label text."})},font:h({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",dflt:f.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",dflt:f.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:f.railBorderColor,description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:f.railBorderWidth,description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:f.tickLength,description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:f.tickColor,description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:f.minorTickLength,description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")},GEN9BI7z:oe=>{"use strict";oe.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},"9y2XjxqJ":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("JdrF9yG0"),S=e("bz6mKfuP"),i=e("GEN9BI7z"),n=i.name,c=S.steps;oe.exports=function(m,d){v(m,d,{name:n,handleItemDefaults:f})};function f(o,m,d){function A(a,x){return h.coerce(o,m,S,a,x)}for(var M=v(o,m,{name:"steps",handleItemDefaults:r}),b=0,T=0;T{"use strict";var h=e("Lou4tdh8"),v=e("8MlMO9wt"),S=e("/oRevOrA"),i=e("+ELfTWmT"),n=e("0Ft3SWJB"),c=n.strTranslate,f=e("7k8rh0sJ"),r=e("A5P9b9BX").arrayEditor,o=e("GEN9BI7z"),m=e("kca9bvt+"),d=m.LINE_SPACING,A=m.FROM_TL,M=m.FROM_BR;oe.exports=function(D){var z=D._context.staticPlot,H=D._fullLayout,O=T(H,D),U=H._infolayer.selectAll("g."+o.containerClassName).data(O.length>0?[0]:[]);U.enter().append("g").classed(o.containerClassName,!0).style("cursor",z?null:"ew-resize");function Y($){$._commandObserver&&($._commandObserver.remove(),delete $._commandObserver),v.autoMargin(D,b($))}if(U.exit().each(function(){h.select(this).selectAll("g."+o.groupClassName).each(Y)}).remove(),O.length!==0){var ee=U.selectAll("g."+o.groupClassName).data(O,u);ee.enter().append("g").classed(o.groupClassName,!0),ee.exit().each(Y).remove();for(var ne=0;ne0&&(ee=ee.transition().duration(D.transition.duration).ease(D.transition.easing)),ee.attr("transform",c(Y-o.gripWidth*.5,D._dims.currentValueTotalHeight))}}function g(P,D){var z=P._dims;return z.inputAreaStart+o.stepInset+(z.inputAreaLength-2*o.stepInset)*Math.min(1,Math.max(0,D))}function I(P,D){var z=P._dims;return Math.min(1,Math.max(0,(D-o.stepInset-z.inputAreaStart)/(z.inputAreaLength-2*o.stepInset-2*z.inputAreaStart)))}function N(P,D,z){var H=z._dims,O=n.ensureSingle(P,"rect",o.railTouchRectClass,function(U){U.call(F,D,P,z).style("pointer-events","all")});O.attr({width:H.inputAreaLength,height:Math.max(H.inputAreaWidth,o.tickOffset+z.ticklen+H.labelHeight)}).call(S.fill,z.bgcolor).attr("opacity",0),i.setTranslate(O,0,H.currentValueTotalHeight)}function Q(P,D){var z=D._dims,H=z.inputAreaLength-o.railInset*2,O=n.ensureSingle(P,"rect",o.railRectClass);O.attr({width:H,height:o.railWidth,rx:o.railRadius,ry:o.railRadius,"shape-rendering":"crispEdges"}).call(S.stroke,D.bordercolor).call(S.fill,D.bgcolor).style("stroke-width",D.borderwidth+"px"),i.setTranslate(O,o.railInset,(z.inputAreaWidth-o.railWidth)*.5+z.currentValueTotalHeight)}},"4PcZs9au":(oe,q,e)=>{"use strict";var h=e("GEN9BI7z");oe.exports={moduleType:"component",name:h.name,layoutAttributes:e("bz6mKfuP"),supplyLayoutDefaults:e("9y2XjxqJ"),draw:e("k24puNjE")}},"xjYqbXs+":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("yAcToaBS"),S=e("8MlMO9wt"),i=e("R5um7Wku"),n=e("0Ft3SWJB"),c=n.strTranslate,f=e("+ELfTWmT"),r=e("/oRevOrA"),o=e("7k8rh0sJ"),m=e("Tdks4qa7"),d=e("kca9bvt+").OPPOSITE_SIDE,A=/ [XY][0-9]* /;function M(b,T,u){var p=u.propContainer,t=u.propName,l=u.placeholder,a=u.traceIndex,x=u.avoid||{},y=u.attributes,E=u.transform,L=u.containerGroup,F=b._fullLayout,B=1,s=!1,w=p.title,g=(w&&w.text?w.text:"").trim(),I=w&&w.font?w.font:{},N=I.family,Q=I.size,P=I.color,D;t==="title.text"?D="titleText":t.indexOf("axis")!==-1?D="axisTitleText":t.indexOf("colorbar"!==-1)&&(D="colorbarTitleText");var z=b._context.edits[D];g===""?B=0:g.replace(A," % ")===l.replace(A," % ")&&(B=.2,s=!0,z||(g="")),u._meta?g=n.templateString(g,u._meta):F._meta&&(g=n.templateString(g,F._meta));var H=g||z,O;L||(L=n.ensureSingle(F._infolayer,"g","g-"+T),O=F._hColorbarMoveTitle);var U=L.selectAll("text").data(H?[0]:[]);if(U.enter().append("text"),U.text(g).attr("class",T),U.exit().remove(),!H)return L;function Y($){n.syncOrAsync([ee,ne],$)}function ee($){var re;return!E&&O&&(E={}),E?(re="",E.rotate&&(re+="rotate("+[E.rotate,y.x,y.y]+")"),(E.offset||O)&&(re+=c(0,(E.offset||0)-(O||0)))):re=null,$.attr("transform",re),$.style({"font-family":N,"font-size":h.round(Q,2)+"px",fill:r.rgb(P),opacity:B*r.opacity(P),"font-weight":S.fontWeight}).attr(y).call(o.convertToTspans,b),S.previousPromises(b)}function ne($){var re=h.select($.node().parentNode);if(x&&x.selection&&x.side&&g){re.attr("transform",null);var C=d[x.side],R=x.side==="left"||x.side==="top"?-1:1,k=v(x.pad)?x.pad:2,G=f.bBox(re.node()),W={t:0,b:0,l:0,r:0},J=b._fullLayout._reservedMargin;for(var K in J)for(var X in J[K]){var j=J[K][X];W[X]=Math.max(W[X],j)}var ae={left:W.l,top:W.t,right:F.width-W.r,bottom:F.height-W.b},se=x.maxShift||R*(ae[x.side]-G[x.side]),le=0;if(se<0)le=se;else{var ge=x.offsetLeft||0,xe=x.offsetTop||0;G.left-=ge,G.right-=ge,G.top-=xe,G.bottom-=xe,x.selection.each(function(){var ie=f.bBox(this);n.bBoxIntersect(G,ie,k)&&(le=Math.max(le,R*(ie[x.side]-G[C])+k))}),le=Math.min(se,le),p._titleScoot=Math.abs(le)}if(le>0||se<0){var te={left:[-le,0],right:[le,0],top:[0,-le],bottom:[0,le]}[x.side];re.attr("transform",c(te[0],te[1]))}}}U.call(Y);function me(){B=0,s=!0,U.text(l).on("mouseover.opacity",function(){h.select(this).transition().duration(m.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){h.select(this).transition().duration(m.HIDE_PLACEHOLDER).style("opacity",0)})}return z&&(g?U.on(".opacity",null):me(),U.call(o.makeEditable,{gd:b}).on("edit",function($){a!==void 0?i.call("_guiRestyle",b,t,$,a):i.call("_guiRelayout",b,t,$)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Y)}).on("input",function($){this.text($||" ").call(o.positionText,y.x,y.y)})),U.classed("js-placeholder",s),L}oe.exports={draw:M}},"3C3qwmq/":(oe,q,e)=>{"use strict";var h=e("lf8+9Xc7"),v=e("Khpmx9F5"),S=e("xE+ZFgwY").extendFlat,i=e("Oq1Cqb7p").overrideAll,n=e("3dGlwK5L"),c=e("A5P9b9BX").templatedArray,f=c("button",{visible:{valType:"boolean",description:"Determines whether or not this button is visible."},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets a 2nd set of `args`,","these arguments values are passed to the Plotly","method set in `method` when clicking this button while in the active state.","Use this to create toggle buttons."].join(" ")},label:{valType:"string",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});oe.exports=i(c("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:f,x:{valType:"number",min:-2,max:3,dflt:-.05,description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:S(n({editType:"arraydraw"}),{description:"Sets the padding around the buttons or dropdown menu."}),font:h({description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:v.borderLine,description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw",description:"Sets the width (in px) of the border enclosing the update menu."}}),"arraydraw","from-root")},Zf49CTZG:oe=>{"use strict";oe.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}},"J+WNd9JU":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("JdrF9yG0"),S=e("3C3qwmq/"),i=e("Zf49CTZG"),n=i.name,c=S.buttons;oe.exports=function(m,d){var A={name:n,handleItemDefaults:f};v(m,d,A)};function f(o,m,d){function A(T,u){return h.coerce(o,m,S,T,u)}var M=v(o,m,{name:"buttons",handleItemDefaults:r}),b=A("visible",M.length>0);b&&(A("active"),A("direction"),A("type"),A("showactive"),A("x"),A("y"),h.noneOrAll(o,m,["x","y"]),A("xanchor"),A("yanchor"),A("pad.t"),A("pad.r"),A("pad.b"),A("pad.l"),h.coerceFont(A,"font",d.font),A("bgcolor",d.paper_bgcolor),A("bordercolor"),A("borderwidth"))}function r(o,m){function d(M,b){return h.coerce(o,m,c,M,b)}var A=d("visible",o.method==="skip"||Array.isArray(o.args));A&&(d("method"),d("args"),d("args2"),d("label"),d("execute"))}},"0Ed4c6gV":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("8MlMO9wt"),S=e("/oRevOrA"),i=e("+ELfTWmT"),n=e("0Ft3SWJB"),c=e("7k8rh0sJ"),f=e("A5P9b9BX").arrayEditor,r=e("kca9bvt+").LINE_SPACING,o=e("Zf49CTZG"),m=e("Y84ol+tU");oe.exports=function(I){var N=I._fullLayout,Q=n.filterVisible(N[o.name]);function P(ne){v.autoMargin(I,B(ne))}var D=N._menulayer.selectAll("g."+o.containerClassName).data(Q.length>0?[0]:[]);if(D.enter().append("g").classed(o.containerClassName,!0).style("cursor","pointer"),D.exit().each(function(){h.select(this).selectAll("g."+o.headerGroupClassName).each(P)}).remove(),Q.length!==0){var z=D.selectAll("g."+o.headerGroupClassName).data(Q,d);z.enter().append("g").classed(o.headerGroupClassName,!0);for(var H=n.ensureSingle(D,"g",o.dropdownButtonGroupClassName,function(ne){ne.style("pointer-events","all")}),O=0;O{"use strict";var h=e("Zf49CTZG");oe.exports={moduleType:"component",name:h.name,layoutAttributes:e("3C3qwmq/"),supplyLayoutDefaults:e("J+WNd9JU"),draw:e("0Ed4c6gV")}},"Y84ol+tU":(oe,q,e)=>{"use strict";oe.exports=n;var h=e("Lou4tdh8"),v=e("/oRevOrA"),S=e("+ELfTWmT"),i=e("0Ft3SWJB");function n(c,f,r){this.gd=c,this.container=f,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}n.barWidth=2,n.barLength=20,n.barRadius=2,n.barPad=1,n.barColor="#808BA4",n.prototype.enable=function(f,r,o){var m=this.gd._fullLayout,d=m.width,A=m.height;this.position=f;var M=this.position.l,b=this.position.w,T=this.position.t,u=this.position.h,p=this.position.direction,t=p==="down",l=p==="left",a=p==="right",x=p==="up",y=b,E=u,L,F,B,s;!t&&!l&&!a&&!x&&(this.position.direction="down",t=!0);var w=t||x;w?(L=M,F=L+y,t?(B=T,s=Math.min(B+E,A),E=s-B):(s=T+E,B=Math.max(s-E,0),E=s-B)):(B=T,s=B+E,l?(F=M+y,L=Math.max(F-y,0),y=F-L):(L=M,F=Math.min(L+y,d),y=F-L)),this._box={l:L,t:B,w:y,h:E};var g=b>y,I=n.barLength+2*n.barPad,N=n.barWidth+2*n.barPad,Q=M,P=T+u;P+N>A&&(P=A-N);var D=this.container.selectAll("rect.scrollbar-horizontal").data(g?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-horizontal",!0).call(v.fill,n.barColor),g?(this.hbar=D.attr({rx:n.barRadius,ry:n.barRadius,x:Q,y:P,width:I,height:N}),this._hbarXMin=Q+I/2,this._hbarTranslateMax=y-I):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=u>E,H=n.barWidth+2*n.barPad,O=n.barLength+2*n.barPad,U=M+b,Y=T;U+H>d&&(U=d-H);var ee=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);ee.exit().on(".drag",null).remove(),ee.enter().append("rect").classed("scrollbar-vertical",!0).call(v.fill,n.barColor),z?(this.vbar=ee.attr({rx:n.barRadius,ry:n.barRadius,x:U,y:Y,width:H,height:O}),this._vbarYMin=Y+O/2,this._vbarTranslateMax=E-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ne=this.id,me=L-.5,$=z?F+H+.5:F+.5,re=B-.5,C=g?s+N+.5:s+.5,R=m._topdefs.selectAll("#"+ne).data(g||z?[0]:[]);if(R.exit().remove(),R.enter().append("clipPath").attr("id",ne).append("rect"),g||z?(this._clipRect=R.select("rect").attr({x:Math.floor(me),y:Math.floor(re),width:Math.ceil($)-Math.floor(me),height:Math.ceil(C)-Math.floor(re)}),this.container.call(S.setClipUrl,ne,this.gd),this.bg.attr({x:M,y:T,width:b,height:u})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(S.setClipUrl,null),delete this._clipRect),g||z){var k=h.behavior.drag().on("dragstart",function(){h.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(k);var G=h.behavior.drag().on("dragstart",function(){h.event.sourceEvent.preventDefault(),h.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));g&&this.hbar.on(".drag",null).call(G),z&&this.vbar.on(".drag",null).call(G)}this.setTranslate(r,o)},n.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(S.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)},n.prototype._onBoxDrag=function(){var f=this.translateX,r=this.translateY;this.hbar&&(f-=h.event.dx),this.vbar&&(r-=h.event.dy),this.setTranslate(f,r)},n.prototype._onBoxWheel=function(){var f=this.translateX,r=this.translateY;this.hbar&&(f+=h.event.deltaY),this.vbar&&(r+=h.event.deltaY),this.setTranslate(f,r)},n.prototype._onBarDrag=function(){var f=this.translateX,r=this.translateY;if(this.hbar){var o=f+this._hbarXMin,m=o+this._hbarTranslateMax,d=i.constrain(h.event.x,o,m),A=(d-o)/(m-o),M=this.position.w-this._box.w;f=A*M}if(this.vbar){var b=r+this._vbarYMin,T=b+this._vbarTranslateMax,u=i.constrain(h.event.y,b,T),p=(u-b)/(T-b),t=this.position.h-this._box.h;r=p*t}this.setTranslate(f,r)},n.prototype.setTranslate=function(f,r){var o=this.position.w-this._box.w,m=this.position.h-this._box.h;if(f=i.constrain(f||0,0,o),r=i.constrain(r||0,0,m),this.translateX=f,this.translateY=r,this.container.call(S.setTranslate,this._box.l-this.position.l-f,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+f-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var d=f/o;this.hbar.call(S.setTranslate,f+d*this._hbarTranslateMax,r)}if(this.vbar){var A=r/m;this.vbar.call(S.setTranslate,f,r+A*this._vbarTranslateMax)}}},"kca9bvt+":oe=>{"use strict";oe.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"}}},SWM1uxTh:oe=>{"use strict";oe.exports={axisRefDescription:function(q,e,h){return["If set to a",q,"axis id (e.g. *"+q+"* or","*"+q+"2*), the `"+q+"` position refers to a",q,"coordinate. If set to *paper*, the `"+q+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+h+"). If set to a",q,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+q+"2 domain* refers to the domain of the second",q," axis and a",q,"position of 0.5 refers to the","point between the",e,"and the",h,"of the domain of the","second",q,"axis."].join(" ")}}},"+pJPwNOU":(oe,q)=>{"use strict";q.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],q.STYLE=q.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},nfwe4Djo:(oe,q)=>{"use strict";q.xmlns="http://www.w3.org/2000/xmlns/",q.svg="http://www.w3.org/2000/svg",q.xlink="http://www.w3.org/1999/xlink",q.svgAttrs={xmlns:q.svg,"xmlns:xlink":q.xlink}},RPvPhHjM:(oe,q,e)=>{"use strict";q.version=e("dH7CFEq5").version,e("3WWdj8FQ"),e("3nJE6OHK");for(var h=e("R5um7Wku"),v=q.register=h.register,S=e("rDEaHUTK"),i=Object.keys(S),n=0;n{"use strict";oe.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},NLf4w7dD:oe=>{"use strict";oe.exports=function(e){var h=e._fullLayout;h._glcanvas&&h._glcanvas.size()&&h._glcanvas.each(function(v){v.regl&&v.regl.clear({color:!0,depth:!0})})}},"6NEikfh9":(oe,q,e)=>{"use strict";var h=e("CVZcSkmN").EventEmitter,v={init:function(S){if(S._ev instanceof h)return S;var i=new h,n=new h;return S._ev=i,S._internalEv=n,S.on=i.on.bind(i),S.once=i.once.bind(i),S.removeListener=i.removeListener.bind(i),S.removeAllListeners=i.removeAllListeners.bind(i),S._internalOn=n.on.bind(n),S._internalOnce=n.once.bind(n),S._removeInternalListener=n.removeListener.bind(n),S._removeAllInternalListeners=n.removeAllListeners.bind(n),S.emit=function(c,f){typeof jQuery<"u"&&jQuery(S).trigger(c,f),i.emit(c,f),n.emit(c,f)},S},triggerHandler:function(S,i,n){var c,f;typeof jQuery<"u"&&(c=jQuery(S).triggerHandler(i,n));var r=S._ev;if(!r)return c;var o=r._events[i];if(!o)return c;function m(A){if(A.listener){if(r.removeListener(i,A.listener),!A.fired)return A.fired=!0,A.listener.apply(r,[n])}else return A.apply(r,[n])}o=Array.isArray(o)?o:[o];var d;for(d=0;d{"use strict";var h=e("LnvsDkyo"),v="data-savedcursor",S="!!";oe.exports=function(n,c){var f=n.attr(v);if(c){if(!f){for(var r=(n.attr("class")||"").split(" "),o=0;o{"use strict";var h=e("mi7jljcm").dot,v=e("46lPXjlm").BADNUM,S=oe.exports={};S.tester=function(n){var c=n.slice(),f=c[0][0],r=f,o=c[0][1],m=o,d;for((c[c.length-1][0]!==c[0][0]||c[c.length-1][1]!==c[0][1])&&c.push(c[0]),d=1;dr||x===v||xm||l&&M(t))}function T(t,l){var a=t[0],x=t[1];if(a===v||ar||x===v||xm)return!1;var y=c.length,E=c[0][0],L=c[0][1],F=0,B,s,w,g,I;for(B=1;BMath.max(s,E)||x>Math.max(w,L)))if(xd||Math.abs(h(T,M))>r)return!0;return!1},S.filter=function(n,c){var f=[n[0]],r=0,o=0;function m(A){n.push(A);var M=f.length,b=r;f.splice(o+1);for(var T=b+1;T1){var d=n.pop();m(d)}return{addPt:m,raw:n,filtered:f}}},nA340hA2:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("OrkhUD6z").dfltConfig;function S(n,c){for(var f=[],r,o=0;ov.queueLength&&(n.undoQueue.queue.shift(),n.undoQueue.index--)},i.startSequence=function(n){n.undoQueue=n.undoQueue||{index:0,queue:[],sequence:!1},n.undoQueue.sequence=!0,n.undoQueue.beginSequence=!0},i.stopSequence=function(n){n.undoQueue=n.undoQueue||{index:0,queue:[],sequence:!1},n.undoQueue.sequence=!1,n.undoQueue.beginSequence=!1},i.undo=function(c){var f,r;if(!(c.undoQueue===void 0||isNaN(c.undoQueue.index)||c.undoQueue.index<=0)){for(c.undoQueue.index--,f=c.undoQueue.queue[c.undoQueue.index],c.undoQueue.inSequence=!0,r=0;r=c.undoQueue.queue.length)){for(f=c.undoQueue.queue[c.undoQueue.index],c.undoQueue.inSequence=!0,r=0;r{"use strict";oe.exports=function(e,h){(e.attr("class")||"").split(" ").forEach(function(v){v.indexOf("cursor-")===0&&e.classed(v,!1)}),h&&e.classed("cursor-"+h,!0)}},SGmOA3h7:(oe,q,e)=>{"use strict";var h=e("+pJPwNOU"),v=e("+ELfTWmT"),S=e("0Ft3SWJB"),i=null;function n(){if(i!==null)return i;i=!1;var c=S.isIE()||S.isSafari()||S.isIOS();if(window.navigator.userAgent&&!c){var f=Array.from(h.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")i=f.some(function(A){return r.apply(null,A)});else{var o=v.tester.append("image").attr("style",h.STYLE),m=window.getComputedStyle(o.node()),d=m.imageRendering;i=f.some(function(A){var M=A[1];return d===M||d===M.toLowerCase()}),o.remove()}}return i}oe.exports=n},"7k8rh0sJ":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("0Ft3SWJB"),S=v.strTranslate,i=e("nfwe4Djo"),n=e("kca9bvt+").LINE_SPACING,c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;q.convertToTspans=function(z,H,O){var U=z.text(),Y=!z.attr("data-notex")&&H&&H._context.typesetMath&&typeof MathJax<"u"&&U.match(c),ee=h.select(z.node().parentNode);if(ee.empty())return;var ne=z.attr("class")?z.attr("class").split(" ")[0]:"text";ne+="-math",ee.selectAll("svg."+ne).remove(),ee.selectAll("g."+ne+"-group").remove(),z.style("display",null).attr({"data-unformatted":U,"data-math":"N"});function me(){ee.empty()||(ne=z.attr("class")+"-math",ee.select("svg."+ne).remove()),z.text("").style("white-space","pre");var $=N(z.node(),U);$&&z.style("pointer-events","all"),q.positionText(z),O&&O.call(z)}return Y?(H&&H._promises||[]).push(new Promise(function($){z.style("display","none");var re=parseInt(z.node().style.fontSize,10),C={fontSize:re};d(Y[2],C,function(R,k,G){ee.selectAll("svg."+ne).remove(),ee.selectAll("g."+ne+"-group").remove();var W=R&&R.select("svg");if(!W||!W.node()){me(),$();return}var J=ee.append("g").classed(ne+"-group",!0).attr({"pointer-events":"none","data-unformatted":U,"data-math":"Y"});J.node().appendChild(W.node()),k&&k.node()&&W.node().insertBefore(k.node().cloneNode(!0),W.node().firstChild);var K=G.width,X=G.height;W.attr({class:ne,height:X,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var j=z.node().style.fill||"black",ae=W.select("g");ae.attr({fill:j,stroke:j});var se=ae.node().getBoundingClientRect(),le=se.width,ge=se.height;(le>K||ge>X)&&(W.style("overflow","hidden"),se=W.node().getBoundingClientRect(),le=se.width,ge=se.height);var xe=+z.attr("x"),te=+z.attr("y"),ie=re||z.node().getBoundingClientRect().height,fe=-ie/4;if(ne[0]==="y")J.attr({transform:"rotate("+[-90,xe,te]+")"+S(-le/2,fe-ge/2)});else if(ne[0]==="l")te=fe-ge/2;else if(ne[0]==="a"&&ne.indexOf("atitle")!==0)xe=0,te=fe;else{var ye=z.attr("text-anchor");xe=xe-le*(ye==="middle"?.5:ye==="end"?1:0),te=te+fe-ge/2}W.attr({x:xe,y:te}),O&&O.call(z,J),$(J)})})):me(),z};var f=/(<|<|<)/g,r=/(>|>|>)/g;function o(z){return z.replace(f,"\\lt ").replace(r,"\\gt ")}var m=[["$","$"],["\\(","\\)"]];function d(z,H,O){var U=parseInt((MathJax.version||"").split(".")[0]);if(U!==2&&U!==3){v.warn("No MathJax version:",MathJax.version);return}var Y,ee,ne,me,$=function(){return ee=v.extendDeepAll({},MathJax.Hub.config),ne=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:m},displayAlign:"left"})},re=function(){ee=v.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=m},C=function(){if(Y=MathJax.Hub.config.menuSettings.renderer,Y!=="SVG")return MathJax.Hub.setRenderer("SVG")},R=function(){Y=MathJax.config.startup.output,Y!=="svg"&&(MathJax.config.startup.output="svg")},k=function(){var j="math-output-"+v.randstr({},64);me=h.select("body").append("div").attr({id:j}).style({visibility:"hidden",position:"absolute","font-size":H.fontSize+"px"}).text(o(z));var ae=me.node();return U===2?MathJax.Hub.Typeset(ae):MathJax.typeset([ae])},G=function(){var j=me.select(U===2?".MathJax_SVG":".MathJax"),ae=!j.empty()&&me.select("svg").node();if(!ae)v.log("There was an error in the tex syntax.",z),O();else{var se=ae.getBoundingClientRect(),le;U===2?le=h.select("body").select("#MathJax_SVG_glyphs"):le=j.select("defs"),O(j,le,se)}me.remove()},W=function(){if(Y!=="SVG")return MathJax.Hub.setRenderer(Y)},J=function(){Y!=="svg"&&(MathJax.config.startup.output=Y)},K=function(){return ne!==void 0&&(MathJax.Hub.processSectionDelay=ne),MathJax.Hub.Config(ee)},X=function(){MathJax.config=ee};U===2?MathJax.Hub.Queue($,C,k,G,W,K):U===3&&(re(),R(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){k(),G(),J(),X()}))}var A={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"},M={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},T="\u200B",u=["http:","https:","mailto:","",void 0,":"],p=q.NEWLINES=/(\r\n?|\n)/g,t=/(<[^<>]*>)/,l=/<(\/?)([^ >]*)(\s+(.*))?>/i,a=//i;q.BR_TAG_ALL=//gi;var x=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,y=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,E=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,L=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function F(z,H){if(!z)return null;var O=z.match(H),U=O&&(O[3]||O[4]);return U&&g(U)}var B=/(^|;)\s*color:/;q.plainText=function(z,H){H=H||{};for(var O=H.len!==void 0&&H.len!==-1?H.len:1/0,U=H.allowedTags!==void 0?H.allowedTags:["br"],Y="...",ee=Y.length,ne=z.split(t),me=[],$="",re=0,C=0;Cee?me.push(R.substr(0,J-ee)+Y):me.push(R.substr(0,J));break}$=""}}return me.join("")};var s={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},w=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function g(z){return z.replace(w,function(H,O){var U;return O.charAt(0)==="#"?U=I(O.charAt(1)==="x"?parseInt(O.substr(2),16):parseInt(O.substr(1),10)):U=s[O],U||H})}q.convertEntities=g;function I(z){if(!(z>1114111)){var H=String.fromCodePoint;if(H)return H(z);var O=String.fromCharCode;return z<=65535?O(z):O((z>>10)+55232,z%1024+56320)}}function N(z,H){H=H.replace(p," ");var O=!1,U=[],Y,ee=-1;function ne(){ee++;var ge=document.createElementNS(i.svg,"tspan");h.select(ge).attr({class:"line",dy:ee*n+"em"}),z.appendChild(ge),Y=ge;var xe=U;if(U=[{node:ge}],xe.length>1)for(var te=1;te.",H);return}var xe=U.pop();ge!==xe.type&&v.log("Start tag <"+xe.type+"> doesnt match end tag <"+ge+">. Pretending it did match.",H),Y=U[U.length-1].node}var C=a.test(H);C?ne():(Y=z,U=[{node:z}]);for(var R=H.split(t),k=0;k{"use strict";oe.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},tpTRgu4b:oe=>{"use strict";oe.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},"/uZtpOd0":(oe,q,e)=>{"use strict";var h=e("R5um7Wku");oe.exports=function(S){for(var i=h.layoutArrayContainers,n=h.layoutArrayRegexes,c=S.split("[")[0],f,r,o=0;o{"use strict";var h=e("yAcToaBS"),v=e("UACaFdP/"),S=e("R5um7Wku"),i=e("0Ft3SWJB"),n=e("8MlMO9wt"),c=e("nXHY852p"),f=e("/oRevOrA"),r=c.cleanId,o=c.getFromTrace,m=S.traceIs;q.clearPromiseQueue=function(a){Array.isArray(a._promises)&&a._promises.length>0&&i.log("Clearing previous rejected promises from queue."),a._promises=[]},q.cleanLayout=function(a){var x,y;a||(a={}),a.xaxis1&&(a.xaxis||(a.xaxis=a.xaxis1),delete a.xaxis1),a.yaxis1&&(a.yaxis||(a.yaxis=a.yaxis1),delete a.yaxis1),a.scene1&&(a.scene||(a.scene=a.scene1),delete a.scene1);var E=(n.subplotsRegistry.cartesian||{}).attrRegex,L=(n.subplotsRegistry.polar||{}).attrRegex,F=(n.subplotsRegistry.ternary||{}).attrRegex,B=(n.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(a);for(x=0;x3?(C.x=1.02,C.xanchor="left"):C.x<-2&&(C.x=-.02,C.xanchor="right"),C.y>3?(C.y=1.02,C.yanchor="bottom"):C.y<-2&&(C.y=-.02,C.yanchor="top")),A(a),a.dragmode==="rotate"&&(a.dragmode="orbit"),f.clean(a),a.template&&a.template.layout&&q.cleanLayout(a.template.layout),a};function d(a,x){var y=a[x],E=x.charAt(0);y&&y!=="paper"&&(a[x]=r(y,E,!0))}function A(a){a&&((typeof a.title=="string"||typeof a.title=="number")&&(a.title={text:a.title}),x("titlefont","font"),x("titleposition","position"),x("titleside","side"),x("titleoffset","offset"));function x(y,E){var L=a[y],F=a.title&&a.title[E];L&&!F&&(a.title||(a.title={}),a.title[E]=a[y],delete a[y])}}q.cleanData=function(a){for(var x=0;x0)return a.substr(0,x)}q.hasParent=function(a,x){for(var y=t(x);y;){if(y in a)return!0;y=t(y)}return!1};var l=["x","y","z"];q.clearAxisTypes=function(a,x,y){for(var E=0;E{"use strict";var h=e("rQ2OQY7Q");q._doPlot=h._doPlot,q.newPlot=h.newPlot,q.restyle=h.restyle,q.relayout=h.relayout,q.redraw=h.redraw,q.update=h.update,q._guiRestyle=h._guiRestyle,q._guiRelayout=h._guiRelayout,q._guiUpdate=h._guiUpdate,q._storeDirectGUIEdit=h._storeDirectGUIEdit,q.react=h.react,q.extendTraces=h.extendTraces,q.prependTraces=h.prependTraces,q.addTraces=h.addTraces,q.deleteTraces=h.deleteTraces,q.moveTraces=h.moveTraces,q.purge=h.purge,q.addFrames=h.addFrames,q.deleteFrames=h.deleteFrames,q.animate=h.animate,q.setPlotConfig=h.setPlotConfig;var v=e("5u0twCBb").getGraphDiv,S=e("SBrs2Paq").eraseActiveShape;q.deleteActiveShape=function(n){return S(v(n))},q.toImage=e("wIoo18WF"),q.validate=e("TcVG9fhs"),q.downloadImage=e("FUuDuW8n");var i=e("X7w0xA8Y");q.makeTemplate=i.makeTemplate,q.validateTemplate=i.validateTemplate},kgrieRGX:(oe,q,e)=>{"use strict";var h=e("btK4Orgn"),v=e("lHLBDM7v"),S=e("jGt2471r"),i=e("WoUvVyRa").sorterAsc,n=e("R5um7Wku");q.containerArrayMatch=e("/uZtpOd0");var c=q.isAddVal=function(o){return o==="add"||h(o)},f=q.isRemoveVal=function(o){return o===null||o==="remove"};q.applyContainerArrayChanges=function(o,m,d,A,M){var b=m.astr,T=n.getComponentMethod(b,"supplyLayoutDefaults"),u=n.getComponentMethod(b,"draw"),p=n.getComponentMethod(b,"drawOne"),t=A.replot||A.recalc||T===v||u===v,l=o.layout,a=o._fullLayout;if(d[""]){Object.keys(d).length>1&&S.warn("Full array edits are incompatible with other edits",b);var x=d[""][""];if(f(x))m.set(null);else if(Array.isArray(x))m.set(x);else return S.warn("Unrecognized full array edit value",b,x),!0;return t?!1:(T(l,a),u(o),!0)}var y=Object.keys(d).map(Number).sort(i),E=m.get(),L=E||[],F=M(a,b).get(),B=[],s=-1,w=L.length,g,I,N,Q,P,D,z,H;for(g=0;gL.length-(z?0:1)){S.warn("index out of range",b,N);continue}if(D!==void 0)P.length>1&&S.warn("Insertion & removal are incompatible with edits to the same index.",b,N),f(D)?B.push(N):z?(D==="add"&&(D={}),L.splice(N,0,D),F&&F.splice(N,0,{})):S.warn("Unrecognized full object edit value",b,N,D),s===-1&&(s=N);else for(I=0;I=0;g--)L.splice(B[g],1),F&&F.splice(B[g],1);if(L.length?E||m.set(L):m.set(null),t)return!1;if(T(l,a),p!==v){var O;if(s===-1)O=y;else{for(w=Math.max(L.length,w),O=[],g=0;g=s));g++)O.push(N);for(g=s;g{"use strict";var h=e("Lou4tdh8"),v=e("yAcToaBS"),S=e("7rWsZTkl"),i=e("0Ft3SWJB"),n=i.nestedProperty,c=e("6NEikfh9"),f=e("nA340hA2"),r=e("R5um7Wku"),o=e("dbVsU3X7"),m=e("8MlMO9wt"),d=e("4JfnfFRI"),A=e("EsoX3nEB"),M=e("zSF5pjBO"),b=e("+ELfTWmT"),T=e("/oRevOrA"),u=e("Fi1vqbI+").initInteractions,p=e("nfwe4Djo"),t=e("QvhOTlPp").clearOutline,l=e("OrkhUD6z").dfltConfig,a=e("kgrieRGX"),x=e("Hti1TomT"),y=e("PM37TqjZ"),E=e("Oq1Cqb7p"),L=e("Vq8+Ip3e").AX_NAME_PATTERN,F=0,B=5;function s(_,ve,de,pe){var be;if(_=i.getGraphDiv(_),c.init(_),i.isPlainObject(ve)){var we=ve;ve=we.data,de=we.layout,pe=we.config,be=we.frames}var Je=c.triggerHandler(_,"plotly_beforeplot",[ve,de,pe]);if(Je===!1)return Promise.reject();!ve&&!de&&!i.isPlotDiv(_)&&i.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",_);function Ze(){if(be)return q.addFrames(_,be)}Q(_,pe),de||(de={}),h.select(_).classed("js-plotly-plot",!0),b.makeTester(),Array.isArray(_._promises)||(_._promises=[]);var Ee=(_.data||[]).length===0&&Array.isArray(ve);Array.isArray(ve)&&(x.cleanData(ve),Ee?_.data=ve:_.data.push.apply(_.data,ve),_.empty=!1),(!_.layout||Ee)&&(_.layout=x.cleanLayout(de)),m.supplyDefaults(_);var Le=_._fullLayout,Oe=Le._has("cartesian");Le._replotting=!0,(Ee||Le._shouldCreateBgLayer)&&(We(_),Le._shouldCreateBgLayer&&delete Le._shouldCreateBgLayer),b.initGradients(_),b.initPatterns(_),Ee&&d.saveShowSpikeInitial(_);var at=!_.calcdata||_.calcdata.length!==(_._fullData||[]).length;at&&m.doCalcdata(_);for(var ft=0;ft<_.calcdata.length;ft++)_.calcdata[ft][0].trace=_._fullData[ft];_._context.responsive?_._responsiveChartHandler||(_._responsiveChartHandler=function(){i.isHidden(_)||m.resize(_)},window.addEventListener("resize",_._responsiveChartHandler)):i.clearResponsive(_);var ht=i.extendFlat({},Le._size),bt=0;function Mt(){for(var ct=Le._basePlotModules,St=0;St=_.data.length||be<-_.data.length)throw new Error(de+" must be valid indices for gd.data.");if(ve.indexOf(be,pe+1)>-1||be>=0&&ve.indexOf(-_.data.length+be)>-1||be<0&&ve.indexOf(_.data.length+be)>-1)throw new Error("each index in "+de+" must be unique.")}}function O(_,ve,de){if(!Array.isArray(_.data))throw new Error("gd.data must be an array.");if(typeof ve>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(ve)||(ve=[ve]),H(_,ve,"currentIndices"),typeof de<"u"&&!Array.isArray(de)&&(de=[de]),typeof de<"u"&&H(_,de,"newIndices"),typeof de<"u"&&ve.length!==de.length)throw new Error("current and new indices must be of equal length.")}function U(_,ve,de){var pe,be;if(!Array.isArray(_.data))throw new Error("gd.data must be an array.");if(typeof ve>"u")throw new Error("traces must be defined.");for(Array.isArray(ve)||(ve=[ve]),pe=0;pe"u")throw new Error("indices must be an integer or array of integers");H(_,de,"indices");for(var we in ve){if(!Array.isArray(ve[we])||ve[we].length!==de.length)throw new Error("attribute "+we+" must be an array of length equal to indices array length");if(be&&(!(we in pe)||!Array.isArray(pe[we])||pe[we].length!==ve[we].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")}}function ee(_,ve,de,pe){var be=i.isPlainObject(pe),we=[],Je,Ze,Ee,Le,Oe;Array.isArray(de)||(de=[de]),de=z(de,_.data.length-1);for(var at in ve)for(var ft=0;ft=0&&Oe=0&&Oe"u")return Le=q.redraw(_),f.add(_,be,Je,we,Ze),Le;Array.isArray(de)||(de=[de]);try{O(_,pe,de)}catch(Oe){throw _.data.splice(_.data.length-ve.length,ve.length),Oe}return f.startSequence(_),f.add(_,be,Je,we,Ze),Le=q.moveTraces(_,pe,de),f.stopSequence(_),Le}function R(_,ve){_=i.getGraphDiv(_);var de=[],pe=q.addTraces,be=R,we=[_,de,ve],Je=[_,ve],Ze,Ee;if(typeof ve>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(ve)||(ve=[ve]),H(_,ve,"indices"),ve=z(ve,_.data.length-1),ve.sort(i.sorterDes),Ze=0;Ze"u")for(de=[],Le=0;Le-1&&we.indexOf("grouptitlefont")===-1?Ze(we,we.replace("titlefont","title.font")):we.indexOf("titleposition")>-1?Ze(we,we.replace("titleposition","title.position")):we.indexOf("titleside")>-1?Ze(we,we.replace("titleside","title.side")):we.indexOf("titleoffset")>-1&&Ze(we,we.replace("titleoffset","title.offset"));function Ze(Ee,Le){_[Le]=_[Ee],delete _[Ee]}}function se(_,ve,de){_=i.getGraphDiv(_),x.clearPromiseQueue(_);var pe={};if(typeof ve=="string")pe[ve]=de;else if(i.isPlainObject(ve))pe=i.extendFlat({},ve);else return i.warn("Relayout fail.",ve,de),Promise.reject();Object.keys(pe).length&&(_.changed=!0);var be=fe(_,pe),we=be.flags;we.calc&&(_.calcdata=void 0);var Je=[m.previousPromises];we.layoutReplot?Je.push(y.layoutReplot):Object.keys(pe).length&&(le(_,we,be)||m.supplyDefaults(_),we.legend&&Je.push(y.doLegend),we.layoutstyle&&Je.push(y.layoutStyles),we.axrange&&ge(Je,be.rangesAltered),we.ticks&&Je.push(y.doTicksRelayout),we.modebar&&Je.push(y.doModeBar),we.camera&&Je.push(y.doCamera),we.colorbars&&Je.push(y.doColorBars),Je.push(w)),Je.push(m.rehover,m.redrag,m.reselect),f.add(_,se,[_,be.undoit],se,[_,be.redoit]);var Ze=i.syncOrAsync(Je,_);return(!Ze||!Ze.then)&&(Ze=Promise.resolve(_)),Ze.then(function(){return _.emit("plotly_relayout",be.eventData),_})}function le(_,ve,de){var pe=_._fullLayout;if(!ve.axrange)return!1;for(var be in ve)if(be!=="axrange"&&ve[be])return!1;var we,Je,Ze=function(ht,bt){return i.coerce(we,Je,M,ht,bt)},Ee={};for(var Le in de.rangesAltered){var Oe=d.id2name(Le);if(we=_.layout[Oe],Je=pe[Oe],A(we,Je,Ze,Ee),Je._matchGroup){for(var at in Je._matchGroup)if(at!==Le){var ft=pe[d.id2name(at)];ft.autorange=Je.autorange,ft.range=Je.range.slice(),ft._input.range=Je.range.slice()}}}return!0}function ge(_,ve){var de=ve?function(pe){var be=[],we=!0;for(var Je in ve){var Ze=d.getFromId(pe,Je);if(be.push(Je),(Ze.ticklabelposition||"").indexOf("inside")!==-1&&Ze._anchorAxis&&be.push(Ze._anchorAxis._id),Ze._matchGroup)for(var Ee in Ze._matchGroup)ve[Ee]||be.push(Ee)}return d.draw(pe,be,{skipTitle:we})}:function(pe){return d.draw(pe,"redraw")};_.push(t,y.doAutoRangeAndConstraints,de,y.drawData,y.finalDraw)}var xe=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,te=/^[xyz]axis[0-9]*\.autorange$/,ie=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function fe(_,ve){var de=_.layout,pe=_._fullLayout,be=pe._guiEditing,we=J(pe._preGUI,be),Je=Object.keys(ve),Ze=d.list(_),Ee=i.extendDeepAll({},ve),Le={},Oe,at,ft;for(ae(ve),Je=Object.keys(ve),at=0;at0&&typeof ct.parts[zt]!="string";)zt--;var mt=ct.parts[zt],Z=ct.parts[zt-1]+"."+mt,V=ct.parts.slice(0,zt).join("."),Te=n(_.layout,V).get(),Ae=n(pe,V).get(),ke=ct.get();if(St!==void 0){Tt[yt]=St,wt[yt]=mt==="reverse"?St:W(ke);var Re=o.getLayoutValObject(pe,ct.parts);if(Re&&Re.impliedEdits&&St!==null)for(var ze in Re.impliedEdits)pt(i.relativeAttr(yt,ze),Re.impliedEdits[ze]);if(["width","height"].indexOf(yt)!==-1)if(St){pt("autosize",null);var Ce=yt==="height"?"width":"height";pt(Ce,pe[Ce])}else pe[yt]=_._initialAutoSize[yt];else if(yt==="autosize")pt("width",St?null:pe.width),pt("height",St?null:pe.height);else if(Z.match(xe))$e(Z),n(pe,V+"._inputRange").set(null);else if(Z.match(te)){$e(Z),n(pe,V+"._inputRange").set(null);var Se=n(pe,V).get();Se._inputDomain&&(Se._input.domain=Se._inputDomain.slice())}else Z.match(ie)&&n(pe,V+"._inputDomain").set(null);if(mt==="type"){gt=Te;var Ne=Ae.type==="linear"&&St==="log",Ve=Ae.type==="log"&&St==="linear";if(Ne||Ve){if(!gt||!gt.range)pt(V+".autorange",!0);else if(Ae.autorange)Ne&&(gt.range=gt.range[1]>gt.range[0]?[1,2]:[2,1]);else{var Xe=gt.range[0],qe=gt.range[1];Ne?(Xe<=0&&qe<=0&&pt(V+".autorange",!0),Xe<=0?Xe=qe/1e6:qe<=0&&(qe=Xe/1e6),pt(V+".range[0]",Math.log(Xe)/Math.LN10),pt(V+".range[1]",Math.log(qe)/Math.LN10)):(pt(V+".range[0]",Math.pow(10,Xe)),pt(V+".range[1]",Math.pow(10,qe)))}Array.isArray(pe._subplots.polar)&&pe._subplots.polar.length&&pe[ct.parts[0]]&&ct.parts[1]==="radialaxis"&&delete pe[ct.parts[0]]._subplot.viewInitial["radialaxis.range"],r.getComponentMethod("annotations","convertCoords")(_,Ae,St,pt),r.getComponentMethod("images","convertCoords")(_,Ae,St,pt)}else pt(V+".autorange",!0),pt(V+".range",null);n(pe,V+"._inputRange").set(null)}else if(mt.match(L)){var tt=n(pe,yt).get(),et=(St||{}).type;(!et||et==="-")&&(et="linear"),r.getComponentMethod("annotations","convertCoords")(_,tt,et,pt),r.getComponentMethod("images","convertCoords")(_,tt,et,pt)}var lt=a.containerArrayMatch(yt);if(lt){Oe=lt.array,at=lt.index;var ut=lt.property,dt=Re||{editType:"calc"};at!==""&&ut===""&&(a.isAddVal(St)?wt[yt]=null:a.isRemoveVal(St)?wt[yt]=(n(de,Oe).get()||[])[at]:i.warn("unrecognized full object value",ve)),E.update(it,dt),Le[Oe]||(Le[Oe]={});var Rt=Le[Oe][at];Rt||(Rt=Le[Oe][at]={}),Rt[ut]=St,delete ve[yt]}else mt==="reverse"?(Te.range?Te.range.reverse():(pt(V+".autorange",!0),Te.range=[1,0]),Ae.autorange?it.calc=!0:it.plot=!0):(yt==="dragmode"&&(St===!1&&ke!==!1||St!==!1&&ke===!1)||pe._has("scatter-like")&&pe._has("regl")&&yt==="dragmode"&&(St==="lasso"||St==="select")&&!(ke==="lasso"||ke==="select")||pe._has("gl2d")?it.plot=!0:Re?E.update(it,Re):it.calc=!0,ct.set(St))}}for(Oe in Le){var At=a.applyContainerArrayChanges(_,we(de,Oe),Le[Oe],it,we);At||(it.plot=!0)}for(var Lt in kt){gt=d.getFromId(_,Lt);var st=gt&>._constraintGroup;if(st){it.calc=!0;for(var vt in st)kt[vt]||(d.getFromId(_,vt)._constraintShrinkable=!0)}}(ye(_)||ve.height||ve.width)&&(it.plot=!0);var Dt=pe.shapes;for(at=0;at1;)if(pe.pop(),de=n(ve,pe.join(".")+".uirevision").get(),de!==void 0)return de;return ve.uirevision}function je(_,ve){for(var de=0;de=be.length?be[0]:be[Le]:be}function Ze(Le){return Array.isArray(we)?Le>=we.length?we[0]:we[Le]:we}function Ee(Le,Oe){var at=0;return function(){if(Le&&++at===Oe)return Le()}}return new Promise(function(Le,Oe){function at(){if(pe._frameQueue.length!==0){for(;pe._frameQueue.length;){var mt=pe._frameQueue.pop();mt.onInterrupt&&mt.onInterrupt()}_.emit("plotly_animationinterrupted",[])}}function ft(mt){if(mt.length!==0){for(var Z=0;Zpe._timeToNext&&bt()};mt()}var it=0;function Tt(mt){return Array.isArray(be)?it>=be.length?mt.transitionOpts=be[it]:mt.transitionOpts=be[0]:mt.transitionOpts=be,it++,mt}var wt,pt,kt=[],gt=ve==null,$e=Array.isArray(ve),yt=!gt&&!$e&&i.isPlainObject(ve);if(yt)kt.push({type:"object",data:Tt(i.extendFlat({},ve))});else if(gt||["string","number"].indexOf(typeof ve)!==-1)for(wt=0;wt0&&CtCt)&&zt.push(pt);kt=zt}}kt.length>0?ft(kt):(_.emit("plotly_animated"),Le())})}function he(_,ve,de){if(_=i.getGraphDiv(_),ve==null)return Promise.resolve();if(!i.isPlotDiv(_))throw new Error("This element is not a Plotly plot: "+_+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var pe,be,we,Je,Ze=_._transitionData._frames,Ee=_._transitionData._frameHash;if(!Array.isArray(ve))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+ve);var Le=Ze.length+ve.length*2,Oe=[],at={};for(pe=ve.length-1;pe>=0;pe--)if(i.isPlainObject(ve[pe])){var ft=ve[pe].name,ht=(Ee[ft]||at[ft]||{}).name,bt=ve[pe].name,Mt=Ee[ht]||at[ht];ht&&bt&&typeof bt=="number"&&Mt&&Fct.index?-1:yt.index=0;pe--){if(be=Oe[pe].frame,typeof be.name=="number"&&i.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!be.name)for(;Ee[be.name="frame "+_._transitionData._counter++];);if(Ee[be.name]){for(we=0;we=0;de--)pe=ve[de],we.push({type:"delete",index:pe}),Je.unshift({type:"insert",index:pe,value:be[pe]});var Ze=m.modifyFrames,Ee=m.modifyFrames,Le=[_,Je],Oe=[_,we];return f&&f.add(_,Ze,Le,Ee,Oe),m.modifyFrames(_,we)}function Ie(_){_=i.getGraphDiv(_);var ve=_._fullLayout||{},de=_._fullData||[];return m.cleanPlot([],{},de,ve),m.purge(_),c.purge(_),ve._container&&ve._container.remove(),delete _._context,_}function Fe(_){var ve=_._fullLayout,de=_.getBoundingClientRect();if(!i.equalDomRects(de,ve._lastBBox)){var pe=ve._invTransform=i.inverseTransformMatrix(i.getFullTransformMatrix(_));ve._invScaleX=Math.sqrt(pe[0][0]*pe[0][0]+pe[0][1]*pe[0][1]+pe[0][2]*pe[0][2]),ve._invScaleY=Math.sqrt(pe[1][0]*pe[1][0]+pe[1][1]*pe[1][1]+pe[1][2]*pe[1][2]),ve._lastBBox=de}}function We(_){var ve=h.select(_),de=_._fullLayout;if(de._calcInverseTransform=Fe,de._calcInverseTransform(_),de._container=ve.selectAll(".plot-container").data([0]),de._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),de._paperdiv=de._container.selectAll(".svg-container").data([0]),de._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),de._glcontainer=de._paperdiv.selectAll(".gl-container").data([{}]),de._glcontainer.enter().append("div").classed("gl-container",!0),de._paperdiv.selectAll(".main-svg").remove(),de._paperdiv.select(".modebar-container").remove(),de._paper=de._paperdiv.insert("svg",":first-child").classed("main-svg",!0),de._toppaper=de._paperdiv.append("svg").classed("main-svg",!0),de._modebardiv=de._paperdiv.append("div"),delete de._modeBar,de._hoverpaper=de._paperdiv.append("svg").classed("main-svg",!0),!de._uid){var pe={};h.selectAll("defs").each(function(){this.id&&(pe[this.id.split("-")[1]]=1)}),de._uid=i.randstr(pe)}de._paperdiv.selectAll(".main-svg").attr(p.svgAttrs),de._defs=de._paper.append("defs").attr("id","defs-"+de._uid),de._clips=de._defs.append("g").classed("clips",!0),de._topdefs=de._toppaper.append("defs").attr("id","topdefs-"+de._uid),de._topclips=de._topdefs.append("g").classed("clips",!0),de._bgLayer=de._paper.append("g").classed("bglayer",!0),de._draggers=de._paper.append("g").classed("draglayer",!0);var be=de._paper.append("g").classed("layer-below",!0);de._imageLowerLayer=be.append("g").classed("imagelayer",!0),de._shapeLowerLayer=be.append("g").classed("shapelayer",!0),de._cartesianlayer=de._paper.append("g").classed("cartesianlayer",!0),de._polarlayer=de._paper.append("g").classed("polarlayer",!0),de._smithlayer=de._paper.append("g").classed("smithlayer",!0),de._ternarylayer=de._paper.append("g").classed("ternarylayer",!0),de._geolayer=de._paper.append("g").classed("geolayer",!0),de._funnelarealayer=de._paper.append("g").classed("funnelarealayer",!0),de._pielayer=de._paper.append("g").classed("pielayer",!0),de._iciclelayer=de._paper.append("g").classed("iciclelayer",!0),de._treemaplayer=de._paper.append("g").classed("treemaplayer",!0),de._sunburstlayer=de._paper.append("g").classed("sunburstlayer",!0),de._indicatorlayer=de._toppaper.append("g").classed("indicatorlayer",!0),de._glimages=de._paper.append("g").classed("glimages",!0);var we=de._toppaper.append("g").classed("layer-above",!0);de._imageUpperLayer=we.append("g").classed("imagelayer",!0),de._shapeUpperLayer=we.append("g").classed("shapelayer",!0),de._selectionLayer=de._toppaper.append("g").classed("selectionlayer",!0),de._infolayer=de._toppaper.append("g").classed("infolayer",!0),de._menulayer=de._toppaper.append("g").classed("menulayer",!0),de._zoomlayer=de._toppaper.append("g").classed("zoomlayer",!0),de._hoverlayer=de._hoverpaper.append("g").classed("hoverlayer",!0),de._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),_.emit("plotly_framework")}q.animate=Ke,q.addFrames=he,q.deleteFrames=He,q.addTraces=C,q.deleteTraces=R,q.extendTraces=$,q.moveTraces=k,q.prependTraces=re,q.newPlot=D,q._doPlot=s,q.purge=Ie,q.react=nt,q.redraw=P,q.relayout=se,q.restyle=G,q.setPlotConfig=g,q.update=ce,q._guiRelayout=ue(se),q._guiRestyle=ue(G),q._guiUpdate=ue(ce),q._storeDirectGUIEdit=X},dbVsU3X7:(oe,q,e)=>{"use strict";var h=e("R5um7Wku"),v=e("0Ft3SWJB"),S=e("FDg8C/At"),i=e("JEbHibKP"),n=e("IejtdMW5"),c=e("HlG8UEh+"),f=e("OrkhUD6z").configAttributes,r=e("Oq1Cqb7p"),o=v.extendDeepAll,m=v.isPlainObject,d=v.isArrayOrTypedArray,A=v.nestedProperty,M=v.valObjectMeta,b="_isSubplotObj",T="_isLinkedToArray",u="_arrayAttrRegexps",p="_deprecated",t=[b,T,u,p];q.IS_SUBPLOT_OBJ=b,q.IS_LINKED_TO_ARRAY=T,q.DEPRECATED=p,q.UNDERSCORE_ATTRS=t,q.get=function(){var Q={};h.allTypes.forEach(function(D){Q[D]=y(D)});var P={};return Object.keys(h.transformsRegistry).forEach(function(D){P[D]=L(D)}),{defs:{valObjects:M,metaKeys:t.concat(["description","role","editType","impliedEdits"]),editType:{traces:r.traces,layout:r.layout},impliedEdits:{description:["Sometimes when an attribute is changed, other attributes","must be altered as well in order to achieve the intended","result. For example, when `range` is specified, it is","important to set `autorange` to `false` or the new `range`","value would be lost in the redraw. `impliedEdits` is the","mechanism to do this: `impliedEdits: {autorange: false}`.","Each key is a relative paths to the attribute string to","change, using *^* to ascend into the parent container,","for example `range[0]` has `impliedEdits: {*^autorange*: false}`.","A value of `undefined` means that the attribute will not be","changed, but its previous value should be recorded in case","we want to reverse this change later. For example, `autorange`","has `impliedEdits: {*range[0]*: undefined, *range[1]*:undefined}","because the range will likely be changed by redraw."].join(" ")}},traces:Q,layout:E(),transforms:P,frames:F(),animation:B(c),config:B(f)}},q.crawl=function(Q,P,D,z){var H=D||0;z=z||"",Object.keys(Q).forEach(function(O){var U=Q[O];if(t.indexOf(O)===-1){var Y=(z?z+".":"")+O;P(U,O,Q,H,Y),!q.isValObject(U)&&m(U)&&O!=="impliedEdits"&&q.crawl(U,P,H+1,Y)}})},q.isValObject=function(Q){return Q&&Q.valType!==void 0},q.findArrayAttributes=function(Q){var P=[],D=[],z=[],H,O;function U(re,C,R,k){D=D.slice(0,k).concat([C]),z=z.slice(0,k).concat([re&&re._isLinkedToArray]);var G=re&&(re.valType==="data_array"||re.arrayOk===!0)&&!(D[k-1]==="colorbar"&&(C==="ticktext"||C==="tickvals"));G&&Y(H,0,"")}function Y(re,C,R){var k=re[D[C]],G=R+D[C];if(C===D.length-1)d(k)&&P.push(O+G);else if(z[C]){if(Array.isArray(k))for(var W=0;W=U.length)return!1;H=(h.transformsRegistry[U[Y].type]||{}).attributes,O=H&&H[P[2]],z=3}else{var ee=Q._module;if(ee||(ee=(h.modules[Q.type||S.type.dflt]||{})._module),!ee)return!1;if(H=ee.attributes,O=H&&H[D],!O){var ne=ee.basePlotModule;ne&&ne.attributes&&(O=ne.attributes[D])}O||(O=S[D])}return a(O,P,z)},q.getLayoutValObject=function(Q,P){var D=l(Q,P[0]);return a(D,P,1)};function l(Q,P){var D,z,H,O,U=Q._basePlotModules;if(U){var Y;for(D=0;D=O.length)return!1;if(Q.dimensions===2){if(D++,P.length===D)return Q;var U=P[D];if(!x(U))return!1;Q=O[H][U]}else Q=O[H]}else Q=O}}return Q}function x(Q){return Q===Math.round(Q)&&Q>=0}function y(Q){var P,D;P=h.modules[Q]._module,D=P.basePlotModule;var z={};z.type=null;var H=o({},S),O=o({},P.attributes);q.crawl(O,function(ee,ne,me,$,re){A(H,re).set(void 0),ee===void 0&&A(O,re).set(void 0)}),o(z,H),h.traceIs(Q,"noOpacity")&&delete z.opacity,h.traceIs(Q,"showLegend")||(delete z.showlegend,delete z.legendgroup),h.traceIs(Q,"noHover")&&(delete z.hoverinfo,delete z.hoverlabel),P.selectPoints||delete z.selectedpoints,o(z,O),D.attributes&&o(z,D.attributes),z.type=Q;var U={meta:P.meta||{},categories:P.categories||{},animatable:!!P.animatable,type:Q,attributes:B(z)};if(P.layoutAttributes){var Y={};o(Y,P.layoutAttributes),U.layoutAttributes=B(Y)}return P.animatable||q.crawl(U,function(ee){q.isValObject(ee)&&"anim"in ee&&delete ee.anim}),U}function E(){var Q={},P,D;o(Q,i);for(P in h.subplotsRegistry)if(D=h.subplotsRegistry[P],!!D.layoutAttributes)if(Array.isArray(D.attr))for(var z=0;z{"use strict";var h=e("Lou4tdh8"),v=e("R5um7Wku"),S=e("8MlMO9wt"),i=e("0Ft3SWJB"),n=e("7k8rh0sJ"),c=e("NLf4w7dD"),f=e("/oRevOrA"),r=e("+ELfTWmT"),o=e("xjYqbXs+"),m=e("ElYFxeqq"),d=e("4JfnfFRI"),A=e("kca9bvt+"),M=e("6hRdzyd8"),b=M.enforce,T=M.clean,u=e("IaNOhRG8").doAutoRange,p="start",t="middle",l="end";q.layoutStyles=function(D){return i.syncOrAsync([S.doAutoMargin,x],D)};function a(D,z,H){for(var O=0;O=D[1]||U[1]<=D[0])&&Y[0]z[0])return!0}return!1}function x(D){var z=D._fullLayout,H=z._size,O=H.p,U=d.list(D,"",!0),Y,ee,ne,me,$,re;if(z._paperdiv.style({width:D._context.responsive&&z.autosize&&!D._context._hasZeroWidth&&!D.layout.width?"100%":z.width+"px",height:D._context.responsive&&z.autosize&&!D._context._hasZeroHeight&&!D.layout.height?"100%":z.height+"px"}).selectAll(".main-svg").call(r.setSize,z.width,z.height),D._context.setBackground(D,z.paper_bgcolor),q.drawMainTitle(D),m.manage(D),!z._has("cartesian"))return S.previousPromises(D);function C(Ie,Fe,We){var _=Ie._lw/2;if(Ie._id.charAt(0)==="x"){if(Fe){if(We==="top")return Fe._offset-O-_}else return H.t+H.h*(1-(Ie.position||0))+_%1;return Fe._offset+Fe._length+O+_}if(Fe){if(We==="right")return Fe._offset+Fe._length+O+_}else return H.l+H.w*(Ie.position||0)+_%1;return Fe._offset-O-_}for(Y=0;Y0&&(w(D,Y,$,me),ne.attr({x:ee,y:Y,"text-anchor":O,dy:N(z.yanchor)}).call(n.positionText,ee,Y))}};function F(D,z,H,O,U){var Y=z.yref==="paper"?D._fullLayout._size.h:D._fullLayout.height,ee=i.isTopAnchor(z)?O:O-U,ne=H==="b"?Y-ee:ee;return i.isTopAnchor(z)&&H==="t"||i.isBottomAnchor(z)&&H==="b"?!1:ne.5?"t":"b",ee=D._fullLayout.margin[Y],ne=0;return z.yref==="paper"?ne=H+z.pad.t+z.pad.b:z.yref==="container"&&(ne=B(Y,O,U,D._fullLayout.height,H)+z.pad.t+z.pad.b),ne>ee?ne:0}function w(D,z,H,O){var U="title.automargin",Y=D._fullLayout.title,ee=Y.y>.5?"t":"b",ne={x:Y.x,y:Y.y,t:0,b:0},me={};Y.yref==="paper"&&F(D,Y,ee,z,O)?ne[ee]=H:Y.yref==="container"&&(me[ee]=H,D._fullLayout._reservedMargin[U]=me),S.allowAutoMargin(D,U),S.autoMargin(D,U,ne)}function g(D,z){var H=D.title,O=D._size,U=0;switch(z===p?U=H.pad.l:z===l&&(U=-H.pad.r),H.xref){case"paper":return O.l+O.w*H.x+U;case"container":default:return D.width*H.x+U}}function I(D,z){var H=D.title,O=D._size,U=0;if(z==="0em"||!z?U=-H.pad.b:z===A.CAP_SHIFT+"em"&&(U=H.pad.t),H.y==="auto")return O.t/2;switch(H.yref){case"paper":return O.t+O.h-O.h*H.y+U;case"container":default:return D.height-D.height*H.y+U}}function N(D){return D==="top"?A.CAP_SHIFT+.3+"em":D==="bottom"?"-0.3em":A.MID_SHIFT+"em"}function Q(D){var z=D.title,H=t;return i.isRightAnchor(z)?H=l:i.isLeftAnchor(z)&&(H=p),H}function P(D){var z=D.title,H="0em";return i.isTopAnchor(z)?H=A.CAP_SHIFT+"em":i.isMiddleAnchor(z)&&(H=A.MID_SHIFT+"em"),H}q.doTraceStyle=function(D){var z=D.calcdata,H=[],O;for(O=0;O{"use strict";var h=e("0Ft3SWJB"),v=h.isPlainObject,S=e("dbVsU3X7"),i=e("8MlMO9wt"),n=e("FDg8C/At"),c=e("A5P9b9BX"),f=e("OrkhUD6z").dfltConfig;q.makeTemplate=function(u){u=h.isPlainObject(u)?u:h.getGraphDiv(u),u=h.extendDeep({_context:f},{data:u.data,layout:u.layout}),i.supplyDefaults(u);var p=u.data||[],t=u.layout||{};t._basePlotModules=u._fullLayout._basePlotModules,t._modules=u._fullLayout._modules;var l={data:{},layout:{}};p.forEach(function(g){var I={};m(g,I,A.bind(null,g));var N=h.coerce(g,{},n,"type"),Q=l.data[N];Q||(Q=l.data[N]=[]),Q.push(I)}),m(t,l.layout,d.bind(null,t)),delete l.layout.template;var a=t.template;if(v(a)){var x=a.layout,y,E,L,F,B,s;v(x)&&r(x,l.layout);var w=a.data;if(v(w)){for(E in l.data)if(L=w[E],Array.isArray(L)){for(B=l.data[E],s=B.length,F=L.length,y=0;yP?y.push({code:"unused",traceType:g,templateCount:Q,dataCount:P}):P>Q&&y.push({code:"reused",traceType:g,templateCount:Q,dataCount:P})}}function D(z,H){for(var O in z)if(O.charAt(0)!=="_"){var U=z[O],Y=M(z,O,H);v(U)?(Array.isArray(z)&&U._template===!1&&U.templateitemname&&y.push({code:"missing",path:Y,templateitemname:U.templateitemname}),D(U,Y)):Array.isArray(U)&&b(U)&&D(U,Y)}}if(D({data:L,layout:E},""),y.length)return y.map(T)};function b(u){for(var p=0;p{"use strict";var h=e("yAcToaBS"),v=e("rQ2OQY7Q"),S=e("8MlMO9wt"),i=e("0Ft3SWJB"),n=e("/1xV6pOg"),c=e("qYUMvhEP"),f=e("P1XCdGWS"),r=e("dH7CFEq5").version,o={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}};function m(d,A){A=A||{};var M,b,T,u;i.isPlainObject(d)?(M=d.data||[],b=d.layout||{},T=d.config||{},u={}):(d=i.getGraphDiv(d),M=i.extendDeep([],d.data),b=i.extendDeep({},d.layout),T=d._context,u=d._fullLayout||{});function p(P){return!(P in A)||i.validate(A[P],o[P])}if(!p("width")&&A.width!==null||!p("height")&&A.height!==null)throw new Error("Height and width should be pixel values.");if(!p("format"))throw new Error("Export format is not "+i.join2(o.format.values,", "," or ")+".");var t={};function l(P,D){return i.coerce(A,t,o,P,D)}var a=l("format"),x=l("width"),y=l("height"),E=l("scale"),L=l("setBackground"),F=l("imageDataOnly"),B=document.createElement("div");B.style.position="absolute",B.style.left="-5000px",document.body.appendChild(B);var s=i.extendFlat({},b);x?s.width=x:A.width===null&&h(u.width)&&(s.width=u.width),y?s.height=y:A.height===null&&h(u.height)&&(s.height=u.height);var w=i.extendFlat({},T,{_exportedPlot:!0,staticPlot:!0,setBackground:L}),g=n.getRedrawFunc(B);function I(){return new Promise(function(P){setTimeout(P,n.getDelay(B._fullLayout))})}function N(){return new Promise(function(P,D){var z=c(B,a,E),H=B._fullLayout.width,O=B._fullLayout.height;function U(){v.purge(B),document.body.removeChild(B)}if(a==="full-json"){var Y=S.graphJson(B,!1,"keepdata","object",!0,!0);return Y.version=r,Y=JSON.stringify(Y),U(),P(F?Y:n.encodeJSON(Y))}if(U(),a==="svg")return P(F?z:n.encodeSVG(z));var ee=document.createElement("canvas");ee.id=i.randstr(),f({format:a,width:H,height:O,scale:E,canvas:ee,svg:z,promise:!0}).then(P).catch(D)})}function Q(P){return F?P.replace(n.IMAGE_URL_PREFIX,""):P}return new Promise(function(P,D){v.newPlot(B,M,s,w).then(g).then(I).then(N).then(function(z){P(Q(z))}).catch(function(z){D(z)})})}oe.exports=m},TcVG9fhs:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("8MlMO9wt"),S=e("dbVsU3X7"),i=e("OrkhUD6z").dfltConfig,n=h.isPlainObject,c=Array.isArray,f=h.isArrayOrTypedArray;oe.exports=function(l,a){l===void 0&&(l=[]),a===void 0&&(a={});var x=S.get(),y=[],E={_context:h.extendFlat({},i)},L,F;c(l)?(E.data=h.extendDeep([],l),L=l):(E.data=[],L=[],y.push(A("array","data"))),n(a)?(E.layout=h.extendDeep({},a),F=a):(E.layout={},F={},arguments.length>1&&y.push(A("object","layout"))),v.supplyDefaults(E);for(var B=E._fullData,s=L.length,w=0;wg.length&&x.push(A("unused",y,s.concat(g.length)));var z=g.length,H=Array.isArray(D);H&&(z=Math.min(z,D.length));var O,U,Y,ee,ne;if(I.dimensions===2)for(U=0;Ug[U].length&&x.push(A("unused",y,s.concat(U,g[U].length)));var me=g[U].length;for(O=0;O<(H?Math.min(me,D[U].length):me);O++)Y=H?D[U][O]:D,ee=w[U][O],ne=g[U][O],h.validate(ee,Y)?ne!==ee&&ne!==+ee&&x.push(A("dynamic",y,s.concat(U,O),ee,ne)):x.push(A("value",y,s.concat(U,O),ee))}else x.push(A("array",y,s.concat(U),w[U]));else for(U=0;U{"use strict";var h=e("yAcToaBS"),v=e("0Ft3SWJB"),S=v.dateTime2ms,i=v.incrementMonth,n=e("46lPXjlm"),c=n.ONEAVGMONTH;oe.exports=function(r,o,m,d){if(o.type!=="date")return{vals:d};var A=r[m+"periodalignment"];if(!A)return{vals:d};var M=r[m+"period"],b;if(h(M)){if(M=+M,M<=0)return{vals:d}}else if(typeof M=="string"&&M.charAt(0)==="M"){var T=+M.substring(1);if(T>0&&Math.round(T)===T)b=T;else return{vals:d}}for(var u=o.calendar,p=A==="start",t=A==="end",l=r[m+"period0"],a=S(l,u)||0,x=[],y=[],E=[],L=d.length,F=0;FB;)g=i(g,-b,u);for(;g<=B;)g=i(g,b,u);w=i(g,-b,u)}else{for(s=Math.round((B-a)/M),g=a+s*M;g>B;)g-=M;for(;g<=B;)g+=M;w=g-M}x[F]=p?w:t?g:(w+g)/2,y[F]=w,E[F]=g}return{vals:x,starts:y,ends:E}}},"zWdj+er5":oe=>{"use strict";oe.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's x coordinates and","a 2D cartesian x axis.","If *x* (the default value), the x coordinates refer to","`layout.xaxis`.","If *x2*, the x coordinates refer to `layout.xaxis2`, and so on."].join(" ")},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's y coordinates and","a 2D cartesian y axis.","If *y* (the default value), the y coordinates refer to","`layout.yaxis`.","If *y2*, the y coordinates refer to `layout.yaxis2`, and so on."].join(" ")}}},IaNOhRG8:(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("yAcToaBS"),S=e("0Ft3SWJB"),i=e("46lPXjlm").FP_SAFE,n=e("R5um7Wku"),c=e("+ELfTWmT"),f=e("nXHY852p"),r=f.getFromId,o=f.isLinked;oe.exports={applyAutorangeOptions:s,getAutoRange:m,makePadFn:A,doAutoRange:u,findExtremes:p,concatExtremes:T};function m(w,g){var I,N,Q=[],P=w._fullLayout,D=A(P,g,0),z=A(P,g,1),H=T(w,g),O=H.min,U=H.max;if(O.length===0||U.length===0)return S.simpleMap(g.range,g.r2l);var Y=O[0].val,ee=U[0].val;for(I=1;I0&&(ae=k-D(J)-z(K),ae>G?se/ae>W&&(X=J,j=K,W=se/ae):se/k>W&&(X={val:J.val,nopad:1},j={val:K.val,nopad:1},W=se/k));function le(fe,ye){return Math.max(fe,z(ye))}if(Y===ee){var ge=Y-1,xe=Y+1;if(C)if(Y===0)Q=[0,1];else{var te=(Y>0?U:O).reduce(le,0),ie=Y/(1-Math.min(.5,te/k));Q=Y>0?[0,ie]:[ie,0]}else R?Q=[Math.max(0,ge),Math.max(1,xe)]:Q=[ge,xe]}else C?(X.val>=0&&(X={val:0,nopad:1}),j.val<=0&&(j={val:0,nopad:1})):R&&(X.val-W*D(X)<0&&(X={val:0,nopad:1}),j.val<=0&&(j={val:1,nopad:1})),W=(j.val-X.val-d(g,J.val,K.val))/(k-D(X)-z(j)),Q=[X.val-W*D(X),j.val+W*z(j)];return Q=s(Q,g),g.limitRange&&g.limitRange(),me&&Q.reverse(),S.simpleMap(Q,g.l2r||Number)}function d(w,g,I){var N=0;if(w.rangebreaks)for(var Q=w.locateBreaks(g,I),P=0;P0?I.ppadplus:I.ppadminus)||I.ppad||0),J=G((w._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),K=G(I.vpadplus||I.vpad),X=G(I.vpadminus||I.vpad);if(!O){if(R=1/0,k=-1/0,H)for(Y=0;Y0&&(R=ee),ee>k&&ee-i&&(R=ee),ee>k&&ee=se;Y--)ae(Y);return{min:N,max:Q,opts:I}}function t(w,g,I,N){a(w,g,I,N,y)}function l(w,g,I,N){a(w,g,I,N,E)}function a(w,g,I,N,Q){for(var P=N.tozero,D=N.extrapad,z=!0,H=0;H=I&&(O.extrapad||!D)){z=!1;break}else Q(g,O.val)&&O.pad<=I&&(D||!O.extrapad)&&(w.splice(H,1),H--)}if(z){var U=P&&g===0;w.push({val:g,pad:U?0:I,extrapad:U?!1:D})}}function x(w){return v(w)&&Math.abs(w)=g}function L(w,g){var I=g.autorangeoptions;return I&&I.minallowed!==void 0&&B(g,I.minallowed,I.maxallowed)?I.minallowed:I&&I.clipmin!==void 0&&B(g,I.clipmin,I.clipmax)?Math.max(w,g.d2l(I.clipmin)):w}function F(w,g){var I=g.autorangeoptions;return I&&I.maxallowed!==void 0&&B(g,I.minallowed,I.maxallowed)?I.maxallowed:I&&I.clipmax!==void 0&&B(g,I.clipmin,I.clipmax)?Math.min(w,g.d2l(I.clipmax)):w}function B(w,g,I){return g!==void 0&&I!==void 0?(g=w.d2l(g),I=w.d2l(I),g=H&&(P=H,I=H),D<=H&&(D=H,N=H)}}return I=L(I,g),N=F(N,g),[I,N]}},GrO9zZrU:oe=>{"use strict";oe.exports=function(e,h,v){var S,i;if(v){var n=h==="reversed"||h==="min reversed"||h==="max reversed";S=v[n?1:0],i=v[n?0:1]}var c=e("autorangeoptions.minallowed",i===null?S:void 0),f=e("autorangeoptions.maxallowed",S===null?i:void 0);c===void 0&&e("autorangeoptions.clipmin"),f===void 0&&e("autorangeoptions.clipmax"),e("autorangeoptions.include")}},"4JfnfFRI":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("yAcToaBS"),S=e("8MlMO9wt"),i=e("R5um7Wku"),n=e("0Ft3SWJB"),c=n.strTranslate,f=e("7k8rh0sJ"),r=e("xjYqbXs+"),o=e("/oRevOrA"),m=e("+ELfTWmT"),d=e("zSF5pjBO"),A=e("EW1eGdmB"),M=e("46lPXjlm"),b=M.ONEMAXYEAR,T=M.ONEAVGYEAR,u=M.ONEMINYEAR,p=M.ONEMAXQUARTER,t=M.ONEAVGQUARTER,l=M.ONEMINQUARTER,a=M.ONEMAXMONTH,x=M.ONEAVGMONTH,y=M.ONEMINMONTH,E=M.ONEWEEK,L=M.ONEDAY,F=L/2,B=M.ONEHOUR,s=M.ONEMIN,w=M.ONESEC,g=M.MINUS_SIGN,I=M.BADNUM,N={K:"zeroline"},Q={K:"gridline",L:"path"},P={K:"minor-gridline",L:"path"},D={K:"tick",L:"path"},z={K:"tick",L:"text"},H={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},O=e("kca9bvt+"),U=O.MID_SHIFT,Y=O.CAP_SHIFT,ee=O.LINE_SPACING,ne=O.OPPOSITE_SIDE,me=3,$=oe.exports={};$.setConvert=e("R+8I7jNJ");var re=e("qv1FlERR"),C=e("nXHY852p"),R=C.idSort,k=C.isLinked;$.id2name=C.id2name,$.name2id=C.name2id,$.cleanId=C.cleanId,$.list=C.list,$.listIds=C.listIds,$.getFromId=C.getFromId,$.getFromTrace=C.getFromTrace;var G=e("IaNOhRG8");$.getAutoRange=G.getAutoRange,$.findExtremes=G.findExtremes;var W=1e-4;function J(Z){var V=(Z[1]-Z[0])*W;return[Z[0]-V,Z[1]+V]}$.coerceRef=function(Z,V,Te,Ae,ke,Re){var ze=Ae.charAt(Ae.length-1),Ce=Te._fullLayout._subplots[ze+"axis"],Se=Ae+"ref",Ne={};return ke||(ke=Ce[0]||(typeof Re=="string"?Re:Re[0])),Re||(Re=ke),Ce=Ce.concat(Ce.map(function(Ve){return Ve+" domain"})),Ne[Se]={valType:"enumerated",values:Ce.concat(Re?typeof Re=="string"?[Re]:Re:[]),dflt:ke},n.coerce(Z,V,Ne,Se)},$.getRefType=function(Z){return Z===void 0?Z:Z==="paper"?"paper":Z==="pixel"?"pixel":/( domain)$/.test(Z)?"domain":"range"},$.coercePosition=function(Z,V,Te,Ae,ke,Re){var ze,Ce,Se=$.getRefType(Ae);if(Se!=="range")ze=n.ensureNumber,Ce=Te(ke,Re);else{var Ne=$.getFromId(V,Ae);Re=Ne.fraction2r(Re),Ce=Te(ke,Re),ze=Ne.cleanPos}Z[ke]=ze(Ce)},$.cleanPosition=function(Z,V,Te){var Ae=Te==="paper"||Te==="pixel"?n.ensureNumber:$.getFromId(V,Te).cleanPos;return Ae(Z)},$.redrawComponents=function(Z,V){V=V||$.listIds(Z);var Te=Z._fullLayout;function Ae(ke,Re,ze,Ce){for(var Se=i.getComponentMethod(ke,Re),Ne={},Ve=0;Ve2e-6||((Te-Z._forceTick0)/Z._minDtick%1+1.000001)%1>2e-6)&&(Z._minDtick=0))},$.saveRangeInitial=function(Z,V){for(var Te=$.list(Z,"",!0),Ae=!1,ke=0;keXe*.3||Ne(Ae)||Ne(ke))){var qe=Te.dtick/2;Z+=Z+qeze){var Ce=Number(Te.substr(1));Re.exactYears>ze&&Ce%12===0?Z=$.tickIncrement(Z,"M6","reverse")+L*1.5:Re.exactMonths>ze?Z=$.tickIncrement(Z,"M1","reverse")+L*15.5:Z-=F;var Se=$.tickIncrement(Z,Te);if(Se<=Ae)return Se}return Z}$.prepMinorTicks=function(Z,V,Te){if(!V.minor.dtick){delete Z.dtick;var Ae=V.dtick&&v(V._tmin),ke;if(Ae){var Re=$.tickIncrement(V._tmin,V.dtick,!0);ke=[V._tmin,Re*.99+V._tmin*.01]}else{var ze=n.simpleMap(V.range,V.r2l);ke=[ze[0],.8*ze[0]+.2*ze[1]]}if(Z.range=n.simpleMap(ke,V.l2r),Z._isMinor=!0,$.prepTicks(Z,Te),Ae){var Ce=v(V.dtick),Se=v(Z.dtick),Ne=Ce?V.dtick:+V.dtick.substring(1),Ve=Se?Z.dtick:+Z.dtick.substring(1);Ce&&Se?le(Ne,Ve)?Ne===2*E&&Ve===2*L&&(Z.dtick=E):Ne===2*E&&Ve===3*L?Z.dtick=E:Ne===E&&!(V._input.minor||{}).nticks?Z.dtick=L:ge(Ne/Ve,2.5)?Z.dtick=Ne/2:Z.dtick=Ne:String(V.dtick).charAt(0)==="M"?Se?Z.dtick="M1":le(Ne,Ve)?Ne>=12&&Ve===2&&(Z.dtick="M3"):Z.dtick=V.dtick:String(Z.dtick).charAt(0)==="L"?String(V.dtick).charAt(0)==="L"?le(Ne,Ve)||(Z.dtick=ge(Ne/Ve,2.5)?V.dtick/2:V.dtick):Z.dtick="D1":Z.dtick==="D2"&&+V.dtick>1&&(Z.dtick=1)}Z.range=V.range}V.minor._tick0Init===void 0&&(Z.tick0=V.tick0)};function le(Z,V){return Math.abs((Z/V+.5)%1-.5)<.001}function ge(Z,V){return Math.abs(Z/V-1)<.001}$.prepTicks=function(Z,V){var Te=n.simpleMap(Z.range,Z.r2l,void 0,void 0,V);if(Z.tickmode==="auto"||!Z.dtick){var Ae=Z.nticks,ke;Ae||(Z.type==="category"||Z.type==="multicategory"?(ke=Z.tickfont?n.bigFont(Z.tickfont.size||12):15,Ae=Z._length/ke):(ke=Z._id.charAt(0)==="y"?40:80,Ae=n.constrain(Z._length/ke,4,9)+1),Z._name==="radialaxis"&&(Ae*=2)),Z.minor&&Z.minor.tickmode!=="array"||Z.tickmode==="array"&&(Ae*=100),Z._roughDTick=Math.abs(Te[1]-Te[0])/Ae,$.autoTicks(Z,Z._roughDTick),Z._minDtick>0&&Z.dtick0?(Re=Ae-1,ze=Ae):(Re=Ae,ze=Ae);var Ce=Z[Re].value,Se=Z[ze].value,Ne=Math.abs(Se-Ce),Ve=Te||Ne,Xe=0;Ve>=u?Ne>=u&&Ne<=b?Xe=Ne:Xe=T:Te===t&&Ve>=l?Ne>=l&&Ne<=p?Xe=Ne:Xe=t:Ve>=y?Ne>=y&&Ne<=a?Xe=Ne:Xe=x:Te===E&&Ve>=E?Xe=E:Ve>=L?Xe=L:Te===F&&Ve>=F?Xe=F:Te===B&&Ve>=B&&(Xe=B);var qe;Xe>=Ne&&(Xe=Ne,qe=!0);var tt=ke+Xe;if(V.rangebreaks&&Xe>0){for(var et=84,lt=0,ut=0;utE&&(Xe=Ne)}(Xe>0||Ae===0)&&(Z[Ae].periodX=ke+Xe/2)}}$.calcTicks=function(V,Te){for(var Ae=V.type,ke=V.calendar,Re=V.ticklabelstep,ze=V.ticklabelmode==="period",Ce=n.simpleMap(V.range,V.r2l,void 0,void 0,Te),Se=Ce[1]=(ut?0:1);dt--){var Rt=!dt;dt?(V._dtickInit=V.dtick,V._tick0Init=V.tick0):(V.minor._dtickInit=V.minor.dtick,V.minor._tick0Init=V.minor.tick0);var At=dt?V:n.extendFlat({},V,V.minor);if(Rt?$.prepMinorTicks(At,V,Te):$.prepTicks(At,Te),At.tickmode==="array"){dt?(et=[],qe=ce(V)):(lt=[],tt=ce(V));continue}if(At.tickmode==="sync"){et=[],qe=ye(V);continue}var Lt=J(Ce),st=Lt[0],vt=Lt[1],Dt=v(At.dtick),xt=Ae==="log"&&!(Dt||At.dtick.charAt(0)==="L"),Ft=$.tickFirst(At,Te);if(dt){if(V._tmin=Ft,Ft=vt:Pt<=vt;Pt=$.tickIncrement(Pt,Ht,Se,ke)){if(dt&&It++,At.rangebreaks&&!Se){if(Pt=Ve)break}if(et.length>Xe||Pt===Et)break;Et=Pt;var Nt={value:Pt};dt?(xt&&Pt!==(Pt|0)&&(Nt.simpleLabel=!0),Re>1&&It%Re&&(Nt.skipLabel=!0),et.push(Nt)):(Nt.minor=!0,lt.push(Nt))}}if(ut){var Gt=V.minor.ticks==="inside"&&V.ticks==="outside"||V.minor.ticks==="outside"&&V.ticks==="inside";if(!Gt){for(var Wt=et.map(function(vr){return vr.value}),Vt=[],Yt=0;Yt-1;Ut--){if(et[Ut].drop){et.splice(Ut,1);continue}et[Ut].value=ct(et[Ut].value,V);var rr=V.c2p(et[Ut].value);(or?er>rr-tr:erVe||_tVe&&(Kt.periodX=Ve),_tAe&&XeT)V/=T,Ae=ke(10),Z.dtick="M"+12*Qe(V,Ae,ue);else if(Re>x)V/=x,Z.dtick="M"+Qe(V,1,Me);else if(Re>L){if(Z.dtick=Qe(V,L,Z._hasDayOfWeekBreaks?[1,2,7,14]:Be),!Te){var ze=$.getTickFormat(Z),Ce=Z.ticklabelmode==="period";Ce&&(Z._rawTick0=Z.tick0),/%[uVW]/.test(ze)?Z.tick0=n.dateTick0(Z.calendar,2):Z.tick0=n.dateTick0(Z.calendar,1),Ce&&(Z._dowTick0=Z.tick0)}}else Re>B?Z.dtick=Qe(V,B,Me):Re>s?Z.dtick=Qe(V,s,Pe):Re>w?Z.dtick=Qe(V,w,Pe):(Ae=ke(10),Z.dtick=Qe(V,Ae,ue))}else if(Z.type==="log"){Z.tick0=0;var Se=n.simpleMap(Z.range,Z.r2l);if(Z._isMinor&&(V*=1.5),V>.7)Z.dtick=Math.ceil(V);else if(Math.abs(Se[1]-Se[0])<1){var Ne=1.5*Math.abs((Se[1]-Se[0])/V);V=Math.abs(Math.pow(10,Se[1])-Math.pow(10,Se[0]))/Ne,Ae=ke(10),Z.dtick="L"+Qe(V,Ae,ue)}else Z.dtick=V>.3?"D2":"D1"}else Z.type==="category"||Z.type==="multicategory"?(Z.tick0=0,Z.dtick=Math.ceil(Math.max(V,1))):yt(Z)?(Z.tick0=0,Ae=1,Z.dtick=Qe(V,Ae,_e)):(Z.tick0=0,Ae=ke(10),Z.dtick=Qe(V,Ae,ue));if(Z.dtick===0&&(Z.dtick=1),!v(Z.dtick)&&typeof Z.dtick!="string"){var Ve=Z.dtick;throw Z.dtick=1,"ax.dtick error: "+String(Ve)}};function Ue(Z){var V=Z.dtick;if(Z._tickexponent=0,!v(V)&&typeof V!="string"&&(V=1),(Z.type==="category"||Z.type==="multicategory")&&(Z._tickround=null),Z.type==="date"){var Te=Z.r2l(Z.tick0),Ae=Z.l2r(Te).replace(/(^-|i)/g,""),ke=Ae.length;if(String(V).charAt(0)==="M")ke>10||Ae.substr(5)!=="01-01"?Z._tickround="d":Z._tickround=+V.substr(1)%12===0?"y":"m";else if(V>=L&&ke<=10||V>=L*15)Z._tickround="d";else if(V>=s&&ke<=16||V>=B)Z._tickround="M";else if(V>=w&&ke<=19||V>=s)Z._tickround="S";else{var Re=Z.l2r(Te+V).replace(/^-/,"").length;Z._tickround=Math.max(ke,Re)-20,Z._tickround<0&&(Z._tickround=4)}}else if(v(V)||V.charAt(0)==="L"){var ze=Z.range.map(Z.r2d||Number);v(V)||(V=Number(V.substr(1))),Z._tickround=2-Math.floor(Math.log(V)/Math.LN10+.01);var Ce=Math.max(Math.abs(ze[0]),Math.abs(ze[1])),Se=Math.floor(Math.log(Ce)/Math.LN10+.01),Ne=Z.minexponent===void 0?3:Z.minexponent;Math.abs(Se)>Ne&&(Fe(Z.exponentformat)&&!We(Se)?Z._tickexponent=3*Math.round((Se-1)/3):Z._tickexponent=Se)}else Z._tickround=null}$.tickIncrement=function(Z,V,Te,Ae){var ke=Te?-1:1;if(v(V))return n.increment(Z,ke*V);var Re=V.charAt(0),ze=ke*Number(V.substr(1));if(Re==="M")return n.incrementMonth(Z,ze,Ae);if(Re==="L")return Math.log(Math.pow(10,Z)+ze)/Math.LN10;if(Re==="D"){var Ce=V==="D2"?je:De,Se=Z+ke*.01,Ne=n.roundUp(n.mod(Se,1),Ce,Te);return Math.floor(Se)+Math.log(h.round(Math.pow(10,Ne),1))/Math.LN10}throw"unrecognized dtick "+String(V)},$.tickFirst=function(Z,V){var Te=Z.r2l||Number,Ae=n.simpleMap(Z.range,Te,void 0,void 0,V),ke=Ae[1]=0&&dt<=Z._length?ut:null};ke.xbnd=[lt(ke.x-.5),lt(ke.x+Z.dtick-.5)]}return ke},$.hoverLabelText=function(Z,V,Te){Te&&(Z=n.extendFlat({},Z,{hoverformat:Te}));var Ae=Array.isArray(V)?V[0]:V,ke=Array.isArray(V)?V[1]:void 0;if(ke!==void 0&&ke!==Ae)return $.hoverLabelText(Z,Ae,Te)+" - "+$.hoverLabelText(Z,ke,Te);var Re=Z.type==="log"&&Ae<=0,ze=$.tickText(Z,Z.c2l(Re?-Ae:Ae),"hover").text;return Re?Ae===0?"0":g+ze:ze};function nt(Z,V,Te){var Ae=Z.tickfont||{};return{x:V,dx:0,dy:0,text:Te||"",fontSize:Ae.size,font:Ae.family,fontColor:Ae.color}}function Ge(Z,V,Te,Ae){var ke=Z._tickround,Re=Te&&Z.hoverformat||$.getTickFormat(Z);Ae&&(v(ke)?ke=4:ke={y:"m",m:"d",d:"M",M:"S",S:4}[ke]);var ze=n.formatDate(V.x,Re,ke,Z._dateFormat,Z.calendar,Z._extraFormat),Ce,Se=ze.indexOf(` `);if(Se!==-1&&(Ce=ze.substr(Se+1),ze=ze.substr(0,Se)),Ae&&(ze==="00:00:00"||ze==="00:00"?(ze=Ce,Ce=""):ze.length===8&&(ze=ze.replace(/:00$/,""))),Ce)if(Te)ke==="d"?ze+=", "+Ce:ze=Ce+(ze?", "+ze:"");else if(!Z._inCalcTicks||Z._prevDateHead!==Ce)Z._prevDateHead=Ce,ze+="
"+Ce;else{var Ne=St(Z),Ve=Z._trueSide||Z.side;(!Ne&&Ve==="top"||Ne&&Ve==="bottom")&&(ze+="
")}V.text=ze}function Ye(Z,V,Te,Ae,ke){var Re=Z.dtick,ze=V.x,Ce=Z.tickformat,Se=typeof Re=="string"&&Re.charAt(0);if(ke==="never"&&(ke=""),Ae&&Se!=="L"&&(Re="L3",Se="L"),Ce||Se==="L")V.text=_(Math.pow(10,ze),Z,ke,Ae);else if(v(Re)||Se==="D"&&n.mod(ze+.01,1)<.1){var Ne=Math.round(ze),Ve=Math.abs(Ne),Xe=Z.exponentformat;Xe==="power"||Fe(Xe)&&We(Ne)?(Ne===0?V.text=1:Ne===1?V.text="10":V.text="10"+(Ne>1?"":g)+Ve+"",V.fontSize*=1.25):(Xe==="e"||Xe==="E")&&Ve>2?V.text="1"+Xe+(Ne>0?"+":g)+Ve:(V.text=_(Math.pow(10,ze),Z,"","fakehover"),Re==="D1"&&Z._id.charAt(0)==="y"&&(V.dy-=V.fontSize/6))}else if(Se==="D")V.text=String(Math.round(Math.pow(10,n.mod(ze,1)))),V.fontSize*=.75;else throw"unrecognized dtick "+String(Re);if(Z.dtick==="D1"){var qe=String(V.text).charAt(0);(qe==="0"||qe==="1")&&(Z._id.charAt(0)==="y"?V.dx-=V.fontSize/4:(V.dy+=V.fontSize/2,V.dx+=(Z.range[1]>Z.range[0]?1:-1)*V.fontSize*(ze<0?.5:.25)))}}function ot(Z,V){var Te=Z._categories[Math.round(V.x)];Te===void 0&&(Te=""),V.text=String(Te)}function rt(Z,V,Te){var Ae=Math.round(V.x),ke=Z._categories[Ae]||[],Re=ke[1]===void 0?"":String(ke[1]),ze=ke[0]===void 0?"":String(ke[0]);Te?V.text=ze+" - "+Re:(V.text=Re,V.text2=ze)}function Ke(Z,V,Te,Ae,ke){ke==="never"?ke="":Z.showexponent==="all"&&Math.abs(V.x/Z.dtick)<1e-6&&(ke="hide"),V.text=_(V.x,Z,ke,Ae)}function he(Z,V,Te,Ae,ke){if(Z.thetaunit==="radians"&&!Te){var Re=V.x/180;if(Re===0)V.text="0";else{var ze=He(Re);if(ze[1]>=100)V.text=_(n.deg2rad(V.x),Z,ke,Ae);else{var Ce=V.x<0;ze[1]===1?ze[0]===1?V.text="\u03C0":V.text=ze[0]+"\u03C0":V.text=["",ze[0],"","\u2044","",ze[1],"","\u03C0"].join(""),Ce&&(V.text=g+V.text)}}}else V.text=_(V.x,Z,ke,Ae)}function He(Z){function V(Ce,Se){return Math.abs(Ce-Se)<=1e-6}function Te(Ce,Se){return V(Se,0)?Ce:Te(Se,Ce%Se)}function Ae(Ce){for(var Se=1;!V(Math.round(Ce*Se)/Se,Ce);)Se*=10;return Se}var ke=Ae(Z),Re=Z*ke,ze=Math.abs(Te(Re,ke));return[Math.round(Re/ze),Math.round(ke/ze)]}var Ie=["f","p","n","\u03BC","m","","k","M","G","T"];function Fe(Z){return Z==="SI"||Z==="B"}function We(Z){return Z>14||Z<-15}function _(Z,V,Te,Ae){var ke=Z<0,Re=V._tickround,ze=Te||V.exponentformat||"B",Ce=V._tickexponent,Se=$.getTickFormat(V),Ne=V.separatethousands;if(Ae){var Ve={exponentformat:ze,minexponent:V.minexponent,dtick:V.showexponent==="none"?V.dtick:v(Z)&&Math.abs(Z)||1,range:V.showexponent==="none"?V.range.map(V.r2d):[0,Z||1]};Ue(Ve),Re=(Number(Ve._tickround)||0)+4,Ce=Ve._tickexponent,V.hoverformat&&(Se=V.hoverformat)}if(Se)return V._numFormat(Se)(Z).replace(/-/g,g);var Xe=Math.pow(10,-Re)/2;if(ze==="none"&&(Ce=0),Z=Math.abs(Z),Z"+et+"
":ze==="B"&&Ce===9?Z+="B":Fe(ze)&&(Z+=Ie[Ce/3+5])}return ke?g+Z:Z}$.getTickFormat=function(Z){var V;function Te(Se){return typeof Se!="string"?Se:Number(Se.replace("M",""))*x}function Ae(Se,Ne){var Ve=["L","D"];if(typeof Se==typeof Ne){if(typeof Se=="number")return Se-Ne;var Xe=Ve.indexOf(Se.charAt(0)),qe=Ve.indexOf(Ne.charAt(0));return Xe===qe?Number(Se.replace(/(L|D)/g,""))-Number(Ne.replace(/(L|D)/g,"")):Xe-qe}else return typeof Se=="number"?1:-1}function ke(Se,Ne,Ve){var Xe=Ve||function(et){return et},qe=Ne[0],tt=Ne[1];return(!qe&&typeof qe!="number"||Xe(qe)<=Xe(Se))&&(!tt&&typeof tt!="number"||Xe(tt)>=Xe(Se))}function Re(Se,Ne){var Ve=Ne[0]===null,Xe=Ne[1]===null,qe=Ae(Se,Ne[0])>=0,tt=Ae(Se,Ne[1])<=0;return(Ve||qe)&&(Xe||tt)}var ze,Ce;if(Z.tickformatstops&&Z.tickformatstops.length>0)switch(Z.type){case"date":case"linear":{for(V=0;V=0&&ke.unshift(ke.splice(Ve,1).shift())}});var Ce={false:{left:0,right:0}};return n.syncOrAsync(ke.map(function(Se){return function(){if(Se){var Ne=$.getFromId(Z,Se);Te||(Te={}),Te.axShifts=Ce,Te.overlayingShiftedAx=ze;var Ve=$.drawOne(Z,Ne,Te);return Ne._shiftPusher&&zt(Ne,Ne._fullDepth||0,Ce,!0),Ne._r=Ne.range.slice(),Ne._rl=n.simpleMap(Ne._r,Ne.r2l),Ve}}}))},$.drawOne=function(Z,V,Te){Te=Te||{};var Ae=Te.axShifts||{},ke=Te.overlayingShiftedAx||[],Re,ze,Ce;V.setScale();var Se=Z._fullLayout,Ne=V._id,Ve=Ne.charAt(0),Xe=$.counterLetter(Ne),qe=Se._plots[V._mainSubplot];if(!qe)return;if(V._shiftPusher=V.autoshift||ke.indexOf(V._id)!==-1||ke.indexOf(V.overlaying)!==-1,V._shiftPusher&V.anchor==="free"){var tt=V.linewidth/2||0;V.ticks==="inside"&&(tt+=V.ticklen),zt(V,tt,Ae,!0),zt(V,V.shift||0,Ae,!1)}(Te.skipTitle!==!0||V._shift===void 0)&&(V._shift=mt(V,Ae));var et=qe[Ve+"axislayer"],lt=V._mainLinePosition,ut=lt+=V._shift,dt=V._mainMirrorPosition,Rt=V._vals=$.calcTicks(V),At=[V.mirror,ut,dt].join("_");for(Re=0;Re0?Xt.bottom-lr:0,sr))));var yr=0,pr=0;if(V._shiftPusher&&(yr=Math.max(sr,Xt.height>0?Zt==="l"?lr-Xt.left:Xt.right-lr:0),V.title.text!==Se._dfltTitle[Ve]&&(pr=(V._titleStandoff||0)+(V._titleScoot||0),Zt==="l"&&(pr+=Oe(V))),V._fullDepth=Math.max(yr,pr)),V.automargin){jt={x:0,y:0,r:0,l:0,t:0,b:0};var cr=[0,1],gr=typeof V._shift=="number"?V._shift:0;if(Ve==="x"){if(Zt==="b"?jt[Zt]=V._depth:(jt[Zt]=V._depth=Math.max(Xt.width>0?lr-Xt.top:0,sr),cr.reverse()),Xt.width>0){var xr=Xt.right-(V._offset+V._length);xr>0&&(jt.xr=1,jt.r=xr);var br=V._offset-Xt.left;br>0&&(jt.xl=0,jt.l=br)}}else if(Zt==="l"?(V._depth=Math.max(Xt.height>0?lr-Xt.left:0,sr),jt[Zt]=V._depth-gr):(V._depth=Math.max(Xt.height>0?Xt.right-lr:0,sr),jt[Zt]=V._depth+gr,cr.reverse()),Xt.height>0){var Ar=Xt.bottom-(V._offset+V._length);Ar>0&&(jt.yb=0,jt.b=Ar);var Tr=V._offset-Xt.top;Tr>0&&(jt.yt=1,jt.t=Tr)}jt[Xe]=V.anchor==="free"?V.position:V._anchorAxis.domain[cr[0]],V.title.text!==Se._dfltTitle[Ve]&&(jt[Zt]+=Oe(V)+(V.title.standoff||0)),V.mirror&&V.anchor!=="free"&&(ir={x:0,y:0,r:0,l:0,t:0,b:0},ir[qt]=V.linewidth,V.mirror&&V.mirror!==!0&&(ir[qt]+=sr),V.mirror===!0||V.mirror==="ticks"?ir[Xe]=V._anchorAxis.domain[cr[1]]:(V.mirror==="all"||V.mirror==="allticks")&&(ir[Xe]=[V._counterDomainMin,V._counterDomainMax][cr[1]]))}hr&&(mr=i.getComponentMethod("rangeslider","autoMarginOpts")(Z,V)),typeof V.automargin=="string"&&(ve(jt,V.automargin),ve(ir,V.automargin)),S.autoMargin(Z,it(V),jt),S.autoMargin(Z,Tt(V),ir),S.autoMargin(Z,wt(V),mr)}),n.syncOrAsync(nr)}};function ve(Z,V){if(Z){var Te=Object.keys(H).reduce(function(Ae,ke){return V.indexOf(ke)!==-1&&H[ke].forEach(function(Re){Ae[Re]=1}),Ae},{});Object.keys(Z).forEach(function(Ae){Te[Ae]||(Ae.length===1?Z[Ae]=0:delete Z[Ae])})}}function de(Z,V){var Te=[],Ae,ke=function(Re,ze){var Ce=Re.xbnd[ze];Ce!==null&&Te.push(n.extendFlat({},Re,{x:Ce}))};if(V.length){for(Ae=0;Ae60?-.5*Ht:Z.side==="top"!==Ve?-Ht:0};else if(Dt==="y"){if(Ft=!Ve&&vt==="left"||Ve&&vt==="right",Lt=Ft?1:-1,Ve&&(Lt*=-1),dt=qe,Rt=tt*Lt,At=0,!Ve&&Math.abs(xt)===90&&(xt===-90&&vt==="left"||xt===90&&vt==="right"?At=Y:At=.5),Ve){var Et=v(xt)?+xt:0;if(Et!==0){var Pt=n.deg2rad(Et);st=Math.abs(Math.sin(Pt))*Y*Lt,At=0}}ut.xFn=function(It){return It.dx+V-(dt+It.fontSize*At)*Lt+st*It.fontSize},ut.yFn=function(It){return It.dy+Rt+It.fontSize*U},ut.anchorFn=function(It,Bt){return v(Bt)&&Math.abs(Bt)===90?"middle":Ft?"end":"start"},ut.heightFn=function(It,Bt,Ht){return Z.side==="right"&&(Bt*=-1),Bt<-30?-Ht:Bt<30?-.5*Ht:0}}return ut};function Ee(Z){return[Z.text,Z.x,Z.axInfo,Z.font,Z.fontSize,Z.fontColor].join("_")}$.drawTicks=function(Z,V,Te){Te=Te||{};var Ae=V._id+"tick",ke=[].concat(V.minor&&V.minor.ticks?Te.vals.filter(function(ze){return ze.minor&&!ze.noTick}):[]).concat(V.ticks?Te.vals.filter(function(ze){return!ze.minor&&!ze.noTick}):[]),Re=Te.layer.selectAll("path."+Ae).data(ke,Ee);Re.exit().remove(),Re.enter().append("path").classed(Ae,1).classed("ticks",1).classed("crisp",Te.crisp!==!1).each(function(ze){return o.stroke(h.select(this),ze.minor?V.minor.tickcolor:V.tickcolor)}).style("stroke-width",function(ze){return m.crispRound(Z,ze.minor?V.minor.tickwidth:V.tickwidth,1)+"px"}).attr("d",Te.path).style("display",null),Ct(V,[D]),Re.attr("transform",Te.transFn)},$.drawGrid=function(Z,V,Te){if(Te=Te||{},V.tickmode!=="sync"){var Ae=V._id+"grid",ke=V.minor&&V.minor.showgrid,Re=ke?Te.vals.filter(function(dt){return dt.minor}):[],ze=V.showgrid?Te.vals.filter(function(dt){return!dt.minor}):[],Ce=Te.counterAxis;if(Ce&&$.shouldShowZeroLine(Z,V,Ce))for(var Se=V.tickmode==="array",Ne=0;Ne=0;et--){var lt=et?qe:tt;if(lt){var ut=lt.selectAll("path."+Ae).data(et?ze:Re,Ee);ut.exit().remove(),ut.enter().append("path").classed(Ae,1).classed("crisp",Te.crisp!==!1),ut.attr("transform",Te.transFn).attr("d",Te.path).each(function(dt){return o.stroke(h.select(this),dt.minor?V.minor.gridcolor:V.gridcolor||"#ddd")}).style("stroke-dasharray",function(dt){return m.dashStyle(dt.minor?V.minor.griddash:V.griddash,dt.minor?V.minor.gridwidth:V.gridwidth)}).style("stroke-width",function(dt){return(dt.minor?Xe:V._gw)+"px"}).style("display",null),typeof Te.path=="function"&&ut.attr("d",Te.path)}}Ct(V,[Q,P])}},$.drawZeroLine=function(Z,V,Te){Te=Te||Te;var Ae=V._id+"zl",ke=$.shouldShowZeroLine(Z,V,Te.counterAxis),Re=Te.layer.selectAll("path."+Ae).data(ke?[{x:0,id:V._id}]:[]);Re.exit().remove(),Re.enter().append("path").classed(Ae,1).classed("zl",1).classed("crisp",Te.crisp!==!1).each(function(){Te.layer.selectAll("path").sort(function(ze,Ce){return R(ze.id,Ce.id)})}),Re.attr("transform",Te.transFn).attr("d",Te.path).call(o.stroke,V.zerolinecolor||o.defaultLine).style("stroke-width",m.crispRound(Z,V.zerolinewidth,V._gw||1)+"px").style("display",null),Ct(V,[N])},$.drawLabels=function(Z,V,Te){Te=Te||{};var Ae=Z._fullLayout,ke=V._id,Re=ke.charAt(0),ze=Te.cls||ke+"tick",Ce=Te.vals.filter(function(Lt){return Lt.text}),Se=Te.labelFns,Ne=Te.secondary?0:V.tickangle,Ve=(V._prevTickAngles||{})[ze],Xe=Te.layer.selectAll("g."+ze).data(V.showticklabels?Ce:[],Ee),qe=[];Xe.enter().append("g").classed(ze,1).append("text").attr("text-anchor","middle").each(function(Lt){var st=h.select(this),vt=Z._promises.length;st.call(f.positionText,Se.xFn(Lt),Se.yFn(Lt)).call(m.font,Lt.font,Lt.fontSize,Lt.fontColor).text(Lt.text).call(f.convertToTspans,Z),Z._promises[vt]?qe.push(Z._promises.pop().then(function(){tt(st,Ne)})):tt(st,Ne)}),Ct(V,[z]),Xe.exit().remove(),Te.repositionOnUpdate&&Xe.each(function(Lt){h.select(this).select("text").call(f.positionText,Se.xFn(Lt),Se.yFn(Lt))});function tt(Lt,st){Lt.each(function(vt){var Dt=h.select(this),xt=Dt.select(".text-math-group"),Ft=Se.anchorFn(vt,st),Et=Te.transFn.call(Dt.node(),vt)+(v(st)&&+st!=0?" rotate("+st+","+Se.xFn(vt)+","+(Se.yFn(vt)-vt.fontSize/2)+")":""),Pt=f.lineCount(Dt),It=ee*vt.fontSize,Bt=Se.heightFn(vt,v(st)?+st:0,(Pt-1)*It);if(Bt&&(Et+=c(0,Bt)),xt.empty()){var Ht=Dt.select("text");Ht.attr({transform:Et,"text-anchor":Ft}),Ht.style("opacity",1),V._adjustTickLabelsOverflow&&V._adjustTickLabelsOverflow()}else{var Nt=m.bBox(xt.node()).width,Gt=Nt*{end:-.5,start:.5}[Ft];xt.attr("transform",Et+c(Gt,0))}})}V._adjustTickLabelsOverflow=function(){var Lt=V.ticklabeloverflow;if(!(!Lt||Lt==="allow")){var st=Lt.indexOf("hide")!==-1,vt=V._id.charAt(0)==="x",Dt=0,xt=vt?Z._fullLayout.width:Z._fullLayout.height;if(Lt.indexOf("domain")!==-1){var Ft=n.simpleMap(V.range,V.r2l);Dt=V.l2p(Ft[0])+V._offset,xt=V.l2p(Ft[1])+V._offset}var Et=Math.min(Dt,xt),Pt=Math.max(Dt,xt),It=V.side,Bt=1/0,Ht=-1/0;Xe.each(function(Vt){var Yt=h.select(this),$t=Yt.select(".text-math-group");if($t.empty()){var Ot=m.bBox(Yt.node()),Jt=0;vt?(Ot.right>Pt||Ot.leftPt||Ot.top+(V.tickangle?0:Vt.fontSize/4)V["_visibleLabelMin_"+Ft._id]?Vt.style("display","none"):Pt.K==="tick"&&!Et&&Vt.style("display",null)})})})})},tt(Xe,Ve+1?Ve:Ne);function et(){return qe.length&&Promise.all(qe)}var lt=null;function ut(){if(tt(Xe,Ne),Ce.length&&Re==="x"&&!v(Ne)&&(V.type!=="log"||String(V.dtick).charAt(0)!=="D")){lt=0;var Lt=0,st=[],vt;if(Xe.each(function(Ot){Lt=Math.max(Lt,Ot.fontSize);var Jt=V.l2p(Ot.x),Qt=Mt(this),Ut=m.bBox(Qt.node());st.push({top:0,bottom:10,height:10,left:Jt-Ut.width/2,right:Jt+Ut.width/2+2,width:Ut.width+2})}),(V.tickson==="boundaries"||V.showdividers)&&!Te.secondary){var Dt=2;for(V.ticks&&(Dt+=V.tickwidth/2),vt=0;vt1&&Te1)for(ke=1;ke=ke.min&&Z{"use strict";var h=e("yAcToaBS"),v=e("0Ft3SWJB"),S=e("46lPXjlm").BADNUM,i=v.isArrayOrTypedArray,n=v.isDateTime,c=v.cleanNumber,f=Math.round;oe.exports=function(T,u,p){var t=T,l=p.noMultiCategory;if(i(t)&&!t.length)return"-";if(!l&&M(t))return"multicategory";if(l&&Array.isArray(t[0])){for(var a=[],x=0;xl*2}function d(b){return Math.max(1,(b-1)/1e3)}function A(b,T){for(var u=b.length,p=d(u),t=0,l=0,a={},x=0;xt*2}function M(b){return i(b[0])&&i(b[1])}},"vg6lu/AO":(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("R5um7Wku"),S=e("0Ft3SWJB"),i=e("A5P9b9BX"),n=e("JdrF9yG0"),c=e("zSF5pjBO"),f=e("/Llx+klj"),r=e("NycC/quU"),o=e("pyDFBVwV"),m=e("HuQua9xW"),d=e("2vMGT4U+"),A=e("eiAwyOh4"),M=e("EsoX3nEB"),b=e("R+8I7jNJ"),T=e("Vq8+Ip3e").WEEKDAY_PATTERN,u=e("Vq8+Ip3e").HOUR_PATTERN;oe.exports=function(x,y,E,L,F){var B=L.letter,s=L.font||{},w=L.splomStash||{},g=E("visible",!L.visibleDflt),I=y._template||{},N=y.type||I.type||"-",Q;if(N==="date"){var P=v.getComponentMethod("calendars","handleDefaults");P(x,y,"calendar",L.calendar),L.noTicklabelmode||(Q=E("ticklabelmode"))}var D="";(!L.noTicklabelposition||N==="multicategory")&&(D=S.coerce(x,y,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:Q==="period"?["outside","inside"]:B==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),L.noTicklabeloverflow||E("ticklabeloverflow",D.indexOf("inside")!==-1?"hide past domain":N==="category"||N==="multicategory"?"allow":"hide past div"),b(y,F),M(x,y,E,L),d(x,y,E,L),N!=="category"&&!L.noHover&&E("hoverformat");var z=E("color"),H=z!==c.color.dflt?z:s.color,O=w.label||F._dfltTitle[B];if(m(x,y,E,N,L),!g)return y;E("title.text",O),S.coerceFont(E,"title.font",{family:s.family,size:S.bigFont(s.size),color:H}),f(x,y,E,N);var U=L.hasMinor;if(U&&(i.newContainer(y,"minor"),f(x,y,E,N,{isMinor:!0})),o(x,y,E,N,L),r(x,y,E,L),U){var Y=L.isMinor;L.isMinor=!0,r(x,y,E,L),L.isMinor=Y}A(x,y,E,{dfltColor:z,bgColor:L.bgColor,showGrid:L.showGrid,hasMinor:U,attributes:c}),U&&!y.minor.ticks&&!y.minor.showgrid&&delete y.minor,(y.showline||y.ticks)&&E("mirror");var ee=N==="multicategory";if(!L.noTickson&&(N==="category"||ee)&&(y.ticks||y.showgrid)){var ne;ee&&(ne="boundaries");var me=E("tickson",ne);me==="boundaries"&&delete y.ticklabelposition}if(ee){var $=E("showdividers");$&&(E("dividercolor"),E("dividerwidth"))}if(N==="date")if(n(x,y,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:p}),!y.rangebreaks.length)delete y.rangebreaks;else{for(var re=0;re=2){var B="",s,w;if(F.length===2){for(s=0;s<2;s++)if(w=l(F[s]),w){B=T;break}}var g=E("pattern",B);if(g===T)for(s=0;s<2;s++)w=l(F[s]),w&&(x.bounds[s]=F[s]=w-1);if(g)for(s=0;s<2;s++)switch(w=F[s],g){case T:if(!h(w)){x.enabled=!1;return}if(w=+w,w!==Math.floor(w)||w<0||w>=7){x.enabled=!1;return}x.bounds[s]=F[s]=w;break;case u:if(!h(w)){x.enabled=!1;return}if(w=+w,w<0||w>24){x.enabled=!1;return}x.bounds[s]=F[s]=w;break}if(y.autorange===!1){var I=y.range;if(I[0]I[1]){x.enabled=!1;return}}else if(F[0]>I[0]&&F[1]{"use strict";var h=e("R5um7Wku"),v=e("Vq8+Ip3e");q.id2name=function(n){if(!(typeof n!="string"||!n.match(v.AX_ID_PATTERN))){var c=n.split(" ")[0].substr(1);return c==="1"&&(c=""),n.charAt(0)+"axis"+c}},q.name2id=function(n){if(n.match(v.AX_NAME_PATTERN)){var c=n.substr(5);return c==="1"&&(c=""),n.charAt(0)+c}},q.cleanId=function(n,c,f){var r=/( domain)$/.test(n);if(!(typeof n!="string"||!n.match(v.AX_ID_PATTERN))&&!(c&&n.charAt(0)!==c)&&!(r&&!f)){var o=n.split(" ")[0].substr(1).replace(/^0+/,"");return o==="1"&&(o=""),n.charAt(0)+o+(r&&f?" domain":"")}},q.list=function(i,n,c){var f=i._fullLayout;if(!f)return[];var r=q.listIds(i,n),o=new Array(r.length),m;for(m=0;mf?1:-1:+(i.substr(1)||1)-+(n.substr(1)||1)},q.ref2id=function(i){return/^[xyz]/.test(i)?i.split(" ")[0]:!1};function S(i,n){if(n&&n.length){for(var c=0;c{"use strict";function q(e,h){var v=h.dataAttr||e._id.charAt(0),S={},i,n,c;if(h.axData)i=h.axData;else for(i=[],n=0;n0,f;c&&(f="array");var r=S("categoryorder",f),o;r==="array"&&(o=S("categoryarray")),!c&&r==="array"&&(r=v.categoryorder="trace"),r==="trace"?v._initialCategories=[]:r==="array"?v._initialCategories=o.slice():(o=q(v,i).sort(),r==="category ascending"?v._initialCategories=o:r==="category descending"&&(v._initialCategories=o.reverse()))}}},"6hRdzyd8":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("IaNOhRG8"),S=e("nXHY852p").id2name,i=e("zSF5pjBO"),n=e("gfz/NZnA"),c=e("R+8I7jNJ"),f=e("46lPXjlm").ALMOST_EQUAL,r=e("kca9bvt+").FROM_BL;q.handleDefaults=function(u,p,t){var l=t.axIds,a=t.axHasImage,x=p._axisConstraintGroups=[],y=p._axisMatchGroups=[],E,L,F,B,s,w,g,I;for(E=0;Ex?t.substr(x):l.substr(a))+y}function b(u,p){for(var t=p._size,l=t.h/t.w,a={},x=Object.keys(u),y=0;yf*I&&!D)){for(x=0;xre&&Xme&&(me=X);var ae=(me-ne)/(2*$);s/=ae,ne=L.l2r(ne),me=L.l2r(me),L.range=L._input.range=U{"use strict";var h=e("Lou4tdh8"),v=e("0Ft3SWJB"),S=v.numberFormat,i=e("VDpxHpeA"),n=e("uORtHUsV"),c=e("R5um7Wku"),f=v.strTranslate,r=e("7k8rh0sJ"),o=e("/oRevOrA"),m=e("+ELfTWmT"),d=e("9fFWTih4"),A=e("4JfnfFRI"),M=e("LnvsDkyo"),b=e("WFvnZ06c"),T=e("rC/dcWPV"),u=T.selectingOrDrawing,p=T.freeMode,t=e("kca9bvt+").FROM_TL,l=e("NLf4w7dD"),a=e("PM37TqjZ").redrawReglTraces,x=e("8MlMO9wt"),y=e("nXHY852p").getFromId,E=e("QvhOTlPp").prepSelect,L=e("QvhOTlPp").clearOutline,F=e("QvhOTlPp").selectOnClick,B=e("gfz/NZnA"),s=e("Vq8+Ip3e"),w=s.MINDRAG,g=s.MINZOOM,I=!0;function N(X,j,ae,se,le,ge,xe,te){var ie=X._fullLayout._zoomlayer,fe=xe+te==="nsew",ye=(xe+te).length===1,ce,ue,Me,Pe,Be,De,je,_e,Qe,Ue,nt,Ge,Ye,ot,rt,Ke,he,He,Ie,Fe,We,_,ve;ae+=j.yaxis._shift;function de(){if(ce=j.xaxis,ue=j.yaxis,Qe=ce._length,Ue=ue._length,je=ce._offset,_e=ue._offset,Me={},Me[ce._id]=ce,Pe={},Pe[ue._id]=ue,xe&&te)for(var Ce=j.overlays,Se=0;Se=0){Ne._fullLayout._deactivateShape(Ne);return}var Ve=Ne._fullLayout.clickmode;if(re(Ne),Ce===2&&!ye&&V(),fe)Ve.indexOf("select")>-1&&F(Se,Ne,Be,De,j.id,we),Ve.indexOf("event")>-1&&d.click(Ne,Se,j.id);else if(Ce===1&&ye){var Xe=xe?ue:ce,qe=xe==="s"||te==="w"?0:1,tt=Xe._name+".range["+qe+"]",et=z(Xe,qe),lt="left",ut="middle";if(Xe.fixedrange)return;xe?(ut=xe==="n"?"top":"bottom",Xe.side==="right"&&(lt="right")):te==="e"&&(lt="right"),Ne._context.showAxisRangeEntryBoxes&&h.select(be).call(r.makeEditable,{gd:Ne,immediate:!0,background:Ne._fullLayout.paper_bgcolor,text:String(et),fill:Xe.tickfont?Xe.tickfont.color:"#444",horizontalAlign:lt,verticalAlign:ut}).on("edit",function(dt){var Rt=Xe.d2r(dt);Rt!==void 0&&c.call("_guiRelayout",Ne,tt,Rt)})}}b.init(we);var Ee,Le,Oe,at,ft,ht,bt,Mt,it,Tt;function wt(Ce,Se,Ne){var Ve=be.getBoundingClientRect();Ee=Se-Ve.left,Le=Ne-Ve.top,X._fullLayout._calcInverseTransform(X);var Xe=v.apply3DTransform(X._fullLayout._invTransform)(Ee,Le);Ee=Xe[0],Le=Xe[1],Oe={l:Ee,r:Ee,w:0,t:Le,b:Le,h:0},at=X._hmpixcount?X._hmlumcount/X._hmpixcount:i(X._fullLayout.plot_bgcolor).getLuminance(),ft="M0,0H"+Qe+"V"+Ue+"H0V0",ht=!1,bt="xy",Tt=!1,Mt=ee(ie,at,je,_e,ft),it=ne(ie,je,_e)}function pt(Ce,Se){if(X._transitioningWithDuration)return!1;var Ne=Math.max(0,Math.min(Qe,_*Ce+Ee)),Ve=Math.max(0,Math.min(Ue,ve*Se+Le)),Xe=Math.abs(Ne-Ee),qe=Math.abs(Ve-Le);Oe.l=Math.min(Ee,Ne),Oe.r=Math.max(Ee,Ne),Oe.t=Math.min(Le,Ve),Oe.b=Math.max(Le,Ve);function tt(){bt="",Oe.r=Oe.l,Oe.t=Oe.b,it.attr("d","M0,0Z")}if(nt.isSubplotConstrained)Xe>g||qe>g?(bt="xy",Xe/Qe>qe/Ue?(qe=Xe*Ue/Qe,Le>Ve?Oe.t=Le-qe:Oe.b=Le+qe):(Xe=qe*Qe/Ue,Ee>Ne?Oe.l=Ee-Xe:Oe.r=Ee+Xe),it.attr("d",G(Oe))):tt();else if(Ge.isSubplotConstrained)if(Xe>g||qe>g){bt="xy";var et=Math.min(Oe.l/Qe,(Ue-Oe.b)/Ue),lt=Math.max(Oe.r/Qe,(Ue-Oe.t)/Ue);Oe.l=et*Qe,Oe.r=lt*Qe,Oe.b=(1-et)*Ue,Oe.t=(1-lt)*Ue,it.attr("d",G(Oe))}else tt();else!ot||qe0){var dt;if(Ge.isSubplotConstrained||!Ye&&ot.length===1){for(dt=0;dt1&&(tt.maxallowed!==void 0&&Ke===(tt.range[0]1&&(et.maxallowed!==void 0&&he===(et.range[0]=0?Math.min(X,.9):1/(1/Math.max(X,-.3)+3.222))}function Y(X,j,ae){return X?X==="nsew"?ae?"":j==="pan"?"move":"crosshair":X.toLowerCase()+"-resize":"pointer"}function ee(X,j,ae,se,le){return X.append("path").attr("class","zoombox").style({fill:j>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",f(ae,se)).attr("d",le+"Z")}function ne(X,j,ae){return X.append("path").attr("class","zoombox-corners").style({fill:o.background,stroke:o.defaultLine,"stroke-width":1,opacity:0}).attr("transform",f(j,ae)).attr("d","M0,0Z")}function me(X,j,ae,se,le,ge){X.attr("d",se+"M"+ae.l+","+ae.t+"v"+ae.h+"h"+ae.w+"v-"+ae.h+"h-"+ae.w+"Z"),$(X,j,le,ge)}function $(X,j,ae,se){ae||(X.transition().style("fill",se>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),j.transition().style("opacity",1).duration(200))}function re(X){h.select(X).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function C(X){I&&X.data&&X._context.showTips&&(v.notifier(v._(X,"Double-click to zoom back out"),"long"),I=!1)}function R(X,j){return"M"+(X.l-.5)+","+(j-g-.5)+"h-3v"+(2*g+1)+"h3ZM"+(X.r+.5)+","+(j-g-.5)+"h3v"+(2*g+1)+"h-3Z"}function k(X,j){return"M"+(j-g-.5)+","+(X.t-.5)+"v-3h"+(2*g+1)+"v3ZM"+(j-g-.5)+","+(X.b+.5)+"v3h"+(2*g+1)+"v-3Z"}function G(X){var j=Math.floor(Math.min(X.b-X.t,X.r-X.l,g)/2);return"M"+(X.l-3.5)+","+(X.t-.5+j)+"h3v"+-j+"h"+j+"v-3h-"+(j+3)+"ZM"+(X.r+3.5)+","+(X.t-.5+j)+"h-3v"+-j+"h"+-j+"v-3h"+(j+3)+"ZM"+(X.r+3.5)+","+(X.b+.5-j)+"h-3v"+j+"h"+-j+"v3h"+(j+3)+"ZM"+(X.l-3.5)+","+(X.b+.5-j)+"h3v"+j+"h"+j+"v3h-"+(j+3)+"Z"}function W(X,j,ae,se,le){for(var ge=!1,xe={},te={},ie,fe,ye,ce,ue=(le||{}).xaHash,Me=(le||{}).yaHash,Pe=0;Pe{"use strict";var h=e("Lou4tdh8"),v=e("9fFWTih4"),S=e("WFvnZ06c"),i=e("LnvsDkyo"),n=e("7TYI5MTh").makeDragBox,c=e("Vq8+Ip3e").DRAGGERSIZE;q.initInteractions=function(r){var o=r._fullLayout;if(r._context.staticPlot){h.select(r).selectAll(".drag").remove();return}if(!(!o._has("cartesian")&&!o._has("splom"))){var m=Object.keys(o._plots||{}).sort(function(A,M){if((o._plots[A].mainplot&&!0)===(o._plots[M].mainplot&&!0)){var b=A.split("y"),T=M.split("y");return b[0]===T[0]?Number(b[1]||1)-Number(T[1]||1):Number(b[0]||1)-Number(T[0]||1)}return o._plots[A].mainplot?1:-1});m.forEach(function(A){var M=o._plots[A],b=M.xaxis,T=M.yaxis;if(!M.mainplot){var u=n(r,M,b._offset,T._offset,b._length,T._length,"ns","ew");u.onmousemove=function(l){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===A&&r._fullLayout._plots[A]&&v.hover(r,l,A)},v.hover(r,l,A),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=A},u.onmouseout=function(l){r._dragging||(r._fullLayout._hoversubplot=null,S.unhover(r,l))},r._context.showAxisDragHandles&&(n(r,M,b._offset-c,T._offset-c,c,c,"n","w"),n(r,M,b._offset+b._length,T._offset-c,c,c,"n","e"),n(r,M,b._offset-c,T._offset+T._length,c,c,"s","w"),n(r,M,b._offset+b._length,T._offset+T._length,c,c,"s","e"))}if(r._context.showAxisDragHandles){if(A===b._mainSubplot){var p=b._mainLinePosition;b.side==="top"&&(p-=c),n(r,M,b._offset+b._length*.1,p,b._length*.8,c,"","ew"),n(r,M,b._offset,p,b._length*.1,c,"","w"),n(r,M,b._offset+b._length*.9,p,b._length*.1,c,"","e")}if(A===T._mainSubplot){var t=T._mainLinePosition;T.side!=="right"&&(t-=c),n(r,M,t,T._offset+T._length*.1,c,T._length*.8,"ns",""),n(r,M,t,T._offset+T._length*.9,c,T._length*.1,"s",""),n(r,M,t,T._offset,c,T._length*.1,"n","")}}});var d=o._hoverlayer.node();d.onmousemove=function(A){A.target=r._fullLayout._lasthover,v.hover(r,A,o._hoversubplot)},d.onclick=function(A){A.target=r._fullLayout._lasthover,v.click(r,A)},d.onmousedown=function(A){r._fullLayout._lasthover.onmousedown(A)},q.updateFx(r)}},q.updateFx=function(f){var r=f._fullLayout,o=r.dragmode==="pan"?"move":"crosshair";i(r._draggers,o)}},"lGy/M/Cj":(oe,q,e)=>{"use strict";var h=e("R5um7Wku"),v=e("0Ft3SWJB"),S=e("nXHY852p");oe.exports=function(n){return function(f,r){var o=f[n];if(Array.isArray(o))for(var m=h.subplotsRegistry.cartesian,d=m.idRegex,A=r._subplots,M=A.xaxis,b=A.yaxis,T=A.cartesian,u=r._has("cartesian")||r._has("gl2d"),p=0;p{"use strict";var h=e("Lou4tdh8"),v=e("R5um7Wku"),S=e("0Ft3SWJB"),i=e("8MlMO9wt"),n=e("+ELfTWmT"),c=e("JvoEnJDT").a0,f=e("nXHY852p"),r=e("Vq8+Ip3e"),o=e("nfwe4Djo"),m=S.ensureSingle;function d(p,t,l){return S.ensureSingle(p,t,l,function(a){a.datum(l)})}q.name="cartesian",q.attr=["xaxis","yaxis"],q.idRoot=["x","y"],q.idRegex=r.idRegex,q.attrRegex=r.attrRegex,q.attributes=e("zWdj+er5"),q.layoutAttributes=e("zSF5pjBO"),q.supplyLayoutDefaults=e("+Hk6JDWQ"),q.transitionAxes=e("k7ZwowEo"),q.finalizeSubplots=function(p,t){var l=t._subplots,a=l.xaxis,x=l.yaxis,y=l.cartesian,E=y.concat(l.gl2d||[]),L={},F={},B,s,w;for(B=0;B{"use strict";var h=e("0Ft3SWJB"),v=e("/oRevOrA"),S=e("ErV1Ibqz").isUnifiedHover,i=e("4FumUcA6"),n=e("A5P9b9BX"),c=e("JEbHibKP"),f=e("zSF5pjBO"),r=e("xxu9688R"),o=e("vg6lu/AO"),m=e("6hRdzyd8"),d=e("kAv/b5aV"),A=e("nXHY852p"),M=A.id2name,b=A.name2id,T=e("Vq8+Ip3e").AX_ID_PATTERN,u=e("R5um7Wku"),p=u.traceIs,t=u.getComponentMethod;function l(a,x,y){Array.isArray(a[x])?a[x].push(y):a[x]=[y]}oe.exports=function(x,y,E){var L=y.autotypenumbers,F={},B={},s={},w={},g={},I={},N={},Q={},P={},D={},z,H;for(z=0;z{"use strict";var h=e("VDpxHpeA").mix,v=e("Khpmx9F5"),S=e("0Ft3SWJB");oe.exports=function(n,c,f,r){r=r||{};var o=r.dfltColor;function m(s,w){return S.coerce2(n,c,r.attributes,s,w)}var d=m("linecolor",o),A=m("linewidth"),M=f("showline",r.showLine||!!d||!!A);M||(delete c.linecolor,delete c.linewidth);var b=h(o,r.bgColor,r.blend||v.lightFraction).toRgbString(),T=m("gridcolor",b),u=m("gridwidth"),p=m("griddash"),t=f("showgrid",r.showGrid||!!T||!!u||!!p);if(t||(delete c.gridcolor,delete c.gridwidth,delete c.griddash),r.hasMinor){var l=h(c.gridcolor,r.bgColor,67).toRgbString(),a=m("minor.gridcolor",l),x=m("minor.gridwidth",c.gridwidth||1),y=m("minor.griddash",c.griddash||"solid"),E=f("minor.showgrid",!!a||!!x||!!y);E||(delete c.minor.gridcolor,delete c.minor.gridwidth,delete c.minor.griddash)}if(!r.noZeroLine){var L=m("zerolinecolor",o),F=m("zerolinewidth"),B=f("zeroline",r.showGrid||!!L||!!F);B||(delete c.zerolinecolor,delete c.zerolinewidth)}}},"kAv/b5aV":(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("0Ft3SWJB");oe.exports=function(i,n,c,f){var r=f.counterAxes||[],o=f.overlayableAxes||[],m=f.letter,d=f.grid,A=f.overlayingDomain,M,b,T,u,p,t;d&&(b=d._domains[m][d._axisMap[n._id]],M=d._anchors[n._id],b&&(T=d[m+"side"].split(" ")[0],u=d.domain[m][T==="right"||T==="top"?1:0])),b=b||[0,1],M=M||(h(i.position)?"free":r[0]||"free"),T=T||(m==="x"?"bottom":"left"),u=u||0,p=0,t=!1;var l=v.coerce(i,n,{anchor:{valType:"enumerated",values:["free"].concat(r),dflt:M}},"anchor"),a=v.coerce(i,n,{side:{valType:"enumerated",values:m==="x"?["bottom","top"]:["left","right"],dflt:T}},"side");if(l==="free"){if(m==="y"){var x=c("autoshift");x&&(u=a==="left"?A[0]:A[1],t=n.automargin?n.automargin:!0,p=a==="left"?-3:3),c("shift",p)}c("position",u)}c("automargin",t);var y=!1;if(o.length&&(y=v.coerce(i,n,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!y){var E=c("domain",b);E[0]>E[1]-1/4096&&(n.domain=b),v.noneOrAll(i.domain,n.domain,b),n.tickmode==="sync"&&(n.tickmode="auto")}return c("layer"),n}},EsoX3nEB:(oe,q,e)=>{"use strict";var h=e("GrO9zZrU");oe.exports=function(S,i,n,c){var f=i._template||{},r=i.type||f.type||"-";n("minallowed"),n("maxallowed");var o=n("range"),m=i.getAutorangeDflt(o,c),d=n("autorange",m),A;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(d==="reversed"||d===!0)||o[0]!==null&&(d==="min"||d==="max reversed")||o[1]!==null&&(d==="max"||d==="min reversed"))&&(o=void 0,delete i.range,i.autorange=!0,A=!0),A||(m=i.getAutorangeDflt(o,c),d=n("autorange",m)),d&&(h(n,d,o),(r==="linear"||r==="-")&&n("rangemode")),i.cleanRange()}},"gfz/NZnA":(oe,q,e)=>{"use strict";var h=e("kca9bvt+").FROM_BL;oe.exports=function(S,i,n){n===void 0&&(n=h[S.constraintoward||"center"]);var c=[S.r2l(S.range[0]),S.r2l(S.range[1])],f=c[0]+(c[1]-c[0])*n;S.range=S._input.range=[S.l2r(f+(c[0]-f)*i),S.l2r(f+(c[1]-f)*i)],S.setScale()}},"R+8I7jNJ":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("ICZj06Ga").g0,S=e("0Ft3SWJB"),i=S.numberFormat,n=e("yAcToaBS"),c=S.cleanNumber,f=S.ms2DateTime,r=S.dateTime2ms,o=S.ensureNumber,m=S.isArrayOrTypedArray,d=e("46lPXjlm"),A=d.FP_SAFE,M=d.BADNUM,b=d.LOG_CLIP,T=d.ONEWEEK,u=d.ONEDAY,p=d.ONEHOUR,t=d.ONEMIN,l=d.ONESEC,a=e("nXHY852p"),x=e("Vq8+Ip3e"),y=x.HOUR_PATTERN,E=x.WEEKDAY_PATTERN;function L(B){return Math.pow(10,B)}function F(B){return B!=null}oe.exports=function(s,w){w=w||{};var g=s._id||"x",I=g.charAt(0);function N(R,k){if(R>0)return Math.log(R)/Math.LN10;if(R<=0&&k&&s.range&&s.range.length===2){var G=s.range[0],W=s.range[1];return .5*(G+W-2*b*Math.abs(G-W))}else return M}function Q(R,k,G,W){if((W||{}).msUTC&&n(R))return+R;var J=r(R,G||s.calendar);if(J===M)if(n(R)){R=+R;var K=Math.floor(S.mod(R+.05,1)*10),X=Math.round(R-K/10);J=r(new Date(X))+K/10}else return M;return J}function P(R,k,G){return f(R,k,G||s.calendar)}function D(R){return s._categories[Math.round(R)]}function z(R){if(F(R)){if(s._categoriesMap===void 0&&(s._categoriesMap={}),s._categoriesMap[R]!==void 0)return s._categoriesMap[R];s._categories.push(typeof R=="number"?String(R):R);var k=s._categories.length-1;return s._categoriesMap[R]=k,k}return M}function H(R,k){for(var G=new Array(k),W=0;Ws.range[1]&&(G=!G);for(var W=G?-1:1,J=W*R,K=0,X=0;Xae)K=X+1;else{K=J<(j+ae)/2?X:X+1;break}}var se=s._B[K]||0;return isFinite(se)?ee(R,s._m2,se):0},$=function(R){var k=s._rangebreaks.length;if(!k)return ne(R,s._m,s._b);for(var G=0,W=0;Ws._rangebreaks[W].pmax&&(G=W+1);return ne(R,s._m2,s._B[G])}}s.c2l=s.type==="log"?N:o,s.l2c=s.type==="log"?L:o,s.l2p=me,s.p2l=$,s.c2p=s.type==="log"?function(R,k){return me(N(R,k))}:me,s.p2c=s.type==="log"?function(R){return L($(R))}:$,["linear","-"].indexOf(s.type)!==-1?(s.d2r=s.r2d=s.d2c=s.r2c=s.d2l=s.r2l=c,s.c2d=s.c2r=s.l2d=s.l2r=o,s.d2p=s.r2p=function(R){return s.l2p(c(R))},s.p2d=s.p2r=$,s.cleanPos=o):s.type==="log"?(s.d2r=s.d2l=function(R,k){return N(c(R),k)},s.r2d=s.r2c=function(R){return L(c(R))},s.d2c=s.r2l=c,s.c2d=s.l2r=o,s.c2r=N,s.l2d=L,s.d2p=function(R,k){return s.l2p(s.d2r(R,k))},s.p2d=function(R){return L($(R))},s.r2p=function(R){return s.l2p(c(R))},s.p2r=$,s.cleanPos=o):s.type==="date"?(s.d2r=s.r2d=S.identity,s.d2c=s.r2c=s.d2l=s.r2l=Q,s.c2d=s.c2r=s.l2d=s.l2r=P,s.d2p=s.r2p=function(R,k,G){return s.l2p(Q(R,0,G))},s.p2d=s.p2r=function(R,k,G){return P($(R),k,G)},s.cleanPos=function(R){return S.cleanDate(R,M,s.calendar)}):s.type==="category"?(s.d2c=s.d2l=z,s.r2d=s.c2d=s.l2d=D,s.d2r=s.d2l_noadd=U,s.r2c=function(R){var k=Y(R);return k!==void 0?k:s.fraction2r(.5)},s.l2r=s.c2r=o,s.r2l=Y,s.d2p=function(R){return s.l2p(s.r2c(R))},s.p2d=function(R){return D($(R))},s.r2p=s.d2p,s.p2r=$,s.cleanPos=function(R){return typeof R=="string"&&R!==""?R:o(R)}):s.type==="multicategory"&&(s.r2d=s.c2d=s.l2d=D,s.d2r=s.d2l_noadd=U,s.r2c=function(R){var k=U(R);return k!==void 0?k:s.fraction2r(.5)},s.r2c_just_indices=O,s.l2r=s.c2r=o,s.r2l=U,s.d2p=function(R){return s.l2p(s.r2c(R))},s.p2d=function(R){return D($(R))},s.r2p=s.d2p,s.p2r=$,s.cleanPos=function(R){return Array.isArray(R)||typeof R=="string"&&R!==""?R:o(R)},s.setupMultiCategory=function(R){var k=s._traceIndices,G,W,J=s._matchGroup;if(J&&s._categories.length===0){for(var K in J)if(K!==g){var X=w[a.id2name(K)];k=k.concat(X._traceIndices)}}var j=[[0,{}],[0,{}]],ae=[];for(G=0;GX[1]&&(W[K?0:1]=G)}},s.cleanRange=function(R,k){s._cleanRange(R,k),s.limitRange(R)},s._cleanRange=function(R,k){k||(k={}),R||(R="range");var G=S.nestedProperty(s,R).get(),W,J;if(s.type==="date"?J=S.dfltRange(s.calendar):I==="y"?J=x.DFLTRANGEY:s._name==="realaxis"?J=[0,1]:J=k.dfltRange||x.DFLTRANGEX,J=J.slice(),(s.rangemode==="tozero"||s.rangemode==="nonnegative")&&(J[0]=0),!G||G.length!==2){S.nestedProperty(s,R).set(J);return}var K=G[0]===null,X=G[1]===null;for(s.type==="date"&&!s.autorange&&(G[0]=S.cleanDate(G[0],M,s.calendar),G[1]=S.cleanDate(G[1],M,s.calendar)),W=0;W<2;W++)if(s.type==="date"){if(!S.isDateTime(G[W],s.calendar)){s[R]=J;break}if(s.r2l(G[0])===s.r2l(G[1])){var j=S.constrain(s.r2l(G[0]),S.MIN_MS+1e3,S.MAX_MS-1e3);G[0]=s.l2r(j-1e3),G[1]=s.l2r(j+1e3);break}}else{if(!n(G[W]))if(!(K||X)&&n(G[1-W]))G[W]=G[1-W]*(W?10:.1);else{s[R]=J;break}if(G[W]<-A?G[W]=-A:G[W]>A&&(G[W]=A),G[0]===G[1]){var ae=Math.max(1,Math.abs(G[0]*1e-6));G[0]-=ae,G[1]+=ae}}},s.setScale=function(R){var k=w._size;if(s.overlaying){var G=a.getFromId({_fullLayout:w},s.overlaying);s.domain=G.domain}var W=R&&s._r?"_r":"range",J=s.calendar;s.cleanRange(W);var K=s.r2l(s[W][0],J),X=s.r2l(s[W][1],J),j=I==="y";if(j?(s._offset=k.t+(1-s.domain[1])*k.h,s._length=k.h*(s.domain[1]-s.domain[0]),s._m=s._length/(K-X),s._b=-s._m*X):(s._offset=k.l+s.domain[0]*k.w,s._length=k.w*(s.domain[1]-s.domain[0]),s._m=s._length/(X-K),s._b=-s._m*K),s._rangebreaks=[],s._lBreaks=0,s._m2=0,s._B=[],s.rangebreaks){var ae,se;if(s._rangebreaks=s.locateBreaks(Math.min(K,X),Math.max(K,X)),s._rangebreaks.length){for(ae=0;aeX&&(le=!le),le&&s._rangebreaks.reverse();var ge=le?-1:1;for(s._m2=ge*s._length/(Math.abs(X-K)-s._lBreaks),s._B.push(-s._m2*(j?X:K)),ae=0;aeJ&&(J+=7,KJ&&(J+=24,K=W&&K=W&&R=De.min&&(ueDe.max&&(De.max=Me),Pe=!1)}Pe&&X.push({min:ue,max:Me})}};for(G=0;G{"use strict";var h=e("Lou4tdh8"),v=e("R5um7Wku"),S=e("0Ft3SWJB"),i=e("+ELfTWmT"),n=e("4JfnfFRI");oe.exports=function(f,r,o,m){var d=f._fullLayout;if(r.length===0){n.redrawComponents(f);return}function A(y){var E=y.xaxis,L=y.yaxis;d._defs.select("#"+y.clipId+"> rect").call(i.setTranslate,0,0).call(i.setScale,1,1),y.plot.call(i.setTranslate,E._offset,L._offset).call(i.setScale,1,1);var F=y.plot.selectAll(".scatterlayer .trace");F.selectAll(".point").call(i.setPointGroupScale,1,1),F.selectAll(".textpoint").call(i.setTextPointsScale,1,1),F.call(i.hideOutsideRangePoints,y)}function M(y,E){var L=y.plotinfo,F=L.xaxis,B=L.yaxis,s=F._length,w=B._length,g=!!y.xr1,I=!!y.yr1,N=[];if(g){var Q=S.simpleMap(y.xr0,F.r2l),P=S.simpleMap(y.xr1,F.r2l),D=Q[1]-Q[0],z=P[1]-P[0];N[0]=(Q[0]*(1-E)+E*P[0]-Q[0])/(Q[1]-Q[0])*s,N[2]=s*(1-E+E*z/D),F.range[0]=F.l2r(Q[0]*(1-E)+E*P[0]),F.range[1]=F.l2r(Q[1]*(1-E)+E*P[1])}else N[0]=0,N[2]=s;if(I){var H=S.simpleMap(y.yr0,B.r2l),O=S.simpleMap(y.yr1,B.r2l),U=H[1]-H[0],Y=O[1]-O[0];N[1]=(H[1]*(1-E)+E*O[1]-H[1])/(H[0]-H[1])*w,N[3]=w*(1-E+E*Y/U),B.range[0]=F.l2r(H[0]*(1-E)+E*O[0]),B.range[1]=B.l2r(H[1]*(1-E)+E*O[1])}else N[1]=0,N[3]=w;n.drawOne(f,F,{skipTitle:!0}),n.drawOne(f,B,{skipTitle:!0}),n.redrawComponents(f,[F._id,B._id]);var ee=g?s/N[2]:1,ne=I?w/N[3]:1,me=g?N[0]:0,$=I?N[1]:0,re=g?N[0]/N[2]*s:0,C=I?N[1]/N[3]*w:0,R=F._offset-re,k=B._offset-C;L.clipRect.call(i.setTranslate,me,$).call(i.setScale,1/ee,1/ne),L.plot.call(i.setTranslate,R,k).call(i.setScale,ee,ne),i.setPointGroupScale(L.zoomScalePts,1/ee,1/ne),i.setTextPointsScale(L.zoomScaleTxt,1/ee,1/ne)}var b;m&&(b=m());function T(){for(var y={},E=0;Eo.duration?(T(),l=window.cancelAnimationFrame(x)):l=window.requestAnimationFrame(x)}return p=Date.now(),l=window.requestAnimationFrame(x),Promise.resolve()}},xxu9688R:(oe,q,e)=>{"use strict";var h=e("R5um7Wku").traceIs,v=e("qv1FlERR");oe.exports=function(r,o,m,d){m("autotypenumbers",d.autotypenumbersDflt);var A=m("type",(d.splomStash||{}).type);A==="-"&&(S(o,d.data),o.type==="-"?o.type="linear":r.type=o.type)};function S(f,r){if(f.type==="-"){var o=f._id,m=o.charAt(0),d;o.indexOf("scene")!==-1&&(o=m);var A=i(r,o,m);if(A){if(A.type==="histogram"&&m==={v:"y",h:"x"}[A.orientation||"v"]){f.type="linear";return}var M=m+"calendar",b=A[M],T={noMultiCategory:!h(A,"cartesian")||h(A,"noMultiCategory")};if(A.type==="box"&&A._hasPreCompStats&&m==={h:"x",v:"y"}[A.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=f.autotypenumbers,c(A,m)){var u=n(A),p=[];for(d=0;d0&&(d["_"+o+"axes"]||{})[r])return d;if((d[o+"axis"]||o)===r){if(c(d,o))return d;if((d[o]||[]).length||d[o+"0"])return d}}}function n(f){return{v:"x",h:"y"}[f.orientation||"v"]}function c(f,r){var o=n(f),m=h(f,"box-violin"),d=h(f._fullInput||{},"candlestick");return m&&!d&&r===o&&f[o]===void 0&&f[o+"0"]===void 0}},UNxolM8i:(oe,q,e)=>{"use strict";var h=e("R5um7Wku"),v=e("0Ft3SWJB");q.manageCommandObserver=function(r,o,m,d){var A={},M=!0;o&&o._commandObserver&&(A=o._commandObserver),A.cache||(A.cache={}),A.lookupTable={};var b=q.hasSimpleAPICommandBindings(r,m,A.lookupTable);if(o&&o._commandObserver){if(b)return A;if(o._commandObserver.remove)return o._commandObserver.remove(),o._commandObserver=null,A}if(b){S(r,b,A.cache),A.check=function(){if(M){var t=S(r,b,A.cache);return t.changed&&d&&A.lookupTable[t.value]!==void 0&&(A.disable(),Promise.resolve(d({value:t.value,type:b.type,prop:b.prop,traces:b.traces,index:A.lookupTable[t.value]})).then(A.enable,A.enable)),t.changed}};for(var T=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+A;v.isPlainObject(M)?f(M,o,b,d+1):o(b,A,M)}})}},qxp2i9QF:(oe,q,e)=>{"use strict";var h=e("xE+ZFgwY").extendFlat;q.Y=function(v,S){v=v||{},S=S||{};var i={valType:"info_array",editType:v.editType,items:[{valType:"number",min:0,max:1,editType:v.editType},{valType:"number",min:0,max:1,editType:v.editType}],dflt:[0,1]},n=v.name?v.name+" ":"",c=v.trace?"trace ":"subplot ",f=S.description?" "+S.description:"",r={x:h({},i,{description:["Sets the horizontal domain of this ",n,c,"(in plot fraction).",f].join("")}),y:h({},i,{description:["Sets the vertical domain of this ",n,c,"(in plot fraction).",f].join("")}),editType:v.editType};return v.noGridCell||(r.row={valType:"integer",min:0,dflt:0,editType:v.editType,description:["If there is a layout grid, use the domain ","for this row in the grid for this ",n,c,".",f].join("")},r.column={valType:"integer",min:0,dflt:0,editType:v.editType,description:["If there is a layout grid, use the domain ","for this column in the grid for this ",n,c,".",f].join("")}),r},q.c=function(v,S,i,n){var c=n&&n.x||[0,1],f=n&&n.y||[0,1],r=S.grid;if(r){var o=i("domain.column");o!==void 0&&(o{"use strict";oe.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",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",description:"A label by which to identify the frame"},traces:{valType:"any",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",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",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},JvoEnJDT:(oe,q,e)=>{"use strict";var h,v=e("R5um7Wku"),S=e("Vq8+Ip3e").SUBPLOT_PATTERN;h=function(i,n,c){var f=v.subplotsRegistry[n];if(!f)return[];for(var r=f.attr,o=[],m=0;m{"use strict";function q(h,v){var S=[0,0,0,0],i,n;for(i=0;i<4;++i)for(n=0;n<4;++n)S[n]+=h[4*i+n]*v[i];return S}function e(h,v){var S=q(h.projection,q(h.view,q(h.model,[v[0],v[1],v[2],1])));return S}oe.exports=e},"8MlMO9wt":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("ICZj06Ga").Dq,S=e("9bSA6I2Q").FF,i=e("yAcToaBS"),n=e("R5um7Wku"),c=e("dbVsU3X7"),f=e("A5P9b9BX"),r=e("0Ft3SWJB"),o=e("/oRevOrA"),m=e("46lPXjlm").BADNUM,d=e("nXHY852p"),A=e("PWHNECNO").clearOutline,M=e("LB48LMA8"),b=e("HlG8UEh+"),T=e("IejtdMW5"),u=e("JvoEnJDT").a0,p=r.relinkPrivateKeys,t=r._,l=oe.exports={};r.extendFlat(l,n),l.attributes=e("FDg8C/At"),l.attributes.type.values=l.allTypes,l.fontAttrs=e("lf8+9Xc7"),l.layoutAttributes=e("JEbHibKP"),l.fontWeight="normal";var a=l.transformsRegistry,x=e("UNxolM8i");l.executeAPICommand=x.executeAPICommand,l.computeAPICommandBindings=x.computeAPICommandBindings,l.manageCommandObserver=x.manageCommandObserver,l.hasSimpleAPICommandBindings=x.hasSimpleAPICommandBindings,l.redrawText=function(C){return C=r.getGraphDiv(C),new Promise(function(R){setTimeout(function(){C._fullLayout&&(n.getComponentMethod("annotations","draw")(C),n.getComponentMethod("legend","draw")(C),n.getComponentMethod("colorbar","draw")(C),R(l.previousPromises(C)))},300)})},l.resize=function(C){C=r.getGraphDiv(C);var R,k=new Promise(function(G,W){(!C||r.isHidden(C))&&W(new Error("Resize must be passed a displayed plot div element.")),C._redrawTimer&&clearTimeout(C._redrawTimer),C._resolveResize&&(R=C._resolveResize),C._resolveResize=G,C._redrawTimer=setTimeout(function(){if(!C.layout||C.layout.width&&C.layout.height||r.isHidden(C)){G(C);return}delete C.layout.width,delete C.layout.height;var J=C.changed;C.autoplay=!0,n.call("relayout",C,{autosize:!0}).then(function(){C.changed=J,C._resolveResize===G&&(delete C._resolveResize,G(C))})},100)});return R&&R(k),k},l.previousPromises=function(C){if((C._promises||[]).length)return Promise.all(C._promises).then(function(){C._promises=[]})},l.addLinks=function(C){if(!(!C._context.showLink&&!C._context.showSources)){var R=C._fullLayout,k=r.ensureSingle(R._paper,"text","js-plot-link-container",function(j){j.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:o.defaultLine,"pointer-events":"all"}).each(function(){var ae=h.select(this);ae.append("tspan").classed("js-link-to-tool",!0),ae.append("tspan").classed("js-link-spacer",!0),ae.append("tspan").classed("js-sourcelinks",!0)})}),G=k.node(),W={y:R._paper.attr("height")-9};document.body.contains(G)&&G.getComputedTextLength()>=R.width-20?(W["text-anchor"]="start",W.x=5):(W["text-anchor"]="end",W.x=R._paper.attr("width")-7),k.attr(W);var J=k.select(".js-link-to-tool"),K=k.select(".js-link-spacer"),X=k.select(".js-sourcelinks");C._context.showSources&&C._context.showSources(C),C._context.showLink&&y(C,J),K.text(J.text()&&X.text()?" - ":"")}};function y(C,R){R.text("");var k=R.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(C._context.linkText+" "+String.fromCharCode(187));if(C._context.sendData)k.on("click",function(){l.sendDataToCloud(C)});else{var G=window.location.pathname.split("/"),W=window.location.search;k.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+G[2].split(".")[0]+"/"+G[1]+W})}}l.sendDataToCloud=function(C){var R=(window.PLOTLYENV||{}).BASE_URL||C._context.plotlyServerURL;if(R){C.emit("plotly_beforeexport");var k=h.select(C).append("div").attr("id","hiddenform").style("display","none"),G=k.append("form").attr({action:R+"/external",method:"post",target:"_blank"}),W=G.append("input").attr({type:"text",name:"data"});return W.node().value=l.graphJson(C,!1,"keepdata"),G.node().submit(),k.remove(),C.emit("plotly_afterexport"),!1}};var E=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],L=["year","month","dayMonth","dayMonthYear"];l.supplyDefaults=function(C,R){var k=R&&R.skipUpdateCalc,G=C._fullLayout||{};if(G._skipDefaults){delete G._skipDefaults;return}var W=C._fullLayout={},J=C.layout||{},K=C._fullData||[],X=C._fullData=[],j=C.data||[],ae=C.calcdata||[],se=C._context||{},le;C._transitionData||l.createTransitionData(C),W._dfltTitle={plot:t(C,"Click to enter Plot title"),x:t(C,"Click to enter X axis title"),y:t(C,"Click to enter Y axis title"),colorbar:t(C,"Click to enter Colorscale title"),annotation:t(C,"new text")},W._traceWord=t(C,"trace");var ge=s(C,E);if(W._mapboxAccessToken=se.mapboxAccessToken,G._initialAutoSizeIsDone){var xe=G.width,te=G.height;l.supplyLayoutGlobalDefaults(J,W,ge),J.width||(W.width=xe),J.height||(W.height=te),l.sanitizeMargins(W)}else{l.supplyLayoutGlobalDefaults(J,W,ge);var ie=!J.width||!J.height,fe=W.autosize,ye=se.autosizable,ce=ie&&(fe||ye);ce?l.plotAutoSize(C,J,W):ie&&l.sanitizeMargins(W),!fe&&ie&&(J.width=W.width,J.height=W.height)}W._d3locale=w(ge,W.separators),W._extraFormat=s(C,L),W._initialAutoSizeIsDone=!0,W._dataLength=j.length,W._modules=[],W._visibleModules=[],W._basePlotModules=[];var ue=W._subplots=B(),Me=W._splomAxes={x:{},y:{}},Pe=W._splomSubplots={};W._splomGridDflt={},W._scatterStackOpts={},W._firstScatter={},W._alignmentOpts={},W._colorAxes={},W._requestRangeslider={},W._traceUids=F(K,j),W._globalTransforms=(C._context||{}).globalTransforms,l.supplyDataDefaults(j,X,J,W);var Be=Object.keys(Me.x),De=Object.keys(Me.y);if(Be.length>1&&De.length>1){for(n.getComponentMethod("grid","sizeDefaults")(J,W),le=0;le15&&De.length>15&&W.shapes.length===0&&W.images.length===0,l.linkSubplots(X,W,K,G),l.cleanPlot(X,W,K,G);var nt=!!(G._has&&G._has("gl2d")),Ge=!!(W._has&&W._has("gl2d")),Ye=!!(G._has&&G._has("cartesian")),ot=!!(W._has&&W._has("cartesian")),rt=Ye||nt,Ke=ot||Ge;rt&&!Ke?G._bgLayer.remove():Ke&&!rt&&(W._shouldCreateBgLayer=!0),G._zoomlayer&&!C._dragging&&A({_fullLayout:G}),g(X,W),p(W,G),n.getComponentMethod("colorscale","crossTraceDefaults")(X,W),W._preGUI||(W._preGUI={}),W._tracePreGUI||(W._tracePreGUI={});var he=W._tracePreGUI,He={},Ie;for(Ie in he)He[Ie]="old";for(le=0;le0){var se=1-2*J;K=Math.round(se*K),X=Math.round(se*X)}}var le=l.layoutAttributes.width.min,ge=l.layoutAttributes.height.min;K1,te=!k.height&&Math.abs(G.height-X)>1;(te||xe)&&(xe&&(G.width=K),te&&(G.height=X)),R._initialAutoSize||(R._initialAutoSize={width:K,height:X}),l.sanitizeMargins(G)},l.supplyLayoutModuleDefaults=function(C,R,k,G){var W=n.componentsRegistry,J=R._basePlotModules,K,X,j,ae=n.subplotsRegistry.cartesian;for(K in W)j=W[K],j.includeBasePlot&&j.includeBasePlot(C,R);J.length||J.push(ae),R._has("cartesian")&&(n.getComponentMethod("grid","contentDefaults")(C,R),ae.finalizeSubplots(C,R));for(var se in R._subplots)R._subplots[se].sort(r.subplotSort);for(X=0;X1&&(k.l/=fe,k.r/=fe)}if(ge){var ye=(k.t+k.b)/ge;ye>1&&(k.t/=ye,k.b/=ye)}var ce=k.xl!==void 0?k.xl:k.x,ue=k.xr!==void 0?k.xr:k.x,Me=k.yt!==void 0?k.yt:k.y,Pe=k.yb!==void 0?k.yb:k.y;xe[R]={l:{val:ce,size:k.l+ie},r:{val:ue,size:k.r+ie},b:{val:Pe,size:k.b+ie},t:{val:Me,size:k.t+ie}},te[R]=1}if(!G._replotting)return l.doAutoMargin(C)}};function O(C){if("_redrawFromAutoMarginCount"in C._fullLayout)return!1;var R=d.list(C,"",!0);for(var k in R)if(R[k].autoshift||R[k].shift)return!0;return!1}l.doAutoMargin=function(C){var R=C._fullLayout,k=R.width,G=R.height;R._size||(R._size={}),D(R);var W=R._size,J=R.margin,K={t:0,b:0,l:0,r:0},X=r.extendFlat({},W),j=J.l,ae=J.r,se=J.t,le=J.b,ge=R._pushmargin,xe=R._pushmarginIds,te=R.minreducedwidth,ie=R.minreducedheight;if(J.autoexpand!==!1){for(var fe in ge)xe[fe]||delete ge[fe];var ye=C._fullLayout._reservedMargin;for(var ce in ye)for(var ue in ye[ce]){var Me=ye[ce][ue];K[ue]=Math.max(K[ue],Me)}ge.base={l:{val:0,size:j},r:{val:1,size:ae},t:{val:1,size:se},b:{val:0,size:le}};for(var Pe in K){var Be=0;for(var De in ge)De!=="base"&&i(ge[De][Pe].size)&&(Be=ge[De][Pe].size>Be?ge[De][Pe].size:Be);var je=Math.max(0,J[Pe]-Be);K[Pe]=Math.max(0,K[Pe]-je)}for(var _e in ge){var Qe=ge[_e].l||{},Ue=ge[_e].b||{},nt=Qe.val,Ge=Qe.size,Ye=Ue.val,ot=Ue.size,rt=k-K.r-K.l,Ke=G-K.t-K.b;for(var he in ge){if(i(Ge)&&ge[he].r){var He=ge[he].r.val,Ie=ge[he].r.size;if(He>nt){var Fe=(Ge*He+(Ie-rt)*nt)/(He-nt),We=(Ie*(1-nt)+(Ge-rt)*(1-He))/(He-nt);Fe+We>j+ae&&(j=Fe,ae=We)}}if(i(ot)&&ge[he].t){var _=ge[he].t.val,ve=ge[he].t.size;if(_>Ye){var de=(ot*_+(ve-Ke)*Ye)/(_-Ye),pe=(ve*(1-Ye)+(ot-Ke)*(1-_))/(_-Ye);de+pe>le+se&&(le=de,se=pe)}}}}}var be=r.constrain(k-J.l-J.r,z,te),we=r.constrain(G-J.t-J.b,H,ie),Je=Math.max(0,k-be),Ze=Math.max(0,G-we);if(Je){var Ee=(j+ae)/Je;Ee>1&&(j/=Ee,ae/=Ee)}if(Ze){var Le=(le+se)/Ze;Le>1&&(le/=Le,se/=Le)}if(W.l=Math.round(j)+K.l,W.r=Math.round(ae)+K.r,W.t=Math.round(se)+K.t,W.b=Math.round(le)+K.b,W.p=Math.round(J.pad),W.w=Math.round(k)-W.l-W.r,W.h=Math.round(G)-W.t-W.b,!R._replotting&&(l.didMarginChange(X,W)||O(C))){"_redrawFromAutoMarginCount"in R?R._redrawFromAutoMarginCount++:R._redrawFromAutoMarginCount=1;var Oe=3*(1+Object.keys(xe).length);if(R._redrawFromAutoMarginCount1)return!0}return!1},l.graphJson=function(C,R,k,G,W,J){(W&&R&&!C._fullData||W&&!R&&!C._fullLayout)&&l.supplyDefaults(C);var K=W?C._fullData:C.data,X=W?C._fullLayout:C.layout,j=(C._transitionData||{})._frames;function ae(ge,xe){if(typeof ge=="function")return xe?"_function_":null;if(r.isPlainObject(ge)){var te={},ie;return Object.keys(ge).sort().forEach(function(fe){if(["_","["].indexOf(fe.charAt(0))===-1){if(typeof ge[fe]=="function"){xe&&(te[fe]="_function");return}if(k==="keepdata"){if(fe.substr(fe.length-3)==="src")return}else if(k==="keepstream"){if(ie=ge[fe+"src"],typeof ie=="string"&&ie.indexOf(":")>0&&!r.isPlainObject(ge.stream))return}else if(k!=="keepall"&&(ie=ge[fe+"src"],typeof ie=="string"&&ie.indexOf(":")>0))return;te[fe]=ae(ge[fe],xe)}}),te}return Array.isArray(ge)?ge.map(function(fe){return ae(fe,xe)}):r.isTypedArray(ge)?r.simpleMap(ge,r.identity):r.isJSDate(ge)?r.ms2DateTimeLocal(+ge):ge}var se={data:(K||[]).map(function(ge){var xe=ae(ge);return R&&delete xe.fit,xe})};if(!R&&(se.layout=ae(X),W)){var le=X._size;se.layout.computed={margin:{b:le.b,l:le.l,r:le.r,t:le.t}}}return j&&(se.frames=ae(j)),J&&(se.config=ae(C._context,!0)),G==="object"?se:JSON.stringify(se)},l.modifyFrames=function(C,R){var k,G,W,J=C._transitionData._frames,K=C._transitionData._frameHash;for(k=0;k0&&(C._transitioningWithDuration=!0),C._transitionData._interruptCallbacks.push(function(){G=!0}),k.redraw&&C._transitionData._interruptCallbacks.push(function(){return n.call("redraw",C)}),C._transitionData._interruptCallbacks.push(function(){C.emit("plotly_transitioninterrupted",[])});var ge=0,xe=0;function te(){return ge++,function(){xe++,!G&&xe===ge&&X(le)}}k.runFn(te),setTimeout(te())})}function X(le){if(C._transitionData)return J(C._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(k.redraw)return n.call("redraw",C)}).then(function(){C._transitioning=!1,C._transitioningWithDuration=!1,C.emit("plotly_transitioned",[])}).then(le)}function j(){if(C._transitionData)return C._transitioning=!1,W(C._transitionData._interruptCallbacks)}var ae=[l.previousPromises,j,k.prepareFn,l.rehover,l.reselect,K],se=r.syncOrAsync(ae,C);return(!se||!se.then)&&(se=Promise.resolve()),se.then(function(){return C})}l.doCalcdata=function(C,R){var k=d.list(C),G=C._fullData,W=C._fullLayout,J,K,X,j,ae=new Array(G.length),se=(C.calcdata||[]).slice();for(C.calcdata=ae,W._numBoxes=0,W._numViolins=0,W._violinScaleGroupStats={},C._hmpixcount=0,C._hmlumcount=0,W._piecolormap={},W._sunburstcolormap={},W._treemapcolormap={},W._iciclecolormap={},W._funnelareacolormap={},X=0;X=0;j--)if(Pe[j].enabled){J._indexToPoints=Pe[j]._indexToPoints;break}K&&K.calc&&(Me=K.calc(C,J))}(!Array.isArray(Me)||!Me[0])&&(Me=[{x:m,y:m}]),Me[0].t||(Me[0].t={}),Me[0].trace=J,ae[ce]=Me}}for($(k,G,W),X=0;X{"use strict";var h=e("R5um7Wku"),v=e("0Ft3SWJB"),S=v.extendFlat,i=v.extendDeep;function n(f){var r;switch(f){case"themes__thumb":r={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":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function c(f){var r=["xaxis","yaxis","zaxis"];return r.indexOf(f.slice(0,5))>-1}oe.exports=function(r,o){var m,d=r.data,A=r.layout,M=i([],d),b=i({},A,n(o.tileClass)),T=r._context||{};if(o.width&&(b.width=o.width),o.height&&(b.height=o.height),o.tileClass==="thumbnail"||o.tileClass==="themes__thumb"){b.annotations=[];var u=Object.keys(b);for(m=0;m{"use strict";var h=e("0Ft3SWJB"),v=e("wIoo18WF"),S=e("0ljOLJdO"),i=e("/1xV6pOg");function n(c,f){var r;return h.isPlainObject(c)||(r=h.getGraphDiv(c)),f=f||{},f.format=f.format||"png",f.width=f.width||null,f.height=f.height||null,f.imageDataOnly=!0,new Promise(function(o,m){r&&r._snapshotInProgress&&m(new Error("Snapshotting already in progress.")),h.isIE()&&f.format!=="svg"&&m(new Error(i.MSG_IE_BAD_FORMAT)),r&&(r._snapshotInProgress=!0);var d=v(c,f),A=f.filename||c.fn||"newplot";A+="."+f.format.replace("-","."),d.then(function(M){return r&&(r._snapshotInProgress=!1),S(M,A,f.format)}).then(function(M){o(M)}).catch(function(M){r&&(r._snapshotInProgress=!1),m(M)})})}oe.exports=n},"0ljOLJdO":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("/1xV6pOg");function S(i,n,c){var f=document.createElement("a"),r="download"in f,o=new Promise(function(m,d){var A,M;if(h.isIE())return A=v.createBlob(i,"svg"),window.navigator.msSaveBlob(A,n),A=null,m(n);if(r)return A=v.createBlob(i,c),M=v.createObjectURL(A),f.href=M,f.download=n,document.body.appendChild(f),f.click(),document.body.removeChild(f),v.revokeObjectURL(M),A=null,m(n);if(h.isSafari()){var b=c==="svg"?",":";base64,";return v.octetStream(b+encodeURIComponent(i)),m(n)}d(new Error("download error"))});return o}oe.exports=S},"/1xV6pOg":(oe,q,e)=>{"use strict";var h=e("R5um7Wku");q.getDelay=function(i){return i._has&&(i._has("gl3d")||i._has("gl2d")||i._has("mapbox"))?500:0},q.getRedrawFunc=function(i){return function(){h.getComponentMethod("colorbar","draw")(i)}},q.encodeSVG=function(i){return"data:image/svg+xml,"+encodeURIComponent(i)},q.encodeJSON=function(i){return"data:application/json,"+encodeURIComponent(i)};var v=window.URL||window.webkitURL;q.createObjectURL=function(i){return v.createObjectURL(i)},q.revokeObjectURL=function(i){return v.revokeObjectURL(i)},q.createBlob=function(i,n){if(n==="svg")return new window.Blob([i],{type:"image/svg+xml;charset=utf-8"});if(n==="full-json")return new window.Blob([i],{type:"application/json;charset=utf-8"});var c=S(window.atob(i));return new window.Blob([c],{type:"image/"+n})},q.octetStream=function(i){document.location.href="data:application/octet-stream"+i};function S(i){for(var n=i.length,c=new ArrayBuffer(n),f=new Uint8Array(c),r=0;r{"use strict";var h=e("/1xV6pOg"),v={getDelay:h.getDelay,getRedrawFunc:h.getRedrawFunc,clone:e("WznuVG2f"),toSVG:e("qYUMvhEP"),svgToImg:e("P1XCdGWS"),toImage:e("O2jLtYfi"),downloadImage:e("FUuDuW8n")};oe.exports=v},P1XCdGWS:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("CVZcSkmN").EventEmitter,S=e("/1xV6pOg");function i(n){var c=n.emitter||new v,f=new Promise(function(r,o){var m=window.Image,d=n.svg,A=n.format||"png";if(h.isIE()&&A!=="svg"){var M=new Error(S.MSG_IE_BAD_FORMAT);return o(M),n.promise?f:c.emit("error",M)}var b=n.canvas,T=n.scale||1,u=n.width||300,p=n.height||150,t=T*u,l=T*p,a=b.getContext("2d",{willReadFrequently:!0}),x=new m,y,E;A==="svg"||h.isSafari()?E=S.encodeSVG(d):(y=S.createBlob(d,"svg"),E=S.createObjectURL(y)),b.width=t,b.height=l,x.onload=function(){var L;switch(y=null,S.revokeObjectURL(E),A!=="svg"&&a.drawImage(x,0,0,t,l),A){case"jpeg":L=b.toDataURL("image/jpeg");break;case"png":L=b.toDataURL("image/png");break;case"webp":L=b.toDataURL("image/webp");break;case"svg":L=E;break;default:var F="Image format is not jpeg, png, svg or webp.";if(o(new Error(F)),!n.promise)return c.emit("error",F)}r(L),n.promise||c.emit("success",L)},x.onerror=function(L){if(y=null,S.revokeObjectURL(E),o(L),!n.promise)return c.emit("error",L)},x.src=E});return n.promise?f:c}oe.exports=i},O2jLtYfi:(oe,q,e)=>{"use strict";var h=e("CVZcSkmN").EventEmitter,v=e("R5um7Wku"),S=e("0Ft3SWJB"),i=e("/1xV6pOg"),n=e("WznuVG2f"),c=e("qYUMvhEP"),f=e("P1XCdGWS");function r(o,m){var d=new h,A=n(o,{format:"png"}),M=A.gd;M.style.position="absolute",M.style.left="-5000px",document.body.appendChild(M);function b(){var u=i.getDelay(M._fullLayout);setTimeout(function(){var p=c(M),t=document.createElement("canvas");t.id=S.randstr(),d=f({format:m.format,width:M._fullLayout.width,height:M._fullLayout.height,canvas:t,emitter:d,svg:p}),d.clean=function(){M&&document.body.removeChild(M)}},u)}var T=i.getRedrawFunc(M);return v.call("_doPlot",M,A.data,A.layout,A.config).then(T).then(b).catch(function(u){d.emit("error",u)}),d}oe.exports=r},qYUMvhEP:(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("0Ft3SWJB"),S=e("+ELfTWmT"),i=e("/oRevOrA"),n=e("nfwe4Djo"),c=/"/g,f="TOBESTRIPPED",r=new RegExp('("'+f+")|("+f+'")',"g");function o(d){var A=h.select("body").append("div").style({display:"none"}).html(""),M=d.replace(/(&[^;]*;)/gi,function(b){return b==="<"?"<":b==="&rt;"?">":b.indexOf("<")!==-1||b.indexOf(">")!==-1?"":A.html(b).text()});return A.remove(),M}function m(d){return d.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}oe.exports=function(A,M,b){var T=A._fullLayout,u=T._paper,p=T._toppaper,t=T.width,l=T.height,a;u.insert("rect",":first-child").call(S.setRect,0,0,t,l).call(i.fill,T.paper_bgcolor);var x=T._basePlotModules||[];for(a=0;a{"use strict";var h=e("0Ft3SWJB");oe.exports=function(S,i){for(var n=0;n{"use strict";var h=e("SncXPNSm"),v=e("0xRk82sZ").axisHoverFormat,S=e("OzUSSj1k").fF,i=e("OzUSSj1k").si,n=e("kwWFMz5J"),c=e("lf8+9Xc7"),f=e("MzXAamq8"),r=e("LZ3mZdqo").u,o=e("xE+ZFgwY").extendFlat,m=c({editType:"calc",arrayOk:!0,colorEditType:"style",description:""}),d=h.marker,A=d.line,M=o({},A.width,{dflt:0}),b=o({width:M,editType:"calc"},n("marker.line")),T=o({line:b,editType:"calc"},n("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style",description:"Sets the opacity of the bars."},pattern:r});oe.exports={x:h.x,x0:h.x0,dx:h.dx,y:h.y,y0:h.y0,dy:h.dy,xperiod:h.xperiod,yperiod:h.yperiod,xperiod0:h.xperiod0,yperiod0:h.yperiod0,xperiodalignment:h.xperiodalignment,yperiodalignment:h.yperiodalignment,xhoverformat:v("x"),yhoverformat:v("y"),text:h.text,texttemplate:i({editType:"plot"},{keys:f.eventDataKeys}),hovertext:h.hovertext,hovertemplate:S({},{keys:f.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",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.","If *none*, no text appears."].join(" ")},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot",description:["Determines if texts are kept at center or start/end points in `textposition` *inside* mode."].join(" ")},textangle:{valType:"angle",dflt:"auto",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:o({},m,{description:"Sets the font used for `text`."}),insidetextfont:o({},m,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:o({},m,{description:"Sets the font used for `text` lying outside the bar."}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],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:o({},h.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",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,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,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,editType:"calc",description:["Sets the bar width (in position axis units)."].join(" ")},marker:T,offsetgroup:h.offsetgroup,alignmentgroup:h.alignmentgroup,selected:{marker:{opacity:h.selected.marker.opacity,color:h.selected.marker.color,editType:"style"},textfont:h.selected.textfont,editType:"style"},unselected:{marker:{opacity:h.unselected.marker.opacity,color:h.unselected.marker.color,editType:"style"},textfont:h.unselected.textfont,editType:"style"},_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"],description:"Renamed to `orientation`."}}}},lMsElyWC:(oe,q,e)=>{"use strict";var h=e("4JfnfFRI"),v=e("qPokwaSi"),S=e("s48LrSF+").hasColorscale,i=e("lNueT97u"),n=e("QwKhVvvj"),c=e("ArZ24uYa");oe.exports=function(r,o){var m=h.getFromId(r,o.xaxis||"x"),d=h.getFromId(r,o.yaxis||"y"),A,M,b,T,u,p,t={msUTC:!!(o.base||o.base===0)};o.orientation==="h"?(A=m.makeCalcdata(o,"x",t),b=d.makeCalcdata(o,"y"),T=v(o,d,"y",b),u=!!o.yperiodalignment,p="y"):(A=d.makeCalcdata(o,"y",t),b=m.makeCalcdata(o,"x"),T=v(o,m,"x",b),u=!!o.xperiodalignment,p="x"),M=T.vals;for(var l=Math.min(M.length,A.length),a=new Array(l),x=0;x{"use strict";oe.exports={TEXTPAD:3,eventDataKeys:["value","label"]}},i6LEMeab:(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("0Ft3SWJB").isArrayOrTypedArray,S=e("46lPXjlm").BADNUM,i=e("R5um7Wku"),n=e("4JfnfFRI"),c=e("6hRdzyd8").getAxisGroup,f=e("zQAeQVgh");function r(B,s){for(var w=s.xaxis,g=s.yaxis,I=B._fullLayout,N=B._fullData,Q=B.calcdata,P=[],D=[],z=0;zD+Q||!h(P))}for(var H=0;H{"use strict";var h=e("0Ft3SWJB"),v=e("/oRevOrA"),S=e("R5um7Wku"),i=e("0QKf0MkS"),n=e("tAeBVoBa"),c=e("lMmI2ALB"),f=e("/msinLC5"),r=e("msRxLST1"),o=h.coerceFont;function m(M,b,T,u){function p(y,E){return h.coerce(M,b,r,y,E)}var t=i(M,b,u,p);if(!t){b.visible=!1;return}n(M,b,u,p),p("xhoverformat"),p("yhoverformat"),p("orientation",b.x&&!b.y?"h":"v"),p("base"),p("offset"),p("width"),p("text"),p("hovertext"),p("hovertemplate");var l=p("textposition");A(M,b,u,p,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),c(M,b,p,T,u);var a=(b.marker.line||{}).color,x=S.getComponentMethod("errorbars","supplyDefaults");x(M,b,a||v.defaultLine,{axis:"y"}),x(M,b,a||v.defaultLine,{axis:"x",inherit:"y"}),h.coerceSelectionMarkerOpacity(b,p)}function d(M,b){var T,u;function p(l){return h.coerce(u._input,u,r,l)}if(b.barmode==="group")for(var t=0;t{"use strict";oe.exports=function(e,h,v){return e.x="xVal"in h?h.xVal:h.x,e.y="yVal"in h?h.yVal:h.y,h.xa&&(e.xaxis=h.xa),h.ya&&(e.yaxis=h.ya),v.orientation==="h"?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},"Lpym/Kdp":(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("VDpxHpeA"),S=e("0Ft3SWJB").isArrayOrTypedArray;q.coerceString=function(i,n,c){if(typeof n=="string"){if(n||!i.noBlank)return n}else if((typeof n=="number"||n===!0)&&!i.strict)return String(n);return c!==void 0?c:i.dflt},q.coerceNumber=function(i,n,c){if(h(n)){n=+n;var f=i.min,r=i.max,o=f!==void 0&&nr;if(!o)return n}return c!==void 0?c:i.dflt},q.coerceColor=function(i,n,c){return v(n).isValid()?n:c!==void 0?c:i.dflt},q.coerceEnumerated=function(i,n,c){return i.coerceNumber&&(n=+n),i.values.indexOf(n)!==-1?n:c!==void 0?c:i.dflt},q.getValue=function(i,n){var c;return Array.isArray(i)?n{"use strict";var h=e("9fFWTih4"),v=e("R5um7Wku"),S=e("/oRevOrA"),i=e("0Ft3SWJB").fillText,n=e("Lpym/Kdp").getLineWidth,c=e("4JfnfFRI").hoverLabelText,f=e("46lPXjlm").BADNUM;function r(d,A,M,b,T){var u=o(d,A,M,b,T);if(u){var p=u.cd,t=p[0].trace,l=p[u.index];return u.color=m(t,l),v.getComponentMethod("errorbars","hoverInfo")(l,t,u),[u]}}function o(d,A,M,b,T){var u=d.cd,p=u[0].trace,t=u[0].t,l=b==="closest",a=p.type==="waterfall",x=d.maxHoverDistance,y=d.maxSpikeDistance,E,L,F,B,s,w,g;p.orientation==="h"?(E=M,L=A,F="y",B="x",s=me,w=Y):(E=A,L=M,F="x",B="y",w=me,s=Y);var I=p[F+"period"],N=l||I;function Q(j){return D(j,-1)}function P(j){return D(j,1)}function D(j,ae){var se=j.w;return j[F]+ae*se/2}function z(j){return j[F+"End"]-j[F+"Start"]}var H=l?Q:I?function(j){return j.p-z(j)/2}:function(j){return Math.min(Q(j),j.p-t.bardelta/2)},O=l?P:I?function(j){return j.p+z(j)/2}:function(j){return Math.max(P(j),j.p+t.bardelta/2)};function U(j,ae,se){return T.finiteRange&&(se=0),h.inbox(j-E,ae-E,se+Math.min(1,Math.abs(ae-j)/g)-1)}function Y(j){return U(H(j),O(j),x)}function ee(j){return U(Q(j),P(j),y)}function ne(j){var ae=j[B];if(a){var se=Math.abs(j.rawS)||0;L>0?ae+=se:L<0&&(ae-=se)}return ae}function me(j){var ae=L,se=j.b,le=ne(j);return h.inbox(se-ae,le-ae,x+(le-ae)/(le-se)-1)}function $(j){var ae=L,se=j.b,le=ne(j);return h.inbox(se-ae,le-ae,y+(le-ae)/(le-se)-1)}var re=d[F+"a"],C=d[B+"a"];g=Math.abs(re.r2c(re.range[1])-re.r2c(re.range[0]));function R(j){return(s(j)+w(j))/2}var k=h.getDistanceFunction(b,s,w,R);if(h.getClosest(u,k,d),d.index!==!1&&u[d.index].p!==f){N||(H=function(j){return Math.min(Q(j),j.p-t.bargroupwidth/2)},O=function(j){return Math.max(P(j),j.p+t.bargroupwidth/2)});var G=d.index,W=u[G],J=p.base?W.b+W.s:W.s;d[B+"0"]=d[B+"1"]=C.c2p(W[B],!0),d[B+"LabelVal"]=J;var K=t.extents[t.extents.round(W.p)];d[F+"0"]=re.c2p(l?H(W):K[0],!0),d[F+"1"]=re.c2p(l?O(W):K[1],!0);var X=W.orig_p!==void 0;return d[F+"LabelVal"]=X?W.orig_p:W.p,d.labelLabel=c(re,d[F+"LabelVal"],p[F+"hoverformat"]),d.valueLabel=c(C,d[B+"LabelVal"],p[B+"hoverformat"]),d.baseLabel=c(C,W.b,p[B+"hoverformat"]),d.spikeDistance=($(W)+ee(W))/2,d[F+"Spike"]=re.c2p(W.p,!0),i(W,p,d),d.hovertemplate=p.hovertemplate,d}}function m(d,A){var M=A.mcc||d.marker.color,b=A.mlcc||d.marker.line.color,T=n(d,A);if(S.opacity(M))return M;if(S.opacity(b)&&T)return b}oe.exports={hoverPoints:r,hoverOnBars:o,getTraceColor:m}},"fa9voUu+":(oe,q,e)=>{"use strict";oe.exports={attributes:e("msRxLST1"),layoutAttributes:e("IOfsZqdi"),supplyDefaults:e("jOyGAhAZ").supplyDefaults,crossTraceDefaults:e("jOyGAhAZ").crossTraceDefaults,supplyLayoutDefaults:e("bC7Gw71F"),calc:e("lMsElyWC"),crossTraceCalc:e("i6LEMeab").crossTraceCalc,colorbar:e("WHVwkmN9"),arraysToCalcdata:e("QwKhVvvj"),plot:e("E+KwxggA").plot,style:e("Vs67SwPF").style,styleOnSelect:e("Vs67SwPF").styleOnSelect,hoverPoints:e("Uq+I87MH").hoverPoints,eventData:e("fjTE3x/z"),selectPoints:e("y9T6CtE5"),moduleType:"trace",name:"bar",basePlotModule:e("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 to *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}},IOfsZqdi:oe=>{"use strict";oe.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *relative*, the bars are stacked on top of one another,","with negative values below the axis, positive values above","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to reduce *opacity* to see multiple bars."].join(" ")},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Sets the normalization for bar traces on the graph.","With *fraction*, the value of each bar is divided by the sum of all","values at that location coordinate.","*percent* is the same but multiplied by 100 to show percentages."].join(" ")},bargap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},bC7Gw71F:(oe,q,e)=>{"use strict";var h=e("R5um7Wku"),v=e("4JfnfFRI"),S=e("0Ft3SWJB"),i=e("IOfsZqdi");oe.exports=function(n,c,f){function r(t,l){return S.coerce(n,c,i,t,l)}for(var o=!1,m=!1,d=!1,A={},M=r("barmode"),b=0;b{"use strict";var h=e("Lou4tdh8"),v=e("yAcToaBS"),S=e("0Ft3SWJB"),i=e("7k8rh0sJ"),n=e("/oRevOrA"),c=e("+ELfTWmT"),f=e("R5um7Wku"),r=e("4JfnfFRI").tickText,o=e("5jl4DkMq"),m=o.recordMinTextSize,d=o.clearMinTextSize,A=e("Vs67SwPF"),M=e("Lpym/Kdp"),b=e("MzXAamq8"),T=e("msRxLST1"),u=T.text,p=T.textposition,t=e("ErV1Ibqz").appendArrayPointValue,l=b.TEXTPAD;function a(H){return H.id}function x(H){if(H.ids)return a}function y(H,O){return H0}function B(H,O,U,Y,ee,ne){var me=O.xaxis,$=O.yaxis,re=H._fullLayout,C=H._context.staticPlot;ee||(ee={mode:re.barmode,norm:re.barmode,gap:re.bargap,groupgap:re.bargroupgap},d("bar",re));var R=S.makeTraceGroups(Y,U,"trace bars").each(function(k){var G=h.select(this),W=k[0].trace,J=W.type==="waterfall",K=W.type==="funnel",X=W.type==="bar",j=X||K,ae=0;J&&W.connector.visible&&W.connector.mode==="between"&&(ae=W.connector.line.width/2);var se=W.orientation==="h",le=F(ee),ge=S.ensureSingle(G,"g","points"),xe=x(W),te=ge.selectAll("g.point").data(S.identity,xe);te.enter().append("g").classed("point",!0),te.exit().remove(),te.each(function(fe,ye){var ce=h.select(this),ue=E(fe,me,$,se),Me=ue[0][0],Pe=ue[0][1],Be=ue[1][0],De=ue[1][1],je=(se?Pe-Me:De-Be)===0;je&&j&&M.getLineWidth(W,fe)&&(je=!1),je||(je=!v(Me)||!v(Pe)||!v(Be)||!v(De)),fe.isBlank=je,je&&(se?Pe=Me:De=Be),ae&&!je&&(se?(Me-=y(Me,Pe)*ae,Pe+=y(Me,Pe)*ae):(Be-=y(Be,De)*ae,De+=y(Be,De)*ae));var _e,Qe;if(W.type==="waterfall"){if(!je){var Ue=W[fe.dir].marker;_e=Ue.line.width,Qe=Ue.color}}else _e=M.getLineWidth(W,fe),Qe=fe.mc||W.marker.color;function nt(he){var He=h.round(_e/2%1,2);return ee.gap===0&&ee.groupgap===0?h.round(Math.round(he)-He,2):he}function Ge(he,He,Ie){return Ie&&he===He?he:Math.abs(he-He)>=2?nt(he):he>He?Math.ceil(he):Math.floor(he)}if(!H._context.staticPlot){var Ye=n.opacity(Qe),ot=Ye<1||_e>.01?nt:Ge;Me=ot(Me,Pe,se),Pe=ot(Pe,Me,se),Be=ot(Be,De,!se),De=ot(De,Be,!se)}var rt=L(S.ensureSingle(ce,"path"),re,ee,ne);if(rt.style("vector-effect",C?"none":"non-scaling-stroke").attr("d",isNaN((Pe-Me)*(De-Be))||je&&H._context.staticPlot?"M0,0Z":"M"+Me+","+Be+"V"+De+"H"+Pe+"V"+Be+"Z").call(c.setClipUrl,O.layerClipId,H),!re.uniformtext.mode&&le){var Ke=c.makePointStyleFns(W);c.singlePointStyle(fe,rt,W,Ke,H)}s(H,O,ce,k,ye,Me,Pe,Be,De,ee,ne),O.layerClipId&&c.hideOutsideRangePoint(fe,ce.select("text"),me,$,W.xcalendar,W.ycalendar)});var ie=W.cliponaxis===!1;c.setClipUrl(G,ie?null:O.layerClipId,H)});f.getComponentMethod("errorbars","plot")(H,R,O,ee)}function s(H,O,U,Y,ee,ne,me,$,re,C,R){var k=O.xaxis,G=O.yaxis,W=H._fullLayout,J;function K(he,He,Ie){var Fe=S.ensureSingle(he,"text").text(He).attr({class:"bartext bartext-"+J,"text-anchor":"middle","data-notex":1}).call(c.font,Ie).call(i.convertToTspans,H);return Fe}var X=Y[0].trace,j=X.orientation==="h",ae=Q(W,Y,ee,k,G);J=P(X,ee);var se=C.mode==="stack"||C.mode==="relative",le=Y[ee],ge=!se||le._outmost;if(!ae||J==="none"||(le.isBlank||ne===me||$===re)&&(J==="auto"||J==="inside")){U.select("text").remove();return}var xe=W.font,te=A.getBarColor(Y[ee],X),ie=A.getInsideTextFont(X,ee,xe,te),fe=A.getOutsideTextFont(X,ee,xe),ye=U.datum();j?k.type==="log"&&ye.s0<=0&&(k.range[0]0&&De>0,Qe=Be<=ce&&De<=ue,Ue=Be<=ue&&De<=ce,nt=j?ce>=Be*(ue/De):ue>=De*(ce/Be);_e&&(Qe||Ue||nt)?J="inside":(J="outside",Me.remove(),Me=null)}else J="inside";if(!Me){je=S.ensureUniformFontSize(H,J==="outside"?fe:ie),Me=K(U,ae,je);var Ge=Me.attr("transform");if(Me.attr("transform",""),Pe=c.bBox(Me.node()),Be=Pe.width,De=Pe.height,Me.attr("transform",Ge),Be<=0||De<=0){Me.remove();return}}var Ye=X.textangle,ot,rt;J==="outside"?(rt=X.constraintext==="both"||X.constraintext==="outside",ot=N(ne,me,$,re,Pe,{isHorizontal:j,constrained:rt,angle:Ye})):(rt=X.constraintext==="both"||X.constraintext==="inside",ot=I(ne,me,$,re,Pe,{isHorizontal:j,constrained:rt,angle:Ye,anchor:X.insidetextanchor})),ot.fontSize=je.size,m(X.type==="histogram"?"bar":X.type,ot,W),le.transform=ot;var Ke=L(Me,W,C,R);S.setTransormAndDisplay(Ke,ot)}function w(H){return H==="auto"?0:H}function g(H,O){var U=Math.PI/180*O,Y=Math.abs(Math.sin(U)),ee=Math.abs(Math.cos(U));return{x:H.width*ee+H.height*Y,y:H.width*Y+H.height*ee}}function I(H,O,U,Y,ee,ne){var me=!!ne.isHorizontal,$=!!ne.constrained,re=ne.angle||0,C=ne.anchor||"end",R=C==="end",k=C==="start",G=ne.leftToRight||0,W=(G+1)/2,J=1-W,K=ee.width,X=ee.height,j=Math.abs(O-H),ae=Math.abs(Y-U),se=j>2*l&&ae>2*l?l:0;j-=2*se,ae-=2*se;var le=w(re);re==="auto"&&!(K<=j&&X<=ae)&&(K>j||X>ae)&&(!(K>ae||X>j)||K2*l?l:0:W=k>2*l?l:0;var J=1;$&&(J=me?Math.min(1,G/R):Math.min(1,k/C));var K=w(re),X=g(ee,K),j=(me?X.x:X.y)/2,ae=(ee.left+ee.right)/2,se=(ee.top+ee.bottom)/2,le=(H+O)/2,ge=(U+Y)/2,xe=0,te=0,ie=me?y(O,H):y(U,Y);return me?(le=O-ie*W,xe=ie*j):(ge=Y+ie*W,te=-ie*j),{textX:ae,textY:se,targetX:le,targetY:ge,anchorX:xe,anchorY:te,scale:J,rotate:K}}function Q(H,O,U,Y,ee){var ne=O[0].trace,me=ne.texttemplate,$;return me?$=D(H,O,U,Y,ee):ne.textinfo?$=z(O,U,Y,ee):$=M.getValue(ne.text,U),M.coerceString(u,$)}function P(H,O){var U=M.getValue(H.textposition,O);return M.coerceEnumerated(p,U)}function D(H,O,U,Y,ee){var ne=O[0].trace,me=S.castOption(ne,U,"texttemplate");if(!me)return"";var $=ne.type==="histogram",re=ne.type==="waterfall",C=ne.type==="funnel",R=ne.orientation==="h",k,G,W,J;R?(k="y",G=ee,W="x",J=Y):(k="x",G=Y,W="y",J=ee);function K(xe){return r(G,G.c2l(xe),!0).text}function X(xe){return r(J,J.c2l(xe),!0).text}var j=O[U],ae={};ae.label=j.p,ae.labelLabel=ae[k+"Label"]=K(j.p);var se=S.castOption(ne,j.i,"text");(se===0||se)&&(ae.text=se),ae.value=j.s,ae.valueLabel=ae[W+"Label"]=X(j.s);var le={};t(le,ne,j.i),($||le.x===void 0)&&(le.x=R?ae.value:ae.label),($||le.y===void 0)&&(le.y=R?ae.label:ae.value),($||le.xLabel===void 0)&&(le.xLabel=R?ae.valueLabel:ae.labelLabel),($||le.yLabel===void 0)&&(le.yLabel=R?ae.labelLabel:ae.valueLabel),re&&(ae.delta=+j.rawS||j.s,ae.deltaLabel=X(ae.delta),ae.final=j.v,ae.finalLabel=X(ae.final),ae.initial=ae.final-ae.delta,ae.initialLabel=X(ae.initial)),C&&(ae.value=j.s,ae.valueLabel=X(ae.value),ae.percentInitial=j.begR,ae.percentInitialLabel=S.formatPercent(j.begR),ae.percentPrevious=j.difR,ae.percentPreviousLabel=S.formatPercent(j.difR),ae.percentTotal=j.sumR,ae.percenTotalLabel=S.formatPercent(j.sumR));var ge=S.castOption(ne,j.i,"customdata");return ge&&(ae.customdata=ge),S.texttemplateString(me,ae,H._d3locale,le,ae,ne._meta||{})}function z(H,O,U,Y){var ee=H[0].trace,ne=ee.orientation==="h",me=ee.type==="waterfall",$=ee.type==="funnel";function re(ge){var xe=ne?Y:U;return r(xe,ge,!0).text}function C(ge){var xe=ne?U:Y;return r(xe,+ge,!0).text}var R=ee.textinfo,k=H[O],G=R.split("+"),W=[],J,K=function(ge){return G.indexOf(ge)!==-1};if(K("label")&&W.push(re(H[O].p)),K("text")&&(J=S.castOption(ee,k.i,"text"),(J===0||J)&&W.push(J)),me){var X=+k.rawS||k.s,j=k.v,ae=j-X;K("initial")&&W.push(C(ae)),K("delta")&&W.push(C(X)),K("final")&&W.push(C(j))}if($){K("value")&&W.push(C(k.s));var se=0;K("percent initial")&&se++,K("percent previous")&&se++,K("percent total")&&se++;var le=se>1;K("percent initial")&&(J=S.formatPercent(k.begR),le&&(J+=" of initial"),W.push(J)),K("percent previous")&&(J=S.formatPercent(k.difR),le&&(J+=" of previous"),W.push(J)),K("percent total")&&(J=S.formatPercent(k.sumR),le&&(J+=" of total"),W.push(J))}return W.join("
")}oe.exports={plot:B,toMoveInsideBar:I}},y9T6CtE5:oe=>{"use strict";oe.exports=function(h,v){var S=h.cd,i=h.xaxis,n=h.yaxis,c=S[0].trace,f=c.type==="funnel",r=c.orientation==="h",o=[],m;if(v===!1)for(m=0;m{"use strict";oe.exports=v;var h=e("0Ft3SWJB").distinctVals;function v(S,i){this.traces=S,this.sepNegVal=i.sepNegVal,this.overlapNoMerge=i.overlapNoMerge;for(var n=1/0,c=i.posAxis._id.charAt(0),f=[],r=0;r{"use strict";var h=e("Lou4tdh8"),v=e("/oRevOrA"),S=e("+ELfTWmT"),i=e("0Ft3SWJB"),n=e("R5um7Wku"),c=e("5jl4DkMq").resizeText,f=e("msRxLST1"),r=f.textfont,o=f.insidetextfont,m=f.outsidetextfont,d=e("Lpym/Kdp");function A(L){var F=h.select(L).selectAll("g.barlayer").selectAll("g.trace");c(L,F,"bar");var B=F.size(),s=L._fullLayout;F.style("opacity",function(w){return w[0].trace.opacity}).each(function(w){(s.barmode==="stack"&&B>1||s.bargap===0&&s.bargroupgap===0&&!w[0].trace.marker.line.width)&&h.select(this).attr("shape-rendering","crispEdges")}),F.selectAll("g.points").each(function(w){var g=h.select(this),I=w[0].trace;M(g,I,L)}),n.getComponentMethod("errorbars","style")(F)}function M(L,F,B){S.pointStyle(L.selectAll("path"),F,B),b(L,F,B)}function b(L,F,B){L.selectAll("text").each(function(s){var w=h.select(this),g=i.ensureUniformFontSize(B,t(w,s,F,B));S.font(w,g)})}function T(L,F,B){var s=F[0].trace;s.selectedpoints?u(B,s,L):(M(B,s,L),n.getComponentMethod("errorbars","style")(B))}function u(L,F,B){S.selectedPointStyle(L.selectAll("path"),F),p(L.selectAll("text"),F,B)}function p(L,F,B){L.each(function(s){var w=h.select(this),g;if(s.selected){g=i.ensureUniformFontSize(B,t(w,s,F,B));var I=F.selected.textfont&&F.selected.textfont.color;I&&(g.color=I),S.font(w,g)}else S.selectedTextStyle(w,F)})}function t(L,F,B,s){var w=s._fullLayout.font,g=B.textfont;if(L.classed("bartext-inside")){var I=E(F,B);g=a(B,F.i,w,I)}else L.classed("bartext-outside")&&(g=x(B,F.i,w));return g}function l(L,F,B){return y(r,L.textfont,F,B)}function a(L,F,B,s){var w=l(L,F,B),g=L._input.textfont===void 0||L._input.textfont.color===void 0||Array.isArray(L.textfont.color)&&L.textfont.color[F]===void 0;return g&&(w={color:v.contrast(s),family:w.family,size:w.size}),y(o,L.insidetextfont,F,w)}function x(L,F,B){var s=l(L,F,B);return y(m,L.outsidetextfont,F,s)}function y(L,F,B,s){F=F||{};var w=d.getValue(F.family,B),g=d.getValue(F.size,B),I=d.getValue(F.color,B);return{family:d.coerceString(L.family,w,s.family),size:d.coerceNumber(L.size,g,s.size),color:d.coerceColor(L.color,I,s.color)}}function E(L,F){return F.type==="waterfall"?F[L.dir].marker.color:L.mcc||L.mc||F.marker.color}oe.exports={style:A,styleTextPoints:b,styleOnSelect:T,getInsideTextFont:a,getOutsideTextFont:x,getBarColor:E,resizeText:c}},lMmI2ALB:(oe,q,e)=>{"use strict";var h=e("/oRevOrA"),v=e("s48LrSF+").hasColorscale,S=e("NfKInJuD"),i=e("0Ft3SWJB").coercePattern;oe.exports=function(c,f,r,o,m){var d=r("marker.color",o),A=v(c,"marker");A&&S(c,f,m,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",h.defaultLine),v(c,"marker.line")&&S(c,f,m,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),i(r,"marker.pattern",d,A),r("selected.marker.color"),r("unselected.marker.color")}},"5jl4DkMq":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("0Ft3SWJB");function S(f,r,o){var m=f._fullLayout,d=m["_"+o+"Text_minsize"];if(d){var A=m.uniformtext.mode==="hide",M;switch(o){case"funnelarea":case"pie":case"sunburst":M="g.slice";break;case"treemap":case"icicle":M="g.slice, g.pathbar";break;default:M="g.points > g.point"}r.selectAll(M).each(function(b){var T=b.transform;if(T){T.scale=A&&T.hide?0:d/T.fontSize;var u=h.select(this).select("text");v.setTransormAndDisplay(u,T)}})}}function i(f,r,o){if(o.uniformtext.mode){var m=c(f),d=o.uniformtext.minsize,A=r.scale*r.fontSize;r.hide=A{"use strict";var h=e("SncXPNSm"),v=e("FDg8C/At"),S=e("lf8+9Xc7"),i=e("0xRk82sZ").axisHoverFormat,n=e("OzUSSj1k").fF,c=e("OzUSSj1k").si,f=e("kwWFMz5J"),r=e("xE+ZFgwY").extendFlat;oe.exports=r({z:{valType:"data_array",editType:"calc",description:"Sets the z data."},x:r({},h.x,{impliedEdits:{xtype:"array"}}),x0:r({},h.x0,{impliedEdits:{xtype:"scaled"}}),dx:r({},h.dx,{impliedEdits:{xtype:"scaled"}}),y:r({},h.y,{impliedEdits:{ytype:"array"}}),y0:r({},h.y0,{impliedEdits:{ytype:"scaled"}}),dy:r({},h.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:r({},h.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:r({},h.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:r({},h.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:r({},h.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:r({},h.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:r({},h.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"calc",description:"Same as `text`."},transpose:{valType:"boolean",dflt:!1,editType:"calc",description:"Transposes the z data."},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes",description:["If *array*, the heatmap's x coordinates are given by *x*","(the default behavior when `x` is provided).","If *scaled*, the heatmap's x coordinates are given by *x0* and *dx*","(the default behavior when `x` is not provided)."].join(" ")},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes",description:["If *array*, the heatmap's y coordinates are given by *y*","(the default behavior when `y` is provided)","If *scaled*, the heatmap's y coordinates are given by *y0* and *dy*","(the default behavior when `y` is not provided)"].join(" ")},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc",description:["Picks a smoothing algorithm use to smooth `z` data."].join(" ")},hoverongaps:{valType:"boolean",dflt:!0,editType:"none",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data have hover labels associated with them."].join(" ")},connectgaps:{valType:"boolean",editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data are filled in.","It is defaulted to true if `z` is a","one dimensional array and `zsmooth` is not false;","otherwise it is defaulted to false."].join(" ")},xgap:{valType:"number",dflt:0,min:0,editType:"plot",description:"Sets the horizontal gap (in pixels) between bricks."},ygap:{valType:"number",dflt:0,min:0,editType:"plot",description:"Sets the vertical gap (in pixels) between bricks."},xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z",1),hovertemplate:n(),texttemplate:c({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:S({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style",description:"Sets the text font."}),showlegend:r({},v.showlegend,{dflt:!1})},{transforms:void 0},f("",{cLetter:"z",autoColorDflt:!1}))},IhK9L9VC:(oe,q,e)=>{"use strict";var h=e("R5um7Wku"),v=e("0Ft3SWJB"),S=e("4JfnfFRI"),i=e("qPokwaSi"),n=e("ixeefcrV"),c=e("lNueT97u"),f=e("RF44uHEW"),r=e("tLYo6Exq"),o=e("bujHEgrl"),m=e("6J/IMU+T"),d=e("ZPYyNz95"),A=e("46lPXjlm").BADNUM;oe.exports=function(u,p){var t=S.getFromId(u,p.xaxis||"x"),l=S.getFromId(u,p.yaxis||"y"),a=h.traceIs(p,"contour"),x=h.traceIs(p,"histogram"),y=h.traceIs(p,"gl2d"),E=a?"best":p.zsmooth,L,F,B,s,w,g,I,N,Q,P,D;if(t._minDtick=0,l._minDtick=0,x)D=n(u,p),s=D.orig_x,L=D.x,F=D.x0,B=D.dx,N=D.orig_y,w=D.y,g=D.y0,I=D.dy,Q=D.z;else{var z=p.z;v.isArray1D(z)?(f(p,t,l,"x","y",["z"]),L=p._x,w=p._y,z=p._z):(s=p.x?t.makeCalcdata(p,"x"):[],N=p.y?l.makeCalcdata(p,"y"):[],L=i(p,t,"x",s).vals,w=i(p,l,"y",N).vals,p._x=L,p._y=w),F=p.x0,B=p.dx,g=p.y0,I=p.dy,Q=r(z,p,t,l)}(t.rangebreaks||l.rangebreaks)&&(Q=b(L,w,Q),x||(L=M(L),w=M(w),p._x=L,p._y=w)),!x&&(a||p.connectgaps)&&(p._emptypoints=m(Q),o(Q,p._emptypoints));function H(C){E=p._input.zsmooth=p.zsmooth=!1,v.warn('cannot use zsmooth: "fast": '+C)}function O(C){if(C.length>1){var R=(C[C.length-1]-C[0])/(C.length-1),k=Math.abs(R/100);for(P=0;Pk)return!1}return!0}p._islinear=!1,t.type==="log"||l.type==="log"?E==="fast"&&H("log axis found"):O(L)?O(w)?p._islinear=!0:E==="fast"&&H("y scale is not linear"):E==="fast"&&H("x scale is not linear");var U=v.maxRowLength(Q),Y=p.xtype==="scaled"?"":L,ee=d(p,Y,F,B,U,t),ne=p.ytype==="scaled"?"":w,me=d(p,ne,g,I,Q.length,l);y||(p._extremes[t._id]=S.findExtremes(t,ee),p._extremes[l._id]=S.findExtremes(l,me));var $={x:ee,y:me,z:Q,text:p._text||p.text,hovertext:p._hovertext||p.hovertext};if(p.xperiodalignment&&s&&($.orig_x=s),p.yperiodalignment&&N&&($.orig_y=N),Y&&Y.length===ee.length-1&&($.xCenter=Y),ne&&ne.length===me.length-1&&($.yCenter=ne),x&&($.xRanges=D.xRanges,$.yRanges=D.yRanges,$.pts=D.pts),a||c(u,p,{vals:Q,cLetter:"z"}),a&&p.contours&&p.contours.coloring==="heatmap"){var re={type:p.type==="contour"?"heatmap":"histogram2d",xcalendar:p.xcalendar,ycalendar:p.ycalendar};$.xfill=d(re,Y,F,B,U,t),$.yfill=d(re,ne,g,I,Q.length,l)}return[$]};function M(T){for(var u=[],p=T.length,t=0;t{"use strict";var h=e("yAcToaBS"),v=e("0Ft3SWJB"),S=e("46lPXjlm").BADNUM;oe.exports=function(n,c,f,r){var o,m,d,A,M,b;function T(x){if(h(x))return+x}if(c&&c.transpose){for(o=0,M=0;M{"use strict";oe.exports={min:"zmin",max:"zmax"}},RF44uHEW:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("46lPXjlm").BADNUM,S=e("qPokwaSi");oe.exports=function(n,c,f,r,o,m){var d=n._length,A=c.makeCalcdata(n,r),M=f.makeCalcdata(n,o);A=S(n,c,r,A).vals,M=S(n,f,o,M).vals;var b=n.text,T=b!==void 0&&h.isArray1D(b),u=n.hovertext,p=u!==void 0&&h.isArray1D(u),t,l,a=h.distinctVals(A),x=a.vals,y=h.distinctVals(M),E=y.vals,L=[],F,B,s=E.length,w=x.length;for(t=0;t{"use strict";var h=e("0Ft3SWJB"),v=e("KLK9Jo/k"),S=e("0gNlF56V"),i=e("tAeBVoBa"),n=e("9I23neXE"),c=e("NfKInJuD"),f=e("Or77eklz");oe.exports=function(o,m,d,A){function M(T,u){return h.coerce(o,m,f,T,u)}var b=v(o,m,M,A);if(!b){m.visible=!1;return}i(o,m,A,M),M("xhoverformat"),M("yhoverformat"),M("text"),M("hovertext"),M("hovertemplate"),S(M,A),n(o,m,M,A),M("hoverongaps"),M("connectgaps",h.isArray1D(m.z)&&m.zsmooth!==!1),c(o,m,A,M,{prefix:"",cLetter:"z"})}},"6J/IMU+T":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB").maxRowLength;oe.exports=function(S){var i=[],n={},c=[],f=S[0],r=[],o=[0,0,0],m=h(S),d,A,M,b,T,u,p,t;for(A=0;A=0;T--)b=c[T],A=b[0],M=b[1],u=((n[[A-1,M]]||o)[2]+(n[[A+1,M]]||o)[2]+(n[[A,M-1]]||o)[2]+(n[[A,M+1]]||o)[2])/20,u&&(p[b]=[A,M,u],c.splice(T,1),t=!0);if(!t)throw"findEmpties iterated with no new neighbors";for(b in p)n[b]=p[b],i.push(p[b])}return i.sort(function(l,a){return a[2]-l[2]})}},VGS0kEp2:(oe,q,e)=>{"use strict";var h=e("9fFWTih4"),v=e("0Ft3SWJB"),S=e("4JfnfFRI"),i=e("n/pWmEhD").extractOpts;oe.exports=function(c,f,r,o,m){m||(m={});var d=m.isContour,A=c.cd[0],M=A.trace,b=c.xa,T=c.ya,u=A.x,p=A.y,t=A.z,l=A.xCenter,a=A.yCenter,x=A.zmask,y=M.zhoverformat,E=u,L=p,F,B,s,w;if(c.index!==!1){try{s=Math.round(c.index[1]),w=Math.round(c.index[0])}catch{v.error("Error hovering on heatmap, pointNumber must be [row,col], found:",c.index);return}if(s<0||s>=t[0].length||w<0||w>t.length)return}else{if(h.inbox(f-u[0],f-u[u.length-1],0)>0||h.inbox(r-p[0],r-p[p.length-1],0)>0)return;if(d){var g;for(E=[2*u[0]-u[1]],g=1;g{"use strict";oe.exports={attributes:e("Or77eklz"),supplyDefaults:e("/sGUa8Uv"),calc:e("IhK9L9VC"),plot:e("G3ZEvGr3"),colorbar:e("vmsnrO39"),style:e("BK0VDAOs"),hoverPoints:e("VGS0kEp2"),moduleType:"trace",name:"heatmap",basePlotModule:e("42xT/S4m"),categories:["cartesian","svg","2dMap","showLegend"],meta:{description:["The data that describes the heatmap value-to-color mapping","is set in `z`.","Data in `z` can either be a {2D array} of values (ragged or not)","or a 1D array of values.","In the case where `z` is a {2D array},","say that `z` has N rows and M columns.","Then, by default, the resulting heatmap will have N partitions along","the y axis and M partitions along the x axis.","In other words, the i-th row/ j-th column cell in `z`","is mapped to the i-th partition of the y axis","(starting from the bottom of the plot) and the j-th partition","of the x-axis (starting from the left of the plot).","This behavior can be flipped by using `transpose`.","Moreover, `x` (`y`) can be provided with M or M+1 (N or N+1) elements.","If M (N), then the coordinates correspond to the center of the","heatmap cells and the cells have equal width.","If M+1 (N+1), then the coordinates correspond to the edges of the","heatmap cells.","In the case where `z` is a 1D {array}, the x and y coordinates must be","provided in `x` and `y` respectively to form data triplets."].join(" ")}}},bujHEgrl:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=.01,S=[[-1,0],[1,0],[0,-1],[0,1]];function i(c){return .5-.25*Math.min(1,c*.5)}oe.exports=function(f,r){var o=1,m;for(n(f,r),m=0;mv;m++)o=n(f,r,i(o));return o>v&&h.log("interp2d didn't converge quickly",o),f};function n(c,f,r){var o=0,m,d,A,M,b,T,u,p,t,l,a,x,y;for(M=0;Mx&&(o=Math.max(o,Math.abs(c[d][A]-a)/(y-x))))}return o}},"0gNlF56V":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB");oe.exports=function(S,i){S("texttemplate");var n=h.extendFlat({},i.font,{color:"auto",size:"auto"});h.coerceFont(S,"textfont",n)}},ZPYyNz95:(oe,q,e)=>{"use strict";var h=e("R5um7Wku"),v=e("0Ft3SWJB").isArrayOrTypedArray;oe.exports=function(i,n,c,f,r,o){var m=[],d=h.traceIs(i,"contour"),A=h.traceIs(i,"histogram"),M=h.traceIs(i,"gl2d"),b,T,u,p=v(n)&&n.length>1;if(p&&!A&&o.type!=="category"){var t=n.length;if(t<=r){if(d||M)m=n.slice(0,r);else if(r===1)m=[n[0]-.5,n[0]+.5];else{for(m=[1.5*n[0]-.5*n[1]],u=1;u{"use strict";var h=e("Lou4tdh8"),v=e("VDpxHpeA"),S=e("R5um7Wku"),i=e("+ELfTWmT"),n=e("4JfnfFRI"),c=e("0Ft3SWJB"),f=e("7k8rh0sJ"),r=e("QJJZmdtL"),o=e("/oRevOrA"),m=e("n/pWmEhD").extractOpts,d=e("n/pWmEhD").makeColorScaleFuncFromTrace,A=e("nfwe4Djo"),M=e("kca9bvt+"),b=M.LINE_SPACING,T=e("SGmOA3h7"),u=e("+pJPwNOU").STYLE,p="heatmap-label";function t(E){return E.selectAll("g."+p)}function l(E){t(E).remove()}oe.exports=function(E,L,F,B){var s=L.xaxis,w=L.yaxis;c.makeTraceGroups(B,F,"hm").each(function(g){var I=h.select(this),N=g[0],Q=N.trace,P=Q.xgap||0,D=Q.ygap||0,z=N.z,H=N.x,O=N.y,U=N.xCenter,Y=N.yCenter,ee=S.traceIs(Q,"contour"),ne=ee?"best":Q.zsmooth,me=z.length,$=c.maxRowLength(z),re=!1,C=!1,R,k,G,W,J,K,X,j;for(K=0;R===void 0&&K0;)k=s.c2p(H[K]),K--;for(k0;)J=w.c2p(O[K]),K--;J=s._length||k<=0||W>=w._length||J<=0;if(xe){var te=I.selectAll("image").data([]);te.exit().remove(),l(I);return}var ie,fe;ae==="fast"?(ie=$,fe=me):(ie=le,fe=ge);var ye=document.createElement("canvas");ye.width=ie,ye.height=fe;var ce=ye.getContext("2d",{willReadFrequently:!0}),ue=d(Q,{noNumericCheck:!0,returnArray:!0}),Me,Pe;ae==="fast"?(Me=re?function(xt){return $-1-xt}:c.identity,Pe=C?function(xt){return me-1-xt}:c.identity):(Me=function(xt){return c.constrain(Math.round(s.c2p(H[xt])-R),0,le)},Pe=function(xt){return c.constrain(Math.round(w.c2p(O[xt])-W),0,ge)});var Be=Pe(0),De=[Be,Be],je=re?0:1,_e=C?0:1,Qe=0,Ue=0,nt=0,Ge=0,Ye,ot,rt,Ke,he;function He(xt,Ft){if(xt!==void 0){var Et=ue(xt);return Et[0]=Math.round(Et[0]),Et[1]=Math.round(Et[1]),Et[2]=Math.round(Et[2]),Qe+=Ft,Ue+=Et[0]*Ft,nt+=Et[1]*Ft,Ge+=Et[2]*Ft,Et}return[0,0,0,0]}function Ie(xt,Ft,Et,Pt){var It=xt[Et.bin0];if(It===void 0)return He(void 0,1);var Bt=xt[Et.bin1],Ht=Ft[Et.bin0],Nt=Ft[Et.bin1],Gt=Bt-It||0,Wt=Ht-It||0,Vt;return Bt===void 0?Nt===void 0?Vt=0:Ht===void 0?Vt=2*(Nt-It):Vt=(2*Nt-Ht-It)*2/3:Nt===void 0?Ht===void 0?Vt=0:Vt=(2*It-Bt-Ht)*2/3:Ht===void 0?Vt=(2*Nt-Bt-It)*2/3:Vt=Nt+It-Bt-Ht,He(It+Et.frac*Gt+Pt.frac*(Wt+Et.frac*Vt))}if(ae!=="default"){var Fe=0,We;try{We=new Uint8Array(ie*fe*4)}catch{We=new Array(ie*fe*4)}if(ae==="smooth"){var _=U||H,ve=Y||O,de=new Array(_.length),pe=new Array(ve.length),be=new Array(le),we=U?x:a,Je=Y?x:a,Ze,Ee,Le;for(K=0;K<_.length;K++)de[K]=Math.round(s.c2p(_[K])-R);for(K=0;Kmt||mt>w._length))for(X=ct;XV||V>s._length)){var Te=r({x:Z,y:zt},Q,E._fullLayout);Te.x=Z,Te.y=zt;var Ae=N.z[K][X];Ae===void 0?(Te.z="",Te.zLabel=""):(Te.z=Ae,Te.zLabel=n.tickText(pt,Ae,"hover").text);var ke=N.text&&N.text[K]&&N.text[K][X];(ke===void 0||ke===!1)&&(ke=""),Te.text=ke;var Re=c.texttemplateString(Tt,Te,E._fullLayout._d3locale,Te,Q._meta||{});if(Re){var ze=Re.split("
"),Ce=ze.length,Se=0;for(j=0;j{"use strict";var h=e("Lou4tdh8");oe.exports=function(S){h.select(S).selectAll(".hm image").style("opacity",function(i){return i.trace.opacity})}},"9I23neXE":oe=>{"use strict";oe.exports=function(e,h,v){var S=v("zsmooth");S===!1&&(v("xgap"),v("ygap")),v("zhoverformat")}},"KLK9Jo/k":(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("0Ft3SWJB"),S=e("R5um7Wku");oe.exports=function(f,r,o,m,d,A){var M=o("z");d=d||"x",A=A||"y";var b,T;if(M===void 0||!M.length)return 0;if(v.isArray1D(f.z)){b=o(d),T=o(A);var u=v.minRowLength(b),p=v.minRowLength(T);if(u===0||p===0)return 0;r._length=Math.min(u,p,M.length)}else{if(b=i(d,o),T=i(A,o),!n(M))return 0;o("transpose"),r._length=null}if(f.type==="heatmapgl")return!0;var t=S.getComponentMethod("calendars","handleTraceDefaults");return t(f,r,[d,A],m),!0};function i(c,f){var r=f(c),o=r?f(c+"type","array"):"scaled";return o==="scaled"&&(f(c+"0"),f("d"+c)),r}function n(c){for(var f=!0,r=!1,o=!1,m,d=0;d0&&(r=!0);for(var A=0;A{"use strict";oe.exports=function(e,h){for(var v=e.length,S=0,i=0;i{"use strict";var h=e("yAcToaBS");oe.exports={count:function(v,S,i){return i[v]++,1},sum:function(v,S,i,n){var c=n[S];return h(c)?(c=Number(c),i[v]+=c,c):0},avg:function(v,S,i,n,c){var f=n[S];return h(f)&&(f=Number(f),i[v]+=f,c[v]++),0},min:function(v,S,i,n){var c=n[S];if(h(c))if(c=Number(c),h(i[v])){if(i[v]>c){var f=c-i[v];return i[v]=c,f}}else return i[v]=c,c;return 0},max:function(v,S,i,n){var c=n[S];if(h(c))if(c=Number(c),h(i[v])){if(i[v]{"use strict";var h=e("46lPXjlm"),v=h.ONEAVGYEAR,S=h.ONEAVGMONTH,i=h.ONEDAY,n=h.ONEHOUR,c=h.ONEMIN,f=h.ONESEC,r=e("4JfnfFRI").tickIncrement;oe.exports=function(b,T,u,p,t){var l=-1.1*T,a=-.1*T,x=b-a,y=u[0],E=u[1],L=Math.min(o(y+a,y+x,p,t),o(E+a,E+x,p,t)),F=Math.min(o(y+l,y+a,p,t),o(E+l,E+a,p,t)),B,s;if(L>F&&Fi){var w=B===v?1:6,g=B===v?"M12":"M1";return function(I,N){var Q=p.c2d(I,v,t),P=Q.indexOf("-",w);P>0&&(Q=Q.substr(0,P));var D=p.d2c(Q,0,t);if(Df?M>i?M>v*1.1?v:M>S*1.1?S:i:M>n?n:M>c?c:f:Math.pow(10,Math.floor(Math.log(M)/Math.LN10))}function d(M,b,T,u,p,t){if(u&&M>i){var l=A(b,p,t),a=A(T,p,t),x=M===v?0:1;return l[x]!==a[x]}return Math.floor(T/M)-Math.floor(b/M)>.1}function A(M,b,T){var u=b.c2d(M,v,T).split("-");return u[0]===""&&(u.unshift(),u[0]="-"+u[0]),u}},Ib4Cm2pX:(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("0Ft3SWJB"),S=e("R5um7Wku"),i=e("4JfnfFRI"),n=e("QwKhVvvj"),c=e("zGjfuAgi"),f=e("E0ymBWcp"),r=e("8WyRVZ33"),o=e("2RQvW7Lc");function m(T,u){var p=[],t=[],l=u.orientation==="h",a=i.getFromId(T,l?u.yaxis:u.xaxis),x=l?"y":"x",y={x:"y",y:"x"}[x],E=u[x+"calendar"],L=u.cumulative,F,B=d(T,u,a,x),s=B[0],w=B[1],g=typeof s.size=="string",I=[],N=g?I:s,Q=[],P=[],D=[],z=0,H=u.histnorm,O=u.histfunc,U=H.indexOf("density")!==-1,Y,ee,ne;L.enabled&&U&&(H=H.replace(/ ?density$/,""),U=!1);var me=O==="max"||O==="min",$=me?null:0,re=c.count,C=f[H],R=!1,k=function(ce){return a.r2c(ce,0,E)},G;for(v.isArrayOrTypedArray(u[y])&&O!=="count"&&(G=u[y],R=O==="avg",re=c[O]),F=k(s.start),ee=k(s.end)+(F-i.tickIncrement(F,s.size,!1,E))/1e6;F=0&&ne=ie;F--)if(t[F]){fe=F;break}for(F=ie;F<=fe;F++)if(h(p[F])&&h(t[F])){var ye={p:p[F],s:t[F],b:0};L.enabled||(ye.pts=D[F],X?ye.ph0=ye.ph1=D[F].length?w[D[F][0]]:p[F]:(u._computePh=!0,ye.ph0=ge(I[F]),ye.ph1=ge(I[F+1],!0))),te.push(ye)}return te.length===1&&(te[0].width1=i.tickIncrement(te[0].p,s.size,!1,E)-te[0].p),n(te,u),v.isArrayOrTypedArray(u.selectedpoints)&&v.tagSelected(te,u,se),te}function d(T,u,p,t,l){var a=t+"bins",x=T._fullLayout,y=u["_"+t+"bingroup"],E=x._histogramBinOpts[y],L=x.barmode==="overlay",F,B,s,w,g,I,N,Q=function(le){return p.r2c(le,0,w)},P=function(le){return p.c2r(le,0,w)},D=p.type==="date"?function(le){return le||le===0?v.cleanDate(le,null,w):null}:function(le){return h(le)?Number(le):null};function z(le,ge,xe){ge[le+"Found"]?(ge[le]=D(ge[le]),ge[le]===null&&(ge[le]=xe[le])):(I[le]=ge[le]=xe[le],v.nestedProperty(B[0],a+"."+le).set(xe[le]))}if(u["_"+t+"autoBinFinished"])delete u["_"+t+"autoBinFinished"];else{B=E.traces;var H=[],O=!0,U=!1,Y=!1;for(F=0;F"u"){if(l)return[ne,g,!0];ne=A(T,u,p,t,a)}N=s.cumulative||{},N.enabled&&N.currentbin!=="include"&&(N.direction==="decreasing"?ne.start=P(i.tickIncrement(Q(ne.start),ne.size,!0,w)):ne.end=P(i.tickIncrement(Q(ne.end),ne.size,!1,w))),E.size=ne.size,E.sizeFound||(I.size=ne.size,v.nestedProperty(B[0],a+".size").set(ne.size)),z("start",E,ne),z("end",E,ne)}g=u["_"+t+"pos0"],delete u["_"+t+"pos0"];var $=u._input[a]||{},re=v.extendFlat({},E),C=E.start,R=p.r2l($.start),k=R!==void 0;if((E.startFound||k)&&R!==p.r2l(C)){var G=k?R:v.aggNums(Math.min,null,g),W={type:p.type==="category"||p.type==="multicategory"?"linear":p.type,r2l:p.r2l,dtick:E.size,tick0:C,calendar:w,range:[G,i.tickIncrement(G,E.size,!1,w)].map(p.l2r)},J=i.tickFirst(W);J>p.r2l(G)&&(J=i.tickIncrement(J,E.size,!0,w)),re.start=p.l2r(J),k||v.nestedProperty(u,a+".start").set(re.start)}var K=E.end,X=p.r2l($.end),j=X!==void 0;if((E.endFound||j)&&X!==p.r2l(K)){var ae=j?X:v.aggNums(Math.max,null,g);re.end=p.l2r(ae),j||v.nestedProperty(u,a+".start").set(re.end)}var se="autobin"+t;return u._input[se]===!1&&(u._input[a]=v.extendFlat({},u[a]||{}),delete u._input[se],delete u[se]),[re,g]}function A(T,u,p,t,l){var a=T._fullLayout,x=M(T,u),y=!1,E=1/0,L=[u],F,B,s;for(F=0;F=0;t--)y(t);else if(u==="increasing"){for(t=1;t=0;t--)T[t]+=T[t+1];p==="exclude"&&(T.push(0),T.shift())}}oe.exports={calc:m,calcAllAutoBins:d}},E0ymBWcp:oe=>{"use strict";oe.exports={percent:function(q,e){for(var h=q.length,v=100/e,S=0;S{"use strict";var h=e("0Ft3SWJB"),v=e("4JfnfFRI"),S=e("zGjfuAgi"),i=e("E0ymBWcp"),n=e("8WyRVZ33"),c=e("2RQvW7Lc"),f=e("Ib4Cm2pX").calcAllAutoBins;oe.exports=function(A,M){var b=v.getFromId(A,M.xaxis),T=v.getFromId(A,M.yaxis),u=M.xcalendar,p=M.ycalendar,t=function(he){return b.r2c(he,0,u)},l=function(he){return T.r2c(he,0,p)},a=function(he){return b.c2r(he,0,u)},x=function(he){return T.c2r(he,0,p)},y,E,L,F,B=f(A,M,b,"x"),s=B[0],w=B[1],g=f(A,M,T,"y"),I=g[0],N=g[1],Q=M._length;w.length>Q&&w.splice(Q,w.length-Q),N.length>Q&&N.splice(Q,N.length-Q);var P=[],D=[],z=[],H=typeof s.size=="string",O=typeof I.size=="string",U=[],Y=[],ee=H?U:s,ne=O?Y:I,me=0,$=[],re=[],C=M.histnorm,R=M.histfunc,k=C.indexOf("density")!==-1,G=R==="max"||R==="min",W=G?null:0,J=S.count,K=i[C],X=!1,j=[],ae=[],se="z"in M?M.z:"marker"in M&&Array.isArray(M.marker.color)?M.marker.color:"";se&&R!=="count"&&(X=R==="avg",J=S[R]);var le=s.size,ge=t(s.start),xe=t(s.end)+(ge-v.tickIncrement(ge,le,!1,u))/1e6;for(y=ge;y=0&&L=0&&F{"use strict";var h=e("FDg8C/At"),v=e("qxp2i9QF").Y,S=e("lf8+9Xc7"),i=e("Khpmx9F5"),n=e("OzUSSj1k").fF,c=e("OzUSSj1k").si,f=e("xE+ZFgwY").extendFlat,r=e("LZ3mZdqo").u,o=S({editType:"plot",arrayOk:!0,colorEditType:"plot",description:"Sets the font used for `textinfo`."});oe.exports={labels:{valType:"data_array",editType:"calc",description:["Sets the sector labels.","If `labels` entries are duplicated, we sum associated `values`","or simply count occurrences if `values` is not provided.","For other array attributes (including color) we use the first","non-empty entry among all occurrences of the label."].join(" ")},label0:{valType:"number",dflt:0,editType:"calc",description:["Alternate to `labels`.","Builds a numeric set of labels.","Use with `dlabel`","where `label0` is the starting label and `dlabel` the step."].join(" ")},dlabel:{valType:"number",dflt:1,editType:"calc",description:"Sets the label step. See `label0` for more info."},values:{valType:"data_array",editType:"calc",description:["Sets the values of the sectors.","If omitted, we count occurrences of each label."].join(" ")},marker:{colors:{valType:"data_array",editType:"calc",description:["Sets the color of each sector.","If not specified, the default trace color set is used","to pick the sector colors."].join(" ")},line:{color:{valType:"color",dflt:i.defaultLine,arrayOk:!0,editType:"style",description:["Sets the color of the line enclosing each sector."].join(" ")},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style",description:["Sets the width (in px) of the line enclosing each sector."].join(" ")},editType:"calc"},pattern:r,editType:"calc"},text:{valType:"data_array",editType:"plot",description:["Sets text elements associated with each sector.","If trace `textinfo` contains a *text* flag, these elements will be seen","on the chart.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each sector.","If a single string, the same string appears for","all data points.","If an array of string, the items are mapped in order of","this trace's sectors.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},scalegroup:{valType:"string",dflt:"",editType:"calc",description:["If there are multiple pie charts that should be sized according to","their totals, link them by providing a non-empty group id here","shared by every trace in the same group."].join(" ")},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc",description:["Determines which trace information appear on the graph."].join(" ")},hoverinfo:f({},h.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:n({},{keys:["label","color","value","percent","text"]}),texttemplate:c({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot",description:["Specifies the location of the `textinfo`."].join(" ")},textfont:f({},o,{description:"Sets the font used for `textinfo`."}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot",description:["Controls the orientation of the text inside chart sectors.","When set to *auto*, text may be oriented in any direction in order","to be as big as possible in the middle of a sector.","The *horizontal* option orients text to be parallel with the bottom","of the chart, and may make text smaller in order to achieve that goal.","The *radial* option orients text along the radius of the sector.","The *tangential* option orients text perpendicular to the radius of the sector."].join(" ")},insidetextfont:f({},o,{description:"Sets the font used for `textinfo` lying inside the sector."}),outsidetextfont:f({},o,{description:"Sets the font used for `textinfo` lying outside the sector."}),automargin:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether outside text labels can push the margins."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"plot",description:["Sets the title of the chart.","If it is empty, no title is displayed.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:f({},o,{description:["Sets the font used for `title`.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot",description:["Specifies the location of the `title`.","Note that the title's position used to be set","by the now deprecated `titleposition` attribute."].join(" ")},editType:"plot"},domain:v({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the fraction of the radius to cut out of the pie.","Use this to make a donut chart."].join(" ")},sort:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the sectors are reordered","from largest to smallest."].join(" ")},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc",description:["Specifies the direction at which succeeding sectors follow","one another."].join(" ")},rotation:{valType:"angle",dflt:0,editType:"calc",description:["Instead of the first slice starting at 12 o'clock,","rotate to some other angle."].join(" ")},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc",description:["Sets the fraction of larger radius to pull the sectors","out from the center. This can be a constant","to pull all slices apart from each other equally","or an array to highlight one or more slices."].join(" ")},_deprecated:{title:{valType:"string",dflt:"",editType:"calc",description:["Deprecated in favor of `title.text`.","Note that value of `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:f({},o,{description:"Deprecated in favor of `title.font`."}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc",description:"Deprecated in favor of `title.position`."}}}},"+ulG1EUY":(oe,q,e)=>{"use strict";var h=e("8MlMO9wt");q.name="pie",q.plot=function(v,S,i,n){h.plotBasePlot(q.name,v,S,i,n)},q.clean=function(v,S,i,n){h.cleanBasePlot(q.name,v,S,i,n)}},QeXGuGcX:(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("VDpxHpeA"),S=e("/oRevOrA"),i={};function n(o,m){var d=[],A=o._fullLayout,M=A.hiddenlabels||[],b=m.labels,T=m.marker.colors||[],u=m.values,p=m._length,t=m._hasValues&&p,l,a;if(m.dlabel)for(b=new Array(p),l=0;l=0});var g=m.type==="funnelarea"?L:m.sort;return g&&d.sort(function(I,N){return N.v-I.v}),d[0]&&(d[0].vTotal=E),d}function c(o){return function(d,A){return!d||(d=v(d),!d.isValid())?!1:(d=S.addOpacity(d,d.getAlpha()),o[A]||(o[A]=d),d)}}function f(o,m){var d=(m||{}).type;d||(d="pie");var A=o._fullLayout,M=o.calcdata,b=A[d+"colorway"],T=A["_"+d+"colormap"];A["extend"+d+"colors"]&&(b=r(b,i));for(var u=0,p=0;p{"use strict";var h=e("yAcToaBS"),v=e("0Ft3SWJB"),S=e("G7pMMARu"),i=e("qxp2i9QF").c,n=e("jOyGAhAZ").handleText,c=e("0Ft3SWJB").coercePattern;function f(m,d){var A=Array.isArray(m),M=v.isArrayOrTypedArray(d),b=Math.min(A?m.length:1/0,M?d.length:1/0);if(isFinite(b)||(b=0),b&&M){for(var T,u=0;u0){T=!0;break}}T||(b=0)}return{hasLabels:A,hasValues:M,len:b}}function r(m,d,A,M,b){var T=M("marker.line.width");T&&M("marker.line.color",b?void 0:A.paper_bgcolor);var u=M("marker.colors");c(M,"marker.pattern",u),m.marker&&!d.marker.pattern.fgcolor&&(d.marker.pattern.fgcolor=m.marker.colors),d.marker.pattern.bgcolor||(d.marker.pattern.bgcolor=A.paper_bgcolor)}function o(m,d,A,M){function b(w,g){return v.coerce(m,d,S,w,g)}var T=b("labels"),u=b("values"),p=f(T,u),t=p.len;if(d._hasLabels=p.hasLabels,d._hasValues=p.hasValues,!d._hasLabels&&d._hasValues&&(b("label0"),b("dlabel")),!t){d.visible=!1;return}d._length=t,r(m,d,M,b,!0),b("scalegroup");var l=b("text"),a=b("texttemplate"),x;if(a||(x=b("textinfo",Array.isArray(l)?"text+percent":"percent")),b("hovertext"),b("hovertemplate"),a||x&&x!=="none"){var y=b("textposition");n(m,d,M,b,y,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var E=Array.isArray(y)||y==="auto",L=E||y==="outside";L&&b("automargin"),(y==="inside"||y==="auto"||Array.isArray(y))&&b("insidetextorientation")}i(d,M,b);var F=b("hole"),B=b("title.text");if(B){var s=b("title.position",F?"middle center":"top center");!F&&s==="middle center"&&(d.title.position="top center"),v.coerceFont(b,"title.font",M.font)}b("sort"),b("direction"),b("rotation"),b("pull")}oe.exports={handleLabelsAndValues:f,handleMarkerDefaults:r,supplyDefaults:o}},"JPrGcRM+":(oe,q,e)=>{"use strict";var h=e("ErV1Ibqz").appendArrayMultiPointValues;oe.exports=function(S,i){var n={curveNumber:i.index,pointNumbers:S.pts,data:i._input,fullData:i,label:S.label,color:S.color,value:S.v,percent:S.percent,text:S.text,bbox:S.bbox,v:S.v};return S.pts.length===1&&(n.pointNumber=n.i=S.pts[0]),h(n,i,S.pts),i.type==="funnelarea"&&(delete n.v,delete n.i),n}},"BKbD7f1+":(oe,q,e)=>{"use strict";var h=e("+ELfTWmT"),v=e("/oRevOrA");oe.exports=function(i,n,c,f){var r=c.marker.pattern;r&&r.shape?h.pointStyle(i,c,f,n):v.fill(i,n.color)}},cscO2DHv:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB");function v(S){return S.indexOf("e")!==-1?S.replace(/[.]?0+e/,"e"):S.indexOf(".")!==-1?S.replace(/[.]?0+$/,""):S}q.formatPiePercent=function(i,n){var c=v((i*100).toPrecision(3));return h.numSeparate(c,n)+"%"},q.formatPieValue=function(i,n){var c=v(i.toPrecision(10));return h.numSeparate(c,n)},q.getFirstFilled=function(i,n){if(Array.isArray(i))for(var c=0;c{"use strict";oe.exports={attributes:e("G7pMMARu"),supplyDefaults:e("ZGlDDGbb").supplyDefaults,supplyLayoutDefaults:e("LdHlM4it"),layoutAttributes:e("K+tMoKu9"),calc:e("QeXGuGcX").calc,crossTraceCalc:e("QeXGuGcX").crossTraceCalc,plot:e("hiPtikdV").plot,style:e("Q/CxhveK"),styleOne:e("4R47EHYh"),moduleType:"trace",name:"pie",basePlotModule:e("+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(" ")}}},"K+tMoKu9":oe=>{"use strict";oe.exports={hiddenlabels:{valType:"data_array",editType:"calc",description:["hiddenlabels is the funnelarea & pie chart analog of","visible:'legendonly'","but it can contain many labels, and can simultaneously","hide slices from several pies/funnelarea charts"].join(" ")},piecolorway:{valType:"colorlist",editType:"calc",description:["Sets the default pie slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendpiecolors`."].join(" ")},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the pie slice colors (whether given by `piecolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},LdHlM4it:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("K+tMoKu9");oe.exports=function(i,n){function c(f,r){return h.coerce(i,n,v,f,r)}c("hiddenlabels"),c("piecolorway",n.colorway),c("extendpiecolors")}},hiPtikdV:(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("8MlMO9wt"),S=e("9fFWTih4"),i=e("/oRevOrA"),n=e("+ELfTWmT"),c=e("0Ft3SWJB"),f=c.strScale,r=c.strTranslate,o=e("7k8rh0sJ"),m=e("5jl4DkMq"),d=m.recordMinTextSize,A=m.clearMinTextSize,M=e("MzXAamq8").TEXTPAD,b=e("cscO2DHv"),T=e("JPrGcRM+"),u=e("0Ft3SWJB").isValidTextValue;function p(re,C){var R=re._context.staticPlot,k=re._fullLayout,G=k._size;A("pie",k),y(C,re),U(C,G);var W=c.makeTraceGroups(k._pielayer,C,"trace").each(function(J){var K=h.select(this),X=J[0],j=X.trace;ee(J),K.attr("stroke-linejoin","round"),K.each(function(){var ae=h.select(this).selectAll("g.slice").data(J);ae.enter().append("g").classed("slice",!0),ae.exit().remove();var se=[[[],[]],[[],[]]],le=!1;ae.each(function(ue,Me){if(ue.hidden){h.select(this).selectAll("path,g").remove();return}ue.pointNumber=ue.i,ue.curveNumber=j.index,se[ue.pxmid[1]<0?0:1][ue.pxmid[0]<0?0:1].push(ue);var Pe=X.cx,Be=X.cy,De=h.select(this),je=De.selectAll("path.surface").data([ue]);if(je.enter().append("path").classed("surface",!0).style({"pointer-events":R?"none":"all"}),De.call(l,re,J),j.pull){var _e=+b.castOption(j.pull,ue.pts)||0;_e>0&&(Pe+=_e*ue.pxmid[0],Be+=_e*ue.pxmid[1])}ue.cxFinal=Pe,ue.cyFinal=Be;function Qe(Ke,he,He,Ie){var Fe=Ie*(he[0]-Ke[0]),We=Ie*(he[1]-Ke[1]);return"a"+Ie*X.r+","+Ie*X.r+" 0 "+ue.largeArc+(He?" 1 ":" 0 ")+Fe+","+We}var Ue=j.hole;if(ue.v===X.vTotal){var nt="M"+(Pe+ue.px0[0])+","+(Be+ue.px0[1])+Qe(ue.px0,ue.pxmid,!0,1)+Qe(ue.pxmid,ue.px0,!0,1)+"Z";Ue?je.attr("d","M"+(Pe+Ue*ue.px0[0])+","+(Be+Ue*ue.px0[1])+Qe(ue.px0,ue.pxmid,!1,Ue)+Qe(ue.pxmid,ue.px0,!1,Ue)+"Z"+nt):je.attr("d",nt)}else{var Ge=Qe(ue.px0,ue.px1,!0,1);if(Ue){var Ye=1-Ue;je.attr("d","M"+(Pe+Ue*ue.px1[0])+","+(Be+Ue*ue.px1[1])+Qe(ue.px1,ue.px0,!1,Ue)+"l"+Ye*ue.px0[0]+","+Ye*ue.px0[1]+Ge+"Z")}else je.attr("d","M"+Pe+","+Be+"l"+ue.px0[0]+","+ue.px0[1]+Ge+"Z")}me(re,ue,X);var ot=b.castOption(j.textposition,ue.pts),rt=De.selectAll("g.slicetext").data(ue.text&&ot!=="none"?[0]:[]);rt.enter().append("g").classed("slicetext",!0),rt.exit().remove(),rt.each(function(){var Ke=c.ensureSingle(h.select(this),"text","",function(de){de.attr("data-notex",1)}),he=c.ensureUniformFontSize(re,ot==="outside"?a(j,ue,k.font):x(j,ue,k.font));Ke.text(ue.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(n.font,he).call(o.convertToTspans,re);var He=n.bBox(Ke.node()),Ie;if(ot==="outside")Ie=N(He,ue);else if(Ie=E(He,ue,X),ot==="auto"&&Ie.scale<1){var Fe=c.ensureUniformFontSize(re,j.outsidetextfont);Ke.call(n.font,Fe),He=n.bBox(Ke.node()),Ie=N(He,ue)}var We=Ie.textPosAngle,_=We===void 0?ue.pxmid:ne(X.r,We);if(Ie.targetX=Pe+_[0]*Ie.rCenter+(Ie.x||0),Ie.targetY=Be+_[1]*Ie.rCenter+(Ie.y||0),$(Ie,He),Ie.outside){var ve=Ie.targetY;ue.yLabelMin=ve-He.height/2,ue.yLabelMid=ve,ue.yLabelMax=ve+He.height/2,ue.labelExtraX=0,ue.labelExtraY=0,le=!0}Ie.fontSize=he.size,d(j.type,Ie,k),J[Me].transform=Ie,c.setTransormAndDisplay(Ke,Ie)})});var ge=h.select(this).selectAll("g.titletext").data(j.title.text?[0]:[]);if(ge.enter().append("g").classed("titletext",!0),ge.exit().remove(),ge.each(function(){var ue=c.ensureSingle(h.select(this),"text","",function(Be){Be.attr("data-notex",1)}),Me=j.title.text;j._meta&&(Me=c.templateString(Me,j._meta)),ue.text(Me).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(n.font,j.title.font).call(o.convertToTspans,re);var Pe;j.title.position==="middle center"?Pe=Q(X):Pe=P(X,G),ue.attr("transform",r(Pe.x,Pe.y)+f(Math.min(1,Pe.scale))+r(Pe.tx,Pe.ty))}),le&&O(se,j),t(ae,j),le&&j.automargin){var xe=n.bBox(K.node()),te=j.domain,ie=G.w*(te.x[1]-te.x[0]),fe=G.h*(te.y[1]-te.y[0]),ye=(.5*ie-X.r)/G.w,ce=(.5*fe-X.r)/G.h;v.autoMargin(re,"pie."+j.uid+".automargin",{xl:te.x[0]-ye,xr:te.x[1]+ye,yb:te.y[0]-ce,yt:te.y[1]+ce,l:Math.max(X.cx-X.r-xe.left,0),r:Math.max(xe.right-(X.cx+X.r),0),b:Math.max(xe.bottom-(X.cy+X.r),0),t:Math.max(X.cy-X.r-xe.top,0),pad:5})}})});setTimeout(function(){W.selectAll("tspan").each(function(){var J=h.select(this);J.attr("dy")&&J.attr("dy",J.attr("dy"))})},0)}function t(re,C){re.each(function(R){var k=h.select(this);if(!R.labelExtraX&&!R.labelExtraY){k.select("path.textline").remove();return}var G=k.select("g.slicetext text");R.transform.targetX+=R.labelExtraX,R.transform.targetY+=R.labelExtraY,c.setTransormAndDisplay(G,R.transform);var W=R.cxFinal+R.pxmid[0],J=R.cyFinal+R.pxmid[1],K="M"+W+","+J,X=(R.yLabelMax-R.yLabelMin)*(R.pxmid[0]<0?-1:1)/4;if(R.labelExtraX){var j=R.labelExtraX*R.pxmid[1]/R.pxmid[0],ae=R.yLabelMid+R.labelExtraY-(R.cyFinal+R.pxmid[1]);Math.abs(j)>Math.abs(ae)?K+="l"+ae*R.pxmid[0]/R.pxmid[1]+","+ae+"H"+(W+R.labelExtraX+X):K+="l"+R.labelExtraX+","+j+"v"+(ae-j)+"h"+X}else K+="V"+(R.yLabelMid+R.labelExtraY)+"h"+X;c.ensureSingle(k,"path","textline").call(i.stroke,C.outsidetextfont.color).attr({"stroke-width":Math.min(2,C.outsidetextfont.size/8),d:K,fill:"none"})})}function l(re,C,R){var k=R[0],G=k.cx,W=k.cy,J=k.trace,K=J.type==="funnelarea";"_hasHoverLabel"in J||(J._hasHoverLabel=!1),"_hasHoverEvent"in J||(J._hasHoverEvent=!1),re.on("mouseover",function(X){var j=C._fullLayout,ae=C._fullData[J.index];if(!(C._dragging||j.hovermode===!1)){var se=ae.hoverinfo;if(Array.isArray(se)&&(se=S.castHoverinfo({hoverinfo:[b.castOption(se,X.pts)],_module:J._module},j,0)),se==="all"&&(se="label+text+value+percent+name"),ae.hovertemplate||se!=="none"&&se!=="skip"&&se){var le=X.rInscribed||0,ge=G+X.pxmid[0]*(1-le),xe=W+X.pxmid[1]*(1-le),te=j.separators,ie=[];if(se&&se.indexOf("label")!==-1&&ie.push(X.label),X.text=b.castOption(ae.hovertext||ae.text,X.pts),se&&se.indexOf("text")!==-1){var fe=X.text;c.isValidTextValue(fe)&&ie.push(fe)}X.value=X.v,X.valueLabel=b.formatPieValue(X.v,te),se&&se.indexOf("value")!==-1&&ie.push(X.valueLabel),X.percent=X.v/k.vTotal,X.percentLabel=b.formatPiePercent(X.percent,te),se&&se.indexOf("percent")!==-1&&ie.push(X.percentLabel);var ye=ae.hoverlabel,ce=ye.font,ue=[];S.loneHover({trace:J,x0:ge-le*k.r,x1:ge+le*k.r,y:xe,_x0:K?G+X.TL[0]:ge-le*k.r,_x1:K?G+X.TR[0]:ge+le*k.r,_y0:K?W+X.TL[1]:xe-le*k.r,_y1:K?W+X.BL[1]:xe+le*k.r,text:ie.join("
"),name:ae.hovertemplate||se.indexOf("name")!==-1?ae.name:void 0,idealAlign:X.pxmid[0]<0?"left":"right",color:b.castOption(ye.bgcolor,X.pts)||X.color,borderColor:b.castOption(ye.bordercolor,X.pts),fontFamily:b.castOption(ce.family,X.pts),fontSize:b.castOption(ce.size,X.pts),fontColor:b.castOption(ce.color,X.pts),nameLength:b.castOption(ye.namelength,X.pts),textAlign:b.castOption(ye.align,X.pts),hovertemplate:b.castOption(ae.hovertemplate,X.pts),hovertemplateLabels:X,eventData:[T(X,ae)]},{container:j._hoverlayer.node(),outerContainer:j._paper.node(),gd:C,inOut_bbox:ue}),X.bbox=ue[0],J._hasHoverLabel=!0}J._hasHoverEvent=!0,C.emit("plotly_hover",{points:[T(X,ae)],event:h.event})}}),re.on("mouseout",function(X){var j=C._fullLayout,ae=C._fullData[J.index],se=h.select(this).datum();J._hasHoverEvent&&(X.originalEvent=h.event,C.emit("plotly_unhover",{points:[T(se,ae)],event:h.event}),J._hasHoverEvent=!1),J._hasHoverLabel&&(S.loneUnhover(j._hoverlayer.node()),J._hasHoverLabel=!1)}),re.on("click",function(X){var j=C._fullLayout,ae=C._fullData[J.index];C._dragging||j.hovermode===!1||(C._hoverdata=[T(X,ae)],S.click(C,h.event))})}function a(re,C,R){var k=b.castOption(re.outsidetextfont.color,C.pts)||b.castOption(re.textfont.color,C.pts)||R.color,G=b.castOption(re.outsidetextfont.family,C.pts)||b.castOption(re.textfont.family,C.pts)||R.family,W=b.castOption(re.outsidetextfont.size,C.pts)||b.castOption(re.textfont.size,C.pts)||R.size;return{color:k,family:G,size:W}}function x(re,C,R){var k=b.castOption(re.insidetextfont.color,C.pts);!k&&re._input.textfont&&(k=b.castOption(re._input.textfont.color,C.pts));var G=b.castOption(re.insidetextfont.family,C.pts)||b.castOption(re.textfont.family,C.pts)||R.family,W=b.castOption(re.insidetextfont.size,C.pts)||b.castOption(re.textfont.size,C.pts)||R.size;return{color:k||i.contrast(C.color),family:G,size:W}}function y(re,C){for(var R,k,G=0;G=-4;ye-=2)fe(Math.PI*ye,"tan");for(ye=4;ye>=-4;ye-=2)fe(Math.PI*(ye+1),"tan")}if(se||ge){for(ye=4;ye>=-4;ye-=2)fe(Math.PI*(ye+1.5),"rad");for(ye=4;ye>=-4;ye-=2)fe(Math.PI*(ye+.5),"rad")}}if(K||xe||se){var ce=Math.sqrt(re.width*re.width+re.height*re.height);if(ie={scale:G*k*2/ce,rCenter:1-G,rotate:0},ie.textPosAngle=(C.startangle+C.stopangle)/2,ie.scale>=1)return ie;te.push(ie)}(xe||ge)&&(ie=F(re,k,J,X,j),ie.textPosAngle=(C.startangle+C.stopangle)/2,te.push(ie)),(xe||le)&&(ie=B(re,k,J,X,j),ie.textPosAngle=(C.startangle+C.stopangle)/2,te.push(ie));for(var ue=0,Me=0,Pe=0;Pe=1)break}return te[ue]}function L(re,C){var R=re.startangle,k=re.stopangle;return R>C&&C>k||R0?1:-1)/2,y:W/(1+R*R/(k*k)),outside:!0}}function Q(re){var C=Math.sqrt(re.titleBox.width*re.titleBox.width+re.titleBox.height*re.titleBox.height);return{x:re.cx,y:re.cy,scale:re.trace.hole*re.r*2/C,tx:0,ty:-re.titleBox.height/2+re.trace.title.font.size}}function P(re,C){var R=1,k=1,G,W=re.trace,J={x:re.cx,y:re.cy},K={tx:0,ty:0};K.ty+=W.title.font.size,G=H(W),W.title.position.indexOf("top")!==-1?(J.y-=(1+G)*re.r,K.ty-=re.titleBox.height):W.title.position.indexOf("bottom")!==-1&&(J.y+=(1+G)*re.r);var X=D(re.r,re.trace.aspectratio),j=C.w*(W.domain.x[1]-W.domain.x[0])/2;return W.title.position.indexOf("left")!==-1?(j=j+X,J.x-=(1+G)*X,K.tx+=re.titleBox.width/2):W.title.position.indexOf("center")!==-1?j*=2:W.title.position.indexOf("right")!==-1&&(j=j+X,J.x+=(1+G)*X,K.tx-=re.titleBox.width/2),R=j/re.titleBox.width,k=z(re,C)/re.titleBox.height,{x:J.x,y:J.y,scale:Math.min(R,k),tx:K.tx,ty:K.ty}}function D(re,C){return re/(C===void 0?1:C)}function z(re,C){var R=re.trace,k=C.h*(R.domain.y[1]-R.domain.y[0]);return Math.min(re.titleBox.height,k/2)}function H(re){var C=re.pull;if(!C)return 0;var R;if(Array.isArray(C))for(C=0,R=0;RC&&(C=re.pull[R]);return C}function O(re,C){var R,k,G,W,J,K,X,j,ae,se,le,ge,xe;function te(ce,ue){return ce.pxmid[1]-ue.pxmid[1]}function ie(ce,ue){return ue.pxmid[1]-ce.pxmid[1]}function fe(ce,ue){ue||(ue={});var Me=ue.labelExtraY+(k?ue.yLabelMax:ue.yLabelMin),Pe=k?ce.yLabelMin:ce.yLabelMax,Be=k?ce.yLabelMax:ce.yLabelMin,De=ce.cyFinal+J(ce.px0[1],ce.px1[1]),je=Me-Pe,_e,Qe,Ue,nt,Ge,Ye;if(je*X>0&&(ce.labelExtraY=je),!!Array.isArray(C.pull))for(Qe=0;Qe=(b.castOption(C.pull,Ue.pts)||0))&&((ce.pxmid[1]-Ue.pxmid[1])*X>0?(nt=Ue.cyFinal+J(Ue.px0[1],Ue.px1[1]),je=nt-Pe-ce.labelExtraY,je*X>0&&(ce.labelExtraY+=je)):(Be+ce.labelExtraY-De)*X>0&&(_e=3*K*Math.abs(Qe-se.indexOf(ce)),Ge=Ue.cxFinal+W(Ue.px0[0],Ue.px1[0]),Ye=Ge+_e-(ce.cxFinal+ce.pxmid[0])-ce.labelExtraX,Ye*K>0&&(ce.labelExtraX+=Ye)))}for(k=0;k<2;k++)for(G=k?te:ie,J=k?Math.max:Math.min,X=k?1:-1,R=0;R<2;R++){for(W=R?Math.max:Math.min,K=R?1:-1,j=re[k][R],j.sort(G),ae=re[1-k][R],se=ae.concat(j),ge=[],le=0;le1?(j=R.r,ae=j/G.aspectratio):(ae=R.r,j=ae*G.aspectratio),j*=(1+G.baseratio)/2,X=j*ae}J=Math.min(J,X/R.vTotal)}for(k=0;kC.vTotal/2?1:0,j.halfangle=Math.PI*Math.min(j.v/C.vTotal,.5),j.ring=1-k.hole,j.rInscribed=I(j,C))}function ne(re,C){return[re*Math.sin(C),-re*Math.cos(C)]}function me(re,C,R){var k=re._fullLayout,G=R.trace,W=G.texttemplate,J=G.textinfo;if(!W&&J&&J!=="none"){var K=J.split("+"),X=function(ue){return K.indexOf(ue)!==-1},j=X("label"),ae=X("text"),se=X("value"),le=X("percent"),ge=k.separators,xe;if(xe=j?[C.label]:[],ae){var te=b.getFirstFilled(G.text,C.pts);u(te)&&xe.push(te)}se&&xe.push(b.formatPieValue(C.v,ge)),le&&xe.push(b.formatPiePercent(C.v/R.vTotal,ge)),C.text=xe.join("
")}function ie(ue){return{label:ue.label,value:ue.v,valueLabel:b.formatPieValue(ue.v,k.separators),percent:ue.v/R.vTotal,percentLabel:b.formatPiePercent(ue.v/R.vTotal,k.separators),color:ue.color,text:ue.text,customdata:c.castOption(G,ue.i,"customdata")}}if(W){var fe=c.castOption(G,C.i,"texttemplate");if(!fe)C.text="";else{var ye=ie(C),ce=b.getFirstFilled(G.text,C.pts);(u(ce)||ce==="")&&(ye.text=ce),C.text=c.texttemplateString(fe,ye,re._fullLayout._d3locale,ye,G._meta||{})}}}function $(re,C){var R=re.rotate*Math.PI/180,k=Math.cos(R),G=Math.sin(R),W=(C.left+C.right)/2,J=(C.top+C.bottom)/2;re.textX=W*k-J*G,re.textY=W*G+J*k,re.noCenter=!0}oe.exports={plot:p,formatSliceLabel:me,transformInsideText:E,determineInsideTextFont:x,positionTitleOutside:P,prerenderTitles:y,layoutAreas:U,attachFxHandlers:l,computeTransform:$}},"Q/CxhveK":(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("4R47EHYh"),S=e("5jl4DkMq").resizeText;oe.exports=function(n){var c=n._fullLayout._pielayer.selectAll(".trace");S(n,c,"pie"),c.each(function(f){var r=f[0],o=r.trace,m=h.select(this);m.style({opacity:o.opacity}),m.selectAll("path.surface").each(function(d){h.select(this).call(v,d,o,n)})})}},"4R47EHYh":(oe,q,e)=>{"use strict";var h=e("/oRevOrA"),v=e("cscO2DHv").castOption,S=e("BKbD7f1+");oe.exports=function(n,c,f,r){var o=f.marker.line,m=v(o.color,c.pts)||h.defaultLine,d=v(o.width,c.pts)||0;n.call(S,c,f,r).style("stroke-width",d).call(h.stroke,m)}},"kh0qQ2F+":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB");oe.exports=function(S,i){for(var n=0;n{"use strict";var h=e("0xRk82sZ").axisHoverFormat,v=e("OzUSSj1k").si,S=e("OzUSSj1k").fF,i=e("kwWFMz5J"),n=e("lf8+9Xc7"),c=e("LZ3mZdqo").P,f=e("LZ3mZdqo").u,r=e("+ELfTWmT"),o=e("It6vW0T+"),m=e("xE+ZFgwY").extendFlat;function d(b){return{valType:"any",dflt:0,editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the period positioning in milliseconds or *M* on the "+b+" 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 A(b){return{valType:"any",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the base for period positioning in milliseconds or date string on the "+b+" axis.","When `"+b+"period` is round number of weeks,","the `"+b+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function M(b){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the alignment of data points on the "+b+" axis."].join(" ")}}oe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,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,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,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,editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},xperiod:d("x"),yperiod:d("y"),xperiod0:A("x0"),yperiod0:A("y0"),xperiodalignment:M("x"),yperiodalignment:M("y"),xhoverformat:h("x"),yhoverformat:h("y"),offsetgroup:{valType:"string",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",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(" ")},stackgroup:{valType:"string",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",values:["v","h"],editType:"calc",description:["Only relevant in the following cases:","1. when `scattermode` is set to *group*.","2. 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:"",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",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",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:v({},{}),hovertext:{valType:"string",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"],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 "+o.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],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:S({},{keys:o.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",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,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:m({},c,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot",description:["Sets the line back off from the end point of the nth line segment (in px).","This option is useful e.g. to avoid overlap with arrowhead markers.","With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*."].join(" ")},simplify:{valType:"boolean",dflt:!0,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,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,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"],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",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(" ")},fillpattern:f,marker:m({symbol:{valType:"enumerated",values:r.symbolList,dflt:"circle",arrayOk:!0,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,editType:"style",anim:!0,description:"Sets the marker opacity."},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1,description:["Sets the marker angle in respect to `angleref`."].join(" ")},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1,description:["Sets the reference for marker angle.","With *previous*, angle 0 points along the line from the previous point to this one.","With *up*, angle 0 points toward the top of the screen."].join(" ")},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0,description:["Moves the marker away from the data point in the direction of `angle` (in px).","This can be useful for example if you have another marker at this","location and you want to point an arrowhead marker at it."].join(" ")},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,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,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,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",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:m({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},editType:"calc"},i("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,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"},i("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",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,editType:"calc",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:n({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."})}},i1GgYbcZ:(oe,q,e)=>{"use strict";var h=e("yAcToaBS"),v=e("0Ft3SWJB"),S=e("4JfnfFRI"),i=e("qPokwaSi"),n=e("46lPXjlm").BADNUM,c=e("FAQM5QER"),f=e("SeoPvd/E"),r=e("kh0qQ2F+"),o=e("ArZ24uYa");function m(u,p){var t=u._fullLayout,l=p._xA=S.getFromId(u,p.xaxis||"x","x"),a=p._yA=S.getFromId(u,p.yaxis||"y","y"),x=l.makeCalcdata(p,"x"),y=a.makeCalcdata(p,"y"),E=i(p,l,"x",x),L=i(p,a,"y",y),F=E.vals,B=L.vals,s=p._length,w=new Array(s),g=p.ids,I=T(p,t,l,a),N=!1,Q,P,D,z,H,O;M(t,p);var U="x",Y="y",ee;if(I)v.pushUnique(I.traceIndices,p._expandedIndex),Q=I.orientation==="v",Q?(Y="s",ee="x"):(U="s",ee="y"),H=I.stackgaps==="interpolate";else{var ne=A(p,s);d(u,p,l,a,F,B,ne)}var me=!!p.xperiodalignment,$=!!p.yperiodalignment;for(P=0;PP&&w[z].gap;)z--;for(O=w[z].s,D=w.length-1;D>z;D--)w[D].s=O;for(;P{"use strict";var h=e("0Ft3SWJB");oe.exports=function(S,i){h.isArrayOrTypedArray(i.selectedpoints)&&h.tagSelected(S,i)}},"SeoPvd/E":(oe,q,e)=>{"use strict";var h=e("s48LrSF+").hasColorscale,v=e("lNueT97u"),S=e("FAQM5QER");oe.exports=function(n,c){S.hasLines(c)&&h(c,"line")&&v(n,c,{vals:c.line.color,containerStr:"line",cLetter:"c"}),S.hasMarkers(c)&&(h(c,"marker")&&v(n,c,{vals:c.marker.color,containerStr:"marker",cLetter:"c"}),h(c,"marker.line")&&v(n,c,{vals:c.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},"It6vW0T+":oe=>{"use strict";oe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},pJrJ3hmH:(oe,q,e)=>{"use strict";var h=e("i1GgYbcZ"),v=e("i6LEMeab").setGroupPositions;function S(c,f){for(var r=f.xaxis,o=f.yaxis,m=c._fullLayout,d=c._fullData,A=c.calcdata,M=[],b=[],T=0;TN[u]&&u{"use strict";var h=e("0Ft3SWJB"),v=e("/msinLC5"),S=e("SncXPNSm");oe.exports=function(n,c){var f,r,o;function m(T){return h.coerce(r._input,r,S,T)}if(c.scattermode==="group")for(o=0;o=0;M--){var b=n[M];if(b.type==="scatter"&&b.xaxis===d.xaxis&&b.yaxis===d.yaxis){b.opacity=void 0;break}}}}}},a4YJmYyA:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("R5um7Wku"),S=e("SncXPNSm"),i=e("It6vW0T+"),n=e("FAQM5QER"),c=e("0QKf0MkS"),f=e("tAeBVoBa"),r=e("EuDGb/SN"),o=e("R+/Bph75"),m=e("aG60Ih3s"),d=e("33aGI41/"),A=e("/4PO5Ykb"),M=e("nPXyX0+C"),b=e("0Ft3SWJB").coercePattern;oe.exports=function(u,p,t,l){function a(w,g){return h.coerce(u,p,S,w,g)}var x=c(u,p,l,a);if(x||(p.visible=!1),!!p.visible){f(u,p,l,a),a("xhoverformat"),a("yhoverformat");var y=r(u,p,l,a);l.scattermode==="group"&&p.orientation===void 0&&a("orientation","v");var E=!y&&x{"use strict";var h=e("/oRevOrA"),v=e("0Ft3SWJB").isArrayOrTypedArray;oe.exports=function(i,n,c,f){var r=!1;if(n.marker){var o=n.marker.color,m=(n.marker.line||{}).color;o&&!v(o)?r=o:m&&!v(m)&&(r=m)}f("fillcolor",h.addOpacity((n.line||{}).color||r||c,.5))}},QJJZmdtL:(oe,q,e)=>{"use strict";var h=e("4JfnfFRI");oe.exports=function(S,i,n){var c={},f={_fullLayout:n},r=h.getFromTrace(f,i,"x"),o=h.getFromTrace(f,i,"y"),m=S.orig_x;m===void 0&&(m=S.x);var d=S.orig_y;return d===void 0&&(d=S.y),c.xLabel=h.tickText(r,r.c2l(m),!0).text,c.yLabel=h.tickText(o,o.c2l(d),!0).text,c}},pE0BHGKt:(oe,q,e)=>{"use strict";var h=e("/oRevOrA"),v=e("FAQM5QER");oe.exports=function(i,n){var c,f;if(i.mode==="lines")return c=i.line.color,c&&h.opacity(c)?c:i.fillcolor;if(i.mode==="none")return i.fill?i.fillcolor:"";var r=n.mcc||(i.marker||{}).color,o=n.mlcc||((i.marker||{}).line||{}).color;return f=r&&h.opacity(r)?r:o&&h.opacity(o)&&(n.mlw||((i.marker||{}).line||{}).width)?o:"",f?h.opacity(f)<.3?h.addOpacity(f,.3):f:(c=(i.line||{}).color,c&&h.opacity(c)&&v.hasLines(i)&&i.line.width?c:i.fillcolor)}},"/msinLC5":(oe,q,e)=>{"use strict";var h=e("6hRdzyd8").getAxisGroup;oe.exports=function(S,i,n,c){var f=i.orientation,r=i[{v:"x",h:"y"}[f]+"axis"],o=h(n,r)+f,m=n._alignmentOpts||{},d=c("alignmentgroup"),A=m[o];A||(A=m[o]={});var M=A[d];M?M.traces.push(i):M=A[d]={traces:[i],alignmentIndex:Object.keys(A).length,offsetGroups:{}};var b=c("offsetgroup"),T=M.offsetGroups,u=T[b];b&&(u||(u=T[b]={offsetIndex:Object.keys(T).length}),i._offsetIndex=u.offsetIndex)}},DNc9q72I:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("9fFWTih4"),S=e("R5um7Wku"),i=e("pE0BHGKt"),n=e("/oRevOrA"),c=h.fillText;oe.exports=function(r,o,m,d){var A=r.cd,M=A[0].trace,b=r.xa,T=r.ya,u=b.c2p(o),p=T.c2p(m),t=[u,p],l=M.hoveron||"",a=M.mode.indexOf("markers")!==-1?3:.5,x=!!M.xperiodalignment,y=!!M.yperiodalignment;if(l.indexOf("points")!==-1){var E=function(j){if(x){var ae=b.c2p(j.xStart),se=b.c2p(j.xEnd);return u>=Math.min(ae,se)&&u<=Math.max(ae,se)?0:1/0}var le=Math.max(3,j.mrc||0),ge=1-1/le,xe=Math.abs(b.c2p(j.x)-u);return xe=Math.min(ae,se)&&p<=Math.max(ae,se)?0:1/0}var le=Math.max(3,j.mrc||0),ge=1-1/le,xe=Math.abs(T.c2p(j.y)-p);return xeK!=J>=K&&(k=C[$-1][0],G=C[$][0],J-W&&(R=k+(G-k)*(K-W)/(J-W),U=Math.min(U,R),Y=Math.max(Y,R)));U=Math.max(U,0),Y=Math.min(Y,b._length);var X=n.defaultLine;return n.opacity(M.fillcolor)?X=M.fillcolor:n.opacity((M.line||{}).color)&&(X=M.line.color),h.extendFlat(r,{distance:r.maxHoverDistance,x0:U,x1:Y,y0:K,y1:K,color:X,hovertemplate:!1}),delete r.index,M.text&&!Array.isArray(M.text)?r.text=String(M.text):r.text=M.name,[r]}}}},d82zWuQF:(oe,q,e)=>{"use strict";var h=e("FAQM5QER");oe.exports={hasLines:h.hasLines,hasMarkers:h.hasMarkers,hasText:h.hasText,isBubble:h.isBubble,attributes:e("SncXPNSm"),layoutAttributes:e("LB48LMA8"),supplyDefaults:e("a4YJmYyA"),crossTraceDefaults:e("ujGUE5BE"),supplyLayoutDefaults:e("F7pdXwJ8"),calc:e("i1GgYbcZ").calc,crossTraceCalc:e("pJrJ3hmH"),arraysToCalcdata:e("kh0qQ2F+"),plot:e("tGjzYLAA"),colorbar:e("WHVwkmN9"),formatLabels:e("QJJZmdtL"),style:e("DaHMLOVM").style,styleOnSelect:e("DaHMLOVM").styleOnSelect,hoverPoints:e("DNc9q72I"),selectPoints:e("UoPKlQhU"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e("42xT/S4m"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{description:["The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.","The data visualized as scatter point or lines is set in `x` and `y`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}},LB48LMA8:oe=>{"use strict";oe.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc",description:["Determines how scatter points at the same location coordinate","are displayed on the graph.","With *group*, the scatter points are plotted next to one another","centered around the shared location.","With *overlay*, the scatter points are plotted over one another,","you might need to reduce *opacity* to see multiple scatter points."].join(" ")},scattergap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between scatter points of","adjacent location coordinates.","Defaults to `bargap`."].join(" ")}}},F7pdXwJ8:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("LB48LMA8");oe.exports=function(S,i){function n(f,r){return h.coerce(S,i,v,f,r)}var c=i.barmode==="group";i.scattermode==="group"&&n("scattergap",c?i.bargap:.2)}},aG60Ih3s:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB").isArrayOrTypedArray,v=e("s48LrSF+").hasColorscale,S=e("NfKInJuD");oe.exports=function(n,c,f,r,o,m){m||(m={});var d=(n.marker||{}).color;if(o("line.color",f),v(n,"line"))S(n,c,r,o,{prefix:"line.",cLetter:"c"});else{var A=(h(d)?!1:d)||f;o("line.color",A)}o("line.width"),m.noDash||o("line.dash"),m.backoff&&o("line.backoff")}},"Yvx+zdsp":(oe,q,e)=>{"use strict";var h=e("+ELfTWmT"),v=e("46lPXjlm"),S=v.BADNUM,i=v.LOG_CLIP,n=i+.5,c=i-.5,f=e("0Ft3SWJB"),r=f.segmentsIntersect,o=f.constrain,m=e("It6vW0T+");oe.exports=function(A,M){var b=M.trace||{},T=M.xaxis,u=M.yaxis,p=T.type==="log",t=u.type==="log",l=T._length,a=u._length,x=M.backoff,y=b.marker,E=M.connectGaps,L=M.baseTolerance,F=M.shape,B=F==="linear",s=b.fill&&b.fill!=="none",w=[],g=m.minTolerance,I=A.length,N=new Array(I),Q=0,P,D,z,H,O,U,Y,ee,ne,me,$,re,C,R,k,G;function W(be){var we=A[be];if(!we)return!1;var Je=M.linearized?T.l2p(we.x):T.c2p(we.x),Ze=M.linearized?u.l2p(we.y):u.c2p(we.y);if(Je===S){if(p&&(Je=T.c2p(we.x,!0)),Je===S)return!1;t&&Ze===S&&(Je*=Math.abs(T._m*a*(T._m>0?n:c)/(u._m*l*(u._m>0?n:c)))),Je*=1e3}if(Ze===S){if(t&&(Ze=u.c2p(we.y,!0)),Ze===S)return!1;Ze*=1e3}return[Je,Ze]}function J(be,we,Je,Ze){var Ee=Je-be,Le=Ze-we,Oe=.5-be,at=.5-we,ft=Ee*Ee+Le*Le,ht=Ee*Oe+Le*at;if(ht>0&&ht1||Math.abs(Oe.y-Je[0][1])>1)&&(Oe=[Oe.x,Oe.y],Ze&&ae(Oe,be)ge||be[1]te)return[o(be[0],le,ge),o(be[1],xe,te)]}function je(be,we){if(be[0]===we[0]&&(be[0]===le||be[0]===ge)||be[1]===we[1]&&(be[1]===xe||be[1]===te))return!0}function _e(be,we){var Je=[],Ze=De(be),Ee=De(we);return Ze&&Ee&&je(Ze,Ee)||(Ze&&Je.push(Ze),Ee&&Je.push(Ee)),Je}function Qe(be,we,Je){return function(Ze,Ee){var Le=De(Ze),Oe=De(Ee),at=[];if(Le&&Oe&&je(Le,Oe))return at;Le&&at.push(Le),Oe&&at.push(Oe);var ft=2*f.constrain((Ze[be]+Ee[be])/2,we,Je)-((Le||Ze)[be]+(Oe||Ee)[be]);if(ft){var ht;Le&&Oe?ht=ft>0==Le[be]>Oe[be]?Le:Oe:ht=Le||Oe,ht[be]+=ft}return at}}var Ue;F==="linear"||F==="spline"?Ue=Be:F==="hv"||F==="vh"?Ue=_e:F==="hvh"?Ue=Qe(0,le,ge):F==="vhv"&&(Ue=Qe(1,xe,te));function nt(be,we){var Je=we[0]-be[0],Ze=(we[1]-be[1])/Je,Ee=(be[1]*we[0]-we[1]*be[0])/Je;return Ee>0?[Ze>0?le:ge,te]:[Ze>0?ge:le,xe]}function Ge(be){var we=be[0],Je=be[1],Ze=we===N[Q-1][0],Ee=Je===N[Q-1][1];if(!(Ze&&Ee))if(Q>1){var Le=we===N[Q-2][0],Oe=Je===N[Q-2][1];Ze&&(we===le||we===ge)&&Le?Oe?Q--:N[Q-1]=be:Ee&&(Je===xe||Je===te)&&Oe?Le?Q--:N[Q-1]=be:N[Q++]=be}else N[Q++]=be}function Ye(be){N[Q-1][0]!==be[0]&&N[Q-1][1]!==be[1]&&Ge([ce,ue]),Ge(be),Me=null,ce=ue=0}var ot=f.isArrayOrTypedArray(y);function rt(be){if(be&&x&&(be.i=P,be.d=A,be.trace=b,be.marker=ot?y[be.i]:y,be.backoff=x),K=be[0]/l,X=be[1]/a,fe=be[0]ge?ge:0,ye=be[1]te?te:0,fe||ye){if(!Q)N[Q++]=[fe||be[0],ye||be[1]];else if(Me){var we=Ue(Me,be);we.length>1&&(Ye(we[0]),N[Q++]=we[1])}else Pe=Ue(N[Q-1],be)[0],N[Q++]=Pe;var Je=N[Q-1];fe&&ye&&(Je[0]!==fe||Je[1]!==ye)?(Me&&(ce!==fe&&ue!==ye?Ge(ce&&ue?nt(Me,be):[ce||fe,ue||ye]):ce&&ue&&Ge([ce,ue])),Ge([fe,ye])):ce-fe&&ue-ye&&Ge([fe||ce,ye||ue]),Me=be,ce=fe,ue=ye}else Me&&Ye(Ue(Me,be)[0]),N[Q++]=be}for(P=0;Pj(U,Ke))break;z=U,C=ne[0]*ee[0]+ne[1]*ee[1],C>$?($=C,H=U,Y=!1):C=A.length||!U)break;rt(U),D=U}}Me&&Ge([ce||Me[0],ue||Me[1]]),w.push(N.slice(0,Q))}var he=F.slice(F.length-1);if(x&&he!=="h"&&he!=="v"){for(var He=!1,Ie=-1,Fe=[],We=0;We{"use strict";oe.exports=function(e,h,v){var S=v("line.shape");S==="spline"&&v("line.smoothing")}},veoEbvwu:oe=>{"use strict";var q={tonextx:1,tonexty:1,tonext:1};oe.exports=function(h,v,S){var i,n,c,f,r,o={},m=!1,d=-1,A=0,M=-1;for(n=0;n=0?r=M:(r=M=A,A++),r{"use strict";var h=e("yAcToaBS");oe.exports=function(S,i){i||(i=2);var n=S.marker,c=n.sizeref||1,f=n.sizemin||0,r=n.sizemode==="area"?function(o){return Math.sqrt(o/c)}:function(o){return o/c};return function(o){var m=r(o/i);return h(m)&&m>0?Math.max(m,f):0}}},WHVwkmN9:oe=>{"use strict";oe.exports={container:"marker",min:"cmin",max:"cmax"}},"R+/Bph75":(oe,q,e)=>{"use strict";var h=e("/oRevOrA"),v=e("s48LrSF+").hasColorscale,S=e("NfKInJuD"),i=e("FAQM5QER");oe.exports=function(c,f,r,o,m,d){var A=i.isBubble(c),M=(c.line||{}).color,b;if(d=d||{},M&&(r=M),m("marker.symbol"),m("marker.opacity",A?.7:1),m("marker.size"),d.noAngle||(m("marker.angle"),d.noAngleRef||m("marker.angleref"),d.noStandOff||m("marker.standoff")),m("marker.color",r),v(c,"marker")&&S(c,f,o,m,{prefix:"marker.",cLetter:"c"}),d.noSelect||(m("selected.marker.color"),m("unselected.marker.color"),m("selected.marker.size"),m("unselected.marker.size")),d.noLine||(M&&!Array.isArray(M)&&f.marker.color!==M?b=M:A?b=h.background:b=h.defaultLine,m("marker.line.color",b),v(c,"marker.line")&&S(c,f,o,m,{prefix:"marker.line.",cLetter:"c"}),m("marker.line.width",A?1:0)),A&&(m("marker.sizeref"),m("marker.sizemin"),m("marker.sizemode")),d.gradient){var T=m("marker.gradient.type");T!=="none"&&m("marker.gradient.color")}}},tAeBVoBa:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB").dateTick0,v=e("46lPXjlm"),S=v.ONEWEEK;function i(n,c){return n%S===0?h(c,1):h(c,0)}oe.exports=function(c,f,r,o,m){if(m||(m={x:!0,y:!0}),m.x){var d=o("xperiod");d&&(o("xperiod0",i(d,f.xcalendar)),o("xperiodalignment"))}if(m.y){var A=o("yperiod");A&&(o("yperiod0",i(A,f.ycalendar)),o("yperiodalignment"))}}},tGjzYLAA:(oe,q,e)=>{"use strict";var h=e("Lou4tdh8"),v=e("R5um7Wku"),S=e("0Ft3SWJB"),i=S.ensureSingle,n=S.identity,c=e("+ELfTWmT"),f=e("FAQM5QER"),r=e("Yvx+zdsp"),o=e("veoEbvwu"),m=e("fhYYOvxE").tester;oe.exports=function(T,u,p,t,l,a){var x,y,E=!l,L=!!l&&l.duration>0,F=o(T,u,p);if(x=t.selectAll("g.trace").data(F,function(s){return s[0].trace.uid}),x.enter().append("g").attr("class",function(s){return"trace scatter trace"+s[0].trace.uid}).style("stroke-miterlimit",2),x.order(),d(T,x,u),L){a&&(y=a());var B=h.transition().duration(l.duration).ease(l.easing).each("end",function(){y&&y()}).each("interrupt",function(){y&&y()});B.each(function(){t.selectAll("g.trace").each(function(s,w){A(T,w,u,s,F,this,l)})})}else x.each(function(s,w){A(T,w,u,s,F,this,l)});E&&x.exit().remove(),t.selectAll("path:not([d])").remove()};function d(b,T,u){T.each(function(p){var t=i(h.select(this),"g","fills");c.setClipUrl(t,u.layerClipId,b);var l=p[0].trace,a=[];l._ownfill&&a.push("_ownFill"),l._nexttrace&&a.push("_nextFill");var x=t.selectAll("g").data(a,n);x.enter().append("g"),x.exit().each(function(y){l[y]=null}).remove(),x.order().each(function(y){l[y]=i(h.select(this),"path","js-fill")})})}function A(b,T,u,p,t,l,a){var x=b._context.staticPlot,y;M(b,T,u,p,t);var E=!!a&&a.duration>0;function L(ue){return E?ue.transition():ue}var F=u.xaxis,B=u.yaxis,s=p[0].trace,w=s.line,g=h.select(l),I=i(g,"g","errorbars"),N=i(g,"g","lines"),Q=i(g,"g","points"),P=i(g,"g","text");if(v.getComponentMethod("errorbars","plot")(b,I,u,a),s.visible!==!0)return;L(g).style("opacity",s.opacity);var D,z,H=s.fill.charAt(s.fill.length-1);H!=="x"&&H!=="y"&&(H=""),p[0][u.isRangePlot?"nodeRangePlot3":"node3"]=g;var O="",U=[],Y=s._prevtrace;Y&&(O=Y._prevRevpath||"",z=Y._nextFill,U=Y._polygons);var ee,ne,me="",$="",re,C,R,k,G,W,J,K=[],X=S.noop;if(D=s._ownFill,f.hasLines(s)||s.fill!=="none"){for(z&&z.datum(p),["hv","vh","hvh","vhv"].indexOf(w.shape)!==-1?(re=c.steps(w.shape),C=c.steps(w.shape.split("").reverse().join(""))):w.shape==="spline"?re=C=function(ue){var Me=ue[ue.length-1];return ue.length>1&&ue[0][0]===Me[0]&&ue[0][1]===Me[1]?c.smoothclosed(ue.slice(1),w.smoothing):c.smoothopen(ue,w.smoothing)}:re=C=function(ue){return"M"+ue.join("L")},R=function(ue){return C(ue.reverse())},K=r(p,{xaxis:F,yaxis:B,trace:s,connectGaps:s.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,backoff:w.backoff,simplify:w.simplify,fill:s.fill}),J=s._polygons=new Array(K.length),y=0;y=x[0]&&g.x<=x[1]&&g.y>=y[0]&&g.y<=y[1]}),B=Math.ceil(F.length/L),s=0;t.forEach(function(g,I){var N=g[0].trace;f.hasMarkers(N)&&N.marker.maxdisplayed>0&&I{"use strict";var h=e("FAQM5QER");oe.exports=function(S,i){var n=S.cd,c=S.xaxis,f=S.yaxis,r=[],o=n[0].trace,m,d,A,M,b=!h.hasMarkers(o)&&!h.hasText(o);if(b)return[];if(i===!1)for(m=0;m{"use strict";var q=["orientation","groupnorm","stackgaps"];oe.exports=function(h,v,S,i){var n=S._scatterStackOpts,c=i("stackgroup");if(c){var f=v.xaxis+v.yaxis,r=n[f];r||(r=n[f]={});var o=r[c],m=!1;o?o.traces.push(v):(o=r[c]={traceIndices:[],traces:[v]},m=!0);for(var d={orientation:v.x&&!v.y?"h":"v"},A=0;A{"use strict";var h=e("Lou4tdh8"),v=e("+ELfTWmT"),S=e("R5um7Wku");function i(r){var o=h.select(r).selectAll("g.trace.scatter");o.style("opacity",function(m){return m[0].trace.opacity}),o.selectAll("g.points").each(function(m){var d=h.select(this),A=m.trace||m[0].trace;n(d,A,r)}),o.selectAll("g.text").each(function(m){var d=h.select(this),A=m.trace||m[0].trace;c(d,A,r)}),o.selectAll("g.trace path.js-line").call(v.lineGroupStyle),o.selectAll("g.trace path.js-fill").call(v.fillGroupStyle,r),S.getComponentMethod("errorbars","style")(o)}function n(r,o,m){v.pointStyle(r.selectAll("path.point"),o,m)}function c(r,o,m){v.textPointStyle(r.selectAll("text"),o,m)}function f(r,o,m){var d=o[0].trace;d.selectedpoints?(v.selectedPointStyle(m.selectAll("path.point"),d),v.selectedTextStyle(m.selectAll("text"),d)):(n(m,d,r),c(m,d,r))}oe.exports={style:i,stylePoints:n,styleText:c,styleOnSelect:f}},FAQM5QER:(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB");oe.exports={hasLines:function(v){return v.visible&&v.mode&&v.mode.indexOf("lines")!==-1},hasMarkers:function(v){return v.visible&&(v.mode&&v.mode.indexOf("markers")!==-1||v.type==="splom")},hasText:function(v){return v.visible&&v.mode&&v.mode.indexOf("text")!==-1},isBubble:function(v){return h.isPlainObject(v.marker)&&h.isArrayOrTypedArray(v.marker.size)}}},"/4PO5Ykb":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB");oe.exports=function(v,S,i,n,c){c=c||{},n("textposition"),h.coerceFont(n,"textfont",c.font||i.font),c.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}},"0QKf0MkS":(oe,q,e)=>{"use strict";var h=e("0Ft3SWJB"),v=e("R5um7Wku");oe.exports=function(i,n,c,f){var r=f("x"),o=f("y"),m,d=v.getComponentMethod("calendars","handleTraceDefaults");if(d(i,n,["x","y"],c),r){var A=h.minRowLength(r);o?m=Math.min(A,h.minRowLength(o)):(m=A,f("y0"),f("dy"))}else{if(!o)return 0;m=h.minRowLength(o),f("x0"),f("dx")}return n._length=m,m}},dH7CFEq5:(oe,q)=>{"use strict";q.version="2.26.2"},HJMBrBcm:oe=>{oe.exports=function(e,h,v,S){var i=e[0],n=e[1],c=!1;v===void 0&&(v=0),S===void 0&&(S=h.length);for(var f=S-v,r=0,o=f-1;rn!=M>n&&i<(A-m)*(n-d)/(M-d)+m;b&&(c=!c)}return c}},nuD6RlFT:(oe,q,e)=>{/* * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc * @license MIT * @preserve Project Home: https://github.com/voidqk/polybooljs */var h=e("Y3NUXw+c"),v=e("pEIGVlOg"),S=e("XLNBrVO3"),i=e("ipaMYO3e"),n=e("D/sHMWhy"),c=e("zMQrMJO6"),f=!1,r=v(),o;o={buildLog:function(d){return d===!0?f=h():d===!1&&(f=!1),f===!1?!1:f.list},epsilon:function(d){return r.epsilon(d)},segments:function(d){var A=S(!0,r,f);return d.regions.forEach(A.addRegion),{segments:A.calculate(d.inverted),inverted:d.inverted}},combine:function(d,A){var M=S(!1,r,f);return{combined:M.calculate(d.segments,d.inverted,A.segments,A.inverted),inverted1:d.inverted,inverted2:A.inverted}},selectUnion:function(d){return{segments:n.union(d.combined,f),inverted:d.inverted1||d.inverted2}},selectIntersect:function(d){return{segments:n.intersect(d.combined,f),inverted:d.inverted1&&d.inverted2}},selectDifference:function(d){return{segments:n.difference(d.combined,f),inverted:d.inverted1&&!d.inverted2}},selectDifferenceRev:function(d){return{segments:n.differenceRev(d.combined,f),inverted:!d.inverted1&&d.inverted2}},selectXor:function(d){return{segments:n.xor(d.combined,f),inverted:d.inverted1!==d.inverted2}},polygon:function(d){return{regions:i(d.segments,r,f),inverted:d.inverted}},polygonFromGeoJSON:function(d){return c.toPolygon(o,d)},polygonToGeoJSON:function(d){return c.fromPolygon(o,r,d)},union:function(d,A){return m(d,A,o.selectUnion)},intersect:function(d,A){return m(d,A,o.selectIntersect)},difference:function(d,A){return m(d,A,o.selectDifference)},differenceRev:function(d,A){return m(d,A,o.selectDifferenceRev)},xor:function(d,A){return m(d,A,o.selectXor)}};function m(d,A,M){var b=o.segments(d),T=o.segments(A),u=o.combine(b,T),p=M(u);return o.polygon(p)}typeof window=="object"&&(window.PolyBool=o),oe.exports=o},"Y3NUXw+c":oe=>{function q(){var e,h=0,v=!1;function S(i,n){return e.list.push({type:i,data:n?JSON.parse(JSON.stringify(n)):void 0}),e}return e={list:[],segmentId:function(){return h++},checkIntersection:function(i,n){return S("check",{seg1:i,seg2:n})},segmentChop:function(i,n){return S("div_seg",{seg:i,pt:n}),S("chop",{seg:i,pt:n})},statusRemove:function(i){return S("pop_seg",{seg:i})},segmentUpdate:function(i){return S("seg_update",{seg:i})},segmentNew:function(i,n){return S("new_seg",{seg:i,primary:n})},segmentRemove:function(i){return S("rem_seg",{seg:i})},tempStatus:function(i,n,c){return S("temp_status",{seg:i,above:n,below:c})},rewind:function(i){return S("rewind",{seg:i})},status:function(i,n,c){return S("status",{seg:i,above:n,below:c})},vert:function(i){return i===v?e:(v=i,S("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),S("log",{txt:i})},reset:function(){return S("reset")},selected:function(i){return S("selected",{segs:i})},chainStart:function(i){return S("chain_start",{seg:i})},chainRemoveHead:function(i,n){return S("chain_rem_head",{index:i,pt:n})},chainRemoveTail:function(i,n){return S("chain_rem_tail",{index:i,pt:n})},chainNew:function(i,n){return S("chain_new",{pt1:i,pt2:n})},chainMatch:function(i){return S("chain_match",{index:i})},chainClose:function(i){return S("chain_close",{index:i})},chainAddHead:function(i,n){return S("chain_add_head",{index:i,pt:n})},chainAddTail:function(i,n){return S("chain_add_tail",{index:i,pt:n})},chainConnect:function(i,n){return S("chain_con",{index1:i,index2:n})},chainReverse:function(i){return S("chain_rev",{index:i})},chainJoin:function(i,n){return S("chain_join",{index1:i,index2:n})},done:function(){return S("done")}},e}oe.exports=q},pEIGVlOg:oe=>{function q(e){typeof e!="number"&&(e=1e-10);var h={epsilon:function(v){return typeof v=="number"&&(e=v),e},pointAboveOrOnLine:function(v,S,i){var n=S[0],c=S[1],f=i[0],r=i[1],o=v[0],m=v[1];return(f-n)*(m-c)-(r-c)*(o-n)>=-e},pointBetween:function(v,S,i){var n=v[1]-S[1],c=i[0]-S[0],f=v[0]-S[0],r=i[1]-S[1],o=f*c+n*r;if(o-e)},pointsSameX:function(v,S){return Math.abs(v[0]-S[0])e!=f-n>e&&(c-m)*(n-d)/(f-d)+m-i>e&&(r=!r),c=m,f=d}return r}};return h}oe.exports=q},zMQrMJO6:oe=>{var q={toPolygon:function(e,h){function v(n){if(n.length<=0)return e.segments({inverted:!1,regions:[]});function c(o){var m=o.slice(0,o.length-1);return e.segments({inverted:!1,regions:[m]})}for(var f=c(n[0]),r=1;r{var h=e("tz4yzA4w");function v(S,i,n){function c(p,t){return{id:n?n.segmentId():-1,start:p,end:t,myFill:{above:null,below:null},otherFill:null}}function f(p,t,l){return{id:n?n.segmentId():-1,start:p,end:t,myFill:{above:l.myFill.above,below:l.myFill.below},otherFill:null}}var r=h.create();function o(p,t,l,a,x,y){var E=i.pointsCompare(t,x);return E!==0?E:i.pointsSame(l,y)?0:p!==a?p?1:-1:i.pointAboveOrOnLine(l,a?x:y,a?y:x)?1:-1}function m(p,t){r.insertBefore(p,function(l){var a=o(p.isStart,p.pt,t,l.isStart,l.pt,l.other.pt);return a<0})}function d(p,t){var l=h.node({isStart:!0,pt:p.start,seg:p,primary:t,other:null,status:null});return m(l,p.end),l}function A(p,t,l){var a=h.node({isStart:!1,pt:t.end,seg:t,primary:l,other:p,status:null});p.other=a,m(a,p.pt)}function M(p,t){var l=d(p,t);return A(l,p,t),l}function b(p,t){n&&n.segmentChop(p.seg,t),p.other.remove(),p.seg.end=t,p.other.pt=t,m(p.other,p.pt)}function T(p,t){var l=f(t,p.seg.end,p.seg);return b(p,t),M(l,p.primary)}function u(p,t){var l=h.create();function a(D,z){var H=D.seg.start,O=D.seg.end,U=z.seg.start,Y=z.seg.end;return i.pointsCollinear(H,U,Y)?i.pointsCollinear(O,U,Y)||i.pointAboveOrOnLine(O,U,Y)?1:-1:i.pointAboveOrOnLine(H,U,Y)?1:-1}function x(D){return l.findTransition(function(z){var H=a(D,z.ev);return H>0})}function y(D,z){var H=D.seg,O=z.seg,U=H.start,Y=H.end,ee=O.start,ne=O.end;n&&n.checkIntersection(H,O);var me=i.linesIntersect(U,Y,ee,ne);if(me===!1){if(!i.pointsCollinear(U,Y,ee)||i.pointsSame(U,ne)||i.pointsSame(Y,ee))return!1;var $=i.pointsSame(U,ee),re=i.pointsSame(Y,ne);if($&&re)return z;var C=!$&&i.pointBetween(U,ee,ne),R=!re&&i.pointBetween(Y,ee,ne);if($)return R?T(z,Y):T(D,ne),z;C&&(re||(R?T(z,Y):T(D,ne)),T(z,U))}else me.alongA===0&&(me.alongB===-1?T(D,ee):me.alongB===0?T(D,me.pt):me.alongB===1&&T(D,ne)),me.alongB===0&&(me.alongA===-1?T(z,U):me.alongA===0?T(z,me.pt):me.alongA===1&&T(z,Y));return!1}for(var E=[];!r.isEmpty();){var L=r.getHead();if(n&&n.vert(L.pt[0]),L.isStart){let D=function(){if(B){var z=y(L,B);if(z)return z}return s?y(L,s):!1};var P=D;n&&n.segmentNew(L.seg,L.primary);var F=x(L),B=F.before?F.before.ev:null,s=F.after?F.after.ev:null;n&&n.tempStatus(L.seg,B?B.seg:!1,s?s.seg:!1);var w=D();if(w){if(S){var g;L.seg.myFill.below===null?g=!0:g=L.seg.myFill.above!==L.seg.myFill.below,g&&(w.seg.myFill.above=!w.seg.myFill.above)}else w.seg.otherFill=L.seg.myFill;n&&n.segmentUpdate(w.seg),L.other.remove(),L.remove()}if(r.getHead()!==L){n&&n.rewind(L.seg);continue}if(S){var g;L.seg.myFill.below===null?g=!0:g=L.seg.myFill.above!==L.seg.myFill.below,s?L.seg.myFill.below=s.seg.myFill.above:L.seg.myFill.below=p,g?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var I;s?L.primary===s.primary?I=s.seg.otherFill.above:I=s.seg.myFill.above:I=L.primary?t:p,L.seg.otherFill={above:I,below:I}}n&&n.status(L.seg,B?B.seg:!1,s?s.seg:!1),L.other.status=F.insert(h.node({ev:L}))}else{var N=L.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(N.prev)&&l.exists(N.next)&&y(N.prev.ev,N.next.ev),n&&n.statusRemove(N.ev.seg),N.remove(),!L.primary){var Q=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=Q}E.push(L.seg)}r.getHead().remove()}return n&&n.done(),E}return S?{addRegion:function(p){for(var t,l=p[p.length-1],a=0;a{var q={create:function(){var e={root:{root:!0,next:null},exists:function(h){return!(h===null||h===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(h,v){for(var S=e.root,i=e.root.next;i!==null;){if(v(i)){h.prev=i.prev,h.next=i,i.prev.next=h,i.prev=h;return}S=i,i=i.next}S.next=h,h.prev=S,h.next=null},findTransition:function(h){for(var v=e.root,S=e.root.next;S!==null&&!h(S);)v=S,S=S.next;return{before:v===e.root?null:v,after:S,insert:function(i){return i.prev=v,i.next=S,v.next=i,S!==null&&(S.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};oe.exports=q},ipaMYO3e:oe=>{function q(e,h,v){var S=[],i=[];return e.forEach(function(n){var c=n.start,f=n.end;if(h.pointsSame(c,f)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}v&&v.chainStart(n);var r={index:0,matches_head:!1,matches_pt1:!1},o={index:0,matches_head:!1,matches_pt1:!1},m=r;function d(I,N,Q){return m.index=I,m.matches_head=N,m.matches_pt1=Q,m===r?(m=o,!1):(m=null,!0)}for(var A=0;A{function q(h,v,S){var i=[];return h.forEach(function(n){var c=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);v[c]!==0&&i.push({id:S?S.segmentId():-1,start:n.start,end:n.end,myFill:{above:v[c]===1,below:v[c]===2},otherFill:null})}),S&&S.selected(i),i}var e={union:function(h,v){return q(h,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],v)},intersect:function(h,v){return q(h,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],v)},difference:function(h,v){return q(h,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],v)},differenceRev:function(h,v){return q(h,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],v)},xor:function(h,v){return q(h,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],v)}};oe.exports=e},tqCChFA3:(oe,q,e)=>{"use strict";var h;function v(y){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},v(y)}h={value:!0},q.Z=x;var S=f(e("Z7aTuO5B")),i=n(e("ii0bleBb"));function n(y){return y&&y.__esModule?y:{default:y}}function c(y){if(typeof WeakMap!="function")return null;var E=new WeakMap,L=new WeakMap;return(c=function(B){return B?L:E})(y)}function f(y,E){if(!E&&y&&y.__esModule)return y;if(y===null||v(y)!=="object"&&typeof y!="function")return{default:y};var L=c(E);if(L&&L.has(y))return L.get(y);var F={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in y)if(s!=="default"&&Object.prototype.hasOwnProperty.call(y,s)){var w=B?Object.getOwnPropertyDescriptor(y,s):null;w&&(w.get||w.set)?Object.defineProperty(F,s,w):F[s]=y[s]}return F.default=y,L&&L.set(y,F),F}function r(y,E){if(!(y instanceof E))throw new TypeError("Cannot call a class as a function")}function o(y,E){for(var L=0;L"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function p(y){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)},p(y)}var t=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],l=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],a=typeof window<"u";function x(y){var E=function(L){d(B,L);var F=M(B);function B(s){var w;return r(this,B),w=F.call(this,s),w.p=Promise.resolve(),w.resizeHandler=null,w.handlers={},w.syncWindowResize=w.syncWindowResize.bind(T(w)),w.syncEventHandlers=w.syncEventHandlers.bind(T(w)),w.attachUpdateEvents=w.attachUpdateEvents.bind(T(w)),w.getRef=w.getRef.bind(T(w)),w.handleUpdate=w.handleUpdate.bind(T(w)),w.figureCallback=w.figureCallback.bind(T(w)),w.updatePlotly=w.updatePlotly.bind(T(w)),w}return m(B,[{key:"updatePlotly",value:function(w,g,I){var N=this;this.p=this.p.then(function(){if(!N.unmounting){if(!N.el)throw new Error("Missing element reference");return y.react(N.el,{data:N.props.data,layout:N.props.layout,config:N.props.config,frames:N.props.frames})}}).then(function(){N.unmounting||(N.syncWindowResize(w),N.syncEventHandlers(),N.figureCallback(g),I&&N.attachUpdateEvents())}).catch(function(Q){N.props.onError&&N.props.onError(Q)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(w){this.unmounting=!1;var g=w.frames&&w.frames.length?w.frames.length:0,I=this.props.frames&&this.props.frames.length?this.props.frames.length:0,N=!(w.layout===this.props.layout&&w.data===this.props.data&&w.config===this.props.config&&I===g),Q=w.revision!==void 0,P=w.revision!==this.props.revision;!N&&(!Q||Q&&!P)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&a&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),y.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var w=this;!this.el||!this.el.removeListener||l.forEach(function(g){w.el.on(g,w.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var w=this;!this.el||!this.el.removeListener||l.forEach(function(g){w.el.removeListener(g,w.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(w){if(typeof w=="function"){var g=this.el,I=g.data,N=g.layout,Q=this.el._transitionData?this.el._transitionData._frames:null,P={data:I,layout:N,frames:Q};w(P,this.el)}}},{key:"syncWindowResize",value:function(w){var g=this;a&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return y.Plots.resize(g.el)},window.addEventListener("resize",this.resizeHandler),w&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(w){this.el=w,this.props.debug&&a&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var w=this;t.forEach(function(g){var I=w.props["on"+g],N=w.handlers[g],Q=!!N;I&&!Q?w.addEventHandler(g,I):!I&&Q?w.removeEventHandler(g):I&&Q&&I!==N&&(w.removeEventHandler(g),w.addEventHandler(g,I))})}},{key:"addEventHandler",value:function(w,g){this.handlers[w]=g,this.el.on(this.getPlotlyEventName(w),this.handlers[w])}},{key:"removeEventHandler",value:function(w){this.el.removeListener(this.getPlotlyEventName(w),this.handlers[w]),delete this.handlers[w]}},{key:"getPlotlyEventName",value:function(w){return"plotly_"+w.toLowerCase()}},{key:"render",value:function(){return S.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),B}(S.Component);return E.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},t.forEach(function(L){E.propTypes["on"+L]=i.default.func}),E.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},E}}}]);})(); //# sourceMappingURL=07ba022f-626.8eb4ea63f81cb5bec83d.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy