(function(Ln,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],k):(Ln=typeof globalThis<"u"?globalThis:Ln||self,k(Ln.PlotVuer={},Ln.Vue))})(this,function(Ln,k){"use strict";function Z6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gb={exports:{}},qr=Gb.exports={},ni,ai;function _p(){throw new Error("setTimeout has not been defined")}function xp(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ni=setTimeout:ni=_p}catch{ni=_p}try{typeof clearTimeout=="function"?ai=clearTimeout:ai=xp}catch{ai=xp}})();function qb(e){if(ni===setTimeout)return setTimeout(e,0);if((ni===_p||!ni)&&setTimeout)return ni=setTimeout,setTimeout(e,0);try{return ni(e,0)}catch{try{return ni.call(null,e,0)}catch{return ni.call(this,e,0)}}}function Y6(e){if(ai===clearTimeout)return clearTimeout(e);if((ai===xp||!ai)&&clearTimeout)return ai=clearTimeout,clearTimeout(e);try{return ai(e)}catch{try{return ai.call(null,e)}catch{return ai.call(this,e)}}}var Fi=[],Wl=!1,Xo,Sc=-1;function X6(){!Wl||!Xo||(Wl=!1,Xo.length?Fi=Xo.concat(Fi):Sc=-1,Fi.length&&Wb())}function Wb(){if(!Wl){var e=qb(X6);Wl=!0;for(var t=Fi.length;t;){for(Xo=Fi,Fi=[];++Sc1)for(var r=1;ra=>{const i=e==null?void 0:e(a);if(r===!1||!i)return t==null?void 0:t(a)},Zl=globalThis||void 0||self;var Yb;const En=typeof window<"u",J6=e=>typeof e=="string",Xb=()=>{},wp=En&&((Yb=window==null?void 0:window.navigator)==null?void 0:Yb.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Kb(e){return typeof e=="function"?e():k.unref(e)}function Q6(e){return e}function Cc(e){return k.getCurrentScope()?(k.onScopeDispose(e),!0):!1}function e8(e,t=!0){k.getCurrentInstance()?k.onMounted(e):t?e():k.nextTick(e)}function $i(e){var t;const r=Kb(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Lc=En?window:void 0;function Ra(...e){let t,r,n,a;if(J6(e[0])||Array.isArray(e[0])?([r,n,a]=e,t=Lc):[t,r,n,a]=e,!t)return Xb;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},l=(u,d,h,p)=>(u.addEventListener(d,h,p),()=>u.removeEventListener(d,h,p)),s=k.watch(()=>[$i(t),Kb(a)],([u,d])=>{o(),u&&i.push(...r.flatMap(h=>n.map(p=>l(u,h,p,d))))},{immediate:!0,flush:"post"}),f=()=>{s(),o()};return Cc(f),f}let Jb=!1;function t8(e,t,r={}){const{window:n=Lc,ignore:a=[],capture:i=!0,detectIframe:o=!1}=r;if(!n)return;wp&&!Jb&&(Jb=!0,Array.from(n.document.body.children).forEach(h=>h.addEventListener("click",Xb)));let l=!0;const s=h=>a.some(p=>{if(typeof p=="string")return Array.from(n.document.querySelectorAll(p)).some(v=>v===h.target||h.composedPath().includes(v));{const v=$i(p);return v&&(h.target===v||h.composedPath().includes(v))}}),u=[Ra(n,"click",h=>{const p=$i(e);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(l=!s(h)),!l){l=!0;return}t(h)}},{passive:!0,capture:i}),Ra(n,"pointerdown",h=>{const p=$i(e);p&&(l=!h.composedPath().includes(p)&&!s(h))},{passive:!0}),o&&Ra(n,"blur",h=>{var p;const v=$i(e);((p=n.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(h)})].filter(Boolean);return()=>u.forEach(h=>h())}function Qb(e,t=!1){const r=k.ref(),n=()=>r.value=!!e();return n(),e8(n,t),r}const Tp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Zl<"u"?Zl:typeof self<"u"?self:{},kp="__vueuse_ssr_handlers__";Tp[kp]=Tp[kp]||{},Tp[kp];var e_=Object.getOwnPropertySymbols,r8=Object.prototype.hasOwnProperty,n8=Object.prototype.propertyIsEnumerable,a8=(e,t)=>{var r={};for(var n in e)r8.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&e_)for(var n of e_(e))t.indexOf(n)<0&&n8.call(e,n)&&(r[n]=e[n]);return r};function io(e,t,r={}){const n=r,{window:a=Lc}=n,i=a8(n,["window"]);let o;const l=Qb(()=>a&&"ResizeObserver"in a),s=()=>{o&&(o.disconnect(),o=void 0)},f=k.watch(()=>$i(e),d=>{s(),l.value&&a&&d&&(o=new ResizeObserver(t),o.observe(d,i))},{immediate:!0,flush:"post"}),u=()=>{s(),f()};return Cc(u),{isSupported:l,stop:u}}var t_=Object.getOwnPropertySymbols,i8=Object.prototype.hasOwnProperty,o8=Object.prototype.propertyIsEnumerable,l8=(e,t)=>{var r={};for(var n in e)i8.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&t_)for(var n of t_(e))t.indexOf(n)<0&&o8.call(e,n)&&(r[n]=e[n]);return r};function s8(e,t,r={}){const n=r,{window:a=Lc}=n,i=l8(n,["window"]);let o;const l=Qb(()=>a&&"MutationObserver"in a),s=()=>{o&&(o.disconnect(),o=void 0)},f=k.watch(()=>$i(e),d=>{s(),l.value&&a&&d&&(o=new MutationObserver(t),o.observe(d,i))},{immediate:!0}),u=()=>{s(),f()};return Cc(u),{isSupported:l,stop:u}}var r_;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(r_||(r_={}));var f8=Object.defineProperty,n_=Object.getOwnPropertySymbols,u8=Object.prototype.hasOwnProperty,c8=Object.prototype.propertyIsEnumerable,a_=(e,t,r)=>t in e?f8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d8=(e,t)=>{for(var r in t||(t={}))u8.call(t,r)&&a_(e,r,t[r]);if(n_)for(var r of n_(t))c8.call(t,r)&&a_(e,r,t[r]);return e};d8({linear:Q6},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]}),Ko.env.NODE_ENV!=="production"&&Object.freeze({}),Ko.env.NODE_ENV!=="production"&&Object.freeze([]);const Ec=()=>{},h8=Object.prototype.hasOwnProperty,i_=(e,t)=>h8.call(e,t),ii=Array.isArray,$n=e=>typeof e=="function",Yl=e=>typeof e=="string",oi=e=>e!==null&&typeof e=="object",v8=Object.prototype.toString,p8=e=>v8.call(e),Ap=e=>p8(e).slice(8,-1);var o_=typeof Zl=="object"&&Zl&&Zl.Object===Object&&Zl,m8=typeof self=="object"&&self&&self.Object===Object&&self,li=o_||m8||Function("return this")(),si=li.Symbol,l_=Object.prototype,g8=l_.hasOwnProperty,y8=l_.toString,Sf=si?si.toStringTag:void 0;function b8(e){var t=g8.call(e,Sf),r=e[Sf];try{e[Sf]=void 0;var n=!0}catch{}var a=y8.call(e);return n&&(t?e[Sf]=r:delete e[Sf]),a}var _8=Object.prototype,x8=_8.toString;function w8(e){return x8.call(e)}var T8="[object Null]",k8="[object Undefined]",s_=si?si.toStringTag:void 0;function Xl(e){return e==null?e===void 0?k8:T8:s_&&s_ in Object(e)?b8(e):w8(e)}function Kl(e){return e!=null&&typeof e=="object"}var A8="[object Symbol]";function Dc(e){return typeof e=="symbol"||Kl(e)&&Xl(e)==A8}function M8(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r0){if(++t>=Q8)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function nR(e){return function(){return e}}var Rc=function(){try{var e=Qo(Object,"defineProperty");return e({},"",{}),e}catch{}}(),aR=Rc?function(e,t){return Rc(e,"toString",{configurable:!0,enumerable:!1,value:nR(t),writable:!0})}:v_,iR=rR(aR);function oR(e,t,r,n){e.length;for(var a=r+1;a--;)if(t(e[a],a,e))return a;return-1}var lR=9007199254740991,sR=/^(?:0|[1-9]\d*)$/;function Cp(e,t){var r=typeof e;return t=t??lR,!!t&&(r=="number"||r!="symbol"&&sR.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=vR}function pR(e){return e!=null&&Ep(e.length)&&!p_(e)}var mR=Object.prototype;function gR(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||mR;return e===r}function yR(e,t){for(var r=-1,n=Array(e);++r-1}function AF(e,t){var r=this.__data__,n=Fc(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++tl))return!1;var f=i.get(e),u=i.get(t);if(f&&u)return f==t&&u==e;var d=-1,h=!0,p=r&vP?new $c:void 0;for(i.set(e,t),i.set(t,e);++d=t||C<0||d&&S>=i}function y(){var T=Hp();if(g(T))return w(T);l=setTimeout(y,m(T))}function w(T){return l=void 0,h&&n?p(T):(n=a=void 0,o)}function A(){l!==void 0&&clearTimeout(l),f=0,n=s=a=l=void 0}function x(){return l===void 0?o:w(Hp())}function _(){var T=Hp(),C=g(T);if(n=arguments,a=this,s=T,C){if(l===void 0)return v(s);if(d)return clearTimeout(l),l=setTimeout(y,t),p(s)}return l===void 0&&(l=setTimeout(y,t)),o}return _.cancel=A,_.flush=x,_}function rz(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=n-1;return oR(e,KP(t),a)}function jp(e){for(var t=-1,r=e==null?0:e.length,n={};++te===void 0,Gp=e=>typeof e=="boolean",oa=e=>typeof e=="number",tl=e=>typeof Element>"u"?!1:e instanceof Element,sz=e=>Yl(e)?!Number.isNaN(Number(e)):!1,fz=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");class q_ extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function uz(e,t){throw new q_(`[${e}] ${t}`)}function ui(e,t){if(Ko.env.NODE_ENV!=="production"){const r=Yl(e)?new q_(`[${e}] ${t}`):e;console.warn(r)}}const cz="utils/dom/style";function Oc(e,t="px"){if(!e)return"";if(oa(e)||sz(e))return`${e}${t}`;if(Yl(e))return e;ui(cz,"binding value must be a string or number")}function dz(e,t){if(!En)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const a=t.offsetTop+r.reduce((s,f)=>s+f.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,l=o+e.clientHeight;al&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var hz=k.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(k.openBlock(),k.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),vz=hz,pz=k.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(k.openBlock(),k.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),mz=pz,gz=k.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(k.openBlock(),k.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),yz=gz,bz=k.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(k.openBlock(),k.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),k.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),W_=bz,_z=k.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(k.openBlock(),k.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Z_=_z,xz=k.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(k.openBlock(),k.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Y_=xz;const X_="__epPropKey",rr=e=>e,wz=e=>oi(e)&&!!e[X_],Bc=(e,t)=>{if(!oi(e)||wz(e))return e;const{values:r,required:n,default:a,type:i,validator:o}=e,s={type:i,required:!!n,validator:r||o?f=>{let u=!1,d=[];if(r&&(d=Array.from(r),i_(e,"default")&&d.push(a),u||(u=d.includes(f))),o&&(u||(u=o(f))),!u&&d.length>0){const h=[...new Set(d)].map(p=>JSON.stringify(p)).join(", ");k.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(f)}.`)}return u}:void 0,[X_]:!0};return i_(e,"default")&&(s.default=a),s},Er=e=>jp(Object.entries(e).map(([t,r])=>[t,Bc(r,t)])),Jl=rr([String,Object,Function]),Tz={validating:Y_,success:yz,error:W_},Pa=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},kz=(e,t)=>(e.install=r=>{r.directive(t,e)},e),Hc=e=>(e.install=Ec,e),Ff={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},so="update:modelValue",jc="change",K_=["","default","small","large"],Az=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Mz=e=>e,Sz=({from:e,replacement:t,scope:r,version:n,ref:a,type:i="API"},o)=>{k.watch(()=>k.unref(o),l=>{l&&ui(r,`[${i}] ${e} is about to be deprecated in version ${n}, please use ${t} instead. For more detail, please visit: ${a} `)},{immediate:!0})};var Cz={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Lz=e=>(t,r)=>Ez(t,r,k.unref(e)),Ez=(e,t,r)=>Oi(r,e,e).replace(/\{(\w+)\}/g,(n,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),Dz=e=>{const t=k.computed(()=>k.unref(e).name),r=k.isRef(e)?e:k.ref(e);return{lang:t,locale:r,t:Lz(e)}},Rz=Symbol("localeContextKey"),Fz=e=>{const t=k.inject(Rz,k.ref());return Dz(k.computed(()=>t.value||Cz))},qp="el",Pz="is-",rl=(e,t,r,n,a)=>{let i=`${e}-${t}`;return r&&(i+=`-${r}`),n&&(i+=`__${n}`),a&&(i+=`--${a}`),i},zz=Symbol("namespaceContextKey"),Wp=e=>{const t=k.getCurrentInstance()?k.inject(zz,k.ref(qp)):k.ref(qp);return k.computed(()=>k.unref(t)||qp)},Hr=(e,t)=>{const r=Wp();return{namespace:r,b:(m="")=>rl(r.value,e,m,"",""),e:m=>m?rl(r.value,e,"",m,""):"",m:m=>m?rl(r.value,e,"","",m):"",be:(m,g)=>m&&g?rl(r.value,e,m,g,""):"",em:(m,g)=>m&&g?rl(r.value,e,"",m,g):"",bm:(m,g)=>m&&g?rl(r.value,e,m,"",g):"",bem:(m,g,y)=>m&&g&&y?rl(r.value,e,m,g,y):"",is:(m,...g)=>{const y=g.length>=1?g[0]:!0;return m&&y?`${Pz}${m}`:""},cssVar:m=>{const g={};for(const y in m)m[y]&&(g[`--${r.value}-${y}`]=m[y]);return g},cssVarName:m=>`--${r.value}-${m}`,cssVarBlock:m=>{const g={};for(const y in m)m[y]&&(g[`--${r.value}-${e}-${y}`]=m[y]);return g},cssVarBlockName:m=>`--${r.value}-${e}-${m}`}},$z=Bc({type:rr(Boolean),default:null}),Iz=Bc({type:rr(Function)}),Nz=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],a={[e]:$z,[r]:Iz};return{useModelToggle:({indicator:o,toggleReason:l,shouldHideWhenRouteChanges:s,shouldProceed:f,onShow:u,onHide:d})=>{const h=k.getCurrentInstance(),{emit:p}=h,v=h.props,m=k.computed(()=>$n(v[r])),g=k.computed(()=>v[e]===null),y=C=>{o.value!==!0&&(o.value=!0,l&&(l.value=C),$n(u)&&u(C))},w=C=>{o.value!==!1&&(o.value=!1,l&&(l.value=C),$n(d)&&d(C))},A=C=>{if(v.disabled===!0||$n(f)&&!f())return;const S=m.value&&En;S&&p(t,!0),(g.value||!S)&&y(C)},x=C=>{if(v.disabled===!0||!En)return;const S=m.value&&En;S&&p(t,!1),(g.value||!S)&&w(C)},_=C=>{Gp(C)&&(v.disabled&&C?m.value&&p(t,!1):o.value!==C&&(C?y():w()))},T=()=>{o.value?x():A()};return k.watch(()=>v[e],_),s&&h.appContext.config.globalProperties.$route!==void 0&&k.watch(()=>({...h.proxy.$route}),()=>{s.value&&o.value&&x()}),k.onMounted(()=>{_(v[e])}),{hide:x,show:A,toggle:T,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:n}},J_=e=>{const t=k.getCurrentInstance();return k.computed(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})};var In="top",la="bottom",sa="right",Nn="left",Zp="auto",Pf=[In,la,sa,Nn],Ql="start",zf="end",Oz="clippingParents",Q_="viewport",$f="popper",Bz="reference",ex=Pf.reduce(function(e,t){return e.concat([t+"-"+Ql,t+"-"+zf])},[]),Uc=[].concat(Pf,[Zp]).reduce(function(e,t){return e.concat([t,t+"-"+Ql,t+"-"+zf])},[]),Hz="beforeRead",jz="read",Uz="afterRead",Vz="beforeMain",Gz="main",qz="afterMain",Wz="beforeWrite",Zz="write",Yz="afterWrite",Xz=[Hz,jz,Uz,Vz,Gz,qz,Wz,Zz,Yz];function ci(e){return e?(e.nodeName||"").toLowerCase():null}function za(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function es(e){var t=za(e).Element;return e instanceof t||e instanceof Element}function fa(e){var t=za(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yp(e){if(typeof ShadowRoot>"u")return!1;var t=za(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Kz(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},i=t.elements[r];!fa(i)||!ci(i)||(Object.assign(i.style,n),Object.keys(a).forEach(function(o){var l=a[o];l===!1?i.removeAttribute(o):i.setAttribute(o,l===!0?"":l)}))})}function Jz(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],i=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=o.reduce(function(s,f){return s[f]="",s},{});!fa(a)||!ci(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(s){a.removeAttribute(s)}))})}}var tx={name:"applyStyles",enabled:!0,phase:"write",fn:Kz,effect:Jz,requires:["computeStyles"]};function di(e){return e.split("-")[0]}var nl=Math.max,Vc=Math.min,ts=Math.round;function rs(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,a=1;if(fa(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(n=ts(r.width)/o||1),i>0&&(a=ts(r.height)/i||1)}return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function Xp(e){var t=rs(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function rx(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Yp(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Hi(e){return za(e).getComputedStyle(e)}function Qz(e){return["table","td","th"].indexOf(ci(e))>=0}function fo(e){return((es(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gc(e){return ci(e)==="html"?e:e.assignedSlot||e.parentNode||(Yp(e)?e.host:null)||fo(e)}function nx(e){return!fa(e)||Hi(e).position==="fixed"?null:e.offsetParent}function e$(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&fa(e)){var n=Hi(e);if(n.position==="fixed")return null}var a=Gc(e);for(Yp(a)&&(a=a.host);fa(a)&&["html","body"].indexOf(ci(a))<0;){var i=Hi(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function If(e){for(var t=za(e),r=nx(e);r&&Qz(r)&&Hi(r).position==="static";)r=nx(r);return r&&(ci(r)==="html"||ci(r)==="body"&&Hi(r).position==="static")?t:r||e$(e)||t}function Kp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nf(e,t,r){return nl(e,Vc(t,r))}function t$(e,t,r){var n=Nf(e,t,r);return n>r?r:n}function ax(){return{top:0,right:0,bottom:0,left:0}}function ix(e){return Object.assign({},ax(),e)}function ox(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var r$=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ix(typeof e!="number"?e:ox(e,Pf))};function n$(e){var t,r=e.state,n=e.name,a=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,l=di(r.placement),s=Kp(l),f=[Nn,sa].indexOf(l)>=0,u=f?"height":"width";if(!(!i||!o)){var d=r$(a.padding,r),h=Xp(i),p=s==="y"?In:Nn,v=s==="y"?la:sa,m=r.rects.reference[u]+r.rects.reference[s]-o[s]-r.rects.popper[u],g=o[s]-r.rects.reference[s],y=If(i),w=y?s==="y"?y.clientHeight||0:y.clientWidth||0:0,A=m/2-g/2,x=d[p],_=w-h[u]-d[v],T=w/2-h[u]/2+A,C=Nf(x,T,_),S=s;r.modifiersData[n]=(t={},t[S]=C,t.centerOffset=C-T,t)}}function a$(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!rx(t.elements.popper,a)||(t.elements.arrow=a))}var i$={name:"arrow",enabled:!0,phase:"main",fn:n$,effect:a$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ns(e){return e.split("-")[1]}var o$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l$(e){var t=e.x,r=e.y,n=window,a=n.devicePixelRatio||1;return{x:ts(t*a)/a||0,y:ts(r*a)/a||0}}function lx(e){var t,r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,l=e.position,s=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=o.x,p=h===void 0?0:h,v=o.y,m=v===void 0?0:v,g=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),A=Nn,x=In,_=window;if(f){var T=If(r),C="clientHeight",S="clientWidth";if(T===za(r)&&(T=fo(r),Hi(T).position!=="static"&&l==="absolute"&&(C="scrollHeight",S="scrollWidth")),T=T,a===In||(a===Nn||a===sa)&&i===zf){x=la;var E=d&&T===_&&_.visualViewport?_.visualViewport.height:T[C];m-=E-n.height,m*=s?1:-1}if(a===Nn||(a===In||a===la)&&i===zf){A=sa;var F=d&&T===_&&_.visualViewport?_.visualViewport.width:T[S];p-=F-n.width,p*=s?1:-1}}var $=Object.assign({position:l},f&&o$),N=u===!0?l$({x:p,y:m}):{x:p,y:m};if(p=N.x,m=N.y,s){var B;return Object.assign({},$,(B={},B[x]=w?"0":"",B[A]=y?"0":"",B.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",B))}return Object.assign({},$,(t={},t[x]=w?m+"px":"",t[A]=y?p+"px":"",t.transform="",t))}function s$(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,o=i===void 0?!0:i,l=r.roundOffsets,s=l===void 0?!0:l,f={placement:di(t.placement),variation:ns(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,lx(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,lx(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var sx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s$,data:{}},qc={passive:!0};function f$(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,i=a===void 0?!0:a,o=n.resize,l=o===void 0?!0:o,s=za(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(u){u.addEventListener("scroll",r.update,qc)}),l&&s.addEventListener("resize",r.update,qc),function(){i&&f.forEach(function(u){u.removeEventListener("scroll",r.update,qc)}),l&&s.removeEventListener("resize",r.update,qc)}}var fx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:f$,data:{}},u$={left:"right",right:"left",bottom:"top",top:"bottom"};function Wc(e){return e.replace(/left|right|bottom|top/g,function(t){return u$[t]})}var c$={start:"end",end:"start"};function ux(e){return e.replace(/start|end/g,function(t){return c$[t]})}function Jp(e){var t=za(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Qp(e){return rs(fo(e)).left+Jp(e).scrollLeft}function d$(e){var t=za(e),r=fo(e),n=t.visualViewport,a=r.clientWidth,i=r.clientHeight,o=0,l=0;return n&&(a=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,l=n.offsetTop)),{width:a,height:i,x:o+Qp(e),y:l}}function h$(e){var t,r=fo(e),n=Jp(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=nl(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=nl(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+Qp(e),s=-n.scrollTop;return Hi(a||r).direction==="rtl"&&(l+=nl(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:l,y:s}}function em(e){var t=Hi(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function cx(e){return["html","body","#document"].indexOf(ci(e))>=0?e.ownerDocument.body:fa(e)&&em(e)?e:cx(Gc(e))}function Of(e,t){var r;t===void 0&&(t=[]);var n=cx(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),i=za(n),o=a?[i].concat(i.visualViewport||[],em(n)?n:[]):n,l=t.concat(o);return a?l:l.concat(Of(Gc(o)))}function tm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function v$(e){var t=rs(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function dx(e,t){return t===Q_?tm(d$(e)):es(t)?v$(t):tm(h$(fo(e)))}function p$(e){var t=Of(Gc(e)),r=["absolute","fixed"].indexOf(Hi(e).position)>=0,n=r&&fa(e)?If(e):e;return es(n)?t.filter(function(a){return es(a)&&rx(a,n)&&ci(a)!=="body"}):[]}function m$(e,t,r){var n=t==="clippingParents"?p$(e):[].concat(t),a=[].concat(n,[r]),i=a[0],o=a.reduce(function(l,s){var f=dx(e,s);return l.top=nl(f.top,l.top),l.right=Vc(f.right,l.right),l.bottom=Vc(f.bottom,l.bottom),l.left=nl(f.left,l.left),l},dx(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function hx(e){var t=e.reference,r=e.element,n=e.placement,a=n?di(n):null,i=n?ns(n):null,o=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(a){case In:s={x:o,y:t.y-r.height};break;case la:s={x:o,y:t.y+t.height};break;case sa:s={x:t.x+t.width,y:l};break;case Nn:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var f=a?Kp(a):null;if(f!=null){var u=f==="y"?"height":"width";switch(i){case Ql:s[f]=s[f]-(t[u]/2-r[u]/2);break;case zf:s[f]=s[f]+(t[u]/2-r[u]/2);break}}return s}function Bf(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.boundary,o=i===void 0?Oz:i,l=r.rootBoundary,s=l===void 0?Q_:l,f=r.elementContext,u=f===void 0?$f:f,d=r.altBoundary,h=d===void 0?!1:d,p=r.padding,v=p===void 0?0:p,m=ix(typeof v!="number"?v:ox(v,Pf)),g=u===$f?Bz:$f,y=e.rects.popper,w=e.elements[h?g:u],A=m$(es(w)?w:w.contextElement||fo(e.elements.popper),o,s),x=rs(e.elements.reference),_=hx({reference:x,element:y,strategy:"absolute",placement:a}),T=tm(Object.assign({},y,_)),C=u===$f?T:x,S={top:A.top-C.top+m.top,bottom:C.bottom-A.bottom+m.bottom,left:A.left-C.left+m.left,right:C.right-A.right+m.right},E=e.modifiersData.offset;if(u===$f&&E){var F=E[a];Object.keys(S).forEach(function($){var N=[sa,la].indexOf($)>=0?1:-1,B=[In,la].indexOf($)>=0?"y":"x";S[$]+=F[B]*N})}return S}function g$(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,f=s===void 0?Uc:s,u=ns(n),d=u?l?ex:ex.filter(function(v){return ns(v)===u}):Pf,h=d.filter(function(v){return f.indexOf(v)>=0});h.length===0&&(h=d);var p=h.reduce(function(v,m){return v[m]=Bf(e,{placement:m,boundary:a,rootBoundary:i,padding:o})[di(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function y$(e){if(di(e)===Zp)return[];var t=Wc(e);return[ux(e),t,ux(t)]}function b$(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,l=o===void 0?!0:o,s=r.fallbackPlacements,f=r.padding,u=r.boundary,d=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,v=p===void 0?!0:p,m=r.allowedAutoPlacements,g=t.options.placement,y=di(g),w=y===g,A=s||(w||!v?[Wc(g)]:y$(g)),x=[g].concat(A).reduce(function(ne,ie){return ne.concat(di(ie)===Zp?g$(t,{placement:ie,boundary:u,rootBoundary:d,padding:f,flipVariations:v,allowedAutoPlacements:m}):ie)},[]),_=t.rects.reference,T=t.rects.popper,C=new Map,S=!0,E=x[0],F=0;F=0,J=G?"width":"height",q=Bf(t,{placement:$,boundary:u,rootBoundary:d,altBoundary:h,padding:f}),I=G?B?sa:Nn:B?la:In;_[J]>T[J]&&(I=Wc(I));var z=Wc(I),P=[];if(i&&P.push(q[N]<=0),l&&P.push(q[I]<=0,q[z]<=0),P.every(function(ne){return ne})){E=$,S=!1;break}C.set($,P)}if(S)for(var H=v?3:1,j=function(ne){var ie=x.find(function(ee){var ue=C.get(ee);if(ue)return ue.slice(0,ne).every(function(U){return U})});if(ie)return E=ie,"break"},Z=H;Z>0;Z--){var te=j(Z);if(te==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}var _$={name:"flip",enabled:!0,phase:"main",fn:b$,requiresIfExists:["offset"],data:{_skip:!1}};function vx(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function px(e){return[In,sa,la,Nn].some(function(t){return e[t]>=0})}function x$(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=Bf(t,{elementContext:"reference"}),l=Bf(t,{altBoundary:!0}),s=vx(o,n),f=vx(l,a,i),u=px(s),d=px(f);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var w$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x$};function T$(e,t,r){var n=di(e),a=[Nn,In].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],l=i[1];return o=o||0,l=(l||0)*a,[Nn,sa].indexOf(n)>=0?{x:l,y:o}:{x:o,y:l}}function k$(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=a===void 0?[0,0]:a,o=Uc.reduce(function(u,d){return u[d]=T$(d,t.rects,i),u},{}),l=o[t.placement],s=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=o}var A$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:k$};function M$(e){var t=e.state,r=e.name;t.modifiersData[r]=hx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var mx={name:"popperOffsets",enabled:!0,phase:"read",fn:M$,data:{}};function S$(e){return e==="x"?"y":"x"}function C$(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,l=o===void 0?!1:o,s=r.boundary,f=r.rootBoundary,u=r.altBoundary,d=r.padding,h=r.tether,p=h===void 0?!0:h,v=r.tetherOffset,m=v===void 0?0:v,g=Bf(t,{boundary:s,rootBoundary:f,padding:d,altBoundary:u}),y=di(t.placement),w=ns(t.placement),A=!w,x=Kp(y),_=S$(x),T=t.modifiersData.popperOffsets,C=t.rects.reference,S=t.rects.popper,E=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,F=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(T){if(i){var B,G=x==="y"?In:Nn,J=x==="y"?la:sa,q=x==="y"?"height":"width",I=T[x],z=I+g[G],P=I-g[J],H=p?-S[q]/2:0,j=w===Ql?C[q]:S[q],Z=w===Ql?-S[q]:-C[q],te=t.elements.arrow,ne=p&&te?Xp(te):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ax(),ee=ie[G],ue=ie[J],U=Nf(0,C[q],ne[q]),V=A?C[q]/2-H-U-ee-F.mainAxis:j-U-ee-F.mainAxis,Y=A?-C[q]/2+H+U+ue+F.mainAxis:Z+U+ue+F.mainAxis,se=t.elements.arrow&&If(t.elements.arrow),Q=se?x==="y"?se.clientTop||0:se.clientLeft||0:0,me=(B=$==null?void 0:$[x])!=null?B:0,ye=I+V-me-Q,pe=I+Y-me,ge=Nf(p?Vc(z,ye):z,I,p?nl(P,pe):P);T[x]=ge,N[x]=ge-I}if(l){var Ee,$e=x==="x"?In:Nn,Fe=x==="x"?la:sa,Oe=T[_],Pe=_==="y"?"height":"width",We=Oe+g[$e],Se=Oe-g[Fe],Ge=[In,Nn].indexOf(y)!==-1,qe=(Ee=$==null?void 0:$[_])!=null?Ee:0,Qe=Ge?We:Oe-C[Pe]-S[Pe]-qe+F.altAxis,it=Ge?Oe+C[Pe]+S[Pe]-qe-F.altAxis:Se,dt=p&&Ge?t$(Qe,Oe,it):Nf(p?Qe:We,Oe,p?it:Se);T[_]=dt,N[_]=dt-Oe}t.modifiersData[n]=N}}var L$={name:"preventOverflow",enabled:!0,phase:"main",fn:C$,requiresIfExists:["offset"]};function E$(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function D$(e){return e===za(e)||!fa(e)?Jp(e):E$(e)}function R$(e){var t=e.getBoundingClientRect(),r=ts(t.width)/e.offsetWidth||1,n=ts(t.height)/e.offsetHeight||1;return r!==1||n!==1}function F$(e,t,r){r===void 0&&(r=!1);var n=fa(t),a=fa(t)&&R$(t),i=fo(t),o=rs(e,a),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((ci(t)!=="body"||em(i))&&(l=D$(t)),fa(t)?(s=rs(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Qp(i))),{x:o.left+l.scrollLeft-s.x,y:o.top+l.scrollTop-s.y,width:o.width,height:o.height}}function P$(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&a(s)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),n}function z$(e){var t=P$(e);return Xz.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function $$(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function I$(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var gx={placement:"bottom",modifiers:[],strategy:"absolute"};function yx(){for(var e=arguments.length,t=new Array(e),r=0;r{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const f=j$(s);Object.assign(o.value,f)},requires:["computeStyles"]},a=k.computed(()=>{const{onFirstUpdate:s,placement:f,strategy:u,modifiers:d}=k.unref(r);return{onFirstUpdate:s,placement:f||"bottom",strategy:u||"absolute",modifiers:[...d||[],n,{name:"applyStyles",enabled:!1}]}}),i=k.shallowRef(),o=k.ref({styles:{popper:{position:k.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return k.watch(a,s=>{const f=k.unref(i);f&&f.setOptions(s)},{deep:!0}),k.watch([e,t],([s,f])=>{l(),!(!s||!f)&&(i.value=B$(s,f,k.unref(a)))}),k.onBeforeUnmount(()=>{l()}),{state:k.computed(()=>{var s;return{...((s=k.unref(i))==null?void 0:s.state)||{}}}),styles:k.computed(()=>k.unref(o).styles),attributes:k.computed(()=>k.unref(o).attributes),update:()=>{var s;return(s=k.unref(i))==null?void 0:s.update()},forceUpdate:()=>{var s;return(s=k.unref(i))==null?void 0:s.forceUpdate()},instanceRef:k.computed(()=>k.unref(i))}};function j$(e){const t=Object.keys(e.elements),r=jp(t.map(a=>[a,e.styles[a]||{}])),n=jp(t.map(a=>[a,e.attributes[a]]));return{styles:r,attributes:n}}function bx(){let e;const t=(n,a)=>{r(),e=window.setTimeout(n,a)},r=()=>window.clearTimeout(e);return Cc(()=>r()),{registerTimeout:t,cancelTimeout:r}}const nm={prefix:Math.floor(Math.random()*1e4),current:0},U$=Symbol("elIdInjection"),am=()=>k.getCurrentInstance()?k.inject(U$,nm):nm,Zc=e=>{const t=am();!En&&t===nm&&ui("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed usage: app.provide(ID_INJECTION_KEY, { prefix: number, current: number, })`);const r=Wp();return k.computed(()=>k.unref(e)||`${r.value}-id-${t.prefix}-${t.current++}`)};let as=[];const _x=e=>{const t=e;t.key===Ff.esc&&as.forEach(r=>r(t))},V$=e=>{k.onMounted(()=>{as.length===0&&document.addEventListener("keydown",_x),En&&as.push(e)}),k.onBeforeUnmount(()=>{as=as.filter(t=>t!==e),as.length===0&&En&&document.removeEventListener("keydown",_x)})};let xx;const wx=()=>{const e=Wp(),t=am(),r=k.computed(()=>`${e.value}-popper-container-${t.prefix}`),n=k.computed(()=>`#${r.value}`);return{id:r,selector:n}},G$=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},q$=()=>{const{id:e,selector:t}=wx();return k.onBeforeMount(()=>{En&&(Ko.env.NODE_ENV==="test"||!xx||!document.body.querySelector(t.value))&&(xx=G$(e.value))}),{id:e,selector:t}},W$=Er({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Z$=({showAfter:e,hideAfter:t,autoClose:r,open:n,close:a})=>{const{registerTimeout:i}=bx(),{registerTimeout:o,cancelTimeout:l}=bx();return{onOpen:u=>{i(()=>{n(u);const d=k.unref(r);oa(d)&&d>0&&o(()=>{a(u)},d)},k.unref(e))},onClose:u=>{l(),i(()=>{a(u)},k.unref(t))}}},Tx=Symbol("elForwardRef"),Y$=e=>{const t=r=>{e.value=r};k.provide(Tx,{setForwardRef:t})},X$=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),kx={current:0},Ax=k.ref(0),K$=2e3,Mx=Symbol("elZIndexContextKey"),J$=Symbol("zIndexContextKey"),Q$=e=>{const t=k.getCurrentInstance()?k.inject(Mx,kx):kx,r=k.getCurrentInstance()?k.inject(J$,void 0):void 0,n=k.computed(()=>{const o=k.unref(r);return oa(o)?o:K$}),a=k.computed(()=>n.value+Ax.value),i=()=>(t.current++,Ax.value=t.current,a.value);return!En&&!k.inject(Mx)&&ui("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,currentZIndex:a,nextZIndex:i}},Sx=Bc({type:String,values:K_,required:!1}),eI=Symbol("size"),tI=()=>{const e=k.inject(eI,{});return k.computed(()=>k.unref(e.size)||"")};function rI(e,{beforeFocus:t,afterFocus:r,beforeBlur:n,afterBlur:a}={}){const i=k.getCurrentInstance(),{emit:o}=i,l=k.shallowRef(),s=k.ref(!1),f=h=>{$n(t)&&t(h)||s.value||(s.value=!0,o("focus",h),r==null||r())},u=h=>{var p;$n(n)&&n(h)||h.relatedTarget&&((p=l.value)!=null&&p.contains(h.relatedTarget))||(s.value=!1,o("blur",h),a==null||a())},d=()=>{var h,p;(h=l.value)!=null&&h.contains(document.activeElement)&&l.value!==document.activeElement||(p=e.value)==null||p.focus()};return k.watch(l,h=>{h&&h.setAttribute("tabindex","-1")}),Ra(l,"focus",f,!0),Ra(l,"blur",u,!0),Ra(l,"click",d,!0),Ko.env.NODE_ENV==="test"&&k.onMounted(()=>{const h=tl(e.value)?e.value:document.querySelector("input,textarea");h&&(Ra(h,"focus",f,!0),Ra(h,"blur",u,!0))}),{isFocused:s,wrapperRef:l,handleFocus:f,handleBlur:u}}function nI({afterComposition:e,emit:t}){const r=k.ref(!1),n=l=>{t==null||t("compositionstart",l),r.value=!0},a=l=>{var s;t==null||t("compositionupdate",l);const f=(s=l.target)==null?void 0:s.value,u=f[f.length-1]||"";r.value=!Az(u)},i=l=>{t==null||t("compositionend",l),r.value&&(r.value=!1,k.nextTick(()=>e(l)))};return{isComposing:r,handleComposition:l=>{l.type==="compositionend"?i(l):a(l)},handleCompositionStart:n,handleCompositionUpdate:a,handleCompositionEnd:i}}const aI=Symbol("emptyValuesContextKey"),iI="use-empty-values",oI=["",void 0,null],lI=void 0,sI=Er({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>$n(e)?!e():!e}}),fI=(e,t)=>{const r=k.getCurrentInstance()?k.inject(aI,k.ref({})):k.ref({}),n=k.computed(()=>e.emptyValues||r.value.emptyValues||oI),a=k.computed(()=>$n(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:$n(r.value.valueOnClear)?r.value.valueOnClear():r.value.valueOnClear!==void 0?r.value.valueOnClear:lI),i=o=>n.value.includes(o);return n.value.includes(a.value)||ui(iI,"value-on-clear should be a value of empty-values"),{emptyValues:n,valueOnClear:a,isEmptyValue:i}},uI=Er({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Yc=e=>lz(uI,e),cI=Symbol(),Cx=k.ref();function dI(e,t=void 0){const r=k.getCurrentInstance()?k.inject(cI,Cx):Cx;return k.computed(()=>{var n,a;return(a=(n=r.value)==null?void 0:n[e])!=null?a:t})}var Sr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};const hI=Er({size:{type:rr([Number,String])},color:{type:String}}),vI=k.defineComponent({name:"ElIcon",inheritAttrs:!1}),pI=k.defineComponent({...vI,props:hI,setup(e){const t=e,r=Hr("icon"),n=k.computed(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Rf(a)?void 0:Oc(a),"--color":i}});return(a,i)=>(k.openBlock(),k.createElementBlock("i",k.mergeProps({class:k.unref(r).b(),style:k.unref(n)},a.$attrs),[k.renderSlot(a.$slots,"default")],16))}});var mI=Sr(pI,[["__file","icon.vue"]]);const is=Pa(mI),im=Symbol("formContextKey"),Xc=Symbol("formItemContextKey"),om=(e,t={})=>{const r=k.ref(void 0),n=t.prop?r:J_("size"),a=t.global?r:tI(),i=t.form?{size:void 0}:k.inject(im,void 0),o=t.formItem?{size:void 0}:k.inject(Xc,void 0);return k.computed(()=>n.value||k.unref(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},Lx=e=>{const t=J_("disabled"),r=k.inject(im,void 0);return k.computed(()=>t.value||k.unref(e)||(r==null?void 0:r.disabled)||!1)},Ex=()=>{const e=k.inject(im,void 0),t=k.inject(Xc,void 0);return{form:e,formItem:t}},gI=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=k.ref(!1)),n||(n=k.ref(!1));const a=k.ref();let i;const o=k.computed(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return k.onMounted(()=>{i=k.watch([k.toRef(e,"id"),r],([l,s])=>{const f=l??(s?void 0:Zc().value);f!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(n!=null&&n.value)&&!s&&f&&t.addInputId(f)),a.value=f)},{immediate:!0})}),k.onUnmounted(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},os=4,yI={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},bI=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),lm=Symbol("scrollbarContextKey"),_I=Er({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),xI="Thumb";var Dx=Sr(k.defineComponent({__name:"thumb",props:_I,setup(e){const t=e,r=k.inject(lm),n=Hr("scrollbar");r||uz(xI,"can not inject scrollbar context");const a=k.ref(),i=k.ref(),o=k.ref({}),l=k.ref(!1);let s=!1,f=!1,u=En?document.onselectstart:null;const d=k.computed(()=>yI[t.vertical?"vertical":"horizontal"]),h=k.computed(()=>bI({size:t.size,move:t.move,bar:d.value})),p=k.computed(()=>a.value[d.value.offset]**2/r.wrapElement[d.value.scrollSize]/t.ratio/i.value[d.value.offset]),v=T=>{var C;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(C=window.getSelection())==null||C.removeAllRanges(),g(T);const S=T.currentTarget;S&&(o.value[d.value.axis]=S[d.value.offset]-(T[d.value.client]-S.getBoundingClientRect()[d.value.direction]))},m=T=>{if(!i.value||!a.value||!r.wrapElement)return;const C=Math.abs(T.target.getBoundingClientRect()[d.value.direction]-T[d.value.client]),S=i.value[d.value.offset]/2,E=(C-S)*100*p.value/a.value[d.value.offset];r.wrapElement[d.value.scroll]=E*r.wrapElement[d.value.scrollSize]/100},g=T=>{T.stopImmediatePropagation(),s=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),u=document.onselectstart,document.onselectstart=()=>!1},y=T=>{if(!a.value||!i.value||s===!1)return;const C=o.value[d.value.axis];if(!C)return;const S=(a.value.getBoundingClientRect()[d.value.direction]-T[d.value.client])*-1,E=i.value[d.value.offset]-C,F=(S-E)*100*p.value/a.value[d.value.offset];r.wrapElement[d.value.scroll]=F*r.wrapElement[d.value.scrollSize]/100},w=()=>{s=!1,o.value[d.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),_(),f&&(l.value=!1)},A=()=>{f=!1,l.value=!!t.size},x=()=>{f=!0,l.value=s};k.onBeforeUnmount(()=>{_(),document.removeEventListener("mouseup",w)});const _=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return Ra(k.toRef(r,"scrollbarElement"),"mousemove",A),Ra(k.toRef(r,"scrollbarElement"),"mouseleave",x),(T,C)=>(k.openBlock(),k.createBlock(k.Transition,{name:k.unref(n).b("fade"),persisted:""},{default:k.withCtx(()=>[k.withDirectives(k.createElementVNode("div",{ref_key:"instance",ref:a,class:k.normalizeClass([k.unref(n).e("bar"),k.unref(n).is(k.unref(d).key)]),onMousedown:m},[k.createElementVNode("div",{ref_key:"thumb",ref:i,class:k.normalizeClass(k.unref(n).e("thumb")),style:k.normalizeStyle(k.unref(h)),onMousedown:v},null,38)],34),[[k.vShow,T.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const wI=Er({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var TI=Sr(k.defineComponent({__name:"bar",props:wI,setup(e,{expose:t}){const r=e,n=k.inject(lm),a=k.ref(0),i=k.ref(0),o=k.ref(""),l=k.ref(""),s=k.ref(1),f=k.ref(1);return t({handleScroll:h=>{if(h){const p=h.offsetHeight-os,v=h.offsetWidth-os;i.value=h.scrollTop*100/p*s.value,a.value=h.scrollLeft*100/v*f.value}},update:()=>{const h=n==null?void 0:n.wrapElement;if(!h)return;const p=h.offsetHeight-os,v=h.offsetWidth-os,m=p**2/h.scrollHeight,g=v**2/h.scrollWidth,y=Math.max(m,r.minSize),w=Math.max(g,r.minSize);s.value=m/(p-m)/(y/(p-y)),f.value=g/(v-g)/(w/(v-w)),l.value=y+os(k.openBlock(),k.createElementBlock(k.Fragment,null,[k.createVNode(Dx,{move:a.value,ratio:f.value,size:o.value,always:h.always},null,8,["move","ratio","size","always"]),k.createVNode(Dx,{move:i.value,ratio:s.value,size:l.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const kI=Er({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:rr([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Yc(["ariaLabel","ariaOrientation"])}),AI={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(oa)},sm="ElScrollbar",MI=k.defineComponent({name:sm}),SI=k.defineComponent({...MI,props:kI,emits:AI,setup(e,{expose:t,emit:r}){const n=e,a=Hr("scrollbar");let i,o,l=0,s=0;const f=k.ref(),u=k.ref(),d=k.ref(),h=k.ref(),p=k.computed(()=>{const _={};return n.height&&(_.height=Oc(n.height)),n.maxHeight&&(_.maxHeight=Oc(n.maxHeight)),[n.wrapStyle,_]}),v=k.computed(()=>[n.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!n.native}]),m=k.computed(()=>[a.e("view"),n.viewClass]),g=()=>{var _;u.value&&((_=h.value)==null||_.handleScroll(u.value),l=u.value.scrollTop,s=u.value.scrollLeft,r("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function y(_,T){oi(_)?u.value.scrollTo(_):oa(_)&&oa(T)&&u.value.scrollTo(_,T)}const w=_=>{if(!oa(_)){ui(sm,"value must be a number");return}u.value.scrollTop=_},A=_=>{if(!oa(_)){ui(sm,"value must be a number");return}u.value.scrollLeft=_},x=()=>{var _;(_=h.value)==null||_.update()};return k.watch(()=>n.noresize,_=>{_?(i==null||i(),o==null||o()):({stop:i}=io(d,x),o=Ra("resize",x))},{immediate:!0}),k.watch(()=>[n.maxHeight,n.height],()=>{n.native||k.nextTick(()=>{var _;x(),u.value&&((_=h.value)==null||_.handleScroll(u.value))})}),k.provide(lm,k.reactive({scrollbarElement:f,wrapElement:u})),k.onActivated(()=>{u.value&&(u.value.scrollTop=l,u.value.scrollLeft=s)}),k.onMounted(()=>{n.native||k.nextTick(()=>{x()})}),k.onUpdated(()=>x()),t({wrapRef:u,update:x,scrollTo:y,setScrollTop:w,setScrollLeft:A,handleScroll:g}),(_,T)=>(k.openBlock(),k.createElementBlock("div",{ref_key:"scrollbarRef",ref:f,class:k.normalizeClass(k.unref(a).b())},[k.createElementVNode("div",{ref_key:"wrapRef",ref:u,class:k.normalizeClass(k.unref(v)),style:k.normalizeStyle(k.unref(p)),tabindex:_.tabindex,onScroll:g},[(k.openBlock(),k.createBlock(k.resolveDynamicComponent(_.tag),{id:_.id,ref_key:"resizeRef",ref:d,class:k.normalizeClass(k.unref(m)),style:k.normalizeStyle(_.viewStyle),role:_.role,"aria-label":_.ariaLabel,"aria-orientation":_.ariaOrientation},{default:k.withCtx(()=>[k.renderSlot(_.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),_.native?k.createCommentVNode("v-if",!0):(k.openBlock(),k.createBlock(TI,{key:0,ref_key:"barRef",ref:h,always:_.always,"min-size":_.minSize},null,8,["always","min-size"]))],2))}});var CI=Sr(SI,[["__file","scrollbar.vue"]]);const LI=Pa(CI),fm=Symbol("popper"),Rx=Symbol("popperContent"),Fx=Er({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),EI=k.defineComponent({name:"ElPopper",inheritAttrs:!1}),DI=k.defineComponent({...EI,props:Fx,setup(e,{expose:t}){const r=e,n=k.ref(),a=k.ref(),i=k.ref(),o=k.ref(),l=k.computed(()=>r.role),s={triggerRef:n,popperInstanceRef:a,contentRef:i,referenceRef:o,role:l};return t(s),k.provide(fm,s),(f,u)=>k.renderSlot(f.$slots,"default")}});var RI=Sr(DI,[["__file","popper.vue"]]);const Px=Er({arrowOffset:{type:Number,default:5}}),FI=k.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),PI=k.defineComponent({...FI,props:Px,setup(e,{expose:t}){const r=e,n=Hr("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=k.inject(Rx,void 0);return k.watch(()=>r.arrowOffset,l=>{a.value=l}),k.onBeforeUnmount(()=>{i.value=void 0}),t({arrowRef:i}),(l,s)=>(k.openBlock(),k.createElementBlock("span",{ref_key:"arrowRef",ref:i,class:k.normalizeClass(k.unref(n).e("arrow")),style:k.normalizeStyle(k.unref(o)),"data-popper-arrow":""},null,6))}});var zI=Sr(PI,[["__file","arrow.vue"]]);const um="ElOnlyChild",$I=k.defineComponent({name:um,setup(e,{slots:t,attrs:r}){var n;const a=k.inject(Tx),i=X$((n=a==null?void 0:a.setForwardRef)!=null?n:Ec);return()=>{var o;const l=(o=t.default)==null?void 0:o.call(t,r);if(!l)return null;if(l.length>1)return ui(um,"requires exact only one valid child."),null;const s=zx(l);return s?k.withDirectives(k.cloneVNode(s,r),[[i]]):(ui(um,"no valid child node found"),null)}}});function zx(e){if(!e)return null;const t=e;for(const r of t){if(oi(r))switch(r.type){case k.Comment:continue;case k.Text:case"svg":return $x(r);case k.Fragment:return zx(r.children);default:return r}return $x(r)}return null}function $x(e){const t=Hr("only-child");return k.createVNode("span",{class:t.e("content")},[e])}const Ix=Er({virtualRef:{type:rr(Object)},virtualTriggering:Boolean,onMouseenter:{type:rr(Function)},onMouseleave:{type:rr(Function)},onClick:{type:rr(Function)},onKeydown:{type:rr(Function)},onFocus:{type:rr(Function)},onBlur:{type:rr(Function)},onContextmenu:{type:rr(Function)},id:String,open:Boolean}),II=k.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),NI=k.defineComponent({...II,props:Ix,setup(e,{expose:t}){const r=e,{role:n,triggerRef:a}=k.inject(fm,void 0);Y$(a);const i=k.computed(()=>l.value?r.id:void 0),o=k.computed(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),l=k.computed(()=>{if(n&&n.value!=="tooltip")return n.value}),s=k.computed(()=>l.value?`${r.open}`:void 0);let f;const u=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return k.onMounted(()=>{k.watch(()=>r.virtualRef,d=>{d&&(a.value=$i(d))},{immediate:!0}),k.watch(a,(d,h)=>{f==null||f(),f=void 0,tl(d)&&(u.forEach(p=>{var v;const m=r[p];m&&(d.addEventListener(p.slice(2).toLowerCase(),m),(v=h==null?void 0:h.removeEventListener)==null||v.call(h,p.slice(2).toLowerCase(),m))}),f=k.watch([i,o,l,s],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{Vp(p[m])?d.removeAttribute(v):d.setAttribute(v,p[m])})},{immediate:!0})),tl(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>h.removeAttribute(p))},{immediate:!0})}),k.onBeforeUnmount(()=>{if(f==null||f(),f=void 0,a.value&&tl(a.value)){const d=a.value;u.forEach(h=>{const p=r[h];p&&d.removeEventListener(h.slice(2).toLowerCase(),p)}),a.value=void 0}}),t({triggerRef:a}),(d,h)=>d.virtualTriggering?k.createCommentVNode("v-if",!0):(k.openBlock(),k.createBlock(k.unref($I),k.mergeProps({key:0},d.$attrs,{"aria-controls":k.unref(i),"aria-describedby":k.unref(o),"aria-expanded":k.unref(s),"aria-haspopup":k.unref(l)}),{default:k.withCtx(()=>[k.renderSlot(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var OI=Sr(NI,[["__file","trigger.vue"]]);const cm="focus-trap.focus-after-trapped",dm="focus-trap.focus-after-released",BI="focus-trap.focusout-prevented",Nx={cancelable:!0,bubbles:!1},HI={cancelable:!0,bubbles:!1},Ox="focusAfterTrapped",Bx="focusAfterReleased",jI=Symbol("elFocusTrap"),hm=k.ref(),Kc=k.ref(0),vm=k.ref(0);let Jc=0;const Hx=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},jx=(e,t)=>{for(const r of e)if(!UI(r,t))return r},UI=(e,t)=>{if(Ko.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},VI=e=>{const t=Hx(e),r=jx(t,e),n=jx(t.reverse(),e);return[r,n]},GI=e=>e instanceof HTMLInputElement&&"select"in e,uo=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),vm.value=window.performance.now(),e!==r&&GI(e)&&t&&e.select()}};function Ux(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const qI=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=Ux(e,n),e.unshift(n)},remove:n=>{var a,i;e=Ux(e,n),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},WI=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(uo(n,t),document.activeElement!==r)return},Vx=qI(),ZI=()=>Kc.value>vm.value,Qc=()=>{hm.value="pointer",Kc.value=window.performance.now()},Gx=()=>{hm.value="keyboard",Kc.value=window.performance.now()},YI=()=>(k.onMounted(()=>{Jc===0&&(document.addEventListener("mousedown",Qc),document.addEventListener("touchstart",Qc),document.addEventListener("keydown",Gx)),Jc++}),k.onBeforeUnmount(()=>{Jc--,Jc<=0&&(document.removeEventListener("mousedown",Qc),document.removeEventListener("touchstart",Qc),document.removeEventListener("keydown",Gx))}),{focusReason:hm,lastUserFocusTimestamp:Kc,lastAutomatedFocusTimestamp:vm}),ed=e=>new CustomEvent(BI,{...HI,detail:e}),XI=k.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Ox,Bx,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=k.ref();let n,a;const{focusReason:i}=YI();V$(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:m,altKey:g,ctrlKey:y,metaKey:w,currentTarget:A,shiftKey:x}=v,{loop:_}=e,T=m===Ff.tab&&!g&&!y&&!w,C=document.activeElement;if(T&&C){const S=A,[E,F]=VI(S);if(E&&F){if(!x&&C===F){const N=ed({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||(v.preventDefault(),_&&uo(E,!0))}else if(x&&[E,S].includes(C)){const N=ed({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||(v.preventDefault(),_&&uo(F,!0))}}else if(C===S){const N=ed({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||v.preventDefault()}}};k.provide(jI,{focusTrapRef:r,onKeydown:l}),k.watch(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),k.watch([r],([v],[m])=>{v&&(v.addEventListener("keydown",l),v.addEventListener("focusin",u),v.addEventListener("focusout",d)),m&&(m.removeEventListener("keydown",l),m.removeEventListener("focusin",u),m.removeEventListener("focusout",d))});const s=v=>{t(Ox,v)},f=v=>t(Bx,v),u=v=>{const m=k.unref(r);if(!m)return;const g=v.target,y=v.relatedTarget,w=g&&m.contains(g);e.trapped||y&&m.contains(y)||(n=y),w&&t("focusin",v),!o.paused&&e.trapped&&(w?a=g:uo(a,!0))},d=v=>{const m=k.unref(r);if(!(o.paused||!m))if(e.trapped){const g=v.relatedTarget;!Vp(g)&&!m.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const y=ed({focusReason:i.value});t("focusout-prevented",y),y.defaultPrevented||uo(a,!0)}},0)}else{const g=v.target;g&&m.contains(g)||t("focusout",v)}};async function h(){await k.nextTick();const v=k.unref(r);if(v){Vx.push(o);const m=v.contains(document.activeElement)?n:document.activeElement;if(n=m,!v.contains(m)){const y=new Event(cm,Nx);v.addEventListener(cm,s),v.dispatchEvent(y),y.defaultPrevented||k.nextTick(()=>{let w=e.focusStartEl;Yl(w)||(uo(w),document.activeElement!==w&&(w="first")),w==="first"&&WI(Hx(v),!0),(document.activeElement===m||w==="container")&&uo(v)})}}}function p(){const v=k.unref(r);if(v){v.removeEventListener(cm,s);const m=new CustomEvent(dm,{...Nx,detail:{focusReason:i.value}});v.addEventListener(dm,f),v.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!ZI()||v.contains(document.activeElement))&&uo(n??document.body),v.removeEventListener(dm,f),Vx.remove(o)}}return k.onMounted(()=>{e.trapped&&h(),k.watch(()=>e.trapped,v=>{v?h():p()})}),k.onBeforeUnmount(()=>{e.trapped&&p(),r.value&&(r.value.removeEventListener("keydown",l),r.value.removeEventListener("focusin",u),r.value.removeEventListener("focusout",d),r.value=void 0)}),{onKeydown:l}}});function KI(e,t,r,n,a,i){return k.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var JI=Sr(XI,[["render",KI],["__file","focus-trap.vue"]]);const QI=["fixed","absolute"],eN=Er({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:rr(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Uc,default:"bottom"},popperOptions:{type:rr(Object),default:()=>({})},strategy:{type:String,values:QI,default:"absolute"}}),qx=Er({...eN,id:String,style:{type:rr([String,Array,Object])},className:{type:rr([String,Array,Object])},effect:{type:rr(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:rr([String,Array,Object])},popperStyle:{type:rr([String,Array,Object])},referenceEl:{type:rr(Object)},triggerTargetEl:{type:rr(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Yc(["ariaLabel"])}),tN={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},rN=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:a}=e,i={placement:r,strategy:n,...a,modifiers:[...aN(e),...t]};return iN(i,a==null?void 0:a.modifiers),i},nN=e=>{if(En)return $i(e)};function aN(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function iN(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const oN=0,lN=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:a}=k.inject(fm,void 0),i=k.ref(),o=k.ref(),l=k.computed(()=>({name:"eventListeners",enabled:!!e.visible})),s=k.computed(()=>{var y;const w=k.unref(i),A=(y=k.unref(o))!=null?y:oN;return{name:"arrow",enabled:!nz(w),options:{element:w,padding:A}}}),f=k.computed(()=>({onFirstUpdate:()=>{v()},...rN(e,[k.unref(s),k.unref(l)])})),u=k.computed(()=>nN(e.referenceEl)||k.unref(n)),{attributes:d,state:h,styles:p,update:v,forceUpdate:m,instanceRef:g}=H$(u,r,f);return k.watch(g,y=>t.value=y),k.onMounted(()=>{k.watch(()=>{var y;return(y=k.unref(u))==null?void 0:y.getBoundingClientRect()},()=>{v()})}),{attributes:d,arrowRef:i,contentRef:r,instanceRef:g,state:h,styles:p,role:a,forceUpdate:m,update:v}},sN=(e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:a}=Q$(),i=Hr("popper"),o=k.computed(()=>k.unref(t).popper),l=k.ref(oa(e.zIndex)?e.zIndex:a()),s=k.computed(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),f=k.computed(()=>[{zIndex:k.unref(l)},k.unref(r).popper,e.popperStyle||{}]),u=k.computed(()=>n.value==="dialog"?"false":void 0),d=k.computed(()=>k.unref(r).arrow||{});return{ariaModal:u,arrowStyle:d,contentAttrs:o,contentClass:s,contentStyle:f,contentZIndex:l,updateZIndex:()=>{l.value=oa(e.zIndex)?e.zIndex:a()}}},fN=(e,t)=>{const r=k.ref(!1),n=k.ref();return{focusStartRef:n,trapped:r,onFocusAfterReleased:f=>{var u;((u=f.detail)==null?void 0:u.focusReason)!=="pointer"&&(n.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:f=>{e.visible&&!r.value&&(f.target&&(n.value=f.target),r.value=!0)},onFocusoutPrevented:f=>{e.trapping||(f.detail.focusReason==="pointer"&&f.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}},uN=k.defineComponent({name:"ElPopperContent"}),cN=k.defineComponent({...uN,props:qx,emits:tN,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:l,onFocusInTrap:s,onFocusoutPrevented:f,onReleaseRequested:u}=fN(n,r),{attributes:d,arrowRef:h,contentRef:p,styles:v,instanceRef:m,role:g,update:y}=lN(n),{ariaModal:w,arrowStyle:A,contentAttrs:x,contentClass:_,contentStyle:T,updateZIndex:C}=sN(n,{styles:v,attributes:d,role:g}),S=k.inject(Xc,void 0),E=k.ref();k.provide(Rx,{arrowStyle:A,arrowRef:h,arrowOffset:E}),S&&k.provide(Xc,{...S,addInputId:Ec,removeInputId:Ec});let F;const $=(B=!0)=>{y(),B&&C()},N=()=>{$(!1),n.visible&&n.focusOnShow?i.value=!0:n.visible===!1&&(i.value=!1)};return k.onMounted(()=>{k.watch(()=>n.triggerTargetEl,(B,G)=>{F==null||F(),F=void 0;const J=k.unref(B||p.value),q=k.unref(G||p.value);tl(J)&&(F=k.watch([g,()=>n.ariaLabel,w,()=>n.id],I=>{["role","aria-label","aria-modal","id"].forEach((z,P)=>{Vp(I[P])?J.removeAttribute(z):J.setAttribute(z,I[P])})},{immediate:!0})),q!==J&&tl(q)&&["role","aria-label","aria-modal","id"].forEach(I=>{q.removeAttribute(I)})},{immediate:!0}),k.watch(()=>n.visible,N,{immediate:!0})}),k.onBeforeUnmount(()=>{F==null||F(),F=void 0}),t({popperContentRef:p,popperInstanceRef:m,updatePopper:$,contentStyle:T}),(B,G)=>(k.openBlock(),k.createElementBlock("div",k.mergeProps({ref_key:"contentRef",ref:p},k.unref(x),{style:k.unref(T),class:k.unref(_),tabindex:"-1",onMouseenter:J=>B.$emit("mouseenter",J),onMouseleave:J=>B.$emit("mouseleave",J)}),[k.createVNode(k.unref(JI),{trapped:k.unref(i),"trap-on-focus-in":!0,"focus-trap-el":k.unref(p),"focus-start-el":k.unref(a),onFocusAfterTrapped:k.unref(l),onFocusAfterReleased:k.unref(o),onFocusin:k.unref(s),onFocusoutPrevented:k.unref(f),onReleaseRequested:k.unref(u)},{default:k.withCtx(()=>[k.renderSlot(B.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var dN=Sr(cN,[["__file","content.vue"]]);const hN=Pa(RI),pm=Symbol("elTooltip"),Qn=Er({...W$,...qx,appendTo:{type:rr([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:rr(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Yc(["ariaLabel"])}),Hf=Er({...Ix,disabled:Boolean,trigger:{type:rr([String,Array]),default:"hover"},triggerKeys:{type:rr(Array),default:()=>[Ff.enter,Ff.space]}}),{useModelToggleProps:vN,useModelToggleEmits:pN,useModelToggle:mN}=Nz("visible"),gN=Er({...Fx,...vN,...Qn,...Hf,...Px,showArrow:{type:Boolean,default:!0}}),yN=[...pN,"before-show","before-hide","show","hide","open","close"],bN=(e,t)=>ii(e)?e.includes(t):e===t,ls=(e,t,r)=>n=>{bN(k.unref(e),t)&&r(n)},_N=k.defineComponent({name:"ElTooltipTrigger"}),xN=k.defineComponent({..._N,props:Hf,setup(e,{expose:t}){const r=e,n=Hr("tooltip"),{controlled:a,id:i,open:o,onOpen:l,onClose:s,onToggle:f}=k.inject(pm,void 0),u=k.ref(null),d=()=>{if(k.unref(a)||r.disabled)return!0},h=k.toRef(r,"trigger"),p=zi(d,ls(h,"hover",l)),v=zi(d,ls(h,"hover",s)),m=zi(d,ls(h,"click",x=>{x.button===0&&f(x)})),g=zi(d,ls(h,"focus",l)),y=zi(d,ls(h,"focus",s)),w=zi(d,ls(h,"contextmenu",x=>{x.preventDefault(),f(x)})),A=zi(d,x=>{const{code:_}=x;r.triggerKeys.includes(_)&&(x.preventDefault(),f(x))});return t({triggerRef:u}),(x,_)=>(k.openBlock(),k.createBlock(k.unref(OI),{id:k.unref(i),"virtual-ref":x.virtualRef,open:k.unref(o),"virtual-triggering":x.virtualTriggering,class:k.normalizeClass(k.unref(n).e("trigger")),onBlur:k.unref(y),onClick:k.unref(m),onContextmenu:k.unref(w),onFocus:k.unref(g),onMouseenter:k.unref(p),onMouseleave:k.unref(v),onKeydown:k.unref(A)},{default:k.withCtx(()=>[k.renderSlot(x.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var wN=Sr(xN,[["__file","trigger.vue"]]);const TN=Er({to:{type:rr([String,Object]),required:!0},disabled:Boolean});var kN=Sr(k.defineComponent({__name:"teleport",props:TN,setup(e){return(t,r)=>t.disabled?k.renderSlot(t.$slots,"default",{key:0}):(k.openBlock(),k.createBlock(k.Teleport,{key:1,to:t.to},[k.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const AN=Pa(kN),MN=k.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),SN=k.defineComponent({...MN,props:Qn,setup(e,{expose:t}){const r=e,{selector:n}=wx(),a=Hr("tooltip"),i=k.ref(null);let o;const{controlled:l,id:s,open:f,trigger:u,onClose:d,onOpen:h,onShow:p,onHide:v,onBeforeShow:m,onBeforeHide:g}=k.inject(pm,void 0),y=k.computed(()=>r.transition||`${a.namespace.value}-fade-in-linear`),w=k.computed(()=>Ko.env.NODE_ENV==="test"?!0:r.persistent);k.onBeforeUnmount(()=>{o==null||o()});const A=k.computed(()=>k.unref(w)?!0:k.unref(f)),x=k.computed(()=>r.disabled?!1:k.unref(f)),_=k.computed(()=>r.appendTo||n.value),T=k.computed(()=>{var q;return(q=r.style)!=null?q:{}}),C=k.ref(!0),S=()=>{v(),C.value=!0},E=()=>{if(k.unref(l))return!0},F=zi(E,()=>{r.enterable&&k.unref(u)==="hover"&&h()}),$=zi(E,()=>{k.unref(u)==="hover"&&d()}),N=()=>{var q,I;(I=(q=i.value)==null?void 0:q.updatePopper)==null||I.call(q),m==null||m()},B=()=>{g==null||g()},G=()=>{p(),o=t8(k.computed(()=>{var q;return(q=i.value)==null?void 0:q.popperContentRef}),()=>{if(k.unref(l))return;k.unref(u)!=="hover"&&d()})},J=()=>{r.virtualTriggering||d()};return k.watch(()=>k.unref(f),q=>{q?C.value=!1:o==null||o()},{flush:"post"}),k.watch(()=>r.content,()=>{var q,I;(I=(q=i.value)==null?void 0:q.updatePopper)==null||I.call(q)}),t({contentRef:i}),(q,I)=>(k.openBlock(),k.createBlock(k.unref(AN),{disabled:!q.teleported,to:k.unref(_)},{default:k.withCtx(()=>[k.createVNode(k.Transition,{name:k.unref(y),onAfterLeave:S,onBeforeEnter:N,onAfterEnter:G,onBeforeLeave:B},{default:k.withCtx(()=>[k.unref(A)?k.withDirectives((k.openBlock(),k.createBlock(k.unref(dN),k.mergeProps({key:0,id:k.unref(s),ref_key:"contentRef",ref:i},q.$attrs,{"aria-label":q.ariaLabel,"aria-hidden":C.value,"boundaries-padding":q.boundariesPadding,"fallback-placements":q.fallbackPlacements,"gpu-acceleration":q.gpuAcceleration,offset:q.offset,placement:q.placement,"popper-options":q.popperOptions,strategy:q.strategy,effect:q.effect,enterable:q.enterable,pure:q.pure,"popper-class":q.popperClass,"popper-style":[q.popperStyle,k.unref(T)],"reference-el":q.referenceEl,"trigger-target-el":q.triggerTargetEl,visible:k.unref(x),"z-index":q.zIndex,onMouseenter:k.unref(F),onMouseleave:k.unref($),onBlur:J,onClose:k.unref(d)}),{default:k.withCtx(()=>[k.renderSlot(q.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[k.vShow,k.unref(x)]]):k.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var CN=Sr(SN,[["__file","content.vue"]]);const LN=k.defineComponent({name:"ElTooltip"}),EN=k.defineComponent({...LN,props:gN,emits:yN,setup(e,{expose:t,emit:r}){const n=e;q$();const a=Zc(),i=k.ref(),o=k.ref(),l=()=>{var y;const w=k.unref(i);w&&((y=w.popperInstanceRef)==null||y.update())},s=k.ref(!1),f=k.ref(),{show:u,hide:d,hasUpdateHandler:h}=mN({indicator:s,toggleReason:f}),{onOpen:p,onClose:v}=Z$({showAfter:k.toRef(n,"showAfter"),hideAfter:k.toRef(n,"hideAfter"),autoClose:k.toRef(n,"autoClose"),open:u,close:d}),m=k.computed(()=>Gp(n.visible)&&!h.value);k.provide(pm,{controlled:m,id:a,open:k.readonly(s),trigger:k.toRef(n,"trigger"),onOpen:y=>{p(y)},onClose:y=>{v(y)},onToggle:y=>{k.unref(s)?v(y):p(y)},onShow:()=>{r("show",f.value)},onHide:()=>{r("hide",f.value)},onBeforeShow:()=>{r("before-show",f.value)},onBeforeHide:()=>{r("before-hide",f.value)},updatePopper:l}),k.watch(()=>n.disabled,y=>{y&&s.value&&(s.value=!1)});const g=y=>{var w,A;const x=(A=(w=o.value)==null?void 0:w.contentRef)==null?void 0:A.popperContentRef,_=(y==null?void 0:y.relatedTarget)||document.activeElement;return x&&x.contains(_)};return k.onDeactivated(()=>s.value&&d()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:l,onOpen:p,onClose:v,hide:d}),(y,w)=>(k.openBlock(),k.createBlock(k.unref(hN),{ref_key:"popperRef",ref:i,role:y.role},{default:k.withCtx(()=>[k.createVNode(wN,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:k.withCtx(()=>[y.$slots.default?k.renderSlot(y.$slots,"default",{key:0}):k.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),k.createVNode(CN,{ref_key:"contentRef",ref:o,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:k.withCtx(()=>[k.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(k.openBlock(),k.createElementBlock("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(k.openBlock(),k.createElementBlock("span",{key:1},k.toDisplayString(y.content),1))]),y.showArrow?(k.openBlock(),k.createBlock(k.unref(zI),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):k.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var DN=Sr(EN,[["__file","tooltip.vue"]]);const Wx=Pa(DN),Zx=Symbol("buttonGroupContextKey"),RN=(e,t)=>{Sz({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},k.computed(()=>e.type==="text"));const r=k.inject(Zx,void 0),n=dI("button"),{form:a}=Ex(),i=om(k.computed(()=>r==null?void 0:r.size)),o=Lx(),l=k.ref(),s=k.useSlots(),f=k.computed(()=>e.type||(r==null?void 0:r.type)||""),u=k.computed(()=>{var v,m,g;return(g=(m=e.autoInsertSpace)!=null?m:(v=n.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),d=k.computed(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=k.computed(()=>{var v;const m=(v=s.default)==null?void 0:v.call(s);if(u.value&&(m==null?void 0:m.length)===1){const g=m[0];if((g==null?void 0:g.type)===k.Text){const y=g.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:o,_size:i,_type:f,_ref:l,_props:d,shouldAddSpace:h,handleClick:v=>{if(o.value||e.loading){v.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",v)}}},mm=Er({size:Sx,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Jl},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Jl,default:()=>Y_},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:rr([String,Object]),default:"button"}}),FN={click:e=>e instanceof MouseEvent};function vn(e,t){PN(e)&&(e="100%");var r=zN(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function td(e){return Math.min(1,Math.max(0,e))}function PN(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function zN(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Yx(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function rd(e){return e<=1?"".concat(Number(e)*100,"%"):e}function al(e){return e.length===1?"0"+e:String(e)}function $N(e,t,r){return{r:vn(e,255)*255,g:vn(t,255)*255,b:vn(r,255)*255}}function Xx(e,t,r){e=vn(e,255),t=vn(t,255),r=vn(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=0,l=(n+a)/2;if(n===a)o=0,i=0;else{var s=n-a;switch(o=l>.5?s/(2-n-a):s/(n+a),n){case e:i=(t-r)/s+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function IN(e,t,r){var n,a,i;if(e=vn(e,360),t=vn(t,100),r=vn(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,l=2*r-o;n=gm(l,o,e+1/3),a=gm(l,o,e),i=gm(l,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function Kx(e,t,r){e=vn(e,255),t=vn(t,255),r=vn(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,l=n-a,s=n===0?0:l/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/l+(t>16,g:(e&65280)>>8,b:e&255}}var ym={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function jN(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,l=!1;return typeof e=="string"&&(e=GN(e)),typeof e=="object"&&(ji(e.r)&&ji(e.g)&&ji(e.b)?(t=$N(e.r,e.g,e.b),o=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ji(e.h)&&ji(e.s)&&ji(e.v)?(n=rd(e.s),a=rd(e.v),t=NN(e.h,n,a),o=!0,l="hsv"):ji(e.h)&&ji(e.s)&&ji(e.l)&&(n=rd(e.s),i=rd(e.l),t=IN(e.h,n,i),o=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Yx(r),{ok:o,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var UN="[-\\+]?\\d+%?",VN="[-\\+]?\\d*\\.\\d+%?",co="(?:".concat(VN,")|(?:").concat(UN,")"),bm="[\\s|\\(]+(".concat(co,")[,|\\s]+(").concat(co,")[,|\\s]+(").concat(co,")\\s*\\)?"),_m="[\\s|\\(]+(".concat(co,")[,|\\s]+(").concat(co,")[,|\\s]+(").concat(co,")[,|\\s]+(").concat(co,")\\s*\\)?"),$a={CSS_UNIT:new RegExp(co),rgb:new RegExp("rgb"+bm),rgba:new RegExp("rgba"+_m),hsl:new RegExp("hsl"+bm),hsla:new RegExp("hsla"+_m),hsv:new RegExp("hsv"+bm),hsva:new RegExp("hsva"+_m),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function GN(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ym[e])e=ym[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=$a.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=$a.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=$a.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=$a.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=$a.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=$a.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=$a.hex8.exec(e),r?{r:ea(r[1]),g:ea(r[2]),b:ea(r[3]),a:Qx(r[4]),format:t?"name":"hex8"}:(r=$a.hex6.exec(e),r?{r:ea(r[1]),g:ea(r[2]),b:ea(r[3]),format:t?"name":"hex"}:(r=$a.hex4.exec(e),r?{r:ea(r[1]+r[1]),g:ea(r[2]+r[2]),b:ea(r[3]+r[3]),a:Qx(r[4]+r[4]),format:t?"name":"hex8"}:(r=$a.hex3.exec(e),r?{r:ea(r[1]+r[1]),g:ea(r[2]+r[2]),b:ea(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function ji(e){return!!$a.CSS_UNIT.exec(String(e))}var qN=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=HN(t)),this.originalInput=t;var a=jN(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,o=t.g/255,l=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Yx(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Kx(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Kx(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Xx(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Xx(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Jx(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),ON(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(vn(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(vn(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Jx(this.r,this.g,this.b,!1),r=0,n=Object.entries(ym);r=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=td(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=td(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=td(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=td(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],l=1/t;t--;)o.push(new e({h:n,s:a,v:i})),i=(i+l)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,o=1;o{let n={},a=e.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const o=new qN(a),l=e.dark?o.tint(20).toString():ho(o,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?ho(o,90):o.tint(90).toString(),"text-color":a,"border-color":e.dark?ho(o,50):o.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":l,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?ho(o,90):o.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?ho(o,50):o.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?ho(o,80):o.tint(80).toString());else{const s=e.dark?ho(o,30):o.tint(30).toString(),f=o.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":a,"text-color":f,"border-color":a,"hover-bg-color":s,"hover-text-color":f,"hover-border-color":s,"active-bg-color":l,"active-border-color":l}),t.value){const u=e.dark?ho(o,50):o.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=u,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=u}}}return n})}const ZN=k.defineComponent({name:"ElButton"}),YN=k.defineComponent({...ZN,props:mm,emits:FN,setup(e,{expose:t,emit:r}){const n=e,a=WN(n),i=Hr("button"),{_ref:o,_size:l,_type:s,_disabled:f,_props:u,shouldAddSpace:d,handleClick:h}=RN(n,r),p=k.computed(()=>[i.b(),i.m(s.value),i.m(l.value),i.is("disabled",f.value),i.is("loading",n.loading),i.is("plain",n.plain),i.is("round",n.round),i.is("circle",n.circle),i.is("text",n.text),i.is("link",n.link),i.is("has-bg",n.bg)]);return t({ref:o,size:l,type:s,disabled:f,shouldAddSpace:d}),(v,m)=>(k.openBlock(),k.createBlock(k.resolveDynamicComponent(v.tag),k.mergeProps({ref_key:"_ref",ref:o},k.unref(u),{class:k.unref(p),style:k.unref(a),onClick:k.unref(h)}),{default:k.withCtx(()=>[v.loading?(k.openBlock(),k.createElementBlock(k.Fragment,{key:0},[v.$slots.loading?k.renderSlot(v.$slots,"loading",{key:0}):(k.openBlock(),k.createBlock(k.unref(is),{key:1,class:k.normalizeClass(k.unref(i).is("loading"))},{default:k.withCtx(()=>[(k.openBlock(),k.createBlock(k.resolveDynamicComponent(v.loadingIcon)))]),_:1},8,["class"]))],64)):v.icon||v.$slots.icon?(k.openBlock(),k.createBlock(k.unref(is),{key:1},{default:k.withCtx(()=>[v.icon?(k.openBlock(),k.createBlock(k.resolveDynamicComponent(v.icon),{key:0})):k.renderSlot(v.$slots,"icon",{key:1})]),_:3})):k.createCommentVNode("v-if",!0),v.$slots.default?(k.openBlock(),k.createElementBlock("span",{key:2,class:k.normalizeClass({[k.unref(i).em("text","expand")]:k.unref(d)})},[k.renderSlot(v.$slots,"default")],2)):k.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var XN=Sr(YN,[["__file","button.vue"]]);const KN={size:mm.size,type:mm.type},JN=k.defineComponent({name:"ElButtonGroup"}),QN=k.defineComponent({...JN,props:KN,setup(e){const t=e;k.provide(Zx,k.reactive({size:k.toRef(t,"size"),type:k.toRef(t,"type")}));const r=Hr("button");return(n,a)=>(k.openBlock(),k.createElementBlock("div",{class:k.normalizeClass(k.unref(r).b("group"))},[k.renderSlot(n.$slots,"default")],2))}});var ew=Sr(QN,[["__file","button-group.vue"]]);const jf=Pa(XN,{ButtonGroup:ew});Hc(ew);var il=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}const vo=new Map;if(En){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const r of vo.values())for(const{documentHandler:n}of r)n(t,e);e=void 0}})}function tw(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:tl(t.arg)&&r.push(t.arg),function(n,a){const i=t.instance.popperRef,o=n.target,l=a==null?void 0:a.target,s=!t||!t.instance,f=!o||!l,u=e.contains(o)||e.contains(l),d=e===o,h=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(l),p=i&&(i.contains(o)||i.contains(l));s||f||u||d||h||p||t.value(n,a)}}const e7={beforeMount(e,t){vo.has(e)||vo.set(e,[]),vo.get(e).push({documentHandler:tw(e,t),bindingFn:t.value})},updated(e,t){vo.has(e)||vo.set(e,[]);const r=vo.get(e),n=r.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:tw(e,t),bindingFn:t.value};n>=0?r.splice(n,1,a):r.push(a)},unmounted(e){vo.delete(e)}},xm=Er({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:K_},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),t7={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},r7=k.defineComponent({name:"ElTag"}),n7=k.defineComponent({...r7,props:xm,emits:t7,setup(e,{emit:t}){const r=e,n=om(),a=Hr("tag"),i=k.computed(()=>{const{type:f,hit:u,effect:d,closable:h,round:p}=r;return[a.b(),a.is("closable",h),a.m(f||"primary"),a.m(n.value),a.m(d),a.is("hit",u),a.is("round",p)]}),o=f=>{t("close",f)},l=f=>{t("click",f)},s=f=>{f.component.subTree.component.bum=null};return(f,u)=>f.disableTransitions?(k.openBlock(),k.createElementBlock("span",{key:0,class:k.normalizeClass(k.unref(i)),style:k.normalizeStyle({backgroundColor:f.color}),onClick:l},[k.createElementVNode("span",{class:k.normalizeClass(k.unref(a).e("content"))},[k.renderSlot(f.$slots,"default")],2),f.closable?(k.openBlock(),k.createBlock(k.unref(is),{key:0,class:k.normalizeClass(k.unref(a).e("close")),onClick:k.withModifiers(o,["stop"])},{default:k.withCtx(()=>[k.createVNode(k.unref(Z_))]),_:1},8,["class","onClick"])):k.createCommentVNode("v-if",!0)],6)):(k.openBlock(),k.createBlock(k.Transition,{key:1,name:`${k.unref(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:s},{default:k.withCtx(()=>[k.createElementVNode("span",{class:k.normalizeClass(k.unref(i)),style:k.normalizeStyle({backgroundColor:f.color}),onClick:l},[k.createElementVNode("span",{class:k.normalizeClass(k.unref(a).e("content"))},[k.renderSlot(f.$slots,"default")],2),f.closable?(k.openBlock(),k.createBlock(k.unref(is),{key:0,class:k.normalizeClass(k.unref(a).e("close")),onClick:k.withModifiers(o,["stop"])},{default:k.withCtx(()=>[k.createVNode(k.unref(Z_))]),_:1},8,["class","onClick"])):k.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var a7=Sr(n7,[["__file","tag.vue"]]);const i7=Pa(a7),rw=e=>oa(e)||Yl(e)||ii(e),o7=Er({accordion:Boolean,modelValue:{type:rr([Array,String,Number]),default:()=>Mz([])}}),l7={[so]:rw,[jc]:rw},nw=Symbol("collapseContextKey"),s7=(e,t)=>{const r=k.ref(fi(e.modelValue)),n=i=>{r.value=i;const o=e.accordion?r.value[0]:r.value;t(so,o),t(jc,o)},a=i=>{if(e.accordion)n([r.value[0]===i?"":i]);else{const o=[...r.value],l=o.indexOf(i);l>-1?o.splice(l,1):o.push(i),n(o)}};return k.watch(()=>e.modelValue,()=>r.value=fi(e.modelValue),{deep:!0}),k.provide(nw,{activeNames:r,handleItemClick:a}),{activeNames:r,setActiveNames:n}},f7=()=>{const e=Hr("collapse");return{rootKls:k.computed(()=>e.b())}},u7=k.defineComponent({name:"ElCollapse"}),c7=k.defineComponent({...u7,props:o7,emits:l7,setup(e,{expose:t,emit:r}){const n=e,{activeNames:a,setActiveNames:i}=s7(n,r),{rootKls:o}=f7();return t({activeNames:a,setActiveNames:i}),(l,s)=>(k.openBlock(),k.createElementBlock("div",{class:k.normalizeClass(k.unref(o))},[k.renderSlot(l.$slots,"default")],2))}});var d7=Sr(c7,[["__file","collapse.vue"]]);const h7=k.defineComponent({name:"ElCollapseTransition"}),v7=k.defineComponent({...h7,setup(e){const t=Hr("collapse-transition"),r=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},n={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){r(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){r(a)},leaveCancelled(a){r(a)}};return(a,i)=>(k.openBlock(),k.createBlock(k.Transition,k.mergeProps({name:k.unref(t).b()},k.toHandlers(n)),{default:k.withCtx(()=>[k.renderSlot(a.$slots,"default")]),_:3},16,["name"]))}});var p7=Sr(v7,[["__file","collapse-transition.vue"]]);const m7=Pa(p7),g7=Er({title:{type:String,default:""},name:{type:rr([String,Number]),default:void 0},icon:{type:Jl,default:mz},disabled:Boolean}),y7=e=>{const t=k.inject(nw),{namespace:r}=Hr("collapse"),n=k.ref(!1),a=k.ref(!1),i=am(),o=k.computed(()=>i.current++),l=k.computed(()=>{var h;return(h=e.name)!=null?h:`${r.value}-id-${i.prefix}-${k.unref(o)}`}),s=k.computed(()=>t==null?void 0:t.activeNames.value.includes(k.unref(l)));return{focusing:n,id:o,isActive:s,handleFocus:()=>{setTimeout(()=>{a.value?a.value=!1:n.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(k.unref(l)),n.value=!1,a.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(k.unref(l))}}},b7=(e,{focusing:t,isActive:r,id:n})=>{const a=Hr("collapse"),i=k.computed(()=>[a.b("item"),a.is("active",k.unref(r)),a.is("disabled",e.disabled)]),o=k.computed(()=>[a.be("item","header"),a.is("active",k.unref(r)),{focusing:k.unref(t)&&!e.disabled}]),l=k.computed(()=>[a.be("item","arrow"),a.is("active",k.unref(r))]),s=k.computed(()=>a.be("item","wrap")),f=k.computed(()=>a.be("item","content")),u=k.computed(()=>a.b(`content-${k.unref(n)}`)),d=k.computed(()=>a.b(`head-${k.unref(n)}`));return{arrowKls:l,headKls:o,rootKls:i,itemWrapperKls:s,itemContentKls:f,scopedContentId:u,scopedHeadId:d}},_7=k.defineComponent({name:"ElCollapseItem"}),x7=k.defineComponent({..._7,props:g7,setup(e,{expose:t}){const r=e,{focusing:n,id:a,isActive:i,handleFocus:o,handleHeaderClick:l,handleEnterClick:s}=y7(r),{arrowKls:f,headKls:u,rootKls:d,itemWrapperKls:h,itemContentKls:p,scopedContentId:v,scopedHeadId:m}=b7(r,{focusing:n,isActive:i,id:a});return t({isActive:i}),(g,y)=>(k.openBlock(),k.createElementBlock("div",{class:k.normalizeClass(k.unref(d))},[k.createElementVNode("button",{id:k.unref(m),class:k.normalizeClass(k.unref(u)),"aria-expanded":k.unref(i),"aria-controls":k.unref(v),"aria-describedby":k.unref(v),tabindex:g.disabled?-1:0,type:"button",onClick:k.unref(l),onKeydown:k.withKeys(k.withModifiers(k.unref(s),["stop","prevent"]),["space","enter"]),onFocus:k.unref(o),onBlur:w=>n.value=!1},[k.renderSlot(g.$slots,"title",{},()=>[k.createTextVNode(k.toDisplayString(g.title),1)]),k.renderSlot(g.$slots,"icon",{isActive:k.unref(i)},()=>[k.createVNode(k.unref(is),{class:k.normalizeClass(k.unref(f))},{default:k.withCtx(()=>[(k.openBlock(),k.createBlock(k.resolveDynamicComponent(g.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),k.createVNode(k.unref(m7),null,{default:k.withCtx(()=>[k.withDirectives(k.createElementVNode("div",{id:k.unref(v),role:"region",class:k.normalizeClass(k.unref(h)),"aria-hidden":!k.unref(i),"aria-labelledby":k.unref(m)},[k.createElementVNode("div",{class:k.normalizeClass(k.unref(p))},[k.renderSlot(g.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[k.vShow,k.unref(i)]])]),_:3})],2))}});var aw=Sr(x7,[["__file","collapse-item.vue"]]);const iw=Pa(d7,{CollapseItem:aw}),ow=Hc(aw),w7=k.defineComponent({inheritAttrs:!1});function T7(e,t,r,n,a,i){return k.renderSlot(e.$slots,"default")}var k7=Sr(w7,[["render",T7],["__file","collection.vue"]]);const A7=k.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function M7(e,t,r,n,a,i){return k.renderSlot(e.$slots,"default")}var S7=Sr(A7,[["render",M7],["__file","collection-item.vue"]]);const C7="data-el-collection-item",L7=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),a=Symbol(r),i={...k7,name:t,setup(){const l=k.ref(null),s=new Map,f=()=>{const u=k.unref(l);if(!u)return[];const d=Array.from(u.querySelectorAll(`[${C7}]`));return[...s.values()].sort((p,v)=>d.indexOf(p.ref)-d.indexOf(v.ref))};k.provide(n,{itemMap:s,getItems:f,collectionRef:l})}},o={...S7,name:r,setup(l,{attrs:s}){const f=k.ref(null),u=k.inject(n,void 0);k.provide(a,{collectionItemRef:f}),k.onMounted(()=>{const d=k.unref(f);d&&u.itemMap.set(d,{ref:d,...s})}),k.onBeforeUnmount(()=>{const d=k.unref(f);u.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},wm=Er({trigger:Hf.trigger,effect:{...Qn.effect,default:"light"},type:{type:rr(String)},placement:{type:rr(String),default:"bottom"},popperOptions:{type:rr(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:rr([Number,String]),default:0},maxHeight:{type:rr([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:rr(Object)},teleported:Qn.teleported});Er({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Jl}}),Er({onKeydown:{type:rr(Function)}}),L7("Dropdown");const lw=Symbol("ElSelectGroup"),ad=Symbol("ElSelect");function E7(e,t){const r=k.inject(ad),n=k.inject(lw,{disabled:!1}),a=k.computed(()=>u(fi(r.props.modelValue),e.value)),i=k.computed(()=>{var p;if(r.props.multiple){const v=fi((p=r.props.modelValue)!=null?p:[]);return!a.value&&v.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),o=k.computed(()=>e.label||(oi(e.value)?"":e.value)),l=k.computed(()=>e.value||e.label||""),s=k.computed(()=>e.disabled||t.groupDisabled||i.value),f=k.getCurrentInstance(),u=(p=[],v)=>{if(oi(e.value)){const m=r.props.valueKey;return p&&p.some(g=>k.toRaw(Oi(g,m))===Oi(v,m))}else return p&&p.includes(v)},d=()=>{!e.disabled&&!n.disabled&&(r.states.hoveringIndex=r.optionsArray.indexOf(f.proxy))},h=p=>{const v=new RegExp(fz(p),"i");t.visible=v.test(o.value)||e.created};return k.watch(()=>o.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),k.watch(()=>e.value,(p,v)=>{const{remote:m,valueKey:g}=r.props;if(p!==v&&(r.onOptionDestroy(v,f.proxy),r.onOptionCreate(f.proxy)),!e.created&&!m){if(g&&oi(p)&&oi(v)&&p[g]===v[g])return;r.setSelected()}}),k.watch(()=>n.disabled,()=>{t.groupDisabled=n.disabled},{immediate:!0}),{select:r,currentLabel:o,currentValue:l,itemSelected:a,isDisabled:s,hoverItem:d,updateOption:h}}const D7=k.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Hr("select"),r=Zc(),n=k.computed(()=>[t.be("dropdown","item"),t.is("disabled",k.unref(l)),t.is("selected",k.unref(o)),t.is("hovering",k.unref(h))]),a=k.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:l,select:s,hoverItem:f,updateOption:u}=E7(e,a),{visible:d,hover:h}=k.toRefs(a),p=k.getCurrentInstance().proxy;s.onOptionCreate(p),k.onBeforeUnmount(()=>{const m=p.value,{selected:g}=s.states,w=(s.props.multiple?g:[g]).some(A=>A.value===p.value);k.nextTick(()=>{s.states.cachedOptions.get(m)===p&&!w&&s.states.cachedOptions.delete(m)}),s.onOptionDestroy(m,p)});function v(){l.value||s.handleOptionSelect(p)}return{ns:t,id:r,containerKls:n,currentLabel:i,itemSelected:o,isDisabled:l,select:s,hoverItem:f,updateOption:u,visible:d,hover:h,selectOptionClick:v,states:a}}});function R7(e,t,r,n,a,i){return k.withDirectives((k.openBlock(),k.createElementBlock("li",{id:e.id,class:k.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:k.withModifiers(e.selectOptionClick,["stop"])},[k.renderSlot(e.$slots,"default",{},()=>[k.createElementVNode("span",null,k.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[k.vShow,e.visible]])}var Tm=Sr(D7,[["render",R7],["__file","option.vue"]]);const F7=k.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=k.inject(ad),t=Hr("select"),r=k.computed(()=>e.props.popperClass),n=k.computed(()=>e.props.multiple),a=k.computed(()=>e.props.fitInputWidth),i=k.ref("");function o(){var l;i.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return k.onMounted(()=>{o(),io(e.selectRef,o)}),{ns:t,minWidth:i,popperClass:r,isMultiple:n,isFitInputWidth:a}}});function P7(e,t,r,n,a,i){return k.openBlock(),k.createElementBlock("div",{class:k.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:k.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(k.openBlock(),k.createElementBlock("div",{key:0,class:k.normalizeClass(e.ns.be("dropdown","header"))},[k.renderSlot(e.$slots,"header")],2)):k.createCommentVNode("v-if",!0),k.renderSlot(e.$slots,"default"),e.$slots.footer?(k.openBlock(),k.createElementBlock("div",{key:1,class:k.normalizeClass(e.ns.be("dropdown","footer"))},[k.renderSlot(e.$slots,"footer")],2)):k.createCommentVNode("v-if",!0)],6)}var z7=Sr(F7,[["render",P7],["__file","select-dropdown.vue"]]);const $7=11,I7=(e,t)=>{const{t:r}=Fz(),n=Zc(),a=Hr("select"),i=Hr("input"),o=k.reactive({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=k.ref(null),s=k.ref(null),f=k.ref(null),u=k.ref(null),d=k.ref(null),h=k.ref(null),p=k.ref(null),v=k.ref(null),m=k.ref(null),g=k.ref(null),y=k.ref(null),w=k.ref(null),{isComposing:A,handleCompositionStart:x,handleCompositionUpdate:_,handleCompositionEnd:T}=nI({afterComposition:le=>it(le)}),{wrapperRef:C,isFocused:S}=rI(d,{beforeFocus(){return q.value},afterFocus(){e.automaticDropdown&&!E.value&&(E.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(le){var Le,He;return((Le=f.value)==null?void 0:Le.isFocusInsideContent(le))||((He=u.value)==null?void 0:He.isFocusInsideContent(le))},afterBlur(){E.value=!1,o.menuVisibleOnFocus=!1}}),E=k.ref(!1),F=k.ref(),{form:$,formItem:N}=Ex(),{inputId:B}=gI(e,{formItemContext:N}),{valueOnClear:G,isEmptyValue:J}=fI(e),q=k.computed(()=>e.disabled||($==null?void 0:$.disabled)),I=k.computed(()=>ii(e.modelValue)?e.modelValue.length>0:!J(e.modelValue)),z=k.computed(()=>e.clearable&&!q.value&&o.inputHovering&&I.value),P=k.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),H=k.computed(()=>a.is("reverse",P.value&&E.value)),j=k.computed(()=>(N==null?void 0:N.validateState)||""),Z=k.computed(()=>Tz[j.value]),te=k.computed(()=>e.remote?300:0),ne=k.computed(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&!o.inputValue&&o.options.size===0?!1:e.filterable&&o.inputValue&&o.options.size>0&&ie.value===0?e.noMatchText||r("el.select.noMatch"):o.options.size===0?e.noDataText||r("el.select.noData"):null),ie=k.computed(()=>ee.value.filter(le=>le.visible).length),ee=k.computed(()=>{const le=Array.from(o.options.values()),Le=[];return o.optionValues.forEach(He=>{const Xe=le.findIndex(Lt=>Lt.value===He);Xe>-1&&Le.push(le[Xe])}),Le.length>=le.length?Le:le}),ue=k.computed(()=>Array.from(o.cachedOptions.values())),U=k.computed(()=>{const le=ee.value.filter(Le=>!Le.created).some(Le=>Le.currentLabel===o.inputValue);return e.filterable&&e.allowCreate&&o.inputValue!==""&&!le}),V=()=>{e.filterable&&$n(e.filterMethod)||e.filterable&&e.remote&&$n(e.remoteMethod)||ee.value.forEach(le=>{var Le;(Le=le.updateOption)==null||Le.call(le,o.inputValue)})},Y=om(),se=k.computed(()=>["small"].includes(Y.value)?"small":"default"),Q=k.computed({get(){return E.value&&ne.value!==!1},set(le){E.value=le}}),me=k.computed(()=>{if(e.multiple&&!Rf(e.modelValue))return fi(e.modelValue).length===0&&!o.inputValue;const le=ii(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Rf(le)?!o.inputValue:!0}),ye=k.computed(()=>{var le;const Le=(le=e.placeholder)!=null?le:r("el.select.placeholder");return e.multiple||!I.value?Le:o.selectedLabel}),pe=k.computed(()=>wp?null:"mouseenter");k.watch(()=>e.modelValue,(le,Le)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(o.inputValue="",ge("")),$e(),!Up(le,Le)&&e.validateEvent&&(N==null||N.validate("change").catch(He=>ui(He)))},{flush:"post",deep:!0}),k.watch(()=>E.value,le=>{le?ge(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0),t("visible-change",le)}),k.watch(()=>o.options.entries(),()=>{var le;if(!En)return;const Le=((le=l.value)==null?void 0:le.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Rf(e.modelValue)||!Array.from(Le).includes(document.activeElement))&&$e(),e.defaultFirstOption&&(e.filterable||e.remote)&&ie.value&&Ee()},{flush:"post"}),k.watch(()=>o.hoveringIndex,le=>{oa(le)&&le>-1?F.value=ee.value[le]||{}:F.value={},ee.value.forEach(Le=>{Le.hover=F.value===Le})}),k.watchEffect(()=>{o.isBeforeHide||V()});const ge=le=>{o.previousQuery===le||A.value||(o.previousQuery=le,e.filterable&&$n(e.filterMethod)?e.filterMethod(le):e.filterable&&e.remote&&$n(e.remoteMethod)&&e.remoteMethod(le),e.defaultFirstOption&&(e.filterable||e.remote)&&ie.value?k.nextTick(Ee):k.nextTick(Oe))},Ee=()=>{const le=ee.value.filter(Xe=>Xe.visible&&!Xe.disabled&&!Xe.states.groupDisabled),Le=le.find(Xe=>Xe.created),He=le[0];o.hoveringIndex=et(ee.value,Le||He)},$e=()=>{if(e.multiple)o.selectedLabel="";else{const Le=ii(e.modelValue)?e.modelValue[0]:e.modelValue,He=Fe(Le);o.selectedLabel=He.currentLabel,o.selected=[He];return}const le=[];Rf(e.modelValue)||fi(e.modelValue).forEach(Le=>{le.push(Fe(Le))}),o.selected=le},Fe=le=>{let Le;const He=Ap(le).toLowerCase()==="object",Xe=Ap(le).toLowerCase()==="null",Lt=Ap(le).toLowerCase()==="undefined";for(let Tt=o.cachedOptions.size-1;Tt>=0;Tt--){const jt=ue.value[Tt];if(He?Oi(jt.value,e.valueKey)===Oi(le,e.valueKey):jt.value===le){Le={value:le,currentLabel:jt.currentLabel,get isDisabled(){return jt.isDisabled}};break}}if(Le)return Le;const Dt=He?le.label:!Xe&&!Lt?le:"";return{value:le,currentLabel:Dt}},Oe=()=>{o.hoveringIndex=ee.value.findIndex(le=>o.selected.some(Le=>K(Le)===K(le)))},Pe=()=>{o.selectionWidth=s.value.getBoundingClientRect().width},We=()=>{o.calculatorWidth=h.value.getBoundingClientRect().width},Se=()=>{o.collapseItemWidth=y.value.getBoundingClientRect().width},Ge=()=>{var le,Le;(Le=(le=f.value)==null?void 0:le.updatePopper)==null||Le.call(le)},qe=()=>{var le,Le;(Le=(le=u.value)==null?void 0:le.updatePopper)==null||Le.call(le)},Qe=()=>{o.inputValue.length>0&&!E.value&&(E.value=!0),ge(o.inputValue)},it=le=>{if(o.inputValue=le.target.value,e.remote)dt();else return Qe()},dt=tz(()=>{Qe()},te.value),ht=le=>{Up(e.modelValue,le)||t(jc,le)},rt=le=>rz(le,Le=>!o.disabledOptions.has(Le)),ft=le=>{if(e.multiple&&le.code!==Ff.delete&&le.target.value.length<=0){const Le=fi(e.modelValue).slice(),He=rt(Le);if(He<0)return;const Xe=Le[He];Le.splice(He,1),t(so,Le),ht(Le),t("remove-tag",Xe)}},ze=(le,Le)=>{const He=o.selected.indexOf(Le);if(He>-1&&!q.value){const Xe=fi(e.modelValue).slice();Xe.splice(He,1),t(so,Xe),ht(Xe),t("remove-tag",Le.value)}le.stopPropagation(),Be()},Ie=le=>{le.stopPropagation();const Le=e.multiple?[]:G.value;if(e.multiple)for(const He of o.selected)He.isDisabled&&Le.push(He.value);t(so,Le),ht(Le),o.hoveringIndex=-1,E.value=!1,t("clear"),Be()},Ne=le=>{var Le;if(e.multiple){const He=fi((Le=e.modelValue)!=null?Le:[]).slice(),Xe=et(He,le.value);Xe>-1?He.splice(Xe,1):(e.multipleLimit<=0||He.length{Je(le)})},et=(le=[],Le)=>{if(!oi(Le))return le.indexOf(Le);const He=e.valueKey;let Xe=-1;return le.some((Lt,Dt)=>k.toRaw(Oi(Lt,He))===Oi(Le,He)?(Xe=Dt,!0):!1),Xe},Je=le=>{var Le,He,Xe,Lt,Dt;const zt=ii(le)?le[0]:le;let Tt=null;if(zt!=null&&zt.value){const jt=ee.value.filter($t=>$t.value===zt.value);jt.length>0&&(Tt=jt[0].$el)}if(f.value&&Tt){const jt=(Lt=(Xe=(He=(Le=f.value)==null?void 0:Le.popperRef)==null?void 0:He.contentRef)==null?void 0:Xe.querySelector)==null?void 0:Lt.call(Xe,`.${a.be("dropdown","wrap")}`);jt&&dz(jt,Tt)}(Dt=w.value)==null||Dt.handleScroll()},at=le=>{o.options.set(le.value,le),o.cachedOptions.set(le.value,le),le.disabled&&o.disabledOptions.set(le.value,le)},nt=(le,Le)=>{o.options.get(le)===Le&&o.options.delete(le)},wt=k.computed(()=>{var le,Le;return(Le=(le=f.value)==null?void 0:le.popperRef)==null?void 0:Le.contentRef}),mt=()=>{o.isBeforeHide=!1,k.nextTick(()=>Je(o.selected))},Be=()=>{var le;(le=d.value)==null||le.focus()},vt=()=>{var le;(le=d.value)==null||le.blur()},bt=le=>{Ie(le)},Ke=()=>{E.value=!1,S.value&&vt()},st=()=>{o.inputValue.length>0?o.inputValue="":E.value=!1},tt=()=>{q.value||(wp&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:E.value=!E.value)},ut=()=>{E.value?ee.value[o.hoveringIndex]&&Ne(ee.value[o.hoveringIndex]):tt()},K=le=>oi(le.value)?Oi(le.value,e.valueKey):le.value,fe=k.computed(()=>ee.value.filter(le=>le.visible).every(le=>le.disabled)),oe=k.computed(()=>e.multiple?e.collapseTags?o.selected.slice(0,e.maxCollapseTags):o.selected:[]),ce=k.computed(()=>e.multiple?e.collapseTags?o.selected.slice(e.maxCollapseTags):[]:[]),Ae=le=>{if(!E.value){E.value=!0;return}if(!(o.options.size===0||o.filteredOptionsCount===0||A.value)&&!fe.value){le==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):le==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const Le=ee.value[o.hoveringIndex];(Le.disabled===!0||Le.states.groupDisabled===!0||!Le.visible)&&Ae(le),k.nextTick(()=>Je(F.value))}},xe=()=>{if(!s.value)return 0;const le=window.getComputedStyle(s.value);return Number.parseFloat(le.gap||"6px")},Ve=k.computed(()=>{const le=xe();return{maxWidth:`${y.value&&e.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-le:o.selectionWidth}px`}}),je=k.computed(()=>({maxWidth:`${o.selectionWidth}px`})),Re=k.computed(()=>({width:`${Math.max(o.calculatorWidth,$7)}px`}));return io(s,Pe),io(h,We),io(m,Ge),io(C,Ge),io(g,qe),io(y,Se),k.onMounted(()=>{$e()}),{inputId:B,contentId:n,nsSelect:a,nsInput:i,states:o,isFocused:S,expanded:E,optionsArray:ee,hoverOption:F,selectSize:Y,filteredOptionsCount:ie,resetCalculatorWidth:We,updateTooltip:Ge,updateTagTooltip:qe,debouncedOnInputChange:dt,onInput:it,deletePrevTag:ft,deleteTag:ze,deleteSelected:Ie,handleOptionSelect:Ne,scrollToOption:Je,hasModelValue:I,shouldShowPlaceholder:me,currentPlaceholder:ye,mouseEnterEventName:pe,showClose:z,iconComponent:P,iconReverse:H,validateState:j,validateIcon:Z,showNewOption:U,updateOptions:V,collapseTagSize:se,setSelected:$e,selectDisabled:q,emptyText:ne,handleCompositionStart:x,handleCompositionUpdate:_,handleCompositionEnd:T,onOptionCreate:at,onOptionDestroy:nt,handleMenuEnter:mt,focus:Be,blur:vt,handleClearClick:bt,handleClickOutside:Ke,handleEsc:st,toggleMenu:tt,selectOption:ut,getValueKey:K,navigateOptions:Ae,dropdownMenuVisible:Q,showTagList:oe,collapseTagList:ce,tagStyle:Ve,collapseTagStyle:je,inputStyle:Re,popperRef:wt,inputRef:d,tooltipRef:f,tagTooltipRef:u,calculatorRef:h,prefixRef:p,suffixRef:v,selectRef:l,wrapperRef:C,selectionRef:s,scrollbarRef:w,menuRef:m,tagMenuRef:g,collapseItemRef:y}};var N7=k.defineComponent({name:"ElOptions",setup(e,{slots:t}){const r=k.inject(ad);let n=[];return()=>{var a,i;const o=(a=t.default)==null?void 0:a.call(t),l=[];function s(f){ii(f)&&f.forEach(u=>{var d,h,p,v;const m=(d=(u==null?void 0:u.type)||{})==null?void 0:d.name;m==="ElOptionGroup"?s(!Yl(u.children)&&!ii(u.children)&&$n((h=u.children)==null?void 0:h.default)?(p=u.children)==null?void 0:p.default():u.children):m==="ElOption"?l.push((v=u.props)==null?void 0:v.value):ii(u.children)&&s(u.children)})}return o.length&&s((i=o[0])==null?void 0:i.children),Up(l,n)||(n=l,r&&(r.states.optionValues=l)),o}}});const O7=Er({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Sx,effect:{type:rr(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:rr(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Qn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Jl,default:W_},fitInputWidth:Boolean,suffixIcon:{type:Jl,default:vz},tagType:{...xm.type,default:"info"},tagEffect:{...xm.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:rr(String),values:Uc,default:"bottom-start"},fallbackPlacements:{type:rr(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...sI,...Yc(["ariaLabel"])}),sw="ElSelect",B7=k.defineComponent({name:sw,componentName:sw,components:{ElSelectMenu:z7,ElOption:Tm,ElOptions:N7,ElTag:i7,ElScrollbar:LI,ElTooltip:Wx,ElIcon:is},directives:{ClickOutside:e7},props:O7,emits:[so,jc,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const r=k.computed(()=>{const{modelValue:i,multiple:o}=e,l=o?[]:void 0;return ii(i)?o?i:l:o?l:i}),n=k.reactive({...k.toRefs(e),modelValue:r}),a=I7(n,t);return k.provide(ad,k.reactive({props:n,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected})),{...a,modelValue:r}}});function H7(e,t,r,n,a,i){const o=k.resolveComponent("el-tag"),l=k.resolveComponent("el-tooltip"),s=k.resolveComponent("el-icon"),f=k.resolveComponent("el-option"),u=k.resolveComponent("el-options"),d=k.resolveComponent("el-scrollbar"),h=k.resolveComponent("el-select-menu"),p=k.resolveDirective("click-outside");return k.withDirectives((k.openBlock(),k.createElementBlock("div",{ref:"selectRef",class:k.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[k.toHandlerKey(e.mouseEnterEventName)]:v=>e.states.inputHovering=!0,onMouseleave:v=>e.states.inputHovering=!1},[k.createVNode(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,onBeforeShow:e.handleMenuEnter,onHide:v=>e.states.isBeforeHide=!1},{default:k.withCtx(()=>{var v;return[k.createElementVNode("div",{ref:"wrapperRef",class:k.normalizeClass([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:k.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(k.openBlock(),k.createElementBlock("div",{key:0,ref:"prefixRef",class:k.normalizeClass(e.nsSelect.e("prefix"))},[k.renderSlot(e.$slots,"prefix")],2)):k.createCommentVNode("v-if",!0),k.createElementVNode("div",{ref:"selectionRef",class:k.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?k.renderSlot(e.$slots,"tag",{key:0},()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(e.showTagList,m=>(k.openBlock(),k.createElementBlock("div",{key:e.getValueKey(m),class:k.normalizeClass(e.nsSelect.e("selected-item"))},[k.createVNode(o,{closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:k.normalizeStyle(e.tagStyle),onClose:g=>e.deleteTag(g,m)},{default:k.withCtx(()=>[k.createElementVNode("span",{class:k.normalizeClass(e.nsSelect.e("tags-text"))},[k.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[k.createTextVNode(k.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(k.openBlock(),k.createBlock(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:k.withCtx(()=>[k.createElementVNode("div",{ref:"collapseItemRef",class:k.normalizeClass(e.nsSelect.e("selected-item"))},[k.createVNode(o,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:k.normalizeStyle(e.collapseTagStyle)},{default:k.withCtx(()=>[k.createElementVNode("span",{class:k.normalizeClass(e.nsSelect.e("tags-text"))}," + "+k.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:k.withCtx(()=>[k.createElementVNode("div",{ref:"tagMenuRef",class:k.normalizeClass(e.nsSelect.e("selection"))},[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(e.collapseTagList,m=>(k.openBlock(),k.createElementBlock("div",{key:e.getValueKey(m),class:k.normalizeClass(e.nsSelect.e("selected-item"))},[k.createVNode(o,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:g=>e.deleteTag(g,m)},{default:k.withCtx(()=>[k.createElementVNode("span",{class:k.normalizeClass(e.nsSelect.e("tags-text"))},[k.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[k.createTextVNode(k.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):k.createCommentVNode("v-if",!0)]):k.createCommentVNode("v-if",!0),e.selectDisabled?k.createCommentVNode("v-if",!0):(k.openBlock(),k.createElementBlock("div",{key:1,class:k.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[k.withDirectives(k.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":m=>e.states.inputValue=m,type:"text",name:e.name,class:k.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:k.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[k.withKeys(k.withModifiers(m=>e.navigateOptions("next"),["stop","prevent"]),["down"]),k.withKeys(k.withModifiers(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),k.withKeys(k.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),k.withKeys(k.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),k.withKeys(k.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:k.withModifiers(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[k.vModelText,e.states.inputValue]]),e.filterable?(k.openBlock(),k.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:k.normalizeClass(e.nsSelect.e("input-calculator")),textContent:k.toDisplayString(e.states.inputValue)},null,10,["textContent"])):k.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(k.openBlock(),k.createElementBlock("div",{key:2,class:k.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?k.renderSlot(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[k.createElementVNode("span",null,k.toDisplayString(e.currentPlaceholder),1)]):(k.openBlock(),k.createElementBlock("span",{key:1},k.toDisplayString(e.currentPlaceholder),1))],2)):k.createCommentVNode("v-if",!0)],2),k.createElementVNode("div",{ref:"suffixRef",class:k.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(k.openBlock(),k.createBlock(s,{key:0,class:k.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:k.withCtx(()=>[(k.openBlock(),k.createBlock(k.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):k.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(k.openBlock(),k.createBlock(s,{key:1,class:k.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:k.withCtx(()=>[(k.openBlock(),k.createBlock(k.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):k.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(k.openBlock(),k.createBlock(s,{key:2,class:k.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:k.withCtx(()=>[(k.openBlock(),k.createBlock(k.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):k.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:k.withCtx(()=>[k.createVNode(h,{ref:"menuRef"},{default:k.withCtx(()=>[e.$slots.header?(k.openBlock(),k.createElementBlock("div",{key:0,class:k.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:k.withModifiers(()=>{},["stop"])},[k.renderSlot(e.$slots,"header")],10,["onClick"])):k.createCommentVNode("v-if",!0),k.withDirectives(k.createVNode(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:k.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:k.withCtx(()=>[e.showNewOption?(k.openBlock(),k.createBlock(f,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):k.createCommentVNode("v-if",!0),k.createVNode(u,null,{default:k.withCtx(()=>[k.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[k.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(k.openBlock(),k.createElementBlock("div",{key:1,class:k.normalizeClass(e.nsSelect.be("dropdown","loading"))},[k.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(k.openBlock(),k.createElementBlock("div",{key:2,class:k.normalizeClass(e.nsSelect.be("dropdown","empty"))},[k.renderSlot(e.$slots,"empty",{},()=>[k.createElementVNode("span",null,k.toDisplayString(e.emptyText),1)])],2)):k.createCommentVNode("v-if",!0),e.$slots.footer?(k.openBlock(),k.createElementBlock("div",{key:3,class:k.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:k.withModifiers(()=>{},["stop"])},[k.renderSlot(e.$slots,"footer")],10,["onClick"])):k.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","onBeforeShow","onHide"])],16,["onMouseleave"])),[[p,e.handleClickOutside,e.popperRef]])}var j7=Sr(B7,[["render",H7],["__file","select.vue"]]);const U7=k.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Hr("select"),r=k.ref(null),n=k.getCurrentInstance(),a=k.ref([]);k.provide(lw,k.reactive({...k.toRefs(e)}));const i=k.computed(()=>a.value.some(f=>f.visible===!0)),o=f=>{var u,d;return((u=f.type)==null?void 0:u.name)==="ElOption"&&!!((d=f.component)!=null&&d.proxy)},l=f=>{const u=fi(f),d=[];return u.forEach(h=>{var p,v;o(h)?d.push(h.component.proxy):(p=h.children)!=null&&p.length?d.push(...l(h.children)):(v=h.component)!=null&&v.subTree&&d.push(...l(h.component.subTree))}),d},s=()=>{a.value=l(n.subTree)};return k.onMounted(()=>{s()}),s8(r,s,{attributes:!0,subtree:!0,childList:!0}),{groupRef:r,visible:i,ns:t}}});function V7(e,t,r,n,a,i){return k.withDirectives((k.openBlock(),k.createElementBlock("ul",{ref:"groupRef",class:k.normalizeClass(e.ns.be("group","wrap"))},[k.createElementVNode("li",{class:k.normalizeClass(e.ns.be("group","title"))},k.toDisplayString(e.label),3),k.createElementVNode("li",null,[k.createElementVNode("ul",{class:k.normalizeClass(e.ns.b("group"))},[k.renderSlot(e.$slots,"default")],2)])],2)),[[k.vShow,e.visible]])}var fw=Sr(U7,[["render",V7],["__file","option-group.vue"]]);const ss=Pa(j7,{Option:Tm,OptionGroup:fw}),fs=Hc(Tm);Hc(fw);const G7=Er({trigger:Hf.trigger,placement:wm.placement,disabled:Hf.disabled,visible:Qn.visible,transition:Qn.transition,popperOptions:wm.popperOptions,tabindex:wm.tabindex,content:Qn.content,popperStyle:Qn.popperStyle,popperClass:Qn.popperClass,enterable:{...Qn.enterable,default:!0},effect:{...Qn.effect,default:"light"},teleported:Qn.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),q7={"update:visible":e=>Gp(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},W7="onUpdate:visible",Z7=k.defineComponent({name:"ElPopover"}),Y7=k.defineComponent({...Z7,props:G7,emits:q7,setup(e,{expose:t,emit:r}){const n=e,a=k.computed(()=>n[W7]),i=Hr("popover"),o=k.ref(),l=k.computed(()=>{var g;return(g=k.unref(o))==null?void 0:g.popperRef}),s=k.computed(()=>[{width:Oc(n.width)},n.popperStyle]),f=k.computed(()=>[i.b(),n.popperClass,{[i.m("plain")]:!!n.content}]),u=k.computed(()=>n.transition===`${i.namespace.value}-fade-in-linear`),d=()=>{var g;(g=o.value)==null||g.hide()},h=()=>{r("before-enter")},p=()=>{r("before-leave")},v=()=>{r("after-enter")},m=()=>{r("update:visible",!1),r("after-leave")};return t({popperRef:l,hide:d}),(g,y)=>(k.openBlock(),k.createBlock(k.unref(Wx),k.mergeProps({ref_key:"tooltipRef",ref:o},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":k.unref(f),"popper-style":k.unref(s),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":k.unref(u),"onUpdate:visible":k.unref(a),onBeforeShow:h,onBeforeHide:p,onShow:v,onHide:m}),{content:k.withCtx(()=>[g.title?(k.openBlock(),k.createElementBlock("div",{key:0,class:k.normalizeClass(k.unref(i).e("title")),role:"title"},k.toDisplayString(g.title),3)):k.createCommentVNode("v-if",!0),k.renderSlot(g.$slots,"default",{},()=>[k.createTextVNode(k.toDisplayString(g.content),1)])]),default:k.withCtx(()=>[g.$slots.reference?k.renderSlot(g.$slots,"reference",{key:0}):k.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var X7=Sr(Y7,[["__file","popover.vue"]]);const uw=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var K7={mounted(e,t){uw(e,t)},updated(e,t){uw(e,t)}};const J7=kz(K7,"popover"),km=Pa(X7,{directive:J7}),cw=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},Q7=["xlink:href"],e9={__name:"SvgIcon",props:{icon:{type:String,required:!0},spin:{type:Boolean,default:!1}},setup(e){return(t,r)=>(k.openBlock(),k.createElementBlock("svg",{class:k.normalizeClass(["map-icon",{"map-icon-spin":e.spin}])},[k.createElementVNode("use",{"xlink:href":`#${e.icon}`},null,8,Q7)],2))}},t9=cw(e9,[["__scopeId","data-v-e172d5ff"]]),dw=` 2horpanel ? `,hw=` 2vertpanel ? `,vw=` 3panel ? `,pw=` 4panel ? `,mw=` 2horpanel ? `,gw=` 2horpanel ? `,yw=` 4panel ? `,bw=` changeBckgd `,_w=` close no bk `,xw=` close `,ww=` closeFullScreen `,Tw=` Comment `,kw=` Connection `,Aw=` dock `,Mw=` drawLine `,Sw=` drawPoint `,Cw=` drawPolygon `,Lw=` drawTrash `,Ew=` fitWindow `,Dw=` fullScreen `,Rw='DataPortal-Icons',Fw=` magnifyingGlass `,Pw=`Created by Wahyu Prihantorofrom the Noun Project`,zw=` openMap `,$w=` Artboard Copy 6 `,Iw=` permalink `,Nw=` play `,Ow=` resetZoom `,Bw=` singlepanel ? `,Hw=` tooltips ? `,jw=` undock `,Uw=` zoomIn `,Vw=` zoomOut `,Gw=(e,t,r,n)=>{const a=["title","desc","defs","style"],i=["width","height"],o=n||[];let l=document.createElement("div");l.innerHTML=e,a.map(f=>{const u=l.querySelector(f);u&&u.remove()}),i.map(f=>{l.querySelector("svg").removeAttribute(f)}),n&&o.map(f=>{Object.values(l.querySelectorAll(`[${f}]`)).map(u=>{u.removeAttribute(f)})});const s=l.innerHTML;return l=null,s},qw=e=>[[/<\?xml[\s\S]*?>/gi,""],[//gi,""],[//gi,""],[/\<([A-Za-z]+)([^\>]*)\/\>/g,"<$1$2>"],[/\s+/g," "],[/\> \<"]].reduce((t,r)=>"".replace.apply(t,r),e).trim(),r9=!0,n9=!0,a9=["fill"],Am=Object.assign({"/assets/icons/2horpanel.svg":dw,"/assets/icons/2vertpanel.svg":hw,"/assets/icons/3panel.svg":vw,"/assets/icons/4panel.svg":pw,"/assets/icons/5panel.svg":mw,"/assets/icons/6panel.svg":gw,"/assets/icons/6panelVertical.svg":yw,"/assets/icons/changeBckgd.svg":bw,"/assets/icons/close-no-bk.svg":_w,"/assets/icons/close.svg":xw,"/assets/icons/closeFullScreen.svg":ww,"/assets/icons/comment.svg":Tw,"/assets/icons/connection.svg":kw,"/assets/icons/dock.svg":Aw,"/assets/icons/drawLine.svg":Mw,"/assets/icons/drawPoint.svg":Sw,"/assets/icons/drawPolygon.svg":Cw,"/assets/icons/drawTrash.svg":Lw,"/assets/icons/fitWindow.svg":Ew,"/assets/icons/fullScreen.svg":Dw,"/assets/icons/help.svg":Rw,"/assets/icons/magnifyingGlass.svg":Fw,"/assets/icons/noun-filter.svg":Pw,"/assets/icons/openMap.svg":zw,"/assets/icons/pause.svg":$w,"/assets/icons/permalink.svg":Iw,"/assets/icons/play.svg":Nw,"/assets/icons/resetZoom.svg":Ow,"/assets/icons/singlepanel.svg":Bw,"/assets/icons/tooltips.svg":Hw,"/assets/icons/undock.svg":jw,"/assets/icons/zoomIn.svg":Uw,"/assets/icons/zoomOut.svg":Vw});Object.keys(Am).map(e=>{const t=Gw(Am[e],r9,n9,a9),r=e.replace(/^.+\/(\w+).svg$/,"$1");return qw(t).replace("","symbol>")}).join(` `);const Mm=Object.assign({"/assets/icons/2horpanel.svg":dw,"/assets/icons/2vertpanel.svg":hw,"/assets/icons/3panel.svg":vw,"/assets/icons/4panel.svg":pw,"/assets/icons/5panel.svg":mw,"/assets/icons/6panel.svg":gw,"/assets/icons/6panelVertical.svg":yw,"/assets/icons/changeBckgd.svg":bw,"/assets/icons/close-no-bk.svg":_w,"/assets/icons/close.svg":xw,"/assets/icons/closeFullScreen.svg":ww,"/assets/icons/comment.svg":Tw,"/assets/icons/connection.svg":kw,"/assets/icons/dock.svg":Aw,"/assets/icons/drawLine.svg":Mw,"/assets/icons/drawPoint.svg":Sw,"/assets/icons/drawPolygon.svg":Cw,"/assets/icons/drawTrash.svg":Lw,"/assets/icons/fitWindow.svg":Ew,"/assets/icons/fullScreen.svg":Dw,"/assets/icons/help.svg":Rw,"/assets/icons/magnifyingGlass.svg":Fw,"/assets/icons/noun-filter.svg":Pw,"/assets/icons/openMap.svg":zw,"/assets/icons/pause.svg":$w,"/assets/icons/permalink.svg":Iw,"/assets/icons/play.svg":Nw,"/assets/icons/resetZoom.svg":Ow,"/assets/icons/singlepanel.svg":Bw,"/assets/icons/tooltips.svg":Hw,"/assets/icons/undock.svg":jw,"/assets/icons/zoomIn.svg":Uw,"/assets/icons/zoomOut.svg":Vw}),i9=Object.keys(Mm).map(e=>{const t=Gw(Mm[e]),r=e.replace(/^.+\/(\w+).svg$/,"$1");return qw(t).replace("","symbol>")}),o9={name:"MapSvgSpriteColor",svgContext:Mm,svgSprite:i9.join(` `)},l9=["innerHTML"];function s9(e,t,r,n,a,i){return k.openBlock(),k.createElementBlock("svg",{width:"0",height:"0",style:{display:"none"},innerHTML:e.$options.svgSprite},null,8,l9)}const f9=cw(o9,[["render",s9]]),id=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},u9={name:"PlotControls",components:{MapSvgSpriteColor:f9,MapSvgIcon:t9,ElSelect:ss,ElOption:fs,ElCollapse:iw,ElCollapseItem:ow,ElButton:jf,ElPopover:km},props:{parentElement:{type:Object,required:!0},controlsEnabled:{type:Boolean,required:!0}},data:function(){return{hoverVisibilities:[{value:!1},{value:!1},{value:!1},{value:!1},{value:!1}],zoomSelect:[{value:"1",label:"100%"}],selectZoom:"100%",zoom:100,maxZoom:800,zoomInDisabled:!1,zoomOutDisabled:!0}},methods:{zoomIn:function(){this.zoom+=100,this.parentElement.element.querySelector('a[data-attr="zoom"][data-val="in"]').click(),this.setDisabledButtons(this.zoom),this.updateZoomSelect(this.zoom)},zoomOut:function(){this.zoom-=100,this.parentElement.element.querySelector('a[data-attr="zoom"][data-val="out"]').click(),this.setDisabledButtons(this.zoom),this.updateZoomSelect(this.zoom)},setDisabledButtons(e){e>=this.maxZoom?this.zoomInDisabled=!0:this.zoomInDisabled=!1,e<=0?this.zoomOutDisabled=!0:this.zoomOutDisabled=!1},resetView:function(){this.zoom=100,this.parentElement.element.querySelector('a[data-attr="zoom"][data-val="reset"]').click(),this.setDisabledButtons(this.zoom),this.updateZoomSelect(this.zoom)},percentToNum(e){return Number(e.slice(0,-1))},selectZoomChange:function(e){if(e==="100%"){this.resetView();return}let t=this.percentToNum(e),r=Math.round((t-this.zoom)/100);for(let n=0;n0?this.zoomIn():this.zoomOut();this.updateZoomSelect(t)},updateZoomSelect(e){this.selectZoom=String(e)+"%"},createZoomPercentages:function(){this.zoomSelect=[];for(let e=0;e<=this.maxZoom/100;e++)this.zoomSelect.push({value:e,label:(e+1)*100+"%"})},setHelpMode:function(e){e?(this.inHelp=!0,this.hoverVisibilities.forEach(t=>{t.value=!0})):(this.inHelp=!1,this.hoverVisibilities.forEach(t=>{t.value=!1}))},showToolitip:function(e){this.inHelp||(this.hoverVisibilities[e].value=!0,this.tooltipWait=setTimeout(()=>{this.hoverVisibilities[e].value=!0},1e3))},hideToolitip:function(e){this.inHelp||(this.hoverVisibilities[e].value=!1,clearInterval(this.tooltipWait))},handleWheel:function(e){let t=Math.round(e.deltaY/7);this.zoom=this.zoom-t,this.updateZoomSelect(this.zoom)}},mounted:function(){this.createZoomPercentages(),setTimeout(()=>{this.parentElement.element.addEventListener("wheel",this.handleWheel)},1e3)},beforeUnmount:function(){this.parentElement.element.removeEventListener("wheel",this.handleWheel)}},c9={class:"container"};function d9(e,t,r,n,a,i){const o=k.resolveComponent("map-svg-sprite-color"),l=k.resolveComponent("map-svg-icon"),s=km,f=fs,u=ss;return k.openBlock(),k.createElementBlock("div",c9,[k.createVNode(o),k.createElementVNode("div",{ref:"zoomControls",class:k.normalizeClass([{inactive:!r.controlsEnabled},"bottom-right-control"])},[k.createVNode(s,{modelValue:e.hoverVisibilities[0].value,"onUpdate:modelValue":t[3]||(t[3]=d=>e.hoverVisibilities[0].value=d),content:"Zoom in",placement:"left",teleported:!1,trigger:"manual","popper-class":"plot-popper"},{reference:k.withCtx(()=>[k.createVNode(l,{icon:"zoomIn",class:"icon-button zoomIn",onClick:t[0]||(t[0]=d=>i.zoomIn()),onMouseover:t[1]||(t[1]=d=>i.showToolitip(0)),onMouseout:t[2]||(t[2]=d=>i.hideToolitip(0))})]),_:1},8,["modelValue"]),k.createVNode(s,{modelValue:e.hoverVisibilities[1].value,"onUpdate:modelValue":t[7]||(t[7]=d=>e.hoverVisibilities[1].value=d),content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual","popper-class":"plot-popper popper-zoomout"},{reference:k.withCtx(()=>[k.createVNode(l,{icon:"zoomOut",class:"icon-button zoomOut",onClick:t[4]||(t[4]=d=>i.zoomOut()),onMouseover:t[5]||(t[5]=d=>i.showToolitip(1)),onMouseout:t[6]||(t[6]=d=>i.hideToolitip(1))})]),_:1},8,["modelValue"]),k.createVNode(u,{size:"small",modelValue:e.selectZoom,"onUpdate:modelValue":t[8]||(t[8]=d=>e.selectZoom=d),placeholder:"100%",class:"zoomSelect",onChange:i.selectZoomChange},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(e.zoomSelect,d=>(k.openBlock(),k.createBlock(f,{key:d.value,label:d.label,value:d.label},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),k.createVNode(s,{modelValue:e.hoverVisibilities[2].value,"onUpdate:modelValue":t[12]||(t[12]=d=>e.hoverVisibilities[2].value=d),content:"Reset",placement:"top",teleported:!1,trigger:"manual","popper-class":"plot-popper"},{reference:k.withCtx(()=>[k.createVNode(l,{icon:"resetZoom",class:"icon-button resetView",onClick:t[9]||(t[9]=d=>i.resetView()),onMouseover:t[10]||(t[10]=d=>i.showToolitip(2)),onMouseout:t[11]||(t[11]=d=>i.hideToolitip(2))})]),_:1},8,["modelValue"])],2)])}const Vf=id(u9,[["render",d9],["__scopeId","data-v-2ec1d0d2"]]);var Ww={},od={};od.version="2.28.0";var h9={exports:{}};/*! Native Promise Only v0.8.1 (c) Kyle Simpson MIT License: http://getify.mit-license.org */(function(e){(function(r,n,a){n[r]=n[r]||a(),e.exports&&(e.exports=n[r])})("Promise",il,function(){var r,n,a,i=Object.prototype.toString,o=typeof setImmediate<"u"?function(A){return setImmediate(A)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(A,x,_,T){return Object.defineProperty(A,x,{value:_,writable:!0,configurable:T!==!1})}}catch{r=function(x,_,T){return x[_]=T,x}}a=function(){var A,x,_;function T(C,S){this.fn=C,this.self=S,this.next=void 0}return{add:function(S,E){_=new T(S,E),x?x.next=_:A=_,x=_,_=void 0},drain:function(){var S=A;for(A=x=n=void 0;S;)S.fn.call(S.self),S=S.next}}}();function l(w,A){a.add(w,A),n||(n=o(a.drain))}function s(w){var A,x=typeof w;return w!=null&&(x=="object"||x=="function")&&(A=w.then),typeof A=="function"?A:!1}function f(){for(var w=0;w0&&l(f,x))}catch(_){h.call(new v(x),_)}}}function h(w){var A=this;A.triggered||(A.triggered=!0,A.def&&(A=A.def),A.msg=w,A.state=2,A.chain.length>0&&l(f,A))}function p(w,A,x,_){for(var T=0;Tb?1:c>=b?0:NaN}t.descending=function(c,b){return bc?1:b>=c?0:NaN},t.min=function(c,b){var M=-1,L=c.length,D,R;if(arguments.length===1){for(;++M=R){D=R;break}for(;++MR&&(D=R)}else{for(;++M=R){D=R;break}for(;++MR&&(D=R)}return D},t.max=function(c,b){var M=-1,L=c.length,D,R;if(arguments.length===1){for(;++M=R){D=R;break}for(;++MD&&(D=R)}else{for(;++M=R){D=R;break}for(;++MD&&(D=R)}return D},t.extent=function(c,b){var M=-1,L=c.length,D,R,W;if(arguments.length===1){for(;++M=R){D=W=R;break}for(;++MR&&(D=R),W=R){D=W=R;break}for(;++MR&&(D=R),W1)return W/(X-1)},t.deviation=function(){var c=t.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(b,M,L,D){for(arguments.length<3&&(L=0),arguments.length<4&&(D=b.length);L>>1;c(b[R],M)<0?L=R+1:D=R}return L},right:function(b,M,L,D){for(arguments.length<3&&(L=0),arguments.length<4&&(D=b.length);L>>1;c(b[R],M)>0?D=R:L=R+1}return L}}}var g=m(h);t.bisectLeft=g.left,t.bisect=t.bisectRight=g.right,t.bisector=function(c){return m(c.length===1?function(b,M){return h(c(b),M)}:c)},t.shuffle=function(c,b,M){(L=arguments.length)<3&&(M=c.length,L<2&&(b=0));for(var L=M-b,D,R;L;)R=Math.random()*L--|0,D=c[L+b],c[L+b]=c[R+b],c[R+b]=D;return c},t.permute=function(c,b){for(var M=b.length,L=new Array(M);M--;)L[M]=c[b[M]];return L},t.pairs=function(c){for(var b=0,M=c.length-1,L=c[0],D=new Array(M<0?0:M);b=0;)for(W=c[b],M=W.length;--M>=0;)R[--D]=W[M];return R};var w=Math.abs;t.range=function(c,b,M){if(arguments.length<3&&(M=1,arguments.length<2&&(b=c,c=0)),(b-c)/M===1/0)throw new Error("infinite range");var L=[],D=A(w(M)),R=-1,W;if(c*=D,b*=D,M*=D,M<0)for(;(W=c+M*++R)>b;)L.push(W/D);else for(;(W=c+M*++R)=b.length)return D?D.call(c,X):L?X.sort(L):X;for(var ae=-1,de=X.length,he=b[re++],ke,Me,ve,be=new _,_e;++ae=b.length)return O;var re=[],ae=M[X++];return O.forEach(function(de,he){re.push({key:de,values:W(he,X)})}),ae?re.sort(function(de,he){return ae(de.key,he.key)}):re}return c.map=function(O,X){return R(X,O,0)},c.entries=function(O){return W(R(t.map,O,0),0)},c.key=function(O){return b.push(O),c},c.sortKeys=function(O){return M[b.length-1]=O,c},c.sortValues=function(O){return L=O,c},c.rollup=function(O){return D=O,c},c},t.set=function(c){var b=new J;if(c)for(var M=0,L=c.length;M=0&&(L=c.slice(M+1),c=c.slice(0,M)),c)return arguments.length<2?this[c].on(L):this[c].on(L,b);if(arguments.length===2){if(b==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(L,null);return this}};function Z(c){var b=[],M=new _;function L(){for(var D=b,R=-1,W=D.length,O;++R=0&&(M=c.slice(0,b))!=="xmlns"&&(c=c.slice(b+1)),ge.hasOwnProperty(M)?{space:ge[M],local:c}:c}},Q.attr=function(c,b){if(arguments.length<2){if(typeof c=="string"){var M=this.node();return c=t.ns.qualify(c),c.local?M.getAttributeNS(c.space,c.local):M.getAttribute(c)}for(b in c)this.each(Ee(b,c[b]));return this}return this.each(Ee(c,b))};function Ee(c,b){c=t.ns.qualify(c);function M(){this.removeAttribute(c)}function L(){this.removeAttributeNS(c.space,c.local)}function D(){this.setAttribute(c,b)}function R(){this.setAttributeNS(c.space,c.local,b)}function W(){var X=b.apply(this,arguments);X==null?this.removeAttribute(c):this.setAttribute(c,X)}function O(){var X=b.apply(this,arguments);X==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,X)}return b==null?c.local?L:M:typeof b=="function"?c.local?O:W:c.local?R:D}function $e(c){return c.trim().replace(/\s+/g," ")}Q.classed=function(c,b){if(arguments.length<2){if(typeof c=="string"){var M=this.node(),L=(c=Oe(c)).length,D=-1;if(b=M.classList){for(;++D=0;)(R=M[L])&&(D&&D!==R.nextSibling&&D.parentNode.insertBefore(R,D),D=R);return this},Q.sort=function(c){c=ht.apply(this,arguments);for(var b=-1,M=this.length;++b=b&&(b=D+1);!(X=W[b])&&++b0&&(c=c.slice(0,D));var W=et.get(c);W&&(c=W,R=at);function O(){var ae=this[L];ae&&(this.removeEventListener(c,ae,ae.$),delete this[L])}function X(){var ae=R(b,n(arguments));O.call(this),this.addEventListener(c,this[L]=ae,ae.$=M),ae._=b}function re(){var ae=new RegExp("^__on([^.]+)"+t.requote(c)+"$"),de;for(var he in this)if(de=he.match(ae)){var ke=this[he];this.removeEventListener(de[1],ke,ke.$),delete this[he]}}return D?b?X:O:b?H:re}var et=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&et.forEach(function(c){"on"+c in a&&et.remove(c)});function Je(c,b){return function(M){var L=t.event;t.event=M,b[0]=this.__data__;try{c.apply(this,b)}finally{t.event=L}}}function at(c,b){var M=Je(c,b);return function(L){var D=this,R=L.relatedTarget;(!R||R!==D&&!(R.compareDocumentPosition(D)&8))&&M.call(D,L)}}var nt,wt=0;function mt(c){var b=".dragsuppress-"+ ++wt,M="click"+b,L=t.select(o(c)).on("touchmove"+b,te).on("dragstart"+b,te).on("selectstart"+b,te);if(nt==null&&(nt="onselectstart"in c?!1:z(c.style,"userSelect")),nt){var D=i(c).style,R=D[nt];D[nt]="none"}return function(W){if(L.on(b,null),nt&&(D[nt]=R),W){var O=function(){L.on(M,null)};L.on(M,function(){te(),O()},!0),setTimeout(O,0)}}}t.mouse=function(c){return vt(c,ne())};var Be=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function vt(c,b){b.changedTouches&&(b=b.changedTouches[0]);var M=c.ownerSVGElement||c;if(M.createSVGPoint){var L=M.createSVGPoint();if(Be<0){var D=o(c);if(D.scrollX||D.scrollY){M=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var R=M[0][0].getScreenCTM();Be=!(R.f||R.e),M.remove()}}return Be?(L.x=b.pageX,L.y=b.pageY):(L.x=b.clientX,L.y=b.clientY),L=L.matrixTransform(c.getScreenCTM().inverse()),[L.x,L.y]}var W=c.getBoundingClientRect();return[b.clientX-W.left-c.clientLeft,b.clientY-W.top-c.clientTop]}t.touch=function(c,b,M){if(arguments.length<3&&(M=b,b=ne().changedTouches),b){for(var L=0,D=b.length,R;L1?fe:c<-1?-fe:Math.asin(c)}function Ve(c){return((c=Math.exp(c))-1/c)/2}function je(c){return((c=Math.exp(c))+1/c)/2}function Re(c){return((c=Math.exp(2*c))-1)/(c+1)}var le=Math.SQRT2,Le=2,He=4;t.interpolateZoom=function(c,b){var M=c[0],L=c[1],D=c[2],R=b[0],W=b[1],O=b[2],X=R-M,re=W-L,ae=X*X+re*re,de,he;if(ae0&&(ct=ct.transition().duration(W)),ct.call(De.event)}function St(){be&&be.domain(ve.range().map(function(ct){return(ct-c.x)/c.k}).map(ve.invert)),Ce&&Ce.domain(_e.range().map(function(ct){return(ct-c.y)/c.k}).map(_e.invert))}function Ct(ct){O++||ct({type:"zoomstart"})}function Ut(ct){St(),ct({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function Et(ct){--O||(ct({type:"zoomend"}),M=null)}function Ht(){var ct=this,Vt=Me.of(ct,arguments),Zt=0,fr=t.select(o(ct)).on(re,dn).on(ae,Sn),Rr=Te(t.mouse(ct)),Kr=mt(ct);mp.call(ct),Ct(Vt);function dn(){Zt=1,_t(t.mouse(ct),Rr),Ut(Vt)}function Sn(){fr.on(re,null).on(ae,null),Kr(Zt),Et(Vt)}}function sr(){var ct=this,Vt=Me.of(ct,arguments),Zt={},fr=0,Rr,Kr=".zoom-"+t.event.changedTouches[0].identifier,dn="touchmove"+Kr,Sn="touchend"+Kr,zn=[],Cn=t.select(ct),Kn=mt(ct);Jn(),Ct(Vt),Cn.on(X,null).on(he,Jn);function bn(){var ri=t.touches(ct);return Rr=c.k,ri.forEach(function(hn){hn.identifier in Zt&&(Zt[hn.identifier]=Te(hn))}),ri}function Jn(){var ri=t.event.target;t.select(ri).on(dn,Gl).on(Sn,efe),zn.push(ri);for(var hn=t.event.changedTouches,Ea=0,Ri=hn.length;Ea1){var ql=Da[0],Yo=Da[1],bp=ql[0]-Yo[0],W6=ql[1]-Yo[1];fr=bp*bp+W6*W6}}function Gl(){var ri=t.touches(ct),hn,Ea,Ri,Da;mp.call(ct);for(var Mf=0,ql=ri.length;Mf1?1:b,M=M<0?0:M>1?1:M,D=M<=.5?M*(1+b):M+b-M*b,L=2*M-D;function R(O){return O>360?O-=360:O<0&&(O+=360),O<60?L+(D-L)*O/60:O<180?D:O<240?L+(D-L)*(240-O)/60:L}function W(O){return Math.round(R(O)*255)}return new _r(W(c+120),W(c),W(c-120))}t.hcl=xt;function xt(c,b,M){return this instanceof xt?(this.h=+c,this.c=+b,void(this.l=+M)):arguments.length<2?c instanceof xt?new xt(c.h,c.c,c.l):c instanceof Rt?Kt(c.l,c.a,c.b):Kt((c=Yr((c=t.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new xt(c,b,M)}var Gt=xt.prototype=new zt;Gt.brighter=function(c){return new xt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?c:1)))},Gt.darker=function(c){return new xt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?c:1)))},Gt.rgb=function(){return qt(this.h,this.c,this.l).rgb()};function qt(c,b,M){return isNaN(c)&&(c=0),isNaN(b)&&(b=0),new Rt(M,Math.cos(c*=oe)*b,Math.sin(c)*b)}t.lab=Rt;function Rt(c,b,M){return this instanceof Rt?(this.l=+c,this.a=+b,void(this.b=+M)):arguments.length<2?c instanceof Rt?new Rt(c.l,c.a,c.b):c instanceof xt?qt(c.h,c.c,c.l):Yr((c=_r(c)).r,c.g,c.b):new Rt(c,b,M)}var Ft=18,kt=.95047,At=1,Bt=1.08883,nr=Rt.prototype=new zt;nr.brighter=function(c){return new Rt(Math.min(100,this.l+Ft*(arguments.length?c:1)),this.a,this.b)},nr.darker=function(c){return new Rt(Math.max(0,this.l-Ft*(arguments.length?c:1)),this.a,this.b)},nr.rgb=function(){return Mt(this.l,this.a,this.b)};function Mt(c,b,M){var L=(c+16)/116,D=L+b/500,R=L-M/200;return D=Nt(D)*kt,L=Nt(L)*At,R=Nt(R)*Bt,new _r(Jt(3.2404542*D-1.5371385*L-.4985314*R),Jt(-.969266*D+1.8760108*L+.041556*R),Jt(.0556434*D-.2040259*L+1.0572252*R))}function Kt(c,b,M){return c>0?new xt(Math.atan2(M,b)*ce,Math.sqrt(b*b+M*M),c):new xt(NaN,NaN,c)}function Nt(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function kr(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Jt(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}t.rgb=_r;function _r(c,b,M){return this instanceof _r?(this.r=~~c,this.g=~~b,void(this.b=~~M)):arguments.length<2?c instanceof _r?new _r(c.r,c.g,c.b):Qa(""+c,_r,$t):new _r(c,b,M)}function Dr(c){return new _r(c>>16,c>>8&255,c&255)}function Mn(c){return Dr(c)+""}var rn=_r.prototype=new zt;rn.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var b=this.r,M=this.g,L=this.b,D=30;return!b&&!M&&!L?new _r(D,D,D):(b&&b>4,L=L>>4|L,D=X&240,D=D>>4|D,R=X&15,R=R<<4|R):c.length===7&&(L=(X&16711680)>>16,D=(X&65280)>>8,R=X&255)),b(L,D,R))}function to(c,b,M){var L=Math.min(c/=255,b/=255,M/=255),D=Math.max(c,b,M),R=D-L,W,O,X=(D+L)/2;return R?(O=X<.5?R/(D+L):R/(2-D-L),c==D?W=(b-M)/R+(b0&&X<1?0:W),new Tt(W,O,X)}function Yr(c,b,M){c=Zn(c),b=Zn(b),M=Zn(M);var L=kr((.4124564*c+.3575761*b+.1804375*M)/kt),D=kr((.2126729*c+.7151522*b+.072175*M)/At),R=kr((.0193339*c+.119192*b+.9503041*M)/Bt);return Rt(116*D-16,500*(L-D),200*(D-R))}function Zn(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function ro(c){var b=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(b*2.55):b}var Ma=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Ma.forEach(function(c,b){Ma.set(c,Dr(b))});function lr(c){return typeof c=="function"?c:function(){return c}}t.functor=lr,t.xhr=Sa(q);function Sa(c){return function(b,M,L){return arguments.length===2&&typeof M=="function"&&(L=M,M=null),ei(b,M,c,L)}}function ei(c,b,M,L){var D={},R=t.dispatch("beforesend","progress","load","error"),W={},O=new XMLHttpRequest,X=null;self.XDomainRequest&&!("withCredentials"in O)&&/^(http(s)?:)?\/\//.test(c)&&(O=new XDomainRequest),"onload"in O?O.onload=O.onerror=re:O.onreadystatechange=function(){O.readyState>3&&re()};function re(){var ae=O.status,de;if(!ae&&Ar(O)||ae>=200&&ae<300||ae===304){try{de=M.call(D,O)}catch(he){R.error.call(D,he);return}R.load.call(D,de)}else R.error.call(D,O)}return O.onprogress=function(ae){var de=t.event;t.event=ae;try{R.progress.call(D,O)}finally{t.event=de}},D.header=function(ae,de){return ae=(ae+"").toLowerCase(),arguments.length<2?W[ae]:(de==null?delete W[ae]:W[ae]=de+"",D)},D.mimeType=function(ae){return arguments.length?(b=ae==null?null:ae+"",D):b},D.responseType=function(ae){return arguments.length?(X=ae,D):X},D.response=function(ae){return M=ae,D},["get","post"].forEach(function(ae){D[ae]=function(){return D.send.apply(D,[ae].concat(n(arguments)))}}),D.send=function(ae,de,he){if(arguments.length===2&&typeof de=="function"&&(he=de,de=null),O.open(ae,c,!0),b!=null&&!("accept"in W)&&(W.accept=b+",*/*"),O.setRequestHeader)for(var ke in W)O.setRequestHeader(ke,W[ke]);return b!=null&&O.overrideMimeType&&O.overrideMimeType(b),X!=null&&(O.responseType=X),he!=null&&D.on("error",he).on("load",function(Me){he(null,Me)}),R.beforesend.call(D,O),O.send(de??null),D},D.abort=function(){return O.abort(),D},t.rebind(D,R,"on"),L==null?D:D.get(no(L))}function no(c){return c.length===1?function(b,M){c(b==null?M:null)}:c}function Ar(c){var b=c.responseType;return b&&b!=="text"?c.response:c.responseText}t.dsv=function(c,b){var M=new RegExp('["'+c+` ]`),L=c.charCodeAt(0);function D(re,ae,de){arguments.length<3&&(de=ae,ae=null);var he=ei(re,b,ae==null?R:W(ae),de);return he.row=function(ke){return arguments.length?he.response((ae=ke)==null?R:W(ke)):ae},he}function R(re){return D.parse(re.responseText)}function W(re){return function(ae){return D.parse(ae.responseText,re)}}D.parse=function(re,ae){var de;return D.parseRows(re,function(he,ke){if(de)return de(he,ke-1);var Me=function(ve){for(var be={},_e=he.length,Ce=0;Ce<_e;++Ce)be[he[Ce]]=ve[Ce];return be};de=ae?function(ve,be){return ae(Me(ve),be)}:Me})},D.parseRows=function(re,ae){var de={},he={},ke=[],Me=re.length,ve=0,be=0,_e,Ce;function De(){if(ve>=Me)return he;if(Ce)return Ce=!1,de;var Ze=ve;if(re.charCodeAt(Ze)===34){for(var pt=Ze;pt++24?(isFinite(b)&&(clearTimeout(Ei),Ei=setTimeout(bf,b)),Ca=0):(Ca=1,Xn(bf))}t.timer.flush=function(){tp(),$D()};function tp(){for(var c=Date.now(),b=Gr;b;)c>=b.t&&b.c(c-b.t)&&(b.c=null),b=b.n;return c}function $D(){for(var c,b=Gr,M=1/0;b;)b.c?(b.t=0;--O)ve.push(D[re[de[O]][2]]);for(O=+ke;O1&&Ae(c[M[L-2]],c[M[L-1]],c[D])<=0;)--L;M[L++]=D}return M.slice(0,L)}function ale(c,b){return c[0]-b[0]||c[1]-b[1]}t.geom.polygon=function(c){return ue(c,rp),c};var rp=t.geom.polygon.prototype=[];rp.area=function(){for(var c=-1,b=this.length,M,L=this[b-1],D=0;++cKe)O=O.L;else if(W=b-sle(O,M),W>Ke){if(!O.R){L=O;break}O=O.R}else{R>-Ke?(L=O.P,D=O):W>-Ke?(L=O,D=O.N):L=D=O;break}var X=HD(c);if(wf.insert(L,X),!(!L&&!D)){if(L===D){kf(L),D=HD(L.site),wf.insert(X,D),X.edge=D.edge=_c(L.site,X.site),Tf(L),Tf(D);return}if(!D){X.edge=_c(L.site,X.site);return}kf(L),kf(D);var re=L.site,ae=re.x,de=re.y,he=c.x-ae,ke=c.y-de,Me=D.site,ve=Me.x-ae,be=Me.y-de,_e=2*(he*be-ke*ve),Ce=he*he+ke*ke,De=ve*ve+be*be,Te={x:(be*Ce-ke*De)/_e+ae,y:(he*De-ve*Ce)/_e+de};np(D.edge,re,Me,Te),X.edge=_c(re,c,null,Te),D.edge=_c(c,Me,null,Te),Tf(L),Tf(D)}}function jD(c,b){var M=c.site,L=M.x,D=M.y,R=D-b;if(!R)return L;var W=c.P;if(!W)return-1/0;M=W.site;var O=M.x,X=M.y,re=X-b;if(!re)return O;var ae=O-L,de=1/R-1/re,he=ae/re;return de?(-he+Math.sqrt(he*he-2*de*(ae*ae/(-2*re)-X+re/2+D-R/2)))/de+L:(L+O)/2}function sle(c,b){var M=c.N;if(M)return jD(M,b);var L=c.site;return L.y===b?L.x:1/0}function UD(c){this.site=c,this.edges=[]}UD.prototype.prepare=function(){for(var c=this.edges,b=c.length,M;b--;)M=c[b].edge,(!M.b||!M.a)&&c.splice(b,1);return c.sort(VD),c.length};function fle(c){for(var b=c[0][0],M=c[1][0],L=c[0][1],D=c[1][1],R,W,O,X,re=jl,ae=re.length,de,he,ke,Me,ve,be;ae--;)if(de=re[ae],!(!de||!de.prepare()))for(ke=de.edges,Me=ke.length,he=0;heKe||w(X-W)>Ke)&&(ke.splice(he,0,new ap(vle(de.site,be,w(O-b)Ke?{x:b,y:w(R-b)Ke?{x:w(W-D)Ke?{x:M,y:w(R-M)Ke?{x:w(W-L)=-st)){var he=X*X+re*re,ke=ae*ae+be*be,Me=(be*he-re*ke)/de,ve=(X*ke-ae*he)/de,be=ve+O,_e=BD.pop()||new ule;_e.arc=c,_e.site=D,_e.x=Me+W,_e.y=be+Math.sqrt(Me*Me+ve*ve),_e.cy=be,c.circle=_e;for(var Ce=null,De=bc._;De;)if(_e.y0)){if(ve/=ke,ke<0){if(ve0){if(ve>he)return;ve>de&&(de=ve)}if(ve=M-O,!(!ke&&ve<0)){if(ve/=ke,ke<0){if(ve>he)return;ve>de&&(de=ve)}else if(ke>0){if(ve0)){if(ve/=Me,Me<0){if(ve0){if(ve>he)return;ve>de&&(de=ve)}if(ve=L-X,!(!Me&&ve<0)){if(ve/=Me,Me<0){if(ve>he)return;ve>de&&(de=ve)}else if(Me>0){if(ve0&&(D.a={x:O+de*ke,y:X+de*Me}),he<1&&(D.b={x:O+he*ke,y:X+he*Me}),D}}}}}}function dle(c){for(var b=xf,M=cle(c[0][0],c[0][1],c[1][0],c[1][1]),L=b.length,D;L--;)D=b[L],(!hle(D,c)||!M(D)||w(D.a.x-D.b.x)=R)return;if(ae>he){if(!L)L={x:Me,y:W};else if(L.y>=O)return;M={x:Me,y:O}}else{if(!L)L={x:Me,y:O};else if(L.y1)if(ae>he){if(!L)L={x:(W-_e)/be,y:W};else if(L.y>=O)return;M={x:(O-_e)/be,y:O}}else{if(!L)L={x:(O-_e)/be,y:O};else if(L.y=R)return;M={x:R,y:be*R+_e}}else{if(!L)L={x:R,y:be*R+_e};else if(L.x=ae&&_e.x<=he&&_e.y>=de&&_e.y<=ke?[[ae,ke],[he,ke],[he,de],[ae,de]]:[];Ce.point=X[ve]}),re}function O(X){return X.map(function(re,ae){return{x:Math.round(L(re,ae)/Ke)*Ke,y:Math.round(D(re,ae)/Ke)*Ke,i:ae}})}return W.links=function(X){return Tb(O(X)).edges.filter(function(re){return re.l&&re.r}).map(function(re){return{source:X[re.l.i],target:X[re.r.i]}})},W.triangles=function(X){var re=[];return Tb(O(X)).cells.forEach(function(ae,de){for(var he=ae.site,ke=ae.edges.sort(VD),Me=-1,ve=ke.length,be,_e=ke[ve-1].edge,Ce=_e.l===he?_e.r:_e.l;++MeDe&&(De=ae.x),ae.y>Te&&(Te=ae.y),ke.push(ae.x),Me.push(ae.y);else for(ve=0;veDe&&(De=Ze),pt>Te&&(Te=pt),ke.push(Ze),Me.push(pt)}var _t=De-_e,gt=Te-Ce;_t>gt?Te=Ce+_t:De=_e+gt;function St(Et,Ht,sr,Br,pr,ct,Vt,Zt){if(!(isNaN(sr)||isNaN(Br)))if(Et.leaf){var fr=Et.x,Rr=Et.y;if(fr!=null)if(w(fr-sr)+w(Rr-Br)<.01)Ct(Et,Ht,sr,Br,pr,ct,Vt,Zt);else{var Kr=Et.point;Et.x=Et.y=Et.point=null,Ct(Et,Kr,fr,Rr,pr,ct,Vt,Zt),Ct(Et,Ht,sr,Br,pr,ct,Vt,Zt)}else Et.x=sr,Et.y=Br,Et.point=Ht}else Ct(Et,Ht,sr,Br,pr,ct,Vt,Zt)}function Ct(Et,Ht,sr,Br,pr,ct,Vt,Zt){var fr=(pr+Vt)*.5,Rr=(ct+Zt)*.5,Kr=sr>=fr,dn=Br>=Rr,Sn=dn<<1|Kr;Et.leaf=!1,Et=Et.nodes[Sn]||(Et.nodes[Sn]=WD()),Kr?pr=fr:Vt=fr,dn?ct=Rr:Zt=Rr,St(Et,Ht,sr,Br,pr,ct,Vt,Zt)}var Ut=WD();if(Ut.add=function(Et){St(Ut,Et,+de(Et,++ve),+he(Et,ve),_e,Ce,De,Te)},Ut.visit=function(Et){Tc(Et,Ut,_e,Ce,De,Te)},Ut.find=function(Et){return ble(Ut,Et[0],Et[1],_e,Ce,De,Te)},ve=-1,b==null){for(;++veR||he>W||ke=Ze,gt=M>=pt,St=gt<<1|_t,Ct=St+4;StM&&(R=b.slice(M,R),O[W]?O[W]+=R:O[++W]=R),(L=L[0])===(D=D[0])?O[W]?O[W]+=D:O[++W]=D:(O[++W]=null,X.push({i:W,x:ao(L,D)})),M=Mb.lastIndex;return M=0&&!(L=t.interpolators[M](c,b)););return L}t.interpolators=[function(c,b){var M=typeof b;return(M==="string"?Ma.has(b.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(b)?kb:YD:b instanceof zt?kb:Array.isArray(b)?lp:M==="object"&&isNaN(b)?ZD:ao)(c,b)}],t.interpolateArray=lp;function lp(c,b){var M=[],L=[],D=c.length,R=b.length,W=Math.min(c.length,b.length),O;for(O=0;O=0?c.slice(0,b):c,L=b>=0?c.slice(b+1):"in";return M=_le.get(M)||XD,L=xle.get(L)||q,wle(L(M.apply(null,r.call(arguments,1))))};function wle(c){return function(b){return b<=0?0:b>=1?1:c(b)}}function KD(c){return function(b){return 1-c(1-b)}}function JD(c){return function(b){return .5*(b<.5?c(2*b):2-c(2-2*b))}}function Tle(c){return c*c}function kle(c){return c*c*c}function Ale(c){if(c<=0)return 0;if(c>=1)return 1;var b=c*c,M=b*c;return 4*(c<.5?M:3*(c-b)+M-.75)}function Mle(c){return function(b){return Math.pow(b,c)}}function Sle(c){return 1-Math.cos(c*fe)}function Cle(c){return Math.pow(2,10*(c-1))}function Lle(c){return 1-Math.sqrt(1-c*c)}function Ele(c,b){var M;return arguments.length<2&&(b=.45),arguments.length?M=b/ut*Math.asin(1/c):(c=1,M=b/4),function(L){return 1+c*Math.pow(2,-10*L)*Math.sin((L-M)*ut/b)}}function Dle(c){return c||(c=1.70158),function(b){return b*b*((c+1)*b-c)}}function Rle(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}t.interpolateHcl=Fle;function Fle(c,b){c=t.hcl(c),b=t.hcl(b);var M=c.h,L=c.c,D=c.l,R=b.h-M,W=b.c-L,O=b.l-D;return isNaN(W)&&(W=0,L=isNaN(L)?b.c:L),isNaN(R)?(R=0,M=isNaN(M)?b.h:M):R>180?R-=360:R<-180&&(R+=360),function(X){return qt(M+R*X,L+W*X,D+O*X)+""}}t.interpolateHsl=Ple;function Ple(c,b){c=t.hsl(c),b=t.hsl(b);var M=c.h,L=c.s,D=c.l,R=b.h-M,W=b.s-L,O=b.l-D;return isNaN(W)&&(W=0,L=isNaN(L)?b.s:L),isNaN(R)?(R=0,M=isNaN(M)?b.h:M):R>180?R-=360:R<-180&&(R+=360),function(X){return $t(M+R*X,L+W*X,D+O*X)+""}}t.interpolateLab=zle;function zle(c,b){c=t.lab(c),b=t.lab(b);var M=c.l,L=c.a,D=c.b,R=b.l-M,W=b.a-L,O=b.b-D;return function(X){return Mt(M+R*X,L+W*X,D+O*X)+""}}t.interpolateRound=QD;function QD(c,b){return b-=c,function(M){return Math.round(c+b*M)}}t.transform=function(c){var b=a.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(M){if(M!=null){b.setAttribute("transform",M);var L=b.transform.baseVal.consolidate()}return new e6(L?L.matrix:Ile)})(c)};function e6(c){var b=[c.a,c.b],M=[c.c,c.d],L=r6(b),D=t6(b,M),R=r6($le(M,b,-D))||0;b[0]*M[1]180?b+=360:b-c>180&&(c+=360),L.push({i:M.push(Af(M)+"rotate(",null,")")-2,x:ao(c,b)})):b&&M.push(Af(M)+"rotate("+b+")")}function Ble(c,b,M,L){c!==b?L.push({i:M.push(Af(M)+"skewX(",null,")")-2,x:ao(c,b)}):b&&M.push(Af(M)+"skewX("+b+")")}function Hle(c,b,M,L){if(c[0]!==b[0]||c[1]!==b[1]){var D=M.push(Af(M)+"scale(",null,",",null,")");L.push({i:D-4,x:ao(c[0],b[0])},{i:D-2,x:ao(c[1],b[1])})}else(b[0]!==1||b[1]!==1)&&M.push(Af(M)+"scale("+b+")")}function n6(c,b){var M=[],L=[];return c=t.transform(c),b=t.transform(b),Nle(c.translate,b.translate,M,L),Ole(c.rotate,b.rotate,M,L),Ble(c.skew,b.skew,M,L),Hle(c.scale,b.scale,M,L),c=b=null,function(D){for(var R=-1,W=L.length,O;++R0?R=Te:(M.c=null,M.t=NaN,M=null,b.end({type:"end",alpha:R=0})):Te>0&&(b.start({type:"start",alpha:R=Te}),M=ia(c.tick)),c):R},c.start=function(){var Te,Ze=ke.length,pt=Me.length,_t=L[0],gt=L[1],St,Ct;for(Te=0;Te=0;)R.push(ae=re[X]),ae.parent=O,ae.depth=O.depth+1;M&&(O.value=0),O.children=re}else M&&(O.value=+M.call(L,O,O.depth)||0),delete O.children;return Di(D,function(de){var he,ke;c&&(he=de.children)&&he.sort(c),M&&(ke=de.parent)&&(ke.value+=de.value)}),W}return L.sort=function(D){return arguments.length?(c=D,L):c},L.children=function(D){return arguments.length?(b=D,L):b},L.value=function(D){return arguments.length?(M=D,L):M},L.revalue=function(D){return M&&(Ac(D,function(R){R.children&&(R.value=0)}),Di(D,function(R){var W;R.children||(R.value=+M.call(L,R,R.depth)||0),(W=R.parent)&&(W.value+=R.value)})),D},L};function kc(c,b){return t.rebind(c,b,"sort","children","value"),c.nodes=c,c.links=rse,c}function Ac(c,b){for(var M=[c];(c=M.pop())!=null;)if(b(c),(D=c.children)&&(L=D.length))for(var L,D;--L>=0;)M.push(D[L])}function Di(c,b){for(var M=[c],L=[];(c=M.pop())!=null;)if(L.push(c),(W=c.children)&&(R=W.length))for(var D=-1,R,W;++DD&&(D=O),L.push(O)}for(W=0;WL&&(M=b,L=D);return M}function fse(c){return c.reduce(use,0)}function use(c,b){return c+b[1]}t.layout.histogram=function(){var c=!0,b=Number,M=dse,L=cse;function D(R,he){for(var O=[],X=R.map(b,this),re=M.call(this,X,he),ae=L.call(this,re,X,he),de,he=-1,ke=X.length,Me=ae.length-1,ve=c?1:1/ke,be;++he0)for(he=-1;++he=re[0]&&be<=re[1]&&(de=O[t.bisect(ae,be,1,Me)-1],de.y+=ve,de.push(R[he]));return O}return D.value=function(R){return arguments.length?(b=R,D):b},D.range=function(R){return arguments.length?(M=lr(R),D):M},D.bins=function(R){return arguments.length?(L=typeof R=="number"?function(W){return l6(W,R)}:lr(R),D):L},D.frequency=function(R){return arguments.length?(c=!!R,D):c},D};function cse(c,b){return l6(c,Math.ceil(Math.log(b.length)/Math.LN2+1))}function l6(c,b){for(var M=-1,L=+c[0],D=(c[1]-L)/b,R=[];++M<=b;)R[M]=D*M+L;return R}function dse(c){return[t.min(c),t.max(c)]}t.layout.pack=function(){var c=t.layout.hierarchy().sort(hse),b=0,M=[1,1],L;function D(R,W){var O=c.call(this,R,W),X=O[0],re=M[0],ae=M[1],de=L==null?Math.sqrt:typeof L=="function"?L:function(){return L};if(X.x=X.y=0,Di(X,function(ke){ke.r=+de(ke.value)}),Di(X,u6),b){var he=b*(L?1:Math.max(2*X.r/re,2*X.r/ae))/2;Di(X,function(ke){ke.r+=he}),Di(X,u6),Di(X,function(ke){ke.r-=he})}return c6(X,re/2,ae/2,L?1:1/Math.max(2*X.r/re,2*X.r/ae)),O}return D.size=function(R){return arguments.length?(M=R,D):M},D.radius=function(R){return arguments.length?(L=R==null||typeof R=="function"?R:+R,D):L},D.padding=function(R){return arguments.length?(b=+R,D):b},kc(D,c)};function hse(c,b){return c.value-b.value}function Lb(c,b){var M=c._pack_next;c._pack_next=b,b._pack_prev=c,b._pack_next=M,M._pack_prev=b}function s6(c,b){c._pack_next=b,b._pack_prev=c}function f6(c,b){var M=b.x-c.x,L=b.y-c.y,D=c.r+b.r;return .999*D*D>M*M+L*L}function u6(c){if(!(b=c.children)||!(he=b.length))return;var b,M=1/0,L=-1/0,D=1/0,R=-1/0,W,O,X,re,ae,de,he;function ke(Te){M=Math.min(Te.x-Te.r,M),L=Math.max(Te.x+Te.r,L),D=Math.min(Te.y-Te.r,D),R=Math.max(Te.y+Te.r,R)}if(b.forEach(vse),W=b[0],W.x=-W.r,W.y=0,ke(W),he>1&&(O=b[1],O.x=O.r,O.y=0,ke(O),he>2))for(X=b[2],d6(W,O,X),ke(X),Lb(W,X),W._pack_prev=X,Lb(X,O),O=W._pack_next,re=3;rebe.x&&(be=Ze),Ze.depth>_e.depth&&(_e=Ze)});var Ce=b(ve,be)/2-ve.x,De=M[0]/(be.x+b(be,ve)/2+Ce),Te=M[1]/(_e.depth||1);Ac(ke,function(Ze){Ze.x=(Ze.x+Ce)*De,Ze.y=Ze.depth*Te})}return he}function R(ae){for(var de={A:null,children:[ae]},he=[de],ke;(ke=he.pop())!=null;)for(var Me=ke.children,ve,be=0,_e=Me.length;be<_e;++be)he.push((Me[be]=ve={_:Me[be],parent:ke,children:(ve=Me[be].children)&&ve.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:be}).a=ve);return de.children[0]}function W(ae){var de=ae.children,he=ae.parent.children,ke=ae.i?he[ae.i-1]:null;if(de.length){gse(ae);var Me=(de[0].z+de[de.length-1].z)/2;ke?(ae.z=ke.z+b(ae._,ke._),ae.m=ae.z-Me):ae.z=Me}else ke&&(ae.z=ke.z+b(ae._,ke._));ae.parent.A=X(ae,ke,ae.parent.A||he[0])}function O(ae){ae._.x=ae.z+ae.parent.m,ae.m+=ae.parent.m}function X(ae,de,he){if(de){for(var ke=ae,Me=ae,ve=de,be=ke.parent.children[0],_e=ke.m,Ce=Me.m,De=ve.m,Te=be.m,Ze;ve=Db(ve),ke=Eb(ke),ve&&ke;)be=Eb(be),Me=Db(Me),Me.a=ae,Ze=ve.z+De-ke.z-_e+b(ve._,ke._),Ze>0&&(mse(yse(ve,ae,he),ae,Ze),_e+=Ze,Ce+=Ze),De+=ve.m,_e+=ke.m,Te+=be.m,Ce+=Me.m;ve&&!Db(Me)&&(Me.t=ve,Me.m+=De-Ce),ke&&!Eb(be)&&(be.t=ke,be.m+=_e-Te,he=ae)}return he}function re(ae){ae.x*=M[0],ae.y=ae.depth*M[1]}return D.separation=function(ae){return arguments.length?(b=ae,D):b},D.size=function(ae){return arguments.length?(L=(M=ae)==null?re:null,D):L?null:M},D.nodeSize=function(ae){return arguments.length?(L=(M=ae)==null?null:re,D):L?M:null},kc(D,c)};function h6(c,b){return c.parent==b.parent?1:2}function Eb(c){var b=c.children;return b.length?b[0]:c.t}function Db(c){var b=c.children,M;return(M=b.length)?b[M-1]:c.t}function mse(c,b,M){var L=M/(b.i-c.i);b.c-=L,b.s+=M,c.c+=L,b.z+=M,b.m+=M}function gse(c){for(var b=0,M=0,L=c.children,D=L.length,R;--D>=0;)R=L[D],R.z+=b,R.m+=b,b+=R.s+(M+=R.c)}function yse(c,b,M){return c.a.parent===b.parent?c.a:M}t.layout.cluster=function(){var c=t.layout.hierarchy().sort(null).value(null),b=h6,M=[1,1],L=!1;function D(R,W){var O=c.call(this,R,W),X=O[0],re,ae=0;Di(X,function(ve){var be=ve.children;be&&be.length?(ve.x=_se(be),ve.y=bse(be)):(ve.x=re?ae+=b(ve,re):0,ve.y=0,re=ve)});var de=v6(X),he=p6(X),ke=de.x-b(de,he)/2,Me=he.x+b(he,de)/2;return Di(X,L?function(ve){ve.x=(ve.x-X.x)*M[0],ve.y=(X.y-ve.y)*M[1]}:function(ve){ve.x=(ve.x-ke)/(Me-ke)*M[0],ve.y=(1-(X.y?ve.y/X.y:1))*M[1]}),O}return D.separation=function(R){return arguments.length?(b=R,D):b},D.size=function(R){return arguments.length?(L=(M=R)==null,D):L?null:M},D.nodeSize=function(R){return arguments.length?(L=(M=R)!=null,D):L?M:null},kc(D,c)};function bse(c){return 1+t.max(c,function(b){return b.y})}function _se(c){return c.reduce(function(b,M){return b+M.x},0)/c.length}function v6(c){var b=c.children;return b&&b.length?v6(b[0]):c}function p6(c){var b=c.children,M;return b&&(M=b.length)?p6(b[M-1]):c}t.layout.treemap=function(){var c=t.layout.hierarchy(),b=Math.round,M=[1,1],L=null,D=Rb,R=!1,W,O="squarify",X=.5*(1+Math.sqrt(5));function re(ve,be){for(var _e=-1,Ce=ve.length,De,Te;++_e0;)Ce.push(Te=De[gt-1]),Ce.area+=Te.area,O!=="squarify"||(pt=he(Ce,_t))<=Ze?(De.pop(),Ze=pt):(Ce.area-=Ce.pop().area,ke(Ce,_t,_e,!1),_t=Math.min(_e.dx,_e.dy),Ce.length=Ce.area=0,Ze=1/0);Ce.length&&(ke(Ce,_t,_e,!0),Ce.length=Ce.area=0),be.forEach(ae)}}function de(ve){var be=ve.children;if(be&&be.length){var _e=D(ve),Ce=be.slice(),De,Te=[];for(re(Ce,_e.dx*_e.dy/ve.value),Te.area=0;De=Ce.pop();)Te.push(De),Te.area+=De.area,De.z!=null&&(ke(Te,De.z?_e.dx:_e.dy,_e,!Ce.length),Te.length=Te.area=0);be.forEach(de)}}function he(ve,be){for(var _e=ve.area,Ce,De=0,Te=1/0,Ze=-1,pt=ve.length;++ZeDe&&(De=Ce));return _e*=_e,be*=be,_e?Math.max(be*De*X/_e,_e/(be*Te*X)):1/0}function ke(ve,be,_e,Ce){var De=-1,Te=ve.length,Ze=_e.x,pt=_e.y,_t=be?b(ve.area/be):0,gt;if(be==_e.dx){for((Ce||_t>_e.dy)&&(_t=_e.dy);++De_e.dx)&&(_t=_e.dx);++De1);return c+b*L*Math.sqrt(-2*Math.log(R)/R)}},logNormal:function(){var c=t.random.normal.apply(t,arguments);return function(){return Math.exp(c())}},bates:function(c){var b=t.random.irwinHall(c);return function(){return b()/c}},irwinHall:function(c){return function(){for(var b=0,M=0;M2?Tse:xse,re=L?Ule:jle;return D=X(c,b,re,M),R=X(b,c,re,Ul),O}function O(X){return D(X)}return O.invert=function(X){return R(X)},O.domain=function(X){return arguments.length?(c=X.map(Number),W()):c},O.range=function(X){return arguments.length?(b=X,W()):b},O.rangeRound=function(X){return O.range(X).interpolate(QD)},O.clamp=function(X){return arguments.length?(L=X,W()):L},O.interpolate=function(X){return arguments.length?(M=X,W()):M},O.ticks=function(X){return zb(c,X)},O.tickFormat=function(X,re){return d3_scale_linearTickFormat(c,X,re)},O.nice=function(X){return _6(c,X),W()},O.copy=function(){return y6(c,b,M,L)},W()}function b6(c,b){return t.rebind(c,b,"range","rangeRound","interpolate","clamp")}function _6(c,b){return Fb(c,g6(Pb(c,b)[2])),Fb(c,g6(Pb(c,b)[2])),c}function Pb(c,b){b==null&&(b=10);var M=sp(c),L=M[1]-M[0],D=Math.pow(10,Math.floor(Math.log(L/b)/Math.LN10)),R=b/L*D;return R<=.15?D*=10:R<=.35?D*=5:R<=.75&&(D*=2),M[0]=Math.ceil(M[0]/D)*D,M[1]=Math.floor(M[1]/D)*D+D*.5,M[2]=D,M}function zb(c,b){return t.range.apply(t,Pb(c,b))}t.scale.log=function(){return x6(t.scale.linear().domain([0,1]),10,!0,[1,10])};function x6(c,b,M,L){function D(O){return(M?Math.log(O<0?0:O):-Math.log(O>0?0:-O))/Math.log(b)}function R(O){return M?Math.pow(b,O):-Math.pow(b,-O)}function W(O){return c(D(O))}return W.invert=function(O){return R(c.invert(O))},W.domain=function(O){return arguments.length?(M=O[0]>=0,c.domain((L=O.map(Number)).map(D)),W):L},W.base=function(O){return arguments.length?(b=+O,c.domain(L.map(D)),W):b},W.nice=function(){var O=Fb(L.map(D),M?Math:kse);return c.domain(O),L=O.map(R),W},W.ticks=function(){var O=sp(L),X=[],re=O[0],ae=O[1],de=Math.floor(D(re)),he=Math.ceil(D(ae)),ke=b%1?2:b;if(isFinite(he-de)){if(M){for(;de0;Me--)X.push(R(de)*Me);for(de=0;X[de]ae;he--);X=X.slice(de,he)}return X},W.copy=function(){return x6(c.copy(),b,M,L)},b6(W,c)}var kse={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};t.scale.pow=function(){return w6(t.scale.linear(),1,[0,1])};function w6(c,b,M){var L=up(b),D=up(1/b);function R(W){return c(L(W))}return R.invert=function(W){return D(c.invert(W))},R.domain=function(W){return arguments.length?(c.domain((M=W.map(Number)).map(L)),R):M},R.ticks=function(W){return zb(M,W)},R.tickFormat=function(W,O){return d3_scale_linearTickFormat(M,W,O)},R.nice=function(W){return R.domain(_6(M,W))},R.exponent=function(W){return arguments.length?(L=up(b=W),D=up(1/b),c.domain(M.map(L)),R):b},R.copy=function(){return w6(c.copy(),b,M)},b6(R,c)}function up(c){return function(b){return b<0?-Math.pow(-b,c):Math.pow(b,c)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return T6([],{t:"range",a:[[]]})};function T6(c,b){var M,L,D;function R(O){return L[((M.get(O)||(b.t==="range"?M.set(O,c.push(O)):NaN))-1)%L.length]}function W(O,X){return t.range(c.length).map(function(re){return O+X*re})}return R.domain=function(O){if(!arguments.length)return c;c=[],M=new _;for(var X=-1,re=O.length,ae;++X0?M[R-1]:c[0],Rhe?0:1;if(ae=K)return X(ae,Me)+(re?X(re,1-Me):"")+"Z";var ve,be,_e,Ce,De=0,Te=0,Ze,pt,_t,gt,St,Ct,Ut,Et,Ht=[];if((Ce=(+W.apply(this,arguments)||0)/2)&&(_e=L===cp?Math.sqrt(re*re+ae*ae):+L.apply(this,arguments),Me||(Te*=-1),ae&&(Te=xe(_e/ae*Math.sin(Ce))),re&&(De=xe(_e/re*Math.sin(Ce)))),ae){Ze=ae*Math.cos(de+Te),pt=ae*Math.sin(de+Te),_t=ae*Math.cos(he-Te),gt=ae*Math.sin(he-Te);var sr=Math.abs(he-de-2*Te)<=tt?0:1;if(Te&&dp(Ze,pt,_t,gt)===Me^sr){var Br=(de+he)/2;Ze=ae*Math.cos(Br),pt=ae*Math.sin(Br),_t=gt=null}}else Ze=pt=0;if(re){St=re*Math.cos(he-De),Ct=re*Math.sin(he-De),Ut=re*Math.cos(de+De),Et=re*Math.sin(de+De);var pr=Math.abs(de-he+2*De)<=tt?0:1;if(De&&dp(St,Ct,Ut,Et)===1-Me^pr){var ct=(de+he)/2;St=re*Math.cos(ct),Ct=re*Math.sin(ct),Ut=Et=null}}else St=Ct=0;if(ke>Ke&&(ve=Math.min(Math.abs(ae-re)/2,+M.apply(this,arguments)))>.001){be=re0?0:1}function hp(c,b,M,L,D){var R=c[0]-b[0],W=c[1]-b[1],O=(D?L:-L)/Math.sqrt(R*R+W*W),X=O*W,re=-O*R,ae=c[0]+X,de=c[1]+re,he=b[0]+X,ke=b[1]+re,Me=(ae+he)/2,ve=(de+ke)/2,be=he-ae,_e=ke-de,Ce=be*be+_e*_e,De=M-L,Te=ae*ke-he*de,Ze=(_e<0?-1:1)*Math.sqrt(Math.max(0,De*De*Ce-Te*Te)),pt=(Te*_e-be*Ze)/Ce,_t=(-Te*be-_e*Ze)/Ce,gt=(Te*_e+be*Ze)/Ce,St=(-Te*be+_e*Ze)/Ce,Ct=pt-Me,Ut=_t-ve,Et=gt-Me,Ht=St-ve;return Ct*Ct+Ut*Ut>Et*Et+Ht*Ht&&(pt=gt,_t=St),[[pt-X,_t-re],[pt*M/De,_t*M/De]]}function E6(){return!0}function D6(c){var b=_f,M=yc,L=E6,D=ti,R=D.key,W=.7;function O(X){var re=[],ae=[],de=-1,he=X.length,ke,Me=lr(b),ve=lr(M);function be(){re.push("M",D(c(ae),W))}for(;++de1?c.join("L"):c+"Z"}function R6(c){return c.join("L")+"Z"}function Fse(c){for(var b=0,M=c.length,L=c[0],D=[L[0],",",L[1]];++b1&&D.push("H",L[0]),D.join("")}function Ib(c){for(var b=0,M=c.length,L=c[0],D=[L[0],",",L[1]];++b1){O=b[1],R=c[X],X++,L+="C"+(D[0]+W[0])+","+(D[1]+W[1])+","+(R[0]-O[0])+","+(R[1]-O[1])+","+R[0]+","+R[1];for(var re=2;re9&&(R=M*3/Math.sqrt(R),W[O]=R*L,W[O+1]=R*D));for(O=-1;++O<=X;)R=(c[Math.min(X,O+1)][0]-c[Math.max(0,O-1)][0])/(6*(1+W[O]*W[O])),b.push([R||0,W[O]*R||0]);return b}function jse(c){return c.length<3?ti(c):c[0]+vp(c,Hse(c))}t.svg.line.radial=function(){var c=D6($6);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function $6(c){for(var b,M=-1,L=c.length,D,R;++Mtt)+",1 "+de}function re(ae,de,he,ke){return"Q 0,0 "+ke}return R.radius=function(ae){return arguments.length?(M=lr(ae),R):M},R.source=function(ae){return arguments.length?(c=lr(ae),R):c},R.target=function(ae){return arguments.length?(b=lr(ae),R):b},R.startAngle=function(ae){return arguments.length?(L=lr(ae),R):L},R.endAngle=function(ae){return arguments.length?(D=lr(ae),R):D},R};function Use(c){return c.radius}t.svg.diagonal=function(){var c=N6,b=O6,M=B6;function L(D,R){var W=c.call(this,D,R),O=b.call(this,D,R),X=(W.y+O.y)/2,re=[W,{x:W.x,y:X},{x:O.x,y:X},O];return re=re.map(M),"M"+re[0]+"C"+re[1]+" "+re[2]+" "+re[3]}return L.source=function(D){return arguments.length?(c=lr(D),L):c},L.target=function(D){return arguments.length?(b=lr(D),L):b},L.projection=function(D){return arguments.length?(M=D,L):M},L};function B6(c){return[c.x,c.y]}t.svg.diagonal.radial=function(){var c=t.svg.diagonal(),b=B6,M=c.projection;return c.projection=function(L){return arguments.length?M(Vse(b=L)):b},c};function Vse(c){return function(){var b=c.apply(this,arguments),M=b[0],L=b[1]-fe;return[M*Math.cos(L),M*Math.sin(L)]}}t.svg.symbol=function(){var c=qse,b=Gse;function M(L,D){return(j6.get(c.call(this,L,D))||H6)(b.call(this,L,D))}return M.type=function(L){return arguments.length?(c=lr(L),M):c},M.size=function(L){return arguments.length?(b=lr(L),M):b},M};function Gse(){return 64}function qse(){return"circle"}function H6(c){var b=Math.sqrt(c/tt);return"M0,"+b+"A"+b+","+b+" 0 1,1 0,"+-b+"A"+b+","+b+" 0 1,1 0,"+b+"Z"}var j6=t.map({circle:H6,cross:function(c){var b=Math.sqrt(c/5)/2;return"M"+-3*b+","+-b+"H"+-b+"V"+-3*b+"H"+b+"V"+-b+"H"+3*b+"V"+b+"H"+b+"V"+3*b+"H"+-b+"V"+b+"H"+-3*b+"Z"},diamond:function(c){var b=Math.sqrt(c/(2*U6)),M=b*U6;return"M0,"+-b+"L"+M+",0 0,"+b+" "+-M+",0Z"},square:function(c){var b=Math.sqrt(c)/2;return"M"+-b+","+-b+"L"+b+","+-b+" "+b+","+b+" "+-b+","+b+"Z"},"triangle-down":function(c){var b=Math.sqrt(c/pp),M=b*pp/2;return"M0,"+M+"L"+b+","+-M+" "+-b+","+-M+"Z"},"triangle-up":function(c){var b=Math.sqrt(c/pp),M=b*pp/2;return"M0,"+-M+"L"+b+","+M+" "+-b+","+M+"Z"}});t.svg.symbolTypes=j6.keys();var pp=Math.sqrt(3),U6=Math.tan(30*oe);Q.transition=function(c){for(var b=Vl||++G6,M=Ub(c),L=[],D,R,W=gp||{time:Date.now(),ease:Ale,delay:0,duration:250},O=-1,X=this.length;++O0;)de[--Ce].call(c,_e);if(be>=1)return W.event&&W.event.end.call(c,c.__data__,b),--R.count?delete R[L]:delete c[M],1}W||(O=D.time,X=ia(he,0,O),W=R[L]={tween:new _,time:O,timer:X,delay:D.delay,duration:D.duration,ease:D.ease,index:b},D=null,++R.count)}t.svg.axis=function(){var c=t.scale.linear(),b=q6,M=6,L=6,D=3,R=[10],W=null,O;function X(re){re.each(function(){var ae=t.select(this),de=this.__chart__||c,he=this.__chart__=c.copy(),ke=W??(he.ticks?he.ticks.apply(he,R):he.domain()),Me=O??(he.tickFormat?he.tickFormat.apply(he,R):q),ve=ae.selectAll(".tick").data(ke,he),be=ve.enter().insert("g",".domain").attr("class","tick").style("opacity",Ke),_e=t.transition(ve.exit()).style("opacity",Ke).remove(),Ce=t.transition(ve.order()).style("opacity",1),De=Math.max(M,0)+D,Te,Ze=fp(he),pt=ae.selectAll(".domain").data([0]),_t=(pt.enter().append("path").attr("class","domain"),t.transition(pt));be.append("line"),be.append("text");var gt=be.select("line"),St=Ce.select("line"),Ct=ve.select("text").text(Me),Ut=be.select("text"),Et=Ce.select("text"),Ht=b==="top"||b==="left"?-1:1,sr,Br,pr,ct;if(b==="bottom"||b==="top"?(Te=Yse,sr="x",pr="y",Br="x2",ct="y2",Ct.attr("dy",Ht<0?"0em":".71em").style("text-anchor","middle"),_t.attr("d","M"+Ze[0]+","+Ht*L+"V0H"+Ze[1]+"V"+Ht*L)):(Te=Xse,sr="y",pr="x",Br="y2",ct="x2",Ct.attr("dy",".32em").style("text-anchor",Ht<0?"end":"start"),_t.attr("d","M"+Ht*L+","+Ze[0]+"H0V"+Ze[1]+"H"+Ht*L)),gt.attr(ct,Ht*M),Ut.attr(pr,Ht*De),St.attr(Br,0).attr(ct,Ht*M),Et.attr(sr,0).attr(pr,Ht*De),he.rangeBand){var Vt=he,Zt=Vt.rangeBand()/2;de=he=function(fr){return Vt(fr)+Zt}}else de.rangeBand?de=he:_e.call(Te,he,de);be.call(Te,de,he),Ce.call(Te,he,he)})}return X.scale=function(re){return arguments.length?(c=re,X):c},X.orient=function(re){return arguments.length?(b=re in Zse?re+"":q6,X):b},X.ticks=function(){return arguments.length?(R=n(arguments),X):R},X.tickValues=function(re){return arguments.length?(W=re,X):W},X.tickFormat=function(re){return arguments.length?(O=re,X):O},X.tickSize=function(re){var ae=arguments.length;return ae?(M=+re,L=+arguments[ae-1],X):M},X.innerTickSize=function(re){return arguments.length?(M=+re,X):M},X.outerTickSize=function(re){return arguments.length?(L=+re,X):L},X.tickPadding=function(re){return arguments.length?(D=+re,X):D},X.tickSubdivide=function(){return arguments.length&&X},X};var q6="bottom",Zse={top:1,right:1,bottom:1,left:1};function Yse(c,b,M){c.attr("transform",function(L){var D=b(L);return"translate("+(isFinite(D)?D:M(L))+",0)"})}function Xse(c,b,M){c.attr("transform",function(L){var D=b(L);return"translate(0,"+(isFinite(D)?D:M(L))+")"})}t.svg.brush=function(){var c=ie(ae,"brushstart","brush","brushend"),b=null,M=null,L=[0,0],D=[0,0],R,W,O=!0,X=!0,re=Vb[0];function ae(ve){ve.each(function(){var be=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Me).on("touchstart.brush",Me),_e=be.selectAll(".background").data([0]);_e.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),be.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ce=be.selectAll(".resize").data(re,q);Ce.exit().remove(),Ce.enter().append("g").attr("class",function(pt){return"resize "+pt}).style("cursor",function(pt){return Kse[pt]}).append("rect").attr("x",function(pt){return/[ew]$/.test(pt)?-3:null}).attr("y",function(pt){return/^[ns]/.test(pt)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ce.style("display",ae.empty()?"none":null);var De=t.transition(be),Te=t.transition(_e),Ze;b&&(Ze=fp(b),Te.attr("x",Ze[0]).attr("width",Ze[1]-Ze[0]),he(De)),M&&(Ze=fp(M),Te.attr("y",Ze[0]).attr("height",Ze[1]-Ze[0]),ke(De)),de(De)})}ae.event=function(ve){ve.each(function(){var be=c.of(this,arguments),_e={x:L,y:D,i:R,j:W},Ce=this.__chart__||_e;this.__chart__=_e,Vl?t.select(this).transition().each("start.brush",function(){R=Ce.i,W=Ce.j,L=Ce.x,D=Ce.y,be({type:"brushstart"})}).tween("brush:brush",function(){var De=lp(L,_e.x),Te=lp(D,_e.y);return R=W=null,function(Ze){L=_e.x=De(Ze),D=_e.y=Te(Ze),be({type:"brush",mode:"resize"})}}).each("end.brush",function(){R=_e.i,W=_e.j,be({type:"brush",mode:"resize"}),be({type:"brushend"})}):(be({type:"brushstart"}),be({type:"brush",mode:"resize"}),be({type:"brushend"}))})};function de(ve){ve.selectAll(".resize").attr("transform",function(be){return"translate("+L[+/e$/.test(be)]+","+D[+/^s/.test(be)]+")"})}function he(ve){ve.select(".extent").attr("x",L[0]),ve.selectAll(".extent,.n>rect,.s>rect").attr("width",L[1]-L[0])}function ke(ve){ve.select(".extent").attr("y",D[0]),ve.selectAll(".extent,.e>rect,.w>rect").attr("height",D[1]-D[0])}function Me(){var ve=this,be=t.select(t.event.target),_e=c.of(ve,arguments),Ce=t.select(ve),De=be.datum(),Te=!/^(n|s)$/.test(De)&&b,Ze=!/^(e|w)$/.test(De)&&M,pt=be.classed("extent"),_t=mt(ve),gt,St=t.mouse(ve),Ct,Ut=t.select(o(ve)).on("keydown.brush",sr).on("keyup.brush",Br);if(t.event.changedTouches?Ut.on("touchmove.brush",pr).on("touchend.brush",Vt):Ut.on("mousemove.brush",pr).on("mouseup.brush",Vt),Ce.interrupt().selectAll("*").interrupt(),pt)St[0]=L[0]-St[0],St[1]=D[0]-St[1];else if(De){var Et=+/w$/.test(De),Ht=+/^n/.test(De);Ct=[L[1-Et]-St[0],D[1-Ht]-St[1]],St[0]=L[Et],St[1]=D[Ht]}else t.event.altKey&&(gt=St.slice());Ce.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",be.style("cursor")),_e({type:"brushstart"}),pr();function sr(){t.event.keyCode==32&&(pt||(gt=null,St[0]-=L[1],St[1]-=D[1],pt=2),te())}function Br(){t.event.keyCode==32&&pt==2&&(St[0]+=L[1],St[1]+=D[1],pt=0,te())}function pr(){var Zt=t.mouse(ve),fr=!1;Ct&&(Zt[0]+=Ct[0],Zt[1]+=Ct[1]),pt||(t.event.altKey?(gt||(gt=[(L[0]+L[1])/2,(D[0]+D[1])/2]),St[0]=L[+(Zt[0]0))return s;do s.push(f=new Date(+i)),t(i,l),e(i);while(f=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,l){if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););})},r&&(a.count=function(i,o){return Sm.setTime(+i),Cm.setTime(+o),e(Sm),e(Cm),Math.floor(r(Sm,Cm))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?function(o){return n(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}var Gf=an(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Gf.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?an(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Gf};var Xw=Gf.range,ld=1e3,ol=6e4,sd=36e5,Kw=864e5,Jw=6048e5,Lm=an(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*ld)},function(e,t){return(t-e)/ld},function(e){return e.getUTCSeconds()}),Qw=Lm.range,e2=an(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ld)},function(e,t){e.setTime(+e+t*ol)},function(e,t){return(t-e)/ol},function(e){return e.getMinutes()}),v9=e2.range,t2=an(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ld-e.getMinutes()*ol)},function(e,t){e.setTime(+e+t*sd)},function(e,t){return(t-e)/sd},function(e){return e.getHours()}),p9=t2.range,fd=an(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ol)/Kw},function(e){return e.getDate()-1}),m9=fd.range;function ll(e){return an(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*ol)/Jw})}var ud=ll(0),qf=ll(1),r2=ll(2),n2=ll(3),sl=ll(4),a2=ll(5),i2=ll(6),o2=ud.range,g9=qf.range,y9=r2.range,b9=n2.range,_9=sl.range,x9=a2.range,w9=i2.range,l2=an(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()}),T9=l2.range,po=an(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});po.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:an(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};var k9=po.range,s2=an(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ol)},function(e,t){return(t-e)/ol},function(e){return e.getUTCMinutes()}),A9=s2.range,f2=an(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*sd)},function(e,t){return(t-e)/sd},function(e){return e.getUTCHours()}),M9=f2.range,cd=an(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Kw},function(e){return e.getUTCDate()-1}),S9=cd.range;function fl(e){return an(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/Jw})}var dd=fl(0),Wf=fl(1),u2=fl(2),c2=fl(3),ul=fl(4),d2=fl(5),h2=fl(6),v2=dd.range,C9=Wf.range,L9=u2.range,E9=c2.range,D9=ul.range,R9=d2.range,F9=h2.range,p2=an(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()}),P9=p2.range,mo=an(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});mo.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:an(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};var z9=mo.range;const $9=Object.freeze(Object.defineProperty({__proto__:null,timeDay:fd,timeDays:m9,timeFriday:a2,timeFridays:x9,timeHour:t2,timeHours:p9,timeInterval:an,timeMillisecond:Gf,timeMilliseconds:Xw,timeMinute:e2,timeMinutes:v9,timeMonday:qf,timeMondays:g9,timeMonth:l2,timeMonths:T9,timeSaturday:i2,timeSaturdays:w9,timeSecond:Lm,timeSeconds:Qw,timeSunday:ud,timeSundays:o2,timeThursday:sl,timeThursdays:_9,timeTuesday:r2,timeTuesdays:y9,timeWednesday:n2,timeWednesdays:b9,timeWeek:ud,timeWeeks:o2,timeYear:po,timeYears:k9,utcDay:cd,utcDays:S9,utcFriday:d2,utcFridays:R9,utcHour:f2,utcHours:M9,utcMillisecond:Gf,utcMilliseconds:Xw,utcMinute:s2,utcMinutes:A9,utcMonday:Wf,utcMondays:C9,utcMonth:p2,utcMonths:P9,utcSaturday:h2,utcSaturdays:F9,utcSecond:Lm,utcSeconds:Qw,utcSunday:dd,utcSundays:v2,utcThursday:ul,utcThursdays:D9,utcTuesday:u2,utcTuesdays:L9,utcWednesday:c2,utcWednesdays:E9,utcWeek:dd,utcWeeks:v2,utcYear:mo,utcYears:z9},Symbol.toStringTag,{value:"Module"}));function Em(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Dm(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Zf(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function m2(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,f=Yf(a),u=Xf(a),d=Yf(i),h=Xf(i),p=Yf(o),v=Xf(o),m=Yf(l),g=Xf(l),y=Yf(s),w=Xf(s),A={a:I,A:z,b:P,B:H,c:null,d:w2,e:w2,f:iO,g:pO,G:gO,H:rO,I:nO,j:aO,L:T2,m:oO,M:lO,p:j,q:Z,Q:L2,s:E2,S:sO,u:fO,U:uO,V:cO,w:dO,W:hO,x:null,X:null,y:vO,Y:mO,Z:yO,"%":C2},x={a:te,A:ne,b:ie,B:ee,c:null,d:A2,e:A2,f:wO,g:RO,G:PO,H:bO,I:_O,j:xO,L:M2,m:TO,M:kO,p:ue,q:U,Q:L2,s:E2,S:AO,u:MO,U:SO,V:CO,w:LO,W:EO,x:null,X:null,y:DO,Y:FO,Z:zO,"%":C2},_={a:F,A:$,b:N,B,c:G,d:_2,e:_2,f:J9,g:b2,G:y2,H:x2,I:x2,j:Z9,L:K9,m:W9,M:Y9,p:E,q:q9,Q:eO,s:tO,S:X9,u:H9,U:j9,V:U9,w:B9,W:V9,x:J,X:q,y:b2,Y:y2,Z:G9,"%":Q9};A.x=T(r,A),A.X=T(n,A),A.c=T(t,A),x.x=T(r,x),x.X=T(n,x),x.c=T(t,x);function T(V,Y){return function(se){var Q=[],me=-1,ye=0,pe=V.length,ge,Ee,$e;for(se instanceof Date||(se=new Date(+se));++me53)return null;"w"in Q||(Q.w=1),"Z"in Q?(ye=Dm(Zf(Q.y,0,1)),pe=ye.getUTCDay(),ye=pe>4||pe===0?Wf.ceil(ye):Wf(ye),ye=cd.offset(ye,(Q.V-1)*7),Q.y=ye.getUTCFullYear(),Q.m=ye.getUTCMonth(),Q.d=ye.getUTCDate()+(Q.w+6)%7):(ye=Em(Zf(Q.y,0,1)),pe=ye.getDay(),ye=pe>4||pe===0?qf.ceil(ye):qf(ye),ye=fd.offset(ye,(Q.V-1)*7),Q.y=ye.getFullYear(),Q.m=ye.getMonth(),Q.d=ye.getDate()+(Q.w+6)%7)}else("W"in Q||"U"in Q)&&("w"in Q||(Q.w="u"in Q?Q.u%7:"W"in Q?1:0),pe="Z"in Q?Dm(Zf(Q.y,0,1)).getUTCDay():Em(Zf(Q.y,0,1)).getDay(),Q.m=0,Q.d="W"in Q?(Q.w+6)%7+Q.W*7-(pe+5)%7:Q.w+Q.U*7-(pe+6)%7);return"Z"in Q?(Q.H+=Q.Z/100|0,Q.M+=Q.Z%100,Dm(Q)):Em(Q)}}function S(V,Y,se,Q){for(var me=0,ye=Y.length,pe=se.length,ge,Ee;me=pe)return-1;if(ge=Y.charCodeAt(me++),ge===37){if(ge=Y.charAt(me++),Ee=_[ge in g2?Y.charAt(me++):ge],!Ee||(Q=Ee(V,se,Q))<0)return-1}else if(ge!=se.charCodeAt(Q++))return-1}return Q}function E(V,Y,se){var Q=f.exec(Y.slice(se));return Q?(V.p=u[Q[0].toLowerCase()],se+Q[0].length):-1}function F(V,Y,se){var Q=p.exec(Y.slice(se));return Q?(V.w=v[Q[0].toLowerCase()],se+Q[0].length):-1}function $(V,Y,se){var Q=d.exec(Y.slice(se));return Q?(V.w=h[Q[0].toLowerCase()],se+Q[0].length):-1}function N(V,Y,se){var Q=y.exec(Y.slice(se));return Q?(V.m=w[Q[0].toLowerCase()],se+Q[0].length):-1}function B(V,Y,se){var Q=m.exec(Y.slice(se));return Q?(V.m=g[Q[0].toLowerCase()],se+Q[0].length):-1}function G(V,Y,se){return S(V,t,Y,se)}function J(V,Y,se){return S(V,r,Y,se)}function q(V,Y,se){return S(V,n,Y,se)}function I(V){return o[V.getDay()]}function z(V){return i[V.getDay()]}function P(V){return s[V.getMonth()]}function H(V){return l[V.getMonth()]}function j(V){return a[+(V.getHours()>=12)]}function Z(V){return 1+~~(V.getMonth()/3)}function te(V){return o[V.getUTCDay()]}function ne(V){return i[V.getUTCDay()]}function ie(V){return s[V.getUTCMonth()]}function ee(V){return l[V.getUTCMonth()]}function ue(V){return a[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var Y=T(V+="",A);return Y.toString=function(){return V},Y},parse:function(V){var Y=C(V+="",!1);return Y.toString=function(){return V},Y},utcFormat:function(V){var Y=T(V+="",x);return Y.toString=function(){return V},Y},utcParse:function(V){var Y=C(V+="",!0);return Y.toString=function(){return V},Y}}}var g2={"-":"",_:" ",0:"0"},un=/^\s*\d+/,I9=/^%/,N9=/[\\^$*+?|[\]().{}]/g;function gr(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i68?1900:2e3),r+n[0].length):-1}function G9(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function q9(e,t,r){var n=un.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function W9(e,t,r){var n=un.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function _2(e,t,r){var n=un.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Z9(e,t,r){var n=un.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function x2(e,t,r){var n=un.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Y9(e,t,r){var n=un.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function X9(e,t,r){var n=un.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function K9(e,t,r){var n=un.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function J9(e,t,r){var n=un.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Q9(e,t,r){var n=I9.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function eO(e,t,r){var n=un.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function tO(e,t,r){var n=un.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function w2(e,t){return gr(e.getDate(),t,2)}function rO(e,t){return gr(e.getHours(),t,2)}function nO(e,t){return gr(e.getHours()%12||12,t,2)}function aO(e,t){return gr(1+fd.count(po(e),e),t,3)}function T2(e,t){return gr(e.getMilliseconds(),t,3)}function iO(e,t){return T2(e,t)+"000"}function oO(e,t){return gr(e.getMonth()+1,t,2)}function lO(e,t){return gr(e.getMinutes(),t,2)}function sO(e,t){return gr(e.getSeconds(),t,2)}function fO(e){var t=e.getDay();return t===0?7:t}function uO(e,t){return gr(ud.count(po(e)-1,e),t,2)}function k2(e){var t=e.getDay();return t>=4||t===0?sl(e):sl.ceil(e)}function cO(e,t){return e=k2(e),gr(sl.count(po(e),e)+(po(e).getDay()===4),t,2)}function dO(e){return e.getDay()}function hO(e,t){return gr(qf.count(po(e)-1,e),t,2)}function vO(e,t){return gr(e.getFullYear()%100,t,2)}function pO(e,t){return e=k2(e),gr(e.getFullYear()%100,t,2)}function mO(e,t){return gr(e.getFullYear()%1e4,t,4)}function gO(e,t){var r=e.getDay();return e=r>=4||r===0?sl(e):sl.ceil(e),gr(e.getFullYear()%1e4,t,4)}function yO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+gr(t/60|0,"0",2)+gr(t%60,"0",2)}function A2(e,t){return gr(e.getUTCDate(),t,2)}function bO(e,t){return gr(e.getUTCHours(),t,2)}function _O(e,t){return gr(e.getUTCHours()%12||12,t,2)}function xO(e,t){return gr(1+cd.count(mo(e),e),t,3)}function M2(e,t){return gr(e.getUTCMilliseconds(),t,3)}function wO(e,t){return M2(e,t)+"000"}function TO(e,t){return gr(e.getUTCMonth()+1,t,2)}function kO(e,t){return gr(e.getUTCMinutes(),t,2)}function AO(e,t){return gr(e.getUTCSeconds(),t,2)}function MO(e){var t=e.getUTCDay();return t===0?7:t}function SO(e,t){return gr(dd.count(mo(e)-1,e),t,2)}function S2(e){var t=e.getUTCDay();return t>=4||t===0?ul(e):ul.ceil(e)}function CO(e,t){return e=S2(e),gr(ul.count(mo(e),e)+(mo(e).getUTCDay()===4),t,2)}function LO(e){return e.getUTCDay()}function EO(e,t){return gr(Wf.count(mo(e)-1,e),t,2)}function DO(e,t){return gr(e.getUTCFullYear()%100,t,2)}function RO(e,t){return e=S2(e),gr(e.getUTCFullYear()%100,t,2)}function FO(e,t){return gr(e.getUTCFullYear()%1e4,t,4)}function PO(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ul(e):ul.ceil(e),gr(e.getUTCFullYear()%1e4,t,4)}function zO(){return"+0000"}function C2(){return"%"}function L2(e){return+e}function E2(e){return Math.floor(+e/1e3)}var us,D2,R2,Rm,Fm;F2({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function F2(e){return us=m2(e),D2=us.format,R2=us.parse,Rm=us.utcFormat,Fm=us.utcParse,us}var P2="%Y-%m-%dT%H:%M:%S.%LZ";function $O(e){return e.toISOString()}var IO=Date.prototype.toISOString?$O:Rm(P2);function NO(e){var t=new Date(e);return isNaN(t)?null:t}var OO=+new Date("2000-01-01T00:00:00.000Z")?NO:Fm(P2);const Kf=nd(Object.freeze(Object.defineProperty({__proto__:null,isoFormat:IO,isoParse:OO,get timeFormat(){return D2},timeFormatDefaultLocale:F2,timeFormatLocale:m2,get timeParse(){return R2},get utcFormat(){return Rm},get utcParse(){return Fm}},Symbol.toStringTag,{value:"Module"})));function BO(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function hd(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function cs(e){return e=hd(Math.abs(e)),e?e[1]:NaN}function HO(e,t){return function(r,n){for(var a=r.length,i=[],o=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),i.push(r.substring(a-=l,a+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function jO(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var UO=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vd(e){if(!(t=UO.exec(e)))throw new Error("invalid format: "+e);var t;return new pd({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}vd.prototype=pd.prototype;function pd(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}pd.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function VO(e){e:for(var t=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var z2;function GO(e,t){var r=hd(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(z2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+hd(e,Math.max(0,t+i-1))[0]}function $2(e,t){var r=hd(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const I2={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:BO,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return $2(e*100,t)},r:$2,s:GO,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function N2(e){return e}var O2=Array.prototype.map,B2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function H2(e){var t=e.grouping===void 0||e.thousands===void 0?N2:HO(O2.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?N2:jO(O2.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function f(d){d=vd(d);var h=d.fill,p=d.align,v=d.sign,m=d.symbol,g=d.zero,y=d.width,w=d.comma,A=d.precision,x=d.trim,_=d.type;_==="n"?(w=!0,_="g"):I2[_]||(A===void 0&&(A=12),x=!0,_="g"),(g||h==="0"&&p==="=")&&(g=!0,h="0",p="=");var T=m==="$"?r:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",C=m==="$"?n:/[%p]/.test(_)?o:"",S=I2[_],E=/[defgprs%]/.test(_);A=A===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function F($){var N=T,B=C,G,J,q;if(_==="c")B=S($)+B,$="";else{$=+$;var I=$<0||1/$<0;if($=isNaN($)?s:S(Math.abs($),A),x&&($=VO($)),I&&+$==0&&v!=="+"&&(I=!1),N=(I?v==="("?v:l:v==="-"||v==="("?"":v)+N,B=(_==="s"?B2[8+z2/3]:"")+B+(I&&v==="("?")":""),E){for(G=-1,J=$.length;++Gq||q>57){B=(q===46?a+$.slice(G+1):$.slice(G))+B,$=$.slice(0,G);break}}}w&&!g&&($=t($,1/0));var z=N.length+$.length+B.length,P=z>1)+N+$+B+P.slice(z);break;default:$=P+N+$+B;break}return i($)}return F.toString=function(){return d+""},F}function u(d,h){var p=f((d=vd(d),d.type="f",d)),v=Math.max(-8,Math.min(8,Math.floor(cs(h)/3)))*3,m=Math.pow(10,-v),g=B2[8+v/3];return function(y){return p(m*y)+g}}return{format:f,formatPrefix:u}}var md,j2,U2;V2({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function V2(e){return md=H2(e),j2=md.format,U2=md.formatPrefix,md}function qO(e){return Math.max(0,-cs(Math.abs(e)))}function WO(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(cs(t)/3)))*3-cs(Math.abs(e)))}function ZO(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,cs(t)-cs(e))+1}const G2=nd(Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:pd,get format(){return j2},formatDefaultLocale:V2,formatLocale:H2,get formatPrefix(){return U2},formatSpecifier:vd,precisionFixed:qO,precisionPrefix:WO,precisionRound:ZO},Symbol.toStringTag,{value:"Module"})));for(var YO=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0},XO=YO,er=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&XO(r))return!1}else if(t!=="number")return!1;return e-e<1},zr={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"−"},jr={},ds="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jf=typeof Uint8Array>"u"?[]:new Uint8Array(256),gd=0;gd>2],a+=ds[(t[r]&3)<<4|t[r+1]>>4],a+=ds[(t[r+1]&15)<<2|t[r+2]>>6],a+=ds[t[r+2]&63];return n%3===2?a=a.substring(0,a.length-1)+"=":n%3===1&&(a=a.substring(0,a.length-2)+"=="),a},JO=function(e){var t=e.length*.75,r=e.length,n,a=0,i,o,l,s;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var f=new ArrayBuffer(t),u=new Uint8Array(f);for(n=0;n>4,u[a++]=(o&15)<<4|l>>2,u[a++]=(l&3)<<6|s&63;return f};const q2=nd(Object.freeze(Object.defineProperty({__proto__:null,decode:JO,encode:KO},Symbol.toStringTag,{value:"Module"})));var cl=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")},QO=q2.decode,eB=cl,Pm=Array.isArray,tB=ArrayBuffer,rB=DataView;function W2(e){return tB.isView(e)&&!(e instanceof rB)}jr.isTypedArray=W2;function yd(e){return Pm(e)||W2(e)}jr.isArrayOrTypedArray=yd;function nB(e){return!yd(e[0])}jr.isArray1D=nB,jr.ensureArray=function(e,t){return Pm(e)||(e=[]),e.length=t,e};var on={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};on.uint8c=on.u1c,on.uint8=on.u1,on.int8=on.i1,on.uint16=on.u2,on.int16=on.i2,on.uint32=on.u4,on.int32=on.i4,on.float32=on.f4,on.float64=on.f8;function zm(e){return e.constructor===ArrayBuffer}jr.isArrayBuffer=zm,jr.decodeTypedArraySpec=function(e){var t=[],r=aB(e),n=r.dtype,a=on[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var i=a.BYTES_PER_ELEMENT,o=r.bdata;zm(o)||(o=QO(o));var l=r.shape===void 0?[o.byteLength/i]:(""+r.shape).split(",");l.reverse();var s=l.length,f,u,d=+l[0],h=i*d,p=0;if(s===1)t=new a(o);else if(s===2)for(f=+l[1],u=0;u2)return s[p]=s[p]|bd,d.set(h,null);if(u){for(i=p;i0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return pB(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n},tT=jr.isArrayOrTypedArray,Qf=cl,mB=function e(t,r){for(var n in r){var a=r[n],i=t[n];if(i!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in t)continue;t[n]=a}else if(tT(a)&&tT(i)&&Qf(a[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(a.length,i.length),l=0;lt/2?e-Math.round(e/t)*t:e}var eu={mod:gB,modHalf:yB},rT={},nT={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(il,function(){function r(U){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},r(U)}var n=/^\s+/,a=/\s+$/;function i(U,V){if(U=U||"",V=V||{},U instanceof i)return U;if(!(this instanceof i))return new i(U,V);var Y=o(U);this._originalInput=U,this._r=Y.r,this._g=Y.g,this._b=Y.b,this._a=Y.a,this._roundA=Math.round(100*this._a)/100,this._format=V.format||Y.format,this._gradientType=V.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Y.ok}i.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),Y,se,Q,me,ye,pe;return Y=V.r/255,se=V.g/255,Q=V.b/255,Y<=.03928?me=Y/12.92:me=Math.pow((Y+.055)/1.055,2.4),se<=.03928?ye=se/12.92:ye=Math.pow((se+.055)/1.055,2.4),Q<=.03928?pe=Q/12.92:pe=Math.pow((Q+.055)/1.055,2.4),.2126*me+.7152*ye+.0722*pe},setAlpha:function(V){return this._a=G(V),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var V=u(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=u(this._r,this._g,this._b),Y=Math.round(V.h*360),se=Math.round(V.s*100),Q=Math.round(V.v*100);return this._a==1?"hsv("+Y+", "+se+"%, "+Q+"%)":"hsva("+Y+", "+se+"%, "+Q+"%, "+this._roundA+")"},toHsl:function(){var V=s(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=s(this._r,this._g,this._b),Y=Math.round(V.h*360),se=Math.round(V.s*100),Q=Math.round(V.l*100);return this._a==1?"hsl("+Y+", "+se+"%, "+Q+"%)":"hsla("+Y+", "+se+"%, "+Q+"%, "+this._roundA+")"},toHex:function(V){return h(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return p(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(J(this._r,255)*100)+"%",g:Math.round(J(this._g,255)*100)+"%",b:Math.round(J(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%)":"rgba("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:N[h(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var Y="#"+v(this._r,this._g,this._b,this._a),se=Y,Q=this._gradientType?"GradientType = 1, ":"";if(V){var me=i(V);se="#"+v(me._r,me._g,me._b,me._a)}return"progid:DXImageTransform.Microsoft.gradient("+Q+"startColorstr="+Y+",endColorstr="+se+")"},toString:function(V){var Y=!!V;V=V||this._format;var se=!1,Q=this._a<1&&this._a>=0,me=!Y&&Q&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return me?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(se=this.toRgbString()),V==="prgb"&&(se=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(se=this.toHexString()),V==="hex3"&&(se=this.toHexString(!0)),V==="hex4"&&(se=this.toHex8String(!0)),V==="hex8"&&(se=this.toHex8String()),V==="name"&&(se=this.toName()),V==="hsl"&&(se=this.toHslString()),V==="hsv"&&(se=this.toHsvString()),se||this.toHexString())},clone:function(){return i(this.toString())},_applyModification:function(V,Y){var se=V.apply(null,[this].concat([].slice.call(Y)));return this._r=se._r,this._g=se._g,this._b=se._b,this.setAlpha(se._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(V,Y){return V.apply(null,[this].concat([].slice.call(Y)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(F,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(C,[3])},tetrad:function(){return this._applyCombination(C,[4])}},i.fromRatio=function(U,V){if(r(U)=="object"){var Y={};for(var se in U)U.hasOwnProperty(se)&&(se==="a"?Y[se]=U[se]:Y[se]=j(U[se]));U=Y}return i(U,V)};function o(U){var V={r:0,g:0,b:0},Y=1,se=null,Q=null,me=null,ye=!1,pe=!1;return typeof U=="string"&&(U=ee(U)),r(U)=="object"&&(ie(U.r)&&ie(U.g)&&ie(U.b)?(V=l(U.r,U.g,U.b),ye=!0,pe=String(U.r).substr(-1)==="%"?"prgb":"rgb"):ie(U.h)&&ie(U.s)&&ie(U.v)?(se=j(U.s),Q=j(U.v),V=d(U.h,se,Q),ye=!0,pe="hsv"):ie(U.h)&&ie(U.s)&&ie(U.l)&&(se=j(U.s),me=j(U.l),V=f(U.h,se,me),ye=!0,pe="hsl"),U.hasOwnProperty("a")&&(Y=U.a)),Y=G(Y),{ok:ye,format:U.format||pe,r:Math.min(255,Math.max(V.r,0)),g:Math.min(255,Math.max(V.g,0)),b:Math.min(255,Math.max(V.b,0)),a:Y}}function l(U,V,Y){return{r:J(U,255)*255,g:J(V,255)*255,b:J(Y,255)*255}}function s(U,V,Y){U=J(U,255),V=J(V,255),Y=J(Y,255);var se=Math.max(U,V,Y),Q=Math.min(U,V,Y),me,ye,pe=(se+Q)/2;if(se==Q)me=ye=0;else{var ge=se-Q;switch(ye=pe>.5?ge/(2-se-Q):ge/(se+Q),se){case U:me=(V-Y)/ge+(V1&&(Fe-=1),Fe<1/6?Ee+($e-Ee)*6*Fe:Fe<1/2?$e:Fe<2/3?Ee+($e-Ee)*(2/3-Fe)*6:Ee}if(V===0)se=Q=me=Y;else{var pe=Y<.5?Y*(1+V):Y+V-Y*V,ge=2*Y-pe;se=ye(ge,pe,U+1/3),Q=ye(ge,pe,U),me=ye(ge,pe,U-1/3)}return{r:se*255,g:Q*255,b:me*255}}function u(U,V,Y){U=J(U,255),V=J(V,255),Y=J(Y,255);var se=Math.max(U,V,Y),Q=Math.min(U,V,Y),me,ye,pe=se,ge=se-Q;if(ye=se===0?0:ge/se,se==Q)me=0;else{switch(se){case U:me=(V-Y)/ge+(V>1)+720)%360;--V;)se.h=(se.h+Q)%360,me.push(i(se));return me}function F(U,V){V=V||6;for(var Y=i(U).toHsv(),se=Y.h,Q=Y.s,me=Y.v,ye=[],pe=1/V;V--;)ye.push(i({h:se,s:Q,v:me})),me=(me+pe)%1;return ye}i.mix=function(U,V,Y){Y=Y===0?0:Y||50;var se=i(U).toRgb(),Q=i(V).toRgb(),me=Y/100,ye={r:(Q.r-se.r)*me+se.r,g:(Q.g-se.g)*me+se.g,b:(Q.b-se.b)*me+se.b,a:(Q.a-se.a)*me+se.a};return i(ye)},i.readability=function(U,V){var Y=i(U),se=i(V);return(Math.max(Y.getLuminance(),se.getLuminance())+.05)/(Math.min(Y.getLuminance(),se.getLuminance())+.05)},i.isReadable=function(U,V,Y){var se=i.readability(U,V),Q,me;switch(me=!1,Q=ue(Y),Q.level+Q.size){case"AAsmall":case"AAAlarge":me=se>=4.5;break;case"AAlarge":me=se>=3;break;case"AAAsmall":me=se>=7;break}return me},i.mostReadable=function(U,V,Y){var se=null,Q=0,me,ye,pe,ge;Y=Y||{},ye=Y.includeFallbackColors,pe=Y.level,ge=Y.size;for(var Ee=0;EeQ&&(Q=me,se=i(V[Ee]));return i.isReadable(U,se,{level:pe,size:ge})||!ye?se:(Y.includeFallbackColors=!1,i.mostReadable(U,["#fff","#000"],Y))};var $=i.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=i.hexNames=B($);function B(U){var V={};for(var Y in U)U.hasOwnProperty(Y)&&(V[U[Y]]=Y);return V}function G(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function J(U,V){z(U)&&(U="100%");var Y=P(U);return U=Math.min(V,Math.max(0,parseFloat(U))),Y&&(U=parseInt(U*V,10)/100),Math.abs(U-V)<1e-6?1:U%V/parseFloat(V)}function q(U){return Math.min(1,Math.max(0,U))}function I(U){return parseInt(U,16)}function z(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function P(U){return typeof U=="string"&&U.indexOf("%")!=-1}function H(U){return U.length==1?"0"+U:""+U}function j(U){return U<=1&&(U=U*100+"%"),U}function Z(U){return Math.round(parseFloat(U)*255).toString(16)}function te(U){return I(U)/255}var ne=function(){var U="[-\\+]?\\d+%?",V="[-\\+]?\\d*\\.\\d+%?",Y="(?:"+V+")|(?:"+U+")",se="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?",Q="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?";return{CSS_UNIT:new RegExp(Y),rgb:new RegExp("rgb"+se),rgba:new RegExp("rgba"+Q),hsl:new RegExp("hsl"+se),hsla:new RegExp("hsla"+Q),hsv:new RegExp("hsv"+se),hsva:new RegExp("hsva"+Q),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ie(U){return!!ne.CSS_UNIT.exec(U)}function ee(U){U=U.replace(n,"").replace(a,"").toLowerCase();var V=!1;if($[U])U=$[U],V=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Y;return(Y=ne.rgb.exec(U))?{r:Y[1],g:Y[2],b:Y[3]}:(Y=ne.rgba.exec(U))?{r:Y[1],g:Y[2],b:Y[3],a:Y[4]}:(Y=ne.hsl.exec(U))?{h:Y[1],s:Y[2],l:Y[3]}:(Y=ne.hsla.exec(U))?{h:Y[1],s:Y[2],l:Y[3],a:Y[4]}:(Y=ne.hsv.exec(U))?{h:Y[1],s:Y[2],v:Y[3]}:(Y=ne.hsva.exec(U))?{h:Y[1],s:Y[2],v:Y[3],a:Y[4]}:(Y=ne.hex8.exec(U))?{r:I(Y[1]),g:I(Y[2]),b:I(Y[3]),a:te(Y[4]),format:V?"name":"hex8"}:(Y=ne.hex6.exec(U))?{r:I(Y[1]),g:I(Y[2]),b:I(Y[3]),format:V?"name":"hex"}:(Y=ne.hex4.exec(U))?{r:I(Y[1]+""+Y[1]),g:I(Y[2]+""+Y[2]),b:I(Y[3]+""+Y[3]),a:te(Y[4]+""+Y[4]),format:V?"name":"hex8"}:(Y=ne.hex3.exec(U))?{r:I(Y[1]+""+Y[1]),g:I(Y[2]+""+Y[2]),b:I(Y[3]+""+Y[3]),format:V?"name":"hex"}:!1}function ue(U){var V,Y;return U=U||{level:"AA",size:"small"},V=(U.level||"AA").toUpperCase(),Y=(U.size||"small").toLowerCase(),V!=="AA"&&V!=="AAA"&&(V="AA"),Y!=="small"&&Y!=="large"&&(Y="small"),{level:V,size:Y}}return i})})(nT);var Ia=nT.exports,pn=function(e){var t=e.editType,r=e.colorEditType;r===void 0&&(r=t);var n={family:{valType:"string",noBlank:!0,strict:!0,editType:t,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:r},editType:t,description:""+(e.description||"")};return e.autoSize&&(n.size.dflt="auto"),e.autoColor&&(n.color.dflt="auto"),e.arrayOk&&(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n},_d={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"},aT=_d,iT=pn,Bm=iT({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});Bm.family.dflt=aT.HOVERFONT,Bm.size.dflt=aT.HOVERFONTSIZE;var tu={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:Bm,grouptitlefont:iT({editType:"none",description:["Sets the font for group titles in hover (unified modes).","Defaults to `hoverlabel.font`."].join(" ")}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}},$r={},oT=cl,ru=Array.isArray;function bB(e,t){var r,n;for(r=0;r=0)))return e;if(i===3)n[i]>1&&(n[i]=1);else if(n[i]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}var Yt=fT.exports,Vm={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2},ps={};ps.counter=function(e,t,r,n){var a=(t||"")+(r?"":"$"),i=n===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)},function(e){var t=er,r=Ia,n=hi,a=vs,i=Yt,o=Vm.DESELECTDIM,l=Im,s=ps.counter,f=eu.modHalf,u=jr.isArrayOrTypedArray,d=jr.isTypedArraySpec,h=jr.decodeTypedArraySpec;e.valObjectMeta={data_array:{description:["An {array} of data.","The value must represent an {array} or it will be ignored,","but this array can be provided in several forms:","(1) a regular {array} object","(2) a typed array (e.g. Float32Array)","(3) an object with keys dtype, bdata, and optionally shape.","In this 3rd form, dtype is one of","*f8*, *f4*.","*i4*, *u4*,","*i2*, *u2*,","*i1*, *u1* or *u1c* for Uint8ClampedArray.","In addition to shorthand `dtype` above one could also use the following forms:","*float64*, *float32*,","*int32*, *uint32*,","*int16*, *uint16*,","*int8*, *uint8* or *uint8c* for Uint8ClampedArray.","`bdata` is either a base64-encoded string or the ArrayBuffer of","an integer or float typed array.","For either multi-dimensional arrays you must also","provide its dimensions separated by comma via `shape`.","For example using `dtype`: *f4* and `shape`: *5,100* you can","declare a 2-D array that has 5 rows and 100 columns","containing float32 values i.e. 4 bits per value.","`shape` is optional for one dimensional arrays."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(v,m,g){m.set(u(v)?v:d(v)?h(v):g)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(v,m,g,y){y.coerceNumber&&(v=+v),y.values.indexOf(v)===-1?m.set(g):m.set(v)},validateFunction:function(v,m){m.coerceNumber&&(v=+v);for(var g=m.values,y=0;yy.max?m.set(g):m.set(+v)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(v,m,g,y){v%1||!t(v)||y.min!==void 0&&vy.max?m.set(g):m.set(+v)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(v,m,g,y){if(typeof v!="string"){var w=typeof v=="number";y.strict===!0||!w?m.set(g):m.set(String(v))}else y.noBlank&&!v?m.set(g):m.set(v)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(v,m,g){r(v).isValid()?m.set(v):m.set(g)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(v,m,g){function y(w){return r(w).isValid()}!Array.isArray(v)||!v.length?m.set(g):v.every(y)?m.set(v):m.set(g)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(a.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(v,m,g){m.set(a.get(v,g))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(v,m,g){v==="auto"?m.set("auto"):t(v)?m.set(f(+v,360)):m.set(g)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(v,m,g,y){var w=y.regex||s(g);if(typeof v=="string"&&w.test(v)){m.set(v);return}m.set(g)},validateFunction:function(v,m){var g=m.dflt;return v===g?!0:typeof v!="string"?!1:!!s(g).test(v)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(v,m,g,y){if((y.extras||[]).indexOf(v)!==-1){m.set(v);return}if(typeof v!="string"){m.set(g);return}for(var w=v.split("+"),A=0;A/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},hT={};function vT(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),vT(n,t[r]))}}vT(dT,hT);var ms={configAttributes:dT,dfltConfig:hT},Gm=Qt,LB=er,au=[],pT=function(e,t){if(au.indexOf(e)!==-1)return;au.push(e);var r=1e3;LB(t)?r=t:t==="long"&&(r=3e3);var n=Gm.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(au);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=au.indexOf(l);s!==-1&&au.splice(s,1),Gm.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=Gm.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),f=o.split(//g),u=0;u1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}},Wm.warn=function(){var e;if(gs.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}},Wm.error=function(){var e;if(gs.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};var ys=cT.exports,Pt={},Zm=function(){},mT=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),a=0;a0){for(var n=[],a=0;a` is displayed in the secondary box, for example "{fullData.name}".',"To hide the secondary box completely, use an empty tag ``."].join(" ")};return e.arrayOk!==!1&&(n.arrayOk=!0),n},Oa.texttemplateAttrs=function(e,t){e=e||{},t=t||{};var r=Ym(t),n={valType:"string",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",PT(),"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",r].join(" ")};return e.arrayOk!==!1&&(n.arrayOk=!0),n},Oa.shapeTexttemplateAttrs=function(e,t){e=e||{},t=t||{};var r=e.newshape?"new ":"",n=Ym(t),a={valType:"string",dflt:"",editType:e.editType||"arraydraw",description:["Template string used for rendering the "+r+"shape's label.","Note that this will override `text`.",WH(),n].join(" ")};return a};function go(e,t){return t?t.d2l(e):e}function zT(e,t){return t?t.l2d(e):e}function ZH(e){return e.x0}function YH(e){return e.x1}function XH(e){return e.y0}function KH(e){return e.y1}function Cd(e,t){return go(e.x1,t)-go(e.x0,t)}function Ld(e,t,r){return go(e.y1,r)-go(e.y0,r)}function JH(e,t){return Math.abs(Cd(e,t))}function QH(e,t,r){return Math.abs(Ld(e,t,r))}function ej(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Cd(e,t),2)+Math.pow(Ld(e,t,r),2))}function tj(e,t){return zT((go(e.x1,t)+go(e.x0,t))/2,t)}function rj(e,t,r){return zT((go(e.y1,r)+go(e.y0,r))/2,r)}function nj(e,t,r){return e.type!=="line"?void 0:Ld(e,t,r)/Cd(e,t)}var Xm={x0:ZH,x1:YH,y0:XH,y1:KH,slope:nj,dx:Cd,dy:Ld,width:JH,height:QH,length:ej,xcenter:tj,ycenter:rj},aj=Ui.overrideAll,hl=hi,$T=pn,ij=vi.dash,yo=$r.extendFlat,oj=Oa.shapeTexttemplateAttrs,lj=Xm,sj=aj({newshape:{visible:yo({},hl.visible,{description:["Determines whether or not new 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,description:["Determines whether or not new","shape is shown in the legend."].join(" ")},legend:yo({},hl.legend,{description:["Sets the reference to a legend to show new 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:yo({},hl.legendgroup,{description:["Sets the legend group for new shape.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")}),legendgrouptitle:{text:yo({},hl.legendgrouptitle.text,{}),font:$T({description:["Sets this legend group's title font."].join(" ")})},legendrank:yo({},hl.legendrank,{description:["Sets the legend rank for new 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."].join(" ")}),legendwidth:yo({},hl.legendwidth,{description:"Sets the width (in px or fraction) of the legend for new shape."}),line:{color:{valType:"color",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:0,dflt:4,description:"Sets the line width (in px)."},dash:yo({},ij,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:["Sets the color filling new shapes' interior.","Please note that if using a fillcolor with alpha greater than half,","drag inside the active shape starts moving the shape underneath,","otherwise a new shape could be started over."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",description:["Determines the path's interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,description:"Sets the opacity of new shapes."},layer:{valType:"enumerated",values:["below","above"],dflt:"above",description:"Specifies whether new shapes are drawn below or above traces."},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",description:["When `dragmode` is set to *drawrect*, *drawline* or *drawcircle*","this limits the drag to be horizontal, vertical or diagonal.","Using *diagonal* there is no limit e.g. in drawing lines in any direction.","*ortho* limits the draw to be either horizontal or vertical.","*horizontal* allows horizontal extend.","*vertical* allows vertical extend."].join(" ")},name:yo({},hl.name,{description:["Sets new shape name.","The name appears as the legend item."].join(" ")}),label:{text:{valType:"string",dflt:"",description:["Sets the text to display with the new shape.","It is also used for legend item if `name` is not provided."].join(" ")},texttemplate:oj({newshape:!0},{keys:Object.keys(lj)}),font:$T({description:"Sets the new 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"],description:["Sets the position of the label text relative to the new 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",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",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","new shape."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],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","new shape."].join(" ")},padding:{valType:"number",dflt:3,min:0,description:"Sets padding (in px) between edge of label and edge of new shape."}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,description:"Sets the opacity of the active shape."}}},"none","from-root"),fj=vi.dash,uj=$r.extendFlat,cj={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none",description:["Describes how a new selection is created.","If `immediate`, a new selection is created after first mouse up.","If `gradual`, a new selection is not created after first mouse.","By adding to and subtracting from the initial selection,","this option allows declaring extra outlines of the selection."].join(" ")},line:{color:{valType:"color",editType:"none",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:1,dflt:1,editType:"none",description:"Sets the line width (in px)."},dash:uj({},fj,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none",description:"Sets the color filling the active selection' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none",description:"Sets the opacity of the active selection."},editType:"none"}},Km=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the left side of the component."},editType:t}},Jm=pn,dj=Sd,Ed=On,IT=sj,NT=cj,hj=Km,OT=$r.extendFlat,Dd=Jm({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});Dd.family.dflt='"Open Sans", verdana, arial, sans-serif',Dd.size.dflt=12,Dd.color.dflt=Ed.defaultLine;var iu={font:Dd,title:{text:{valType:"string",editType:"layoutstyle",description:["Sets the plot's title.","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:Jm({editType:"layoutstyle",description:["Sets the title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),xref:{valType:"enumerated",dflt:"container",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(" ")},yref:{valType:"enumerated",dflt:"container",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(" ")},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:OT(hj({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),automargin:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether the title can automatically push the figure margins.","If `yref='paper'` then the margin will expand to ensure that the title doesn’t","overlap with the edges of the container. If `yref='container'` then the margins","will ensure that the title doesn’t overlap with the plot area, tick labels,","and axis titles. If `automargin=true` and the margins need to be expanded,","then y will be set to a default 1 and yanchor will be set to an appropriate","default to ensure that minimal margin space is needed. Note that when `yref='paper'`,","only 1 or 0 are allowed y values. Invalid values will be reset to the default 1."].join(" ")},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum width of the plot with margin.automargin applied (in px)"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum height of the plot with margin.automargin applied (in px)"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},computed:{valType:"any",editType:"none",description:["Placeholder for exporting automargin-impacting values namely","`margin.t`, `margin.b`, `margin.l` and `margin.r` in *full-json* mode."].join(" ")},paper_bgcolor:{valType:"color",dflt:Ed.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",dflt:Ed.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","This is the default value; however it could be overridden for individual axes."].join(" ")},separators:{valType:"string",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:Ed.defaults,editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},newshape:IT.newshape,activeshape:IT.activeshape,newselection:NT.newselection,activeselection:NT.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:OT({},dj.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the contents of the title, please use `title.text` now."].join(" ")},titlefont:Jm({editType:"layoutstyle",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}};(function(e){var t=ys,r=Zm,n=mT,a=cl,i=Md.addStyleRule,o=$r,l=hi,s=iu,f=o.extendFlat,u=o.extendDeepAll;e.modules={},e.allCategories={},e.allTypes=[],e.subplotsRegistry={},e.transformsRegistry={},e.componentsRegistry={},e.layoutArrayContainers=[],e.layoutArrayRegexes=[],e.traceLayoutAttributes={},e.localeRegistry={},e.apiMethodRegistry={},e.collectableSubplotTypes=null,e.register=function(T){if(e.collectableSubplotTypes=null,T)T&&!Array.isArray(T)&&(T=[T]);else throw new Error("No argument passed to Plotly.register.");for(var C=0;C=A&&I<=x?I:o}if(typeof I!="string"&&typeof I!="number")return o;I=String(I);var Z=y(z),te=I.charAt(0);Z&&(te==="G"||te==="g")&&(I=I.substr(1),z="");var ne=Z&&z.substr(0,7)==="chinese",ie=I.match(ne?m:v);if(!ie)return o;var ee=ie[1],ue=ie[3]||"1",U=Number(ie[5]||1),V=Number(ie[7]||0),Y=Number(ie[9]||0),se=Number(ie[11]||0);if(Z){if(ee.length===2)return o;ee=Number(ee);var Q;try{var me=h.getComponentMethod("calendars","getCal")(z);if(ne){var ye=ue.charAt(ue.length-1)==="i";ue=parseInt(ue,10),Q=me.newDate(ee,me.toMonthIndex(ee,ue,ye),U)}else Q=me.newDate(ee,Number(ue),U)}catch{return o}return Q?(Q.toJD()-d)*l+V*s+Y*f+se*u:o}ee.length===2?ee=(Number(ee)+2e3-g)%100+g:ee=Number(ee),ue-=1;var pe=new Date(Date.UTC(2e3,ue,U,V,Y));return pe.setUTCFullYear(ee),pe.getUTCMonth()!==ue||pe.getUTCDate()!==U?o:pe.getTime()+se*u},A=e.MIN_MS=e.dateTime2ms("-9999"),x=e.MAX_MS=e.dateTime2ms("9999-12-31 23:59:59.9999"),e.isDateTime=function(I,z){return e.dateTime2ms(I,z)!==o};function _(I,z){return String(I+Math.pow(10,z)).substr(1)}var T=90*l,C=3*s,S=5*f;e.ms2DateTime=function(I,z,P){if(typeof I!="number"||!(I>=A&&I<=x))return o;z||(z=0);var H=Math.floor(a(I+.05,1)*10),j=Math.round(I-H/10),Z,te,ne,ie,ee,ue;if(y(P)){var U=Math.floor(j/l)+d,V=Math.floor(a(I,l));try{Z=h.getComponentMethod("calendars","getCal")(P).fromJD(U).formatDate("yyyy-mm-dd")}catch{Z=p("G%Y-%m-%d")(new Date(j))}if(Z.charAt(0)==="-")for(;Z.length<11;)Z="-0"+Z.substr(1);else for(;Z.length<10;)Z="0"+Z;te=z=A+l&&I<=x-l))return o;var z=Math.floor(a(I+.05,1)*10),P=new Date(Math.round(I-z/10)),H=t("%Y-%m-%d")(P),j=P.getHours(),Z=P.getMinutes(),te=P.getSeconds(),ne=P.getUTCMilliseconds()*10+z;return E(H,j,Z,te,ne)};function E(I,z,P,H,j){if((z||P||H||j)&&(I+=" "+_(z,2)+":"+_(P,2),(H||j)&&(I+=":"+_(H,2),j))){for(var Z=4;j%10===0;)Z-=1,j/=10;I+="."+_(j,Z)}return I}e.cleanDate=function(I,z,P){if(I===o)return z;if(e.isJSDate(I)||typeof I=="number"&&isFinite(I)){if(y(P))return n.error("JS Dates and milliseconds are incompatible with world calendars",I),z;if(I=e.ms2DateTimeLocal(+I),!I&&z!==void 0)return z}else if(!e.isDateTime(I,P))return n.error("unrecognized date",I),z;return I};var F=/%\d?f/g,$=/%h/g,N={1:"1",2:"1",3:"2",4:"2"};function B(I,z,P,H){I=I.replace(F,function(Z){var te=Math.min(+Z.charAt(1)||6,6),ne=(z/1e3%1+2).toFixed(te).substr(2).replace(/0+$/,"")||"0";return ne});var j=new Date(Math.floor(z+.05));if(I=I.replace($,function(){return N[P("%q")(j)]}),y(H))try{I=h.getComponentMethod("calendars","worldCalFmt")(I,z,H)}catch{return"Invalid"}return P(I)(j)}var G=[59,59.9,59.99,59.999,59.9999];function J(I,z){var P=a(I+.05,l),H=_(Math.floor(P/s),2)+":"+_(a(Math.floor(P/f),60),2);if(z!=="M"){r(z)||(z=0);var j=Math.min(a(I/u,60),G[z]),Z=(100+j).toFixed(z).substr(1);z>0&&(Z=Z.replace(/0+$/,"").replace(/[\.]$/,"")),H+=":"+Z}return H}e.formatDate=function(I,z,P,H,j,Z){if(j=y(j)&&j,!z)if(P==="y")z=Z.year;else if(P==="m")z=Z.month;else if(P==="d")z=Z.dayMonth+` `+Z.year;else return J(I,P)+` `+B(Z.dayMonthYear,I,H,j);return B(z,I,H,j)};var q=3*l;e.incrementMonth=function(I,z,P){P=y(P)&&P;var H=a(I,l);if(I=Math.round(I-H),P)try{var j=Math.round(I/l)+d,Z=h.getComponentMethod("calendars","getCal")(P),te=Z.fromJD(j);return z%12?Z.add(te,z,"m"):Z.add(te,z/12,"y"),(te.toJD()-d)*l+H}catch{n.error("invalid ms "+I+" in calendar "+P)}var ne=new Date(I+q);return ne.setUTCMonth(ne.getUTCMonth()+z)+H-q},e.findExactDates=function(I,z){for(var P=0,H=0,j=0,Z=0,te,ne,ie=y(z)&&h.getComponentMethod("calendars","getCal")(z),ee=0;ee1?(d[v-1]-d[0])/(v-1):1,y,w;for(g>=0?w=h?o:l:w=h?f:s,u+=g*i*(h?-1:1)*(g>=0?1:-1);p90&&r.log("Long binary search..."),p-1};function o(u,d){return ud}function f(u,d){return u>=d}e.sorterAsc=function(u,d){return u-d},e.sorterDes=function(u,d){return d-u},e.distinctVals=function(u){var d=u.slice();d.sort(e.sorterAsc);var h;for(h=d.length-1;h>-1&&d[h]===a;h--);for(var p=d[h]-d[0]||1,v=p/(h||1)/1e4,m=[],g,y=0;y<=h;y++){var w=d[y],A=w-g;g===void 0?(m.push(w),g=w):A>v&&(p=Math.min(p,A),m.push(w),g=w)}return{vals:m,minDiff:p}},e.roundUp=function(u,d,h){for(var p=0,v=d.length-1,m,g=0,y=h?0:1,w=h?1:0,A=h?Math.ceil:Math.floor;p0&&(p=1),h&&p)return u.sort(d)}return p?u:u.reverse()},e.findIndexOfMin=function(u,d){d=d||n;for(var h=1/0,p,v=0;vi.length)&&(o=i.length),t(a)||(a=!1),r(i[0])){for(s=new Array(o),l=0;ln.length-1)return n[n.length-1];var i=a%1;return i*n[Math.ceil(a)]+(1-i)*n[Math.floor(a)]}})(jT);var UT=eu,eg=UT.mod,vj=UT.modHalf,ou=Math.PI,bo=2*ou;function pj(e){return e/180*ou}function mj(e){return e/ou*180}function tg(e){return Math.abs(e[1]-e[0])>bo-1e-14}function VT(e,t){return vj(t-e,bo)}function gj(e,t){return Math.abs(VT(e,t))}function GT(e,t){if(tg(t))return!0;var r,n;t[0]n&&(n+=bo);var a=eg(e,bo),i=a+bo;return a>=r&&a<=n||i>=r&&i<=n}function yj(e,t,r,n){if(!GT(t,n))return!1;var a,i;return r[0]=a&&e<=i}function rg(e,t,r,n,a,i,o){a=a||0,i=i||0;var l=tg([r,n]),s,f,u,d,h;l?(s=0,f=ou,u=bo):r1/3&&t.x<2/3},vl.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3},vl.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3},vl.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3},vl.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3};var pl={},ng=eu.mod;pl.segmentsIntersect=qT;function qT(e,t,r,n,a,i,o,l){var s=r-e,f=a-e,u=o-a,d=n-t,h=i-t,p=l-i,v=s*p-u*d;if(v===0)return null;var m=(f*p-u*h)/v,g=(f*d-s*h)/v;return g<0||g>1||m<0||m>1?null:{x:e+s*m,y:t+d*m}}pl.segmentDistance=function(t,r,n,a,i,o,l,s){if(qT(t,r,n,a,i,o,l,s))return 0;var f=n-t,u=a-r,d=l-i,h=s-o,p=f*f+u*u,v=d*d+h*h,m=Math.min(Rd(f,u,p,i-t,o-r),Rd(f,u,p,l-t,s-r),Rd(d,h,v,t-i,r-o),Rd(d,h,v,n-i,a-o));return Math.sqrt(m)};function Rd(e,t,r,n,a){var i=n*e+a*t;if(i<0)return n*n+a*a;if(i>r){var o=n-e,l=a-t;return o*o+l*l}else{var s=n*t-a*e;return s*s/r}}var Fd,ag,WT;pl.getTextLocation=function(t,r,n,a){if((t!==ag||a!==WT)&&(Fd={},ag=t,WT=a),Fd[n])return Fd[n];var i=t.getPointAtLength(ng(n-a/2,r)),o=t.getPointAtLength(ng(n+a/2,r)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=t.getPointAtLength(ng(n,r)),f=(s.x*4+i.x+o.x)/6,u=(s.y*4+i.y+o.y)/6,d={x:f,y:u,theta:l};return Fd[n]=d,d},pl.clearLocationCache=function(){ag=null},pl.getVisibleSegment=function(t,r,n){var a=r.left,i=r.right,o=r.top,l=r.bottom,s=0,f=t.getTotalLength(),u=f,d,h;function p(m){var g=t.getPointAtLength(m);m===0?d=g:m===f&&(h=g);var y=g.xi?g.x-i:0,w=g.yl?g.y-l:0;return Math.sqrt(y*y+w*w)}for(var v=p(s);v;){if(s+=v+n,s>u)return;v=p(s)}for(v=p(u);v;){if(u-=v+n,s>u)return;v=p(u)}return{min:s,max:u,len:u-s,total:f,isClosed:s===0&&u===f&&Math.abs(d.x-h.x)<.1&&Math.abs(d.y-h.y)<.1}},pl.findPointOnPath=function(t,r,n,a){a=a||{};for(var i=a.pathLength||t.getTotalLength(),o=a.tolerance||.001,l=a.iterationLimit||30,s=t.getPointAtLength(0)[n]>t.getPointAtLength(i)[n]?-1:1,f=0,u=0,d=i,h,p,v;f0?d=h:u=h,f++}return p};var Pd={};(function(e){var t={};e.throttle=function(a,i,o){var l=t[a],s=Date.now();if(!l){for(var f in t)t[f].tsl.ts+i){u();return}l.timer=setTimeout(function(){u(),l.timer=null},i)},e.done=function(n){var a=t[n];return!a||!a.timer?Promise.resolve():new Promise(function(i){var o=a.onDone;a.onDone=function(){o&&o(),i(),a.onDone=null}})},e.clear=function(n){if(n)r(t[n]),delete t[n];else for(var a in t)e.clear(a)};function r(n){n&&n.timer!==null&&(clearTimeout(n.timer),n.timer=null)}})(Pd);var Tj=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)},zd={exports:{}};zd.exports=ig,zd.exports.isMobile=ig,zd.exports.default=ig;const kj=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Aj=/CrOS/,Mj=/android|ipad|playbook|silk/i;function ig(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=kj.test(t)&&!Aj.test(t)||!!e.tablet&&Mj.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var Sj=zd.exports,Cj=er,Lj=Sj,Ej=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=Dj(),typeof r!="string")return!0;var n=Lj({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var a=r.split(" "),i=1;i-1;l--){var s=a[l];if(s.substr(0,8)==="Version/"){var f=s.substr(8).split(".")[0];if(Cj(f)&&(f=+f),f>=13)return!0}}}return n};function Dj(){var e;return typeof navigator<"u"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}var Rj=Qt,Fj=function(t,r,n){var a=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var i=t.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(o){o[0][i]=Rj.select(this)}),a},Pj=Pt,zj=function(t,r){for(var n=t._context.locale,a=0;a<2;a++){for(var i=t._context.locales,o=0;o<2;o++){var l=(i[n]||{}).dictionary;if(l){var s=l[r];if(s)return s}i=Pj.localeRegistry}var f=n.split("-")[0];if(f===n)break;n=f}return r},$j=function(t){for(var r={},n=[],a=0,i=0;i1?(n*t+n*r)/n:t+r,i=String(a).length;if(i>16){var o=String(r).length,l=String(t).length;if(i>=l+o){var s=parseFloat(a).toPrecision(12);s.indexOf("e+")===-1&&(a=+s)}}return a},jj=er,Uj=zr.BADNUM,Vj=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g,Gj=function(t){return typeof t=="string"&&(t=t.replace(Vj,"")),jj(t)?Number(t):Uj},lu=Qt,qj=Kf.utcFormat,Wj=G2.format,ZT=er,YT=zr,XT=YT.FP_SAFE,Zj=-XT,KT=YT.BADNUM,we=Zw.exports={};we.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var JT={};we.warnBadFormat=function(e){var t=String(e);JT[t]||(JT[t]=1,we.warn('encountered bad format: "'+t+'"'))},we.noFormat=function(e){return String(e)},we.numberFormat=function(e){var t;try{t=Wj(we.adjustFormat(e))}catch{return we.warnBadFormat(e),we.noFormat}return t},we.nestedProperty=Im,we.keyedContainer=cB,we.relativeAttr=vB,we.isPlainObject=cl,we.toLogRange=Om,we.relinkPrivateKeys=mB;var _o=jr;we.isArrayBuffer=_o.isArrayBuffer,we.isTypedArray=_o.isTypedArray,we.isArrayOrTypedArray=_o.isArrayOrTypedArray,we.isArray1D=_o.isArray1D,we.ensureArray=_o.ensureArray,we.concat=_o.concat,we.maxRowLength=_o.maxRowLength,we.minRowLength=_o.minRowLength;var QT=eu;we.mod=QT.mod,we.modHalf=QT.modHalf;var xo=rT;we.valObjectMeta=xo.valObjectMeta,we.coerce=xo.coerce,we.coerce2=xo.coerce2,we.coerceFont=xo.coerceFont,we.coercePattern=xo.coercePattern,we.coerceHoverinfo=xo.coerceHoverinfo,we.coerceSelectionMarkerOpacity=xo.coerceSelectionMarkerOpacity,we.validate=xo.validate;var ta=uT;we.dateTime2ms=ta.dateTime2ms,we.isDateTime=ta.isDateTime,we.ms2DateTime=ta.ms2DateTime,we.ms2DateTimeLocal=ta.ms2DateTimeLocal,we.cleanDate=ta.cleanDate,we.isJSDate=ta.isJSDate,we.formatDate=ta.formatDate,we.incrementMonth=ta.incrementMonth,we.dateTick0=ta.dateTick0,we.dfltRange=ta.dfltRange,we.findExactDates=ta.findExactDates,we.MIN_MS=ta.MIN_MS,we.MAX_MS=ta.MAX_MS;var ml=Qm;we.findBin=ml.findBin,we.sorterAsc=ml.sorterAsc,we.sorterDes=ml.sorterDes,we.distinctVals=ml.distinctVals,we.roundUp=ml.roundUp,we.sort=ml.sort,we.findIndexOfMin=ml.findIndexOfMin,we.sortObjectKeys=HT;var wo=jT;we.aggNums=wo.aggNums,we.len=wo.len,we.mean=wo.mean,we.median=wo.median,we.midRange=wo.midRange,we.variance=wo.variance,we.stdev=wo.stdev,we.interp=wo.interp;var Ba=Ad;we.init2dArray=Ba.init2dArray,we.transposeRagged=Ba.transposeRagged,we.dot=Ba.dot,we.translationMatrix=Ba.translationMatrix,we.rotationMatrix=Ba.rotationMatrix,we.rotationXYMatrix=Ba.rotationXYMatrix,we.apply3DTransform=Ba.apply3DTransform,we.apply2DTransform=Ba.apply2DTransform,we.apply2DTransform2=Ba.apply2DTransform2,we.convertCssMatrix=Ba.convertCssMatrix,we.inverseTransformMatrix=Ba.inverseTransformMatrix;var pi=wj;we.deg2rad=pi.deg2rad,we.rad2deg=pi.rad2deg,we.angleDelta=pi.angleDelta,we.angleDist=pi.angleDist,we.isFullCircle=pi.isFullCircle,we.isAngleInsideSector=pi.isAngleInsideSector,we.isPtInsideSector=pi.isPtInsideSector,we.pathArc=pi.pathArc,we.pathSector=pi.pathSector,we.pathAnnulus=pi.pathAnnulus;var bs=vl;we.isLeftAnchor=bs.isLeftAnchor,we.isCenterAnchor=bs.isCenterAnchor,we.isRightAnchor=bs.isRightAnchor,we.isTopAnchor=bs.isTopAnchor,we.isMiddleAnchor=bs.isMiddleAnchor,we.isBottomAnchor=bs.isBottomAnchor;var _s=pl;we.segmentsIntersect=_s.segmentsIntersect,we.segmentDistance=_s.segmentDistance,we.getTextLocation=_s.getTextLocation,we.clearLocationCache=_s.clearLocationCache,we.getVisibleSegment=_s.getVisibleSegment,we.findPointOnPath=_s.findPointOnPath;var $d=$r;we.extendFlat=$d.extendFlat,we.extendDeep=$d.extendDeep,we.extendDeepAll=$d.extendDeepAll,we.extendDeepNoArrays=$d.extendDeepNoArrays;var og=ys;we.log=og.log,we.warn=og.warn,we.error=og.error;var Yj=ps;we.counterRegex=Yj.counter;var lg=Pd;we.throttle=lg.throttle,we.throttleDone=lg.done,we.clearThrottle=lg.clear;var mi=Md;we.getGraphDiv=mi.getGraphDiv,we.isPlotDiv=mi.isPlotDiv,we.removeElement=mi.removeElement,we.addStyleRule=mi.addStyleRule,we.addRelatedStyleRule=mi.addRelatedStyleRule,we.deleteRelatedStyleRule=mi.deleteRelatedStyleRule,we.getFullTransformMatrix=mi.getFullTransformMatrix,we.getElementTransformMatrix=mi.getElementTransformMatrix,we.getElementAndAncestors=mi.getElementAndAncestors,we.equalDomRects=mi.equalDomRects,we.clearResponsive=Tj,we.preserveDrawingBuffer=Ej,we.makeTraceGroups=Fj,we._=zj,we.notifier=pT,we.filterUnique=$j,we.filterVisible=Ij,we.pushUnique=mT,we.increment=Hj,we.cleanNumber=Gj,we.ensureNumber=function(t){return ZT(t)?(t=Number(t),t>XT||t=t?!1:ZT(e)&&e>=0&&e%1===0},we.noop=Zm,we.identity=BT,we.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))},we.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r},we.simpleMap=function(e,t,r,n,a){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,r)?a>10?(we.warn("randstr failed uniqueness"),o):e(t,r,n,(a||0)+1):o},we.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r},we.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,a=2*t-1,i=new Array(a),o=new Array(r),l,s,f,u;for(l=0;l=n&&(f-=n*Math.floor(f/n)),f<0?f=-1-f:f>=r&&(f=n-1-f),u+=e[f]*i[s];o[l]=u}return o},we.syncOrAsync=function(e,t,r){var n,a;function i(){return we.syncOrAsync(e,t,r)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(t),n&&n.then)return n.then(i);return r&&r(t)},we.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e},we.noneOrAll=function(e,t,r){if(e){var n=!1,a=!0,i,o;for(i=0;i0?a:0})},we.fillArray=function(e,t,r,n){if(n=n||we.identity,we.isArrayOrTypedArray(e))for(var a=0;a1?a+o[1]:"";if(i&&(o.length>1||l.length>4||r))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s},we.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var rk=/^\w*$/;we.templateString=function(e,t){var r={};return e.replace(we.TEMPLATE_STRING_REGEX,function(n,a){var i;return rk.test(a)?i=t[a]:(r[a]=r[a]||we.nestedProperty(t,a).get,i=r[a]()),we.isValidTextValue(i)?i:""})};var tU={max:10,count:0,name:"hovertemplate"};we.hovertemplateString=function(){return sg.apply(tU,arguments)};var rU={max:10,count:0,name:"texttemplate"};we.texttemplateString=function(){return sg.apply(rU,arguments)};var nU=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function aU(e){var t=e.match(nU);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var iU={max:10,count:0,name:"texttemplate",parseMultDiv:!0};we.texttemplateStringForShapes=function(){return sg.apply(iU,arguments)};var nk=/^[:|\|]/;function sg(e,t,r){var n=this,a=arguments;t||(t={});var i={};return e.replace(we.TEMPLATE_STRING_REGEX,function(o,l,s){var f=l==="xother"||l==="yother",u=l==="_xother"||l==="_yother",d=l==="_xother_"||l==="_yother_",h=l==="xother_"||l==="yother_",p=f||u||h||d,v=l;(u||d)&&(v=v.substring(1)),(h||d)&&(v=v.substring(0,v.length-1));var m=null,g=null;if(n.parseMultDiv){var y=aU(v);v=y.key,m=y.op,g=y.number}var w;if(p){if(w=t[v],w===void 0)return""}else{var A,x;for(x=3;x=Nd&&o<=ak,f=l>=Nd&&l<=ak;if(s&&(n=10*n+o-Nd),f&&(a=10*a+l-Nd),!s||!f){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var xs=2e9;we.seedPseudoRandom=function(){xs=2e9},we.pseudoRandom=function(){var e=xs;return xs=(69069*xs+1)%4294967296,Math.abs(xs-e)<429496729?we.pseudoRandom():xs/4294967296},we.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},a=we.extractOption(e,t,"htx","hovertext");if(we.isValidTextValue(a))return n(a);var i=we.extractOption(e,t,"tx","text");if(we.isValidTextValue(i))return n(i)},we.isValidTextValue=function(e){return e||e===0},we.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(f=1):f=0,we.strTranslate(a-f*(r+o),i-f*(n+l))+we.strScale(f)+(s?"rotate("+s+(t?"":" "+r+" "+n)+")":"")},we.setTransormAndDisplay=function(e,t){e.attr("transform",we.getTextTransform(t)),e.style("display",t.scale?null:"none")},we.ensureUniformFontSize=function(e,t){var r=we.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r},we.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)},we.bigFont=function(e){return Math.round(1.2*e)};var ik=we.getFirefoxVersion(),oU=ik!==null&&ik<86;we.getPositionFromD3Event=function(){return oU?[lu.event.layerX,lu.event.layerY]:[lu.event.offsetX,lu.event.offsetY]};var Ue=Zw.exports,lU=Ue,ok={"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 lk in ok){var sU=lk.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");lU.addStyleRule(sU,ok[lk])}var xr={},fg={},fU=!0,uU=fU,ug;typeof il.matchMedia=="function"?ug=!il.matchMedia("(hover: none)").matches:ug=uU;var sk=ug,cg={exports:{}},ws=typeof Reflect=="object"?Reflect:null,fk=ws&&typeof ws.apply=="function"?ws.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Od;ws&&typeof ws.ownKeys=="function"?Od=ws.ownKeys:Object.getOwnPropertySymbols?Od=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Od=function(t){return Object.getOwnPropertyNames(t)};function cU(e){console&&console.warn&&console.warn(e)}var uk=Number.isNaN||function(t){return t!==t};function wr(){wr.init.call(this)}cg.exports=wr,cg.exports.once=pU,wr.EventEmitter=wr,wr.prototype._events=void 0,wr.prototype._eventsCount=0,wr.prototype._maxListeners=void 0;var ck=10;function Bd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(wr,"defaultMaxListeners",{enumerable:!0,get:function(){return ck},set:function(e){if(typeof e!="number"||e<0||uk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ck=e}}),wr.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},wr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||uk(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function dk(e){return e._maxListeners===void 0?wr.defaultMaxListeners:e._maxListeners}wr.prototype.getMaxListeners=function(){return dk(this)},wr.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[t];if(s===void 0)return!1;if(typeof s=="function")fk(s,this,r);else for(var f=s.length,u=gk(s,f),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,cU(l)}return e}wr.prototype.addListener=function(t,r){return hk(this,t,r,!1)},wr.prototype.on=wr.prototype.addListener,wr.prototype.prependListener=function(t,r){return hk(this,t,r,!0)};function dU(){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 vk(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=dU.bind(n);return a.listener=r,n.wrapFn=a,a}wr.prototype.once=function(t,r){return Bd(r),this.on(t,vk(this,t,r)),this},wr.prototype.prependOnceListener=function(t,r){return Bd(r),this.prependListener(t,vk(this,t,r)),this},wr.prototype.removeListener=function(t,r){var n,a,i,o,l;if(Bd(r),a=this._events,a===void 0)return this;if(n=a[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){l=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():hU(n,i),n.length===1&&(a[t]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this},wr.prototype.off=wr.prototype.removeListener,wr.prototype.removeAllListeners=function(t){var r,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var i=Object.keys(n),o;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function pk(e,t,r){var n=e._events;if(n===void 0)return[];var a=n[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?vU(a):gk(a,a.length)}wr.prototype.listeners=function(t){return pk(this,t,!0)},wr.prototype.rawListeners=function(t){return pk(this,t,!1)},wr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):mk.call(e,t)},wr.prototype.listenerCount=mk;function mk(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}wr.prototype.eventNames=function(){return this._eventsCount>0?Od(this._events):[]};function gk(e,t){for(var r=new Array(t),n=0;nyU.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)},Vi.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},Vi.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},Vi.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=Z.length)return!1;H=(t.transformsRegistry[Z[te].type]||{}).attributes,j=H&&H[I[2]],P=3}else{var ne=q._module;if(ne||(ne=(t.modules[q.type||n.type.dflt]||{})._module),!ne)return!1;if(H=ne.attributes,j=H&&H[z],!j){var ie=ne.basePlotModule;ie&&ie.attributes&&(j=ie.attributes[z])}j||(j=n[z])}return x(j,I,P)},e.getLayoutValObject=function(q,I){var z=A(q,I[0]);return x(z,I,1)};function A(q,I){var z,P,H,j,Z=q._basePlotModules;if(Z){var te;for(z=0;z=j.length)return!1;if(q.dimensions===2){if(z++,I.length===z)return q;var Z=I[z];if(!_(Z))return!1;q=j[H][Z]}else q=j[H]}else q=j}}return q}function _(q){return q===Math.round(q)&&q>=0}function T(q){var I,z;I=t.modules[q]._module,z=I.basePlotModule;var P={};P.type=null;var H=f({},n),j=f({},I.attributes);e.crawl(j,function(ne,ie,ee,ue,U){h(H,U).set(void 0),ne===void 0&&h(j,U).set(void 0)}),f(P,H),t.traceIs(q,"noOpacity")&&delete P.opacity,t.traceIs(q,"showLegend")||(delete P.showlegend,delete P.legendgroup),t.traceIs(q,"noHover")&&(delete P.hoverinfo,delete P.hoverlabel),I.selectPoints||delete P.selectedpoints,f(P,j),z.attributes&&f(P,z.attributes),P.type=q;var Z={meta:I.meta||{},categories:I.categories||{},animatable:!!I.animatable,type:q,attributes:F(P)};if(I.layoutAttributes){var te={};f(te,I.layoutAttributes),Z.layoutAttributes=F(te)}return I.animatable||e.crawl(Z,function(ne){e.isValObject(ne)&&"anim"in ne&&delete ne.anim}),Z}function C(){var q={},I,z;f(q,a);for(I in t.subplotsRegistry)if(z=t.subplotsRegistry[I],!!z.layoutAttributes)if(Array.isArray(z.attr))for(var P=0;P=n&&(r._input||{})._templateitemname;i&&(a=n);var o=t+"["+a+"]",l;function s(){l={},i&&(l[o]={},l[o][To]=i)}s();function f(p,v){l[p]=v}function u(p,v){i?ks.nestedProperty(l[o],p).set(v):l[o+"."+p]=v}function d(){var p=l;return s(),p}function h(p,v){p&&u(p,v);var m=d();for(var g in m)ks.nestedProperty(e,g).set(m[g])}return{modifyBase:f,modifyItem:u,getUpdateObj:d,applyUpdate:h}};var Jr={},su=ps.counter,Dn={idRegex:{x:su("x","( domain)?"),y:su("y","( domain)?")},attrRegex:su("[xy]axis"),xAxisMatch:su("xaxis"),yAxisMatch:su("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}};(function(e){var t=Pt,r=Dn;e.id2name=function(i){if(!(typeof i!="string"||!i.match(r.AX_ID_PATTERN))){var o=i.split(" ")[0].substr(1);return o==="1"&&(o=""),i.charAt(0)+"axis"+o}},e.name2id=function(i){if(i.match(r.AX_NAME_PATTERN)){var o=i.substr(5);return o==="1"&&(o=""),i.charAt(0)+o}},e.cleanId=function(i,o,l){var s=/( domain)$/.test(i);if(!(typeof i!="string"||!i.match(r.AX_ID_PATTERN))&&!(o&&i.charAt(0)!==o)&&!(s&&!l)){var f=i.split(" ")[0].substr(1).replace(/^0+/,"");return f==="1"&&(f=""),i.charAt(0)+f+(s&&l?" domain":"")}},e.list=function(a,i,o){var l=a._fullLayout;if(!l)return[];var s=e.listIds(a,i),f=new Array(s.length),u;for(u=0;ul?1:-1:+(a.substr(1)||1)-+(i.substr(1)||1)},e.ref2id=function(a){return/^[xyz]/.test(a)?a.split(" ")[0]:!1};function n(a,i){if(i&&i.length){for(var o=0;o0?".":"")+h;r.isPlainObject(p)?l(p,f,v,d+1):f(v,h,p)}})}}(mg)),mg}var Ak=Qt,MU=Kf.timeFormatLocale,SU=G2.formatLocale,cu=er,CU=q2,ar=Pt,Mk=Ts,LU=cr,yt=Ue,Sk=Yt,Ck=zr.BADNUM,Bn=Jr,EU=gl.clearOutline,DU=pg,gg=Sd,RU=_k,FU=fu.getModuleCalcData,yg=yt.relinkPrivateKeys,As=yt._,ot=xk.exports={};yt.extendFlat(ot,ar),ot.attributes=hi,ot.attributes.type.values=ot.allTypes,ot.fontAttrs=pn,ot.layoutAttributes=iu,ot.fontWeight="normal";var jd=ot.transformsRegistry,Ud=AU();ot.executeAPICommand=Ud.executeAPICommand,ot.computeAPICommandBindings=Ud.computeAPICommandBindings,ot.manageCommandObserver=Ud.manageCommandObserver,ot.hasSimpleAPICommandBindings=Ud.hasSimpleAPICommandBindings,ot.redrawText=function(e){return e=yt.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ar.getComponentMethod("annotations","draw")(e),ar.getComponentMethod("legend","draw")(e),ar.getComponentMethod("colorbar","draw")(e),t(ot.previousPromises(e)))},300)})},ot.resize=function(e){e=yt.getGraphDiv(e);var t,r=new Promise(function(n,a){(!e||yt.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||yt.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,ar.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r},ot.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})},ot.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=yt.ensureSingle(t._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Sk.defaultLine,"pointer-events":"all"}).each(function(){var f=Ak.select(this);f.append("tspan").classed("js-link-to-tool",!0),f.append("tspan").classed("js-link-spacer",!0),f.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),a={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),r.attr(a);var i=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),l=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&PU(e,i),o.text(i.text()&&l.text()?" - ":"")}};function PU(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" »");if(e._context.sendData)r.on("click",function(){ot.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}ot.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Ak.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=ot.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var zU=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],$U=["year","month","dayMonth","dayMonthYear"];ot.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],f=e.calcdata||[],u=e._context||{},d;e._transitionData||ot.createTransitionData(e),a._dfltTitle={plot:As(e,"Click to enter Plot title"),x:As(e,"Click to enter X axis title"),y:As(e,"Click to enter Y axis title"),colorbar:As(e,"Click to enter Colorscale title"),annotation:As(e,"new text")},a._traceWord=As(e,"trace");var h=Lk(e,zU);if(a._mapboxAccessToken=u.mapboxAccessToken,n._initialAutoSizeIsDone){var p=n.width,v=n.height;ot.supplyLayoutGlobalDefaults(i,a,h),i.width||(a.width=p),i.height||(a.height=v),ot.sanitizeMargins(a)}else{ot.supplyLayoutGlobalDefaults(i,a,h);var m=!i.width||!i.height,g=a.autosize,y=u.autosizable,w=m&&(g||y);w?ot.plotAutoSize(e,i,a):m&&ot.sanitizeMargins(a),!g&&m&&(i.width=a.width,i.height=a.height)}a._d3locale=OU(h,a.separators),a._extraFormat=Lk(e,$U),a._initialAutoSizeIsDone=!0,a._dataLength=s.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var A=a._subplots=NU(),x=a._splomAxes={x:{},y:{}},_=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=IU(o,s),a._globalTransforms=(e._context||{}).globalTransforms,ot.supplyDataDefaults(s,l,i,a);var T=Object.keys(x.x),C=Object.keys(x.y);if(T.length>1&&C.length>1){for(ar.getComponentMethod("grid","sizeDefaults")(i,a),d=0;d15&&C.length>15&&a.shapes.length===0&&a.images.length===0,ot.linkSubplots(l,a,o,n),ot.cleanPlot(l,a,o,n);var N=!!(n._has&&n._has("gl2d")),B=!!(a._has&&a._has("gl2d")),G=!!(n._has&&n._has("cartesian")),J=!!(a._has&&a._has("cartesian")),q=G||N,I=J||B;q&&!I?n._bgLayer.remove():I&&!q&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&EU({_fullLayout:n}),BU(l,a),yg(a,n),ar.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var z=a._tracePreGUI,P={},H;for(H in z)P[H]="old";for(d=0;d0){var u=1-2*i;o=Math.round(u*o),l=Math.round(u*l)}}var d=ot.layoutAttributes.width.min,h=ot.layoutAttributes.height.min;o1,v=!r.height&&Math.abs(n.height-l)>1;(v||p)&&(p&&(n.width=o),v&&(n.height=l)),t._initialAutoSize||(t._initialAutoSize={width:o,height:l}),ot.sanitizeMargins(n)},ot.supplyLayoutModuleDefaults=function(e,t,r,n){var a=ar.componentsRegistry,i=t._basePlotModules,o,l,s,f=ar.subplotsRegistry.cartesian;for(o in a)s=a[o],s.includeBasePlot&&s.includeBasePlot(e,t);i.length||i.push(f),t._has("cartesian")&&(ar.getComponentMethod("grid","contentDefaults")(e,t),f.finalizeSubplots(e,t));for(var u in t._subplots)t._subplots[u].sort(yt.subplotSort);for(l=0;l1&&(r.l/=g,r.r/=g)}if(h){var y=(r.t+r.b)/h;y>1&&(r.t/=y,r.b/=y)}var w=r.xl!==void 0?r.xl:r.x,A=r.xr!==void 0?r.xr:r.x,x=r.yt!==void 0?r.yt:r.y,_=r.yb!==void 0?r.yb:r.y;p[t]={l:{val:w,size:r.l+m},r:{val:A,size:r.r+m},b:{val:_,size:r.b+m},t:{val:x,size:r.t+m}},v[t]=1}if(!n._replotting)return ot.doAutoMargin(e)}};function UU(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Bn.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}ot.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),Dk(t);var a=t._size,i=t.margin,o={t:0,b:0,l:0,r:0},l=yt.extendFlat({},a),s=i.l,f=i.r,u=i.t,d=i.b,h=t._pushmargin,p=t._pushmarginIds,v=t.minreducedwidth,m=t.minreducedheight;if(i.autoexpand!==!1){for(var g in h)p[g]||delete h[g];var y=e._fullLayout._reservedMargin;for(var w in y)for(var A in y[w]){var x=y[w][A];o[A]=Math.max(o[A],x)}h.base={l:{val:0,size:s},r:{val:1,size:f},t:{val:1,size:u},b:{val:0,size:d}};for(var _ in o){var T=0;for(var C in h)C!=="base"&&cu(h[C][_].size)&&(T=h[C][_].size>T?h[C][_].size:T);var S=Math.max(0,i[_]-T);o[_]=Math.max(0,o[_]-S)}for(var E in h){var F=h[E].l||{},$=h[E].b||{},N=F.val,B=F.size,G=$.val,J=$.size,q=r-o.r-o.l,I=n-o.t-o.b;for(var z in h){if(cu(B)&&h[z].r){var P=h[z].r.val,H=h[z].r.size;if(P>N){var j=(B*P+(H-q)*N)/(P-N),Z=(H*(1-N)+(B-q)*(1-P))/(P-N);j+Z>s+f&&(s=j,f=Z)}}if(cu(J)&&h[z].t){var te=h[z].t.val,ne=h[z].t.size;if(te>G){var ie=(J*te+(ne-I)*G)/(te-G),ee=(ne*(1-G)+(J-I)*(1-te))/(te-G);ie+ee>d+u&&(d=ie,u=ee)}}}}}var ue=yt.constrain(r-i.l-i.r,Rk,v),U=yt.constrain(n-i.t-i.b,Fk,m),V=Math.max(0,r-ue),Y=Math.max(0,n-U);if(V){var se=(s+f)/V;se>1&&(s/=se,f/=se)}if(Y){var Q=(d+u)/Y;Q>1&&(d/=Q,u/=Q)}if(a.l=Math.round(s)+o.l,a.r=Math.round(f)+o.r,a.t=Math.round(u)+o.t,a.b=Math.round(d)+o.b,a.p=Math.round(i.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!t._replotting&&(ot.didMarginChange(l,a)||UU(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var me=3*(1+Object.keys(p).length);if(t._redrawFromAutoMarginCount1)return!0}return!1},ot.graphJson=function(e,t,r,n,a,i){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&ot.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function f(h,p){if(typeof h=="function")return p?"_function_":null;if(yt.isPlainObject(h)){var v={},m;return Object.keys(h).sort().forEach(function(A){if(["_","["].indexOf(A.charAt(0))===-1){if(typeof h[A]=="function"){p&&(v[A]="_function");return}if(r==="keepdata"){if(A.substr(A.length-3)==="src")return}else if(r==="keepstream"){if(m=h[A+"src"],typeof m=="string"&&m.indexOf(":")>0&&!yt.isPlainObject(h.stream))return}else if(r!=="keepall"&&(m=h[A+"src"],typeof m=="string"&&m.indexOf(":")>0))return;v[A]=f(h[A],p)}}),v}var g=Array.isArray(h),y=yt.isTypedArray(h);if((g||y)&&h.dtype&&h.shape){var w=h.bdata;return f({dtype:h.dtype,shape:h.shape,bdata:yt.isArrayBuffer(w)?CU.encode(w):w},p)}return g?h.map(function(A){return f(A,p)}):y?yt.simpleMap(h,yt.identity):yt.isJSDate(h)?yt.ms2DateTimeLocal(+h):h}var u={data:(o||[]).map(function(h){var p=f(h);return t&&delete p.fit,p})};if(!t&&(u.layout=f(l),a)){var d=l._size;u.layout.computed={margin:{b:d.b,l:d.l,r:d.r,t:d.t}}}return s&&(u.frames=f(s)),i&&(u.config=f(e._context,!0)),n==="object"?u:JSON.stringify(u)},ot.modifyFrames=function(e,t){var r,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return ar.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,p=0;function v(){return h++,function(){p++,!n&&p===h&&l(d)}}r.runFn(v),setTimeout(v())})}function l(d){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ar.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(d)}function s(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var f=[ot.previousPromises,s,r.prepareFn,ot.rehover,ot.reselect,o],u=yt.syncOrAsync(f,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e})}ot.doCalcdata=function(e,t){var r=Bn.list(e),n=e._fullData,a=e._fullLayout,i,o,l,s,f=new Array(n.length),u=(e.calcdata||[]).slice();for(e.calcdata=f,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;s--)if(_[s].enabled){i._indexToPoints=_[s]._indexToPoints;break}o&&o.calc&&(x=o.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:Ck,y:Ck}]),x[0].t||(x[0].t={}),x[0].trace=i,f[w]=x}}for($k(r,n,a),l=0;lpe||Pe>ge)&&(me.style("overflow","hidden"),Fe=me.node().getBoundingClientRect(),Oe=Fe.width,Pe=Fe.height);var We=+P.attr("x"),Se=+P.attr("y"),Ge=U||P.node().getBoundingClientRect().height,qe=-Ge/4;if(ie[0]==="y")ye.attr({transform:"rotate("+[-90,We,Se]+")"+n(-Oe/2,qe-Pe/2)});else if(ie[0]==="l")Se=qe-Pe/2;else if(ie[0]==="a"&&ie.indexOf("atitle")!==0)We=0,Se=qe;else{var Qe=P.attr("text-anchor");We=We-Oe*(Qe==="middle"?.5:Qe==="end"?1:0),Se=Se+qe-Pe/2}me.attr({x:We,y:Se}),j&&j.call(P,ye),ue(ye)})})):ee(),P};var l=/(<|<|<)/g,s=/(>|>|>)/g;function f(P){return P.replace(l,"\\lt ").replace(s,"\\gt ")}var u=[["$","$"],["\\(","\\)"]];function d(P,H,j){var Z=parseInt((MathJax.version||"").split(".")[0]);if(Z!==2&&Z!==3){r.warn("No MathJax version:",MathJax.version);return}var te,ne,ie,ee,ue=function(){return ne=r.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:u},displayAlign:"left"})},U=function(){ne=r.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=u},V=function(){if(te=MathJax.Hub.config.menuSettings.renderer,te!=="SVG")return MathJax.Hub.setRenderer("SVG")},Y=function(){te=MathJax.config.startup.output,te!=="svg"&&(MathJax.config.startup.output="svg")},se=function(){var Ee="math-output-"+r.randstr({},64);ee=t.select("body").append("div").attr({id:Ee}).style({visibility:"hidden",position:"absolute","font-size":H.fontSize+"px"}).text(f(P));var $e=ee.node();return Z===2?MathJax.Hub.Typeset($e):MathJax.typeset([$e])},Q=function(){var Ee=ee.select(Z===2?".MathJax_SVG":".MathJax"),$e=!Ee.empty()&&ee.select("svg").node();if(!$e)r.log("There was an error in the tex syntax.",P),j();else{var Fe=$e.getBoundingClientRect(),Oe;Z===2?Oe=t.select("body").select("#MathJax_SVG_glyphs"):Oe=Ee.select("defs"),j(Ee,Oe,Fe)}ee.remove()},me=function(){if(te!=="SVG")return MathJax.Hub.setRenderer(te)},ye=function(){te!=="svg"&&(MathJax.config.startup.output=te)},pe=function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(ne)},ge=function(){MathJax.config=ne};Z===2?MathJax.Hub.Queue(ue,V,se,Q,me,pe):Z===3&&(U(),Y(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){se(),Q(),ye(),ge()}))}var h={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"},p={sub:"0.3em",sup:"-0.6em"},v={sub:"-0.21em",sup:"0.42em"},m="​",g=["http:","https:","mailto:","",void 0,":"],y=e.NEWLINES=/(\r\n?|\n)/g,w=/(<[^<>]*>)/,A=/<(\/?)([^ >]*)(\s+(.*))?>/i,x=//i;e.BR_TAG_ALL=//gi;var _=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,T=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,C=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,S=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function E(P,H){if(!P)return null;var j=P.match(H),Z=j&&(j[3]||j[4]);return Z&&B(Z)}var F=/(^|;)\s*color:/;e.plainText=function(P,H){H=H||{};for(var j=H.len!==void 0&&H.len!==-1?H.len:1/0,Z=H.allowedTags!==void 0?H.allowedTags:["br"],te="...",ne=te.length,ie=P.split(w),ee=[],ue="",U=0,V=0;Vne?ee.push(Y.substr(0,ye-ne)+te):ee.push(Y.substr(0,ye));break}ue=""}}return ee.join("")};var $={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},N=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function B(P){return P.replace(N,function(H,j){var Z;return j.charAt(0)==="#"?Z=G(j.charAt(1)==="x"?parseInt(j.substr(2),16):parseInt(j.substr(1),10)):Z=$[j],Z||H})}e.convertEntities=B;function G(P){if(!(P>1114111)){var H=String.fromCodePoint;if(H)return H(P);var j=String.fromCharCode;return P<=65535?j(P):j((P>>10)+55232,P%1024+56320)}}function J(P,H){H=H.replace(y," ");var j=!1,Z=[],te,ne=-1;function ie(){ne++;var Pe=document.createElementNS(a.svg,"tspan");t.select(Pe).attr({class:"line",dy:ne*i+"em"}),P.appendChild(Pe),te=Pe;var We=Z;if(Z=[{node:Pe}],We.length>1)for(var Se=1;Se.",H);return}var We=Z.pop();Pe!==We.type&&r.log("Start tag <"+We.type+"> doesnt match end tag <"+Pe+">. Pretending it did match.",H),te=Z[Z.length-1].node}var V=x.test(H);V?ie():(te=P,Z=[{node:P}]);for(var Y=H.split(w),se=0;se=0;n--,a++){var i=e[n];r[a]=[1-i[0],i[1]]}return r}function Gk(e,t){t=t||{};for(var r=e.domain,n=e.range,a=n.length,i=new Array(a),o=0;o* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},eA={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},tA={valType:"data_array",editType:"ticks",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},rA={valType:"enumerated",values:["outside","inside",""],editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")};function nA(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the tick length (in px)."};return e||(t.dflt=5),t}function aA(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the tick width (in px)."};return e||(t.dflt=1),t}var iA={valType:"color",dflt:Ms.defaultLine,editType:"ticks",description:"Sets the tick color."},oA={valType:"color",dflt:Ms.lightLine,editType:"ticks",description:"Sets the color of the grid lines."};function lA(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the width (in px) of the grid lines."};return e||(t.dflt=1),t}var sA=xg({},Yk,{editType:"ticks"}),fA={valType:"boolean",editType:"ticks",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},yi={visible:{valType:"boolean",editType:"plot",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:Ms.defaultLine,editType:"ticks",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{text:{valType:"string",editType:"ticks",description:["Sets the title of this axis.","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:_g({editType:"ticks",description:["Sets this axis' title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),standoff:{valType:"number",min:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis labels and the title text","The default value is a function of the axis tick labels, the title `font.size`","and the axis `linewidth`.","Note that the axis title position is always constrained within the margins,","so the actual standoff distance is always less than the set or default value.","By setting `standoff` and turning on `automargin`, plotly.js will push the","margins to fit the axis title at given standoff distance."].join(" ")},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0,description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","Defaults to layout.autotypenumbers."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided and it has a value for both the","lower and upper bound, `autorange` is set to *false*.","Using *min* applies autorange only to set the minimum.","Using *max* applies autorange only to set the maximum.","Using *min reversed* applies autorange only to set the minimum on a reversed axis.","Using *max reversed* applies autorange only to set the maximum on a reversed axis.","Using *reversed* applies autorange on both ends and reverses the axis direction."].join(" ")},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Use this value exactly as autorange minimum."].join(" ")},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Use this value exactly as autorange maximum."].join(" ")},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Clip autorange minimum if it goes beyond this value.","Has no effect when `autorangeoptions.minallowed` is provided."].join(" ")},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Clip autorange maximum if it goes beyond this value.","Has no effect when `autorangeoptions.maxallowed` is provided."].join(" ")},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Ensure this value is included in autorange."].join(" ")},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data.","Applies only to linear axes."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0,description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears.","Leaving either or both elements `null` impacts the default `autorange`."].join(" ")},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1},description:["Determines the minimum range of this axis."].join(" ")},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1},description:["Determines the maximum range of this axis."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Could be used to set the desired inside range of this axis","(excluding the labels) when `ticklabelposition` of","the anchored axis has *inside*.","Not implemented for axes with `type` *log*.","This would be ignored when `range` is provided."].join(" ")},scaleanchor:{valType:"enumerated",values:[gi.idRegex.x.toString(),gi.idRegex.y.toString(),!1],editType:"plot",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Setting `false` allows to remove a default constraint (occasionally,","you may need to prevent a default `scaleanchor` constraint from",'being applied, eg. when having an image trace `yaxis: {scaleanchor: "x"}`',"is set automatically in order for pixels to be rendered as squares,","setting `yaxis: {scaleanchor: false}` allows to remove the constraint)."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range*, or by decreasing the *domain*.","Default is *domain* for axes containing image traces, *range* otherwise."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},matches:{valType:"enumerated",values:[gi.idRegex.x.toString(),gi.idRegex.y.toString()],editType:"calc",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","will match the range of the corresponding axis in data-coordinates space.","Moreover, matching axes share auto-range values, category lists and","histogram auto-bins.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Moreover, note that matching axes must have the same `type`."].join(" ")},rangebreaks:Xk("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this axis rangebreak is enabled or disabled.","Please note that `rangebreaks` only work for *date* axis type."].join(" ")},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc",description:["Sets the lower and upper bounds of this axis rangebreak.","Can be used with `pattern`."].join(" ")},pattern:{valType:"enumerated",values:[Tg,wg,""],editType:"calc",description:["Determines a pattern on the time line that generates breaks.","If *"+Tg+"* - days of the week in English e.g. 'Sunday' or `sun`","(matching is case-insensitive and considers only the first three characters),","as well as Sunday-based integers between 0 and 6.","If *"+wg+"* - hour (24-hour clock) as decimal numbers between 0 and 24.","for more info.","Examples:","- { pattern: '"+Tg+"', bounds: [6, 1] }"," or simply { bounds: ['sat', 'mon'] }"," breaks from Saturday to Monday (i.e. skips the weekends).","- { pattern: '"+wg+"', bounds: [17, 8] }"," breaks from 5pm to 8am (i.e. skips non-work hours)."].join(" ")},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"},description:["Sets the coordinate values corresponding to the rangebreaks.","An alternative to `bounds`.","Use `dvalue` to set the size of the values along the axis."].join(" ")},dvalue:{valType:"number",editType:"calc",min:0,dflt:eV,description:["Sets the size of each `values` item.","The default is one day in milliseconds."].join(" ")},editType:"calc"}),tickmode:tV,nticks:Jk(),tick0:Qk,dtick:eA,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks",description:["Sets the spacing between tick labels as compared to the spacing between ticks.","A value of 1 (default) means each tick gets a label.","A value of 2 means shows every 2nd label.","A larger value n means only every nth tick is labeled.","`tick0` determines which labels are shown.","Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*."].join(" ")},tickvals:tA,ticktext:{valType:"data_array",editType:"ticks",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:rA,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks",description:["Determines where ticks and grid lines are drawn with respect to their","corresponding tick labels.","Only has an effect for axes of `type` *category* or *multicategory*.","When set to *boundaries*, ticks and grid lines are drawn half a category","to the left/bottom of labels."].join(" ")},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks",description:["Determines where tick labels are drawn with respect to their","corresponding ticks and grid lines.","Only has an effect for axes of `type` *date*","When set to *period*, tick labels are drawn in the middle of the period","between ticks."].join(" ")},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc",description:["Determines where tick labels are drawn with respect to the axis","Please note that","top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*.","Similarly","left or right has no effect on y axes or when `ticklabelmode` is set to *period*.","Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*.","When used on axes linked by `matches` or `scaleanchor`,","no extra padding for inside labels would be added by autorange,","so that the scales could match."].join(" ")},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc",description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","Otherwise on *category* and *multicategory* axes the default is *allow*.","In other cases the default is *hide past div*."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:nA(),tickwidth:aA(),tickcolor:iA,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks",description:"Determines whether or not the tick labels are drawn."},labelalias:{valType:"any",dflt:!1,editType:"ticks",description:["Replacement text for specific tick or hover labels.","For example using {US: 'USA', CA: 'Canada'} changes US to USA","and CA to Canada. The labels we would have shown must match","the keys exactly, after adding any tickprefix or ticksuffix.","For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash.","That means you need to use −1 instead of -1.","labelalias can be used with any axis type, and both keys (if needed)","and values (if desired) can include html-like tags or MathJax."].join(" ")},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks",description:["Determines whether long tick labels automatically grow the figure","margins."].join(" ")},showspikes:{valType:"boolean",dflt:!1,editType:"modebar",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,editType:"none",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,editType:"none",description:"Sets the width (in px) of the zero line."},spikedash:xg({},Yk,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none",description:"Determines whether spikelines are stuck to the cursor or to the closest datapoints."},tickfont:_g({editType:"ticks",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks",description:["Hide SI prefix for 10^n if |n| is below this number.","This only has an effect when `tickformat` is *SI* or *B*."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Kk("tick label")},tickformatstops:Xk("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not this stop is used.","If `false`, this stop is ignored even within its `dtickrange`."].join(" ")},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks",description:["range [*min*, *max*], where *min*, *max* - dtick values","which describe some zoom level, it is possible to omit *min*","or *max* value by passing *null*"].join(" ")},value:{valType:"string",dflt:"",editType:"ticks",description:["string - dtickformat for described zoom level, the same as *tickformat*"].join(" ")},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Kk("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:Ms.defaultLine,editType:"layoutstyle",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle",description:"Sets the width (in px) of the axis line."},showgrid:fA,gridcolor:oA,gridwidth:lA(),griddash:sA,zeroline:{valType:"boolean",editType:"ticks",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:Ms.defaultLine,editType:"ticks",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,editType:"ticks",description:"Sets the width (in px) of the zero line."},showdividers:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not a dividers are drawn","between the category levels of this axis.","Only has an effect on *multicategory* axes."].join(" ")},dividercolor:{valType:"color",dflt:Ms.defaultLine,editType:"ticks",description:["Sets the color of the dividers","Only has an effect on *multicategory* axes."].join(" ")},dividerwidth:{valType:"number",dflt:1,editType:"ticks",description:["Sets the width (in px) of the dividers","Only has an effect on *multicategory* axes."].join(" ")},anchor:{valType:"enumerated",values:["free",gi.idRegex.x.toString(),gi.idRegex.y.toString()],editType:"plot",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",gi.idRegex.x.toString(),gi.idRegex.y.toString()],editType:"plot",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis, with traces and axes visible for both","axes.","If *false*, this axis does not overlay any same-letter axes.","In this case, for axes with overlapping domains only the highest-numbered","axis will be visible."].join(" ")},minor:{tickmode:Zd,nticks:Jk("minor"),tick0:Qk,dtick:eA,tickvals:tA,ticks:rA,ticklen:nA("minor"),tickwidth:aA("minor"),tickcolor:iA,gridcolor:oA,gridwidth:lA("minor"),griddash:sA,showgrid:fA,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot",description:["Sets the layer on which this axis is displayed.","If *above traces*, this axis is displayed above all the subplot's traces","If *below traces*, this axis is displayed below all the subplot's traces,","but above the grid lines.","Useful when used together with scatter-like traces with `cliponaxis`","set to *false* to show markers and/or text nodes above this axis."].join(" ")},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot",description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},autoshift:{valType:"boolean",dflt:!1,editType:"plot",description:["Automatically reposition the axis to avoid","overlap with other axes with the same `overlaying` value.","This repositioning will account for any `shift` amount applied to other","axes on the same side with `autoshift` is set to true.","Only has an effect if `anchor` is set to *free*."].join(" ")},shift:{valType:"number",editType:"plot",description:["Moves the axis a given number of pixels from where it would have been otherwise.","Accepts both positive and negative values, which will shift the axis either right","or left, respectively.","If `autoshift` is set to true, then this defaults to a padding of -3 if `side` is set to *left*.","and defaults to +3 if `side` is set to *right*. Defaults to 0 if `autoshift` is set to false.","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","median ascending","median descending"],dflt:"trace",editType:"calc",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.","Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the","numerical order of the values.","Similarly, the order can be determined by the min, max, sum, mean or median of all the values."].join(" ")},categoryarray:{valType:"data_array",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, and `title` if in `editable: true` configuration.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")},title:{valType:"string",editType:"ticks",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the axis' title, please use `title.text` now."].join(" ")},titlefont:_g({editType:"ticks",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}},Tr=yi,kg=pn,uA=$r.extendFlat,rV=Ui.overrideAll,Ag=rV({orientation:{valType:"enumerated",values:["h","v"],dflt:"v",description:"Sets the orientation of the colorbar."},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",description:["Determines whether this color bar's thickness","(i.e. the measure in the constant color direction)","is set in units of plot *fraction* or in *pixels*.","Use `thickness` to set the value."].join(" ")},thickness:{valType:"number",min:0,dflt:30,description:["Sets the thickness of the color bar","This measure excludes the size of the padding, ticks and labels."].join(" ")},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this color bar's length","(i.e. the measure in the color variation direction)","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 color bar","This measure excludes the padding of both ends.","That is, the color bar length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",description:["Sets the x position with respect to `xref` of the color bar (in plot fraction).","When `xref` is *paper*, defaults to 1.02 when `orientation` is *v* and","0.5 when `orientation` is *h*.","When `xref` is *container*, defaults to *1* when `orientation` is *v* and","0.5 when `orientation` is *h*.","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:["left","center","right"],description:["Sets this color bar's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the color bar.","Defaults to *left* when `orientation` is *v* and","*center* when `orientation` is *h*."].join(" ")},xpad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the x direction."},y:{valType:"number",description:["Sets the y position with respect to `yref` of the color bar (in plot fraction).","When `yref` is *paper*, defaults to 0.5 when `orientation` is *v* and","1.02 when `orientation` is *h*.","When `yref` is *container*, defaults to 0.5 when `orientation` is *v* and","1 when `orientation` is *h*.","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:["top","middle","bottom"],description:["Sets this color bar's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the color bar.","Defaults to *middle* when `orientation` is *v* and","*bottom* when `orientation` is *h*."].join(" ")},ypad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the y direction."},outlinecolor:Tr.linecolor,outlinewidth:Tr.linewidth,bordercolor:Tr.linecolor,borderwidth:{valType:"number",min:0,dflt:0,description:["Sets the width (in px) or the border enclosing this color bar."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:"Sets the color of padded area."},tickmode:Tr.minor.tickmode,nticks:Tr.nticks,tick0:Tr.tick0,dtick:Tr.dtick,tickvals:Tr.tickvals,ticktext:Tr.ticktext,ticks:uA({},Tr.ticks,{dflt:""}),ticklabeloverflow:uA({},Tr.ticklabeloverflow,{description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","In other cases the default is *hide past div*."].join(" ")}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",description:["Determines where tick labels are drawn relative to the ticks.","Left and right options are used when `orientation` is *h*,","top and bottom when `orientation` is *v*."].join(" ")},ticklen:Tr.ticklen,tickwidth:Tr.tickwidth,tickcolor:Tr.tickcolor,ticklabelstep:Tr.ticklabelstep,showticklabels:Tr.showticklabels,labelalias:Tr.labelalias,tickfont:kg({description:"Sets the color bar's tick label font"}),tickangle:Tr.tickangle,tickformat:Tr.tickformat,tickformatstops:Tr.tickformatstops,tickprefix:Tr.tickprefix,showtickprefix:Tr.showtickprefix,ticksuffix:Tr.ticksuffix,showticksuffix:Tr.showticksuffix,separatethousands:Tr.separatethousands,exponentformat:Tr.exponentformat,minexponent:Tr.minexponent,showexponent:Tr.showexponent,title:{text:{valType:"string",description:["Sets the title of the color bar.","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:kg({description:["Sets this color bar's title font.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),side:{valType:"enumerated",values:["right","top","bottom"],description:["Determines the location of color bar's title","with respect to the color bar.","Defaults to *top* when `orientation` if *v* and ","defaults to *right* when `orientation` if *h*.","Note that the title's location used to be set","by the now deprecated `titleside` attribute."].join(" ")}},_deprecated:{title:{valType:"string",description:["Deprecated in favor of color bar's `title.text`.","Note that value of color bar's `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:kg({description:"Deprecated in favor of color bar's `title.font`."}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top",description:"Deprecated in favor of color bar's `title.side`."}}},"colorbars","from-root"),nV=Ag,aV=ps.counter,iV=HT,cA=vs.scales,oV=iV(cA);function vu(e){return"`"+e+"`"}var pu=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",a="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,i="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",l=typeof r.colorscaleDflt=="string"?cA[r.colorscaleDflt]:null,s=r.editTypeOverride||"",f=t?t+".":"",u,d;"colorAttr"in r?(u=r.colorAttr,d=r.colorAttr):(u={z:"z",c:"color"}[n],d="in "+vu(f+u));var h=a?" Has an effect only if "+d+" is set to a numerical array.":"",p=n+"auto",v=n+"min",m=n+"max",g=n+"mid",y=vu(f+p),w=vu(f+v),A=vu(f+m),x=w+" and "+A,_={};_[v]=_[m]=void 0;var T={};T[p]=!1;var C={};return u==="color"&&(C.color={valType:"color",arrayOk:!0,editType:s||"style",description:["Sets the",t,"color.","It accepts either a specific color","or an array of numbers that are mapped to the colorscale","relative to the max and min values of the array or relative to",x,"if set."].join(" ")},r.anim&&(C.color.anim=!0)),C[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:_,description:["Determines whether or not the color domain is computed","with respect to the input data (here "+d+") or the bounds set in",x+h,"Defaults to `false` when",x,"are set by the user."].join(" ")},C[v]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:T,description:["Sets the lower bound of the color domain."+h,"Value should have the same units as",d,"and if set,",A,"must be set as well."].join(" ")},C[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:T,description:["Sets the upper bound of the color domain."+h,"Value should have the same units as",d,"and if set,",w,"must be set as well."].join(" ")},C[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:_,description:["Sets the mid-point of the color domain by scaling",w,"and/or",A,"to be equidistant to this point."+h,"Value should have the same units as",d+".","Has no effect when",y,"is `false`."].join(" ")},C.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1},description:["Sets the colorscale."+h,"The colorscale must be an array containing","arrays mapping a normalized value to an","rgb, rgba, hex, hsl, hsv, or named color string.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.","To control the bounds of the colorscale in color space,","use",x+".","Alternatively, `colorscale` may be a palette name string","of the following list: "+oV+"."].join(" ")},C.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0},description:["Determines whether the colorscale is a default palette (`autocolorscale: true`)","or the palette determined by",vu(f+"colorscale")+"."+h,"In case `colorscale` is unspecified or `autocolorscale` is true, the default","palette will be chosen according to whether numbers in the `color` array are","all positive, all negative or mixed."].join(" ")},C.reversescale={valType:"boolean",dflt:!1,editType:"plot",description:["Reverses the color mapping if true."+h,"If true,",w,"will correspond to the last color","in the array and",A,"will correspond to the first color."].join(" ")},i||(C.showscale={valType:"boolean",dflt:o,editType:"calc",description:["Determines whether or not a colorbar is displayed for this trace."+h].join(" ")},C.colorbar=nV),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:aV("coloraxis"),dflt:null,editType:"calc",description:["Sets a reference to a shared color axis.","References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc.","Settings for these shared color axes are set in the layout, under","`layout.coloraxis`, `layout.coloraxis2`, etc.","Note that multiple color scales can be linked to the same color axis."].join(" ")}),C},lV=$r.extendFlat,sV=pu,Mg=vs.scales,Sg="Note that `autocolorscale` must be true for this attribute to work.",dA={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Mg.Reds,editType:"calc",description:["Sets the default sequential colorscale for positive values.",Sg].join(" ")},sequentialminus:{valType:"colorscale",dflt:Mg.Blues,editType:"calc",description:["Sets the default sequential colorscale for negative values.",Sg].join(" ")},diverging:{valType:"colorscale",dflt:Mg.RdBu,editType:"calc",description:["Sets the default diverging colorscale.",Sg].join(" ")}},coloraxis:lV({_isSubplotObj:!0,editType:"calc",description:[""].join(" ")},sV("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))},fV=Ue,hA=function(t){return fV.isPlainObject(t.colorbar)},Yd={},Cg=er,vA=Ue,pA=zr,uV=pA.ONEDAY,cV=pA.ONEWEEK;Yd.dtick=function(e,t){var r=t==="log",n=t==="date",a=t==="category",i=n?uV:1;if(!e)return i;if(Cg(e))return e=Number(e),e<=0?i:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return i;var o=e.charAt(0),l=e.substr(1);return l=Cg(l)?Number(l):0,l<=0||!(n&&o==="M"&&l===Math.round(l)||r&&o==="L"||r&&o==="D"&&(l===1||l===2))?i:e},Yd.tick0=function(e,t,r,n){if(t==="date")return vA.cleanDate(e,vA.dateTick0(r,n%cV===0?1:0));if(!(n==="D1"||n==="D2"))return Cg(e)?Number(e):0};var mA=Yd,dV=Ue.isArrayOrTypedArray,hV=jr.isTypedArraySpec,vV=jr.decodeTypedArraySpec,gA=function(t,r,n,a,i){i||(i={});var o=i.isMinor,l=o?t.minor||{}:t,s=o?r.minor:r,f=o?"minor.":"";function u(w){var A=l[w];return hV(A)&&(A=vV(A)),A!==void 0?A:(s._template||{})[w]}var d=u("tick0"),h=u("dtick"),p=u("tickvals"),v=dV(p)?"array":h?"linear":"auto",m=n(f+"tickmode",v);if(m==="auto"||m==="sync")n(f+"nticks");else if(m==="linear"){var g=s.dtick=mA.dtick(h,a);s.tick0=mA.tick0(d,a,r.calendar,g)}else if(a!=="multicategory"){var y=n(f+"tickvals");y===void 0?s.tickmode="auto":o||n("ticktext")}},Lg=Ue,yA=yi,bA=function(t,r,n,a){var i=a.isMinor,o=i?t.minor||{}:t,l=i?r.minor:r,s=i?yA.minor:yA,f=i?"minor.":"",u=Lg.coerce2(o,l,s,"ticklen",i?(r.ticklen||5)*.6:void 0),d=Lg.coerce2(o,l,s,"tickwidth",i?r.tickwidth||1:void 0),h=Lg.coerce2(o,l,s,"tickcolor",(i?r.tickcolor:void 0)||l.color),p=n(f+"ticks",!i&&a.outerTicks||u||d||h?"outside":"");p||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)},_A=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(i){return t[i]!==void 0}),a=function(i){return t[i]===t[n[0]]};if(n.every(a)||n.length===1)return t[n[0]]},Xd=Ue,pV=cr,bi=function(t,r,n){var a=n.name,i=n.inclusionAttr||"visible",o=r[a],l=Xd.isArrayOrTypedArray(t[a])?t[a]:[],s=r[a]=[],f=pV.arrayTemplater(r,a,i),u,d;for(u=0;uh-u?u=h-(d-h):d-h=0?m=a.colorscale.sequential:m=a.colorscale.sequentialminus,s._sync("colorscale",m)}},Jd=vs,Cs=Ha,mu={moduleType:"component",name:"colorscale",attributes:pu,layoutAttributes:dA,supplyLayoutDefaults:RV,handleDefaults:Ss,crossTraceDefaults:$V,calc:Kd,scales:Jd.scales,defaultScale:Jd.defaultScale,getScale:Jd.get,isValidScale:Jd.isValid,hasColorscale:Cs.hasColorscale,extractOpts:Cs.extractOpts,extractScale:Cs.extractScale,flipScale:Cs.flipScale,makeColorScaleFunc:Cs.makeColorScaleFunc,makeColorScaleFuncFromTrace:Cs.makeColorScaleFuncFromTrace},EA=Ue,NV=jr.isTypedArraySpec,ua={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return EA.isPlainObject(t)&&(EA.isArrayOrTypedArray(t.size)||NV(t.size))}},OV=er,BV=function(t,r){r||(r=2);var n=t.marker,a=n.sizeref||1,i=n.sizemin||0,o=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var s=o(l/r);return OV(s)&&s>0?Math.max(s,i):0}},Gi={};(function(e){var t=Ue;e.getSubplot=function(l){return l.subplot||l.xaxis+l.yaxis||l.geo},e.isTraceInSubplots=function(l,s){if(l.type==="splom"){for(var f=l.xaxes||[],u=l.yaxes||[],d=0;d=0&&f.index2&&(t.push([n].concat(a.splice(0,2))),i="l",n=n=="m"?"l":"L");;){if(a.length==Pg[i])return a.unshift(n),t.push(a);if(a.length0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=lt.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=eG||e>=400?0:Math.floor(Math.max(e,0))};function $A(e,t,r,n){var a=e%100;return lt.symbolFuncs[a](t,r,n)+(e>=200?tG:"")}var IA={x1:1,x2:0,y1:0,y2:0},NA={x1:0,x2:0,y1:1,y2:0},OA=qV("~f"),BA={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:IA},horizontalreversed:{node:"linearGradient",attrs:IA,reversed:!0},vertical:{node:"linearGradient",attrs:NA},verticalreversed:{node:"linearGradient",attrs:NA,reversed:!0}};lt.gradient=function(e,t,r,n,a,i){for(var o=a.length,l=BA[n],s=new Array(o),f=0;f=0&&e.i===void 0&&(e.i=i.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=n.ms2mrc(e.ms),e.mrc=s,n.selectedSizeFn&&(s=e.mrc=n.selectedSizeFn(e));var f=lt.symbolNumber(e.mx||o.symbol)||0;e.om=f%200>=100;var u=Vg(e,r),d=Hg(e,r);t.attr("d",$A(f,s,u,d))}var h=!1,p,v,m;if(e.so)m=l.outlierwidth,v=l.outliercolor,p=o.outliercolor;else{var g=(l||{}).width;m=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?v=e.mlcc=n.lineScale(e.mlc):dr.isArrayOrTypedArray(l.color)?v=gn.defaultLine:v=l.color,dr.isArrayOrTypedArray(o.color)&&(p=gn.defaultLine,h=!0),"mc"in e?p=e.mcc=n.markerScale(e.mc):p=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(p=n.selectedColorFn(e))}if(e.om)t.call(gn.stroke,p).style({"stroke-width":(m||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:m)+"px");var y=o.gradient,w=e.mgt;w?h=!0:w=y&&y.type,dr.isArrayOrTypedArray(w)&&(w=w[0],BA[w]||(w=0));var A=o.pattern,x=A&<.getPatternAttr(A.shape,e.i,"");if(w&&w!=="none"){var _=e.mgc;_?h=!0:_=y.color;var T=r.uid;h&&(T+="-"+e.i),lt.gradient(t,a,T,w,[[0,_],[1,p]],"fill")}else if(x){var C=!1,S=A.fgcolor;!S&&i&&i.color&&(S=i.color,C=!0);var E=lt.getPatternAttr(S,e.i,i&&i.color||null),F=lt.getPatternAttr(A.bgcolor,e.i,null),$=A.fgopacity,N=lt.getPatternAttr(A.size,e.i,8),B=lt.getPatternAttr(A.solidity,e.i,.3);C=C||e.mcc||dr.isArrayOrTypedArray(A.shape)||dr.isArrayOrTypedArray(A.bgcolor)||dr.isArrayOrTypedArray(A.fgcolor)||dr.isArrayOrTypedArray(A.size)||dr.isArrayOrTypedArray(A.solidity);var G=r.uid;C&&(G+="-"+e.i),lt.pattern(t,"point",a,G,x,N,B,e.mcc,A.fillmode,F,E,$)}else dr.isArrayOrTypedArray(p)?gn.fill(t,p[e.i]):gn.fill(t,p);m&&gn.stroke(t,v)}},lt.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=lt.tryColorscale(r,""),t.lineScale=lt.tryColorscale(r,"line"),Qd.traceIs(e,"symbols")&&(t.ms2mrc=KV.isBubble(e)?JV(e):function(){return(r.size||6)/2}),e.selectedpoints&&dr.extendFlat(t,lt.makeSelectedPointStyleFns(e)),t},lt.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},a=e.marker||{},i=r.marker||{},o=n.marker||{},l=a.opacity,s=i.opacity,f=o.opacity,u=s!==void 0,d=f!==void 0;(dr.isArrayOrTypedArray(l)||u||d)&&(t.selectedOpacityFn=function(x){var _=x.mo===void 0?a.opacity:x.mo;return x.selected?u?s:_:d?f:FA*_});var h=a.color,p=i.color,v=o.color;(p||v)&&(t.selectedColorFn=function(x){var _=x.mcc||h;return x.selected?p||_:v||_});var m=a.size,g=i.size,y=o.size,w=g!==void 0,A=y!==void 0;return Qd.traceIs(e,"symbols")&&(w||A)&&(t.selectedSizeFn=function(x){var _=x.mrc||m/2;return x.selected?w?g/2:_:A?y/2:_}),t},lt.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=r.textfont||{},o=n.textfont||{},l=a.color,s=i.color,f=o.color;return t.selectedTextColorFn=function(u){var d=u.tc||l;return u.selected?s||d:f||(s?d:gn.addOpacity(d,FA))},t},lt.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=lt.makeSelectedPointStyleFns(t),n=t.marker||{},a=[];r.selectedOpacityFn&&a.push(function(i,o){i.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&a.push(function(i,o){gn.fill(i,r.selectedColorFn(o))}),r.selectedSizeFn&&a.push(function(i,o){var l=o.mx||n.symbol||0,s=r.selectedSizeFn(o);i.attr("d",$A(lt.symbolNumber(l),s,Vg(o,t),Hg(o,t))),o.mrc2=s}),a.length&&e.each(function(i){for(var o=Qr.select(this),l=0;l0?r:0}lt.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var a=lt.makeSelectedTextStyleFns(t);n=a.selectedTextColorFn}var i=t.texttemplate,o=r._fullLayout;e.each(function(l){var s=Qr.select(this),f=i?dr.extractOption(l,t,"txt","texttemplate"):dr.extractOption(l,t,"tx","text");if(!f&&f!==0){s.remove();return}if(i){var u=t._module.formatLabels,d=u?u(l,t,o):{},h={};QV(h,t,l.i);var p=t._meta||{};f=dr.texttemplateString(f,d,o._d3locale,h,l,p)}var v=l.tp||t.textposition,m=jA(l,t),g=n?n(l):l.tc||t.textfont.color;s.call(lt.font,l.tf||t.textfont.family,m,g).text(f).call(Ig.convertToTspans,r).call(HA,v,m,l.mrc)})}},lt.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=lt.makeSelectedTextStyleFns(t);e.each(function(n){var a=Qr.select(this),i=r.selectedTextColorFn(n),o=n.tp||t.textposition,l=jA(n,t);gn.fill(a,i);var s=Qd.traceIs(t,"bar-like");HA(a,o,l,n.mrc2||n.mrc,s)})}};var UA=.5;lt.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],a;for(a=1;a=s||x>=u&&x<=s)&&(_<=d&&_>=f||_>=d&&_<=f)&&(e=[x,_])}return e}lt.applyBackoff=qA,lt.makeTester=function(){var e=dr.ensureSingleById(Qr.select("body"),"svg","js-plotly-tester",function(r){r.attr(ZV.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=dr.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});lt.tester=e,lt.testref=t},lt.savedBBoxes={};var Og=0,aG=1e4;lt.bBox=function(e,t,r){r||(r=WA(e));var n;if(r){if(n=lt.savedBBoxes[r],n)return dr.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=WA(a),r){var i=+a.getAttribute("x")||0,o=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var s=lt.bBox(a,!1,r);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(r+="~"+i+"~"+o+"~"+l,n=lt.savedBBoxes[r],n)return dr.extendFlat({},n)}}var f,u;t?f=e:(u=lt.tester.node(),f=e.cloneNode(!0),u.appendChild(f)),Qr.select(f).attr("transform",null).call(Ig.positionText,0,0);var d=f.getBoundingClientRect(),h=lt.testref.node().getBoundingClientRect();t||u.removeChild(f);var p={height:d.height,width:d.width,left:d.left-h.left,top:d.top-h.top,right:d.right-h.left,bottom:d.bottom-h.top};return Og>=aG&&(lt.savedBBoxes={},Og=0),r&&(lt.savedBBoxes[r]=p),Og++,dr.extendFlat({},p)};function WA(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}lt.setClipUrl=function(e,t,r){e.attr("clip-path",Bg(t,r))};function Bg(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}lt.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",a=n.replace(t,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}},lt.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=gu(t,r),o=o.trim(),e[i]("transform",o),o},lt.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",a=n.replace(t,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}},lt.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[i]("transform",o),o};var iG=/\s*sc.*/;lt.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(iG,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var oG=/translate\([^)]*\)\s*$/;lt.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,a=Qr.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(oG);t===1&&r===1?n=[]:n=[gu(o,l),"scale("+t+","+r+")",gu(-o,-l)],s&&n.push(s),a.attr("transform",n.join(""))}})};function Hg(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}lt.getMarkerStandoff=Hg;var yu=Math.atan2,xl=Math.cos,Es=Math.sin;function ZA(e,t){var r=t[0],n=t[1];return[r*xl(e)-n*Es(e),r*Es(e)+n*xl(e)]}var YA,XA,KA,JA,jg,Ug;function Vg(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||dr.isArrayOrTypedArray(r))&&(r=0));var n,a,i=t.marker.angleref;if(i==="previous"||i==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],a=o[1]}else{var l=t._xA,s=t._yA;if(l&&s)n=l.c2p(e.x),a=s.c2p(e.y);else return 90}if(t._geo){var f=e.lonlat[0],u=e.lonlat[1],d=t._geo.project([f,u+1e-5]),h=t._geo.project([f+1e-5,u]),p=yu(h[1]-a,h[0]-n),v=yu(d[1]-a,d[0]-n),m;if(i==="north")m=r/180*Math.PI;else if(i==="previous"){var g=f/180*Math.PI,y=u/180*Math.PI,w=YA/180*Math.PI,A=XA/180*Math.PI,x=w-g,_=xl(A)*Es(x),T=Es(A)*xl(y)-xl(A)*Es(y)*xl(x);m=-yu(_,T)-Math.PI,YA=f,XA=u}var C=ZA(p,[xl(m),0]),S=ZA(v,[Es(m),0]);r=yu(C[1]+S[1],C[0]+S[0])/Math.PI*180,i==="previous"&&!(Ug===t.uid&&e.i===jg+1)&&(r=null)}if(i==="previous"&&!t._geo)if(Ug===t.uid&&e.i===jg+1&&yl(n)&&yl(a)){var E=n-KA,F=a-JA,$=t.line&&t.line.shape||"",N=$.slice($.length-1);N==="h"&&(F=0),N==="v"&&(E=0),r+=yu(F,E)/Math.PI*180+90}else r=null}return KA=n,JA=a,jg=e.i,Ug=t.uid,r}lt.getMarkerAngle=Vg;var hr=Ok.exports,th=Qt,lG=er,QA=sn,eM=Pt,Ds=Ue,tM=Ds.strTranslate,rM=hr,nM=Yt,Gg=mn,aM=Vm,sG=_n.OPPOSITE_SIDE,iM=/ [XY][0-9]* /;function fG(e,t,r){var n=r.propContainer,a=r.propName,i=r.placeholder,o=r.traceIndex,l=r.avoid||{},s=r.attributes,f=r.transform,u=r.containerGroup,d=e._fullLayout,h=1,p=!1,v=n.title,m=(v&&v.text?v.text:"").trim(),g=v&&v.font?v.font:{},y=g.family,w=g.size,A=g.color,x;a==="title.text"?x="titleText":a.indexOf("axis")!==-1?x="axisTitleText":a.indexOf("colorbar"!==-1)&&(x="colorbarTitleText");var _=e._context.edits[x];m===""?h=0:m.replace(iM," % ")===i.replace(iM," % ")&&(h=.2,p=!0,_||(m="")),r._meta?m=Ds.templateString(m,r._meta):d._meta&&(m=Ds.templateString(m,d._meta));var T=m||_,C;u||(u=Ds.ensureSingle(d._infolayer,"g","g-"+t),C=d._hColorbarMoveTitle);var S=u.selectAll("text").data(T?[0]:[]);if(S.enter().append("text"),S.text(m).attr("class",t),S.exit().remove(),!T)return u;function E(B){Ds.syncOrAsync([F,$],B)}function F(B){var G;return!f&&C&&(f={}),f?(G="",f.rotate&&(G+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||C)&&(G+=tM(0,(f.offset||0)-(C||0)))):G=null,B.attr("transform",G),B.style({"font-family":y,"font-size":th.round(w,2)+"px",fill:nM.rgb(A),opacity:h*nM.opacity(A),"font-weight":QA.fontWeight}).attr(s).call(Gg.convertToTspans,e),QA.previousPromises(e)}function $(B){var G=th.select(B.node().parentNode);if(l&&l.selection&&l.side&&m){G.attr("transform",null);var J=sG[l.side],q=l.side==="left"||l.side==="top"?-1:1,I=lG(l.pad)?l.pad:2,z=rM.bBox(G.node()),P={t:0,b:0,l:0,r:0},H=e._fullLayout._reservedMargin;for(var j in H)for(var Z in H[j]){var te=H[j][Z];P[Z]=Math.max(P[Z],te)}var ne={left:P.l,top:P.t,right:d.width-P.r,bottom:d.height-P.b},ie=l.maxShift||q*(ne[l.side]-z[l.side]),ee=0;if(ie<0)ee=ie;else{var ue=l.offsetLeft||0,U=l.offsetTop||0;z.left-=ue,z.right-=ue,z.top-=U,z.bottom-=U,l.selection.each(function(){var Y=rM.bBox(this);Ds.bBoxIntersect(z,Y,I)&&(ee=Math.max(ee,q*(Y[l.side]-z[J])+I))}),ee=Math.min(ie,ee),n._titleScoot=Math.abs(ee)}if(ee>0||ie<0){var V={left:[-ee,0],right:[ee,0],top:[0,-ee],bottom:[0,ee]}[l.side];G.attr("transform",tM(V[0],V[1]))}}}S.call(E);function N(){h=0,p=!0,S.text(i).on("mouseover.opacity",function(){th.select(this).transition().duration(aM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){th.select(this).transition().duration(aM.HIDE_PLACEHOLDER).style("opacity",0)})}return _&&(m?S.on(".opacity",null):N(),S.call(Gg.makeEditable,{gd:e}).on("edit",function(B){o!==void 0?eM.call("_guiRestyle",e,a,B,o):eM.call("_guiRelayout",e,a,B)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(E)}).on("input",function(B){this.text(B||" ").call(Gg.positionText,s.x,s.y)})),S.classed("js-placeholder",p),u}var rh={draw:fG},uG=Qt,cG=Kf.utcFormat,yr=Ue,dG=yr.numberFormat,_i=er,Mo=yr.cleanNumber,hG=yr.ms2DateTime,oM=yr.dateTime2ms,xi=yr.ensureNumber,lM=yr.isArrayOrTypedArray,So=zr,nh=So.FP_SAFE,ja=So.BADNUM,vG=So.LOG_CLIP,pG=So.ONEWEEK,ah=So.ONEDAY,ih=So.ONEHOUR,sM=So.ONEMIN,fM=So.ONESEC,oh=Jr,lh=Dn,sh=lh.HOUR_PATTERN,fh=lh.WEEKDAY_PATTERN;function bu(e){return Math.pow(10,e)}function qg(e){return e!=null}var Wg=function(t,r){r=r||{};var n=t._id||"x",a=n.charAt(0);function i(x,_){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&_&&t.range&&t.range.length===2){var T=t.range[0],C=t.range[1];return .5*(T+C-2*vG*Math.abs(T-C))}else return ja}function o(x,_,T,C){if((C||{}).msUTC&&_i(x))return+x;var S=oM(x,T||t.calendar);if(S===ja)if(_i(x)){x=+x;var E=Math.floor(yr.mod(x+.05,1)*10),F=Math.round(x-E/10);S=oM(new Date(F))+E/10}else return ja;return S}function l(x,_,T){return hG(x,_,T||t.calendar)}function s(x){return t._categories[Math.round(x)]}function f(x){if(qg(x)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[x]!==void 0)return t._categoriesMap[x];t._categories.push(typeof x=="number"?String(x):x);var _=t._categories.length-1;return t._categoriesMap[x]=_,_}return ja}function u(x,_){for(var T=new Array(_),C=0;C<_;C++){var S=(x[0]||[])[C],E=(x[1]||[])[C];T[C]=d([S,E])}return T}function d(x){if(t._categoriesMap)return t._categoriesMap[x]}function h(x){var _=d(x);if(_!==void 0)return _;if(_i(x))return+x}function p(x){return _i(x)?+x:d(x)}function v(x,_,T){return uG.round(T+_*x,2)}function m(x,_,T){return(x-T)/_}var g=function(_){return _i(_)?v(_,t._m,t._b):ja},y=function(x){return m(x,t._m,t._b)};if(t.rangebreaks){var w=a==="y";g=function(x){if(!_i(x))return ja;var _=t._rangebreaks.length;if(!_)return v(x,t._m,t._b);var T=w;t.range[0]>t.range[1]&&(T=!T);for(var C=T?-1:1,S=C*x,E=0,F=0;F<_;F++){var $=C*t._rangebreaks[F].min,N=C*t._rangebreaks[F].max;if(S<$)break;if(S>N)E=F+1;else{E=S<($+N)/2?F:F+1;break}}var B=t._B[E]||0;return isFinite(B)?v(x,t._m2,B):0},y=function(x){var _=t._rangebreaks.length;if(!_)return m(x,t._m,t._b);for(var T=0,C=0;C<_&&!(xt._rangebreaks[C].pmax&&(T=C+1);return m(x,t._m2,t._B[T])}}t.c2l=t.type==="log"?i:xi,t.l2c=t.type==="log"?bu:xi,t.l2p=g,t.p2l=y,t.c2p=t.type==="log"?function(x,_){return g(i(x,_))}:g,t.p2c=t.type==="log"?function(x){return bu(y(x))}:y,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=Mo,t.c2d=t.c2r=t.l2d=t.l2r=xi,t.d2p=t.r2p=function(x){return t.l2p(Mo(x))},t.p2d=t.p2r=y,t.cleanPos=xi):t.type==="log"?(t.d2r=t.d2l=function(x,_){return i(Mo(x),_)},t.r2d=t.r2c=function(x){return bu(Mo(x))},t.d2c=t.r2l=Mo,t.c2d=t.l2r=xi,t.c2r=i,t.l2d=bu,t.d2p=function(x,_){return t.l2p(t.d2r(x,_))},t.p2d=function(x){return bu(y(x))},t.r2p=function(x){return t.l2p(Mo(x))},t.p2r=y,t.cleanPos=xi):t.type==="date"?(t.d2r=t.r2d=yr.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=l,t.d2p=t.r2p=function(x,_,T){return t.l2p(o(x,0,T))},t.p2d=t.p2r=function(x,_,T){return l(y(x),_,T)},t.cleanPos=function(x){return yr.cleanDate(x,ja,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=f,t.r2d=t.c2d=t.l2d=s,t.d2r=t.d2l_noadd=h,t.r2c=function(x){var _=p(x);return _!==void 0?_:t.fraction2r(.5)},t.l2r=t.c2r=xi,t.r2l=p,t.d2p=function(x){return t.l2p(t.r2c(x))},t.p2d=function(x){return s(y(x))},t.r2p=t.d2p,t.p2r=y,t.cleanPos=function(x){return typeof x=="string"&&x!==""?x:xi(x)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=s,t.d2r=t.d2l_noadd=h,t.r2c=function(x){var _=h(x);return _!==void 0?_:t.fraction2r(.5)},t.r2c_just_indices=d,t.l2r=t.c2r=xi,t.r2l=h,t.d2p=function(x){return t.l2p(t.r2c(x))},t.p2d=function(x){return s(y(x))},t.r2p=t.d2p,t.p2r=y,t.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:xi(x)},t.setupMultiCategory=function(x){var _=t._traceIndices,T,C,S=t._matchGroup;if(S&&t._categories.length===0){for(var E in S)if(E!==n){var F=r[oh.id2name(E)];_=_.concat(F._traceIndices)}}var $=[[0,{}],[0,{}]],N=[];for(T=0;T<_.length;T++){var B=x[_[T]];if(a in B){var G=B[a],J=B._length||yr.minRowLength(G);if(lM(G[0])&&lM(G[1]))for(C=0;CF[1]&&(C[E?0:1]=T),C[0]===C[1]){var $=t.l2r(_),N=t.l2r(T);if(_!==void 0){var B=$+1;T!==void 0&&(B=Math.min(B,N)),C[E?1:0]=B}if(T!==void 0){var G=N+1;_!==void 0&&(G=Math.max(G,$)),C[E?0:1]=G}}}},t.cleanRange=function(x,_){t._cleanRange(x,_),t.limitRange(x)},t._cleanRange=function(x,_){_||(_={}),x||(x="range");var T=yr.nestedProperty(t,x).get(),C,S;if(t.type==="date"?S=yr.dfltRange(t.calendar):a==="y"?S=lh.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=_.dfltRange||lh.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!T||T.length!==2){yr.nestedProperty(t,x).set(S);return}var E=T[0]===null,F=T[1]===null;for(t.type==="date"&&!t.autorange&&(T[0]=yr.cleanDate(T[0],ja,t.calendar),T[1]=yr.cleanDate(T[1],ja,t.calendar)),C=0;C<2;C++)if(t.type==="date"){if(!yr.isDateTime(T[C],t.calendar)){t[x]=S;break}if(t.r2l(T[0])===t.r2l(T[1])){var $=yr.constrain(t.r2l(T[0]),yr.MIN_MS+1e3,yr.MAX_MS-1e3);T[0]=t.l2r($-1e3),T[1]=t.l2r($+1e3);break}}else{if(!_i(T[C]))if(!(E||F)&&_i(T[1-C]))T[C]=T[1-C]*(C?10:.1);else{t[x]=S;break}if(T[C]<-nh?T[C]=-nh:T[C]>nh&&(T[C]=nh),T[0]===T[1]){var N=Math.max(1,Math.abs(T[0]*1e-6));T[0]-=N,T[1]+=N}}},t.setScale=function(x){var _=r._size;if(t.overlaying){var T=oh.getFromId({_fullLayout:r},t.overlaying);t.domain=T.domain}var C=x&&t._r?"_r":"range",S=t.calendar;t.cleanRange(C);var E=t.r2l(t[C][0],S),F=t.r2l(t[C][1],S),$=a==="y";if($?(t._offset=_.t+(1-t.domain[1])*_.h,t._length=_.h*(t.domain[1]-t.domain[0]),t._m=t._length/(E-F),t._b=-t._m*F):(t._offset=_.l+t.domain[0]*_.w,t._length=_.w*(t.domain[1]-t.domain[0]),t._m=t._length/(F-E),t._b=-t._m*E),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var N,B;if(t._rangebreaks=t.locateBreaks(Math.min(E,F),Math.max(E,F)),t._rangebreaks.length){for(N=0;NF&&(G=!G),G&&t._rangebreaks.reverse();var J=G?-1:1;for(t._m2=J*t._length/(Math.abs(F-E)-t._lBreaks),t._B.push(-t._m2*($?F:E)),N=0;NS&&(S+=7,ES&&(S+=24,E=C&&E=C&&x=ee.min&&(Zee.max&&(ee.max=te),ne=!1)}ne&&F.push({min:Z,max:te})}};for(T=0;T<$.length;T++){var B=$[T];if(B.enabled)if(B.bounds){var G=x,J=_;B.pattern&&(G=Math.floor(G)),C=yr.simpleMap(B.bounds,B.pattern?Mo:t.r2l),S=C[0],E=C[1];var q=new Date(G),I,z;switch(B.pattern){case fh:z=pG,I=((Ei*2}function hM(e){return Math.max(1,(e-1)/1e3)}function wG(e,t){for(var r=e.length,n=hM(r),a=0,i=0,o={},l=0;la*2}function TG(e){return uh(e[0])&&uh(e[1])}var kG=Qt,vM=er,Co=Ue,ch=zr.FP_SAFE,AG=Pt,MG=hr,pM=Jr,SG=pM.getFromId,CG=pM.isLinked,dh={applyAutorangeOptions:_M,getAutoRange:Yg,makePadFn:Xg,doAutoRange:EG,findExtremes:DG,concatExtremes:Kg};function Yg(e,t){var r,n,a=[],i=e._fullLayout,o=Xg(i,t,0),l=Xg(i,t,1),s=Kg(e,t),f=s.min,u=s.max;if(f.length===0||u.length===0)return Co.simpleMap(t.range,t.r2l);var d=f[0].val,h=u[0].val;for(r=1;r0&&(F=A-o(T)-l(C),F>x?$/F>_&&(S=T,E=C,_=$/F):$/A>_&&(S={val:T.val,nopad:1},E={val:C.val,nopad:1},_=$/A));function N(I,z){return Math.max(I,l(z))}if(d===h){var B=d-1,G=d+1;if(y)if(d===0)a=[0,1];else{var J=(d>0?u:f).reduce(N,0),q=d/(1-Math.min(.5,J/A));a=d>0?[0,q]:[q,0]}else w?a=[Math.max(0,B),Math.max(1,G)]:a=[B,G]}else y?(S.val>=0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):w&&(S.val-_*o(S)<0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),_=(E.val-S.val-mM(t,T.val,C.val))/(A-o(S)-l(E)),a=[S.val-_*o(S),E.val+_*l(E)];return a=_M(a,t),t.limitRange&&t.limitRange(),v&&a.reverse(),Co.simpleMap(a,t.l2r||Number)}function mM(e,t,r){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),i=0;i0?r.ppadplus:r.ppadminus)||r.ppad||0),T=x((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),C=x(r.vpadplus||r.vpad),S=x(r.vpadminus||r.vpad);if(!f){if(w=1/0,A=-1/0,s)for(d=0;d0&&(w=h),h>A&&h-ch&&(w=h),h>A&&h=$;d--)F(d);return{min:n,max:a,opts:r}}function Jg(e,t,r,n){yM(e,t,r,n,RG)}function Qg(e,t,r,n){yM(e,t,r,n,FG)}function yM(e,t,r,n,a){for(var i=n.tozero,o=n.extrapad,l=!0,s=0;s=r&&(f.extrapad||!o)){l=!1;break}else a(t,f.val)&&f.pad<=r&&(o||!f.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&t===0;e.push({val:t,pad:u?0:r,extrapad:u?!1:o})}}function bM(e){return vM(e)&&Math.abs(e)=t}function PG(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&hh(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&hh(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function zG(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&hh(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&hh(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function hh(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=s&&(i=s,r=s),o<=s&&(o=s,n=s)}}return r=PG(r,t),n=zG(n,t),[r,n]}var ca=Qt,Ir=er,Rs=sn,_u=Pt,Ot=Ue,Fs=Ot.strTranslate,xu=mn,$G=rh,wu=Yt,ra=hr,IG=yi,xM=Yd,xn=zr,NG=xn.ONEMAXYEAR,vh=xn.ONEAVGYEAR,e0=xn.ONEMINYEAR,OG=xn.ONEMAXQUARTER,t0=xn.ONEAVGQUARTER,r0=xn.ONEMINQUARTER,BG=xn.ONEMAXMONTH,Ps=xn.ONEAVGMONTH,n0=xn.ONEMINMONTH,da=xn.ONEWEEK,Rn=xn.ONEDAY,wl=Rn/2,qi=xn.ONEHOUR,ph=xn.ONEMIN,a0=xn.ONESEC,Tl=xn.MINUS_SIGN,mh=xn.BADNUM,i0={K:"zeroline"},o0={K:"gridline",L:"path"},l0={K:"minor-gridline",L:"path"},wM={K:"tick",L:"path"},TM={K:"tick",L:"text"},kM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},gh=_n,yh=gh.MID_SHIFT,kl=gh.CAP_SHIFT,bh=gh.LINE_SPACING,HG=gh.OPPOSITE_SIDE,_h=3,Ye=Nk.exports={};Ye.setConvert=Wg;var jG=dM,Wi=Jr,UG=Wi.idSort,VG=Wi.isLinked;Ye.id2name=Wi.id2name,Ye.name2id=Wi.name2id,Ye.cleanId=Wi.cleanId,Ye.list=Wi.list,Ye.listIds=Wi.listIds,Ye.getFromId=Wi.getFromId,Ye.getFromTrace=Wi.getFromTrace;var AM=dh;Ye.getAutoRange=AM.getAutoRange,Ye.findExtremes=AM.findExtremes;var GG=1e-4;function s0(e){var t=(e[1]-e[0])*GG;return[e[0]-t,e[1]+t]}Ye.coerceRef=function(e,t,r,n,a,i){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+"axis"],s=n+"ref",f={};return a||(a=l[0]||(typeof i=="string"?i:i[0])),i||(i=a),l=l.concat(l.map(function(u){return u+" domain"})),f[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:a},Ot.coerce(e,t,f,s)},Ye.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"},Ye.coercePosition=function(e,t,r,n,a,i){var o,l,s=Ye.getRefType(n);if(s!=="range")o=Ot.ensureNumber,l=r(a,i);else{var f=Ye.getFromId(t,n);i=f.fraction2r(i),l=r(a,i),o=f.cleanPos}e[a]=o(l)},Ye.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?Ot.ensureNumber:Ye.getFromId(t,r).cleanPos;return n(e)},Ye.redrawComponents=function(e,t){t=t||Ye.listIds(e);var r=e._fullLayout;function n(a,i,o,l){for(var s=_u.getComponentMethod(a,i),f={},u=0;u2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))},Ye.saveRangeInitial=function(e,t){for(var r=Ye.list(e,"",!0),n=!1,a=0;ad*.3||f(n)||f(a))){var h=r.dtick/2;e+=e+ho){var l=Number(r.substr(1));i.exactYears>o&&l%12===0?e=Ye.tickIncrement(e,"M6","reverse")+Rn*1.5:i.exactMonths>o?e=Ye.tickIncrement(e,"M1","reverse")+Rn*15.5:e-=wl;var s=Ye.tickIncrement(e,r);if(s<=n)return s}return e}Ye.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&Ir(t._tmin),a;if(n){var i=Ye.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,i*.99+t._tmin*.01]}else{var o=Ot.simpleMap(t.range,t.r2l);a=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ot.simpleMap(a,t.l2r),e._isMinor=!0,Ye.prepTicks(e,r),n){var l=Ir(t.dtick),s=Ir(e.dtick),f=l?t.dtick:+t.dtick.substring(1),u=s?e.dtick:+e.dtick.substring(1);l&&s?f0(f,u)?f===2*da&&u===2*Rn&&(e.dtick=da):f===2*da&&u===3*Rn?e.dtick=da:f===da&&!(t._input.minor||{}).nticks?e.dtick=Rn:CM(f/u,2.5)?e.dtick=f/2:e.dtick=f:String(t.dtick).charAt(0)==="M"?s?e.dtick="M1":f0(f,u)?f>=12&&u===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?f0(f,u)||(e.dtick=CM(f/u,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function f0(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function CM(e,t){return Math.abs(e/t-1)<.001}Ye.prepTicks=function(e,t){var r=Ot.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Ot.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Ot.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=n-1,o=n):(i=n,o=n);var l=e[i].value,s=e[o].value,f=Math.abs(s-l),u=r||f,d=0;u>=e0?f>=e0&&f<=NG?d=f:d=vh:r===t0&&u>=r0?f>=r0&&f<=OG?d=f:d=t0:u>=n0?f>=n0&&f<=BG?d=f:d=Ps:r===da&&u>=da?d=da:u>=Rn?d=Rn:r===wl&&u>=wl?d=wl:r===qi&&u>=qi&&(d=qi);var h;d>=f&&(d=f,h=!0);var p=a+d;if(t.rangebreaks&&d>0){for(var v=84,m=0,g=0;gda&&(d=f)}(d>0||n===0)&&(e[n].periodX=a+d/2)}}Ye.calcTicks=function(t,r){for(var n=t.type,a=t.calendar,i=t.ticklabelstep,o=t.ticklabelmode==="period",l=Ot.simpleMap(t.range,t.r2l,void 0,void 0,r),s=l[1]=(g?0:1);y--){var w=!y;y?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var A=y?t:Ot.extendFlat({},t,t.minor);if(w?Ye.prepMinorTicks(A,t,r):Ye.prepTicks(A,r),A.tickmode==="array"){y?(v=[],h=EM(t,!w)):(m=[],p=EM(t,!w));continue}if(A.tickmode==="sync"){v=[],h=KG(t);continue}var x=s0(l),_=x[0],T=x[1],C=Ir(A.dtick),S=n==="log"&&!(C||A.dtick.charAt(0)==="L"),E=Ye.tickFirst(A,r);if(y){if(t._tmin=E,E<_!==s)break;(n==="category"||n==="multicategory")&&(T=s?Math.max(-.5,T):Math.min(t._categories.length-.5,T))}var F=null,$=E,N;if(y){var B;C?B=t.dtick:n==="date"?typeof t.dtick=="string"&&t.dtick.charAt(0)==="M"&&(B=Ps*t.dtick.substring(1)):B=t._roughDTick,N=Math.round((t.r2l($)-t.r2l(t.tick0))/B)-1}var G=A.dtick;for(A.rangebreaks&&A._tick0Init!==A.tick0&&($=y0($,t),s||($=Ye.tickIncrement($,G,!s,a))),y&&o&&($=Ye.tickIncrement($,G,!s,a),N--);s?$>=T:$<=T;$=Ye.tickIncrement($,G,s,a)){if(y&&N++,A.rangebreaks&&!s){if($<_)continue;if(A.maskBreaks($)===mh&&y0($,A)>=u)break}if(v.length>d||$===F)break;F=$;var J={value:$};y?(S&&$!==($|0)&&(J.simpleLabel=!0),i>1&&N%i&&(J.skipLabel=!0),v.push(J)):(J.minor=!0,m.push(J))}}if(g){var q=t.minor.ticks==="inside"&&t.ticks==="outside"||t.minor.ticks==="outside"&&t.ticks==="inside";if(!q){for(var I=v.map(function(pe){return pe.value}),z=[],P=0;P-1;ne--){if(v[ne].drop){v.splice(ne,1);continue}v[ne].value=y0(v[ne].value,t);var U=t.c2p(v[ne].value);(ie?ue>U-ee:ueu||Qu&&(se.periodX=u),Qa&&hvh)t/=vh,n=a(10),e.dtick="M"+12*wi(t,n,xh);else if(i>Ps)t/=Ps,e.dtick="M"+wi(t,1,DM);else if(i>Rn){if(e.dtick=wi(t,Rn,e._hasDayOfWeekBreaks?[1,2,7,14]:JG),!r){var o=Ye.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ot.dateTick0(e.calendar,2):e.tick0=Ot.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>qi?e.dtick=wi(t,qi,DM):i>ph?e.dtick=wi(t,ph,RM):i>a0?e.dtick=wi(t,a0,RM):(n=a(10),e.dtick=wi(t,n,xh))}else if(e.type==="log"){e.tick0=0;var s=Ot.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(s[1]-s[0])<1){var f=1.5*Math.abs((s[1]-s[0])/t);t=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/f,n=a(10),e.dtick="L"+wi(t,n,xh)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):g0(e)?(e.tick0=0,n=1,e.dtick=wi(t,n,QG)):(e.tick0=0,n=a(10),e.dtick=wi(t,n,xh));if(e.dtick===0&&(e.dtick=1),!Ir(e.dtick)&&typeof e.dtick!="string"){var u=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(u)}};function zM(e){var t=e.dtick;if(e._tickexponent=0,!Ir(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),a=n.length;if(String(t).charAt(0)==="M")a>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=Rn&&a<=10||t>=Rn*15)e._tickround="d";else if(t>=ph&&a<=16||t>=qi)e._tickround="M";else if(t>=a0&&a<=19||t>=ph)e._tickround="S";else{var i=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(a,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Ir(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Ir(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),f=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>f&&(wh(e.exponentformat)&&!d0(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,t,r,n){var a=r?-1:1;if(Ir(t))return Ot.increment(e,a*t);var i=t.charAt(0),o=a*Number(t.substr(1));if(i==="M")return Ot.incrementMonth(e,o,n);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=t==="D2"?PM:FM,s=e+a*.01,f=Ot.roundUp(Ot.mod(s,1),l,r);return Math.floor(s)+Math.log(ca.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},Ye.tickFirst=function(e,t){var r=e.r2l||Number,n=Ot.simpleMap(e.range,r,void 0,void 0,t),a=n[1]=0&&y<=e._length?g:null};a.xbnd=[m(a.x-.5),m(a.x+e.dtick-.5)]}return a},Ye.hoverLabelText=function(e,t,r){r&&(e=Ot.extendFlat({},e,{hoverformat:r}));var n=Ot.isArrayOrTypedArray(t)?t[0]:t,a=Ot.isArrayOrTypedArray(t)?t[1]:void 0;if(a!==void 0&&a!==n)return Ye.hoverLabelText(e,n,r)+" - "+Ye.hoverLabelText(e,a,r);var i=e.type==="log"&&n<=0,o=Ye.tickText(e,e.c2l(i?-n:n),"hover").text;return i?n===0?"0":Tl+o:o};function c0(e,t,r){var n=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontColor:n.color}}function eq(e,t,r,n){var a=e._tickround,i=r&&e.hoverformat||Ye.getTickFormat(e);n=!i&&n,n&&(Ir(a)?a=4:a={y:"m",m:"d",d:"M",M:"S",S:4}[a]);var o=Ot.formatDate(t.x,i,a,e._dateFormat,e.calendar,e._extraFormat),l,s=o.indexOf(` `);if(s!==-1&&(l=o.substr(s+1),o=o.substr(0,s)),n&&(l!==void 0&&(o==="00:00:00"||o==="00:00")?(o=l,l=""):o.length===8&&(o=o.replace(/:00$/,""))),l)if(r)a==="d"?o+=", "+l:o=l+(o?", "+o:"");else if(!e._inCalcTicks||e._prevDateHead!==l)e._prevDateHead=l,o+="
"+l;else{var f=ku(e),u=e._trueSide||e.side;(!f&&u==="top"||f&&u==="bottom")&&(o+="
")}t.text=o}function tq(e,t,r,n,a){var i=e.dtick,o=t.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(a==="never"&&(a=""),n&&s!=="L"&&(i="L3",s="L"),l||s==="L")t.text=Tu(Math.pow(10,o),e,a,n);else if(Ir(i)||s==="D"&&Ot.mod(o+.01,1)<.1){var f=Math.round(o),u=Math.abs(f),d=e.exponentformat;d==="power"||wh(d)&&d0(f)?(f===0?t.text=1:f===1?t.text="10":t.text="10"+(f>1?"":Tl)+u+"",t.fontSize*=1.25):(d==="e"||d==="E")&&u>2?t.text="1"+d+(f>0?"+":Tl)+u:(t.text=Tu(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(s==="D")t.text=String(Math.round(Math.pow(10,Ot.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var h=String(t.text).charAt(0);(h==="0"||h==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function rq(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function nq(e,t,r){var n=Math.round(t.x),a=e._categories[n]||[],i=a[1]===void 0?"":String(a[1]),o=a[0]===void 0?"":String(a[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}function aq(e,t,r,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=Tu(t.x,e,a,n)}function iq(e,t,r,n,a){if(e.thetaunit==="radians"&&!r){var i=t.x/180;if(i===0)t.text="0";else{var o=oq(i);if(o[1]>=100)t.text=Tu(Ot.deg2rad(t.x),e,a,n);else{var l=t.x<0;o[1]===1?o[0]===1?t.text="π":t.text=o[0]+"π":t.text=["",o[0],"","⁄","",o[1],"","π"].join(""),l&&(t.text=Tl+t.text)}}}else t.text=Tu(t.x,e,a,n)}function oq(e){function t(l,s){return Math.abs(l-s)<=1e-6}function r(l,s){return t(s,0)?l:r(s,l%s)}function n(l){for(var s=1;!t(Math.round(l*s)/s,l);)s*=10;return s}var a=n(e),i=e*a,o=Math.abs(r(i,a));return[Math.round(i/o),Math.round(a/o)]}var lq=["f","p","n","μ","m","","k","M","G","T"];function wh(e){return e==="SI"||e==="B"}function d0(e){return e>14||e<-15}function Tu(e,t,r,n){var a=e<0,i=t._tickround,o=r||t.exponentformat||"B",l=t._tickexponent,s=Ye.getTickFormat(t),f=t.separatethousands;if(n){var u={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Ir(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};zM(u),i=(Number(u._tickround)||0)+4,l=u._tickexponent,t.hoverformat&&(s=t.hoverformat)}if(s)return t._numFormat(s)(e).replace(/-/g,Tl);var d=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+v+"":o==="B"&&l===9?e+="B":wh(o)&&(e+=lq[l/3+5])}return a?Tl+e:e}Ye.getTickFormat=function(e){var t;function r(s){return typeof s!="string"?s:Number(s.replace("M",""))*Ps}function n(s,f){var u=["L","D"];if(typeof s==typeof f){if(typeof s=="number")return s-f;var d=u.indexOf(s.charAt(0)),h=u.indexOf(f.charAt(0));return d===h?Number(s.replace(/(L|D)/g,""))-Number(f.replace(/(L|D)/g,"")):d-h}else return typeof s=="number"?1:-1}function a(s,f,u){var d=u||function(v){return v},h=f[0],p=f[1];return(!h&&typeof h!="number"||d(h)<=d(s))&&(!p&&typeof p!="number"||d(p)>=d(s))}function i(s,f){var u=f[0]===null,d=f[1]===null,h=n(s,f[0])>=0,p=n(s,f[1])<=0;return(u||h)&&(d||p)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&a.unshift(a.splice(u,1).shift())}});var l={false:{left:0,right:0}};return Ot.syncOrAsync(a.map(function(s){return function(){if(s){var f=Ye.getFromId(e,s);r||(r={}),r.axShifts=l,r.overlayingShiftedAx=o;var u=Ye.drawOne(e,f,r);return f._shiftPusher&&b0(f,f._fullDepth||0,l,!0),f._r=f.range.slice(),f._rl=Ot.simpleMap(f._r,f.r2l),u}}}))},Ye.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},a=r.overlayingShiftedAx||[],i,o,l;t.setScale();var s=e._fullLayout,f=t._id,u=f.charAt(0),d=Ye.counterLetter(f),h=s._plots[t._mainSubplot];if(!h)return;if(t._shiftPusher=t.autoshift||a.indexOf(t._id)!==-1||a.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),b0(t,p,n,!0),b0(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=_q(t,n));var v=h[u+"axislayer"],m=t._mainLinePosition,g=m+=t._shift,y=t._mainMirrorPosition,w=t._vals=Ye.calcTicks(t),A=[t.mirror,g,y].join("_");for(i=0;i0?Se.bottom-Pe:0,We))));var it=0,dt=0;if(t._shiftPusher&&(it=Math.max(We,Se.height>0?Fe==="l"?Pe-Se.left:Se.right-Pe:0),t.title.text!==s._dfltTitle[u]&&(dt=(t._titleStandoff||0)+(t._titleScoot||0),Fe==="l"&&(dt+=v0(t))),t._fullDepth=Math.max(it,dt)),t.automargin){Ge={x:0,y:0,r:0,l:0,t:0,b:0};var ht=[0,1],rt=typeof t._shift=="number"?t._shift:0;if(u==="x"){if(Fe==="b"?Ge[Fe]=t._depth:(Ge[Fe]=t._depth=Math.max(Se.width>0?Pe-Se.top:0,We),ht.reverse()),Se.width>0){var ft=Se.right-(t._offset+t._length);ft>0&&(Ge.xr=1,Ge.r=ft);var ze=t._offset-Se.left;ze>0&&(Ge.xl=0,Ge.l=ze)}}else if(Fe==="l"?(t._depth=Math.max(Se.height>0?Pe-Se.left:0,We),Ge[Fe]=t._depth-rt):(t._depth=Math.max(Se.height>0?Se.right-Pe:0,We),Ge[Fe]=t._depth+rt,ht.reverse()),Se.height>0){var Ie=Se.bottom-(t._offset+t._length);Ie>0&&(Ge.yb=0,Ge.b=Ie);var Ne=t._offset-Se.top;Ne>0&&(Ge.yt=1,Ge.t=Ne)}Ge[d]=t.anchor==="free"?t.position:t._anchorAxis.domain[ht[0]],t.title.text!==s._dfltTitle[u]&&(Ge[Fe]+=v0(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(qe={x:0,y:0,r:0,l:0,t:0,b:0},qe[Oe]=t.linewidth,t.mirror&&t.mirror!==!0&&(qe[Oe]+=We),t.mirror===!0||t.mirror==="ticks"?qe[d]=t._anchorAxis.domain[ht[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(qe[d]=[t._counterDomainMin,t._counterDomainMax][ht[1]]))}$e&&(Qe=_u.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&($M(Ge,t.automargin),$M(qe,t.automargin)),Rs.autoMargin(e,m0(t),Ge),Rs.autoMargin(e,NM(t),qe),Rs.autoMargin(e,OM(t),Qe)}),Ot.syncOrAsync(ge)}};function $M(e,t){if(e){var r=Object.keys(kM).reduce(function(n,a){return t.indexOf(a)!==-1&&kM[a].forEach(function(i){n[i]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function sq(e,t){var r=[],n,a=function(i,o){var l=i.xbnd[o];l!==null&&r.push(Ot.extendFlat({},i,{x:l}))};if(t.length){for(n=0;n60?-.5*G:e.side==="top"!==u?-G:0};else if(C==="y"){if(E=!u&&T==="left"||u&&T==="right",x=E?1:-1,u&&(x*=-1),y=h,w=p*x,A=0,!u&&Math.abs(S)===90&&(S===-90&&T==="left"||S===90&&T==="right"?A=kl:A=.5),u){var F=Ir(S)?+S:0;if(F!==0){var $=Ot.deg2rad(F);_=Math.abs(Math.sin($))*kl*x,A=0}}g.xFn=function(N){return N.dx+t-(y+N.fontSize*A)*x+_*N.fontSize},g.yFn=function(N){return N.dy+w+N.fontSize*yh},g.anchorFn=function(N,B){return Ir(B)&&Math.abs(B)===90?"middle":E?"end":"start"},g.heightFn=function(N,B,G){return e.side==="right"&&(B*=-1),B<-30?-G:B<30?-.5*G:0}}return g};function Th(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",a=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=r.layer.selectAll("path."+n).data(a,Th);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return wu.stroke(ca.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return ra.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),Ah(t,[wM]),i.attr("transform",r.transFn)},Ye.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",a=t.minor&&t.minor.showgrid,i=a?r.vals.filter(function(y){return y.minor}):[],o=t.showgrid?r.vals.filter(function(y){return!y.minor}):[],l=r.counterAxis;if(l&&Ye.shouldShowZeroLine(e,t,l))for(var s=t.tickmode==="array",f=0;f=0;v--){var m=v?h:p;if(m){var g=m.selectAll("path."+n).data(v?o:i,Th);g.exit().remove(),g.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),g.attr("transform",r.transFn).attr("d",r.path).each(function(y){return wu.stroke(ca.select(this),y.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(y){return ra.dashStyle(y.minor?t.minor.griddash:t.griddash,y.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(y){return(y.minor?d:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&g.attr("d",r.path)}}Ah(t,[o0,l0])}},Ye.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",a=Ye.shouldShowZeroLine(e,t,r.counterAxis),i=r.layer.selectAll("path."+n).data(a?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,l){return UG(o.id,l.id)})}),i.attr("transform",r.transFn).attr("d",r.path).call(wu.stroke,t.zerolinecolor||wu.defaultLine).style("stroke-width",ra.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),Ah(t,[i0])},Ye.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,a=t._id,i=a.charAt(0),o=r.cls||a+"tick",l=r.vals.filter(function(G){return G.text}),s=r.labelFns,f=r.secondary?0:t.tickangle,u=(t._prevTickAngles||{})[o],d=r.layer.selectAll("g."+o).data(t.showticklabels?l:[],Th),h=[];d.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(G){var J=ca.select(this),q=e._promises.length;J.call(xu.positionText,s.xFn(G),s.yFn(G)).call(ra.font,G.font,G.fontSize,G.fontColor).text(G.text).call(xu.convertToTspans,e),e._promises[q]?h.push(e._promises.pop().then(function(){p(J,f)})):p(J,f)}),Ah(t,[TM]),d.exit().remove(),r.repositionOnUpdate&&d.each(function(G){ca.select(this).select("text").call(xu.positionText,s.xFn(G),s.yFn(G))});function p(G,J){G.each(function(q){var I=ca.select(this),z=I.select(".text-math-group"),P=s.anchorFn(q,J),H=r.transFn.call(I.node(),q)+(Ir(J)&&+J!=0?" rotate("+J+","+s.xFn(q)+","+(s.yFn(q)-q.fontSize/2)+")":""),j=xu.lineCount(I),Z=bh*q.fontSize,te=s.heightFn(q,Ir(J)?+J:0,(j-1)*Z);if(te&&(H+=Fs(0,te)),z.empty()){var ne=I.select("text");ne.attr({transform:H,"text-anchor":P}),ne.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var ie=ra.bBox(z.node()).width,ee=ie*{end:-.5,start:.5}[P];z.attr("transform",H+Fs(ee,0))}})}t._adjustTickLabelsOverflow=function(){var G=t.ticklabeloverflow;if(!(!G||G==="allow")){var J=G.indexOf("hide")!==-1,q=t._id.charAt(0)==="x",I=0,z=q?e._fullLayout.width:e._fullLayout.height;if(G.indexOf("domain")!==-1){var P=Ot.simpleMap(t.range,t.r2l);I=t.l2p(P[0])+t._offset,z=t.l2p(P[1])+t._offset}var H=Math.min(I,z),j=Math.max(I,z),Z=t.side,te=1/0,ne=-1/0;d.each(function(U){var V=ca.select(this),Y=V.select(".text-math-group");if(Y.empty()){var se=ra.bBox(V.node()),Q=0;q?(se.right>j||se.leftj||se.top+(t.tickangle?0:U.fontSize/4)t["_visibleLabelMin_"+P._id]?U.style("display","none"):j.K==="tick"&&!H&&U.style("display",null)})})})})},p(d,u+1?u:f);function v(){return h.length&&Promise.all(h)}var m=null;function g(){if(p(d,f),l.length&&i==="x"&&!Ir(f)&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){m=0;var G=0,J=[],q;if(d.each(function(se){G=Math.max(G,se.fontSize);var Q=t.l2p(se.x),me=p0(this),ye=ra.bBox(me.node());J.push({top:0,bottom:10,height:10,left:Q-ye.width/2,right:Q+ye.width/2+2,width:ye.width+2})}),(t.tickson==="boundaries"||t.showdividers)&&!r.secondary){var I=2;for(t.ticks&&(I+=t.tickwidth/2),q=0;q0?(N-=_,_*=1+_/N):_=0,t._id.charAt(0)!=="y"&&(_=-_),E[C]=A.p2d(A.d2p(A.range[C])+T*_),A.autorange==="min"||A.autorange==="max reversed"?(E[0]=null,A._rangeInitial0=void 0,A._rangeInitial1=void 0):(A.autorange==="max"||A.autorange==="min reversed")&&(E[1]=null,A._rangeInitial0=void 0,A._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[A._name+".range"]=E}var B=Ot.syncOrAsync(y);return B&&B.then&&e._promises.push(B),B};function hq(e,t,r){var n=t._id+"divider",a=r.vals,i=r.layer.selectAll("path."+n).data(a,Th);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(wu.stroke,t.dividercolor).style("stroke-width",ra.crispRound(e,t.dividerwidth,1)+"px"),i.attr("transform",r.transFn).attr("d",r.path)}Ye.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),a=t.side,i;if(t.anchor!=="free"?i=t._anchorAxis:n==="x"?i={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(i={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),a==="top"||a==="left")return i._offset;if(a==="bottom"||a==="right")return i._offset+i._length};function v0(e){var t=e.title.font.size,r=(e.title.text.match(xu.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r?t*(kl+r*bh):t*kl:r?t*(r+1)*bh:t}function vq(e,t){var r=e._fullLayout,n=t._id,a=n.charAt(0),i=t.title.font.size,o;if(t.title.hasOwnProperty("standoff"))o=t._depth+t.title.standoff+v0(t);else{var l=ku(t);if(t.type==="multicategory")o=t._depth;else{var s=1.5*i;l&&(s=.5*i,t.ticks==="outside"&&(s+=t.ticklen)),o=10+s+(t.linewidth?t.linewidth-1:0)}l||(a==="x"?o+=t.side==="top"?i*(t.showticklabels?1:0):i*(t.showticklabels?1.5:.5):o+=t.side==="right"?i*(t.showticklabels?1:.5):i*(t.showticklabels?.5:0))}var f=Ye.getPxPosition(e,t),u,d,h;a==="x"?(d=t._offset+t._length/2,h=t.side==="top"?f-o:f+o):(h=t._offset+t._length/2,d=t.side==="right"?f+o:f-o,u={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var v=t._selections[t._id+"tick"];if(p={selection:v,side:t.side},v&&v.node()&&v.node().parentNode){var m=ra.getTranslate(v.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,$G.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[a],avoid:p,transform:u,attributes:{x:d,y:h,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,t,r){var n=Ot.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===mh)&&(IM(t,0)||!pq(e,t,r,n)||mq(e,t))},Ye.clipEnds=function(e,t){return t.filter(function(r){return IM(e,r.x)})};function IM(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e4/3-s?l:s},UM=Ue,Lq=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]],Eq=function(t,r,n,a){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=UM.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=UM.constrain(Math.floor(r*3),0,2),Lq[r][t]},VM={exports:{}},Dq=Hd,Rq=Pd,Fq=Md.getGraphDiv,Pq=_d,x0=VM.exports={};x0.wrapped=function(e,t,r){e=Fq(e),e._fullLayout&&Rq.clear(e._fullLayout._uid+Pq.HOVERID),x0.raw(e,t,r)},x0.raw=function(t,r){var n=t._fullLayout,a=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Dq.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&a&&t.emit("plotly_unhover",{event:r,points:a}))};var zq=VM.exports,$q=kq,w0=sk,Iq=jM,Nq=Ue.removeElement,Oq=Dn,Al=HM.exports={};Al.align=Cq,Al.getCursor=Eq;var GM=zq;Al.unhover=GM.wrapped,Al.unhoverRaw=GM.raw,Al.init=function(t){var r=t.gd,n=1,a=r._context.doubleClickDelay,i=t.element,o,l,s,f,u,d,h,p;r._mouseDownTime||(r._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=g,Iq?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=g,i.addEventListener("touchstart",g,{passive:!1})):i.ontouchstart=g;function v(A,x,_){return Math.abs(A)<_&&(A=0),Math.abs(x)<_&&(x=0),[A,x]}var m=t.clampFn||v;function g(A){r._dragged=!1,r._dragging=!0;var x=T0(A);o=x[0],l=x[1],h=A.target,d=A,p=A.buttons===2||A.ctrlKey,typeof A.clientX>"u"&&typeof A.clientY>"u"&&(A.clientX=o,A.clientY=l),s=new Date().getTime(),s-r._mouseDownTimea&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else if(t.clickFn&&t.clickFn(n,d),!p){var x;try{x=new MouseEvent("click",A)}catch{var _=T0(A);x=document.createEvent("MouseEvents"),x.initMouseEvent("click",A.bubbles,A.cancelable,A.view,A.detail,A.screenX,A.screenY,_[0],_[1],A.ctrlKey,A.altKey,A.shiftKey,A.metaKey,A.button,A.relatedTarget)}h.dispatchEvent(x)}r._dragging=!1,r._dragged=!1}};function qM(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Al.coverSlip=qM;function T0(e){return $q(e.changedTouches?e.changedTouches[0]:e,document.body)}var Ti=HM.exports,Mh={},Ml=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)},k0=Ml,Au="data-savedcursor",WM="!!",Bq=function(t,r){var n=t.attr(Au);if(r){if(!n){for(var a=(t.attr("class")||"").split(" "),i=0;i(e==="legend"?1:0));if(x===!1&&(r[e]=void 0),!(x===!1&&!a.uirevision)&&(o("uirevision",r.uirevision),x!==!1)){o("borderwidth");var _=o("orientation"),T=o("yref"),C=o("xref"),S=_==="h",E=T==="paper",F=C==="paper",$,N,B,G="left";S?($=0,M0.getComponentMethod("rangeslider","isVisible")(t.xaxis)?E?(N=1.1,B="bottom"):(N=1,B="top"):E?(N=-.1,B="top"):(N=0,B="bottom")):(N=1,B="auto",F?$=1.02:($=1,G="right")),Hn.coerce(a,i,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:$}},"x"),Hn.coerce(a,i,{y:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:N}},"y"),o("traceorder",m),S0.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",G),o("yanchor",B),o("valign"),Hn.noneOrAll(a,i,["x","y"]);var J=o("title.text");if(J){o("title.side",S?"left":"top");var q=Hn.extendFlat({},l,{size:Hn.bigFont(l.size)});Hn.coerceFont(o,"title.font",q)}}}}var YM=function(t,r,n){var a,i=n.slice(),o=r.shapes;if(o)for(a=0;aF&&(E=F)}C[p][0]._groupMinRank=E,C[p][0]._preGroupSort=p}var $=function(I,z){return I[0]._groupMinRank-z[0]._groupMinRank||I[0]._preGroupSort-z[0]._preGroupSort},N=function(I,z){return I.trace.legendrank-z.trace.legendrank||I._preSort-z._preSort};for(C.forEach(function(I,z){I[0]._preGroupSort=z}),C.sort($),p=0;p0)$=S.width;else return 0;return i?F:Math.min($,E)};t.each(function(C){var S=wn.select(this),E=yn.ensureSingle(S,"g","layers");E.style("opacity",C[0].trace.opacity);var F=n.valign,$=C[0].lineHeight,N=C[0].height;if(F==="middle"||!$||!N)E.attr("transform",null);else{var B={top:1,bottom:-1}[F],G=B*(.5*($-N+3));E.attr("transform",eS(0,G))}var J=E.selectAll("g.legendfill").data([C]);J.enter().append("g").classed("legendfill",!0);var q=E.selectAll("g.legendlines").data([C]);q.enter().append("g").classed("legendlines",!0);var I=E.selectAll("g.legendsymbols").data([C]);I.enter().append("g").classed("legendsymbols",!0),I.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(T).each(h).each(v).each(p).each(g).each(x).each(A).each(u).each(d).each(y).each(w);function u(C){var S=aS(C),E=S.showFill,F=S.showLine,$=S.showGradientLine,N=S.showGradientFill,B=S.anyFill,G=S.anyLine,J=C[0],q=J.trace,I,z,P=R0(q),H=P.colorscale,j=P.reversescale,Z=function(V){if(V.size())if(E)Fn.fillGroupStyle(V,r);else{var Y="legendfill-"+q.uid;Fn.gradient(V,r,Y,F0(j),H,"fill")}},te=function(V){if(V.size()){var Y="legendline-"+q.uid;Fn.lineGroupStyle(V),Fn.gradient(V,r,Y,F0(j),H,"stroke")}},ne=Ch.hasMarkers(q)||!B?"M5,0":G?"M5,-2":"M5,-3",ie=wn.select(this),ee=ie.select(".legendfill").selectAll("path").data(E||N?[C]:[]);if(ee.enter().append("path").classed("js-fill",!0),ee.exit().remove(),ee.attr("d",ne+"h"+o+"v6h-"+o+"z").call(Z),F||$){var ue=f(void 0,q.line,aW,rS);z=yn.minExtend(q,{line:{width:ue}}),I=[yn.minExtend(J,{trace:z})]}var U=ie.select(".legendlines").selectAll("path").data(F||$?[I]:[]);U.enter().append("path").classed("js-line",!0),U.exit().remove(),U.attr("d",ne+($?"l"+o+",0.0001":"h"+o)).call(F?Fn.lineGroupStyle:te)}function d(C){var S=aS(C),E=S.anyFill,F=S.anyLine,$=S.showLine,N=S.showMarker,B=C[0],G=B.trace,J=!N&&!F&&!E&&Ch.hasText(G),q,I;function z(ee,ue,U,V){var Y=yn.nestedProperty(G,ee).get(),se=yn.isArrayOrTypedArray(Y)&&ue?ue(Y):Y;if(i&&se&&V!==void 0&&(se=V),U){if(seU[1])return U[1]}return se}function P(ee){return B._distinct&&B.index&&ee[B.index]?ee[B.index]:ee[0]}if(N||J||$){var H={},j={};if(N){H.mc=z("marker.color",P),H.mx=z("marker.symbol",P),H.mo=z("marker.opacity",yn.mean,[.2,1]),H.mlc=z("marker.line.color",P),H.mlw=z("marker.line.width",yn.mean,[0,5],Sl),j.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Z=z("marker.size",yn.mean,[2,16],tS);H.ms=Z,j.marker.size=Z}$&&(j.line={width:z("line.width",P,[0,10],rS)}),J&&(H.tx="Aa",H.tp=z("textposition",P),H.ts=10,H.tc=z("textfont.color",P),H.tf=z("textfont.family",P)),q=[yn.minExtend(B,H)],I=yn.minExtend(G,j),I.selectedpoints=null,I.texttemplate=null}var te=wn.select(this).select("g.legendpoints"),ne=te.selectAll("path.scatterpts").data(N?q:[]);ne.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ne.exit().remove(),ne.call(Fn.pointStyle,I,r),N&&(q[0].mrc=3);var ie=te.selectAll("g.pointtext").data(J?q:[]);ie.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ie.exit().remove(),ie.selectAll("text").call(Fn.textPointStyle,I,r)}function h(C){var S=C[0].trace,E=S.type==="waterfall";if(C[0]._distinct&&E){var F=C[0].trace[C[0].dir].marker;return C[0].mc=F.color,C[0].mlw=F.line.width,C[0].mlc=F.line.color,m(C,this,"waterfall")}var $=[];S.visible&&E&&($=C[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 N=wn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data($);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(B){var G=wn.select(this),J=S[B[0]].marker,q=f(void 0,J.line,$s,Sl);G.attr("d",B[1]).style("stroke-width",q+"px").call(ha.fill,J.color),q&&G.call(ha.stroke,J.line.color)})}function p(C){m(C,this)}function v(C){m(C,this,"funnel")}function m(C,S,E){var F=C[0].trace,$=F.marker||{},N=$.line||{},B=E?F.visible&&F.type===E:D0.traceIs(F,"bar"),G=wn.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(B?[C]:[]);G.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),G.exit().remove(),G.each(function(J){var q=wn.select(this),I=J[0],z=f(I.mlw,$.line,$s,Sl);q.style("stroke-width",z+"px");var P=I.mcc;if(!n._inHover&&"mc"in I){var H=R0($),j=H.mid;j===void 0&&(j=(H.max+H.min)/2),P=Fn.tryColorscale($,"")(j)}var Z=P||I.mc||$.color,te=$.pattern,ne=te&&Fn.getPatternAttr(te.shape,0,"");if(ne){var ie=Fn.getPatternAttr(te.bgcolor,0,null),ee=Fn.getPatternAttr(te.fgcolor,0,null),ue=te.fgopacity,U=iS(te.size,8,10),V=iS(te.solidity,.5,1),Y="legend-"+F.uid;q.call(Fn.pattern,"legend",r,Y,ne,U,V,P,te.fillmode,ie,ee,ue)}else q.call(ha.fill,Z);z&&ha.stroke(q,I.mlc||N.color)})}function g(C){var S=C[0].trace,E=wn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&D0.traceIs(S,"box-violin")?[C]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),E.exit().remove(),E.each(function(){var F=wn.select(this);if((S.boxpoints==="all"||S.points==="all")&&ha.opacity(S.fillcolor)===0&&ha.opacity((S.line||{}).color)===0){var $=yn.minExtend(S,{marker:{size:i?tS:yn.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(Fn.pointStyle,$,r)}else{var N=f(void 0,S.line,$s,Sl);F.style("stroke-width",N+"px").call(ha.fill,S.fillcolor),N&&ha.stroke(F,S.line.color)}})}function y(C){var S=C[0].trace,E=wn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[C,C]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(F,$){return $?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(F,$){var N=wn.select(this),B=S[$?"increasing":"decreasing"],G=f(void 0,B.line,$s,Sl);N.style("stroke-width",G+"px").call(ha.fill,B.fillcolor),G&&ha.stroke(N,B.line.color)})}function w(C){var S=C[0].trace,E=wn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[C,C]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(F,$){return $?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(F,$){var N=wn.select(this),B=S[$?"increasing":"decreasing"],G=f(void 0,B.line,$s,Sl);N.style("fill","none").call(Fn.dashLine,B.line.dash,G),G&&ha.stroke(N,B.line.color)})}function A(C){_(C,this,"pie")}function x(C){_(C,this,"funnelarea")}function _(C,S,E){var F=C[0],$=F.trace,N=E?$.visible&&$.type===E:D0.traceIs($,E),B=wn.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(N?[C]:[]);if(B.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),B.exit().remove(),B.size()){var G=$.marker||{},J=f(rW(G.line.width,F.pts),G.line,$s,Sl),q="pieLike",I=yn.minExtend($,{marker:{line:{width:J}}},q),z=yn.minExtend(F,{trace:I},q);tW(B,z,I,r)}}function T(C){var S=C[0].trace,E,F=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":F=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":F=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":F=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":F=[["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"]],E=!1;break;case"streamtube":F=[["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"]],E=!1;break;case"surface":F=[["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"]],E=!0;break;case"mesh3d":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var $=wn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(F);$.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),$.exit().remove(),$.each(function(N,B){var G=wn.select(this),J=R0(S),q=J.colorscale,I=J.reversescale,z=function(Z){if(Z.size()){var te="legendfill-"+S.uid;Fn.gradient(Z,r,te,F0(I,E==="radial"),q,"fill")}},P;if(q){if(!E){var j=q.length;P=B===0?q[I?j-1:0][1]:B===1?q[I?0:j-1][1]:q[Math.floor((j-1)/2)][1]}}else{var H=S.vertexcolor||S.facecolor||S.color;P=yn.isArrayOrTypedArray(H)?H[B]||H[0]:H}G.attr("d",N[0]),P?G.call(ha.fill,P):G.call(z)})}};function F0(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function aS(e){var t=e[0].trace,r=t.contours,n=Ch.hasLines(t),a=Ch.hasMarkers(t),i=t.visible&&t.fill&&t.fill!=="none",o=!1,l=!1;if(r){var s=r.coloring;s==="lines"?o=!0:n=s==="none"||s==="heatmap"||r.showlines,r.type==="constraint"?i=r._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function iS(e,t,r){return e&&yn.isArrayOrTypedArray(e)?t:e>r?r:e}var jn=Qt,Nr=Ue,P0=sn,Eo=Pt,oS=Hd,z0=Ti,Ur=hr,Lh=Yt,Cl=mn,lS=Zq,Wr=XM,$0=_n,sS=$0.LINE_SPACING,Is=$0.FROM_TL,fS=$0.FROM_BR,uS=Yq,iW=nS,cS=zs,Ns=1,oW=/^legend[0-9]*$/,dS=function(t,r){if(r)hS(t,r);else{var n=t._fullLayout,a=n._legends,i=n._infolayer.selectAll('[class^="legend"]');i.each(function(){var f=jn.select(this),u=f.attr("class"),d=u.split(" ")[0];d.match(oW)&&a.indexOf(d)===-1&&f.remove()});for(var o=0;o1)}var v=n.hiddenlabels||[];if(!l&&(!n.showlegend||!s.length))return o.selectAll("."+a).remove(),n._topdefs.select("#"+i).remove(),P0.autoMargin(e,a);var m=Nr.ensureSingle(o,"g",a,function(S){l||S.attr("pointer-events","all")}),g=Nr.ensureSingleById(n._topdefs,"clipPath",i,function(S){S.append("rect")}),y=Nr.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});y.call(Lh.stroke,r.bordercolor).call(Lh.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var w=Nr.ensureSingle(m,"g","scrollbox"),A=r.title;r._titleWidth=0,r._titleHeight=0;var x;A.text?(x=Nr.ensureSingle(w,"text",a+"titletext"),x.attr("text-anchor","start").call(Ur.font,A.font).text(A.text),Dh(x,w,e,r,Ns)):w.selectAll("."+a+"titletext").remove();var _=Nr.ensureSingle(m,"rect","scrollbar",function(S){S.attr(Wr.scrollBarEnterAttrs).call(Lh.fill,Wr.scrollBarColor)}),T=w.selectAll("g.groups").data(s);T.enter().append("g").attr("class","groups"),T.exit().remove();var C=T.selectAll("g.traces").data(Nr.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(S){var E=S[0].trace;return Eo.traceIs(E,"pie-like")?v.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){jn.select(this).call(sW,e,r)}).call(iW,e,r).each(function(){l||jn.select(this).call(fW,e,a)}),Nr.syncOrAsync([P0.previousPromises,function(){return dW(e,T,C,r)},function(){var S=n._size,E=r.borderwidth,F=r.xref==="paper",$=r.yref==="paper";if(A.text&&lW(x,r,E),!l){var N,B;F?N=S.l+S.w*r.x-Is[Rh(r)]*r._width:N=n.width*r.x-Is[Rh(r)]*r._width,$?B=S.t+S.h*(1-r.y)-Is[Fh(r)]*r._effHeight:B=n.height*(1-r.y)-Is[Fh(r)]*r._effHeight;var G=hW(e,a,N,B);if(G)return;if(n.margin.autoexpand){var J=N,q=B;N=F?Nr.constrain(N,0,n.width-r._width):J,B=$?Nr.constrain(B,0,n.height-r._effHeight):q,N!==J&&Nr.log("Constrain "+a+".x to make legend fit inside graph"),B!==q&&Nr.log("Constrain "+a+".y to make legend fit inside graph")}Ur.setTranslate(m,N,B)}if(_.on(".drag",null),m.on("wheel",null),l||r._height<=r._maxHeight||e._context.staticPlot){var I=r._effHeight;l&&(I=r._height),y.attr({width:r._width-E,height:I-E,x:E/2,y:E/2}),Ur.setTranslate(w,0,0),g.select("rect").attr({width:r._width-2*E,height:I-2*E,x:E,y:E}),Ur.setClipUrl(w,i,e),Ur.setRect(_,0,0,0,0),delete r._scrollY}else{var z=Math.max(Wr.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),P=r._effHeight-z-2*Wr.scrollBarMargin,H=r._height-r._effHeight,j=P/H,Z=Math.min(r._scrollY||0,H);y.attr({width:r._width-2*E+Wr.scrollBarWidth+Wr.scrollBarMargin,height:r._effHeight-E,x:E/2,y:E/2}),g.select("rect").attr({width:r._width-2*E+Wr.scrollBarWidth+Wr.scrollBarMargin,height:r._effHeight-2*E,x:E,y:E+Z}),Ur.setClipUrl(w,i,e),Y(Z,z,j),m.on("wheel",function(){Z=Nr.constrain(r._scrollY+jn.event.deltaY/P*H,0,H),Y(Z,z,j),Z!==0&&Z!==H&&jn.event.preventDefault()});var te,ne,ie,ee=function(pe,ge,Ee){var $e=(Ee-ge)/j+pe;return Nr.constrain($e,0,H)},ue=function(pe,ge,Ee){var $e=(ge-Ee)/j+pe;return Nr.constrain($e,0,H)},U=jn.behavior.drag().on("dragstart",function(){var pe=jn.event.sourceEvent;pe.type==="touchstart"?te=pe.changedTouches[0].clientY:te=pe.clientY,ie=Z}).on("drag",function(){var pe=jn.event.sourceEvent;pe.buttons===2||pe.ctrlKey||(pe.type==="touchmove"?ne=pe.changedTouches[0].clientY:ne=pe.clientY,Z=ee(ie,te,ne),Y(Z,z,j))});_.call(U);var V=jn.behavior.drag().on("dragstart",function(){var pe=jn.event.sourceEvent;pe.type==="touchstart"&&(te=pe.changedTouches[0].clientY,ie=Z)}).on("drag",function(){var pe=jn.event.sourceEvent;pe.type==="touchmove"&&(ne=pe.changedTouches[0].clientY,Z=ue(ie,te,ne),Y(Z,z,j))});w.call(V)}function Y(pe,ge,Ee){r._scrollY=e._fullLayout[a]._scrollY=pe,Ur.setTranslate(w,0,-pe),Ur.setRect(_,r._width,Wr.scrollBarMargin+pe*Ee,Wr.scrollBarWidth,ge),g.select("rect").attr("y",E+pe)}if(e._context.edits.legendPosition){var se,Q,me,ye;m.classed("cursor-move",!0),z0.init({element:m.node(),gd:e,prepFn:function(){var pe=Ur.getTranslate(m);me=pe.x,ye=pe.y},moveFn:function(pe,ge){var Ee=me+pe,$e=ye+ge;Ur.setTranslate(m,Ee,$e),se=z0.align(Ee,r._width,S.l,S.l+S.w,r.xanchor),Q=z0.align($e+r._height,-r._height,S.t+S.h,S.t,r.yanchor)},doneFn:function(){if(se!==void 0&&Q!==void 0){var pe={};pe[a+".x"]=se,pe[a+".y"]=Q,Eo.call("_guiRelayout",e,pe)}},clickFn:function(pe,ge){var Ee=o.selectAll("g.traces").filter(function(){var $e=this.getBoundingClientRect();return ge.clientX>=$e.left&&ge.clientX<=$e.right&&ge.clientY>=$e.top&&ge.clientY<=$e.bottom});Ee.size()>0&&vS(e,m,Ee,pe,ge)}})}}],e)}}function Eh(e,t,r){var n=e[0],a=n.width,i=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return i==="fraction"?t._maxWidth*o:r+(o||a)}function vS(e,t,r,n,a){var i=r.data()[0][0].trace,o={event:a,node:r.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),Eo.traceIs(i,"pie-like")&&(o.label=r.datum()[0].label);var l=oS.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(l===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&lS(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var s=oS.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&lS(r,e,n)}}function sW(e,t,r){var n=Ph(r),a=e.data()[0][0],i=a.trace,o=Eo.traceIs(i,"pie-like"),l=!r._inHover&&t._context.edits.legendText&&!o,s=r._maxNameLength,f,u;a.groupTitle?(f=a.groupTitle.text,u=a.groupTitle.font):(u=r.font,r.entries?f=a.text:(f=o?a.label:i.name,i._meta&&(f=Nr.templateString(f,i._meta))));var d=Nr.ensureSingle(e,"text",n+"text");d.attr("text-anchor","start").call(Ur.font,u).text(l?pS(f,s):f);var h=r.itemwidth+Wr.itemGap*2;Cl.positionText(d,h,0),l?d.call(Cl.makeEditable,{gd:t,text:f}).call(Dh,e,t,r).on("edit",function(p){this.text(pS(p,s)).call(Dh,e,t,r);var v=a.trace._fullInput||{},m={};if(Eo.hasTransform(v,"groupby")){var g=Eo.getTransformIndices(v,"groupby"),y=g[g.length-1],w=Nr.keyedContainer(v,"transforms["+y+"].styles","target","value.name");w.set(a.trace._group,p),m=w.constructUpdate()}else m.name=p;return v._isShape?Eo.call("_guiRelayout",t,"shapes["+i.index+"].name",m.name):Eo.call("_guiRestyle",t,m,i.index)}):Dh(d,e,t,r)}function pS(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function fW(e,t,r){var n=t._context.doubleClickDelay,a,i=1,o=Nr.ensureSingle(e,"rect",r+"toggle",function(l){t._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Lh.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimen&&(i=Math.max(i-1,1)),vS(t,l,e,i,jn.event)}}))}function Dh(e,t,r,n,a){n._inHover&&e.attr("data-notex",!0),Cl.convertToTspans(e,r,function(){uW(t,r,n,a)})}function uW(e,t,r,n){var a=e.data()[0][0];if(!r._inHover&&a&&!a.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=Ph(r);r||(r=t._fullLayout[l]);var s=r.borderwidth,f;n===Ns?f=r.title.font:a.groupTitle?f=a.groupTitle.font:f=r.font;var u=f.size*sS,d,h;if(o){var p=Ur.bBox(o);d=p.height,h=p.width,n===Ns?Ur.setTranslate(i,s,s+d*.75):Ur.setTranslate(i,0,d*.25)}else{var v="."+l+(n===Ns?"title":"")+"text",m=e.select(v),g=Cl.lineCount(m),y=m.node();if(d=u*g,h=y?Ur.bBox(y).width:0,n===Ns)r.title.side==="left"&&(h+=Wr.itemGap*2),Cl.positionText(m,s+Wr.titlePad,s+u);else{var w=Wr.itemGap*2+r.itemwidth;a.groupTitle&&(w=Wr.itemGap,h-=r.itemwidth),Cl.positionText(m,w,-u*((g-1)/2-.3))}}n===Ns?(r._titleWidth=h,r._titleHeight=d):(a.lineHeight=u,a.height=Math.max(d,16)+3,a.width=h)}function cW(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function dW(e,t,r,n){var a=e._fullLayout,i=Ph(n);n||(n=a[i]);var o=a._size,l=cS.isVertical(n),s=cS.isGrouped(n),f=n.entrywidthmode==="fraction",u=n.borderwidth,d=2*u,h=Wr.itemGap,p=n.itemwidth+h*2,v=2*(u+h),m=Fh(n),g=n.y<0||n.y===0&&m==="top",y=n.y>1||n.y===1&&m==="bottom",w=n.tracegroupgap,A={};n._maxHeight=Math.max(g||y?a.height/2:o.h,30);var x=0;n._width=0,n._height=0;var _=cW(n);if(l)r.each(function(ie){var ee=ie[0].height;Ur.setTranslate(this,u+_[0],u+_[1]+n._height+ee/2+h),n._height+=ee,n._width=Math.max(n._width,ie[0].width)}),x=p+n._width,n._width+=h+p+d,n._height+=v,s&&(t.each(function(ie,ee){Ur.setTranslate(this,0,ee*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var T=Rh(n),C=n.x<0||n.x===0&&T==="right",S=n.x>1||n.x===1&&T==="left",E=y||g,F=a.width/2;n._maxWidth=Math.max(C?E&&T==="left"?o.l+o.w:F:S?E&&T==="right"?o.r+o.w:F:o.w,2*p);var $=0,N=0;r.each(function(ie){var ee=Eh(ie,n,p);$=Math.max($,ee),N+=ee}),x=null;var B=0;if(s){var G=0,J=0,q=0;t.each(function(){var ie=0,ee=0;jn.select(this).selectAll("g.traces").each(function(U){var V=Eh(U,n,p),Y=U[0].height;Ur.setTranslate(this,_[0],_[1]+u+h+Y/2+ee),ee+=Y,ie=Math.max(ie,V),A[U[0].trace.legendgroup]=ie});var ue=ie+h;J>0&&ue+u+J>n._maxWidth?(B=Math.max(B,J),J=0,q+=G+w,G=ee):G=Math.max(G,ee),Ur.setTranslate(this,J,q),J+=ue}),n._width=Math.max(B,J)+u,n._height=q+G+v}else{var I=r.size(),z=N+d+(I-1)*h=n._maxWidth&&(B=Math.max(B,Z),H=0,j+=P,n._height+=P,P=0),Ur.setTranslate(this,_[0]+u+H,_[1]+u+j+ee/2+h),Z=H+ue+h,H+=U,P=Math.max(P,ee)}),z?(n._width=H+d,n._height=P+v):(n._width=Math.max(B,Z)+d,n._height+=P+v)}}n._width=Math.ceil(Math.max(n._width+_[0],n._titleWidth+2*(u+Wr.titlePad))),n._height=Math.ceil(Math.max(n._height+_[1],n._titleHeight+2*(u+Wr.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var te=e._context.edits,ne=te.legendText||te.legendPosition;r.each(function(ie){var ee=jn.select(this).select("."+i+"toggle"),ue=ie[0].height,U=ie[0].trace.legendgroup,V=Eh(ie,n,p);s&&U!==""&&(V=A[U]);var Y=ne?p:x||V;!l&&!f&&(Y+=h/2),Ur.setRect(ee,0,-ue/2,Y,ue)})}function hW(e,t,r,n){var a=e._fullLayout,i=a[t],o=Rh(i),l=Fh(i),s=i.xref==="paper",f=i.yref==="paper";e._fullLayout._reservedMargin[t]={};var u=i.y<.5?"b":"t",d=i.x<.5?"l":"r",h={r:a.width-r,l:r+i._width,b:a.height-n,t:n+i._effHeight};if(s&&f)return P0.autoMargin(e,t,{x:i.x,y:i.y,l:i._width*Is[o],r:i._width*fS[o],b:i._effHeight*fS[l],t:i._effHeight*Is[l]});s?e._fullLayout._reservedMargin[t][u]=h[u]:f||i.orientation==="v"?e._fullLayout._reservedMargin[t][d]=h[d]:e._fullLayout._reservedMargin[t][u]=h[u]}function Rh(e){return Nr.isRightAnchor(e)?"right":Nr.isCenterAnchor(e)?"center":"left"}function Fh(e){return Nr.isBottomAnchor(e)?"bottom":Nr.isMiddleAnchor(e)?"middle":"top"}function Ph(e){return e._id||"legend"}var Ll=Qt,Zi=er,mS=Ia,Or=Ue,I0=Or.strTranslate,vW=Or.strRotate,pW=Hd,va=mn,mW=Bq,ki=hr,en=Yt,zh=Ti,Do=mr,Os=Pt,Ua=Gi,El=_d,gW=YM,yW=dS,gS=El.YANGLE,N0=Math.PI*gS/180,bW=1/Math.sin(N0),_W=Math.cos(N0),xW=Math.sin(N0),ur=El.HOVERARROWSIZE,Xt=El.HOVERTEXTPAD,yS={box:!0,ohlc:!0,violin:!0,candlestick:!0},wW={scatter:!0,scattergl:!0,splom:!0};Mh.hover=function(t,r,n,a){t=Or.getGraphDiv(t);var i=r.target;Or.throttle(t._fullLayout._uid+El.HOVERID,El.HOVERMINTIME,function(){TW(t,r,n,a,i)})},Mh.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var a=r.gd,i=CS(a),o=LS(a),l=t.map(function(g){var y=g._x0||g.x0||g.x||0,w=g._x1||g.x1||g.x||0,A=g._y0||g.y0||g.y||0,x=g._y1||g.y1||g.y||0,_=g.eventData;if(_){var T=Math.min(y,w),C=Math.max(y,w),S=Math.min(A,x),E=Math.max(A,x),F=g.trace;if(Os.traceIs(F,"gl3d")){var $=a._fullLayout[F.scene]._scene.container,N=$.offsetLeft,B=$.offsetTop;T+=N,C+=N,S+=B,E+=B}_.bbox={x0:T+o,x1:C+o,y0:S+i,y1:E+i},r.inOut_bbox&&r.inOut_bbox.push(_.bbox)}else _=!1;return{color:g.color||en.defaultLine,x0:g.x0||g.x||0,x1:g.x1||g.x||0,y0:g.y0||g.y||0,y1:g.y1||g.y||0,xLabel:g.xLabel,yLabel:g.yLabel,zLabel:g.zLabel,text:g.text,name:g.name,idealAlign:g.idealAlign,borderColor:g.borderColor,fontFamily:g.fontFamily,fontSize:g.fontSize,fontColor:g.fontColor,nameLength:g.nameLength,textAlign:g.textAlign,trace:g.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:g.hovertemplate||!1,hovertemplateLabels:g.hovertemplateLabels||!1,eventData:_}}),s=!1,f=_S(l,{gd:a,hovermode:"closest",rotateLabels:s,bgColor:r.bgColor||en.background,container:Ll.select(r.container),outerContainer:r.outerContainer||r.container}),u=f.hoverLabels,d=5,h=0,p=0;u.sort(function(g,y){return g.y0-y.y0}).each(function(g,y){var w=g.y0-g.by/2;w-dh[0]._length||ne<0||ne>p[0]._length)return zh.unhoverRaw(e,t)}if(t.pointerX=te+h[0]._offset,t.pointerY=ne+p[0]._offset,"xval"in t?C=Ua.flat(i,t.xval):C=Ua.p2c(h,te),"yval"in t?S=Ua.flat(i,t.yval):S=Ua.p2c(p,ne),!Zi(C[0])||!Zi(S[0]))return Or.warn("Fx.hover failed",t,e),zh.unhoverRaw(e,t)}var ue=1/0;function U(oe,ce){for(F=0;FP&&(_.splice(0,P),ue=_[0].distance),f&&x!==0&&_.length===0){z.distance=x,z.index=!1;var Re=N._module.hoverPoints(z,q,I,"closest",{hoverLayer:o._hoverlayer});if(Re&&(Re=Re.filter(function(Dt){return Dt.spikeDistance<=x})),Re&&Re.length){var le,Le=Re.filter(function(Dt){return Dt.xa.showspikes&&Dt.xa.spikesnap!=="hovered data"});if(Le.length){var He=Le[0];Zi(He.x0)&&Zi(He.y0)&&(le=Y(He),(!H.vLinePoint||H.vLinePoint.spikeDistance>le.spikeDistance)&&(H.vLinePoint=le))}var Xe=Re.filter(function(Dt){return Dt.ya.showspikes&&Dt.ya.spikesnap!=="hovered data"});if(Xe.length){var Lt=Xe[0];Zi(Lt.x0)&&Zi(Lt.y0)&&(le=Y(Lt),(!H.hLinePoint||H.hLinePoint.spikeDistance>le.spikeDistance)&&(H.hLinePoint=le))}}}}}U();function V(oe,ce,Ae){for(var xe=null,Ve=1/0,je,Re=0;Re0&&Math.abs(oe.distance)We-1;ht--)dt(_[ht]);_=qe,me()}var rt=e._hoverdata,ft=[],ze=CS(e),Ie=LS(e);for(E=0;E<_.length;E++){var Ne=_[E],et=Ua.makeEventData(Ne,Ne.trace,Ne.cd);if(Ne.hovertemplate!==!1){var Je=!1;Ne.cd[Ne.index]&&Ne.cd[Ne.index].ht&&(Je=Ne.cd[Ne.index].ht),Ne.hovertemplate=Je||Ne.trace.hovertemplate||!1}if(Ne.xa&&Ne.ya){var at=Ne.x0+Ne.xa._offset,nt=Ne.x1+Ne.xa._offset,wt=Ne.y0+Ne.ya._offset,mt=Ne.y1+Ne.ya._offset,Be=Math.min(at,nt),vt=Math.max(at,nt),bt=Math.min(wt,mt),Ke=Math.max(wt,mt);et.bbox={x0:Be+Ie,x1:vt+Ie,y0:bt+ze,y1:Ke+ze}}Ne.eventData=[et],ft.push(et)}e._hoverdata=ft;var st=w==="y"&&(T.length>1||_.length>1)||w==="closest"&&j&&_.length>1,tt=en.combine(o.plot_bgcolor||en.background,o.paper_bgcolor),ut=_S(_,{gd:e,hovermode:w,rotateLabels:st,bgColor:tt,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),K=ut.hoverLabels;if(Ua.isUnifiedHover(w)||(AW(K,st,o,ut.commonLabelBoundingBox),TS(K,st,o._invScaleX,o._invScaleY)),a&&a.tagName){var fe=Os.getComponentMethod("annotations","hasClickToShow")(e,ft);mW(Ll.select(a),fe?"pointer":"")}!a||n||!CW(e,t,rt)||(rt&&e.emit("plotly_unhover",{event:t,points:rt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:h,yaxes:p,xvals:C,yvals:S}))}function bS(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var kW=/([\s\S]*)<\/extra>/;function _S(e,t){var r=t.gd,n=r._fullLayout,a=t.hovermode,i=t.rotateLabels,o=t.bgColor,l=t.container,s=t.outerContainer,f=t.commonLabelOpts||{};if(e.length===0)return[[]];var u=t.fontFamily||El.HOVERFONT,d=t.fontSize||El.HOVERFONTSIZE,h=e[0],p=h.xa,v=h.ya,m=a.charAt(0),g=m+"Label",y=h[g];if(y===void 0&&p.type==="multicategory")for(var w=0;wn.width-Ne?(ft=n.width-Ne,Ge.attr("d","M"+(Ne-ur)+",0L"+Ne+","+Ie+ur+"v"+Ie+(Xt*2+rt.height)+"H-"+Ne+"V"+Ie+ur+"H"+(Ne-ur*2)+"Z")):Ge.attr("d","M0,0L"+ur+","+Ie+ur+"H"+Ne+"v"+Ie+(Xt*2+rt.height)+"H-"+Ne+"V"+Ie+ur+"H-"+ur+"Z"),B.minX=ft-Ne,B.maxX=ft+Ne,p.side==="top"?(B.minY=ze-(Xt*2+rt.height),B.maxY=ze-Xt):(B.minY=ze+Xt,B.maxY=ze+(Xt*2+rt.height))}else{var et,Je,at;v.side==="right"?(et="start",Je=1,at="",ft=p._offset+p._length):(et="end",Je=-1,at="-",ft=p._offset),ze=v._offset+(h.y0+h.y1)/2,qe.attr("text-anchor",et),Ge.attr("d","M0,0L"+at+ur+","+ur+"V"+(Xt+rt.height/2)+"h"+at+(Xt*2+rt.width)+"V-"+(Xt+rt.height/2)+"H"+at+ur+"V-"+ur+"Z"),B.minY=ze-(Xt+rt.height/2),B.maxY=ze+(Xt+rt.height/2),v.side==="right"?(B.minX=ft+ur,B.maxX=ft+ur+(Xt*2+rt.width)):(B.minX=ft-ur-(Xt*2+rt.width),B.maxX=ft-ur);var nt=rt.height/2,wt=x-rt.top-nt,mt="clip"+n._uid+"commonlabel"+v._id,Be;if(ft=0?Oe=ge:Ee+U<_&&Ee>=0?Oe=Ee:$e+U<_?Oe=$e:ge-se=0?Pe=ye:pe+V=0?Pe=pe:Fe+V=0,(Se.idealAlign==="top"||!tt)&&ut?(wt-=Be/2,Se.anchor="end"):tt?(wt+=Be/2,Se.anchor="start"):Se.anchor="middle",Se.crossPos=wt;else{if(Se.pos=wt,tt=nt+mt/2+st<=_,ut=nt-mt/2-st>=0,(Se.idealAlign==="left"||!tt)&&ut)nt-=mt/2,Se.anchor="end";else if(tt)nt+=mt/2,Se.anchor="start";else{Se.anchor="middle";var K=st/2,fe=nt+K-_,oe=nt-K;fe>0&&(nt-=fe),oe<0&&(nt+=-oe)}Se.crossPos=nt}Ie.attr("text-anchor",Se.anchor),et&&Ne.attr("text-anchor",Se.anchor),Ge.attr("transform",I0(nt,wt)+(i?vW(gS):""))}),{hoverLabels:We,commonLabelBoundingBox:B}}function xS(e,t,r,n,a,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Or.templateString(e.name,e.trace._meta)),o=MS(e.name,e.nameLength));var s=r.charAt(0),f=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&(l+=(l?"z: ":"")+e.zLabel)):t&&e[s+"Label"]===a?l=e[f+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var u=e.hovertemplate||!1;if(u){var d=e.hovertemplateLabels||e;e[s+"Label"]!==a&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=Or.hovertemplateString(u,d,n._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(kW,function(h,p){return o=MS(p,e.nameLength),""})}return[l,o]}function AW(e,t,r,n){var a=t?"xa":"ya",i=t?"ya":"xa",o=0,l=1,s=e.size(),f=new Array(s),u=0,d=n.minX,h=n.maxX,p=n.minY,v=n.maxY,m=function(q){return q*r._invScaleX},g=function(q){return q*r._invScaleY};e.each(function(q){var I=q[a],z=q[i],P=I._id.charAt(0)==="x",H=I.range;u===0&&H&&H[0]>H[1]!==P&&(l=-1);var j=0,Z=P?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var te=wS(q,t),ne=q.anchor,ie=ne==="end"?-1:1,ee,ue;if(ne==="middle")ee=q.crossPos+(P?g(te.y-q.by/2):m(q.bx/2+q.tx2width/2)),ue=ee+(P?g(q.by):m(q.bx));else if(P)ee=q.crossPos+g(ur+te.y)-g(q.by/2-ur),ue=ee+g(q.by);else{var U=m(ie*ur+te.x),V=U+m(ie*q.bx);ee=q.crossPos+Math.min(U,V),ue=q.crossPos+Math.max(U,V)}P?p!==void 0&&v!==void 0&&Math.min(ue,v)-Math.max(ee,p)>1&&(z.side==="left"?(j=z._mainLinePosition,Z=r.width):Z=z._mainLinePosition):d!==void 0&&h!==void 0&&Math.min(ue,h)-Math.max(ee,d)>1&&(z.side==="top"?(j=z._mainLinePosition,Z=r.height):Z=z._mainLinePosition)}f[u++]=[{datum:q,traceIndex:q.trace.index,dp:0,pos:q.pos,posref:q.posref,size:q.by*(P?bW:1)/2,pmin:j,pmax:Z}]}),f.sort(function(q,I){return q[0].posref-I[0].posref||l*(I[0].traceIndex-q[0].traceIndex)});var y,w,A,x,_,T,C;function S(q){var I=q[0],z=q[q.length-1];if(w=I.pmin-I.pos-I.dp+I.size,A=z.pos+z.dp+z.size-I.pmax,w>.01){for(_=q.length-1;_>=0;_--)q[_].dp+=w;y=!1}if(!(A<.01)){if(w<-.01){for(_=q.length-1;_>=0;_--)q[_].dp-=A;y=!1}if(y){var P=0;for(x=0;xI.pmax&&P++;for(x=q.length-1;x>=0&&!(P<=0);x--)T=q[x],T.pos>I.pmax-1&&(T.del=!0,P--);for(x=0;x=0;_--)q[_].dp-=A;for(x=q.length-1;x>=0&&!(P<=0);x--)T=q[x],T.pos+T.dp+T.size>I.pmax&&(T.del=!0,P--)}}}for(;!y&&o<=s;){for(o++,y=!0,x=0;x.01&&$.pmin===N.pmin&&$.pmax===N.pmax){for(_=F.length-1;_>=0;_--)F[_].dp+=w;for(E.push.apply(E,F),f.splice(x+1,1),C=0,_=E.length-1;_>=0;_--)C+=E[_].dp;for(A=C/E.length,_=E.length-1;_>=0;_--)E[_].dp-=A;y=!1}else x++}f.forEach(S)}for(x=f.length-1;x>=0;x--){var B=f[x];for(_=B.length-1;_>=0;_--){var G=B[_],J=G.datum;J.offset=G.dp,J.del=G.del}}}function wS(e,t){var r=0,n=e.offset;return t&&(n*=-xW,r=e.offset*_W),{x:r,y:n}}function MW(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ur+Xt),n=r+t*(e.txwidth+Xt),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,n+=e.txwidth/2+Xt),{alignShift:t,textShiftX:r,text2ShiftX:n}}function TS(e,t,r,n){var a=function(o){return o*r},i=function(o){return o*n};e.each(function(o){var l=Ll.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),f=o.anchor,u=f==="end"?-1:1,d=MW(o),h=wS(o,t),p=h.x,v=h.y,m=f==="middle";l.select("path").attr("d",m?"M-"+a(o.bx/2+o.tx2width/2)+","+i(v-o.by/2)+"h"+a(o.bx)+"v"+i(o.by)+"h-"+a(o.bx)+"Z":"M0,0L"+a(u*ur+p)+","+i(ur+v)+"v"+i(o.by/2-ur)+"h"+a(u*o.bx)+"v-"+i(o.by)+"H"+a(u*ur+p)+"V"+i(v-ur)+"Z");var g=p+d.textShiftX,y=v+o.ty0-o.by/2+Xt,w=o.textAlign||"auto";w!=="auto"&&(w==="left"&&f!=="start"?(s.attr("text-anchor","start"),g=m?-o.bx/2-o.tx2width/2+Xt:-o.bx-Xt):w==="right"&&f!=="end"&&(s.attr("text-anchor","end"),g=m?o.bx/2-o.tx2width/2-Xt:o.bx+Xt)),s.call(va.positionText,a(g),i(y)),o.tx2width&&(l.select("text.name").call(va.positionText,a(d.text2ShiftX+d.alignShift*Xt+p),i(v+o.ty0-o.by/2+Xt)),l.select("rect").call(ki.setRect,a(d.text2ShiftX+(d.alignShift-1)*o.tx2width/2+p),i(v-o.by/2-1),a(o.tx2width),i(o.by+2)))})}function SW(e,t){var r=e.index,n=e.trace||{},a=e.cd[0],i=e.cd[r]||{};function o(h){return h||Zi(h)&&h===0}var l=Array.isArray(r)?function(h,p){var v=Or.castOption(a,r,h);return o(v)?v:Or.extractOption({},n,"",p)}:function(h,p){return Or.extractOption(i,n,h,p)};function s(h,p,v){var m=l(p,v);o(m)&&(e[h]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Or.constrain(e.x0,0,e.xa._length),e.x1=Or.constrain(e.x1,0,e.xa._length),e.y0=Or.constrain(e.y0,0,e.ya._length),e.y1=Or.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Do.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Do.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var f=Do.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+f+" / -"+Do.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+f,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var u=Do.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+u+" / -"+Do.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+u,t==="y"&&(e.distance+=1)}var d=e.hoverinfo||e.trace.hoverinfo;return d&&d!=="all"&&(d=Array.isArray(d)?d:d.split("+"),d.indexOf("x")===-1&&(e.xLabel=void 0),d.indexOf("y")===-1&&(e.yLabel=void 0),d.indexOf("z")===-1&&(e.zLabel=void 0),d.indexOf("text")===-1&&(e.text=void 0),d.indexOf("name")===-1&&(e.name=void 0)),e}function kS(e,t,r){var n=r.container,a=r.fullLayout,i=a._size,o=r.event,l=!!t.hLinePoint,s=!!t.vLinePoint,f,u;if(n.selectAll(".spikeline").remove(),!!(s||l)){var d=en.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var h=t.hLinePoint,p,v;f=h&&h.xa,u=h&&h.ya;var m=u.spikesnap;m==="cursor"?(p=o.pointerX,v=o.pointerY):(p=f._offset+h.x,v=u._offset+h.y);var g=mS.readability(h.color,d)<1.5?en.contrast(d):h.color,y=u.spikemode,w=u.spikethickness,A=u.spikecolor||g,x=Do.getPxPosition(e,u),_,T;if(y.indexOf("toaxis")!==-1||y.indexOf("across")!==-1){if(y.indexOf("toaxis")!==-1&&(_=x,T=p),y.indexOf("across")!==-1){var C=u._counterDomainMin,S=u._counterDomainMax;u.anchor==="free"&&(C=Math.min(C,u.position),S=Math.max(S,u.position)),_=i.l+C*i.w,T=i.l+S*i.w}n.insert("line",":first-child").attr({x1:_,x2:T,y1:v,y2:v,"stroke-width":w,stroke:A,"stroke-dasharray":ki.dashStyle(u.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:_,x2:T,y1:v,y2:v,"stroke-width":w+2,stroke:d}).classed("spikeline",!0).classed("crisp",!0)}y.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:x+(u.side!=="right"?w:-w),cy:v,r:w,fill:A}).classed("spikeline",!0)}if(s){var E=t.vLinePoint,F,$;f=E&&E.xa,u=E&&E.ya;var N=f.spikesnap;N==="cursor"?(F=o.pointerX,$=o.pointerY):(F=f._offset+E.x,$=u._offset+E.y);var B=mS.readability(E.color,d)<1.5?en.contrast(d):E.color,G=f.spikemode,J=f.spikethickness,q=f.spikecolor||B,I=Do.getPxPosition(e,f),z,P;if(G.indexOf("toaxis")!==-1||G.indexOf("across")!==-1){if(G.indexOf("toaxis")!==-1&&(z=I,P=$),G.indexOf("across")!==-1){var H=f._counterDomainMin,j=f._counterDomainMax;f.anchor==="free"&&(H=Math.min(H,f.position),j=Math.max(j,f.position)),z=i.t+(1-j)*i.h,P=i.t+(1-H)*i.h}n.insert("line",":first-child").attr({x1:F,x2:F,y1:z,y2:P,"stroke-width":J,stroke:q,"stroke-dasharray":ki.dashStyle(f.spikedash,J)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:F,x2:F,y1:z,y2:P,"stroke-width":J+2,stroke:d}).classed("spikeline",!0).classed("crisp",!0)}G.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:F,cy:I-(f.side!=="top"?J:-J),r:J,fill:q}).classed("spikeline",!0)}}}function CW(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var a=r[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function AS(e,t){return!0}function MS(e,t){return va.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function LW(e,t){for(var r=t.charAt(0),n=[],a=[],i=[],o=0;o",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}},Ro={},Nh=32,U0={CIRCLE_SIDES:Nh,i000:0,i090:Nh/4,i180:Nh/2,i270:Nh/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)},rZ=Ue.strTranslate;function IS(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function nZ(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function aZ(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return IS(e,r[t])}}function iZ(e){return rZ(e.xaxis._offset,e.yaxis._offset)}var V0={p2r:IS,r2p:nZ,axValue:aZ,getTransform:iZ};(function(e){var t=DA,r=U0,n=r.CIRCLE_SIDES,a=r.SQRT2,i=V0,o=i.p2r,l=i.r2p,s=[0,3,4,5,6,1,2],f=[0,3,4,1,2];e.writePaths=function(h){var p=h.length;if(!p)return"M0,0Z";for(var v="",m=0;m0&&xw&&(x="X"),x});return v>w&&(A=A.replace(/[\s,]*X.*/,""),r.log("Ignoring extra params in segment "+p)),m+A})}})(Po);var kZ=Ue,Us=mr,qS=mn,WS=hr,AZ=Ro.readPaths,W0=Po,MZ=W0.getPathString,ZS=Xm,SZ=_n.FROM_TL,YS=function(t,r,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var i;if(n.label.texttemplate){var o={};if(n.type!=="path"){var l=Us.getFromId(t,n.xref),s=Us.getFromId(t,n.yref);for(var f in ZS){var u=ZS[f](n,l,s);u!==void 0&&(o[f]=u)}}i=kZ.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else i=n.label.text;var d={"data-index":r},h=n.label.font,p={"data-notex":1},v=a.append("g").attr(d).classed("shape-label",!0),m=v.append("text").attr(p).classed("shape-label-text",!0).text(i),g,y,w,A;if(n.path){var x=MZ(t,n),_=AZ(x,t);g=1/0,w=1/0,y=-1/0,A=-1/0;for(var T=0;T<_.length;T++)for(var C=0;C<_[T].length;C++)for(var S=_[T][C],E=1;E=e?a=t-n:a=n-t,-180/Math.PI*Math.atan2(a,i)}function LZ(e,t,r,n,a,i,o){var l=a.label.textposition,s=a.label.textangle,f=a.label.padding,u=a.type,d=Math.PI/180*i,h=Math.sin(d),p=Math.cos(d),v=a.label.xanchor,m=a.label.yanchor,g,y,w,A;if(u==="line"){l==="start"?(g=e,y=t):l==="end"?(g=r,y=n):(g=(e+r)/2,y=(t+n)/2),v==="auto"&&(l==="start"?s==="auto"?r>e?v="left":re?v="right":re?v="right":re?v="left":r1&&!(I.length===2&&I[1][0]==="Z")&&(g===0&&(I[0][0]="M"),t[m]=I,o(),l())}}function E(I,z){if(I===2){m=+z.srcElement.getAttribute("data-i"),g=+z.srcElement.getAttribute("data-j");var P=t[m];!Uh(P)&&!Y0(P)&&S()}}function F(I){p=[];for(var z=0;zo&&$e>l&&!pe.shiftKey?o3.getCursor(Fe/Ee,1-Oe/$e):"move";l3(t,Pe),te=Pe.split("-")[0]}}function ue(pe){Gh(e)||(s&&(y=I(r.xanchor)),f&&(w=z(r.yanchor)),r.type==="path"?$=r.path:(p=s?r.x0:I(r.x0),v=f?r.y0:z(r.y0),m=s?r.x1:I(r.x1),g=f?r.y1:z(r.y1)),pg?(A=v,C="y0",x=g,S="y1"):(A=g,C="y1",x=v,S="y0"),ee(pe),Q(a,r),ye(t,r,e),Z.moveFn=te==="move"?Y:se,Z.altKey=pe.altKey)}function U(){Gh(e)||(l3(t),me(a),f3(t,e,r),n3.call("_guiRelayout",e,i.getUpdateObj()))}function V(){Gh(e)||me(a)}function Y(pe,ge){if(r.type==="path"){var Ee=function(Oe){return Oe},$e=Ee,Fe=Ee;s?h("xanchor",r.xanchor=P(y+pe)):($e=function(Pe){return P(I(Pe)+pe)},B&&B.type==="date"&&($e=Un.encodeDate($e))),f?h("yanchor",r.yanchor=H(w+ge)):(Fe=function(Pe){return H(z(Pe)+ge)},J&&J.type==="date"&&(Fe=Un.encodeDate(Fe))),h("path",r.path=u3($,$e,Fe))}else s?h("xanchor",r.xanchor=P(y+pe)):(h("x0",r.x0=P(p+pe)),h("x1",r.x1=P(m+pe))),f?h("yanchor",r.yanchor=H(w+ge)):(h("y0",r.y0=H(v+ge)),h("y1",r.y1=H(g+ge)));t.attr("d",Q0(e,r)),Q(a,r),Vh(e,n,r,N)}function se(pe,ge){if(d){var Ee=function(Ie){return Ie},$e=Ee,Fe=Ee;s?h("xanchor",r.xanchor=P(y+pe)):($e=function(Ne){return P(I(Ne)+pe)},B&&B.type==="date"&&($e=Un.encodeDate($e))),f?h("yanchor",r.yanchor=H(w+ge)):(Fe=function(Ne){return H(z(Ne)+ge)},J&&J.type==="date"&&(Fe=Un.encodeDate(Fe))),h("path",r.path=u3($,$e,Fe))}else if(u){if(te==="resize-over-start-point"){var Oe=p+pe,Pe=f?v-ge:v+ge;h("x0",r.x0=s?Oe:P(Oe)),h("y0",r.y0=f?Pe:H(Pe))}else if(te==="resize-over-end-point"){var We=m+pe,Se=f?g-ge:g+ge;h("x1",r.x1=s?We:P(We)),h("y1",r.y1=f?Se:H(Se))}}else{var Ge=function(Ie){return te.indexOf(Ie)!==-1},qe=Ge("n"),Qe=Ge("s"),it=Ge("w"),dt=Ge("e"),ht=qe?A+ge:A,rt=Qe?x+ge:x,ft=it?_+pe:_,ze=dt?T+pe:T;f&&(qe&&(ht=A-ge),Qe&&(rt=x-ge)),(!f&&rt-ht>l||f&&ht-rt>l)&&(h(C,r[C]=f?ht:H(ht)),h(S,r[S]=f?rt:H(rt))),ze-ft>o&&(h(E,r[E]=s?ft:P(ft)),h(F,r[F]=s?ze:P(ze)))}t.attr("d",Q0(e,r)),Q(a,r),Vh(e,n,r,N)}function Q(pe,ge){(s||f)&&Ee();function Ee(){var $e=ge.type!=="path",Fe=pe.selectAll(".visual-cue").data([0]),Oe=1;Fe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Oe}).classed("visual-cue",!0);var Pe=I(s?ge.xanchor:a3.midRange($e?[ge.x0,ge.x1]:Un.extractPathCoords(ge.path,Dl.paramIsX))),We=z(f?ge.yanchor:a3.midRange($e?[ge.y0,ge.y1]:Un.extractPathCoords(ge.path,Dl.paramIsY)));if(Pe=Un.roundPositionForSharpStrokeRendering(Pe,Oe),We=Un.roundPositionForSharpStrokeRendering(We,Oe),s&&f){var Se="M"+(Pe-1-Oe)+","+(We-1-Oe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Fe.attr("d",Se)}else if(s){var Ge="M"+(Pe-1-Oe)+","+(We-9-Oe)+"v18 h2 v-18 Z";Fe.attr("d",Ge)}else{var qe="M"+(Pe-9-Oe)+","+(We-1-Oe)+"h18 v2 h-18 Z";Fe.attr("d",qe)}}}function me(pe){pe.selectAll(".visual-cue").remove()}function ye(pe,ge,Ee){var $e=ge.xref,Fe=ge.yref,Oe=Vs.getFromId(Ee,$e),Pe=Vs.getFromId(Ee,Fe),We="";$e!=="paper"&&!Oe.autorange&&(We+=$e),Fe!=="paper"&&!Pe.autorange&&(We+=Fe),J0.setClipUrl(pe,We?"clip"+Ee._fullLayout._uid+We:null,Ee)}}function u3(e,t,r){return e.replace(Dl.segmentRE,function(n){var a=0,i=n.charAt(0),o=Dl.paramIsX[i],l=Dl.paramIsY[i],s=Dl.numParams[i],f=n.substr(1).replace(Dl.paramRE,function(u){return a>=s||(o[a]?u=t(u):l[a]&&(u=r(u)),a++),u});return i+f})}function XZ(e,t){if(qh(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){c3(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=c3,ty(e)}}}function c3(e){if(qh(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(i3(e),delete e._fullLayout._activeShapeIndex,ty(e))}}function KZ(e){if(qh(e)){i3(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t1?(F=["toggleHover"],$=["resetViews"]):d?(E=["zoomInGeo","zoomOutGeo"],F=["hoverClosestGeo"],$=["resetGeo"]):u?(F=["hoverClosest3d"],$=["resetCameraDefault3d","resetCameraLastSave3d"]):g?(E=["zoomInMapbox","zoomOutMapbox"],F=["toggleHover"],$=["resetViewMapbox"]):v?F=["hoverClosestGl2d"]:h?F=["hoverClosestPie"]:A?(F=["hoverClosestCartesian","hoverCompareCartesian"],$=["resetViewSankey"]):F=["toggleHover"],f&&(F=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(wY(r)||_)&&(F=[]),(f||v)&&!x&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],$[0]!=="resetViews"&&($=["resetScale2d"])),u?N=["zoom3d","pan3d","orbitRotation","tableRotation"]:(f||v)&&!x||m?N=["zoom2d","pan2d"]:g||d?N=["pan2d"]:y&&(N=["zoom2d"]),xY(r)&&N.push("select2d","lasso2d");var B=[],G=function(z){B.indexOf(z)===-1&&F.indexOf(z)!==-1&&B.push(z)};if(Array.isArray(l)){for(var J=[],q=0;qi?r.substr(i):n.substr(a))+o}function DY(e,t){for(var r=t._size,n=r.h/r.w,a={},i=Object.keys(e),o=0;oCY*v&&!w)){for(i=0;iN&&HF&&(F=H);var Z=(F-E)/(2*$);d/=Z,E=s.l2r(E),F=s.l2r(F),s.range=s._input.range=T=z[1]||Z[1]<=z[0])&&te[0]P[0])return!0}return!1}function _(z){var P=z._fullLayout,H=P._size,j=H.p,Z=d.list(z,"",!0),te,ne,ie,ee,ue,U;if(P._paperdiv.style({width:z._context.responsive&&P.autosize&&!z._context._hasZeroWidth&&!z.layout.width?"100%":P.width+"px",height:z._context.responsive&&P.autosize&&!z._context._hasZeroHeight&&!z.layout.height?"100%":P.height+"px"}).selectAll(".main-svg").call(s.setSize,P.width,P.height),z._context.setBackground(z,P.paper_bgcolor),e.drawMainTitle(z),u.manage(z),!P._has("cartesian"))return n.previousPromises(z);function V(st,tt,ut){var K=st._lw/2;if(st._id.charAt(0)==="x"){if(tt){if(ut==="top")return tt._offset-j-K}else return H.t+H.h*(1-(st.position||0))+K%1;return tt._offset+tt._length+j+K}if(tt){if(ut==="right")return tt._offset+tt._length+j+K}else return H.l+H.w*(st.position||0)+K%1;return tt._offset-j-K}for(te=0;te0){N(z,te,ue,ee),ie.attr({x:ne,y:te,"text-anchor":j,dy:J(P.yanchor)}).call(i.positionText,ne,te);var U=(P.text.match(i.BR_TAG_ALL)||[]).length;if(U){var V=h.LINE_SPACING*U+h.MID_SHIFT;P.y===0&&(V=-V),ie.selectAll(".line").each(function(){var Y=+this.getAttribute("dy").slice(0,-2)-V+"em";this.setAttribute("dy",Y)})}}}};function E(z,P,H,j,Z){var te=P.yref==="paper"?z._fullLayout._size.h:z._fullLayout.height,ne=a.isTopAnchor(P)?j:j-Z,ie=H==="b"?te-ne:ne;return a.isTopAnchor(P)&&H==="t"||a.isBottomAnchor(P)&&H==="b"?!1:ie.5?"t":"b",ne=z._fullLayout.margin[te],ie=0;return P.yref==="paper"?ie=H+P.pad.t+P.pad.b:P.yref==="container"&&(ie=F(te,j,Z,z._fullLayout.height,H)+P.pad.t+P.pad.b),ie>ne?ie:0}function N(z,P,H,j){var Z="title.automargin",te=z._fullLayout.title,ne=te.y>.5?"t":"b",ie={x:te.x,y:te.y,t:0,b:0},ee={};te.yref==="paper"&&E(z,te,ne,P,j)?ie[ne]=H:te.yref==="container"&&(ee[ne]=H,z._fullLayout._reservedMargin[Z]=ee),n.allowAutoMargin(z,Z),n.autoMargin(z,Z,ie)}function B(z,P){var H=z.title,j=z._size,Z=0;switch(P===y?Z=H.pad.l:P===A&&(Z=-H.pad.r),H.xref){case"paper":return j.l+j.w*H.x+Z;case"container":default:return z.width*H.x+Z}}function G(z,P){var H=z.title,j=z._size,Z=0;if(P==="0em"||!P?Z=-H.pad.b:P===h.CAP_SHIFT+"em"&&(Z=H.pad.t),H.y==="auto")return j.t/2;switch(H.yref){case"paper":return j.t+j.h-j.h*H.y+Z;case"container":default:return z.height-z.height*H.y+Z}}function J(z){return z==="top"?h.CAP_SHIFT+.3+"em":z==="bottom"?"-0.3em":h.MID_SHIFT+"em"}function q(z){var P=z.title,H=w;return a.isRightAnchor(P)?H=A:a.isLeftAnchor(P)&&(H=y),H}function I(z){var P=z.title,H="0em";return a.isTopAnchor(P)?H=h.CAP_SHIFT+"em":a.isMiddleAnchor(P)&&(H=h.MID_SHIFT+"em"),H}e.doTraceStyle=function(z){var P=z.calcdata,H=[],j;for(j=0;j=0;g--){var y=o.append("path").attr(s).style("opacity",g?.1:f).call(uy.stroke,d).call(uy.fill,u).call(P3.dashLine,g?"solid":p,g?4+h:h);if($Y(y,e,n),v){var w=PY(e.layout,"selections",n);y.style({cursor:"move"});var A={element:y.node(),plotinfo:a,gd:e,editHelpers:w,isActiveSelection:!0},x=RY(l,e);FY(x,y,A)}else y.style("pointer-events",g?"all":"none");m[g]=y}var _=m[0],T=m[1];T.node().addEventListener("click",function(){return IY(e,_)})}}function $Y(e,t,r){var n=r.xref+r.yref;P3.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function IY(e,t){if(Kh(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){cy(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=cy,Xh(e)}}}function NY(e){if(Kh(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=cy,Xh(e)}}function cy(e){if(Kh(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(F3(e),delete e._fullLayout._activeSelectionIndex,Xh(e))}}function OY(){var e,t=0,r=!1;function n(a,i){return e.list.push({type:a,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(a,i){return n("check",{seg1:a,seg2:i})},segmentChop:function(a,i){return n("div_seg",{seg:a,pt:i}),n("chop",{seg:a,pt:i})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,i){return n("new_seg",{seg:a,primary:i})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,i,o){return n("temp_status",{seg:a,above:i,below:o})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,i,o){return n("status",{seg:a,above:i,below:o})},vert:function(a){return a===r?e:(r=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,i){return n("chain_rem_head",{index:a,pt:i})},chainRemoveTail:function(a,i){return n("chain_rem_tail",{index:a,pt:i})},chainNew:function(a,i){return n("chain_new",{pt1:a,pt2:i})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,i){return n("chain_add_head",{index:a,pt:i})},chainAddTail:function(a,i){return n("chain_add_tail",{index:a,pt:i})},chainConnect:function(a,i){return n("chain_con",{index1:a,index2:i})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,i){return n("chain_join",{index1:a,index2:i})},done:function(){return n("done")}},e}var BY=OY;function HY(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,a){var i=n[0],o=n[1],l=a[0],s=a[1],f=r[0],u=r[1];return(l-i)*(u-o)-(s-o)*(f-i)>=-e},pointBetween:function(r,n,a){var i=r[1]-n[1],o=a[0]-n[0],l=r[0]-n[0],s=a[1]-n[1],f=l*o+i*s;if(f-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=l-i>e&&(o-u)*(i-d)/(l-d)+u-a>e&&(s=!s),o=u,l=d}return s}};return t}var jY=HY,UY={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,a=e.root.next;a!==null;){if(r(a)){t.prev=a.prev,t.next=a,a.prev.next=t,a.prev=t;return}n=a,a=a.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(a){return a.prev=r,a.next=n,r.next=a,n!==null&&(n.prev=a),a}}}};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}},VY=UY,Cu=VY;function GY(e,t,r){function n(v,m){return{id:r?r.segmentId():-1,start:v,end:m,myFill:{above:null,below:null},otherFill:null}}function a(v,m,g){return{id:r?r.segmentId():-1,start:v,end:m,myFill:{above:g.myFill.above,below:g.myFill.below},otherFill:null}}var i=Cu.create();function o(v,m,g,y,w,A){var x=t.pointsCompare(m,w);return x!==0?x:t.pointsSame(g,A)?0:v!==y?v?1:-1:t.pointAboveOrOnLine(g,y?w:A,y?A:w)?1:-1}function l(v,m){i.insertBefore(v,function(g){var y=o(v.isStart,v.pt,m,g.isStart,g.pt,g.other.pt);return y<0})}function s(v,m){var g=Cu.node({isStart:!0,pt:v.start,seg:v,primary:m,other:null,status:null});return l(g,v.end),g}function f(v,m,g){var y=Cu.node({isStart:!1,pt:m.end,seg:m,primary:g,other:v,status:null});v.other=y,l(y,v.pt)}function u(v,m){var g=s(v,m);return f(g,v,m),g}function d(v,m){r&&r.segmentChop(v.seg,m),v.other.remove(),v.seg.end=m,v.other.pt=m,l(v.other,v.pt)}function h(v,m){var g=a(m,v.seg.end,v.seg);return d(v,m),u(g,v.primary)}function p(v,m){var g=Cu.create();function y(G,J){var q=G.seg.start,I=G.seg.end,z=J.seg.start,P=J.seg.end;return t.pointsCollinear(q,z,P)?t.pointsCollinear(I,z,P)||t.pointAboveOrOnLine(I,z,P)?1:-1:t.pointAboveOrOnLine(q,z,P)?1:-1}function w(G){return g.findTransition(function(J){var q=y(G,J.ev);return q>0})}function A(G,J){var q=G.seg,I=J.seg,z=q.start,P=q.end,H=I.start,j=I.end;r&&r.checkIntersection(q,I);var Z=t.linesIntersect(z,P,H,j);if(Z===!1){if(!t.pointsCollinear(z,P,H)||t.pointsSame(z,j)||t.pointsSame(P,H))return!1;var te=t.pointsSame(z,H),ne=t.pointsSame(P,j);if(te&&ne)return J;var ie=!te&&t.pointBetween(z,H,j),ee=!ne&&t.pointBetween(P,H,j);if(te)return ee?h(J,P):h(G,j),J;ie&&(ne||(ee?h(J,P):h(G,j)),h(J,z))}else Z.alongA===0&&(Z.alongB===-1?h(G,H):Z.alongB===0?h(G,Z.pt):Z.alongB===1&&h(G,j)),Z.alongB===0&&(Z.alongA===-1?h(J,z):Z.alongA===0?h(J,Z.pt):Z.alongA===1&&h(J,P));return!1}for(var x=[];!i.isEmpty();){var _=i.getHead();if(r&&r.vert(_.pt[0]),_.isStart){let G=function(){if(C){var J=A(_,C);if(J)return J}return S?A(_,S):!1};r&&r.segmentNew(_.seg,_.primary);var T=w(_),C=T.before?T.before.ev:null,S=T.after?T.after.ev:null;r&&r.tempStatus(_.seg,C?C.seg:!1,S?S.seg:!1);var E=G();if(E){if(e){var F;_.seg.myFill.below===null?F=!0:F=_.seg.myFill.above!==_.seg.myFill.below,F&&(E.seg.myFill.above=!E.seg.myFill.above)}else E.seg.otherFill=_.seg.myFill;r&&r.segmentUpdate(E.seg),_.other.remove(),_.remove()}if(i.getHead()!==_){r&&r.rewind(_.seg);continue}if(e){var F;_.seg.myFill.below===null?F=!0:F=_.seg.myFill.above!==_.seg.myFill.below,S?_.seg.myFill.below=S.seg.myFill.above:_.seg.myFill.below=v,F?_.seg.myFill.above=!_.seg.myFill.below:_.seg.myFill.above=_.seg.myFill.below}else if(_.seg.otherFill===null){var $;S?_.primary===S.primary?$=S.seg.otherFill.above:$=S.seg.myFill.above:$=_.primary?m:v,_.seg.otherFill={above:$,below:$}}r&&r.status(_.seg,C?C.seg:!1,S?S.seg:!1),_.other.status=T.insert(Cu.node({ev:_}))}else{var N=_.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(g.exists(N.prev)&&g.exists(N.next)&&A(N.prev.ev,N.next.ev),r&&r.statusRemove(N.ev.seg),N.remove(),!_.primary){var B=_.seg.myFill;_.seg.myFill=_.seg.otherFill,_.seg.otherFill=B}x.push(_.seg)}i.getHead().remove()}return r&&r.done(),x}return e?{addRegion:function(v){for(var m,g=v[v.length-1],y=0;yo!=v>o&&i<(p-d)*(o-h)/(v-h)+d;m&&(l=!l)}return l},B3={exports:{}},dy=Ad.dot,Jh=zr.BADNUM,Qh=B3.exports={};Qh.tester=function(t){var r=t.slice(),n=r[0][0],a=n,i=r[0][1],o=i,l;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),l=1;la||y===Jh||yo||m&&f(v))}function d(v,m){var g=v[0],y=v[1];if(g===Jh||ga||y===Jh||yo)return!1;var w=r.length,A=r[0][0],x=r[0][1],_=0,T,C,S,E,F;for(T=1;TMath.max(C,A)||y>Math.max(S,x)))if(yl||Math.abs(dy(d,f))>a)return!0;return!1},Qh.filter=function(t,r){var n=[t[0]],a=0,i=0;function o(s){t.push(s);var f=n.length,u=a;n.splice(i+1);for(var d=u+1;d1){var l=t.pop();o(l)}return{addPt:o,raw:t,filtered:n}};var H3=B3.exports,aX={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"},j3=rX,iX=nX,Fu=Pt,oX=hr.dashStyle,Pu=Yt,lX=Yi,sX=Gi.makeEventData,zu=Hs,fX=zu.freeMode,uX=zu.rectMode,$u=zu.drawMode,hy=zu.openMode,vy=zu.selectMode,U3=Po,V3=Hh,G3=X0,q3=gl.clearOutline,W3=Ro,py=W3.handleEllipse,cX=W3.readPaths,dX=G0.newShapes,hX=GS,vX=$3.activateLastSelection,ev=Ue,pX=ev.sorterAsc,Z3=H3,Iu=Pd,ga=Jr.getFromId,mX=H0,gX=Ih.redrawReglTraces,tv=aX,Mi=tv.MINSELECT,yX=Z3.filter,my=Z3.tester,gy=V0,Y3=gy.p2r,bX=gy.axValue,_X=gy.getTransform;function yy(e){return e.subplot!==void 0}function xX(e,t,r,n,a){var i=!yy(n),o=fX(a),l=uX(a),s=hy(a),f=$u(a),u=vy(a),d=a==="drawline",h=a==="drawcircle",p=d||h,v=n.gd,m=v._fullLayout,g=u&&m.newselection.mode==="immediate"&&i,y=m._zoomlayer,w=n.element.getBoundingClientRect(),A=n.plotinfo,x=_X(A),_=t-w.left,T=r-w.top;m._calcInverseTransform(v);var C=ev.apply3DTransform(m._invTransform)(_,T);_=C[0],T=C[1];var S=m._invScaleX,E=m._invScaleY,F=_,$=T,N="M"+_+","+T,B=n.xaxes[0],G=n.yaxes[0],J=B._length,q=G._length,I=e.altKey&&!($u(a)&&s),z,P,H,j,Z,te,ne;K3(e,v,n),o&&(z=yX([[_,T]],tv.BENDPX));var ie=y.selectAll("path.select-outline-"+A.id).data([1]),ee=f?m.newshape:m.newselection;f&&(n.hasText=ee.label.text||ee.label.texttemplate);var ue=f&&!s?ee.fillcolor:"rgba(0,0,0,0)",U=ee.line.color||(i?Pu.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");ie.enter().append("path").attr("class","select-outline select-outline-"+A.id).style({opacity:f?ee.opacity/2:1,"stroke-dasharray":oX(ee.line.dash,ee.line.width),"stroke-width":ee.line.width+"px","shape-rendering":"crispEdges"}).call(Pu.stroke,U).call(Pu.fill,ue).attr("fill-rule","evenodd").classed("cursor-move",!!f).attr("transform",x).attr("d",N+"Z");var V=y.append("path").attr("class","zoombox-corners").style({fill:Pu.background,stroke:Pu.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(f&&n.hasText){var Y=y.select(".label-temp");Y.empty()&&(Y=y.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var se=m._uid+tv.SELECTID,Q=[],me=rv(v,n.xaxes,n.yaxes,n.subplot);g&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(i){var pe=B._id,ge=G._id;a5(v,pe,ge,me);for(var Ee=(v.layout||{}).selections||[],$e=[],Fe=!1,Oe=0;Oe=0){v._fullLayout._deactivateShape(v);return}if(!f){var Ee=m.clickmode;Iu.done(se).then(function(){if(Iu.clear(se),pe===2){for(ie.remove(),Z=0;Z-1&&X3(ge,v,n.xaxes,n.yaxes,n.subplot,n,ie),Ee==="event"&&Bu(v,void 0);lX.click(v,ge,A.id)}).catch(ev.error)}},n.doneFn=function(){V.remove(),Iu.done(se).then(function(){Iu.clear(se),!g&&j&&n.selectionDefs&&(j.subtract=I,n.selectionDefs.push(j),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,H)),(g||f)&&Nu(n,g),n.doneFnCompleted&&n.doneFnCompleted(Q),u&&Bu(v,ne)}).catch(ev.error)}}function X3(e,t,r,n,a,i,o){var l=t._hoverdata,s=t._fullLayout,f=s.clickmode,u=f.indexOf("event")>-1,d=[],h,p,v,m,g,y,w,A,x,_;if(MX(l)){K3(e,t,i),h=rv(t,r,n,a);var T=SX(l,h),C=T.pointNumbers.length>0;if(C?CX(h,T):LX(h)&&(w=Q3(T))){for(o&&o.remove(),_=0;_=0}function AX(e){return e._fullLayout._activeSelectionIndex>=0}function Nu(e,t){var r=e.dragmode,n=e.plotinfo,a=e.gd;kX(a)&&a._fullLayout._deactivateShape(a),AX(a)&&a._fullLayout._deactivateSelection(a);var i=a._fullLayout,o=i._zoomlayer,l=$u(r),s=vy(r);if(l||s){var f=o.selectAll(".select-outline-"+n.id);if(f&&a._fullLayout._outlining){var u;l&&(u=dX(f,e)),u&&Fu.call("_guiRelayout",a,{shapes:u});var d;s&&!yy(e)&&(d=hX(f,e)),d&&(a._fullLayout._noEmitSelectedAtStart=!0,Fu.call("_guiRelayout",a,{selections:d}).then(function(){t&&vX(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function J3(e){return e._id}function rv(e,t,r,n){if(!e.calcdata)return[];var a=[],i=t.map(J3),o=r.map(J3),l,s,f;for(f=0;f0,i=a?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(i)>-1:!1}function CX(e,t){var r=[],n,a,i,o;for(o=0;o0&&r.push(n);if(r.length===1&&(i=r[0]===t.searchInfo,i&&(a=t.searchInfo.cd[0].trace,a.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function Ou(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var pe=i5(e,!0);if(pe.length){var ge=pe[0].xref,Ee=pe[0].yref;if(ge&&Ee){var $e=o5(pe),Fe=l5([ga(e,ge,"x"),ga(e,Ee,"y")]);Fe(Q,$e)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ye&&Bu(e,Q),h._reselect=!1}if(!o&&h._deselect){var Oe=h._deselect;l=Oe.xref,s=Oe.yref,RX(l,s,u)||a5(e,l,s,n),ye&&(Q.points.length?Bu(e,Q):Ty(e)),h._deselect=!1}return{eventData:Q,selectionTesters:r}}function DX(e){var t=e.calcdata;if(t)for(var r=0;r), 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:u5({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:f5.length,dflt:1,editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:f5.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:[d5("x","left","right")].join(" ")},ay:{valType:"any",editType:"calc+arraydraw",description:[d5("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",iv.idRegex.x.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",ov.axisRefDescription("x","left","right"),c5("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",iv.idRegex.y.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",ov.axisRefDescription("y","bottom","top"),c5("y")].join(" ")},xref:{valType:"enumerated",values:["paper",iv.idRegex.x.toString()],editType:"calc",description:["Sets the annotation's x coordinate axis.",ov.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",iv.idRegex.y.toString()],editType:"calc",description:["Sets the annotation's y coordinate axis.",ov.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:u5({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(" ")}}}),ky={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]},h5=Wd.axisHoverFormat,OX=Oa.texttemplateAttrs,BX=Oa.hovertemplateAttrs,v5=pu,HX=pn,jX=vi.dash,UX=vi.pattern,VX=hr,p5=ky,Ay=$r.extendFlat;function m5(e){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 "+e+" axis.","Special values in the form of *M* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function g5(e){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 "+e+" axis.","When `"+e+"period` is round number of weeks,","the `"+e+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function y5(e){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 "+e+" axis."].join(" ")}}var Fl={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:m5("x"),yperiod:m5("y"),xperiod0:g5("x0"),yperiod0:g5("y0"),xperiodalignment:y5("x"),yperiodalignment:y5("y"),xhoverformat:h5("x"),yhoverformat:h5("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:OX({},{}),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 "+p5.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:BX({},{keys:p5.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:Ay({},jX,{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:UX,marker:Ay({symbol:{valType:"enumerated",values:VX.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:Ay({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"},v5("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"},v5("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:HX({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."})},b5=Hu,_5=Fl.line,GX=vi.dash,lv=$r.extendFlat,qX=Ui.overrideAll,WX=cr.templatedArray,x5=av,w5=qX(WX("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:lv({},b5.xref,{description:["Sets the selection's x coordinate axis.",x5.axisRefDescription("x","left","right")].join(" ")}),yref:lv({},b5.yref,{description:["Sets the selection's x coordinate axis.",x5.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:_5.color,width:lv({},_5.width,{min:1,dflt:1}),dash:lv({},GX,{dflt:"dot"})}}),"arraydraw","from-root"),T5=Ue,sv=mr,ZX=bi,YX=w5,k5=Po,XX=function(t,r){ZX(t,r,{name:"selections",handleItemDefaults:KX});for(var n=r.selections,a=0;a=0){Ne._fullLayout._deactivateShape(Ne);return}var et=Ne._fullLayout.clickmode;if(Dy(Ne),ze===2&&!u&&Qe(),f)et.indexOf("select")>-1&&hK(Ie,Ne,m,g,t.id,j),et.indexOf("event")>-1&&nK.click(Ne,Ie,t.id);else if(ze===1&&u){var Je=o?h:d,at=o==="s"||l==="w"?0:1,nt=Je._name+".range["+at+"]",wt=pK(Je,at),mt="left",Be="middle";if(Je.fixedrange)return;o?(Be=o==="n"?"top":"bottom",Je.side==="right"&&(mt="right")):l==="e"&&(mt="right"),Ne._context.showAxisRangeEntryBoxes&&My.select(H).call(rK.makeEditable,{gd:Ne,immediate:!0,background:Ne._fullLayout.paper_bgcolor,text:String(wt),fill:Je.tickfont?Je.tickfont.color:"#444",horizontalAlign:mt,verticalAlign:Be}).on("edit",function(vt){var bt=Je.d2r(vt);bt!==void 0&&uv.call("_guiRelayout",Ne,nt,bt)})}}iK.init(j);var ne,ie,ee,ue,U,V,Y,se,Q,me;function ye(ze,Ie,Ne){var et=H.getBoundingClientRect();ne=Ie-et.left,ie=Ne-et.top,e._fullLayout._calcInverseTransform(e);var Je=ya.apply3DTransform(e._fullLayout._invTransform)(ne,ie);ne=Je[0],ie=Je[1],ee={l:ne,r:ne,w:0,t:ie,b:ie,h:0},ue=e._hmpixcount?e._hmlumcount/e._hmpixcount:eK(e._fullLayout.plot_bgcolor).getLuminance(),U="M0,0H"+A+"V"+x+"H0V0",V=!1,Y="xy",me=!1,se=O5(s,ue,y,w,U),Q=B5(s,y,w)}function pe(ze,Ie){if(e._transitioningWithDuration)return!1;var Ne=Math.max(0,Math.min(A,q*ze+ne)),et=Math.max(0,Math.min(x,I*Ie+ie)),Je=Math.abs(Ne-ne),at=Math.abs(et-ie);ee.l=Math.min(ne,Ne),ee.r=Math.max(ne,Ne),ee.t=Math.min(ie,et),ee.b=Math.max(ie,et);function nt(){Y="",ee.r=ee.l,ee.t=ee.b,Q.attr("d","M0,0Z")}if(_.isSubplotConstrained)Je>Pn||at>Pn?(Y="xy",Je/A>at/x?(at=Je*x/A,ie>et?ee.t=ie-at:ee.b=ie+at):(Je=at*A/x,ne>Ne?ee.l=ne-Je:ee.r=ne+Je),Q.attr("d",dv(ee))):nt();else if(T.isSubplotConstrained)if(Je>Pn||at>Pn){Y="xy";var wt=Math.min(ee.l/A,(x-ee.b)/x),mt=Math.max(ee.r/A,(x-ee.t)/x);ee.l=wt*A,ee.r=mt*A,ee.b=(1-wt)*x,ee.t=(1-mt)*x,Q.attr("d",dv(ee))}else nt();else!S||at0){var vt;if(T.isSubplotConstrained||!C&&S.length===1){for(vt=0;vt1&&(nt.maxallowed!==void 0&&F===(nt.range[0]1&&(wt.maxallowed!==void 0&&$===(wt.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function gK(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function O5(e,t,r,n,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",L5(r,n)).attr("d",a+"Z")}function B5(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:E5.background,stroke:E5.defaultLine,"stroke-width":1,opacity:0}).attr("transform",L5(t,r)).attr("d","M0,0Z")}function H5(e,t,r,n,a,i){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),j5(e,t,a,i)}function j5(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function Dy(e){My.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function U5(e){P5&&e.data&&e._context.showTips&&(ya.notifier(ya._(e,"Double-click to zoom back out"),"long"),P5=!1)}function yK(e,t){return"M"+(e.l-.5)+","+(t-Pn-.5)+"h-3v"+(2*Pn+1)+"h3ZM"+(e.r+.5)+","+(t-Pn-.5)+"h3v"+(2*Pn+1)+"h-3Z"}function bK(e,t){return"M"+(t-Pn-.5)+","+(e.t-.5)+"v-3h"+(2*Pn+1)+"v3ZM"+(t-Pn-.5)+","+(e.b+.5)+"v3h"+(2*Pn+1)+"v-3Z"}function dv(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,Pn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function V5(e,t,r,n,a){for(var i=!1,o={},l={},s,f,u,d,h=(a||{}).xaHash,p=(a||{}).yaHash,v=0;v1&&Gu.warn("Full array edits are incompatible with other edits",o);var p=n[""][""];if(Z5(p))r.set(null);else if(Array.isArray(p))r.set(p);else return Gu.warn("Unrecognized full array edit value",o,p),!0;return u?!1:(l(d,h),s(t),!0)}var v=Object.keys(n).map(Number).sort(TK),m=r.get(),g=m||[],y=i(h,o).get(),w=[],A=-1,x=g.length,_,T,C,S,E,F,$,N;for(_=0;_g.length-($?0:1)){Gu.warn("index out of range",o,C);continue}if(F!==void 0)E.length>1&&Gu.warn("Insertion & removal are incompatible with edits to the same index.",o,C),Z5(F)?w.push(C):$?(F==="add"&&(F={}),g.splice(C,0,F),y&&y.splice(C,0,{})):Gu.warn("Unrecognized full object edit value",o,C,F),A===-1&&(A=C);else for(T=0;T=0;_--)g.splice(w[_],1),y&&y.splice(w[_],1);if(g.length?m||r.set(g):r.set(null),u)return!1;if(l(d,h),f!==Ry){var B;if(A===-1)B=v;else{for(x=Math.max(g.length,x),B=[],_=0;_=A));_++)B.push(C);for(_=A;_0&&a.log("Clearing previous rejected promises from queue."),x._promises=[]},e.cleanLayout=function(x){var _,T;x||(x={}),x.xaxis1&&(x.xaxis||(x.xaxis=x.xaxis1),delete x.xaxis1),x.yaxis1&&(x.yaxis||(x.yaxis=x.yaxis1),delete x.yaxis1),x.scene1&&(x.scene||(x.scene=x.scene1),delete x.scene1);var C=(i.subplotsRegistry.cartesian||{}).attrRegex,S=(i.subplotsRegistry.polar||{}).attrRegex,E=(i.subplotsRegistry.ternary||{}).attrRegex,F=(i.subplotsRegistry.gl3d||{}).attrRegex,$=Object.keys(x);for(_=0;_<$.length;_++){var N=$[_];if(C&&C.test(N)){var B=x[N];B.anchor&&B.anchor!=="free"&&(B.anchor=s(B.anchor)),B.overlaying&&(B.overlaying=s(B.overlaying)),B.type||(B.isdate?B.type="date":B.islog?B.type="log":B.isdate===!1&&B.islog===!1&&(B.type="linear")),(B.autorange==="withzero"||B.autorange==="tozero")&&(B.autorange=!0,B.rangemode="tozero"),B.insiderange&&delete B.range,delete B.islog,delete B.isdate,delete B.categories,g(B,"domain")&&delete B.domain,B.autotick!==void 0&&(B.tickmode===void 0&&(B.tickmode=B.autotick?"auto":"linear"),delete B.autotick),h(B)}else if(S&&S.test(N)){var G=x[N];h(G.radialaxis)}else if(E&&E.test(N)){var J=x[N];h(J.aaxis),h(J.baxis),h(J.caxis)}else if(F&&F.test(N)){var q=x[N],I=q.cameraposition;if(Array.isArray(I)&&I[0].length===4){var z=I[0],P=I[1],H=I[2],j=r([],z),Z=[];for(T=0;T<3;++T)Z[T]=P[T]+H*j[2+4*T];q.camera={eye:{x:Z[0],y:Z[1],z:Z[2]},center:{x:P[0],y:P[1],z:P[2]},up:{x:0,y:0,z:1}},delete q.cameraposition}h(q.xaxis),h(q.yaxis),h(q.zaxis)}}var te=Array.isArray(x.annotations)?x.annotations.length:0;for(_=0;_3?(V.x=1.02,V.xanchor="left"):V.x<-2&&(V.x=-.02,V.xanchor="right"),V.y>3?(V.y=1.02,V.yanchor="bottom"):V.y<-2&&(V.y=-.02,V.yanchor="top")),h(x),x.dragmode==="rotate"&&(x.dragmode="orbit"),l.clean(x),x.template&&x.template.layout&&e.cleanLayout(x.template.layout),x};function d(x,_){var T=x[_],C=_.charAt(0);T&&T!=="paper"&&(x[_]=s(T,C,!0))}function h(x){x&&((typeof x.title=="string"||typeof x.title=="number")&&(x.title={text:x.title}),_("titlefont","font"),_("titleposition","position"),_("titleside","side"),_("titleoffset","offset"));function _(T,C){var S=x[T],E=x.title&&x.title[C];S&&!E&&(x.title||(x.title={}),x.title[C]=x[T],delete x[T])}}e.cleanData=function(x){for(var _=0;_0)return x.substr(0,_)}e.hasParent=function(x,_){for(var T=w(_);T;){if(T in x)return!0;T=w(T)}return!1};var A=["x","y","z"];e.clearAxisTypes=function(x,_,T){for(var C=0;C<_.length;C++)for(var S=x._fullData[C],E=0;E<3;E++){var F=f(x,S,A[E]);if(F&&F.type!=="log"){var $=F._name,N=F._id.substr(1);if(N.substr(0,5)==="scene"){if(T[N]!==void 0)continue;$=N+"."+$}var B=$+".type";T[$]===void 0&&T[B]===void 0&&a.nestedProperty(x.layout,B).set(null)}}}})(Y5),function(e){var t=Qt,r=er,n=sk,a=Ue,i=a.nestedProperty,o=Hd,l=_U,s=Pt,f=Ts,u=sn,d=mr,h=BM,p=yi,v=hr,m=Yt,g=_0.initInteractions,y=ko,w=Uu.clearOutline,A=ms.dfltConfig,x=Vu,_=Y5,T=Ih,C=Ui,S=Dn.AX_NAME_PATTERN,E=0,F=5;function $(K,fe,oe,ce){var Ae;if(K=a.getGraphDiv(K),o.init(K),a.isPlainObject(fe)){var xe=fe;fe=xe.data,oe=xe.layout,ce=xe.config,Ae=xe.frames}var Ve=o.triggerHandler(K,"plotly_beforeplot",[fe,oe,ce]);if(Ve===!1)return Promise.reject();!fe&&!oe&&!a.isPlotDiv(K)&&a.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",K);function je(){if(Ae)return e.addFrames(K,Ae)}q(K,ce),oe||(oe={}),t.select(K).classed("js-plotly-plot",!0),v.makeTester(),Array.isArray(K._promises)||(K._promises=[]);var Re=(K.data||[]).length===0&&Array.isArray(fe);Array.isArray(fe)&&(_.cleanData(fe),Re?K.data=fe:K.data.push.apply(K.data,fe),K.empty=!1),(!K.layout||Re)&&(K.layout=_.cleanLayout(oe)),u.supplyDefaults(K);var le=K._fullLayout,Le=le._has("cartesian");le._replotting=!0,(Re||le._shouldCreateBgLayer)&&(ut(K),le._shouldCreateBgLayer&&delete le._shouldCreateBgLayer),v.initGradients(K),v.initPatterns(K),Re&&d.saveShowSpikeInitial(K);var He=!K.calcdata||K.calcdata.length!==(K._fullData||[]).length;He&&u.doCalcdata(K);for(var Xe=0;Xe=K.data.length||Ae<-K.data.length)throw new Error(oe+" must be valid indices for gd.data.");if(fe.indexOf(Ae,ce+1)>-1||Ae>=0&&fe.indexOf(-K.data.length+Ae)>-1||Ae<0&&fe.indexOf(K.data.length+Ae)>-1)throw new Error("each index in "+oe+" must be unique.")}}function j(K,fe,oe){if(!Array.isArray(K.data))throw new Error("gd.data must be an array.");if(typeof fe>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(fe)||(fe=[fe]),H(K,fe,"currentIndices"),typeof oe<"u"&&!Array.isArray(oe)&&(oe=[oe]),typeof oe<"u"&&H(K,oe,"newIndices"),typeof oe<"u"&&fe.length!==oe.length)throw new Error("current and new indices must be of equal length.")}function Z(K,fe,oe){var ce,Ae;if(!Array.isArray(K.data))throw new Error("gd.data must be an array.");if(typeof fe>"u")throw new Error("traces must be defined.");for(Array.isArray(fe)||(fe=[fe]),ce=0;ce"u")throw new Error("indices must be an integer or array of integers");H(K,oe,"indices");for(var xe in fe){if(!Array.isArray(fe[xe])||fe[xe].length!==oe.length)throw new Error("attribute "+xe+" must be an array of length equal to indices array length");if(Ae&&(!(xe in ce)||!Array.isArray(ce[xe])||ce[xe].length!==fe[xe].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 ne(K,fe,oe,ce){var Ae=a.isPlainObject(ce),xe=[],Ve,je,Re,le,Le;Array.isArray(oe)||(oe=[oe]),oe=P(oe,K.data.length-1);for(var He in fe)for(var Xe=0;Xe=0&&Le=0&&Le"u")return le=e.redraw(K),l.add(K,Ae,Ve,xe,je),le;Array.isArray(oe)||(oe=[oe]);try{j(K,ce,oe)}catch(Le){throw K.data.splice(K.data.length-fe.length,fe.length),Le}return l.startSequence(K),l.add(K,Ae,Ve,xe,je),le=e.moveTraces(K,ce,oe),l.stopSequence(K),le}function Y(K,fe){K=a.getGraphDiv(K);var oe=[],ce=e.addTraces,Ae=Y,xe=[K,oe,fe],Ve=[K,fe],je,Re;if(typeof fe>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(fe)||(fe=[fe]),H(K,fe,"indices"),fe=P(fe,K.data.length-1),fe.sort(a.sorterDes),je=0;je"u")for(oe=[],le=0;le-1&&xe.indexOf("grouptitlefont")===-1?je(xe,xe.replace("titlefont","title.font")):xe.indexOf("titleposition")>-1?je(xe,xe.replace("titleposition","title.position")):xe.indexOf("titleside")>-1?je(xe,xe.replace("titleside","title.side")):xe.indexOf("titleoffset")>-1&&je(xe,xe.replace("titleoffset","title.offset"));function je(Re,le){K[le]=K[Re],delete K[Re]}}function Fe(K,fe,oe){K=a.getGraphDiv(K),_.clearPromiseQueue(K);var ce={};if(typeof fe=="string")ce[fe]=oe;else if(a.isPlainObject(fe))ce=a.extendFlat({},fe);else return a.warn("Relayout fail.",fe,oe),Promise.reject();Object.keys(ce).length&&(K.changed=!0);var Ae=qe(K,ce),xe=Ae.flags;xe.calc&&(K.calcdata=void 0);var Ve=[u.previousPromises];xe.layoutReplot?Ve.push(T.layoutReplot):Object.keys(ce).length&&(Oe(K,xe,Ae)||u.supplyDefaults(K),xe.legend&&Ve.push(T.doLegend),xe.layoutstyle&&Ve.push(T.layoutStyles),xe.axrange&&Pe(Ve,Ae.rangesAltered),xe.ticks&&Ve.push(T.doTicksRelayout),xe.modebar&&Ve.push(T.doModeBar),xe.camera&&Ve.push(T.doCamera),xe.colorbars&&Ve.push(T.doColorBars),Ve.push(N)),Ve.push(u.rehover,u.redrag,u.reselect),l.add(K,Fe,[K,Ae.undoit],Fe,[K,Ae.redoit]);var je=a.syncOrAsync(Ve,K);return(!je||!je.then)&&(je=Promise.resolve(K)),je.then(function(){return K.emit("plotly_relayout",Ae.eventData),K})}function Oe(K,fe,oe){var ce=K._fullLayout;if(!fe.axrange)return!1;for(var Ae in fe)if(Ae!=="axrange"&&fe[Ae])return!1;var xe,Ve,je=function(Lt,Dt){return a.coerce(xe,Ve,p,Lt,Dt)},Re={};for(var le in oe.rangesAltered){var Le=d.id2name(le);if(xe=K.layout[Le],Ve=ce[Le],h(xe,Ve,je,Re),Ve._matchGroup){for(var He in Ve._matchGroup)if(He!==le){var Xe=ce[d.id2name(He)];Xe.autorange=Ve.autorange,Xe.range=Ve.range.slice(),Xe._input.range=Ve.range.slice()}}}return!0}function Pe(K,fe){var oe=fe?function(ce){var Ae=[],xe=!0;for(var Ve in fe){var je=d.getFromId(ce,Ve);if(Ae.push(Ve),(je.ticklabelposition||"").indexOf("inside")!==-1&&je._anchorAxis&&Ae.push(je._anchorAxis._id),je._matchGroup)for(var Re in je._matchGroup)fe[Re]||Ae.push(Re)}return d.draw(ce,Ae,{skipTitle:xe})}:function(ce){return d.draw(ce,"redraw")};K.push(w,T.doAutoRangeAndConstraints,oe,T.drawData,T.finalDraw)}var We=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Se=/^[xyz]axis[0-9]*\.autorange$/,Ge=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function qe(K,fe){var oe=K.layout,ce=K._fullLayout,Ae=ce._guiEditing,xe=ye(ce._preGUI,Ae),Ve=Object.keys(fe),je=d.list(K),Re=a.extendDeepAll({},fe),le={},Le,He,Xe;for($e(fe),Ve=Object.keys(fe),He=0;He0&&typeof kt.parts[nr]!="string";)nr--;var Mt=kt.parts[nr],Kt=kt.parts[nr-1]+"."+Mt,Nt=kt.parts.slice(0,nr).join("."),kr=i(K.layout,Nt).get(),Jt=i(ce,Nt).get(),_r=kt.get();if(At!==void 0){jt[Ft]=At,$t[Ft]=Mt==="reverse"?At:me(_r);var Dr=f.getLayoutValObject(ce,kt.parts);if(Dr&&Dr.impliedEdits&&At!==null)for(var Mn in Dr.impliedEdits)xt(a.relativeAttr(Ft,Mn),Dr.impliedEdits[Mn]);if(["width","height"].indexOf(Ft)!==-1)if(At){xt("autosize",null);var rn=Ft==="height"?"width":"height";xt(rn,ce[rn])}else ce[Ft]=K._initialAutoSize[Ft];else if(Ft==="autosize")xt("width",At?null:ce.width),xt("height",At?null:ce.height);else if(Kt.match(We))Rt(Kt),i(ce,Nt+"._inputRange").set(null);else if(Kt.match(Se)){Rt(Kt),i(ce,Nt+"._inputRange").set(null);var nn=i(ce,Nt).get();nn._inputDomain&&(nn._input.domain=nn._inputDomain.slice())}else Kt.match(Ge)&&i(ce,Nt+"._inputDomain").set(null);if(Mt==="type"){qt=kr;var Qa=Jt.type==="linear"&&At==="log",to=Jt.type==="log"&&At==="linear";if(Qa||to){if(!qt||!qt.range)xt(Nt+".autorange",!0);else if(Jt.autorange)Qa&&(qt.range=qt.range[1]>qt.range[0]?[1,2]:[2,1]);else{var Yr=qt.range[0],Zn=qt.range[1];Qa?(Yr<=0&&Zn<=0&&xt(Nt+".autorange",!0),Yr<=0?Yr=Zn/1e6:Zn<=0&&(Zn=Yr/1e6),xt(Nt+".range[0]",Math.log(Yr)/Math.LN10),xt(Nt+".range[1]",Math.log(Zn)/Math.LN10)):(xt(Nt+".range[0]",Math.pow(10,Yr)),xt(Nt+".range[1]",Math.pow(10,Zn)))}Array.isArray(ce._subplots.polar)&&ce._subplots.polar.length&&ce[kt.parts[0]]&&kt.parts[1]==="radialaxis"&&delete ce[kt.parts[0]]._subplot.viewInitial["radialaxis.range"],s.getComponentMethod("annotations","convertCoords")(K,Jt,At,xt),s.getComponentMethod("images","convertCoords")(K,Jt,At,xt)}else xt(Nt+".autorange",!0),xt(Nt+".range",null);i(ce,Nt+"._inputRange").set(null)}else if(Mt.match(S)){var ro=i(ce,Ft).get(),Ma=(At||{}).type;(!Ma||Ma==="-")&&(Ma="linear"),s.getComponentMethod("annotations","convertCoords")(K,ro,Ma,xt),s.getComponentMethod("images","convertCoords")(K,ro,Ma,xt)}var lr=x.containerArrayMatch(Ft);if(lr){Le=lr.array,He=lr.index;var Sa=lr.property,ei=Dr||{editType:"calc"};He!==""&&Sa===""&&(x.isAddVal(At)?$t[Ft]=null:x.isRemoveVal(At)?$t[Ft]=(i(oe,Le).get()||[])[He]:a.warn("unrecognized full object value",fe)),C.update(Tt,ei),le[Le]||(le[Le]={});var no=le[Le][He];no||(no=le[Le][He]={}),no[Sa]=At,delete fe[Ft]}else Mt==="reverse"?(kr.range?kr.range.reverse():(xt(Nt+".autorange",!0),kr.range=[1,0]),Jt.autorange?Tt.calc=!0:Tt.plot=!0):(Ft==="dragmode"&&(At===!1&&_r!==!1||At!==!1&&_r===!1)||ce._has("scatter-like")&&ce._has("regl")&&Ft==="dragmode"&&(At==="lasso"||At==="select")&&!(_r==="lasso"||_r==="select")||ce._has("gl2d")?Tt.plot=!0:Dr?C.update(Tt,Dr):Tt.calc=!0,kt.set(At))}}for(Le in le){var Ar=x.applyContainerArrayChanges(K,xe(oe,Le),le[Le],Tt,xe);Ar||(Tt.plot=!0)}for(var Gr in Gt){qt=d.getFromId(K,Gr);var Yn=qt&&qt._constraintGroup;if(Yn){Tt.calc=!0;for(var Ca in Yn)Gt[Ca]||(d.getFromId(K,Ca)._constraintShrinkable=!0)}}(Qe(K)||fe.height||fe.width)&&(Tt.plot=!0);var Ei=ce.shapes;for(He=0;He1;)if(ce.pop(),oe=i(fe,ce.join(".")+".uirevision").get(),oe!==void 0)return oe;return fe.uirevision}function Ie(K,fe){for(var oe=0;oe=Ae.length?Ae[0]:Ae[le]:Ae}function je(le){return Array.isArray(xe)?le>=xe.length?xe[0]:xe[le]:xe}function Re(le,Le){var He=0;return function(){if(le&&++He===Le)return le()}}return new Promise(function(le,Le){function He(){if(ce._frameQueue.length!==0){for(;ce._frameQueue.length;){var Mt=ce._frameQueue.pop();Mt.onInterrupt&&Mt.onInterrupt()}K.emit("plotly_animationinterrupted",[])}}function Xe(Mt){if(Mt.length!==0){for(var Kt=0;Ktce._timeToNext&&Dt()};Mt()}var Tt=0;function jt(Mt){return Array.isArray(Ae)?Tt>=Ae.length?Mt.transitionOpts=Ae[Tt]:Mt.transitionOpts=Ae[0]:Mt.transitionOpts=Ae,Tt++,Mt}var $t,xt,Gt=[],qt=fe==null,Rt=Array.isArray(fe),Ft=!qt&&!Rt&&a.isPlainObject(fe);if(Ft)Gt.push({type:"object",data:jt(a.extendFlat({},fe))});else if(qt||["string","number"].indexOf(typeof fe)!==-1)for($t=0;$t0&&BtBt)&&nr.push(xt);Gt=nr}}Gt.length>0?Xe(Gt):(K.emit("plotly_animated"),le())})}function bt(K,fe,oe){if(K=a.getGraphDiv(K),fe==null)return Promise.resolve();if(!a.isPlotDiv(K))throw new Error("This element is not a Plotly plot: "+K+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var ce,Ae,xe,Ve,je=K._transitionData._frames,Re=K._transitionData._frameHash;if(!Array.isArray(fe))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+fe);var le=je.length+fe.length*2,Le=[],He={};for(ce=fe.length-1;ce>=0;ce--)if(a.isPlainObject(fe[ce])){var Xe=fe[ce].name,Lt=(Re[Xe]||He[Xe]||{}).name,Dt=fe[ce].name,zt=Re[Lt]||He[Lt];Lt&&Dt&&typeof Dt=="number"&&zt&&Ekt.index?-1:Ft.index=0;ce--){if(Ae=Le[ce].frame,typeof Ae.name=="number"&&a.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Ae.name)for(;Re[Ae.name="frame "+K._transitionData._counter++];);if(Re[Ae.name]){for(xe=0;xe=0;oe--)ce=fe[oe],xe.push({type:"delete",index:ce}),Ve.unshift({type:"insert",index:ce,value:Ae[ce]});var je=u.modifyFrames,Re=u.modifyFrames,le=[K,Ve],Le=[K,xe];return l&&l.add(K,je,le,Re,Le),u.modifyFrames(K,xe)}function st(K){K=a.getGraphDiv(K);var fe=K._fullLayout||{},oe=K._fullData||[];return u.cleanPlot([],{},oe,fe),u.purge(K),o.purge(K),fe._container&&fe._container.remove(),delete K._context,K}function tt(K){var fe=K._fullLayout,oe=K.getBoundingClientRect();if(!a.equalDomRects(oe,fe._lastBBox)){var ce=fe._invTransform=a.inverseTransformMatrix(a.getFullTransformMatrix(K));fe._invScaleX=Math.sqrt(ce[0][0]*ce[0][0]+ce[0][1]*ce[0][1]+ce[0][2]*ce[0][2]),fe._invScaleY=Math.sqrt(ce[1][0]*ce[1][0]+ce[1][1]*ce[1][1]+ce[1][2]*ce[1][2]),fe._lastBBox=oe}}function ut(K){var fe=t.select(K),oe=K._fullLayout;if(oe._calcInverseTransform=tt,oe._calcInverseTransform(K),oe._container=fe.selectAll(".plot-container").data([0]),oe._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),oe._paperdiv=oe._container.selectAll(".svg-container").data([0]),oe._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),oe._glcontainer=oe._paperdiv.selectAll(".gl-container").data([{}]),oe._glcontainer.enter().append("div").classed("gl-container",!0),oe._paperdiv.selectAll(".main-svg").remove(),oe._paperdiv.select(".modebar-container").remove(),oe._paper=oe._paperdiv.insert("svg",":first-child").classed("main-svg",!0),oe._toppaper=oe._paperdiv.append("svg").classed("main-svg",!0),oe._modebardiv=oe._paperdiv.append("div"),delete oe._modeBar,oe._hoverpaper=oe._paperdiv.append("svg").classed("main-svg",!0),!oe._uid){var ce={};t.selectAll("defs").each(function(){this.id&&(ce[this.id.split("-")[1]]=1)}),oe._uid=a.randstr(ce)}oe._paperdiv.selectAll(".main-svg").attr(y.svgAttrs),oe._defs=oe._paper.append("defs").attr("id","defs-"+oe._uid),oe._clips=oe._defs.append("g").classed("clips",!0),oe._topdefs=oe._toppaper.append("defs").attr("id","topdefs-"+oe._uid),oe._topclips=oe._topdefs.append("g").classed("clips",!0),oe._bgLayer=oe._paper.append("g").classed("bglayer",!0),oe._draggers=oe._paper.append("g").classed("draglayer",!0);var Ae=oe._paper.append("g").classed("layer-below",!0);oe._imageLowerLayer=Ae.append("g").classed("imagelayer",!0),oe._shapeLowerLayer=Ae.append("g").classed("shapelayer",!0),oe._cartesianlayer=oe._paper.append("g").classed("cartesianlayer",!0),oe._polarlayer=oe._paper.append("g").classed("polarlayer",!0),oe._smithlayer=oe._paper.append("g").classed("smithlayer",!0),oe._ternarylayer=oe._paper.append("g").classed("ternarylayer",!0),oe._geolayer=oe._paper.append("g").classed("geolayer",!0),oe._funnelarealayer=oe._paper.append("g").classed("funnelarealayer",!0),oe._pielayer=oe._paper.append("g").classed("pielayer",!0),oe._iciclelayer=oe._paper.append("g").classed("iciclelayer",!0),oe._treemaplayer=oe._paper.append("g").classed("treemaplayer",!0),oe._sunburstlayer=oe._paper.append("g").classed("sunburstlayer",!0),oe._indicatorlayer=oe._toppaper.append("g").classed("indicatorlayer",!0),oe._glimages=oe._paper.append("g").classed("glimages",!0);var xe=oe._toppaper.append("g").classed("layer-above",!0);oe._imageUpperLayer=xe.append("g").classed("imagelayer",!0),oe._shapeUpperLayer=xe.append("g").classed("shapelayer",!0),oe._selectionLayer=oe._toppaper.append("g").classed("selectionlayer",!0),oe._infolayer=oe._toppaper.append("g").classed("infolayer",!0),oe._menulayer=oe._toppaper.append("g").classed("menulayer",!0),oe._zoomlayer=oe._toppaper.append("g").classed("zoomlayer",!0),oe._hoverlayer=oe._hoverpaper.append("g").classed("hoverlayer",!0),oe._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),K.emit("plotly_framework")}e.animate=vt,e.addFrames=bt,e.deleteFrames=Ke,e.addTraces=V,e.deleteTraces=Y,e.extendTraces=ue,e.moveTraces=se,e.prependTraces=U,e.newPlot=z,e._doPlot=$,e.purge=st,e.react=at,e.redraw=I,e.relayout=Fe,e.restyle=Q,e.setPlotConfig=B,e.update=it,e._guiRelayout=dt(Fe),e._guiRestyle=dt(Q),e._guiUpdate=dt(it),e._storeDirectGUIEdit=ge}(fg);var kn={},AK=Pt;kn.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},kn.getRedrawFunc=function(e){return function(){AK.getComponentMethod("colorbar","draw")(e)}},kn.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},kn.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var X5=window.URL||window.webkitURL;kn.createObjectURL=function(e){return X5.createObjectURL(e)},kn.revokeObjectURL=function(e){return X5.revokeObjectURL(e)},kn.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=MK(window.atob(e));return new window.Blob([r],{type:"image/"+t})},kn.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function MK(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),a=0;a")!==-1?"":t.html(n).text()});return t.remove(),r}function RK(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}var $y=function(t,r,n){var a=t._fullLayout,i=a._paper,o=a._toppaper,l=a.width,s=a.height,f;i.insert("rect",":first-child").call(CK.setRect,0,0,l,s).call(LK.fill,a.paper_bgcolor);var u=a._basePlotModules||[];for(f=0;f1&&a.push(Vr("object","layout"))),BK.supplyDefaults(i);for(var s=i._fullData,f=o.length,u=0;ud.length&&n.push(Vr("unused",a,f.concat(d.length)));var y=d.length,w=Array.isArray(g);w&&(y=Math.min(y,g.length));var A,x,_,T,C;if(h.dimensions===2)for(x=0;xd[x].length&&n.push(Vr("unused",a,f.concat(x,d[x].length)));var S=d[x].length;for(A=0;A<(w?Math.min(S,g[x].length):S);A++)_=w?g[x][A]:g,T=u[x][A],C=d[x][A],ba.validate(T,_)?C!==T&&C!==+T&&n.push(Vr("dynamic",a,f.concat(x,A),T,C)):n.push(Vr("value",a,f.concat(x,A),T))}else n.push(Vr("array",a,f.concat(x),u[x]));else for(x=0;xy?o.push({code:"unused",traceType:p,templateCount:g,dataCount:y}):y>g&&o.push({code:"reused",traceType:p,templateCount:g,dataCount:y})}}function w(A,x){for(var _ in A)if(_.charAt(0)!=="_"){var T=A[_],C=xa(A,_,x);qn(T)?(Array.isArray(A)&&T._template===!1&&T.templateitemname&&o.push({code:"missing",path:C,templateitemname:T.templateitemname}),w(T,C)):Array.isArray(T)&&iJ(T)&&w(T,C)}}if(w({data:s,layout:l},""),o.length)return o.map(oJ)};function iJ(e){for(var t=0;t=0;f--){var u=t[f];if(u.type==="scatter"&&u.xaxis===l.xaxis&&u.yaxis===l.yaxis){u.opacity=void 0;break}}}}},HJ=Ue,jJ=pg,UJ=function(e,t){function r(a,i){return HJ.coerce(e,t,jJ,a,i)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)},VJ=er,xC=Ue,GJ=xC.dateTime2ms,mv=xC.incrementMonth,qJ=zr,WJ=qJ.ONEAVGMONTH,gv=function(t,r,n,a){if(r.type!=="date")return{vals:a};var i=t[n+"periodalignment"];if(!i)return{vals:a};var o=t[n+"period"],l;if(VJ(o)){if(o=+o,o<=0)return{vals:a}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:a}}for(var f=r.calendar,u=i==="start",d=i==="end",h=t[n+"period0"],p=GJ(h,f)||0,v=[],m=[],g=[],y=a.length,w=0;wA;)T=mv(T,-l,f);for(;T<=A;)T=mv(T,l,f);_=mv(T,-l,f)}else{for(x=Math.round((A-p)/o),T=p+x*o;T>A;)T-=o;for(;T<=A;)T+=o;_=T-o}v[w]=u?_:d?T:(_+T)/2,m[w]=_,g[w]=T}return{vals:v,starts:m,ends:g}},Uy=Ha.hasColorscale,Vy=Kd,wC=ua,ZJ=function(t,r){wC.hasLines(r)&&Uy(r,"line")&&Vy(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),wC.hasMarkers(r)&&(Uy(r,"marker")&&Vy(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),Uy(r,"marker.line")&&Vy(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))},cn=Ue,TC=function(t,r){for(var n=0;ny&&h[A].gap;)A--;for(_=h[A].s,w=h.length-1;w>A;w--)h[w].s=_;for(;ys+o||!Oo(l))}for(var u=0;uE[u]&&u0?VC:GC)/(i._m*s*(i._m>0?VC:GC)))),bt*=1e3}if(Ke===ec){if(l&&(Ke=i.c2p(vt.y,!0)),Ke===ec)return!1;Ke*=1e3}return[bt,Ke]}function te(Be,vt,bt,Ke){var st=bt-Be,tt=Ke-vt,ut=.5-Be,K=.5-vt,fe=st*st+tt*tt,oe=st*ut+tt*K;if(oe>0&&oe1||Math.abs(ut.y-bt[0][1])>1)&&(ut=[ut.x,ut.y],Ke&&ue(ut,Be)Y||Be[1]Q)return[qC(Be[0],V,Y),qC(Be[1],se,Q)]}function We(Be,vt){if(Be[0]===vt[0]&&(Be[0]===V||Be[0]===Y)||Be[1]===vt[1]&&(Be[1]===se||Be[1]===Q))return!0}function Se(Be,vt){var bt=[],Ke=Pe(Be),st=Pe(vt);return Ke&&st&&We(Ke,st)||(Ke&&bt.push(Ke),st&&bt.push(st)),bt}function Ge(Be,vt,bt){return function(Ke,st){var tt=Pe(Ke),ut=Pe(st),K=[];if(tt&&ut&&We(tt,ut))return K;tt&&K.push(tt),ut&&K.push(ut);var fe=2*_v.constrain((Ke[Be]+st[Be])/2,vt,bt)-((tt||Ke)[Be]+(ut||st)[Be]);if(fe){var oe;tt&&ut?oe=fe>0==tt[Be]>ut[Be]?tt:ut:oe=tt||ut,oe[Be]+=fe}return K}}var qe;v==="linear"||v==="spline"?qe=Oe:v==="hv"||v==="vh"?qe=Se:v==="hvh"?qe=Ge(0,V,Y):v==="vhv"&&(qe=Ge(1,se,Q));function Qe(Be,vt){var bt=vt[0]-Be[0],Ke=(vt[1]-Be[1])/bt,st=(Be[1]*vt[0]-vt[1]*Be[0])/bt;return st>0?[Ke>0?V:Y,Q]:[Ke>0?Y:V,se]}function it(Be){var vt=Be[0],bt=Be[1],Ke=vt===x[_-1][0],st=bt===x[_-1][1];if(!(Ke&&st))if(_>1){var tt=vt===x[_-2][0],ut=bt===x[_-2][1];Ke&&(vt===V||vt===Y)&&tt?ut?_--:x[_-1]=Be:st&&(bt===se||bt===Q)&&ut?tt?_--:x[_-1]=Be:x[_++]=Be}else x[_++]=Be}function dt(Be){x[_-1][0]!==Be[0]&&x[_-1][1]!==Be[1]&&it([ge,Ee]),it(Be),$e=null,ge=Ee=0}var ht=_v.isArrayOrTypedArray(d);function rt(Be){if(Be&&u&&(Be.i=T,Be.d=t,Be.trace=n,Be.marker=ht?d[Be.i]:d,Be.backoff=u),ne=Be[0]/s,ie=Be[1]/f,ye=Be[0]Y?Y:0,pe=Be[1]Q?Q:0,ye||pe){if(!_)x[_++]=[ye||Be[0],pe||Be[1]];else if($e){var vt=qe($e,Be);vt.length>1&&(dt(vt[0]),x[_++]=vt[1])}else Fe=qe(x[_-1],Be)[0],x[_++]=Fe;var bt=x[_-1];ye&&pe&&(bt[0]!==ye||bt[1]!==pe)?($e&&(ge!==ye&&Ee!==pe?it(ge&&Ee?Qe($e,Be):[ge||ye,Ee||pe]):ge&&Ee&&it([ge,Ee])),it([ye,pe])):ge-ye&&Ee-pe&&it([ye||ge,pe||Ee]),$e=Be,ge=ye,Ee=pe}else $e&&dt(qe($e,Be)[0]),x[_++]=Be}for(T=0;Tee($,ft))break;S=$,z=G[0]*B[0]+G[1]*B[1],z>q?(q=z,E=$,N=!1):z=t.length||!$)break;rt($),C=$}}$e&&it([ge||$e[0],Ee||$e[1]]),y.push(x.slice(0,_))}var ze=v.slice(v.length-1);if(u&&ze!=="h"&&ze!=="v"){for(var Ie=!1,Ne=-1,et=[],Je=0;Je=0?s=p:(s=p=h,h++),s0,d=_Q(t,r,n);if(l=a.selectAll("g.trace").data(d,function(p){return p[0].trace.uid}),l.enter().append("g").attr("class",function(p){return"trace scatter trace"+p[0].trace.uid}).style("stroke-miterlimit",2),l.order(),TQ(t,l,r),u){o&&(s=o());var h=Ga.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){a.selectAll("g.trace").each(function(p,v){YC(t,v,r,p,d,this,i)})})}else l.each(function(p,v){YC(t,v,r,p,d,this,i)});f&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function TQ(e,t,r){t.each(function(n){var a=Xs(Ga.select(this),"g","fills");Fr.setClipUrl(a,r.layerClipId,e);var i=n[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=a.selectAll("g").data(o,ZC);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=Xs(Ga.select(this),"path","js-fill")})})}function YC(e,t,r,n,a,i,o){var l=e._context.staticPlot,s;kQ(e,t,r,n,a);var f=!!o&&o.duration>0;function u(ye){return f?ye.transition():ye}var d=r.xaxis,h=r.yaxis,p=n[0].trace,v=p.line,m=Ga.select(i),g=Xs(m,"g","errorbars"),y=Xs(m,"g","lines"),w=Xs(m,"g","points"),A=Xs(m,"g","text");if(yQ.getComponentMethod("errorbars","plot")(e,g,r,o),p.visible!==!0)return;u(m).style("opacity",p.opacity);var x,_,T=p.fill.charAt(p.fill.length-1);T!=="x"&&T!=="y"&&(T=""),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=m;var C="",S=[],E=p._prevtrace;E&&(C=E._prevRevpath||"",_=E._nextFill,S=E._polygons);var F,$,N="",B="",G,J,q,I,z,P,H,j=[],Z=tc.noop;if(x=p._ownFill,Ks.hasLines(p)||p.fill!=="none"){for(_&&_.datum(n),["hv","vh","hvh","vhv"].indexOf(v.shape)!==-1?(G=Fr.steps(v.shape),J=Fr.steps(v.shape.split("").reverse().join(""))):v.shape==="spline"?G=J=function(ye){var pe=ye[ye.length-1];return ye.length>1&&ye[0][0]===pe[0]&&ye[0][1]===pe[1]?Fr.smoothclosed(ye.slice(1),v.smoothing):Fr.smoothopen(ye,v.smoothing)}:G=J=function(ye){return"M"+ye.join("L")},q=function(ye){return J(ye.reverse())},j=bQ(n,{xaxis:d,yaxis:h,trace:p,connectGaps:p.connectgaps,baseTolerance:Math.max(v.width||1,3)/4,shape:v.shape,backoff:v.backoff,simplify:v.simplify,fill:p.fill}),H=p._polygons=new Array(j.length),s=0;s=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),h=Math.ceil(d.length/u),p=0;a.forEach(function(m,g){var y=m[0].trace;Ks.hasMarkers(y)&&y.marker.maxdisplayed>0&&g=Math.min(se,Q)&&f<=Math.max(se,Q)?0:1/0}var me=Math.max(3,Y.mrc||0),ye=1-1/me,pe=Math.abs(l.c2p(Y.x)-f);return pe=Math.min(se,Q)&&u<=Math.max(se,Q)?0:1/0}var me=Math.max(3,Y.mrc||0),ye=1-1/me,pe=Math.abs(s.c2p(Y.y)-u);return peU!=ue>=U&&(ne=Z[H-1][0],ie=Z[H][0],ue-ee&&(te=ne+(ie-ne)*(U-ee)/(ue-ee),J=Math.min(J,te),q=Math.max(q,te)));J=Math.max(J,0),q=Math.min(q,l._length);var V=n1.defaultLine;return n1.opacity(o.fillcolor)?V=o.fillcolor:n1.opacity((o.line||{}).color)&&(V=o.line.color),wv.extendFlat(t,{distance:t.maxHoverDistance,x0:J,x1:q,y0:U,y1:U,color:V,hovertemplate:!1}),delete t.index,o.text&&!wv.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}},eL=ua,PQ=function(t,r){var n=t.cd,a=t.xaxis,i=t.yaxis,o=[],l=n[0].trace,s,f,u,d,h=!eL.hasMarkers(l)&&!eL.hasText(l);if(h)return[];if(r===!1)for(s=0;s0&&(u["_"+s+"axes"]||{})[l])return u;if((u[s+"axis"]||s)===l){if(i(u,s))return u;if((u[s]||[]).length||u[s+"0"])return u}}}function a(o){return{v:"x",h:"y"}[o.orientation||"v"]}function i(o,l){var s=a(o),f=e(o,"box-violin"),u=e(o._fullInput||{},"candlestick");return f&&!u&&l===s&&o[s]===void 0&&o[s+"0"]===void 0}return i1}var IQ=jr.isTypedArraySpec;function NQ(e,t){var r=t.dataAttr||e._id.charAt(0),n={},a,i,o;if(t.axData)a=t.axData;else for(a=[],i=0;i0||IQ(i),l;o&&(l="array");var s=n("categoryorder",l),f;s==="array"&&(f=n("categoryarray")),!o&&s==="array"&&(s=r.categoryorder="trace"),s==="trace"?r._initialCategories=[]:s==="array"?r._initialCategories=f.slice():(f=NQ(r,a).sort(),s==="category ascending"?r._initialCategories=f:s==="category descending"&&(r._initialCategories=f.reverse()))}},nL=Ia.mix,BQ=On,HQ=Ue,jQ=function(t,r,n,a){a=a||{};var i=a.dfltColor;function o(C,S){return HQ.coerce2(t,r,a.attributes,C,S)}var l=o("linecolor",i),s=o("linewidth"),f=n("showline",a.showLine||!!l||!!s);f||(delete r.linecolor,delete r.linewidth);var u=nL(i,a.bgColor,a.blend||BQ.lightFraction).toRgbString(),d=o("gridcolor",u),h=o("gridwidth"),p=o("griddash"),v=n("showgrid",a.showGrid||!!d||!!h||!!p);if(v||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),a.hasMinor){var m=nL(r.gridcolor,a.bgColor,67).toRgbString(),g=o("minor.gridcolor",m),y=o("minor.gridwidth",r.gridwidth||1),w=o("minor.griddash",r.griddash||"solid"),A=n("minor.showgrid",!!g||!!y||!!w);A||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!a.noZeroLine){var x=o("zerolinecolor",i),_=o("zerolinewidth"),T=n("zeroline",a.showGrid||!!x||!!_);T||(delete r.zerolinecolor,delete r.zerolinewidth)}},aL=er,UQ=Pt,rc=Ue,VQ=cr,GQ=bi,o1=yi,iL=gA,oL=bA,qQ=wA,WQ=TA,ZQ=OQ,YQ=jQ,XQ=BM,lL=Wg,Tv=Dn.WEEKDAY_PATTERN,KQ=Dn.HOUR_PATTERN,sL=function(t,r,n,a,i){var o=a.letter,l=a.font||{},s=a.splomStash||{},f=n("visible",!a.visibleDflt),u=r._template||{},d=r.type||u.type||"-",h;if(d==="date"){var p=UQ.getComponentMethod("calendars","handleDefaults");p(t,r,"calendar",a.calendar),a.noTicklabelmode||(h=n("ticklabelmode"))}var v="";(!a.noTicklabelposition||d==="multicategory")&&(v=rc.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":d==="category"||d==="multicategory"?"allow":"hide past div"),lL(r,i),XQ(t,r,n,a),ZQ(t,r,n,a),d!=="category"&&!a.noHover&&n("hoverformat");var m=n("color"),g=m!==o1.color.dflt?m:l.color,y=s.label||i._dfltTitle[o];if(WQ(t,r,n,d,a),!f)return r;n("title.text",y),rc.coerceFont(n,"title.font",{family:l.family,size:rc.bigFont(l.size),color:g}),iL(t,r,n,d);var w=a.hasMinor;if(w&&(VQ.newContainer(r,"minor"),iL(t,r,n,d,{isMinor:!0})),qQ(t,r,n,d,a),oL(t,r,n,a),w){var A=a.isMinor;a.isMinor=!0,oL(t,r,n,a),a.isMinor=A}YQ(t,r,n,{dfltColor:m,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:w,attributes:o1}),w&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var x=d==="multicategory";if(!a.noTickson&&(d==="category"||x)&&(r.ticks||r.showgrid)){var _;x&&(_="boundaries");var T=n("tickson",_);T==="boundaries"&&delete r.ticklabelposition}if(x){var C=n("showdividers");C&&(n("dividercolor"),n("dividerwidth"))}if(d==="date")if(GQ(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:JQ}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var S=0;S=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=fL(i[l]),s){o=Tv;break}}var f=n("pattern",o);if(f===Tv)for(l=0;l<2;l++)s=fL(i[l]),s&&(t.bounds[l]=i[l]=s-1);if(f)for(l=0;l<2;l++)switch(s=i[l],f){case Tv:if(!aL(s)){t.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){t.enabled=!1;return}t.bounds[l]=i[l]=s;break;case KQ:if(!aL(s)){t.enabled=!1;return}if(s=+s,s<0||s>24){t.enabled=!1;return}t.bounds[l]=i[l]=s;break}if(r.autorange===!1){var u=r.range;if(u[0]u[1]){t.enabled=!1;return}}else if(i[0]>u[0]&&i[1]x[1]-1/4096&&(r.domain=d),kv.noneOrAll(t.domain,r.domain,d),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r},l1,cL;function tee(){if(cL)return l1;cL=1;var e=Ue,t=Yt,r=Gi.isUnifiedHover,n=DS,a=cr,i=iu,o=yi,l=$Q(),s=sL,f=zo,u=uL,d=Jr,h=d.id2name,p=d.name2id,v=Dn.AX_ID_PATTERN,m=Pt,g=m.traceIs,y=m.getComponentMethod;function w(A,x,_){Array.isArray(A[x])?A[x].push(_):A[x]=[_]}return l1=function(x,_,T){var C=_.autotypenumbers,S={},E={},F={},$={},N={},B={},G={},J={},q={},I={},z,P;for(z=0;z rect").call(n.setTranslate,0,0).call(n.setScale,1,1),_.plot.call(n.setTranslate,T._offset,C._offset).call(n.setScale,1,1);var S=_.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(n.setPointGroupScale,1,1),S.selectAll(".textpoint").call(n.setTextPointsScale,1,1),S.call(n.hideOutsideRangePoints,_)}function h(_,T){var C=_.plotinfo,S=C.xaxis,E=C.yaxis,F=S._length,$=E._length,N=!!_.xr1,B=!!_.yr1,G=[];if(N){var J=r.simpleMap(_.xr0,S.r2l),q=r.simpleMap(_.xr1,S.r2l),I=J[1]-J[0],z=q[1]-q[0];G[0]=(J[0]*(1-T)+T*q[0]-J[0])/(J[1]-J[0])*F,G[2]=F*(1-T+T*z/I),S.range[0]=S.l2r(J[0]*(1-T)+T*q[0]),S.range[1]=S.l2r(J[1]*(1-T)+T*q[1])}else G[0]=0,G[2]=F;if(B){var P=r.simpleMap(_.yr0,E.r2l),H=r.simpleMap(_.yr1,E.r2l),j=P[1]-P[0],Z=H[1]-H[0];G[1]=(P[1]*(1-T)+T*H[1]-P[1])/(P[0]-P[1])*$,G[3]=$*(1-T+T*Z/j),E.range[0]=S.l2r(P[0]*(1-T)+T*H[0]),E.range[1]=E.l2r(P[1]*(1-T)+T*H[1])}else G[1]=0,G[3]=$;a.drawOne(o,S,{skipTitle:!0}),a.drawOne(o,E,{skipTitle:!0}),a.redrawComponents(o,[S._id,E._id]);var te=N?F/G[2]:1,ne=B?$/G[3]:1,ie=N?G[0]:0,ee=B?G[1]:0,ue=N?G[0]/G[2]*F:0,U=B?G[1]/G[3]*$:0,V=S._offset-ue,Y=E._offset-U;C.clipRect.call(n.setTranslate,ie,ee).call(n.setScale,1/te,1/ne),C.plot.call(n.setTranslate,V,Y).call(n.setScale,te,ne),n.setPointGroupScale(C.zoomScalePts,1/te,1/ne),n.setTextPointsScale(C.zoomScaleTxt,1/te,1/ne)}var p;f&&(p=f());function v(){for(var _={},T=0;Ts.duration?(v(),w=window.cancelAnimationFrame(x)):w=window.requestAnimationFrame(x)}return g=Date.now(),w=window.requestAnimationFrame(x),Promise.resolve()},s1}var Av=Qt,hL=Pt,Mv=Ue,nee=sn,aee=hr,vL=fu.getModuleCalcData,Ho=Jr,Ci=Dn,iee=ko,vr=Mv.ensureSingle;function Sv(e,t,r){return Mv.ensureSingle(e,t,r,function(n){n.datum(r)})}tn.name="cartesian",tn.attr=["xaxis","yaxis"],tn.idRoot=["x","y"],tn.idRegex=Ci.idRegex,tn.attrRegex=Ci.attrRegex,tn.attributes=zQ(),tn.layoutAttributes=yi,tn.supplyLayoutDefaults=tee(),tn.transitionAxes=ree(),tn.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,a=r.yaxis,i=r.cartesian,o=i.concat(r.gl2d||[]),l={},s={},f,u,d;for(f=0;f=0,u=r.indexOf("end")>=0,d=i.backoff*l+n.standoff,h=o.backoff*s+n.startstandoff,p,v,m,g;if(a.nodeName==="line"){p={x:+t.attr("x1"),y:+t.attr("y1")},v={x:+t.attr("x2"),y:+t.attr("y2")};var y=p.x-v.x,w=p.y-v.y;if(m=Math.atan2(w,y),g=m+Math.PI,d&&h&&d+h>Math.sqrt(y*y+w*w)){G();return}if(d){if(d*d>y*y+w*w){G();return}var A=d*Math.cos(m),x=d*Math.sin(m);v.x+=A,v.y+=x,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>y*y+w*w){G();return}var _=h*Math.cos(m),T=h*Math.sin(m);p.x-=_,p.y-=T,t.attr({x1:p.x,y1:p.y})}}else if(a.nodeName==="path"){var C=a.getTotalLength(),S="";if(C2/3?st="right":st="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[st]}for(var se=!1,Q=["x","y"],me=0;me1)&&(ge===pe?(ft=Ee.r2fraction(t["a"+ye]),(ft<0||ft>1)&&(se=!0)):se=!0),qe=Ee._offset+Ee.r2p(t[ye]),dt=.5}else{var ze=rt==="domain";ye==="x"?(it=t[ye],qe=ze?Ee._offset+Ee._length*it:qe=l.l+l.w*it):(it=1-t[ye],qe=ze?Ee._offset+Ee._length*it:qe=l.t+l.h*it),dt=t.showarrow?.5:it}if(t.showarrow){Ge.head=qe;var Ie=t["a"+ye];if(ht=Fe*Y(.5,t.xanchor)-Oe*Y(.5,t.yanchor),ge===pe){var Ne=nc.getRefType(ge);Ne==="domain"?(ye==="y"&&(Ie=1-Ie),Ge.tail=Ee._offset+Ee._length*Ie):Ne==="paper"?ye==="y"?(Ie=1-Ie,Ge.tail=l.t+l.h*Ie):Ge.tail=l.l+l.w*Ie:Ge.tail=Ee._offset+Ee.r2p(Ie),Qe=ht}else Ge.tail=qe+Ie,Qe=ht+Ie;Ge.text=Ge.tail+ht;var et=o[ye==="x"?"width":"height"];if(pe==="paper"&&(Ge.head=jo.constrain(Ge.head,1,et-1)),ge==="pixel"){var Je=-Math.max(Ge.tail-3,Ge.text),at=Math.min(Ge.tail+3,Ge.text)-et;Je>0?(Ge.tail+=Je,Ge.text+=Je):at>0&&(Ge.tail-=at,Ge.text-=at)}Ge.tail+=Se,Ge.head+=Se}else ht=Pe*Y(dt,We),Qe=ht,Ge.text=qe+ht;Ge.text+=Se,ht+=Se,Qe+=Se,t["_"+ye+"padplus"]=Pe/2+Qe,t["_"+ye+"padminus"]=Pe/2-Qe,t["_"+ye+"size"]=Pe,t["_"+ye+"shift"]=ht}if(se){C.remove();return}var nt=0,wt=0;if(t.align!=="left"&&(nt=(ee-ne)*(t.align==="center"?.5:1)),t.valign!=="top"&&(wt=(ue-ie)*(t.valign==="middle"?.5:1)),Z)j.select("svg").attr({x:F+nt-1,y:F+wt}).call(Ki.setClipUrl,N?m:null,e);else{var mt=F+wt-te.top,Be=F+nt-te.left;q.call(d1.positionText,Be,mt).call(Ki.setClipUrl,N?m:null,e)}B.select("rect").call(Ki.setRect,F,F,ee,ue),$.call(Ki.setRect,S/2,S/2,U-S,V-S),C.call(Ki.setTranslate,Math.round(g.x.text-U/2),Math.round(g.y.text-V/2)),A.attr({transform:"rotate("+y+","+g.x.text+","+g.y.text+")"});var vt=function(Ke,st){w.selectAll(".annotation-arrow-g").remove();var tt=g.x.head,ut=g.y.head,K=g.x.tail+Ke,fe=g.y.tail+st,oe=g.x.text+Ke,ce=g.y.text+st,Ae=jo.rotationXYMatrix(y,oe,ce),xe=jo.apply2DTransform(Ae),Ve=jo.apply2DTransform2(Ae),je=+$.attr("width"),Re=+$.attr("height"),le=oe-.5*je,Le=le+je,He=ce-.5*Re,Xe=He+Re,Lt=[[le,He,le,Xe],[le,Xe,Le,Xe],[Le,Xe,Le,He],[Le,He,le,He]].map(Ve);if(!Lt.reduce(function(At,Bt){return At^!!jo.segmentsIntersect(tt,ut,tt+1e6,ut+1e6,Bt[0],Bt[1],Bt[2],Bt[3])},!1)){Lt.forEach(function(At){var Bt=jo.segmentsIntersect(K,fe,tt,ut,At[0],At[1],At[2],At[3]);Bt&&(K=Bt.x,fe=Bt.y)});var Dt=t.arrowwidth,zt=t.arrowcolor,Tt=t.arrowside,jt=w.append("g").style({opacity:zl.opacity(zt)}).classed("annotation-arrow-g",!0),$t=jt.append("path").attr("d","M"+K+","+fe+"L"+tt+","+ut).style("stroke-width",Dt+"px").call(zl.stroke,zl.rgb(zt));if(pee($t,Tt,t),s.annotationPosition&&$t.node().parentNode&&!n){var xt=tt,Gt=ut;if(t.standoff){var qt=Math.sqrt(Math.pow(tt-K,2)+Math.pow(ut-fe,2));xt+=t.standoff*(K-tt)/qt,Gt+=t.standoff*(fe-ut)/qt}var Rt=jt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(K-xt)+","+(fe-Gt),transform:c1(xt,Gt)}).style("stroke-width",Dt+6+"px").call(zl.stroke,"rgba(0,0,0,0)").call(zl.fill,"rgba(0,0,0,0)"),Ft,kt;ac.init({element:Rt.node(),gd:e,prepFn:function(){var At=Ki.getTranslate(C);Ft=At.x,kt=At.y,a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(At,Bt){var nr=xe(Ft,kt),Mt=nr[0]+At,Kt=nr[1]+Bt;C.call(Ki.setTranslate,Mt,Kt),p("x",Uo(a,At,"x",l,t)),p("y",Uo(i,Bt,"y",l,t)),t.axref===t.xref&&p("ax",Uo(a,At,"ax",l,t)),t.ayref===t.yref&&p("ay",Uo(i,Bt,"ay",l,t)),jt.attr("transform",c1(At,Bt)),A.attr({transform:"rotate("+y+","+Mt+","+Kt+")"})},doneFn:function(){u1.call("_guiRelayout",e,v());var At=document.querySelector(".js-notes-box-panel");At&&At.redraw(At.selectedObj)}})}}};if(t.showarrow&&vt(0,0),x){var bt;ac.init({element:C.node(),gd:e,prepFn:function(){bt=A.attr("transform")},moveFn:function(Ke,st){var tt="pointer";if(t.showarrow)t.axref===t.xref?p("ax",Uo(a,Ke,"ax",l,t)):p("ax",t.ax+Ke),t.ayref===t.yref?p("ay",Uo(i,st,"ay",l.w,t)):p("ay",t.ay+st),vt(Ke,st);else{if(n)return;var ut,K;if(a)ut=Uo(a,Ke,"x",l,t);else{var fe=t._xsize/l.w,oe=t.x+(t._xshift-t.xshift)/l.w-fe/2;ut=ac.align(oe+Ke/l.w,fe,0,1,t.xanchor)}if(i)K=Uo(i,st,"y",l,t);else{var ce=t._ysize/l.h,Ae=t.y-(t._yshift+t.yshift)/l.h-ce/2;K=ac.align(Ae-st/l.h,ce,0,1,t.yanchor)}p("x",ut),p("y",K),(!a||!i)&&(tt=ac.getCursor(a?.5:ut,i?.5:K,t.xanchor,t.yanchor))}A.attr({transform:c1(Ke,st)+bt}),h1(C,tt)},clickFn:function(Ke,st){t.captureevents&&e.emit("plotly_clickannotation",T(st))},doneFn:function(){h1(C),u1.call("_guiRelayout",e,v());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}s.annotationText?q.call(d1.makeEditable,{delegate:C,gd:e}).call(I).on("edit",function(P){t.text=P,this.call(I),p("text",P),a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),u1.call("_guiRelayout",e,v())}):q.call(I)}var AL=Ue,gee=Pt,ML=cr.arrayEditor,yee={hasClickToShow:bee,onClick:_ee};function bee(e,t){var r=SL(e,t);return r.on.length>0||r.explicitOff.length>0}function _ee(e,t){var r=SL(e,t),n=r.on,a=r.off.concat(r.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(n.length||a.length){for(l=0;l1){l=!0;break}}l?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+i+'"]').remove():(o._pdata=qee(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),Gee(t.graphDiv,o,i,t.id,o._xa,o._ya))}},Yee=Pt,zL=Ue,Xee={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:y1}}},layoutAttributes:y1,handleDefaults:Oee,includeBasePlot:Kee,convert:Hee,draw:Zee};function Kee(e,t){var r=Yee.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,a=Object.keys(e),i=0;i0?f+o:o;return{ppad:o,ppadplus:l?d:h,ppadminus:l?h:d}}else return{ppad:o}}function GL(e,t,r,n,a){var i=e.type==="category"||e.type==="multicategory"?e.r2c:e.d2c;if(t!==void 0)return[i(t),i(r)];if(n){var o=1/0,l=-1/0,s=n.match(af.segmentRE),f,u,d,h,p;for(e.type==="date"&&(i=UL.decodeDate(i)),f=0;fl&&(l=p)));if(l>=o)return[o,l]}}var qL=ey,hte={moduleType:"component",name:"shapes",layoutAttributes:BL,supplyLayoutDefaults:ate,supplyDrawNewShapeDefaults:fte,includeBasePlot:fv("shapes"),calcAutorange:ute,draw:qL.draw,drawOne:qL.drawOne},WL=Dn,vte=cr.templatedArray,ZL=av,YL=vte("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",WL.idRegex.x.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's x coordinate axis.",ZL.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",WL.idRegex.y.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's y coordinate axis.",ZL.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"}),pte=Ue,w1=mr,mte=bi,gte=YL,yte="images",bte=function(t,r){var n={name:yte,handleItemDefaults:_te};mte(t,r,n)};function _te(e,t,r){function n(h,p){return pte.coerce(e,t,gte,h,p)}var a=n("source"),i=n("visible",!!a);if(!i)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},l=["x","y"],s=0;s<2;s++){var f=l[s],u=w1.coerceRef(e,t,o,f,"paper",void 0);if(u!=="paper"){var d=w1.getFromId(o,u);d._imgIndices.push(t._index)}w1.coercePosition(t,o,n,u,f,0)}return t}var XL=Qt,xte=hr,of=mr,KL=Jr,wte=ko,Tte=function(t){var r=t._fullLayout,n=[],a={},i=[],o,l;for(l=0;l0);i&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Lv.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Lv.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Nte(e,t){function r(a,i){return Lv.coerce(e,t,zte,a,i)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}var Ote=Cr,Wa=Qt,n4=Yt,lf=hr,Ev=Ue;function Cr(e,t,r){this.gd=e,this.container=t,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})}Cr.barWidth=2,Cr.barLength=20,Cr.barRadius=2,Cr.barPad=1,Cr.barColor="#808BA4",Cr.prototype.enable=function(t,r,n){var a=this.gd._fullLayout,i=a.width,o=a.height;this.position=t;var l=this.position.l,s=this.position.w,f=this.position.t,u=this.position.h,d=this.position.direction,h=d==="down",p=d==="left",v=d==="right",m=d==="up",g=s,y=u,w,A,x,_;!h&&!p&&!v&&!m&&(this.position.direction="down",h=!0);var T=h||m;T?(w=l,A=w+g,h?(x=f,_=Math.min(x+y,o),y=_-x):(_=f+y,x=Math.max(_-y,0),y=_-x)):(x=f,_=x+y,p?(A=l+g,w=Math.max(A-g,0),g=A-w):(w=l,A=Math.min(w+g,i),g=A-w)),this._box={l:w,t:x,w:g,h:y};var C=s>g,S=Cr.barLength+2*Cr.barPad,E=Cr.barWidth+2*Cr.barPad,F=l,$=f+u;$+E>o&&($=o-E);var N=this.container.selectAll("rect.scrollbar-horizontal").data(C?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(n4.fill,Cr.barColor),C?(this.hbar=N.attr({rx:Cr.barRadius,ry:Cr.barRadius,x:F,y:$,width:S,height:E}),this._hbarXMin=F+S/2,this._hbarTranslateMax=g-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=u>y,G=Cr.barWidth+2*Cr.barPad,J=Cr.barLength+2*Cr.barPad,q=l+s,I=f;q+G>i&&(q=i-G);var z=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-vertical",!0).call(n4.fill,Cr.barColor),B?(this.vbar=z.attr({rx:Cr.barRadius,ry:Cr.barRadius,x:q,y:I,width:G,height:J}),this._vbarYMin=I+J/2,this._vbarTranslateMax=y-J):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,H=w-.5,j=B?A+G+.5:A+.5,Z=x-.5,te=C?_+E+.5:_+.5,ne=a._topdefs.selectAll("#"+P).data(C||B?[0]:[]);if(ne.exit().remove(),ne.enter().append("clipPath").attr("id",P).append("rect"),C||B?(this._clipRect=ne.select("rect").attr({x:Math.floor(H),y:Math.floor(Z),width:Math.ceil(j)-Math.floor(H),height:Math.ceil(te)-Math.floor(Z)}),this.container.call(lf.setClipUrl,P,this.gd),this.bg.attr({x:l,y:f,width:s,height:u})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(lf.setClipUrl,null),delete this._clipRect),C||B){var ie=Wa.behavior.drag().on("dragstart",function(){Wa.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ie);var ee=Wa.behavior.drag().on("dragstart",function(){Wa.event.sourceEvent.preventDefault(),Wa.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));C&&this.hbar.on(".drag",null).call(ee),B&&this.vbar.on(".drag",null).call(ee)}this.setTranslate(r,n)},Cr.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(lf.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)},Cr.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Wa.event.dx),this.vbar&&(r-=Wa.event.dy),this.setTranslate(t,r)},Cr.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Wa.event.deltaY),this.vbar&&(r+=Wa.event.deltaY),this.setTranslate(t,r)},Cr.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,a=n+this._hbarTranslateMax,i=Ev.constrain(Wa.event.x,n,a),o=(i-n)/(a-n),l=this.position.w-this._box.w;t=o*l}if(this.vbar){var s=r+this._vbarYMin,f=s+this._vbarTranslateMax,u=Ev.constrain(Wa.event.y,s,f),d=(u-s)/(f-s),h=this.position.h-this._box.h;r=d*h}this.setTranslate(t,r)},Cr.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=Ev.constrain(t||0,0,n),r=Ev.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(lf.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var i=t/n;this.hbar.call(lf.setTranslate,t+i*this._hbarTranslateMax,r)}if(this.vbar){var o=r/a;this.vbar.call(lf.setTranslate,t,r+o*this._vbarTranslateMax)}};var sf=Qt,oc=sn,lc=Yt,ff=hr,na=Ue,Dv=mn,Bte=cr.arrayEditor,a4=_n.LINE_SPACING,It=T1,Hte=Ote,jte=function(t){var r=t._fullLayout,n=na.filterVisible(r[It.name]);function a(h){oc.autoMargin(t,u4(h))}var i=r._menulayer.selectAll("g."+It.containerClassName).data(n.length>0?[0]:[]);if(i.enter().append("g").classed(It.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){sf.select(this).selectAll("g."+It.headerGroupClassName).each(a)}).remove(),n.length!==0){var o=i.selectAll("g."+It.headerGroupClassName).data(n,Ute);o.enter().append("g").classed(It.headerGroupClassName,!0);for(var l=na.ensureSingle(i,"g",It.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s0?[0]:[]);i.enter().append("g").classed(Wt.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(u){u._commandObserver&&(u._commandObserver.remove(),delete u._commandObserver),Fv.autoMargin(t,y4(u))}if(i.exit().each(function(){Za.select(this).selectAll("g."+Wt.groupClassName).each(o)}).remove(),a.length!==0){var l=i.selectAll("g."+Wt.groupClassName).data(a,hre);l.enter().append("g").classed(Wt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform",fre(o-Wt.gripWidth*.5,t._dims.currentValueTotalHeight))}}function E1(e,t){var r=e._dims;return r.inputAreaStart+Wt.stepInset+(r.inputAreaLength-2*Wt.stepInset)*Math.min(1,Math.max(0,t))}function k4(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Wt.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Wt.stepInset-2*r.inputAreaStart)))}function _re(e,t,r){var n=r._dims,a=aa.ensureSingle(e,"rect",Wt.railTouchRectClass,function(i){i.call(w4,t,e,r).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Wt.tickOffset+r.ticklen+n.labelHeight)}).call(Vo.fill,r.bgcolor).attr("opacity",0),Ya.setTranslate(a,0,n.currentValueTotalHeight)}function xre(e,t){var r=t._dims,n=r.inputAreaLength-Wt.railInset*2,a=aa.ensureSingle(e,"rect",Wt.railRectClass);a.attr({width:n,height:Wt.railWidth,rx:Wt.railRadius,ry:Wt.railRadius,"shape-rendering":"crispEdges"}).call(Vo.stroke,t.bordercolor).call(Vo.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Ya.setTranslate(a,Wt.railInset,(r.inputAreaWidth-Wt.railWidth)*.5+r.currentValueTotalHeight)}var wre=Rv,Tre={moduleType:"component",name:wre.name,layoutAttributes:v4,supplyLayoutDefaults:ore,draw:cre},A4=On,D1={bgcolor:{valType:"color",dflt:A4.background,editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:A4.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"},M4={_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"},zv={},R1={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},kre=Jr,Are=mn,S4=R1,Mre=_n.LINE_SPACING,$v=S4.name;function C4(e){var t=e&&e[$v];return t&&t.visible}zv.isVisible=C4,zv.makeData=function(e){var t=kre.list({_fullLayout:e},"x",!0),r=e.margin,n=[];if(!e._has("gl2d"))for(var a=0;a=We.max)Oe=pe[Pe+1];else if(Fe=We.pmax)Oe=pe[Pe+1];else if(Fe0?S.touches[0].clientX:0}function v(S,E,F,$){if(E._context.staticPlot)return;var N=S.select("rect."+h.slideBoxClassName).node(),B=S.select("rect."+h.grabAreaMinClassName).node(),G=S.select("rect."+h.grabAreaMaxClassName).node();function J(){var q=e.event,I=q.target,z=p(q),P=z-S.node().getBoundingClientRect().left,H=$.d2p(F._rl[0]),j=$.d2p(F._rl[1]),Z=u.coverSlip();this.addEventListener("touchmove",te),this.addEventListener("touchend",ne),Z.addEventListener("mousemove",te),Z.addEventListener("mouseup",ne);function te(ie){var ee=p(ie),ue=+ee-z,U,V,Y;switch(I){case N:if(Y="ew-resize",H+ue>F._length||j+ue<0)return;U=H+ue,V=j+ue;break;case B:if(Y="col-resize",H+ue>F._length)return;U=H+ue,V=j;break;case G:if(Y="col-resize",j+ue<0)return;U=H,V=j+ue;break;default:Y="ew-resize",U=P,V=P+ue;break}if(V0);if(u){var d=jre(r,n,a);s("x",d[0]),s("y",d[1]),Iv.noneOrAll(t,r,["x","y"]),s("xanchor"),s("yanchor"),Iv.coerceFont(s,"font",n.font);var h=s("bgcolor");s("activecolor",Ire.contrast(h,N1.lightAmount,N1.darkAmount)),s("bordercolor"),s("borderwidth")}};function Hre(e,t,r,n){var a=n.calendar;function i(s,f){return Iv.coerce(e,t,P4.buttons,s,f)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?t.stepmode="backward":i("stepmode"),i("count")),i("label")}}function jre(e,t,r){for(var n=r.filter(function(l){return t[l].anchor===e._id}),a=0,i=0;i1)){delete t.grid;return}if(!i&&!o&&!l){var m=h("pattern")==="independent";m&&(i=!0)}d._hasSubplotGrid=i;var g=h("roworder"),y=g==="top to bottom",w=i?.2:.1,A=i?.3:.1,x,_;s&&t._splomGridDflt&&(x=t._splomGridDflt.xside,_=t._splomGridDflt.yside),d._domains={x:U4("x",h,w,x,v),y:U4("y",h,A,_,p,y)}}function U4(e,t,r,n,a,i){var o=t(e+"gap",r),l=t("domain."+e);t(e+"side",n);for(var s=new Array(a),f=l[0],u=(l[1]-f)/(a-o),d=u*(1-o),h=0;h0,v=o._context.staticPlot;l.each(function(m){var g=m[0].trace,y=g.error_x||{},w=g.error_y||{},A;g.ids&&(A=function(C){return C.id});var x=n.hasMarkers(g)&&g.marker.maxdisplayed>0;!w.visible&&!y.visible&&(m=[]);var _=e.select(this).selectAll("g.errorbar").data(m,A);if(_.exit().remove(),!!m.length){y.visible||_.selectAll("path.xerror").remove(),w.visible||_.selectAll("path.yerror").remove(),_.style("opacity",1);var T=_.enter().append("g").classed("errorbar",!0);p&&T.style("opacity",0).transition().duration(f.duration).style("opacity",1),r.setClipUrl(_,s.layerClipId,o),_.each(function(C){var S=e.select(this),E=a(C,d,h);if(!(x&&!C.vis)){var F,$=S.select("path.yerror");if(w.visible&&t(E.x)&&t(E.yh)&&t(E.ys)){var N=w.width;F="M"+(E.x-N)+","+E.yh+"h"+2*N+"m-"+N+",0V"+E.ys,E.noYS||(F+="m-"+N+",0h"+2*N),u=!$.size(),u?$=S.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0):p&&($=$.transition().duration(f.duration).ease(f.easing)),$.attr("d",F)}else $.remove();var B=S.select("path.xerror");if(y.visible&&t(E.y)&&t(E.xh)&&t(E.xs)){var G=(y.copy_ystyle?w:y).width;F="M"+E.xh+","+(E.y-G)+"v"+2*G+"m0,-"+G+"H"+E.xs,E.noXS||(F+="m0,-"+G+"v"+2*G),u=!B.size(),u?B=S.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0):p&&(B=B.transition().duration(f.duration).ease(f.easing)),B.attr("d",F)}else B.remove()}})}})};function a(i,o,l){var s={x:o.c2p(i.x),y:l.c2p(i.y)};return i.yh!==void 0&&(s.yh=l.c2p(i.yh),s.ys=l.c2p(i.ys),t(s.ys)||(s.noYS=!0,s.ys=l.c2p(i.ys,!0))),i.xh!==void 0&&(s.xh=o.c2p(i.xh),s.xs=o.c2p(i.xs),t(s.xs)||(s.noXS=!0,s.xs=o.c2p(i.xs,!0))),s}return W1}var Z1,K4;function mne(){if(K4)return Z1;K4=1;var e=Qt,t=Yt;return Z1=function(n){n.each(function(a){var i=a[0].trace,o=i.error_y||{},l=i.error_x||{},s=e.select(this);s.selectAll("path.yerror").style("stroke-width",o.thickness+"px").call(t.stroke,o.color),l.copy_ystyle&&(l=o),s.selectAll("path.xerror").style("stroke-width",l.thickness+"px").call(t.stroke,l.color)})},Z1}var uc=Ue,J4=Ui.overrideAll,cc=G4,Ol={error_x:uc.extendFlat({},cc),error_y:uc.extendFlat({},cc)};delete Ol.error_x.copy_zstyle,delete Ol.error_y.copy_zstyle,delete Ol.error_y.copy_ystyle;var dc={error_x:uc.extendFlat({},cc),error_y:uc.extendFlat({},cc),error_z:uc.extendFlat({},cc)};delete dc.error_x.copy_ystyle,delete dc.error_y.copy_ystyle,delete dc.error_z.copy_ystyle,delete dc.error_z.copy_zstyle;var gne={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ol,bar:Ol,histogram:Ol,scatter3d:J4(dc,"calc","nested"),scattergl:J4(Ol,"calc","nested")}},supplyDefaults:hne(),calc:vne(),makeComputeError:Z4(),plot:pne(),style:mne(),hoverInfo:yne};function yne(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}var bne={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"}},Go=Qt,Y1=Ia,Hv=sn,Q4=Pt,Qi=mr,jv=Ti,wa=Ue,Xa=wa.strTranslate,eE=$r.extendFlat,X1=Ml,Ka=hr,K1=Yt,_ne=rh,xne=mn,wne=Ha.flipScale,Tne=sL,kne=uL,Ane=yi,J1=_n,tE=J1.LINE_SPACING,rE=J1.FROM_TL,nE=J1.FROM_BR,Mr=bne.cn;function Mne(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Mr.colorbar).data(Sne(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(Mr.colorbar,!0),r.each(function(n){var a=Go.select(this);wa.ensureSingle(a,"rect",Mr.cbbg),wa.ensureSingle(a,"g",Mr.cbfills),wa.ensureSingle(a,"g",Mr.cblines),wa.ensureSingle(a,"g",Mr.cbaxis,function(o){o.classed(Mr.crisp,!0)}),wa.ensureSingle(a,"g",Mr.cbtitleunshift,function(o){o.append("g").classed(Mr.cbtitle,!0)}),wa.ensureSingle(a,"rect",Mr.cboutline);var i=Cne(a,n,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Lne(a,n,e)}),r.exit().each(function(n){Hv.autoMargin(e,n._id)}).remove(),r.order()}function Sne(e){var t=e._fullLayout,r=e.calcdata,n=[],a,i,o,l;function s(A){return eE(A,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function f(){typeof l.calc=="function"?l.calc(e,o,a):(a._fillgradient=i.reversescale?wne(i.colorscale):i.colorscale,a._zrange=[i[l.min],i[l.max]])}for(var u=0;u1){var me=Math.pow(10,Math.floor(Math.log(Q)/Math.LN10));Y*=me*wa.roundUp(Q/me,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(U.tick0=0)}U.dtick=Y}U.domain=n?[ee+v/x.h,ee+P-v/x.h]:[ee+p/x.w,ee+P-p/x.w],U.setScale(),e.attr("transform",Xa(Math.round(x.l),Math.round(x.t)));var ye=e.select("."+Mr.cbtitleunshift).attr("transform",Xa(-Math.round(x.l),-Math.round(x.t))),pe=U.ticklabelposition,ge=U.title.font.size,Ee=e.select("."+Mr.cbaxis),$e,Fe=0,Oe=0;function Pe(Qe,it){var dt={propContainer:U,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:A._dfltTitle.colorbar,containerGroup:e.select("."+Mr.cbtitle)},ht=Qe.charAt(0)==="h"?Qe.substr(1):"h"+Qe;e.selectAll("."+ht+",."+ht+"-math-group").remove(),_ne.draw(r,Qe,eE(dt,it||{}))}function We(){if(n&&V||!n&&!V){var Qe,it;S==="top"&&(Qe=p+x.l+H*m,it=v+x.t+j*(1-ee-P)+3+ge*.75),S==="bottom"&&(Qe=p+x.l+H*m,it=v+x.t+j*(1-ee)-3-ge*.25),S==="right"&&(it=v+x.t+j*g+3+ge*.75,Qe=p+x.l+H*ee),Pe(U._id+"title",{attributes:{x:Qe,y:it,"text-anchor":n?"start":"middle"}})}}function Se(){if(n&&!V||!n&&V){var Qe=U.position||0,it=U._offset+U._length/2,dt,ht;if(S==="right")ht=it,dt=x.l+H*Qe+10+ge*(U.showticklabels?1:.5);else if(dt=it,S==="bottom"&&(ht=x.t+j*Qe+10+(pe.indexOf("inside")===-1?U.tickfont.size:0)+(U.ticks!=="intside"&&t.ticklen||0)),S==="top"){var rt=C.text.split("
").length;ht=x.t+j*Qe+10-q-tE*ge*rt}Pe((n?"h":"v")+U._id+"title",{avoid:{selection:Go.select(r).selectAll("g."+U._id+"tick"),side:S,offsetTop:n?0:x.t,offsetLeft:n?x.l:0,maxShift:n?A.width:A.height},attributes:{x:dt,y:ht,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Ge(){if(!n&&!V||n&&V){var Qe=e.select("."+Mr.cbtitle),it=Qe.select("text"),dt=[-s/2,s/2],ht=Qe.select(".h"+U._id+"title-math-group").node(),rt=15.6;it.node()&&(rt=parseInt(it.node().style.fontSize,10)*tE);var ft;if(ht?(ft=Ka.bBox(ht),Oe=ft.width,Fe=ft.height,Fe>rt&&(dt[1]-=(Fe-rt)/2)):it.node()&&!it.classed(Mr.jsPlaceholder)&&(ft=Ka.bBox(it.node()),Oe=ft.width,Fe=ft.height),n){if(Fe){if(Fe+=5,S==="top")U.domain[1]-=Fe/x.h,dt[1]*=-1;else{U.domain[0]+=Fe/x.h;var ze=xne.lineCount(it);dt[1]+=(1-ze)*rt}Qe.attr("transform",Xa(dt[0],dt[1])),U.setScale()}}else Oe&&(S==="right"&&(U.domain[0]+=(Oe+ge/2)/x.w),Qe.attr("transform",Xa(dt[0],dt[1])),U.setScale())}e.selectAll("."+Mr.cbfills+",."+Mr.cblines).attr("transform",n?Xa(0,Math.round(x.h*(1-U.domain[1]))):Xa(Math.round(x.w*U.domain[0]),0)),Ee.attr("transform",n?Xa(0,Math.round(-x.t)):Xa(Math.round(-x.l),0));var Ie=e.select("."+Mr.cbfills).selectAll("rect."+Mr.cbfill).attr("style","").data(G);Ie.enter().append("rect").classed(Mr.cbfill,!0).attr("style",""),Ie.exit().remove();var Ne=E.map(U.c2p).map(Math.round).sort(function(wt,mt){return wt-mt});Ie.each(function(wt,mt){var Be=[mt===0?E[0]:(G[mt]+G[mt-1])/2,mt===G.length-1?E[1]:(G[mt]+G[mt+1])/2].map(U.c2p).map(Math.round);n&&(Be[1]=wa.constrain(Be[1]+(Be[1]>Be[0])?1:-1,Ne[0],Ne[1]));var vt=Go.select(this).attr(n?"x":"y",Z).attr(n?"y":"x",Go.min(Be)).attr(n?"width":"height",Math.max(q,2)).attr(n?"height":"width",Math.max(Go.max(Be)-Go.min(Be),2));if(t._fillgradient)Ka.gradient(vt,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var bt=$(wt).replace("e-","");vt.attr("fill",Y1(bt).toHexString())}});var et=e.select("."+Mr.cblines).selectAll("path."+Mr.cbline).data(T.color&&T.width?J:[]);et.enter().append("path").classed(Mr.cbline,!0),et.exit().remove(),et.each(function(wt){var mt=Z,Be=Math.round(U.c2p(wt))+T.width/2%1;Go.select(this).attr("d","M"+(n?mt+","+Be:Be+","+mt)+(n?"h":"v")+q).call(Ka.lineGroupStyle,T.width,F(wt),T.dash)}),Ee.selectAll("g."+U._id+"tick,path").remove();var Je=Z+q+(s||0)/2-(t.ticks==="outside"?1:0),at=Qi.calcTicks(U),nt=Qi.getTickSigns(U)[2];return Qi.drawTicks(r,U,{vals:U.ticks==="inside"?Qi.clipEnds(U,at):at,layer:Ee,path:Qi.makeTickPath(U,Je,nt),transFn:Qi.makeTransTickFn(U)}),Qi.drawLabels(r,U,{vals:at,layer:Ee,transFn:Qi.makeTransTickLabelFn(U),labelFns:Qi.makeLabelFns(U,Je)})}function qe(){var Qe,it=q+s/2;pe.indexOf("inside")===-1&&(Qe=Ka.bBox(Ee.node()),it+=n?Qe.width:Qe.height),$e=ye.select("text");var dt=0,ht=n&&S==="top",rt=!n&&S==="right",ft=0;if($e.node()&&!$e.classed(Mr.jsPlaceholder)){var ze,Ie=ye.select(".h"+U._id+"title-math-group").node();Ie&&(n&&V||!n&&!V)?(Qe=Ka.bBox(Ie),dt=Qe.width,ze=Qe.height):(Qe=Ka.bBox(ye.node()),dt=Qe.right-x.l-(n?Z:ue),ze=Qe.bottom-x.t-(n?ue:Z),!n&&S==="top"&&(it+=Qe.height,ft=Qe.height)),rt&&($e.attr("transform",Xa(dt/2+ge/2,0)),dt*=2),it=Math.max(it,n?dt:ze)}var Ne=(n?p:v)*2+it+f+s/2,et=0;!n&&C.text&&h==="bottom"&&g<=0&&(et=Ne/2,Ne+=et,ft+=et),A._hColorbarMoveTitle=et,A._hColorbarMoveCBTitle=ft;var Je=f+s,at=(n?Z:ue)-Je/2-(n?p:0),nt=(n?ue:Z)-(n?z:v+ft-et);e.select("."+Mr.cbbg).attr("x",at).attr("y",nt).attr(n?"width":"height",Math.max(Ne-et,2)).attr(n?"height":"width",Math.max(z+Je,2)).call(K1.fill,u).call(K1.stroke,t.bordercolor).style("stroke-width",f);var wt=rt?Math.max(dt-10,0):0;e.selectAll("."+Mr.cboutline).attr("x",(n?Z:ue+p)+wt).attr("y",(n?ue+v-z:Z)+(ht?Fe:0)).attr(n?"width":"height",Math.max(q,2)).attr(n?"height":"width",Math.max(z-(n?2*v+Fe:2*p+wt),2)).call(K1.stroke,t.outlinecolor).style({fill:"none","stroke-width":s});var mt=n?te*Ne:0,Be=n?0:(1-ne)*Ne-ft;if(mt=w?x.l-mt:-mt,Be=y?x.t-Be:-Be,e.attr("transform",Xa(mt,Be)),!n&&(f||Y1(u).getAlpha()&&!Y1.equals(A.paper_bgcolor,u))){var vt=Ee.selectAll("text"),bt=vt[0].length,Ke=e.select("."+Mr.cbbg).node(),st=Ka.bBox(Ke),tt=Ka.getTranslate(e),ut=2;vt.each(function(le,Le){var He=0,Xe=bt-1;if(Le===He||Le===Xe){var Lt=Ka.bBox(this),Dt=Ka.getTranslate(this),zt;if(Le===Xe){var Tt=Lt.right+Dt.x,jt=st.right+tt.x+ue-f-ut+m;zt=jt-Tt,zt>0&&(zt=0)}else if(Le===He){var $t=Lt.left+Dt.x,xt=st.left+tt.x+ue+f+ut;zt=xt-$t,zt<0&&(zt=0)}zt&&(bt<3?this.setAttribute("transform","translate("+zt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var K={},fe=rE[d],oe=nE[d],ce=rE[h],Ae=nE[h],xe=Ne-q;n?(i==="pixels"?(K.y=g,K.t=z*ce,K.b=z*Ae):(K.t=K.b=0,K.yt=g+a*ce,K.yb=g-a*Ae),l==="pixels"?(K.x=m,K.l=Ne*fe,K.r=Ne*oe):(K.l=xe*fe,K.r=xe*oe,K.xl=m-o*fe,K.xr=m+o*oe)):(i==="pixels"?(K.x=m,K.l=z*fe,K.r=z*oe):(K.l=K.r=0,K.xl=m+a*fe,K.xr=m-a*oe),l==="pixels"?(K.y=1-g,K.t=Ne*ce,K.b=Ne*Ae):(K.t=xe*ce,K.b=xe*Ae,K.yt=g-o*ce,K.yb=g+o*Ae));var Ve=t.y<.5?"b":"t",je=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Re={r:A.width-at-mt,l:at+K.r,b:A.height-nt-Be,t:nt+K.b};w&&y?Hv.autoMargin(r,t._id,K):w?r._fullLayout._reservedMargin[t._id][Ve]=Re[Ve]:y||n?r._fullLayout._reservedMargin[t._id][je]=Re[je]:r._fullLayout._reservedMargin[t._id][Ve]=Re[Ve]}return wa.syncOrAsync([Hv.previousPromises,We,Ge,Se,Hv.previousPromises,qe],r)}function Lne(e,t,r){var n=t.orientation==="v",a=r._fullLayout,i=a._size,o,l,s;jv.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),X1(e)},moveFn:function(f,u){e.attr("transform",o+Xa(f,u)),l=jv.align((n?t._uFrac:t._vFrac)+f/i.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),s=jv.align((n?t._vFrac:1-t._uFrac)-u/i.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var d=jv.getCursor(l,s,t.xanchor,t.yanchor);X1(e,d)},doneFn:function(){if(X1(e),l!==void 0&&s!==void 0){var f={};f[t._propPrefix+"x"]=l,f[t._propPrefix+"y"]=s,t._traceIndex!==void 0?Q4.call("_guiRestyle",r,f,t._traceIndex):Q4.call("_guiRelayout",r,f)}}})}function Ene(e,t,r){var n=t._levels,a=[],i=[],o,l,s=n.end+n.size/100,f=n.size,u=1.001*r[0]-.001*r[1],d=1.001*r[1]-.001*r[0];for(l=0;l<1e5&&(o=n.start+l*f,!(f>0?o>=s:o<=s));l++)o>u&&o0?o>=s:o<=s));l++)o>r[0]&&o-1}var lE=function(t,r){var n,a=t.data,i=t.layout,o=iE([],a),l=iE({},i,oE(r.tileClass)),s=t._context||{};if(r.width&&(l.width=r.width),r.height&&(l.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){l.annotations=[];var f=Object.keys(l);for(n=0;na;if(!i)return t}return r!==void 0?r:e.dflt},eo.coerceColor=function(e,t,r){return Dae(t).isValid()?t:r!==void 0?r:e.dflt},eo.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt},eo.getValue=function(e,t){var r;return SE(e)?t1||n.bargap===0&&n.bargroupgap===0&&!a[0].trace.marker.line.width)&&vc.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(a){var i=vc.select(this),o=a[0].trace;DE(i,o,e)}),LE.getComponentMethod("errorbars","style")(t)}function DE(e,t,r){pc.pointStyle(e.selectAll("path"),t,r),RE(e,t,r)}function RE(e,t,r){e.selectAll("text").each(function(n){var a=vc.select(this),i=CE.ensureUniformFontSize(r,FE(a,n,t,r));pc.font(a,i)})}function Iae(e,t,r){var n=t[0].trace;n.selectedpoints?Nae(r,n,e):(DE(r,n,e),LE.getComponentMethod("errorbars","style")(r))}function Nae(e,t,r){pc.selectedPointStyle(e.selectAll("path"),t),Oae(e.selectAll("text"),t,r)}function Oae(e,t,r){e.each(function(n){var a=vc.select(this),i;if(n.selected){i=CE.ensureUniformFontSize(r,FE(a,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(i.color=o),pc.font(a,i)}else pc.selectedTextStyle(a,t)})}function FE(e,t,r,n){var a=n._fullLayout.font,i=r.textfont;if(e.classed("bartext-inside")){var o=IE(t,r);i=zE(r,t.i,a,o)}else e.classed("bartext-outside")&&(i=$E(r,t.i,a));return i}function PE(e,t,r){return nb(Fae,e.textfont,t,r)}function zE(e,t,r,n){var a=PE(e,t,r),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return i&&(a={color:Rae.contrast(n),family:a.family,size:a.size}),nb(Pae,e.insidetextfont,t,a)}function $E(e,t,r){var n=PE(e,t,r);return nb(zae,e.outsidetextfont,t,n)}function nb(e,t,r,n){t=t||{};var a=hf.getValue(t.family,r),i=hf.getValue(t.size,r),o=hf.getValue(t.color,r);return{family:hf.coerceString(e.family,a,n.family),size:hf.coerceNumber(e.size,i,n.size),color:hf.coerceColor(e.color,o,n.color)}}function IE(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}var ab={style:$ae,styleTextPoints:RE,styleOnSelect:Iae,getInsideTextFont:zE,getOutsideTextFont:$E,getBarColor:IE,resizeText:EE},Gv=Qt,qv=er,fn=Ue,Bae=mn,Hae=Yt,qo=hr,jae=Pt,Wv=mr.tickText,NE=ME,Uae=NE.recordMinTextSize,Vae=NE.clearMinTextSize,ib=ab,vf=eo,Gae=uE,OE=Uv,qae=OE.text,Wae=OE.textposition,Zae=Gi.appendArrayPointValue,Ja=Gae.TEXTPAD;function Yae(e){return e.id}function Xae(e){if(e.ids)return Yae}function Wo(e,t){return e0}function Jae(e,t,r,n,a,i){var o=t.xaxis,l=t.yaxis,s=e._fullLayout,f=e._context.staticPlot;a||(a={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},Vae("bar",s));var u=fn.makeTraceGroups(n,r,"trace bars").each(function(d){var h=Gv.select(this),p=d[0].trace,v=p.type==="waterfall",m=p.type==="funnel",g=p.type==="bar",y=g||m,w=0;v&&p.connector.visible&&p.connector.mode==="between"&&(w=p.connector.line.width/2);var A=p.orientation==="h",x=HE(a),_=fn.ensureSingle(h,"g","points"),T=Xae(p),C=_.selectAll("g.point").data(fn.identity,T);C.enter().append("g").classed("point",!0),C.exit().remove(),C.each(function(E,F){var $=Gv.select(this),N=Kae(E,o,l,A),B=N[0][0],G=N[0][1],J=N[1][0],q=N[1][1],I=(A?G-B:q-J)===0;I&&y&&vf.getLineWidth(p,E)&&(I=!1),I||(I=!qv(B)||!qv(G)||!qv(J)||!qv(q)),E.isBlank=I,I&&(A?G=B:q=J),w&&!I&&(A?(B-=Wo(B,G)*w,G+=Wo(B,G)*w):(J-=Wo(J,q)*w,q+=Wo(J,q)*w));var z,P;if(p.type==="waterfall"){if(!I){var H=p[E.dir].marker;z=H.line.width,P=H.color}}else z=vf.getLineWidth(p,E),P=E.mc||p.marker.color;function j(ue){var U=Gv.round(z/2%1,2);return a.gap===0&&a.groupgap===0?Gv.round(Math.round(ue)-U,2):ue}function Z(ue,U,V){return V&&ue===U?ue:Math.abs(ue-U)>=2?j(ue):ue>U?Math.ceil(ue):Math.floor(ue)}if(!e._context.staticPlot){var te=Hae.opacity(P),ne=te<1||z>.01?j:Z;B=ne(B,G,A),G=ne(G,B,A),J=ne(J,q,!A),q=ne(q,J,!A)}var ie=BE(fn.ensureSingle($,"path"),s,a,i);if(ie.style("vector-effect",f?"none":"non-scaling-stroke").attr("d",isNaN((G-B)*(q-J))||I&&e._context.staticPlot?"M0,0Z":"M"+B+","+J+"V"+q+"H"+G+"V"+J+"Z").call(qo.setClipUrl,t.layerClipId,e),!s.uniformtext.mode&&x){var ee=qo.makePointStyleFns(p);qo.singlePointStyle(E,ie,p,ee,e)}Qae(e,t,$,d,F,B,G,J,q,a,i),t.layerClipId&&qo.hideOutsideRangePoint(E,$.select("text"),o,l,p.xcalendar,p.ycalendar)});var S=p.cliponaxis===!1;qo.setClipUrl(h,S?null:t.layerClipId,e)});jae.getComponentMethod("errorbars","plot")(e,u,t,a)}function Qae(e,t,r,n,a,i,o,l,s,f,u){var d=t.xaxis,h=t.yaxis,p=e._fullLayout,v;function m(ue,U,V){var Y=fn.ensureSingle(ue,"text").text(U).attr({class:"bartext bartext-"+v,"text-anchor":"middle","data-notex":1}).call(qo.font,V).call(Bae.convertToTspans,e);return Y}var g=n[0].trace,y=g.orientation==="h",w=tie(p,n,a,d,h);v=rie(g,a);var A=f.mode==="stack"||f.mode==="relative",x=n[a],_=!A||x._outmost;if(!w||v==="none"||(x.isBlank||i===o||l===s)&&(v==="auto"||v==="inside")){r.select("text").remove();return}var T=p.font,C=ib.getBarColor(n[a],g),S=ib.getInsideTextFont(g,a,T,C),E=ib.getOutsideTextFont(g,a,T),F=r.datum();y?d.type==="log"&&F.s0<=0&&(d.range[0]0&&q>0,P=J<=$&&q<=N,H=J<=N&&q<=$,j=y?$>=J*(N/q):N>=q*($/J);z&&(P||H||j)?v="inside":(v="outside",B.remove(),B=null)}else v="inside";if(!B){I=fn.ensureUniformFontSize(e,v==="outside"?E:S),B=m(r,w,I);var Z=B.attr("transform");if(B.attr("transform",""),G=qo.bBox(B.node()),J=G.width,q=G.height,B.attr("transform",Z),J<=0||q<=0){B.remove();return}}var te=g.textangle,ne,ie;v==="outside"?(ie=g.constraintext==="both"||g.constraintext==="outside",ne=eie(i,o,l,s,G,{isHorizontal:y,constrained:ie,angle:te})):(ie=g.constraintext==="both"||g.constraintext==="inside",ne=VE(i,o,l,s,G,{isHorizontal:y,constrained:ie,angle:te,anchor:g.insidetextanchor})),ne.fontSize=I.size,Uae(g.type==="histogram"?"bar":g.type,ne,p),x.transform=ne;var ee=BE(B,p,f,u);fn.setTransormAndDisplay(ee,ne)}function jE(e){return e==="auto"?0:e}function UE(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),a=Math.abs(Math.cos(r));return{x:e.width*a+e.height*n,y:e.width*n+e.height*a}}function VE(e,t,r,n,a,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,f=i.anchor||"end",u=f==="end",d=f==="start",h=i.leftToRight||0,p=(h+1)/2,v=1-p,m=a.width,g=a.height,y=Math.abs(t-e),w=Math.abs(n-r),A=y>2*Ja&&w>2*Ja?Ja:0;y-=2*A,w-=2*A;var x=jE(s);s==="auto"&&!(m<=y&&g<=w)&&(m>y||g>w)&&(!(m>w||g>y)||m2*Ja?Ja:0:p=d>2*Ja?Ja:0;var v=1;l&&(v=o?Math.min(1,h/u):Math.min(1,d/f));var m=jE(s),g=UE(a,m),y=(o?g.x:g.y)/2,w=(a.left+a.right)/2,A=(a.top+a.bottom)/2,x=(e+t)/2,_=(r+n)/2,T=0,C=0,S=o?Wo(t,e):Wo(r,n);return o?(x=t-S*p,T=S*y):(_=n+S*p,C=-S*y),{textX:w,textY:A,targetX:x,targetY:_,anchorX:T,anchorY:C,scale:v,rotate:m}}function tie(e,t,r,n,a){var i=t[0].trace,o=i.texttemplate,l;return o?l=nie(e,t,r,n,a):i.textinfo?l=aie(t,r,n,a):l=vf.getValue(i.text,r),vf.coerceString(qae,l)}function rie(e,t){var r=vf.getValue(e.textposition,t);return vf.coerceEnumerated(Wae,r)}function nie(e,t,r,n,a){var i=t[0].trace,o=fn.castOption(i,r,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",f=i.type==="funnel",u=i.orientation==="h",d,h,p,v;u?(d="y",h=a,p="x",v=n):(d="x",h=n,p="y",v=a);function m(T){return Wv(h,h.c2l(T),!0).text}function g(T){return Wv(v,v.c2l(T),!0).text}var y=t[r],w={};w.label=y.p,w.labelLabel=w[d+"Label"]=m(y.p);var A=fn.castOption(i,y.i,"text");(A===0||A)&&(w.text=A),w.value=y.s,w.valueLabel=w[p+"Label"]=g(y.s);var x={};Zae(x,i,y.i),(l||x.x===void 0)&&(x.x=u?w.value:w.label),(l||x.y===void 0)&&(x.y=u?w.label:w.value),(l||x.xLabel===void 0)&&(x.xLabel=u?w.valueLabel:w.labelLabel),(l||x.yLabel===void 0)&&(x.yLabel=u?w.labelLabel:w.valueLabel),s&&(w.delta=+y.rawS||y.s,w.deltaLabel=g(w.delta),w.final=y.v,w.finalLabel=g(w.final),w.initial=w.final-w.delta,w.initialLabel=g(w.initial)),f&&(w.value=y.s,w.valueLabel=g(w.value),w.percentInitial=y.begR,w.percentInitialLabel=fn.formatPercent(y.begR),w.percentPrevious=y.difR,w.percentPreviousLabel=fn.formatPercent(y.difR),w.percentTotal=y.sumR,w.percenTotalLabel=fn.formatPercent(y.sumR));var _=fn.castOption(i,y.i,"customdata");return _&&(w.customdata=_),fn.texttemplateString(o,w,e._d3locale,x,w,i._meta||{})}function aie(e,t,r,n){var a=e[0].trace,i=a.orientation==="h",o=a.type==="waterfall",l=a.type==="funnel";function s(_){var T=i?n:r;return Wv(T,_,!0).text}function f(_){var T=i?r:n;return Wv(T,+_,!0).text}var u=a.textinfo,d=e[t],h=u.split("+"),p=[],v,m=function(_){return h.indexOf(_)!==-1};if(m("label")&&p.push(s(e[t].p)),m("text")&&(v=fn.castOption(a,d.i,"text"),(v===0||v)&&p.push(v)),o){var g=+d.rawS||d.s,y=d.v,w=y-g;m("initial")&&p.push(f(w)),m("delta")&&p.push(f(g)),m("final")&&p.push(f(y))}if(l){m("value")&&p.push(f(d.s));var A=0;m("percent initial")&&A++,m("percent previous")&&A++,m("percent total")&&A++;var x=A>1;m("percent initial")&&(v=fn.formatPercent(d.begR),x&&(v+=" of initial"),p.push(v)),m("percent previous")&&(v=fn.formatPercent(d.difR),x&&(v+=" of previous"),p.push(v)),m("percent total")&&(v=fn.formatPercent(d.sumR),x&&(v+=" of total"),p.push(v))}return p.join("
")}var iie={plot:Jae,toMoveInsideBar:VE},mc=Yi,oie=Pt,GE=Yt,lie=Ue.fillText,sie=eo.getLineWidth,ob=mr.hoverLabelText,fie=zr.BADNUM;function uie(e,t,r,n,a){var i=qE(e,t,r,n,a);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=WE(l,s),oie.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function qE(e,t,r,n,a){var i=e.cd,o=i[0].trace,l=i[0].t,s=n==="closest",f=o.type==="waterfall",u=e.maxHoverDistance,d=e.maxSpikeDistance,h,p,v,m,g,y,w;o.orientation==="h"?(h=r,p=t,v="y",m="x",g=J,y=N):(h=t,p=r,v="x",m="y",y=J,g=N);var A=o[v+"period"],x=s||A;function _(ee){return C(ee,-1)}function T(ee){return C(ee,1)}function C(ee,ue){var U=ee.w;return ee[v]+ue*U/2}function S(ee){return ee[v+"End"]-ee[v+"Start"]}var E=s?_:A?function(ee){return ee.p-S(ee)/2}:function(ee){return Math.min(_(ee),ee.p-l.bardelta/2)},F=s?T:A?function(ee){return ee.p+S(ee)/2}:function(ee){return Math.max(T(ee),ee.p+l.bardelta/2)};function $(ee,ue,U){return a.finiteRange&&(U=0),mc.inbox(ee-h,ue-h,U+Math.min(1,Math.abs(ue-ee)/w)-1)}function N(ee){return $(E(ee),F(ee),u)}function B(ee){return $(_(ee),T(ee),d)}function G(ee){var ue=ee[m];if(f){var U=Math.abs(ee.rawS)||0;p>0?ue+=U:p<0&&(ue-=U)}return ue}function J(ee){var ue=p,U=ee.b,V=G(ee);return mc.inbox(U-ue,V-ue,u+(V-ue)/(V-U)-1)}function q(ee){var ue=p,U=ee.b,V=G(ee);return mc.inbox(U-ue,V-ue,d+(V-ue)/(V-U)-1)}var I=e[v+"a"],z=e[m+"a"];w=Math.abs(I.r2c(I.range[1])-I.r2c(I.range[0]));function P(ee){return(g(ee)+y(ee))/2}var H=mc.getDistanceFunction(n,g,y,P);if(mc.getClosest(i,H,e),e.index!==!1&&i[e.index].p!==fie){x||(E=function(ee){return Math.min(_(ee),ee.p-l.bargroupwidth/2)},F=function(ee){return Math.max(T(ee),ee.p+l.bargroupwidth/2)});var j=e.index,Z=i[j],te=o.base?Z.b+Z.s:Z.s;e[m+"0"]=e[m+"1"]=z.c2p(Z[m],!0),e[m+"LabelVal"]=te;var ne=l.extents[l.extents.round(Z.p)];e[v+"0"]=I.c2p(s?E(Z):ne[0],!0),e[v+"1"]=I.c2p(s?F(Z):ne[1],!0);var ie=Z.orig_p!==void 0;return e[v+"LabelVal"]=ie?Z.orig_p:Z.p,e.labelLabel=ob(I,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=ob(z,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=ob(z,Z.b,o[m+"hoverformat"]),e.spikeDistance=(q(Z)+B(Z))/2,e[v+"Spike"]=I.c2p(Z.p,!0),lie(Z,o,e),e.hovertemplate=o.hovertemplate,e}}function WE(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,a=sie(e,t);if(GE.opacity(r))return r;if(GE.opacity(n)&&a)return n}var cie={hoverPoints:uie,hoverOnBars:qE,getTraceColor:WE},die=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t},hie=function(t,r){var n=t.cd,a=t.xaxis,i=t.yaxis,o=n[0].trace,l=o.type==="funnel",s=o.orientation==="h",f=[],u;if(r===!1)for(u=0;u0&&(r=!0);for(var o=0;oa){var i=a-r[e];return r[e]=a,i}}else return r[e]=a,a;return 0},max:function(e,t,r,n){var a=n[t];if(pf(a))if(a=Number(a),pf(r[e])){if(r[e]h&&hYv){var m=p===Hl?1:6,g=p===Hl?"M12":"M1";return function(y,w){var A=a.c2d(y,Hl,i),x=A.indexOf("-",m);x>0&&(A=A.substr(0,x));var _=a.d2c(A,0,i);if(_aD?e>Yv?e>Hl*1.1?Hl:e>tD*1.1?tD:Yv:e>rD?rD:e>nD?nD:aD:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function $ie(e,t,r,n,a,i){if(n&&e>Yv){var o=sD(t,a,i),l=sD(r,a,i),s=e===Hl?0:1;return o[s]!==l[s]}return Math.floor(r/e)-Math.floor(t/e)>.1}function sD(e,t,r){var n=t.c2d(e,Hl,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}var sb=er,An=Ue,fD=Pt,ka=mr,Iie=tb,uD=JE,Nie=QE,Oie=eD,Bie=oD;function Hie(e,t){var r=[],n=[],a=t.orientation==="h",i=ka.getFromId(e,a?t.yaxis:t.xaxis),o=a?"y":"x",l={x:"y",y:"x"}[o],s=t[o+"calendar"],f=t.cumulative,u,d=fb(e,t,i,o),h=d[0],p=d[1],v=typeof h.size=="string",m=[],g=v?m:h,y=[],w=[],A=[],x=0,_=t.histnorm,T=t.histfunc,C=_.indexOf("density")!==-1,S,E,F;f.enabled&&C&&(_=_.replace(/ ?density$/,""),C=!1);var $=T==="max"||T==="min",N=$?null:0,B=uD.count,G=Nie[_],J=!1,q=function(Q){return i.r2c(Q,0,s)},I;for(An.isArrayOrTypedArray(t[l])&&T!=="count"&&(I=t[l],J=T==="avg",B=uD[T]),u=q(h.start),E=q(h.end)+(u-ka.tickIncrement(u,h.size,!1,s))/1e6;u=0&&F=V;u--)if(n[u]){Y=u;break}for(u=V;u<=Y;u++)if(sb(r[u])&&sb(n[u])){var se={p:r[u],s:n[u],b:0};f.enabled||(se.pts=A[u],j?se.ph0=se.ph1=A[u].length?p[A[u][0]]:r[u]:(t._computePh=!0,se.ph0=ee(m[u]),se.ph1=ee(m[u+1],!0))),U.push(se)}return U.length===1&&(U[0].width1=ka.tickIncrement(U[0].p,h.size,!1,s)-U[0].p),Iie(U,t),An.isArrayOrTypedArray(t.selectedpoints)&&An.tagSelected(U,t,ne),U}function fb(e,t,r,n,a){var i=n+"bins",o=e._fullLayout,l=t["_"+n+"bingroup"],s=o._histogramBinOpts[l],f=o.barmode==="overlay",u,d,h,p,v,m,g,y=function(ie){return r.r2c(ie,0,p)},w=function(ie){return r.c2r(ie,0,p)},A=r.type==="date"?function(ie){return ie||ie===0?An.cleanDate(ie,null,p):null}:function(ie){return sb(ie)?Number(ie):null};function x(ie,ee,ue){ee[ie+"Found"]?(ee[ie]=A(ee[ie]),ee[ie]===null&&(ee[ie]=ue[ie])):(m[ie]=ee[ie]=ue[ie],An.nestedProperty(d[0],i+"."+ie).set(ue[ie]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{d=s.traces;var _=[],T=!0,C=!1,S=!1;for(u=0;u"u"){if(a)return[F,v,!0];F=jie(e,t,r,n,i)}g=h.cumulative||{},g.enabled&&g.currentbin!=="include"&&(g.direction==="decreasing"?F.start=w(ka.tickIncrement(y(F.start),F.size,!0,p)):F.end=w(ka.tickIncrement(y(F.end),F.size,!1,p))),s.size=F.size,s.sizeFound||(m.size=F.size,An.nestedProperty(d[0],i+".size").set(F.size)),x("start",s,F),x("end",s,F)}v=t["_"+n+"pos0"],delete t["_"+n+"pos0"];var N=t._input[i]||{},B=An.extendFlat({},s),G=s.start,J=r.r2l(N.start),q=J!==void 0;if((s.startFound||q)&&J!==r.r2l(G)){var I=q?J:An.aggNums(Math.min,null,v),z={type:r.type==="category"||r.type==="multicategory"?"linear":r.type,r2l:r.r2l,dtick:s.size,tick0:G,calendar:p,range:[I,ka.tickIncrement(I,s.size,!1,p)].map(r.l2r)},P=ka.tickFirst(z);P>r.r2l(I)&&(P=ka.tickIncrement(P,s.size,!0,p)),B.start=r.l2r(P),q||An.nestedProperty(t,i+".start").set(B.start)}var H=s.end,j=r.r2l(N.end),Z=j!==void 0;if((s.endFound||Z)&&j!==r.r2l(H)){var te=Z?j:An.aggNums(Math.max,null,v);B.end=r.l2r(te),Z||An.nestedProperty(t,i+".start").set(B.end)}var ne="autobin"+n;return t._input[ne]===!1&&(t._input[i]=An.extendFlat({},t[i]||{}),delete t._input[ne],delete t[ne]),[B,v]}function jie(e,t,r,n,a){var i=e._fullLayout,o=Uie(e,t),l=!1,s=1/0,f=[t],u,d,h;for(u=0;u=0;n--)l(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}var Gie={calc:Hie,calcAllAutoBins:fb},cD=Ue,gf=mr,dD=JE,qie=QE,Wie=eD,Zie=oD,hD=Gie.calcAllAutoBins,Yie=function(t,r){var n=gf.getFromId(t,r.xaxis),a=gf.getFromId(t,r.yaxis),i=r.xcalendar,o=r.ycalendar,l=function(ze){return n.r2c(ze,0,i)},s=function(ze){return a.r2c(ze,0,o)},f=function(ze){return n.c2r(ze,0,i)},u=function(ze){return a.c2r(ze,0,o)},d,h,p,v,m=hD(t,r,n,"x"),g=m[0],y=m[1],w=hD(t,r,a,"y"),A=w[0],x=w[1],_=r._length;y.length>_&&y.splice(_,y.length-_),x.length>_&&x.splice(_,x.length-_);var T=[],C=[],S=[],E=typeof g.size=="string",F=typeof A.size=="string",$=[],N=[],B=E?$:g,G=F?N:A,J=0,q=[],I=[],z=r.histnorm,P=r.histfunc,H=z.indexOf("density")!==-1,j=P==="max"||P==="min",Z=j?null:0,te=dD.count,ne=qie[z],ie=!1,ee=[],ue=[],U="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";U&&P!=="count"&&(ie=P==="avg",te=dD[P]);var V=g.size,Y=l(g.start),se=l(g.end)+(Y-gf.tickIncrement(Y,V,!1,i))/1e6;for(d=Y;d=0&&p=0&&vbD;a++)n=_D(t,r,roe(n));return n>bD&&eoe.log("interp2d didn't converge quickly",n),t};function _D(e,t,r){var n=0,a,i,o,l,s,f,u,d,h,p,v,m,g;for(l=0;lm&&(n=Math.max(n,Math.abs(e[i][o]-v)/(g-m))))}return n}var aoe=Ue.maxRowLength,ioe=function(t){var r=[],n={},a=[],i=t[0],o=[],l=[0,0,0],s=aoe(t),f,u,d,h,p,v,m,g;for(u=0;u=0;p--)h=a[p],u=h[0],d=h[1],v=((n[[u-1,d]]||l)[2]+(n[[u+1,d]]||l)[2]+(n[[u,d-1]]||l)[2]+(n[[u,d+1]]||l)[2])/20,v&&(m[h]=[u,d,v],a.splice(p,1),g=!0);if(!g)throw"findEmpties iterated with no new neighbors";for(h in m)n[h]=m[h],r.push(m[h])}return r.sort(function(y,w){return w[2]-y[2]})},ub=Pt,xD=Ue.isArrayOrTypedArray,ooe=function(t,r,n,a,i,o){var l=[],s=ub.traceIs(t,"contour"),f=ub.traceIs(t,"histogram"),u=ub.traceIs(t,"gl2d"),d,h,p,v=xD(r)&&r.length>1;if(v&&!f&&o.type!=="category"){var m=r.length;if(m<=i){if(s||u)l=Array.from(r).slice(0,i);else if(i===1)l=[r[0]-.5,r[0]+.5];else{for(l=[1.5*r[0]-.5*r[1]],p=1;p1){var J=(G[G.length-1]-G[0])/(G.length-1),q=Math.abs(J/100);for(w=0;wq)return!1}return!0}r._islinear=!1,n.type==="log"||a.type==="log"?s==="fast"&&_("log axis found"):T(f)?T(p)?r._islinear=!0:s==="fast"&&_("y scale is not linear"):s==="fast"&&_("x scale is not linear");var C=db.maxRowLength(y),S=r.xtype==="scaled"?"":f,E=Qv(r,S,u,d,C,n),F=r.ytype==="scaled"?"":p,$=Qv(r,F,v,m,y.length,a);l||(r._extremes[n._id]=Jv.findExtremes(n,E),r._extremes[a._id]=Jv.findExtremes(a,$));var N={x:E,y:$,z:y,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&h&&(N.orig_x=h),r.yperiodalignment&&g&&(N.orig_y=g),S&&S.length===E.length-1&&(N.xCenter=S),F&&F.length===$.length-1&&(N.yCenter=F),o&&(N.xRanges=A.xRanges,N.yRanges=A.yRanges,N.pts=A.pts),i||soe(t,r,{vals:y,cLetter:"z"}),i&&r.contours&&r.contours.coloring==="heatmap"){var B={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};N.xfill=Qv(B,S,u,d,C,n),N.yfill=Qv(B,F,v,m,y.length,a)}return[N]};function TD(e){for(var t=[],r=e.length,n=0;n0;)S=a.c2p(p[N]),N--;for(S0;)$=i.c2p(v[N]),N--;$=a._length||S<=0||F>=i._length||$<=0;if(P){var H=l.selectAll("image").data([]);H.exit().remove(),LD(l);return}var j,Z;J==="fast"?(j=x,Z=A):(j=I,Z=z);var te=document.createElement("canvas");te.width=j,te.height=Z;var ne=te.getContext("2d",{willReadFrequently:!0}),ie=Aoe(f,{noNumericCheck:!0,returnArray:!0}),ee,ue;J==="fast"?(ee=_?function(Nt){return x-1-Nt}:Aa.identity,ue=T?function(Nt){return A-1-Nt}:Aa.identity):(ee=function(Nt){return Aa.constrain(Math.round(a.c2p(p[Nt])-C),0,I)},ue=function(Nt){return Aa.constrain(Math.round(i.c2p(v[Nt])-F),0,z)});var U=ue(0),V=[U,U],Y=_?0:1,se=T?0:1,Q=0,me=0,ye=0,pe=0,ge,Ee,$e,Fe,Oe;function Pe(Nt,kr){if(Nt!==void 0){var Jt=ie(Nt);return Jt[0]=Math.round(Jt[0]),Jt[1]=Math.round(Jt[1]),Jt[2]=Math.round(Jt[2]),Q+=kr,me+=Jt[0]*kr,ye+=Jt[1]*kr,pe+=Jt[2]*kr,Jt}return[0,0,0,0]}function We(Nt,kr,Jt,_r){var Dr=Nt[Jt.bin0];if(Dr===void 0)return Pe(void 0,1);var Mn=Nt[Jt.bin1],rn=kr[Jt.bin0],nn=kr[Jt.bin1],Qa=Mn-Dr||0,to=rn-Dr||0,Yr;return Mn===void 0?nn===void 0?Yr=0:rn===void 0?Yr=2*(nn-Dr):Yr=(2*nn-rn-Dr)*2/3:nn===void 0?rn===void 0?Yr=0:Yr=(2*Dr-Mn-rn)*2/3:rn===void 0?Yr=(2*nn-Mn-Dr)*2/3:Yr=nn+Dr-Mn-rn,Pe(Dr+Jt.frac*Qa+_r.frac*(to+Jt.frac*Yr))}if(J!=="default"){var Se=0,Ge;try{Ge=new Uint8Array(j*Z*4)}catch{Ge=new Array(j*Z*4)}if(J==="smooth"){var qe=m||p,Qe=g||v,it=new Array(qe.length),dt=new Array(Qe.length),ht=new Array(I),rt=m?DD:ED,ft=g?DD:ED,ze,Ie,Ne;for(N=0;Nxe||xe>i._length))for(B=fe;Bje||je>a._length)){var Re=woe({x:Ve,y:Ae},f,e._fullLayout);Re.x=Ve,Re.y=Ae;var le=s.z[N][B];le===void 0?(Re.z="",Re.zLabel=""):(Re.z=le,Re.zLabel=xoe.tickText(Ke,le,"hover").text);var Le=s.text&&s.text[N]&&s.text[N][B];(Le===void 0||Le===!1)&&(Le=""),Re.text=Le;var He=Aa.texttemplateString(vt,Re,e._fullLayout._d3locale,Re,f._meta||{});if(He){var Xe=He.split("
"),Lt=Xe.length,Dt=0;for(G=0;G=p[0].length||C<0||C>p.length)return}else{if(FD.inbox(r-d[0],r-d[d.length-1],0)>0||FD.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var S;for(w=[2*d[0]-d[1]],S=1;S=this._config.preview;if(i)n.postMessage({results:B,workerId:s.WORKER_ID,finished:J});else if(C(this._config.chunk)&&!F){if(this._config.chunk(B,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);B=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(B.data),this._completeResults.errors=this._completeResults.errors.concat(B.errors),this._completeResults.meta=B.meta),this._completed||!J||!C(this._config.complete)||B&&B.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),J||B&&B.meta.paused||this._nextChunk(),B}this._halted=!0},this._sendError=function(E){C(this._config.error)?this._config.error(E):i&&this._config.error&&n.postMessage({workerId:s.WORKER_ID,error:E,finished:!1})}}function d(S){var E;(S=S||{}).chunkSize||(S.chunkSize=s.RemoteChunkSize),u.call(this,S),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(F){this._input=F,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(E=new XMLHttpRequest,this._config.withCredentials&&(E.withCredentials=this._config.withCredentials),a||(E.onload=T(this._chunkLoaded,this),E.onerror=T(this._chunkError,this)),E.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var F=this._config.downloadRequestHeaders;for(var $ in F)E.setRequestHeader($,F[$])}if(this._config.chunkSize){var N=this._start+this._config.chunkSize-1;E.setRequestHeader("Range","bytes="+this._start+"-"+N)}try{E.send(this._config.downloadRequestBody)}catch(B){this._chunkError(B.message)}a&&E.status===0&&this._chunkError()}},this._chunkLoaded=function(){E.readyState===4&&(E.status<200||400<=E.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:E.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(F){var $=F.getResponseHeader("Content-Range");return $===null?-1:parseInt($.substring($.lastIndexOf("/")+1))}(E),this.parseChunk(E.responseText)))},this._chunkError=function(F){var $=E.statusText||F;this._sendError(new Error($))}}function h(S){var E,F;(S=S||{}).chunkSize||(S.chunkSize=s.LocalChunkSize),u.call(this,S);var $=typeof FileReader<"u";this.stream=function(N){this._input=N,F=N.slice||N.webkitSlice||N.mozSlice,$?((E=new FileReader).onload=T(this._chunkLoaded,this),E.onerror=T(this._chunkError,this)):E=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(N.target.result)},this._chunkError=function(){this._sendError(E.error)}}function p(S){var E;u.call(this,S=S||{}),this.stream=function(F){return E=F,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var F,$=this._config.chunkSize;return $?(F=E.substring(0,$),E=E.substring($)):(F=E,E=""),this._finished=!E,this.parseChunk(F)}}}function v(S){u.call(this,S=S||{});var E=[],F=!0,$=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(N){this._input=N,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){$&&E.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),E.length?this.parseChunk(E.shift()):F=!0},this._streamData=T(function(N){try{E.push(typeof N=="string"?N:N.toString(this._config.encoding)),F&&(F=!1,this._checkIsFinished(),this.parseChunk(E.shift()))}catch(B){this._streamError(B)}},this),this._streamError=T(function(N){this._streamCleanUp(),this._sendError(N)},this),this._streamEnd=T(function(){this._streamCleanUp(),$=!0,this._streamData("")},this),this._streamCleanUp=T(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function m(S){var E,F,$,N=Math.pow(2,53),B=-N,G=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,J=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,q=this,I=0,z=0,P=!1,H=!1,j=[],Z={data:[],errors:[],meta:{}};if(C(S.step)){var te=S.step;S.step=function(V){if(Z=V,ee())ie();else{if(ie(),Z.data.length===0)return;I+=V.data.length,S.preview&&I>S.preview?F.abort():(Z.data=Z.data[0],te(Z,q))}}}function ne(V){return S.skipEmptyLines==="greedy"?V.join("").trim()==="":V.length===1&&V[0].length===0}function ie(){return Z&&$&&(U("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),$=!1),S.skipEmptyLines&&(Z.data=Z.data.filter(function(V){return!ne(V)})),ee()&&function(){if(!Z)return;function V(se,Q){C(S.transformHeader)&&(se=S.transformHeader(se,Q)),j.push(se)}if(Array.isArray(Z.data[0])){for(var Y=0;ee()&&Y=j.length?"__parsed_extra":j[me]),S.transform&&(ge=S.transform(ge,pe)),ge=ue(pe,ge),pe==="__parsed_extra"?(ye[pe]=ye[pe]||[],ye[pe].push(ge)):ye[pe]=ge}return S.header&&(me>j.length?U("FieldMismatch","TooManyFields","Too many fields: expected "+j.length+" fields but parsed "+me,z+Q):me=$e.length/2?`\r `:"\r"}(V,Q)),$=!1,S.delimiter)C(S.delimiter)&&(S.delimiter=S.delimiter(V),Z.meta.delimiter=S.delimiter);else{var me=function(pe,ge,Ee,$e,Fe){var Oe,Pe,We,Se;Fe=Fe||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var Ge=0;Ge=G)return ze(!0)}else for(qe=I,I++;;){if((qe=P.indexOf(E,qe+1))===-1)return j||U.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ue.length,index:I}),rt();if(qe===Z-1)return rt(P.substring(I,qe).replace(Ge,E));if(E!==q||P[qe+1]!==q){if(E===q||qe===0||P[qe-1]!==q){We!==-1&&We=G)return ze(!0);break}U.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ue.length,index:I}),qe++}}else qe++}return rt();function dt(Ne){ue.push(Ne),Y=I}function ht(Ne){var et=0;if(Ne!==-1){var Je=P.substring(qe+1,Ne);Je&&Je.trim()===""&&(et=Je.length)}return et}function rt(Ne){return j||(Ne===void 0&&(Ne=P.substring(I)),V.push(Ne),I=Z,dt(V),ee&&Ie()),ze()}function ft(Ne){I=Ne,dt(V),V=[],Se=P.indexOf($,I)}function ze(Ne){return{data:ue,errors:U,meta:{delimiter:F,linebreak:$,aborted:z,truncated:!!Ne,cursor:Y+(H||0)}}}function Ie(){B(ze()),ue=[],U=[]}},this.abort=function(){z=!0},this.getCharIndex=function(){return I}}function w(S){var E=S.data,F=o[E.workerId],$=!1;if(E.error)F.userError(E.error,E.file);else if(E.results&&E.results.data){var N={abort:function(){$=!0,A(E.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:x,resume:x};if(C(F.userStep)){for(var B=0;BHoe.parse(e,{download:!0,complete:t})},zD={components:{PlotControls:Vf},props:{metadata:{type:Object,required:!0},sourceData:{type:Object,required:!0},plotLayout:{type:Object,required:!0},supplementalData:{type:Array,required:!0},version:{type:String,required:!0},selectorUi:{type:Boolean,default:!0}},data:function(){return{layout:{paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)",autosize:!0,margin:{t:25,l:55,r:55,b:90,pad:4}},loading:!1,options:{responsive:!0,scrollZoom:!0}}},computed:{title(){return this.sourceData.url.split("\\").pop().split("/").pop().split(".")[0]}}},joe={name:"TimeseriesPlot",components:{PlotControls:Vf,ElSelect:ss,ElButton:jf,ElOption:fs},mixins:[zD],data:function(){return{dataValues:k.markRaw([]),filterX:[],parsedData:null,time:k.markRaw([]),traceData:null,traceNames:[],xAxisLabel:"time"}},computed:{fullMetadata(){let e=JSON.parse(JSON.stringify(this.metadata));return e["y-axes-columns"]||(e["y-axes-columns"]=[]),e["x-axis-column"]||(e["x-axis-column"]=0),e["no-header"]||(e["no-header"]=!1),e["row-major"]||(e["row-major"]=!1),e}},watch:{sourceData:function(){this.loadData(this.sourceData)}},mounted:function(){this.loadData(this.sourceData)},methods:{loadData(e){e.url?(this.loading=!0,gb.loadFile(e.url,this.dataReady)):hc.react(this.$refs.plotlyplot,this.sourceData.data,this.plotLayout?this.plotLayout:this.layout,this.options)},dataReady(e){const t=Date.now();this.fullMetadata["no-header"]&&gb.loadFile(this.supplementalData[0].url,this.headerDataReady),this.loading=!1,this.parsedData=k.markRaw(e),this.findYaxesCols(),this.populateTime(),this.populateDataValues(),this.fullMetadata["no-header"]||(this.populateXaxisLabel(),this.populateTraceNames()),this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames),console.log(Date.now()-t)},headerDataReady(e){this.traceData=k.markRaw(e),this.populateXaxisLabel(),this.populateTraceNames(),this.loading||this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames)},filterPlot(){let e=this.filterX;if(e.length===0){this.createPlot(this.time,this.xAxisLabel,this.dataValues,this.traceNames);return}let t=[];for(let a of e)t.push(this.fullMetadata["y-axes-columns"][this.traceNames.indexOf(a)]);let r=this.parsedData.data;this.fullMetadata["no-header"]||(r=r.slice(1));let n=[];for(let a of t){const i=r.map(o=>o[a]);n.push(i)}this.createPlot(this.time,this.xAxisLabel,n,e)},createPlot(e,t,r,n){let a=[];for(let s=0;sa[r]);t.push(n)}this.dataValues=k.markRaw(t)}}},Uoe={ref:"plotContainer",class:"container"},Voe={ref:"plotlyplot",class:"vue-plotly"};function Goe(e,t,r,n,a,i){const o=fs,l=ss,s=jf,f=Vf;return k.openBlock(),k.createElementBlock("div",Uoe,[k.createElementVNode("div",Voe,null,512),e.selectorUi?(k.openBlock(),k.createElementBlock("div",{key:0,class:k.normalizeClass(["chooser-container",{inactive:e.loading}])},[k.createElementVNode("span",null,[k.createVNode(l,{ref:"selectBox",modelValue:e.filterX,"onUpdate:modelValue":t[0]||(t[0]=u=>e.filterX=u),class:"channel-select",size:"large",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",teleported:!1,placeholder:"select"},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(e.traceNames,u=>(k.openBlock(),k.createBlock(o,{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),k.createElementVNode("span",null,[k.createVNode(s,{class:"view-heatmap-button",onClick:i.filterPlot},{default:k.withCtx(()=>[k.createTextVNode("Filter plot")]),_:1},8,["onClick"])])],2)):k.createCommentVNode("",!0),k.createVNode(f,{ref:"controls","parent-element":{element:e.$refs.plotContainer},"controls-enabled":!e.loading},null,8,["parent-element","controls-enabled"])],512)}const qoe=id(joe,[["render",Goe],["__scopeId","data-v-ab61b52c"]]),Woe={name:"HeatmapPlot",components:{PlotControls:Vf,ElSelect:ss,ElOption:fs,ElCollapse:iw,ElCollapseItem:ow,ElButton:jf,ElPopover:km},mixins:[zD],data:function(){return{columnHeaders:[],rowHeaders:[],dataValues:k.markRaw([]),filterX:[],filterY:[],loading:!1,logScale:!1,logDataValues:k.markRaw([])}},computed:{fullMetadata(){let e=JSON.parse(JSON.stringify(this.metadata));return e.columnHeaderSize||(e.columnHeaderSize=1),e.columnHeaderIndex||(e.columnHeaderIndex=0),e.rowHeaderSize||(e.rowHeaderSize=1),e.rowHeaderIndex||(e.rowHeaderIndex=0),e},logScaleEnabled(){return!!JSON.parse(JSON.stringify(this.metadata)).logScale},plotTitle(){return this.logScale?this.title+" (Log scale)":this.title}},watch:{sourceData:function(){this.loadData(this.sourceData)}},mounted:function(){this.loadData(this.sourceData)},methods:{loadData(e){e.url?(this.loading=!0,gb.loadFile(e.url,this.dataReady)):hc.react(this.$refs.plotlyplot,this.sourceData.data,this.sourceData.layout?this.sourceData.layout:this.layout,this.options)},dataReady(e){this.loading=!1;const t=e;this.populateColumnHeaders(t),this.populateRowHeaders(t),this.populateDataValues(t),this.logScaleEnabled?(this.logValues(),this.logScale=!0,this.createPlot(this.columnHeaders,this.rowHeaders,this.logDataValues,"heatmap")):this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap")},logValues(){this.dataValues.forEach((e,t)=>{this.logDataValues.push([]),e.forEach(r=>{this.logDataValues[t].push(Math.log10(r))})})},logToggle(){this.logScale?(this.logScale=!1,this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap")):(this.logScale=!0,this.createPlot(this.columnHeaders,this.rowHeaders,this.logDataValues,"heatmap"))},filterPlot(){let e=this.filterX,t=this.filterY;if(e.length===0&&t.length===0){this.createPlot(this.columnHeaders,this.rowHeaders,this.dataValues,"heatmap");return}e.length===0&&(e=this.columnHeaders),t.length===0&&(t=this.rowHeaders);let r=[];for(let i of e)r.push(this.columnHeaders.indexOf(i));let n=[];for(let i of t)n.push(this.rowHeaders.indexOf(i));let a=[];for(let i of r){const o=this.dataValues.map(s=>s[i]);let l=[];for(let s of n)l.push(o[s]);a.push(l)}a=a[0].map((i,o)=>a.map(l=>l[o])),this.createPlot(e,t,a,"heatmap")},createPlot(e,t,r,n){var a=[{x:e,y:t,z:r,type:n}];const i={title:{text:this.plotTitle}};hc.react(this.$refs.plotlyplot,a,{...this.layout,...i,...this.plotLayout},this.options)},populateColumnHeaders(e){let r=[...e.data[this.fullMetadata.columnHeaderIndex]];this.columnHeaders=r.slice(this.fullMetadata.rowHeaderSize)},populateRowHeaders(e){const r=e.data.map(n=>n[this.fullMetadata.rowHeaderIndex]);this.rowHeaders=r.slice(this.fullMetadata.columnHeaderSize)},populateDataValues(e){const r=e.data.slice(this.fullMetadata.columnHeaderSize);this.dataValues=k.markRaw(r.map(n=>n.slice(this.fullMetadata.rowHeaderSize)))}}},Zoe={ref:"plotContainer",class:"container"},Yoe={ref:"plotlyplot",class:"vue-plotly"},Xoe={key:0};function Koe(e,t,r,n,a,i){const o=fs,l=ss,s=jf,f=Vf;return k.openBlock(),k.createElementBlock("div",Zoe,[k.createElementVNode("div",Yoe,null,512),e.selectorUi?(k.openBlock(),k.createElementBlock("div",{key:0,class:k.normalizeClass(["chooser-container",{inactive:e.loading}])},[k.createElementVNode("span",null,[k.createVNode(l,{modelValue:e.filterX,"onUpdate:modelValue":t[0]||(t[0]=u=>e.filterX=u),class:"channel-select",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",placeholder:"select"},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(e.columnHeaders,u=>(k.openBlock(),k.createBlock(o,{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),k.createElementVNode("span",null,[k.createVNode(l,{modelValue:e.filterY,"onUpdate:modelValue":t[1]||(t[1]=u=>e.filterY=u),class:"channel-select",multiple:"",filterable:"","collapse-tags":"","default-first-option":"",placeholder:"select"},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(e.rowHeaders,u=>(k.openBlock(),k.createBlock(o,{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),k.createElementVNode("span",null,[k.createVNode(s,{class:"view-heatmap-button",onClick:i.filterPlot},{default:k.withCtx(()=>[k.createTextVNode("Filter plot")]),_:1},8,["onClick"])]),i.logScaleEnabled?(k.openBlock(),k.createElementBlock("span",Xoe,[k.createVNode(s,{class:"view-heatmap-button",onClick:i.logToggle},{default:k.withCtx(()=>[k.createTextVNode("Toggle log")]),_:1},8,["onClick"])])):k.createCommentVNode("",!0)],2)):k.createCommentVNode("",!0),k.createVNode(f,{"parent-element":{element:e.$refs.plotContainer},"controls-enabled":!e.loading},null,8,["parent-element","controls-enabled"])],512)}const Joe=id(Woe,[["render",Koe],["__scopeId","data-v-e71fb8c3"]]),Qoe=["1.2.0","1.1.0"],ele={name:"PlotVuer",components:{TimeseriesPlot:qoe,HeatmapPlot:Joe},props:{dataSource:{type:Object,required:!0,default:()=>{}},metadata:{type:Object,required:!0,validator:function(e){return Qoe.includes(e.version)&&e.type==="plot"}},plotLayout:{type:Object,default:()=>({paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)",autosize:!0,margin:{t:25,l:55,r:55,b:90,pad:4},loading:!1,options:{responsive:!0,scrollZoom:!0}})},supplementalData:{type:Array,default:()=>[]},helpMode:{type:Boolean,default:!1},selectorUi:{type:Boolean,default:!0}},computed:{plotType:function(){return this.metadata.attrs.style+"-plot"},layout:function(){return this.metadata?this.metadata.attrs?this.metadata.attrs.layout?this.metadata.attrs.layout:this.plotLayout:this.plotLayout:this.plotLayout}}},tle={class:"plotvuer_parent"};function rle(e,t,r,n,a,i){return k.openBlock(),k.createElementBlock("div",tle,[i.plotType!="-plot"?(k.openBlock(),k.createBlock(k.resolveDynamicComponent(i.plotType),{key:0,sourceData:r.dataSource,plotLayout:i.layout,version:r.metadata.version,metadata:r.metadata.attrs,selectorUi:r.selectorUi,supplementalData:r.supplementalData},null,8,["sourceData","plotLayout","version","metadata","selectorUi","supplementalData"])):k.createCommentVNode("",!0)])}const nle=id(ele,[["render",rle],["__scopeId","data-v-72189ced"]]);Ln.PlotVuer=nle,Object.defineProperty(Ln,Symbol.toStringTag,{value:"Module"})});