From 096428ee5a301b87a284c68c04e90cc0ba47f8e8 Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 13 Sep 2020 17:13:37 +0300 Subject: [PATCH 01/26] change branch --- frameworks/keyed/yew/Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frameworks/keyed/yew/Cargo.toml b/frameworks/keyed/yew/Cargo.toml index e18ac269b..3f924cd46 100644 --- a/frameworks/keyed/yew/Cargo.toml +++ b/frameworks/keyed/yew/Cargo.toml @@ -1,23 +1,23 @@ [package] -name = "js-framework-benchmark-yew" -version = "1.0.0" authors = ["Isamu Mogi <isamu@leafytree.jp>"] edition = "2018" +name = "js-framework-benchmark-yew" +version = "1.0.0" [lib] crate-type = ["cdylib"] [dependencies] -rand = { version = "0.7.3", features = ["wasm-bindgen", "small_rng"] } +rand = {version = "0.7.3", features = ["wasm-bindgen", "small_rng"]} wasm-bindgen = "0.2.62" # UPDATE TO USE YOUR BRANCH -yew = { git = "https://github.com/yewstack/yew", branch = "master" } +yew = {git = "https://github.com/bakape/yew ", branch = "feature/opt-keyed-diff"} # UPDATE TO USE YOUR BRANCH [profile.release] -lto = true codegen-units = 1 +lto = true panic = "abort" [package.metadata.wasm-pack.profile.release] From b9dc1e7cd69675eaddea5203b717dbb9ecec0ab7 Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sat, 19 Sep 2020 12:29:41 +0300 Subject: [PATCH 02/26] local becnhmarking setup --- .gitignore | 5 +- bechmark_change.sh | 25 + .../keyed/wasm-bindgen/bundled-dist/1.js | 1 - .../57b853b60f01dd1d4d7e.module.wasm | Bin 34061 -> 0 bytes .../keyed/wasm-bindgen/bundled-dist/index.js | 1 - .../js-framework-benchmark-yew.js | 489 ------------------ .../js-framework-benchmark-yew_bg.wasm | Bin 142093 -> 0 bytes frameworks/keyed/yew/Cargo.toml | 2 +- frameworks/keyed/yew/bundled-dist/index.html | 16 - .../js-framework-benchmark-yew.js | 489 ------------------ .../js-framework-benchmark-yew_bg.wasm | Bin 142092 -> 0 bytes webdriver-ts-results/.gitignore | 1 + webdriver-ts-results/src/.gitignore | 1 + webdriver-ts-results/src/results.ts | 56 -- webdriver-ts-results/table.html | 56 -- webdriver-ts/.gitignore | 1 + webdriver-ts/results.json | 1 - 17 files changed, 33 insertions(+), 1111 deletions(-) create mode 100755 bechmark_change.sh delete mode 100644 frameworks/keyed/wasm-bindgen/bundled-dist/1.js delete mode 100644 frameworks/keyed/wasm-bindgen/bundled-dist/57b853b60f01dd1d4d7e.module.wasm delete mode 100644 frameworks/keyed/wasm-bindgen/bundled-dist/index.js delete mode 100644 frameworks/keyed/yew-baseline/bundled-dist/js-framework-benchmark-yew.js delete mode 100644 frameworks/keyed/yew-baseline/bundled-dist/js-framework-benchmark-yew_bg.wasm delete mode 100644 frameworks/keyed/yew/bundled-dist/index.html delete mode 100644 frameworks/keyed/yew/bundled-dist/js-framework-benchmark-yew.js delete mode 100644 frameworks/keyed/yew/bundled-dist/js-framework-benchmark-yew_bg.wasm create mode 100644 webdriver-ts-results/.gitignore create mode 100644 webdriver-ts-results/src/.gitignore delete mode 100644 webdriver-ts-results/src/results.ts delete mode 100644 webdriver-ts-results/table.html create mode 100644 webdriver-ts/.gitignore delete mode 100644 webdriver-ts/results.json diff --git a/.gitignore b/.gitignore index 2a8381cf9..969d3eb39 100644 --- a/.gitignore +++ b/.gitignore @@ -77,4 +77,7 @@ glimmer-*/tmp Cargo.lock # emacs -*~ \ No newline at end of file +*~ + +bundled-dist/*.js +bundled-dist/*.wasm diff --git a/bechmark_change.sh b/bechmark_change.sh new file mode 100755 index 000000000..b29478e8b --- /dev/null +++ b/bechmark_change.sh @@ -0,0 +1,25 @@ +#! /bin/bash +# Usage: ./bechmark_change.sh CHANGE_BRANCH +set -euo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ + +sed -i 's/PLACEHOLDER/'"${1/\//\\\/}"'/' frameworks/keyed/yew/Cargo.toml + +npm install -d +(cd frameworks/keyed/wasm-bindgen && + npm run build-prod) +(cd frameworks/keyed/yew && + npm install -d && + npm run build-prod) +(cd frameworks/keyed/yew-baseline && + npm install -d && + npm run build-prod) + +(cd webdriver-ts-results && + npm install -d) +(cd webdriver-ts && + npm install -d && + npm run build-prod && + npm run bench -- --headless keyed/yew keyed/yew-baseline && + npm run results) + +chromium http://localhost:8080/webdriver-ts-results/table.html diff --git a/frameworks/keyed/wasm-bindgen/bundled-dist/1.js b/frameworks/keyed/wasm-bindgen/bundled-dist/1.js deleted file mode 100644 index e1bb375a3..000000000 --- a/frameworks/keyed/wasm-bindgen/bundled-dist/1.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[,function(n,t,e){"use strict";e.r(t);var r=e(3),u=e(2);e.d(t,"main_js",(function(){return u.N})),e.d(t,"__wbindgen_object_drop_ref",(function(){return u.K})),e.d(t,"__wbg_tagName_7a365cf2774b3613",(function(){return u.B})),e.d(t,"__wbg_parentElement_14fd8001596348c2",(function(){return u.s})),e.d(t,"__wbg_getAttribute_937faad6a923ab3c",(function(){return u.j})),e.d(t,"__wbg_random_39c02e3d0f8a020f",(function(){return u.u})),e.d(t,"__wbg_cloneNode_6fbde9e171a9377e",(function(){return u.e})),e.d(t,"__wbg_firstChild_cc345cf09851e11c",(function(){return u.i})),e.d(t,"__wbg_nextSibling_f1e7154ee59f6a7d",(function(){return u.r})),e.d(t,"__wbg_settextContent_917f10f51a06bd14",(function(){return u.A})),e.d(t,"__wbg_setAttribute_1e9980589f904db6",(function(){return u.x})),e.d(t,"__wbg_appendChild_3d4ec7dbf3472d31",(function(){return u.b})),e.d(t,"__wbg_target_f6e8223f5b843ce6",(function(){return u.C})),e.d(t,"__wbg_id_2d7adf535b20f6e9",(function(){return u.n})),e.d(t,"__wbg_preventDefault_df37cc956d4ebefa",(function(){return u.t})),e.d(t,"__wbg_setclassName_f867a8bb05e9072a",(function(){return u.y})),e.d(t,"__wbg_classList_26cad35d60a907de",(function(){return u.d})),e.d(t,"__wbg_contains_6f90cb529cd138a3",(function(){return u.f})),e.d(t,"__wbindgen_object_clone_ref",(function(){return u.J})),e.d(t,"__wbg_insertBefore_e617280513985f61",(function(){return u.o})),e.d(t,"__wbg_remove_00f8ed36a23a14e5",(function(){return u.v})),e.d(t,"__wbg_instanceof_Window_17fdb5cd280d476d",(function(){return u.p})),e.d(t,"__wbg_document_c26d0f423c143e0c",(function(){return u.h})),e.d(t,"__wbg_createElement_44ab59c4ad367831",(function(){return u.g})),e.d(t,"__wbg_setinnerHTML_3eadb06031bae824",(function(){return u.z})),e.d(t,"__wbg_getElementById_df597d226f179219",(function(){return u.k})),e.d(t,"__wbg_addEventListener_0902c64e0479891b",(function(){return u.a})),e.d(t,"__wbindgen_cb_forget",(function(){return u.F})),e.d(t,"__wbindgen_cb_drop",(function(){return u.E})),e.d(t,"__wbg_self_c0d3a5923e013647",(function(){return u.w})),e.d(t,"__wbg_window_7ee6c8be3432927d",(function(){return u.D})),e.d(t,"__wbg_globalThis_c6de1d938e089cf0",(function(){return u.l})),e.d(t,"__wbg_global_c9a01ce4680907f8",(function(){return u.m})),e.d(t,"__wbindgen_is_undefined",(function(){return u.I})),e.d(t,"__wbg_newnoargs_8aad4a6554f38345",(function(){return u.q})),e.d(t,"__wbg_call_1f85aaa5836dfb23",(function(){return u.c})),e.d(t,"__wbindgen_debug_string",(function(){return u.H})),e.d(t,"__wbindgen_throw",(function(){return u.M})),e.d(t,"__wbindgen_rethrow",(function(){return u.L})),e.d(t,"__wbindgen_closure_wrapper64",(function(){return u.G})),r.e()},function(n,t,e){"use strict";(function(n,r){e.d(t,"N",(function(){return v})),e.d(t,"K",(function(){return j})),e.d(t,"B",(function(){return A})),e.d(t,"s",(function(){return T})),e.d(t,"j",(function(){return C})),e.d(t,"u",(function(){return N})),e.d(t,"e",(function(){return k})),e.d(t,"i",(function(){return L})),e.d(t,"r",(function(){return M})),e.d(t,"A",(function(){return B})),e.d(t,"x",(function(){return D})),e.d(t,"b",(function(){return I})),e.d(t,"C",(function(){return S})),e.d(t,"n",(function(){return F})),e.d(t,"t",(function(){return $})),e.d(t,"y",(function(){return J})),e.d(t,"d",(function(){return P})),e.d(t,"f",(function(){return q})),e.d(t,"J",(function(){return H})),e.d(t,"o",(function(){return z})),e.d(t,"v",(function(){return G})),e.d(t,"p",(function(){return K})),e.d(t,"h",(function(){return W})),e.d(t,"g",(function(){return U})),e.d(t,"z",(function(){return Q})),e.d(t,"k",(function(){return R})),e.d(t,"a",(function(){return V})),e.d(t,"F",(function(){return X})),e.d(t,"E",(function(){return Y})),e.d(t,"w",(function(){return Z})),e.d(t,"D",(function(){return nn})),e.d(t,"l",(function(){return tn})),e.d(t,"m",(function(){return en})),e.d(t,"I",(function(){return rn})),e.d(t,"q",(function(){return un})),e.d(t,"c",(function(){return on})),e.d(t,"H",(function(){return cn})),e.d(t,"M",(function(){return fn})),e.d(t,"L",(function(){return dn})),e.d(t,"G",(function(){return _n}));var u=e(3);const o=new Array(32).fill(void 0);function c(n){return o[n]}o.push(void 0,null,!0,!1);let i=o.length;function f(n){const t=c(n);return function(n){n<36||(o[n]=i,i=n)}(n),t}function d(n){i===o.length&&o.push(o.length+1);const t=i;return i=o[t],o[t]=n,t}let _=0,a=null;function l(){return null!==a&&a.buffer===u.g.buffer||(a=new Uint8Array(u.g.buffer)),a}let b=new("undefined"==typeof TextEncoder?(0,n.require)("util").TextEncoder:TextEncoder)("utf-8");const s="function"==typeof b.encodeInto?function(n,t){return b.encodeInto(n,t)}:function(n,t){const e=b.encode(n);return t.set(e),{read:n.length,written:e.length}};function g(n,t,e){if(void 0===e){const e=b.encode(n),r=t(e.length);return l().subarray(r,r+e.length).set(e),_=e.length,r}let r=n.length,u=t(r);const o=l();let c=0;for(;c<r;c++){const t=n.charCodeAt(c);if(t>127)break;o[u+c]=t}if(c!==r){0!==c&&(n=n.slice(c)),u=e(u,r,r=c+3*n.length);const t=l().subarray(u+c,u+r);c+=s(n,t).written}return _=c,u}let w=null;function h(){return null!==w&&w.buffer===u.g.buffer||(w=new Int32Array(u.g.buffer)),w}let p=new("undefined"==typeof TextDecoder?(0,n.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function y(n,t){return p.decode(l().subarray(n,n+t))}function m(n,t,e){u.h(n,t,d(e))}function v(){u.f()}function x(n){return function(){try{return n.apply(this,arguments)}catch(n){u.a(d(n))}}}function E(n){return null==n}p.decode();const j=function(n){f(n)},A=function(n,t){var e=g(c(t).tagName,u.c,u.d),r=_;h()[n/4+1]=r,h()[n/4+0]=e},T=function(n){var t=c(n).parentElement;return E(t)?0:d(t)},C=function(n,t,e,r){var o=c(t).getAttribute(y(e,r)),i=E(o)?0:g(o,u.c,u.d),f=_;h()[n/4+1]=f,h()[n/4+0]=i},N="function"==typeof Math.random?Math.random:(O="Math.random",()=>{throw new Error(O+" is not defined")});var O;const k=x((function(n,t){return d(c(n).cloneNode(0!==t))})),L=function(n){var t=c(n).firstChild;return E(t)?0:d(t)},M=function(n){var t=c(n).nextSibling;return E(t)?0:d(t)},B=function(n,t,e){c(n).textContent=0===t?void 0:y(t,e)},D=x((function(n,t,e,r,u){c(n).setAttribute(y(t,e),y(r,u))})),I=x((function(n,t){return d(c(n).appendChild(c(t)))})),S=function(n){var t=c(n).target;return E(t)?0:d(t)},F=function(n,t){var e=g(c(t).id,u.c,u.d),r=_;h()[n/4+1]=r,h()[n/4+0]=e},$=function(n){c(n).preventDefault()},J=function(n,t,e){c(n).className=y(t,e)},P=function(n){return d(c(n).classList)},q=function(n,t,e){return c(n).contains(y(t,e))},H=function(n){return d(c(n))},z=x((function(n,t,e){return d(c(n).insertBefore(c(t),c(e)))})),G=function(n){c(n).remove()},K=function(n){return c(n)instanceof Window},W=function(n){var t=c(n).document;return E(t)?0:d(t)},U=x((function(n,t,e){return d(c(n).createElement(y(t,e)))})),Q=function(n,t,e){c(n).innerHTML=y(t,e)},R=function(n,t,e){var r=c(n).getElementById(y(t,e));return E(r)?0:d(r)},V=x((function(n,t,e,r){c(n).addEventListener(y(t,e),c(r))})),X=function(n){f(n)},Y=function(n){const t=f(n).original;if(1==t.cnt--)return t.a=0,!0;return!1},Z=x((function(){return d(self.self)})),nn=x((function(){return d(window.window)})),tn=x((function(){return d(globalThis.globalThis)})),en=x((function(){return d(r.global)})),rn=function(n){return void 0===c(n)},un=function(n,t){return d(new Function(y(n,t)))},on=x((function(n,t){return d(c(n).call(c(t)))})),cn=function(n,t){var e=g(function n(t){const e=typeof t;if("number"==e||"boolean"==e||null==t)return""+t;if("string"==e)return`"${t}"`;if("symbol"==e){const n=t.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==e){const n=t.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(t)){const e=t.length;let r="[";e>0&&(r+=n(t[0]));for(let u=1;u<e;u++)r+=", "+n(t[u]);return r+="]",r}const r=/\[object ([^\]]+)\]/.exec(toString.call(t));let u;if(!(r.length>1))return toString.call(t);if(u=r[1],"Object"==u)try{return"Object("+JSON.stringify(t)+")"}catch(n){return"Object"}return t instanceof Error?`${t.name}: ${t.message}\n${t.stack}`:u}(c(t)),u.c,u.d),r=_;h()[n/4+1]=r,h()[n/4+0]=e},fn=function(n,t){throw new Error(y(n,t))},dn=function(n){throw f(n)},_n=function(n,t,e){return d(function(n,t,e,r){const o={a:n,b:t,cnt:1},c=(...n)=>{o.cnt++;const t=o.a;o.a=0;try{return r(t,o.b,...n)}finally{0==--o.cnt?u.b.get(e)(t,o.b):o.a=t}};return c.original=o,c}(n,t,11,m))}}).call(this,e(4)(n),e(5))},function(n,t,e){"use strict";var r=e.w[n.i];n.exports=r;e(2);r.i()},function(n,t){n.exports=function(n){if(!n.webpackPolyfill){var t=Object.create(n);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(n,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(n){"object"==typeof window&&(e=window)}n.exports=e}]]); \ No newline at end of file diff --git a/frameworks/keyed/wasm-bindgen/bundled-dist/57b853b60f01dd1d4d7e.module.wasm b/frameworks/keyed/wasm-bindgen/bundled-dist/57b853b60f01dd1d4d7e.module.wasm deleted file mode 100644 index d634f0e515fb607754d266f3b23ac16d50dd8c64..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 34061 zcmdtLd4ODHo%egT+PbQfN(iL0ken(4bja3gb$39>i6jsL1X<lX)m_y|FX>LIs}nK; z=|FH$QDNkLWf&J=7(sDC2bCF7;*1N<pyC~7WJa!{mzkG)FBdbfIIlCJc|YIhoT{#F zf;x`=a|6}qJp1qYJ-_{V&N)_ba*u6Umi<AyWv6@S&>{QKPN(+Q+G!uMOs?)I@u)yf zOc$;eS(X*%avNr=gX^xduiF_nwZiJxN6oI&)jMR8-XW8Us?jVFHZUOEpudcH1A|=0 zAkOFJo!Pv8!|-^id~N^0uJt36OZ)o|43OSc9`BzR7%2}{`%9IHz5SK)kmb&<x<XZV z^;e6#E-mgU_xBV#3*Cc59X&l=1D%ETPRp5HeN|X}Z?RGyuWlJD@8Qzl-ZfO}ZEI`q z?kjY5^$vDevDuAI3mfe!SA%M`GCVL<E%*0z_6!w^r9!c<qq8{BIcUXaw>dRzQz?#@ zCie7q_6@dmlsijpL%qeej<zA|l-afYu=e2C#CZAAiBh@0Ff>pq_m$gw+KY_TQ?~5c z4RT?Fq2bD8^|iZ)$4dQ!gPmQ>ysfXdyS?1rJ~($0`LM-!`P%9g!vkZ(<GcEY+RHud z-CgB!ci&K<*i)L@<n*w~WVu?U)oUlltHM@ad(TjN+fa9Vv8^yrYVWeV*`P((qSXwx z+RJ@?y=~pSeM5b1U8RA7m6+Wo0<O4sZ+W~F&Zo1~RUYgq4GeX5^>mav+vj2+LU6TM zVO{!%3gzC8j?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NQQMv%gd3+ANdZ*lLYk6T6B`u+1h&b;(qf0Lw(hs>R%n zU{A`f+vw|`Wqq8qWW>8LK4nkV?A5;}Kp=Z{Zs&W8Ra~2KNet_0+RD!q-!}Ln#uki% zNaa0)yDL=o-{$*olWdY7lHrH>Xl(D(xXP|vOQFh?uixqX1kaiL{OhkD#gyH$XK(f3 z8_Si6%kZAc+s4D0Z5t<eG+a7=c-L@sN8~15g>z&4rEu<z{c3Gi^E-=Q7-q!F8J-+0 zjvEtsaIidy;qG6#TcJMx;tAqc{uNci5WC7@l*%tn=|kB*{y}jFRQSXP@I?m|xTMcU zKWh!?mltKNJzRgxPqC8UU+iwOTH3((w*h+tQOu%3htb!zG4c0Lj1q;bln19O3O0@5 zQbv$Z98{b&jBEyG`UYvWxZRGun%La9oxk(aiScqRZuczlT=}Ha(9nFY5zPo7oOAqU z@Fjvto)Y>hS*}#IE}Fbralh8pS5}4rqB`ME?gqD`x-0r77FY3WJ}~t!q}>=-(b4Z0 zmxhG*6bCC4leIwTO?C=@y)-pQ?Ab|<5tf>QCT#C=V#!v9B2iAcv~J*_8&iCF@bvce zU4`{+>!M(^-#SztkoQ|2@Ntpb*0mMZwe_uz9{~4Llkv9o?Op5JG6#y2d)5s=?7Pb2 Y3)|LrtS@x<t)<?+LRVLzTw49V0lt$E2><{9 diff --git a/frameworks/keyed/wasm-bindgen/bundled-dist/index.js b/frameworks/keyed/wasm-bindgen/bundled-dist/index.js deleted file mode 100644 index 91844088c..000000000 --- a/frameworks/keyed/wasm-bindgen/bundled-dist/index.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function n(n){for(var t,o,u=n[0],_=n[1],i=0,c=[];i<u.length;i++)o=u[i],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&c.push(r[o][0]),r[o]=0;for(t in _)Object.prototype.hasOwnProperty.call(_,t)&&(e[t]=_[t]);for(s&&s(n);c.length;)c.shift()()}var t={},r={0:0};var o={};var u={3:function(){return{"./index_bg.js":{__wbindgen_object_drop_ref:function(e){return t[2].exports.K(e)},__wbg_tagName_7a365cf2774b3613:function(e,n){return t[2].exports.B(e,n)},__wbg_parentElement_14fd8001596348c2:function(e){return t[2].exports.s(e)},__wbg_getAttribute_937faad6a923ab3c:function(e,n,r,o){return t[2].exports.j(e,n,r,o)},__wbg_random_39c02e3d0f8a020f:function(){return t[2].exports.u()},__wbg_cloneNode_6fbde9e171a9377e:function(e,n){return t[2].exports.e(e,n)},__wbg_firstChild_cc345cf09851e11c:function(e){return t[2].exports.i(e)},__wbg_nextSibling_f1e7154ee59f6a7d:function(e){return t[2].exports.r(e)},__wbg_settextContent_917f10f51a06bd14:function(e,n,r){return t[2].exports.A(e,n,r)},__wbg_setAttribute_1e9980589f904db6:function(e,n,r,o,u){return t[2].exports.x(e,n,r,o,u)},__wbg_appendChild_3d4ec7dbf3472d31:function(e,n){return t[2].exports.b(e,n)},__wbg_target_f6e8223f5b843ce6:function(e){return t[2].exports.C(e)},__wbg_id_2d7adf535b20f6e9:function(e,n){return t[2].exports.n(e,n)},__wbg_preventDefault_df37cc956d4ebefa:function(e){return t[2].exports.t(e)},__wbg_setclassName_f867a8bb05e9072a:function(e,n,r){return t[2].exports.y(e,n,r)},__wbg_classList_26cad35d60a907de:function(e){return t[2].exports.d(e)},__wbg_contains_6f90cb529cd138a3:function(e,n,r){return t[2].exports.f(e,n,r)},__wbindgen_object_clone_ref:function(e){return t[2].exports.J(e)},__wbg_insertBefore_e617280513985f61:function(e,n,r){return t[2].exports.o(e,n,r)},__wbg_remove_00f8ed36a23a14e5:function(e){return t[2].exports.v(e)},__wbg_instanceof_Window_17fdb5cd280d476d:function(e){return t[2].exports.p(e)},__wbg_document_c26d0f423c143e0c:function(e){return t[2].exports.h(e)},__wbg_createElement_44ab59c4ad367831:function(e,n,r){return t[2].exports.g(e,n,r)},__wbg_setinnerHTML_3eadb06031bae824:function(e,n,r){return t[2].exports.z(e,n,r)},__wbg_getElementById_df597d226f179219:function(e,n,r){return t[2].exports.k(e,n,r)},__wbg_addEventListener_0902c64e0479891b:function(e,n,r,o){return t[2].exports.a(e,n,r,o)},__wbindgen_cb_forget:function(e){return t[2].exports.F(e)},__wbindgen_cb_drop:function(e){return t[2].exports.E(e)},__wbg_self_c0d3a5923e013647:function(){return t[2].exports.w()},__wbg_window_7ee6c8be3432927d:function(){return t[2].exports.D()},__wbg_globalThis_c6de1d938e089cf0:function(){return t[2].exports.l()},__wbg_global_c9a01ce4680907f8:function(){return t[2].exports.m()},__wbindgen_is_undefined:function(e){return t[2].exports.I(e)},__wbg_newnoargs_8aad4a6554f38345:function(e,n){return t[2].exports.q(e,n)},__wbg_call_1f85aaa5836dfb23:function(e,n){return t[2].exports.c(e,n)},__wbindgen_debug_string:function(e,n){return t[2].exports.H(e,n)},__wbindgen_throw:function(e,n){return t[2].exports.M(e,n)},__wbindgen_rethrow:function(e){return t[2].exports.L(e)},__wbindgen_closure_wrapper64:function(e,n,r){return t[2].exports.G(e,n,r)}}}}};function _(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,_),r.l=!0,r.exports}_.e=function(e){var n=[],t=r[e];if(0!==t)if(t)n.push(t[2]);else{var i=new Promise((function(n,o){t=r[e]=[n,o]}));n.push(t[2]=i);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,_.nc&&f.setAttribute("nonce",_.nc),f.src=function(e){return _.p+""+({}[e]||e)+".js"}(e);var s=new Error;c=function(n){f.onerror=f.onload=null,clearTimeout(a);var t=r[e];if(0!==t){if(t){var o=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+u+")",s.name="ChunkLoadError",s.type=o,s.request=u,t[1](s)}r[e]=void 0}};var a=setTimeout((function(){c({type:"timeout",target:f})}),12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return({1:[3]}[e]||[]).forEach((function(e){var t=o[e];if(t)n.push(t);else{var r,i=u[e](),c=fetch(_.p+""+{3:"57b853b60f01dd1d4d7e"}[e]+".module.wasm");if(i instanceof Promise&&"function"==typeof WebAssembly.compileStreaming)r=Promise.all([WebAssembly.compileStreaming(c),i]).then((function(e){return WebAssembly.instantiate(e[0],e[1])}));else if("function"==typeof WebAssembly.instantiateStreaming)r=WebAssembly.instantiateStreaming(c,i);else{r=c.then((function(e){return e.arrayBuffer()})).then((function(e){return WebAssembly.instantiate(e,i)}))}n.push(o[e]=r.then((function(n){return _.w[e]=(n.instance||n).exports})))}})),Promise.all(n)},_.m=e,_.c=t,_.d=function(e,n,t){_.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},_.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_.t=function(e,n){if(1&n&&(e=_(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(_.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)_.d(t,r,function(n){return e[n]}.bind(null,r));return t},_.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return _.d(n,"a",n),n},_.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},_.p="bundled-dist/",_.oe=function(e){throw console.error(e),e},_.w={};var i=window.webpackJsonp=window.webpackJsonp||[],c=i.push.bind(i);i.push=n,i=i.slice();for(var f=0;f<i.length;f++)n(i[f]);var s=c;_(_.s=0)}([function(e,n,t){t.e(1).then(t.bind(null,1)).catch(console.error)}]); \ No newline at end of file diff --git a/frameworks/keyed/yew-baseline/bundled-dist/js-framework-benchmark-yew.js b/frameworks/keyed/yew-baseline/bundled-dist/js-framework-benchmark-yew.js deleted file mode 100644 index 2e37df29c..000000000 --- a/frameworks/keyed/yew-baseline/bundled-dist/js-framework-benchmark-yew.js +++ /dev/null @@ -1,489 +0,0 @@ - -let wasm; - -const heap = new Array(32).fill(undefined); - -heap.push(undefined, null, true, false); - -function getObject(idx) { return heap[idx]; } - -let heap_next = heap.length; - -function dropObject(idx) { - if (idx < 36) return; - heap[idx] = heap_next; - heap_next = idx; -} - -function takeObject(idx) { - const ret = getObject(idx); - dropObject(idx); - return ret; -} - -function debugString(val) { - // primitive types - const type = typeof val; - if (type == 'number' || type == 'boolean' || val == null) { - return `${val}`; - } - if (type == 'string') { - return `"${val}"`; - } - if (type == 'symbol') { - const description = val.description; - if (description == null) { - return 'Symbol'; - } else { - return `Symbol(${description})`; - } - } - if (type == 'function') { - const name = val.name; - if (typeof name == 'string' && name.length > 0) { - return `Function(${name})`; - } else { - return 'Function'; - } - } - // objects - if (Array.isArray(val)) { - const length = val.length; - let debug = '['; - if (length > 0) { - debug += debugString(val[0]); - } - for(let i = 1; i < length; i++) { - debug += ', ' + debugString(val[i]); - } - debug += ']'; - return debug; - } - // Test for built-in - const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); - let className; - if (builtInMatches.length > 1) { - className = builtInMatches[1]; - } else { - // Failed to match the standard '[object ClassName]' - return toString.call(val); - } - if (className == 'Object') { - // we're a user defined class or Object - // JSON.stringify avoids problems with cycles, and is generally much - // easier than looping through ownProperties of `val`. - try { - return 'Object(' + JSON.stringify(val) + ')'; - } catch (_) { - return 'Object'; - } - } - // errors - if (val instanceof Error) { - return `${val.name}: ${val.message}\n${val.stack}`; - } - // TODO we could test for more things here, like `Set`s and `Map`s. - return className; -} - -let WASM_VECTOR_LEN = 0; - -let cachegetUint8Memory0 = null; -function getUint8Memory0() { - if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) { - cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer); - } - return cachegetUint8Memory0; -} - -let cachedTextEncoder = new TextEncoder('utf-8'); - -const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' - ? function (arg, view) { - return cachedTextEncoder.encodeInto(arg, view); -} - : function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; -}); - -function passStringToWasm0(arg, malloc, realloc) { - - if (realloc === undefined) { - const buf = cachedTextEncoder.encode(arg); - const ptr = malloc(buf.length); - getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); - WASM_VECTOR_LEN = buf.length; - return ptr; - } - - let len = arg.length; - let ptr = malloc(len); - - const mem = getUint8Memory0(); - - let offset = 0; - - for (; offset < len; offset++) { - const code = arg.charCodeAt(offset); - if (code > 0x7F) break; - mem[ptr + offset] = code; - } - - if (offset !== len) { - if (offset !== 0) { - arg = arg.slice(offset); - } - ptr = realloc(ptr, len, len = offset + arg.length * 3); - const view = getUint8Memory0().subarray(ptr + offset, ptr + len); - const ret = encodeString(arg, view); - - offset += ret.written; - } - - WASM_VECTOR_LEN = offset; - return ptr; -} - -let cachegetInt32Memory0 = null; -function getInt32Memory0() { - if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) { - cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer); - } - return cachegetInt32Memory0; -} - -let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); - -cachedTextDecoder.decode(); - -function getStringFromWasm0(ptr, len) { - return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); -} - -function addHeapObject(obj) { - if (heap_next === heap.length) heap.push(heap.length + 1); - const idx = heap_next; - heap_next = heap[idx]; - - heap[idx] = obj; - return idx; -} - -function makeMutClosure(arg0, arg1, dtor, f) { - const state = { a: arg0, b: arg1, cnt: 1 }; - const real = (...args) => { - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - const a = state.a; - state.a = 0; - try { - return f(a, state.b, ...args); - } finally { - if (--state.cnt === 0) wasm.__wbindgen_export_2.get(dtor)(a, state.b); - else state.a = a; - } - }; - real.original = state; - return real; -} - -let stack_pointer = 32; - -function addBorrowedObject(obj) { - if (stack_pointer == 1) throw new Error('out of js stack'); - heap[--stack_pointer] = obj; - return stack_pointer; -} -function __wbg_adapter_16(arg0, arg1, arg2) { - try { - wasm.wasm_bindgen__convert__closures__invoke1_mut_ref__hcd644a1bc0bc2463(arg0, arg1, addBorrowedObject(arg2)); - } finally { - heap[stack_pointer++] = undefined; - } -} - -/** -*/ -export function start() { - wasm.start(); -} - -function handleError(f) { - return function () { - try { - return f.apply(this, arguments); - - } catch (e) { - wasm.__wbindgen_exn_store(addHeapObject(e)); - } - }; -} - -function getArrayU8FromWasm0(ptr, len) { - return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len); -} - -function isLikeNone(x) { - return x === undefined || x === null; -} - -async function load(module, imports) { - if (typeof Response === 'function' && module instanceof Response) { - - if (typeof WebAssembly.instantiateStreaming === 'function') { - try { - return await WebAssembly.instantiateStreaming(module, imports); - - } catch (e) { - if (module.headers.get('Content-Type') != 'application/wasm') { - console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e); - - } else { - throw e; - } - } - } - - const bytes = await module.arrayBuffer(); - return await WebAssembly.instantiate(bytes, imports); - - } else { - - const instance = await WebAssembly.instantiate(module, imports); - - if (instance instanceof WebAssembly.Instance) { - return { instance, module }; - - } else { - return instance; - } - } -} - -async function init(input) { - if (typeof input === 'undefined') { - input = import.meta.url.replace(/\.js$/, '_bg.wasm'); - } - const imports = {}; - imports.wbg = {}; - imports.wbg.__wbindgen_object_drop_ref = function(arg0) { - takeObject(arg0); - }; - imports.wbg.__wbg_removeEventListener_003b13762a00969d = handleError(function(arg0, arg1, arg2, arg3, arg4) { - getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), arg4 !== 0); - }); - imports.wbg.__wbindgen_cb_drop = function(arg0) { - const obj = takeObject(arg0).original; - if (obj.cnt-- == 1) { - obj.a = 0; - return true; - } - var ret = false; - return ret; - }; - imports.wbg.__wbg_self_1b7a39e3a92c949c = handleError(function() { - var ret = self.self; - return addHeapObject(ret); - }); - imports.wbg.__wbg_require_604837428532a733 = function(arg0, arg1) { - var ret = require(getStringFromWasm0(arg0, arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_crypto_968f1772287e2df0 = function(arg0) { - var ret = getObject(arg0).crypto; - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_is_undefined = function(arg0) { - var ret = getObject(arg0) === undefined; - return ret; - }; - imports.wbg.__wbg_getRandomValues_a3d34b4fee3c2869 = function(arg0) { - var ret = getObject(arg0).getRandomValues; - return addHeapObject(ret); - }; - imports.wbg.__wbg_randomFillSync_d5bd2d655fdf256a = function(arg0, arg1, arg2) { - getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2)); - }; - imports.wbg.__wbg_getRandomValues_f5e14ab7ac8e995d = function(arg0, arg1, arg2) { - getObject(arg0).getRandomValues(getArrayU8FromWasm0(arg1, arg2)); - }; - imports.wbg.__wbg_document_c26d0f423c143e0c = function(arg0) { - var ret = getObject(arg0).document; - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; - imports.wbg.__wbg_querySelector_9cf023db23245913 = handleError(function(arg0, arg1, arg2) { - var ret = getObject(arg0).querySelector(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }); - imports.wbg.__wbg_lastChild_4add591e64b65966 = function(arg0) { - var ret = getObject(arg0).lastChild; - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; - imports.wbg.__wbg_removeChild_d8035999cf171601 = handleError(function(arg0, arg1) { - var ret = getObject(arg0).removeChild(getObject(arg1)); - return addHeapObject(ret); - }); - imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { - var ret = debugString(getObject(arg1)); - var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbindgen_throw = function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); - }; - imports.wbg.__wbg_self_c0d3a5923e013647 = handleError(function() { - var ret = self.self; - return addHeapObject(ret); - }); - imports.wbg.__wbg_window_7ee6c8be3432927d = handleError(function() { - var ret = window.window; - return addHeapObject(ret); - }); - imports.wbg.__wbg_globalThis_c6de1d938e089cf0 = handleError(function() { - var ret = globalThis.globalThis; - return addHeapObject(ret); - }); - imports.wbg.__wbg_global_c9a01ce4680907f8 = handleError(function() { - var ret = global.global; - return addHeapObject(ret); - }); - imports.wbg.__wbg_newnoargs_8aad4a6554f38345 = function(arg0, arg1) { - var ret = new Function(getStringFromWasm0(arg0, arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_call_1f85aaa5836dfb23 = handleError(function(arg0, arg1) { - var ret = getObject(arg0).call(getObject(arg1)); - return addHeapObject(ret); - }); - imports.wbg.__wbindgen_object_clone_ref = function(arg0) { - var ret = getObject(arg0); - return addHeapObject(ret); - }; - imports.wbg.__wbg_instanceof_Window_17fdb5cd280d476d = function(arg0) { - var ret = getObject(arg0) instanceof Window; - return ret; - }; - imports.wbg.__wbg_appendChild_3d4ec7dbf3472d31 = handleError(function(arg0, arg1) { - var ret = getObject(arg0).appendChild(getObject(arg1)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_insertBefore_e617280513985f61 = handleError(function(arg0, arg1, arg2) { - var ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_instanceof_HtmlInputElement_9e9349535b986dc4 = function(arg0) { - var ret = getObject(arg0) instanceof HTMLInputElement; - return ret; - }; - imports.wbg.__wbg_value_c2fd875fedc14f57 = function(arg0, arg1) { - var ret = getObject(arg1).value; - var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbg_instanceof_HtmlTextAreaElement_af4dc0571f10534b = function(arg0) { - var ret = getObject(arg0) instanceof HTMLTextAreaElement; - return ret; - }; - imports.wbg.__wbg_value_7ffe1d058e13aa75 = function(arg0, arg1) { - var ret = getObject(arg1).value; - var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbg_createTextNode_756ffaca4044be42 = function(arg0, arg1, arg2) { - var ret = getObject(arg0).createTextNode(getStringFromWasm0(arg1, arg2)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_setnodeValue_ab4d09a5c9b583a3 = function(arg0, arg1, arg2) { - getObject(arg0).nodeValue = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_is_44606c0a00d7753b = function(arg0, arg1) { - var ret = Object.is(getObject(arg0), getObject(arg1)); - return ret; - }; - imports.wbg.__wbg_setAttribute_1e9980589f904db6 = handleError(function(arg0, arg1, arg2, arg3, arg4) { - getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }); - imports.wbg.__wbg_removeAttribute_ab1ad95ea7761680 = handleError(function(arg0, arg1, arg2) { - getObject(arg0).removeAttribute(getStringFromWasm0(arg1, arg2)); - }); - imports.wbg.__wbg_instanceof_HtmlButtonElement_0c660cd977827d1e = function(arg0) { - var ret = getObject(arg0) instanceof HTMLButtonElement; - return ret; - }; - imports.wbg.__wbg_settype_8b416ca7e828acb0 = function(arg0, arg1, arg2) { - getObject(arg0).type = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_settype_ccacb981913395e5 = function(arg0, arg1, arg2) { - getObject(arg0).type = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_setvalue_eb5415236467cd34 = function(arg0, arg1, arg2) { - getObject(arg0).value = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_setchecked_795fe0b967d5d996 = function(arg0, arg1) { - getObject(arg0).checked = arg1 !== 0; - }; - imports.wbg.__wbg_setvalue_8bb8ffbd27a7ffda = function(arg0, arg1, arg2) { - getObject(arg0).value = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_namespaceURI_35b1c4eab9150629 = function(arg0, arg1) { - var ret = getObject(arg1).namespaceURI; - var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbg_createElement_44ab59c4ad367831 = handleError(function(arg0, arg1, arg2) { - var ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_createElementNS_74ac818c77233fe4 = handleError(function(arg0, arg1, arg2, arg3, arg4) { - var ret = getObject(arg0).createElementNS(arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_new_d6227c3c833572bb = function() { - var ret = new Object(); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - var ret = getStringFromWasm0(arg0, arg1); - return addHeapObject(ret); - }; - imports.wbg.__wbg_set_6a666216929b0387 = handleError(function(arg0, arg1, arg2) { - var ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2)); - return ret; - }); - imports.wbg.__wbg_addEventListener_3526086a053a131e = handleError(function(arg0, arg1, arg2, arg3, arg4) { - getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4)); - }); - imports.wbg.__wbindgen_closure_wrapper1301 = function(arg0, arg1, arg2) { - var ret = makeMutClosure(arg0, arg1, 27, __wbg_adapter_16); - return addHeapObject(ret); - }; - - if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) { - input = fetch(input); - } - - const { instance, module } = await load(await input, imports); - - wasm = instance.exports; - init.__wbindgen_wasm_module = module; - wasm.__wbindgen_start(); - return wasm; -} - -export default init; - diff --git a/frameworks/keyed/yew-baseline/bundled-dist/js-framework-benchmark-yew_bg.wasm b/frameworks/keyed/yew-baseline/bundled-dist/js-framework-benchmark-yew_bg.wasm deleted file mode 100644 index 30488709764dd4fa7c56ed47200fdda48a1e0f9a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 142093 zcmeFa3z%J3R^NFZ_f_}S<Cau<Sd#5?PYY5e?vIkHR8?v^M5l;fal5;LPR5h;j9jWJ zSuV-4C6#UUAS^-KjXE(w&1b-q@gyQKu`_W8g_vN#<kK)_BEaNRG6qa=K+Jf)F%v_a zv`Lh7L(lKO_CDvHTe`B#k8a3>R=dtU`|PtHYp?a+Yp=ETKEeF4d&3|I!tW0^+!dWX z8Qc}}A3wsAcf}`lufN=c`cvUINdZ5r`f1t2hwlmkf6s%OJ>ZFDCLw<K;gjUyh40o2 zTu<m)akmwB=ijpIsxSKN$d34-eRpr!yZ51e_Z(ild+G4r`}Qp_Ev)QaJbK^#dyg*d z4?<=5CS|yr`+M(uaOtK8mkzId?4DyQONW<^?wy#J+_z(LW_suR#Ki9D-HSm(FRUw- zxUkPk3#xjs)s=K?>CpbYJNC`YPwrltoZr23VfWPTg`ln+*X4B`dElO-OM9m$re-H+ zrgqNmn%p@*GdUSV%5<&Ev~ct@_pjWyclY${{v9(jJ9o~`EbUy}KjEs{RBFRL$M!yO zcyVd}J%^VT-P3P$CEUHV@*VSs7w^0GFV7!(VCmT2`N_q}seM!XmzE|McFs=kcA3Ay zx5;wee9xgn-}#xt3wsxL?OWWrIK6Av{>A+}cTLX+v6^<3g7@!Q+A%dxj~8Z_cJJP` z=rUjL3SPW#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XWNpy z&;w6mPfE2$2%TZAJB<zQd{cx}tOgQ+zYsMM{@My}F~bn_EF$3Qa36K*^9l>cU>r(n zIhA^Teb9cxm|<Up;gYNRXJF$d!W!UWC^{Rdb;g(C(NEc+h!eyuyM5=kno#Ky-xN=s ztD*jF`<0-te}P+>8lb5Jfe*^*V*B(N?Q`kQn3v0Y*>vY4qZwHZijug3qCp4CrnC8U o_U`D}7Q3<?p3Qn=IWIfVtu|c9dgESx+>Deb@8)y4d{7?!36fF8v;Y7A diff --git a/frameworks/keyed/yew/Cargo.toml b/frameworks/keyed/yew/Cargo.toml index 3f924cd46..f211b5362 100644 --- a/frameworks/keyed/yew/Cargo.toml +++ b/frameworks/keyed/yew/Cargo.toml @@ -12,7 +12,7 @@ rand = {version = "0.7.3", features = ["wasm-bindgen", "small_rng"]} wasm-bindgen = "0.2.62" # UPDATE TO USE YOUR BRANCH -yew = {git = "https://github.com/bakape/yew ", branch = "feature/opt-keyed-diff"} +yew = {git = "https://github.com/bakape/yew ", branch = "PLACEHOLDER"} # UPDATE TO USE YOUR BRANCH [profile.release] diff --git a/frameworks/keyed/yew/bundled-dist/index.html b/frameworks/keyed/yew/bundled-dist/index.html deleted file mode 100644 index 7f4868a86..000000000 --- a/frameworks/keyed/yew/bundled-dist/index.html +++ /dev/null @@ -1,16 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="UTF-8"> - <title>Yew</title> - <link href="/css/currentStyle.css" rel="stylesheet"/> - <base href="bundled-dist/"></base> - </head> - <body> - <div id='main'></div> - <script type="module"> - import init from './js-framework-benchmark-yew.js'; - init('./js-framework-benchmark-yew_bg.wasm'); - </script> - </body> -</html> diff --git a/frameworks/keyed/yew/bundled-dist/js-framework-benchmark-yew.js b/frameworks/keyed/yew/bundled-dist/js-framework-benchmark-yew.js deleted file mode 100644 index 759dec650..000000000 --- a/frameworks/keyed/yew/bundled-dist/js-framework-benchmark-yew.js +++ /dev/null @@ -1,489 +0,0 @@ - -let wasm; - -const heap = new Array(32).fill(undefined); - -heap.push(undefined, null, true, false); - -function getObject(idx) { return heap[idx]; } - -let heap_next = heap.length; - -function dropObject(idx) { - if (idx < 36) return; - heap[idx] = heap_next; - heap_next = idx; -} - -function takeObject(idx) { - const ret = getObject(idx); - dropObject(idx); - return ret; -} - -function debugString(val) { - // primitive types - const type = typeof val; - if (type == 'number' || type == 'boolean' || val == null) { - return `${val}`; - } - if (type == 'string') { - return `"${val}"`; - } - if (type == 'symbol') { - const description = val.description; - if (description == null) { - return 'Symbol'; - } else { - return `Symbol(${description})`; - } - } - if (type == 'function') { - const name = val.name; - if (typeof name == 'string' && name.length > 0) { - return `Function(${name})`; - } else { - return 'Function'; - } - } - // objects - if (Array.isArray(val)) { - const length = val.length; - let debug = '['; - if (length > 0) { - debug += debugString(val[0]); - } - for(let i = 1; i < length; i++) { - debug += ', ' + debugString(val[i]); - } - debug += ']'; - return debug; - } - // Test for built-in - const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); - let className; - if (builtInMatches.length > 1) { - className = builtInMatches[1]; - } else { - // Failed to match the standard '[object ClassName]' - return toString.call(val); - } - if (className == 'Object') { - // we're a user defined class or Object - // JSON.stringify avoids problems with cycles, and is generally much - // easier than looping through ownProperties of `val`. - try { - return 'Object(' + JSON.stringify(val) + ')'; - } catch (_) { - return 'Object'; - } - } - // errors - if (val instanceof Error) { - return `${val.name}: ${val.message}\n${val.stack}`; - } - // TODO we could test for more things here, like `Set`s and `Map`s. - return className; -} - -let WASM_VECTOR_LEN = 0; - -let cachegetUint8Memory0 = null; -function getUint8Memory0() { - if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) { - cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer); - } - return cachegetUint8Memory0; -} - -let cachedTextEncoder = new TextEncoder('utf-8'); - -const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' - ? function (arg, view) { - return cachedTextEncoder.encodeInto(arg, view); -} - : function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; -}); - -function passStringToWasm0(arg, malloc, realloc) { - - if (realloc === undefined) { - const buf = cachedTextEncoder.encode(arg); - const ptr = malloc(buf.length); - getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); - WASM_VECTOR_LEN = buf.length; - return ptr; - } - - let len = arg.length; - let ptr = malloc(len); - - const mem = getUint8Memory0(); - - let offset = 0; - - for (; offset < len; offset++) { - const code = arg.charCodeAt(offset); - if (code > 0x7F) break; - mem[ptr + offset] = code; - } - - if (offset !== len) { - if (offset !== 0) { - arg = arg.slice(offset); - } - ptr = realloc(ptr, len, len = offset + arg.length * 3); - const view = getUint8Memory0().subarray(ptr + offset, ptr + len); - const ret = encodeString(arg, view); - - offset += ret.written; - } - - WASM_VECTOR_LEN = offset; - return ptr; -} - -let cachegetInt32Memory0 = null; -function getInt32Memory0() { - if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) { - cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer); - } - return cachegetInt32Memory0; -} - -let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); - -cachedTextDecoder.decode(); - -function getStringFromWasm0(ptr, len) { - return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); -} - -function addHeapObject(obj) { - if (heap_next === heap.length) heap.push(heap.length + 1); - const idx = heap_next; - heap_next = heap[idx]; - - heap[idx] = obj; - return idx; -} - -function makeMutClosure(arg0, arg1, dtor, f) { - const state = { a: arg0, b: arg1, cnt: 1 }; - const real = (...args) => { - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - const a = state.a; - state.a = 0; - try { - return f(a, state.b, ...args); - } finally { - if (--state.cnt === 0) wasm.__wbindgen_export_2.get(dtor)(a, state.b); - else state.a = a; - } - }; - real.original = state; - return real; -} - -let stack_pointer = 32; - -function addBorrowedObject(obj) { - if (stack_pointer == 1) throw new Error('out of js stack'); - heap[--stack_pointer] = obj; - return stack_pointer; -} -function __wbg_adapter_16(arg0, arg1, arg2) { - try { - wasm.wasm_bindgen__convert__closures__invoke1_mut_ref__h2644d8b2cde4a809(arg0, arg1, addBorrowedObject(arg2)); - } finally { - heap[stack_pointer++] = undefined; - } -} - -/** -*/ -export function start() { - wasm.start(); -} - -function handleError(f) { - return function () { - try { - return f.apply(this, arguments); - - } catch (e) { - wasm.__wbindgen_exn_store(addHeapObject(e)); - } - }; -} - -function getArrayU8FromWasm0(ptr, len) { - return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len); -} - -function isLikeNone(x) { - return x === undefined || x === null; -} - -async function load(module, imports) { - if (typeof Response === 'function' && module instanceof Response) { - - if (typeof WebAssembly.instantiateStreaming === 'function') { - try { - return await WebAssembly.instantiateStreaming(module, imports); - - } catch (e) { - if (module.headers.get('Content-Type') != 'application/wasm') { - console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e); - - } else { - throw e; - } - } - } - - const bytes = await module.arrayBuffer(); - return await WebAssembly.instantiate(bytes, imports); - - } else { - - const instance = await WebAssembly.instantiate(module, imports); - - if (instance instanceof WebAssembly.Instance) { - return { instance, module }; - - } else { - return instance; - } - } -} - -async function init(input) { - if (typeof input === 'undefined') { - input = import.meta.url.replace(/\.js$/, '_bg.wasm'); - } - const imports = {}; - imports.wbg = {}; - imports.wbg.__wbindgen_object_drop_ref = function(arg0) { - takeObject(arg0); - }; - imports.wbg.__wbg_removeEventListener_003b13762a00969d = handleError(function(arg0, arg1, arg2, arg3, arg4) { - getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), arg4 !== 0); - }); - imports.wbg.__wbindgen_cb_drop = function(arg0) { - const obj = takeObject(arg0).original; - if (obj.cnt-- == 1) { - obj.a = 0; - return true; - } - var ret = false; - return ret; - }; - imports.wbg.__wbg_self_1b7a39e3a92c949c = handleError(function() { - var ret = self.self; - return addHeapObject(ret); - }); - imports.wbg.__wbg_require_604837428532a733 = function(arg0, arg1) { - var ret = require(getStringFromWasm0(arg0, arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_crypto_968f1772287e2df0 = function(arg0) { - var ret = getObject(arg0).crypto; - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_is_undefined = function(arg0) { - var ret = getObject(arg0) === undefined; - return ret; - }; - imports.wbg.__wbg_getRandomValues_a3d34b4fee3c2869 = function(arg0) { - var ret = getObject(arg0).getRandomValues; - return addHeapObject(ret); - }; - imports.wbg.__wbg_randomFillSync_d5bd2d655fdf256a = function(arg0, arg1, arg2) { - getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2)); - }; - imports.wbg.__wbg_getRandomValues_f5e14ab7ac8e995d = function(arg0, arg1, arg2) { - getObject(arg0).getRandomValues(getArrayU8FromWasm0(arg1, arg2)); - }; - imports.wbg.__wbg_document_c26d0f423c143e0c = function(arg0) { - var ret = getObject(arg0).document; - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; - imports.wbg.__wbg_querySelector_9cf023db23245913 = handleError(function(arg0, arg1, arg2) { - var ret = getObject(arg0).querySelector(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }); - imports.wbg.__wbg_lastChild_4add591e64b65966 = function(arg0) { - var ret = getObject(arg0).lastChild; - return isLikeNone(ret) ? 0 : addHeapObject(ret); - }; - imports.wbg.__wbg_removeChild_d8035999cf171601 = handleError(function(arg0, arg1) { - var ret = getObject(arg0).removeChild(getObject(arg1)); - return addHeapObject(ret); - }); - imports.wbg.__wbindgen_debug_string = function(arg0, arg1) { - var ret = debugString(getObject(arg1)); - var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbindgen_throw = function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); - }; - imports.wbg.__wbg_self_c0d3a5923e013647 = handleError(function() { - var ret = self.self; - return addHeapObject(ret); - }); - imports.wbg.__wbg_window_7ee6c8be3432927d = handleError(function() { - var ret = window.window; - return addHeapObject(ret); - }); - imports.wbg.__wbg_globalThis_c6de1d938e089cf0 = handleError(function() { - var ret = globalThis.globalThis; - return addHeapObject(ret); - }); - imports.wbg.__wbg_global_c9a01ce4680907f8 = handleError(function() { - var ret = global.global; - return addHeapObject(ret); - }); - imports.wbg.__wbg_newnoargs_8aad4a6554f38345 = function(arg0, arg1) { - var ret = new Function(getStringFromWasm0(arg0, arg1)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_call_1f85aaa5836dfb23 = handleError(function(arg0, arg1) { - var ret = getObject(arg0).call(getObject(arg1)); - return addHeapObject(ret); - }); - imports.wbg.__wbindgen_object_clone_ref = function(arg0) { - var ret = getObject(arg0); - return addHeapObject(ret); - }; - imports.wbg.__wbg_instanceof_Window_17fdb5cd280d476d = function(arg0) { - var ret = getObject(arg0) instanceof Window; - return ret; - }; - imports.wbg.__wbg_appendChild_3d4ec7dbf3472d31 = handleError(function(arg0, arg1) { - var ret = getObject(arg0).appendChild(getObject(arg1)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_insertBefore_e617280513985f61 = handleError(function(arg0, arg1, arg2) { - var ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_instanceof_HtmlInputElement_9e9349535b986dc4 = function(arg0) { - var ret = getObject(arg0) instanceof HTMLInputElement; - return ret; - }; - imports.wbg.__wbg_value_c2fd875fedc14f57 = function(arg0, arg1) { - var ret = getObject(arg1).value; - var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbg_instanceof_HtmlTextAreaElement_af4dc0571f10534b = function(arg0) { - var ret = getObject(arg0) instanceof HTMLTextAreaElement; - return ret; - }; - imports.wbg.__wbg_value_7ffe1d058e13aa75 = function(arg0, arg1) { - var ret = getObject(arg1).value; - var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbg_createTextNode_756ffaca4044be42 = function(arg0, arg1, arg2) { - var ret = getObject(arg0).createTextNode(getStringFromWasm0(arg1, arg2)); - return addHeapObject(ret); - }; - imports.wbg.__wbg_setnodeValue_ab4d09a5c9b583a3 = function(arg0, arg1, arg2) { - getObject(arg0).nodeValue = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_is_44606c0a00d7753b = function(arg0, arg1) { - var ret = Object.is(getObject(arg0), getObject(arg1)); - return ret; - }; - imports.wbg.__wbg_setAttribute_1e9980589f904db6 = handleError(function(arg0, arg1, arg2, arg3, arg4) { - getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }); - imports.wbg.__wbg_removeAttribute_ab1ad95ea7761680 = handleError(function(arg0, arg1, arg2) { - getObject(arg0).removeAttribute(getStringFromWasm0(arg1, arg2)); - }); - imports.wbg.__wbg_instanceof_HtmlButtonElement_0c660cd977827d1e = function(arg0) { - var ret = getObject(arg0) instanceof HTMLButtonElement; - return ret; - }; - imports.wbg.__wbg_settype_8b416ca7e828acb0 = function(arg0, arg1, arg2) { - getObject(arg0).type = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_settype_ccacb981913395e5 = function(arg0, arg1, arg2) { - getObject(arg0).type = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_setvalue_eb5415236467cd34 = function(arg0, arg1, arg2) { - getObject(arg0).value = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_setchecked_795fe0b967d5d996 = function(arg0, arg1) { - getObject(arg0).checked = arg1 !== 0; - }; - imports.wbg.__wbg_setvalue_8bb8ffbd27a7ffda = function(arg0, arg1, arg2) { - getObject(arg0).value = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_namespaceURI_35b1c4eab9150629 = function(arg0, arg1) { - var ret = getObject(arg1).namespaceURI; - var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; - imports.wbg.__wbg_createElement_44ab59c4ad367831 = handleError(function(arg0, arg1, arg2) { - var ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_createElementNS_74ac818c77233fe4 = handleError(function(arg0, arg1, arg2, arg3, arg4) { - var ret = getObject(arg0).createElementNS(arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_new_d6227c3c833572bb = function() { - var ret = new Object(); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - var ret = getStringFromWasm0(arg0, arg1); - return addHeapObject(ret); - }; - imports.wbg.__wbg_set_6a666216929b0387 = handleError(function(arg0, arg1, arg2) { - var ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2)); - return ret; - }); - imports.wbg.__wbg_addEventListener_3526086a053a131e = handleError(function(arg0, arg1, arg2, arg3, arg4) { - getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4)); - }); - imports.wbg.__wbindgen_closure_wrapper1301 = function(arg0, arg1, arg2) { - var ret = makeMutClosure(arg0, arg1, 27, __wbg_adapter_16); - return addHeapObject(ret); - }; - - if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) { - input = fetch(input); - } - - const { instance, module } = await load(await input, imports); - - wasm = instance.exports; - init.__wbindgen_wasm_module = module; - wasm.__wbindgen_start(); - return wasm; -} - -export default init; - diff --git a/frameworks/keyed/yew/bundled-dist/js-framework-benchmark-yew_bg.wasm b/frameworks/keyed/yew/bundled-dist/js-framework-benchmark-yew_bg.wasm deleted file mode 100644 index 4420050b7e37211b730f71bcd9386a5a5dc78f7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 142092 zcmeFa3z%J3R^NFZ_f_}S<Cau<Sd#5?PYY5e?vIkHR8?v^M5l;fal5;LPR5h;j9jWJ z*)GYFC6#UUAS^-KpiWFs^BM3YP9hQ$I}>+MhzSNvJ`H0g0!%(7W55Il#Ej<~Gcn+# zn?y+)dVc@4_c{06(v@9)bVDYz+I8;PXP^C8d#(Rod#$zi3FeR87Y0EPeqXrZuIS{+ z;I5GW_z|AGD?X`v{pBXqp9;T83iw&oPs<)Yd{+?odmhy60Z%M53Gu@ZpCk`2e5YRE zdP3KVyREo8|CVJ}ebHw}cEk_uyL-#ty$|iX_t4_qONaIz-nYE8u(EgY=;8bK9$nfW zgv#&@%5XRL_Z@z4>81yl4y}Cb-eW6Ehn9}+otT*1w_|c<dguJa#O~?ci$Oy#tSgnc zu+K^hs(P^1m2_<B;QqZk_RY*s?p~Ul-@S8T_tfr%pspO(<#io-;NGK4d#5L+W+!K+ zcFyja+&MopIT=LCbgj#@aP%|xuN>aHdwO>Nj+vRAJ7;H>b}sIpa8+$8wc*}ldmlKo zxU~P?LraV9>DRjw?p|8?w)sPghwuB#^9LVTI<|Lya&dBM-_-u4rOAbzv(vj>=CAW@ zvYa>Hd+^}5f9BA_-o;(}7I!XA@7lG0asSR;)AK>Brd_4r{kxWSOwH5dh1sRuyLT<R z%-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o#M*VAgn|@#a3a2tLL{kw0@0XH= z_T>Tjxj4ev$++oc=Od#tw&52farp%Y9W0$pXOiie@xc~eX$FI7cY>2P)U7sLOS_Y9 RX3`leJ(|f(PiOqn_%Bp(#uxwq diff --git a/webdriver-ts-results/.gitignore b/webdriver-ts-results/.gitignore new file mode 100644 index 000000000..5352d2980 --- /dev/null +++ b/webdriver-ts-results/.gitignore @@ -0,0 +1 @@ +table.html diff --git a/webdriver-ts-results/src/.gitignore b/webdriver-ts-results/src/.gitignore new file mode 100644 index 000000000..5e92ae6d2 --- /dev/null +++ b/webdriver-ts-results/src/.gitignore @@ -0,0 +1 @@ +results.ts diff --git a/webdriver-ts-results/src/results.ts b/webdriver-ts-results/src/results.ts deleted file mode 100644 index fcb3fc191..000000000 --- a/webdriver-ts-results/src/results.ts +++ /dev/null @@ -1,56 +0,0 @@ -import {RawResult} from './Common'; - -export let results: RawResult[]=[ -{"f":"wasm-bindgen-v0.2.47-keyed","b":"01_run1k","v":[111.679,110.216]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"02_replace1k","v":[108.808,114.004]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"03_update10th1k_x16","v":[175.604,161.142]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"04_select1k","v":[25.468,25.739]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"05_swap1k","v":[55.216,54.351]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"06_remove-one-1k","v":[24.208,28.341]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"07_create10k","v":[1178.322,1184.971]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"08_create1k-after1k_x2","v":[261.251,233.08]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"09_clear1k_x8","v":[124.812,105.986]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"21_ready-memory","v":[1.0803298950195312,1.0803375244140625]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"22_run-memory","v":[1.5682106018066406,1.5682106018066406]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"23_update5-memory","v":[1.8900527954101562,1.8900718688964844]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"24_run5-memory","v":[2.189403533935547,2.189373016357422]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"25_run-clear-memory","v":[2.334686279296875,2.3347625732421875]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"31_startup-ci","v":[1351.92,1350.788]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"32_startup-bt","v":[20.8,18.651999999999994]}, -{"f":"wasm-bindgen-v0.2.47-keyed","b":"34_startup-totalbytes","v":[59.8857421875,59.8857421875]}, -{"f":"yew-v0.16.2-keyed","b":"01_run1k","v":[213.78,202.191]}, -{"f":"yew-v0.16.2-keyed","b":"02_replace1k","v":[73.778,76.039]}, -{"f":"yew-v0.16.2-keyed","b":"03_update10th1k_x16","v":[288.693,237.006]}, -{"f":"yew-v0.16.2-keyed","b":"04_select1k","v":[52.324,42.072]}, -{"f":"yew-v0.16.2-keyed","b":"05_swap1k","v":[32.711,34.04]}, -{"f":"yew-v0.16.2-keyed","b":"06_remove-one-1k","v":[83.746,82.741]}, -{"f":"yew-v0.16.2-keyed","b":"07_create10k","v":[2221.002,2330.112]}, -{"f":"yew-v0.16.2-keyed","b":"08_create1k-after1k_x2","v":[409.533,445.373]}, -{"f":"yew-v0.16.2-keyed","b":"09_clear1k_x8","v":[354.703,335.971]}, -{"f":"yew-v0.16.2-keyed","b":"21_ready-memory","v":[1.0472145080566406,1.0471687316894531]}, -{"f":"yew-v0.16.2-keyed","b":"22_run-memory","v":[2.110729217529297,2.110759735107422]}, -{"f":"yew-v0.16.2-keyed","b":"23_update5-memory","v":[2.428478240966797,2.4285507202148438]}, -{"f":"yew-v0.16.2-keyed","b":"24_run5-memory","v":[2.050769805908203,2.0508155822753906]}, -{"f":"yew-v0.16.2-keyed","b":"25_run-clear-memory","v":[2.3814697265625,2.3814697265625]}, -{"f":"yew-v0.16.2-keyed","b":"31_startup-ci","v":[1351.104,1350.812]}, -{"f":"yew-v0.16.2-keyed","b":"32_startup-bt","v":[26.511999999999997,31.799999999999986]}, -{"f":"yew-v0.16.2-keyed","b":"34_startup-totalbytes","v":[85.0029296875,85.0029296875]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"01_run1k","v":[219.837,203.44]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"02_replace1k","v":[84.511,86.996]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"03_update10th1k_x16","v":[244.717,241.208]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"04_select1k","v":[42.196,43.413]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"05_swap1k","v":[26.277,27.517]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"06_remove-one-1k","v":[79.33,82.96]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"07_create10k","v":[2181.581,2335.49]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"08_create1k-after1k_x2","v":[398.373,397.793]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"09_clear1k_x8","v":[339.692,344.243]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"21_ready-memory","v":[1.0472755432128906,1.0472068786621094]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"22_run-memory","v":[2.111675262451172,2.1116905212402344]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"23_update5-memory","v":[2.4295692443847656,2.42950439453125]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"24_run5-memory","v":[2.050670623779297,2.051464080810547]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"25_run-clear-memory","v":[2.3824424743652344,2.382404327392578]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"31_startup-ci","v":[1350.696,1350.9479999999999]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"32_startup-bt","v":[28.015999999999984,35.37999999999998]}, -{"f":"yew-baseline-v0.16.2-keyed","b":"34_startup-totalbytes","v":[85.1904296875,85.1904296875]},]; -export let frameworks = [{"name":"wasm-bindgen-v0.2.47-keyed","keyed":true},{"name":"yew-v0.16.2-keyed","keyed":true},{"name":"yew-baseline-v0.16.2-keyed","keyed":true}]; -export let benchmarks = [{"id":"01_run1k","label":"create rows","description":"creating 1,000 rows","type":0},{"id":"02_replace1k","label":"replace all rows","description":"updating all 1,000 rows (5 warmup runs).","type":0},{"id":"03_update10th1k_x16","label":"partial update","description":"updating every 10th row for 1,000 rows (3 warmup runs). 16x CPU slowdown.","type":0,"throttleCPU":16},{"id":"04_select1k","label":"select row","description":"highlighting a selected row. (5 warmup runs). 16x CPU slowdown.","type":0,"throttleCPU":16},{"id":"05_swap1k","label":"swap rows","description":"swap 2 rows for table with 1,000 rows. (5 warmup runs). 4x CPU slowdown.","type":0,"throttleCPU":4},{"id":"06_remove-one-1k","label":"remove row","description":"removing one row. (5 warmup runs).","type":0},{"id":"07_create10k","label":"create many rows","description":"creating 10,000 rows","type":0},{"id":"08_create1k-after1k_x2","label":"append rows to large table","description":"appending 1,000 to a table of 10,000 rows. 2x CPU slowdown","type":0,"throttleCPU":2},{"id":"09_clear1k_x8","label":"clear rows","description":"clearing a table with 1,000 rows. 8x CPU slowdown","type":0,"throttleCPU":8},{"id":"21_ready-memory","label":"ready memory","description":"Memory usage after page load.","type":1},{"id":"22_run-memory","label":"run memory","description":"Memory usage after adding 1000 rows.","type":1},{"id":"23_update5-memory","label":"update eatch 10th row for 1k rows (5 cycles)","description":"Memory usage after clicking update every 10th row 5 times","type":1},{"id":"24_run5-memory","label":"replace 1k rows (5 cycles)","description":"Memory usage after clicking create 1000 rows 5 times","type":1},{"id":"25_run-clear-memory","label":"creating/clearing 1k rows (5 cycles)","description":"Memory usage after creating and clearing 1000 rows 5 times","type":1},{"id":"31_startup-ci","label":"consistently interactive","description":"a pessimistic TTI - when the CPU and network are both definitely very idle. (no more CPU tasks over 50ms)","type":2,"property":"TimeToConsistentlyInteractive"},{"id":"32_startup-bt","label":"script bootup time","description":"the total ms required to parse/compile/evaluate all the page's scripts","type":2,"property":"ScriptBootUpTtime"},{"id":"34_startup-totalbytes","label":"total kilobyte weight","description":"network transfer cost (post-compression) of all the resources loaded into the page.","type":2,"property":"TotalKiloByteWeight"}]; diff --git a/webdriver-ts-results/table.html b/webdriver-ts-results/table.html deleted file mode 100644 index 1da64ebc6..000000000 --- a/webdriver-ts-results/table.html +++ /dev/null @@ -1,56 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="utf-8" /> - <title>Interactive Results</title> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <meta name="viewport" content="width=device-width, initial-scale=1"> -</head> -<body> - <div id='main' class='container'></div> -<script type="text/javascript">(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){"use strict";e.exports=n(7)},,,function(e,t,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=o(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))a.call(n,u)&&(s[u]=n[u]);if(r){l=r(n);for(var f=0;f<l.length;f++)i.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var a;e.exports=(function(e,t){var n=e.utils.isFunction;function r(e,t){return e-t}function a(e,n,r){return t.max(n,t.min(e,r))}e.sum=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n];return t},e.sumsqrd=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n]*e[n];return t},e.sumsqerr=function(t){for(var n,r=e.mean(t),a=0,i=t.length;--i>=0;)a+=(n=t[i]-r)*n;return a},e.sumrow=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n];return t},e.product=function(e){for(var t=1,n=e.length;--n>=0;)t*=e[n];return t},e.min=function(e){for(var t=e[0],n=0;++n<e.length;)e[n]<t&&(t=e[n]);return t},e.max=function(e){for(var t=e[0],n=0;++n<e.length;)e[n]>t&&(t=e[n]);return t},e.unique=function(e){for(var t={},n=[],r=0;r<e.length;r++)t[e[r]]||(t[e[r]]=!0,n.push(e[r]));return n},e.mean=function(t){return e.sum(t)/t.length},e.meansqerr=function(t){return e.sumsqerr(t)/t.length},e.geomean=function(n){return t.pow(e.product(n),1/n.length)},e.median=function(e){var t=e.length,n=e.slice().sort(r);return 1&t?n[t/2|0]:(n[t/2-1]+n[t/2])/2},e.cumsum=function(t){return e.cumreduce(t,(function(e,t){return e+t}))},e.cumprod=function(t){return e.cumreduce(t,(function(e,t){return e*t}))},e.diff=function(e){for(var t=[],n=e.length,r=1;r<n;r++)t.push(e[r]-e[r-1]);return t},e.rank=function(e){for(var t=e.length,n=e.slice().sort(r),a=new Array(t),i=0;i<t;i++){var o=n.indexOf(e[i]),l=n.lastIndexOf(e[i]);if(o===l)var s=o;else s=(o+l)/2;a[i]=s+1}return a},e.mode=function(e){for(var t=e.length,n=e.slice().sort(r),a=1,i=0,o=0,l=[],s=0;s<t;s++)n[s]===n[s+1]?a++:(a>i?(l=[n[s]],i=a,o=0):a===i&&(l.push(n[s]),o++),a=1);return 0===o?l[0]:l},e.range=function(t){return e.max(t)-e.min(t)},e.variance=function(t,n){return e.sumsqerr(t)/(t.length-(n?1:0))},e.pooledvariance=function(t){return t.reduce((function(t,n){return t+e.sumsqerr(n)}),0)/(t.reduce((function(e,t){return e+t.length}),0)-t.length)},e.deviation=function(t){for(var n=e.mean(t),r=t.length,a=new Array(r),i=0;i<r;i++)a[i]=t[i]-n;return a},e.stdev=function(n,r){return t.sqrt(e.variance(n,r))},e.pooledstdev=function(n){return t.sqrt(e.pooledvariance(n))},e.meandev=function(n){for(var r=e.mean(n),a=[],i=n.length-1;i>=0;i--)a.push(t.abs(n[i]-r));return e.mean(a)},e.meddev=function(n){for(var r=e.median(n),a=[],i=n.length-1;i>=0;i--)a.push(t.abs(n[i]-r));return e.median(a)},e.coeffvar=function(t){return e.stdev(t)/e.mean(t)},e.quartiles=function(e){var n=e.length,a=e.slice().sort(r);return[a[t.round(n/4)-1],a[t.round(n/2)-1],a[t.round(3*n/4)-1]]},e.quantiles=function(e,n,i,o){var l,s,c,u,f=e.slice().sort(r),d=[n.length],p=e.length;void 0===i&&(i=3/8),void 0===o&&(o=3/8);for(var h=0;h<n.length;h++)s=p*(l=n[h])+(i+l*(1-i-o)),c=t.floor(a(s,1,p-1)),u=a(s-c,0,1),d[h]=(1-u)*f[c-1]+u*f[c];return d},e.percentile=function(e,t){var n=e.slice().sort(r),a=t*(n.length-1),i=parseInt(a),o=a-i;return i+1<n.length?n[i]*(1-o)+n[i+1]*o:n[i]},e.percentileOfScore=function(e,t,n){var r,a=0,i=e.length,o=!1;"strict"===n&&(o=!0);for(var l=0;l<i;l++)r=e[l],(o&&r<t||!o&&r<=t)&&a++;return a/i},e.histogram=function(n,r){for(var a=e.min(n),i=r||4,o=(e.max(n)-a)/i,l=n.length,s=(r=[],0);s<i;s++)r[s]=0;for(s=0;s<l;s++)r[t.min(t.floor((n[s]-a)/o),i-1)]+=1;return r},e.covariance=function(t,n){for(var r=e.mean(t),a=e.mean(n),i=t.length,o=new Array(i),l=0;l<i;l++)o[l]=(t[l]-r)*(n[l]-a);return e.sum(o)/(i-1)},e.corrcoeff=function(t,n){return e.covariance(t,n)/e.stdev(t,1)/e.stdev(n,1)},e.spearmancoeff=function(t,n){return t=e.rank(t),n=e.rank(n),e.corrcoeff(t,n)},e.stanMoment=function(n,r){for(var a=e.mean(n),i=e.stdev(n),o=n.length,l=0,s=0;s<o;s++)l+=t.pow((n[s]-a)/i,r);return l/n.length},e.skewness=function(t){return e.stanMoment(t,3)},e.kurtosis=function(t){return e.stanMoment(t,4)-3};var i=e.prototype;!function(t){for(var r=0;r<t.length;r++)!function(t){i[t]=function(r,a){var o=[],l=0,s=this;if(n(r)&&(a=r,r=!1),a)return setTimeout((function(){a.call(s,i[t].call(s,r))})),this;if(this.length>1){for(s=!0===r?this:this.transpose();l<s.length;l++)o[l]=e[t](s[l]);return o}return e[t](this[0],r)}}(t[r])}("cumsum cumprod".split(" ")),function(t){for(var r=0;r<t.length;r++)!function(t){i[t]=function(r,a){var o=[],l=0,s=this;if(n(r)&&(a=r,r=!1),a)return setTimeout((function(){a.call(s,i[t].call(s,r))})),this;if(this.length>1){for("sumrow"!==t&&(s=!0===r?this:this.transpose());l<s.length;l++)o[l]=e[t](s[l]);return!0===r?e[t](e.utils.toVector(o)):o}return e[t](this[0],r)}}(t[r])}("sum sumsqrd sumsqerr sumrow product min max unique mean meansqerr geomean median diff rank mode range variance deviation stdev meandev meddev coeffvar quartiles histogram skewness kurtosis".split(" ")),function(t){for(var r=0;r<t.length;r++)!function(t){i[t]=function(){var r=[],a=0,o=this,l=Array.prototype.slice.call(arguments);if(n(l[l.length-1])){var s=l[l.length-1],c=l.slice(0,l.length-1);return setTimeout((function(){s.call(o,i[t].apply(o,c))})),this}s=void 0;var u=function(n){return e[t].apply(o,[n].concat(l))};if(this.length>1){for(o=o.transpose();a<o.length;a++)r[a]=u(o[a]);return r}return u(this[0])}}(t[r])}("quantiles percentileOfScore".split(" "))}(a=function(e,t){var n=Array.prototype.concat,r=Array.prototype.slice,a=Object.prototype.toString;function o(t,n){var r=t>n?t:n;return e.pow(10,17-~~(e.log(r>0?r:-r)*e.LOG10E))}var l=Array.isArray||function(e){return"[object Array]"===a.call(e)};function s(e){return"[object Function]"===a.call(e)}function c(e){return"number"==typeof e&&e==e}function u(){return new u._init(arguments)}function f(){return 0}function d(){return 1}function p(e,t){return e===t?1:0}u.fn=u.prototype,u._init=function(e){if(l(e[0]))if(l(e[0][0])){s(e[1])&&(e[0]=u.map(e[0],e[1]));for(var t=0;t<e[0].length;t++)this[t]=e[0][t];this.length=e[0].length}else this[0]=s(e[1])?u.map(e[0],e[1]):e[0],this.length=1;else if(c(e[0]))this[0]=u.seq.apply(null,e),this.length=1;else{if(e[0]instanceof u)return u(e[0].toArray());this[0]=[],this.length=1}return this},u._init.prototype=u.prototype,u._init.constructor=u,u.utils={calcRdx:o,isArray:l,isFunction:s,isNumber:c,toVector:function(e){return n.apply([],e)}},u.extend=function(e){var t;if(1===arguments.length){for(t in e)u[t]=e[t];return this}for(var n=1;n<arguments.length;n++)for(t in arguments[n])e[t]=arguments[n][t];return e},u.rows=function(e){return e.length||1},u.cols=function(e){return e[0].length||1},u.dimensions=function(e){return{rows:u.rows(e),cols:u.cols(e)}},u.row=function(e,t){return l(t)?t.map((function(t){return u.row(e,t)})):e[t]},u.rowa=function(e,t){return u.row(e,t)},u.col=function(e,t){if(l(t)){var n=u.arange(e.length).map((function(e){return new Array(t.length)}));return t.forEach((function(t,r){u.arange(e.length).forEach((function(a){n[a][r]=e[a][t]}))})),n}for(var r=new Array(e.length),a=0;a<e.length;a++)r[a]=[e[a][t]];return r},u.cola=function(e,t){return u.col(e,t).map((function(e){return e[0]}))},u.diag=function(e){for(var t=u.rows(e),n=new Array(t),r=0;r<t;r++)n[r]=[e[r][r]];return n},u.antidiag=function(e){for(var t=u.rows(e)-1,n=new Array(t),r=0;t>=0;t--,r++)n[r]=[e[r][t]];return n},u.transpose=function(e){var t,n,r,a,i=[];l(e[0])||(e=[e]),n=e.length,r=e[0].length;for(var o=0;o<r;o++){for(t=new Array(n),a=0;a<n;a++)t[a]=e[a][o];i.push(t)}return 1===i.length?i[0]:i},u.map=function(e,t,n){var r,a,i,o,s;for(l(e[0])||(e=[e]),a=e.length,i=e[0].length,o=n?e:new Array(a),r=0;r<a;r++)for(o[r]||(o[r]=new Array(i)),s=0;s<i;s++)o[r][s]=t(e[r][s],r,s);return 1===o.length?o[0]:o},u.cumreduce=function(e,t,n){var r,a,i,o,s;for(l(e[0])||(e=[e]),a=e.length,i=e[0].length,o=n?e:new Array(a),r=0;r<a;r++)for(o[r]||(o[r]=new Array(i)),i>0&&(o[r][0]=e[r][0]),s=1;s<i;s++)o[r][s]=t(o[r][s-1],e[r][s]);return 1===o.length?o[0]:o},u.alter=function(e,t){return u.map(e,t,!0)},u.create=function(e,t,n){var r,a=new Array(e);s(t)&&(n=t,t=e);for(var i=0;i<e;i++)for(a[i]=new Array(t),r=0;r<t;r++)a[i][r]=n(i,r);return a},u.zeros=function(e,t){return c(t)||(t=e),u.create(e,t,f)},u.ones=function(e,t){return c(t)||(t=e),u.create(e,t,d)},u.rand=function(t,n){return c(n)||(n=t),u.create(t,n,e.random)},u.identity=function(e,t){return c(t)||(t=e),u.create(e,t,p)},u.symmetric=function(e){var t,n,r=e.length;if(e.length!==e[0].length)return!1;for(t=0;t<r;t++)for(n=0;n<r;n++)if(e[n][t]!==e[t][n])return!1;return!0},u.clear=function(e){return u.alter(e,f)},u.seq=function(e,t,n,r){s(r)||(r=!1);var a,i=[],l=o(e,t),c=(t*l-e*l)/((n-1)*l),u=e;for(a=0;u<=t&&a<n;u=(e*l+c*l*++a)/l)i.push(r?r(u,a):u);return i},u.arange=function(e,t,n){var r=[];if(n=n||1,void 0===t&&(t=e,e=0),e===t||0===n)return[];if(e<t&&n<0)return[];if(e>t&&n>0)return[];if(n>0)for(i=e;i<t;i+=n)r.push(i);else for(i=e;i>t;i+=n)r.push(i);return r},u.slice=function(){function e(e,t,n,r){var a,i=[],o=e.length;if(void 0===t&&void 0===n&&void 0===r)return u.copy(e);if(r=r||1,(t=(t=t||0)>=0?t:o+t)===(n=(n=n||e.length)>=0?n:o+n)||0===r)return[];if(t<n&&r<0)return[];if(t>n&&r>0)return[];if(r>0)for(a=t;a<n;a+=r)i.push(e[a]);else for(a=t;a>n;a+=r)i.push(e[a]);return i}return function(t,n){if(c((n=n||{}).row))return c(n.col)?t[n.row][n.col]:e(u.rowa(t,n.row),(a=n.col||{}).start,a.end,a.step);if(c(n.col))return e(u.cola(t,n.col),(r=n.row||{}).start,r.end,r.step);var r=n.row||{},a=n.col||{};return e(t,r.start,r.end,r.step).map((function(t){return e(t,a.start,a.end,a.step)}))}}(),u.sliceAssign=function(t,n,r){if(c(n.row)){if(c(n.col))return t[n.row][n.col]=r;n.col=n.col||{},n.col.start=n.col.start||0,n.col.end=n.col.end||t[0].length,n.col.step=n.col.step||1;var a=u.arange(n.col.start,e.min(t.length,n.col.end),n.col.step),i=n.row;return a.forEach((function(e,n){t[i][e]=r[n]})),t}if(c(n.col)){n.row=n.row||{},n.row.start=n.row.start||0,n.row.end=n.row.end||t.length,n.row.step=n.row.step||1;var o=u.arange(n.row.start,e.min(t[0].length,n.row.end),n.row.step),l=n.col;return o.forEach((function(e,n){t[e][l]=r[n]})),t}return void 0===r[0].length&&(r=[r]),n.row.start=n.row.start||0,n.row.end=n.row.end||t.length,n.row.step=n.row.step||1,n.col.start=n.col.start||0,n.col.end=n.col.end||t[0].length,n.col.step=n.col.step||1,o=u.arange(n.row.start,e.min(t.length,n.row.end),n.row.step),a=u.arange(n.col.start,e.min(t[0].length,n.col.end),n.col.step),o.forEach((function(e,n){a.forEach((function(a,i){t[e][a]=r[n][i]}))})),t},u.diagonal=function(e){var t=u.zeros(e.length,e.length);return e.forEach((function(e,n){t[n][n]=e})),t},u.copy=function(e){return e.map((function(e){return c(e)?e:e.map((function(e){return e}))}))};var h=u.prototype;return h.length=0,h.push=Array.prototype.push,h.sort=Array.prototype.sort,h.splice=Array.prototype.splice,h.slice=Array.prototype.slice,h.toArray=function(){return this.length>1?r.call(this):r.call(this)[0]},h.map=function(e,t){return u(u.map(this,e,t))},h.cumreduce=function(e,t){return u(u.cumreduce(this,e,t))},h.alter=function(e){return u.alter(this,e),this},function(e){for(var t=0;t<e.length;t++)!function(e){h[e]=function(t){var n,r=this;return t?(setTimeout((function(){t.call(r,h[e].call(r))})),this):(n=u[e](this),l(n)?u(n):n)}}(e[t])}("transpose clear symmetric rows cols dimensions diag antidiag".split(" ")),function(e){for(var t=0;t<e.length;t++)!function(e){h[e]=function(t,n){var r=this;return n?(setTimeout((function(){n.call(r,h[e].call(r,t))})),this):u(u[e](this,t))}}(e[t])}("row col".split(" ")),function(e){for(var t=0;t<e.length;t++)n=e[t],h[n]=new Function("return jStat(jStat."+n+".apply(null, arguments));");var n}("create zeros ones rand identity".split(" ")),u}(Math),Math),function(e,t){e.gammaln=function(e){var n,r,a,i=0,o=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18],l=1.000000000190015;for(a=(r=n=e)+5.5,a-=(n+.5)*t.log(a);i<6;i++)l+=o[i]/++r;return t.log(2.5066282746310007*l/n)-a},e.gammafn=function(e){var n,r,a,i=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],o=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],l=!1,s=0,c=0,u=0,f=e;if(f<=0){if(!(a=f%1+36e-17))return 1/0;l=(1&f?-1:1)*t.PI/t.sin(t.PI*a),f=1-f}r=f,n=f<1?f++:(f-=s=(0|f)-1)-1;for(var d=0;d<8;++d)u=(u+i[d])*n,c=c*n+o[d];if(a=u/c+1,r<f)a/=r;else if(r>f)for(d=0;d<s;++d)a*=f,f++;return l&&(a=l/a),a},e.gammap=function(t,n){return e.lowRegGamma(t,n)*e.gammafn(t)},e.lowRegGamma=function(n,r){var a,i=e.gammaln(n),o=n,l=1/n,s=l,c=r+1-n,u=1/1e-30,f=1/c,d=f,p=1,h=-~(8.5*t.log(n>=1?n:1/n)+.4*n+17);if(r<0||n<=0)return NaN;if(r<n+1){for(;p<=h;p++)l+=s*=r/++o;return l*t.exp(-r+n*t.log(r)-i)}for(;p<=h;p++)d*=(f=1/(f=(a=-p*(p-n))*f+(c+=2)))*(u=c+a/u);return 1-d*t.exp(-r+n*t.log(r)-i)},e.factorialln=function(t){return t<0?NaN:e.gammaln(t+1)},e.factorial=function(t){return t<0?NaN:e.gammafn(t+1)},e.combination=function(n,r){return n>170||r>170?t.exp(e.combinationln(n,r)):e.factorial(n)/e.factorial(r)/e.factorial(n-r)},e.combinationln=function(t,n){return e.factorialln(t)-e.factorialln(n)-e.factorialln(t-n)},e.permutation=function(t,n){return e.factorial(t)/e.factorial(t-n)},e.betafn=function(n,r){if(!(n<=0||r<=0))return n+r>170?t.exp(e.betaln(n,r)):e.gammafn(n)*e.gammafn(r)/e.gammafn(n+r)},e.betaln=function(t,n){return e.gammaln(t)+e.gammaln(n)-e.gammaln(t+n)},e.betacf=function(e,n,r){var a,i,o,l,s=1,c=n+r,u=n+1,f=n-1,d=1,p=1-c*e/u;for(t.abs(p)<1e-30&&(p=1e-30),l=p=1/p;s<=100&&(p=1+(i=s*(r-s)*e/((f+(a=2*s))*(n+a)))*p,t.abs(p)<1e-30&&(p=1e-30),d=1+i/d,t.abs(d)<1e-30&&(d=1e-30),l*=(p=1/p)*d,p=1+(i=-(n+s)*(c+s)*e/((n+a)*(u+a)))*p,t.abs(p)<1e-30&&(p=1e-30),d=1+i/d,t.abs(d)<1e-30&&(d=1e-30),l*=o=(p=1/p)*d,!(t.abs(o-1)<3e-7));s++);return l},e.gammapinv=function(n,r){var a,i,o,l,s,c,u=0,f=r-1,d=e.gammaln(r);if(n>=1)return t.max(100,r+100*t.sqrt(r));if(n<=0)return 0;for(r>1?(s=t.log(f),c=t.exp(f*(s-1)-d),l=n<.5?n:1-n,a=(2.30753+.27061*(i=t.sqrt(-2*t.log(l))))/(1+i*(.99229+.04481*i))-i,n<.5&&(a=-a),a=t.max(.001,r*t.pow(1-1/(9*r)-a/(3*t.sqrt(r)),3))):a=n<(i=1-r*(.253+.12*r))?t.pow(n/i,1/r):1-t.log(1-(n-i)/(1-i));u<12;u++){if(a<=0)return 0;if((a-=i=(o=(e.lowRegGamma(r,a)-n)/(i=r>1?c*t.exp(-(a-f)+f*(t.log(a)-s)):t.exp(-a+f*t.log(a)-d)))/(1-.5*t.min(1,o*((r-1)/a-1))))<=0&&(a=.5*(a+i)),t.abs(i)<1e-8*a)break}return a},e.erf=function(e){var n,r,a,i,o=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-.000946595344482036,.000366839497852761,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,1.5626441722e-8,-8.5238095915e-8,6.529054439e-9,5.059343495e-9,-9.91364156e-10,-2.27365122e-10,96467911e-18,2394038e-18,-6886027e-18,894487e-18,313092e-18,-112708e-18,381e-18,7106e-18,-1523e-18,-94e-18,121e-18,-28e-18],l=o.length-1,s=!1,c=0,u=0;for(e<0&&(e=-e,s=!0),r=4*(n=2/(2+e))-2;l>0;l--)a=c,c=r*c-u+o[l],u=a;return i=n*t.exp(-e*e+.5*(o[0]+r*c)-u),s?i-1:1-i},e.erfc=function(t){return 1-e.erf(t)},e.erfcinv=function(n){var r,a,i,o,l=0;if(n>=2)return-100;if(n<=0)return 100;for(o=n<1?n:2-n,r=-.70711*((2.30753+.27061*(i=t.sqrt(-2*t.log(o/2))))/(1+i*(.99229+.04481*i))-i);l<2;l++)r+=(a=e.erfc(r)-o)/(1.1283791670955126*t.exp(-r*r)-r*a);return n<1?r:-r},e.ibetainv=function(n,r,a){var i,o,l,s,c,u,f,d,p,h,g=r-1,m=a-1,v=0;if(n<=0)return 0;if(n>=1)return 1;for(r>=1&&a>=1?(l=n<.5?n:1-n,u=(2.30753+.27061*(s=t.sqrt(-2*t.log(l))))/(1+s*(.99229+.04481*s))-s,n<.5&&(u=-u),f=(u*u-3)/6,d=2/(1/(2*r-1)+1/(2*a-1)),p=u*t.sqrt(f+d)/d-(1/(2*a-1)-1/(2*r-1))*(f+5/6-2/(3*d)),u=r/(r+a*t.exp(2*p))):(i=t.log(r/(r+a)),o=t.log(a/(r+a)),u=n<(s=t.exp(r*i)/r)/(p=s+(c=t.exp(a*o)/a))?t.pow(r*p*n,1/r):1-t.pow(a*p*(1-n),1/a)),h=-e.gammaln(r)-e.gammaln(a)+e.gammaln(r+a);v<10;v++){if(0===u||1===u)return u;if((u-=s=(c=(e.ibeta(u,r,a)-n)/(s=t.exp(g*t.log(u)+m*t.log(1-u)+h)))/(1-.5*t.min(1,c*(g/u-m/(1-u)))))<=0&&(u=.5*(u+s)),u>=1&&(u=.5*(u+s+1)),t.abs(s)<1e-8*u&&v>0)break}return u},e.ibeta=function(n,r,a){var i=0===n||1===n?0:t.exp(e.gammaln(r+a)-e.gammaln(r)-e.gammaln(a)+r*t.log(n)+a*t.log(1-n));return!(n<0||n>1)&&(n<(r+1)/(r+a+2)?i*e.betacf(n,r,a)/r:1-i*e.betacf(1-n,a,r)/a)},e.randn=function(n,r){var a,i,o,l,s;if(r||(r=n),n)return e.create(n,r,(function(){return e.randn()}));do{a=t.random(),i=1.7156*(t.random()-.5),s=(o=a-.449871)*o+(l=t.abs(i)+.386595)*(.196*l-.25472*o)}while(s>.27597&&(s>.27846||i*i>-4*t.log(a)*a*a));return i/a},e.randg=function(n,r,a){var i,o,l,s,c,u,f=n;if(a||(a=r),n||(n=1),r)return(u=e.zeros(r,a)).alter((function(){return e.randg(n)})),u;n<1&&(n+=1),i=n-1/3,o=1/t.sqrt(9*i);do{do{s=1+o*(c=e.randn())}while(s<=0);s*=s*s,l=t.random()}while(l>1-.331*t.pow(c,4)&&t.log(l)>.5*c*c+i*(1-s+t.log(s)));if(n==f)return i*s;do{l=t.random()}while(0===l);return t.pow(l,1/f)*i*s},function(t){for(var n=0;n<t.length;n++)!function(t){e.fn[t]=function(){return e(e.map(this,(function(n){return e[t](n)})))}}(t[n])}("gammaln gammafn factorial factorialln".split(" ")),function(t){for(var n=0;n<t.length;n++)!function(t){e.fn[t]=function(){return e(e[t].apply(null,arguments))}}(t[n])}("randn".split(" "))}(a,Math),function(e,t){function n(n,r,a){var i=[.9815606342467192,.9041172563704749,.7699026741943047,.5873179542866175,.3678314989981802,.1252334085114689],o=[.04717533638651183,.10693932599531843,.16007832854334622,.20316742672306592,.2334925365383548,.24914704581340277],l=.5*n;if(l>=8)return 1;var s,c=2*e.normal.cdf(l,0,1,1,0)-1;c=c>=t.exp(-50/a)?t.pow(c,a):0;for(var u=l,f=(8-l)/(s=n>3?2:3),d=u+f,p=0,h=a-1,g=1;g<=s;g++){for(var m=0,v=.5*(d+u),y=.5*(d-u),x=1;x<=12;x++){var b,_=v+y*(6<x?i[(b=12-x+1)-1]:-i[(b=x)-1]),w=_*_;if(w>60)break;var k=2*e.normal.cdf(_,0,1,1,0)*.5-2*e.normal.cdf(_,n,1,1,0)*.5;k>=t.exp(-30/h)&&(m+=k=o[b-1]*t.exp(-.5*w)*t.pow(k,h))}p+=m*=2*y*a/t.sqrt(2*t.PI),u=d,d+=f}return(c+=p)<=t.exp(-30/r)?0:(c=t.pow(c,r))>=1?1:c}!function(t){for(var n=0;n<t.length;n++)!function(t){e[t]=function(e,t,n){return this instanceof arguments.callee?(this._a=e,this._b=t,this._c=n,this):new arguments.callee(e,t,n)},e.fn[t]=function(n,r,a){var i=e[t](n,r,a);return i.data=this,i},e[t].prototype.sample=function(n){var r=this._a,a=this._b,i=this._c;return n?e.alter(n,(function(){return e[t].sample(r,a,i)})):e[t].sample(r,a,i)},function(n){for(var r=0;r<n.length;r++)!function(n){e[t].prototype[n]=function(r){var a=this._a,i=this._b,o=this._c;return r||0===r||(r=this.data),"number"!=typeof r?e.fn.map.call(r,(function(r){return e[t][n](r,a,i,o)})):e[t][n](r,a,i,o)}}(n[r])}("pdf cdf inv".split(" ")),function(n){for(var r=0;r<n.length;r++)!function(n){e[t].prototype[n]=function(){return e[t][n](this._a,this._b,this._c)}}(n[r])}("mean median mode variance".split(" "))}(t[n])}("beta centralF cauchy chisquare exponential gamma invgamma kumaraswamy laplace lognormal noncentralt normal pareto studentt weibull uniform binomial negbin hypgeom poisson triangular tukey arcsine".split(" ")),e.extend(e.beta,{pdf:function(n,r,a){return n>1||n<0?0:1==r&&1==a?1:r<512&&a<512?t.pow(n,r-1)*t.pow(1-n,a-1)/e.betafn(r,a):t.exp((r-1)*t.log(n)+(a-1)*t.log(1-n)-e.betaln(r,a))},cdf:function(t,n,r){return t>1||t<0?1*(t>1):e.ibeta(t,n,r)},inv:function(t,n,r){return e.ibetainv(t,n,r)},mean:function(e,t){return e/(e+t)},median:function(t,n){return e.ibetainv(.5,t,n)},mode:function(e,t){return(e-1)/(e+t-2)},sample:function(t,n){var r=e.randg(t);return r/(r+e.randg(n))},variance:function(e,n){return e*n/(t.pow(e+n,2)*(e+n+1))}}),e.extend(e.centralF,{pdf:function(n,r,a){var i;return n<0?0:r<=2?0===n&&r<2?1/0:0===n&&2===r?1:1/e.betafn(r/2,a/2)*t.pow(r/a,r/2)*t.pow(n,r/2-1)*t.pow(1+r/a*n,-(r+a)/2):(i=r*n/(a+n*r),r*(a/(a+n*r))/2*e.binomial.pdf((r-2)/2,(r+a-2)/2,i))},cdf:function(t,n,r){return t<0?0:e.ibeta(n*t/(n*t+r),n/2,r/2)},inv:function(t,n,r){return r/(n*(1/e.ibetainv(t,n/2,r/2)-1))},mean:function(e,t){return t>2?t/(t-2):void 0},mode:function(e,t){return e>2?t*(e-2)/(e*(t+2)):void 0},sample:function(t,n){return 2*e.randg(t/2)/t/(2*e.randg(n/2)/n)},variance:function(e,t){if(!(t<=4))return 2*t*t*(e+t-2)/(e*(t-2)*(t-2)*(t-4))}}),e.extend(e.cauchy,{pdf:function(e,n,r){return r<0?0:r/(t.pow(e-n,2)+t.pow(r,2))/t.PI},cdf:function(e,n,r){return t.atan((e-n)/r)/t.PI+.5},inv:function(e,n,r){return n+r*t.tan(t.PI*(e-.5))},median:function(e,t){return e},mode:function(e,t){return e},sample:function(n,r){return e.randn()*t.sqrt(1/(2*e.randg(.5)))*r+n}}),e.extend(e.chisquare,{pdf:function(n,r){return n<0?0:0===n&&2===r?.5:t.exp((r/2-1)*t.log(n)-n/2-r/2*t.log(2)-e.gammaln(r/2))},cdf:function(t,n){return t<0?0:e.lowRegGamma(n/2,t/2)},inv:function(t,n){return 2*e.gammapinv(t,.5*n)},mean:function(e){return e},median:function(e){return e*t.pow(1-2/(9*e),3)},mode:function(e){return e-2>0?e-2:0},sample:function(t){return 2*e.randg(t/2)},variance:function(e){return 2*e}}),e.extend(e.exponential,{pdf:function(e,n){return e<0?0:n*t.exp(-n*e)},cdf:function(e,n){return e<0?0:1-t.exp(-n*e)},inv:function(e,n){return-t.log(1-e)/n},mean:function(e){return 1/e},median:function(e){return 1/e*t.log(2)},mode:function(e){return 0},sample:function(e){return-1/e*t.log(t.random())},variance:function(e){return t.pow(e,-2)}}),e.extend(e.gamma,{pdf:function(n,r,a){return n<0?0:0===n&&1===r?1/a:t.exp((r-1)*t.log(n)-n/a-e.gammaln(r)-r*t.log(a))},cdf:function(t,n,r){return t<0?0:e.lowRegGamma(n,t/r)},inv:function(t,n,r){return e.gammapinv(t,n)*r},mean:function(e,t){return e*t},mode:function(e,t){if(e>1)return(e-1)*t},sample:function(t,n){return e.randg(t)*n},variance:function(e,t){return e*t*t}}),e.extend(e.invgamma,{pdf:function(n,r,a){return n<=0?0:t.exp(-(r+1)*t.log(n)-a/n-e.gammaln(r)+r*t.log(a))},cdf:function(t,n,r){return t<=0?0:1-e.lowRegGamma(n,r/t)},inv:function(t,n,r){return r/e.gammapinv(1-t,n)},mean:function(e,t){return e>1?t/(e-1):void 0},mode:function(e,t){return t/(e+1)},sample:function(t,n){return n/e.randg(t)},variance:function(e,t){if(!(e<=2))return t*t/((e-1)*(e-1)*(e-2))}}),e.extend(e.kumaraswamy,{pdf:function(e,n,r){return 0===e&&1===n?r:1===e&&1===r?n:t.exp(t.log(n)+t.log(r)+(n-1)*t.log(e)+(r-1)*t.log(1-t.pow(e,n)))},cdf:function(e,n,r){return e<0?0:e>1?1:1-t.pow(1-t.pow(e,n),r)},inv:function(e,n,r){return t.pow(1-t.pow(1-e,1/r),1/n)},mean:function(t,n){return n*e.gammafn(1+1/t)*e.gammafn(n)/e.gammafn(1+1/t+n)},median:function(e,n){return t.pow(1-t.pow(2,-1/n),1/e)},mode:function(e,n){if(e>=1&&n>=1&&1!==e&&1!==n)return t.pow((e-1)/(e*n-1),1/e)},variance:function(e,t){throw new Error("variance not yet implemented")}}),e.extend(e.lognormal,{pdf:function(e,n,r){return e<=0?0:t.exp(-t.log(e)-.5*t.log(2*t.PI)-t.log(r)-t.pow(t.log(e)-n,2)/(2*r*r))},cdf:function(n,r,a){return n<0?0:.5+.5*e.erf((t.log(n)-r)/t.sqrt(2*a*a))},inv:function(n,r,a){return t.exp(-1.4142135623730951*a*e.erfcinv(2*n)+r)},mean:function(e,n){return t.exp(e+n*n/2)},median:function(e,n){return t.exp(e)},mode:function(e,n){return t.exp(e-n*n)},sample:function(n,r){return t.exp(e.randn()*r+n)},variance:function(e,n){return(t.exp(n*n)-1)*t.exp(2*e+n*n)}}),e.extend(e.noncentralt,{pdf:function(n,r,a){return t.abs(a)<1e-14?e.studentt.pdf(n,r):t.abs(n)<1e-14?t.exp(e.gammaln((r+1)/2)-a*a/2-.5*t.log(t.PI*r)-e.gammaln(r/2)):r/n*(e.noncentralt.cdf(n*t.sqrt(1+2/r),r+2,a)-e.noncentralt.cdf(n,r,a))},cdf:function(n,r,a){if(t.abs(a)<1e-14)return e.studentt.cdf(n,r);var i=!1;n<0&&(i=!0,a=-a);for(var o=e.normal.cdf(-a,0,1),l=1e-14+1,s=l,c=n*n/(n*n+r),u=0,f=t.exp(-a*a/2),d=t.exp(-a*a/2-.5*t.log(2)-e.gammaln(1.5))*a;u<200||s>1e-14||l>1e-14;)s=l,u>0&&(f*=a*a/(2*u),d*=a*a/(2*(u+.5))),o+=.5*(l=f*e.beta.cdf(c,u+.5,r/2)+d*e.beta.cdf(c,u+1,r/2)),u++;return i?1-o:o}}),e.extend(e.normal,{pdf:function(e,n,r){return t.exp(-.5*t.log(2*t.PI)-t.log(r)-t.pow(e-n,2)/(2*r*r))},cdf:function(n,r,a){return.5*(1+e.erf((n-r)/t.sqrt(2*a*a)))},inv:function(t,n,r){return-1.4142135623730951*r*e.erfcinv(2*t)+n},mean:function(e,t){return e},median:function(e,t){return e},mode:function(e,t){return e},sample:function(t,n){return e.randn()*n+t},variance:function(e,t){return t*t}}),e.extend(e.pareto,{pdf:function(e,n,r){return e<n?0:r*t.pow(n,r)/t.pow(e,r+1)},cdf:function(e,n,r){return e<n?0:1-t.pow(n/e,r)},inv:function(e,n,r){return n/t.pow(1-e,1/r)},mean:function(e,n){if(!(n<=1))return n*t.pow(e,n)/(n-1)},median:function(e,n){return e*(n*t.SQRT2)},mode:function(e,t){return e},variance:function(e,n){if(!(n<=2))return e*e*n/(t.pow(n-1,2)*(n-2))}}),e.extend(e.studentt,{pdf:function(n,r){return r=r>1e100?1e100:r,1/(t.sqrt(r)*e.betafn(.5,r/2))*t.pow(1+n*n/r,-(r+1)/2)},cdf:function(n,r){var a=r/2;return e.ibeta((n+t.sqrt(n*n+r))/(2*t.sqrt(n*n+r)),a,a)},inv:function(n,r){var a=e.ibetainv(2*t.min(n,1-n),.5*r,.5);return a=t.sqrt(r*(1-a)/a),n>.5?a:-a},mean:function(e){return e>1?0:void 0},median:function(e){return 0},mode:function(e){return 0},sample:function(n){return e.randn()*t.sqrt(n/(2*e.randg(n/2)))},variance:function(e){return e>2?e/(e-2):e>1?1/0:void 0}}),e.extend(e.weibull,{pdf:function(e,n,r){return e<0||n<0||r<0?0:r/n*t.pow(e/n,r-1)*t.exp(-t.pow(e/n,r))},cdf:function(e,n,r){return e<0?0:1-t.exp(-t.pow(e/n,r))},inv:function(e,n,r){return n*t.pow(-t.log(1-e),1/r)},mean:function(t,n){return t*e.gammafn(1+1/n)},median:function(e,n){return e*t.pow(t.log(2),1/n)},mode:function(e,n){return n<=1?0:e*t.pow((n-1)/n,1/n)},sample:function(e,n){return e*t.pow(-t.log(t.random()),1/n)},variance:function(n,r){return n*n*e.gammafn(1+2/r)-t.pow(e.weibull.mean(n,r),2)}}),e.extend(e.uniform,{pdf:function(e,t,n){return e<t||e>n?0:1/(n-t)},cdf:function(e,t,n){return e<t?0:e<n?(e-t)/(n-t):1},inv:function(e,t,n){return t+e*(n-t)},mean:function(e,t){return.5*(e+t)},median:function(t,n){return e.mean(t,n)},mode:function(e,t){throw new Error("mode is not yet implemented")},sample:function(e,n){return e/2+n/2+(n/2-e/2)*(2*t.random()-1)},variance:function(e,n){return t.pow(n-e,2)/12}}),e.extend(e.binomial,{pdf:function(n,r,a){return 0===a||1===a?r*a===n?1:0:e.combination(r,n)*t.pow(a,n)*t.pow(1-a,r-n)},cdf:function(t,n,r){var a=[],i=0;if(t<0)return 0;if(t<n){for(;i<=t;i++)a[i]=e.binomial.pdf(i,n,r);return e.sum(a)}return 1}}),e.extend(e.negbin,{pdf:function(n,r,a){return n===n>>>0&&(n<0?0:e.combination(n+r-1,r-1)*t.pow(1-a,n)*t.pow(a,r))},cdf:function(t,n,r){var a=0,i=0;if(t<0)return 0;for(;i<=t;i++)a+=e.negbin.pdf(i,n,r);return a}}),e.extend(e.hypgeom,{pdf:function(n,r,a,i){if(n!=n|0)return!1;if(n<0||n<a-(r-i))return 0;if(n>i||n>a)return 0;if(2*a>r)return 2*i>r?e.hypgeom.pdf(r-a-i+n,r,r-a,r-i):e.hypgeom.pdf(i-n,r,r-a,i);if(2*i>r)return e.hypgeom.pdf(a-n,r,a,r-i);if(a<i)return e.hypgeom.pdf(n,r,i,a);for(var o=1,l=0,s=0;s<n;s++){for(;o>1&&l<i;)o*=1-a/(r-l),l++;o*=(i-s)*(a-s)/((s+1)*(r-a-i+s+1))}for(;l<i;l++)o*=1-a/(r-l);return t.min(1,t.max(0,o))},cdf:function(n,r,a,i){if(n<0||n<a-(r-i))return 0;if(n>=i||n>=a)return 1;if(2*a>r)return 2*i>r?e.hypgeom.cdf(r-a-i+n,r,r-a,r-i):1-e.hypgeom.cdf(i-n-1,r,r-a,i);if(2*i>r)return 1-e.hypgeom.cdf(a-n-1,r,a,r-i);if(a<i)return e.hypgeom.cdf(n,r,i,a);for(var o=1,l=1,s=0,c=0;c<n;c++){for(;o>1&&s<i;){var u=1-a/(r-s);l*=u,o*=u,s++}o+=l*=(i-c)*(a-c)/((c+1)*(r-a-i+c+1))}for(;s<i;s++)o*=1-a/(r-s);return t.min(1,t.max(0,o))}}),e.extend(e.poisson,{pdf:function(n,r){return r<0||n%1!=0||n<0?0:t.pow(r,n)*t.exp(-r)/e.factorial(n)},cdf:function(t,n){var r=[],a=0;if(t<0)return 0;for(;a<=t;a++)r.push(e.poisson.pdf(a,n));return e.sum(r)},mean:function(e){return e},variance:function(e){return e},sample:function(e){var n=1,r=0,a=t.exp(-e);do{r++,n*=t.random()}while(n>a);return r-1}}),e.extend(e.triangular,{pdf:function(e,t,n,r){return n<=t||r<t||r>n?NaN:e<t||e>n?0:e<r?2*(e-t)/((n-t)*(r-t)):e===r?2/(n-t):2*(n-e)/((n-t)*(n-r))},cdf:function(e,n,r,a){return r<=n||a<n||a>r?NaN:e<=n?0:e>=r?1:e<=a?t.pow(e-n,2)/((r-n)*(a-n)):1-t.pow(r-e,2)/((r-n)*(r-a))},inv:function(e,n,r,a){return r<=n||a<n||a>r?NaN:e<=(a-n)/(r-n)?n+(r-n)*t.sqrt(e*((a-n)/(r-n))):n+(r-n)*(1-t.sqrt((1-e)*(1-(a-n)/(r-n))))},mean:function(e,t,n){return(e+t+n)/3},median:function(e,n,r){return r<=(e+n)/2?n-t.sqrt((n-e)*(n-r))/t.sqrt(2):r>(e+n)/2?e+t.sqrt((n-e)*(r-e))/t.sqrt(2):void 0},mode:function(e,t,n){return n},sample:function(e,n,r){var a=t.random();return a<(r-e)/(n-e)?e+t.sqrt(a*(n-e)*(r-e)):n-t.sqrt((1-a)*(n-e)*(n-r))},variance:function(e,t,n){return(e*e+t*t+n*n-e*t-e*n-t*n)/18}}),e.extend(e.arcsine,{pdf:function(e,n,r){return r<=n?NaN:e<=n||e>=r?0:2/t.PI*t.pow(t.pow(r-n,2)-t.pow(2*e-n-r,2),-.5)},cdf:function(e,n,r){return e<n?0:e<r?2/t.PI*t.asin(t.sqrt((e-n)/(r-n))):1},inv:function(e,n,r){return n+(.5-.5*t.cos(t.PI*e))*(r-n)},mean:function(e,t){return t<=e?NaN:(e+t)/2},median:function(e,t){return t<=e?NaN:(e+t)/2},mode:function(e,t){throw new Error("mode is not yet implemented")},sample:function(n,r){return(n+r)/2+(r-n)/2*t.sin(2*t.PI*e.uniform.sample(0,1))},variance:function(e,n){return n<=e?NaN:t.pow(n-e,2)/8}}),e.extend(e.laplace,{pdf:function(e,n,r){return r<=0?0:t.exp(-t.abs(e-n)/r)/(2*r)},cdf:function(e,n,r){return r<=0?0:e<n?.5*t.exp((e-n)/r):1-.5*t.exp(-(e-n)/r)},mean:function(e,t){return e},median:function(e,t){return e},mode:function(e,t){return e},variance:function(e,t){return 2*t*t},sample:function(e,n){var r,a=t.random()-.5;return e-n*((r=a)/t.abs(r))*t.log(1-2*t.abs(a))}}),e.extend(e.tukey,{cdf:function(r,a,i){var o=a,l=[.9894009349916499,.9445750230732326,.8656312023878318,.755404408355003,.6178762444026438,.45801677765722737,.2816035507792589,.09501250983763744],s=[.027152459411754096,.062253523938647894,.09515851168249279,.12462897125553388,.14959598881657674,.16915651939500254,.18260341504492358,.1894506104550685];if(r<=0)return 0;if(i<2||o<2)return NaN;if(!Number.isFinite(r))return 1;if(i>25e3)return n(r,1,o);var c,u=.5*i,f=u*t.log(i)-i*t.log(2)-e.gammaln(u),d=u-1,p=.25*i;c=i<=100?1:i<=800?.5:i<=5e3?.25:.125,f+=t.log(c);for(var h=0,g=1;g<=50;g++){for(var m=0,v=(2*g-1)*c,y=1;y<=16;y++){var x,b;8<y?(x=y-8-1,b=f+d*t.log(v+l[x]*c)-(l[x]*c+v)*p):(x=y-1,b=f+d*t.log(v-l[x]*c)+(l[x]*c-v)*p),b>=-30&&(m+=n(8<y?r*t.sqrt(.5*(l[x]*c+v)):r*t.sqrt(.5*(-l[x]*c+v)),1,o)*s[x]*t.exp(b))}if(g*c>=1&&m<=1e-14)break;h+=m}if(m>1e-14)throw new Error("tukey.cdf failed to converge");return h>1&&(h=1),h},inv:function(n,r,a){if(a<2||r<2)return NaN;if(n<0||n>1)return NaN;if(0===n)return 0;if(1===n)return 1/0;var i,o=function(e,n,r){var a=.5-.5*e,i=t.sqrt(t.log(1/(a*a))),o=i+((((-453642210148e-16*i-.204231210125)*i-.342242088547)*i-1)*i+.322232421088)/((((.0038560700634*i+.10353775285)*i+.531103462366)*i+.588581570495)*i+.099348462606);r<120&&(o+=(o*o*o+o)/r/4);var l=.8832-.2368*o;return r<120&&(l+=-1.214/r+1.208*o/r),o*(l*t.log(n-1)+1.4142)}(n,r,a),l=e.tukey.cdf(o,r,a)-n;i=l>0?t.max(0,o-1):o+1;for(var s,c=e.tukey.cdf(i,r,a)-n,u=1;u<50;u++)if(s=i-c*(i-o)/(c-l),l=c,o=i,s<0&&(s=0,c=-n),c=e.tukey.cdf(s,r,a)-n,i=s,t.abs(i-o)<1e-4)return s;throw new Error("tukey.inv failed to converge")}})}(a,Math),function(e,t){var n,a,o=Array.prototype.push,l=e.utils.isArray;function s(t){return l(t)||t instanceof e}e.extend({add:function(t,n){return s(n)?(s(n[0])||(n=[n]),e.map(t,(function(e,t,r){return e+n[t][r]}))):e.map(t,(function(e){return e+n}))},subtract:function(t,n){return s(n)?(s(n[0])||(n=[n]),e.map(t,(function(e,t,r){return e-n[t][r]||0}))):e.map(t,(function(e){return e-n}))},divide:function(t,n){return s(n)?(s(n[0])||(n=[n]),e.multiply(t,e.inv(n))):e.map(t,(function(e){return e/n}))},multiply:function(t,n){var r,a,i,o,l,c,u,f;if(void 0===t.length&&void 0===n.length)return t*n;if(l=t.length,c=t[0].length,u=e.zeros(l,i=s(n)?n[0].length:c),f=0,s(n)){for(;f<i;f++)for(r=0;r<l;r++){for(o=0,a=0;a<c;a++)o+=t[r][a]*n[a][f];u[r][f]=o}return 1===l&&1===f?u[0][0]:u}return e.map(t,(function(e){return e*n}))},outer:function(t,n){return e.multiply(t.map((function(e){return[e]})),[n])},dot:function(t,n){s(t[0])||(t=[t]),s(n[0])||(n=[n]);for(var r,a,i=1===t[0].length&&1!==t.length?e.transpose(t):t,o=1===n[0].length&&1!==n.length?e.transpose(n):n,l=[],c=0,u=i.length,f=i[0].length;c<u;c++){for(l[c]=[],r=0,a=0;a<f;a++)r+=i[c][a]*o[c][a];l[c]=r}return 1===l.length?l[0]:l},pow:function(n,r){return e.map(n,(function(e){return t.pow(e,r)}))},exp:function(n){return e.map(n,(function(e){return t.exp(e)}))},log:function(n){return e.map(n,(function(e){return t.log(e)}))},abs:function(n){return e.map(n,(function(e){return t.abs(e)}))},norm:function(e,n){var r=0,a=0;for(isNaN(n)&&(n=2),s(e[0])&&(e=e[0]);a<e.length;a++)r+=t.pow(t.abs(e[a]),n);return t.pow(r,1/n)},angle:function(n,r){return t.acos(e.dot(n,r)/(e.norm(n)*e.norm(r)))},aug:function(e,t){for(var n=[],r=0;r<e.length;r++)n.push(e[r].slice());for(r=0;r<n.length;r++)o.apply(n[r],t[r]);return n},inv:function(t){for(var n,r=t.length,a=t[0].length,i=e.identity(r,a),o=e.gauss_jordan(t,i),l=[],s=0;s<r;s++)for(l[s]=[],n=a;n<o[0].length;n++)l[s][n-a]=o[s][n];return l},det:function(e){var t,n=e.length,r=2*n,a=new Array(r),i=n-1,o=r-1,l=i-n+1,s=o,c=0,u=0;if(2===n)return e[0][0]*e[1][1]-e[0][1]*e[1][0];for(;c<r;c++)a[c]=1;for(c=0;c<n;c++){for(t=0;t<n;t++)a[l<0?l+n:l]*=e[c][t],a[s<n?s+n:s]*=e[c][t],l++,s--;l=--i-n+1,s=--o}for(c=0;c<n;c++)u+=a[c];for(;c<r;c++)u-=a[c];return u},gauss_elimination:function(n,r){var a,i,o,l,s=0,c=0,u=n.length,f=n[0].length,d=1,p=0,h=[];for(a=(n=e.aug(n,r))[0].length,s=0;s<u;s++){for(i=n[s][s],c=s,l=s+1;l<f;l++)i<t.abs(n[l][s])&&(i=n[l][s],c=l);if(c!=s)for(l=0;l<a;l++)o=n[s][l],n[s][l]=n[c][l],n[c][l]=o;for(c=s+1;c<u;c++)for(d=n[c][s]/n[s][s],l=s;l<a;l++)n[c][l]=n[c][l]-d*n[s][l]}for(s=u-1;s>=0;s--){for(p=0,c=s+1;c<=u-1;c++)p+=h[c]*n[s][c];h[s]=(n[s][a-1]-p)/n[s][s]}return h},gauss_jordan:function(n,r){for(var a=e.aug(n,r),i=a.length,o=a[0].length,l=0,s=0;s<i;s++){for(var c=s,u=s+1;u<i;u++)t.abs(a[u][s])>t.abs(a[c][s])&&(c=u);var f=a[s];for(a[s]=a[c],a[c]=f,u=s+1;u<i;u++){l=a[u][s]/a[s][s];for(var d=s;d<o;d++)a[u][d]-=a[s][d]*l}}for(s=i-1;s>=0;s--){for(l=a[s][s],u=0;u<s;u++)for(d=o-1;d>s-1;d--)a[u][d]-=a[s][d]*a[u][s]/l;for(a[s][s]/=l,d=i;d<o;d++)a[s][d]/=l}return a},triaUpSolve:function(t,n){var r,a=t[0].length,i=e.zeros(1,a)[0],o=!1;return null!=n[0].length&&(n=n.map((function(e){return e[0]})),o=!0),e.arange(a-1,-1,-1).forEach((function(o){r=e.arange(o+1,a).map((function(e){return i[e]*t[o][e]})),i[o]=(n[o]-e.sum(r))/t[o][o]})),o?i.map((function(e){return[e]})):i},triaLowSolve:function(t,n){var r,a=t[0].length,i=e.zeros(1,a)[0],o=!1;return null!=n[0].length&&(n=n.map((function(e){return e[0]})),o=!0),e.arange(a).forEach((function(a){r=e.arange(a).map((function(e){return t[a][e]*i[e]})),i[a]=(n[a]-e.sum(r))/t[a][a]})),o?i.map((function(e){return[e]})):i},lu:function(t){var n,r=t.length,a=e.identity(r),o=e.zeros(t.length,t[0].length);return e.arange(r).forEach((function(e){o[0][e]=t[0][e]})),e.arange(1,r).forEach((function(l){e.arange(l).forEach((function(r){n=e.arange(r).map((function(e){return a[l][e]*o[e][r]})),a[l][r]=(t[l][r]-e.sum(n))/o[r][r]})),e.arange(l,r).forEach((function(r){n=e.arange(l).map((function(e){return a[l][e]*o[e][r]})),o[l][r]=t[i][r]-e.sum(n)}))})),[a,o]},cholesky:function(n){var r,a=n.length,i=e.zeros(n.length,n[0].length);return e.arange(a).forEach((function(o){r=e.arange(o).map((function(e){return t.pow(i[o][e],2)})),i[o][o]=t.sqrt(n[o][o]-e.sum(r)),e.arange(o+1,a).forEach((function(t){r=e.arange(o).map((function(e){return i[o][e]*i[t][e]})),i[t][o]=(n[o][t]-e.sum(r))/i[o][o]}))})),i},gauss_jacobi:function(n,r,a,i){for(var o,l,s,c,u=0,f=0,d=n.length,p=[],h=[],g=[];u<d;u++)for(p[u]=[],h[u]=[],g[u]=[],f=0;f<d;f++)u>f?(p[u][f]=n[u][f],h[u][f]=g[u][f]=0):u<f?(h[u][f]=n[u][f],p[u][f]=g[u][f]=0):(g[u][f]=n[u][f],p[u][f]=h[u][f]=0);for(s=e.multiply(e.multiply(e.inv(g),e.add(p,h)),-1),l=e.multiply(e.inv(g),r),o=a,c=e.add(e.multiply(s,a),l),u=2;t.abs(e.norm(e.subtract(c,o)))>i;)o=c,c=e.add(e.multiply(s,o),l),u++;return c},gauss_seidel:function(n,r,a,i){for(var o,l,s,c,u,f=0,d=n.length,p=[],h=[],g=[];f<d;f++)for(p[f]=[],h[f]=[],g[f]=[],o=0;o<d;o++)f>o?(p[f][o]=n[f][o],h[f][o]=g[f][o]=0):f<o?(h[f][o]=n[f][o],p[f][o]=g[f][o]=0):(g[f][o]=n[f][o],p[f][o]=h[f][o]=0);for(c=e.multiply(e.multiply(e.inv(e.add(g,p)),h),-1),s=e.multiply(e.inv(e.add(g,p)),r),l=a,u=e.add(e.multiply(c,a),s),f=2;t.abs(e.norm(e.subtract(u,l)))>i;)l=u,u=e.add(e.multiply(c,l),s),f+=1;return u},SOR:function(n,r,a,i,o){for(var l,s,c,u,f,d=0,p=n.length,h=[],g=[],m=[];d<p;d++)for(h[d]=[],g[d]=[],m[d]=[],l=0;l<p;l++)d>l?(h[d][l]=n[d][l],g[d][l]=m[d][l]=0):d<l?(g[d][l]=n[d][l],h[d][l]=m[d][l]=0):(m[d][l]=n[d][l],h[d][l]=g[d][l]=0);for(u=e.multiply(e.inv(e.add(m,e.multiply(h,o))),e.subtract(e.multiply(m,1-o),e.multiply(g,o))),c=e.multiply(e.multiply(e.inv(e.add(m,e.multiply(h,o))),r),o),s=a,f=e.add(e.multiply(u,a),c),d=2;t.abs(e.norm(e.subtract(f,s)))>i;)s=f,f=e.add(e.multiply(u,s),c),d++;return f},householder:function(n){for(var r,a,i,o,l=n.length,s=n[0].length,c=0,u=[],f=[];c<l-1;c++){for(r=0,o=c+1;o<s;o++)r+=n[o][c]*n[o][c];for(r=(n[c+1][c]>0?-1:1)*t.sqrt(r),a=t.sqrt((r*r-n[c+1][c]*r)/2),(u=e.zeros(l,1))[c+1][0]=(n[c+1][c]-r)/(2*a),i=c+2;i<l;i++)u[i][0]=n[i][c]/(2*a);f=e.subtract(e.identity(l,s),e.multiply(e.multiply(u,e.transpose(u)),2)),n=e.multiply(f,e.multiply(n,f))}return n},QR:(n=e.sum,a=e.arange,function(i){var o,l,s,c=i.length,u=i[0].length;for(i=e.copy(i),r=e.zeros(u,u),l=0;l<u;l++){for(r[l][l]=t.sqrt(n(a(c).map((function(e){return i[e][l]*i[e][l]})))),o=0;o<c;o++)i[o][l]=i[o][l]/r[l][l];for(s=l+1;s<u;s++)for(r[l][s]=n(a(c).map((function(e){return i[e][l]*i[e][s]}))),o=0;o<c;o++)i[o][s]=i[o][s]-i[o][l]*r[l][s]}return[i,r]}),lstsq:function(t,n){var r=!1;void 0===n[0].length&&(n=n.map((function(e){return[e]})),r=!0);var a=e.QR(t),i=a[0],o=a[1],l=t[0].length,s=e.slice(i,{col:{end:l}}),c=function(t){var n=(t=e.copy(t)).length,r=e.identity(n);return e.arange(n-1,-1,-1).forEach((function(n){e.sliceAssign(r,{row:n},e.divide(e.slice(r,{row:n}),t[n][n])),e.sliceAssign(t,{row:n},e.divide(e.slice(t,{row:n}),t[n][n])),e.arange(n).forEach((function(a){var i=e.multiply(t[a][n],-1),o=e.slice(t,{row:a}),l=e.multiply(e.slice(t,{row:n}),i);e.sliceAssign(t,{row:a},e.add(o,l));var s=e.slice(r,{row:a}),c=e.multiply(e.slice(r,{row:n}),i);e.sliceAssign(r,{row:a},e.add(s,c))}))})),r}(e.slice(o,{row:{end:l}})),u=e.transpose(s);void 0===u[0].length&&(u=[u]);var f=e.multiply(e.multiply(c,u),n);return void 0===f.length&&(f=[[f]]),r?f.map((function(e){return e[0]})):f},jacobi:function(n){for(var r,a,i,o,l,s,c=1,u=n.length,f=e.identity(u,u),d=[];1===c;){o=n[0][1],a=0,i=1;for(var p=0;p<u;p++)for(r=0;r<u;r++)p!=r&&o<t.abs(n[p][r])&&(o=t.abs(n[p][r]),a=p,i=r);for(l=n[a][a]===n[i][i]?n[a][i]>0?t.PI/4:-t.PI/4:t.atan(2*n[a][i]/(n[a][a]-n[i][i]))/2,(s=e.identity(u,u))[a][a]=t.cos(l),s[a][i]=-t.sin(l),s[i][a]=t.sin(l),s[i][i]=t.cos(l),f=e.multiply(f,s),n=e.multiply(e.multiply(e.inv(s),n),s),c=0,p=1;p<u;p++)for(r=1;r<u;r++)p!=r&&t.abs(n[p][r])>.001&&(c=1)}for(p=0;p<u;p++)d.push(n[p][p]);return[f,d]},rungekutta:function(e,t,n,r,a,i){var o,l,s;if(2===i)for(;r<=n;)a+=((o=t*e(r,a))+(l=t*e(r+t,a+o)))/2,r+=t;if(4===i)for(;r<=n;)a+=((o=t*e(r,a))+2*(l=t*e(r+t/2,a+o/2))+2*(s=t*e(r+t/2,a+l/2))+t*e(r+t,a+s))/6,r+=t;return a},romberg:function(e,n,r,a){for(var i,o,l,s,c,u=0,f=(r-n)/2,d=[],p=[],h=[];u<a/2;){for(c=e(n),l=n,s=0;l<=r;l+=f,s++)d[s]=l;for(i=d.length,l=1;l<i-1;l++)c+=(l%2!=0?4:2)*e(d[l]);c=f/3*(c+e(r)),h[u]=c,f/=2,u++}for(o=h.length,i=1;1!==o;){for(l=0;l<o-1;l++)p[l]=(t.pow(4,i)*h[l+1]-h[l])/(t.pow(4,i)-1);o=p.length,h=p,p=[],i++}return h},richardson:function(e,n,r,a){function i(e,t){for(var n,r=0,a=e.length;r<a;r++)e[r]===t&&(n=r);return n}e.length;for(var o,l,s,c,u,f=t.abs(r-e[i(e,r)+1]),d=0,p=[],h=[];a>=f;)o=i(e,r+a),l=i(e,r),p[d]=(n[o]-2*n[l]+n[2*l-o])/(a*a),a/=2,d++;for(c=p.length,s=1;1!=c;){for(u=0;u<c-1;u++)h[u]=(t.pow(4,s)*p[u+1]-p[u])/(t.pow(4,s)-1);c=h.length,p=h,h=[],s++}return p},simpson:function(e,t,n,r){for(var a,i=(n-t)/r,o=e(t),l=[],s=t,c=0,u=1;s<=n;s+=i,c++)l[c]=s;for(a=l.length;u<a-1;u++)o+=(u%2!=0?4:2)*e(l[u]);return i/3*(o+e(n))},hermite:function(e,t,n,r){for(var a,i=e.length,o=0,l=0,s=[],c=[],u=[],f=[];l<i;l++){for(s[l]=1,a=0;a<i;a++)l!=a&&(s[l]*=(r-e[a])/(e[l]-e[a]));for(c[l]=0,a=0;a<i;a++)l!=a&&(c[l]+=1/(e[l]-e[a]));u[l]=(1-2*(r-e[l])*c[l])*(s[l]*s[l]),f[l]=(r-e[l])*(s[l]*s[l]),o+=u[l]*t[l]+f[l]*n[l]}return o},lagrange:function(e,t,n){for(var r,a,i=0,o=0,l=e.length;o<l;o++){for(a=t[o],r=0;r<l;r++)o!=r&&(a*=(n-e[r])/(e[o]-e[r]));i+=a}return i},cubic_spline:function(t,n,r){for(var a,i,o=t.length,l=0,s=[],c=[],u=[],f=[],d=[],p=[];l<o-1;l++)f[l]=t[l+1]-t[l];for(u[0]=0,l=1;l<o-1;l++)u[l]=3/f[l]*(n[l+1]-n[l])-3/f[l-1]*(n[l]-n[l-1]);for(l=1;l<o-1;l++)s[l]=[],c[l]=[],s[l][l-1]=f[l-1],s[l][l]=2*(f[l-1]+f[l]),s[l][l+1]=f[l],c[l][0]=u[l];for(i=e.multiply(e.inv(s),c),a=0;a<o-1;a++)d[a]=(n[a+1]-n[a])/f[a]-f[a]*(i[a+1][0]+2*i[a][0])/3,p[a]=(i[a+1][0]-i[a][0])/(3*f[a]);for(a=0;a<o&&!(t[a]>r);a++);return n[a-=1]+(r-t[a])*d[a]+e.sq(r-t[a])*i[a]+(r-t[a])*e.sq(r-t[a])*p[a]},gauss_quadrature:function(){throw new Error("gauss_quadrature not yet implemented")},PCA:function(t){var n,r,a,i,o,l=t.length,s=t[0].length,c=0,u=[],f=[],d=[],p=[],h=[],g=[],m=[];for(c=0;c<l;c++)u[c]=e.sum(t[c])/s;for(c=0;c<s;c++)for(h[c]=[],n=0;n<l;n++)h[c][n]=t[n][c]-u[n];for(h=e.transpose(h),c=0;c<l;c++)for(g[c]=[],n=0;n<l;n++)g[c][n]=e.dot([h[c]],[h[n]])/(s-1);for(o=(a=e.jacobi(g))[0],f=a[1],m=e.transpose(o),c=0;c<f.length;c++)for(n=c;n<f.length;n++)f[c]<f[n]&&(r=f[c],f[c]=f[n],f[n]=r,d=m[c],m[c]=m[n],m[n]=d);for(i=e.transpose(h),c=0;c<l;c++)for(p[c]=[],n=0;n<i.length;n++)p[c][n]=e.dot([m[c]],[i[n]]);return[t,f,m,p]}}),function(t){for(var n=0;n<t.length;n++)!function(t){e.fn[t]=function(n,r){var a=this;return r?(setTimeout((function(){r.call(a,e.fn[t].call(a,n))}),15),this):"number"==typeof e[t](this,n)?e[t](this,n):e(e[t](this,n))}}(t[n])}("add divide multiply subtract dot pow exp log abs norm angle".split(" "))}(a,Math),function(e,t){var n=[].slice,r=e.utils.isNumber,a=e.utils.isArray;function i(e,n,r,a){if(e>1||r>1||e<=0||r<=0)throw new Error("Proportions should be greater than 0 and less than 1");var i=(e*n+r*a)/(n+a);return(e-r)/t.sqrt(i*(1-i)*(1/n+1/a))}e.extend({zscore:function(){var t=n.call(arguments);return r(t[1])?(t[0]-t[1])/t[2]:(t[0]-e.mean(t[1]))/e.stdev(t[1],t[2])},ztest:function(){var r,i=n.call(arguments);return a(i[1])?(r=e.zscore(i[0],i[1],i[3]),1===i[2]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1)):i.length>2?(r=e.zscore(i[0],i[1],i[2]),1===i[3]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1)):(r=i[0],1===i[1]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1))}}),e.extend(e.fn,{zscore:function(e,t){return(e-this.mean())/this.stdev(t)},ztest:function(n,r,a){var i=t.abs(this.zscore(n,a));return 1===r?e.normal.cdf(-i,0,1):2*e.normal.cdf(-i,0,1)}}),e.extend({tscore:function(){var r=n.call(arguments);return 4===r.length?(r[0]-r[1])/(r[2]/t.sqrt(r[3])):(r[0]-e.mean(r[1]))/(e.stdev(r[1],!0)/t.sqrt(r[1].length))},ttest:function(){var a,i=n.call(arguments);return 5===i.length?(a=t.abs(e.tscore(i[0],i[1],i[2],i[3])),1===i[4]?e.studentt.cdf(-a,i[3]-1):2*e.studentt.cdf(-a,i[3]-1)):r(i[1])?(a=t.abs(i[0]),1==i[2]?e.studentt.cdf(-a,i[1]-1):2*e.studentt.cdf(-a,i[1]-1)):(a=t.abs(e.tscore(i[0],i[1])),1==i[2]?e.studentt.cdf(-a,i[1].length-1):2*e.studentt.cdf(-a,i[1].length-1))}}),e.extend(e.fn,{tscore:function(e){return(e-this.mean())/(this.stdev(!0)/t.sqrt(this.cols()))},ttest:function(n,r){return 1===r?1-e.studentt.cdf(t.abs(this.tscore(n)),this.cols()-1):2*e.studentt.cdf(-t.abs(this.tscore(n)),this.cols()-1)}}),e.extend({anovafscore:function(){var r,a,i,o,l,s,c,u=n.call(arguments);if(1===u.length){l=new Array(u[0].length);for(var f=0;f<u[0].length;f++)l[f]=u[0][f];u=l}if(2===u.length)return e.variance(u[0])/e.variance(u[1]);for(a=new Array,f=0;f<u.length;f++)a=a.concat(u[f]);for(i=e.mean(a),r=0,f=0;f<u.length;f++)r+=u[f].length*t.pow(e.mean(u[f])-i,2);for(r/=u.length-1,s=0,f=0;f<u.length;f++)for(o=e.mean(u[f]),c=0;c<u[f].length;c++)s+=t.pow(u[f][c]-o,2);return r/(s/=a.length-u.length)},anovaftest:function(){var t,a,i,o=n.call(arguments);if(r(o[0]))return 1-e.centralF.cdf(o[0],o[1],o[2]);anovafscore=e.anovafscore(o),t=o.length-1,i=0;for(var l=0;l<o.length;l++)i+=o[l].length;return a=i-t-1,1-e.centralF.cdf(anovafscore,t,a)},ftest:function(t,n,r){return 1-e.centralF.cdf(t,n,r)}}),e.extend(e.fn,{anovafscore:function(){return e.anovafscore(this.toArray())},anovaftes:function(){for(var t=0,n=0;n<this.length;n++)t+=this[n].length;return e.ftest(this.anovafscore(),this.length-1,t-this.length)}}),e.extend({qscore:function(){var a,i,o,l,s,c=n.call(arguments);return r(c[0])?(a=c[0],i=c[1],o=c[2],l=c[3],s=c[4]):(a=e.mean(c[0]),i=e.mean(c[1]),o=c[0].length,l=c[1].length,s=c[2]),t.abs(a-i)/(s*t.sqrt((1/o+1/l)/2))},qtest:function(){var t,r=n.call(arguments);3===r.length?(t=r[0],r=r.slice(1)):7===r.length?(t=e.qscore(r[0],r[1],r[2],r[3],r[4]),r=r.slice(5)):(t=e.qscore(r[0],r[1],r[2]),r=r.slice(3));var a=r[0],i=r[1];return 1-e.tukey.cdf(t,i,a-i)},tukeyhsd:function(t){for(var n=e.pooledstdev(t),r=t.map((function(t){return e.mean(t)})),a=t.reduce((function(e,t){return e+t.length}),0),i=[],o=0;o<t.length;++o)for(var l=o+1;l<t.length;++l){var s=e.qtest(r[o],r[l],t[o].length,t[l].length,n,a,t.length);i.push([[o,l],s])}return i}}),e.extend({normalci:function(){var r,a=n.call(arguments),i=new Array(2);return r=4===a.length?t.abs(e.normal.inv(a[1]/2,0,1)*a[2]/t.sqrt(a[3])):t.abs(e.normal.inv(a[1]/2,0,1)*e.stdev(a[2])/t.sqrt(a[2].length)),i[0]=a[0]-r,i[1]=a[0]+r,i},tci:function(){var r,a=n.call(arguments),i=new Array(2);return r=4===a.length?t.abs(e.studentt.inv(a[1]/2,a[3]-1)*a[2]/t.sqrt(a[3])):t.abs(e.studentt.inv(a[1]/2,a[2].length-1)*e.stdev(a[2],!0)/t.sqrt(a[2].length)),i[0]=a[0]-r,i[1]=a[0]+r,i},significant:function(e,t){return e<t}}),e.extend(e.fn,{normalci:function(t,n){return e.normalci(t,n,this.toArray())},tci:function(t,n){return e.tci(t,n,this.toArray())}}),e.extend(e.fn,{oneSidedDifferenceOfProportions:function(t,n,r,a){var o=i(t,n,r,a);return e.ztest(o,1)},twoSidedDifferenceOfProportions:function(t,n,r,a){var o=i(t,n,r,a);return e.ztest(o,2)}})}(a,Math),a.models=function(){function e(e,t){var n=e.length,r=t[0].length-1,i=n-r-1,o=a.lstsq(t,e),l=a.multiply(t,o.map((function(e){return[e]}))).map((function(e){return e[0]})),s=a.subtract(e,l),c=a.mean(e),u=a.sum(l.map((function(e){return Math.pow(e-c,2)}))),f=a.sum(e.map((function(e,t){return Math.pow(e-l[t],2)}))),d=u+f;return{exog:t,endog:e,nobs:n,df_model:r,df_resid:i,coef:o,predict:l,resid:s,ybar:c,SST:d,SSE:u,SSR:f,R2:u/d}}function t(t){var n,r,i=(n=t.exog,r=n[0].length,a.arange(r).map((function(t){var i=a.arange(r).filter((function(e){return e!==t}));return e(a.col(n,t).map((function(e){return e[0]})),a.col(n,i))}))),o=Math.sqrt(t.SSR/t.df_resid),l=i.map((function(e){var t=e.SST,n=e.R2;return o/Math.sqrt(t*(1-n))})),s=t.coef.map((function(e,t){return(e-0)/l[t]})),c=s.map((function(e){var n=a.studentt.cdf(e,t.df_resid);return 2*(n>.5?1-n:n)})),u=a.studentt.inv(.975,t.df_resid),f=t.coef.map((function(e,t){var n=u*l[t];return[e-n,e+n]}));return{se:l,t:s,p:c,sigmaHat:o,interval95:f}}return{ols:function(n,r){var i=e(n,r),o=t(i),l=function(e){var t,n,r,i=e.R2/e.df_model/((1-e.R2)/e.df_resid);return{F_statistic:i,pvalue:1-(t=i,n=e.df_model,r=e.df_resid,a.beta.cdf(t/(r/n+t),n/2,r/2))}}(i),s=1-(1-i.R2)*((i.nobs-1)/i.df_resid);return i.t=o,i.f=l,i.adjust_R2=s,i}}}(),a.jStat=a,a)},,function(e,t,n){"use strict"; -/** @license React v16.8.4 - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(3),a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,u=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,g=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function y(e,t,n,r,a,i,o,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],c=0;(e=Error(t.replace(/%s/g,(function(){return s[c++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function x(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);y(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function w(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}function k(){}function T(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&x("85"),this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=w.prototype;var M=T.prototype=new k;M.constructor=T,r(M,w.prototype),M.isPureReactComponent=!0;var A={current:null},S={current:null},L=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var r=void 0,a={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)L.call(t,r)&&!C.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===a[r]&&(a[r]=s[r]);return{$$typeof:i,type:e,key:o,ref:l,props:a,_owner:S.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var E=/\/+/g,z=[];function D(e,t,n,r){if(z.length){var a=z.pop();return a.result=e,a.keyPrefix=t,a.func=n,a.context=r,a.count=0,a}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function R(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>z.length&&z.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case o:s=!0}}if(s)return r(a,t,""===n?"."+N(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+N(l=t[c],c);s+=e(l,u,r,a)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=v&&t[v]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(l=t.next()).done;)s+=e(l=l.value,u=n+N(l,c++),r,a);else"object"===l&&x("31","[object Object]"===(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return s}(e,"",t,n)}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function F(e,t){e.func.call(e.context,t,e.count++)}function B(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?j(e,r,n,(function(e){return e})):null!=e&&(P(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(E,"$&/")+"/")+n)),r.push(e))}function j(e,t,n,r,a){var i="";null!=n&&(i=(""+n).replace(E,"$&/")+"/"),I(e,B,t=D(t,i,r,a)),R(t)}function H(){var e=A.current;return null===e&&x("307"),e}var q={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return j(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;I(e,F,t=D(null,null,t,n)),R(t)},count:function(e){return I(e,(function(){return null}),null)},toArray:function(e){var t=[];return j(e,t,null,(function(e){return e})),t},only:function(e){return P(e)||x("143"),e}},createRef:function(){return{current:null}},Component:w,PureComponent:T,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:g,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return H().useCallback(e,t)},useContext:function(e,t){return H().useContext(e,t)},useEffect:function(e,t){return H().useEffect(e,t)},useImperativeHandle:function(e,t,n){return H().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return H().useLayoutEffect(e,t)},useMemo:function(e,t){return H().useMemo(e,t)},useReducer:function(e,t,n){return H().useReducer(e,t,n)},useRef:function(e){return H().useRef(e)},useState:function(e){return H().useState(e)},Fragment:l,StrictMode:s,Suspense:h,createElement:O,cloneElement:function(e,t,n){null==e&&x("267",e);var a=void 0,o=r({},e.props),l=e.key,s=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,c=S.current),void 0!==t.key&&(l=""+t.key);var u=void 0;for(a in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)L.call(t,a)&&!C.hasOwnProperty(a)&&(o[a]=void 0===t[a]&&void 0!==u?u[a]:t[a])}if(1===(a=arguments.length-2))o.children=n;else if(1<a){u=Array(a);for(var f=0;f<a;f++)u[f]=arguments[f+2];o.children=u}return{$$typeof:i,type:e.type,key:l,ref:s,props:o,_owner:c}},createFactory:function(e){var t=O.bind(null,e);return t.type=e,t},isValidElement:P,version:"16.8.4",unstable_ConcurrentMode:d,unstable_Profiler:c,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:A,ReactCurrentOwner:S,assign:r}},V={default:q},U=V&&q||V;e.exports=U.default||U},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(9)},function(e,t,n){"use strict"; -/** @license React v16.8.4 - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(0),a=n(3),i=n(10);function o(e,t,n,r,a,i,o,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],c=0;(e=Error(t.replace(/%s/g,(function(){return s[c++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function l(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);o(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function s(e,t,n,r,a,i,o,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}r||l("227");var c=!1,u=null,f=!1,d=null,p={onError:function(e){c=!0,u=e}};function h(e,t,n,r,a,i,o,l,f){c=!1,u=null,s.apply(p,arguments)}var g=null,m={};function v(){if(g)for(var e in m){var t=m[e],n=g.indexOf(e);if(-1<n||l("96",e),!x[n])for(var r in t.extractEvents||l("97",e),x[n]=t,n=t.eventTypes){var a=void 0,i=n[r],o=t,s=r;b.hasOwnProperty(s)&&l("99",s),b[s]=i;var c=i.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&y(c[a],o,s);a=!0}else i.registrationName?(y(i.registrationName,o,s),a=!0):a=!1;a||l("98",r,e)}}}function y(e,t,n){_[e]&&l("100",e),_[e]=t,w[e]=t.eventTypes[n].dependencies}var x=[],b={},_={},w={},k=null,T=null,M=null;function A(e,t,n){var r=e.type||"unknown-event";e.currentTarget=M(n),function(e,t,n,r,a,i,o,s,p){if(h.apply(this,arguments),c){if(c){var g=u;c=!1,u=null}else l("198"),g=void 0;f||(f=!0,d=g)}}(r,t,void 0,e),e.currentTarget=null}function S(e,t){return null==t&&l("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function L(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var C=null;function O(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)A(e,t[r],n[r]);else t&&A(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var P={injectEventPluginOrder:function(e){g&&l("101"),g=Array.prototype.slice.call(e),v()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];m.hasOwnProperty(t)&&m[t]===r||(m[t]&&l("102",t),m[t]=r,n=!0)}n&&v()}};function E(e,t){var n=e.stateNode;if(!n)return null;var r=k(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&l("231",t,typeof n),n)}function z(e){if(null!==e&&(C=S(C,e)),e=C,C=null,e&&(L(e,O),C&&l("95"),f))throw e=d,f=!1,d=null,e}var D=Math.random().toString(36).slice(2),R="__reactInternalInstance$"+D,I="__reactEventHandlers$"+D;function N(e){if(e[R])return e[R];for(;!e[R];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[R]).tag||6===e.tag?e:null}function F(e){return!(e=e[R])||5!==e.tag&&6!==e.tag?null:e}function B(e){if(5===e.tag||6===e.tag)return e.stateNode;l("33")}function j(e){return e[I]||null}function H(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function q(e,t,n){(t=E(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function V(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=H(t);for(t=n.length;0<t--;)q(n[t],"captured",e);for(t=0;t<n.length;t++)q(n[t],"bubbled",e)}}function U(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=E(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function G(e){e&&e.dispatchConfig.registrationName&&U(e._targetInst,null,e)}function Z(e){L(e,V)}var W=!("undefined"==typeof window||!window.document||!window.document.createElement);function Y(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var X={animationend:Y("Animation","AnimationEnd"),animationiteration:Y("Animation","AnimationIteration"),animationstart:Y("Animation","AnimationStart"),transitionend:Y("Transition","TransitionEnd")},$={},Q={};function K(e){if($[e])return $[e];if(!X[e])return e;var t,n=X[e];for(t in n)if(n.hasOwnProperty(t)&&t in Q)return $[e]=n[t];return e}W&&(Q=document.createElement("div").style,"AnimationEvent"in window||(delete X.animationend.animation,delete X.animationiteration.animation,delete X.animationstart.animation),"TransitionEvent"in window||delete X.transitionend.transition);var J=K("animationend"),ee=K("animationiteration"),te=K("animationstart"),ne=K("transitionend"),re="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ae=null,ie=null,oe=null;function le(){if(oe)return oe;var e,t,n=ie,r=n.length,a="value"in ae?ae.value:ae.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return oe=a.slice(e,1<t?1-t:void 0)}function se(){return!0}function ce(){return!1}function ue(e,t,n,r){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(n):"target"===a?this.target=r:this[a]=n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?se:ce,this.isPropagationStopped=ce,this}function fe(e,t,n,r){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)}function de(e){e instanceof this||l("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=fe,e.release=de}a(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=se)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=se)},persist:function(){this.isPersistent=se},isPersistent:ce,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ce,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return a(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,pe(n),n},pe(ue);var he=ue.extend({data:null}),ge=ue.extend({data:null}),me=[9,13,27,32],ve=W&&"CompositionEvent"in window,ye=null;W&&"documentMode"in document&&(ye=document.documentMode);var xe=W&&"TextEvent"in window&&!ye,be=W&&(!ve||ye&&8<ye&&11>=ye),_e=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ke=!1;function Te(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Me(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ae=!1;var Se={eventTypes:we,extractEvents:function(e,t,n,r){var a=void 0,i=void 0;if(ve)e:{switch(e){case"compositionstart":a=we.compositionStart;break e;case"compositionend":a=we.compositionEnd;break e;case"compositionupdate":a=we.compositionUpdate;break e}a=void 0}else Ae?Te(e,n)&&(a=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=we.compositionStart);return a?(be&&"ko"!==n.locale&&(Ae||a!==we.compositionStart?a===we.compositionEnd&&Ae&&(i=le()):(ie="value"in(ae=r)?ae.value:ae.textContent,Ae=!0)),a=he.getPooled(a,t,n,r),i?a.data=i:null!==(i=Me(n))&&(a.data=i),Z(a),i=a):i=null,(e=xe?function(e,t){switch(e){case"compositionend":return Me(t);case"keypress":return 32!==t.which?null:(ke=!0,_e);case"textInput":return(e=t.data)===_e&&ke?null:e;default:return null}}(e,n):function(e,t){if(Ae)return"compositionend"===e||!ve&&Te(e,t)?(e=le(),oe=ie=ae=null,Ae=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return be&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=ge.getPooled(we.beforeInput,t,n,r)).data=e,Z(t)):t=null,null===i?t:null===t?i:[i,t]}},Le=null,Ce=null,Oe=null;function Pe(e){if(e=T(e)){"function"!=typeof Le&&l("280");var t=k(e.stateNode);Le(e.stateNode,e.type,t)}}function Ee(e){Ce?Oe?Oe.push(e):Oe=[e]:Ce=e}function ze(){if(Ce){var e=Ce,t=Oe;if(Oe=Ce=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function De(e,t){return e(t)}function Re(e,t,n){return e(t,n)}function Ie(){}var Ne=!1;function Fe(e,t){if(Ne)return e(t);Ne=!0;try{return De(e,t)}finally{Ne=!1,(null!==Ce||null!==Oe)&&(Ie(),ze())}}var Be={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function je(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Be[e.type]:"textarea"===t}function He(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function qe(e){if(!W)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Ve(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ue(e){e._valueTracker||(e._valueTracker=function(e){var t=Ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ge(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ve(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ze=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ze.hasOwnProperty("ReactCurrentDispatcher")||(Ze.ReactCurrentDispatcher={current:null});var We=/^(.*)[\\\/]/,Ye="function"==typeof Symbol&&Symbol.for,Xe=Ye?Symbol.for("react.element"):60103,$e=Ye?Symbol.for("react.portal"):60106,Qe=Ye?Symbol.for("react.fragment"):60107,Ke=Ye?Symbol.for("react.strict_mode"):60108,Je=Ye?Symbol.for("react.profiler"):60114,et=Ye?Symbol.for("react.provider"):60109,tt=Ye?Symbol.for("react.context"):60110,nt=Ye?Symbol.for("react.concurrent_mode"):60111,rt=Ye?Symbol.for("react.forward_ref"):60112,at=Ye?Symbol.for("react.suspense"):60113,it=Ye?Symbol.for("react.memo"):60115,ot=Ye?Symbol.for("react.lazy"):60116,lt="function"==typeof Symbol&&Symbol.iterator;function st(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=lt&&e[lt]||e["@@iterator"])?e:null}function ct(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case nt:return"ConcurrentMode";case Qe:return"Fragment";case $e:return"Portal";case Je:return"Profiler";case Ke:return"StrictMode";case at:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case rt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case it:return ct(e.type);case ot:if(e=1===e._status?e._result:null)return ct(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,a=e._debugSource,i=ct(e.type);n=null,r&&(n=ct(r.type)),r=i,i="",a?i=" (at "+a.fileName.replace(We,"")+":"+a.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var ft=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,dt=Object.prototype.hasOwnProperty,pt={},ht={};function gt(e,t,n,r,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t}var mt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){mt[e]=new gt(e,0,!1,e,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];mt[t]=new gt(t,1,!1,e[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){mt[e]=new gt(e,2,!1,e.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){mt[e]=new gt(e,2,!1,e,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){mt[e]=new gt(e,3,!1,e.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(e){mt[e]=new gt(e,3,!0,e,null)})),["capture","download"].forEach((function(e){mt[e]=new gt(e,4,!1,e,null)})),["cols","rows","size","span"].forEach((function(e){mt[e]=new gt(e,6,!1,e,null)})),["rowSpan","start"].forEach((function(e){mt[e]=new gt(e,5,!1,e.toLowerCase(),null)}));var vt=/[\-:]([a-z])/g;function yt(e){return e[1].toUpperCase()}function xt(e,t,n,r){var a=mt.hasOwnProperty(t)?mt[t]:null;(null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!dt.call(ht,e)||!dt.call(pt,e)&&(ft.test(e)?ht[e]=!0:(pt[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function bt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function _t(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function wt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=bt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function kt(e,t){null!=(t=t.checked)&&xt(e,"checked",t,!1)}function Tt(e,t){kt(e,t);var n=bt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?At(e,t.type,n):t.hasOwnProperty("defaultValue")&&At(e,t.type,bt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Mt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function At(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(vt,yt);mt[t]=new gt(t,1,!1,e,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(vt,yt);mt[t]=new gt(t,1,!1,e,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(vt,yt);mt[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")})),["tabIndex","crossOrigin"].forEach((function(e){mt[e]=new gt(e,1,!1,e.toLowerCase(),null)}));var St={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Lt(e,t,n){return(e=ue.getPooled(St.change,e,t,n)).type="change",Ee(n),Z(e),e}var Ct=null,Ot=null;function Pt(e){z(e)}function Et(e){if(Ge(B(e)))return e}function zt(e,t){if("change"===e)return t}var Dt=!1;function Rt(){Ct&&(Ct.detachEvent("onpropertychange",It),Ot=Ct=null)}function It(e){"value"===e.propertyName&&Et(Ot)&&Fe(Pt,e=Lt(Ot,e,He(e)))}function Nt(e,t,n){"focus"===e?(Rt(),Ot=n,(Ct=t).attachEvent("onpropertychange",It)):"blur"===e&&Rt()}function Ft(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Et(Ot)}function Bt(e,t){if("click"===e)return Et(t)}function jt(e,t){if("input"===e||"change"===e)return Et(t)}W&&(Dt=qe("input")&&(!document.documentMode||9<document.documentMode));var Ht={eventTypes:St,_isInputEventSupported:Dt,extractEvents:function(e,t,n,r){var a=t?B(t):window,i=void 0,o=void 0,l=a.nodeName&&a.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===a.type?i=zt:je(a)?Dt?i=jt:(i=Ft,o=Nt):(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(i=Bt),i&&(i=i(e,t)))return Lt(i,n,r);o&&o(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&At(a,"number",a.value)}},qt=ue.extend({view:null,detail:null}),Vt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ut(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Vt[e])&&!!t[e]}function Gt(){return Ut}var Zt=0,Wt=0,Yt=!1,Xt=!1,$t=qt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Gt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Zt;return Zt=e.screenX,Yt?"mousemove"===e.type?e.screenX-t:0:(Yt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Wt;return Wt=e.screenY,Xt?"mousemove"===e.type?e.screenY-t:0:(Xt=!0,0)}}),Qt=$t.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Kt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Jt={eventTypes:Kt,extractEvents:function(e,t,n,r){var a="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(a&&(n.relatedTarget||n.fromElement)||!i&&!a)return null;if(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?N(t):null):i=null,i===t)return null;var o=void 0,l=void 0,s=void 0,c=void 0;"mouseout"===e||"mouseover"===e?(o=$t,l=Kt.mouseLeave,s=Kt.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(o=Qt,l=Kt.pointerLeave,s=Kt.pointerEnter,c="pointer");var u=null==i?a:B(i);if(a=null==t?a:B(t),(e=o.getPooled(l,i,n,r)).type=c+"leave",e.target=u,e.relatedTarget=a,(n=o.getPooled(s,t,n,r)).type=c+"enter",n.target=a,n.relatedTarget=u,r=t,i&&r)e:{for(a=r,c=0,o=t=i;o;o=H(o))c++;for(o=0,s=a;s;s=H(s))o++;for(;0<c-o;)t=H(t),c--;for(;0<o-c;)a=H(a),o--;for(;c--;){if(t===a||t===a.alternate)break e;t=H(t),a=H(a)}t=null}else t=null;for(a=t,t=[];i&&i!==a&&(null===(c=i.alternate)||c!==a);)t.push(i),i=H(i);for(i=[];r&&r!==a&&(null===(c=r.alternate)||c!==a);)i.push(r),r=H(r);for(r=0;r<t.length;r++)U(t[r],"bubbled",e);for(r=i.length;0<r--;)U(i[r],"captured",n);return[e,n]}};function en(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var tn=Object.prototype.hasOwnProperty;function nn(e,t){if(en(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!tn.call(t,n[r])||!en(e[n[r]],t[n[r]]))return!1;return!0}function rn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function an(e){2!==rn(e)&&l("188")}function on(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=rn(e))&&l("188"),1===t?null:e;for(var n=e,r=t;;){var a=n.return,i=a?a.alternate:null;if(!a||!i)break;if(a.child===i.child){for(var o=a.child;o;){if(o===n)return an(a),e;if(o===r)return an(a),t;o=o.sibling}l("188")}if(n.return!==r.return)n=a,r=i;else{o=!1;for(var s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}o||l("189")}}n.alternate!==r&&l("190")}return 3!==n.tag&&l("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var ln=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),sn=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cn=qt.extend({relatedTarget:null});function un(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},pn=qt.extend({key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=un(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?dn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Gt,charCode:function(e){return"keypress"===e.type?un(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?un(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),hn=$t.extend({dataTransfer:null}),gn=qt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Gt}),mn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),vn=$t.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),yn=[["abort","abort"],[J,"animationEnd"],[ee,"animationIteration"],[te,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ne,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],xn={},bn={};function _n(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},xn[e]=t,bn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(e){_n(e,!0)})),yn.forEach((function(e){_n(e,!1)}));var wn={eventTypes:xn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=bn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var a=bn[e];if(!a)return null;switch(e){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":e=pn;break;case"blur":case"focus":e=cn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=$t;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=gn;break;case J:case ee:case te:e=ln;break;case ne:e=mn;break;case"scroll":e=qt;break;case"wheel":e=vn;break;case"copy":case"cut":case"paste":e=sn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Qt;break;default:e=ue}return Z(t=e.getPooled(a,t,n,r)),t}},kn=wn.isInteractiveTopLevelEventType,Tn=[];function Mn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=N(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var a=He(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,o=null,l=0;l<x.length;l++){var s=x[l];s&&(s=s.extractEvents(r,t,i,a))&&(o=S(o,s))}z(o)}}var An=!0;function Sn(e,t){if(!t)return null;var n=(kn(e)?Cn:On).bind(null,e);t.addEventListener(e,n,!1)}function Ln(e,t){if(!t)return null;var n=(kn(e)?Cn:On).bind(null,e);t.addEventListener(e,n,!0)}function Cn(e,t){Re(On,e,t)}function On(e,t){if(An){var n=He(t);if(null===(n=N(n))||"number"!=typeof n.tag||2===rn(n)||(n=null),Tn.length){var r=Tn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Fe(Mn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Tn.length&&Tn.push(e)}}}var Pn={},En=0,zn="_reactListenersID"+(""+Math.random()).slice(2);function Dn(e){return Object.prototype.hasOwnProperty.call(e,zn)||(e[zn]=En++,Pn[e[zn]]={}),Pn[e[zn]]}function Rn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function In(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nn(e,t){var n,r=In(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=In(r)}}function Fn(){for(var e=window,t=Rn();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Rn(e.document)}return t}function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function jn(e){var t=Fn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&Bn(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=void 0===r.end?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Nn(n,i);var o=Nn(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hn=W&&"documentMode"in document&&11>=document.documentMode,qn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vn=null,Un=null,Gn=null,Zn=!1;function Wn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Zn||null==Vn||Vn!==Rn(n)?null:("selectionStart"in(n=Vn)&&Bn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Gn&&nn(Gn,n)?null:(Gn=n,(e=ue.getPooled(qn.select,Un,e,t)).type="select",e.target=Vn,Z(e),e))}var Yn={eventTypes:qn,extractEvents:function(e,t,n,r){var a,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(a=!i)){e:{i=Dn(i),a=w.onSelect;for(var o=0;o<a.length;o++){var l=a[o];if(!i.hasOwnProperty(l)||!i[l]){i=!1;break e}}i=!0}a=!i}if(a)return null;switch(i=t?B(t):window,e){case"focus":(je(i)||"true"===i.contentEditable)&&(Vn=i,Un=t,Gn=null);break;case"blur":Gn=Un=Vn=null;break;case"mousedown":Zn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Zn=!1,Wn(n,r);case"selectionchange":if(Hn)break;case"keydown":case"keyup":return Wn(n,r)}return null}};function Xn(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function $n(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+bt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Qn(e,t){return null!=t.dangerouslySetInnerHTML&&l("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&l("92"),Array.isArray(t)&&(1>=t.length||l("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:bt(n)}}function Jn(e,t){var n=bt(t.value),r=bt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function er(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}P.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=j,T=F,M=B,P.injectEventPluginsByName({SimpleEventPlugin:wn,EnterLeaveEventPlugin:Jt,ChangeEventPlugin:Ht,SelectEventPlugin:Yn,BeforeInputEventPlugin:Se});var tr="http://www.w3.org/1999/xhtml",nr="http://www.w3.org/2000/svg";function rr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ar(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?rr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ir=void 0,or=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==nr||"innerHTML"in e)e.innerHTML=t;else{for((ir=ir||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var sr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cr=["Webkit","ms","Moz","O"];function ur(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||sr.hasOwnProperty(e)&&sr[e]?(""+t).trim():t+"px"}function fr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=ur(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(sr).forEach((function(e){cr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),sr[t]=sr[e]}))}));var dr=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pr(e,t){t&&(dr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&l("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&l("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||l("61")),null!=t.style&&"object"!=typeof t.style&&l("62",""))}function hr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function gr(e,t){var n=Dn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=w[t];for(var r=0;r<t.length;r++){var a=t[r];if(!n.hasOwnProperty(a)||!n[a]){switch(a){case"scroll":Ln("scroll",e);break;case"focus":case"blur":Ln("focus",e),Ln("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":qe(a)&&Ln(a,e);break;case"invalid":case"submit":case"reset":break;default:-1===re.indexOf(a)&&Sn(a,e)}n[a]=!0}}}function mr(){}var vr=null,yr=null;function xr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function br(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var _r="function"==typeof setTimeout?setTimeout:void 0,wr="function"==typeof clearTimeout?clearTimeout:void 0,kr=i.unstable_scheduleCallback,Tr=i.unstable_cancelCallback;function Mr(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function Ar(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var Sr=[],Lr=-1;function Cr(e){0>Lr||(e.current=Sr[Lr],Sr[Lr]=null,Lr--)}function Or(e,t){Lr++,Sr[Lr]=e.current,e.current=t}var Pr={},Er={current:Pr},zr={current:!1},Dr=Pr;function Rr(e,t){var n=e.type.contextTypes;if(!n)return Pr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ir(e){return null!=(e=e.childContextTypes)}function Nr(e){Cr(zr),Cr(Er)}function Fr(e){Cr(zr),Cr(Er)}function Br(e,t,n){Er.current!==Pr&&l("168"),Or(Er,t),Or(zr,n)}function jr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||l("108",ct(t)||"Unknown",i);return a({},n,r)}function Hr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Pr,Dr=Er.current,Or(Er,t),Or(zr,zr.current),!0}function qr(e,t,n){var r=e.stateNode;r||l("169"),n?(t=jr(e,t,Dr),r.__reactInternalMemoizedMergedChildContext=t,Cr(zr),Cr(Er),Or(Er,t)):Cr(zr),Or(zr,n)}var Vr=null,Ur=null;function Gr(e){return function(t){try{return e(t)}catch(e){}}}function Zr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Wr(e,t,n,r){return new Zr(e,t,n,r)}function Yr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Xr(e,t){var n=e.alternate;return null===n?((n=Wr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $r(e,t,n,r,a,i){var o=2;if(r=e,"function"==typeof e)Yr(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case Qe:return Qr(n.children,a,i,t);case nt:return Kr(n,3|a,i,t);case Ke:return Kr(n,2|a,i,t);case Je:return(e=Wr(12,n,t,4|a)).elementType=Je,e.type=Je,e.expirationTime=i,e;case at:return(e=Wr(13,n,t,a)).elementType=at,e.type=at,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case et:o=10;break e;case tt:o=9;break e;case rt:o=11;break e;case it:o=14;break e;case ot:o=16,r=null;break e}l("130",null==e?e:typeof e,"")}return(t=Wr(o,n,t,a)).elementType=e,t.type=r,t.expirationTime=i,t}function Qr(e,t,n,r){return(e=Wr(7,e,r,t)).expirationTime=n,e}function Kr(e,t,n,r){return e=Wr(8,e,r,t),t=0==(1&t)?Ke:nt,e.elementType=t,e.type=t,e.expirationTime=n,e}function Jr(e,t,n){return(e=Wr(6,e,null,t)).expirationTime=n,e}function ea(e,t,n){return(t=Wr(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ta(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),aa(t,e)}function na(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),aa(t,e)}function ra(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function aa(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,a=t.earliestPendingTime,i=t.latestPingedTime;0===(a=0!==a?a:i)&&(0===e||r<e)&&(a=r),0!==(e=a)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=a,t.expirationTime=e}function ia(e,t){if(e&&e.defaultProps)for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var oa=(new r.Component).refs;function la(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var sa={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===rn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ml(),a=Hi(r=Ho(r,e));a.payload=t,null!=n&&(a.callback=n),Ro(),Vi(e,a),Go(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ml(),a=Hi(r=Ho(r,e));a.tag=Ii,a.payload=t,null!=n&&(a.callback=n),Ro(),Vi(e,a),Go(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ml(),r=Hi(n=Ho(n,e));r.tag=Ni,null!=t&&(r.callback=t),Ro(),Vi(e,r),Go(e,n)}};function ca(e,t,n,r,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!nn(n,r)||!nn(a,i))}function ua(e,t,n){var r=!1,a=Pr,i=t.contextType;return"object"==typeof i&&null!==i?i=Ri(i):(a=Ir(t)?Dr:Er.current,i=(r=null!=(r=t.contextTypes))?Rr(e,a):Pr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=sa,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function fa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&sa.enqueueReplaceState(t,t.state,null)}function da(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=oa;var i=t.contextType;"object"==typeof i&&null!==i?a.context=Ri(i):(i=Ir(t)?Dr:Er.current,a.context=Rr(e,i)),null!==(i=e.updateQueue)&&(Wi(e,i,n,a,r),a.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(la(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&sa.enqueueReplaceState(a,a.state,null),null!==(i=e.updateQueue)&&(Wi(e,i,n,a,r),a.state=e.memoizedState)),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var pa=Array.isArray;function ha(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&l("309"),r=n.stateNode),r||l("147",e);var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===oa&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}"string"!=typeof e&&l("284"),n._owner||l("290",e)}return e}function ga(e,t){"textarea"!==e.type&&l("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ma(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t,n){return(e=Xr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function o(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Jr(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=ha(e,t,n),r.return=e,r):((r=$r(n.type,n.key,n.props,null,e.mode,r)).ref=ha(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ea(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Qr(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Jr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Xe:return(n=$r(t.type,t.key,t.props,null,e.mode,n)).ref=ha(e,null,t),n.return=e,n;case $e:return(t=ea(t,e.mode,n)).return=e,t}if(pa(t)||st(t))return(t=Qr(t,e.mode,n,null)).return=e,t;ga(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Xe:return n.key===a?n.type===Qe?f(e,t,n.props.children,r,a):c(e,t,n,r):null;case $e:return n.key===a?u(e,t,n,r):null}if(pa(n)||st(n))return null!==a?null:f(e,t,n,r,null);ga(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Xe:return e=e.get(null===r.key?n:r.key)||null,r.type===Qe?f(t,e,r.props.children,a,r.key):c(t,e,r,a);case $e:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(pa(r)||st(r))return f(t,e=e.get(n)||null,r,a,null);ga(t,r)}return null}function g(a,o,l,s){for(var c=null,u=null,f=o,g=o=0,m=null;null!==f&&g<l.length;g++){f.index>g?(m=f,f=null):m=f.sibling;var v=p(a,f,l[g],s);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&t(a,f),o=i(v,o,g),null===u?c=v:u.sibling=v,u=v,f=m}if(g===l.length)return n(a,f),c;if(null===f){for(;g<l.length;g++)(f=d(a,l[g],s))&&(o=i(f,o,g),null===u?c=f:u.sibling=f,u=f);return c}for(f=r(a,f);g<l.length;g++)(m=h(f,a,g,l[g],s))&&(e&&null!==m.alternate&&f.delete(null===m.key?g:m.key),o=i(m,o,g),null===u?c=m:u.sibling=m,u=m);return e&&f.forEach((function(e){return t(a,e)})),c}function m(a,o,s,c){var u=st(s);"function"!=typeof u&&l("150"),null==(s=u.call(s))&&l("151");for(var f=u=null,g=o,m=o=0,v=null,y=s.next();null!==g&&!y.done;m++,y=s.next()){g.index>m?(v=g,g=null):v=g.sibling;var x=p(a,g,y.value,c);if(null===x){g||(g=v);break}e&&g&&null===x.alternate&&t(a,g),o=i(x,o,m),null===f?u=x:f.sibling=x,f=x,g=v}if(y.done)return n(a,g),u;if(null===g){for(;!y.done;m++,y=s.next())null!==(y=d(a,y.value,c))&&(o=i(y,o,m),null===f?u=y:f.sibling=y,f=y);return u}for(g=r(a,g);!y.done;m++,y=s.next())null!==(y=h(g,a,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),o=i(y,o,m),null===f?u=y:f.sibling=y,f=y);return e&&g.forEach((function(e){return t(a,e)})),u}return function(e,r,i,s){var c="object"==typeof i&&null!==i&&i.type===Qe&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case Xe:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag?i.type===Qe:c.elementType===i.type){n(e,c.sibling),(r=a(c,i.type===Qe?i.props.children:i.props)).ref=ha(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===Qe?((r=Qr(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=$r(i.type,i.key,i.props,null,e.mode,s)).ref=ha(e,r,i),s.return=e,e=s)}return o(e);case $e:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=ea(i,e.mode,s)).return=e,e=r}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=Jr(i,e.mode,s)).return=e,e=r),o(e);if(pa(i))return g(e,r,i,s);if(st(i))return m(e,r,i,s);if(u&&ga(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:l("152",(s=e.type).displayName||s.name||"Component")}return n(e,r)}}var va=ma(!0),ya=ma(!1),xa={},ba={current:xa},_a={current:xa},wa={current:xa};function ka(e){return e===xa&&l("174"),e}function Ta(e,t){Or(wa,t),Or(_a,e),Or(ba,xa);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ar(null,"");break;default:t=ar(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Cr(ba),Or(ba,t)}function Ma(e){Cr(ba),Cr(_a),Cr(wa)}function Aa(e){ka(wa.current);var t=ka(ba.current),n=ar(t,e.type);t!==n&&(Or(_a,e),Or(ba,n))}function Sa(e){_a.current===e&&(Cr(ba),Cr(_a))}var La=Ze.ReactCurrentDispatcher,Ca=0,Oa=null,Pa=null,Ea=null,za=null,Da=null,Ra=null,Ia=0,Na=null,Fa=0,Ba=!1,ja=null,Ha=0;function qa(){l("307")}function Va(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!en(e[n],t[n]))return!1;return!0}function Ua(e,t,n,r,a,i){if(Ca=i,Oa=t,Ea=null!==e?e.memoizedState:null,La.current=null===Ea?ri:ai,t=n(r,a),Ba){do{Ba=!1,Ha+=1,Ea=null!==e?e.memoizedState:null,Ra=za,Na=Da=Pa=null,La.current=ai,t=n(r,a)}while(Ba);ja=null,Ha=0}return La.current=ni,(e=Oa).memoizedState=za,e.expirationTime=Ia,e.updateQueue=Na,e.effectTag|=Fa,e=null!==Pa&&null!==Pa.next,Ca=0,Ra=Da=za=Ea=Pa=Oa=null,Ia=0,Na=null,Fa=0,e&&l("300"),t}function Ga(){La.current=ni,Ca=0,Ra=Da=za=Ea=Pa=Oa=null,Ia=0,Na=null,Fa=0,Ba=!1,ja=null,Ha=0}function Za(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Da?za=Da=e:Da=Da.next=e,Da}function Wa(){if(null!==Ra)Ra=(Da=Ra).next,Ea=null!==(Pa=Ea)?Pa.next:null;else{null===Ea&&l("310");var e={memoizedState:(Pa=Ea).memoizedState,baseState:Pa.baseState,queue:Pa.queue,baseUpdate:Pa.baseUpdate,next:null};Da=null===Da?za=e:Da.next=e,Ea=Pa.next}return Da}function Ya(e,t){return"function"==typeof t?t(e):t}function Xa(e){var t=Wa(),n=t.queue;if(null===n&&l("311"),0<Ha){var r=n.dispatch;if(null!==ja){var a=ja.get(n);if(void 0!==a){ja.delete(n);var i=t.memoizedState;do{i=e(i,a.action),a=a.next}while(null!==a);return en(i,t.memoizedState)||(gi=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.eagerReducer=e,n.eagerState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var o=t.baseUpdate;if(i=t.baseState,null!==o?(null!==r&&(r.next=null),r=o.next):r=null!==r?r.next:null,null!==r){var s=a=null,c=r,u=!1;do{var f=c.expirationTime;f<Ca?(u||(u=!0,s=o,a=i),f>Ia&&(Ia=f)):i=c.eagerReducer===e?c.eagerState:e(i,c.action),o=c,c=c.next}while(null!==c&&c!==r);u||(s=o,a=i),en(i,t.memoizedState)||(gi=!0),t.memoizedState=i,t.baseUpdate=s,t.baseState=a,n.eagerReducer=e,n.eagerState=i}return[t.memoizedState,n.dispatch]}function $a(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Na?(Na={lastEffect:null}).lastEffect=e.next=e:null===(t=Na.lastEffect)?Na.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Na.lastEffect=e),e}function Qa(e,t,n,r){var a=Za();Fa|=e,a.memoizedState=$a(t,n,void 0,void 0===r?null:r)}function Ka(e,t,n,r){var a=Wa();r=void 0===r?null:r;var i=void 0;if(null!==Pa){var o=Pa.memoizedState;if(i=o.destroy,null!==r&&Va(r,o.deps))return void $a(0,n,i,r)}Fa|=e,a.memoizedState=$a(t,n,i,r)}function Ja(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ei(){}function ti(e,t,n){25>Ha||l("301");var r=e.alternate;if(e===Oa||null!==r&&r===Oa)if(Ba=!0,e={expirationTime:Ca,action:n,eagerReducer:null,eagerState:null,next:null},null===ja&&(ja=new Map),void 0===(n=ja.get(t)))ja.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{Ro();var a=ml(),i={expirationTime:a=Ho(a,e),action:n,eagerReducer:null,eagerState:null,next:null},o=t.last;if(null===o)i.next=i;else{var s=o.next;null!==s&&(i.next=s),o.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.eagerReducer))try{var c=t.eagerState,u=r(c,n);if(i.eagerReducer=r,i.eagerState=u,en(u,c))return}catch(e){}Go(e,a)}}var ni={readContext:Ri,useCallback:qa,useContext:qa,useEffect:qa,useImperativeHandle:qa,useLayoutEffect:qa,useMemo:qa,useReducer:qa,useRef:qa,useState:qa,useDebugValue:qa},ri={readContext:Ri,useCallback:function(e,t){return Za().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:function(e,t){return Qa(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Qa(4,36,Ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qa(4,36,e,t)},useMemo:function(e,t){var n=Za();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Za();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,eagerReducer:e,eagerState:t}).dispatch=ti.bind(null,Oa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Za().memoizedState=e},useState:function(e){var t=Za();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,eagerReducer:Ya,eagerState:e}).dispatch=ti.bind(null,Oa,e),[t.memoizedState,e]},useDebugValue:ei},ai={readContext:Ri,useCallback:function(e,t){var n=Wa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Ri,useEffect:function(e,t){return Ka(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ka(4,36,Ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ka(4,36,e,t)},useMemo:function(e,t){var n=Wa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Va(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Xa,useRef:function(){return Wa().memoizedState},useState:function(e){return Xa(Ya)},useDebugValue:ei},ii=null,oi=null,li=!1;function si(e,t){var n=Wr(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function ui(e){if(li){var t=oi;if(t){var n=t;if(!ci(e,t)){if(!(t=Mr(n))||!ci(e,t))return e.effectTag|=2,li=!1,void(ii=e);si(ii,n)}ii=e,oi=Ar(t)}else e.effectTag|=2,li=!1,ii=e}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;ii=e}function di(e){if(e!==ii)return!1;if(!li)return fi(e),li=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!br(t,e.memoizedProps))for(t=oi;t;)si(e,t),t=Mr(t);return fi(e),oi=ii?Mr(e.stateNode):null,!0}function pi(){oi=ii=null,li=!1}var hi=Ze.ReactCurrentOwner,gi=!1;function mi(e,t,n,r){t.child=null===e?ya(t,null,n,r):va(t,e.child,n,r)}function vi(e,t,n,r,a){n=n.render;var i=t.ref;return Di(t,a),r=Ua(e,t,n,r,i,a),null===e||gi?(t.effectTag|=1,mi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ai(e,t,a))}function yi(e,t,n,r,a,i){if(null===e){var o=n.type;return"function"!=typeof o||Yr(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$r(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xi(e,t,o,r,a,i))}return o=e.child,a<i&&(a=o.memoizedProps,(n=null!==(n=n.compare)?n:nn)(a,r)&&e.ref===t.ref)?Ai(e,t,i):(t.effectTag|=1,(e=Xr(o,r)).ref=t.ref,e.return=t,t.child=e)}function xi(e,t,n,r,a,i){return null!==e&&nn(e.memoizedProps,r)&&e.ref===t.ref&&(gi=!1,a<i)?Ai(e,t,i):_i(e,t,n,r,i)}function bi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function _i(e,t,n,r,a){var i=Ir(n)?Dr:Er.current;return i=Rr(t,i),Di(t,a),n=Ua(e,t,n,r,i,a),null===e||gi?(t.effectTag|=1,mi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ai(e,t,a))}function wi(e,t,n,r,a){if(Ir(n)){var i=!0;Hr(t)}else i=!1;if(Di(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ua(t,n,r),da(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,c=n.contextType;"object"==typeof c&&null!==c?c=Ri(c):c=Rr(t,c=Ir(n)?Dr:Er.current);var u=n.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==r||s!==c)&&fa(t,o,r,c),Fi=!1;var d=t.memoizedState;s=o.state=d;var p=t.updateQueue;null!==p&&(Wi(t,p,r,o,a),s=t.memoizedState),l!==r||d!==s||zr.current||Fi?("function"==typeof u&&(la(t,n,u,r),s=t.memoizedState),(l=Fi||ca(t,n,l,r,d,s,c))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.effectTag|=4)):("function"==typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=c,r=l):("function"==typeof o.componentDidMount&&(t.effectTag|=4),r=!1)}else o=t.stateNode,l=t.memoizedProps,o.props=t.type===t.elementType?l:ia(t.type,l),s=o.context,"object"==typeof(c=n.contextType)&&null!==c?c=Ri(c):c=Rr(t,c=Ir(n)?Dr:Er.current),(f="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==r||s!==c)&&fa(t,o,r,c),Fi=!1,s=t.memoizedState,d=o.state=s,null!==(p=t.updateQueue)&&(Wi(t,p,r,o,a),d=t.memoizedState),l!==r||s!==d||zr.current||Fi?("function"==typeof u&&(la(t,n,u,r),d=t.memoizedState),(u=Fi||ca(t,n,l,r,s,d,c))?(f||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,d,c),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof o.componentDidUpdate&&(t.effectTag|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),o.props=r,o.state=d,o.context=c,r=u):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),r=!1);return ki(e,t,n,r,i,a)}function ki(e,t,n,r,a,i){bi(e,t);var o=0!=(64&t.effectTag);if(!r&&!o)return a&&qr(t,n,!1),Ai(e,t,i);r=t.stateNode,hi.current=t;var l=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&o?(t.child=va(t,e.child,null,i),t.child=va(t,null,l,i)):mi(e,t,l,i),t.memoizedState=r.state,a&&qr(t,n,!0),t.child}function Ti(e){var t=e.stateNode;t.pendingContext?Br(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Br(0,t.context,!1),Ta(e,t.containerInfo)}function Mi(e,t,n){var r=t.mode,a=t.pendingProps,i=t.memoizedState;if(0==(64&t.effectTag)){i=null;var o=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},o=!0,t.effectTag&=-65;if(null===e)if(o){var l=a.fallback;e=Qr(null,r,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=Qr(l,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=ya(t,null,a.children,n);else null!==e.memoizedState?(l=(r=e.child).sibling,o?(n=a.fallback,a=Xr(r,r.pendingProps),0==(1&t.mode)&&((o=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(a.child=o)),r=a.sibling=Xr(l,n,l.expirationTime),n=a,a.childExpirationTime=0,n.return=r.return=t):n=r=va(t,r.child,a.children,n)):(l=e.child,o?(o=a.fallback,(a=Qr(null,r,0,null)).child=l,0==(1&t.mode)&&(a.child=null!==t.memoizedState?t.child.child:t.child),(r=a.sibling=Qr(o,r,n,null)).effectTag|=2,n=a,a.childExpirationTime=0,n.return=r.return=t):r=n=va(t,l,a.children,n)),t.stateNode=e.stateNode;return t.memoizedState=i,t.child=n,r}function Ai(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&l("153"),null!==t.child){for(n=Xr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Xr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Si(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||zr.current)gi=!0;else if(r<n){switch(gi=!1,t.tag){case 3:Ti(t),pi();break;case 5:Aa(t);break;case 1:Ir(t.type)&&Hr(t);break;case 4:Ta(t,t.stateNode.containerInfo);break;case 10:Ei(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Mi(e,t,n):null!==(t=Ai(e,t,n))?t.sibling:null}return Ai(e,t,n)}}else gi=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var a=Rr(t,Er.current);if(Di(t,n),a=Ua(null,t,r,e,a,n),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,Ga(),Ir(r)){var i=!0;Hr(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var o=r.getDerivedStateFromProps;"function"==typeof o&&la(t,r,o,e),a.updater=sa,t.stateNode=a,a._reactInternalFiber=t,da(t,r,e,n),t=ki(null,t,r,!0,i,n)}else t.tag=0,mi(null,t,a,n),t=t.child;return t;case 16:switch(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(a),t.type=e,a=t.tag=function(e){if("function"==typeof e)return Yr(e)?1:0;if(null!=e){if((e=e.$$typeof)===rt)return 11;if(e===it)return 14}return 2}(e),i=ia(e,i),o=void 0,a){case 0:o=_i(null,t,e,i,n);break;case 1:o=wi(null,t,e,i,n);break;case 11:o=vi(null,t,e,i,n);break;case 14:o=yi(null,t,e,ia(e.type,i),r,n);break;default:l("306",e,"")}return o;case 0:return r=t.type,a=t.pendingProps,_i(e,t,r,a=t.elementType===r?a:ia(r,a),n);case 1:return r=t.type,a=t.pendingProps,wi(e,t,r,a=t.elementType===r?a:ia(r,a),n);case 3:return Ti(t),null===(r=t.updateQueue)&&l("282"),a=null!==(a=t.memoizedState)?a.element:null,Wi(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===a?(pi(),t=Ai(e,t,n)):(a=t.stateNode,(a=(null===e||null===e.child)&&a.hydrate)&&(oi=Ar(t.stateNode.containerInfo),ii=t,a=li=!0),a?(t.effectTag|=2,t.child=ya(t,null,r,n)):(mi(e,t,r,n),pi()),t=t.child),t;case 5:return Aa(t),null===e&&ui(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,o=a.children,br(r,a)?o=null:null!==i&&br(r,i)&&(t.effectTag|=16),bi(e,t),1!==n&&1&t.mode&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(mi(e,t,o,n),t=t.child),t;case 6:return null===e&&ui(t),null;case 13:return Mi(e,t,n);case 4:return Ta(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=va(t,null,r,n):mi(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,vi(e,t,r,a=t.elementType===r?a:ia(r,a),n);case 7:return mi(e,t,t.pendingProps,n),t.child;case 8:case 12:return mi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,Ei(t,i=a.value),null!==o){var s=o.value;if(0===(i=en(s,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(o.children===a.children&&!zr.current){t=Ai(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.contextDependencies;if(null!==c){o=s.child;for(var u=c.first;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===s.tag&&((u=Hi(n)).tag=Ni,Vi(s,u)),s.expirationTime<n&&(s.expirationTime=n),null!==(u=s.alternate)&&u.expirationTime<n&&(u.expirationTime=n),u=n;for(var f=s.return;null!==f;){var d=f.alternate;if(f.childExpirationTime<u)f.childExpirationTime=u,null!==d&&d.childExpirationTime<u&&(d.childExpirationTime=u);else{if(!(null!==d&&d.childExpirationTime<u))break;d.childExpirationTime=u}f=f.return}c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else o=10===s.tag&&s.type===t.type?null:s.child;if(null!==o)o.return=s;else for(o=s;null!==o;){if(o===t){o=null;break}if(null!==(s=o.sibling)){s.return=o.return,o=s;break}o=o.return}s=o}}mi(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(i=t.pendingProps).children,Di(t,n),r=r(a=Ri(a,i.unstable_observedBits)),t.effectTag|=1,mi(e,t,r,n),t.child;case 14:return i=ia(a=t.type,t.pendingProps),yi(e,t,a,i=ia(a.type,i),r,n);case 15:return xi(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ia(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Ir(r)?(e=!0,Hr(t)):e=!1,Di(t,n),ua(t,r,a),da(t,r,a,n),ki(null,t,r,!0,e,n)}l("156")}var Li={current:null},Ci=null,Oi=null,Pi=null;function Ei(e,t){var n=e.type._context;Or(Li,n._currentValue),n._currentValue=t}function zi(e){var t=Li.current;Cr(Li),e.type._context._currentValue=t}function Di(e,t){Ci=e,Pi=Oi=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(gi=!0),e.contextDependencies=null}function Ri(e,t){return Pi!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Pi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Oi?(null===Ci&&l("308"),Oi=t,Ci.contextDependencies={first:t,expirationTime:0}):Oi=Oi.next=t),e._currentValue}var Ii=1,Ni=2,Fi=!1;function Bi(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function ji(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Hi(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function qi(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Vi(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,a=null;null===r&&(r=e.updateQueue=Bi(e.memoizedState))}else r=e.updateQueue,a=n.updateQueue,null===r?null===a?(r=e.updateQueue=Bi(e.memoizedState),a=n.updateQueue=Bi(n.memoizedState)):r=e.updateQueue=ji(a):null===a&&(a=n.updateQueue=ji(r));null===a||r===a?qi(r,t):null===r.lastUpdate||null===a.lastUpdate?(qi(r,t),qi(a,t)):(qi(r,t),a.lastUpdate=t)}function Ui(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Bi(e.memoizedState):Gi(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Gi(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=ji(t)),t}function Zi(e,t,n,r,i,o){switch(n.tag){case Ii:return"function"==typeof(e=n.payload)?e.call(o,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(o,r,i):e))break;return a({},r,i);case Ni:Fi=!0}return r}function Wi(e,t,n,r,a){Fi=!1;for(var i=(t=Gi(e,t)).baseState,o=null,l=0,s=t.firstUpdate,c=i;null!==s;){var u=s.expirationTime;u<a?(null===o&&(o=s,i=c),l<u&&(l=u)):(c=Zi(e,0,s,c,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(u=null,s=t.firstCapturedUpdate;null!==s;){var f=s.expirationTime;f<a?(null===u&&(u=s,null===o&&(i=c)),l<f&&(l=f)):(c=Zi(e,0,s,c,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===o&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===o&&null===u&&(i=c),t.baseState=i,t.firstUpdate=o,t.firstCapturedUpdate=u,e.expirationTime=l,e.memoizedState=c}function Yi(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Xi(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Xi(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Xi(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&l("191",n),n.call(r)}e=e.nextEffect}}function $i(e,t){return{value:e,source:t,stack:ut(t)}}function Qi(e){e.effectTag|=4}var Ki,Ji,eo;Ki=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ji=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var l=t.stateNode;switch(ka(ba.current),e=null,n){case"input":o=_t(l,o),r=_t(l,r),e=[];break;case"option":o=Xn(l,o),r=Xn(l,r),e=[];break;case"select":o=a({},o,{value:void 0}),r=a({},r,{value:void 0}),e=[];break;case"textarea":o=Qn(l,o),r=Qn(l,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(l.onclick=mr)}pr(n,r),l=n=void 0;var s=null;for(n in o)if(!r.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if("style"===n){var c=o[n];for(l in c)c.hasOwnProperty(l)&&(s||(s={}),s[l]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(_.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(c=null!=o?o[n]:void 0,r.hasOwnProperty(n)&&u!==c&&(null!=u||null!=c))if("style"===n)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(s||(s={}),s[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(s||(s={}),s[l]=u[l])}else s||(e||(e=[]),e.push(n,s)),s=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(n,""+u)):"children"===n?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(_.hasOwnProperty(n)?(null!=u&&gr(i,n),e||c===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&Qi(t)}},eo=function(e,t,n,r){n!==r&&Qi(t)};var to="function"==typeof WeakSet?WeakSet:Set;function no(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ut(n)),null!==n&&ct(n.type),t=t.value,null!==e&&1===e.tag&&ct(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ro(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){jo(e,t)}else t.current=null}function ao(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var a=r.destroy;r.destroy=void 0,void 0!==a&&a()}0!=(r.tag&t)&&(a=r.create,r.destroy=a()),r=r.next}while(r!==n)}}function io(e){switch("function"==typeof Ur&&Ur(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var a=e;try{r()}catch(e){jo(a,e)}}n=n.next}while(n!==t)}break;case 1:if(ro(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){jo(e,t)}break;case 5:ro(e);break;case 4:so(e)}}function oo(e){return 5===e.tag||3===e.tag||4===e.tag}function lo(e){e:{for(var t=e.return;null!==t;){if(oo(t)){var n=t;break e}t=t.return}l("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:l("161")}16&n.effectTag&&(lr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||oo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var a=e;;){if(5===a.tag||6===a.tag)if(n)if(r){var i=t,o=a.stateNode,s=n;8===i.nodeType?i.parentNode.insertBefore(o,s):i.insertBefore(o,s)}else t.insertBefore(a.stateNode,n);else r?(o=t,s=a.stateNode,8===o.nodeType?(i=o.parentNode).insertBefore(s,o):(i=o).appendChild(s),null!=(o=o._reactRootContainer)||null!==i.onclick||(i.onclick=mr)):t.appendChild(a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function so(e){for(var t=e,n=!1,r=void 0,a=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&l("160"),n.tag){case 5:r=n.stateNode,a=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,a=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,o=i;;)if(io(o),null!==o.child&&4!==o.tag)o.child.return=o,o=o.child;else{if(o===i)break;for(;null===o.sibling;){if(null===o.return||o.return===i)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}a?(i=r,o=t.stateNode,8===i.nodeType?i.parentNode.removeChild(o):i.removeChild(o)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,a=!0,t.child.return=t,t=t.child;continue}}else if(io(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function co(e,t){switch(t.tag){case 0:case 11:case 14:case 15:ao(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var a=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&function(e,t,n,r,a){e[I]=a,"input"===n&&"radio"===a.type&&null!=a.name&&kt(e,a),hr(n,r),r=hr(n,a);for(var i=0;i<t.length;i+=2){var o=t[i],l=t[i+1];"style"===o?fr(e,l):"dangerouslySetInnerHTML"===o?or(e,l):"children"===o?lr(e,l):xt(e,o,l,r)}switch(n){case"input":Tt(e,a);break;case"textarea":Jn(e,a);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!a.multiple,null!=(n=a.value)?$n(e,!!a.multiple,n,!1):t!==!!a.multiple&&(null!=a.defaultValue?$n(e,!!a.multiple,a.defaultValue,!0):$n(e,!!a.multiple,a.multiple?[]:"",!1))}}(n,i,a,e,r)}break;case 6:null===t.stateNode&&l("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=ml())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,r.style.display=ur("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(null!==n.child){n.child.return=n,n=n.child;continue}}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var o=t.stateNode;null===o&&(o=t.stateNode=new to),n.forEach((function(e){var n=Vo.bind(null,t,e);o.has(e)||(o.add(e),e.then(n,n))}))}break;case 17:break;default:l("163")}}var uo="function"==typeof WeakMap?WeakMap:Map;function fo(e,t,n){(n=Hi(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Al(r),no(e,t)},n}function po(e,t,n){(n=Hi(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Co?Co=new Set([this]):Co.add(this));var n=t.value,a=t.stack;no(e,t),this.componentDidCatch(n,{componentStack:null!==a?a:""})}),n}function ho(e){switch(e.tag){case 1:Ir(e.type)&&Nr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return Ma(),Fr(),0!=(64&(t=e.effectTag))&&l("285"),e.effectTag=-2049&t|64,e;case 5:return Sa(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return Ma(),null;case 10:return zi(e),null;default:return null}}var go=Ze.ReactCurrentDispatcher,mo=Ze.ReactCurrentOwner,vo=1073741822,yo=!1,xo=null,bo=null,_o=0,wo=-1,ko=!1,To=null,Mo=!1,Ao=null,So=null,Lo=null,Co=null;function Oo(){if(null!==xo)for(var e=xo.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Nr();break;case 3:Ma(),Fr();break;case 5:Sa(t);break;case 4:Ma();break;case 10:zi(t)}e=e.return}bo=null,_o=0,wo=-1,ko=!1,xo=null}function Po(){for(;null!==To;){var e=To.effectTag;if(16&e&&lr(To.stateNode,""),128&e){var t=To.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:lo(To),To.effectTag&=-3;break;case 6:lo(To),To.effectTag&=-3,co(To.alternate,To);break;case 4:co(To.alternate,To);break;case 8:so(e=To),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}To=To.nextEffect}}function Eo(){for(;null!==To;){if(256&To.effectTag)e:{var e=To.alternate,t=To;switch(t.tag){case 0:case 11:case 15:ao(2,0,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ia(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:l("163")}}To=To.nextEffect}}function zo(e,t){for(;null!==To;){var n=To.effectTag;if(36&n){var r=To.alternate,a=To,i=t;switch(a.tag){case 0:case 11:case 15:ao(16,32,a);break;case 1:var o=a.stateNode;if(4&a.effectTag)if(null===r)o.componentDidMount();else{var s=a.elementType===a.type?r.memoizedProps:ia(a.type,r.memoizedProps);o.componentDidUpdate(s,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}null!==(r=a.updateQueue)&&Yi(0,r,o);break;case 3:if(null!==(r=a.updateQueue)){if(o=null,null!==a.child)switch(a.child.tag){case 5:o=a.child.stateNode;break;case 1:o=a.child.stateNode}Yi(0,r,o)}break;case 5:i=a.stateNode,null===r&&4&a.effectTag&&xr(a.type,a.memoizedProps)&&i.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:l("163")}}128&n&&(null!==(a=To.ref)&&(i=To.stateNode,"function"==typeof a?a(i):a.current=i)),512&n&&(Ao=e),To=To.nextEffect}}function Do(e,t){Lo=So=Ao=null;var n=Qo;Qo=!0;do{if(512&t.effectTag){var r=!1,a=void 0;try{var i=t;ao(128,0,i),ao(0,64,i)}catch(e){r=!0,a=e}r&&jo(t,a)}t=t.nextEffect}while(null!==t);Qo=n,0!==(n=e.expirationTime)&&vl(e,n),rl||Qo||wl(1073741823,!1)}function Ro(){null!==So&&Tr(So),null!==Lo&&Lo()}function Io(e,t){Mo=yo=!0,e.current===t&&l("177");var n=e.pendingCommitExpirationTime;0===n&&l("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,a=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?ta(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,ta(e,t)):t>n&&ta(e,t)}aa(0,e)}(e,a>r?a:r),mo.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,vr=An,yr=function(){var e=Fn();if(Bn(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{t.nodeType,a.nodeType}catch(e){t=null;break e}var i=0,o=-1,l=-1,s=0,c=0,u=e,f=null;t:for(;;){for(var d;u!==t||0!==r&&3!==u.nodeType||(o=i+r),u!==a||0!==n&&3!==u.nodeType||(l=i+n),3===u.nodeType&&(i+=u.nodeValue.length),null!==(d=u.firstChild);)f=u,u=d;for(;;){if(u===e)break t;if(f===t&&++s===r&&(o=i),f===a&&++c===n&&(l=i),null!==(d=u.nextSibling))break;f=(u=f).parentNode}u=d}t=-1===o||-1===l?null:{start:o,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),An=!1,To=r;null!==To;){a=!1;var o=void 0;try{Eo()}catch(e){a=!0,o=e}a&&(null===To&&l("178"),jo(To,o),null!==To&&(To=To.nextEffect))}for(To=r;null!==To;){a=!1,o=void 0;try{Po()}catch(e){a=!0,o=e}a&&(null===To&&l("178"),jo(To,o),null!==To&&(To=To.nextEffect))}for(jn(yr),yr=null,An=!!vr,vr=null,e.current=t,To=r;null!==To;){a=!1,o=void 0;try{zo(e,n)}catch(e){a=!0,o=e}a&&(null===To&&l("178"),jo(To,o),null!==To&&(To=To.nextEffect))}if(null!==r&&null!==Ao){var s=Do.bind(null,e,r);So=i.unstable_runWithPriority(i.unstable_NormalPriority,(function(){return kr(s)})),Lo=s}yo=Mo=!1,"function"==typeof Vr&&Vr(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(Co=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function No(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){xo=e;e:{var i=t,o=_o,s=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Ir(t.type)&&Nr();break;case 3:Ma(),Fr(),(s=t.stateNode).pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==i&&null!==i.child||(di(t),t.effectTag&=-3);break;case 5:Sa(t);var c=ka(wa.current);if(o=t.type,null!==i&&null!=t.stateNode)Ji(i,t,o,s,c),i.ref!==t.ref&&(t.effectTag|=128);else if(s){var u=ka(ba.current);if(di(t)){i=(s=t).stateNode;var f=s.type,d=s.memoizedProps,p=c;switch(i[R]=s,i[I]=d,o=void 0,c=f){case"iframe":case"object":Sn("load",i);break;case"video":case"audio":for(f=0;f<re.length;f++)Sn(re[f],i);break;case"source":Sn("error",i);break;case"img":case"image":case"link":Sn("error",i),Sn("load",i);break;case"form":Sn("reset",i),Sn("submit",i);break;case"details":Sn("toggle",i);break;case"input":wt(i,d),Sn("invalid",i),gr(p,"onChange");break;case"select":i._wrapperState={wasMultiple:!!d.multiple},Sn("invalid",i),gr(p,"onChange");break;case"textarea":Kn(i,d),Sn("invalid",i),gr(p,"onChange")}for(o in pr(c,d),f=null,d)d.hasOwnProperty(o)&&(u=d[o],"children"===o?"string"==typeof u?i.textContent!==u&&(f=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(f=["children",""+u]):_.hasOwnProperty(o)&&null!=u&&gr(p,o));switch(c){case"input":Ue(i),Mt(i,d,!0);break;case"textarea":Ue(i),er(i);break;case"select":case"option":break;default:"function"==typeof d.onClick&&(i.onclick=mr)}o=f,s.updateQueue=o,(s=null!==o)&&Qi(t)}else{d=t,i=o,p=s,f=9===c.nodeType?c:c.ownerDocument,u===tr&&(u=rr(i)),u===tr?"script"===i?((i=f.createElement("div")).innerHTML="<script><\/script>",f=i.removeChild(i.firstChild)):"string"==typeof p.is?f=f.createElement(i,{is:p.is}):(f=f.createElement(i),"select"===i&&p.multiple&&(f.multiple=!0)):f=f.createElementNS(u,i),(i=f)[R]=d,i[I]=s,Ki(i,t),p=i;var h=c,g=hr(f=o,d=s);switch(f){case"iframe":case"object":Sn("load",p),c=d;break;case"video":case"audio":for(c=0;c<re.length;c++)Sn(re[c],p);c=d;break;case"source":Sn("error",p),c=d;break;case"img":case"image":case"link":Sn("error",p),Sn("load",p),c=d;break;case"form":Sn("reset",p),Sn("submit",p),c=d;break;case"details":Sn("toggle",p),c=d;break;case"input":wt(p,d),c=_t(p,d),Sn("invalid",p),gr(h,"onChange");break;case"option":c=Xn(p,d);break;case"select":p._wrapperState={wasMultiple:!!d.multiple},c=a({},d,{value:void 0}),Sn("invalid",p),gr(h,"onChange");break;case"textarea":Kn(p,d),c=Qn(p,d),Sn("invalid",p),gr(h,"onChange");break;default:c=d}pr(f,c),u=void 0;var m=f,v=p,y=c;for(u in y)if(y.hasOwnProperty(u)){var x=y[u];"style"===u?fr(v,x):"dangerouslySetInnerHTML"===u?null!=(x=x?x.__html:void 0)&&or(v,x):"children"===u?"string"==typeof x?("textarea"!==m||""!==x)&&lr(v,x):"number"==typeof x&&lr(v,""+x):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(_.hasOwnProperty(u)?null!=x&&gr(h,u):null!=x&&xt(v,u,x,g))}switch(f){case"input":Ue(p),Mt(p,d,!1);break;case"textarea":Ue(p),er(p);break;case"option":null!=d.value&&p.setAttribute("value",""+bt(d.value));break;case"select":(c=p).multiple=!!d.multiple,null!=(p=d.value)?$n(c,!!d.multiple,p,!1):null!=d.defaultValue&&$n(c,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof c.onClick&&(p.onclick=mr)}(s=xr(o,s))&&Qi(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&l("166");break;case 6:i&&null!=t.stateNode?eo(0,t,i.memoizedProps,s):("string"!=typeof s&&(null===t.stateNode&&l("166")),i=ka(wa.current),ka(ba.current),di(t)?(o=(s=t).stateNode,i=s.memoizedProps,o[R]=s,(s=o.nodeValue!==i)&&Qi(t)):(o=t,(s=(9===i.nodeType?i:i.ownerDocument).createTextNode(s))[R]=t,o.stateNode=s));break;case 11:break;case 13:if(s=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=o,xo=t;break e}s=null!==s,o=null!==i&&null!==i.memoizedState,null!==i&&!s&&o&&(null!==(i=i.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=i,i.nextEffect=c):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(s||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Ma();break;case 10:zi(t);break;case 9:case 14:break;case 17:Ir(t.type)&&Nr();break;case 18:break;default:l("156")}xo=null}if(t=e,1===_o||1!==t.childExpirationTime){for(s=0,o=t.child;null!==o;)(i=o.expirationTime)>s&&(s=i),(c=o.childExpirationTime)>s&&(s=c),o=o.sibling;t.childExpirationTime=s}if(null!==xo)return xo;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=ho(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function Fo(e){var t=Si(e.alternate,e,_o);return e.memoizedProps=e.pendingProps,null===t&&(t=No(e)),mo.current=null,t}function Bo(e,t){yo&&l("243"),Ro(),yo=!0;var n=go.current;go.current=ni;var r=e.nextExpirationTimeToWorkOn;r===_o&&e===bo&&null!==xo||(Oo(),_o=r,xo=Xr((bo=e).current,null),e.pendingCommitExpirationTime=0);for(var a=!1;;){try{if(t)for(;null!==xo&&!bl();)xo=Fo(xo);else for(;null!==xo;)xo=Fo(xo)}catch(t){if(Pi=Oi=Ci=null,Ga(),null===xo)a=!0,Al(t);else{null===xo&&l("271");var i=xo,o=i.return;if(null!==o){e:{var s=e,c=o,u=i,f=t;if(o=_o,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==f&&"object"==typeof f&&"function"==typeof f.then){var d=f;f=c;var p=-1,h=-1;do{if(13===f.tag){var g=f.alternate;if(null!==g&&null!==(g=g.memoizedState)){h=10*(1073741822-g.timedOutAt);break}"number"==typeof(g=f.pendingProps.maxDuration)&&(0>=g?p=0:(-1===p||g<p)&&(p=g))}f=f.return}while(null!==f);f=c;do{if((g=13===f.tag)&&(g=void 0!==f.memoizedProps.fallback&&null===f.memoizedState),g){if(null===(c=f.updateQueue)?((c=new Set).add(d),f.updateQueue=c):c.add(d),0==(1&f.mode)){f.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((o=Hi(1073741823)).tag=Ni,Vi(u,o))),u.expirationTime=1073741823;break e}c=o;var m=(u=s).pingCache;null===m?(m=u.pingCache=new uo,g=new Set,m.set(d,g)):void 0===(g=m.get(d))&&(g=new Set,m.set(d,g)),g.has(c)||(g.add(c),u=qo.bind(null,u,d,c),d.then(u,u)),-1===p?s=1073741823:(-1===h&&(h=10*(1073741822-ra(s,o))-5e3),s=h+p),0<=s&&wo<s&&(wo=s),f.effectTag|=2048,f.expirationTime=o;break e}f=f.return}while(null!==f);f=Error((ct(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ut(u))}ko=!0,f=$i(f,u),s=c;do{switch(s.tag){case 3:s.effectTag|=2048,s.expirationTime=o,Ui(s,o=fo(s,f,o));break e;case 1:if(p=f,h=s.type,u=s.stateNode,0==(64&s.effectTag)&&("function"==typeof h.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===Co||!Co.has(u)))){s.effectTag|=2048,s.expirationTime=o,Ui(s,o=po(s,p,o));break e}}s=s.return}while(null!==s)}xo=No(i);continue}a=!0,Al(t)}}break}if(yo=!1,go.current=n,Pi=Oi=Ci=null,Ga(),a)bo=null,e.finishedWork=null;else if(null!==xo)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&l("281"),bo=null,ko){if(a=e.latestPendingTime,i=e.latestSuspendedTime,o=e.latestPingedTime,0!==a&&a<r||0!==i&&i<r||0!==o&&o<r)return na(e,r),void hl(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void hl(e,n,r,t,-1)}t&&-1!==wo?(na(e,r),(t=10*(1073741822-ra(e,r)))<wo&&(wo=t),t=10*(1073741822-ml()),t=wo-t,hl(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function jo(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Co||!Co.has(r)))return Vi(n,e=po(n,e=$i(t,e),1073741823)),void Go(n,1073741823);break;case 3:return Vi(n,e=fo(n,e=$i(t,e),1073741823)),void Go(n,1073741823)}n=n.return}3===e.tag&&(Vi(e,n=fo(e,n=$i(t,e),1073741823)),Go(e,1073741823))}function Ho(e,t){var n=i.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(yo&&!Mo)r=_o;else{switch(n){case i.unstable_ImmediatePriority:r=1073741823;break;case i.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case i.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case i.unstable_LowPriority:case i.unstable_IdlePriority:r=1;break;default:l("313")}null!==bo&&r===_o&&--r}return n===i.unstable_UserBlockingPriority&&(0===el||r<el)&&(el=r),r}function qo(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==bo&&_o===n?bo=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),aa(n,e),0!==(n=e.expirationTime)&&vl(e,n)))}function Vo(e,t){var n=e.stateNode;null!==n&&n.delete(t),null!==(e=Uo(e,t=Ho(t=ml(),e)))&&(ta(e,t),0!==(t=e.expirationTime)&&vl(e,t))}function Uo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,a=null;if(null===r&&3===e.tag)a=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){a=r.stateNode;break}r=r.return}return a}function Go(e,t){null!==(e=Uo(e,t))&&(!yo&&0!==_o&&t>_o&&Oo(),ta(e,t),yo&&!Mo&&bo===e||vl(e,e.expirationTime),ul>cl&&(ul=0,l("185")))}function Zo(e,t,n,r,a){return i.unstable_runWithPriority(i.unstable_ImmediatePriority,(function(){return e(t,n,r,a)}))}var Wo=null,Yo=null,Xo=0,$o=void 0,Qo=!1,Ko=null,Jo=0,el=0,tl=!1,nl=null,rl=!1,al=!1,il=null,ol=i.unstable_now(),ll=1073741822-(ol/10|0),sl=ll,cl=50,ul=0,fl=null;function dl(){ll=1073741822-((i.unstable_now()-ol)/10|0)}function pl(e,t){if(0!==Xo){if(t<Xo)return;null!==$o&&i.unstable_cancelCallback($o)}Xo=t,e=i.unstable_now()-ol,$o=i.unstable_scheduleCallback(_l,{timeout:10*(1073741822-t)-e})}function hl(e,t,n,r,a){e.expirationTime=r,0!==a||bl()?0<a&&(e.timeoutHandle=_r(gl.bind(null,e,t,n),a)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function gl(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,dl(),sl=ll,kl(e,n)}function ml(){return Qo||(yl(),0!==Jo&&1!==Jo||(dl(),sl=ll)),sl}function vl(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===Yo?(Wo=Yo=e,e.nextScheduledRoot=e):(Yo=Yo.nextScheduledRoot=e).nextScheduledRoot=Wo):t>e.expirationTime&&(e.expirationTime=t),Qo||(rl?al&&(Ko=e,Jo=1073741823,Tl(e,1073741823,!1)):1073741823===t?wl(1073741823,!1):pl(e,t))}function yl(){var e=0,t=null;if(null!==Yo)for(var n=Yo,r=Wo;null!==r;){var a=r.expirationTime;if(0===a){if((null===n||null===Yo)&&l("244"),r===r.nextScheduledRoot){Wo=Yo=r.nextScheduledRoot=null;break}if(r===Wo)Wo=a=r.nextScheduledRoot,Yo.nextScheduledRoot=a,r.nextScheduledRoot=null;else{if(r===Yo){(Yo=n).nextScheduledRoot=Wo,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(a>e&&(e=a,t=r),r===Yo)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}Ko=t,Jo=e}var xl=!1;function bl(){return!!xl||!!i.unstable_shouldYield()&&(xl=!0)}function _l(){try{if(!bl()&&null!==Wo){dl();var e=Wo;do{var t=e.expirationTime;0!==t&&ll<=t&&(e.nextExpirationTimeToWorkOn=ll),e=e.nextScheduledRoot}while(e!==Wo)}wl(0,!0)}finally{xl=!1}}function wl(e,t){if(yl(),t)for(dl(),sl=ll;null!==Ko&&0!==Jo&&e<=Jo&&!(xl&&ll>Jo);)Tl(Ko,Jo,ll>Jo),yl(),dl(),sl=ll;else for(;null!==Ko&&0!==Jo&&e<=Jo;)Tl(Ko,Jo,!1),yl();if(t&&(Xo=0,$o=null),0!==Jo&&pl(Ko,Jo),ul=0,fl=null,null!==il)for(e=il,il=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){tl||(tl=!0,nl=e)}}if(tl)throw e=nl,nl=null,tl=!1,e}function kl(e,t){Qo&&l("253"),Ko=e,Jo=t,Tl(e,t,!1),wl(1073741823,!1)}function Tl(e,t,n){if(Qo&&l("245"),Qo=!0,n){var r=e.finishedWork;null!==r?Ml(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,wr(r)),Bo(e,n),null!==(r=e.finishedWork)&&(bl()?e.finishedWork=r:Ml(e,r,t)))}else null!==(r=e.finishedWork)?Ml(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,wr(r)),Bo(e,n),null!==(r=e.finishedWork)&&Ml(e,r,t));Qo=!1}function Ml(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===il?il=[r]:il.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===fl?ul++:(fl=e,ul=0),i.unstable_runWithPriority(i.unstable_ImmediatePriority,(function(){Io(e,t)}))}function Al(e){null===Ko&&l("246"),Ko.expirationTime=0,tl||(tl=!0,nl=e)}function Sl(e,t){var n=rl;rl=!0;try{return e(t)}finally{(rl=n)||Qo||wl(1073741823,!1)}}function Ll(e,t){if(rl&&!al){al=!0;try{return e(t)}finally{al=!1}}return e(t)}function Cl(e,t,n){rl||Qo||0===el||(wl(el,!1),el=0);var r=rl;rl=!0;try{return i.unstable_runWithPriority(i.unstable_UserBlockingPriority,(function(){return e(t,n)}))}finally{(rl=r)||Qo||wl(1073741823,!1)}}function Ol(e,t,n,r,a){var i=t.current;e:if(n){t:{2===rn(n=n._reactInternalFiber)&&1===n.tag||l("170");var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break t;case 1:if(Ir(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break t}}o=o.return}while(null!==o);l("171"),o=void 0}if(1===n.tag){var s=n.type;if(Ir(s)){n=jr(n,s,o);break e}}n=o}else n=Pr;return null===t.context?t.context=n:t.pendingContext=n,t=a,(a=Hi(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(a.callback=t),Ro(),Vi(i,a),Go(i,r),r}function Pl(e,t,n,r){var a=t.current;return Ol(e,t,n,a=Ho(ml(),a),r)}function El(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function zl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:$e,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Dl(e){var t=1073741822-25*(1+((1073741822-ml()+500)/25|0));t>=vo&&(t=vo-1),this._expirationTime=vo=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Rl(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Il(e,t,n){e={current:t=Wr(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Nl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Fl(e,t,n,r,a){var i=n._reactRootContainer;if(i){if("function"==typeof a){var o=a;a=function(){var e=El(i._internalRoot);o.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,a):i.render(t,a)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Il(e,!1,t)}(n,r),"function"==typeof a){var l=a;a=function(){var e=El(i._internalRoot);l.call(e)}}Ll((function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,a):i.render(t,a)}))}return El(i._internalRoot)}function Bl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Nl(t)||l("200"),zl(e,t,null,n)}Le=function(e,t,n){switch(t){case"input":if(Tt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=j(r);a||l("90"),Ge(r),Tt(r,a)}}}break;case"textarea":Jn(e,n);break;case"select":null!=(t=n.value)&&$n(e,!!n.multiple,t,!1)}},Dl.prototype.render=function(e){this._defer||l("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Rl;return Ol(e,t,null,n,r._onCommit),r},Dl.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Dl.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||l("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,a=t;a!==this;)r=a,a=a._next;null===r&&l("251"),r._next=a._next,this._next=t,e.firstBatch=this}this._defer=!1,kl(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Dl.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Rl.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Rl.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&l("191",n),n()}}},Il.prototype.render=function(e,t){var n=this._internalRoot,r=new Rl;return null!==(t=void 0===t?null:t)&&r.then(t),Pl(e,n,null,r._onCommit),r},Il.prototype.unmount=function(e){var t=this._internalRoot,n=new Rl;return null!==(e=void 0===e?null:e)&&n.then(e),Pl(null,t,null,n._onCommit),n},Il.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,a=new Rl;return null!==(n=void 0===n?null:n)&&a.then(n),Pl(t,r,e,a._onCommit),a},Il.prototype.createBatch=function(){var e=new Dl(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},De=Sl,Re=Cl,Ie=function(){Qo||0===el||(wl(el,!1),el=0)};var jl,Hl,ql={createPortal:Bl,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?l("188"):l("268",Object.keys(e))),e=null===(e=on(t))?null:e.stateNode},hydrate:function(e,t,n){return Nl(t)||l("200"),Fl(null,e,t,!0,n)},render:function(e,t,n){return Nl(t)||l("200"),Fl(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return Nl(n)||l("200"),(null==e||void 0===e._reactInternalFiber)&&l("38"),Fl(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Nl(e)||l("40"),!!e._reactRootContainer&&(Ll((function(){Fl(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return Bl.apply(void 0,arguments)},unstable_batchedUpdates:Sl,unstable_interactiveUpdates:Cl,flushSync:function(e,t){Qo&&l("187");var n=rl;rl=!0;try{return Zo(e,t)}finally{rl=n,wl(1073741823,!1)}},unstable_createRoot:function(e,t){return Nl(e)||l("299","unstable_createRoot"),new Il(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=rl;rl=!0;try{Zo(e)}finally{(rl=t)||Qo||wl(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[F,B,j,P.injectEventPluginsByName,b,Z,function(e){L(e,G)},Ee,ze,On,z]}};Hl=(jl={findFiberByHostInstance:N,bundleType:0,version:"16.8.4",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Vr=Gr((function(e){return t.onCommitFiberRoot(n,e)})),Ur=Gr((function(e){return t.onCommitFiberUnmount(n,e)}))}catch(e){}}(a({},jl,{overrideProps:null,currentDispatcherRef:Ze.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=on(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Hl?Hl(e):null}}));var Vl={default:ql},Ul=Vl&&ql||Vl;e.exports=Ul.default||Ul},function(e,t,n){"use strict";e.exports=n(11)},function(e,t,n){"use strict";(function(e){ -/** @license React v0.13.6 - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,a=3,i=-1,o=-1,l=!1,s=!1;function c(){if(!l){var e=n.expirationTime;s?k():s=!0,w(d,e)}}function u(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=a,l=o;a=e,o=t;try{var s=r()}finally{a=i,o=l}if("function"==typeof s)if(s={callback:s,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=s.next=s.previous=s;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=s,c()),(t=r.previous).next=r.previous=s,s.next=r,s.previous=t}}function f(){if(-1===i&&null!==n&&1===n.priorityLevel){l=!0;try{do{u()}while(null!==n&&1===n.priorityLevel)}finally{l=!1,null!==n?c():s=!1}}}function d(e){l=!0;var a=r;r=e;try{if(e)for(;null!==n;){var i=t.unstable_now();if(!(n.expirationTime<=i))break;do{u()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{u()}while(null!==n&&!T())}finally{l=!1,r=a,null!==n?c():s=!1,f()}}var p,h,g=Date,m="function"==typeof setTimeout?setTimeout:void 0,v="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,x="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function b(e){p=y((function(t){v(h),e(t)})),h=m((function(){x(p),e(t.unstable_now())}),100)}if("object"==typeof performance&&"function"==typeof performance.now){var _=performance;t.unstable_now=function(){return _.now()}}else t.unstable_now=function(){return g.now()};var w,k,T,M=null;if("undefined"!=typeof window?M=window:void 0!==e&&(M=e),M&&M._schedMock){var A=M._schedMock;w=A[0],k=A[1],T=A[2],t.unstable_now=A[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var S=null,L=function(e){if(null!==S)try{S(e)}finally{S=null}};w=function(e){null!==S?setTimeout(w,0,e):(S=e,setTimeout(L,0,!1))},k=function(){S=null},T=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof x&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var C=null,O=!1,P=-1,E=!1,z=!1,D=0,R=33,I=33;T=function(){return D<=t.unstable_now()};var N=new MessageChannel,F=N.port2;N.port1.onmessage=function(){O=!1;var e=C,n=P;C=null,P=-1;var r=t.unstable_now(),a=!1;if(0>=D-r){if(!(-1!==n&&n<=r))return E||(E=!0,b(B)),C=e,void(P=n);a=!0}if(null!==e){z=!0;try{e(a)}finally{z=!1}}};var B=function(e){if(null!==C){b(B);var t=e-D+I;t<I&&R<I?(8>t&&(t=8),I=t<R?R:t):R=t,D=e+I,O||(O=!0,F.postMessage(void 0))}else E=!1};w=function(e,t){C=e,P=t,z||0>t?F.postMessage(void 0):E||(E=!0,b(B))},k=function(){C=null,O=!1,P=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=a,o=i;a=e,i=t.unstable_now();try{return n()}finally{a=r,i=o,f()}},t.unstable_next=function(e){switch(a){case 1:case 2:case 3:var n=3;break;default:n=a}var r=a,o=i;a=n,i=t.unstable_now();try{return e()}finally{a=r,i=o,f()}},t.unstable_scheduleCallback=function(e,r){var o=-1!==i?i:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=o+r.timeout;else switch(a){case 1:r=o+-1;break;case 2:r=o+250;break;case 5:r=o+1073741823;break;case 4:r=o+1e4;break;default:r=o+5e3}if(e={callback:e,priorityLevel:a,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,c();else{o=null;var l=n;do{if(l.expirationTime>r){o=l;break}l=l.next}while(l!==n);null===o?o=n:o===n&&(n=e,c()),(r=o.previous).next=o.previous=e,e.next=o,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=a;return function(){var r=a,o=i;a=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{a=r,i=o,f()}}},t.unstable_getCurrentPriorityLevel=function(){return a},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<o||T())},t.unstable_continueExecution=function(){null!==n&&c()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return n}}).call(this,n(4))},,function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=(o=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([a]).join("\n")}var o;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var i=this[a][0];null!=i&&(r[i]=!0)}for(a=0;a<e.length;a++){var o=e[a];null!=o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},function(e,t,n){var r,a,i={},o=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===a&&(a=r.apply(this,arguments)),a}),l=function(e,t){return t?t.querySelector(e):document.querySelector(e)},s=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=l.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),c=null,u=0,f=[],d=n(15);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=i[r.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](r.parts[o]);for(;o<r.parts.length;o++)a.parts.push(x(r.parts[o],t))}else{var l=[];for(o=0;o<r.parts.length;o++)l.push(x(r.parts[o],t));i[r.id]={id:r.id,refs:1,parts:l}}}}function h(e,t){for(var n=[],r={},a=0;a<e.length;a++){var i=e[a],o=t.base?i[0]+t.base:i[0],l={css:i[1],media:i[2],sourceMap:i[3]};r[o]?r[o].parts.push(l):n.push(r[o]={id:o,parts:[l]})}return n}function g(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=f[f.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),f.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var a=s(e.insertAt.before,n);n.insertBefore(t,a)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=f.indexOf(e);t>=0&&f.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return y(t,e.attrs),g(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function x(e,t){var n,r,a,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var o=u++;n=c||(c=v(t)),r=w.bind(null,n,o,!1),a=w.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),g(e,t),t}(t),r=T.bind(null,n,t),a=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=k.bind(null,n),a=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return p(n,t),function(e){for(var r=[],a=0;a<n.length;a++){var o=n[a];(l=i[o.id]).refs--,r.push(l)}e&&p(h(e,t),t);for(a=0;a<r.length;a++){var l;if(0===(l=r[a]).refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete i[l.id]}}}};var b,_=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function w(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function k(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function T(e,t,n){var r=n.css,a=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||i)&&(r=d(r)),a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var o=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(o),l&&URL.revokeObjectURL(l)}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var a,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(a=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")}))}},,,,,,,,function(e,t,n){(function(t){e.exports=function e(t,n,r){function a(o,l){if(!n[o]){if(!t[o]){if(i)return i(o,!0);var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return a(t[o][1][e]||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var i=!1,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(e,t,n){"use strict";var r=e("../src/lib"),a={"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 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":"content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;","X [data-title]:after":"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:white;","X .select-outline-2":"stroke:black;stroke-dasharray:2px 2px;",Y:"font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;","Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in a){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");r.addStyleRule(o,a[i])}},{"../src/lib":178}],2:[function(e,t,n){"use strict";t.exports=e("../src/traces/bar")},{"../src/traces/bar":287}],3:[function(e,t,n){"use strict";t.exports=e("../src/traces/box")},{"../src/traces/box":302}],4:[function(e,t,n){"use strict";t.exports=e("../src/traces/contour")},{"../src/traces/contour":322}],5:[function(e,t,n){"use strict";t.exports=e("../src/core")},{"../src/core":160}],6:[function(e,t,n){"use strict";t.exports=e("../src/traces/heatmap")},{"../src/traces/heatmap":338}],7:[function(e,t,n){"use strict";t.exports=e("../src/traces/histogram")},{"../src/traces/histogram":356}],8:[function(e,t,n){"use strict";t.exports=e("../src/traces/histogram2d")},{"../src/traces/histogram2d":362}],9:[function(e,t,n){"use strict";t.exports=e("../src/traces/histogram2dcontour")},{"../src/traces/histogram2dcontour":366}],10:[function(e,t,n){"use strict";t.exports=e("../src/traces/image")},{"../src/traces/image":373}],11:[function(e,t,n){"use strict";var r=e("./core");r.register([e("./bar"),e("./box"),e("./heatmap"),e("./histogram"),e("./histogram2d"),e("./histogram2dcontour"),e("./image"),e("./pie"),e("./contour"),e("./scatterternary"),e("./violin")]),t.exports=r},{"./bar":2,"./box":3,"./contour":4,"./core":5,"./heatmap":6,"./histogram":7,"./histogram2d":8,"./histogram2dcontour":9,"./image":10,"./pie":12,"./scatterternary":13,"./violin":14}],12:[function(e,t,n){"use strict";t.exports=e("../src/traces/pie")},{"../src/traces/pie":382}],13:[function(e,t,n){"use strict";t.exports=e("../src/traces/scatterternary")},{"../src/traces/scatterternary":422}],14:[function(e,t,n){"use strict";t.exports=e("../src/traces/violin")},{"../src/traces/violin":430}],15:[function(e,t,n){var r=Object.create||function(e){var t=function(){};return t.prototype=e,new t},a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},i=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var l,s=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),l=0===c.x}catch(e){l=!1}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function f(e,t,n){if(t)e.call(n);else for(var r=e.length,a=_(e,r),i=0;i<r;++i)a[i].call(n)}function d(e,t,n,r){if(t)e.call(n,r);else for(var a=e.length,i=_(e,a),o=0;o<a;++o)i[o].call(n,r)}function p(e,t,n,r,a){if(t)e.call(n,r,a);else for(var i=e.length,o=_(e,i),l=0;l<i;++l)o[l].call(n,r,a)}function h(e,t,n,r,a,i){if(t)e.call(n,r,a,i);else for(var o=e.length,l=_(e,o),s=0;s<o;++s)l[s].call(n,r,a,i)}function g(e,t,n,r){if(t)e.apply(n,r);else for(var a=e.length,i=_(e,a),o=0;o<a;++o)i[o].apply(n,r)}function m(e,t,n,a){var i,o,l;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),l=o[t]):(o=e._events=r(null),e._eventsCount=0),l){if("function"==typeof l?l=o[t]=a?[n,l]:[l,n]:a?l.unshift(n):l.push(n),!l.warned&&(i=u(e))&&i>0&&l.length>i){l.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+l.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=l.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else l=o[t]=n,++e._eventsCount;return e}function v(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=i.call(v,r);return a.listener=n,r.wrapFn=a,a}function x(e,t,n){var r=e._events;if(!r)return[];var a=r[t];return a?"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):_(a,a.length):[]}function b(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function _(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}l?Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');s=e}}):o.defaultMaxListeners=s,o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){var t,n,r,a,i,o,l="error"===e;if(o=this._events)l=l&&null==o.error;else if(!l)return!1;if(l){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var s=new Error('Unhandled "error" event. ('+t+")");throw s.context=t,s}if(!(n=o[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:f(n,c,this);break;case 2:d(n,c,this,arguments[1]);break;case 3:p(n,c,this,arguments[1],arguments[2]);break;case 4:h(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(r-1),i=1;i<r;i++)a[i-1]=arguments[i];g(n,c,this,a)}return!0},o.prototype.addListener=function(e,t){return m(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return m(this,e,t,!0)},o.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,a,i,o,l;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(a=this._events))return this;if(!(n=a[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=r(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){l=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i),1===n.length&&(a[e]=n[0]),a.removeListener&&this.emit("removeListener",e,l||t)}return this},o.prototype.removeAllListeners=function(e){var t,n,i;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=r(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=r(null):delete n[e]),this;if(0===arguments.length){var o,l=a(n);for(i=0;i<l.length;++i)"removeListener"!==(o=l[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return x(this,e,!0)},o.prototype.rawListeners=function(e){return x(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},o.prototype.listenerCount=b,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],16:[function(e,t,n){!function(){var e={version:"3.5.17"},n=[].slice,r=function(e){return n.call(e)},a=this.document;function i(e){return e&&(e.ownerDocument||e.document||e).documentElement}function o(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(a)try{r(a.documentElement.childNodes)[0].nodeType}catch(e){r=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var l=this.Element.prototype,s=l.setAttribute,c=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(e,t){s.call(this,e,t+"")},l.setAttributeNS=function(e,t,n){c.call(this,e,t,n+"")},u.setProperty=function(e,t,n){f.call(this,e,t+"",n)}}function d(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function p(e){return null===e?NaN:+e}function h(e){return!isNaN(e)}function g(e){return{left:function(t,n,r,a){for(arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)<0?r=i+1:a=i}return r},right:function(t,n,r,a){for(arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)>0?a=i:r=i+1}return r}}}e.ascending=d,e.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},e.min=function(e,t){var n,r,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(r=e[a])&&r>=r){n=r;break}for(;++a<i;)null!=(r=e[a])&&n>r&&(n=r)}else{for(;++a<i;)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=r;break}for(;++a<i;)null!=(r=t.call(e,e[a],a))&&n>r&&(n=r)}return n},e.max=function(e,t){var n,r,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(r=e[a])&&r>=r){n=r;break}for(;++a<i;)null!=(r=e[a])&&r>n&&(n=r)}else{for(;++a<i;)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=r;break}for(;++a<i;)null!=(r=t.call(e,e[a],a))&&r>n&&(n=r)}return n},e.extent=function(e,t){var n,r,a,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=e[i])&&r>=r){n=a=r;break}for(;++i<o;)null!=(r=e[i])&&(n>r&&(n=r),a<r&&(a=r))}else{for(;++i<o;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=a=r;break}for(;++i<o;)null!=(r=t.call(e,e[i],i))&&(n>r&&(n=r),a<r&&(a=r))}return[n,a]},e.sum=function(e,t){var n,r=0,a=e.length,i=-1;if(1===arguments.length)for(;++i<a;)h(n=+e[i])&&(r+=n);else for(;++i<a;)h(n=+t.call(e,e[i],i))&&(r+=n);return r},e.mean=function(e,t){var n,r=0,a=e.length,i=-1,o=a;if(1===arguments.length)for(;++i<a;)h(n=p(e[i]))?r+=n:--o;else for(;++i<a;)h(n=p(t.call(e,e[i],i)))?r+=n:--o;if(o)return r/o},e.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],i=n-r;return i?a+i*(e[r]-a):a},e.median=function(t,n){var r,a=[],i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)h(r=p(t[o]))&&a.push(r);else for(;++o<i;)h(r=p(n.call(t,t[o],o)))&&a.push(r);if(a.length)return e.quantile(a.sort(d),.5)},e.variance=function(e,t){var n,r,a=e.length,i=0,o=0,l=-1,s=0;if(1===arguments.length)for(;++l<a;)h(n=p(e[l]))&&(o+=(r=n-i)*(n-(i+=r/++s)));else for(;++l<a;)h(n=p(t.call(e,e[l],l)))&&(o+=(r=n-i)*(n-(i+=r/++s)));if(s>1)return o/(s-1)},e.deviation=function(){var t=e.variance.apply(this,arguments);return t?Math.sqrt(t):t};var m=g(d);function v(e){return e.length}e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(e){return g(1===e.length?function(t,n){return d(e(t),n)}:e)},e.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,a,i=n-t;i;)a=Math.random()*i--|0,r=e[i+t],e[i+t]=e[a+t],e[a+t]=r;return e},e.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},e.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],a=new Array(n<0?0:n);t<n;)a[t]=[r,r=e[++t]];return a},e.transpose=function(t){if(!(i=t.length))return[];for(var n=-1,r=e.min(t,v),a=new Array(r);++n<r;)for(var i,o=-1,l=a[n]=new Array(i);++o<i;)l[o]=t[o][n];return a},e.zip=function(){return e.transpose(arguments)},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t},e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},e.merge=function(e){for(var t,n,r,a=e.length,i=-1,o=0;++i<a;)o+=e[i].length;for(n=new Array(o);--a>=0;)for(t=(r=e[a]).length;--t>=0;)n[--o]=r[t];return n};var y=Math.abs;function x(e){for(var t=1;e*t%1;)t*=10;return t}function b(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function _(){this._=Object.create(null)}function w(e){return"__proto__"==(e+="")||"\0"===e[0]?"\0"+e:e}function k(e){return"\0"===(e+="")[0]?e.slice(1):e}function T(e){return w(e)in this._}function M(e){return(e=w(e))in this._&&delete this._[e]}function A(){var e=[];for(var t in this._)e.push(k(t));return e}function S(){var e=0;for(var t in this._)++e;return e}function L(){for(var e in this._)return!1;return!0}function C(){this._=Object.create(null)}function O(e){return e}function P(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function E(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=z.length;n<r;++n){var a=z[n]+t;if(a in e)return a}}e.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,a=[],i=x(y(n)),o=-1;if(e*=i,t*=i,(n*=i)<0)for(;(r=e+n*++o)>t;)a.push(r/i);else for(;(r=e+n*++o)<t;)a.push(r/i);return a},e.map=function(e,t){var n=new _;if(e instanceof _)e.forEach((function(e,t){n.set(e,t)}));else if(Array.isArray(e)){var r,a=-1,i=e.length;if(1===arguments.length)for(;++a<i;)n.set(a,e[a]);else for(;++a<i;)n.set(t.call(e,r=e[a],a),r)}else for(var o in e)n.set(o,e[o]);return n},b(_,{has:T,get:function(e){return this._[w(e)]},set:function(e,t){return this._[w(e)]=t},remove:M,keys:A,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:k(t),value:this._[t]});return e},size:S,empty:L,forEach:function(e){for(var t in this._)e.call(this,k(t),this._[t])}}),e.nest=function(){var t,n,r={},a=[],i=[];function o(e,i,l){if(l>=a.length)return n?n.call(r,i):t?i.sort(t):i;for(var s,c,u,f,d=-1,p=i.length,h=a[l++],g=new _;++d<p;)(f=g.get(s=h(c=i[d])))?f.push(c):g.set(s,[c]);return e?(c=e(),u=function(t,n){c.set(t,o(e,n,l))}):(c={},u=function(t,n){c[t]=o(e,n,l)}),g.forEach(u),c}return r.map=function(e,t){return o(t,e,0)},r.entries=function(t){return function e(t,n){if(n>=a.length)return t;var r=[],o=i[n++];return t.forEach((function(t,a){r.push({key:t,values:e(a,n)})})),o?r.sort((function(e,t){return o(e.key,t.key)})):r}(o(e.map,t,0),0)},r.key=function(e){return a.push(e),r},r.sortKeys=function(e){return i[a.length-1]=e,r},r.sortValues=function(e){return t=e,r},r.rollup=function(e){return n=e,r},r},e.set=function(e){var t=new C;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},b(C,{has:T,add:function(e){return this._[w(e+="")]=!0,e},remove:M,values:A,size:S,empty:L,forEach:function(e){for(var t in this._)e.call(this,k(t))}}),e.behavior={},e.rebind=function(e,t){for(var n,r=1,a=arguments.length;++r<a;)e[n=arguments[r]]=P(e,t,t[n]);return e};var z=["webkit","ms","moz","Moz","o","O"];function D(){}function R(){}function I(e){var t=[],n=new _;function r(){for(var n,r=t,a=-1,i=r.length;++a<i;)(n=r[a].on)&&n.apply(this,arguments);return e}return r.on=function(r,a){var i,o=n.get(r);return arguments.length<2?o&&o.on:(o&&(o.on=null,t=t.slice(0,i=t.indexOf(o)).concat(t.slice(i+1)),n.remove(r)),a&&t.push(n.set(r,{on:a})),e)},r}function N(){e.event.preventDefault()}function F(){for(var t,n=e.event;t=n.sourceEvent;)n=t;return n}function B(t){for(var n=new R,r=0,a=arguments.length;++r<a;)n[arguments[r]]=I(n);return n.of=function(r,a){return function(i){try{var o=i.sourceEvent=e.event;i.target=t,e.event=i,n[i.type].apply(r,a)}finally{e.event=o}}},n}e.dispatch=function(){for(var e=new R,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=I(e);return e},R.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},e.event=null,e.requote=function(e){return e.replace(j,"\\$&")};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,H={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function q(e){return H(e,Z),e}var V=function(e,t){return t.querySelector(e)},U=function(e,t){return t.querySelectorAll(e)},G=function(e,t){var n=e.matches||e[E(e,"matchesSelector")];return(G=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(V=function(e,t){return Sizzle(e,t)[0]||null},U=Sizzle,G=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var Z=e.selection.prototype=[];function W(e){return"function"==typeof e?e:function(){return V(e,this)}}function Y(e){return"function"==typeof e?e:function(){return U(e,this)}}Z.select=function(e){var t,n,r,a,i=[];e=W(e);for(var o=-1,l=this.length;++o<l;){i.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var s=-1,c=r.length;++s<c;)(a=r[s])?(t.push(n=e.call(a,a.__data__,s,o)),n&&"__data__"in a&&(n.__data__=a.__data__)):t.push(null)}return q(i)},Z.selectAll=function(e){var t,n,a=[];e=Y(e);for(var i=-1,o=this.length;++i<o;)for(var l=this[i],s=-1,c=l.length;++s<c;)(n=l[s])&&(a.push(t=r(e.call(n,n.__data__,s,i))),t.parentNode=n);return q(a)};var X="http://www.w3.org/1999/xhtml",$={svg:"http://www.w3.org/2000/svg",xhtml:X,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Q(t,n){return t=e.ns.qualify(t),null==n?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof n?t.local?function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}:function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}:t.local?function(){this.setAttributeNS(t.space,t.local,n)}:function(){this.setAttribute(t,n)}}function K(e){return e.trim().replace(/\s+/g," ")}function J(t){return new RegExp("(?:^|\\s+)"+e.requote(t)+"(?:\\s+|$)","g")}function ee(e){return(e+"").trim().split(/^|\s+/)}function te(e,t){var n=(e=ee(e).map(ne)).length;return"function"==typeof t?function(){for(var r=-1,a=t.apply(this,arguments);++r<n;)e[r](this,a)}:function(){for(var r=-1;++r<n;)e[r](this,t)}}function ne(e){var t=J(e);return function(n,r){if(a=n.classList)return r?a.add(e):a.remove(e);var a=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(a)||n.setAttribute("class",K(a+" "+e))):n.setAttribute("class",K(a.replace(t," ")))}}function re(e,t,n){return null==t?function(){this.style.removeProperty(e)}:"function"==typeof t?function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}:function(){this.style.setProperty(e,t,n)}}function ae(e,t){return null==t?function(){delete this[e]}:"function"==typeof t?function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}:function(){this[e]=t}}function ie(t){return"function"==typeof t?t:(t=e.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){var e=this.ownerDocument,n=this.namespaceURI;return n===X&&e.documentElement.namespaceURI===X?e.createElement(t):e.createElementNS(n,t)}}function oe(){var e=this.parentNode;e&&e.removeChild(this)}function le(e){return{__data__:e}}function se(e){return function(){return G(this,e)}}function ce(e){return arguments.length||(e=d),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function ue(e,t){for(var n=0,r=e.length;n<r;n++)for(var a,i=e[n],o=0,l=i.length;o<l;o++)(a=i[o])&&t(a,o,n);return e}function fe(e){return H(e,de),e}e.ns={prefix:$,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),$.hasOwnProperty(n)?{space:$[n],local:e}:e}},Z.attr=function(t,n){if(arguments.length<2){if("string"==typeof t){var r=this.node();return(t=e.ns.qualify(t)).local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(n in t)this.each(Q(n,t[n]));return this}return this.each(Q(t,n))},Z.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=ee(e)).length,a=-1;if(t=n.classList){for(;++a<r;)if(!t.contains(e[a]))return!1}else for(t=n.getAttribute("class");++a<r;)if(!J(e[a]).test(t))return!1;return!0}for(t in e)this.each(te(t,e[t]));return this}return this.each(te(e,t))},Z.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=""),e)this.each(re(n,e[n],t));return this}if(r<2){var a=this.node();return o(a).getComputedStyle(a,null).getPropertyValue(e)}n=""}return this.each(re(e,t,n))},Z.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(ae(t,e[t]));return this}return this.each(ae(e,t))},Z.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},Z.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},Z.append=function(e){return e=ie(e),this.select((function(){return this.appendChild(e.apply(this,arguments))}))},Z.insert=function(e,t){return e=ie(e),t=W(t),this.select((function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)}))},Z.remove=function(){return this.each(oe)},Z.data=function(e,t){var n,r,a=-1,i=this.length;if(!arguments.length){for(e=new Array(i=(n=this[0]).length);++a<i;)(r=n[a])&&(e[a]=r.__data__);return e}function o(e,n){var r,a,i,o=e.length,u=n.length,f=Math.min(o,u),d=new Array(u),p=new Array(u),h=new Array(o);if(t){var g,m=new _,v=new Array(o);for(r=-1;++r<o;)(a=e[r])&&(m.has(g=t.call(a,a.__data__,r))?h[r]=a:m.set(g,a),v[r]=g);for(r=-1;++r<u;)(a=m.get(g=t.call(n,i=n[r],r)))?!0!==a&&(d[r]=a,a.__data__=i):p[r]=le(i),m.set(g,!0);for(r=-1;++r<o;)r in v&&!0!==m.get(v[r])&&(h[r]=e[r])}else{for(r=-1;++r<f;)a=e[r],i=n[r],a?(a.__data__=i,d[r]=a):p[r]=le(i);for(;r<u;++r)p[r]=le(n[r]);for(;r<o;++r)h[r]=e[r]}p.update=d,p.parentNode=d.parentNode=h.parentNode=e.parentNode,l.push(p),s.push(d),c.push(h)}var l=fe([]),s=q([]),c=q([]);if("function"==typeof e)for(;++a<i;)o(n=this[a],e.call(n,n.parentNode.__data__,a));else for(;++a<i;)o(n=this[a],e);return s.enter=function(){return l},s.exit=function(){return c},s},Z.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},Z.filter=function(e){var t,n,r,a=[];"function"!=typeof e&&(e=se(e));for(var i=0,o=this.length;i<o;i++){a.push(t=[]),t.parentNode=(n=this[i]).parentNode;for(var l=0,s=n.length;l<s;l++)(r=n[l])&&e.call(r,r.__data__,l,i)&&t.push(r)}return q(a)},Z.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],a=r.length-1,i=r[a];--a>=0;)(n=r[a])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Z.sort=function(e){e=ce.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},Z.each=function(e){return ue(this,(function(t,n,r){e.call(t,t.__data__,n,r)}))},Z.call=function(e){var t=r(arguments);return e.apply(t[0]=this,t),this},Z.empty=function(){return!this.node()},Z.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,a=n.length;r<a;r++){var i=n[r];if(i)return i}return null},Z.size=function(){var e=0;return ue(this,(function(){++e})),e};var de=[];function pe(e){var t,n;return function(r,a,i){var o,l=e[i].update,s=l.length;for(i!=n&&(n=i,t=0),a>=t&&(t=a+1);!(o=l[t])&&++t<s;);return o}}function he(t,n,a){var i="__on"+t,o=t.indexOf("."),l=me;o>0&&(t=t.slice(0,o));var s=ge.get(t);function c(){var e=this[i];e&&(this.removeEventListener(t,e,e.$),delete this[i])}return s&&(t=s,l=ve),o?n?function(){var e=l(n,r(arguments));c.call(this),this.addEventListener(t,this[i]=e,e.$=a),e._=n}:c:n?D:function(){var n,r=new RegExp("^__on([^.]+)"+e.requote(t)+"$");for(var a in this)if(n=a.match(r)){var i=this[a];this.removeEventListener(n[1],i,i.$),delete this[a]}}}e.selection.enter=fe,e.selection.enter.prototype=de,de.append=Z.append,de.empty=Z.empty,de.node=Z.node,de.call=Z.call,de.size=Z.size,de.select=function(e){for(var t,n,r,a,i,o=[],l=-1,s=this.length;++l<s;){r=(a=this[l]).update,o.push(t=[]),t.parentNode=a.parentNode;for(var c=-1,u=a.length;++c<u;)(i=a[c])?(t.push(r[c]=n=e.call(a.parentNode,i.__data__,c,l)),n.__data__=i.__data__):t.push(null)}return q(o)},de.insert=function(e,t){return arguments.length<2&&(t=pe(this)),Z.insert.call(this,e,t)},e.select=function(e){var t;return"string"==typeof e?(t=[V(e,a)]).parentNode=a.documentElement:(t=[e]).parentNode=i(e),q([t])},e.selectAll=function(e){var t;return"string"==typeof e?(t=r(U(e,a))).parentNode=a.documentElement:(t=r(e)).parentNode=null,q([t])},Z.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=!1),e)this.each(he(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(he(e,t,n))};var ge=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});function me(t,n){return function(r){var a=e.event;e.event=r,n[0]=this.__data__;try{t.apply(this,n)}finally{e.event=a}}}function ve(e,t){var n=me(e,t);return function(e){var t=e.relatedTarget;t&&(t===this||8&t.compareDocumentPosition(this))||n.call(this,e)}}a&&ge.forEach((function(e){"on"+e in a&&ge.remove(e)}));var ye,xe=0;function be(t){var n=".dragsuppress-"+ ++xe,r="click"+n,a=e.select(o(t)).on("touchmove"+n,N).on("dragstart"+n,N).on("selectstart"+n,N);if(null==ye&&(ye=!("onselectstart"in t)&&E(t.style,"userSelect")),ye){var l=i(t).style,s=l[ye];l[ye]="none"}return function(e){if(a.on(n,null),ye&&(l[ye]=s),e){var t=function(){a.on(r,null)};a.on(r,(function(){N(),t()}),!0),setTimeout(t,0)}}}e.mouse=function(e){return we(e,F())};var _e=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function we(t,n){n.changedTouches&&(n=n.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var a=r.createSVGPoint();if(_e<0){var i=o(t);if(i.scrollX||i.scrollY){var l=(r=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();_e=!(l.f||l.e),r.remove()}}return _e?(a.x=n.pageX,a.y=n.pageY):(a.x=n.clientX,a.y=n.clientY),[(a=a.matrixTransform(t.getScreenCTM().inverse())).x,a.y]}var s=t.getBoundingClientRect();return[n.clientX-s.left-t.clientLeft,n.clientY-s.top-t.clientTop]}function ke(){return e.event.changedTouches[0].identifier}e.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=F().changedTouches),t)for(var r,a=0,i=t.length;a<i;++a)if((r=t[a]).identifier===n)return we(e,r)},e.behavior.drag=function(){var t=B(i,"drag","dragstart","dragend"),n=null,r=l(D,e.mouse,o,"mousemove","mouseup"),a=l(ke,e.touch,O,"touchmove","touchend");function i(){this.on("mousedown.drag",r).on("touchstart.drag",a)}function l(r,a,i,o,l){return function(){var s,c=this,u=e.event.target.correspondingElement||e.event.target,f=c.parentNode,d=t.of(c,arguments),p=0,h=r(),g=".drag"+(null==h?"":"-"+h),m=e.select(i(u)).on(o+g,x).on(l+g,b),v=be(u),y=a(f,h);function x(){var e,t,n=a(f,h);n&&(e=n[0]-y[0],t=n[1]-y[1],p|=e|t,y=n,d({type:"drag",x:n[0]+s[0],y:n[1]+s[1],dx:e,dy:t}))}function b(){a(f,h)&&(m.on(o+g,null).on(l+g,null),v(p),d({type:"dragend"}))}s=n?[(s=n.apply(c,arguments)).x-y[0],s.y-y[1]]:[0,0],d({type:"dragstart"})}}return i.origin=function(e){return arguments.length?(n=e,i):n},e.rebind(i,t,"on")},e.touches=function(e,t){return arguments.length<2&&(t=F().touches),t?r(t).map((function(t){var n=we(e,t);return n.identifier=t.identifier,n})):[]};var Te=1e-6,Me=1e-12,Ae=Math.PI,Se=2*Ae,Le=Se-Te,Ce=Ae/2,Oe=Ae/180,Pe=180/Ae;function Ee(e){return e>0?1:e<0?-1:0}function ze(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function De(e){return e>1?0:e<-1?Ae:Math.acos(e)}function Re(e){return e>1?Ce:e<-1?-Ce:Math.asin(e)}function Ie(e){return((e=Math.exp(e))+1/e)/2}function Ne(e){return(e=Math.sin(e/2))*e}var Fe=Math.SQRT2;e.interpolateZoom=function(e,t){var n,r,a=e[0],i=e[1],o=e[2],l=t[0],s=t[1],c=t[2],u=l-a,f=s-i,d=u*u+f*f;if(d<Me)r=Math.log(c/o)/Fe,n=function(e){return[a+e*u,i+e*f,o*Math.exp(Fe*e*r)]};else{var p=Math.sqrt(d),h=(c*c-o*o+4*d)/(2*o*2*p),g=(c*c-o*o-4*d)/(2*c*2*p),m=Math.log(Math.sqrt(h*h+1)-h),v=Math.log(Math.sqrt(g*g+1)-g);r=(v-m)/Fe,n=function(e){var t,n=e*r,l=Ie(m),s=o/(2*p)*(l*(t=Fe*n+m,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(m));return[a+s*u,i+s*f,o*l/Ie(Fe*n+m)]}}return n.duration=1e3*r,n},e.behavior.zoom=function(){var t,n,r,i,l,s,c,u,f,d={x:0,y:0,k:1},p=[960,500],h=He,g=250,m=0,v="mousedown.zoom",y="mousemove.zoom",x="mouseup.zoom",b="touchstart.zoom",_=B(w,"zoomstart","zoom","zoomend");function w(e){e.on(v,P).on(je+".zoom",z).on("dblclick.zoom",D).on(b,E)}function k(e){return[(e[0]-d.x)/d.k,(e[1]-d.y)/d.k]}function T(e){d.k=Math.max(h[0],Math.min(h[1],e))}function M(e,t){t=function(e){return[e[0]*d.k+d.x,e[1]*d.k+d.y]}(t),d.x+=e[0]-t[0],d.y+=e[1]-t[1]}function A(t,r,a,i){t.__chart__={x:d.x,y:d.y,k:d.k},T(Math.pow(2,i)),M(n=r,a),t=e.select(t),g>0&&(t=t.transition().duration(g)),t.call(w.event)}function S(){c&&c.domain(s.range().map((function(e){return(e-d.x)/d.k})).map(s.invert)),f&&f.domain(u.range().map((function(e){return(e-d.y)/d.k})).map(u.invert))}function L(e){m++||e({type:"zoomstart"})}function C(e){S(),e({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function O(e){--m||(e({type:"zoomend"}),n=null)}function P(){var t=this,n=_.of(t,arguments),r=0,a=e.select(o(t)).on(y,s).on(x,c),i=k(e.mouse(t)),l=be(t);function s(){r=1,M(e.mouse(t),i),C(n)}function c(){a.on(y,null).on(x,null),l(r),O(n)}ml.call(t),L(n)}function E(){var t,n=this,r=_.of(n,arguments),a={},i=0,o=".zoom-"+e.event.changedTouches[0].identifier,s="touchmove"+o,c="touchend"+o,u=[],f=e.select(n),p=be(n);function h(){var r=e.touches(n);return t=d.k,r.forEach((function(e){e.identifier in a&&(a[e.identifier]=k(e))})),r}function g(){var t=e.event.target;e.select(t).on(s,m).on(c,y),u.push(t);for(var r=e.event.changedTouches,o=0,f=r.length;o<f;++o)a[r[o].identifier]=null;var p=h(),g=Date.now();if(1===p.length){if(g-l<500){var v=p[0];A(n,v,a[v.identifier],Math.floor(Math.log(d.k)/Math.LN2)+1),N()}l=g}else if(p.length>1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];i=b*b+_*_}}function m(){var o,s,c,u,f=e.touches(n);ml.call(n);for(var d=0,p=f.length;d<p;++d,u=null)if(c=f[d],u=a[c.identifier]){if(s)break;o=c,s=u}if(u){var h=(h=c[0]-o[0])*h+(h=c[1]-o[1])*h,g=i&&Math.sqrt(h/i);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],s=[(s[0]+u[0])/2,(s[1]+u[1])/2],T(g*t)}l=null,M(o,s),C(r)}function y(){if(e.event.touches.length){for(var t=e.event.changedTouches,n=0,i=t.length;n<i;++n)delete a[t[n].identifier];for(var l in a)return void h()}e.selectAll(u).on(o,null),f.on(v,P).on(b,E),p(),O(r)}g(),L(r),f.on(v,null).on(b,g)}function z(){var a=_.of(this,arguments);i?clearTimeout(i):(ml.call(this),t=k(n=r||e.mouse(this)),L(a)),i=setTimeout((function(){i=null,O(a)}),50),N(),T(Math.pow(2,.002*Be())*d.k),M(n,t),C(a)}function D(){var t=e.mouse(this),n=Math.log(d.k)/Math.LN2;A(this,t,k(t),e.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}return je||(je="onwheel"in a?(Be=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Be=function(){return e.event.wheelDelta},"mousewheel"):(Be=function(){return-e.event.detail},"MozMousePixelScroll")),w.event=function(t){t.each((function(){var t=_.of(this,arguments),r=d;xl?e.select(this).transition().each("start.zoom",(function(){d=this.__chart__||{x:0,y:0,k:1},L(t)})).tween("zoom:zoom",(function(){var a=p[0],i=p[1],o=n?n[0]:a/2,l=n?n[1]:i/2,s=e.interpolateZoom([(o-d.x)/d.k,(l-d.y)/d.k,a/d.k],[(o-r.x)/r.k,(l-r.y)/r.k,a/r.k]);return function(e){var n=s(e),r=a/n[2];this.__chart__=d={x:o-n[0]*r,y:l-n[1]*r,k:r},C(t)}})).each("interrupt.zoom",(function(){O(t)})).each("end.zoom",(function(){O(t)})):(this.__chart__=d,L(t),C(t),O(t))}))},w.translate=function(e){return arguments.length?(d={x:+e[0],y:+e[1],k:d.k},S(),w):[d.x,d.y]},w.scale=function(e){return arguments.length?(d={x:d.x,y:d.y,k:null},T(+e),S(),w):d.k},w.scaleExtent=function(e){return arguments.length?(h=null==e?He:[+e[0],+e[1]],w):h},w.center=function(e){return arguments.length?(r=e&&[+e[0],+e[1]],w):r},w.size=function(e){return arguments.length?(p=e&&[+e[0],+e[1]],w):p},w.duration=function(e){return arguments.length?(g=+e,w):g},w.x=function(e){return arguments.length?(c=e,s=e.copy(),d={x:0,y:0,k:1},w):c},w.y=function(e){return arguments.length?(f=e,u=e.copy(),d={x:0,y:0,k:1},w):f},e.rebind(w,_,"on")};var Be,je,He=[0,1/0];function qe(){}function Ve(e,t,n){return this instanceof Ve?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof Ve?new Ve(e.h,e.s,e.l):st(""+e,ct,Ve):new Ve(e,t,n)}e.color=qe,qe.prototype.toString=function(){return this.rgb()+""},e.hsl=Ve;var Ue=Ve.prototype=new qe;function Ge(e,t,n){var r,a;function i(e){return Math.round(255*function(e){return e>360?e-=360:e<0&&(e+=360),e<60?r+(a-r)*e/60:e<180?a:e<240?r+(a-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(a=n<=.5?n*(1+t):n+t-n*t),new rt(i(e+120),i(e),i(e-120))}function Ze(t,n,r){return this instanceof Ze?(this.h=+t,this.c=+n,void(this.l=+r)):arguments.length<2?t instanceof Ze?new Ze(t.h,t.c,t.l):Je(t instanceof Xe?t.l:(t=ut((t=e.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Ze(t,n,r)}Ue.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ve(this.h,this.s,this.l/e)},Ue.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ve(this.h,this.s,e*this.l)},Ue.rgb=function(){return Ge(this.h,this.s,this.l)},e.hcl=Ze;var We=Ze.prototype=new qe;function Ye(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Xe(n,Math.cos(e*=Oe)*t,Math.sin(e)*t)}function Xe(e,t,n){return this instanceof Xe?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Xe?new Xe(e.l,e.a,e.b):e instanceof Ze?Ye(e.h,e.c,e.l):ut((e=rt(e)).r,e.g,e.b):new Xe(e,t,n)}We.brighter=function(e){return new Ze(this.h,this.c,Math.min(100,this.l+$e*(arguments.length?e:1)))},We.darker=function(e){return new Ze(this.h,this.c,Math.max(0,this.l-$e*(arguments.length?e:1)))},We.rgb=function(){return Ye(this.h,this.c,this.l).rgb()},e.lab=Xe;var $e=18,Qe=Xe.prototype=new qe;function Ke(e,t,n){var r=(e+16)/116,a=r+t/500,i=r-n/200;return new rt(nt(3.2404542*(a=.95047*et(a))-1.5371385*(r=1*et(r))-.4985314*(i=1.08883*et(i))),nt(-.969266*a+1.8760108*r+.041556*i),nt(.0556434*a-.2040259*r+1.0572252*i))}function Je(e,t,n){return e>0?new Ze(Math.atan2(n,t)*Pe,Math.sqrt(t*t+n*n),e):new Ze(NaN,NaN,e)}function et(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function tt(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function nt(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function rt(e,t,n){return this instanceof rt?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof rt?new rt(e.r,e.g,e.b):st(""+e,rt,Ge):new rt(e,t,n)}function at(e){return new rt(e>>16,e>>8&255,255&e)}function it(e){return at(e)+""}Qe.brighter=function(e){return new Xe(Math.min(100,this.l+$e*(arguments.length?e:1)),this.a,this.b)},Qe.darker=function(e){return new Xe(Math.max(0,this.l-$e*(arguments.length?e:1)),this.a,this.b)},Qe.rgb=function(){return Ke(this.l,this.a,this.b)},e.rgb=rt;var ot=rt.prototype=new qe;function lt(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function st(e,t,n){var r,a,i,o=0,l=0,s=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=r[2].split(","),r[1]){case"hsl":return n(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(dt(a[0]),dt(a[1]),dt(a[2]))}return(i=pt.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&i)>>4,o|=o>>4,l=240&i,l|=l>>4,s=15&i,s|=s<<4):7===e.length&&(o=(16711680&i)>>16,l=(65280&i)>>8,s=255&i)),t(o,l,s))}function ct(e,t,n){var r,a,i=Math.min(e/=255,t/=255,n/=255),o=Math.max(e,t,n),l=o-i,s=(o+i)/2;return l?(a=s<.5?l/(o+i):l/(2-o-i),r=e==o?(t-n)/l+(t<n?6:0):t==o?(n-e)/l+2:(e-t)/l+4,r*=60):(r=NaN,a=s>0&&s<1?0:r),new Ve(r,a,s)}function ut(e,t,n){var r=tt((.4124564*(e=ft(e))+.3575761*(t=ft(t))+.1804375*(n=ft(n)))/.95047),a=tt((.2126729*e+.7151522*t+.072175*n)/1);return Xe(116*a-16,500*(r-a),200*(a-tt((.0193339*e+.119192*t+.9503041*n)/1.08883)))}function ft(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}ot.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,a=30;return t||n||r?(t&&t<a&&(t=a),n&&n<a&&(n=a),r&&r<a&&(r=a),new rt(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new rt(a,a,a)},ot.darker=function(e){return new rt((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},ot.hsl=function(){return ct(this.r,this.g,this.b)},ot.toString=function(){return"#"+lt(this.r)+lt(this.g)+lt(this.b)};var pt=e.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});function ht(e){return"function"==typeof e?e:function(){return e}}function gt(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),mt(t,n,e,r)}}function mt(t,n,a,i){var o={},l=e.dispatch("beforesend","progress","load","error"),s={},c=new XMLHttpRequest,u=null;function f(){var e,t=c.status;if(!t&&function(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}(c)||t>=200&&t<300||304===t){try{e=a.call(o,c)}catch(e){return void l.error.call(o,e)}l.load.call(o,e)}else l.error.call(o,c)}return this.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(t)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(t){var n=e.event;e.event=t;try{l.progress.call(o,c)}finally{e.event=n}},o.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",o)},o.mimeType=function(e){return arguments.length?(n=null==e?null:e+"",o):n},o.responseType=function(e){return arguments.length?(u=e,o):u},o.response=function(e){return a=e,o},["get","post"].forEach((function(e){o[e]=function(){return o.send.apply(o,[e].concat(r(arguments)))}})),o.send=function(e,r,a){if(2===arguments.length&&"function"==typeof r&&(a=r,r=null),c.open(e,t,!0),null==n||"accept"in s||(s.accept=n+",*/*"),c.setRequestHeader)for(var i in s)c.setRequestHeader(i,s[i]);return null!=n&&c.overrideMimeType&&c.overrideMimeType(n),null!=u&&(c.responseType=u),null!=a&&o.on("error",a).on("load",(function(e){a(null,e)})),l.beforesend.call(o,c),c.send(null==r?null:r),o},o.abort=function(){return c.abort(),o},e.rebind(o,l,"on"),null==i?o:o.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(i))}pt.forEach((function(e,t){pt.set(e,at(t))})),e.functor=ht,e.xhr=gt(O),e.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function a(e,n,r){arguments.length<3&&(r=n,n=null);var a=mt(e,t,null==n?i:o(n),r);return a.row=function(e){return arguments.length?a.response(null==(n=e)?i:o(e)):n},a}function i(e){return a.parse(e.responseText)}function o(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var n;return a.parseRows(e,(function(e,r){if(n)return n(e,r-1);var a=new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}");n=t?function(e,n){return t(a(e),n)}:a}))},a.parseRows=function(e,t){var n,a,i={},o={},l=[],s=e.length,c=0,u=0;function f(){if(c>=s)return o;if(a)return a=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++<s;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}return c=n+2,13===(l=e.charCodeAt(n+1))?(a=!0,10===e.charCodeAt(n+2)&&++c):10===l&&(a=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;c<s;){var l,u=1;if(10===(l=e.charCodeAt(c++)))a=!0;else if(13===l)a=!0,10===e.charCodeAt(c)&&(++c,++u);else if(l!==r)continue;return e.slice(t,c-u)}return e.slice(t)}for(;(n=f())!==o;){for(var d=[];n!==i&&n!==o;)d.push(n),n=f();t&&null==(d=t(d,u++))||l.push(d)}return l},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var n=new C,r=[];return t.forEach((function(e){for(var t in e)n.has(t)||r.push(n.add(t))})),[r.map(s).join(e)].concat(t.map((function(t){return r.map((function(e){return s(t[e])})).join(e)}))).join("\n")},a.formatRows=function(e){return e.map(l).join("\n")},a},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("\t","text/tab-separated-values");var vt,yt,xt,bt,_t=this[E(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function wt(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var a=n+t,i={c:e,t:a,n:null};return yt?yt.n=i:vt=i,yt=i,xt||(bt=clearTimeout(bt),xt=1,_t(kt)),i}function kt(){var e=Tt(),t=Mt()-e;t>24?(isFinite(t)&&(clearTimeout(bt),bt=setTimeout(kt,t)),xt=0):(xt=1,_t(kt))}function Tt(){for(var e=Date.now(),t=vt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Mt(){for(var e,t=vt,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:vt=t.n;return yt=e,n}function At(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}e.timer=function(){wt.apply(this,arguments)},e.timer.flush=function(){Tt(),Mt()},e.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var St=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map((function(e,t){var n=Math.pow(10,3*y(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}));function Lt(t){var n=t.decimal,r=t.thousands,a=t.grouping,i=t.currency,o=a&&r?function(e,t){for(var n=e.length,i=[],o=0,l=a[0],s=0;n>0&&l>0&&(s+l+1>t&&(l=Math.max(1,t-s)),i.push(e.substring(n-=l,n+l)),!((s+=l+1)>t));)l=a[o=(o+1)%a.length];return i.reverse().join(r)}:O;return function(t){var r=Ct.exec(t),a=r[1]||" ",l=r[2]||">",s=r[3]||"-",c=r[4]||"",u=r[5],f=+r[6],d=r[7],p=r[8],h=r[9],g=1,m="",v="",y=!1,x=!0;switch(p&&(p=+p.substring(1)),(u||"0"===a&&"="===l)&&(u=a="0",l="="),h){case"n":d=!0,h="g";break;case"%":g=100,v="%",h="f";break;case"p":g=100,v="%",h="r";break;case"b":case"o":case"x":case"X":"#"===c&&(m="0"+h.toLowerCase());case"c":x=!1;case"d":y=!0,p=0;break;case"s":g=-1,h="r"}"$"===c&&(m=i[0],v=i[1]),"r"!=h||p||(h="g"),null!=p&&("g"==h?p=Math.max(1,Math.min(21,p)):"e"!=h&&"f"!=h||(p=Math.max(0,Math.min(20,p)))),h=Ot.get(h)||Pt;var b=u&&d;return function(t){var r=v;if(y&&t%1)return"";var i=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===s?"":s;if(g<0){var c=e.formatPrefix(t,p);t=c.scale(t),r=c.symbol+v}else t*=g;var _,w,k=(t=h(t,p)).lastIndexOf(".");if(k<0){var T=x?t.lastIndexOf("e"):-1;T<0?(_=t,w=""):(_=t.substring(0,T),w=t.substring(T))}else _=t.substring(0,k),w=n+t.substring(k+1);!u&&d&&(_=o(_,1/0));var M=m.length+_.length+w.length+(b?0:i.length),A=M<f?new Array(M=f-M+1).join(a):"";return b&&(_=o(A+_,A.length?f-w.length:1/0)),i+=m,t=_+w,("<"===l?i+t+A:">"===l?A+i+t:"^"===l?A.substring(0,M>>=1)+i+t+A.substring(M):i+(b?t:A+t))+r}}}e.formatPrefix=function(t,n){var r=0;return(t=+t)&&(t<0&&(t*=-1),n&&(t=e.round(t,At(t,n))),r=1+Math.floor(1e-12+Math.log(t)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),St[8+r/3]};var Ct=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Ot=e.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(t,n){return(t=e.round(t,At(t,n))).toFixed(Math.max(0,Math.min(20,At(t*(1+1e-15),n))))}});function Pt(e){return e+""}var Et=e.time={},zt=Date;function Dt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Dt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Rt.setUTCDate.apply(this._,arguments)},setDay:function(){Rt.setUTCDay.apply(this._,arguments)},setFullYear:function(){Rt.setUTCFullYear.apply(this._,arguments)},setHours:function(){Rt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Rt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Rt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Rt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Rt.setUTCSeconds.apply(this._,arguments)},setTime:function(){Rt.setTime.apply(this._,arguments)}};var Rt=Date.prototype;function It(e,t,n){function r(t){var n=e(t),r=i(n,1);return t-n<r-t?n:r}function a(n){return t(n=e(new zt(n-1)),1),n}function i(e,n){return t(e=new zt(+e),n),e}function o(e,r,i){var o=a(e),l=[];if(i>1)for(;o<r;)n(o)%i||l.push(new Date(+o)),t(o,1);else for(;o<r;)l.push(new Date(+o)),t(o,1);return l}e.floor=e,e.round=r,e.ceil=a,e.offset=i,e.range=o;var l=e.utc=Nt(e);return l.floor=l,l.round=Nt(r),l.ceil=Nt(a),l.offset=Nt(i),l.range=function(e,t,n){try{zt=Dt;var r=new Dt;return r._=e,o(r,t,n)}finally{zt=Date}},e}function Nt(e){return function(t,n){try{zt=Dt;var r=new Dt;return r._=t,e(r,n)._}finally{zt=Date}}}function Ft(t){var n=t.dateTime,r=t.date,a=t.time,i=t.periods,o=t.days,l=t.shortDays,s=t.months,c=t.shortMonths;function u(e){var t=e.length;function n(n){for(var r,a,i,o=[],l=-1,s=0;++l<t;)37===e.charCodeAt(l)&&(o.push(e.slice(s,l)),null!=(a=Bt[r=e.charAt(++l)])&&(r=e.charAt(++l)),(i=_[r])&&(r=i(n,null==a?"e"===r?" ":"0":a)),o.push(r),s=l+1);return o.push(e.slice(s,l)),o.join("")}return n.parse=function(t){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(n,e,t,0)!=t.length)return null;"p"in n&&(n.H=n.H%12+12*n.p);var r=null!=n.Z&&zt!==Dt,a=new(r?Dt:zt);return"j"in n?a.setFullYear(n.y,0,n.j):"W"in n||"U"in n?("w"in n||(n.w="W"in n?1:0),a.setFullYear(n.y,0,1),a.setFullYear(n.y,0,"W"in n?(n.w+6)%7+7*n.W-(a.getDay()+5)%7:n.w+7*n.U-(a.getDay()+6)%7)):a.setFullYear(n.y,n.m,n.d),a.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),r?a._:a},n.toString=function(){return e},n}function f(e,t,n,r){for(var a,i,o,l=0,s=t.length,c=n.length;l<s;){if(r>=c)return-1;if(37===(a=t.charCodeAt(l++))){if(o=t.charAt(l++),!(i=w[o in Bt?t.charAt(l++):o])||(r=i(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}u.utc=function(e){var t=u(e);function n(e){try{var n=new(zt=Dt);return n._=e,t(n)}finally{zt=Date}}return n.parse=function(e){try{zt=Dt;var n=t.parse(e);return n&&n._}finally{zt=Date}},n.toString=t.toString,n},u.multi=u.utc.multi=ln;var d=e.map(),p=Vt(o),h=Ut(o),g=Vt(l),m=Ut(l),v=Vt(s),y=Ut(s),x=Vt(c),b=Ut(c);i.forEach((function(e,t){d.set(e.toLowerCase(),t)}));var _={a:function(e){return l[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:u(n),d:function(e,t){return qt(e.getDate(),t,2)},e:function(e,t){return qt(e.getDate(),t,2)},H:function(e,t){return qt(e.getHours(),t,2)},I:function(e,t){return qt(e.getHours()%12||12,t,2)},j:function(e,t){return qt(1+Et.dayOfYear(e),t,3)},L:function(e,t){return qt(e.getMilliseconds(),t,3)},m:function(e,t){return qt(e.getMonth()+1,t,2)},M:function(e,t){return qt(e.getMinutes(),t,2)},p:function(e){return i[+(e.getHours()>=12)]},S:function(e,t){return qt(e.getSeconds(),t,2)},U:function(e,t){return qt(Et.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return qt(Et.mondayOfYear(e),t,2)},x:u(r),X:u(a),y:function(e,t){return qt(e.getFullYear()%100,t,2)},Y:function(e,t){return qt(e.getFullYear()%1e4,t,4)},Z:an,"%":function(){return"%"}},w={a:function(e,t,n){g.lastIndex=0;var r=g.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){p.lastIndex=0;var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){x.lastIndex=0;var r=x.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){v.lastIndex=0;var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return f(e,_.c.toString(),t,n)},d:Kt,e:Kt,H:en,I:en,j:Jt,L:rn,m:Qt,M:tn,p:function(e,t,n){var r=d.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:nn,U:Zt,w:Gt,W:Wt,x:function(e,t,n){return f(e,_.x.toString(),t,n)},X:function(e,t,n){return f(e,_.X.toString(),t,n)},y:Xt,Y:Yt,Z:$t,"%":on};return u}Et.year=It((function(e){return(e=Et.day(e)).setMonth(0,1),e}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e){return e.getFullYear()})),Et.years=Et.year.range,Et.years.utc=Et.year.utc.range,Et.day=It((function(e){var t=new zt(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e){return e.getDate()-1})),Et.days=Et.day.range,Et.days.utc=Et.day.utc.range,Et.dayOfYear=function(e){var t=Et.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(e,t){t=7-t;var n=Et[e]=It((function(e){return(e=Et.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e}),(function(e,t){e.setDate(e.getDate()+7*Math.floor(t))}),(function(e){var n=Et.year(e).getDay();return Math.floor((Et.dayOfYear(e)+(n+t)%7)/7)-(n!==t)}));Et[e+"s"]=n.range,Et[e+"s"].utc=n.utc.range,Et[e+"OfYear"]=function(e){var n=Et.year(e).getDay();return Math.floor((Et.dayOfYear(e)+(n+t)%7)/7)}})),Et.week=Et.sunday,Et.weeks=Et.sunday.range,Et.weeks.utc=Et.sunday.utc.range,Et.weekOfYear=Et.sundayOfYear;var Bt={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,Ht=/^%/;function qt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function Vt(t){return new RegExp("^(?:"+t.map(e.requote).join("|")+")","i")}function Ut(e){for(var t=new _,n=-1,r=e.length;++n<r;)t.set(e[n].toLowerCase(),n);return t}function Gt(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Zt(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function Wt(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function Yt(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Xt(e,t,n){jt.lastIndex=0;var r,a=jt.exec(t.slice(n,n+2));return a?(e.y=(r=+a[0])+(r>68?1900:2e3),n+a[0].length):-1}function $t(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function Qt(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Kt(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Jt(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function en(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function tn(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function nn(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rn(e,t,n){jt.lastIndex=0;var r=jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function an(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=y(t)/60|0,a=y(t)%60;return n+qt(r,"0",2)+qt(a,"0",2)}function on(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ln(e){for(var t=e.length,n=-1;++n<t;)e[n][0]=this(e[n][0]);return function(t){for(var n=0,r=e[n];!r[1](t);)r=e[++n];return r[0](t)}}e.locale=function(e){return{numberFormat:Lt(e),timeFormat:Ft(e)}};var sn=e.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function cn(){}e.format=sn.numberFormat,e.geo={},cn.prototype={s:0,t:0,add:function(e){fn(e,this.t,un),fn(un.s,this.s,this),this.s?this.t+=un.t:this.s=un.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var un=new cn;function fn(e,t,n){var r=n.s=e+t,a=r-e,i=r-a;n.t=e-i+(t-a)}function dn(e,t){e&&hn.hasOwnProperty(e.type)&&hn[e.type](e,t)}e.geo.stream=function(e,t){e&&pn.hasOwnProperty(e.type)?pn[e.type](e,t):dn(e,t)};var pn={Feature:function(e,t){dn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,a=n.length;++r<a;)dn(n[r].geometry,t)}},hn={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){gn(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)gn(n[r],t,0)},Polygon:function(e,t){mn(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)mn(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,a=n.length;++r<a;)dn(n[r],t)}};function gn(e,t,n){var r,a=-1,i=e.length-n;for(t.lineStart();++a<i;)r=e[a],t.point(r[0],r[1],r[2]);t.lineEnd()}function mn(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)gn(e[n],t,1);t.polygonEnd()}e.geo.area=function(t){return vn=0,e.geo.stream(t,On),vn};var vn,yn,xn,bn,_n,wn,kn,Tn,Mn,An,Sn,Ln,Cn=new cn,On={sphere:function(){vn+=4*Ae},point:D,lineStart:D,lineEnd:D,polygonStart:function(){Cn.reset(),On.lineStart=Pn},polygonEnd:function(){var e=2*Cn;vn+=e<0?4*Ae+e:e,On.lineStart=On.lineEnd=On.point=D}};function Pn(){var e,t,n,r,a;function i(e,t){t=t*Oe/2+Ae/4;var i=(e*=Oe)-n,o=i>=0?1:-1,l=o*i,s=Math.cos(t),c=Math.sin(t),u=a*c,f=r*s+u*Math.cos(l),d=u*o*Math.sin(l);Cn.add(Math.atan2(d,f)),n=e,r=s,a=c}On.point=function(o,l){On.point=i,n=(e=o)*Oe,r=Math.cos(l=(t=l)*Oe/2+Ae/4),a=Math.sin(l)},On.lineEnd=function(){i(e,t)}}function En(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function zn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Dn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Rn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function In(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Nn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Fn(e){return[Math.atan2(e[1],e[0]),Re(e[2])]}function Bn(e,t){return y(e[0]-t[0])<Te&&y(e[1]-t[1])<Te}e.geo.bounds=function(){var t,n,r,a,i,o,l,s,c,u,f,d={point:p,lineStart:g,lineEnd:m,polygonStart:function(){d.point=v,d.lineStart=x,d.lineEnd=b,c=0,On.polygonStart()},polygonEnd:function(){On.polygonEnd(),d.point=p,d.lineStart=g,d.lineEnd=m,Cn<0?(t=-(r=180),n=-(a=90)):c>Te?a=90:c<-Te&&(n=-90),f[0]=t,f[1]=r}};function p(e,i){u.push(f=[t=e,r=e]),i<n&&(n=i),i>a&&(a=i)}function h(e,o){var l=En([e*Oe,o*Oe]);if(s){var c=Dn(s,l),u=Dn([c[1],-c[0],0],c);Nn(u),u=Fn(u);var f=e-i,d=f>0?1:-1,h=u[0]*Pe*d,g=y(f)>180;if(g^(d*i<h&&h<d*e))(m=u[1]*Pe)>a&&(a=m);else if(g^(d*i<(h=(h+360)%360-180)&&h<d*e)){var m;(m=-u[1]*Pe)<n&&(n=m)}else o<n&&(n=o),o>a&&(a=o);g?e<i?_(t,e)>_(t,r)&&(r=e):_(e,r)>_(t,r)&&(t=e):r>=t?(e<t&&(t=e),e>r&&(r=e)):e>i?_(t,e)>_(t,r)&&(r=e):_(e,r)>_(t,r)&&(t=e)}else p(e,o);s=l,i=e}function g(){d.point=h}function m(){f[0]=t,f[1]=r,d.point=p,s=null}function v(e,t){if(s){var n=e-i;c+=y(n)>180?n+(n>0?360:-360):n}else o=e,l=t;On.point(e,t),h(e,t)}function x(){On.lineStart()}function b(){v(o,l),On.lineEnd(),y(c)>Te&&(t=-(r=180)),f[0]=t,f[1]=r,s=null}function _(e,t){return(t-=e)<0?t+360:t}function w(e,t){return e[0]-t[0]}function k(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}return function(i){if(a=r=-(t=n=1/0),u=[],e.geo.stream(i,d),c=u.length){u.sort(w);for(var o=1,l=[g=u[0]];o<c;++o)k((p=u[o])[0],g)||k(p[1],g)?(_(g[0],p[1])>_(g[0],g[1])&&(g[1]=p[1]),_(p[0],g[1])>_(g[0],g[1])&&(g[0]=p[0])):l.push(g=p);for(var s,c,p,h=-1/0,g=(o=0,l[c=l.length-1]);o<=c;g=p,++o)p=l[o],(s=_(g[1],p[0]))>h&&(h=s,t=p[0],r=g[1])}return u=f=null,t===1/0||n===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,n],[r,a]]}}(),e.geo.centroid=function(t){yn=xn=bn=_n=wn=kn=Tn=Mn=An=Sn=Ln=0,e.geo.stream(t,jn);var n=An,r=Sn,a=Ln,i=n*n+r*r+a*a;return i<Me&&(n=kn,r=Tn,a=Mn,xn<Te&&(n=bn,r=_n,a=wn),(i=n*n+r*r+a*a)<Me)?[NaN,NaN]:[Math.atan2(r,n)*Pe,Re(a/Math.sqrt(i))*Pe]};var jn={sphere:D,point:Hn,lineStart:Vn,lineEnd:Un,polygonStart:function(){jn.lineStart=Gn},polygonEnd:function(){jn.lineStart=Vn}};function Hn(e,t){e*=Oe;var n=Math.cos(t*=Oe);qn(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function qn(e,t,n){++yn,bn+=(e-bn)/yn,_n+=(t-_n)/yn,wn+=(n-wn)/yn}function Vn(){var e,t,n;function r(r,a){r*=Oe;var i=Math.cos(a*=Oe),o=i*Math.cos(r),l=i*Math.sin(r),s=Math.sin(a),c=Math.atan2(Math.sqrt((c=t*s-n*l)*c+(c=n*o-e*s)*c+(c=e*l-t*o)*c),e*o+t*l+n*s);xn+=c,kn+=c*(e+(e=o)),Tn+=c*(t+(t=l)),Mn+=c*(n+(n=s)),qn(e,t,n)}jn.point=function(a,i){a*=Oe;var o=Math.cos(i*=Oe);e=o*Math.cos(a),t=o*Math.sin(a),n=Math.sin(i),jn.point=r,qn(e,t,n)}}function Un(){jn.point=Hn}function Gn(){var e,t,n,r,a;function i(e,t){e*=Oe;var i=Math.cos(t*=Oe),o=i*Math.cos(e),l=i*Math.sin(e),s=Math.sin(t),c=r*s-a*l,u=a*o-n*s,f=n*l-r*o,d=Math.sqrt(c*c+u*u+f*f),p=n*o+r*l+a*s,h=d&&-De(p)/d,g=Math.atan2(d,p);An+=h*c,Sn+=h*u,Ln+=h*f,xn+=g,kn+=g*(n+(n=o)),Tn+=g*(r+(r=l)),Mn+=g*(a+(a=s)),qn(n,r,a)}jn.point=function(o,l){e=o,t=l,jn.point=i,o*=Oe;var s=Math.cos(l*=Oe);n=s*Math.cos(o),r=s*Math.sin(o),a=Math.sin(l),qn(n,r,a)},jn.lineEnd=function(){i(e,t),jn.lineEnd=Un,jn.point=Hn}}function Zn(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function Wn(){return!0}function Yn(e,t,n,r,a){var i=[],o=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(Bn(n,r)){a.lineStart();for(var l=0;l<t;++l)a.point((n=e[l])[0],n[1]);a.lineEnd()}else{var s=new $n(n,e,null,!0),c=new $n(n,null,s,!1);s.o=c,i.push(s),o.push(c),s=new $n(r,e,null,!1),c=new $n(r,null,s,!0),s.o=c,i.push(s),o.push(c)}}})),o.sort(t),Xn(i),Xn(o),i.length){for(var l=0,s=n,c=o.length;l<c;++l)o[l].e=s=!s;for(var u,f,d=i[0];;){for(var p=d,h=!0;p.v;)if((p=p.n)===d)return;u=p.z,a.lineStart();do{if(p.v=p.o.v=!0,p.e){if(h)for(l=0,c=u.length;l<c;++l)a.point((f=u[l])[0],f[1]);else r(p.x,p.n.x,1,a);p=p.n}else{if(h)for(l=(u=p.p.z).length-1;l>=0;--l)a.point((f=u[l])[0],f[1]);else r(p.x,p.p.x,-1,a);p=p.p}u=(p=p.o).z,h=!h}while(!p.v);a.lineEnd()}}}function Xn(e){if(t=e.length){for(var t,n,r=0,a=e[0];++r<t;)a.n=n=e[r],n.p=a,a=n;a.n=n=e[0],n.p=a}}function $n(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Qn(t,n,r,a){return function(i,o){var l,s=n(o),c=i.invert(a[0],a[1]),u={point:f,lineStart:p,lineEnd:h,polygonStart:function(){u.point=b,u.lineStart=_,u.lineEnd=w,l=[],g=[]},polygonEnd:function(){u.point=f,u.lineStart=p,u.lineEnd=h,l=e.merge(l);var t=function(e,t){var n=e[0],r=e[1],a=[Math.sin(n),-Math.cos(n),0],i=0,o=0;Cn.reset();for(var l=0,s=t.length;l<s;++l){var c=t[l],u=c.length;if(u)for(var f=c[0],d=f[0],p=f[1]/2+Ae/4,h=Math.sin(p),g=Math.cos(p),m=1;;){m===u&&(m=0);var v=(e=c[m])[0],y=e[1]/2+Ae/4,x=Math.sin(y),b=Math.cos(y),_=v-d,w=_>=0?1:-1,k=w*_,T=k>Ae,M=h*x;if(Cn.add(Math.atan2(M*w*Math.sin(k),g*b+M*Math.cos(k))),i+=T?_+w*Se:_,T^d>=n^v>=n){var A=Dn(En(f),En(e));Nn(A);var S=Dn(a,A);Nn(S);var L=(T^_>=0?-1:1)*Re(S[2]);(r>L||r===L&&(A[0]||A[1]))&&(o+=T^_>=0?1:-1)}if(!m++)break;d=v,h=x,g=b,f=e}}return(i<-Te||i<Te&&Cn<-Te)^1&o}(c,g);l.length?(x||(o.polygonStart(),x=!0),Yn(l,er,t,r,o)):t&&(x||(o.polygonStart(),x=!0),o.lineStart(),r(null,null,1,o),o.lineEnd()),x&&(o.polygonEnd(),x=!1),l=g=null},sphere:function(){o.polygonStart(),o.lineStart(),r(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function f(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&o.point(e,n)}function d(e,t){var n=i(e,t);s.point(n[0],n[1])}function p(){u.point=d,s.lineStart()}function h(){u.point=f,s.lineEnd()}var g,m,v=Jn(),y=n(v),x=!1;function b(e,t){m.push([e,t]);var n=i(e,t);y.point(n[0],n[1])}function _(){y.lineStart(),m=[]}function w(){b(m[0][0],m[0][1]),y.lineEnd();var e,t=y.clean(),n=v.buffer(),r=n.length;if(m.pop(),g.push(m),m=null,r)if(1&t){var a,i=-1;if((r=(e=n[0]).length-1)>0){for(x||(o.polygonStart(),x=!0),o.lineStart();++i<r;)o.point((a=e[i])[0],a[1]);o.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),l.push(n.filter(Kn))}return u}}function Kn(e){return e.length>1}function Jn(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:D,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function er(e,t){return((e=e.x)[0]<0?e[1]-Ce-Te:Ce-e[1])-((t=t.x)[0]<0?t[1]-Ce-Te:Ce-t[1])}var tr=Qn(Wn,(function(e){var t,n=NaN,r=NaN,a=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,o){var l=i>0?Ae:-Ae,s=y(i-n);y(s-Ae)<Te?(e.point(n,r=(r+o)/2>0?Ce:-Ce),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(l,r),e.point(i,r),t=0):a!==l&&s>=Ae&&(y(n-a)<Te&&(n-=a*Te),y(i-l)<Te&&(i-=l*Te),r=function(e,t,n,r){var a,i,o=Math.sin(e-n);return y(o)>Te?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(a=Math.cos(t))*Math.sin(e))/(a*i*o)):(t+r)/2}(n,r,i,o),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(l,r),t=0),e.point(n=i,r=o),a=l},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var a;if(null==e)a=n*Ce,r.point(-Ae,a),r.point(0,a),r.point(Ae,a),r.point(Ae,0),r.point(Ae,-a),r.point(0,-a),r.point(-Ae,-a),r.point(-Ae,0),r.point(-Ae,a);else if(y(e[0]-t[0])>Te){var i=e[0]<t[0]?Ae:-Ae;a=n*i/2,r.point(-i,a),r.point(0,a),r.point(i,a)}else r.point(t[0],t[1])}),[-Ae,-Ae/2]);function nr(e){var t=Math.cos(e),n=t>0,r=y(t)>Te;return Qn(a,(function(e){var t,l,s,c,u;return{lineStart:function(){c=s=!1,u=1},point:function(f,d){var p,h=[f,d],g=a(f,d),m=n?g?0:o(f,d):g?o(f+(f<0?Ae:-Ae),d):0;if(!t&&(c=s=g)&&e.lineStart(),g!==s&&(p=i(t,h),(Bn(t,p)||Bn(h,p))&&(h[0]+=Te,h[1]+=Te,g=a(h[0],h[1]))),g!==s)u=0,g?(e.lineStart(),p=i(h,t),e.point(p[0],p[1])):(p=i(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(r&&t&&n^g){var v;m&l||!(v=i(h,t,!0))||(u=0,n?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1])))}!g||t&&Bn(t,h)||e.point(h[0],h[1]),t=h,s=g,l=m},lineEnd:function(){s&&e.lineEnd(),t=null},clean:function(){return u|(c&&s)<<1}}}),Fr(e,6*Oe),n?[0,-e]:[-Ae,e-Ae]);function a(e,n){return Math.cos(e)*Math.cos(n)>t}function i(e,n,r){var a=[1,0,0],i=Dn(En(e),En(n)),o=zn(i,i),l=i[0],s=o-l*l;if(!s)return!r&&e;var c=t*o/s,u=-t*l/s,f=Dn(a,i),d=In(a,c);Rn(d,In(i,u));var p=f,h=zn(d,p),g=zn(p,p),m=h*h-g*(zn(d,d)-1);if(!(m<0)){var v=Math.sqrt(m),x=In(p,(-h-v)/g);if(Rn(x,d),x=Fn(x),!r)return x;var b,_=e[0],w=n[0],k=e[1],T=n[1];w<_&&(b=_,_=w,w=b);var M=w-_,A=y(M-Ae)<Te;if(!A&&T<k&&(b=k,k=T,T=b),A||M<Te?A?k+T>0^x[1]<(y(x[0]-_)<Te?k:T):k<=x[1]&&x[1]<=T:M>Ae^(_<=x[0]&&x[0]<=w)){var S=In(p,(-h+v)/g);return Rn(S,d),[x,Fn(S)]}}}function o(t,r){var a=n?e:Ae-e,i=0;return t<-a?i|=1:t>a&&(i|=2),r<-a?i|=4:r>a&&(i|=8),i}}function rr(e,t,n,r){return function(a){var i,o=a.a,l=a.b,s=o.x,c=o.y,u=0,f=1,d=l.x-s,p=l.y-c;if(i=e-s,d||!(i>0)){if(i/=d,d<0){if(i<u)return;i<f&&(f=i)}else if(d>0){if(i>f)return;i>u&&(u=i)}if(i=n-s,d||!(i<0)){if(i/=d,d<0){if(i>f)return;i>u&&(u=i)}else if(d>0){if(i<u)return;i<f&&(f=i)}if(i=t-c,p||!(i>0)){if(i/=p,p<0){if(i<u)return;i<f&&(f=i)}else if(p>0){if(i>f)return;i>u&&(u=i)}if(i=r-c,p||!(i<0)){if(i/=p,p<0){if(i>f)return;i>u&&(u=i)}else if(p>0){if(i<u)return;i<f&&(f=i)}return u>0&&(a.a={x:s+u*d,y:c+u*p}),f<1&&(a.b={x:s+f*d,y:c+f*p}),a}}}}}}function ar(t,n,r,a){return function(s){var c,u,f,d,p,h,g,m,v,y,x,b=s,_=Jn(),w=rr(t,n,r,a),k={point:A,lineStart:function(){k.point=S,u&&u.push(f=[]),y=!0,v=!1,g=m=NaN},lineEnd:function(){c&&(S(d,p),h&&v&&_.rejoin(),c.push(_.buffer())),k.point=A,v&&s.lineEnd()},polygonStart:function(){s=_,c=[],u=[],x=!0},polygonEnd:function(){s=b,c=e.merge(c);var n=function(e){for(var t=0,n=u.length,r=e[1],a=0;a<n;++a)for(var i,o=1,l=u[a],s=l.length,c=l[0];o<s;++o)i=l[o],c[1]<=r?i[1]>r&&ze(c,i,e)>0&&++t:i[1]<=r&&ze(c,i,e)<0&&--t,c=i;return 0!==t}([t,a]),r=x&&n,i=c.length;(r||i)&&(s.polygonStart(),r&&(s.lineStart(),T(null,null,1,s),s.lineEnd()),i&&Yn(c,o,n,T,s),s.polygonEnd()),c=u=f=null}};function T(e,o,s,c){var u=0,f=0;if(null==e||(u=i(e,s))!==(f=i(o,s))||l(e,o)<0^s>0)do{c.point(0===u||3===u?t:r,u>1?a:n)}while((u=(u+s+4)%4)!==f);else c.point(o[0],o[1])}function M(e,i){return t<=e&&e<=r&&n<=i&&i<=a}function A(e,t){M(e,t)&&s.point(e,t)}function S(e,t){var n=M(e=Math.max(-1e9,Math.min(1e9,e)),t=Math.max(-1e9,Math.min(1e9,t)));if(u&&f.push([e,t]),y)d=e,p=t,h=n,y=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&v)s.point(e,t);else{var r={a:{x:g,y:m},b:{x:e,y:t}};w(r)?(v||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),x=!1):n&&(s.lineStart(),s.point(e,t),x=!1)}g=e,m=t,v=n}return k};function i(e,a){return y(e[0]-t)<Te?a>0?0:3:y(e[0]-r)<Te?a>0?2:1:y(e[1]-n)<Te?a>0?1:0:a>0?3:2}function o(e,t){return l(e.x,t.x)}function l(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function ir(e){var t=0,n=Ae/3,r=Or(e),a=r(t,n);return a.parallels=function(e){return arguments.length?r(t=e[0]*Ae/180,n=e[1]*Ae/180):[t/Ae*180,n/Ae*180]},a}function or(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,a=1+n*(2*r-n),i=Math.sqrt(a)/r;function o(e,t){var n=Math.sqrt(a-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),i-n*Math.cos(e)]}return o.invert=function(e,t){var n=i-t;return[Math.atan2(e,n)/r,Re((a-(e*e+n*n)*r*r)/(2*r))]},o}e.geo.clipExtent=function(){var e,t,n,r,a,i,o={stream:function(e){return a&&(a.valid=!1),(a=i(e)).valid=!0,a},extent:function(l){return arguments.length?(i=ar(e=+l[0][0],t=+l[0][1],n=+l[1][0],r=+l[1][1]),a&&(a.valid=!1,a=null),o):[[e,t],[n,r]]}};return o.extent([[0,0],[960,500]])},(e.geo.conicEqualArea=function(){return ir(or)}).raw=or,e.geo.albers=function(){return e.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},e.geo.albersUsa=function(){var t,n,r,a,i=e.geo.albers(),o=e.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=e.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(e,n){t=[e,n]}};function c(e){var i=e[0],o=e[1];return t=null,n(i,o),t||(r(i,o),t)||a(i,o),t}return c.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,a=(e[1]-n[1])/t;return(a>=.12&&a<.234&&r>=-.425&&r<-.214?o:a>=.166&&a<.234&&r>=-.214&&r<-.115?l:i).invert(e)},c.stream=function(e){var t=i.stream(e),n=o.stream(e),r=l.stream(e);return{point:function(e,a){t.point(e,a),n.point(e,a),r.point(e,a)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},c.precision=function(e){return arguments.length?(i.precision(e),o.precision(e),l.precision(e),c):i.precision()},c.scale=function(e){return arguments.length?(i.scale(e),o.scale(.35*e),l.scale(e),c.translate(i.translate())):i.scale()},c.translate=function(e){if(!arguments.length)return i.translate();var t=i.scale(),u=+e[0],f=+e[1];return n=i.translate(e).clipExtent([[u-.455*t,f-.238*t],[u+.455*t,f+.238*t]]).stream(s).point,r=o.translate([u-.307*t,f+.201*t]).clipExtent([[u-.425*t+Te,f+.12*t+Te],[u-.214*t-Te,f+.234*t-Te]]).stream(s).point,a=l.translate([u-.205*t,f+.212*t]).clipExtent([[u-.214*t+Te,f+.166*t+Te],[u-.115*t-Te,f+.234*t-Te]]).stream(s).point,c},c.scale(1070)};var lr,sr,cr,ur,fr,dr,pr={point:D,lineStart:D,lineEnd:D,polygonStart:function(){sr=0,pr.lineStart=hr},polygonEnd:function(){pr.lineStart=pr.lineEnd=pr.point=D,lr+=y(sr/2)}};function hr(){var e,t,n,r;function a(e,t){sr+=r*e-n*t,n=e,r=t}pr.point=function(i,o){pr.point=a,e=n=i,t=r=o},pr.lineEnd=function(){a(e,t)}}var gr={point:function(e,t){e<cr&&(cr=e),e>fr&&(fr=e),t<ur&&(ur=t),t>dr&&(dr=t)},lineStart:D,lineEnd:D,polygonStart:D,polygonEnd:D};function mr(){var e=vr(4.5),t=[],n={point:r,lineStart:function(){n.point=a},lineEnd:o,polygonStart:function(){n.lineEnd=l},polygonEnd:function(){n.lineEnd=o,n.point=r},pointRadius:function(t){return e=vr(t),n},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function r(n,r){t.push("M",n,",",r,e)}function a(e,r){t.push("M",e,",",r),n.point=i}function i(e,n){t.push("L",e,",",n)}function o(){n.point=r}function l(){t.push("Z")}return n}function vr(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var yr,xr={point:br,lineStart:_r,lineEnd:wr,polygonStart:function(){xr.lineStart=kr},polygonEnd:function(){xr.point=br,xr.lineStart=_r,xr.lineEnd=wr}};function br(e,t){bn+=e,_n+=t,++wn}function _r(){var e,t;function n(n,r){var a=n-e,i=r-t,o=Math.sqrt(a*a+i*i);kn+=o*(e+n)/2,Tn+=o*(t+r)/2,Mn+=o,br(e=n,t=r)}xr.point=function(r,a){xr.point=n,br(e=r,t=a)}}function wr(){xr.point=br}function kr(){var e,t,n,r;function a(e,t){var a=e-n,i=t-r,o=Math.sqrt(a*a+i*i);kn+=o*(n+e)/2,Tn+=o*(r+t)/2,Mn+=o,An+=(o=r*e-n*t)*(n+e),Sn+=o*(r+t),Ln+=3*o,br(n=e,r=t)}xr.point=function(i,o){xr.point=a,br(e=n=i,t=r=o)},xr.lineEnd=function(){a(e,t)}}function Tr(e){var t=4.5,n={point:r,lineStart:function(){n.point=a},lineEnd:o,polygonStart:function(){n.lineEnd=l},polygonEnd:function(){n.lineEnd=o,n.point=r},pointRadius:function(e){return t=e,n},result:D};function r(n,r){e.moveTo(n+t,r),e.arc(n,r,t,0,Se)}function a(t,r){e.moveTo(t,r),n.point=i}function i(t,n){e.lineTo(t,n)}function o(){n.point=r}function l(){e.closePath()}return n}function Mr(e){var t=.5,n=Math.cos(30*Oe),r=16;function a(e){return(r?o:i)(e)}function i(t){return Lr(t,(function(n,r){n=e(n,r),t.point(n[0],n[1])}))}function o(t){var n,a,i,o,s,c,u,f,d,p,h,g,m={point:v,lineStart:y,lineEnd:b,polygonStart:function(){t.polygonStart(),m.lineStart=_},polygonEnd:function(){t.polygonEnd(),m.lineStart=y}};function v(n,r){n=e(n,r),t.point(n[0],n[1])}function y(){f=NaN,m.point=x,t.lineStart()}function x(n,a){var i=En([n,a]),o=e(n,a);l(f,d,u,p,h,g,f=o[0],d=o[1],u=n,p=i[0],h=i[1],g=i[2],r,t),t.point(f,d)}function b(){m.point=v,t.lineEnd()}function _(){y(),m.point=w,m.lineEnd=k}function w(e,t){x(n=e,t),a=f,i=d,o=p,s=h,c=g,m.point=x}function k(){l(f,d,u,p,h,g,a,i,n,o,s,c,r,t),m.lineEnd=b,b()}return m}function l(r,a,i,o,s,c,u,f,d,p,h,g,m,v){var x=u-r,b=f-a,_=x*x+b*b;if(_>4*t&&m--){var w=o+p,k=s+h,T=c+g,M=Math.sqrt(w*w+k*k+T*T),A=Math.asin(T/=M),S=y(y(T)-1)<Te||y(i-d)<Te?(i+d)/2:Math.atan2(k,w),L=e(S,A),C=L[0],O=L[1],P=C-r,E=O-a,z=b*P-x*E;(z*z/_>t||y((x*P+b*E)/_-.5)>.3||o*p+s*h+c*g<n)&&(l(r,a,i,o,s,c,C,O,S,w/=M,k/=M,T,m,v),v.point(C,O),l(C,O,S,w,k,T,u,f,d,p,h,g,m,v))}}return a.precision=function(e){return arguments.length?(r=(t=e*e)>0&&16,a):Math.sqrt(t)},a}function Ar(e){var t=Mr((function(t,n){return e([t*Pe,n*Pe])}));return function(e){return Pr(t(e))}}function Sr(e){this.stream=e}function Lr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Cr(e){return Or((function(){return e}))()}function Or(t){var n,r,a,i,o,l,s=Mr((function(e,t){return[(e=n(e,t))[0]*c+i,o-e[1]*c]})),c=150,u=480,f=250,d=0,p=0,h=0,g=0,m=0,v=tr,y=O,x=null,b=null;function _(e){return[(e=a(e[0]*Oe,e[1]*Oe))[0]*c+i,o-e[1]*c]}function w(e){return(e=a.invert((e[0]-i)/c,(o-e[1])/c))&&[e[0]*Pe,e[1]*Pe]}function k(){a=Zn(r=Dr(h,g,m),n);var e=n(d,p);return i=u-e[0]*c,o=f+e[1]*c,T()}function T(){return l&&(l.valid=!1,l=null),_}return _.stream=function(e){return l&&(l.valid=!1),(l=Pr(v(r,s(y(e))))).valid=!0,l},_.clipAngle=function(e){return arguments.length?(v=null==e?(x=e,tr):nr((x=+e)*Oe),T()):x},_.clipExtent=function(e){return arguments.length?(b=e,y=e?ar(e[0][0],e[0][1],e[1][0],e[1][1]):O,T()):b},_.scale=function(e){return arguments.length?(c=+e,k()):c},_.translate=function(e){return arguments.length?(u=+e[0],f=+e[1],k()):[u,f]},_.center=function(e){return arguments.length?(d=e[0]%360*Oe,p=e[1]%360*Oe,k()):[d*Pe,p*Pe]},_.rotate=function(e){return arguments.length?(h=e[0]%360*Oe,g=e[1]%360*Oe,m=e.length>2?e[2]%360*Oe:0,k()):[h*Pe,g*Pe,m*Pe]},e.rebind(_,s,"precision"),function(){return n=t.apply(this,arguments),_.invert=n.invert&&w,k()}}function Pr(e){return Lr(e,(function(t,n){e.point(t*Oe,n*Oe)}))}function Er(e,t){return[e,t]}function zr(e,t){return[e>Ae?e-Se:e<-Ae?e+Se:e,t]}function Dr(e,t,n){return e?t||n?Zn(Ir(e),Nr(t,n)):Ir(e):t||n?Nr(t,n):zr}function Rr(e){return function(t,n){return[(t+=e)>Ae?t-Se:t<-Ae?t+Se:t,n]}}function Ir(e){var t=Rr(e);return t.invert=Rr(-e),t}function Nr(e,t){var n=Math.cos(e),r=Math.sin(e),a=Math.cos(t),i=Math.sin(t);function o(e,t){var o=Math.cos(t),l=Math.cos(e)*o,s=Math.sin(e)*o,c=Math.sin(t),u=c*n+l*r;return[Math.atan2(s*a-u*i,l*n-c*r),Re(u*a+s*i)]}return o.invert=function(e,t){var o=Math.cos(t),l=Math.cos(e)*o,s=Math.sin(e)*o,c=Math.sin(t),u=c*a-s*i;return[Math.atan2(s*a+c*i,l*n+u*r),Re(u*n-l*r)]},o}function Fr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(a,i,o,l){var s=o*t;null!=a?(a=Br(n,a),i=Br(n,i),(o>0?a<i:a>i)&&(a+=o*Se)):(a=e+o*Se,i=e-.5*s);for(var c,u=a;o>0?u>i:u<i;u-=s)l.point((c=Fn([n,-r*Math.cos(u),-r*Math.sin(u)]))[0],c[1])}}function Br(e,t){var n=En(t);n[0]-=e,Nn(n);var r=De(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Te)%(2*Math.PI)}function jr(t,n,r){var a=e.range(t,n-Te,r).concat(n);return function(e){return a.map((function(t){return[e,t]}))}}function Hr(t,n,r){var a=e.range(t,n-Te,r).concat(n);return function(e){return a.map((function(t){return[t,e]}))}}function qr(e){return e.source}function Vr(e){return e.target}e.geo.path=function(){var t,n,r,a,i,o=4.5;function l(t){return t&&("function"==typeof o&&a.pointRadius(+o.apply(this,arguments)),i&&i.valid||(i=r(a)),e.geo.stream(t,i)),a.result()}function s(){return i=null,l}return l.area=function(t){return lr=0,e.geo.stream(t,r(pr)),lr},l.centroid=function(t){return bn=_n=wn=kn=Tn=Mn=An=Sn=Ln=0,e.geo.stream(t,r(xr)),Ln?[An/Ln,Sn/Ln]:Mn?[kn/Mn,Tn/Mn]:wn?[bn/wn,_n/wn]:[NaN,NaN]},l.bounds=function(t){return fr=dr=-(cr=ur=1/0),e.geo.stream(t,r(gr)),[[cr,ur],[fr,dr]]},l.projection=function(e){return arguments.length?(r=(t=e)?e.stream||Ar(e):O,s()):t},l.context=function(e){return arguments.length?(a=null==(n=e)?new mr:new Tr(e),"function"!=typeof o&&a.pointRadius(o),s()):n},l.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(a.pointRadius(+e),+e),l):o},l.projection(e.geo.albersUsa()).context(null)},e.geo.transform=function(e){return{stream:function(t){var n=new Sr(t);for(var r in e)n[r]=e[r];return n}}},Sr.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},e.geo.projection=Cr,e.geo.projectionMutator=Or,(e.geo.equirectangular=function(){return Cr(Er)}).raw=Er.invert=Er,e.geo.rotation=function(e){function t(t){return(t=e(t[0]*Oe,t[1]*Oe))[0]*=Pe,t[1]*=Pe,t}return e=Dr(e[0]%360*Oe,e[1]*Oe,e.length>2?e[2]*Oe:0),t.invert=function(t){return(t=e.invert(t[0]*Oe,t[1]*Oe))[0]*=Pe,t[1]*=Pe,t},t},zr.invert=Er,e.geo.circle=function(){var e,t,n=[0,0],r=6;function a(){var e="function"==typeof n?n.apply(this,arguments):n,r=Dr(-e[0]*Oe,-e[1]*Oe,0).invert,a=[];return t(null,null,1,{point:function(e,t){a.push(e=r(e,t)),e[0]*=Pe,e[1]*=Pe}}),{type:"Polygon",coordinates:[a]}}return a.origin=function(e){return arguments.length?(n=e,a):n},a.angle=function(n){return arguments.length?(t=Fr((e=+n)*Oe,r*Oe),a):e},a.precision=function(n){return arguments.length?(t=Fr(e*Oe,(r=+n)*Oe),a):r},a.angle(90)},e.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Oe,a=e[1]*Oe,i=t[1]*Oe,o=Math.sin(r),l=Math.cos(r),s=Math.sin(a),c=Math.cos(a),u=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((n=f*o)*n+(n=c*u-s*f*l)*n),s*u+c*f*l)},e.geo.graticule=function(){var t,n,r,a,i,o,l,s,c,u,f,d,p=10,h=p,g=90,m=360,v=2.5;function x(){return{type:"MultiLineString",coordinates:b()}}function b(){return e.range(Math.ceil(a/g)*g,r,g).map(f).concat(e.range(Math.ceil(s/m)*m,l,m).map(d)).concat(e.range(Math.ceil(n/p)*p,t,p).filter((function(e){return y(e%g)>Te})).map(c)).concat(e.range(Math.ceil(o/h)*h,i,h).filter((function(e){return y(e%m)>Te})).map(u))}return x.lines=function(){return b().map((function(e){return{type:"LineString",coordinates:e}}))},x.outline=function(){return{type:"Polygon",coordinates:[f(a).concat(d(l).slice(1),f(r).reverse().slice(1),d(s).reverse().slice(1))]}},x.extent=function(e){return arguments.length?x.majorExtent(e).minorExtent(e):x.minorExtent()},x.majorExtent=function(e){return arguments.length?(a=+e[0][0],r=+e[1][0],s=+e[0][1],l=+e[1][1],a>r&&(e=a,a=r,r=e),s>l&&(e=s,s=l,l=e),x.precision(v)):[[a,s],[r,l]]},x.minorExtent=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),x.precision(v)):[[n,o],[t,i]]},x.step=function(e){return arguments.length?x.majorStep(e).minorStep(e):x.minorStep()},x.majorStep=function(e){return arguments.length?(g=+e[0],m=+e[1],x):[g,m]},x.minorStep=function(e){return arguments.length?(p=+e[0],h=+e[1],x):[p,h]},x.precision=function(e){return arguments.length?(v=+e,c=jr(o,i,90),u=Hr(n,t,v),f=jr(s,l,90),d=Hr(a,r,v),x):v},x.majorExtent([[-180,-90+Te],[180,90-Te]]).minorExtent([[-180,-80-Te],[180,80+Te]])},e.geo.greatArc=function(){var t,n,r=qr,a=Vr;function i(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||a.apply(this,arguments)]}}return i.distance=function(){return e.geo.distance(t||r.apply(this,arguments),n||a.apply(this,arguments))},i.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,i):r},i.target=function(e){return arguments.length?(a=e,n="function"==typeof e?null:e,i):a},i.precision=function(){return arguments.length?i:0},i},e.geo.interpolate=function(e,t){return n=e[0]*Oe,r=e[1]*Oe,a=t[0]*Oe,i=t[1]*Oe,o=Math.cos(r),l=Math.sin(r),s=Math.cos(i),c=Math.sin(i),u=o*Math.cos(n),f=o*Math.sin(n),d=s*Math.cos(a),p=s*Math.sin(a),h=2*Math.asin(Math.sqrt(Ne(i-r)+o*s*Ne(a-n))),g=1/Math.sin(h),(m=h?function(e){var t=Math.sin(e*=h)*g,n=Math.sin(h-e)*g,r=n*u+t*d,a=n*f+t*p,i=n*l+t*c;return[Math.atan2(a,r)*Pe,Math.atan2(i,Math.sqrt(r*r+a*a))*Pe]}:function(){return[n*Pe,r*Pe]}).distance=h,m;var n,r,a,i,o,l,s,c,u,f,d,p,h,g,m},e.geo.length=function(t){return yr=0,e.geo.stream(t,Ur),yr};var Ur={sphere:D,point:D,lineStart:function(){var e,t,n;function r(r,a){var i=Math.sin(a*=Oe),o=Math.cos(a),l=y((r*=Oe)-e),s=Math.cos(l);yr+=Math.atan2(Math.sqrt((l=o*Math.sin(l))*l+(l=n*i-t*o*s)*l),t*i+n*o*s),e=r,t=i,n=o}Ur.point=function(a,i){e=a*Oe,t=Math.sin(i*=Oe),n=Math.cos(i),Ur.point=r},Ur.lineEnd=function(){Ur.point=Ur.lineEnd=D}},lineEnd:D,polygonStart:D,polygonEnd:D};function Gr(e,t){function n(t,n){var r=Math.cos(t),a=Math.cos(n),i=e(r*a);return[i*a*Math.sin(t),i*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),a=t(r),i=Math.sin(a),o=Math.cos(a);return[Math.atan2(e*i,r*o),Math.asin(r&&n*i/r)]},n}var Zr=Gr((function(e){return Math.sqrt(2/(1+e))}),(function(e){return 2*Math.asin(e/2)}));(e.geo.azimuthalEqualArea=function(){return Cr(Zr)}).raw=Zr;var Wr=Gr((function(e){var t=Math.acos(e);return t&&t/Math.sin(t)}),O);function Yr(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Ae/4+e/2)},a=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),i=n*Math.pow(r(e),a)/a;if(!a)return Qr;function o(e,t){i>0?t<-Ce+Te&&(t=-Ce+Te):t>Ce-Te&&(t=Ce-Te);var n=i/Math.pow(r(t),a);return[n*Math.sin(a*e),i-n*Math.cos(a*e)]}return o.invert=function(e,t){var n=i-t,r=Ee(a)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/a,2*Math.atan(Math.pow(i/r,1/a))-Ce]},o}function Xr(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),a=n/r+e;if(y(r)<Te)return Er;function i(e,t){var n=a-t;return[n*Math.sin(r*e),a-n*Math.cos(r*e)]}return i.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/r,a-Ee(r)*Math.sqrt(e*e+n*n)]},i}(e.geo.azimuthalEquidistant=function(){return Cr(Wr)}).raw=Wr,(e.geo.conicConformal=function(){return ir(Yr)}).raw=Yr,(e.geo.conicEquidistant=function(){return ir(Xr)}).raw=Xr;var $r=Gr((function(e){return 1/e}),Math.atan);function Qr(e,t){return[e,Math.log(Math.tan(Ae/4+t/2))]}function Kr(e){var t,n=Cr(e),r=n.scale,a=n.translate,i=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=a.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var o=i.apply(n,arguments);if(o===n){if(t=null==e){var l=Ae*r(),s=a();i([[s[0]-l,s[1]-l],[s[0]+l,s[1]+l]])}}else t&&(o=null);return o},n.clipExtent(null)}(e.geo.gnomonic=function(){return Cr($r)}).raw=$r,Qr.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Ce]},(e.geo.mercator=function(){return Kr(Qr)}).raw=Qr;var Jr=Gr((function(){return 1}),Math.asin);(e.geo.orthographic=function(){return Cr(Jr)}).raw=Jr;var ea=Gr((function(e){return 1/(1+e)}),(function(e){return 2*Math.atan(e)}));function ta(e,t){return[Math.log(Math.tan(Ae/4+t/2)),-e]}function na(e){return e[0]}function ra(e){return e[1]}function aa(e){for(var t=e.length,n=[0,1],r=2,a=2;a<t;a++){for(;r>1&&ze(e[n[r-2]],e[n[r-1]],e[a])<=0;)--r;n[r++]=a}return n.slice(0,r)}function ia(e,t){return e[0]-t[0]||e[1]-t[1]}(e.geo.stereographic=function(){return Cr(ea)}).raw=ea,ta.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Ce]},(e.geo.transverseMercator=function(){var e=Kr(ta),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=ta,e.geom={},e.geom.hull=function(e){var t=na,n=ra;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,a=ht(t),i=ht(n),o=e.length,l=[],s=[];for(r=0;r<o;r++)l.push([+a.call(this,e[r],r),+i.call(this,e[r],r),r]);for(l.sort(ia),r=0;r<o;r++)s.push([l[r][0],-l[r][1]]);var c=aa(l),u=aa(s),f=u[0]===c[0],d=u[u.length-1]===c[c.length-1],p=[];for(r=c.length-1;r>=0;--r)p.push(e[l[c[r]][2]]);for(r=+f;r<u.length-d;++r)p.push(e[l[u[r]][2]]);return p}return r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(e){return arguments.length?(n=e,r):n},r},e.geom.polygon=function(e){return H(e,oa),e};var oa=e.geom.polygon.prototype=[];function la(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function sa(e,t,n,r){var a=e[0],i=n[0],o=t[0]-a,l=r[0]-i,s=e[1],c=n[1],u=t[1]-s,f=r[1]-c,d=(l*(s-c)-f*(a-i))/(f*o-l*u);return[a+d*o,s+d*u]}function ca(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}oa.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],a=0;++t<n;)e=r,r=this[t],a+=e[1]*r[0]-e[0]*r[1];return.5*a},oa.centroid=function(e){var t,n,r=-1,a=this.length,i=0,o=0,l=this[a-1];for(arguments.length||(e=-1/(6*this.area()));++r<a;)t=l,l=this[r],n=t[0]*l[1]-l[0]*t[1],i+=(t[0]+l[0])*n,o+=(t[1]+l[1])*n;return[i*e,o*e]},oa.clip=function(e){for(var t,n,r,a,i,o,l=ca(e),s=-1,c=this.length-ca(this),u=this[c-1];++s<c;){for(t=e.slice(),e.length=0,a=this[s],i=t[(r=t.length-l)-1],n=-1;++n<r;)la(o=t[n],u,a)?(la(i,u,a)||e.push(sa(i,o,u,a)),e.push(o)):la(i,u,a)&&e.push(sa(i,o,u,a)),i=o;l&&e.push(e[0]),u=a}return e};var ua,fa,da,pa,ha,ga=[],ma=[];function va(){Ra(this),this.edge=this.site=this.circle=null}function ya(e){var t=ga.pop()||new va;return t.site=e,t}function xa(e){La(e),da.remove(e),ga.push(e),Ra(e)}function ba(e){var t=e.circle,n=t.x,r=t.cy,a={x:n,y:r},i=e.P,o=e.N,l=[e];xa(e);for(var s=i;s.circle&&y(n-s.circle.x)<Te&&y(r-s.circle.cy)<Te;)i=s.P,l.unshift(s),xa(s),s=i;l.unshift(s),La(s);for(var c=o;c.circle&&y(n-c.circle.x)<Te&&y(r-c.circle.cy)<Te;)o=c.N,l.push(c),xa(c),c=o;l.push(c),La(c);var u,f=l.length;for(u=1;u<f;++u)c=l[u],s=l[u-1],Ea(c.edge,s.site,c.site,a);s=l[0],(c=l[f-1]).edge=Pa(s.site,c.site,null,a),Sa(s),Sa(c)}function _a(e){for(var t,n,r,a,i=e.x,o=e.y,l=da._;l;)if((r=wa(l,o)-i)>Te)l=l.L;else{if(!((a=i-ka(l,o))>Te)){r>-Te?(t=l.P,n=l):a>-Te?(t=l,n=l.N):t=n=l;break}if(!l.R){t=l;break}l=l.R}var s=ya(e);if(da.insert(t,s),t||n){if(t===n)return La(t),n=ya(t.site),da.insert(s,n),s.edge=n.edge=Pa(t.site,s.site),Sa(t),void Sa(n);if(n){La(t),La(n);var c=t.site,u=c.x,f=c.y,d=e.x-u,p=e.y-f,h=n.site,g=h.x-u,m=h.y-f,v=2*(d*m-p*g),y=d*d+p*p,x=g*g+m*m,b={x:(m*y-p*x)/v+u,y:(d*x-g*y)/v+f};Ea(n.edge,c,h,b),s.edge=Pa(c,e,null,b),n.edge=Pa(e,h,null,b),Sa(t),Sa(n)}else s.edge=Pa(t.site,s.site)}}function wa(e,t){var n=e.site,r=n.x,a=n.y,i=a-t;if(!i)return r;var o=e.P;if(!o)return-1/0;var l=(n=o.site).x,s=n.y,c=s-t;if(!c)return l;var u=l-r,f=1/i-1/c,d=u/c;return f?(-d+Math.sqrt(d*d-2*f*(u*u/(-2*c)-s+c/2+a-i/2)))/f+r:(r+l)/2}function ka(e,t){var n=e.N;if(n)return wa(n,t);var r=e.site;return r.y===t?r.x:1/0}function Ta(e){this.site=e,this.edges=[]}function Ma(e,t){return t.angle-e.angle}function Aa(){Ra(this),this.x=this.y=this.arc=this.site=this.cy=null}function Sa(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,a=e.site,i=n.site;if(r!==i){var o=a.x,l=a.y,s=r.x-o,c=r.y-l,u=i.x-o,f=2*(s*(m=i.y-l)-c*u);if(!(f>=-Me)){var d=s*s+c*c,p=u*u+m*m,h=(m*d-c*p)/f,g=(s*p-u*d)/f,m=g+l,v=ma.pop()||new Aa;v.arc=e,v.site=a,v.x=h+o,v.y=m+Math.sqrt(h*h+g*g),v.cy=m,e.circle=v;for(var y=null,x=ha._;x;)if(v.y<x.y||v.y===x.y&&v.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}ha.insert(y,v),y||(pa=v)}}}}function La(e){var t=e.circle;t&&(t.P||(pa=t.N),ha.remove(t),ma.push(t),Ra(t),e.circle=null)}function Ca(e,t){var n=e.b;if(n)return!0;var r,a,i=e.a,o=t[0][0],l=t[1][0],s=t[0][1],c=t[1][1],u=e.l,f=e.r,d=u.x,p=u.y,h=f.x,g=f.y,m=(d+h)/2,v=(p+g)/2;if(g===p){if(m<o||m>=l)return;if(d>h){if(i){if(i.y>=c)return}else i={x:m,y:s};n={x:m,y:c}}else{if(i){if(i.y<s)return}else i={x:m,y:c};n={x:m,y:s}}}else if(a=v-(r=(d-h)/(g-p))*m,r<-1||r>1)if(d>h){if(i){if(i.y>=c)return}else i={x:(s-a)/r,y:s};n={x:(c-a)/r,y:c}}else{if(i){if(i.y<s)return}else i={x:(c-a)/r,y:c};n={x:(s-a)/r,y:s}}else if(p<g){if(i){if(i.x>=l)return}else i={x:o,y:r*o+a};n={x:l,y:r*l+a}}else{if(i){if(i.x<o)return}else i={x:l,y:r*l+a};n={x:o,y:r*o+a}}return e.a=i,e.b=n,!0}function Oa(e,t){this.l=e,this.r=t,this.a=this.b=null}function Pa(e,t,n,r){var a=new Oa(e,t);return ua.push(a),n&&Ea(a,e,t,n),r&&Ea(a,t,e,r),fa[e.i].edges.push(new za(a,e,t)),fa[t.i].edges.push(new za(a,t,e)),a}function Ea(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function za(e,t,n){var r=e.a,a=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(a.x-r.x,r.y-a.y):Math.atan2(r.x-a.x,a.y-r.y)}function Da(){this._=null}function Ra(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Ia(e,t){var n=t,r=t.R,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Na(e,t){var n=t,r=t.L,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Fa(e){for(;e.L;)e=e.L;return e}function Ba(e,t){var n,r,a,i=e.sort(ja).pop();for(ua=[],fa=new Array(e.length),da=new Da,ha=new Da;;)if(a=pa,i&&(!a||i.y<a.y||i.y===a.y&&i.x<a.x))i.x===n&&i.y===r||(fa[i.i]=new Ta(i),_a(i),n=i.x,r=i.y),i=e.pop();else{if(!a)break;ba(a.arc)}t&&(function(e){for(var t,n=ua,r=rr(e[0][0],e[0][1],e[1][0],e[1][1]),a=n.length;a--;)(!Ca(t=n[a],e)||!r(t)||y(t.a.x-t.b.x)<Te&&y(t.a.y-t.b.y)<Te)&&(t.a=t.b=null,n.splice(a,1))}(t),function(e){for(var t,n,r,a,i,o,l,s,c,u,f=e[0][0],d=e[1][0],p=e[0][1],h=e[1][1],g=fa,m=g.length;m--;)if((i=g[m])&&i.prepare())for(s=(l=i.edges).length,o=0;o<s;)r=(u=l[o].end()).x,a=u.y,t=(c=l[++o%s].start()).x,n=c.y,(y(r-t)>Te||y(a-n)>Te)&&(l.splice(o,0,new za((v=i.site,x=u,b=y(r-f)<Te&&h-a>Te?{x:f,y:y(t-f)<Te?n:h}:y(a-h)<Te&&d-r>Te?{x:y(n-h)<Te?t:d,y:h}:y(r-d)<Te&&a-p>Te?{x:d,y:y(t-d)<Te?n:p}:y(a-p)<Te&&r-f>Te?{x:y(n-p)<Te?t:f,y:p}:null,_=void 0,(_=new Oa(v,null)).a=x,_.b=b,ua.push(_),_),i.site,null)),++s);var v,x,b,_}(t));var o={cells:fa,edges:ua};return da=ha=ua=fa=null,o}function ja(e,t){return t.y-e.y||t.x-e.x}Ta.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)(e=t[n].edge).b&&e.a||t.splice(n,1);return t.sort(Ma),t.length},za.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Da.prototype={insert:function(e,t){var n,r,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=Fa(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(a=r.R)&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.R&&(Ia(this,n),n=(e=n).U),n.C=!1,r.C=!0,Na(this,r)):(a=r.L)&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.L&&(Na(this,n),n=(e=n).U),n.C=!1,r.C=!0,Ia(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,a=e.U,i=e.L,o=e.R;if(n=i?o?Fa(o):i:o,a?a.L===e?a.L=n:a.R=n:this._=n,i&&o?(r=n.C,n.C=e.C,n.L=i,i.U=n,n!==o?(a=n.U,n.U=e.U,e=n.R,a.L=e,n.R=o,o.U=n):(n.U=a,a=n,e=n.R)):(r=e.C,e=n),e&&(e.U=a),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if((t=a.R).C&&(t.C=!1,a.C=!0,Ia(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Na(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,Ia(this,a),e=this._;break}}else if((t=a.L).C&&(t.C=!1,a.C=!0,Na(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Ia(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,Na(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}},e.geom.voronoi=function(e){var t=na,n=ra,r=t,a=n,i=Ha;if(e)return o(e);function o(e){var t=new Array(e.length),n=i[0][0],r=i[0][1],a=i[1][0],o=i[1][1];return Ba(l(e),i).cells.forEach((function(i,l){var s=i.edges,c=i.site;(t[l]=s.length?s.map((function(e){var t=e.start();return[t.x,t.y]})):c.x>=n&&c.x<=a&&c.y>=r&&c.y<=o?[[n,o],[a,o],[a,r],[n,r]]:[]).point=e[l]})),t}function l(e){return e.map((function(e,t){return{x:Math.round(r(e,t)/Te)*Te,y:Math.round(a(e,t)/Te)*Te,i:t}}))}return o.links=function(e){return Ba(l(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},o.triangles=function(e){var t=[];return Ba(l(e)).cells.forEach((function(n,r){for(var a,i,o,l,s=n.site,c=n.edges.sort(Ma),u=-1,f=c.length,d=c[f-1].edge,p=d.l===s?d.r:d.l;++u<f;)a=p,p=(d=c[u].edge).l===s?d.r:d.l,r<a.i&&r<p.i&&(o=a,l=p,((i=s).x-l.x)*(o.y-i.y)-(i.x-o.x)*(l.y-i.y)<0)&&t.push([e[r],e[a.i],e[p.i]])})),t},o.x=function(e){return arguments.length?(r=ht(t=e),o):t},o.y=function(e){return arguments.length?(a=ht(n=e),o):n},o.clipExtent=function(e){return arguments.length?(i=null==e?Ha:e,o):i===Ha?null:i},o.size=function(e){return arguments.length?o.clipExtent(e&&[[0,0],e]):i===Ha?null:i&&i[1]},o};var Ha=[[-1e6,-1e6],[1e6,1e6]];function qa(e){return e.x}function Va(e){return e.y}function Ua(e,t,n,r,a,i){if(!e(t,n,r,a,i)){var o=.5*(n+a),l=.5*(r+i),s=t.nodes;s[0]&&Ua(e,s[0],n,r,o,l),s[1]&&Ua(e,s[1],o,r,a,l),s[2]&&Ua(e,s[2],n,l,o,i),s[3]&&Ua(e,s[3],o,l,a,i)}}function Ga(e,t,n,r,a,i,o){var l,s=1/0;return function e(c,u,f,d,p){if(!(u>i||f>o||d<r||p<a)){if(h=c.point){var h,g=t-c.x,m=n-c.y,v=g*g+m*m;if(v<s){var y=Math.sqrt(s=v);r=t-y,a=n-y,i=t+y,o=n+y,l=h}}for(var x=c.nodes,b=.5*(u+d),_=.5*(f+p),w=(n>=_)<<1|t>=b,k=w+4;w<k;++w)if(c=x[3&w])switch(3&w){case 0:e(c,u,f,b,_);break;case 1:e(c,b,f,d,_);break;case 2:e(c,u,_,b,p);break;case 3:e(c,b,_,d,p)}}}(e,r,a,i,o),l}function Za(t,n){t=e.rgb(t),n=e.rgb(n);var r=t.r,a=t.g,i=t.b,o=n.r-r,l=n.g-a,s=n.b-i;return function(e){return"#"+lt(Math.round(r+o*e))+lt(Math.round(a+l*e))+lt(Math.round(i+s*e))}}function Wa(e,t){var n,r={},a={};for(n in e)n in t?r[n]=Ka(e[n],t[n]):a[n]=e[n];for(n in t)n in e||(a[n]=t[n]);return function(e){for(n in r)a[n]=r[n](e);return a}}function Ya(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Xa(e,t){var n,r,a,i=$a.lastIndex=Qa.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(n=$a.exec(e))&&(r=Qa.exec(t));)(a=r.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,s.push({i:o,x:Ya(n,r)})),i=Qa.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?(t=s[0].x,function(e){return t(e)+""}):function(){return t}:(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}e.geom.delaunay=function(t){return e.geom.voronoi().triangles(t)},e.geom.quadtree=function(e,t,n,r,a){var i,o=na,l=ra;if(i=arguments.length)return o=qa,l=Va,3===i&&(a=n,r=t,n=t=0),s(e);function s(e){var s,c,u,f,d,p,h,g,m,v=ht(o),x=ht(l);if(null!=t)p=t,h=n,g=r,m=a;else if(g=m=-(p=h=1/0),c=[],u=[],d=e.length,i)for(f=0;f<d;++f)(s=e[f]).x<p&&(p=s.x),s.y<h&&(h=s.y),s.x>g&&(g=s.x),s.y>m&&(m=s.y),c.push(s.x),u.push(s.y);else for(f=0;f<d;++f){var b=+v(s=e[f],f),_=+x(s,f);b<p&&(p=b),_<h&&(h=_),b>g&&(g=b),_>m&&(m=_),c.push(b),u.push(_)}var w=g-p,k=m-h;function T(e,t,n,r,a,i,o,l){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var s=e.x,c=e.y;if(null!=s)if(y(s-n)+y(c-r)<.01)M(e,t,n,r,a,i,o,l);else{var u=e.point;e.x=e.y=e.point=null,M(e,u,s,c,a,i,o,l),M(e,t,n,r,a,i,o,l)}else e.x=n,e.y=r,e.point=t}else M(e,t,n,r,a,i,o,l)}function M(e,t,n,r,a,i,o,l){var s=.5*(a+o),c=.5*(i+l),u=n>=s,f=r>=c,d=f<<1|u;e.leaf=!1,u?a=s:o=s,f?i=c:l=c,T(e=e.nodes[d]||(e.nodes[d]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,n,r,a,i,o,l)}w>k?m=h+w:g=p+k;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){T(A,e,+v(e,++f),+x(e,f),p,h,g,m)},visit:function(e){Ua(e,A,p,h,g,m)},find:function(e){return Ga(A,e[0],e[1],p,h,g,m)}};if(f=-1,null==t){for(;++f<d;)T(A,e[f],c[f],u[f],p,h,g,m);--f}else e.forEach(A.add);return c=u=e=s=null,A}return s.x=function(e){return arguments.length?(o=e,s):o},s.y=function(e){return arguments.length?(l=e,s):l},s.extent=function(e){return arguments.length?(null==e?t=n=r=a=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],a=+e[1][1]),s):null==t?null:[[t,n],[r,a]]},s.size=function(e){return arguments.length?(null==e?t=n=r=a=null:(t=n=0,r=+e[0],a=+e[1]),s):null==t?null:[r-t,a-n]},s},e.interpolateRgb=Za,e.interpolateObject=Wa,e.interpolateNumber=Ya,e.interpolateString=Xa;var $a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qa=new RegExp($a.source,"g");function Ka(t,n){for(var r,a=e.interpolators.length;--a>=0&&!(r=e.interpolators[a](t,n)););return r}function Ja(e,t){var n,r=[],a=[],i=e.length,o=t.length,l=Math.min(e.length,t.length);for(n=0;n<l;++n)r.push(Ka(e[n],t[n]));for(;n<i;++n)a[n]=e[n];for(;n<o;++n)a[n]=t[n];return function(e){for(n=0;n<l;++n)a[n]=r[n](e);return a}}e.interpolate=Ka,e.interpolators=[function(e,t){var n=typeof t;return("string"===n?pt.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?Za:Xa:t instanceof qe?Za:Array.isArray(t)?Ja:"object"===n&&isNaN(t)?Wa:Ya)(e,t)}],e.interpolateArray=Ja;var ei=function(){return O},ti=e.map({linear:ei,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return oi},cubic:function(){return li},sin:function(){return ci},exp:function(){return ui},circle:function(){return fi},elastic:function(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Se*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Se/t)}},back:function(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}},bounce:function(){return di}}),ni=e.map({in:O,out:ai,"in-out":ii,"out-in":function(e){return ii(ai(e))}});function ri(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function ai(e){return function(t){return 1-e(1-t)}}function ii(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function oi(e){return e*e}function li(e){return e*e*e}function si(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function ci(e){return 1-Math.cos(e*Ce)}function ui(e){return Math.pow(2,10*(e-1))}function fi(e){return 1-Math.sqrt(1-e*e)}function di(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function pi(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function hi(e){var t,n,r,a=[e.a,e.b],i=[e.c,e.d],o=mi(a),l=gi(a,i),s=mi(((t=i)[0]+=(r=-l)*(n=a)[0],t[1]+=r*n[1],t))||0;a[0]*i[1]<i[0]*a[1]&&(a[0]*=-1,a[1]*=-1,o*=-1,l*=-1),this.rotate=(o?Math.atan2(a[1],a[0]):Math.atan2(-i[0],i[1]))*Pe,this.translate=[e.e,e.f],this.scale=[o,s],this.skew=s?Math.atan2(l,s)*Pe:0}function gi(e,t){return e[0]*t[0]+e[1]*t[1]}function mi(e){var t=Math.sqrt(gi(e,e));return t&&(e[0]/=t,e[1]/=t),t}e.ease=function(e){var t=e.indexOf("-"),r=t>=0?e.slice(0,t):e,a=t>=0?e.slice(t+1):"in";return r=ti.get(r)||ei,ri((a=ni.get(a)||O)(r.apply(null,n.call(arguments,1))))},e.interpolateHcl=function(t,n){t=e.hcl(t),n=e.hcl(n);var r=t.h,a=t.c,i=t.l,o=n.h-r,l=n.c-a,s=n.l-i;return isNaN(l)&&(l=0,a=isNaN(a)?n.c:a),isNaN(o)?(o=0,r=isNaN(r)?n.h:r):o>180?o-=360:o<-180&&(o+=360),function(e){return Ye(r+o*e,a+l*e,i+s*e)+""}},e.interpolateHsl=function(t,n){t=e.hsl(t),n=e.hsl(n);var r=t.h,a=t.s,i=t.l,o=n.h-r,l=n.s-a,s=n.l-i;return isNaN(l)&&(l=0,a=isNaN(a)?n.s:a),isNaN(o)?(o=0,r=isNaN(r)?n.h:r):o>180?o-=360:o<-180&&(o+=360),function(e){return Ge(r+o*e,a+l*e,i+s*e)+""}},e.interpolateLab=function(t,n){t=e.lab(t),n=e.lab(n);var r=t.l,a=t.a,i=t.b,o=n.l-r,l=n.a-a,s=n.b-i;return function(e){return Ke(r+o*e,a+l*e,i+s*e)+""}},e.interpolateRound=pi,e.transform=function(t){var n=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(e){if(null!=e){n.setAttribute("transform",e);var t=n.transform.baseVal.consolidate()}return new hi(t?t.matrix:vi)})(t)},hi.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var vi={a:1,b:0,c:0,d:1,e:0,f:0};function yi(e){return e.length?e.pop()+",":""}function xi(t,n){var r=[],a=[];return t=e.transform(t),n=e.transform(n),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push("translate(",null,",",null,")");r.push({i:a-4,x:Ya(e[0],t[0])},{i:a-2,x:Ya(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(t.translate,n.translate,r,a),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(yi(n)+"rotate(",null,")")-2,x:Ya(e,t)})):t&&n.push(yi(n)+"rotate("+t+")")}(t.rotate,n.rotate,r,a),function(e,t,n,r){e!==t?r.push({i:n.push(yi(n)+"skewX(",null,")")-2,x:Ya(e,t)}):t&&n.push(yi(n)+"skewX("+t+")")}(t.skew,n.skew,r,a),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push(yi(n)+"scale(",null,",",null,")");r.push({i:a-4,x:Ya(e[0],t[0])},{i:a-2,x:Ya(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(yi(n)+"scale("+t+")")}(t.scale,n.scale,r,a),t=n=null,function(e){for(var t,n=-1,i=a.length;++n<i;)r[(t=a[n]).i]=t.x(e);return r.join("")}}function bi(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function _i(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function wi(e){for(var t=e.source,n=e.target,r=function(e,t){if(e===t)return e;for(var n=ki(e),r=ki(t),a=n.pop(),i=r.pop(),o=null;a===i;)o=a,a=n.pop(),i=r.pop();return o}(t,n),a=[t];t!==r;)t=t.parent,a.push(t);for(var i=a.length;n!==r;)a.splice(i,0,n),n=n.parent;return a}function ki(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function Ti(e){e.fixed|=2}function Mi(e){e.fixed&=-7}function Ai(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Si(e){e.fixed&=-5}e.interpolateTransform=xi,e.layout={},e.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push(wi(e[n]));return t}},e.layout.chord=function(){var t,n,r,a,i,o,l,s={},c=0;function u(){var s,u,d,p,h,g={},m=[],v=e.range(a),y=[];for(t=[],n=[],s=0,p=-1;++p<a;){for(u=0,h=-1;++h<a;)u+=r[p][h];m.push(u),y.push(e.range(a)),s+=u}for(i&&v.sort((function(e,t){return i(m[e],m[t])})),o&&y.forEach((function(e,t){e.sort((function(e,n){return o(r[t][e],r[t][n])}))})),s=(Se-c*a)/s,u=0,p=-1;++p<a;){for(d=u,h=-1;++h<a;){var x=v[p],b=y[x][h],_=r[x][b],w=u,k=u+=_*s;g[x+"-"+b]={index:x,subindex:b,startAngle:w,endAngle:k,value:_}}n[x]={index:x,startAngle:d,endAngle:u,value:m[x]},u+=c}for(p=-1;++p<a;)for(h=p-1;++h<a;){var T=g[p+"-"+h],M=g[h+"-"+p];(T.value||M.value)&&t.push(T.value<M.value?{source:M,target:T}:{source:T,target:M})}l&&f()}function f(){t.sort((function(e,t){return l((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)}))}return s.matrix=function(e){return arguments.length?(a=(r=e)&&r.length,t=n=null,s):r},s.padding=function(e){return arguments.length?(c=e,t=n=null,s):c},s.sortGroups=function(e){return arguments.length?(i=e,t=n=null,s):i},s.sortSubgroups=function(e){return arguments.length?(o=e,t=null,s):o},s.sortChords=function(e){return arguments.length?(l=e,t&&f(),s):l},s.chords=function(){return t||u(),t},s.groups=function(){return n||u(),n},s},e.layout.force=function(){var t,n,r,a,i,o,l={},s=e.dispatch("start","tick","end"),c=[1,1],u=.9,f=Li,d=Ci,p=-30,h=Oi,g=.1,m=.64,v=[],y=[];function x(e){return function(t,n,r,a){if(t.point!==e){var i=t.cx-e.x,o=t.cy-e.y,l=a-n,s=i*i+o*o;if(l*l/m<s){if(s<h){var c=t.charge/s;e.px-=i*c,e.py-=o*c}return!0}t.point&&s&&s<h&&(c=t.pointCharge/s,e.px-=i*c,e.py-=o*c)}return!t.charge}}function b(t){t.px=e.event.x,t.py=e.event.y,l.resume()}return l.tick=function(){if((r*=.99)<.005)return t=null,s.end({type:"end",alpha:r=0}),!0;var n,l,f,d,h,m,b,_,w,k=v.length,T=y.length;for(l=0;l<T;++l)d=(f=y[l]).source,(m=(_=(h=f.target).x-d.x)*_+(w=h.y-d.y)*w)&&(_*=m=r*i[l]*((m=Math.sqrt(m))-a[l])/m,w*=m,h.x-=_*(b=d.weight+h.weight?d.weight/(d.weight+h.weight):.5),h.y-=w*b,d.x+=_*(b=1-b),d.y+=w*b);if((b=r*g)&&(_=c[0]/2,w=c[1]/2,l=-1,b))for(;++l<k;)(f=v[l]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(function e(t,n,r){var a=0,i=0;if(t.charge=0,!t.leaf)for(var o,l=t.nodes,s=l.length,c=-1;++c<s;)null!=(o=l[c])&&(e(o,n,r),t.charge+=o.charge,a+=o.charge*o.cx,i+=o.charge*o.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var u=n*r[t.point.index];t.charge+=t.pointCharge=u,a+=u*t.point.x,i+=u*t.point.y}t.cx=a/t.charge,t.cy=i/t.charge}(n=e.geom.quadtree(v),r,o),l=-1;++l<k;)(f=v[l]).fixed||n.visit(x(f));for(l=-1;++l<k;)(f=v[l]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);s.tick({type:"tick",alpha:r})},l.nodes=function(e){return arguments.length?(v=e,l):v},l.links=function(e){return arguments.length?(y=e,l):y},l.size=function(e){return arguments.length?(c=e,l):c},l.linkDistance=function(e){return arguments.length?(f="function"==typeof e?e:+e,l):f},l.distance=l.linkDistance,l.linkStrength=function(e){return arguments.length?(d="function"==typeof e?e:+e,l):d},l.friction=function(e){return arguments.length?(u=+e,l):u},l.charge=function(e){return arguments.length?(p="function"==typeof e?e:+e,l):p},l.chargeDistance=function(e){return arguments.length?(h=e*e,l):Math.sqrt(h)},l.gravity=function(e){return arguments.length?(g=+e,l):g},l.theta=function(e){return arguments.length?(m=e*e,l):Math.sqrt(m)},l.alpha=function(e){return arguments.length?(e=+e,r?e>0?r=e:(t.c=null,t.t=NaN,t=null,s.end({type:"end",alpha:r=0})):e>0&&(s.start({type:"start",alpha:r=e}),t=wt(l.tick)),l):r},l.start=function(){var e,t,n,r=v.length,s=y.length,u=c[0],h=c[1];for(e=0;e<r;++e)(n=v[e]).index=e,n.weight=0;for(e=0;e<s;++e)"number"==typeof(n=y[e]).source&&(n.source=v[n.source]),"number"==typeof n.target&&(n.target=v[n.target]),++n.source.weight,++n.target.weight;for(e=0;e<r;++e)n=v[e],isNaN(n.x)&&(n.x=g("x",u)),isNaN(n.y)&&(n.y=g("y",h)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(a=[],"function"==typeof f)for(e=0;e<s;++e)a[e]=+f.call(this,y[e],e);else for(e=0;e<s;++e)a[e]=f;if(i=[],"function"==typeof d)for(e=0;e<s;++e)i[e]=+d.call(this,y[e],e);else for(e=0;e<s;++e)i[e]=d;if(o=[],"function"==typeof p)for(e=0;e<r;++e)o[e]=+p.call(this,v[e],e);else for(e=0;e<r;++e)o[e]=p;function g(n,a){if(!t){for(t=new Array(r),c=0;c<r;++c)t[c]=[];for(c=0;c<s;++c){var i=y[c];t[i.source.index].push(i.target),t[i.target.index].push(i.source)}}for(var o,l=t[e],c=-1,u=l.length;++c<u;)if(!isNaN(o=l[c][n]))return o;return Math.random()*a}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(n||(n=e.behavior.drag().origin(O).on("dragstart.force",Ti).on("drag.force",b).on("dragend.force",Mi)),!arguments.length)return n;this.on("mouseover.force",Ai).on("mouseout.force",Si).call(n)},e.rebind(l,s,"on")};var Li=20,Ci=1,Oi=1/0;function Pi(t,n){return e.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=Ni,t}function Ei(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(a=e.children)&&(r=a.length))for(var r,a;--r>=0;)n.push(a[r])}function zi(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(a=i.length))for(var a,i,o=-1;++o<a;)n.push(i[o]);for(;null!=(e=r.pop());)t(e)}function Di(e){return e.children}function Ri(e){return e.value}function Ii(e,t){return t.value-e.value}function Ni(t){return e.merge(t.map((function(e){return(e.children||[]).map((function(t){return{source:e,target:t}}))})))}e.layout.hierarchy=function(){var e=Ii,t=Di,n=Ri;function r(a){var i,o=[a],l=[];for(a.depth=0;null!=(i=o.pop());)if(l.push(i),(c=t.call(r,i,i.depth))&&(s=c.length)){for(var s,c,u;--s>=0;)o.push(u=c[s]),u.parent=i,u.depth=i.depth+1;n&&(i.value=0),i.children=c}else n&&(i.value=+n.call(r,i,i.depth)||0),delete i.children;return zi(a,(function(t){var r,a;e&&(r=t.children)&&r.sort(e),n&&(a=t.parent)&&(a.value+=t.value)})),l}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(Ei(e,(function(e){e.children&&(e.value=0)})),zi(e,(function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},r},e.layout.partition=function(){var t=e.layout.hierarchy(),n=[1,1];function r(e,r){var a=t.call(this,e,r);return function e(t,n,r,a){var i=t.children;if(t.x=n,t.y=t.depth*a,t.dx=r,t.dy=a,i&&(o=i.length)){var o,l,s,c=-1;for(r=t.value?r/t.value:0;++c<o;)e(l=i[c],n,s=l.value*r,a),n+=s}}(a[0],0,n[0],n[1]/function e(t){var n=t.children,r=0;if(n&&(a=n.length))for(var a,i=-1;++i<a;)r=Math.max(r,e(n[i]));return 1+r}(a[0])),a}return r.size=function(e){return arguments.length?(n=e,r):n},Pi(r,t)},e.layout.pie=function(){var t=Number,n=Fi,r=0,a=Se,i=0;function o(l){var s,c=l.length,u=l.map((function(e,n){return+t.call(o,e,n)})),f=+("function"==typeof r?r.apply(this,arguments):r),d=("function"==typeof a?a.apply(this,arguments):a)-f,p=Math.min(Math.abs(d)/c,+("function"==typeof i?i.apply(this,arguments):i)),h=p*(d<0?-1:1),g=e.sum(u),m=g?(d-c*h)/g:0,v=e.range(c),y=[];return null!=n&&v.sort(n===Fi?function(e,t){return u[t]-u[e]}:function(e,t){return n(l[e],l[t])}),v.forEach((function(e){y[e]={data:l[e],value:s=u[e],startAngle:f,endAngle:f+=s*m+h,padAngle:p}})),y}return o.value=function(e){return arguments.length?(t=e,o):t},o.sort=function(e){return arguments.length?(n=e,o):n},o.startAngle=function(e){return arguments.length?(r=e,o):r},o.endAngle=function(e){return arguments.length?(a=e,o):a},o.padAngle=function(e){return arguments.length?(i=e,o):i},o};var Fi={};function Bi(e){return e.x}function ji(e){return e.y}function Hi(e,t,n){e.y0=t,e.y=n}e.layout.stack=function(){var t=O,n=Ui,r=Gi,a=Hi,i=Bi,o=ji;function l(s,c){if(!(p=s.length))return s;var u=s.map((function(e,n){return t.call(l,e,n)})),f=u.map((function(e){return e.map((function(e,t){return[i.call(l,e,t),o.call(l,e,t)]}))})),d=n.call(l,f,c);u=e.permute(u,d),f=e.permute(f,d);var p,h,g,m,v=r.call(l,f,c),y=u[0].length;for(g=0;g<y;++g)for(a.call(l,u[0][g],m=v[g],f[0][g][1]),h=1;h<p;++h)a.call(l,u[h][g],m+=f[h-1][g][1],f[h][g][1]);return s}return l.values=function(e){return arguments.length?(t=e,l):t},l.order=function(e){return arguments.length?(n="function"==typeof e?e:qi.get(e)||Ui,l):n},l.offset=function(e){return arguments.length?(r="function"==typeof e?e:Vi.get(e)||Gi,l):r},l.x=function(e){return arguments.length?(i=e,l):i},l.y=function(e){return arguments.length?(o=e,l):o},l.out=function(e){return arguments.length?(a=e,l):a},l};var qi=e.map({"inside-out":function(t){var n,r,a=t.length,i=t.map(Zi),o=t.map(Wi),l=e.range(a).sort((function(e,t){return i[e]-i[t]})),s=0,c=0,u=[],f=[];for(n=0;n<a;++n)r=l[n],s<c?(s+=o[r],u.push(r)):(c+=o[r],f.push(r));return f.reverse().concat(u)},reverse:function(t){return e.range(t.length).reverse()},default:Ui}),Vi=e.map({silhouette:function(e){var t,n,r,a=e.length,i=e[0].length,o=[],l=0,s=[];for(n=0;n<i;++n){for(t=0,r=0;t<a;t++)r+=e[t][n][1];r>l&&(l=r),o.push(r)}for(n=0;n<i;++n)s[n]=(l-o[n])/2;return s},wiggle:function(e){var t,n,r,a,i,o,l,s,c,u=e.length,f=e[0],d=f.length,p=[];for(p[0]=s=c=0,n=1;n<d;++n){for(t=0,a=0;t<u;++t)a+=e[t][n][1];for(t=0,i=0,l=f[n][0]-f[n-1][0];t<u;++t){for(r=0,o=(e[t][n][1]-e[t][n-1][1])/(2*l);r<t;++r)o+=(e[r][n][1]-e[r][n-1][1])/l;i+=o*e[t][n][1]}p[n]=s-=a?i/a*l:0,s<c&&(c=s)}for(n=0;n<d;++n)p[n]-=c;return p},expand:function(e){var t,n,r,a=e.length,i=e[0].length,o=1/a,l=[];for(n=0;n<i;++n){for(t=0,r=0;t<a;t++)r+=e[t][n][1];if(r)for(t=0;t<a;t++)e[t][n][1]/=r;else for(t=0;t<a;t++)e[t][n][1]=o}for(n=0;n<i;++n)l[n]=0;return l},zero:Gi});function Ui(t){return e.range(t.length)}function Gi(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function Zi(e){for(var t,n=1,r=0,a=e[0][1],i=e.length;n<i;++n)(t=e[n][1])>a&&(r=n,a=t);return r}function Wi(e){return e.reduce(Yi,0)}function Yi(e,t){return e+t[1]}function Xi(e,t){return $i(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function $i(e,t){for(var n=-1,r=+e[0],a=(e[1]-r)/t,i=[];++n<=t;)i[n]=a*n+r;return i}function Qi(t){return[e.min(t),e.max(t)]}function Ki(e,t){return e.value-t.value}function Ji(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function eo(e,t){e._pack_next=t,t._pack_prev=e}function to(e,t){var n=t.x-e.x,r=t.y-e.y,a=e.r+t.r;return.999*a*a>n*n+r*r}function no(e){if((t=e.children)&&(s=t.length)){var t,n,r,a,i,o,l,s,c=1/0,u=-1/0,f=1/0,d=-1/0;if(t.forEach(ro),(n=t[0]).x=-n.r,n.y=0,x(n),s>1&&((r=t[1]).x=r.r,r.y=0,x(r),s>2))for(io(n,r,a=t[2]),x(a),Ji(n,a),n._pack_prev=a,Ji(a,r),r=n._pack_next,i=3;i<s;i++){io(n,r,a=t[i]);var p=0,h=1,g=1;for(o=r._pack_next;o!==r;o=o._pack_next,h++)if(to(o,a)){p=1;break}if(1==p)for(l=n._pack_prev;l!==o._pack_prev&&!to(l,a);l=l._pack_prev,g++);p?(h<g||h==g&&r.r<n.r?eo(n,r=o):eo(n=l,r),i--):(Ji(n,a),r=a,x(a))}var m=(c+u)/2,v=(f+d)/2,y=0;for(i=0;i<s;i++)(a=t[i]).x-=m,a.y-=v,y=Math.max(y,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=y,t.forEach(ao)}function x(e){c=Math.min(e.x-e.r,c),u=Math.max(e.x+e.r,u),f=Math.min(e.y-e.r,f),d=Math.max(e.y+e.r,d)}}function ro(e){e._pack_next=e._pack_prev=e}function ao(e){delete e._pack_next,delete e._pack_prev}function io(e,t,n){var r=e.r+n.r,a=t.x-e.x,i=t.y-e.y;if(r&&(a||i)){var o=t.r+n.r,l=a*a+i*i,s=.5+((r*=r)-(o*=o))/(2*l),c=Math.sqrt(Math.max(0,2*o*(r+l)-(r-=l)*r-o*o))/(2*l);n.x=e.x+s*a+c*i,n.y=e.y+s*i-c*a}else n.x=e.x+r,n.y=e.y}function oo(e,t){return e.parent==t.parent?1:2}function lo(e){var t=e.children;return t.length?t[0]:e.t}function so(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function co(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function uo(e,t,n){return e.a.parent===t.parent?e.a:n}function fo(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function po(e,t){var n=e.x+t[3],r=e.y+t[0],a=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return a<0&&(n+=a/2,a=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:a,dy:i}}function ho(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function go(e){return e.rangeExtent?e.rangeExtent():ho(e.range())}function mo(e,t,n,r){var a=n(e[0],e[1]),i=r(t[0],t[1]);return function(e){return i(a(e))}}function vo(e,t){var n,r=0,a=e.length-1,i=e[r],o=e[a];return o<i&&(n=r,r=a,a=n,n=i,i=o,o=n),e[r]=t.floor(i),e[a]=t.ceil(o),e}function yo(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:xo}e.layout.histogram=function(){var t=!0,n=Number,r=Qi,a=Xi;function i(i,o){for(var l,s,c=[],u=i.map(n,this),f=r.call(this,u,o),d=a.call(this,f,u,o),p=(o=-1,u.length),h=d.length-1,g=t?1:1/p;++o<h;)(l=c[o]=[]).dx=d[o+1]-(l.x=d[o]),l.y=0;if(h>0)for(o=-1;++o<p;)(s=u[o])>=f[0]&&s<=f[1]&&((l=c[e.bisect(d,s,1,h)-1]).y+=g,l.push(i[o]));return c}return i.value=function(e){return arguments.length?(n=e,i):n},i.range=function(e){return arguments.length?(r=ht(e),i):r},i.bins=function(e){return arguments.length?(a="number"==typeof e?function(t){return $i(t,e)}:ht(e),i):a},i.frequency=function(e){return arguments.length?(t=!!e,i):t},i},e.layout.pack=function(){var t,n=e.layout.hierarchy().sort(Ki),r=0,a=[1,1];function i(e,i){var o=n.call(this,e,i),l=o[0],s=a[0],c=a[1],u=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(l.x=l.y=0,zi(l,(function(e){e.r=+u(e.value)})),zi(l,no),r){var f=r*(t?1:Math.max(2*l.r/s,2*l.r/c))/2;zi(l,(function(e){e.r+=f})),zi(l,no),zi(l,(function(e){e.r-=f}))}return function e(t,n,r,a){var i=t.children;if(t.x=n+=a*t.x,t.y=r+=a*t.y,t.r*=a,i)for(var o=-1,l=i.length;++o<l;)e(i[o],n,r,a)}(l,s/2,c/2,t?1:1/Math.max(2*l.r/s,2*l.r/c)),o}return i.size=function(e){return arguments.length?(a=e,i):a},i.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,i):t},i.padding=function(e){return arguments.length?(r=+e,i):r},Pi(i,n)},e.layout.tree=function(){var t=e.layout.hierarchy().sort(null).value(null),n=oo,r=[1,1],a=null;function i(e,i){var c=t.call(this,e,i),u=c[0],f=function(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var a,i=t.children,o=0,l=i.length;o<l;++o)r.push((i[o]=a={_:i[o],parent:t,children:(a=i[o].children)&&a.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=a);return n.children[0]}(u);if(zi(f,o),f.parent.m=-f.z,Ei(f,l),a)Ei(u,s);else{var d=u,p=u,h=u;Ei(u,(function(e){e.x<d.x&&(d=e),e.x>p.x&&(p=e),e.depth>h.depth&&(h=e)}));var g=n(d,p)/2-d.x,m=r[0]/(p.x+n(p,d)/2+g),v=r[1]/(h.depth||1);Ei(u,(function(e){e.x=(e.x+g)*m,e.y=e.depth*v}))}return c}function o(e){var t=e.children,r=e.parent.children,a=e.i?r[e.i-1]:null;if(t.length){!function(e){for(var t,n=0,r=0,a=e.children,i=a.length;--i>=0;)(t=a[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var i=(t[0].z+t[t.length-1].z)/2;a?(e.z=a.z+n(e._,a._),e.m=e.z-i):e.z=i}else a&&(e.z=a.z+n(e._,a._));e.parent.A=function(e,t,r){if(t){for(var a,i=e,o=e,l=t,s=i.parent.children[0],c=i.m,u=o.m,f=l.m,d=s.m;l=so(l),i=lo(i),l&&i;)s=lo(s),(o=so(o)).a=e,(a=l.z+f-i.z-c+n(l._,i._))>0&&(co(uo(l,e,r),e,a),c+=a,u+=a),f+=l.m,c+=i.m,d+=s.m,u+=o.m;l&&!so(o)&&(o.t=l,o.m+=f-u),i&&!lo(s)&&(s.t=i,s.m+=c-d,r=e)}return r}(e,a,e.parent.A||r[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=r[0],e.y=e.depth*r[1]}return i.separation=function(e){return arguments.length?(n=e,i):n},i.size=function(e){return arguments.length?(a=null==(r=e)?s:null,i):a?null:r},i.nodeSize=function(e){return arguments.length?(a=null==(r=e)?null:s,i):a?r:null},Pi(i,t)},e.layout.cluster=function(){var t=e.layout.hierarchy().sort(null).value(null),n=oo,r=[1,1],a=!1;function i(i,o){var l,s=t.call(this,i,o),c=s[0],u=0;zi(c,(function(t){var r=t.children;r&&r.length?(t.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(r),t.y=function(t){return 1+e.max(t,(function(e){return e.y}))}(r)):(t.x=l?u+=n(t,l):0,t.y=0,l=t)}));var f=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(c),d=function e(t){var n,r=t.children;return r&&(n=r.length)?e(r[n-1]):t}(c),p=f.x-n(f,d)/2,h=d.x+n(d,f)/2;return zi(c,a?function(e){e.x=(e.x-c.x)*r[0],e.y=(c.y-e.y)*r[1]}:function(e){e.x=(e.x-p)/(h-p)*r[0],e.y=(1-(c.y?e.y/c.y:1))*r[1]}),s}return i.separation=function(e){return arguments.length?(n=e,i):n},i.size=function(e){return arguments.length?(a=null==(r=e),i):a?null:r},i.nodeSize=function(e){return arguments.length?(a=null!=(r=e),i):a?r:null},Pi(i,t)},e.layout.treemap=function(){var t,n=e.layout.hierarchy(),r=Math.round,a=[1,1],i=null,o=fo,l=!1,s="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var n,r,a=-1,i=e.length;++a<i;)r=(n=e[a]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function f(e){var t=e.children;if(t&&t.length){var n,r,a,i=o(e),l=[],c=t.slice(),d=1/0,g="slice"===s?i.dx:"dice"===s?i.dy:"slice-dice"===s?1&e.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(u(c,i.dx*i.dy/e.value),l.area=0;(a=c.length)>0;)l.push(n=c[a-1]),l.area+=n.area,"squarify"!==s||(r=p(l,g))<=d?(c.pop(),d=r):(l.area-=l.pop().area,h(l,g,i,!1),g=Math.min(i.dx,i.dy),l.length=l.area=0,d=1/0);l.length&&(h(l,g,i,!0),l.length=l.area=0),t.forEach(f)}}function d(e){var t=e.children;if(t&&t.length){var n,r=o(e),a=t.slice(),i=[];for(u(a,r.dx*r.dy/e.value),i.area=0;n=a.pop();)i.push(n),i.area+=n.area,null!=n.z&&(h(i,n.z?r.dx:r.dy,r,!a.length),i.length=i.area=0);t.forEach(d)}}function p(e,t){for(var n,r=e.area,a=0,i=1/0,o=-1,l=e.length;++o<l;)(n=e[o].area)&&(n<i&&(i=n),n>a&&(a=n));return t*=t,(r*=r)?Math.max(t*a*c/r,r/(t*i*c)):1/0}function h(e,t,n,a){var i,o=-1,l=e.length,s=n.x,c=n.y,u=t?r(e.area/t):0;if(t==n.dx){for((a||u>n.dy)&&(u=n.dy);++o<l;)(i=e[o]).x=s,i.y=c,i.dy=u,s+=i.dx=Math.min(n.x+n.dx-s,u?r(i.area/u):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=u,n.dy-=u}else{for((a||u>n.dx)&&(u=n.dx);++o<l;)(i=e[o]).x=s,i.y=c,i.dx=u,c+=i.dy=Math.min(n.y+n.dy-c,u?r(i.area/u):0);i.z=!1,i.dy+=n.y+n.dy-c,n.x+=u,n.dx-=u}}function g(e){var r=t||n(e),i=r[0];return i.x=i.y=0,i.value?(i.dx=a[0],i.dy=a[1]):i.dx=i.dy=0,t&&n.revalue(i),u([i],i.dx*i.dy/i.value),(t?d:f)(i),l&&(t=r),r}return g.size=function(e){return arguments.length?(a=e,g):a},g.padding=function(e){if(!arguments.length)return i;function t(t){var n=e.call(g,t,t.depth);return null==n?fo(t):po(t,"number"==typeof n?[n,n,n,n]:n)}function n(t){return po(t,e)}var r;return o=null==(i=e)?fo:"function"==(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,g},g.round=function(e){return arguments.length?(r=e?Math.round:Number,g):r!=Number},g.sticky=function(e){return arguments.length?(l=e,t=null,g):l},g.ratio=function(e){return arguments.length?(c=e,g):c},g.mode=function(e){return arguments.length?(s=e+"",g):s},Pi(g,n)},e.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,a;do{a=(n=2*Math.random()-1)*n+(r=2*Math.random()-1)*r}while(!a||a>1);return e+t*n*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var t=e.random.normal.apply(e,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=e.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},e.scale={};var xo={floor:O,ceil:O};function bo(t,n,r,a){var i=[],o=[],l=0,s=Math.min(t.length,n.length)-1;for(t[s]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++l<=s;)i.push(r(t[l-1],t[l])),o.push(a(n[l-1],n[l]));return function(n){var r=e.bisect(t,n,1,s)-1;return o[r](i[r](n))}}function _o(t,n){return e.rebind(t,n,"range","rangeRound","interpolate","clamp")}function wo(e,t){return vo(e,yo(ko(e,t)[2])),vo(e,yo(ko(e,t)[2])),e}function ko(e,t){null==t&&(t=10);var n=ho(e),r=n[1]-n[0],a=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*a;return i<=.15?a*=10:i<=.35?a*=5:i<=.75&&(a*=2),n[0]=Math.ceil(n[0]/a)*a,n[1]=Math.floor(n[1]/a)*a+.5*a,n[2]=a,n}function To(t,n){return e.range.apply(e,ko(t,n))}function Mo(t,n,r){var a=ko(t,n);if(r){var i=Ct.exec(r);if(i.shift(),"s"===i[8]){var o=e.formatPrefix(Math.max(y(a[0]),y(a[1])));return i[7]||(i[7]="."+So(o.scale(a[2]))),i[8]="f",r=e.format(i.join("")),function(e){return r(o.scale(e))+o.symbol}}i[7]||(i[7]="."+function(e,t){var n=So(t[2]);return e in Ao?Math.abs(n-So(Math.max(y(t[0]),y(t[1]))))+ +("e"!==e):n-2*("%"===e)}(i[8],a)),r=i.join("")}else r=",."+So(a[2])+"f";return e.format(r)}e.scale.linear=function(){return function e(t,n,r,a){var i,o;function l(){var e=Math.min(t.length,n.length)>2?bo:mo,l=a?_i:bi;return i=e(t,n,l,r),o=e(n,t,l,Ka),s}function s(e){return i(e)}return s.invert=function(e){return o(e)},s.domain=function(e){return arguments.length?(t=e.map(Number),l()):t},s.range=function(e){return arguments.length?(n=e,l()):n},s.rangeRound=function(e){return s.range(e).interpolate(pi)},s.clamp=function(e){return arguments.length?(a=e,l()):a},s.interpolate=function(e){return arguments.length?(r=e,l()):r},s.ticks=function(e){return To(t,e)},s.tickFormat=function(e,n){return Mo(t,e,n)},s.nice=function(e){return wo(t,e),l()},s.copy=function(){return e(t,n,r,a)},l()}([0,1],[0,1],Ka,!1)};var Ao={s:1,g:1,p:1,r:1,e:1};function So(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}e.scale.log=function(){return function t(n,r,a,i){function o(e){return(a?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(r)}function l(e){return a?Math.pow(r,e):-Math.pow(r,-e)}function s(e){return n(o(e))}return s.invert=function(e){return l(n.invert(e))},s.domain=function(e){return arguments.length?(a=e[0]>=0,n.domain((i=e.map(Number)).map(o)),s):i},s.base=function(e){return arguments.length?(r=+e,n.domain(i.map(o)),s):r},s.nice=function(){var e=vo(i.map(o),a?Math:Co);return n.domain(e),i=e.map(l),s},s.ticks=function(){var e=ho(i),t=[],n=e[0],s=e[1],c=Math.floor(o(n)),u=Math.ceil(o(s)),f=r%1?2:r;if(isFinite(u-c)){if(a){for(;c<u;c++)for(var d=1;d<f;d++)t.push(l(c)*d);t.push(l(c))}else for(t.push(l(c));c++<u;)for(d=f-1;d>0;d--)t.push(l(c)*d);for(c=0;t[c]<n;c++);for(u=t.length;t[u-1]>s;u--);t=t.slice(c,u)}return t},s.tickFormat=function(t,n){if(!arguments.length)return Lo;arguments.length<2?n=Lo:"function"!=typeof n&&(n=e.format(n));var a=Math.max(1,r*t/s.ticks().length);return function(e){var t=e/l(Math.round(o(e)));return t*r<r-.5&&(t*=r),t<=a?n(e):""}},s.copy=function(){return t(n.copy(),r,a,i)},_o(s,n)}(e.scale.linear().domain([0,1]),10,!0,[1,10])};var Lo=e.format(".0e"),Co={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function Oo(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}e.scale.pow=function(){return function e(t,n,r){var a=Oo(n),i=Oo(1/n);function o(e){return t(a(e))}return o.invert=function(e){return i(t.invert(e))},o.domain=function(e){return arguments.length?(t.domain((r=e.map(Number)).map(a)),o):r},o.ticks=function(e){return To(r,e)},o.tickFormat=function(e,t){return Mo(r,e,t)},o.nice=function(e){return o.domain(wo(r,e))},o.exponent=function(e){return arguments.length?(a=Oo(n=e),i=Oo(1/n),t.domain(r.map(a)),o):n},o.copy=function(){return e(t.copy(),n,r)},_o(o,t)}(e.scale.linear(),1,[0,1])},e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return function t(n,r){var a,i,o;function l(e){return i[((a.get(e)||("range"===r.t?a.set(e,n.push(e)):NaN))-1)%i.length]}function s(t,r){return e.range(n.length).map((function(e){return t+r*e}))}return l.domain=function(e){if(!arguments.length)return n;n=[],a=new _;for(var t,i=-1,o=e.length;++i<o;)a.has(t=e[i])||a.set(t,n.push(t));return l[r.t].apply(l,r.a)},l.range=function(e){return arguments.length?(i=e,o=0,r={t:"range",a:arguments},l):i},l.rangePoints=function(e,t){arguments.length<2&&(t=0);var a=e[0],c=e[1],u=n.length<2?(a=(a+c)/2,0):(c-a)/(n.length-1+t);return i=s(a+u*t/2,u),o=0,r={t:"rangePoints",a:arguments},l},l.rangeRoundPoints=function(e,t){arguments.length<2&&(t=0);var a=e[0],c=e[1],u=n.length<2?(a=c=Math.round((a+c)/2),0):(c-a)/(n.length-1+t)|0;return i=s(a+Math.round(u*t/2+(c-a-(n.length-1+t)*u)/2),u),o=0,r={t:"rangeRoundPoints",a:arguments},l},l.rangeBands=function(e,t,a){arguments.length<2&&(t=0),arguments.length<3&&(a=t);var c=e[1]<e[0],u=e[c-0],f=e[1-c],d=(f-u)/(n.length-t+2*a);return i=s(u+d*a,d),c&&i.reverse(),o=d*(1-t),r={t:"rangeBands",a:arguments},l},l.rangeRoundBands=function(e,t,a){arguments.length<2&&(t=0),arguments.length<3&&(a=t);var c=e[1]<e[0],u=e[c-0],f=e[1-c],d=Math.floor((f-u)/(n.length-t+2*a));return i=s(u+Math.round((f-u-(n.length-t)*d)/2),d),c&&i.reverse(),o=Math.round(d*(1-t)),r={t:"rangeRoundBands",a:arguments},l},l.rangeBand=function(){return o},l.rangeExtent=function(){return ho(r.a[0])},l.copy=function(){return t(n,r)},l.domain(n)}([],{t:"range",a:[[]]})},e.scale.category10=function(){return e.scale.ordinal().range(Po)},e.scale.category20=function(){return e.scale.ordinal().range(Eo)},e.scale.category20b=function(){return e.scale.ordinal().range(zo)},e.scale.category20c=function(){return e.scale.ordinal().range(Do)};var Po=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(it),Eo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(it),zo=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(it),Do=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(it);function Ro(){return 0}e.scale.quantile=function(){return function t(n,r){var a;function i(){var t=0,i=r.length;for(a=[];++t<i;)a[t-1]=e.quantile(n,t/i);return o}function o(t){if(!isNaN(t=+t))return r[e.bisect(a,t)]}return o.domain=function(e){return arguments.length?(n=e.map(p).filter(h).sort(d),i()):n},o.range=function(e){return arguments.length?(r=e,i()):r},o.quantiles=function(){return a},o.invertExtent=function(e){return(e=r.indexOf(e))<0?[NaN,NaN]:[e>0?a[e-1]:n[0],e<a.length?a[e]:n[n.length-1]]},o.copy=function(){return t(n,r)},i()}([],[])},e.scale.quantize=function(){return function e(t,n,r){var a,i;function o(e){return r[Math.max(0,Math.min(i,Math.floor(a*(e-t))))]}function l(){return a=r.length/(n-t),i=r.length-1,o}return o.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],l()):[t,n]},o.range=function(e){return arguments.length?(r=e,l()):r},o.invertExtent=function(e){return[e=(e=r.indexOf(e))<0?NaN:e/a+t,e+1/a]},o.copy=function(){return e(t,n,r)},l()}(0,1,[0,1])},e.scale.threshold=function(){return function t(n,r){function a(t){if(t<=t)return r[e.bisect(n,t)]}return a.domain=function(e){return arguments.length?(n=e,a):n},a.range=function(e){return arguments.length?(r=e,a):r},a.invertExtent=function(e){return e=r.indexOf(e),[n[e-1],n[e]]},a.copy=function(){return t(n,r)},a}([.5],[0,1])},e.scale.identity=function(){return function e(t){function n(e){return+e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=e.map(n),n):t},n.ticks=function(e){return To(t,e)},n.tickFormat=function(e,n){return Mo(t,e,n)},n.copy=function(){return e(t)},n}([0,1])},e.svg={},e.svg.arc=function(){var e=No,t=Fo,n=Ro,r=Io,a=Bo,i=jo,o=Ho;function l(){var l=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+t.apply(this,arguments)),u=a.apply(this,arguments)-Ce,f=i.apply(this,arguments)-Ce,d=Math.abs(f-u),p=u>f?0:1;if(c<l&&(h=c,c=l,l=h),d>=Le)return s(c,p)+(l?s(l,1-p):"")+"Z";var h,g,m,v,y,x,b,_,w,k,T,M,A=0,S=0,L=[];if((v=(+o.apply(this,arguments)||0)/2)&&(m=r===Io?Math.sqrt(l*l+c*c):+r.apply(this,arguments),p||(S*=-1),c&&(S=Re(m/c*Math.sin(v))),l&&(A=Re(m/l*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var C=Math.abs(f-u-2*S)<=Ae?0:1;if(S&&qo(y,x,b,_)===p^C){var O=(u+f)/2;y=c*Math.cos(O),x=c*Math.sin(O),b=_=null}}else y=x=0;if(l){w=l*Math.cos(f-A),k=l*Math.sin(f-A),T=l*Math.cos(u+A),M=l*Math.sin(u+A);var P=Math.abs(u-f+2*A)<=Ae?0:1;if(A&&qo(w,k,T,M)===1-p^P){var E=(u+f)/2;w=l*Math.cos(E),k=l*Math.sin(E),T=M=null}}else w=k=0;if(d>Te&&(h=Math.min(Math.abs(c-l)/2,+n.apply(this,arguments)))>.001){g=l<c^p?0:1;var z=h,D=h;if(d<Ae){var R=null==T?[w,k]:null==b?[y,x]:sa([y,x],[T,M],[b,_],[w,k]),I=y-R[0],N=x-R[1],F=b-R[0],B=_-R[1],j=1/Math.sin(Math.acos((I*F+N*B)/(Math.sqrt(I*I+N*N)*Math.sqrt(F*F+B*B)))/2),H=Math.sqrt(R[0]*R[0]+R[1]*R[1]);D=Math.min(h,(l-H)/(j-1)),z=Math.min(h,(c-H)/(j+1))}if(null!=b){var q=Vo(null==T?[w,k]:[T,M],[y,x],c,z,p),V=Vo([b,_],[w,k],c,z,p);h===z?L.push("M",q[0],"A",z,",",z," 0 0,",g," ",q[1],"A",c,",",c," 0 ",1-p^qo(q[1][0],q[1][1],V[1][0],V[1][1]),",",p," ",V[1],"A",z,",",z," 0 0,",g," ",V[0]):L.push("M",q[0],"A",z,",",z," 0 1,",g," ",V[0])}else L.push("M",y,",",x);if(null!=T){var U=Vo([y,x],[T,M],l,-D,p),G=Vo([w,k],null==b?[y,x]:[b,_],l,-D,p);h===D?L.push("L",G[0],"A",D,",",D," 0 0,",g," ",G[1],"A",l,",",l," 0 ",p^qo(G[1][0],G[1][1],U[1][0],U[1][1]),",",1-p," ",U[1],"A",D,",",D," 0 0,",g," ",U[0]):L.push("L",G[0],"A",D,",",D," 0 0,",g," ",U[0])}else L.push("L",w,",",k)}else L.push("M",y,",",x),null!=b&&L.push("A",c,",",c," 0 ",C,",",p," ",b,",",_),L.push("L",w,",",k),null!=T&&L.push("A",l,",",l," 0 ",P,",",1-p," ",T,",",M);return L.push("Z"),L.join("")}function s(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return l.innerRadius=function(t){return arguments.length?(e=ht(t),l):e},l.outerRadius=function(e){return arguments.length?(t=ht(e),l):t},l.cornerRadius=function(e){return arguments.length?(n=ht(e),l):n},l.padRadius=function(e){return arguments.length?(r=e==Io?Io:ht(e),l):r},l.startAngle=function(e){return arguments.length?(a=ht(e),l):a},l.endAngle=function(e){return arguments.length?(i=ht(e),l):i},l.padAngle=function(e){return arguments.length?(o=ht(e),l):o},l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Ce;return[Math.cos(r)*n,Math.sin(r)*n]},l};var Io="auto";function No(e){return e.innerRadius}function Fo(e){return e.outerRadius}function Bo(e){return e.startAngle}function jo(e){return e.endAngle}function Ho(e){return e&&e.padAngle}function qo(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function Vo(e,t,n,r,a){var i=e[0]-t[0],o=e[1]-t[1],l=(a?r:-r)/Math.sqrt(i*i+o*o),s=l*o,c=-l*i,u=e[0]+s,f=e[1]+c,d=t[0]+s,p=t[1]+c,h=(u+d)/2,g=(f+p)/2,m=d-u,v=p-f,y=m*m+v*v,x=n-r,b=u*p-d*f,_=(v<0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-m*_)/y,k=(-b*m-v*_)/y,T=(b*v+m*_)/y,M=(-b*m+v*_)/y,A=w-h,S=k-g,L=T-h,C=M-g;return A*A+S*S>L*L+C*C&&(w=T,k=M),[[w-s,k-c],[w*n/x,k*n/x]]}function Uo(e){var t=na,n=ra,r=Wn,a=Zo,i=a.key,o=.7;function l(i){var l,s=[],c=[],u=-1,f=i.length,d=ht(t),p=ht(n);function h(){s.push("M",a(e(c),o))}for(;++u<f;)r.call(this,l=i[u],u)?c.push([+d.call(this,l,u),+p.call(this,l,u)]):c.length&&(h(),c=[]);return c.length&&h(),s.length?s.join(""):null}return l.x=function(e){return arguments.length?(t=e,l):t},l.y=function(e){return arguments.length?(n=e,l):n},l.defined=function(e){return arguments.length?(r=e,l):r},l.interpolate=function(e){return arguments.length?(i="function"==typeof e?a=e:(a=Go.get(e)||Zo).key,l):i},l.tension=function(e){return arguments.length?(o=e,l):o},l}e.svg.line=function(){return Uo(O)};var Go=e.map({linear:Zo,"linear-closed":Wo,step:function(e){for(var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];++t<n;)a.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&a.push("H",r[0]),a.join("")},"step-before":Yo,"step-after":Xo,basis:Ko,"basis-open":function(e){if(e.length<4)return Zo(e);for(var t,n=[],r=-1,a=e.length,i=[0],o=[0];++r<3;)t=e[r],i.push(t[0]),o.push(t[1]);for(n.push(Jo(nl,i)+","+Jo(nl,o)),--r;++r<a;)t=e[r],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),rl(n,i,o);return n.join("")},"basis-closed":function(e){for(var t,n,r=-1,a=e.length,i=a+4,o=[],l=[];++r<4;)n=e[r%a],o.push(n[0]),l.push(n[1]);for(t=[Jo(nl,o),",",Jo(nl,l)],--r;++r<i;)n=e[r%a],o.shift(),o.push(n[0]),l.shift(),l.push(n[1]),rl(t,o,l);return t.join("")},bundle:function(e,t){var n=e.length-1;if(n)for(var r,a,i=e[0][0],o=e[0][1],l=e[n][0]-i,s=e[n][1]-o,c=-1;++c<=n;)r=e[c],a=c/n,r[0]=t*r[0]+(1-t)*(i+a*l),r[1]=t*r[1]+(1-t)*(o+a*s);return Ko(e)},cardinal:function(e,t){return e.length<3?Zo(e):e[0]+$o(e,Qo(e,t))},"cardinal-open":function(e,t){return e.length<4?Zo(e):e[1]+$o(e.slice(1,-1),Qo(e,t))},"cardinal-closed":function(e,t){return e.length<3?Wo(e):e[0]+$o((e.push(e[0]),e),Qo([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?Zo(e):e[0]+$o(e,function(e){for(var t,n,r,a,i=[],o=function(e){for(var t=0,n=e.length-1,r=[],a=e[0],i=e[1],o=r[0]=al(a,i);++t<n;)r[t]=(o+(o=al(a=i,i=e[t+1])))/2;return r[t]=o,r}(e),l=-1,s=e.length-1;++l<s;)t=al(e[l],e[l+1]),y(t)<Te?o[l]=o[l+1]=0:(n=o[l]/t,r=o[l+1]/t,(a=n*n+r*r)>9&&(a=3*t/Math.sqrt(a),o[l]=a*n,o[l+1]=a*r));for(l=-1;++l<=s;)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+o[l]*o[l])),i.push([a||0,o[l]*a||0]);return i}(e))}});function Zo(e){return e.length>1?e.join("L"):e+"Z"}function Wo(e){return e.join("L")+"Z"}function Yo(e){for(var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];++t<n;)a.push("V",(r=e[t])[1],"H",r[0]);return a.join("")}function Xo(e){for(var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];++t<n;)a.push("H",(r=e[t])[0],"V",r[1]);return a.join("")}function $o(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return Zo(e);var n=e.length!=t.length,r="",a=e[0],i=e[1],o=t[0],l=o,s=1;if(n&&(r+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],a=e[1],s=2),t.length>1){l=t[1],i=e[s],s++,r+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,s++)i=e[s],l=t[c],r+="S"+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1]}if(n){var u=e[s];r+="Q"+(i[0]+2*l[0]/3)+","+(i[1]+2*l[1]/3)+","+u[0]+","+u[1]}return r}function Qo(e,t){for(var n,r=[],a=(1-t)/2,i=e[0],o=e[1],l=1,s=e.length;++l<s;)n=i,i=o,o=e[l],r.push([a*(o[0]-n[0]),a*(o[1]-n[1])]);return r}function Ko(e){if(e.length<3)return Zo(e);var t=1,n=e.length,r=e[0],a=r[0],i=r[1],o=[a,a,a,(r=e[1])[0]],l=[i,i,i,r[1]],s=[a,",",i,"L",Jo(nl,o),",",Jo(nl,l)];for(e.push(e[n-1]);++t<=n;)r=e[t],o.shift(),o.push(r[0]),l.shift(),l.push(r[1]),rl(s,o,l);return e.pop(),s.push("L",r),s.join("")}function Jo(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}Go.forEach((function(e,t){t.key=e,t.closed=/-closed$/.test(e)}));var el=[0,2/3,1/3,0],tl=[0,1/3,2/3,0],nl=[0,1/6,2/3,1/6];function rl(e,t,n){e.push("C",Jo(el,t),",",Jo(el,n),",",Jo(tl,t),",",Jo(tl,n),",",Jo(nl,t),",",Jo(nl,n))}function al(e,t){return(t[1]-e[1])/(t[0]-e[0])}function il(e){for(var t,n,r,a=-1,i=e.length;++a<i;)n=(t=e[a])[0],r=t[1]-Ce,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function ol(e){var t=na,n=na,r=0,a=ra,i=Wn,o=Zo,l=o.key,s=o,c="L",u=.7;function f(l){var f,d,p,h=[],g=[],m=[],v=-1,y=l.length,x=ht(t),b=ht(r),_=t===n?function(){return d}:ht(n),w=r===a?function(){return p}:ht(a);function k(){h.push("M",o(e(m),u),c,s(e(g.reverse()),u),"Z")}for(;++v<y;)i.call(this,f=l[v],v)?(g.push([d=+x.call(this,f,v),p=+b.call(this,f,v)]),m.push([+_.call(this,f,v),+w.call(this,f,v)])):g.length&&(k(),g=[],m=[]);return g.length&&k(),h.length?h.join(""):null}return f.x=function(e){return arguments.length?(t=n=e,f):n},f.x0=function(e){return arguments.length?(t=e,f):t},f.x1=function(e){return arguments.length?(n=e,f):n},f.y=function(e){return arguments.length?(r=a=e,f):a},f.y0=function(e){return arguments.length?(r=e,f):r},f.y1=function(e){return arguments.length?(a=e,f):a},f.defined=function(e){return arguments.length?(i=e,f):i},f.interpolate=function(e){return arguments.length?(l="function"==typeof e?o=e:(o=Go.get(e)||Zo).key,s=o.reverse||o,c=o.closed?"M":"L",f):l},f.tension=function(e){return arguments.length?(u=e,f):u},f}function ll(e){return e.radius}function sl(e){return[e.x,e.y]}function cl(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Ce;return[n*Math.cos(r),n*Math.sin(r)]}}function ul(){return 64}function fl(){return"circle"}function dl(e){var t=Math.sqrt(e/Ae);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}e.svg.line.radial=function(){var e=Uo(il);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Yo.reverse=Xo,Xo.reverse=Yo,e.svg.area=function(){return ol(O)},e.svg.area.radial=function(){var e=ol(il);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},e.svg.chord=function(){var e=qr,t=Vr,n=ll,r=Bo,a=jo;function i(n,r){var a,i,c=o(this,e,n,r),u=o(this,t,n,r);return"M"+c.p0+l(c.r,c.p1,c.a1-c.a0)+(i=u,((a=c).a0==i.a0&&a.a1==i.a1?s(c.r,c.p1,c.r,c.p0):s(c.r,c.p1,u.r,u.p0)+l(u.r,u.p1,u.a1-u.a0)+s(u.r,u.p1,c.r,c.p0))+"Z")}function o(e,t,i,o){var l=t.call(e,i,o),s=n.call(e,l,o),c=r.call(e,l,o)-Ce,u=a.call(e,l,o)-Ce;return{r:s,a0:c,a1:u,p0:[s*Math.cos(c),s*Math.sin(c)],p1:[s*Math.cos(u),s*Math.sin(u)]}}function l(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Ae)+",1 "+t}function s(e,t,n,r){return"Q 0,0 "+r}return i.radius=function(e){return arguments.length?(n=ht(e),i):n},i.source=function(t){return arguments.length?(e=ht(t),i):e},i.target=function(e){return arguments.length?(t=ht(e),i):t},i.startAngle=function(e){return arguments.length?(r=ht(e),i):r},i.endAngle=function(e){return arguments.length?(a=ht(e),i):a},i},e.svg.diagonal=function(){var e=qr,t=Vr,n=sl;function r(r,a){var i=e.call(this,r,a),o=t.call(this,r,a),l=(i.y+o.y)/2,s=[i,{x:i.x,y:l},{x:o.x,y:l},o];return"M"+(s=s.map(n))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return r.source=function(t){return arguments.length?(e=ht(t),r):e},r.target=function(e){return arguments.length?(t=ht(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},e.svg.diagonal.radial=function(){var t=e.svg.diagonal(),n=sl,r=t.projection;return t.projection=function(e){return arguments.length?r(cl(n=e)):n},t},e.svg.symbol=function(){var e=fl,t=ul;function n(n,r){return(pl.get(e.call(this,n,r))||dl)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=ht(t),n):e},n.size=function(e){return arguments.length?(t=ht(e),n):t},n};var pl=e.map({circle:dl,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*gl)),n=t*gl;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/hl),n=t*hl/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/hl),n=t*hl/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});e.svg.symbolTypes=pl.keys();var hl=Math.sqrt(3),gl=Math.tan(30*Oe);Z.transition=function(e){for(var t,n,r=xl||++wl,a=Ml(e),i=[],o=bl||{time:Date.now(),ease:si,delay:0,duration:250},l=-1,s=this.length;++l<s;){i.push(t=[]);for(var c=this[l],u=-1,f=c.length;++u<f;)(n=c[u])&&Al(n,u,a,r,o),t.push(n)}return yl(i,a,r)},Z.interrupt=function(e){return this.each(null==e?ml:vl(Ml(e)))};var ml=vl(Ml());function vl(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function yl(e,t,n){return H(e,_l),e.namespace=t,e.id=n,e}var xl,bl,_l=[],wl=0;function kl(e,t,n,r){var a=e.id,i=e.namespace;return ue(e,"function"==typeof n?function(e,o,l){e[i][a].tween.set(t,r(n.call(e,e.__data__,o,l)))}:(n=r(n),function(e){e[i][a].tween.set(t,n)}))}function Tl(e){return null==e&&(e=""),function(){this.textContent=e}}function Ml(e){return null==e?"__transition__":"__transition_"+e+"__"}function Al(e,t,n,r,a){var i,o,l,s,c,u=e[n]||(e[n]={active:0,count:0}),f=u[r];function d(n){var a=u.active,d=u[a];for(var h in d&&(d.timer.c=null,d.timer.t=NaN,--u.count,delete u[a],d.event&&d.event.interrupt.call(e,e.__data__,d.index)),u)if(+h<r){var g=u[h];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[h]}o.c=p,wt((function(){return o.c&&p(n||1)&&(o.c=null,o.t=NaN),1}),0,i),u.active=r,f.event&&f.event.start.call(e,e.__data__,t),c=[],f.tween.forEach((function(n,r){(r=r.call(e,e.__data__,t))&&c.push(r)})),s=f.ease,l=f.duration}function p(a){for(var i=a/l,o=s(i),d=c.length;d>0;)c[--d].call(e,o);if(i>=1)return f.event&&f.event.end.call(e,e.__data__,t),--u.count?delete u[r]:delete e[n],1}f||(i=a.time,o=wt((function(e){var t=f.delay;if(o.t=t+i,t<=e)return d(e-t);o.c=d}),0,i),f=u[r]={tween:new _,time:i,timer:o,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++u.count)}_l.call=Z.call,_l.empty=Z.empty,_l.node=Z.node,_l.size=Z.size,e.transition=function(t,n){return t&&t.transition?xl?t.transition(n):t:e.selection().transition(t)},e.transition.prototype=_l,_l.select=function(e){var t,n,r,a=this.id,i=this.namespace,o=[];e=W(e);for(var l=-1,s=this.length;++l<s;){o.push(t=[]);for(var c=this[l],u=-1,f=c.length;++u<f;)(r=c[u])&&(n=e.call(r,r.__data__,u,l))?("__data__"in r&&(n.__data__=r.__data__),Al(n,u,i,a,r[i][a]),t.push(n)):t.push(null)}return yl(o,i,a)},_l.selectAll=function(e){var t,n,r,a,i,o=this.id,l=this.namespace,s=[];e=Y(e);for(var c=-1,u=this.length;++c<u;)for(var f=this[c],d=-1,p=f.length;++d<p;)if(r=f[d]){i=r[l][o],n=e.call(r,r.__data__,d,c),s.push(t=[]);for(var h=-1,g=n.length;++h<g;)(a=n[h])&&Al(a,h,l,o,i),t.push(a)}return yl(s,l,o)},_l.filter=function(e){var t,n,r=[];"function"!=typeof e&&(e=se(e));for(var a=0,i=this.length;a<i;a++){r.push(t=[]);for(var o,l=0,s=(o=this[a]).length;l<s;l++)(n=o[l])&&e.call(n,n.__data__,l,a)&&t.push(n)}return yl(r,this.namespace,this.id)},_l.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):ue(this,null==t?function(t){t[r][n].tween.remove(e)}:function(a){a[r][n].tween.set(e,t)})},_l.attr=function(t,n){if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var r="transform"==t?xi:Ka,a=e.ns.qualify(t);function i(){this.removeAttribute(a)}function o(){this.removeAttributeNS(a.space,a.local)}function l(e){return null==e?i:(e+="",function(){var t,n=this.getAttribute(a);return n!==e&&(t=r(n,e),function(e){this.setAttribute(a,t(e))})})}function s(e){return null==e?o:(e+="",function(){var t,n=this.getAttributeNS(a.space,a.local);return n!==e&&(t=r(n,e),function(e){this.setAttributeNS(a.space,a.local,t(e))})})}return kl(this,"attr."+t,n,a.local?s:l)},_l.attrTween=function(t,n){var r=e.ns.qualify(t);return this.tween("attr."+t,r.local?function(e,t){var a=n.call(this,e,t,this.getAttributeNS(r.space,r.local));return a&&function(e){this.setAttributeNS(r.space,r.local,a(e))}}:function(e,t){var a=n.call(this,e,t,this.getAttribute(r));return a&&function(e){this.setAttribute(r,a(e))}})},_l.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=""),e)this.style(n,e[n],t);return this}n=""}function a(){this.style.removeProperty(e)}function i(t){return null==t?a:(t+="",function(){var r,a=o(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(r=Ka(a,t),function(t){this.style.setProperty(e,r(t),n)})})}return kl(this,"style."+e,t,i)},_l.styleTween=function(e,t,n){function r(r,a){var i=t.call(this,r,a,o(this).getComputedStyle(this,null).getPropertyValue(e));return i&&function(t){this.style.setProperty(e,i(t),n)}}return arguments.length<3&&(n=""),this.tween("style."+e,r)},_l.text=function(e){return kl(this,"text",e,Tl)},_l.remove=function(){var e=this.namespace;return this.each("end.transition",(function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},_l.ease=function(t){var n=this.id,r=this.namespace;return arguments.length<1?this.node()[r][n].ease:("function"!=typeof t&&(t=e.ease.apply(e,arguments)),ue(this,(function(e){e[r][n].ease=t})))},_l.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:ue(this,"function"==typeof e?function(r,a,i){r[n][t].delay=+e.call(r,r.__data__,a,i)}:(e=+e,function(r){r[n][t].delay=e}))},_l.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:ue(this,"function"==typeof e?function(r,a,i){r[n][t].duration=Math.max(1,e.call(r,r.__data__,a,i))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},_l.each=function(t,n){var r=this.id,a=this.namespace;if(arguments.length<2){var i=bl,o=xl;try{xl=r,ue(this,(function(e,n,i){bl=e[a][r],t.call(e,e.__data__,n,i)}))}finally{bl=i,xl=o}}else ue(this,(function(i){var o=i[a][r];(o.event||(o.event=e.dispatch("start","end","interrupt"))).on(t,n)}));return this},_l.transition=function(){for(var e,t,n,r=this.id,a=++wl,i=this.namespace,o=[],l=0,s=this.length;l<s;l++){o.push(e=[]);for(var c,u=0,f=(c=this[l]).length;u<f;u++)(t=c[u])&&Al(t,u,i,a,{time:(n=t[i][r]).time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration}),e.push(t)}return yl(o,i,a)},e.svg.axis=function(){var t,n=e.scale.linear(),a=Sl,i=6,o=6,l=3,s=[10],c=null;function u(r){r.each((function(){var r,u=e.select(this),f=this.__chart__||n,d=this.__chart__=n.copy(),p=null==c?d.ticks?d.ticks.apply(d,s):d.domain():c,h=null==t?d.tickFormat?d.tickFormat.apply(d,s):O:t,g=u.selectAll(".tick").data(p,d),m=g.enter().insert("g",".domain").attr("class","tick").style("opacity",Te),v=e.transition(g.exit()).style("opacity",Te).remove(),y=e.transition(g.order()).style("opacity",1),x=Math.max(i,0)+l,b=go(d),_=u.selectAll(".domain").data([0]),w=(_.enter().append("path").attr("class","domain"),e.transition(_));m.append("line"),m.append("text");var k,T,M,A,S=m.select("line"),L=y.select("line"),C=g.select("text").text(h),P=m.select("text"),E=y.select("text"),z="top"===a||"left"===a?-1:1;if("bottom"===a||"top"===a?(r=Cl,k="x",M="y",T="x2",A="y2",C.attr("dy",z<0?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+b[0]+","+z*o+"V0H"+b[1]+"V"+z*o)):(r=Ol,k="y",M="x",T="y2",A="x2",C.attr("dy",".32em").style("text-anchor",z<0?"end":"start"),w.attr("d","M"+z*o+","+b[0]+"H0V"+b[1]+"H"+z*o)),S.attr(A,z*i),P.attr(M,z*x),L.attr(T,0).attr(A,z*i),E.attr(k,0).attr(M,z*x),d.rangeBand){var D=d,R=D.rangeBand()/2;f=d=function(e){return D(e)+R}}else f.rangeBand?f=d:v.call(r,d,f);m.call(r,f,d),y.call(r,d,d)}))}return u.scale=function(e){return arguments.length?(n=e,u):n},u.orient=function(e){return arguments.length?(a=e in Ll?e+"":Sl,u):a},u.ticks=function(){return arguments.length?(s=r(arguments),u):s},u.tickValues=function(e){return arguments.length?(c=e,u):c},u.tickFormat=function(e){return arguments.length?(t=e,u):t},u.tickSize=function(e){var t=arguments.length;return t?(i=+e,o=+arguments[t-1],u):i},u.innerTickSize=function(e){return arguments.length?(i=+e,u):i},u.outerTickSize=function(e){return arguments.length?(o=+e,u):o},u.tickPadding=function(e){return arguments.length?(l=+e,u):l},u.tickSubdivide=function(){return arguments.length&&u},u};var Sl="bottom",Ll={top:1,right:1,bottom:1,left:1};function Cl(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"}))}function Ol(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"}))}e.svg.brush=function(){var t,n,r=B(d,"brushstart","brush","brushend"),a=null,i=null,l=[0,0],s=[0,0],c=!0,u=!0,f=El[0];function d(t){t.each((function(){var t=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",m).on("touchstart.brush",m),n=t.selectAll(".background").data([0]);n.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var r=t.selectAll(".resize").data(f,O);r.exit().remove(),r.enter().append("g").attr("class",(function(e){return"resize "+e})).style("cursor",(function(e){return Pl[e]})).append("rect").attr("x",(function(e){return/[ew]$/.test(e)?-3:null})).attr("y",(function(e){return/^[ns]/.test(e)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),r.style("display",d.empty()?"none":null);var o,l=e.transition(t),s=e.transition(n);a&&(o=go(a),s.attr("x",o[0]).attr("width",o[1]-o[0]),h(l)),i&&(o=go(i),s.attr("y",o[0]).attr("height",o[1]-o[0]),g(l)),p(l)}))}function p(e){e.selectAll(".resize").attr("transform",(function(e){return"translate("+l[+/e$/.test(e)]+","+s[+/^s/.test(e)]+")"}))}function h(e){e.select(".extent").attr("x",l[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1]-l[0])}function g(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function m(){var f,m,v=this,y=e.select(e.event.target),x=r.of(v,arguments),b=e.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&&a,k=!/^(e|w)$/.test(_)&&i,T=y.classed("extent"),M=be(v),A=e.mouse(v),S=e.select(o(v)).on("keydown.brush",O).on("keyup.brush",P);if(e.event.changedTouches?S.on("touchmove.brush",E).on("touchend.brush",D):S.on("mousemove.brush",E).on("mouseup.brush",D),b.interrupt().selectAll("*").interrupt(),T)A[0]=l[0]-A[0],A[1]=s[0]-A[1];else if(_){var L=+/w$/.test(_),C=+/^n/.test(_);m=[l[1-L]-A[0],s[1-C]-A[1]],A[0]=l[L],A[1]=s[C]}else e.event.altKey&&(f=A.slice());function O(){32==e.event.keyCode&&(T||(f=null,A[0]-=l[1],A[1]-=s[1],T=2),N())}function P(){32==e.event.keyCode&&2==T&&(A[0]+=l[1],A[1]+=s[1],T=0,N())}function E(){var t=e.mouse(v),n=!1;m&&(t[0]+=m[0],t[1]+=m[1]),T||(e.event.altKey?(f||(f=[(l[0]+l[1])/2,(s[0]+s[1])/2]),A[0]=l[+(t[0]<f[0])],A[1]=s[+(t[1]<f[1])]):f=null),w&&z(t,a,0)&&(h(b),n=!0),k&&z(t,i,1)&&(g(b),n=!0),n&&(p(b),x({type:"brush",mode:T?"move":"resize"}))}function z(e,r,a){var i,o,d=go(r),p=d[0],h=d[1],g=A[a],m=a?s:l,v=m[1]-m[0];if(T&&(p-=g,h-=v+g),i=(a?u:c)?Math.max(p,Math.min(h,e[a])):e[a],T?o=(i+=g)+v:(f&&(g=Math.max(p,Math.min(h,2*f[a]-i))),g<i?(o=i,i=g):o=g),m[0]!=i||m[1]!=o)return a?n=null:t=null,m[0]=i,m[1]=o,!0}function D(){E(),b.style("pointer-events","all").selectAll(".resize").style("display",d.empty()?"none":null),e.select("body").style("cursor",null),S.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),M(),x({type:"brushend"})}b.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",y.style("cursor")),x({type:"brushstart"}),E()}return d.event=function(a){a.each((function(){var a=r.of(this,arguments),i={x:l,y:s,i:t,j:n},o=this.__chart__||i;this.__chart__=i,xl?e.select(this).transition().each("start.brush",(function(){t=o.i,n=o.j,l=o.x,s=o.y,a({type:"brushstart"})})).tween("brush:brush",(function(){var e=Ja(l,i.x),r=Ja(s,i.y);return t=n=null,function(t){l=i.x=e(t),s=i.y=r(t),a({type:"brush",mode:"resize"})}})).each("end.brush",(function(){t=i.i,n=i.j,a({type:"brush",mode:"resize"}),a({type:"brushend"})})):(a({type:"brushstart"}),a({type:"brush",mode:"resize"}),a({type:"brushend"}))}))},d.x=function(e){return arguments.length?(f=El[!(a=e)<<1|!i],d):a},d.y=function(e){return arguments.length?(f=El[!a<<1|!(i=e)],d):i},d.clamp=function(e){return arguments.length?(a&&i?(c=!!e[0],u=!!e[1]):a?c=!!e:i&&(u=!!e),d):a&&i?[c,u]:a?c:i?u:null},d.extent=function(e){var r,o,c,u,f;return arguments.length?(a&&(r=e[0],o=e[1],i&&(r=r[0],o=o[0]),t=[r,o],a.invert&&(r=a(r),o=a(o)),o<r&&(f=r,r=o,o=f),r==l[0]&&o==l[1]||(l=[r,o])),i&&(c=e[0],u=e[1],a&&(c=c[1],u=u[1]),n=[c,u],i.invert&&(c=i(c),u=i(u)),u<c&&(f=c,c=u,u=f),c==s[0]&&u==s[1]||(s=[c,u])),d):(a&&(t?(r=t[0],o=t[1]):(r=l[0],o=l[1],a.invert&&(r=a.invert(r),o=a.invert(o)),o<r&&(f=r,r=o,o=f))),i&&(n?(c=n[0],u=n[1]):(c=s[0],u=s[1],i.invert&&(c=i.invert(c),u=i.invert(u)),u<c&&(f=c,c=u,u=f))),a&&i?[[r,c],[o,u]]:a?[r,o]:i&&[c,u])},d.clear=function(){return d.empty()||(l=[0,0],s=[0,0],t=n=null),d},d.empty=function(){return!!a&&l[0]==l[1]||!!i&&s[0]==s[1]},e.rebind(d,r,"on")};var Pl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},El=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],zl=Et.format=sn.timeFormat,Dl=zl.utc,Rl=Dl("%Y-%m-%dT%H:%M:%S.%LZ");function Il(e){return e.toISOString()}function Nl(t,n,r){function a(e){return t(e)}function i(t,r){var a=(t[1]-t[0])/r,i=e.bisect(Bl,a);return i==Bl.length?[n.year,ko(t.map((function(e){return e/31536e6})),r)[2]]:i?n[a/Bl[i-1]<Bl[i]/a?i-1:i]:[ql,ko(t,r)[2]]}return a.invert=function(e){return Fl(t.invert(e))},a.domain=function(e){return arguments.length?(t.domain(e),a):t.domain().map(Fl)},a.nice=function(e,t){var n=a.domain(),r=ho(n),o=null==e?i(r,10):"number"==typeof e&&i(r,e);function l(n){return!isNaN(n)&&!e.range(n,Fl(+n+1),t).length}return o&&(e=o[0],t=o[1]),a.domain(vo(n,t>1?{floor:function(t){for(;l(t=e.floor(t));)t=Fl(t-1);return t},ceil:function(t){for(;l(t=e.ceil(t));)t=Fl(+t+1);return t}}:e))},a.ticks=function(e,t){var n=ho(a.domain()),r=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return r&&(e=r[0],t=r[1]),e.range(n[0],Fl(+n[1]+1),t<1?1:t)},a.tickFormat=function(){return r},a.copy=function(){return Nl(t.copy(),n,r)},_o(a,t)}function Fl(e){return new Date(e)}zl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Il:Rl,Il.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Il.toString=Rl.toString,Et.second=It((function(e){return new zt(1e3*Math.floor(e/1e3))}),(function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))}),(function(e){return e.getSeconds()})),Et.seconds=Et.second.range,Et.seconds.utc=Et.second.utc.range,Et.minute=It((function(e){return new zt(6e4*Math.floor(e/6e4))}),(function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))}),(function(e){return e.getMinutes()})),Et.minutes=Et.minute.range,Et.minutes.utc=Et.minute.utc.range,Et.hour=It((function(e){var t=e.getTimezoneOffset()/60;return new zt(36e5*(Math.floor(e/36e5-t)+t))}),(function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))}),(function(e){return e.getHours()})),Et.hours=Et.hour.range,Et.hours.utc=Et.hour.utc.range,Et.month=It((function(e){return(e=Et.day(e)).setDate(1),e}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e){return e.getMonth()})),Et.months=Et.month.range,Et.months.utc=Et.month.utc.range;var Bl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],jl=[[Et.second,1],[Et.second,5],[Et.second,15],[Et.second,30],[Et.minute,1],[Et.minute,5],[Et.minute,15],[Et.minute,30],[Et.hour,1],[Et.hour,3],[Et.hour,6],[Et.hour,12],[Et.day,1],[Et.day,2],[Et.week,1],[Et.month,1],[Et.month,3],[Et.year,1]],Hl=zl.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Wn]]),ql={range:function(t,n,r){return e.range(Math.ceil(t/r)*r,+n,r).map(Fl)},floor:O,ceil:O};jl.year=Et.year,Et.scale=function(){return Nl(e.scale.linear(),jl,Hl)};var Vl=jl.map((function(e){return[e[0].utc,e[1]]})),Ul=Dl.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Wn]]);function Gl(e){return JSON.parse(e.responseText)}function Zl(e){var t=a.createRange();return t.selectNode(a.body),t.createContextualFragment(e.responseText)}Vl.year=Et.year.utc,Et.scale.utc=function(){return Nl(e.scale.linear(),Vl,Ul)},e.text=gt((function(e){return e.responseText})),e.json=function(e,t){return mt(e,"application/json",Gl,t)},e.html=function(e,t){return mt(e,"text/html",Zl,t)},e.xml=gt((function(e){return e.responseXML})),"object"==typeof t&&t.exports?t.exports=e:this.d3=e}()},{}],17:[function(e,n,r){(function(t,a){ -/*! - * @overview es6-promise - a tiny implementation of Promises/A+. - * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) - * @license Licensed under MIT license - * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE - * @version v4.2.8+1e68dce6 - */ -!function(e,t){"object"==typeof r&&void 0!==n?n.exports=t():e.ES6Promise=t()}(this,(function(){"use strict";function n(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,o=void 0,l=void 0,s=function(e,t){g[i]=e,g[i+1]=t,2===(i+=2)&&(l?l(m):_())},c="undefined"!=typeof window?window:void 0,u=c||{},f=u.MutationObserver||u.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var e=setTimeout;return function(){return e(m,1)}}var g=new Array(1e3);function m(){for(var e=0;e<i;e+=2)(0,g[e])(g[e+1]),g[e]=void 0,g[e+1]=void 0;i=0}var v,y,x,b,_=void 0;function w(e,t){var n=this,r=new this.constructor(M);void 0===r[T]&&R(r);var a=n._state;if(a){var i=arguments[a-1];s((function(){return z(a,r,i,n._result)}))}else P(n,r,e,t);return r}function k(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(M);return S(t,e),t}d?_=function(){return t.nextTick(m)}:f?(y=0,x=new f(m),b=document.createTextNode(""),x.observe(b,{characterData:!0}),_=function(){b.data=y=++y%2}):p?((v=new MessageChannel).port1.onmessage=m,_=function(){return v.port2.postMessage(0)}):_=void 0===c&&"function"==typeof e?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(m)}:h()}catch(e){return h()}}():h();var T=Math.random().toString(36).substring(2);function M(){}function A(e,t,r){t.constructor===e.constructor&&r===w&&t.constructor.resolve===k?function(e,t){1===t._state?C(e,t._result):2===t._state?O(e,t._result):P(t,void 0,(function(t){return S(e,t)}),(function(t){return O(e,t)}))}(e,t):void 0===r?C(e,t):n(r)?function(e,t,n){s((function(e){var r=!1,a=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?S(e,n):C(e,n))}),(function(t){r||(r=!0,O(e,t))}),e._label);!r&&a&&(r=!0,O(e,a))}),e)}(e,t,r):C(e,t)}function S(e,t){if(e===t)O(e,new TypeError("You cannot resolve a promise with itself"));else if(a=typeof(r=t),null===r||"object"!==a&&"function"!==a)C(e,t);else{var n=void 0;try{n=t.then}catch(t){return void O(e,t)}A(e,t,n)}var r,a}function L(e){e._onerror&&e._onerror(e._result),E(e)}function C(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(E,e))}function O(e,t){void 0===e._state&&(e._state=2,e._result=t,s(L,e))}function P(e,t,n,r){var a=e._subscribers,i=a.length;e._onerror=null,a[i]=t,a[i+1]=n,a[i+2]=r,0===i&&e._state&&s(E,e)}function E(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,a=void 0,i=e._result,o=0;o<t.length;o+=3)r=t[o],a=t[o+n],r?z(n,r,a,i):a(i);e._subscribers.length=0}}function z(e,t,r,a){var i=n(r),o=void 0,l=void 0,s=!0;if(i){try{o=r(a)}catch(e){s=!1,l=e}if(t===o)return void O(t,new TypeError("A promises callback cannot return that same promise."))}else o=a;void 0!==t._state||(i&&s?S(t,o):!1===s?O(t,l):1===e?C(t,o):2===e&&O(t,o))}var D=0;function R(e){e[T]=D++,e._state=void 0,e._result=void 0,e._subscribers=[]}var I=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(M),this.promise[T]||R(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&C(this.promise,this._result))):O(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===k){var a=void 0,i=void 0,o=!1;try{a=e.then}catch(e){o=!0,i=e}if(a===w&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof a)this._remaining--,this._result[t]=e;else if(n===N){var l=new n(M);o?O(l,i):A(l,e,a),this._willSettleAt(l,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?O(r,n):this._result[t]=n),0===this._remaining&&C(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;P(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),N=function(){function e(t){this[T]=D++,this._result=this._state=void 0,this._subscribers=[],M!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(e,t){try{t((function(t){S(e,t)}),(function(t){O(e,t)}))}catch(t){O(e,t)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this.constructor;return n(e)?this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))})):this.then(e,e)},e}();return N.prototype.then=w,N.all=function(e){return new I(this,e).promise},N.race=function(e){var t=this;return r(e)?new t((function(n,r){for(var a=e.length,i=0;i<a;i++)t.resolve(e[i]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},N.resolve=k,N.reject=function(e){var t=new this(M);return O(t,e),t},N._setScheduler=function(e){l=e},N._setAsap=function(e){s=e},N._asap=s,N.polyfill=function(){var e=void 0;if(void 0!==a)e=a;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=N},N.Promise=N,N}))}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:34}],18:[function(e,t,n){"use strict";var r=e("is-string-blank");t.exports=function(e){var t=typeof e;if("string"===t){var n=e;if(0==(e=+e)&&r(n))return!1}else if("number"!==t)return!1;return e-e<1}},{"is-string-blank":23}],19:[function(e,t,n){t.exports=function(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=n+n,l=r+r,s=a+a,c=n*o,u=r*o,f=r*l,d=a*o,p=a*l,h=a*s,g=i*o,m=i*l,v=i*s;return e[0]=1-f-h,e[1]=u+v,e[2]=d-m,e[3]=0,e[4]=u-v,e[5]=1-c-h,e[6]=p+g,e[7]=0,e[8]=d+m,e[9]=p-g,e[10]=1-c-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],20:[function(e,n,r){(function(t){"use strict";var r,a=e("is-browser");r="function"==typeof t.matchMedia?!t.matchMedia("(hover: none)").matches:a,n.exports=r}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"is-browser":22}],21:[function(e,t,n){"use strict";var r=e("is-browser");t.exports=r&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return e}()},{"is-browser":22}],22:[function(e,t,n){t.exports=!0},{}],23:[function(e,t,n){"use strict";t.exports=function(e){for(var t,n=e.length,r=0;r<n;r++)if(((t=e.charCodeAt(r))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},{}],24:[function(e,t,n){var r={left:0,top:0};t.exports=function(e,t,n){t=t||e.currentTarget||e.srcElement,Array.isArray(n)||(n=[0,0]);var a,i=e.clientX||0,o=e.clientY||0,l=(a=t)===window||a===document||a===document.body?r:a.getBoundingClientRect();return n[0]=i-l.left,n[1]=o-l.top,n}},{}],25:[function(e,t,n){t.exports=function(e){var t=[];return e.replace(a,(function(e,n,a){var o=n.toLowerCase();for(a=function(e){var t=e.match(i);return t?t.map(Number):[]}(a),"m"==o&&a.length>2&&(t.push([n].concat(a.splice(0,2))),o="l",n="m"==n?"l":"L");;){if(a.length==r[o])return a.unshift(n),t.push(a);if(a.length<r[o])throw new Error("malformed path data");t.push([n].concat(a.splice(0,r[o])))}})),t};var r={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=/([astvzqmhlc])([^astvzqmhlc]*)/gi,i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],26:[function(e,t,n){ -/* - * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc - * @license MIT - * @preserve Project Home: https://github.com/voidqk/polybooljs - */ -var r,a=e("./lib/build-log"),i=e("./lib/epsilon"),o=e("./lib/intersecter"),l=e("./lib/segment-chainer"),s=e("./lib/segment-selector"),c=e("./lib/geojson"),u=!1,f=i();function d(e,t,n){var a=r.segments(e),i=r.segments(t),o=n(r.combine(a,i));return r.polygon(o)}r={buildLog:function(e){return!0===e?u=a():!1===e&&(u=!1),!1!==u&&u.list},epsilon:function(e){return f.epsilon(e)},segments:function(e){var t=o(!0,f,u);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:o(!1,f,u).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:s.union(e.combined,u),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:s.intersect(e.combined,u),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:s.difference(e.combined,u),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:s.differenceRev(e.combined,u),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:s.xor(e.combined,u),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:l(e.segments,f,u),inverted:e.inverted}},polygonFromGeoJSON:function(e){return c.toPolygon(r,e)},polygonToGeoJSON:function(e){return c.fromPolygon(r,f,e)},union:function(e,t){return d(e,t,r.selectUnion)},intersect:function(e,t){return d(e,t,r.selectIntersect)},difference:function(e,t){return d(e,t,r.selectDifference)},differenceRev:function(e,t){return d(e,t,r.selectDifferenceRev)},xor:function(e,t){return d(e,t,r.selectXor)}},"object"==typeof window&&(window.PolyBool=r),t.exports=r},{"./lib/build-log":27,"./lib/epsilon":28,"./lib/geojson":29,"./lib/intersecter":30,"./lib/segment-chainer":32,"./lib/segment-selector":33}],27:[function(e,t,n){t.exports=function(){var e,t=0,n=!1;function r(t,n){return e.list.push({type:t,data:n?JSON.parse(JSON.stringify(n)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return r("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return r("div_seg",{seg:e,pt:t}),r("chop",{seg:e,pt:t})},statusRemove:function(e){return r("pop_seg",{seg:e})},segmentUpdate:function(e){return r("seg_update",{seg:e})},segmentNew:function(e,t){return r("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return r("rem_seg",{seg:e})},tempStatus:function(e,t,n){return r("temp_status",{seg:e,above:t,below:n})},rewind:function(e){return r("rewind",{seg:e})},status:function(e,t,n){return r("status",{seg:e,above:t,below:n})},vert:function(t){return t===n?e:(n=t,r("vert",{x:t}))},log:function(e){return"string"!=typeof e&&(e=JSON.stringify(e,!1," ")),r("log",{txt:e})},reset:function(){return r("reset")},selected:function(e){return r("selected",{segs:e})},chainStart:function(e){return r("chain_start",{seg:e})},chainRemoveHead:function(e,t){return r("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return r("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return r("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return r("chain_match",{index:e})},chainClose:function(e){return r("chain_close",{index:e})},chainAddHead:function(e,t){return r("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return r("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return r("chain_con",{index1:e,index2:t})},chainReverse:function(e){return r("chain_rev",{index:e})},chainJoin:function(e,t){return r("chain_join",{index1:e,index2:t})},done:function(){return r("done")}}}},{}],28:[function(e,t,n){t.exports=function(e){"number"!=typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"==typeof t&&(e=t),e},pointAboveOrOnLine:function(t,n,r){var a=n[0],i=n[1],o=r[0],l=r[1],s=t[0];return(o-a)*(t[1]-i)-(l-i)*(s-a)>=-e},pointBetween:function(t,n,r){var a=t[1]-n[1],i=r[0]-n[0],o=t[0]-n[0],l=r[1]-n[1],s=o*i+a*l;return!(s<e||s-(i*i+l*l)>-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])<e},pointsSameY:function(t,n){return Math.abs(t[1]-n[1])<e},pointsSame:function(e,n){return t.pointsSameX(e,n)&&t.pointsSameY(e,n)},pointsCompare:function(e,n){return t.pointsSameX(e,n)?t.pointsSameY(e,n)?0:e[1]<n[1]?-1:1:e[0]<n[0]?-1:1},pointsCollinear:function(t,n,r){var a=t[0]-n[0],i=t[1]-n[1],o=n[0]-r[0],l=n[1]-r[1];return Math.abs(a*l-o*i)<e},linesIntersect:function(t,n,r,a){var i=n[0]-t[0],o=n[1]-t[1],l=a[0]-r[0],s=a[1]-r[1],c=i*s-o*l;if(Math.abs(c)<e)return!1;var u=t[0]-r[0],f=t[1]-r[1],d=(l*f-s*u)/c,p=(i*f-o*u)/c,h={alongA:0,alongB:0,pt:[t[0]+d*i,t[1]+d*o]};return h.alongA=d<=-e?-2:d<e?-1:d-1<=-e?0:d-1<e?1:2,h.alongB=p<=-e?-2:p<e?-1:p-1<=-e?0:p-1<e?1:2,h},pointInsideRegion:function(t,n){for(var r=t[0],a=t[1],i=n[n.length-1][0],o=n[n.length-1][1],l=!1,s=0;s<n.length;s++){var c=n[s][0],u=n[s][1];u-a>e!=o-a>e&&(i-c)*(a-u)/(o-u)+c-r>e&&(l=!l),i=c,o=u}return l}};return t}},{}],29:[function(e,t,n){var r={toPolygon:function(e,t){function n(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function n(t){var n=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[n]})}for(var r=n(t[0]),a=1;a<t.length;a++)r=e.selectDifference(e.combine(r,n(t[a])));return r}if("Polygon"===t.type)return e.polygon(n(t.coordinates));if("MultiPolygon"===t.type){for(var r=e.segments({inverted:!1,regions:[]}),a=0;a<t.coordinates.length;a++)r=e.selectUnion(e.combine(r,n(t.coordinates[a])));return e.polygon(r)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,n){function r(e,n){return t.pointInsideRegion([.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1])],n)}function a(e){return{region:e,children:[]}}n=e.polygon(e.segments(n));var i=a(null);function o(e,t){for(var n=0;n<e.children.length;n++)if(r(t,(l=e.children[n]).region))return void o(l,t);var i=a(t);for(n=0;n<e.children.length;n++){var l;r((l=e.children[n]).region,t)&&(i.children.push(l),e.children.splice(n,1),n--)}e.children.push(i)}for(var l=0;l<n.regions.length;l++){var s=n.regions[l];s.length<3||o(i,s)}function c(e,t){for(var n=0,r=e[e.length-1][0],a=e[e.length-1][1],i=[],o=0;o<e.length;o++){var l=e[o][0],s=e[o][1];i.push([l,s]),n+=s*r-l*a,r=l,a=s}return n<0!==t&&i.reverse(),i.push([i[0][0],i[0][1]]),i}var u=[];function f(e){var t=[c(e.region,!1)];u.push(t);for(var n=0;n<e.children.length;n++)t.push(d(e.children[n]))}function d(e){for(var t=0;t<e.children.length;t++)f(e.children[t]);return c(e.region,!0)}for(l=0;l<i.children.length;l++)f(i.children[l]);return u.length<=0?{type:"Polygon",coordinates:[]}:1==u.length?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}};t.exports=r},{}],30:[function(e,t,n){var r=e("./linked-list");t.exports=function(e,t,n){function a(e,t,r){return{id:n?n.segmentId():-1,start:e,end:t,myFill:{above:r.myFill.above,below:r.myFill.below},otherFill:null}}var i=r.create();function o(e,n){i.insertBefore(e,(function(r){return function(e,n,r,a,i,o){var l=t.pointsCompare(n,i);return 0!==l?l:t.pointsSame(r,o)?0:e!==a?e?1:-1:t.pointAboveOrOnLine(r,a?i:o,a?o:i)?1:-1}(e.isStart,e.pt,n,r.isStart,r.pt,r.other.pt)<0}))}function l(e,t){var n=function(e,t){var n=r.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return o(n,e.end),n}(e,t);return function(e,t,n){var a=r.node({isStart:!1,pt:t.end,seg:t,primary:n,other:e,status:null});e.other=a,o(a,e.pt)}(n,e,t),n}function s(e,t){var r=a(t,e.seg.end,e.seg);return function(e,t){n&&n.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,o(e.other,e.pt)}(e,t),l(r,e.primary)}function c(a,o){var l=r.create();function c(e){return l.findTransition((function(n){var r,a,i,o,l,s;return r=e,a=n.ev,i=r.seg.start,o=r.seg.end,l=a.seg.start,s=a.seg.end,(t.pointsCollinear(i,l,s)?t.pointsCollinear(o,l,s)||t.pointAboveOrOnLine(o,l,s)?1:-1:t.pointAboveOrOnLine(i,l,s)?1:-1)>0}))}function u(e,r){var a=e.seg,i=r.seg,o=a.start,l=a.end,c=i.start,u=i.end;n&&n.checkIntersection(a,i);var f=t.linesIntersect(o,l,c,u);if(!1===f){if(!t.pointsCollinear(o,l,c))return!1;if(t.pointsSame(o,u)||t.pointsSame(l,c))return!1;var d=t.pointsSame(o,c),p=t.pointsSame(l,u);if(d&&p)return r;var h=!d&&t.pointBetween(o,c,u),g=!p&&t.pointBetween(l,c,u);if(d)return g?s(r,l):s(e,u),r;h&&(p||(g?s(r,l):s(e,u)),s(r,o))}else 0===f.alongA&&(-1===f.alongB?s(e,c):0===f.alongB?s(e,f.pt):1===f.alongB&&s(e,u)),0===f.alongB&&(-1===f.alongA?s(r,o):0===f.alongA?s(r,f.pt):1===f.alongA&&s(r,l));return!1}for(var f=[];!i.isEmpty();){var d=i.getHead();if(n&&n.vert(d.pt[0]),d.isStart){n&&n.segmentNew(d.seg,d.primary);var p=c(d),h=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function m(){if(h){var e=u(d,h);if(e)return e}return!!g&&u(d,g)}n&&n.tempStatus(d.seg,!!h&&h.seg,!!g&&g.seg);var v,y,x=m();if(x&&(e?(y=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below)&&(x.seg.myFill.above=!x.seg.myFill.above):x.seg.otherFill=d.seg.myFill,n&&n.segmentUpdate(x.seg),d.other.remove(),d.remove()),i.getHead()!==d){n&&n.rewind(d.seg);continue}e?(y=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below,d.seg.myFill.below=g?g.seg.myFill.above:a,d.seg.myFill.above=y?!d.seg.myFill.below:d.seg.myFill.below):null===d.seg.otherFill&&(v=g?d.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:d.primary?o:a,d.seg.otherFill={above:v,below:v}),n&&n.status(d.seg,!!h&&h.seg,!!g&&g.seg),d.other.status=p.insert(r.node({ev:d}))}else{var b=d.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(b.prev)&&l.exists(b.next)&&u(b.prev.ev,b.next.ev),n&&n.statusRemove(b.ev.seg),b.remove(),!d.primary){var _=d.seg.myFill;d.seg.myFill=d.seg.otherFill,d.seg.otherFill=_}f.push(d.seg)}i.getHead().remove()}return n&&n.done(),f}return e?{addRegion:function(e){for(var r,a,i,o=e[e.length-1],s=0;s<e.length;s++){r=o,o=e[s];var c=t.pointsCompare(r,o);0!==c&&l((a=c<0?r:o,i=c<0?o:r,{id:n?n.segmentId():-1,start:a,end:i,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(e){return c(e,!1)}}:{calculate:function(e,t,n,r){return e.forEach((function(e){l(a(e.start,e.end,e),!0)})),n.forEach((function(e){l(a(e.start,e.end,e),!1)})),c(t,r)}}}},{"./linked-list":31}],31:[function(e,t,n){t.exports={create:function(){var e={root:{root:!0,next:null},exists:function(t){return null!==t&&t!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,n){for(var r=e.root,a=e.root.next;null!==a;){if(n(a))return t.prev=a.prev,t.next=a,a.prev.next=t,void(a.prev=t);r=a,a=a.next}r.next=t,t.prev=r,t.next=null},findTransition:function(t){for(var n=e.root,r=e.root.next;null!==r&&!t(r);)n=r,r=r.next;return{before:n===e.root?null:n,after:r,insert:function(e){return e.prev=n,e.next=r,n.next=e,null!==r&&(r.prev=e),e}}}};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}}},{}],32:[function(e,t,n){t.exports=function(e,t,n){var r=[],a=[];return e.forEach((function(e){var i=e.start,o=e.end;if(t.pointsSame(i,o))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{n&&n.chainStart(e);for(var l={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},c=l,u=0;u<r.length;u++){var f=(m=r[u])[0],d=(m[1],m[m.length-1]);if(m[m.length-2],t.pointsSame(f,i)){if(T(u,!0,!0))break}else if(t.pointsSame(f,o)){if(T(u,!0,!1))break}else if(t.pointsSame(d,i)){if(T(u,!1,!0))break}else if(t.pointsSame(d,o)&&T(u,!1,!1))break}if(c===l)return r.push([i,o]),void(n&&n.chainNew(i,o));if(c===s){n&&n.chainMatch(l.index);var p=l.index,h=l.matches_pt1?o:i,g=l.matches_head,m=r[p],v=g?m[0]:m[m.length-1],y=g?m[1]:m[m.length-2],x=g?m[m.length-1]:m[0],b=g?m[m.length-2]:m[1];return t.pointsCollinear(y,v,h)&&(g?(n&&n.chainRemoveHead(l.index,h),m.shift()):(n&&n.chainRemoveTail(l.index,h),m.pop()),v=y),t.pointsSame(x,h)?(r.splice(p,1),t.pointsCollinear(b,x,v)&&(g?(n&&n.chainRemoveTail(l.index,v),m.pop()):(n&&n.chainRemoveHead(l.index,v),m.shift())),n&&n.chainClose(l.index),void a.push(m)):void(g?(n&&n.chainAddHead(l.index,h),m.unshift(h)):(n&&n.chainAddTail(l.index,h),m.push(h)))}var _=l.index,w=s.index;n&&n.chainConnect(_,w);var k=r[_].length<r[w].length;l.matches_head?s.matches_head?k?(M(_),A(_,w)):(M(w),A(w,_)):A(w,_):s.matches_head?A(_,w):k?(M(_),A(w,_)):(M(w),A(_,w))}function T(e,t,n){return c.index=e,c.matches_head=t,c.matches_pt1=n,c===l?(c=s,!1):(c=null,!0)}function M(e){n&&n.chainReverse(e),r[e].reverse()}function A(e,a){var i=r[e],o=r[a],l=i[i.length-1],s=i[i.length-2],c=o[0],u=o[1];t.pointsCollinear(s,l,c)&&(n&&n.chainRemoveTail(e,l),i.pop(),l=s),t.pointsCollinear(l,c,u)&&(n&&n.chainRemoveHead(a,c),o.shift()),n&&n.chainJoin(e,a),r[e]=i.concat(o),r.splice(a,1)}})),a}},{}],33:[function(e,t,n){function r(e,t,n){var r=[];return e.forEach((function(e){var a=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[a]&&r.push({id:n?n.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[a],below:2===t[a]},otherFill:null})})),n&&n.selected(r),r}var a={union:function(e,t){return r(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return r(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return r(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return r(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return r(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};t.exports=a},{}],34:[function(e,t,n){var r,a,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{a="function"==typeof clearTimeout?clearTimeout:l}catch(e){a=l}}();var c,u=[],f=!1,d=-1;function p(){f&&c&&(f=!1,c.length?u=c.concat(u):d=-1,u.length&&h())}function h(){if(!f){var e=s(p);f=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,f=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===l||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new g(e,t)),1!==u.length||f||s(h)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],35:[function(e,t,n){!function(e){var n=/^\s+/,r=/\s+$/,a=0,i=e.round,o=e.min,l=e.max,s=e.random;function c(t,s){if(s=s||{},(t=t||"")instanceof c)return t;if(!(this instanceof c))return new c(t,s);var u=function(t){var a={r:0,g:0,b:0},i=1,s=null,c=null,u=null,f=!1,d=!1;return"string"==typeof t&&(t=function(e){e=e.replace(n,"").replace(r,"").toLowerCase();var t,a=!1;if(S[e])e=S[e],a=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=j.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=j.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=j.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=j.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=j.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=j.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=j.hex8.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),a:I(t[4]),format:a?"name":"hex8"}:(t=j.hex6.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),format:a?"name":"hex"}:(t=j.hex4.exec(e))?{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:a?"name":"hex8"}:!!(t=j.hex3.exec(e))&&{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),format:a?"name":"hex"}}(t)),"object"==typeof t&&(H(t.r)&&H(t.g)&&H(t.b)?(a=function(e,t,n){return{r:255*O(e,255),g:255*O(t,255),b:255*O(n,255)}}(t.r,t.g,t.b),f=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(s=D(t.s),c=D(t.v),a=function(t,n,r){t=6*O(t,360),n=O(n,100),r=O(r,100);var a=e.floor(t),i=t-a,o=r*(1-n),l=r*(1-i*n),s=r*(1-(1-i)*n),c=a%6;return{r:255*[r,l,o,o,s,r][c],g:255*[s,r,r,l,o,o][c],b:255*[o,o,s,r,r,l][c]}}(t.h,s,c),f=!0,d="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(s=D(t.s),u=D(t.l),a=function(e,t,n){var r,a,i;function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=O(e,360),t=O(t,100),n=O(n,100),0===t)r=a=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=o(s,l,e+1/3),a=o(s,l,e),i=o(s,l,e-1/3)}return{r:255*r,g:255*a,b:255*i}}(t.h,s,u),f=!0,d="hsl"),t.hasOwnProperty("a")&&(i=t.a)),i=C(i),{ok:f,format:t.format||d,r:o(255,l(a.r,0)),g:o(255,l(a.g,0)),b:o(255,l(a.b,0)),a:i}}(t);this._originalInput=t,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=i(100*this._a)/100,this._format=s.format||u.format,this._gradientType=s.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=u.ok,this._tc_id=a++}function u(e,t,n){e=O(e,255),t=O(t,255),n=O(n,255);var r,a,i=l(e,t,n),s=o(e,t,n),c=(i+s)/2;if(i==s)r=a=0;else{var u=i-s;switch(a=c>.5?u/(2-i-s):u/(i+s),i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:a,l:c}}function f(e,t,n){e=O(e,255),t=O(t,255),n=O(n,255);var r,a,i=l(e,t,n),s=o(e,t,n),c=i,u=i-s;if(a=0===i?0:u/i,i==s)r=0;else{switch(i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:a,v:c}}function d(e,t,n,r){var a=[z(i(e).toString(16)),z(i(t).toString(16)),z(i(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function p(e,t,n,r){return[z(R(r)),z(i(e).toString(16)),z(i(t).toString(16)),z(i(n).toString(16))].join("")}function h(e,t){t=0===t?0:t||10;var n=c(e).toHsl();return n.s-=t/100,n.s=P(n.s),c(n)}function g(e,t){t=0===t?0:t||10;var n=c(e).toHsl();return n.s+=t/100,n.s=P(n.s),c(n)}function m(e){return c(e).desaturate(100)}function v(e,t){t=0===t?0:t||10;var n=c(e).toHsl();return n.l+=t/100,n.l=P(n.l),c(n)}function y(e,t){t=0===t?0:t||10;var n=c(e).toRgb();return n.r=l(0,o(255,n.r-i(-t/100*255))),n.g=l(0,o(255,n.g-i(-t/100*255))),n.b=l(0,o(255,n.b-i(-t/100*255))),c(n)}function x(e,t){t=0===t?0:t||10;var n=c(e).toHsl();return n.l-=t/100,n.l=P(n.l),c(n)}function b(e,t){var n=c(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,c(n)}function _(e){var t=c(e).toHsl();return t.h=(t.h+180)%360,c(t)}function w(e){var t=c(e).toHsl(),n=t.h;return[c(e),c({h:(n+120)%360,s:t.s,l:t.l}),c({h:(n+240)%360,s:t.s,l:t.l})]}function k(e){var t=c(e).toHsl(),n=t.h;return[c(e),c({h:(n+90)%360,s:t.s,l:t.l}),c({h:(n+180)%360,s:t.s,l:t.l}),c({h:(n+270)%360,s:t.s,l:t.l})]}function T(e){var t=c(e).toHsl(),n=t.h;return[c(e),c({h:(n+72)%360,s:t.s,l:t.l}),c({h:(n+216)%360,s:t.s,l:t.l})]}function M(e,t,n){t=t||6,n=n||30;var r=c(e).toHsl(),a=360/n,i=[c(e)];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(c(r));return i}function A(e,t){t=t||6;for(var n=c(e).toHsv(),r=n.h,a=n.s,i=n.v,o=[],l=1/t;t--;)o.push(c({h:r,s:a,v:i})),i=(i+l)%1;return o}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var t,n,r,a=this.toRgb();return t=a.r/255,n=a.g/255,r=a.b/255,.2126*(t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=C(e),this._roundA=i(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=u(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return d(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,a){var o=[z(i(e).toString(16)),z(i(t).toString(16)),z(i(n).toString(16)),z(R(r))];return a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*O(this._r,255))+"%",g:i(100*O(this._g,255))+"%",b:i(100*O(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*O(this._r,255))+"%, "+i(100*O(this._g,255))+"%, "+i(100*O(this._b,255))+"%)":"rgba("+i(100*O(this._r,255))+"%, "+i(100*O(this._g,255))+"%, "+i(100*O(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(L[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=c(e);n="#"+p(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},c.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:D(e[r]));e=n}return c(e,t)},c.equals=function(e,t){return!(!e||!t)&&c(e).toRgbString()==c(t).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})},c.mix=function(e,t,n){n=0===n?0:n||50;var r=c(e).toRgb(),a=c(t).toRgb(),i=n/100;return c({r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a})},c.readability=function(t,n){var r=c(t),a=c(n);return(e.max(r.getLuminance(),a.getLuminance())+.05)/(e.min(r.getLuminance(),a.getLuminance())+.05)},c.isReadable=function(e,t,n){var r,a,i,o,l,s=c.readability(e,t);switch(a=!1,(i=n,o=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase(),l=(i.size||"small").toLowerCase(),"AA"!==o&&"AAA"!==o&&(o="AA"),"small"!==l&&"large"!==l&&(l="small"),r={level:o,size:l}).level+r.size){case"AAsmall":case"AAAlarge":a=s>=4.5;break;case"AAlarge":a=s>=3;break;case"AAAsmall":a=s>=7}return a},c.mostReadable=function(e,t,n){var r,a,i,o,l=null,s=0;a=(n=n||{}).includeFallbackColors,i=n.level,o=n.size;for(var u=0;u<t.length;u++)(r=c.readability(e,t[u]))>s&&(s=r,l=c(t[u]));return c.isReadable(e,l,{level:i,size:o})||!a?l:(n.includeFallbackColors=!1,c.mostReadable(e,["#fff","#000"],n))};var S=c.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"},L=c.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(S);function C(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function O(t,n){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(t)&&(t="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(t);return t=o(n,l(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),e.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function P(e){return o(1,l(0,e))}function E(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function R(t){return e.round(255*parseFloat(t)).toString(16)}function I(e){return E(e)/255}var N,F,B,j=(F="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",B="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+B),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 H(e){return!!j.CSS_UNIT.exec(e)}void 0!==t&&t.exports?t.exports=c:window.tinycolor=c}(Math)},{}],36:[function(e,t,n){"use strict";t.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},{}],37:[function(e,t,n){"use strict";var r=e("./arrow_paths"),a=e("../../plots/font_attributes"),i=e("../../plots/cartesian/constants"),o=e("../../plot_api/plot_template").templatedArray;t.exports=o("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:a({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:r.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:a({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},{"../../plot_api/plot_template":212,"../../plots/cartesian/constants":228,"../../plots/font_attributes":250,"./arrow_paths":36}],38:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("./draw").draw;function o(e){var t=e._fullLayout;r.filterVisible(t.annotations).forEach((function(t){var n=a.getFromId(e,t.xref),r=a.getFromId(e,t.yref);t._extremes={},n&&l(t,n),r&&l(t,r)}))}function l(e,t){var n,r=t._id,i=r.charAt(0),o=e[i],l=e["a"+i],s=e[i+"ref"],c=e["a"+i+"ref"],u=e["_"+i+"padplus"],f=e["_"+i+"padminus"],d={x:1,y:-1}[i]*e[i+"shift"],p=3*e.arrowsize*e.arrowwidth||0,h=p+d,g=p-d,m=3*e.startarrowsize*e.arrowwidth||0,v=m+d,y=m-d;if(c===s){var x=a.findExtremes(t,[t.r2c(o)],{ppadplus:h,ppadminus:g}),b=a.findExtremes(t,[t.r2c(l)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});n={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=l?v+l:v,y=l?y-l:y,n=a.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(u,h,v),ppadminus:Math.max(f,g,y)});e._extremes[r]=n}t.exports=function(e){var t=e._fullLayout;if(r.filterVisible(t.annotations).length&&e._fullData.length)return r.syncOrAsync([i,o],e)}},{"../../lib":178,"../../plots/cartesian/axes":222,"./draw":43}],39:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry"),i=e("../../plot_api/plot_template").arrayEditor;function o(e,t){var n,r,a,i,o,s,c,u=e._fullLayout.annotations,f=[],d=[],p=[],h=(t||[]).length;for(n=0;n<u.length;n++)if(i=(a=u[n]).clicktoshow){for(r=0;r<h;r++)if(s=(o=t[r]).xaxis,c=o.yaxis,s._id===a.xref&&c._id===a.yref&&s.d2r(o.x)===l(a._xclick,s)&&c.d2r(o.y)===l(a._yclick,c)){(a.visible?"onout"===i?d:p:f).push(n);break}r===h&&a.visible&&"onout"===i&&d.push(n)}return{on:f,off:d,explicitOff:p}}function l(e,t){return"log"===t.type?t.l2r(e):t.d2r(e)}t.exports={hasClickToShow:function(e,t){var n=o(e,t);return n.on.length>0||n.explicitOff.length>0},onClick:function(e,t){var n,l,s=o(e,t),c=s.on,u=s.off.concat(s.explicitOff),f={},d=e._fullLayout.annotations;if(c.length||u.length){for(n=0;n<c.length;n++)(l=i(e.layout,"annotations",d[c[n]])).modifyItem("visible",!0),r.extendFlat(f,l.getUpdateObj());for(n=0;n<u.length;n++)(l=i(e.layout,"annotations",d[u[n]])).modifyItem("visible",!1),r.extendFlat(f,l.getUpdateObj());return a.call("update",e,{},f)}}}},{"../../lib":178,"../../plot_api/plot_template":212,"../../registry":269}],40:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../color");t.exports=function(e,t,n,i){i("opacity");var o=i("bgcolor"),l=i("bordercolor"),s=a.opacity(l);i("borderpad");var c=i("borderwidth"),u=i("showarrow");if(i("text",u?" ":n._dfltTitle.annotation),i("textangle"),r.coerceFont(i,"font",n.font),i("width"),i("align"),i("height")&&i("valign"),u){var f,d,p=i("arrowside");-1!==p.indexOf("end")&&(f=i("arrowhead"),d=i("arrowsize")),-1!==p.indexOf("start")&&(i("startarrowhead",f),i("startarrowsize",d)),i("arrowcolor",s?t.bordercolor:a.defaultLine),i("arrowwidth",2*(s&&c||1)),i("standoff"),i("startstandoff")}var h=i("hovertext"),g=n.hoverlabel||{};if(h){var m=i("hoverlabel.bgcolor",g.bgcolor||(a.opacity(o)?a.rgb(o):a.defaultLine)),v=i("hoverlabel.bordercolor",g.bordercolor||a.contrast(m));r.coerceFont(i,"hoverlabel.font",{family:g.font.family,size:g.font.size,color:g.font.color||v})}i("captureevents",!!h)}},{"../../lib":178,"../color":52}],41:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib/to_log_range");t.exports=function(e,t,n,i){t=t||{};var o="log"===n&&"linear"===t.type,l="linear"===n&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.annotations,f=t._id.charAt(0),d=0;d<u.length;d++)s=u[d],c="annotations["+d+"].",s[f+"ref"]===t._id&&p(f),s["a"+f+"ref"]===t._id&&p("a"+f);function p(e){var n=s[e],l=null;l=o?a(n,t.range):Math.pow(10,n),r(l)||(l=null),i(c+e,l)}}},{"../../lib/to_log_range":201,"fast-isnumeric":18}],42:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../../plots/array_container_defaults"),o=e("./common_defaults"),l=e("./attributes");function s(e,t,n){function i(n,a){return r.coerce(e,t,l,n,a)}var s=i("visible"),c=i("clicktoshow");if(s||c){o(e,t,n,i);for(var u=t.showarrow,f=["x","y"],d=[-10,-30],p={_fullLayout:n},h=0;h<2;h++){var g=f[h],m=a.coerceRef(e,t,p,g,"","paper");if("paper"!==m&&a.getFromId(p,m)._annIndices.push(t._index),a.coercePosition(t,p,i,m,g,.5),u){var v="a"+g,y=a.coerceRef(e,t,p,v,"pixel");"pixel"!==y&&y!==m&&(y=t[v]="pixel");var x="pixel"===y?d[h]:.4;a.coercePosition(t,p,i,y,v,x)}i(g+"anchor"),i(g+"shift")}if(r.noneOrAll(e,t,["x","y"]),u&&r.noneOrAll(e,t,["ax","ay"]),c){var b=i("xclick"),_=i("yclick");t._xclick=void 0===b?t.x:a.cleanPosition(b,p,t.xref),t._yclick=void 0===_?t.y:a.cleanPosition(_,p,t.yref)}}}t.exports=function(e,t){i(e,t,{name:"annotations",handleItemDefaults:s})}},{"../../lib":178,"../../plots/array_container_defaults":218,"../../plots/cartesian/axes":222,"./attributes":37,"./common_defaults":40}],43:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),i=e("../../plots/plots"),o=e("../../lib"),l=e("../../plots/cartesian/axes"),s=e("../color"),c=e("../drawing"),u=e("../fx"),f=e("../../lib/svg_text_utils"),d=e("../../lib/setcursor"),p=e("../dragelement"),h=e("../../plot_api/plot_template").arrayEditor,g=e("./draw_arrow_head");function m(e,t){var n=e._fullLayout.annotations[t]||{},r=l.getFromId(e,n.xref),a=l.getFromId(e,n.yref);r&&r.setScale(),a&&a.setScale(),v(e,n,t,!1,r,a)}function v(e,t,n,i,l,m){var v,y,x=e._fullLayout,b=e._fullLayout._size,_=e._context.edits;i?(v="annotation-"+i,y=i+".annotations"):(v="annotation",y="annotations");var w=h(e.layout,y,t),k=w.modifyBase,T=w.modifyItem,M=w.getUpdateObj;x._infolayer.selectAll("."+v+'[data-index="'+n+'"]').remove();var A="clip"+x._uid+"_ann"+n;if(t._input&&!1!==t.visible){var S={x:{},y:{}},L=+t.textangle||0,C=x._infolayer.append("g").classed(v,!0).attr("data-index",String(n)).style("opacity",t.opacity),O=C.append("g").classed("annotation-text-g",!0),P=_[t.showarrow?"annotationTail":"annotationPosition"],E=t.captureevents||_.annotationText||P,z=O.append("g").style("pointer-events",E?"all":null).call(d,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",V(r.event))}));t.hovertext&&z.on("mouseover",(function(){var n=t.hoverlabel,r=n.font,a=this.getBoundingClientRect(),i=e.getBoundingClientRect();u.loneHover({x0:a.left-i.left,x1:a.right-i.left,y:(a.top+a.bottom)/2-i.top,text:t.hovertext,color:n.bgcolor,borderColor:n.bordercolor,fontFamily:r.family,fontSize:r.size,fontColor:r.color},{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:e})})).on("mouseout",(function(){u.loneUnhover(x._hoverlayer.node())}));var D=t.borderwidth,R=t.borderpad,I=D+R,N=z.append("rect").attr("class","bg").style("stroke-width",D+"px").call(s.stroke,t.bordercolor).call(s.fill,t.bgcolor),F=t.width||t.height,B=x._topclips.selectAll("#"+A).data(F?[0]:[]);B.enter().append("clipPath").classed("annclip",!0).attr("id",A).append("rect"),B.exit().remove();var j=t.font,H=x._meta?o.templateString(t.text,x._meta):t.text,q=z.append("text").classed("annotation-text",!0).text(H);_.annotationText?q.call(f.makeEditable,{delegate:z,gd:e}).call(U).on("edit",(function(n){t.text=n,this.call(U),T("text",n),l&&l.autorange&&k(l._name+".autorange",!0),m&&m.autorange&&k(m._name+".autorange",!0),a.call("_guiRelayout",e,M())})):q.call(U)}else r.selectAll("#"+A).remove();function V(e){var r={index:n,annotation:t._input,fullAnnotation:t,event:e};return i&&(r.subplotId=i),r}function U(n){return n.call(c.font,j).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),f.convertToTspans(n,e,G),n}function G(){var n=q.selectAll("a");1===n.size()&&n.text()===q.text()&&z.insert("a",":first-child").attr({"xlink:xlink:href":n.attr("xlink:href"),"xlink:xlink:show":n.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(N.node());var r=z.select(".annotation-text-math-group"),u=!r.empty(),h=c.bBox((u?r:q).node()),v=h.width,y=h.height,w=t.width||v,E=t.height||y,R=Math.round(w+2*I),j=Math.round(E+2*I);function H(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var U=!1,G=["x","y"],Z=0;Z<G.length;Z++){var W,Y,X,$,Q,K=G[Z],J=t[K+"ref"]||K,ee=t["a"+K+"ref"],te={x:l,y:m}[K],ne=(L+("x"===K?0:-90))*Math.PI/180,re=R*Math.cos(ne),ae=j*Math.sin(ne),ie=Math.abs(re)+Math.abs(ae),oe=t[K+"anchor"],le=t[K+"shift"]*("x"===K?1:-1),se=S[K];if(te){var ce=te.r2fraction(t[K]);(ce<0||ce>1)&&(ee===J?((ce=te.r2fraction(t["a"+K]))<0||ce>1)&&(U=!0):U=!0),W=te._offset+te.r2p(t[K]),$=.5}else"x"===K?(X=t[K],W=b.l+b.w*X):(X=1-t[K],W=b.t+b.h*X),$=t.showarrow?.5:X;if(t.showarrow){se.head=W;var ue=t["a"+K];Q=re*H(.5,t.xanchor)-ae*H(.5,t.yanchor),ee===J?(se.tail=te._offset+te.r2p(ue),Y=Q):(se.tail=W+ue,Y=Q+ue),se.text=se.tail+Q;var fe=x["x"===K?"width":"height"];if("paper"===J&&(se.head=o.constrain(se.head,1,fe-1)),"pixel"===ee){var de=-Math.max(se.tail-3,se.text),pe=Math.min(se.tail+3,se.text)-fe;de>0?(se.tail+=de,se.text+=de):pe>0&&(se.tail-=pe,se.text-=pe)}se.tail+=le,se.head+=le}else Y=Q=ie*H($,oe),se.text=W+Q;se.text+=le,Q+=le,Y+=le,t["_"+K+"padplus"]=ie/2+Y,t["_"+K+"padminus"]=ie/2-Y,t["_"+K+"size"]=ie,t["_"+K+"shift"]=Q}if(U)z.remove();else{var he=0,ge=0;if("left"!==t.align&&(he=(w-v)*("center"===t.align?.5:1)),"top"!==t.valign&&(ge=(E-y)*("middle"===t.valign?.5:1)),u)r.select("svg").attr({x:I+he-1,y:I+ge}).call(c.setClipUrl,F?A:null,e);else{var me=I+ge-h.top,ve=I+he-h.left;q.call(f.positionText,ve,me).call(c.setClipUrl,F?A:null,e)}B.select("rect").call(c.setRect,I,I,w,E),N.call(c.setRect,D/2,D/2,R-D,j-D),z.call(c.setTranslate,Math.round(S.x.text-R/2),Math.round(S.y.text-j/2)),O.attr({transform:"rotate("+L+","+S.x.text+","+S.y.text+")"});var ye,xe=function(n,r){C.selectAll(".annotation-arrow-g").remove();var u=S.x.head,f=S.y.head,d=S.x.tail+n,h=S.y.tail+r,v=S.x.text+n,y=S.y.text+r,x=o.rotationXYMatrix(L,v,y),w=o.apply2DTransform(x),A=o.apply2DTransform2(x),P=+N.attr("width"),E=+N.attr("height"),D=v-.5*P,R=D+P,I=y-.5*E,F=I+E,B=[[D,I,D,F],[D,F,R,F],[R,F,R,I],[R,I,D,I]].map(A);if(!B.reduce((function(e,t){return e^!!o.segmentsIntersect(u,f,u+1e6,f+1e6,t[0],t[1],t[2],t[3])}),!1)){B.forEach((function(e){var t=o.segmentsIntersect(d,h,u,f,e[0],e[1],e[2],e[3]);t&&(d=t.x,h=t.y)}));var j=t.arrowwidth,H=t.arrowcolor,q=t.arrowside,V=C.append("g").style({opacity:s.opacity(H)}).classed("annotation-arrow-g",!0),U=V.append("path").attr("d","M"+d+","+h+"L"+u+","+f).style("stroke-width",j+"px").call(s.stroke,s.rgb(H));if(g(U,q,t),_.annotationPosition&&U.node().parentNode&&!i){var G=u,Z=f;if(t.standoff){var W=Math.sqrt(Math.pow(u-d,2)+Math.pow(f-h,2));G+=t.standoff*(d-u)/W,Z+=t.standoff*(h-f)/W}var Y,X,$=V.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(d-G)+","+(h-Z),transform:"translate("+G+","+Z+")"}).style("stroke-width",j+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");p.init({element:$.node(),gd:e,prepFn:function(){var e=c.getTranslate(z);Y=e.x,X=e.y,l&&l.autorange&&k(l._name+".autorange",!0),m&&m.autorange&&k(m._name+".autorange",!0)},moveFn:function(e,n){var r=w(Y,X),a=r[0]+e,i=r[1]+n;z.call(c.setTranslate,a,i),T("x",l?l.p2r(l.r2p(t.x)+e):t.x+e/b.w),T("y",m?m.p2r(m.r2p(t.y)+n):t.y-n/b.h),t.axref===t.xref&&T("ax",l.p2r(l.r2p(t.ax)+e)),t.ayref===t.yref&&T("ay",m.p2r(m.r2p(t.ay)+n)),V.attr("transform","translate("+e+","+n+")"),O.attr({transform:"rotate("+L+","+a+","+i+")"})},doneFn:function(){a.call("_guiRelayout",e,M());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};t.showarrow&&xe(0,0),P&&p.init({element:z.node(),gd:e,prepFn:function(){ye=O.attr("transform")},moveFn:function(e,n){var r="pointer";if(t.showarrow)t.axref===t.xref?T("ax",l.p2r(l.r2p(t.ax)+e)):T("ax",t.ax+e),t.ayref===t.yref?T("ay",m.p2r(m.r2p(t.ay)+n)):T("ay",t.ay+n),xe(e,n);else{if(i)return;var a,o;if(l)a=l.p2r(l.r2p(t.x)+e);else{var s=t._xsize/b.w,c=t.x+(t._xshift-t.xshift)/b.w-s/2;a=p.align(c+e/b.w,s,0,1,t.xanchor)}if(m)o=m.p2r(m.r2p(t.y)+n);else{var u=t._ysize/b.h,f=t.y-(t._yshift+t.yshift)/b.h-u/2;o=p.align(f-n/b.h,u,0,1,t.yanchor)}T("x",a),T("y",o),l&&m||(r=p.getCursor(l?.5:a,m?.5:o,t.xanchor,t.yanchor))}O.attr({transform:"translate("+e+","+n+")"+ye}),d(z,r)},clickFn:function(n,r){t.captureevents&&e.emit("plotly_clickannotation",V(r))},doneFn:function(){d(z),a.call("_guiRelayout",e,M());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}t.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;n<t.annotations.length;n++)t.annotations[n].visible&&m(e,n);return i.previousPromises(e)},drawOne:m,drawRaw:v}},{"../../lib":178,"../../lib/setcursor":197,"../../lib/svg_text_utils":199,"../../plot_api/plot_template":212,"../../plots/cartesian/axes":222,"../../plots/plots":256,"../../registry":269,"../color":52,"../dragelement":71,"../drawing":74,"../fx":92,"./draw_arrow_head":44,d3:16}],44:[function(e,t,n){"use strict";var r=e("d3"),a=e("../color"),i=e("./arrow_paths");t.exports=function(e,t,n){var o,l,s,c,u=e.node(),f=i[n.arrowhead||0],d=i[n.startarrowhead||0],p=(n.arrowwidth||1)*(n.arrowsize||1),h=(n.arrowwidth||1)*(n.startarrowsize||1),g=t.indexOf("start")>=0,m=t.indexOf("end")>=0,v=f.backoff*p+n.standoff,y=d.backoff*h+n.startstandoff;if("line"===u.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},l={x:+e.attr("x2"),y:+e.attr("y2")};var x=o.x-l.x,b=o.y-l.y;if(c=(s=Math.atan2(b,x))+Math.PI,v&&y&&v+y>Math.sqrt(x*x+b*b))return void P();if(v){if(v*v>x*x+b*b)return void P();var _=v*Math.cos(s),w=v*Math.sin(s);l.x+=_,l.y+=w,e.attr({x2:l.x,y2:l.y})}if(y){if(y*y>x*x+b*b)return void P();var k=y*Math.cos(s),T=y*Math.sin(s);o.x-=k,o.y-=T,e.attr({x1:o.x,y1:o.y})}}else if("path"===u.nodeName){var M=u.getTotalLength(),A="";if(M<v+y)return void P();var S=u.getPointAtLength(0),L=u.getPointAtLength(.1);s=Math.atan2(S.y-L.y,S.x-L.x),o=u.getPointAtLength(Math.min(y,M)),A="0px,"+y+"px,";var C=u.getPointAtLength(M),O=u.getPointAtLength(M-.1);c=Math.atan2(C.y-O.y,C.x-O.x),l=u.getPointAtLength(Math.max(0,M-v)),A+=M-(A?y+v:v)+"px,"+M+"px",e.style("stroke-dasharray",A)}function P(){e.style("stroke-dasharray","0px,100px")}function E(t,i,o,l){t.path&&(t.noRotate&&(o=0),r.select(u.parentNode).append("path").attr({class:e.attr("class"),d:t.path,transform:"translate("+i.x+","+i.y+")"+(o?"rotate("+180*o/Math.PI+")":"")+"scale("+l+")"}).style({fill:a.rgb(n.arrowcolor),"stroke-width":0}))}g&&E(d,o,s,h),m&&E(f,l,c,p)}},{"../color":52,"./arrow_paths":36,d3:16}],45:[function(e,t,n){"use strict";var r=e("./draw"),a=e("./click");t.exports={moduleType:"component",name:"annotations",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),includeBasePlot:e("../../plots/cartesian/include_components")("annotations"),calcAutorange:e("./calc_autorange"),draw:r.draw,drawOne:r.drawOne,drawRaw:r.drawRaw,hasClickToShow:a.hasClickToShow,onClick:a.onClick,convertCoords:e("./convert_coords")}},{"../../plots/cartesian/include_components":234,"./attributes":37,"./calc_autorange":38,"./click":39,"./convert_coords":41,"./defaults":42,"./draw":43}],46:[function(e,t,n){"use strict";var r=e("../annotations/attributes"),a=e("../../plot_api/edit_types").overrideAll,i=e("../../plot_api/plot_template").templatedArray;t.exports=a(i("annotation",{visible:r.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:r.xanchor,xshift:r.xshift,yanchor:r.yanchor,yshift:r.yshift,text:r.text,textangle:r.textangle,font:r.font,width:r.width,height:r.height,opacity:r.opacity,align:r.align,valign:r.valign,bgcolor:r.bgcolor,bordercolor:r.bordercolor,borderpad:r.borderpad,borderwidth:r.borderwidth,showarrow:r.showarrow,arrowcolor:r.arrowcolor,arrowhead:r.arrowhead,startarrowhead:r.startarrowhead,arrowside:r.arrowside,arrowsize:r.arrowsize,startarrowsize:r.startarrowsize,arrowwidth:r.arrowwidth,standoff:r.standoff,startstandoff:r.startstandoff,hovertext:r.hovertext,hoverlabel:r.hoverlabel,captureevents:r.captureevents}),"calc","from-root")},{"../../plot_api/edit_types":205,"../../plot_api/plot_template":212,"../annotations/attributes":37}],47:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes");function i(e,t){var n=t.fullSceneLayout.domain,i=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},r.extendFlat(e._xa,o),a.setConvert(e._xa),e._xa._offset=i.l+n.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*i.w*(n.x[1]-n.x[0])},e._ya={},r.extendFlat(e._ya,o),a.setConvert(e._ya),e._ya._offset=i.t+(1-n.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*i.h*(n.y[1]-n.y[0])}}t.exports=function(e){for(var t=e.fullSceneLayout.annotations,n=0;n<t.length;n++)i(t[n],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()}},{"../../lib":178,"../../plots/cartesian/axes":222}],48:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../../plots/array_container_defaults"),o=e("../annotations/common_defaults"),l=e("./attributes");function s(e,t,n,i){function s(n,a){return r.coerce(e,t,l,n,a)}function c(e){var r=e+"axis",i={_fullLayout:{}};return i._fullLayout[r]=n[r],a.coercePosition(t,i,s,e,e,.5)}s("visible")&&(o(e,t,i.fullLayout,s),c("x"),c("y"),c("z"),r.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",s("xanchor"),s("yanchor"),s("xshift"),s("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",s("ax",-10),s("ay",-30),r.noneOrAll(e,t,["ax","ay"])))}t.exports=function(e,t,n){i(e,t,{name:"annotations",handleItemDefaults:s,fullLayout:n.fullLayout})}},{"../../lib":178,"../../plots/array_container_defaults":218,"../../plots/cartesian/axes":222,"../annotations/common_defaults":40,"./attributes":46}],49:[function(e,t,n){"use strict";var r=e("../annotations/draw").drawRaw,a=e("../../plots/gl3d/project"),i=["x","y","z"];t.exports=function(e){for(var t=e.fullSceneLayout,n=e.dataScale,o=t.annotations,l=0;l<o.length;l++){for(var s=o[l],c=!1,u=0;u<3;u++){var f=i[u],d=s[f],p=t[f+"axis"].r2fraction(d);if(p<0||p>1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*n[0],t.yaxis.r2l(s.y)*n[1],t.zaxis.r2l(s.z)*n[2]]),r(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},{"../../plots/gl3d/project":253,"../annotations/draw":43}],50:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib");t.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e("./attributes")}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),includeBasePlot:function(e,t){var n=r.subplotsRegistry.gl3d;if(n)for(var i=n.attrRegex,o=Object.keys(e),l=0;l<o.length;l++){var s=o[l];i.test(s)&&(e[s].annotations||[]).length&&(a.pushUnique(t._basePlotModules,n),a.pushUnique(t._subplots.gl3d,s))}},convert:e("./convert"),draw:e("./draw")}},{"../../lib":178,"../../registry":269,"./attributes":46,"./convert":47,"./defaults":48,"./draw":49}],51:[function(e,t,n){"use strict";n.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],n.defaultLine="#444",n.lightLine="#eee",n.background="#fff",n.borderLine="#BEC8D9",n.lightFraction=1e3/11},{}],52:[function(e,t,n){"use strict";var r=e("tinycolor2"),a=e("fast-isnumeric"),i=t.exports={},o=e("./attributes");i.defaults=o.defaults;var l=i.defaultLine=o.defaultLine;i.lightLine=o.lightLine;var s=i.background=o.background;function c(e){if(a(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===r.length;if(!i&&3!==r.length)return e;for(var o=0;o<r.length;o++){if(!r[o].length)return e;if(r[o]=Number(r[o]),!(r[o]>=0))return e;if(3===o)r[o]>1&&(r[o]=1);else if(r[o]>=1)return e}var l=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return i?"rgba("+l+", "+r[3]+")":"rgb("+l+")"}i.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},i.rgb=function(e){return i.tinyRGB(r(e))},i.opacity=function(e){return e?r(e).getAlpha():0},i.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},i.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var a=r(t||s).toRgb(),i=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},o={r:i.r*(1-n.a)+n.r*n.a,g:i.g*(1-n.a)+n.g*n.a,b:i.b*(1-n.a)+n.b*n.a};return r(o).toRgbString()},i.contrast=function(e,t,n){var a=r(e);return 1!==a.getAlpha()&&(a=r(i.combine(e,s))),(a.isDark()?t?a.lighten(t):s:n?a.darken(n):l).toString()},i.stroke=function(e,t){var n=r(t);e.style({stroke:i.tinyRGB(n),"stroke-opacity":n.getAlpha()})},i.fill=function(e,t){var n=r(t);e.style({fill:i.tinyRGB(n),"fill-opacity":n.getAlpha()})},i.clean=function(e){if(e&&"object"==typeof e){var t,n,r,a,o=Object.keys(e);for(t=0;t<o.length;t++)if(a=e[r=o[t]],"color"===r.substr(r.length-5))if(Array.isArray(a))for(n=0;n<a.length;n++)a[n]=c(a[n]);else e[r]=c(a);else if("colorscale"===r.substr(r.length-10)&&Array.isArray(a))for(n=0;n<a.length;n++)Array.isArray(a[n])&&(a[n][1]=c(a[n][1]));else if(Array.isArray(a)){var l=a[0];if(!Array.isArray(l)&&l&&"object"==typeof l)for(n=0;n<a.length;n++)i.clean(a[n])}else a&&"object"==typeof a&&i.clean(a)}}},{"./attributes":51,"fast-isnumeric":18,tinycolor2:35}],53:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/layout_attributes"),a=e("../../plots/font_attributes"),i=e("../../lib/extend").extendFlat,o=e("../../plot_api/edit_types").overrideAll;t.exports=o({thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",dflt:1.02,min:-2,max:3},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number",dflt:.5,min:-2,max:3},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle"},ypad:{valType:"number",min:0,dflt:10},outlinecolor:r.linecolor,outlinewidth:r.linewidth,bordercolor:r.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:r.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:i({},r.ticks,{dflt:""}),ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,tickfont:a({}),tickangle:r.tickangle,tickformat:r.tickformat,tickformatstops:r.tickformatstops,tickprefix:r.tickprefix,showtickprefix:r.showtickprefix,ticksuffix:r.ticksuffix,showticksuffix:r.showticksuffix,separatethousands:r.separatethousands,exponentformat:r.exponentformat,showexponent:r.showexponent,title:{text:{valType:"string"},font:a({}),side:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}},_deprecated:{title:{valType:"string"},titlefont:a({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},{"../../lib/extend":173,"../../plot_api/edit_types":205,"../../plots/cartesian/layout_attributes":236,"../../plots/font_attributes":250}],54:[function(e,t,n){"use strict";t.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},{}],55:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plot_api/plot_template"),i=e("../../plots/cartesian/tick_value_defaults"),o=e("../../plots/cartesian/tick_mark_defaults"),l=e("../../plots/cartesian/tick_label_defaults"),s=e("./attributes");t.exports=function(e,t,n){var c=a.newContainer(t,"colorbar"),u=e.colorbar||{};function f(e,t){return r.coerce(u,c,s,e,t)}var d=f("thicknessmode");f("thickness","fraction"===d?30/(n.width-n.margin.l-n.margin.r):30);var p=f("lenmode");f("len","fraction"===p?1:n.height-n.margin.t-n.margin.b),f("x"),f("xanchor"),f("xpad"),f("y"),f("yanchor"),f("ypad"),r.noneOrAll(u,c,["x","y"]),f("outlinecolor"),f("outlinewidth"),f("bordercolor"),f("borderwidth"),f("bgcolor"),i(u,c,f,"linear");var h={outerTicks:!1,font:n.font};l(u,c,f,"linear",h),o(u,c,f,"linear",h),f("title.text",n._dfltTitle.colorbar),r.coerceFont(f,"title.font",n.font),f("title.side")}},{"../../lib":178,"../../plot_api/plot_template":212,"../../plots/cartesian/tick_label_defaults":243,"../../plots/cartesian/tick_mark_defaults":244,"../../plots/cartesian/tick_value_defaults":245,"./attributes":53}],56:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),i=e("../../plots/plots"),o=e("../../registry"),l=e("../../plots/cartesian/axes"),s=e("../dragelement"),c=e("../../lib"),u=e("../../lib/extend").extendFlat,f=e("../../lib/setcursor"),d=e("../drawing"),p=e("../color"),h=e("../titles"),g=e("../../lib/svg_text_utils"),m=e("../colorscale/helpers").flipScale,v=e("../../plots/cartesian/axis_defaults"),y=e("../../plots/cartesian/position_defaults"),x=e("../../plots/cartesian/layout_attributes"),b=e("../../constants/alignment"),_=b.LINE_SPACING,w=b.FROM_TL,k=b.FROM_BR,T=e("./constants").cn;t.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+T.colorbar).data(function(e){var t,n,r,a,i=e._fullLayout,o=e.calcdata,l=[];function s(e){return u(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"==typeof a.calc?a.calc(e,r,t):(t._fillgradient=n.reversescale?m(n.colorscale):n.colorscale,t._zrange=[n[a.min],n[a.max]])}for(var f=0;f<o.length;f++){var d=o[f],p=(r=d[0].trace)._module.colorbar;if(!0===r.visible&&p)for(var h=Array.isArray(p),g=h?p:[p],v=0;v<g.length;v++){var y=(a=g[v]).container;(n=y?r[y]:r)&&n.showscale&&((t=s(n.colorbar))._id="cb"+r.uid+(h&&y?"-"+y:""),t._traceIndex=r.index,t._propPrefix=(y?y+".":"")+"colorbar.",t._meta=r._meta,c(),l.push(t))}}for(var x in i._colorAxes)if((n=i[x]).showscale){var b=i._colorAxes[x];(t=s(n.colorbar))._id="cb"+x,t._propPrefix=x+".colorbar.",t._meta=i._meta,a={min:"cmin",max:"cmax"},"heatmap"!==b[0]&&(r=b[1],a.calc=r._module.colorbar.calc),c(),l.push(t)}return l}(e),(function(e){return e._id}));t.enter().append("g").attr("class",(function(e){return e._id})).classed(T.colorbar,!0),t.each((function(t){var n=r.select(this);c.ensureSingle(n,"rect",T.cbbg),c.ensureSingle(n,"g",T.cbfills),c.ensureSingle(n,"g",T.cblines),c.ensureSingle(n,"g",T.cbaxis,(function(e){e.classed(T.crisp,!0)})),c.ensureSingle(n,"g",T.cbtitleunshift,(function(e){e.append("g").classed(T.cbtitle,!0)})),c.ensureSingle(n,"rect",T.cboutline);var m=function(e,t,n){var o=n._fullLayout,s=o._size,f=t._fillcolor,m=t._line,b=t.title,M=b.side,A=t._zrange||r.extent(("function"==typeof f?f:m.color).domain()),S="function"==typeof m.color?m.color:function(){return m.color},L="function"==typeof f?f:function(){return f},C=t._levels,O=function(e,t,n){var r,a,i=t._levels,o=[],l=[],s=i.end+i.size/100,c=i.size,u=1.001*n[0]-.001*n[1],f=1.001*n[1]-.001*n[0];for(a=0;a<1e5&&(r=i.start+a*c,!(c>0?r>=s:r<=s));a++)r>u&&r<f&&o.push(r);if(t._fillgradient)l=[0];else if("function"==typeof t._fillcolor){var d=t._filllevels;if(d)for(s=d.end+d.size/100,c=d.size,a=0;a<1e5&&(r=d.start+a*c,!(c>0?r>=s:r<=s));a++)r>n[0]&&r<n[1]&&l.push(r);else(l=o.map((function(e){return e-i.size/2}))).push(l[l.length-1]+i.size)}else t._fillcolor&&"string"==typeof t._fillcolor&&(l=[0]);return i.size<0&&(o.reverse(),l.reverse()),{line:o,fill:l}}(0,t,A),P=O.fill,E=O.line,z=Math.round(t.thickness*("fraction"===t.thicknessmode?s.w:1)),D=z/s.w,R=Math.round(t.len*("fraction"===t.lenmode?s.h:1)),I=R/s.h,N=t.xpad/s.w,F=(t.borderwidth+t.outlinewidth)/2,B=t.ypad/s.h,j=Math.round(t.x*s.w+t.xpad),H=t.x-D*({middle:.5,right:1}[t.xanchor]||0),q=t.y+I*(({top:-.5,bottom:.5}[t.yanchor]||0)-.5),V=Math.round(s.h*(1-q)),U=V-R;t._lenFrac=I,t._thickFrac=D,t._xLeftFrac=H,t._yBottomFrac=q;var G=t._axis=function(e,t,n){var r=e._fullLayout,a={type:"linear",range:n,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:"right",position:1},i={type:"linear",_id:"y"+t._id},o={letter:"y",font:r.font,noHover:!0,noTickson:!0,calendar:r.calendar};function l(e,t){return c.coerce(a,i,x,e,t)}return v(a,i,l,o,r),y(a,i,l,o),i}(n,t,A);if(G.position=t.x+N+D,-1!==["top","bottom"].indexOf(M)&&(G.title.side=M,G.titlex=t.x+N,G.titley=q+("top"===b.side?I-B:B)),m.color&&"auto"===t.tickmode){G.tickmode="linear",G.tick0=C.start;var Z=C.size,W=c.constrain((V-U)/50,4,15)+1,Y=(A[1]-A[0])/((t.nticks||W)*Z);if(Y>1){var X=Math.pow(10,Math.floor(Math.log(Y)/Math.LN10));Z*=X*c.roundUp(Y/X,[2,5,10]),(Math.abs(C.start)/C.size+1e-6)%1<2e-6&&(G.tick0=0)}G.dtick=Z}G.domain=[q+B,q+I-B],G.setScale(),e.attr("transform","translate("+Math.round(s.l)+","+Math.round(s.t)+")");var $,Q=e.select("."+T.cbtitleunshift).attr("transform","translate(-"+Math.round(s.l)+",-"+Math.round(s.t)+")"),K=e.select("."+T.cbaxis),J=0;function ee(r,a){var i={propContainer:G,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:o._dfltTitle.colorbar,containerGroup:e.select("."+T.cbtitle)},l="h"===r.charAt(0)?r.substr(1):"h"+r;e.selectAll("."+l+",."+l+"-math-group").remove(),h.draw(n,r,u(i,a||{}))}return c.syncOrAsync([i.previousPromises,function(){if(-1!==["top","bottom"].indexOf(M)){var e,n=s.l+(t.x+N)*s.w,r=G.title.font.size;e="top"===M?(1-(q+I-B))*s.h+s.t+3+.75*r:(1-(q+B))*s.h+s.t-3-.25*r,ee(G._id+"title",{attributes:{x:n,y:e,"text-anchor":"start"}})}},function(){if(-1!==["top","bottom"].indexOf(M)){var i=e.select("."+T.cbtitle),o=i.select("text"),u=[-t.outlinewidth/2,t.outlinewidth/2],f=i.select(".h"+G._id+"title-math-group").node(),p=15.6;if(o.node()&&(p=parseInt(o.node().style.fontSize,10)*_),f?(J=d.bBox(f).height)>p&&(u[1]-=(J-p)/2):o.node()&&!o.classed(T.jsPlaceholder)&&(J=d.bBox(o.node()).height),J){if(J+=5,"top"===M)G.domain[1]-=J/s.h,u[1]*=-1;else{G.domain[0]+=J/s.h;var h=g.lineCount(o);u[1]+=(1-h)*p}i.attr("transform","translate("+u+")"),G.setScale()}}e.selectAll("."+T.cbfills+",."+T.cblines).attr("transform","translate(0,"+Math.round(s.h*(1-G.domain[1]))+")"),K.attr("transform","translate(0,"+Math.round(-s.t)+")");var v=e.select("."+T.cbfills).selectAll("rect."+T.cbfill).data(P);v.enter().append("rect").classed(T.cbfill,!0).style("stroke","none"),v.exit().remove();var y=A.map(G.c2p).map(Math.round).sort((function(e,t){return e-t}));v.each((function(e,i){var o=[0===i?A[0]:(P[i]+P[i-1])/2,i===P.length-1?A[1]:(P[i]+P[i+1])/2].map(G.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]>o[0])?1:-1,y[0],y[1]);var l=r.select(this).attr({x:j,width:Math.max(z,2),y:r.min(o),height:Math.max(r.max(o)-r.min(o),2)});if(t._fillgradient)d.gradient(l,n,t._id,"vertical",t._fillgradient,"fill");else{var s=L(e).replace("e-","");l.attr("fill",a(s).toHexString())}}));var x=e.select("."+T.cblines).selectAll("path."+T.cbline).data(m.color&&m.width?E:[]);x.enter().append("path").classed(T.cbline,!0),x.exit().remove(),x.each((function(e){r.select(this).attr("d","M"+j+","+(Math.round(G.c2p(e))+m.width/2%1)+"h"+z).call(d.lineGroupStyle,m.width,S(e),m.dash)})),K.selectAll("g."+G._id+"tick,path").remove();var b=j+z+(t.outlinewidth||0)/2-("outside"===t.ticks?1:0),w=l.calcTicks(G),k=l.makeTransFn(G),C=l.getTickSigns(G)[2];return l.drawTicks(n,G,{vals:"inside"===G.ticks?l.clipEnds(G,w):w,layer:K,path:l.makeTickPath(G,b,C),transFn:k}),l.drawLabels(n,G,{vals:w,layer:K,transFn:k,labelFns:l.makeLabelFns(G,b)})},function(){if(-1===["top","bottom"].indexOf(M)){var e=G.title.font.size,t=G._offset+G._length/2,a=s.l+(G.position||0)*s.w+("right"===G.side?10+e*(G.showticklabels?1:.5):-10-e*(G.showticklabels?.5:0));ee("h"+G._id+"title",{avoid:{selection:r.select(n).selectAll("g."+G._id+"tick"),side:M,offsetLeft:s.l,offsetTop:0,maxShift:o.width},attributes:{x:a,y:t,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}},i.previousPromises,function(){var r=z+t.outlinewidth/2+d.bBox(K.node()).width;if(($=Q.select("text")).node()&&!$.classed(T.jsPlaceholder)){var a,o=Q.select(".h"+G._id+"title-math-group").node();a=o&&-1!==["top","bottom"].indexOf(M)?d.bBox(o).width:d.bBox(Q.node()).right-j-s.l,r=Math.max(r,a)}var l=2*t.xpad+r+t.borderwidth+t.outlinewidth/2,c=V-U;e.select("."+T.cbbg).attr({x:j-t.xpad-(t.borderwidth+t.outlinewidth)/2,y:U-F,width:Math.max(l,2),height:Math.max(c+2*F,2)}).call(p.fill,t.bgcolor).call(p.stroke,t.bordercolor).style("stroke-width",t.borderwidth),e.selectAll("."+T.cboutline).attr({x:j,y:U+t.ypad+("top"===M?J:0),width:Math.max(z,2),height:Math.max(c-2*t.ypad-J,2)}).call(p.stroke,t.outlinecolor).style({fill:"none","stroke-width":t.outlinewidth});var u=({center:.5,right:1}[t.xanchor]||0)*l;e.attr("transform","translate("+(s.l-u)+","+s.t+")");var f={},h=w[t.yanchor],g=k[t.yanchor];"pixels"===t.lenmode?(f.y=t.y,f.t=c*h,f.b=c*g):(f.t=f.b=0,f.yt=t.y+t.len*h,f.yb=t.y-t.len*g);var m=w[t.xanchor],v=k[t.xanchor];if("pixels"===t.thicknessmode)f.x=t.x,f.l=l*m,f.r=l*v;else{var y=l-z;f.l=y*m,f.r=y*v,f.xl=t.x-t.thickness*m,f.xr=t.x+t.thickness*v}i.autoMargin(n,t._id,f)}],n)}(n,t,e);m&&m.then&&(e._promises||[]).push(m),e._context.edits.colorbarPosition&&function(e,t,n){var r,a,i,l=n._fullLayout._size;s.init({element:e.node(),gd:n,prepFn:function(){r=e.attr("transform"),f(e)},moveFn:function(n,o){e.attr("transform",r+" translate("+n+","+o+")"),a=s.align(t._xLeftFrac+n/l.w,t._thickFrac,0,1,t.xanchor),i=s.align(t._yBottomFrac-o/l.h,t._lenFrac,0,1,t.yanchor);var c=s.getCursor(a,i,t.xanchor,t.yanchor);f(e,c)},doneFn:function(){if(f(e),void 0!==a&&void 0!==i){var r={};r[t._propPrefix+"x"]=a,r[t._propPrefix+"y"]=i,void 0!==t._traceIndex?o.call("_guiRestyle",n,r,t._traceIndex):o.call("_guiRelayout",n,r)}}})}(n,t,e)})),t.exit().each((function(t){i.autoMargin(e,t._id)})).remove(),t.order()}}},{"../../constants/alignment":154,"../../lib":178,"../../lib/extend":173,"../../lib/setcursor":197,"../../lib/svg_text_utils":199,"../../plots/cartesian/axes":222,"../../plots/cartesian/axis_defaults":224,"../../plots/cartesian/layout_attributes":236,"../../plots/cartesian/position_defaults":239,"../../plots/plots":256,"../../registry":269,"../color":52,"../colorscale/helpers":63,"../dragelement":71,"../drawing":74,"../titles":147,"./constants":54,d3:16,tinycolor2:35}],57:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e){return r.isPlainObject(e.colorbar)}},{"../../lib":178}],58:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"colorbar",attributes:e("./attributes"),supplyDefaults:e("./defaults"),draw:e("./draw").draw,hasColorbar:e("./has_colorbar")}},{"./attributes":53,"./defaults":55,"./draw":56,"./has_colorbar":57}],59:[function(e,t,n){"use strict";var r=e("../colorbar/attributes"),a=e("../../lib/regex").counter,i=e("./scales.js").scales;function o(e){return"`"+e+"`"}Object.keys(i),t.exports=function(e,t){e=e||"";var n,l=(t=t||{}).cLetter||"c",s=("onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),"noScale"in t?t.noScale:"marker.line"===e),c="showScaleDflt"in t?t.showScaleDflt:"z"===l,u="string"==typeof t.colorscaleDflt?i[t.colorscaleDflt]:null,f=t.editTypeOverride||"",d=e?e+".":"";"colorAttr"in t?(n=t.colorAttr,t.colorAttr):o(d+(n={z:"z",c:"color"}[l]));var p=l+"auto",h=l+"min",g=l+"max",m=l+"mid",v=(o(d+p),o(d+h),o(d+g),{});v[h]=v[g]=void 0;var y={};y[p]=!1;var x={};return"color"===n&&(x.color={valType:"color",arrayOk:!0,editType:f||"style"},t.anim&&(x.color.anim=!0)),x[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:v},x[h]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:y},x[g]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:y},x[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:v},x.colorscale={valType:"colorscale",editType:"calc",dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},x.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(x.showscale={valType:"boolean",dflt:c,editType:"calc"},x.colorbar=r),t.noColorAxis||(x.coloraxis={valType:"subplotid",regex:a("coloraxis"),dflt:null,editType:"calc"}),x}},{"../../lib/regex":193,"../colorbar/attributes":53,"./scales.js":67}],60:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),i=e("./helpers").extractOpts;t.exports=function(e,t,n){var o,l=e._fullLayout,s=n.vals,c=n.containerStr,u=c?a.nestedProperty(t,c).get():t,f=i(u),d=!1!==f.auto,p=f.min,h=f.max,g=f.mid,m=function(){return a.aggNums(Math.min,null,s)},v=function(){return a.aggNums(Math.max,null,s)};void 0===p?p=m():d&&(p=u._colorAx&&r(p)?Math.min(p,m()):m()),void 0===h?h=v():d&&(h=u._colorAx&&r(h)?Math.max(h,v()):v()),d&&void 0!==g&&(h-g>g-p?p=g-(h-g):h-g<g-p&&(h=g+(g-p))),p===h&&(p-=.5,h+=.5),f._sync("min",p),f._sync("max",h),f.autocolorscale&&(o=p*h<0?l.colorscale.diverging:p>=0?l.colorscale.sequential:l.colorscale.sequentialminus,f._sync("colorscale",o))}},{"../../lib":178,"./helpers":63,"fast-isnumeric":18}],61:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./helpers").hasColorscale,i=e("./helpers").extractOpts;t.exports=function(e,t){function n(e,t){var n=e["_"+t];void 0!==n&&(e[t]=n)}function o(e,a){var o=a.container?r.nestedProperty(e,a.container).get():e;if(o)if(o.coloraxis)o._colorAx=t[o.coloraxis];else{var l=i(o),s=l.auto;(s||void 0===l.min)&&n(o,a.min),(s||void 0===l.max)&&n(o,a.max),l.autocolorscale&&n(o,"colorscale")}}for(var l=0;l<e.length;l++){var s=e[l],c=s._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u<c.length;u++)o(s,c[u]);else o(s,c);a(s,"marker.line")&&o(s,{container:"marker.line",min:"cmin",max:"cmax"})}for(var f in t._colorAxes)o(t[f],{min:"cmin",max:"cmax"})}},{"../../lib":178,"./helpers":63}],62:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),i=e("../colorbar/has_colorbar"),o=e("../colorbar/defaults"),l=e("./scales").isValid,s=e("../../registry").traceIs;function c(e,t){var n=t.slice(0,t.length-1);return t?a.nestedProperty(e,n).get()||{}:e}t.exports=function e(t,n,u,f,d){var p=d.prefix,h=d.cLetter,g="_module"in n,m=c(t,p),v=c(n,p),y=c(n._template||{},p)||{},x=function(){return delete t.coloraxis,delete n.coloraxis,e(t,n,u,f,d)};if(g){var b=u._colorAxes||{},_=f(p+"coloraxis");if(_){var w=s(n,"contour")&&a.nestedProperty(n,"contours.coloring").get()||"heatmap",k=b[_];return void(k?(k[2].push(x),k[0]!==w&&(k[0]=!1,a.warn(["Ignoring coloraxis:",_,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[_]=[w,n,[x]])}}var T=m[h+"min"],M=m[h+"max"],A=r(T)&&r(M)&&T<M;f(p+h+"auto",!A)?f(p+h+"mid"):(f(p+h+"min"),f(p+h+"max"));var S,L,C=m.colorscale,O=y.colorscale;void 0!==C&&(S=!l(C)),void 0!==O&&(S=!l(O)),f(p+"autocolorscale",S),f(p+"colorscale"),f(p+"reversescale"),"marker.line."!==p&&(p&&g&&(L=i(m)),f(p+"showscale",L)&&(p&&y&&(v._template=y),o(m,v,u)))}},{"../../lib":178,"../../registry":269,"../colorbar/defaults":55,"../colorbar/has_colorbar":57,"./scales":67,"fast-isnumeric":18}],63:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),i=e("fast-isnumeric"),o=e("../../lib"),l=e("../color"),s=e("./scales").isValid,c=["showscale","autocolorscale","colorscale","reversescale","colorbar"],u=["min","max","mid","auto"];function f(e){var t,n,r,a=e._colorAx,i=a||e,o={};for(n=0;n<c.length;n++)o[r=c[n]]=i[r];if(a)for(t="c",n=0;n<u.length;n++)o[r=u[n]]=i["c"+r];else{var l;for(n=0;n<u.length;n++)((l="c"+(r=u[n]))in i||(l="z"+r)in i)&&(o[r]=i[l]);t=l.charAt(0)}return o._sync=function(e,n){var r=-1!==u.indexOf(e)?t+e:e;i[r]=i["_"+r]=n},o}function d(e){for(var t=f(e),n=t.min,r=t.max,a=t.reversescale?p(t.colorscale):t.colorscale,i=a.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var c=a[s];o[s]=n+c[0]*(r-n),l[s]=c[1]}return{domain:o,range:l}}function p(e){for(var t=e.length,n=new Array(t),r=t-1,a=0;r>=0;r--,a++){var i=e[r];n[a]=[1-i[0],i[1]]}return n}function h(e,t){t=t||{};for(var n=e.domain,o=e.range,s=o.length,c=new Array(s),u=0;u<s;u++){var f=a(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var d,p=r.scale.linear().domain(n).range(c).clamp(!0),h=t.noNumericCheck,m=t.returnArray;return(d=h&&m?p:h?function(e){return g(p(e))}:m?function(e){return i(e)?p(e):a(e).isValid()?e:l.defaultLine}:function(e){return i(e)?g(p(e)):a(e).isValid()?e:l.defaultLine}).domain=p.domain,d.range=function(){return o},d}function g(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}t.exports={hasColorscale:function(e,t,n){var r=t?o.nestedProperty(e,t).get()||{}:e,a=r[n||"color"],l=!1;if(o.isArrayOrTypedArray(a))for(var c=0;c<a.length;c++)if(i(a[c])){l=!0;break}return o.isPlainObject(r)&&(l||!0===r.showscale||i(r.cmin)&&i(r.cmax)||s(r.colorscale)||o.isPlainObject(r.colorbar))},extractOpts:f,extractScale:d,flipScale:p,makeColorScaleFunc:h,makeColorScaleFuncFromTrace:function(e,t){return h(d(e),t)}}},{"../../lib":178,"../color":52,"./scales":67,d3:16,"fast-isnumeric":18,tinycolor2:35}],64:[function(e,t,n){"use strict";var r=e("./scales"),a=e("./helpers");t.exports={moduleType:"component",name:"colorscale",attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyLayoutDefaults:e("./layout_defaults"),handleDefaults:e("./defaults"),crossTraceDefaults:e("./cross_trace_defaults"),calc:e("./calc"),scales:r.scales,defaultScale:r.defaultScale,getScale:r.get,isValidScale:r.isValid,hasColorscale:a.hasColorscale,extractOpts:a.extractOpts,extractScale:a.extractScale,flipScale:a.flipScale,makeColorScaleFunc:a.makeColorScaleFunc,makeColorScaleFuncFromTrace:a.makeColorScaleFuncFromTrace}},{"./attributes":59,"./calc":60,"./cross_trace_defaults":61,"./defaults":62,"./helpers":63,"./layout_attributes":65,"./layout_defaults":66,"./scales":67}],65:[function(e,t,n){"use strict";var r=e("../../lib/extend").extendFlat,a=e("./attributes"),i=e("./scales").scales;t.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:i.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:i.RdBu,editType:"calc"}},coloraxis:r({_isSubplotObj:!0,editType:"calc"},a("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},{"../../lib/extend":173,"./attributes":59,"./scales":67}],66:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plot_api/plot_template"),i=e("./layout_attributes"),o=e("./defaults");t.exports=function(e,t){function n(n,a){return r.coerce(e,t,i,n,a)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var l,s,c=t._colorAxes;function u(e,t){return r.coerce(l,s,i.coloraxis,e,t)}for(var f in c){var d=c[f];if(d[0])l=e[f]||{},(s=a.newContainer(t,f,"coloraxis"))._name=f,o(l,s,t,u,{prefix:"",cLetter:"c"});else{for(var p=0;p<d[2].length;p++)d[2][p]();delete t._colorAxes[f]}}}},{"../../lib":178,"../../plot_api/plot_template":212,"./defaults":62,"./layout_attributes":65}],67:[function(e,t,n){"use strict";var r=e("tinycolor2"),a={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},i=a.RdBu;function o(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!=+e[0][0]||1!=+e[e.length-1][0])return!1;for(var n=0;n<e.length;n++){var a=e[n];if(2!==a.length||+a[0]<t||!r(a[1]).isValid())return!1;t=+a[0]}return!0}t.exports={scales:a,defaultScale:i,get:function(e,t){if(t||(t=i),!e)return t;function n(){try{e=a[e]||JSON.parse(e)}catch(n){e=t}}return"string"==typeof e&&(n(),"string"==typeof e&&n()),o(e)?e:t},isValid:function(e){return void 0!==a[e]||o(e)}}},{tinycolor2:35}],68:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a){var i=(e-n)/(r-n),o=i+t/(r-n),l=(i+o)/2;return"left"===a||"bottom"===a?i:"center"===a||"middle"===a?l:"right"===a||"top"===a?o:i<2/3-l?i:o>4/3-l?o:l}},{}],69:[function(e,t,n){"use strict";var r=e("../../lib"),a=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];t.exports=function(e,t,n,i){return e="left"===n?0:"center"===n?1:"right"===n?2:r.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:r.constrain(Math.floor(3*t),0,2),a[t][e]}},{"../../lib":178}],70:[function(e,t,n){"use strict";n.selectMode=function(e){return"lasso"===e||"select"===e},n.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},n.openMode=function(e){return"drawline"===e||"drawopenpath"===e},n.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},n.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},n.selectingOrDrawing=function(e){return n.freeMode(e)||n.rectMode(e)}},{}],71:[function(e,t,n){"use strict";var r=e("mouse-event-offset"),a=e("has-hover"),i=e("has-passive-events"),o=e("../../lib").removeElement,l=e("../../plots/cartesian/constants"),s=t.exports={};s.align=e("./align"),s.getCursor=e("./cursor");var c=e("./unhover");function u(){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}function f(e){return r(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=c.wrapped,s.unhoverRaw=c.raw,s.init=function(e){var t,n,r,c,d,p,h,g,m=e.gd,v=1,y=m._context.doubleClickDelay,x=e.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=_,i?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=_,x.addEventListener("touchstart",_,{passive:!1})):x.ontouchstart=_;var b=e.clampFn||function(e,t,n){return Math.abs(e)<n&&(e=0),Math.abs(t)<n&&(t=0),[e,t]};function _(i){m._dragged=!1,m._dragging=!0;var o=f(i);t=o[0],n=o[1],h=i.target,p=i,g=2===i.buttons||i.ctrlKey,void 0===i.clientX&&void 0===i.clientY&&(i.clientX=t,i.clientY=n),(r=(new Date).getTime())-m._mouseDownTime<y?v+=1:(v=1,m._mouseDownTime=r),e.prepFn&&e.prepFn(i,t,n),a&&!g?(d=u()).style.cursor=window.getComputedStyle(x).cursor:a||(d=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener("mouseup",k),document.addEventListener("touchend",k),!1!==e.dragmode&&(i.preventDefault(),document.addEventListener("mousemove",w),document.addEventListener("touchmove",w,{passive:!1}))}function w(r){r.preventDefault();var a=f(r),i=e.minDrag||l.MINDRAG,o=b(a[0]-t,a[1]-n,i),c=o[0],u=o[1];(c||u)&&(m._dragged=!0,s.unhover(m)),m._dragged&&e.moveFn&&!g&&(m._dragdata={element:x,dx:c,dy:u},e.moveFn(c,u))}function k(t){if(delete m._dragdata,!1!==e.dragmode&&(t.preventDefault(),document.removeEventListener("mousemove",w),document.removeEventListener("touchmove",w)),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",k),a?o(d):c&&(d.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime>y&&(v=Math.max(v-1,1)),m._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(v,p),!g){var n;try{n=new MouseEvent("click",t)}catch(e){var r=f(t);(n=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,r[0],r[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}h.dispatchEvent(n)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},s.coverSlip=u},{"../../lib":178,"../../plots/cartesian/constants":228,"./align":68,"./cursor":69,"./unhover":72,"has-hover":20,"has-passive-events":21,"mouse-event-offset":24}],72:[function(e,t,n){"use strict";var r=e("../../lib/events"),a=e("../../lib/throttle"),i=e("../../lib/dom").getGraphDiv,o=e("../fx/constants"),l=t.exports={};l.wrapped=function(e,t,n){(e=i(e))._fullLayout&&a.clear(e._fullLayout._uid+o.HOVERID),l.raw(e,t,n)},l.raw=function(e,t){var n=e._fullLayout,a=e._hoverdata;t||(t={}),t.target&&!1===r.triggerHandler(e,"plotly_beforehover",t)||(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&a&&e.emit("plotly_unhover",{event:t,points:a}))}},{"../../lib/dom":171,"../../lib/events":172,"../../lib/throttle":200,"../fx/constants":86}],73:[function(e,t,n){"use strict";n.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"}},{}],74:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("tinycolor2"),o=e("../../registry"),l=e("../color"),s=e("../colorscale"),c=e("../../lib"),u=e("../../lib/svg_text_utils"),f=e("../../constants/xmlns_namespaces"),d=e("../../constants/alignment").LINE_SPACING,p=e("../../constants/interactions").DESELECTDIM,h=e("../../traces/scatter/subtypes"),g=e("../../traces/scatter/make_bubble_size_func"),m=e("../../components/fx/helpers").appendArrayPointValue,v=t.exports={};v.font=function(e,t,n,r){c.isPlainObject(t)&&(r=t.color,n=t.size,t=t.family),t&&e.style("font-family",t),n+1&&e.style("font-size",n+"px"),r&&e.call(l.fill,r)},v.setPosition=function(e,t,n){e.attr("x",t).attr("y",n)},v.setSize=function(e,t,n){e.attr("width",t).attr("height",n)},v.setRect=function(e,t,n,r,a){e.call(v.setPosition,t,n).call(v.setSize,r,a)},v.translatePoint=function(e,t,n,r){var i=n.c2p(e.x),o=r.c2p(e.y);return!!(a(i)&&a(o)&&t.node())&&("text"===t.node().nodeName?t.attr("x",i).attr("y",o):t.attr("transform","translate("+i+","+o+")"),!0)},v.translatePoints=function(e,t,n){e.each((function(e){var a=r.select(this);v.translatePoint(e,a,t,n)}))},v.hideOutsideRangePoint=function(e,t,n,r,a,i){t.attr("display",n.isPtWithinRange(e,a)&&r.isPtWithinRange(e,i)?null:"none")},v.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var n=t.xaxis,a=t.yaxis;e.each((function(t){var i=t[0].trace,l=i.xcalendar,s=i.ycalendar,c=o.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each((function(e){v.hideOutsideRangePoint(e,r.select(this),n,a,l,s)}))}))}},v.crispRound=function(e,t,n){return t&&a(t)?e._context.staticPlot?t:t<1?1:Math.round(t):n||0},v.singleLineStyle=function(e,t,n,r,a){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=n||i.width||0,s=a||i.dash||"";l.stroke(t,r||i.color),v.dashLine(t,s,o)},v.lineGroupStyle=function(e,t,n,a){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,s=a||i.dash||"";r.select(this).call(l.stroke,n||i.color).call(v.dashLine,s,o)}))},v.dashLine=function(e,t,n){n=+n||0,t=v.dashStyle(t,n),e.style({"stroke-dasharray":t,"stroke-width":n+"px"})},v.dashStyle=function(e,t){t=+t||1;var n=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=n+"px,"+n+"px":"dash"===e?e=3*n+"px,"+3*n+"px":"longdash"===e?e=5*n+"px,"+5*n+"px":"dashdot"===e?e=3*n+"px,"+n+"px,"+n+"px,"+n+"px":"longdashdot"===e&&(e=5*n+"px,"+2*n+"px,"+n+"px,"+2*n+"px"),e},v.singleFillStyle=function(e){var t=(((r.select(e.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;t&&e.call(l.fill,t)},v.fillGroupStyle=function(e){e.style("stroke-width",0).each((function(e){var t=r.select(this);e[0].trace&&t.call(l.fill,e[0].trace.fillcolor)}))};var y=e("./symbol_defs");v.symbolNames=[],v.symbolFuncs=[],v.symbolNeedLines={},v.symbolNoDot={},v.symbolNoFill={},v.symbolList=[],Object.keys(y).forEach((function(e){var t=y[e],n=t.n;v.symbolList.push(n,e,n+100,e+"-open"),v.symbolNames[n]=e,v.symbolFuncs[n]=t.f,t.needLine&&(v.symbolNeedLines[n]=!0),t.noDot?v.symbolNoDot[n]=!0:v.symbolList.push(n+200,e+"-dot",n+300,e+"-open-dot"),t.noFill&&(v.symbolNoFill[n]=!0)}));var x=v.symbolNames.length;function b(e,t){var n=e%100;return v.symbolFuncs[n](t)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}v.symbolNumber=function(e){if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=v.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=x||e>=400?0:Math.floor(Math.max(e,0))};var _={x1:1,x2:0,y1:0,y2:0},w={x1:0,x2:0,y1:1,y2:0},k=r.format("~.1f"),T={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:_},horizontalreversed:{node:"linearGradient",attrs:_,reversed:!0},vertical:{node:"linearGradient",attrs:w},verticalreversed:{node:"linearGradient",attrs:w,reversed:!0}};v.gradient=function(e,t,n,a,o,s){for(var u=o.length,f=T[a],d=new Array(u),p=0;p<u;p++)f.reversed?d[u-1-p]=[k(100*(1-o[p][0])),o[p][1]]:d[p]=[k(100*o[p][0]),o[p][1]];var h=t._fullLayout,g="g"+h._uid+"-"+n,m=h._defs.select(".gradients").selectAll("#"+g).data([a+d.join(";")],c.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var e=r.select(this);f.attrs&&e.attr(f.attrs),e.attr("id",g);var t=e.selectAll("stop").data(d);t.exit().remove(),t.enter().append("stop"),t.each((function(e){var t=i(e[1]);r.select(this).attr({offset:e[0]+"%","stop-color":l.tinyRGB(t),"stop-opacity":t.getAlpha()})}))})),e.style(s,z(g,t)).style(s+"-opacity",null);var v=function(e){return"."+e.attr("class").replace(/\s/g,".")},y=v(r.select(e.node().parentNode))+">"+v(e);h._gradientUrlQueryParts[y]=1},v.initGradients=function(e){var t=e._fullLayout;c.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},v.pointStyle=function(e,t,n){if(e.size()){var a=v.makePointStyleFns(t);e.each((function(e){v.singlePointStyle(e,r.select(this),t,a,n)}))}},v.singlePointStyle=function(e,t,n,r,a){var i=n.marker,o=i.line;if(t.style("opacity",r.selectedOpacityFn?r.selectedOpacityFn(e):void 0===e.mo?i.opacity:e.mo),r.ms2mrc){var s;s="various"===e.ms||"various"===i.size?3:r.ms2mrc(e.ms),e.mrc=s,r.selectedSizeFn&&(s=e.mrc=r.selectedSizeFn(e));var u=v.symbolNumber(e.mx||i.symbol)||0;e.om=u%200>=100,t.attr("d",b(u,s))}var f,d,p,h=!1;if(e.so)p=o.outlierwidth,d=o.outliercolor,f=i.outliercolor;else{var g=(o||{}).width;p=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,d="mlc"in e?e.mlcc=r.lineScale(e.mlc):c.isArrayOrTypedArray(o.color)?l.defaultLine:o.color,c.isArrayOrTypedArray(i.color)&&(f=l.defaultLine,h=!0),f="mc"in e?e.mcc=r.markerScale(e.mc):i.color||"rgba(0,0,0,0)",r.selectedColorFn&&(f=r.selectedColorFn(e))}if(e.om)t.call(l.stroke,f).style({"stroke-width":(p||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:p)+"px");var m=i.gradient,y=e.mgt;if(y?h=!0:y=m&&m.type,Array.isArray(y)&&(y=y[0],T[y]||(y=0)),y&&"none"!==y){var x=e.mgc;x?h=!0:x=m.color;var _=n.uid;h&&(_+="-"+e.i),v.gradient(t,a,_,y,[[0,x],[1,f]],"fill")}else l.fill(t,f);p&&l.stroke(t,d)}},v.makePointStyleFns=function(e){var t={},n=e.marker;return t.markerScale=v.tryColorscale(n,""),t.lineScale=v.tryColorscale(n,"line"),o.traceIs(e,"symbols")&&(t.ms2mrc=h.isBubble(e)?g(e):function(){return(n.size||6)/2}),e.selectedpoints&&c.extendFlat(t,v.makeSelectedPointStyleFns(e)),t},v.makeSelectedPointStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},a=e.marker||{},i=n.marker||{},l=r.marker||{},s=a.opacity,u=i.opacity,f=l.opacity,d=void 0!==u,h=void 0!==f;(c.isArrayOrTypedArray(s)||d||h)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?a.opacity:e.mo;return e.selected?d?u:t:h?f:p*t});var g=a.color,m=i.color,v=l.color;(m||v)&&(t.selectedColorFn=function(e){var t=e.mcc||g;return e.selected?m||t:v||t});var y=a.size,x=i.size,b=l.size,_=void 0!==x,w=void 0!==b;return o.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||y/2;return e.selected?_?x/2:t:w?b/2:t}),t},v.makeSelectedTextStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},a=e.textfont||{},i=n.textfont||{},o=r.textfont||{},s=a.color,c=i.color,u=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||s;return e.selected?c||t:u||(c?t:l.addOpacity(t,p))},t},v.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=v.makeSelectedPointStyleFns(t),a=t.marker||{},i=[];n.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",n.selectedOpacityFn(t))})),n.selectedColorFn&&i.push((function(e,t){l.fill(e,n.selectedColorFn(t))})),n.selectedSizeFn&&i.push((function(e,t){var r=t.mx||a.symbol||0,i=n.selectedSizeFn(t);e.attr("d",b(v.symbolNumber(r),i)),t.mrc2=i})),i.length&&e.each((function(e){for(var t=r.select(this),n=0;n<i.length;n++)i[n](t,e)}))}},v.tryColorscale=function(e,t){var n=t?c.nestedProperty(e,t).get():e;if(n){var r=n.color;if((n.colorscale||n._colorAx)&&c.isArrayOrTypedArray(r))return s.makeColorScaleFuncFromTrace(n)}return c.identity};var M={start:1,end:-1,middle:0,bottom:1,top:-1};function A(e,t,n,a){var i=r.select(e.node().parentNode),o=-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle",l=-1!==t.indexOf("left")?"end":-1!==t.indexOf("right")?"start":"middle",s=a?a/.8+1:0,c=(u.lineCount(e)-1)*d+1,f=M[l]*s,p=.75*n+M[o]*s+(M[o]-1)*c*n/2;e.attr("text-anchor",l),i.attr("transform","translate("+f+","+p+")")}function S(e,t){var n=e.ts||t.textfont.size;return a(n)&&n>0?n:0}function L(e,t,n,a){var i=e[0]-t[0],o=e[1]-t[1],l=n[0]-t[0],s=n[1]-t[1],c=Math.pow(i*i+o*o,.25),u=Math.pow(l*l+s*s,.25),f=(u*u*i-c*c*l)*a,d=(u*u*o-c*c*s)*a,p=3*u*(c+u),h=3*c*(c+u);return[[r.round(t[0]+(p&&f/p),2),r.round(t[1]+(p&&d/p),2)],[r.round(t[0]-(h&&f/h),2),r.round(t[1]-(h&&d/h),2)]]}v.textPointStyle=function(e,t,n){if(e.size()){var a;if(t.selectedpoints){var i=v.makeSelectedTextStyleFns(t);a=i.selectedTextColorFn}var o=t.texttemplate,l=n._fullLayout;e.each((function(e){var i=r.select(this),s=o?c.extractOption(e,t,"txt","texttemplate"):c.extractOption(e,t,"tx","text");if(s||0===s){if(o){var f=t._module.formatLabels?t._module.formatLabels(e,t,l):{},d={};m(d,t,e.i);var p=t._meta||{};s=c.texttemplateString(s,f,l._d3locale,d,e,p)}var h=e.tp||t.textposition,g=S(e,t),y=a?a(e):e.tc||t.textfont.color;i.call(v.font,e.tf||t.textfont.family,g,y).text(s).call(u.convertToTspans,n).call(A,h,g,e.mrc)}else i.remove()}))}},v.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=v.makeSelectedTextStyleFns(t);e.each((function(e){var a=r.select(this),i=n.selectedTextColorFn(e),o=e.tp||t.textposition,s=S(e,t);l.fill(a,i),A(a,o,s,e.mrc2||e.mrc)}))}},v.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],a=[];for(n=1;n<e.length-1;n++)a.push(L(e[n-1],e[n],e[n+1],t));for(r+="Q"+a[0][0]+" "+e[1],n=2;n<e.length-1;n++)r+="C"+a[n-2][1]+" "+a[n-1][0]+" "+e[n];return r+="Q"+a[e.length-3][1]+" "+e[e.length-1]},v.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var n,r="M"+e[0],a=e.length-1,i=[L(e[a],e[0],e[1],t)];for(n=1;n<a;n++)i.push(L(e[n-1],e[n],e[n+1],t));for(i.push(L(e[a-1],e[a],e[0],t)),n=1;n<=a;n++)r+="C"+i[n-1][1]+" "+i[n][0]+" "+e[n];return r+="C"+i[a][1]+" "+i[0][0]+" "+e[0]+"Z"};var C={hv:function(e,t){return"H"+r.round(t[0],2)+"V"+r.round(t[1],2)},vh:function(e,t){return"V"+r.round(t[1],2)+"H"+r.round(t[0],2)},hvh:function(e,t){return"H"+r.round((e[0]+t[0])/2,2)+"V"+r.round(t[1],2)+"H"+r.round(t[0],2)},vhv:function(e,t){return"V"+r.round((e[1]+t[1])/2,2)+"H"+r.round(t[0],2)+"V"+r.round(t[1],2)}},O=function(e,t){return"L"+r.round(t[0],2)+","+r.round(t[1],2)};v.steps=function(e){var t=C[e]||O;return function(e){for(var n="M"+r.round(e[0][0],2)+","+r.round(e[0][1],2),a=1;a<e.length;a++)n+=t(e[a-1],e[a]);return n}},v.makeTester=function(){var e=c.ensureSingleById(r.select("body"),"svg","js-plotly-tester",(function(e){e.attr(f.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})})),t=c.ensureSingle(e,"path","js-reference-point",(function(e){e.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})}));v.tester=e,v.testref=t},v.savedBBoxes={};var P=0;function E(e){var t=e.getAttribute("data-unformatted");if(null!==t)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}function z(e,t){if(!e)return null;var n=t._context;return"url('"+(n._exportedPlot?"":n._baseUrl||"")+"#"+e+"')"}v.bBox=function(e,t,n){var a,i,o;if(n||(n=E(e)),n){if(a=v.savedBBoxes[n])return c.extendFlat({},a)}else if(1===e.childNodes.length){var l=e.childNodes[0];if(n=E(l)){var s=+l.getAttribute("x")||0,f=+l.getAttribute("y")||0,d=l.getAttribute("transform");if(!d){var p=v.bBox(l,!1,n);return s&&(p.left+=s,p.right+=s),f&&(p.top+=f,p.bottom+=f),p}if(n+="~"+s+"~"+f+"~"+d,a=v.savedBBoxes[n])return c.extendFlat({},a)}}t?i=e:(o=v.tester.node(),i=e.cloneNode(!0),o.appendChild(i)),r.select(i).attr("transform",null).call(u.positionText,0,0);var h=i.getBoundingClientRect(),g=v.testref.node().getBoundingClientRect();t||o.removeChild(i);var m={height:h.height,width:h.width,left:h.left-g.left,top:h.top-g.top,right:h.right-g.left,bottom:h.bottom-g.top};return P>=1e4&&(v.savedBBoxes={},P=0),n&&(v.savedBBoxes[n]=m),P++,c.extendFlat({},m)},v.setClipUrl=function(e,t,n){e.attr("clip-path",z(t,n))},v.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,n){return[t,n].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},v.setTranslate=function(e,t,n){var r=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[r]("transform")||"";return t=t||0,n=n||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=" translate("+t+", "+n+")").trim(),e[a]("transform",i),i},v.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,n){return[t,n].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},v.setScale=function(e,t,n){var r=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[r]("transform")||"";return t=t||1,n=n||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+=" scale("+t+", "+n+")").trim(),e[a]("transform",i),i};var D=/\s*sc.*/;v.setPointGroupScale=function(e,t,n){if(t=t||1,n=n||1,e){var r=1===t&&1===n?"":" scale("+t+","+n+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(D,"");e=(e+=r).trim(),this.setAttribute("transform",e)}))}};var R=/translate\([^)]*\)\s*$/;v.setTextPointsScale=function(e,t,n){e&&e.each((function(){var e,a=r.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(R);e=1===t&&1===n?[]:["translate("+o+","+l+")","scale("+t+","+n+")","translate("+-o+","+-l+")"],s&&e.push(s),a.attr("transform",e.join(" "))}}))}},{"../../components/fx/helpers":88,"../../constants/alignment":154,"../../constants/interactions":157,"../../constants/xmlns_namespaces":159,"../../lib":178,"../../lib/svg_text_utils":199,"../../registry":269,"../../traces/scatter/make_bubble_size_func":406,"../../traces/scatter/subtypes":413,"../color":52,"../colorscale":64,"./symbol_defs":75,d3:16,"fast-isnumeric":18,tinycolor2:35}],75:[function(e,t,n){"use strict";var r=e("d3");t.exports={circle:{n:0,f:function(e){var t=r.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=r.round(.4*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H"+t+"V"+n+"H-"+t+"V"+t+"H-"+n+"V-"+t+"H-"+t+"V-"+n+"H"+t+"V-"+t+"H"+n+"Z"}},x:{n:4,f:function(e){var t=r.round(.8*e/Math.sqrt(2),2),n="l"+t+","+t,a="l"+t+",-"+t,i="l-"+t+",-"+t,o="l-"+t+","+t;return"M0,"+t+n+a+i+a+i+o+i+o+n+o+n+"Z"}},"triangle-up":{n:5,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+t+","+r.round(e/2,2)+"H"+t+"L0,-"+r.round(e,2)+"Z"}},"triangle-down":{n:6,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+t+",-"+r.round(e/2,2)+"H"+t+"L0,"+r.round(e,2)+"Z"}},"triangle-left":{n:7,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M"+r.round(e/2,2)+",-"+t+"V"+t+"L-"+r.round(e,2)+",0Z"}},"triangle-right":{n:8,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+r.round(e/2,2)+",-"+t+"V"+t+"L"+r.round(e,2)+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+n+",-"+t+"H"+t+"V"+n+"Z"}},"triangle-se":{n:10,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+t+",-"+n+"V"+t+"H-"+n+"Z"}},"triangle-sw":{n:11,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H-"+t+"V-"+n+"Z"}},"triangle-nw":{n:12,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+t+","+n+"V-"+t+"H"+n+"Z"}},pentagon:{n:13,f:function(e){var t=r.round(.951*e,2),n=r.round(.588*e,2),a=r.round(-e,2),i=r.round(-.309*e,2);return"M"+t+","+i+"L"+n+","+r.round(.809*e,2)+"H-"+n+"L-"+t+","+i+"L0,"+a+"Z"}},hexagon:{n:14,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),a=r.round(e*Math.sqrt(3)/2,2);return"M"+a+",-"+n+"V"+n+"L0,"+t+"L-"+a+","+n+"V-"+n+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),a=r.round(e*Math.sqrt(3)/2,2);return"M-"+n+","+a+"H"+n+"L"+t+",0L"+n+",-"+a+"H-"+n+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=r.round(.924*e,2),n=r.round(.383*e,2);return"M-"+n+",-"+t+"H"+n+"L"+t+",-"+n+"V"+n+"L"+n+","+t+"H-"+n+"L-"+t+","+n+"V-"+n+"Z"}},star:{n:17,f:function(e){var t=1.4*e,n=r.round(.225*t,2),a=r.round(.951*t,2),i=r.round(.363*t,2),o=r.round(.588*t,2),l=r.round(-t,2),s=r.round(-.309*t,2),c=r.round(.118*t,2),u=r.round(.809*t,2);return"M"+n+","+s+"H"+a+"L"+i+","+c+"L"+o+","+u+"L0,"+r.round(.382*t,2)+"L-"+o+","+u+"L-"+i+","+c+"L-"+a+","+s+"H-"+n+"L0,"+l+"Z"}},hexagram:{n:18,f:function(e){var t=r.round(.66*e,2),n=r.round(.38*e,2),a=r.round(.76*e,2);return"M-"+a+",0l-"+n+",-"+t+"h"+a+"l"+n+",-"+t+"l"+n+","+t+"h"+a+"l-"+n+","+t+"l"+n+","+t+"h-"+a+"l-"+n+","+t+"l-"+n+",-"+t+"h-"+a+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),a=r.round(1.6*e,2),i=r.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M-"+t+","+n+o+t+","+n+o+"0,-"+a+o+"-"+t+","+n+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),a=r.round(1.6*e,2),i=r.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M"+t+",-"+n+o+"-"+t+",-"+n+o+"0,"+a+o+t+",-"+n+"Z"}},"star-square":{n:21,f:function(e){var t=r.round(1.1*e,2),n=r.round(2*e,2),a="A "+n+","+n+" 0 0 1 ";return"M-"+t+",-"+t+a+"-"+t+","+t+a+t+","+t+a+t+",-"+t+a+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=r.round(1.4*e,2),n=r.round(1.9*e,2),a="A "+n+","+n+" 0 0 1 ";return"M-"+t+",0"+a+"0,"+t+a+t+",0"+a+"0,-"+t+a+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=r.round(.7*e,2),n=r.round(1.4*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=r.round(1.4*e,2),n=r.round(.7*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=r.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=r.round(e,2),n=r.round(e/Math.sqrt(2),2);return"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=r.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=r.round(1.3*e,2),n=r.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=r.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e){var t=r.round(1.2*e,2),n=r.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e){var t=r.round(e/2,2),n=r.round(e,2);return"M"+t+","+n+"V-"+n+"m-"+n+",0V"+n+"M"+n+","+t+"H-"+n+"m0,-"+n+"H"+n},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M-"+t+","+a+"L0,0M"+t+","+a+"L0,0M0,-"+n+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M-"+t+",-"+a+"L0,0M"+t+",-"+a+"L0,0M0,"+n+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M"+a+","+t+"L0,0M"+a+",-"+t+"L0,0M-"+n+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M-"+a+","+t+"L0,0M-"+a+",-"+t+"L0,0M"+n+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e){var t=r.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e){var t=r.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e){var t=r.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0,noFill:!0}}},{d3:16}],76:[function(e,t,n){"use strict";t.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},{}],77:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../registry"),i=e("../../plots/cartesian/axes"),o=e("../../lib"),l=e("./compute_error");function s(e,t,n,a){var s=t["error_"+a]||{},c=[];if(s.visible&&-1!==["linear","log"].indexOf(n.type)){for(var u=l(s),f=0;f<e.length;f++){var d=e[f],p=d.i;if(void 0===p)p=f;else if(null===p)continue;var h=d[a];if(r(n.c2l(h))){var g=u(h,p);if(r(g[0])&&r(g[1])){var m=d[a+"s"]=h-g[0],v=d[a+"h"]=h+g[1];c.push(m,v)}}}var y=n._id,x=t._extremes[y],b=i.findExtremes(n,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}t.exports=function(e){for(var t=e.calcdata,n=0;n<t.length;n++){var r=t[n],o=r[0].trace;if(!0===o.visible&&a.traceIs(o,"errorBarsOK")){var l=i.getFromId(e,o.xaxis),c=i.getFromId(e,o.yaxis);s(r,o,l,"x"),s(r,o,c,"y")}}}},{"../../lib":178,"../../plots/cartesian/axes":222,"../../registry":269,"./compute_error":78,"fast-isnumeric":18}],78:[function(e,t,n){"use strict";function r(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}t.exports=function(e){var t=e.type,n=e.symmetric;if("data"===t){var a=e.array||[];if(n)return function(e,t){var n=+a[t];return[n,n]};var i=e.arrayminus||[];return function(e,t){var n=+a[t],r=+i[t];return isNaN(n)&&isNaN(r)?[NaN,NaN]:[r||0,n||0]}}var o=r(t,e.value),l=r(t,e.valueminus);return n||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[l(e),o(e)]}}},{}],79:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../registry"),i=e("../../lib"),o=e("../../plot_api/plot_template"),l=e("./attributes");t.exports=function(e,t,n,s){var c="error_"+s.axis,u=o.newContainer(t,c),f=e[c]||{};function d(e,t){return i.coerce(f,u,l,e,t)}if(!1!==d("visible",void 0!==f.array||void 0!==f.value||"sqrt"===f.type)){var p=d("type","array"in f?"data":"percent"),h=!0;"sqrt"!==p&&(h=d("symmetric",!(("data"===p?"arrayminus":"valueminus")in f))),"data"===p?(d("array"),d("traceref"),h||(d("arrayminus"),d("tracerefminus"))):"percent"!==p&&"constant"!==p||(d("value"),h||d("valueminus"));var g="copy_"+s.inherit+"style";s.inherit&&(t["error_"+s.inherit]||{}).visible&&d(g,!(f.color||r(f.thickness)||r(f.width))),s.inherit&&u[g]||(d("color",n),d("thickness"),d("width",a.traceIs(t,"gl3d")?0:4))}}},{"../../lib":178,"../../plot_api/plot_template":212,"../../registry":269,"./attributes":76,"fast-isnumeric":18}],80:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plot_api/edit_types").overrideAll,i=e("./attributes"),o={error_x:r.extendFlat({},i),error_y:r.extendFlat({},i)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var l={error_x:r.extendFlat({},i),error_y:r.extendFlat({},i),error_z:r.extendFlat({},i)};delete l.error_x.copy_ystyle,delete l.error_y.copy_ystyle,delete l.error_z.copy_ystyle,delete l.error_z.copy_zstyle,t.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:a(l,"calc","nested"),scattergl:a(o,"calc","nested")}},supplyDefaults:e("./defaults"),calc:e("./calc"),makeComputeError:e("./compute_error"),plot:e("./plot"),style:e("./style"),hoverInfo:function(e,t,n){(t.error_y||{}).visible&&(n.yerr=e.yh-e.y,t.error_y.symmetric||(n.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(n.xerr=e.xh-e.x,t.error_x.symmetric||(n.xerrneg=e.x-e.xs))}}},{"../../lib":178,"../../plot_api/edit_types":205,"./attributes":76,"./calc":77,"./compute_error":78,"./defaults":79,"./plot":81,"./style":82}],81:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("../drawing"),o=e("../../traces/scatter/subtypes");t.exports=function(e,t,n,l){var s=n.xaxis,c=n.yaxis,u=l&&l.duration>0;t.each((function(t){var f,d=t[0].trace,p=d.error_x||{},h=d.error_y||{};d.ids&&(f=function(e){return e.id});var g=o.hasMarkers(d)&&d.marker.maxdisplayed>0;h.visible||p.visible||(t=[]);var m=r.select(this).selectAll("g.errorbar").data(t,f);if(m.exit().remove(),t.length){p.visible||m.selectAll("path.xerror").remove(),h.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var v=m.enter().append("g").classed("errorbar",!0);u&&v.style("opacity",0).transition().duration(l.duration).style("opacity",1),i.setClipUrl(m,n.layerClipId,e),m.each((function(e){var t=r.select(this),n=function(e,t,n){var r={x:t.c2p(e.x),y:n.c2p(e.y)};return void 0!==e.yh&&(r.yh=n.c2p(e.yh),r.ys=n.c2p(e.ys),a(r.ys)||(r.noYS=!0,r.ys=n.c2p(e.ys,!0))),void 0!==e.xh&&(r.xh=t.c2p(e.xh),r.xs=t.c2p(e.xs),a(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0))),r}(e,s,c);if(!g||e.vis){var i,o=t.select("path.yerror");if(h.visible&&a(n.x)&&a(n.yh)&&a(n.ys)){var f=h.width;i="M"+(n.x-f)+","+n.yh+"h"+2*f+"m-"+f+",0V"+n.ys,n.noYS||(i+="m-"+f+",0h"+2*f),o.size()?u&&(o=o.transition().duration(l.duration).ease(l.easing)):o=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0),o.attr("d",i)}else o.remove();var d=t.select("path.xerror");if(p.visible&&a(n.y)&&a(n.xh)&&a(n.xs)){var m=(p.copy_ystyle?h:p).width;i="M"+n.xh+","+(n.y-m)+"v"+2*m+"m0,-"+m+"H"+n.xs,n.noXS||(i+="m0,-"+m+"v"+2*m),d.size()?u&&(d=d.transition().duration(l.duration).ease(l.easing)):d=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0),d.attr("d",i)}else d.remove()}}))}}))}},{"../../traces/scatter/subtypes":413,"../drawing":74,d3:16,"fast-isnumeric":18}],82:[function(e,t,n){"use strict";var r=e("d3"),a=e("../color");t.exports=function(e){e.each((function(e){var t=e[0].trace,n=t.error_y||{},i=t.error_x||{},o=r.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(a.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(a.stroke,i.color)}))}},{"../color":52,d3:16}],83:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("./layout_attributes").hoverlabel,i=e("../../lib/extend").extendFlat;t.exports={hoverlabel:{bgcolor:i({},a.bgcolor,{arrayOk:!0}),bordercolor:i({},a.bordercolor,{arrayOk:!0}),font:r({arrayOk:!0,editType:"none"}),align:i({},a.align,{arrayOk:!0}),namelength:i({},a.namelength,{arrayOk:!0}),editType:"none"}}},{"../../lib/extend":173,"../../plots/font_attributes":250,"./layout_attributes":93}],84:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry");function i(e,t,n,a){a=a||r.identity,Array.isArray(e)&&(t[0][n]=a(e))}t.exports=function(e){var t=e.calcdata,n=e._fullLayout;function o(e){return function(t){return r.coerceHoverinfo({hoverinfo:t},{_module:e._module},n)}}for(var l=0;l<t.length;l++){var s=t[l],c=s[0].trace;if(!a.traceIs(c,"pie-like")){var u=a.traceIs(c,"2dMap")?i:r.fillArray;u(c.hoverinfo,s,"hi",o(c)),c.hovertemplate&&u(c.hovertemplate,s,"ht"),c.hoverlabel&&(u(c.hoverlabel.bgcolor,s,"hbg"),u(c.hoverlabel.bordercolor,s,"hbc"),u(c.hoverlabel.font.size,s,"hts"),u(c.hoverlabel.font.color,s,"htc"),u(c.hoverlabel.font.family,s,"htf"),u(c.hoverlabel.namelength,s,"hnl"),u(c.hoverlabel.align,s,"hta"))}}}},{"../../lib":178,"../../registry":269}],85:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("./hover").hover;t.exports=function(e,t,n){var i=r.getComponentMethod("annotations","onClick")(e,e._hoverdata);function o(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==n&&a(e,t,n,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},{"../../registry":269,"./hover":89}],86:[function(e,t,n){"use strict";t.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},{}],87:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),i=e("./hoverlabel_defaults");t.exports=function(e,t,n,o){var l=r.extendFlat({},o.hoverlabel);t.hovertemplate&&(l.namelength=-1),i(e,t,(function(n,i){return r.coerce(e,t,a,n,i)}),l)}},{"../../lib":178,"./attributes":83,"./hoverlabel_defaults":90}],88:[function(e,t,n){"use strict";var r=e("../../lib");n.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},n.isTraceInSubplots=function(e,t){if("splom"===e.type){for(var r=e.xaxes||[],a=e.yaxes||[],i=0;i<r.length;i++)for(var o=0;o<a.length;o++)if(-1!==t.indexOf(r[i]+a[o]))return!0;return!1}return-1!==t.indexOf(n.getSubplot(e))},n.flat=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=t;return n},n.p2c=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r].p2c(t);return n},n.getDistanceFunction=function(e,t,r,a){return"closest"===e?a||n.quadrature(t,r):"x"===e.charAt(0)?t:r},n.getClosest=function(e,t,n){if(!1!==n.index)n.index>=0&&n.index<e.length?n.distance=0:n.index=!1;else for(var r=0;r<e.length;r++){var a=t(e[r]);a<=n.distance&&(n.index=r,n.distance=a)}return n},n.inbox=function(e,t,n){return e*t<0||0===e?n:1/0},n.quadrature=function(e,t){return function(n){var r=e(n),a=t(n);return Math.sqrt(r*r+a*a)}},n.makeEventData=function(e,t,r){var a="index"in e?e.index:e.pointNumber,i={data:t._input,fullData:t,curveNumber:t.index,pointNumber:a};if(t._indexToPoints){var o=t._indexToPoints[a];1===o.length?i.pointIndex=o[0]:i.pointIndices=o}else i.pointIndex=a;return t._module.eventData?i=t._module.eventData(i,e,t,r,a):("xVal"in e?i.x=e.xVal:"x"in e&&(i.x=e.x),"yVal"in e?i.y=e.yVal:"y"in e&&(i.y=e.y),e.xa&&(i.xaxis=e.xa),e.ya&&(i.yaxis=e.ya),void 0!==e.zLabelVal&&(i.z=e.zLabelVal)),n.appendArrayPointValue(i,t,a),i},n.appendArrayPointValue=function(e,t,n){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],c=i(s);if(void 0===e[c]){var u=o(r.nestedProperty(t,s).get(),n);void 0!==u&&(e[c]=u)}}},n.appendArrayMultiPointValues=function(e,t,n){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],c=i(s);if(void 0===e[c]){for(var u=r.nestedProperty(t,s).get(),f=new Array(n.length),d=0;d<n.length;d++)f[d]=o(u,n[d]);e[c]=f}}};var a={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function i(e){return a[e]||e}function o(e,t){return Array.isArray(t)?Array.isArray(e)&&Array.isArray(e[t[0]])?e[t[0]][t[1]]:void 0:e[t]}var l={x:!0,y:!0},s={"x unified":!0,"y unified":!0};n.isUnifiedHover=function(e){return"string"==typeof e&&!!s[e]},n.isXYhover=function(e){return"string"==typeof e&&!!l[e]}},{"../../lib":178}],89:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("tinycolor2"),o=e("../../lib"),l=e("../../lib/events"),s=e("../../lib/svg_text_utils"),c=e("../../lib/override_cursor"),u=e("../drawing"),f=e("../color"),d=e("../dragelement"),p=e("../../plots/cartesian/axes"),h=e("../../registry"),g=e("./helpers"),m=e("./constants"),v=e("../legend/defaults"),y=e("../legend/draw"),x=m.YANGLE,b=Math.PI*x/180,_=1/Math.sin(b),w=Math.cos(b),k=Math.sin(b),T=m.HOVERARROWSIZE,M=m.HOVERTEXTPAD;function A(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa,e.ya||""].join(",")}n.hover=function(e,t,n,i){e=o.getGraphDiv(e),o.throttle(e._fullLayout._uid+m.HOVERID,m.HOVERMINTIME,(function(){!function(e,t,n,i){n||(n="xy");var s=Array.isArray(n)?n:[n],u=e._fullLayout,p=u._plots||[],m=p[n],v=u._has("cartesian");if(m){var y=m.overlays.map((function(e){return e.id}));s=s.concat(y)}for(var x=s.length,b=new Array(x),w=new Array(x),k=!1,T=0;T<x;T++){var M=s[T];if(p[M])k=!0,b[T]=p[M].xaxis,w[T]=p[M].yaxis;else{if(!u[M]||!u[M]._subplot)return void o.warn("Unrecognized subplot: "+M);var S=u[M]._subplot;b[T]=S.xaxis,w[T]=S.yaxis}}var C=t.hovermode||u.hovermode;if(C&&!k&&(C="closest"),-1===["x","y","closest","x unified","y unified"].indexOf(C)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return d.unhoverRaw(e,t);var D,R,I,N,F,B,j,H,q,V,U,G,Z,W=-1===u.hoverdistance?1/0:u.hoverdistance,Y=-1===u.spikedistance?1/0:u.spikedistance,X=[],$=[],Q={hLinePoint:null,vLinePoint:null},K=!1;if(Array.isArray(t))for(C="array",I=0;I<t.length;I++)(F=e.calcdata[t[I].curveNumber||0])&&(B=F[0].trace,"skip"!==F[0].trace.hoverinfo&&($.push(F),"h"===B.orientation&&(K=!0)));else{for(N=0;N<e.calcdata.length;N++)F=e.calcdata[N],"skip"!==(B=F[0].trace).hoverinfo&&g.isTraceInSubplots(B,s)&&($.push(F),"h"===B.orientation&&(K=!0));var J,ee;if(t.target){if(!1===l.triggerHandler(e,"plotly_beforehover",t))return;var te=t.target.getBoundingClientRect();if(J=t.clientX-te.left,ee=t.clientY-te.top,J<0||J>b[0]._length||ee<0||ee>w[0]._length)return d.unhoverRaw(e,t)}else J="xpx"in t?t.xpx:b[0]._length/2,ee="ypx"in t?t.ypx:w[0]._length/2;if(t.pointerX=J+b[0]._offset,t.pointerY=ee+w[0]._offset,D="xval"in t?g.flat(s,t.xval):g.p2c(b,J),R="yval"in t?g.flat(s,t.yval):g.p2c(w,ee),!a(D[0])||!a(R[0]))return o.warn("Fx.hover failed",t,e),d.unhoverRaw(e,t)}var ne=1/0;function re(e,n){for(N=0;N<$.length;N++)if((F=$[N])&&F[0]&&F[0].trace&&!0===(B=F[0].trace).visible&&0!==B._length&&-1===["carpet","contourcarpet"].indexOf(B._module.name)){if("splom"===B.type?j=s[H=0]:(j=g.getSubplot(B),H=s.indexOf(j)),q=C,g.isUnifiedHover(q)&&(q=q.charAt(0)),G={cd:F,trace:B,xa:b[H],ya:w[H],maxHoverDistance:W,maxSpikeDistance:Y,index:!1,distance:Math.min(ne,W),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:f.defaultLine,name:B.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},u[j]&&(G.subplot=u[j]._subplot),u._splomScenes&&u._splomScenes[B.uid]&&(G.scene=u._splomScenes[B.uid]),Z=X.length,"array"===q){var r=t[N];"pointNumber"in r?(G.index=r.pointNumber,q="closest"):(q="","xval"in r&&(V=r.xval,q="x"),"yval"in r&&(U=r.yval,q=q?"closest":"y"))}else void 0!==e&&void 0!==n?(V=e,U=n):(V=D[H],U=R[H]);if(0!==W)if(B._module&&B._module.hoverPoints){var i=B._module.hoverPoints(G,V,U,q,u._hoverlayer);if(i)for(var l,c=0;c<i.length;c++)l=i[c],a(l.x0)&&a(l.y0)&&X.push(P(l,C))}else o.log("Unrecognized trace type in hover:",B);if("closest"===C&&X.length>Z&&(X.splice(0,Z),ne=X[0].distance),v&&0!==Y&&0===X.length){G.distance=Y,G.index=!1;var d=B._module.hoverPoints(G,V,U,"closest",u._hoverlayer);if(d&&(d=d.filter((function(e){return e.spikeDistance<=Y}))),d&&d.length){var p,h=d.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(h.length){var m=h[0];a(m.x0)&&a(m.y0)&&(p=ie(m),(!Q.vLinePoint||Q.vLinePoint.spikeDistance>p.spikeDistance)&&(Q.vLinePoint=p))}var y=d.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(y.length){var x=y[0];a(x.x0)&&a(x.y0)&&(p=ie(x),(!Q.hLinePoint||Q.hLinePoint.spikeDistance>p.spikeDistance)&&(Q.hLinePoint=p))}}}}}function ae(e,t){for(var n,r=null,a=1/0,i=0;i<e.length;i++)(n=e[i].spikeDistance)<=a&&n<=t&&(r=e[i],a=n);return r}function ie(e){return e?{xa:e.xa,ya:e.ya,x:void 0!==e.xSpike?e.xSpike:(e.x0+e.x1)/2,y:void 0!==e.ySpike?e.ySpike:(e.y0+e.y1)/2,distance:e.distance,spikeDistance:e.spikeDistance,curveNumber:e.trace.index,color:e.color,pointNumber:e.index}:null}re();var oe={fullLayout:u,container:u._hoverlayer,outerContainer:u._paperdiv,event:t},le=e._spikepoints,se={vLinePoint:Q.vLinePoint,hLinePoint:Q.hLinePoint};if(e._spikepoints=se,v&&0!==Y&&0!==X.length){var ce=ae(X.filter((function(e){return e.ya.showspikes})),Y);Q.hLinePoint=ie(ce);var ue=ae(X.filter((function(e){return e.xa.showspikes})),Y);Q.vLinePoint=ie(ue)}if(0===X.length){var fe=d.unhoverRaw(e,t);return!v||null===Q.hLinePoint&&null===Q.vLinePoint||z(le)&&E(e,Q,oe),fe}if(v&&z(le)&&E(e,Q,oe),X.sort((function(e,t){return e.distance-t.distance})),g.isXYhover(q)&&0!==X[0].length&&"splom"!==X[0].trace.type){var de=X[0],pe=de.cd[de.index],he="group"===u.boxmode||"group"===u.violinmode,ge=de.xVal,me=de.xa;"category"===me.type&&(ge=me._categoriesMap[ge]),"date"===me.type&&(ge=me.d2c(ge)),pe&&pe.t&&pe.t.posLetter===me._id&&he&&(ge+=pe.t.dPos);var ve=de.yVal;"category"===(me=de.ya).type&&(ve=me._categoriesMap[ve]),"date"===me.type&&(ve=me.d2c(ve)),pe&&pe.t&&pe.t.posLetter===me._id&&he&&(ve+=pe.t.dPos),re(ge,ve);var ye={};X=X.filter((function(e){var t=A(e);if(!ye[t])return ye[t]=!0,ye[t]}))}var xe=e._hoverdata,be=[];for(I=0;I<X.length;I++){var _e=X[I],we=g.makeEventData(_e,_e.trace,_e.cd);if(!1!==_e.hovertemplate){var ke=!1;_e.cd[_e.index]&&_e.cd[_e.index].ht&&(ke=_e.cd[_e.index].ht),_e.hovertemplate=ke||_e.trace.hovertemplate||!1}_e.eventData=[we],be.push(we)}e._hoverdata=be;var Te="y"===C&&($.length>1||X.length>1)||"closest"===C&&K&&X.length>1,Me=f.combine(u.plot_bgcolor||f.background,u.paper_bgcolor),Ae={hovermode:C,rotateLabels:Te,bgColor:Me,container:u._hoverlayer,outerContainer:u._paperdiv,commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance},Se=L(X,Ae,e);if(g.isUnifiedHover(C)||(function(e,t,n){var r,a,i,o,l,s,c,u=0,f=1,d=e.size(),p=new Array(d),h=0;function g(e){var t=e[0],n=e[e.length-1];if(a=t.pmin-t.pos-t.dp+t.size,i=n.pos+n.dp+n.size-t.pmax,a>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=a;r=!1}if(!(i<.01)){if(a<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;r=!1}if(r){var c=0;for(o=0;o<e.length;o++)(s=e[o]).pos+s.dp+s.size>t.pmax&&c++;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos>t.pmax-1&&(s.del=!0,c--);for(o=0;o<e.length&&!(c<=0);o++)if((s=e[o]).pos<t.pmin+1)for(s.del=!0,c--,i=2*s.size,l=e.length-1;l>=0;l--)e[l].dp-=i;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos+s.dp+s.size>t.pmax&&(s.del=!0,c--)}}}for(e.each((function(e){var r=e[t],a="x"===r._id.charAt(0),i=r.range;0===h&&i&&i[0]>i[1]!==a&&(f=-1),p[h++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(a?_:1)/2,pmin:0,pmax:a?n.width:n.height}]})),p.sort((function(e,t){return e[0].posref-t[0].posref||f*(t[0].traceIndex-e[0].traceIndex)}));!r&&u<=d;){for(u++,r=!0,o=0;o<p.length-1;){var m=p[o],v=p[o+1],y=m[m.length-1],x=v[0];if((a=y.pos+y.dp+y.size-x.pos-x.dp+x.size)>.01&&y.pmin===x.pmin&&y.pmax===x.pmax){for(l=v.length-1;l>=0;l--)v[l].dp+=a;for(m.push.apply(m,v),p.splice(o+1,1),c=0,l=m.length-1;l>=0;l--)c+=m[l].dp;for(i=c/m.length,l=m.length-1;l>=0;l--)m[l].dp-=i;r=!1}else o++}p.forEach(g)}for(o=p.length-1;o>=0;o--){var b=p[o];for(l=b.length-1;l>=0;l--){var w=b[l],k=w.datum;k.offset=w.dp,k.del=w.del}}}(Se,Te?"xa":"ya",u),O(Se,Te)),t.target&&t.target.tagName){var Le=h.getComponentMethod("annotations","hasClickToShow")(e,be);c(r.select(t.target),Le?"pointer":"")}t.target&&!i&&function(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var a=n[r],i=e._hoverdata[r];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,xe)&&(xe&&e.emit("plotly_unhover",{event:t,points:xe}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:b,yaxes:w,xvals:D,yvals:R}))}(e,t,n,i)}))},n.loneHover=function(e,t){var n=!0;Array.isArray(e)||(n=!1,e=[e]);var a=e.map((function(e){return{color:e.color||f.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,eventData:e.eventData||!1,hovertemplateLabels:e.hovertemplateLabels||!1}})),i=r.select(t.container),o=t.outerContainer?r.select(t.outerContainer):i,l={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||f.background,container:i,outerContainer:o},s=L(a,l,t.gd),c=0,u=0;return s.sort((function(e,t){return e.y0-t.y0})).each((function(e,n){var r=e.y0-e.by/2;e.offset=r-5<c?c-r+5:0,c=r+e.by+e.offset,n===t.anchorIndex&&(u=e.offset)})).each((function(e){e.offset-=u})),O(s,l.rotateLabels),n?s:s.node()};var S=/<extra>([\s\S]*)<\/extra>/;function L(e,t,n){var a=n._fullLayout,i=t.hovermode,l=t.rotateLabels,c=t.bgColor,d=t.container,p=t.outerContainer,h=t.commonLabelOpts||{},b=t.fontFamily||m.HOVERFONT,_=t.fontSize||m.HOVERFONTSIZE,w=e[0],k=w.xa,S=w.ya,L="y"===i.charAt(0)?"yLabel":"xLabel",O=w[L],P=(String(O)||"").split(" ")[0],E=p.node().getBoundingClientRect(),z=E.top,D=E.width,R=E.height,I=void 0!==O&&w.distance<=t.hoverdistance&&("x"===i||"y"===i);if(I){var N,F,B=!0;for(N=0;N<e.length;N++)if(B&&void 0===e[N].zLabel&&(B=!1),F=e[N].hoverinfo||e[N].trace.hoverinfo){var j=Array.isArray(F)?F:F.split("+");if(-1===j.indexOf("all")&&-1===j.indexOf(i)){I=!1;break}}B&&(I=!1)}var H=d.selectAll("g.axistext").data(I?[0]:[]);function q(e){return e.filter((function(e){return void 0!==e.zLabelVal||(e[L]||"").split(" ")[0]===P}))}if(H.enter().append("g").classed("axistext",!0),H.exit().remove(),H.each((function(){var t=r.select(this),l=o.ensureSingle(t,"path","",(function(e){e.style({"stroke-width":"1px"})})),c=o.ensureSingle(t,"text","",(function(e){e.attr("data-notex",1)})),d=h.bgcolor||f.defaultLine,p=h.bordercolor||f.contrast(d),g=f.contrast(d),m={family:h.font.family||b,size:h.font.size||_,color:h.font.color||g};l.style({fill:d,stroke:p}),c.text(O).call(u.font,m).call(s.positionText,0,0).call(s.convertToTspans,n),t.attr("transform","");var v,y,x=c.node().getBoundingClientRect();if("x"===i){var A="top"===k.side?"-":"";c.attr("text-anchor","middle").call(s.positionText,0,"top"===k.side?z-x.bottom-T-M:z-x.top+T+M),v=k._offset+(w.x0+w.x1)/2,y=S._offset+("top"===k.side?0:S._length);var L=x.width/2+M;v<L?(v=L,l.attr("d","M-"+(L-T)+",0L-"+(L-2*T)+","+A+T+"H"+(M+x.width/2)+"v"+A+(2*M+x.height)+"H-"+L+"V"+A+T+"Z")):v>a.width-L?(v=a.width-L,l.attr("d","M"+(L-T)+",0L"+L+","+A+T+"v"+A+(2*M+x.height)+"H-"+L+"V"+A+T+"H"+(L-2*T)+"Z")):l.attr("d","M0,0L"+T+","+A+T+"H"+(M+x.width/2)+"v"+A+(2*M+x.height)+"H-"+(M+x.width/2)+"V"+A+T+"H-"+T+"Z")}else{var C,P,E;"right"===S.side?(C="start",P=1,E="",v=k._offset+k._length):(C="end",P=-1,E="-",v=k._offset),y=S._offset+(w.y0+w.y1)/2,c.attr("text-anchor",C),l.attr("d","M0,0L"+E+T+","+T+"V"+(M+x.height/2)+"h"+E+(2*M+x.width)+"V-"+(M+x.height/2)+"H"+E+T+"V-"+T+"Z");var D,R=x.height/2,I=z-x.top-R,N="clip"+a._uid+"commonlabel"+S._id;if(v<x.width+2*M+T){D="M-"+(T+M)+"-"+R+"h-"+(x.width-M)+"V"+R+"h"+(x.width-M)+"Z";var F=x.width-v+M;s.positionText(c,F,I),"end"===C&&c.selectAll("tspan").each((function(){var e=r.select(this),t=u.tester.append("text").text(e.text()).call(u.font,m),n=t.node().getBoundingClientRect();Math.round(n.width)<Math.round(x.width)&&e.attr("x",F-n.width),t.remove()}))}else s.positionText(c,P*(M+T),I),D=null;var B=a._topclips.selectAll("#"+N).data(D?[0]:[]);B.enter().append("clipPath").attr("id",N).append("path"),B.exit().remove(),B.select("path").attr("d",D),u.setClipUrl(c,D?N:null,n)}t.attr("transform","translate("+v+","+y+")"),e=q(e)})),g.isUnifiedHover(i)){if(d.selectAll("g.hovertext").remove(),void 0!==O&&w.distance<=t.hoverdistance&&(e=q(e)),0===e.length)return;var V={showlegend:!0,legend:{title:{text:O,font:a.hoverlabel.font},font:a.hoverlabel.font,bgcolor:a.hoverlabel.bgcolor,bordercolor:a.hoverlabel.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},U={};v(V,U,n._fullData);var G=U.legend;G.entries=[];for(var Z=0;Z<e.length;Z++){var W=C(e[Z],!0,i,a,O),Y=W[0],X=W[1],$=e[Z];$.name=X,$.text=""!==X?X+" : "+Y:Y;var Q=$.cd[$.index];Q&&(Q.mc&&($.mc=Q.mc),Q.mcc&&($.mc=Q.mcc),Q.mlc&&($.mlc=Q.mlc),Q.mlcc&&($.mlc=Q.mlcc),Q.mlw&&($.mlw=Q.mlw),Q.mrc&&($.mrc=Q.mrc),Q.dir&&($.dir=Q.dir)),$._distinct=!0,G.entries.push([$])}G.entries.sort((function(e,t){return e[0].trace.index-t[0].trace.index})),G.layer=d,y(n,G);var K=o.mean(e.map((function(e){return(e.y0+e.y1)/2}))),J=o.mean(e.map((function(e){return(e.x0+e.x1)/2}))),ee=d.select("g.legend"),te=ee.node().getBoundingClientRect();J+=k._offset,K+=S._offset-te.height/2;var ne=te.width+2*M;!(J+ne<=D)&&J-ne>=0?J-=ne:J+=2*M;var re=te.height+2*M,ae=K+re>=R;return re<=R&&(K<=z?K=S._offset+2*M:ae&&(K=R-re)),ee.attr("transform","translate("+J+","+K+")"),ee}var ie=d.selectAll("g.hovertext").data(e,(function(e){return A(e)}));return ie.enter().append("g").classed("hovertext",!0).each((function(){var e=r.select(this);e.append("rect").call(f.fill,f.addOpacity(c,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(u.font,b,_)})),ie.exit().remove(),ie.each((function(e){var t=r.select(this).attr("transform",""),o=e.bgcolor||e.color,d=f.combine(f.opacity(o)?o:f.defaultLine,c),p=f.combine(f.opacity(e.color)?e.color:f.defaultLine,c),h=e.borderColor||f.contrast(d),g=C(e,I,i,a,O,t),m=g[0],v=g[1],y=t.select("text.nums").call(u.font,e.fontFamily||b,e.fontSize||_,e.fontColor||h).text(m).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n),w=t.select("text.name"),k=0,A=0;if(v&&v!==m){w.call(u.font,e.fontFamily||b,e.fontSize||_,p).text(v).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n);var S=w.node().getBoundingClientRect();k=S.width+2*M,A=S.height+2*M}else w.remove(),t.select("rect").remove();t.select("path").style({fill:d,stroke:h});var L,P,E=y.node().getBoundingClientRect(),N=e.xa._offset+(e.x0+e.x1)/2,F=e.ya._offset+(e.y0+e.y1)/2,B=Math.abs(e.x1-e.x0),j=Math.abs(e.y1-e.y0),H=E.width+T+M+k;if(e.ty0=z-E.top,e.bx=E.width+2*M,e.by=Math.max(E.height+2*M,A),e.anchor="start",e.txwidth=E.width,e.tx2width=k,e.offset=0,l)e.pos=N,L=F+j/2+H<=R,P=F-j/2-H>=0,"top"!==e.idealAlign&&L||!P?L?(F+=j/2,e.anchor="start"):e.anchor="middle":(F-=j/2,e.anchor="end");else if(e.pos=F,L=N+B/2+H<=D,P=N-B/2-H>=0,"left"!==e.idealAlign&&L||!P)if(L)N+=B/2,e.anchor="start";else{e.anchor="middle";var q=H/2,V=N+q-D,U=N-q;V>0&&(N-=V),U<0&&(N+=-U)}else N-=B/2,e.anchor="end";y.attr("text-anchor",e.anchor),k&&w.attr("text-anchor",e.anchor),t.attr("transform","translate("+N+","+F+")"+(l?"rotate("+x+")":""))})),ie}function C(e,t,n,r,a,i){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=o.templateString(e.name,e.trace._meta)),l=D(e.name,e.nameLength)),void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"<br>"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"<br>"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[n.charAt(0)+"Label"]===a?s=e[("x"===n.charAt(0)?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(s=e.yLabel):s=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(s+=(s?"<br>":"")+e.text),void 0!==e.extraText&&(s+=(s?"<br>":"")+e.extraText),i&&""===s&&!e.hovertemplate&&(""===l&&i.remove(),s=l);var c=r._d3locale,u=e.hovertemplate||!1,f=e.hovertemplateLabels||e,d=e.eventData[0]||{};return u&&(s=(s=o.hovertemplateString(u,f,c,d,e.trace._meta)).replace(S,(function(t,n){return l=D(n,e.nameLength),""}))),[s,l]}function O(e,t){e.each((function(e){var n=r.select(this);if(e.del)return n.remove();var a=n.select("text.nums"),i=e.anchor,o="end"===i?-1:1,l={start:1,end:-1,middle:0}[i],c=l*(T+M),f=c+l*(e.txwidth+M),d=0,p=e.offset;"middle"===i&&(c-=e.tx2width/2,f+=e.txwidth/2+M),t&&(p*=-k,d=e.offset*w),n.select("path").attr("d","middle"===i?"M-"+(e.bx/2+e.tx2width/2)+","+(p-e.by/2)+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(o*T+d)+","+(T+p)+"v"+(e.by/2-T)+"h"+o*e.bx+"v-"+e.by+"H"+(o*T+d)+"V"+(p-T)+"Z");var h=c+d,g=p+e.ty0-e.by/2+M,m=e.textAlign||"auto";"auto"!==m&&("left"===m&&"start"!==i?(a.attr("text-anchor","start"),h="middle"===i?-e.bx/2-e.tx2width/2+M:-e.bx-M):"right"===m&&"end"!==i&&(a.attr("text-anchor","end"),h="middle"===i?e.bx/2-e.tx2width/2-M:e.bx+M)),a.call(s.positionText,h,g),e.tx2width&&(n.select("text.name").call(s.positionText,f+l*M+d,p+e.ty0-e.by/2+M),n.select("rect").call(u.setRect,f+(l-1)*e.tx2width/2+d,p-e.by/2-1,e.tx2width,e.by+2))}))}function P(e,t){var n=e.index,r=e.trace||{},i=e.cd[0],l=e.cd[n]||{};function s(e){return e||a(e)&&0===e}var c=Array.isArray(n)?function(e,t){var a=o.castOption(i,n,e);return s(a)?a:o.extractOption({},r,"",t)}:function(e,t){return o.extractOption(l,r,e,t)};function u(t,n,r){var a=c(n,r);s(a)&&(e[t]=a)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===r.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=o.constrain(e.x0,0,e.xa._length),e.x1=o.constrain(e.x1,0,e.xa._length),e.y0=o.constrain(e.y0,0,e.ya._length),e.y1=o.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:p.hoverLabelText(e.xa,e.xLabelVal),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:p.hoverLabelText(e.ya,e.yLabelVal),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var f=p.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+f+" / -"+p.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+f,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var d=p.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+p.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+d,"y"===t&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&"all"!==h&&(-1===(h=Array.isArray(h)?h:h.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===h.indexOf("y")&&(e.yLabel=void 0),-1===h.indexOf("z")&&(e.zLabel=void 0),-1===h.indexOf("text")&&(e.text=void 0),-1===h.indexOf("name")&&(e.name=void 0)),e}function E(e,t,n){var r,a,o=n.container,l=n.fullLayout,s=l._size,c=n.event,d=!!t.hLinePoint,h=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),h||d){var g=f.combine(l.plot_bgcolor,l.paper_bgcolor);if(d){var m,v,y=t.hLinePoint;r=y&&y.xa,"cursor"===(a=y&&y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=r._offset+y.x,v=a._offset+y.y);var x,b,_=i.readability(y.color,g)<1.5?f.contrast(g):y.color,w=a.spikemode,k=a.spikethickness,T=a.spikecolor||_,M=p.getPxPosition(e,a);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=M,b=m),-1!==w.indexOf("across")){var A=a._counterDomainMin,S=a._counterDomainMax;"free"===a.anchor&&(A=Math.min(A,a.position),S=Math.max(S,a.position)),x=s.l+A*s.w,b=s.l+S*s.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:v,y2:v,"stroke-width":k,stroke:T,"stroke-dasharray":u.dashStyle(a.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:v,y2:v,"stroke-width":k+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:M+("right"!==a.side?k:-k),cy:v,r:k,fill:T}).classed("spikeline",!0)}if(h){var L,C,O=t.vLinePoint;r=O&&O.xa,a=O&&O.ya,"cursor"===r.spikesnap?(L=c.pointerX,C=c.pointerY):(L=r._offset+O.x,C=a._offset+O.y);var P,E,z=i.readability(O.color,g)<1.5?f.contrast(g):O.color,D=r.spikemode,R=r.spikethickness,I=r.spikecolor||z,N=p.getPxPosition(e,r);if(-1!==D.indexOf("toaxis")||-1!==D.indexOf("across")){if(-1!==D.indexOf("toaxis")&&(P=N,E=C),-1!==D.indexOf("across")){var F=r._counterDomainMin,B=r._counterDomainMax;"free"===r.anchor&&(F=Math.min(F,r.position),B=Math.max(B,r.position)),P=s.t+(1-B)*s.h,E=s.t+(1-F)*s.h}o.insert("line",":first-child").attr({x1:L,x2:L,y1:P,y2:E,"stroke-width":R,stroke:I,"stroke-dasharray":u.dashStyle(r.spikedash,R)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:L,x2:L,y1:P,y2:E,"stroke-width":R+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==D.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:L,cy:N-("top"!==r.side?R:-R),r:R,fill:I}).classed("spikeline",!0)}}}function z(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function D(e,t){return s.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}},{"../../lib":178,"../../lib/events":172,"../../lib/override_cursor":189,"../../lib/svg_text_utils":199,"../../plots/cartesian/axes":222,"../../registry":269,"../color":52,"../dragelement":71,"../drawing":74,"../legend/defaults":104,"../legend/draw":105,"./constants":86,"./helpers":88,d3:16,"fast-isnumeric":18,tinycolor2:35}],90:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../color"),i=e("./helpers").isUnifiedHover;t.exports=function(e,t,n,o){function l(e){o.font[e]||(o.font[e]=t.legend?t.legend.font[e]:t.font[e])}o=o||{},t&&i(t.hovermode)&&(o.font||(o.font={}),l("size"),l("family"),l("color"),t.legend?(o.bgcolor||(o.bgcolor=a.combine(t.legend.bgcolor,t.paper_bgcolor)),o.bordercolor||(o.bordercolor=t.legend.bordercolor)):o.bgcolor||(o.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",o.bgcolor),n("hoverlabel.bordercolor",o.bordercolor),n("hoverlabel.namelength",o.namelength),r.coerceFont(n,"hoverlabel.font",o.font),n("hoverlabel.align",o.align)}},{"../../lib":178,"../color":52,"./helpers":88}],91:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t,n){function i(n,i){return void 0!==t[n]?t[n]:r.coerce(e,t,a,n,i)}var o,l=i("clickmode");return t._has("cartesian")?l.indexOf("select")>-1?o="closest":(t._isHoriz=function(e,t){for(var n=t._scatterStackOpts||{},r=0;r<e.length;r++){var a=e[r],i=a.xaxis+a.yaxis,o=(n[i]||{})[a.stackgroup]||{};if("h"!==a.orientation&&"h"!==o.orientation)return!1}return!0}(n,t),o=t._isHoriz?"y":"x"):o="closest",i("hovermode",o)}},{"../../lib":178,"./layout_attributes":93}],92:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),i=e("../dragelement"),o=e("./helpers"),l=e("./layout_attributes"),s=e("./hover");t.exports={moduleType:"component",name:"fx",constants:e("./constants"),schema:{layout:l},attributes:e("./attributes"),layoutAttributes:l,supplyLayoutGlobalDefaults:e("./layout_global_defaults"),supplyDefaults:e("./defaults"),supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(e,t,n){return a.castOption(e,t,"hoverlabel."+n)},castHoverinfo:function(e,t,n){return a.castOption(e,n,"hoverinfo",(function(n){return a.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)}))},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(e){var t=a.isD3Selection(e)?e:r.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:e("./click")}},{"../../lib":178,"../dragelement":71,"./attributes":83,"./calc":84,"./click":85,"./constants":86,"./defaults":87,"./helpers":88,"./hover":89,"./layout_attributes":93,"./layout_defaults":94,"./layout_global_defaults":95,d3:16}],93:[function(e,t,n){"use strict";var r=e("./constants"),a=e("../../plots/font_attributes")({editType:"none"});a.family.dflt=r.HOVERFONT,a.size.dflt=r.HOVERFONTSIZE,t.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:20,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:a,align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},{"../../plots/font_attributes":250,"./constants":86}],94:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./helpers").isUnifiedHover,i=e("./layout_attributes"),o=e("./hovermode_defaults"),l=e("./hoverlabel_defaults");t.exports=function(e,t,n){function s(n,a){return r.coerce(e,t,i,n,a)}var c=o(e,t,n);c&&(s("hoverdistance"),s("spikedistance",a(c)?-1:void 0)),"select"===s("dragmode")&&s("selectdirection");var u=t._has("mapbox"),f=t._has("geo"),d=t._basePlotModules.length;"zoom"===t.dragmode&&((u||f)&&1===d||u&&f&&2===d)&&(t.dragmode="pan"),l(e,t,s)}},{"../../lib":178,"./helpers":88,"./hoverlabel_defaults":90,"./hovermode_defaults":91,"./layout_attributes":93}],95:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./hoverlabel_defaults"),i=e("./layout_attributes");t.exports=function(e,t){a(e,t,(function(n,a){return r.coerce(e,t,i,n,a)}))}},{"../../lib":178,"./hoverlabel_defaults":90,"./layout_attributes":93}],96:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../lib/regex").counter,i=e("../../plots/domain").attributes,o=e("../../plots/cartesian/constants").idRegex,l=e("../../plot_api/plot_template"),s={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[a("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function c(e,t,n){var r=t[n+"axes"],a=Object.keys((e._splomAxes||{})[n]||{});return Array.isArray(r)?r:a.length?a:void 0}function u(e,t,n,r,a,i){var o=t(e+"gap",n),l=t("domain."+e);t(e+"side",r);for(var s=new Array(a),c=l[0],u=(l[1]-c)/(a-o),f=u*(1-o),d=0;d<a;d++){var p=c+u*d;s[i?a-1-d:d]=[p,p+f]}return s}function f(e,t,n,r,a){var i,o=new Array(n);function l(e,n){-1!==t.indexOf(n)&&void 0===r[n]?(o[e]=n,r[n]=e):o[e]=""}if(Array.isArray(e))for(i=0;i<n;i++)l(i,e[i]);else for(l(0,a),i=1;i<n;i++)l(i,a+(i+1));return o}t.exports={moduleType:"component",name:"grid",schema:{layout:{grid:s}},layoutAttributes:s,sizeDefaults:function(e,t){var n=e.grid||{},a=c(t,n,"x"),i=c(t,n,"y");if(e.grid||a||i){var o,f,d=Array.isArray(n.subplots)&&Array.isArray(n.subplots[0]),p=Array.isArray(a),h=Array.isArray(i),g=p&&a!==n.xaxes&&h&&i!==n.yaxes;d?(o=n.subplots.length,f=n.subplots[0].length):(h&&(o=i.length),p&&(f=a.length));var m=l.newContainer(t,"grid"),v=T("rows",o),y=T("columns",f);if(v*y>1){d||p||h||"independent"===T("pattern")&&(d=!0),m._hasSubplotGrid=d;var x,b,_="top to bottom"===T("roworder"),w=d?.2:.1,k=d?.3:.1;g&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),m._domains={x:u("x",T,w,x,y),y:u("y",T,k,b,v,_)}}else delete t.grid}function T(e,t){return r.coerce(n,m,s,e,t)}},contentDefaults:function(e,t){var n=t.grid;if(n&&n._domains){var r,a,i,o,l,s,u,d=e.grid||{},p=t._subplots,h=n._hasSubplotGrid,g=n.rows,m=n.columns,v="independent"===n.pattern,y=n._axisMap={};if(h){var x=d.subplots||[];s=n.subplots=new Array(g);var b=1;for(r=0;r<g;r++){var _=s[r]=new Array(m),w=x[r]||[];for(a=0;a<m;a++)if(v?(l=1===b?"xy":"x"+b+"y"+b,b++):l=w[a],_[a]="",-1!==p.cartesian.indexOf(l)){if(u=l.indexOf("y"),i=l.slice(0,u),o=l.slice(u),void 0!==y[i]&&y[i]!==a||void 0!==y[o]&&y[o]!==r)continue;_[a]=l,y[i]=a,y[o]=r}}}else{var k=c(t,d,"x"),T=c(t,d,"y");n.xaxes=f(k,p.xaxis,m,y,"x"),n.yaxes=f(T,p.yaxis,g,y,"y")}var M=n._anchors={},A="top to bottom"===n.roworder;for(var S in y){var L,C,O,P=S.charAt(0),E=n[P+"side"];if(E.length<8)M[S]="free";else if("x"===P){if("t"===E.charAt(0)===A?(L=0,C=1,O=g):(L=g-1,C=-1,O=-1),h){var z=y[S];for(r=L;r!==O;r+=C)if((l=s[r][z])&&(u=l.indexOf("y"),l.slice(0,u)===S)){M[S]=l.slice(u);break}}else for(r=L;r!==O;r+=C)if(o=n.yaxes[r],-1!==p.cartesian.indexOf(S+o)){M[S]=o;break}}else if("l"===E.charAt(0)?(L=0,C=1,O=m):(L=m-1,C=-1,O=-1),h){var D=y[S];for(r=L;r!==O;r+=C)if((l=s[D][r])&&(u=l.indexOf("y"),l.slice(u)===S)){M[S]=l.slice(0,u);break}}else for(r=L;r!==O;r+=C)if(i=n.xaxes[r],-1!==p.cartesian.indexOf(i+S)){M[S]=i;break}}}}}},{"../../lib":178,"../../lib/regex":193,"../../plot_api/plot_template":212,"../../plots/cartesian/constants":228,"../../plots/domain":249}],97:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/constants"),a=e("../../plot_api/plot_template").templatedArray;t.exports=a("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},{"../../plot_api/plot_template":212,"../../plots/cartesian/constants":228}],98:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib/to_log_range");t.exports=function(e,t,n,i){t=t||{};var o="log"===n&&"linear"===t.type,l="linear"===n&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.images,f=t._id.charAt(0),d=0;d<u.length;d++)if(c="images["+d+"].",(s=u[d])[f+"ref"]===t._id){var p=s[f],h=s["size"+f],g=null,m=null;if(o){g=a(p,t.range);var v=h/Math.pow(10,g)/2;m=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=(g=Math.pow(10,p))*(Math.pow(10,h/2)-Math.pow(10,-h/2));r(g)?r(m)||(m=null):(g=null,m=null),i(c+f,g),i(c+"size"+f,m)}}},{"../../lib/to_log_range":201,"fast-isnumeric":18}],99:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../../plots/array_container_defaults"),o=e("./attributes");function l(e,t,n){function i(n,a){return r.coerce(e,t,o,n,a)}var l=i("source");if(!i("visible",!!l))return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var s={_fullLayout:n},c=["x","y"],u=0;u<2;u++){var f=c[u],d=a.coerceRef(e,t,s,f,"paper");"paper"!==d&&a.getFromId(s,d)._imgIndices.push(t._index),a.coercePosition(t,s,i,d,f,0)}return t}t.exports=function(e,t){i(e,t,{name:"images",handleItemDefaults:l})}},{"../../lib":178,"../../plots/array_container_defaults":218,"../../plots/cartesian/axes":222,"./attributes":97}],100:[function(e,t,n){"use strict";var r=e("d3"),a=e("../drawing"),i=e("../../plots/cartesian/axes"),o=e("../../constants/xmlns_namespaces");t.exports=function(e){var t,n,l=e._fullLayout,s=[],c={},u=[];for(n=0;n<l.images.length;n++){var f=l.images[n];if(f.visible)if("below"===f.layer&&"paper"!==f.xref&&"paper"!==f.yref){t=f.xref+f.yref;var d=l._plots[t];if(!d){u.push(f);continue}d.mainplot&&(t=d.mainplot.id),c[t]||(c[t]=[]),c[t].push(f)}else"above"===f.layer?s.push(f):u.push(f)}var p={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},h={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function g(t){var n=r.select(this);if(this._imgSrc!==t.source)if(n.attr("xmlns",o.svg),t.source&&"data:"===t.source.slice(0,5))n.attr("xlink:href",t.source),this._imgSrc=t.source;else{var a=new Promise(function(e){var r=new Image;function a(){n.remove(),e()}this.img=r,r.setAttribute("crossOrigin","anonymous"),r.onerror=a,r.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d").drawImage(this,0,0);var r=t.toDataURL("image/png");n.attr("xlink:href",r),e()},n.on("error",a),r.src=t.source,this._imgSrc=t.source}.bind(this));e._promises.push(a)}}function m(t){var n=r.select(this),o=i.getFromId(e,t.xref),s=i.getFromId(e,t.yref),c=l._size,u=o?Math.abs(o.l2p(t.sizex)-o.l2p(0)):t.sizex*c.w,f=s?Math.abs(s.l2p(t.sizey)-s.l2p(0)):t.sizey*c.h,d=u*p[t.xanchor].offset,g=f*h[t.yanchor].offset,m=p[t.xanchor].sizing+h[t.yanchor].sizing,v=(o?o.r2p(t.x)+o._offset:t.x*c.w+c.l)+d,y=(s?s.r2p(t.y)+s._offset:c.h-t.y*c.h+c.t)+g;switch(t.sizing){case"fill":m+=" slice";break;case"stretch":m="none"}n.attr({x:v,y:y,width:u,height:f,preserveAspectRatio:m,opacity:t.opacity});var x=(o?o._id:"")+(s?s._id:"");a.setClipUrl(n,x?"clip"+l._uid+x:null,e)}var v=l._imageLowerLayer.selectAll("image").data(u),y=l._imageUpperLayer.selectAll("image").data(s);v.enter().append("image"),y.enter().append("image"),v.exit().remove(),y.exit().remove(),v.each((function(e){g.bind(this)(e),m.bind(this)(e)})),y.each((function(e){g.bind(this)(e),m.bind(this)(e)}));var x=Object.keys(l._plots);for(n=0;n<x.length;n++){t=x[n];var b=l._plots[t];if(b.imagelayer){var _=b.imagelayer.selectAll("image").data(c[t]||[]);_.enter().append("image"),_.exit().remove(),_.each((function(e){g.bind(this)(e),m.bind(this)(e)}))}}}},{"../../constants/xmlns_namespaces":159,"../../plots/cartesian/axes":222,"../drawing":74,d3:16}],101:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"images",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),includeBasePlot:e("../../plots/cartesian/include_components")("images"),draw:e("./draw"),convertCoords:e("./convert_coords")}},{"../../plots/cartesian/include_components":234,"./attributes":97,"./convert_coords":98,"./defaults":99,"./draw":100}],102:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("../color/attributes");t.exports={bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:r({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},x:{valType:"number",min:-2,max:3,editType:"legend"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",min:-2,max:3,editType:"legend"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:r({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left"],editType:"legend"},editType:"legend"},editType:"legend"}},{"../../plots/font_attributes":250,"../color/attributes":51}],103:[function(e,t,n){"use strict";t.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,textGap:40,itemGap:5}},{}],104:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),i=e("../../plot_api/plot_template"),o=e("./attributes"),l=e("../../plots/layout_attributes"),s=e("./helpers");t.exports=function(e,t,n){for(var c=e.legend||{},u=0,f=!1,d="normal",p=0;p<n.length;p++){var h=n[p];h.visible&&((h.showlegend||h._dfltShowLegend&&!(h._module&&h._module.attributes&&h._module.attributes.showlegend&&!1===h._module.attributes.showlegend.dflt))&&(u++,h.showlegend&&(f=!0,(r.traceIs(h,"pie-like")||!0===h._input.showlegend)&&u++)),(r.traceIs(h,"bar")&&"stack"===t.barmode||-1!==["tonextx","tonexty"].indexOf(h.fill))&&(d=s.isGrouped({traceorder:d})?"grouped+reversed":"reversed"),void 0!==h.legendgroup&&""!==h.legendgroup&&(d=s.isReversed({traceorder:d})?"reversed+grouped":"grouped"))}var g=a.coerce(e,t,l,"showlegend",f&&u>1);if(!1!==g||c.uirevision){var m=i.newContainer(t,"legend");if(_("uirevision",t.uirevision),!1!==g){_("bgcolor",t.paper_bgcolor),_("bordercolor"),_("borderwidth"),a.coerceFont(_,"font",t.font);var v,y,x,b=_("orientation");"h"===b?(v=0,r.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(y=1.1,x="bottom"):(y=-.1,x="top")):(v=1.02,y=1,x="auto"),_("traceorder",d),s.isGrouped(t.legend)&&_("tracegroupgap"),_("itemsizing"),_("itemclick"),_("itemdoubleclick"),_("x",v),_("xanchor"),_("y",y),_("yanchor",x),_("valign"),a.noneOrAll(c,m,["x","y"]),_("title.text")&&(_("title.side","h"===b?"left":"top"),a.coerceFont(_,"title.font",t.font))}}function _(e,t){return a.coerce(c,m,o,e,t)}}},{"../../lib":178,"../../plot_api/plot_template":212,"../../plots/layout_attributes":254,"../../registry":269,"./attributes":102,"./helpers":108}],105:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),i=e("../../plots/plots"),o=e("../../registry"),l=e("../../lib/events"),s=e("../dragelement"),c=e("../drawing"),u=e("../color"),f=e("../../lib/svg_text_utils"),d=e("./handle_click"),p=e("./constants"),h=e("../../constants/alignment"),g=h.LINE_SPACING,m=h.FROM_TL,v=h.FROM_BR,y=e("./get_legend_data"),x=e("./style"),b=e("./helpers");function _(e,t,n,r,a){var i=n.data()[0][0].trace,s={event:a,node:n.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&&(s.group=i._group),o.traceIs(i,"pie-like")&&(s.label=n.datum()[0].label),!1!==l.triggerHandler(e,"plotly_legendclick",s)&&(1===r?t._clickTimeout=setTimeout((function(){d(n,e,r)}),e._context.doubleClickDelay):2===r&&(t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==l.triggerHandler(e,"plotly_legenddoubleclick",s)&&d(n,e,r)))}function w(e,t,n){var r,i=e.data()[0][0],l=i.trace,s=o.traceIs(l,"pie-like"),u=l.index,d=n._main&&t._context.edits.legendText&&!s,h=n._maxNameLength;n.entries?r=i.text:(r=s?i.label:l.name,l._meta&&(r=a.templateString(r,l._meta)));var g=a.ensureSingle(e,"text","legendtext");g.attr("text-anchor","start").classed("user-select-none",!0).call(c.font,n.font).text(d?k(r,h):r),f.positionText(g,p.textGap,0),d?g.call(f.makeEditable,{gd:t,text:r}).call(M,e,t,n).on("edit",(function(r){this.text(k(r,h)).call(M,e,t,n);var l=i.trace._fullInput||{},s={};if(o.hasTransform(l,"groupby")){var c=o.getTransformIndices(l,"groupby"),f=c[c.length-1],d=a.keyedContainer(l,"transforms["+f+"].styles","target","value.name");d.set(i.trace._group,r),s=d.constructUpdate()}else s.name=r;return o.call("_guiRestyle",t,s,u)})):M(g,e,t,n)}function k(e,t){var n=Math.max(4,t);if(e&&e.trim().length>=n/2)return e;for(var r=n-(e=e||"").length;r>0;r--)e+=" ";return e}function T(e,t){var n,i=t._context.doubleClickDelay,o=1,l=a.ensureSingle(e,"rect","legendtoggle",(function(e){e.style("cursor","pointer").attr("pointer-events","all").call(u.fill,"rgba(0,0,0,0)")}));l.on("mousedown",(function(){(n=(new Date).getTime())-t._legendMouseDownTime<i?o+=1:(o=1,t._legendMouseDownTime=n)})),l.on("mouseup",(function(){if(!t._dragged&&!t._editing){var n=t._fullLayout.legend;(new Date).getTime()-t._legendMouseDownTime>i&&(o=Math.max(o-1,1)),_(t,n,e,o,r.event)}}))}function M(e,t,n,r){r._main||e.attr("data-notex",!0),f.convertToTspans(e,n,(function(){!function(e,t,n){var r=e.data()[0][0];if(n._main&&r&&!r.trace.showlegend)e.remove();else{var a=e.select("g[class*=math-group]"),i=a.node();n||(n=t._fullLayout.legend);var o,l,s=n.borderwidth,u=(r?n:n.title).font.size*g;if(i){var d=c.bBox(i);o=d.height,l=d.width,r?c.setTranslate(a,0,.25*o):c.setTranslate(a,s,.75*o+s)}else{var h=e.select(r?".legendtext":".legendtitletext"),m=f.lineCount(h),v=h.node();o=u*m,l=v?c.bBox(v).width:0;var y=u*((m-1)/2-.3);r?f.positionText(h,p.textGap,-y):f.positionText(h,p.titlePad+s,u+s)}r?(r.lineHeight=u,r.height=Math.max(o,16)+3,r.width=l):(n._titleWidth=l,n._titleHeight=o)}}(t,n,r)}))}function A(e){return a.isRightAnchor(e)?"right":a.isCenterAnchor(e)?"center":"left"}function S(e){return a.isBottomAnchor(e)?"bottom":a.isMiddleAnchor(e)?"middle":"top"}t.exports=function(e,t){var n,l=e._fullLayout,f="legend"+l._uid;if(t?(n=t.layer,f+="-hover"):((t=l.legend||{})._main=!0,n=l._infolayer),n){var d;if(e._legendMouseDownTime||(e._legendMouseDownTime=0),t._main){if(!e.calcdata)return;d=l.showlegend&&y(e.calcdata,t)}else{if(!t.entries)return;d=y(t.entries,t)}var h=l.hiddenlabels||[];if(t._main&&(!l.showlegend||!d.length))return n.selectAll(".legend").remove(),l._topdefs.select("#"+f).remove(),i.autoMargin(e,"legend");var g=a.ensureSingle(n,"g","legend",(function(e){t._main&&e.attr("pointer-events","all")})),k=a.ensureSingleById(l._topdefs,"clipPath",f,(function(e){e.append("rect")})),L=a.ensureSingle(g,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));L.call(u.stroke,t.bordercolor).call(u.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=a.ensureSingle(g,"g","scrollbox"),O=t.title;if(t._titleWidth=0,t._titleHeight=0,O.text){var P=a.ensureSingle(C,"text","legendtitletext");P.attr("text-anchor","start").classed("user-select-none",!0).call(c.font,O.font).text(O.text),M(P,C,e,t)}var E=a.ensureSingle(g,"rect","scrollbar",(function(e){e.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll("g.groups").data(d);z.enter().append("g").attr("class","groups"),z.exit().remove();var D=z.selectAll("g.traces").data(a.identity);D.enter().append("g").attr("class","traces"),D.exit().remove(),D.style("opacity",(function(e){var t=e[0].trace;return o.traceIs(t,"pie-like")?-1!==h.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){r.select(this).call(w,e,t)})).call(x,e,t).each((function(){t._main&&r.select(this).call(T,e)})),a.syncOrAsync([i.previousPromises,function(){return function(e,t,n,a){var i=e._fullLayout;a||(a=i.legend);var o=i._size,l=b.isVertical(a),s=b.isGrouped(a),u=a.borderwidth,f=2*u,d=p.textGap,h=p.itemGap,g=2*(u+h),m=S(a),v=a.y<0||0===a.y&&"top"===m,y=a.y>1||1===a.y&&"bottom"===m;a._maxHeight=Math.max(v||y?i.height/2:o.h,30);var x=0;a._width=0,a._height=0;var _=function(e){var t=0,n=0,r=e.title.side;return r&&(-1!==r.indexOf("left")&&(t=e._titleWidth),-1!==r.indexOf("top")&&(n=e._titleHeight)),[t,n]}(a);if(l)n.each((function(e){var t=e[0].height;c.setTranslate(this,u+_[0],u+_[1]+a._height+t/2+h),a._height+=t,a._width=Math.max(a._width,e[0].width)})),x=d+a._width,a._width+=h+d+f,a._height+=g,s&&(t.each((function(e,t){c.setTranslate(this,0,t*a.tracegroupgap)})),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var w=A(a),k=a.x<0||0===a.x&&"right"===w,T=a.x>1||1===a.x&&"left"===w,M=y||v,L=i.width/2;a._maxWidth=Math.max(k?M&&"left"===w?o.l+o.w:L:T?M&&"right"===w?o.r+o.w:L:o.w,2*d);var C=0,O=0;n.each((function(e){var t=e[0].width+d;C=Math.max(C,t),O+=t})),x=null;var P=0;if(s){var E=0,z=0,D=0;t.each((function(){var e=0,t=0;r.select(this).selectAll("g.traces").each((function(n){var r=n[0].height;c.setTranslate(this,_[0],_[1]+u+h+r/2+t),t+=r,e=Math.max(e,d+n[0].width)})),E=Math.max(E,t);var n=e+h;n+u+z>a._maxWidth&&(P=Math.max(P,z),z=0,D+=E+a.tracegroupgap,E=t),c.setTranslate(this,z,D),z+=n})),a._width=Math.max(P,z)+u,a._height=D+E+g}else{var R=n.size(),I=O+f+(R-1)*h<a._maxWidth,N=0,F=0,B=0,j=0;n.each((function(e){var t=e[0].height,n=d+e[0].width,r=(I?n:C)+h;r+u+F>a._maxWidth&&(P=Math.max(P,j),F=0,B+=N,a._height+=N,N=0),c.setTranslate(this,_[0]+u+F,_[1]+u+B+t/2+h),j=F+n+h,F+=r,N=Math.max(N,t)})),I?(a._width=F+f,a._height=N+g):(a._width=Math.max(P,j)+f,a._height+=N+g)}}a._width=Math.ceil(Math.max(a._width+_[0],a._titleWidth+2*(u+p.titlePad))),a._height=Math.ceil(Math.max(a._height+_[1],a._titleHeight+2*(u+p.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var H=e._context.edits,q=H.legendText||H.legendPosition;n.each((function(e){var t=r.select(this).select(".legendtoggle"),n=e[0].height,a=q?d:x||d+e[0].width;l||(a+=h/2),c.setRect(t,0,-n/2,a,n)}))}(e,z,D,t)},function(){if(!t._main||!function(e){var t=e._fullLayout.legend,n=A(t),r=S(t);return i.autoMargin(e,"legend",{x:t.x,y:t.y,l:t._width*m[n],r:t._width*v[n],b:t._effHeight*v[r],t:t._effHeight*m[r]})}(e)){var u,d,h,y,x=l._size,b=t.borderwidth,w=x.l+x.w*t.x-m[A(t)]*t._width,T=x.t+x.h*(1-t.y)-m[S(t)]*t._effHeight;if(t._main&&l.margin.autoexpand){var M=w,O=T;w=a.constrain(w,0,l.width-t._width),T=a.constrain(T,0,l.height-t._effHeight),w!==M&&a.log("Constrain legend.x to make legend fit inside graph"),T!==O&&a.log("Constrain legend.y to make legend fit inside graph")}if(t._main&&c.setTranslate(g,w,T),E.on(".drag",null),g.on("wheel",null),!t._main||t._height<=t._maxHeight||e._context.staticPlot){var P=t._effHeight;t._main||(P=t._height),L.attr({width:t._width-b,height:P-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),k.select("rect").attr({width:t._width-2*b,height:P-2*b,x:b,y:b}),c.setClipUrl(C,f,e),c.setRect(E,0,0,0,0),delete t._scrollY}else{var z,D,R,I=Math.max(p.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),N=t._effHeight-I-2*p.scrollBarMargin,F=t._height-t._effHeight,B=N/F,j=Math.min(t._scrollY||0,F);L.attr({width:t._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:t._effHeight-b,x:b/2,y:b/2}),k.select("rect").attr({width:t._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:t._effHeight-2*b,x:b,y:b+j}),c.setClipUrl(C,f,e),V(j,I,B),g.on("wheel",(function(){V(j=a.constrain(t._scrollY+r.event.deltaY/N*F,0,F),I,B),0!==j&&j!==F&&r.event.preventDefault()}));var H=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;z="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,R=j})).on("drag",(function(){var e=r.event.sourceEvent;2===e.buttons||e.ctrlKey||(D="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,V(j=function(e,t,n){var r=(n-t)/B+e;return a.constrain(r,0,F)}(R,z,D),I,B))}));E.call(H);var q=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;"touchstart"===e.type&&(z=e.changedTouches[0].clientY,R=j)})).on("drag",(function(){var e=r.event.sourceEvent;"touchmove"===e.type&&(D=e.changedTouches[0].clientY,V(j=function(e,t,n){var r=(t-n)/B+e;return a.constrain(r,0,F)}(R,z,D),I,B))}));C.call(q)}e._context.edits.legendPosition&&(g.classed("cursor-move",!0),s.init({element:g.node(),gd:e,prepFn:function(){var e=c.getTranslate(g);h=e.x,y=e.y},moveFn:function(e,n){var r=h+e,a=y+n;c.setTranslate(g,r,a),u=s.align(r,0,x.l,x.l+x.w,t.xanchor),d=s.align(a,0,x.t+x.h,x.t,t.yanchor)},doneFn:function(){void 0!==u&&void 0!==d&&o.call("_guiRelayout",e,{"legend.x":u,"legend.y":d})},clickFn:function(t,r){var a=n.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return r.clientX>=e.left&&r.clientX<=e.right&&r.clientY>=e.top&&r.clientY<=e.bottom}));a.size()>0&&_(e,g,a,t,r)}}))}function V(n,r,a){t._scrollY=e._fullLayout.legend._scrollY=n,c.setTranslate(C,0,-n),c.setRect(E,t._width,p.scrollBarMargin+n*a,p.scrollBarWidth,r),k.select("rect").attr("y",b+n)}}],e)}}},{"../../constants/alignment":154,"../../lib":178,"../../lib/events":172,"../../lib/svg_text_utils":199,"../../plots/plots":256,"../../registry":269,"../color":52,"../dragelement":71,"../drawing":74,"./constants":103,"./get_legend_data":106,"./handle_click":107,"./helpers":108,"./style":110,d3:16}],106:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("./helpers");t.exports=function(e,t){var n,i,o={},l=[],s=!1,c={},u=0,f=0,d=t._main;function p(e,n){if(""!==e&&a.isGrouped(t))-1===l.indexOf(e)?(l.push(e),s=!0,o[e]=[[n]]):o[e].push([n]);else{var r="~~i"+u;l.push(r),o[r]=[[n]],u++}}for(n=0;n<e.length;n++){var h=e[n],g=h[0],m=g.trace,v=m.legendgroup;if(!d||m.visible&&m.showlegend)if(r.traceIs(m,"pie-like"))for(c[v]||(c[v]={}),i=0;i<h.length;i++){var y=h[i].label;c[v][y]||(p(v,{label:y,color:h[i].color,i:h[i].i,trace:m,pts:h[i].pts}),c[v][y]=!0,f=Math.max(f,(y||"").length))}else p(v,g),f=Math.max(f,(m.name||"").length)}if(!l.length)return[];var x,b,_=l.length;if(s&&a.isGrouped(t))for(b=new Array(_),n=0;n<_;n++)x=o[l[n]],b[n]=a.isReversed(t)?x.reverse():x;else{for(b=[new Array(_)],n=0;n<_;n++)x=o[l[n]][0],b[0][a.isReversed(t)?_-n-1:n]=x;_=1}return t._lgroupsLength=_,t._maxNameLength=f,b}},{"../../registry":269,"./helpers":108}],107:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry"),i=!0;t.exports=function(e,t,n){var o=t._fullLayout;if(!t._dragged&&!t._editing){var l,s=o.legend.itemclick,c=o.legend.itemdoubleclick;if(1===n&&"toggle"===s&&"toggleothers"===c&&i&&t.data&&t._context.showTips?(r.notifier(r._(t,"Double-click on legend to isolate one trace"),"long"),i=!1):i=!1,1===n?l=s:2===n&&(l=c),l){var u,f,d,p,h,g=o.hiddenlabels?o.hiddenlabels.slice():[],m=e.data()[0][0],v=t._fullData,y=m.trace,x=y.legendgroup,b={},_=[],w=[],k=[];if(a.traceIs(y,"pie-like")){var T=m.label,M=g.indexOf(T);"toggle"===l?-1===M?g.push(T):g.splice(M,1):"toggleothers"===l&&(g=[],t.calcdata[0].forEach((function(e){T!==e.label&&g.push(e.label)})),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===g.length&&-1===M&&(g=[])),a.call("_guiRelayout",t,"hiddenlabels",g)}else{var A,S=x&&x.length,L=[];if(S)for(u=0;u<v.length;u++)(A=v[u]).visible&&A.legendgroup===x&&L.push(u);if("toggle"===l){var C;switch(y.visible){case!0:C="legendonly";break;case!1:C=!1;break;case"legendonly":C=!0}if(S)for(u=0;u<v.length;u++)!1!==v[u].visible&&v[u].legendgroup===x&&F(v[u],C);else F(y,C)}else if("toggleothers"===l){var O,P,E,z,D=!0;for(u=0;u<v.length;u++)if(O=v[u]===y,E=!0!==v[u].showlegend,!(O||E||(P=S&&v[u].legendgroup===x)||!0!==v[u].visible||a.traceIs(v[u],"notLegendIsolatable"))){D=!1;break}for(u=0;u<v.length;u++)if(!1!==v[u].visible&&!a.traceIs(v[u],"notLegendIsolatable"))switch(y.visible){case"legendonly":F(v[u],!0);break;case!0:z=!!D||"legendonly",O=v[u]===y,E=!0!==v[u].showlegend&&!v[u].legendgroup,P=O||S&&v[u].legendgroup===x,F(v[u],!(!P&&!E)||z)}}for(u=0;u<w.length;u++)if(d=w[u]){var R=d.constructUpdate(),I=Object.keys(R);for(f=0;f<I.length;f++)p=I[f],(b[p]=b[p]||[])[k[u]]=R[p]}for(h=Object.keys(b),u=0;u<h.length;u++)for(p=h[u],f=0;f<_.length;f++)b[p].hasOwnProperty(f)||(b[p][f]=void 0);a.call("_guiRestyle",t,b,_)}}}function N(e,t,n){var r=_.indexOf(e),a=b[t];return a||(a=b[t]=[]),-1===_.indexOf(e)&&(_.push(e),r=_.length-1),a[r]=n,r}function F(e,t){var n=e._fullInput;if(a.hasTransform(n,"groupby")){var i=w[n.index];if(!i){var o=a.getTransformIndices(n,"groupby"),l=o[o.length-1];i=r.keyedContainer(n,"transforms["+l+"].styles","target","value.visible"),w[n.index]=i}var s=i.get(e._group);void 0===s&&(s=!0),!1!==s&&i.set(e._group,t),k[n.index]=N(n.index,"visible",!1!==n.visible)}else{var c=!1!==n.visible&&t;N(n.index,"visible",c)}}}},{"../../lib":178,"../../registry":269}],108:[function(e,t,n){"use strict";n.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},n.isVertical=function(e){return"h"!==e.orientation},n.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")}},{}],109:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"legend",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),draw:e("./draw"),style:e("./style")}},{"./attributes":102,"./defaults":104,"./draw":105,"./style":110}],110:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),i=e("../../lib"),o=e("../drawing"),l=e("../color"),s=e("../colorscale/helpers").extractOpts,c=e("../../traces/scatter/subtypes"),u=e("../../traces/pie/style_one"),f=e("../../traces/pie/helpers").castOption;function d(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}t.exports=function(e,t,n){var p=t._fullLayout;n||(n=p.legend);var h="constant"===n.itemsizing,g=function(e,t,n,r){var a;if(e+1)a=e;else{if(!(t&&t.width>0))return 0;a=t.width}return h?r:Math.min(a,n)};function m(e,t,n){var i=e[0].trace,o=i.marker||{},s=o.line||{},c=n?i.visible&&i.type===n:a.traceIs(i,"bar"),u=r.select(t).select("g.legendpoints").selectAll("path.legend"+n).data(c?[e]:[]);u.enter().append("path").classed("legend"+n,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),u.exit().remove(),u.each((function(e){var t=r.select(this),n=e[0],a=g(n.mlw,o.line,5,2);t.style("stroke-width",a+"px").call(l.fill,n.mc||o.color),a&&l.stroke(t,n.mlc||s.color)}))}function v(e,t,n){var o=e[0],l=o.trace,s=n?l.visible&&l.type===n:a.traceIs(l,n),c=r.select(t).select("g.legendpoints").selectAll("path.legend"+n).data(s?[e]:[]);if(c.enter().append("path").classed("legend"+n,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),c.exit().remove(),c.size()){var d=(l.marker||{}).line,p=g(f(d.width,o.pts),d,5,2),h=i.minExtend(l,{marker:{line:{width:p}}});h.marker.line.color=d.color;var m=i.minExtend(o,{trace:h});u(c,m,h)}}e.each((function(e){var t=r.select(this),a=i.ensureSingle(t,"g","layers");a.style("opacity",e[0].trace.opacity);var o=n.valign,l=e[0].lineHeight,s=e[0].height;if("middle"!==o&&l&&s){var c={top:1,bottom:-1}[o]*(.5*(l-s+3));a.attr("transform","translate(0,"+c+")")}else a.attr("transform",null);a.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),a.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var u=a.selectAll("g.legendsymbols").data([e]);u.enter().append("g").classed("legendsymbols",!0),u.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var n,a=e[0].trace,c=[];if(a.visible)switch(a.type){case"histogram2d":case"heatmap":c=[["M-15,-2V4H15V-2Z"]],n=!0;break;case"choropleth":case"choroplethmapbox":c=[["M-6,-6V6H6V-6Z"]],n=!0;break;case"densitymapbox":c=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],n="radial";break;case"cone":c=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],n=!1;break;case"streamtube":c=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],n=!1;break;case"surface":c=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],n=!0;break;case"mesh3d":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!1;break;case"volume":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!0;break;case"isosurface":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],n=!1}var u=r.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(c);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),u.exit().remove(),u.each((function(e,c){var u,f=r.select(this),p=s(a),h=p.colorscale,g=p.reversescale;if(h){if(!n){var m=h.length;u=0===c?h[g?m-1:0][1]:1===c?h[g?0:m-1][1]:h[Math.floor((m-1)/2)][1]}}else{var v=a.vertexcolor||a.facecolor||a.color;u=i.isArrayOrTypedArray(v)?v[c]||v[0]:v}f.attr("d",e[0]),u?f.call(l.fill,u):f.call((function(e){if(e.size()){var r="legendfill-"+a.uid;o.gradient(e,t,r,d(g,"radial"===n),h,"fill")}}))}))})).each((function(e){var t=e[0].trace,n="waterfall"===t.type;if(e[0]._distinct&&n){var a=e[0].trace[e[0].dir].marker;return e[0].mc=a.color,e[0].mlw=a.line.width,e[0].mlc=a.line.color,m(e,this,"waterfall")}var i=[];t.visible&&n&&(i=e[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=r.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),o.exit().remove(),o.each((function(e){var n=r.select(this),a=t[e[0]].marker,i=g(void 0,a.line,5,2);n.attr("d",e[1]).style("stroke-width",i+"px").call(l.fill,a.color),i&&n.call(l.stroke,a.line.color)}))})).each((function(e){m(e,this,"funnel")})).each((function(e){m(e,this)})).each((function(e){var n=e[0].trace,s=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(n.visible&&a.traceIs(n,"box-violin")?[e]:[]);s.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),s.exit().remove(),s.each((function(){var e=r.select(this);if("all"!==n.boxpoints&&"all"!==n.points||0!==l.opacity(n.fillcolor)||0!==l.opacity((n.line||{}).color)){var a=g(void 0,n.line,5,2);e.style("stroke-width",a+"px").call(l.fill,n.fillcolor),a&&l.stroke(e,n.line.color)}else{var c=i.minExtend(n,{marker:{size:h?12:i.constrain(n.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});s.call(o.pointStyle,c,t)}}))})).each((function(e){v(e,this,"funnelarea")})).each((function(e){v(e,this,"pie")})).each((function(e){var n,a,l=e[0],u=l.trace,f=u.visible&&u.fill&&"none"!==u.fill,p=c.hasLines(u),h=u.contours,m=!1,v=!1,y=s(u),x=y.colorscale,b=y.reversescale;if(h){var _=h.coloring;"lines"===_?m=!0:p="none"===_||"heatmap"===_||h.showlines,"constraint"===h.type?f="="!==h._operation:"fill"!==_&&"heatmap"!==_||(v=!0)}var w=c.hasMarkers(u)||c.hasText(u),k=f||v,T=p||m,M=w||!k?"M5,0":T?"M5,-2":"M5,-3",A=r.select(this),S=A.select(".legendfill").selectAll("path").data(f||v?[e]:[]);if(S.enter().append("path").classed("js-fill",!0),S.exit().remove(),S.attr("d",M+"h30v6h-30z").call(f?o.fillGroupStyle:function(e){if(e.size()){var n="legendfill-"+u.uid;o.gradient(e,t,n,d(b),x,"fill")}}),p||m){var L=g(void 0,u.line,10,5);a=i.minExtend(u,{line:{width:L}}),n=[i.minExtend(l,{trace:a})]}var C=A.select(".legendlines").selectAll("path").data(p||m?[n]:[]);C.enter().append("path").classed("js-line",!0),C.exit().remove(),C.attr("d",M+(m?"l30,0.0001":"h30")).call(p?o.lineGroupStyle:function(e){if(e.size()){var n="legendline-"+u.uid;o.lineGroupStyle(e),o.gradient(e,t,n,d(b),x,"stroke")}})})).each((function(e){var n,a,l=e[0],s=l.trace,u=c.hasMarkers(s),f=c.hasText(s),d=c.hasLines(s);function p(e,t,n,r){var a=i.nestedProperty(s,e).get(),o=i.isArrayOrTypedArray(a)&&t?t(a):a;if(h&&o&&void 0!==r&&(o=r),n){if(o<n[0])return n[0];if(o>n[1])return n[1]}return o}function g(e){return l._distinct&&l.index&&e[l.index]?e[l.index]:e[0]}if(u||f||d){var m={},v={};if(u){m.mc=p("marker.color",g),m.mx=p("marker.symbol",g),m.mo=p("marker.opacity",i.mean,[.2,1]),m.mlc=p("marker.line.color",g),m.mlw=p("marker.line.width",i.mean,[0,5],2),v.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var y=p("marker.size",i.mean,[2,16],12);m.ms=y,v.marker.size=y}d&&(v.line={width:p("line.width",g,[0,10],5)}),f&&(m.tx="Aa",m.tp=p("textposition",g),m.ts=10,m.tc=p("textfont.color",g),m.tf=p("textfont.family",g)),n=[i.minExtend(l,m)],(a=i.minExtend(s,v)).selectedpoints=null,a.texttemplate=null}var x=r.select(this).select("g.legendpoints"),b=x.selectAll("path.scatterpts").data(u?n:[]);b.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform","translate(20,0)"),b.exit().remove(),b.call(o.pointStyle,a,t),u&&(n[0].mrc=3);var _=x.selectAll("g.pointtext").data(f?n:[]);_.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),_.exit().remove(),_.selectAll("text").call(o.textPointStyle,a,t)})).each((function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);n.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var a=r.select(this),i=t[n?"increasing":"decreasing"],o=g(void 0,i.line,5,2);a.style("stroke-width",o+"px").call(l.fill,i.fillcolor),o&&l.stroke(a,i.line.color)}))})).each((function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);n.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var a=r.select(this),i=t[n?"increasing":"decreasing"],s=g(void 0,i.line,5,2);a.style("fill","none").call(o.dashLine,i.line.dash,s),s&&l.stroke(a,i.line.color)}))}))}},{"../../lib":178,"../../registry":269,"../../traces/pie/helpers":381,"../../traces/pie/style_one":387,"../../traces/scatter/subtypes":413,"../color":52,"../colorscale/helpers":63,"../drawing":74,d3:16}],111:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../plots/plots"),i=e("../../plots/cartesian/axis_ids"),o=e("../../fonts/ploticon"),l=e("../shapes/draw").eraseActiveShape,s=e("../../lib"),c=s._,u=t.exports={};function f(e,t){var n,a,o=t.currentTarget,l=o.getAttribute("data-attr"),s=o.getAttribute("data-val")||!0,c=e._fullLayout,u={},f=i.list(e,null,!0),d=c._cartesianSpikesEnabled;if("zoom"===l){var p,h="in"===s?.5:2,g=(1+h)/2,m=(1-h)/2;for(a=0;a<f.length;a++)if(!(n=f[a]).fixedrange)if(p=n._name,"auto"===s)u[p+".autorange"]=!0;else if("reset"===s){if(void 0===n._rangeInitial)u[p+".autorange"]=!0;else{var v=n._rangeInitial.slice();u[p+".range[0]"]=v[0],u[p+".range[1]"]=v[1]}void 0!==n._showSpikeInitial&&(u[p+".showspikes"]=n._showSpikeInitial,"on"!==d||n._showSpikeInitial||(d="off"))}else{var y=[n.r2l(n.range[0]),n.r2l(n.range[1])],x=[g*y[0]+m*y[1],g*y[1]+m*y[0]];u[p+".range[0]"]=n.l2r(x[0]),u[p+".range[1]"]=n.l2r(x[1])}}else"hovermode"!==l||"x"!==s&&"y"!==s||(s=c._isHoriz?"y":"x",o.setAttribute("data-val",s)),u[l]=s;c._cartesianSpikesEnabled=d,r.call("_guiRelayout",e,u)}function d(e,t){for(var n=t.currentTarget,a=n.getAttribute("data-attr"),i=n.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],l={},s=a.split("."),c=0;c<o.length;c++)l[o[c]+"."+s[1]]=i;var u="pan"===i?i:"zoom";l.dragmode=u,r.call("_guiRelayout",e,l)}function p(e,t){for(var n=t.currentTarget.getAttribute("data-attr"),a=e._fullLayout,i=a._subplots.gl3d||[],o={},l=0;l<i.length;l++){var s,c=i[l],u=c+".camera",f=c+".aspectratio",d=c+".aspectmode",p=a[c]._scene;"resetLastSave"===n?(o[u+".up"]=p.viewInitial.up,o[u+".eye"]=p.viewInitial.eye,o[u+".center"]=p.viewInitial.center,s=!0):"resetDefault"===n&&(o[u+".up"]=null,o[u+".eye"]=null,o[u+".center"]=null,s=!0),s&&(o[f+".x"]=p.viewInitial.aspectratio.x,o[f+".y"]=p.viewInitial.aspectratio.y,o[f+".z"]=p.viewInitial.aspectratio.z,o[d]=p.viewInitial.aspectmode)}r.call("_guiRelayout",e,o)}function h(e,t){var n=t.currentTarget,r=n._previousVal,a=e._fullLayout,i=a._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(r)s=r,n._previousVal=null;else{for(var c=0;c<i.length;c++){var u=i[c],f=a[u],d=u+".hovermode";l[d]=f.hovermode,s[d]=!1;for(var p=0;p<3;p++){var h=o[p],g=u+"."+h+".showspikes";s[g]=!1,l[g]=f[h].showspikes}}n._previousVal=l}return s}function g(e,t){for(var n=t.currentTarget,a=n.getAttribute("data-attr"),i=n.getAttribute("data-val")||!0,o=e._fullLayout,l=o._subplots.geo||[],s=0;s<l.length;s++){var c=l[s],u=o[c];if("zoom"===a){var f=u.projection.scale,d="in"===i?2*f:.5*f;r.call("_guiRelayout",e,c+".projection.scale",d)}}"reset"===a&&x(e,"geo")}function m(e){var t=e._fullLayout;return!t.hovermode&&(t._has("cartesian")?t._isHoriz?"y":"x":"closest")}function v(e){var t=m(e);r.call("_guiRelayout",e,"hovermode",t)}function y(e,t){for(var n=t.currentTarget.getAttribute("data-val"),a=e._fullLayout,i=a._subplots.mapbox||[],o={},l=0;l<i.length;l++){var s=i[l],c=a[s].zoom,u="in"===n?1.05*c:c/1.05;o[s+".zoom"]=u}r.call("_guiRelayout",e,o)}function x(e,t){for(var n=e._fullLayout,a=n._subplots[t]||[],i={},o=0;o<a.length;o++)for(var l=a[o],s=n[l]._subplot.viewInitial,c=Object.keys(s),u=0;u<c.length;u++){var f=c[u];i[l+"."+f]=s[f]}r.call("_guiRelayout",e,i)}u.toImage={name:"toImage",title:function(e){var t=(e._context.toImageButtonOptions||{}).format||"png";return c(e,"png"===t?"Download plot as a png":"Download plot")},icon:o.camera,click:function(e){var t=e._context.toImageButtonOptions,n={format:t.format||"png"};s.notifier(c(e,"Taking snapshot - this may take a few seconds"),"long"),"svg"!==n.format&&s.isIE()&&(s.notifier(c(e,"IE only supports svg. Changing format to svg."),"long"),n.format="svg"),["filename","width","height","scale"].forEach((function(e){e in t&&(n[e]=t[e])})),r.call("downloadImage",e,n).then((function(t){s.notifier(c(e,"Snapshot succeeded")+" - "+t,"long")})).catch((function(){s.notifier(c(e,"Sorry, there was a problem downloading your snapshot!"),"long")}))}},u.sendDataToCloud={name:"sendDataToCloud",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.disk,click:function(e){a.sendDataToCloud(e)}},u.editInChartStudio={name:"editInChartStudio",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.pencil,click:function(e){a.sendDataToCloud(e)}},u.zoom2d={name:"zoom2d",title:function(e){return c(e,"Zoom")},attr:"dragmode",val:"zoom",icon:o.zoombox,click:f},u.pan2d={name:"pan2d",title:function(e){return c(e,"Pan")},attr:"dragmode",val:"pan",icon:o.pan,click:f},u.select2d={name:"select2d",title:function(e){return c(e,"Box Select")},attr:"dragmode",val:"select",icon:o.selectbox,click:f},u.lasso2d={name:"lasso2d",title:function(e){return c(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:o.lasso,click:f},u.drawclosedpath={name:"drawclosedpath",title:function(e){return c(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:o.drawclosedpath,click:f},u.drawopenpath={name:"drawopenpath",title:function(e){return c(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:o.drawopenpath,click:f},u.drawline={name:"drawline",title:function(e){return c(e,"Draw line")},attr:"dragmode",val:"drawline",icon:o.drawline,click:f},u.drawrect={name:"drawrect",title:function(e){return c(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:o.drawrect,click:f},u.drawcircle={name:"drawcircle",title:function(e){return c(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:o.drawcircle,click:f},u.eraseshape={name:"eraseshape",title:function(e){return c(e,"Erase active shape")},icon:o.eraseshape,click:l},u.zoomIn2d={name:"zoomIn2d",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:f},u.zoomOut2d={name:"zoomOut2d",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:f},u.autoScale2d={name:"autoScale2d",title:function(e){return c(e,"Autoscale")},attr:"zoom",val:"auto",icon:o.autoscale,click:f},u.resetScale2d={name:"resetScale2d",title:function(e){return c(e,"Reset axes")},attr:"zoom",val:"reset",icon:o.home,click:f},u.hoverClosestCartesian={name:"hoverClosestCartesian",title:function(e){return c(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:f},u.hoverCompareCartesian={name:"hoverCompareCartesian",title:function(e){return c(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:o.tooltip_compare,gravity:"ne",click:f},u.zoom3d={name:"zoom3d",title:function(e){return c(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:o.zoombox,click:d},u.pan3d={name:"pan3d",title:function(e){return c(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:o.pan,click:d},u.orbitRotation={name:"orbitRotation",title:function(e){return c(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:o["3d_rotate"],click:d},u.tableRotation={name:"tableRotation",title:function(e){return c(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:o["z-axis"],click:d},u.resetCameraDefault3d={name:"resetCameraDefault3d",title:function(e){return c(e,"Reset camera to default")},attr:"resetDefault",icon:o.home,click:p},u.resetCameraLastSave3d={name:"resetCameraLastSave3d",title:function(e){return c(e,"Reset camera to last save")},attr:"resetLastSave",icon:o.movie,click:p},u.hoverClosest3d={name:"hoverClosest3d",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var n=h(e,t);r.call("_guiRelayout",e,n)}},u.zoomInGeo={name:"zoomInGeo",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:g},u.zoomOutGeo={name:"zoomOutGeo",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:g},u.resetGeo={name:"resetGeo",title:function(e){return c(e,"Reset")},attr:"reset",val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:"hoverClosestGeo",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:v},u.hoverClosestGl2d={name:"hoverClosestGl2d",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:v},u.hoverClosestPie={name:"hoverClosestPie",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:v},u.resetViewSankey={name:"resetSankeyGroup",title:function(e){return c(e,"Reset view")},icon:o.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},n=0;n<e._fullData.length;n++){var a=e._fullData[n]._viewInitial;t["node.groups"].push(a.node.groups.slice()),t["node.x"].push(a.node.x.slice()),t["node.y"].push(a.node.y.slice())}r.call("restyle",e,t)}},u.toggleHover={name:"toggleHover",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var n=h(e,t);n.hovermode=m(e),r.call("_guiRelayout",e,n)}},u.resetViews={name:"resetViews",title:function(e){return c(e,"Reset views")},icon:o.home,click:function(e,t){var n=t.currentTarget;n.setAttribute("data-attr","zoom"),n.setAttribute("data-val","reset"),f(e,t),n.setAttribute("data-attr","resetLastSave"),p(e,t),x(e,"geo"),x(e,"mapbox")}},u.toggleSpikelines={name:"toggleSpikelines",title:function(e){return c(e,"Toggle Spike Lines")},icon:o.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,n=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled="on"===n?"off":"on",r.call("_guiRelayout",e,function(e){for(var t="on"===e._fullLayout._cartesianSpikesEnabled,n=i.list(e,null,!0),r={},a=0;a<n.length;a++){var o=n[a];r[o._name+".showspikes"]=!!t||o._showSpikeInitial}return r}(e))}},u.resetViewMapbox={name:"resetViewMapbox",title:function(e){return c(e,"Reset view")},attr:"reset",icon:o.home,click:function(e){x(e,"mapbox")}},u.zoomInMapbox={name:"zoomInMapbox",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:"zoomOutMapbox",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:y}},{"../../fonts/ploticon":162,"../../lib":178,"../../plots/cartesian/axis_ids":225,"../../plots/plots":256,"../../registry":269,"../shapes/draw":133}],112:[function(e,t,n){"use strict";n.manage=e("./manage")},{"./manage":113}],113:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axis_ids"),a=e("../../traces/scatter/subtypes"),i=e("../../registry"),o=e("../fx/helpers").isUnifiedHover,l=e("./modebar"),s=e("./buttons");t.exports=function(e){var t=e._fullLayout,n=e._context,u=t._modeBar;if(n.displayModeBar||n.watermark){if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var f,d=n.modeBarButtons;f=Array.isArray(d)&&d.length?function(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=0;r<n.length;r++){var a=n[r];if("string"==typeof a){if(void 0===s[a])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));e[t][r]=s[a]}}return e}(d):!n.displayModeBar&&n.watermark?[]:function(e){var t=e._fullLayout,n=e._fullData,l=e._context,u=l.modeBarButtonsToRemove,f=l.modeBarButtonsToAdd,d=t._has("cartesian"),p=t._has("gl3d"),h=t._has("geo"),g=t._has("pie"),m=t._has("funnelarea"),v=t._has("gl2d"),y=t._has("ternary"),x=t._has("mapbox"),b=t._has("polar"),_=t._has("sankey"),w=function(e){for(var t=r.list({_fullLayout:e},null,!0),n=0;n<t.length;n++)if(!t[n].fixedrange)return!1;return!0}(t),k=o(t.hovermode),T=[];function M(e){if(e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n];-1===u.indexOf(r)&&t.push(s[r])}T.push(t)}}var A=["toImage"];l.showEditInChartStudio?A.push("editInChartStudio"):l.showSendToCloud&&A.push("sendDataToCloud"),M(A);var S=[],L=[],C=[],O=[];if((d||v||g||m||y)+h+p+x+b>1?(L=["toggleHover"],C=["resetViews"]):h?(S=["zoomInGeo","zoomOutGeo"],L=["hoverClosestGeo"],C=["resetGeo"]):p?(L=["hoverClosest3d"],C=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(S=["zoomInMapbox","zoomOutMapbox"],L=["toggleHover"],C=["resetViewMapbox"]):v?L=["hoverClosestGl2d"]:g?L=["hoverClosestPie"]:_?(L=["hoverClosestCartesian","hoverCompareCartesian"],C=["resetViewSankey"]):L=["toggleHover"],d&&(L=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(e){for(var t=0;t<e.length;t++)if(!i.traceIs(e[t],"noHover"))return!1;return!0}(n)||k)&&(L=[]),!d&&!v||w||(S=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==C[0]&&(C=["resetScale2d"])),p?O=["zoom3d","pan3d","orbitRotation","tableRotation"]:(d||v)&&!w||y?O=["zoom2d","pan2d"]:x||h?O=["pan2d"]:b&&(O=["zoom2d"]),function(e){for(var t=!1,n=0;n<e.length&&!t;n++){var r=e[n];r._module&&r._module.selectPoints&&(i.traceIs(r,"scatter-like")?(a.hasMarkers(r)||a.hasText(r))&&(t=!0):i.traceIs(r,"box-violin")&&"all"!==r.boxpoints&&"all"!==r.points||(t=!0))}return t}(n)&&O.push("select2d","lasso2d"),Array.isArray(f)){for(var P=[],E=0;E<f.length;E++){var z=f[E];"string"==typeof z?-1!==c.indexOf(z)&&(t._has("mapbox")||t._has("cartesian"))&&O.push(z):P.push(z)}f=P}return M(O),M(S.concat(C)),M(L),function(e,t){if(t.length)if(Array.isArray(t[0]))for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e}(T,f)}(e),u?u.update(e,f):t._modeBar=l(e,f)}else u&&(u.destroy(),delete t._modeBar)};var c=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"]},{"../../plots/cartesian/axis_ids":225,"../../registry":269,"../../traces/scatter/subtypes":413,"../fx/helpers":88,"./buttons":111,"./modebar":114}],114:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("../../lib"),o=e("../../fonts/ploticon"),l=new DOMParser;function s(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var c=s.prototype;c.update=function(e,t){this.graphInfo=e;var n=this.graphInfo._context,r=this.graphInfo._fullLayout,a="modebar-"+r._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar","hover"===n.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===r.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var o=r.modebar,l="hover"===n.displayModeBar?".js-plotly-plot .plotly:hover ":"";i.deleteRelatedStyleRule(a),i.addRelatedStyleRule(a,l+"#"+a+" .modebar-group","background-color: "+o.bgcolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn .icon path","fill: "+o.color),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn:hover .icon path","fill: "+o.activecolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn.active .icon path","fill: "+o.activecolor);var s=!this.hasButtons(t),c=this.hasLogo!==n.displaylogo,u=this.locale!==n.locale;if(this.locale=n.locale,(s||c||u)&&(this.removeAllButtons(),this.updateButtons(t),n.watermark||n.displaylogo)){var f=this.getLogo();n.watermark&&(f.className=f.className+" watermark"),"v"===r.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(e){var n=t.createGroup();e.forEach((function(e){var r=e.name;if(!r)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(r))throw new Error("button name '"+r+"' is taken");t.buttonsNames.push(r);var a=t.createButton(e);t.buttonElements.push(a),n.appendChild(a)})),t.element.appendChild(n)}))},c.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},c.createButton=function(e){var t=this,n=document.createElement("a");n.setAttribute("rel","tooltip"),n.className="modebar-btn";var a=e.title;void 0===a?a=e.name:"function"==typeof a&&(a=a(this.graphInfo)),(a||0===a)&&n.setAttribute("data-title",a),void 0!==e.attr&&n.setAttribute("data-attr",e.attr);var i=e.val;if(void 0!==i&&("function"==typeof i&&(i=i(this.graphInfo)),n.setAttribute("data-val",i)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");n.addEventListener("click",(function(n){e.click(t.graphInfo,n),t.updateActiveButton(n.currentTarget)})),n.setAttribute("data-toggle",e.toggle||!1),e.toggle&&r.select(n).classed("active",!0);var l=e.icon;return"function"==typeof l?n.appendChild(l()):n.appendChild(this.createIcon(l||o.question)),n.setAttribute("data-gravity",e.gravity||"n"),n},c.createIcon=function(e){var t,n=a(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(r,"svg")).setAttribute("viewBox",[0,0,e.width,n].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):void 0!==e.ascent&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),t.appendChild(i)}return e.svg&&(t=l.parseFromString(e.svg,"application/xml").childNodes[0]),t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},c.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,n=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach((function(e){var a=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=r.select(e);if(l)o===n&&s.classed("active",!s.classed("active"));else{var c=null===o?o:i.nestedProperty(t,o).get();s.classed("active",c===a)}}))},c.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r<e[n].length;r++)if(e[n][r].name!==t[n][r].name)return!1}return!0},c.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",i._(this.graphInfo,"Produced with Plotly")),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(o.newplotlylogo)),e.appendChild(t),e},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){i.removeElement(this.container.querySelector(".modebar")),i.deleteRelatedStyleRule(this._uid)},t.exports=function(e,t){var n=e._fullLayout,a=new s({graphInfo:e,container:n._modebardiv.node(),buttons:t});return n._privateplot&&r.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}},{"../../fonts/ploticon":162,"../../lib":178,d3:16,"fast-isnumeric":18}],115:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("../color/attributes"),i=(0,e("../../plot_api/plot_template").templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});t.exports={visible:{valType:"boolean",editType:"plot"},buttons:i,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:r({editType:"plot"}),bgcolor:{valType:"color",dflt:a.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},{"../../plot_api/plot_template":212,"../../plots/font_attributes":250,"../color/attributes":51}],116:[function(e,t,n){"use strict";t.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],117:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../color"),i=e("../../plot_api/plot_template"),o=e("../../plots/array_container_defaults"),l=e("./attributes"),s=e("./constants");function c(e,t,n,a){var i=a.calendar;function o(n,a){return r.coerce(e,t,l.buttons,n,a)}if(o("visible")){var s=o("step");"all"!==s&&(!i||"gregorian"===i||"month"!==s&&"year"!==s?o("stepmode"):t.stepmode="backward",o("count")),o("label")}}t.exports=function(e,t,n,u,f){var d=e.rangeselector||{},p=i.newContainer(t,"rangeselector");function h(e,t){return r.coerce(d,p,l,e,t)}if(h("visible",o(d,p,{name:"buttons",handleItemDefaults:c,calendar:f}).length>0)){var g=function(e,t,n){for(var r=n.filter((function(n){return t[n].anchor===e._id})),a=0,i=0;i<r.length;i++){var o=t[r[i]].domain;o&&(a=Math.max(o[1],a))}return[e.domain[0],a+s.yPad]}(t,n,u);h("x",g[0]),h("y",g[1]),r.noneOrAll(e,t,["x","y"]),h("xanchor"),h("yanchor"),r.coerceFont(h,"font",n.font);var m=h("bgcolor");h("activecolor",a.contrast(m,s.lightAmount,s.darkAmount)),h("bordercolor"),h("borderwidth")}}},{"../../lib":178,"../../plot_api/plot_template":212,"../../plots/array_container_defaults":218,"../color":52,"./attributes":115,"./constants":116}],118:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),i=e("../../plots/plots"),o=e("../color"),l=e("../drawing"),s=e("../../lib"),c=e("../../lib/svg_text_utils"),u=e("../../plots/cartesian/axis_ids"),f=e("../../constants/alignment"),d=f.LINE_SPACING,p=f.FROM_TL,h=f.FROM_BR,g=e("./constants"),m=e("./get_update_object");function v(e){return e._id}function y(e,t,n){var r=s.ensureSingle(e,"rect","selector-rect",(function(e){e.attr("shape-rendering","crispEdges")}));r.attr({rx:g.rx,ry:g.ry}),r.call(o.stroke,t.bordercolor).call(o.fill,function(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}(t,n)).style("stroke-width",t.borderwidth+"px")}function x(e,t,n,r){var a,i;s.ensureSingle(e,"text","selector-text",(function(e){e.classed("user-select-none",!0).attr("text-anchor","middle")})).call(l.font,t.font).text((a=n,i=r._fullLayout._meta,a.label?i?s.templateString(a.label,i):a.label:"all"===a.step?"all":a.count+a.step.charAt(0))).call((function(e){c.convertToTspans(e,r)}))}t.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=u.list(e,"x",!0),n=[],r=0;r<t.length;r++){var a=t[r];a.rangeselector&&a.rangeselector.visible&&n.push(a)}return n}(e),v);t.enter().append("g").classed("rangeselector",!0),t.exit().remove(),t.style({cursor:"pointer","pointer-events":"all"}),t.each((function(t){var n=r.select(this),o=t,u=o.rangeselector,f=n.selectAll("g.button").data(s.filterVisible(u.buttons));f.enter().append("g").classed("button",!0),f.exit().remove(),f.each((function(t){var n=r.select(this),i=m(o,t);t._isActive=function(e,t,n){if("all"===t.step)return!0===e.autorange;var r=Object.keys(n);return e.range[0]===n[r[0]]&&e.range[1]===n[r[1]]}(o,t,i),n.call(y,u,t),n.call(x,u,t,e),n.on("click",(function(){e._dragged||a.call("_guiRelayout",e,i)})),n.on("mouseover",(function(){t._isHovered=!0,n.call(y,u,t)})),n.on("mouseout",(function(){t._isHovered=!1,n.call(y,u,t)}))})),function(e,t,n,a,o){var u=0,f=0,m=n.borderwidth;t.each((function(){var e=r.select(this).select(".selector-text"),t=n.font.size*d,a=Math.max(t*c.lineCount(e),16)+3;f=Math.max(f,a)})),t.each((function(){var e=r.select(this),t=e.select(".selector-rect"),a=e.select(".selector-text"),i=a.node()&&l.bBox(a.node()).width,o=n.font.size*d,s=c.lineCount(a),p=Math.max(i+10,g.minButtonWidth);e.attr("transform","translate("+(m+u)+","+m+")"),t.attr({x:0,y:0,width:p,height:f}),c.positionText(a,p/2,f/2-(s-1)*o/2+3),u+=p+5}));var v=e._fullLayout._size,y=v.l+v.w*n.x,x=v.t+v.h*(1-n.y),b="left";s.isRightAnchor(n)&&(y-=u,b="right"),s.isCenterAnchor(n)&&(y-=u/2,b="center");var _="top";s.isBottomAnchor(n)&&(x-=f,_="bottom"),s.isMiddleAnchor(n)&&(x-=f/2,_="middle"),u=Math.ceil(u),f=Math.ceil(f),y=Math.round(y),x=Math.round(x),i.autoMargin(e,a+"-range-selector",{x:n.x,y:n.y,l:u*p[b],r:u*h[b],b:f*h[_],t:f*p[_]}),o.attr("transform","translate("+y+","+x+")")}(e,f,u,o._name,n)}))}},{"../../constants/alignment":154,"../../lib":178,"../../lib/svg_text_utils":199,"../../plots/cartesian/axis_ids":225,"../../plots/plots":256,"../../registry":269,"../color":52,"../drawing":74,"./constants":116,"./get_update_object":119,d3:16}],119:[function(e,t,n){"use strict";var r=e("d3");t.exports=function(e,t){var n=e._name,a={};if("all"===t.step)a[n+".autorange"]=!0;else{var i=function(e,t){var n,a=e.range,i=new Date(e.r2l(a[1])),o=t.step,l=t.count;switch(t.stepmode){case"backward":n=e.l2r(+r.time[o].utc.offset(i,-l));break;case"todate":var s=r.time[o].utc.offset(i,-l);n=e.l2r(+r.time[o].utc.ceil(s))}var c=a[1];return[n,c]}(e,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a}},{d3:16}],120:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:e("./attributes")}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),draw:e("./draw")}},{"./attributes":115,"./defaults":117,"./draw":118}],121:[function(e,t,n){"use strict";var r=e("../color/attributes");t.exports={bgcolor:{valType:"color",dflt:r.background,editType:"plot"},bordercolor:{valType:"color",dflt:r.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},{"../color/attributes":51}],122:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axis_ids").list,a=e("../../plots/cartesian/autorange").getAutoRange,i=e("./constants");t.exports=function(e){for(var t=r(e,"x",!0),n=0;n<t.length;n++){var o=t[n],l=o[i.name];l&&l.visible&&l.autorange&&(l._input.autorange=!0,l._input.range=l.range=a(e,o))}}},{"../../plots/cartesian/autorange":221,"../../plots/cartesian/axis_ids":225,"./constants":123}],123:[function(e,t,n){"use strict";t.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],124:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plot_api/plot_template"),i=e("../../plots/cartesian/axis_ids"),o=e("./attributes"),l=e("./oppaxis_attributes");t.exports=function(e,t,n){var s=e[n],c=t[n];if(s.rangeslider||t._requestRangeslider[c._id]){r.isPlainObject(s.rangeslider)||(s.rangeslider={});var u,f,d=s.rangeslider,p=a.newContainer(c,"rangeslider");if(_("visible")){_("bgcolor",t.plot_bgcolor),_("bordercolor"),_("borderwidth"),_("thickness"),_("autorange",!c.isValidRange(d.range)),_("range");var h=t._subplots;if(h)for(var g=h.cartesian.filter((function(e){return e.substr(0,e.indexOf("y"))===i.name2id(n)})).map((function(e){return e.substr(e.indexOf("y"),e.length)})),m=r.simpleMap(g,i.id2name),v=0;v<m.length;v++){var y=m[v];u=d[y]||{},f=a.newContainer(p,y,"yaxis");var x,b=t[y];u.range&&b.isValidRange(u.range)&&(x="fixed"),"match"!==w("rangemode",x)&&w("range",b.range.slice())}p._input=d}}function _(e,t){return r.coerce(d,p,o,e,t)}function w(e,t){return r.coerce(u,f,l,e,t)}}},{"../../lib":178,"../../plot_api/plot_template":212,"../../plots/cartesian/axis_ids":225,"./attributes":121,"./oppaxis_attributes":128}],125:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),i=e("../../plots/plots"),o=e("../../lib"),l=e("../drawing"),s=e("../color"),c=e("../titles"),u=e("../../plots/cartesian"),f=e("../../plots/cartesian/axis_ids"),d=e("../dragelement"),p=e("../../lib/setcursor"),h=e("./constants");function g(e,t,n,r){var a=o.ensureSingle(e,"rect",h.bgClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),i=r.borderwidth%2==0?r.borderwidth:r.borderwidth-1,s=-r._offsetShift,c=l.crispRound(t,r.borderwidth);a.attr({width:r._width+i,height:r._height+i,transform:"translate("+s+","+s+")",fill:r.bgcolor,stroke:r.bordercolor,"stroke-width":c})}function m(e,t,n,r){var a=t._fullLayout;o.ensureSingleById(a._topdefs,"clipPath",r._clipId,(function(e){e.append("rect").attr({x:0,y:0})})).select("rect").attr({width:r._width,height:r._height})}function v(e,t,n,a){var s,c=t.calcdata,d=e.selectAll("g."+h.rangePlotClassName).data(n._subplotsWith,o.identity);d.enter().append("g").attr("class",(function(e){return h.rangePlotClassName+" "+e})).call(l.setClipUrl,a._clipId,t),d.order(),d.exit().remove(),d.each((function(e,o){var l=r.select(this),d=0===o,p=f.getFromId(t,e,"y"),h=p._name,g=a[h],m={data:[],layout:{xaxis:{type:n.type,domain:[0,1],range:a.range.slice(),calendar:n.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};n.rangebreaks&&(m.layout.xaxis.rangebreaks=n.rangebreaks),m.layout[h]={type:p.type,domain:[0,1],range:"match"!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&&(m.layout[h].rangebreaks=p.rangebreaks),i.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[h];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:e,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};d?s=x:(x.mainplot="xy",x.mainplotinfo=s),u.rangePlot(t,x,function(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r],i=a[0].trace;i.xaxis+i.yaxis===t&&n.push(a)}return n}(c,e))}))}function y(e,t,n,r,a){o.ensureSingle(e,"rect",h.maskMinClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})).attr("height",r._height).call(s.fill,h.maskColor),o.ensureSingle(e,"rect",h.maskMaxClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("height",r._height).call(s.fill,h.maskColor),"match"!==a.rangemode&&(o.ensureSingle(e,"rect",h.maskMinOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",r._width).call(s.fill,h.maskOppAxisColor),o.ensureSingle(e,"rect",h.maskMaxOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",r._width).style("border-top",h.maskOppBorder).call(s.fill,h.maskOppAxisColor))}function x(e,t,n,r){t._context.staticPlot||o.ensureSingle(e,"rect",h.slideBoxClassName,(function(e){e.attr({y:0,cursor:h.slideBoxCursor,"shape-rendering":"crispEdges"})})).attr({height:r._height,fill:h.slideBoxFill})}function b(e,t,n,r){var a=o.ensureSingle(e,"g",h.grabberMinClassName),i=o.ensureSingle(e,"g",h.grabberMaxClassName),l={x:0,width:h.handleWidth,rx:h.handleRadius,fill:s.background,stroke:s.defaultLine,"stroke-width":h.handleStrokeWidth,"shape-rendering":"crispEdges"},c={y:Math.round(r._height/4),height:Math.round(r._height/2)};if(o.ensureSingle(a,"rect",h.handleMinClassName,(function(e){e.attr(l)})).attr(c),o.ensureSingle(i,"rect",h.handleMaxClassName,(function(e){e.attr(l)})).attr(c),!t._context.staticPlot){var u={width:h.grabAreaWidth,x:0,y:0,fill:h.grabAreaFill,cursor:h.grabAreaCursor};o.ensureSingle(a,"rect",h.grabAreaMinClassName,(function(e){e.attr(u)})).attr("height",r._height),o.ensureSingle(i,"rect",h.grabAreaMaxClassName,(function(e){e.attr(u)})).attr("height",r._height)}}t.exports=function(e){for(var t=e._fullLayout,n=t._rangeSliderData,i=0;i<n.length;i++){var l=n[i][h.name];l._clipId=l._id+"-"+t._uid}var s=t._infolayer.selectAll("g."+h.containerClassName).data(n,(function(e){return e._name}));s.exit().each((function(e){var n=e[h.name];t._topdefs.select("#"+n._clipId).remove()})).remove(),0!==n.length&&(s.enter().append("g").classed(h.containerClassName,!0).attr("pointer-events","all"),s.each((function(n){var i=r.select(this),l=n[h.name],s=t[f.id2name(n.anchor)],u=l[f.id2name(n.anchor)];if(l.range){var _,w=o.simpleMap(l.range,n.r2l),k=o.simpleMap(n.range,n.r2l);_=k[0]<k[1]?[Math.min(w[0],k[0]),Math.max(w[1],k[1])]:[Math.max(w[0],k[0]),Math.min(w[1],k[1])],l.range=l._input.range=o.simpleMap(_,n.l2r)}n.cleanRange("rangeslider.range");var T=t._size,M=n.domain;l._width=T.w*(M[1]-M[0]);var A=Math.round(T.l+T.w*M[0]),S=Math.round(T.t+T.h*(1-n._counterDomainMin)+("bottom"===n.side?n._depth:0)+l._offsetShift+h.extraPad);i.attr("transform","translate("+A+","+S+")"),l._rl=o.simpleMap(l.range,n.r2l);var L=l._rl[0],C=l._rl[1],O=C-L;if(l.p2d=function(e){return e/l._width*O+L},l.d2p=function(e){return(e-L)/O*l._width},n.rangebreaks){var P=n.locateBreaks(L,C);if(P.length){var E,z,D=0;for(E=0;E<P.length;E++)D+=(z=P[E]).max-z.min;var R=l._width/(C-L-D),I=[-R*L];for(E=0;E<P.length;E++)z=P[E],I.push(I[I.length-1]-R*(z.max-z.min));for(l.d2p=function(e){for(var t=I[0],n=0;n<P.length;n++){var r=P[n];if(e>=r.max)t=I[n+1];else if(e<r.min)break}return t+R*e},E=0;E<P.length;E++)(z=P[E]).pmin=l.d2p(z.min),z.pmax=l.d2p(z.max);l.p2d=function(e){for(var t=I[0],n=0;n<P.length;n++){var r=P[n];if(e>=r.pmax)t=I[n+1];else if(e<r.pmin)break}return(e-t)/R}}}if("match"!==u.rangemode){var N=s.r2l(u.range[0]),F=s.r2l(u.range[1])-N;l.d2pOppAxis=function(e){return(e-N)/F*l._height}}i.call(g,e,n,l).call(m,e,n,l).call(v,e,n,l).call(y,e,n,l,u).call(x,e,n,l).call(b,e,n,l),function(e,t,n,i){var l=e.select("rect."+h.slideBoxClassName).node(),s=e.select("rect."+h.grabAreaMinClassName).node(),c=e.select("rect."+h.grabAreaMaxClassName).node();e.on("mousedown",(function(){var u=r.event,f=u.target,h=u.clientX,g=h-e.node().getBoundingClientRect().left,m=i.d2p(n._rl[0]),v=i.d2p(n._rl[1]),y=d.coverSlip();function x(e){var u,d,x,b=+e.clientX-h;switch(f){case l:x="ew-resize",u=m+b,d=v+b;break;case s:x="col-resize",u=m+b,d=v;break;case c:x="col-resize",u=m,d=v+b;break;default:x="ew-resize",u=g,d=g+b}if(d<u){var _=d;d=u,u=_}i._pixelMin=u,i._pixelMax=d,p(r.select(y),x),function(e,t,n,r){function i(e){return n.l2r(o.constrain(e,r._rl[0],r._rl[1]))}var l=i(r.p2d(r._pixelMin)),s=i(r.p2d(r._pixelMax));window.requestAnimationFrame((function(){a.call("_guiRelayout",t,n._name+".range",[l,s])}))}(0,t,n,i)}y.addEventListener("mousemove",x),y.addEventListener("mouseup",(function e(){y.removeEventListener("mousemove",x),y.removeEventListener("mouseup",e),o.removeElement(y)}))}))}(i,e,n,l),function(e,t,n,r,a,i){var l=h.handleWidth/2;function s(e){return o.constrain(e,0,r._width)}function c(e){return o.constrain(e,0,r._height)}function u(e){return o.constrain(e,-l,r._width+l)}var f=s(r.d2p(n._rl[0])),d=s(r.d2p(n._rl[1]));if(e.select("rect."+h.slideBoxClassName).attr("x",f).attr("width",d-f),e.select("rect."+h.maskMinClassName).attr("width",f),e.select("rect."+h.maskMaxClassName).attr("x",d).attr("width",r._width-d),"match"!==i.rangemode){var p=r._height-c(r.d2pOppAxis(a._rl[1])),g=r._height-c(r.d2pOppAxis(a._rl[0]));e.select("rect."+h.maskMinOppAxisClassName).attr("x",f).attr("height",p).attr("width",d-f),e.select("rect."+h.maskMaxOppAxisClassName).attr("x",f).attr("y",g).attr("height",r._height-g).attr("width",d-f),e.select("rect."+h.slideBoxClassName).attr("y",p).attr("height",g-p)}var m=Math.round(u(f-l))-.5,v=Math.round(u(d-l))+.5;e.select("g."+h.grabberMinClassName).attr("transform","translate("+m+",0.5)"),e.select("g."+h.grabberMaxClassName).attr("transform","translate("+v+",0.5)")}(i,0,n,l,s,u),"bottom"===n.side&&c.draw(e,n._id+"title",{propContainer:n,propName:n._name+".title",placeholder:t._dfltTitle.x,attributes:{x:n._offset+n._length/2,y:S+l._height+l._offsetShift+10+1.5*n.title.font.size,"text-anchor":"middle"}})})))}},{"../../lib":178,"../../lib/setcursor":197,"../../plots/cartesian":235,"../../plots/cartesian/axis_ids":225,"../../plots/plots":256,"../../registry":269,"../color":52,"../dragelement":71,"../drawing":74,"../titles":147,"./constants":123,d3:16}],126:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axis_ids"),a=e("../../lib/svg_text_utils"),i=e("./constants"),o=e("../../constants/alignment").LINE_SPACING,l=i.name;function s(e){var t=e&&e[l];return t&&t.visible}n.isVisible=s,n.makeData=function(e){var t=r.list({_fullLayout:e},"x",!0),n=e.margin,a=[];if(!e._has("gl2d"))for(var i=0;i<t.length;i++){var o=t[i];if(s(o)){a.push(o);var c=o[l];c._id=l+o._id,c._height=(e.height-n.b-n.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}e._rangeSliderData=a},n.autoMarginOpts=function(e,t){var n=e._fullLayout,r=t[l],s=t._id.charAt(0),c=0,u=0;return"bottom"===t.side&&(c=t._depth,t.title.text!==n._dfltTitle[s]&&(u=1.5*t.title.font.size+10+r._offsetShift,u+=(t.title.text.match(a.BR_TAG_ALL)||[]).length*t.title.font.size*o)),{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:r._height+c+Math.max(n.margin.b,u),pad:i.extraPad+2*r._offsetShift}}},{"../../constants/alignment":154,"../../lib/svg_text_utils":199,"../../plots/cartesian/axis_ids":225,"./constants":123}],127:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),i=e("./oppaxis_attributes"),o=e("./helpers");t.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:r.extendFlat({},a,{yaxis:i})}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),calcAutorange:e("./calc_autorange"),draw:e("./draw"),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{"../../lib":178,"./attributes":121,"./calc_autorange":122,"./defaults":124,"./draw":125,"./helpers":126,"./oppaxis_attributes":128}],128:[function(e,t,n){"use strict";t.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},{}],129:[function(e,t,n){"use strict";var r=e("../annotations/attributes"),a=e("../../traces/scatter/attributes").line,i=e("../drawing/attributes").dash,o=e("../../lib/extend").extendFlat,l=e("../../plot_api/plot_template").templatedArray;t.exports=l("shape",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:o({},r.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:o({},r.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:o({},a.color,{editType:"arraydraw"}),width:o({},a.width,{editType:"calc+arraydraw"}),dash:o({},i,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},editType:"arraydraw"})},{"../../lib/extend":173,"../../plot_api/plot_template":212,"../../traces/scatter/attributes":389,"../annotations/attributes":37,"../drawing/attributes":73}],130:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("./constants"),o=e("./helpers");function l(e){return c(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function s(e){return c(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function c(e,t,n,a,l,s){var c=e/2,u=s;if("pixel"===t){var f=l?o.extractPathCoords(l,s?i.paramIsY:i.paramIsX):[n,a],d=r.aggNums(Math.max,null,f),p=r.aggNums(Math.min,null,f),h=p<0?Math.abs(p)+c:c,g=d>0?d+c:c;return{ppad:c,ppadplus:u?h:g,ppadminus:u?g:h}}return{ppad:c}}function u(e,t,n,r,a){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(n)];if(r){var s,c,u,f,d=1/0,p=-1/0,h=r.match(i.segmentRE);for("date"===e.type&&(l=o.decodeDate(l)),s=0;s<h.length;s++)void 0!==(c=a[h[s].charAt(0)].drawn)&&(!(u=h[s].substr(1).match(i.paramRE))||u.length<c||((f=l(u[c]))<d&&(d=f),f>p&&(p=f)));return p>=d?[d,p]:void 0}}t.exports=function(e){var t=e._fullLayout,n=r.filterVisible(t.shapes);if(n.length&&e._fullData.length)for(var o=0;o<n.length;o++){var c,f,d=n[o];if(d._extremes={},"paper"!==d.xref){var p="pixel"===d.xsizemode?d.xanchor:d.x0,h="pixel"===d.xsizemode?d.xanchor:d.x1;(f=u(c=a.getFromId(e,d.xref),p,h,d.path,i.paramIsX))&&(d._extremes[c._id]=a.findExtremes(c,f,l(d)))}if("paper"!==d.yref){var g="pixel"===d.ysizemode?d.yanchor:d.y0,m="pixel"===d.ysizemode?d.yanchor:d.y1;(f=u(c=a.getFromId(e,d.yref),g,m,d.path,i.paramIsY))&&(d._extremes[c._id]=a.findExtremes(c,f,s(d)))}}}},{"../../lib":178,"../../plots/cartesian/axes":222,"./constants":131,"./helpers":140}],131:[function(e,t,n){"use strict";t.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],132:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../../plots/array_container_defaults"),o=e("./attributes"),l=e("./helpers");function s(e,t,n){function i(n,a){return r.coerce(e,t,o,n,a)}if(i("visible")){var s=i("path"),c=i("type",s?"path":"rect");"path"!==t.type&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule"),i("line.width")&&(i("line.color"),i("line.dash"));for(var u=i("xsizemode"),f=i("ysizemode"),d=["x","y"],p=0;p<2;p++){var h,g,m,v=d[p],y=v+"anchor",x="x"===v?u:f,b={_fullLayout:n},_=a.coerceRef(e,t,b,v,"","paper");if("paper"!==_?((h=a.getFromId(b,_))._shapeIndices.push(t._index),m=l.rangeToShapePosition(h),g=l.shapePositionToRange(h)):g=m=r.identity,"path"!==c){var w=v+"0",k=v+"1",T=e[w],M=e[k];e[w]=g(e[w],!0),e[k]=g(e[k],!0),"pixel"===x?(i(w,0),i(k,10)):(a.coercePosition(t,b,i,_,w,.25),a.coercePosition(t,b,i,_,k,.75)),t[w]=m(t[w]),t[k]=m(t[k]),e[w]=T,e[k]=M}if("pixel"===x){var A=e[y];e[y]=g(e[y],!0),a.coercePosition(t,b,i,_,y,.25),t[y]=m(t[y]),e[y]=A}}"path"===c?i("path"):r.noneOrAll(e,t,["x0","x1","y0","y1"])}}t.exports=function(e,t){i(e,t,{name:"shapes",handleItemDefaults:s})}},{"../../lib":178,"../../plots/array_container_defaults":218,"../../plots/cartesian/axes":222,"./attributes":129,"./helpers":140}],133:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("./draw_newshape/helpers").readPaths,l=e("./draw_newshape/display_outlines"),s=e("../../plots/cartesian/handle_outline").clearOutlineControllers,c=e("../color"),u=e("../drawing"),f=e("../../plot_api/plot_template").arrayEditor,d=e("../dragelement"),p=e("../../lib/setcursor"),h=e("./constants"),g=e("./helpers");function m(e){var t=e._fullLayout;for(var n in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._plots){var r=t._plots[n].shapelayer;r&&r.selectAll("path").remove()}for(var a=0;a<t.shapes.length;a++)t.shapes[a].visible&&x(e,a)}function v(e){return!!e._fullLayout._drawing}function y(e){return!e._context.edits.shapePosition}function x(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var n=g.makeOptionsAndPlotinfo(e,t),s=n.options,x=n.plotinfo;function T(n){var T=_(e,s),M={"data-index":t,"fill-rule":s.fillrule,d:T},A=s.opacity,S=s.fillcolor,L=s.line.width?s.line.color:"rgba(0,0,0,0)",C=s.line.width,O=s.line.dash;C||!0!==s.editable||(C=5,O="solid");var P="Z"!==T[T.length-1],E=y(e)&&s.editable&&e._fullLayout._activeShapeIndex===t;E&&(S=P?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,A=e._fullLayout.activeshape.opacity);var z,D=n.append("path").attr(M).style("opacity",A).call(c.stroke,L).call(c.fill,S).call(u.dashLine,O,C);if(b(D,e,s),(E||e._context.edits.shapePosition)&&(z=f(e.layout,"shapes",s)),E){D.style({cursor:"move"});var R={element:D.node(),plotinfo:x,gd:e,editHelpers:z,isActiveShape:!0},I=o(T,e);l(I,D,R)}else e._context.edits.shapePosition?function(e,t,n,o,l,s){var c,f,m,y,x,k,T,M,A,S,L,C,O,P,E,z,D="pixel"===n.xsizemode,R="pixel"===n.ysizemode,I="line"===n.type,N="path"===n.type,F=s.modifyItem,B=i.getFromId(e,n.xref),j=i.getFromId(e,n.yref),H=g.getDataToPixel(e,B),q=g.getDataToPixel(e,j,!0),V=g.getPixelToData(e,B),U=g.getPixelToData(e,j,!0),G=I?function(){var e=Math.max(n.line.width,10),r=l.append("g").attr("data-index",o);r.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":e,"stroke-opacity":"0"});var a={"fill-opacity":"0"},i=Math.max(e/2,10);return r.append("circle").attr({"data-line-point":"start-point",cx:D?H(n.xanchor)+n.x0:H(n.x0),cy:R?q(n.yanchor)-n.y0:q(n.y0),r:i}).style(a).classed("cursor-grab",!0),r.append("circle").attr({"data-line-point":"end-point",cx:D?H(n.xanchor)+n.x1:H(n.x1),cy:R?q(n.yanchor)-n.y1:q(n.y1),r:i}).style(a).classed("cursor-grab",!0),r}():t,Z={element:G.node(),gd:e,prepFn:function(r){v(e)||(D&&(x=H(n.xanchor)),R&&(k=q(n.yanchor)),"path"===n.type?E=n.path:(c=D?n.x0:H(n.x0),f=R?n.y0:q(n.y0),m=D?n.x1:H(n.x1),y=R?n.y1:q(n.y1)),c<m?(A=c,O="x0",S=m,P="x1"):(A=m,O="x1",S=c,P="x0"),!R&&f<y||R&&f>y?(T=f,L="y0",M=y,C="y1"):(T=y,L="y1",M=f,C="y0"),W(r),$(l,n),function(e,t,n){var r=t.xref,a=t.yref,o=i.getFromId(n,r),l=i.getFromId(n,a),s="";"paper"===r||o.autorange||(s+=r),"paper"===a||l.autorange||(s+=a),u.setClipUrl(e,s?"clip"+n._fullLayout._uid+s:null,n)}(t,n,e),Z.moveFn="move"===z?Y:X,Z.altKey=r.altKey)},doneFn:function(){v(e)||(p(t),Q(l),b(t,e,n),r.call("_guiRelayout",e,s.getUpdateObj()))},clickFn:function(){v(e)||Q(l)}};function W(n){if(v(e))z=null;else if(I)z="path"===n.target.tagName?"move":"start-point"===n.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var r=Z.element.getBoundingClientRect(),a=r.right-r.left,i=r.bottom-r.top,o=n.clientX-r.left,l=n.clientY-r.top,s=!N&&a>10&&i>10&&!n.shiftKey?d.getCursor(o/a,1-l/i):"move";p(t,s),z=s.split("-")[0]}}function Y(r,a){if("path"===n.type){var i=function(e){return e},o=i,s=i;D?F("xanchor",n.xanchor=V(x+r)):(o=function(e){return V(H(e)+r)},B&&"date"===B.type&&(o=g.encodeDate(o))),R?F("yanchor",n.yanchor=U(k+a)):(s=function(e){return U(q(e)+a)},j&&"date"===j.type&&(s=g.encodeDate(s))),F("path",n.path=w(E,o,s))}else D?F("xanchor",n.xanchor=V(x+r)):(F("x0",n.x0=V(c+r)),F("x1",n.x1=V(m+r))),R?F("yanchor",n.yanchor=U(k+a)):(F("y0",n.y0=U(f+a)),F("y1",n.y1=U(y+a)));t.attr("d",_(e,n)),$(l,n)}function X(r,a){if(N){var i=function(e){return e},o=i,s=i;D?F("xanchor",n.xanchor=V(x+r)):(o=function(e){return V(H(e)+r)},B&&"date"===B.type&&(o=g.encodeDate(o))),R?F("yanchor",n.yanchor=U(k+a)):(s=function(e){return U(q(e)+a)},j&&"date"===j.type&&(s=g.encodeDate(s))),F("path",n.path=w(E,o,s))}else if(I){if("resize-over-start-point"===z){var u=c+r,d=R?f-a:f+a;F("x0",n.x0=D?u:V(u)),F("y0",n.y0=R?d:U(d))}else if("resize-over-end-point"===z){var p=m+r,h=R?y-a:y+a;F("x1",n.x1=D?p:V(p)),F("y1",n.y1=R?h:U(h))}}else{var v=function(e){return-1!==z.indexOf(e)},b=v("n"),G=v("s"),Z=v("w"),W=v("e"),Y=b?T+a:T,X=G?M+a:M,Q=Z?A+r:A,K=W?S+r:S;R&&(b&&(Y=T-a),G&&(X=M-a)),(!R&&X-Y>10||R&&Y-X>10)&&(F(L,n[L]=R?Y:U(Y)),F(C,n[C]=R?X:U(X))),K-Q>10&&(F(O,n[O]=D?Q:V(Q)),F(P,n[P]=D?K:V(K)))}t.attr("d",_(e,n)),$(l,n)}function $(e,t){(D||R)&&function(){var n="path"!==t.type,r=e.selectAll(".visual-cue").data([0]);r.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var i=H(D?t.xanchor:a.midRange(n?[t.x0,t.x1]:g.extractPathCoords(t.path,h.paramIsX))),o=q(R?t.yanchor:a.midRange(n?[t.y0,t.y1]:g.extractPathCoords(t.path,h.paramIsY)));if(i=g.roundPositionForSharpStrokeRendering(i,1),o=g.roundPositionForSharpStrokeRendering(o,1),D&&R){var l="M"+(i-1-1)+","+(o-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";r.attr("d",l)}else if(D){var s="M"+(i-1-1)+","+(o-9-1)+"v18 h2 v-18 Z";r.attr("d",s)}else{var c="M"+(i-9-1)+","+(o-1-1)+"h18 v2 h-18 Z";r.attr("d",c)}}()}function Q(e){e.selectAll(".visual-cue").remove()}d.init(Z),G.node().onmousemove=W}(e,D,s,t,n,z):!0===s.editable&&D.style("pointer-events",P||c.opacity(S)*A<=.5?"stroke":"all");D.node().addEventListener("click",(function(){return function(e,t){if(y(e)){var n=+t.node().getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex)return void k(e);e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=k,m(e)}}}(e,D)}))}s._input&&!1!==s.visible&&("below"!==s.layer?T(e._fullLayout._shapeUpperLayer):"paper"===s.xref||"paper"===s.yref?T(e._fullLayout._shapeLowerLayer):x._hadPlotinfo?T((x.mainplotinfo||x).shapelayer):T(e._fullLayout._shapeLowerLayer))}function b(e,t,n){var r=(n.xref+n.yref).replace(/paper/g,"");u.setClipUrl(e,r?"clip"+t._fullLayout._uid+r:null,t)}function _(e,t){var n,r,o,l,s,c,u,f,d=t.type,p=i.getFromId(e,t.xref),m=i.getFromId(e,t.yref),v=e._fullLayout._size;if(p?(n=g.shapePositionToRange(p),r=function(e){return p._offset+p.r2p(n(e,!0))}):r=function(e){return v.l+v.w*e},m?(o=g.shapePositionToRange(m),l=function(e){return m._offset+m.r2p(o(e,!0))}):l=function(e){return v.t+v.h*(1-e)},"path"===d)return p&&"date"===p.type&&(r=g.decodeDate(r)),m&&"date"===m.type&&(l=g.decodeDate(l)),function(e,t,n){var r=e.path,i=e.xsizemode,o=e.ysizemode,l=e.xanchor,s=e.yanchor;return r.replace(h.segmentRE,(function(e){var r=0,c=e.charAt(0),u=h.paramIsX[c],f=h.paramIsY[c],d=h.numParams[c],p=e.substr(1).replace(h.paramRE,(function(e){return u[r]?e="pixel"===i?t(l)+Number(e):t(e):f[r]&&(e="pixel"===o?n(s)-Number(e):n(e)),++r>d&&(e="X"),e}));return r>d&&(p=p.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),c+p}))}(t,r,l);if("pixel"===t.xsizemode){var y=r(t.xanchor);s=y+t.x0,c=y+t.x1}else s=r(t.x0),c=r(t.x1);if("pixel"===t.ysizemode){var x=l(t.yanchor);u=x-t.y0,f=x-t.y1}else u=l(t.y0),f=l(t.y1);if("line"===d)return"M"+s+","+u+"L"+c+","+f;if("rect"===d)return"M"+s+","+u+"H"+c+"V"+f+"H"+s+"Z";var b=(s+c)/2,_=(u+f)/2,w=Math.abs(b-s),k=Math.abs(_-u),T="A"+w+","+k,M=b+w+","+_;return"M"+M+T+" 0 1,1 "+b+","+(_-k)+T+" 0 0,1 "+M+"Z"}function w(e,t,n){return e.replace(h.segmentRE,(function(e){var r=0,a=e.charAt(0),i=h.paramIsX[a],o=h.paramIsY[a],l=h.numParams[a];return a+e.substr(1).replace(h.paramRE,(function(e){return r>=l||(i[r]?e=t(e):o[r]&&(e=n(e)),r++),e}))}))}function k(e){y(e)&&e._fullLayout._activeShapeIndex>=0&&(s(e),delete e._fullLayout._activeShapeIndex,m(e))}t.exports={draw:m,drawOne:x,eraseActiveShape:function(e){if(y(e)){s(e);var t=e._fullLayout._activeShapeIndex,n=(e.layout||{}).shapes||[];if(t<n.length){for(var a=[],i=0;i<n.length;i++)i!==t&&a.push(n[i]);delete e._fullLayout._activeShapeIndex,r.call("_guiRelayout",e,{shapes:a})}}}}},{"../../lib":178,"../../lib/setcursor":197,"../../plot_api/plot_template":212,"../../plots/cartesian/axes":222,"../../plots/cartesian/handle_outline":232,"../../registry":269,"../color":52,"../dragelement":71,"../drawing":74,"./constants":131,"./draw_newshape/display_outlines":137,"./draw_newshape/helpers":138,"./helpers":140}],134:[function(e,t,n){"use strict";var r=e("../../drawing/attributes").dash,a=e("../../../lib/extend").extendFlat;t.exports={newshape:{line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:0,dflt:4,editType:"none"},dash:a({},r,{dflt:"solid",editType:"none"}),editType:"none"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"none"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"none"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",editType:"none"},editType:"none"},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},{"../../../lib/extend":173,"../../drawing/attributes":73}],135:[function(e,t,n){"use strict";t.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],136:[function(e,t,n){"use strict";var r=e("../../color");t.exports=function(e,t,n){if(n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity"),n("newshape.line.width")){var a=(e||{}).plot_bgcolor||"#FFF";n("newshape.line.color",r.contrast(a)),n("newshape.line.dash")}n("activeshape.fillcolor"),n("activeshape.opacity")}},{"../../color":52}],137:[function(e,t,n){"use strict";var r=e("../../dragelement"),a=e("../../dragelement/helpers").drawMode,i=e("../../../registry"),o=e("./constants"),l=o.i000,s=o.i090,c=o.i180,u=o.i270,f=e("../../../plots/cartesian/handle_outline").clearOutlineControllers,d=e("./helpers"),p=d.pointsShapeRectangle,h=d.pointsShapeEllipse,g=d.writePaths,m=e("./newshapes");t.exports=function e(t,n,o,d){d||(d=0);var v=o.gd;function y(){e(t,n,o,d++),h(t[0])&&x({redrawing:!0})}function x(e){o.isActiveShape=!1;var t=m(n,o);Object.keys(t).length&&i.call((e||{}).redrawing?"relayout":"_guiRelayout",v,t)}var b,_,w,k,T,M=o.isActiveShape,A=v._fullLayout._zoomlayer,S=o.dragmode;function L(e){w=+e.srcElement.getAttribute("data-i"),k=+e.srcElement.getAttribute("data-j"),b[w][k].moveFn=C}function C(e,n){if(t.length){var r=T[w][k][1],a=T[w][k][2],i=t[w],o=i.length;if(p(i)){for(var l=0;l<o;l++)if(l!==k){var s=i[l];s[1]===i[k][1]&&(s[1]=r+e),s[2]===i[k][2]&&(s[2]=a+n)}if(i[k][1]=r+e,i[k][2]=a+n,!p(i))for(var c=0;c<o;c++)for(var u=0;u<i[c].length;u++)i[c][u]=T[w][c][u]}else i[k][1]=r+e,i[k][2]=a+n;y()}}function O(){x()}function P(e,n){if(2===e){w=+n.srcElement.getAttribute("data-i"),k=+n.srcElement.getAttribute("data-j");var r=t[w];p(r)||h(r)||function(){if(t.length&&t[w]&&t[w].length){for(var e=[],n=0;n<t[w].length;n++)n!==k&&e.push(t[w][n]);e.length>1&&(2!==e.length||"Z"!==e[1][0])&&(0===k&&(e[0][0]="M"),t[w]=e,y(),x())}}()}}function E(e,n){!function(e,n){if(t.length)for(var r=0;r<t.length;r++)for(var a=0;a<t[r].length;a++)for(var i=0;i+2<t[r][a].length;i+=2)t[r][a][i+1]=T[r][a][i+1]+e,t[r][a][i+2]=T[r][a][i+2]+n}(e,n),y()}function z(e){(w=+e.srcElement.getAttribute("data-i"))||(w=0),_[w].moveFn=E}function D(){x()}a(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex>=0&&f(v),n.attr("d",g(t)),M&&!d&&(T=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e[n]=[];for(var a=0;a<r.length;a++){e[n][a]=[];for(var i=0;i<r[a].length;i++)e[n][a][i]=r[a][i]}}return e}([],t),function(e){b=[];for(var n=0;n<t.length;n++){var a=t[n],i=!p(a)&&h(a);b[n]=[];for(var o=0;o<a.length;o++)if("Z"!==a[o][0]&&(!i||o===l||o===s||o===c||o===u)){var f=a[o][1],d=a[o][2],g=e.append("circle").classed("cursor-grab",!0).attr("data-i",n).attr("data-j",o).attr("cx",f).attr("cy",d).attr("r",4).style({"mix-blend-mode":"luminosity",fill:"black",stroke:"white","stroke-width":1});b[n][o]={element:g.node(),gd:v,prepFn:L,doneFn:O,clickFn:P},r.init(b[n][o])}}}(A.append("g").attr("class","outline-controllers")),_=[],t.length&&(_[0]={element:n[0][0],gd:v,prepFn:z,doneFn:D},r.init(_[0])))}},{"../../../plots/cartesian/handle_outline":232,"../../../registry":269,"../../dragelement":71,"../../dragelement/helpers":70,"./constants":135,"./helpers":138,"./newshapes":139}],138:[function(e,t,n){"use strict";var r=e("parse-svg-path"),a=e("./constants"),i=a.CIRCLE_SIDES,o=a.SQRT2,l=e("../../../plots/cartesian/helpers"),s=l.p2r,c=l.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function d(e,t){return Math.abs(e-t)<=1e-6}function p(e,t){var n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(n*n+r*r)}n.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var n="",r=0;r<t;r++)for(var a=e[r].length,i=0;i<a;i++){var o=e[r][i][0];if("Z"===o)n+="Z";else for(var l=e[r][i].length,s=0;s<l;s++){var c=s;"Q"===o||"S"===o?c=f[s]:"C"===o&&(c=u[s]),n+=e[r][i][c],s>0&&s<l-1&&(n+=",")}}return n},n.readPaths=function(e,t,n,a){var o,l,u,f=r(e),d=[],p=-1,h=0,g=0,m=function(){l=h,u=g};m();for(var v=0;v<f.length;v++){var y,x,b,_,w=[],k=f[v][0],T=k;switch(k){case"M":p++,d[p]=[],h=+f[v][1],g=+f[v][2],w.push([T,h,g]),m();break;case"Q":case"S":y=+f[v][1],b=+f[v][2],h=+f[v][3],g=+f[v][4],w.push([T,h,g,y,b]);break;case"C":y=+f[v][1],b=+f[v][2],x=+f[v][3],_=+f[v][4],h=+f[v][5],g=+f[v][6],w.push([T,h,g,y,b,x,_]);break;case"T":case"L":h=+f[v][1],g=+f[v][2],w.push([T,h,g]);break;case"H":T="L",h=+f[v][1],w.push([T,h,g]);break;case"V":T="L",g=+f[v][1],w.push([T,h,g]);break;case"A":T="L";var M=+f[v][1],A=+f[v][2];+f[v][4]||(M=-M,A=-A);var S=h-M,L=g;for(o=1;o<=i/2;o++){var C=2*Math.PI*o/i;w.push([T,S+M*Math.cos(C),L+A*Math.sin(C)])}break;case"Z":h===l&&g===u||(h=l,g=u,w.push([T,h,g]))}for(var O=(n||{}).domain,P=t._fullLayout._size,E=n&&"pixel"===n.xsizemode,z=n&&"pixel"===n.ysizemode,D=!1===a,R=0;R<w.length;R++){for(o=0;o+2<7;o+=2){var I=w[R][o+1],N=w[R][o+2];void 0!==I&&void 0!==N&&(h=I,g=N,n&&(n.xaxis&&n.xaxis.p2r?(D&&(I-=n.xaxis._offset),I=E?c(n.xaxis,n.xanchor)+I:s(n.xaxis,I)):(D&&(I-=P.l),O?I=O.x[0]+I/P.w:I/=P.w),n.yaxis&&n.yaxis.p2r?(D&&(N-=n.yaxis._offset),N=z?c(n.yaxis,n.yanchor)-N:s(n.yaxis,N)):(D&&(N-=P.t),N=O?O.y[1]-N/P.h:1-N/P.h)),w[R][o+1]=I,w[R][o+2]=N)}d[p].push(w[R].slice())}}return d},n.pointsShapeRectangle=function(e){if(5!==e.length)return!1;for(var t=1;t<3;t++){if(!d(e[0][t]-e[1][t],e[3][t]-e[2][t]))return!1;if(!d(e[0][t]-e[3][t],e[1][t]-e[2][t]))return!1}return!(!d(e[0][1],e[1][1])&&!d(e[0][1],e[3][1])||!(p(e[0],e[1])*p(e[0],e[3])))},n.pointsShapeEllipse=function(e){var t=e.length;if(t!==i+1)return!1;t=i;for(var n=0;n<t;n++){var r=(2*t-n)%t,a=(t/2+r)%t,o=(t/2+n)%t;if(!d(p(e[n],e[o]),p(e[r],e[a])))return!1}return!0},n.handleEllipse=function(e,t,r){if(!e)return[t,r];var a=n.ellipseOver({x0:t[0],y0:t[1],x1:r[0],y1:r[1]}),l=(a.x1+a.x0)/2,s=(a.y1+a.y0)/2,c=(a.x1-a.x0)/2,u=(a.y1-a.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],d=0;d<i;d++){var p=2*d*Math.PI/i;f.push([l+c*Math.cos(p),s+u*Math.sin(p)])}return f},n.ellipseOver=function(e){var t=e.x0,n=e.y0,r=e.x1,a=e.y1,i=r-t,l=a-n,s=((t-=i)+r)/2,c=((n-=l)+a)/2;return{x0:s-(i*=o),y0:c-(l*=o),x1:s+i,y1:c+l}}},{"../../../plots/cartesian/helpers":233,"./constants":135,"parse-svg-path":25}],139:[function(e,t,n){"use strict";var r=e("../../dragelement/helpers"),a=r.drawMode,i=r.openMode,o=e("./constants"),l=o.i000,s=o.i090,c=o.i180,u=o.i270,f=o.cos45,d=o.sin45,p=e("../../../plots/cartesian/helpers"),h=p.p2r,g=p.r2p,m=e("../../../plots/cartesian/handle_outline").clearSelect,v=e("./helpers"),y=v.readPaths,x=v.writePaths,b=v.ellipseOver;t.exports=function(e,t){if(e.length){var n=e[0][0];if(n){var r=n.getAttribute("d"),o=t.gd,p=o._fullLayout.newshape,v=t.plotinfo,_=v.xaxis,w=v.yaxis,k=!!v.domain||!v.xaxis,T=!!v.domain||!v.yaxis,M=t.isActiveShape,A=t.dragmode,S=(o.layout||{}).shapes||[];if(!a(A)&&void 0!==M){var L=o._fullLayout._activeShapeIndex;if(L<S.length)switch(o._fullLayout.shapes[L].type){case"rect":A="drawrect";break;case"circle":A="drawcircle";break;case"line":A="drawline";break;case"path":var C=S[L].path||"";A="Z"===C[C.length-1]?"drawclosedpath":"drawopenpath"}}var O,P=i(A),E=y(r,o,v,M),z={editable:!0,xref:k?"paper":_._id,yref:T?"paper":w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(P||(z.fillcolor=p.fillcolor,z.fillrule=p.fillrule),1===E.length&&(O=E[0]),O&&"drawrect"===A)z.type="rect",z.x0=O[0][1],z.y0=O[0][2],z.x1=O[2][1],z.y1=O[2][2];else if(O&&"drawline"===A)z.type="line",z.x0=O[0][1],z.y0=O[0][2],z.x1=O[1][1],z.y1=O[1][2];else if(O&&"drawcircle"===A){z.type="circle";var D=O[l][1],R=O[s][1],I=O[c][1],N=O[u][1],F=O[l][2],B=O[s][2],j=O[c][2],H=O[u][2],q=v.xaxis&&("date"===v.xaxis.type||"log"===v.xaxis.type),V=v.yaxis&&("date"===v.yaxis.type||"log"===v.yaxis.type);q&&(D=g(v.xaxis,D),R=g(v.xaxis,R),I=g(v.xaxis,I),N=g(v.xaxis,N)),V&&(F=g(v.yaxis,F),B=g(v.yaxis,B),j=g(v.yaxis,j),H=g(v.yaxis,H));var U=(R+N)/2,G=(F+j)/2,Z=b({x0:U,y0:G,x1:U+(N-R+I-D)/2*f,y1:G+(H-B+j-F)/2*d});q&&(Z.x0=h(v.xaxis,Z.x0),Z.x1=h(v.xaxis,Z.x1)),V&&(Z.y0=h(v.yaxis,Z.y0),Z.y1=h(v.yaxis,Z.y1)),z.x0=Z.x0,z.y0=Z.y0,z.x1=Z.x1,z.y1=Z.y1}else z.type="path",_&&w&&function(e,t,n){var r="date"===t.type,a="date"===n.type;if(!r&&!a)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var l=0;l+2<e[i][o].length;l+=2)r&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),a&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"))}(E,_,w),z.path=x(E),O=null;m(o);for(var W=t.editHelpers,Y=(W||{}).modifyItem,X=[],$=0;$<S.length;$++){var Q=o._fullLayout.shapes[$];if(X[$]=Q._input,void 0!==M&&$===o._fullLayout._activeShapeIndex){var K=z;switch(Q.type){case"line":case"rect":case"circle":Y("x0",K.x0),Y("x1",K.x1),Y("y0",K.y0),Y("y1",K.y1);break;case"path":Y("path",K.path)}}}return void 0===M?(X.push(z),X):W?W.getUpdateObj():{}}}}},{"../../../plots/cartesian/handle_outline":232,"../../../plots/cartesian/helpers":233,"../../dragelement/helpers":70,"./constants":135,"./helpers":138}],140:[function(e,t,n){"use strict";var r=e("./constants"),a=e("../../lib");n.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},n.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},n.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},n.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},n.extractPathCoords=function(e,t){var n=[];return e.match(r.segmentRE).forEach((function(e){var i=t[e.charAt(0)].drawn;if(void 0!==i){var o=e.substr(1).match(r.paramRE);!o||o.length<i||n.push(a.cleanNumber(o[i]))}})),n},n.getDataToPixel=function(e,t,r){var a,i=e._fullLayout._size;if(t){var o=n.shapePositionToRange(t);a=function(e){return t._offset+t.r2p(o(e,!0))},"date"===t.type&&(a=n.decodeDate(a))}else a=r?function(e){return i.t+i.h*(1-e)}:function(e){return i.l+i.w*e};return a},n.getPixelToData=function(e,t,r){var a,i=e._fullLayout._size;if(t){var o=n.rangeToShapePosition(t);a=function(e){return o(t.p2r(e-t._offset))}}else a=r?function(e){return 1-(e-i.t)/i.h}:function(e){return(e-i.l)/i.w};return a},n.roundPositionForSharpStrokeRendering=function(e,t){var n=1===Math.round(t%2),r=Math.round(e);return n?r+.5:r},n.makeOptionsAndPlotinfo=function(e,t){var n=e._fullLayout.shapes[t]||{},r=e._fullLayout._plots[n.xref+n.yref];return r?r._hadPlotinfo=!0:(r={},n.xref&&"paper"!==n.xref&&(r.xaxis=e._fullLayout[n.xref+"axis"]),n.yref&&"paper"!==n.yref&&(r.yaxis=e._fullLayout[n.yref+"axis"])),r.xsizemode=n.xsizemode,r.ysizemode=n.ysizemode,r.xanchor=n.xanchor,r.yanchor=n.yanchor,{options:n,plotinfo:r}}},{"../../lib":178,"./constants":131}],141:[function(e,t,n){"use strict";var r=e("./draw");t.exports={moduleType:"component",name:"shapes",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),supplyDrawNewShapeDefaults:e("./draw_newshape/defaults"),includeBasePlot:e("../../plots/cartesian/include_components")("shapes"),calcAutorange:e("./calc_autorange"),draw:r.draw,drawOne:r.drawOne}},{"../../plots/cartesian/include_components":234,"./attributes":129,"./calc_autorange":130,"./defaults":132,"./draw":133,"./draw_newshape/defaults":136}],142:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("../../plots/pad_attributes"),i=e("../../lib/extend").extendDeepAll,o=e("../../plot_api/edit_types").overrideAll,l=e("../../plots/animation_attributes"),s=e("../../plot_api/plot_template").templatedArray,c=e("./constants"),u=s("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});t.exports=o(s("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:u,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(a({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:l.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:r({})},font:r({}),activebgcolor:{valType:"color",dflt:c.gripBgActiveColor},bgcolor:{valType:"color",dflt:c.railBgColor},bordercolor:{valType:"color",dflt:c.railBorderColor},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth},ticklen:{valType:"number",min:0,dflt:c.tickLength},tickcolor:{valType:"color",dflt:c.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength}}),"arraydraw","from-root")},{"../../lib/extend":173,"../../plot_api/edit_types":205,"../../plot_api/plot_template":212,"../../plots/animation_attributes":217,"../../plots/font_attributes":250,"../../plots/pad_attributes":255,"./constants":143}],143:[function(e,t,n){"use strict";t.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],144:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/array_container_defaults"),i=e("./attributes"),o=e("./constants").name,l=i.steps;function s(e,t,n){function o(n,a){return r.coerce(e,t,i,n,a)}for(var l=a(e,t,{name:"steps",handleItemDefaults:c}),s=0,u=0;u<l.length;u++)l[u].visible&&s++;if(s<2?t.visible=!1:o("visible")){t._stepCount=s;var f=t._visibleSteps=r.filterVisible(l);(l[o("active")]||{}).visible||(t.active=f[0]._index),o("x"),o("y"),r.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("len"),o("lenmode"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),r.coerceFont(o,"font",n.font),o("currentvalue.visible")&&(o("currentvalue.xanchor"),o("currentvalue.prefix"),o("currentvalue.suffix"),o("currentvalue.offset"),r.coerceFont(o,"currentvalue.font",t.font)),o("transition.duration"),o("transition.easing"),o("bgcolor"),o("activebgcolor"),o("bordercolor"),o("borderwidth"),o("ticklen"),o("tickwidth"),o("tickcolor"),o("minorticklen")}}function c(e,t){function n(n,a){return r.coerce(e,t,l,n,a)}if("skip"===e.method||Array.isArray(e.args)?n("visible"):t.visible=!1){n("method"),n("args");var a=n("label","step-"+t._index);n("value",a),n("execute")}}t.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},{"../../lib":178,"../../plots/array_container_defaults":218,"./attributes":142,"./constants":143}],145:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../plots/plots"),i=e("../color"),o=e("../drawing"),l=e("../../lib"),s=e("../../lib/svg_text_utils"),c=e("../../plot_api/plot_template").arrayEditor,u=e("./constants"),f=e("../../constants/alignment"),d=f.LINE_SPACING,p=f.FROM_TL,h=f.FROM_BR;function g(e){return u.autoMarginIdRoot+e._index}function m(e){return e._index}function v(e,t){var n=o.tester.selectAll("g."+u.labelGroupClass).data(t._visibleSteps);n.enter().append("g").classed(u.labelGroupClass,!0);var i=0,c=0;n.each((function(e){var n=b(r.select(this),{step:e},t).node();if(n){var a=o.bBox(n);c=Math.max(c,a.height),i=Math.max(i,a.width)}})),n.remove();var f=t._dims={};f.inputAreaWidth=Math.max(u.railWidth,u.gripHeight);var d=e._fullLayout._size;f.lx=d.l+d.w*t.x,f.ly=d.t+d.h*(1-t.y),"fraction"===t.lenmode?f.outerLength=Math.round(d.w*t.len):f.outerLength=t.len,f.inputAreaStart=0,f.inputAreaLength=Math.round(f.outerLength-t.pad.l-t.pad.r);var m=(f.inputAreaLength-2*u.stepInset)/(t._stepCount-1),v=i+u.labelPadding;if(f.labelStride=Math.max(1,Math.ceil(v/m)),f.labelHeight=c,f.currentValueMaxWidth=0,f.currentValueHeight=0,f.currentValueTotalHeight=0,f.currentValueMaxLines=1,t.currentvalue.visible){var x=o.tester.append("g");n.each((function(e){var n=y(x,t,e.label),r=n.node()&&o.bBox(n.node())||{width:0,height:0},a=s.lineCount(n);f.currentValueMaxWidth=Math.max(f.currentValueMaxWidth,Math.ceil(r.width)),f.currentValueHeight=Math.max(f.currentValueHeight,Math.ceil(r.height)),f.currentValueMaxLines=Math.max(f.currentValueMaxLines,a)})),f.currentValueTotalHeight=f.currentValueHeight+t.currentvalue.offset,x.remove()}f.height=f.currentValueTotalHeight+u.tickOffset+t.ticklen+u.labelOffset+f.labelHeight+t.pad.t+t.pad.b;var _="left";l.isRightAnchor(t)&&(f.lx-=f.outerLength,_="right"),l.isCenterAnchor(t)&&(f.lx-=f.outerLength/2,_="center");var w="top";l.isBottomAnchor(t)&&(f.ly-=f.height,w="bottom"),l.isMiddleAnchor(t)&&(f.ly-=f.height/2,w="middle"),f.outerLength=Math.ceil(f.outerLength),f.height=Math.ceil(f.height),f.lx=Math.round(f.lx),f.ly=Math.round(f.ly);var k={y:t.y,b:f.height*h[w],t:f.height*p[w]};"fraction"===t.lenmode?(k.l=0,k.xl=t.x-t.len*p[_],k.r=0,k.xr=t.x+t.len*h[_]):(k.x=t.x,k.l=f.outerLength*p[_],k.r=f.outerLength*h[_]),a.autoMargin(e,g(t),k)}function y(e,t,n){if(t.currentvalue.visible){var r,a,i=t._dims;switch(t.currentvalue.xanchor){case"right":r=i.inputAreaLength-u.currentValueInset-i.currentValueMaxWidth,a="left";break;case"center":r=.5*i.inputAreaLength,a="middle";break;default:r=u.currentValueInset,a="left"}var c=l.ensureSingle(e,"text",u.labelClass,(function(e){e.classed("user-select-none",!0).attr({"text-anchor":a,"data-notex":1})})),f=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"==typeof n)f+=n;else{var p=t.steps[t.active].label,h=t._gd._fullLayout._meta;h&&(p=l.templateString(p,h)),f+=p}t.currentvalue.suffix&&(f+=t.currentvalue.suffix),c.call(o.font,t.currentvalue.font).text(f).call(s.convertToTspans,t._gd);var g=s.lineCount(c),m=(i.currentValueMaxLines+1-g)*t.currentvalue.font.size*d;return s.positionText(c,r,m),c}}function x(e,t,n){l.ensureSingle(e,"rect",u.gripRectClass,(function(r){r.call(T,t,e,n).style("pointer-events","all")})).attr({width:u.gripWidth,height:u.gripHeight,rx:u.gripRadius,ry:u.gripRadius}).call(i.stroke,n.bordercolor).call(i.fill,n.bgcolor).style("stroke-width",n.borderwidth+"px")}function b(e,t,n){var r=l.ensureSingle(e,"text",u.labelClass,(function(e){e.classed("user-select-none",!0).attr({"text-anchor":"middle","data-notex":1})})),a=t.step.label,i=n._gd._fullLayout._meta;return i&&(a=l.templateString(a,i)),r.call(o.font,n.font).text(a).call(s.convertToTspans,n._gd),r}function _(e,t){var n=l.ensureSingle(e,"g",u.labelsClass),a=t._dims,i=n.selectAll("g."+u.labelGroupClass).data(a.labelSteps);i.enter().append("g").classed(u.labelGroupClass,!0),i.exit().remove(),i.each((function(e){var n=r.select(this);n.call(b,e,t),o.setTranslate(n,S(t,e.fraction),u.tickOffset+t.ticklen+t.font.size*d+u.labelOffset+a.currentValueTotalHeight)}))}function w(e,t,n,r,a){var i=Math.round(r*(n._stepCount-1)),o=n._visibleSteps[i]._index;o!==n.active&&k(e,t,n,o,!0,a)}function k(e,t,n,r,i,o){var l=n.active;n.active=r,c(e.layout,u.name,n).applyUpdate("active",r);var s=n.steps[n.active];t.call(A,n,o),t.call(y,n),e.emit("plotly_sliderchange",{slider:n,step:n.steps[n.active],interaction:i,previousActive:l}),s&&s.method&&i&&(t._nextMethod?(t._nextMethod.step=s,t._nextMethod.doCallback=i,t._nextMethod.doTransition=o):(t._nextMethod={step:s,doCallback:i,doTransition:o},t._nextMethodRaf=window.requestAnimationFrame((function(){var n=t._nextMethod.step;n.method&&(n.execute&&a.executeAPICommand(e,n.method,n.args),t._nextMethod=null,t._nextMethodRaf=null)}))))}function T(e,t,n){var a=n.node(),o=r.select(t);function l(){return n.data()[0]}e.on("mousedown",(function(){var e=l();t.emit("plotly_sliderstart",{slider:e});var s=n.select("."+u.gripRectClass);r.event.stopPropagation(),r.event.preventDefault(),s.call(i.fill,e.activebgcolor);var c=L(e,r.mouse(a)[0]);w(t,n,e,c,!0),e._dragging=!0,o.on("mousemove",(function(){var e=l(),i=L(e,r.mouse(a)[0]);w(t,n,e,i,!1)})),o.on("mouseup",(function(){var e=l();e._dragging=!1,s.call(i.fill,e.bgcolor),o.on("mouseup",null),o.on("mousemove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}))}))}function M(e,t){var n=e.selectAll("rect."+u.tickRectClass).data(t._visibleSteps),a=t._dims;n.enter().append("rect").classed(u.tickRectClass,!0),n.exit().remove(),n.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),n.each((function(e,n){var l=n%a.labelStride==0,s=r.select(this);s.attr({height:l?t.ticklen:t.minorticklen}).call(i.fill,t.tickcolor),o.setTranslate(s,S(t,n/(t._stepCount-1))-.5*t.tickwidth,(l?u.tickOffset:u.minorTickOffset)+a.currentValueTotalHeight)}))}function A(e,t,n){for(var r=e.select("rect."+u.gripRectClass),a=0,i=0;i<t._stepCount;i++)if(t._visibleSteps[i]._index===t.active){a=i;break}var o=S(t,a/(t._stepCount-1));if(!t._invokingCommand){var l=r;n&&t.transition.duration>0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform","translate("+(o-.5*u.gripWidth)+","+t._dims.currentValueTotalHeight+")")}}function S(e,t){var n=e._dims;return n.inputAreaStart+u.stepInset+(n.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,t))}function L(e,t){var n=e._dims;return Math.min(1,Math.max(0,(t-u.stepInset-n.inputAreaStart)/(n.inputAreaLength-2*u.stepInset-2*n.inputAreaStart)))}function C(e,t,n){var r=n._dims,a=l.ensureSingle(e,"rect",u.railTouchRectClass,(function(r){r.call(T,t,e,n).style("pointer-events","all")}));a.attr({width:r.inputAreaLength,height:Math.max(r.inputAreaWidth,u.tickOffset+n.ticklen+r.labelHeight)}).call(i.fill,n.bgcolor).attr("opacity",0),o.setTranslate(a,0,r.currentValueTotalHeight)}function O(e,t){var n=t._dims,r=n.inputAreaLength-2*u.railInset,a=l.ensureSingle(e,"rect",u.railRectClass);a.attr({width:r,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),o.setTranslate(a,u.railInset,.5*(n.inputAreaWidth-u.railWidth)+n.currentValueTotalHeight)}t.exports=function(e){var t=e._fullLayout,n=function(e,t){for(var n=e[u.name],r=[],a=0;a<n.length;a++){var i=n[a];i.visible&&(i._gd=t,r.push(i))}return r}(t,e),i=t._infolayer.selectAll("g."+u.containerClassName).data(n.length>0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),a.autoMargin(e,g(t))}if(i.enter().append("g").classed(u.containerClassName,!0).style("cursor","ew-resize"),i.exit().each((function(){r.select(this).selectAll("g."+u.groupClassName).each(l)})).remove(),0!==n.length){var s=i.selectAll("g."+u.groupClassName).data(n,m);s.enter().append("g").classed(u.groupClassName,!0),s.exit().each(l).remove();for(var c=0;c<n.length;c++){var f=n[c];v(e,f)}s.each((function(t){var n=r.select(this);!function(e){var t=e._dims;t.labelSteps=[];for(var n=e._stepCount,r=0;r<n;r+=t.labelStride)t.labelSteps.push({fraction:r/(n-1),step:e._visibleSteps[r]})}(t),a.manageCommandObserver(e,t,t._visibleSteps,(function(t){var r=n.data()[0];r.active!==t.index&&(r._dragging||k(e,n,r,t.index,!1,!0))})),function(e,t,n){(n.steps[n.active]||{}).visible||(n.active=n._visibleSteps[0]._index),t.call(y,n).call(O,n).call(_,n).call(M,n).call(C,e,n).call(x,e,n);var r=n._dims;o.setTranslate(t,r.lx+n.pad.l,r.ly+n.pad.t),t.call(A,n,!1),t.call(y,n)}(e,r.select(this),t)}))}}},{"../../constants/alignment":154,"../../lib":178,"../../lib/svg_text_utils":199,"../../plot_api/plot_template":212,"../../plots/plots":256,"../color":52,"../drawing":74,"./constants":143,d3:16}],146:[function(e,t,n){"use strict";var r=e("./constants");t.exports={moduleType:"component",name:r.name,layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),draw:e("./draw")}},{"./attributes":142,"./constants":143,"./defaults":144,"./draw":145}],147:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("../../plots/plots"),o=e("../../registry"),l=e("../../lib"),s=e("../drawing"),c=e("../color"),u=e("../../lib/svg_text_utils"),f=e("../../constants/interactions"),d=e("../../constants/alignment").OPPOSITE_SIDE,p=/ [XY][0-9]* /;t.exports={draw:function(e,t,n){var h,g=n.propContainer,m=n.propName,v=n.placeholder,y=n.traceIndex,x=n.avoid||{},b=n.attributes,_=n.transform,w=n.containerGroup,k=e._fullLayout,T=1,M=!1,A=g.title,S=(A&&A.text?A.text:"").trim(),L=A&&A.font?A.font:{},C=L.family,O=L.size,P=L.color;"title.text"===m?h="titleText":-1!==m.indexOf("axis")?h="axisTitleText":m.indexOf(!0)&&(h="colorbarTitleText");var E=e._context.edits[h];""===S?T=0:S.replace(p," % ")===v.replace(p," % ")&&(T=.2,M=!0,E||(S="")),n._meta?S=l.templateString(S,n._meta):k._meta&&(S=l.templateString(S,k._meta));var z=S||E;w||(w=l.ensureSingle(k._infolayer,"g","g-"+t));var D=w.selectAll("text").data(z?[0]:[]);if(D.enter().append("text"),D.text(S).attr("class",t),D.exit().remove(),!z)return w;function R(e){l.syncOrAsync([I,N],e)}function I(t){var n;return _?(n="",_.rotate&&(n+="rotate("+[_.rotate,b.x,b.y]+")"),_.offset&&(n+="translate(0, "+_.offset+")")):n=null,t.attr("transform",n),t.style({"font-family":C,"font-size":r.round(O,2)+"px",fill:c.rgb(P),opacity:T*c.opacity(P),"font-weight":i.fontWeight}).attr(b).call(u.convertToTspans,e),i.previousPromises(e)}function N(e){var t=r.select(e.node().parentNode);if(x&&x.selection&&x.side&&S){t.attr("transform",null);var n=d[x.side],i="left"===x.side||"top"===x.side?-1:1,o=a(x.pad)?x.pad:2,c=s.bBox(t.node()),u={left:0,top:0,right:k.width,bottom:k.height},f=x.maxShift||i*(u[x.side]-c[x.side]),p=0;if(f<0)p=f;else{var h=x.offsetLeft||0,g=x.offsetTop||0;c.left-=h,c.right-=h,c.top-=g,c.bottom-=g,x.selection.each((function(){var e=s.bBox(this);l.bBoxIntersect(c,e,o)&&(p=Math.max(p,i*(e[x.side]-c[n])+o))})),p=Math.min(f,p)}if(p>0||f<0){var m={left:[-p,0],right:[p,0],top:[0,-p],bottom:[0,p]}[x.side];t.attr("transform","translate("+m+")")}}}return D.call(R),E&&(S?D.on(".opacity",null):(T=0,M=!0,D.text(v).on("mouseover.opacity",(function(){r.select(this).transition().duration(f.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(f.HIDE_PLACEHOLDER).style("opacity",0)}))),D.call(u.makeEditable,{gd:e}).on("edit",(function(t){void 0!==y?o.call("_guiRestyle",e,m,t,y):o.call("_guiRelayout",e,m,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(R)})).on("input",(function(e){this.text(e||" ").call(u.positionText,b.x,b.y)}))),D.classed("js-placeholder",M),w}}},{"../../constants/alignment":154,"../../constants/interactions":157,"../../lib":178,"../../lib/svg_text_utils":199,"../../plots/plots":256,"../../registry":269,"../color":52,"../drawing":74,d3:16,"fast-isnumeric":18}],148:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("../color/attributes"),i=e("../../lib/extend").extendFlat,o=e("../../plot_api/edit_types").overrideAll,l=e("../../plots/pad_attributes"),s=e("../../plot_api/plot_template").templatedArray,c=s("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});t.exports=o(s("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(l({editType:"arraydraw"}),{}),font:r({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:a.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},{"../../lib/extend":173,"../../plot_api/edit_types":205,"../../plot_api/plot_template":212,"../../plots/font_attributes":250,"../../plots/pad_attributes":255,"../color/attributes":51}],149:[function(e,t,n){"use strict";t.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},{}],150:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/array_container_defaults"),i=e("./attributes"),o=e("./constants").name,l=i.buttons;function s(e,t,n){function o(n,a){return r.coerce(e,t,i,n,a)}o("visible",a(e,t,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),r.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),r.coerceFont(o,"font",n.font),o("bgcolor",n.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(e,t){function n(n,a){return r.coerce(e,t,l,n,a)}n("visible","skip"===e.method||Array.isArray(e.args))&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}t.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},{"../../lib":178,"../../plots/array_container_defaults":218,"./attributes":148,"./constants":149}],151:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../plots/plots"),i=e("../color"),o=e("../drawing"),l=e("../../lib"),s=e("../../lib/svg_text_utils"),c=e("../../plot_api/plot_template").arrayEditor,u=e("../../constants/alignment").LINE_SPACING,f=e("./constants"),d=e("./scrollbox");function p(e){return e._index}function h(e,t){return+e.attr(f.menuIndexAttrName)===t._index}function g(e,t,n,r,a,i,o,l){t.active=o,c(e.layout,f.name,t).applyUpdate("active",o),"buttons"===t.type?v(e,r,null,null,t):"dropdown"===t.type&&(a.attr(f.menuIndexAttrName,"-1"),m(e,r,a,i,t),l||v(e,r,a,i,t))}function m(e,t,n,r,a){var i=l.ensureSingle(t,"g",f.headerClassName,(function(e){e.style("pointer-events","all")})),s=a._dims,c=a.active,u=a.buttons[c]||f.blankHeaderOpts,d={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},p={width:s.headerWidth,height:s.headerHeight};i.call(y,a,u,e).call(A,a,d,p),l.ensureSingle(t,"text",f.headerArrowClassName,(function(e){e.classed("user-select-none",!0).attr("text-anchor","end").call(o.font,a.font).text(f.arrowSymbol[a.direction])})).attr({x:s.headerWidth-f.arrowOffsetX+a.pad.l,y:s.headerHeight/2+f.textOffsetY+a.pad.t}),i.on("click",(function(){n.call(S,String(h(n,a)?-1:a._index)),v(e,t,n,r,a)})),i.on("mouseover",(function(){i.call(w)})),i.on("mouseout",(function(){i.call(k,a)})),o.setTranslate(t,s.lx,s.ly)}function v(e,t,n,i,o){n||(n=t).attr("pointer-events","all");var s=function(e){return-1==+e.attr(f.menuIndexAttrName)}(n)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?f.dropdownButtonClassName:f.buttonClassName,u=n.selectAll("g."+c).data(l.filterVisible(s)),d=u.enter().append("g").classed(c,!0),p=u.exit();"dropdown"===o.type?(d.attr("opacity","0").transition().attr("opacity","1"),p.transition().attr("opacity","0").remove()):p.remove();var h=0,m=0,v=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?m=v.headerHeight+f.gapButtonHeader:h=v.headerWidth+f.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(m=-f.gapButtonHeader+f.gapButton-v.openHeight),"dropdown"===o.type&&"left"===o.direction&&(h=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+h+o.pad.l,y:v.ly+m+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},T={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(l,s){var c=r.select(this);c.call(y,o,l,e).call(A,o,b),c.on("click",(function(){r.event.defaultPrevented||(l.execute&&(l.args2&&o.active===s?(g(e,o,0,t,n,i,-1),a.executeAPICommand(e,l.method,l.args2)):(g(e,o,0,t,n,i,s),a.executeAPICommand(e,l.method,l.args))),e.emit("plotly_buttonclicked",{menu:o,button:l,active:o.active}))})),c.on("mouseover",(function(){c.call(w)})),c.on("mouseout",(function(){c.call(k,o),u.call(_,o)}))})),u.call(_,o),x?(T.w=Math.max(v.openWidth,v.headerWidth),T.h=b.y-T.t):(T.w=b.x-T.l,T.h=Math.max(v.openHeight,v.headerHeight)),T.direction=o.direction,i&&(u.size()?function(e,t,n,r,a,i){var o,l,s,c=a.direction,u="up"===c||"down"===c,d=a._dims,p=a.active;if(u)for(l=0,s=0;s<p;s++)l+=d.heights[s]+f.gapButton;else for(o=0,s=0;s<p;s++)o+=d.widths[s]+f.gapButton;r.enable(i,o,l),r.hbar&&r.hbar.attr("opacity","0").transition().attr("opacity","1"),r.vbar&&r.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,i,o,T):function(e){var t=!!e.hbar,n=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",(function(){t=!1,n||e.disable()})),n&&e.vbar.transition().attr("opacity","0").each("end",(function(){n=!1,t||e.disable()}))}(i))}function y(e,t,n,r){e.call(x,t).call(b,t,n,r)}function x(e,t){l.ensureSingle(e,"rect",f.itemRectClassName,(function(e){e.attr({rx:f.rx,ry:f.ry,"shape-rendering":"crispEdges"})})).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function b(e,t,n,r){var a=l.ensureSingle(e,"text",f.itemTextClassName,(function(e){e.classed("user-select-none",!0).attr({"text-anchor":"start","data-notex":1})})),i=n.label,c=r._fullLayout._meta;c&&(i=l.templateString(i,c)),a.call(o.font,t.font).text(i).call(s.convertToTspans,r)}function _(e,t){var n=t.active;e.each((function(e,a){var o=r.select(this);a===n&&t.showactive&&o.select("rect."+f.itemRectClassName).call(i.fill,f.activeColor)}))}function w(e){e.select("rect."+f.itemRectClassName).call(i.fill,f.hoverColor)}function k(e,t){e.select("rect."+f.itemRectClassName).call(i.fill,t.bgcolor)}function T(e,t){var n=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},i=o.tester.selectAll("g."+f.dropdownButtonClassName).data(l.filterVisible(t.buttons));i.enter().append("g").classed(f.dropdownButtonClassName,!0);var c=-1!==["up","down"].indexOf(t.direction);i.each((function(a,i){var l=r.select(this);l.call(y,t,a,e);var d=l.select("."+f.itemTextClassName),p=d.node()&&o.bBox(d.node()).width,h=Math.max(p+f.textPadX,f.minWidth),g=t.font.size*u,m=s.lineCount(d),v=Math.max(g*m,f.minHeight)+f.textOffsetY;v=Math.ceil(v),h=Math.ceil(h),n.widths[i]=h,n.heights[i]=v,n.height1=Math.max(n.height1,v),n.width1=Math.max(n.width1,h),c?(n.totalWidth=Math.max(n.totalWidth,h),n.openWidth=n.totalWidth,n.totalHeight+=v+f.gapButton,n.openHeight+=v+f.gapButton):(n.totalWidth+=h+f.gapButton,n.openWidth+=h+f.gapButton,n.totalHeight=Math.max(n.totalHeight,v),n.openHeight=n.totalHeight)})),c?n.totalHeight-=f.gapButton:n.totalWidth-=f.gapButton,n.headerWidth=n.width1+f.arrowPadX,n.headerHeight=n.height1,"dropdown"===t.type&&(c?(n.width1+=f.arrowPadX,n.totalHeight=n.height1):n.totalWidth=n.width1,n.totalWidth+=f.arrowPadX),i.remove();var d=n.totalWidth+t.pad.l+t.pad.r,p=n.totalHeight+t.pad.t+t.pad.b,h=e._fullLayout._size;n.lx=h.l+h.w*t.x,n.ly=h.t+h.h*(1-t.y);var g="left";l.isRightAnchor(t)&&(n.lx-=d,g="right"),l.isCenterAnchor(t)&&(n.lx-=d/2,g="center");var m="top";l.isBottomAnchor(t)&&(n.ly-=p,m="bottom"),l.isMiddleAnchor(t)&&(n.ly-=p/2,m="middle"),n.totalWidth=Math.ceil(n.totalWidth),n.totalHeight=Math.ceil(n.totalHeight),n.lx=Math.round(n.lx),n.ly=Math.round(n.ly),a.autoMargin(e,M(t),{x:t.x,y:t.y,l:d*({right:1,center:.5}[g]||0),r:d*({left:1,center:.5}[g]||0),b:p*({top:1,middle:.5}[m]||0),t:p*({bottom:1,middle:.5}[m]||0)})}function M(e){return f.autoMarginIdRoot+e._index}function A(e,t,n,r){r=r||{};var a=e.select("."+f.itemRectClassName),i=e.select("."+f.itemTextClassName),l=t.borderwidth,c=n.index,d=t._dims;o.setTranslate(e,l+n.x,l+n.y);var p=-1!==["up","down"].indexOf(t.direction),h=r.height||(p?d.heights[c]:d.height1);a.attr({x:0,y:0,width:r.width||(p?d.width1:d.widths[c]),height:h});var g=t.font.size*u,m=(s.lineCount(i)-1)*g/2;s.positionText(i,f.textOffsetX,h/2-m+f.textOffsetY),p?n.y+=d.heights[c]+n.yPad:n.x+=d.widths[c]+n.xPad,n.index++}function S(e,t){e.attr(f.menuIndexAttrName,t||"-1").selectAll("g."+f.dropdownButtonClassName).remove()}t.exports=function(e){var t=e._fullLayout,n=l.filterVisible(t[f.name]);function i(t){a.autoMargin(e,M(t))}var o=t._menulayer.selectAll("g."+f.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){r.select(this).selectAll("g."+f.headerGroupClassName).each(i)})).remove(),0!==n.length){var s=o.selectAll("g."+f.headerGroupClassName).data(n,p);s.enter().append("g").classed(f.headerGroupClassName,!0);for(var c=l.ensureSingle(o,"g",f.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),u=0;u<n.length;u++){var y=n[u];T(e,y)}var x="updatemenus"+t._uid,b=new d(e,c,x);s.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(S)),s.exit().each((function(e){c.call(S),i(e)})).remove(),s.each((function(t){var n=r.select(this),i="dropdown"===t.type?c:null;a.manageCommandObserver(e,t,t.buttons,(function(r){g(e,t,t.buttons[r.index],n,i,b,r.index,!0)})),"dropdown"===t.type?(m(e,n,c,b,t),h(c,t)&&v(e,n,c,b,t)):v(e,n,null,null,t)}))}}},{"../../constants/alignment":154,"../../lib":178,"../../lib/svg_text_utils":199,"../../plot_api/plot_template":212,"../../plots/plots":256,"../color":52,"../drawing":74,"./constants":149,"./scrollbox":153,d3:16}],152:[function(e,t,n){arguments[4][146][0].apply(n,arguments)},{"./attributes":148,"./constants":149,"./defaults":150,"./draw":151,dup:146}],153:[function(e,t,n){"use strict";t.exports=l;var r=e("d3"),a=e("../color"),i=e("../drawing"),o=e("../../lib");function l(e,t,n){this.gd=e,this.container=t,this.id=n,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}l.barWidth=2,l.barLength=20,l.barRadius=2,l.barPad=1,l.barColor="#808BA4",l.prototype.enable=function(e,t,n){var o=this.gd._fullLayout,s=o.width,c=o.height;this.position=e;var u,f,d,p,h=this.position.l,g=this.position.w,m=this.position.t,v=this.position.h,y=this.position.direction,x="down"===y,b="left"===y,_="up"===y,w=g,k=v;x||b||"right"===y||_||(this.position.direction="down",x=!0),x||_?(f=(u=h)+w,x?(d=m,k=(p=Math.min(d+k,c))-d):k=(p=m+k)-(d=Math.max(p-k,0))):(p=(d=m)+k,b?w=(f=h+w)-(u=Math.max(f-w,0)):(u=h,w=(f=Math.min(u+w,s))-u)),this._box={l:u,t:d,w:w,h:k};var T=g>w,M=l.barLength+2*l.barPad,A=l.barWidth+2*l.barPad,S=h,L=m+v;L+A>c&&(L=c-A);var C=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,l.barColor),T?(this.hbar=C.attr({rx:l.barRadius,ry:l.barRadius,x:S,y:L,width:M,height:A}),this._hbarXMin=S+M/2,this._hbarTranslateMax=w-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=v>k,P=l.barWidth+2*l.barPad,E=l.barLength+2*l.barPad,z=h+g,D=m;z+P>s&&(z=s-P);var R=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,l.barColor),O?(this.vbar=R.attr({rx:l.barRadius,ry:l.barRadius,x:z,y:D,width:P,height:E}),this._vbarYMin=D+E/2,this._vbarTranslateMax=k-E):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var I=this.id,N=u-.5,F=O?f+P+.5:f+.5,B=d-.5,j=T?p+A+.5:p+.5,H=o._topdefs.selectAll("#"+I).data(T||O?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",I).append("rect"),T||O?(this._clipRect=H.select("rect").attr({x:Math.floor(N),y:Math.floor(B),width:Math.ceil(F)-Math.floor(N),height:Math.ceil(j)-Math.floor(B)}),this.container.call(i.setClipUrl,I,this.gd),this.bg.attr({x:h,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),T||O){var q=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(q);var V=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(V),O&&this.vbar.on(".drag",null).call(V)}this.setTranslate(t,n)},l.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.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)},l.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=r.event.dx),this.vbar&&(t-=r.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=r.event.deltaY),this.vbar&&(t+=r.event.deltaY),this.setTranslate(e,t)},l.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,a=n+this._hbarTranslateMax;e=(o.constrain(r.event.x,n,a)-n)/(a-n)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,l=i+this._vbarTranslateMax;t=(o.constrain(r.event.y,i,l)-i)/(l-i)*(this.position.h-this._box.h)}this.setTranslate(e,t)},l.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=o.constrain(e||0,0,n),t=o.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(i.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var a=e/n;this.hbar.call(i.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var l=t/r;this.vbar.call(i.setTranslate,e,t+l*this._vbarTranslateMax)}}},{"../../lib":178,"../color":52,"../drawing":74,d3:16}],154:[function(e,t,n){"use strict";t.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},{}],155:[function(e,t,n){"use strict";t.exports={FORMAT_LINK:"https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format",DATE_FORMAT_LINK:"https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Formatting.md#format"}},{}],156:[function(e,t,n){"use strict";t.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},{}],157:[function(e,t,n){"use strict";t.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],158:[function(e,t,n){"use strict";t.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},{}],159:[function(e,t,n){"use strict";n.xmlns="http://www.w3.org/2000/xmlns/",n.svg="http://www.w3.org/2000/svg",n.xlink="http://www.w3.org/1999/xlink",n.svgAttrs={xmlns:n.svg,"xmlns:xlink":n.xlink}},{}],160:[function(e,t,n){"use strict";n.version=e("./version").version,e("es6-promise").polyfill(),e("../build/plotcss"),e("./fonts/mathjax_config")();for(var r=e("./registry"),a=n.register=r.register,i=e("./plot_api"),o=Object.keys(i),l=0;l<o.length;l++){var s=o[l];"_"!==s.charAt(0)&&(n[s]=i[s]),a({moduleType:"apiMethod",name:s,fn:i[s]})}a(e("./traces/scatter")),a([e("./components/legend"),e("./components/fx"),e("./components/annotations"),e("./components/annotations3d"),e("./components/shapes"),e("./components/images"),e("./components/updatemenus"),e("./components/sliders"),e("./components/rangeslider"),e("./components/rangeselector"),e("./components/grid"),e("./components/errorbars"),e("./components/colorscale"),e("./components/colorbar")]),a([e("./locale-en"),e("./locale-en-us")]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(a(window.PlotlyLocales),delete window.PlotlyLocales),n.Icons=e("./fonts/ploticon"),n.Plots=e("./plots/plots"),n.Fx=e("./components/fx"),n.Snapshot=e("./snapshot"),n.PlotSchema=e("./plot_api/plot_schema"),n.Queue=e("./lib/queue"),n.d3=e("d3")},{"../build/plotcss":1,"./components/annotations":45,"./components/annotations3d":50,"./components/colorbar":58,"./components/colorscale":64,"./components/errorbars":80,"./components/fx":92,"./components/grid":96,"./components/images":101,"./components/legend":109,"./components/rangeselector":120,"./components/rangeslider":127,"./components/shapes":141,"./components/sliders":146,"./components/updatemenus":152,"./fonts/mathjax_config":161,"./fonts/ploticon":162,"./lib/queue":192,"./locale-en":203,"./locale-en-us":202,"./plot_api":207,"./plot_api/plot_schema":211,"./plots/plots":256,"./registry":269,"./snapshot":274,"./traces/scatter":401,"./version":435,d3:16,"es6-promise":17}],161:[function(e,t,n){"use strict";t.exports=function(){"undefined"!=typeof MathJax&&"local"!==(window.PlotlyConfig||{}).MathJaxConfig&&(MathJax.Hub.Config({messageStyle:"none",skipStartupTypeset:!0,displayAlign:"left",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}}),MathJax.Hub.Configured())}},{}],162:[function(e,t,n){"use strict";t.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'><defs><style>.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}</style></defs><title>plotly-logomark</title><g id='symbol'><rect class='cls-1' width='132' height='132' rx='6' ry='6'/><circle class='cls-2' cx='78' cy='54' r='6'/><circle class='cls-2' cx='102' cy='30' r='6'/><circle class='cls-2' cx='78' cy='30' r='6'/><circle class='cls-2' cx='54' cy='30' r='6'/><circle class='cls-2' cx='30' cy='30' r='6'/><circle class='cls-2' cx='30' cy='54' r='6'/><path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/><path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/><path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/><path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/></g></svg>"}}},{}],163:[function(e,t,n){"use strict";n.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},n.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},n.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},n.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},n.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},n.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},{}],164:[function(e,t,n){"use strict";var r=e("./mod"),a=r.mod,i=r.modHalf,o=Math.PI,l=2*o;function s(e){return Math.abs(e[1]-e[0])>l-1e-14}function c(e,t){return i(t-e,l)}function u(e,t){if(s(t))return!0;var n,r;t[0]<t[1]?(n=t[0],r=t[1]):(n=t[1],r=t[0]),(n=a(n,l))>(r=a(r,l))&&(r+=l);var i=a(e,l),o=i+l;return i>=n&&i<=r||o>=n&&o<=r}function f(e,t,n,r,a,i,c){a=a||0,i=i||0;var u,f,d,p,h,g=s([n,r]);function m(e,t){return[e*Math.cos(t)+a,i-e*Math.sin(t)]}g?(u=0,f=o,d=l):n<r?(u=n,d=r):(u=r,d=n),e<t?(p=e,h=t):(p=t,h=e);var v,y=Math.abs(d-u)<=o?0:1;function x(e,t,n){return"A"+[e,e]+" "+[0,y,n]+" "+m(e,t)}return g?v=null===p?"M"+m(h,u)+x(h,f,0)+x(h,d,0)+"Z":"M"+m(p,u)+x(p,f,0)+x(p,d,0)+"ZM"+m(h,u)+x(h,f,1)+x(h,d,1)+"Z":null===p?(v="M"+m(h,u)+x(h,d,0),c&&(v+="L0,0Z")):v="M"+m(p,u)+"L"+m(h,u)+x(h,d,0)+"L"+m(p,d)+x(p,u,1)+"Z",v}t.exports={deg2rad:function(e){return e/180*o},rad2deg:function(e){return e/o*180},angleDelta:c,angleDist:function(e,t){return Math.abs(c(e,t))},isFullCircle:s,isAngleInsideSector:u,isPtInsideSector:function(e,t,n,r){return!!u(t,r)&&(n[0]<n[1]?(a=n[0],i=n[1]):(a=n[1],i=n[0]),e>=a&&e<=i);var a,i},pathArc:function(e,t,n,r,a){return f(null,e,t,n,r,a,0)},pathSector:function(e,t,n,r,a){return f(null,e,t,n,r,a,1)},pathAnnulus:function(e,t,n,r,a,i){return f(e,t,n,r,a,i,1)}}},{"./mod":185}],165:[function(e,t,n){"use strict";var r=Array.isArray,a="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},i="undefined"==typeof DataView?function(){}:DataView;function o(e){return a.isView(e)&&!(e instanceof i)}function l(e){return r(e)||o(e)}function s(e,t,n){if(l(e)){if(l(e[0])){for(var r=n,a=0;a<e.length;a++)r=t(r,e[a].length);return r}return e.length}return 0}n.isTypedArray=o,n.isArrayOrTypedArray=l,n.isArray1D=function(e){return!l(e[0])},n.ensureArray=function(e,t){return r(e)||(e=[]),e.length=t,e},n.concat=function(){var e,t,n,a,i,o,l,s,c=[],u=!0,f=0;for(n=0;n<arguments.length;n++)(o=(a=arguments[n]).length)&&(t?c.push(a):(t=a,i=o),r(a)?e=!1:(u=!1,f?e!==a.constructor&&(e=!1):e=a.constructor),f+=o);if(!f)return[];if(!c.length)return t;if(u)return t.concat.apply(t,c);if(e){for((l=new e(f)).set(t),n=0;n<c.length;n++)a=c[n],l.set(a,i),i+=a.length;return l}for(l=new Array(f),s=0;s<t.length;s++)l[s]=t[s];for(n=0;n<c.length;n++){for(a=c[n],s=0;s<a.length;s++)l[i+s]=a[s];i+=s}return l},n.maxRowLength=function(e){return s(e,Math.max,0)},n.minRowLength=function(e){return s(e,Math.min,1/0)}},{}],166:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../constants/numerical").BADNUM,i=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;t.exports=function(e){return"string"==typeof e&&(e=e.replace(i,"")),r(e)?Number(e):a}},{"../constants/numerical":158,"fast-isnumeric":18}],167:[function(e,t,n){"use strict";t.exports=function(e){var t=e._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each((function(e){e.regl&&e.regl.clear({color:!0,depth:!0})}))}},{}],168:[function(e,t,n){"use strict";t.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}},{}],169:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("tinycolor2"),i=e("../plots/attributes"),o=e("../components/colorscale/scales"),l=e("../constants/interactions").DESELECTDIM,s=e("./nested_property"),c=e("./regex").counter,u=e("./mod").modHalf,f=e("./array").isArrayOrTypedArray;function d(e,t){var r=n.valObjectMeta[t.valType];if(t.arrayOk&&f(e))return!0;if(r.validateFunction)return r.validateFunction(e,t);var a={},i=a,o={set:function(e){i=e}};return r.coerceFunction(e,o,a,t),i!==a}n.valObjectMeta={data_array:{coerceFunction:function(e,t,n){f(e)?t.set(e):void 0!==n&&t.set(n)}},enumerated:{coerceFunction:function(e,t,n,r){r.coerceNumber&&(e=+e),-1===r.values.indexOf(e)?t.set(n):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var n=t.values,r=0;r<n.length;r++){var a=String(n[r]);if("/"===a.charAt(0)&&"/"===a.charAt(a.length-1)){if(new RegExp(a.substr(1,a.length-2)).test(e))return!0}else if(e===n[r])return!0}return!1}},boolean:{coerceFunction:function(e,t,n){!0===e||!1===e?t.set(e):t.set(n)}},number:{coerceFunction:function(e,t,n,a){!r(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(n):t.set(+e)}},integer:{coerceFunction:function(e,t,n,a){e%1||!r(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(n):t.set(+e)}},string:{coerceFunction:function(e,t,n,r){if("string"!=typeof e){var a="number"==typeof e;!0!==r.strict&&a?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{coerceFunction:function(e,t,n){a(e).isValid()?t.set(e):t.set(n)}},colorlist:{coerceFunction:function(e,t,n){Array.isArray(e)&&e.length&&e.every((function(e){return a(e).isValid()}))?t.set(e):t.set(n)}},colorscale:{coerceFunction:function(e,t,n){t.set(o.get(e,n))}},angle:{coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?t.set(u(+e,360)):t.set(n)}},subplotid:{coerceFunction:function(e,t,n,r){var a=r.regex||c(n);"string"==typeof e&&a.test(e)?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt;return e===n||"string"==typeof e&&!!c(n).test(e)}},flaglist:{coerceFunction:function(e,t,n,r){if("string"==typeof e)if(-1===(r.extras||[]).indexOf(e)){for(var a=e.split("+"),i=0;i<a.length;){var o=a[i];-1===r.flags.indexOf(o)||a.indexOf(o)<i?a.splice(i,1):i++}a.length?t.set(a.join("+")):t.set(n)}else t.set(e);else t.set(n)}},any:{coerceFunction:function(e,t,n){void 0===e?t.set(n):t.set(e)}},info_array:{coerceFunction:function(e,t,r,a){function i(e,t,r){var a,i={set:function(e){a=e}};return void 0===r&&(r=t.dflt),n.valObjectMeta[t.valType].coerceFunction(e,i,r,t),a}var o=2===a.dimensions||"1-2"===a.dimensions&&Array.isArray(e)&&Array.isArray(e[0]);if(Array.isArray(e)){var l,s,c,u,f,d,p=a.items,h=[],g=Array.isArray(p),m=g&&o&&Array.isArray(p[0]),v=o&&g&&!m,y=g&&!v?p.length:e.length;if(r=Array.isArray(r)?r:[],o)for(l=0;l<y;l++)for(h[l]=[],c=Array.isArray(e[l])?e[l]:[],f=v?p.length:g?p[l].length:c.length,s=0;s<f;s++)u=v?p[s]:g?p[l][s]:p,void 0!==(d=i(c[s],u,(r[l]||[])[s]))&&(h[l][s]=d);else for(l=0;l<y;l++)void 0!==(d=i(e[l],g?p[l]:p,r[l]))&&(h[l]=d);t.set(h)}else t.set(r)},validateFunction:function(e,t){if(!Array.isArray(e))return!1;var n=t.items,r=Array.isArray(n),a=2===t.dimensions;if(!t.freeLength&&e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(a){if(!Array.isArray(e[i])||!t.freeLength&&e[i].length!==n[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!d(e[i][o],r?n[i][o]:n))return!1}else if(!d(e[i],r?n[i]:n))return!1;return!0}}},n.coerce=function(e,t,r,a,i){var o=s(r,a).get(),l=s(e,a),c=s(t,a),u=l.get(),p=t._template;if(void 0===u&&p&&(u=s(p,a).get(),p=0),void 0===i&&(i=o.dflt),o.arrayOk&&f(u))return c.set(u),u;var h=n.valObjectMeta[o.valType].coerceFunction;h(u,c,i,o);var g=c.get();return p&&g===i&&!d(u,o)&&(h(u=s(p,a).get(),c,i,o),g=c.get()),g},n.coerce2=function(e,t,r,a,i){var o=s(e,a),l=n.coerce(e,t,r,a,i),c=o.get();return null!=c&&l},n.coerceFont=function(e,t,n){var r={};return n=n||{},r.family=e(t+".family",n.family),r.size=e(t+".size",n.size),r.color=e(t+".color",n.color),r},n.coerceHoverinfo=function(e,t,r){var a,o=t._module.attributes,l=o.hoverinfo?o:i,s=l.hoverinfo;if(1===r._dataLength){var c="all"===s.dflt?s.flags.slice():s.dflt.split("+");c.splice(c.indexOf("name"),1),a=c.join("+")}return n.coerce(e,t,l,"hoverinfo",a)},n.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var n,r,a=e.marker.opacity;void 0!==a&&(f(a)||e.selected||e.unselected||(n=a,r=l*a),t("selected.marker.opacity",n),t("unselected.marker.opacity",r))}},n.validate=d},{"../components/colorscale/scales":67,"../constants/interactions":157,"../plots/attributes":219,"./array":165,"./mod":185,"./nested_property":186,"./regex":193,"fast-isnumeric":18,tinycolor2:35}],170:[function(e,t,n){"use strict";var r,a,i=e("d3"),o=e("fast-isnumeric"),l=e("./loggers"),s=e("./mod").mod,c=e("../constants/numerical"),u=c.BADNUM,f=c.ONEDAY,d=c.ONEHOUR,p=c.ONEMIN,h=c.ONESEC,g=c.EPOCHJD,m=e("../registry"),v=i.time.format.utc,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function _(e){return e&&m.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function w(e,t){return String(e+Math.pow(10,t)).substr(1)}n.dateTick0=function(e,t){return _(e)?t?m.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:m.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"},n.dfltRange=function(e){return _(e)?m.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},n.isJSDate=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.getTime},n.dateTime2ms=function(e,t){if(n.isJSDate(e)){var i=e.getTimezoneOffset()*p,o=(e.getUTCMinutes()-e.getMinutes())*p+(e.getUTCSeconds()-e.getSeconds())*h+(e.getUTCMilliseconds()-e.getMilliseconds());if(o){var l=3*p;i=i-l/2+s(o-i+l/2,l)}return(e=Number(e)-i)>=r&&e<=a?e:u}if("string"!=typeof e&&"number"!=typeof e)return u;e=String(e);var c=_(t),v=e.charAt(0);!c||"G"!==v&&"g"!==v||(e=e.substr(1),t="");var w=c&&"chinese"===t.substr(0,7),k=e.match(w?x:y);if(!k)return u;var T=k[1],M=k[3]||"1",A=Number(k[5]||1),S=Number(k[7]||0),L=Number(k[9]||0),C=Number(k[11]||0);if(c){if(2===T.length)return u;var O;T=Number(T);try{var P=m.getComponentMethod("calendars","getCal")(t);if(w){var E="i"===M.charAt(M.length-1);M=parseInt(M,10),O=P.newDate(T,P.toMonthIndex(T,M,E),A)}else O=P.newDate(T,Number(M),A)}catch(e){return u}return O?(O.toJD()-g)*f+S*d+L*p+C*h:u}T=2===T.length?(Number(T)+2e3-b)%100+b:Number(T),M-=1;var z=new Date(Date.UTC(2e3,M,A,S,L));return z.setUTCFullYear(T),z.getUTCMonth()!==M||z.getUTCDate()!==A?u:z.getTime()+C*h},r=n.MIN_MS=n.dateTime2ms("-9999"),a=n.MAX_MS=n.dateTime2ms("9999-12-31 23:59:59.9999"),n.isDateTime=function(e,t){return n.dateTime2ms(e,t)!==u};var k=90*f,T=3*d,M=5*p;function A(e,t,n,r,a){if((t||n||r||a)&&(e+=" "+w(t,2)+":"+w(n,2),(r||a)&&(e+=":"+w(r,2),a))){for(var i=4;a%10==0;)i-=1,a/=10;e+="."+w(a,i)}return e}n.ms2DateTime=function(e,t,n){if("number"!=typeof e||!(e>=r&&e<=a))return u;t||(t=0);var i,o,l,c,y,x,b=Math.floor(10*s(e+.05,1)),w=Math.round(e-b/10);if(_(n)){var S=Math.floor(w/f)+g,L=Math.floor(s(e,f));try{i=m.getComponentMethod("calendars","getCal")(n).fromJD(S).formatDate("yyyy-mm-dd")}catch(e){i=v("G%Y-%m-%d")(new Date(w))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=t<k?Math.floor(L/d):0,l=t<k?Math.floor(L%d/p):0,c=t<T?Math.floor(L%p/h):0,y=t<M?L%h*10+b:0}else x=new Date(w),i=v("%Y-%m-%d")(x),o=t<k?x.getUTCHours():0,l=t<k?x.getUTCMinutes():0,c=t<T?x.getUTCSeconds():0,y=t<M?10*x.getUTCMilliseconds()+b:0;return A(i,o,l,c,y)},n.ms2DateTimeLocal=function(e){if(!(e>=r+f&&e<=a-f))return u;var t=Math.floor(10*s(e+.05,1)),n=new Date(Math.round(e-t/10));return A(i.time.format("%Y-%m-%d")(n),n.getHours(),n.getMinutes(),n.getSeconds(),10*n.getUTCMilliseconds()+t)},n.cleanDate=function(e,t,r){if(e===u)return t;if(n.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(_(r))return l.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(!(e=n.ms2DateTimeLocal(+e))&&void 0!==t)return t}else if(!n.isDateTime(e,r))return l.error("unrecognized date",e),t;return e};var S=/%\d?f/g;function L(e,t,n,r){e=e.replace(S,(function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"}));var a=new Date(Math.floor(t+.05));if(_(r))try{e=m.getComponentMethod("calendars","worldCalFmt")(e,t,r)}catch(e){return"Invalid"}return n(e)(a)}var C=[59,59.9,59.99,59.999,59.9999];n.formatDate=function(e,t,n,r,a,i){if(a=_(a)&&a,!t)if("y"===n)t=i.year;else if("m"===n)t=i.month;else{if("d"!==n)return function(e,t){var n=s(e+.05,f),r=w(Math.floor(n/d),2)+":"+w(s(Math.floor(n/p),60),2);if("M"!==t){o(t)||(t=0);var a=(100+Math.min(s(e/h,60),C[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+a}return r}(e,n)+"\n"+L(i.dayMonthYear,e,r,a);t=i.dayMonth+"\n"+i.year}return L(t,e,r,a)};var O=3*f;n.incrementMonth=function(e,t,n){n=_(n)&&n;var r=s(e,f);if(e=Math.round(e-r),n)try{var a=Math.round(e/f)+g,i=m.getComponentMethod("calendars","getCal")(n),o=i.fromJD(a);return t%12?i.add(o,t,"m"):i.add(o,t/12,"y"),(o.toJD()-g)*f+r}catch(t){l.error("invalid ms "+e+" in calendar "+n)}var c=new Date(e+O);return c.setUTCMonth(c.getUTCMonth()+t)+r-O},n.findExactDates=function(e,t){for(var n,r,a=0,i=0,l=0,s=0,c=_(t)&&m.getComponentMethod("calendars","getCal")(t),u=0;u<e.length;u++)if(r=e[u],o(r)){if(!(r%f))if(c)try{1===(n=c.fromJD(r/f+g)).day()?1===n.month()?a++:i++:l++}catch(e){}else 1===(n=new Date(r)).getUTCDate()?0===n.getUTCMonth()?a++:i++:l++}else s++;l+=i+=a;var d=e.length-s;return{exactYears:a/d,exactMonths:i/d,exactDays:l/d}}},{"../constants/numerical":158,"../registry":269,"./loggers":182,"./mod":185,d3:16,"fast-isnumeric":18}],171:[function(e,t,n){"use strict";var r=e("d3"),a=e("./loggers");function i(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function o(e,t,n){var r="plotly.js-style-"+e,i=document.getElementById(r);i||((i=document.createElement("style")).setAttribute("id",r),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var o=i.sheet;o.insertRule?o.insertRule(t+"{"+n+"}",0):o.addRule?o.addRule(t,n,0):a.warn("addStyleRule failed")}t.exports={getGraphDiv:function(e){var t;if("string"==typeof e){if(null===(t=document.getElementById(e)))throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null==e)throw new Error("DOM element provided is null or undefined");return e},isPlotDiv:function(e){var t=r.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")},removeElement:i,addStyleRule:function(e,t){o("global",e,t)},addRelatedStyleRule:o,deleteRelatedStyleRule:function(e){var t="plotly.js-style-"+e,n=document.getElementById(t);n&&i(n)}}},{"./loggers":182,d3:16}],172:[function(e,t,n){"use strict";var r=e("events").EventEmitter,a={init:function(e){if(e._ev instanceof r)return e;var t=new r,n=new r;return e._ev=t,e._internalEv=n,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=n.on.bind(n),e._internalOnce=n.once.bind(n),e._removeInternalListener=n.removeListener.bind(n),e._removeAllInternalListeners=n.removeAllListeners.bind(n),e.emit=function(r,a){"undefined"!=typeof jQuery&&jQuery(e).trigger(r,a),t.emit(r,a),n.emit(r,a)},e},triggerHandler:function(e,t,n){var r,a;"undefined"!=typeof jQuery&&(r=jQuery(e).triggerHandler(t,n));var i=e._ev;if(!i)return r;var o,l=i._events[t];if(!l)return r;function s(e){return e.listener?(i.removeListener(t,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(i,[n]))):e.apply(i,[n])}for(l=Array.isArray(l)?l:[l],o=0;o<l.length-1;o++)s(l[o]);return a=s(l[o]),void 0!==r?r:a},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};t.exports=a},{events:15}],173:[function(e,t,n){"use strict";var r=e("./is_plain_object.js"),a=Array.isArray;function i(e,t,n,o){var l,s,c,u,f,d,p=e[0],h=e.length;if(2===h&&a(p)&&a(e[1])&&0===p.length){if(function(e,t){var n,r;for(n=0;n<e.length;n++){if(null!==(r=e[n])&&"object"==typeof r)return!1;void 0!==r&&(t[n]=r)}return!0}(e[1],p))return p;p.splice(0,p.length)}for(var g=1;g<h;g++)for(s in l=e[g])c=p[s],u=l[s],o&&a(u)?p[s]=u:t&&u&&(r(u)||(f=a(u)))?(f?(f=!1,d=c&&a(c)?c:[]):d=c&&r(c)?c:{},p[s]=i([d,u],t,n,o)):(void 0!==u||n)&&(p[s]=u);return p}n.extendFlat=function(){return i(arguments,!1,!1,!1)},n.extendDeep=function(){return i(arguments,!0,!1,!1)},n.extendDeepAll=function(){return i(arguments,!0,!0,!1)},n.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},{"./is_plain_object.js":179}],174:[function(e,t,n){"use strict";t.exports=function(e){for(var t={},n=[],r=0,a=0;a<e.length;a++){var i=e[a];1!==t[i]&&(t[i]=1,n[r++]=i)}return n}},{}],175:[function(e,t,n){"use strict";function r(e){return!0===e.visible}function a(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}t.exports=function(e){for(var t,n=(t=e,Array.isArray(t)&&Array.isArray(t[0])&&t[0][0]&&t[0][0].trace?a:r),i=[],o=0;o<e.length;o++){var l=e[o];n(l)&&i.push(l)}return i}},{}],176:[function(e,t,n){"use strict";var r,a,i,o=e("./mod").mod;function l(e,t,n,r,a,i,o,l){var s=n-e,c=a-e,u=o-a,f=r-t,d=i-t,p=l-i,h=s*p-u*f;if(0===h)return null;var g=(c*p-u*d)/h,m=(c*f-s*d)/h;return m<0||m>1||g<0||g>1?null:{x:e+s*g,y:t+f*g}}function s(e,t,n,r,a){var i=r*e+a*t;if(i<0)return r*r+a*a;if(i>n){var o=r-e,l=a-t;return o*o+l*l}var s=r*t-a*e;return s*s/n}n.segmentsIntersect=l,n.segmentDistance=function(e,t,n,r,a,i,o,c){if(l(e,t,n,r,a,i,o,c))return 0;var u=n-e,f=r-t,d=o-a,p=c-i,h=u*u+f*f,g=d*d+p*p,m=Math.min(s(u,f,h,a-e,i-t),s(u,f,h,o-e,c-t),s(d,p,g,e-a,t-i),s(d,p,g,n-a,r-i));return Math.sqrt(m)},n.getTextLocation=function(e,t,n,l){if(e===a&&l===i||(r={},a=e,i=l),r[n])return r[n];var s=e.getPointAtLength(o(n-l/2,t)),c=e.getPointAtLength(o(n+l/2,t)),u=Math.atan((c.y-s.y)/(c.x-s.x)),f=e.getPointAtLength(o(n,t)),d={x:(4*f.x+s.x+c.x)/6,y:(4*f.y+s.y+c.y)/6,theta:u};return r[n]=d,d},n.clearLocationCache=function(){a=null},n.getVisibleSegment=function(e,t,n){var r,a,i=t.left,o=t.right,l=t.top,s=t.bottom,c=0,u=e.getTotalLength(),f=u;function d(t){var n=e.getPointAtLength(t);0===t?r=n:t===u&&(a=n);var c=n.x<i?i-n.x:n.x>o?n.x-o:0,f=n.y<l?l-n.y:n.y>s?n.y-s:0;return Math.sqrt(c*c+f*f)}for(var p=d(c);p;){if((c+=p+n)>f)return;p=d(c)}for(p=d(f);p;){if(c>(f-=p+n))return;p=d(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&&f===u&&Math.abs(r.x-a.x)<.1&&Math.abs(r.y-a.y)<.1}},n.findPointOnPath=function(e,t,n,r){for(var a,i,o,l=(r=r||{}).pathLength||e.getTotalLength(),s=r.tolerance||.001,c=r.iterationLimit||30,u=e.getPointAtLength(0)[n]>e.getPointAtLength(l)[n]?-1:1,f=0,d=0,p=l;f<c;){if(a=(d+p)/2,o=(i=e.getPointAtLength(a))[n]-t,Math.abs(o)<s)return i;u*o>0?p=a:d=a,f++}return i}},{"./mod":185}],177:[function(e,t,n){"use strict";t.exports=function(e){return e}},{}],178:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("../constants/numerical"),o=i.FP_SAFE,l=i.BADNUM,s=t.exports={};s.nestedProperty=e("./nested_property"),s.keyedContainer=e("./keyed_container"),s.relativeAttr=e("./relative_attr"),s.isPlainObject=e("./is_plain_object"),s.toLogRange=e("./to_log_range"),s.relinkPrivateKeys=e("./relink_private");var c=e("./array");s.isTypedArray=c.isTypedArray,s.isArrayOrTypedArray=c.isArrayOrTypedArray,s.isArray1D=c.isArray1D,s.ensureArray=c.ensureArray,s.concat=c.concat,s.maxRowLength=c.maxRowLength,s.minRowLength=c.minRowLength;var u=e("./mod");s.mod=u.mod,s.modHalf=u.modHalf;var f=e("./coerce");s.valObjectMeta=f.valObjectMeta,s.coerce=f.coerce,s.coerce2=f.coerce2,s.coerceFont=f.coerceFont,s.coerceHoverinfo=f.coerceHoverinfo,s.coerceSelectionMarkerOpacity=f.coerceSelectionMarkerOpacity,s.validate=f.validate;var d=e("./dates");s.dateTime2ms=d.dateTime2ms,s.isDateTime=d.isDateTime,s.ms2DateTime=d.ms2DateTime,s.ms2DateTimeLocal=d.ms2DateTimeLocal,s.cleanDate=d.cleanDate,s.isJSDate=d.isJSDate,s.formatDate=d.formatDate,s.incrementMonth=d.incrementMonth,s.dateTick0=d.dateTick0,s.dfltRange=d.dfltRange,s.findExactDates=d.findExactDates,s.MIN_MS=d.MIN_MS,s.MAX_MS=d.MAX_MS;var p=e("./search");s.findBin=p.findBin,s.sorterAsc=p.sorterAsc,s.sorterDes=p.sorterDes,s.distinctVals=p.distinctVals,s.roundUp=p.roundUp,s.sort=p.sort,s.findIndexOfMin=p.findIndexOfMin;var h=e("./stats");s.aggNums=h.aggNums,s.len=h.len,s.mean=h.mean,s.median=h.median,s.midRange=h.midRange,s.variance=h.variance,s.stdev=h.stdev,s.interp=h.interp;var g=e("./matrix");s.init2dArray=g.init2dArray,s.transposeRagged=g.transposeRagged,s.dot=g.dot,s.translationMatrix=g.translationMatrix,s.rotationMatrix=g.rotationMatrix,s.rotationXYMatrix=g.rotationXYMatrix,s.apply2DTransform=g.apply2DTransform,s.apply2DTransform2=g.apply2DTransform2;var m=e("./angles");s.deg2rad=m.deg2rad,s.rad2deg=m.rad2deg,s.angleDelta=m.angleDelta,s.angleDist=m.angleDist,s.isFullCircle=m.isFullCircle,s.isAngleInsideSector=m.isAngleInsideSector,s.isPtInsideSector=m.isPtInsideSector,s.pathArc=m.pathArc,s.pathSector=m.pathSector,s.pathAnnulus=m.pathAnnulus;var v=e("./anchor_utils");s.isLeftAnchor=v.isLeftAnchor,s.isCenterAnchor=v.isCenterAnchor,s.isRightAnchor=v.isRightAnchor,s.isTopAnchor=v.isTopAnchor,s.isMiddleAnchor=v.isMiddleAnchor,s.isBottomAnchor=v.isBottomAnchor;var y=e("./geometry2d");s.segmentsIntersect=y.segmentsIntersect,s.segmentDistance=y.segmentDistance,s.getTextLocation=y.getTextLocation,s.clearLocationCache=y.clearLocationCache,s.getVisibleSegment=y.getVisibleSegment,s.findPointOnPath=y.findPointOnPath;var x=e("./extend");s.extendFlat=x.extendFlat,s.extendDeep=x.extendDeep,s.extendDeepAll=x.extendDeepAll,s.extendDeepNoArrays=x.extendDeepNoArrays;var b=e("./loggers");s.log=b.log,s.warn=b.warn,s.error=b.error;var _=e("./regex");s.counterRegex=_.counter;var w=e("./throttle");s.throttle=w.throttle,s.throttleDone=w.done,s.clearThrottle=w.clear;var k=e("./dom");function T(e){var t={};for(var n in e)for(var r=e[n],a=0;a<r.length;a++)t[r[a]]=+n;return t}s.getGraphDiv=k.getGraphDiv,s.isPlotDiv=k.isPlotDiv,s.removeElement=k.removeElement,s.addStyleRule=k.addStyleRule,s.addRelatedStyleRule=k.addRelatedStyleRule,s.deleteRelatedStyleRule=k.deleteRelatedStyleRule,s.clearResponsive=e("./clear_responsive"),s.makeTraceGroups=e("./make_trace_groups"),s._=e("./localize"),s.notifier=e("./notifier"),s.filterUnique=e("./filter_unique"),s.filterVisible=e("./filter_visible"),s.pushUnique=e("./push_unique"),s.cleanNumber=e("./clean_number"),s.ensureNumber=function(e){return a(e)?(e=Number(e))<-o||e>o?l:a(e)?Number(e):l:l},s.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&a(e)&&e>=0&&e%1==0},s.noop=e("./noop"),s.identity=e("./identity"),s.repeat=function(e,t){for(var n=new Array(t),r=0;r<t;r++)n[r]=e;return n},s.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var a=0;a<t.length;a++){var i=t[a],o=s.nestedProperty(e,i.replace("?",n)),l=s.nestedProperty(e,i.replace("?",r)),c=o.get();o.set(l.get()),l.set(c)}},s.raiseToTop=function(e){e.parentNode.appendChild(e)},s.cancelTransition=function(e){return e.transition().duration(0)},s.constrain=function(e,t,n){return t>n?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},s.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},s.simpleMap=function(e,t,n,r){for(var a=e.length,i=new Array(a),o=0;o<a;o++)i[o]=t(e[o],n,r);return i},s.randstr=function e(t,n,r,a){if(r||(r=16),void 0===n&&(n=24),n<=0)return"0";var i,o,l=Math.log(Math.pow(2,n))/Math.log(r),c="";for(i=2;l===1/0;i*=2)l=Math.log(Math.pow(2,n/i))/Math.log(r)*i;var u=l-Math.floor(l);for(i=0;i<Math.floor(l);i++)c=Math.floor(Math.random()*r).toString(r)+c;u&&(o=Math.pow(r,u),c=Math.floor(Math.random()*o).toString(r)+c);var f=parseInt(c,r);return t&&t[c]||f!==1/0&&f>=Math.pow(2,n)?a>10?(s.warn("randstr failed uniqueness"),c):e(t,n,r,(a||0)+1):c},s.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},s.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,a,i,o=e.length,l=2*o,s=2*t-1,c=new Array(s),u=new Array(o);for(n=0;n<s;n++)c[n]=(1-Math.cos(Math.PI*(n+1)/t))/(2*t);for(n=0;n<o;n++){for(i=0,r=0;r<s;r++)(a=n+r+1-t)<-o?a-=l*Math.round(a/l):a>=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=o&&(a=l-1-a),i+=e[a]*c[r];u[n]=i}return u},s.syncOrAsync=function(e,t,n){var r;function a(){return s.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(a).then(void 0,s.promiseError);return n&&n(t)},s.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},s.noneOrAll=function(e,t,n){if(e){var r,a=!1,i=!0;for(r=0;r<n.length;r++)null!=e[n[r]]?a=!0:i=!1;if(a&&!i)for(r=0;r<n.length;r++)e[n[r]]=t[n[r]]}},s.mergeArray=function(e,t,n,r){var a="function"==typeof r;if(s.isArrayOrTypedArray(e))for(var i=Math.min(e.length,t.length),o=0;o<i;o++){var l=e[o];t[o][n]=a?r(l):l}},s.mergeArrayCastPositive=function(e,t,n){return s.mergeArray(e,t,n,(function(e){var t=+e;return isFinite(t)&&t>0?t:0}))},s.fillArray=function(e,t,n,r){if(r=r||s.identity,s.isArrayOrTypedArray(e))for(var a=0;a<t.length;a++)t[a][n]=r(e[a])},s.castOption=function(e,t,n,r){r=r||s.identity;var a=s.nestedProperty(e,n).get();return s.isArrayOrTypedArray(a)?Array.isArray(t)&&s.isArrayOrTypedArray(a[t[0]])?r(a[t[0]][t[1]]):r(a[t]):a},s.extractOption=function(e,t,n,r){if(n in e)return e[n];var a=s.nestedProperty(t,r).get();return Array.isArray(a)?void 0:a},s.tagSelected=function(e,t,n){var r,a,i=t.selectedpoints,o=t._indexToPoints;o&&(r=T(o));for(var l=0;l<i.length;l++){var c=i[l];if(s.isIndex(c)||s.isArrayOrTypedArray(c)&&s.isIndex(c[0])&&s.isIndex(c[1])){var u=r?r[c]:c,f=n?n[u]:u;void 0!==(a=f)&&a<e.length&&(e[f].selected=1)}}},s.selIndices2selPoints=function(e){var t=e.selectedpoints,n=e._indexToPoints;if(n){for(var r=T(n),a=[],i=0;i<t.length;i++){var o=t[i];if(s.isIndex(o)){var l=r[o];s.isIndex(l)&&a.push(l)}}return a}return t},s.getTargetArray=function(e,t){var n=t.target;if("string"==typeof n&&n){var r=s.nestedProperty(e,n).get();return!!Array.isArray(r)&&r}return!!Array.isArray(n)&&n},s.minExtend=function(e,t){var n={};"object"!=typeof t&&(t={});var r,a,i,o=Object.keys(e);for(r=0;r<o.length;r++)i=e[a=o[r]],"_"!==a.charAt(0)&&"function"!=typeof i&&("module"===a?n[a]=i:Array.isArray(i)?n[a]="colorscale"===a?i.slice():i.slice(0,3):s.isTypedArray(i)?n[a]=i.subarray(0,3):n[a]=i&&"object"==typeof i?s.minExtend(e[a],t[a]):i);for(o=Object.keys(t),r=0;r<o.length;r++)"object"==typeof(i=t[a=o[r]])&&a in n&&"object"==typeof n[a]||(n[a]=i);return n},s.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},s.containsAny=function(e,t){for(var n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))return!0;return!1},s.isIE=function(){return void 0!==window.navigator.msSaveBlob};var M=/MSIE [1-9]\./;s.isIE9orBelow=function(){return s.isIE()&&M.test(window.navigator.userAgent)};var A=/Version\/[\d\.]+.*Safari/;s.isSafari=function(){return A.test(window.navigator.userAgent)},s.isD3Selection=function(e){return e&&"function"==typeof e.classed},s.ensureSingle=function(e,t,n,r){var a=e.select(t+(n?"."+n:""));if(a.size())return a;var i=e.append(t);return n&&i.classed(n,!0),r&&i.call(r),i},s.ensureSingleById=function(e,t,n,r){var a=e.select(t+"#"+n);if(a.size())return a;var i=e.append(t).attr("id",n);return r&&i.call(r),i},s.objectFromPath=function(e,t){for(var n,r=e.split("."),a=n={},i=0;i<r.length;i++){var o=r[i],l=null,s=r[i].match(/(.*)\[([0-9]+)\]/);s?(o=s[1],l=s[2],n=n[o]=[],i===r.length-1?n[l]=t:n[l]={},n=n[l]):(i===r.length-1?n[o]=t:n[o]={},n=n[o])}return a};var S=/^([^\[\.]+)\.(.+)?/,L=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;s.expandObjectPaths=function(e){var t,n,r,a,i,o,l;if("object"==typeof e&&!Array.isArray(e))for(n in e)e.hasOwnProperty(n)&&((t=n.match(S))?(a=e[n],r=t[1],delete e[n],e[r]=s.extendDeepNoArrays(e[r]||{},s.objectFromPath(n,s.expandObjectPaths(a))[r])):(t=n.match(L))?(a=e[n],r=t[1],i=parseInt(t[2]),delete e[n],e[r]=e[r]||[],"."===t[3]?(l=t[4],o=e[r][i]=e[r][i]||{},s.extendDeepNoArrays(o,s.objectFromPath(l,s.expandObjectPaths(a)))):e[r][i]=s.expandObjectPaths(a)):e[n]=s.expandObjectPaths(e[n]));return e},s.numSeparate=function(e,t,n){if(n||(n=!1),"string"!=typeof t||0===t.length)throw new Error("Separator string required for formatting!");"number"==typeof e&&(e=String(e));var r=/(\d+)(\d{3})/,a=t.charAt(0),i=t.charAt(1),o=e.split("."),l=o[0],s=o.length>1?a+o[1]:"";if(i&&(o.length>1||l.length>4||n))for(;r.test(l);)l=l.replace(r,"$1"+i+"$2");return l+s},s.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var C=/^\w*$/;s.templateString=function(e,t){var n={};return e.replace(s.TEMPLATE_STRING_REGEX,(function(e,r){var a;return C.test(r)?a=t[r]:(n[r]=n[r]||s.nestedProperty(t,r).get,a=n[r]()),s.isValidTextValue(a)?a:""}))};var O={max:10,count:0,name:"hovertemplate"};s.hovertemplateString=function(){return z.apply(O,arguments)};var P={max:10,count:0,name:"texttemplate"};s.texttemplateString=function(){return z.apply(P,arguments)};var E=/^[:|\|]/;function z(e,t,n){var a=this,i=arguments;t||(t={});var o={};return e.replace(s.TEMPLATE_STRING_REGEX,(function(e,l,c){var u,f,d,p;for(d=3;d<i.length;d++)if(u=i[d]){if(u.hasOwnProperty(l)){f=u[l];break}if(C.test(l)||(f=o[l]||s.nestedProperty(u,l).get())&&(o[l]=f),void 0!==f)break}if(void 0===f&&a)return a.count<a.max&&(s.warn("Variable '"+l+"' in "+a.name+" could not be found!"),f=e),a.count===a.max&&s.warn("Too many "+a.name+" warnings - additional warnings will be suppressed"),a.count++,e;if(c){if(":"===c[0]&&(f=(p=n?n.numberFormat:r.format)(c.replace(E,""))(f)),"|"===c[0]){p=n?n.timeFormat.utc:r.time.format.utc;var h=s.dateTime2ms(f);f=s.formatDate(h,c.replace(E,""),!1,p)}}else t.hasOwnProperty(l+"Label")&&(f=t[l+"Label"]);return f}))}s.subplotSort=function(e,t){for(var n=Math.min(e.length,t.length)+1,r=0,a=0,i=0;i<n;i++){var o=e.charCodeAt(i)||0,l=t.charCodeAt(i)||0,s=o>=48&&o<=57,c=l>=48&&l<=57;if(s&&(r=10*r+o-48),c&&(a=10*a+l-48),!s||!c){if(r!==a)return r-a;if(o!==l)return o-l}}return a-r};var D=2e9;s.seedPseudoRandom=function(){D=2e9},s.pseudoRandom=function(){var e=D;return D=(69069*D+1)%4294967296,Math.abs(D-e)<429496729?s.pseudoRandom():D/4294967296},s.fillText=function(e,t,n){var r=Array.isArray(n)?function(e){n.push(e)}:function(e){n.text=e},a=s.extractOption(e,t,"htx","hovertext");if(s.isValidTextValue(a))return r(a);var i=s.extractOption(e,t,"tx","text");return s.isValidTextValue(i)?r(i):void 0},s.isValidTextValue=function(e){return e||0===e},s.formatPercent=function(e,t){t=t||0;for(var n=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",r=0;r<t;r++)-1!==n.indexOf(".")&&(n=(n=n.replace("0%","%")).replace(".%","%"));return n},s.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||"none"===t},s.getTextTransform=function(e){var t=e.noCenter,n=e.textX,r=e.textY,a=e.targetX,i=e.targetY,o=e.anchorX||0,l=e.anchorY||0,s=e.rotate,c=e.scale;return c?c>1&&(c=1):c=0,"translate("+(a-c*(n+o))+","+(i-c*(r+l))+")"+(c<1?"scale("+c+")":"")+(s?"rotate("+s+(t?"":" "+n+" "+r)+")":"")},s.ensureUniformFontSize=function(e,t){var n=s.extendFlat({},t);return n.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),n}},{"../constants/numerical":158,"./anchor_utils":163,"./angles":164,"./array":165,"./clean_number":166,"./clear_responsive":168,"./coerce":169,"./dates":170,"./dom":171,"./extend":173,"./filter_unique":174,"./filter_visible":175,"./geometry2d":176,"./identity":177,"./is_plain_object":179,"./keyed_container":180,"./localize":181,"./loggers":182,"./make_trace_groups":183,"./matrix":184,"./mod":185,"./nested_property":186,"./noop":187,"./notifier":188,"./push_unique":191,"./regex":193,"./relative_attr":194,"./relink_private":195,"./search":196,"./stats":198,"./throttle":200,"./to_log_range":201,d3:16,"fast-isnumeric":18}],179:[function(e,t,n){"use strict";t.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.prototype}},{}],180:[function(e,t,n){"use strict";var r=e("./nested_property"),a=/^\w*$/;t.exports=function(e,t,n,i){var o,l,s;n=n||"name",i=i||"value";var c={};t&&t.length?(s=r(e,t),l=s.get()):l=e,t=t||"";var u={};if(l)for(o=0;o<l.length;o++)u[l[o][n]]=o;var f=a.test(i),d={set:function(e,t){var a=null===t?4:0;if(!l){if(!s||4===a)return;l=[],s.set(l)}var o=u[e];if(void 0===o){if(4===a)return;a|=3,o=l.length,u[e]=o}else t!==(f?l[o][i]:r(l[o],i).get())&&(a|=2);var p=l[o]=l[o]||{};return p[n]=e,f?p[i]=t:r(p,i).set(t),null!==t&&(a&=-5),c[o]=c[o]|a,d},get:function(e){if(l){var t=u[e];return void 0===t?void 0:f?l[t][i]:r(l[t],i).get()}},rename:function(e,t){var r=u[e];return void 0===r||(c[r]=1|c[r],u[t]=r,delete u[e],l[r][n]=t),d},remove:function(e){var t=u[e];if(void 0===t)return d;var a=l[t];if(Object.keys(a).length>2)return c[t]=2|c[t],d.set(e,null);if(f){for(o=t;o<l.length;o++)c[o]=3|c[o];for(o=t;o<l.length;o++)u[l[o][n]]--;l.splice(t,1),delete u[e]}else r(a,i).set(null),c[t]=6|c[t];return d},constructUpdate:function(){for(var e,a,o={},s=Object.keys(c),u=0;u<s.length;u++)a=s[u],e=t+"["+a+"]",l[a]?(1&c[a]&&(o[e+"."+n]=l[a][n]),2&c[a]&&(o[e+"."+i]=f?4&c[a]?null:l[a][i]:4&c[a]?null:r(l[a],i).get())):o[e]=null;return o}};return d}},{"./nested_property":186}],181:[function(e,t,n){"use strict";var r=e("../registry");t.exports=function(e,t){for(var n=e._context.locale,a=0;a<2;a++){for(var i=e._context.locales,o=0;o<2;o++){var l=(i[n]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=r.localeRegistry}var c=n.split("-")[0];if(c===n)break;n=c}return t}},{"../registry":269}],182:[function(e,t,n){"use strict";var r=e("../plot_api/plot_config").dfltConfig,a=e("./notifier"),i=t.exports={};function o(e,t){if(e&&e.apply)try{return void e.apply(console,t)}catch(e){}for(var n=0;n<t.length;n++)try{e(t[n])}catch(e){console.log(t[n])}}i.log=function(){var e;if(r.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o(console.trace||console.log,t)}if(r.notifyOnLogging>1){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"long")}},i.warn=function(){var e;if(r.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o(console.trace||console.log,t)}if(r.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"stick")}},i.error=function(){var e;if(r.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o(console.error,t)}if(r.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"stick")}}},{"../plot_api/plot_config":210,"./notifier":188}],183:[function(e,t,n){"use strict";var r=e("d3");t.exports=function(e,t,n){var a=e.selectAll("g."+n.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each((function(e){e[0][i]=r.select(this)})),a}},{d3:16}],184:[function(e,t,n){"use strict";n.init2dArray=function(e,t){for(var n=new Array(e),r=0;r<e;r++)n[r]=new Array(t);return n},n.transposeRagged=function(e){var t,n,r=0,a=e.length;for(t=0;t<a;t++)r=Math.max(r,e[t].length);var i=new Array(r);for(t=0;t<r;t++)for(i[t]=new Array(a),n=0;n<a;n++)i[t][n]=e[n][t];return i},n.dot=function(e,t){if(!e.length||!t.length||e.length!==t.length)return null;var r,a,i=e.length;if(e[0].length)for(r=new Array(i),a=0;a<i;a++)r[a]=n.dot(e[a],t);else if(t[0].length){var o=n.transposeRagged(t);for(r=new Array(o.length),a=0;a<o.length;a++)r[a]=n.dot(e,o[a])}else for(r=0,a=0;a<i;a++)r+=e[a]*t[a];return r},n.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},n.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]},n.rotationXYMatrix=function(e,t,r){return n.dot(n.dot(n.translationMatrix(t,r),n.rotationMatrix(e)),n.translationMatrix(-t,-r))},n.apply2DTransform=function(e){return function(){var t=arguments;3===t.length&&(t=t[0]);var r=1===arguments.length?t[0]:[t[0],t[1]];return n.dot(e,[r[0],r[1],1]).slice(0,2)}},n.apply2DTransform2=function(e){var t=n.apply2DTransform(e);return function(e){return t(e.slice(0,2)).concat(t(e.slice(2,4)))}}},{}],185:[function(e,t,n){"use strict";t.exports={mod:function(e,t){var n=e%t;return n<0?n+t:n},modHalf:function(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}}},{}],186:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("./array").isArrayOrTypedArray;function i(e,t){return function(){var n,r,o,l,s,c=e;for(l=0;l<t.length-1;l++){if(-1===(n=t[l])){for(r=!0,o=[],s=0;s<c.length;s++)o[s]=i(c[s],t.slice(l+1))(),o[s]!==o[0]&&(r=!1);return r?o[0]:o}if("number"==typeof n&&!a(c))return;if("object"!=typeof(c=c[n])||null===c)return}if("object"==typeof c&&null!==c&&null!==(o=c[t[l]]))return o}}t.exports=function(e,t){if(r(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";for(var n,a,o,l=0,c=t.split(".");l<c.length;){if(n=String(c[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(n[1])c[l]=n[1];else{if(0!==l)throw"bad property string";c.splice(0,1)}for(a=n[2].substr(1,n[2].length-2).split("]["),o=0;o<a.length;o++)l++,c.splice(l,0,Number(a[o]))}l++}return"object"!=typeof e?function(e,t,n){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:n,obj:e}}(e,t,c):{set:s(e,c,t),get:i(e,c),astr:t,parts:c,obj:e}};var o=/(^|\.)args\[/;function l(e,t){return void 0===e||null===e&&!t.match(o)}function s(e,t,n){return function(r){var i,o,s=e,d="",p=[[e,d]],h=l(r,n);for(o=0;o<t.length-1;o++){if("number"==typeof(i=t[o])&&!a(s))throw"array index but container is not an array";if(-1===i){if(h=!u(s,t.slice(o+1),r,n))break;return}if(!f(s,i,t[o+1],h))break;if("object"!=typeof(s=s[i])||null===s)throw"container is not an object";d=c(d,i),p.push([s,d])}if(h){if(o===t.length-1&&(delete s[t[o]],Array.isArray(s)&&+t[o]==s.length-1))for(;s.length&&void 0===s[s.length-1];)s.pop()}else s[t[o]]=r}}function c(e,t){var n=t;return r(t)?n="["+t+"]":e&&(n="."+t),e+n}function u(e,t,n,r){var i,o=a(n),c=!0,u=n,d=r.replace("-1",0),p=!o&&l(n,d),h=t[0];for(i=0;i<e.length;i++)d=r.replace("-1",i),o&&(p=l(u=n[i%n.length],d)),p&&(c=!1),f(e,i,h,p)&&s(e[i],t,r.replace("-1",i))(u);return c}function f(e,t,n,r){if(void 0===e[t]){if(r)return!1;e[t]="number"==typeof n?[]:{}}return!0}},{"./array":165,"fast-isnumeric":18}],187:[function(e,t,n){"use strict";t.exports=function(){}},{}],188:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=[];t.exports=function(e,t){if(-1===i.indexOf(e)){i.push(e);var n=1e3;a(t)?n=t:"long"===t&&(n=3e3);var o=r.select("body").selectAll(".plotly-notifier").data([0]);o.enter().append("div").classed("plotly-notifier",!0),o.selectAll(".notifier-note").data(i).enter().append("div").classed("notifier-note",!0).style("opacity",0).each((function(e){var a=r.select(this);a.append("button").classed("notifier-close",!0).html("×").on("click",(function(){a.transition().call(l)}));for(var i=a.append("p"),o=e.split(/<br\s*\/?>/g),s=0;s<o.length;s++)s&&i.append("br"),i.append("span").text(o[s]);"stick"===t?a.transition().duration(350).style("opacity",1):a.transition().duration(700).style("opacity",1).transition().delay(n).call(l)}))}function l(e){e.duration(700).style("opacity",0).each("end",(function(e){var t=i.indexOf(e);-1!==t&&i.splice(t,1),r.select(this).remove()}))}}},{d3:16,"fast-isnumeric":18}],189:[function(e,t,n){"use strict";var r=e("./setcursor"),a="data-savedcursor";t.exports=function(e,t){var n=e.attr(a);if(t){if(!n){for(var i=(e.attr("class")||"").split(" "),o=0;o<i.length;o++){var l=i[o];0===l.indexOf("cursor-")&&e.attr(a,l.substr(7)).classed(l,!1)}e.attr(a)||e.attr(a,"!!")}r(e,t)}else n&&(e.attr(a,null),"!!"===n?r(e):r(e,n))}},{"./setcursor":197}],190:[function(e,t,n){"use strict";var r=e("./matrix").dot,a=e("../constants/numerical").BADNUM,i=t.exports={};i.tester=function(e){var t,n=e.slice(),r=n[0][0],i=r,o=n[0][1],l=o;for(n.push(n[0]),t=1;t<n.length;t++)r=Math.min(r,n[t][0]),i=Math.max(i,n[t][0]),o=Math.min(o,n[t][1]),l=Math.max(l,n[t][1]);var s,c=!1;5===n.length&&(n[0][0]===n[1][0]?n[2][0]===n[3][0]&&n[0][1]===n[3][1]&&n[1][1]===n[2][1]&&(c=!0,s=function(e){return e[0]===n[0][0]}):n[0][1]===n[1][1]&&n[2][1]===n[3][1]&&n[0][0]===n[3][0]&&n[1][0]===n[2][0]&&(c=!0,s=function(e){return e[1]===n[0][1]}));var u=!0,f=n[0];for(t=1;t<n.length;t++)if(f[0]!==n[t][0]||f[1]!==n[t][1]){u=!1;break}return{xmin:r,xmax:i,ymin:o,ymax:l,pts:n,contains:c?function(e,t){var n=e[0],c=e[1];return!(n===a||n<r||n>i||c===a||c<o||c>l||t&&s(e))}:function(e,t){var s=e[0],c=e[1];if(s===a||s<r||s>i||c===a||c<o||c>l)return!1;var u,f,d,p,h,g=n.length,m=n[0][0],v=n[0][1],y=0;for(u=1;u<g;u++)if(f=m,d=v,m=n[u][0],v=n[u][1],!(s<(p=Math.min(f,m))||s>Math.max(f,m)||c>Math.max(d,v)))if(c<Math.min(d,v))s!==p&&y++;else{if(c===(h=m===f?c:d+(s-f)*(v-d)/(m-f)))return 1!==u||!t;c<=h&&s!==p&&y++}return y%2==1},isRect:c,degenerate:u}},i.isSegmentBent=function(e,t,n,a){var i,o,l,s=e[t],c=[e[n][0]-s[0],e[n][1]-s[1]],u=r(c,c),f=Math.sqrt(u),d=[-c[1]/f,c[0]/f];for(i=t+1;i<n;i++)if(o=[e[i][0]-s[0],e[i][1]-s[1]],(l=r(o,c))<0||l>u||Math.abs(r(o,d))>a)return!0;return!1},i.filter=function(e,t){var n=[e[0]],r=0,a=0;function o(o){e.push(o);var l=n.length,s=r;n.splice(a+1);for(var c=s+1;c<e.length;c++)(c===e.length-1||i.isSegmentBent(e,s,c+1,t))&&(n.push(e[c]),n.length<l-2&&(r=c,a=n.length-1),s=c)}return e.length>1&&o(e.pop()),{addPt:o,raw:e,filtered:n}}},{"../constants/numerical":158,"./matrix":184}],191:[function(e,t,n){"use strict";t.exports=function(e,t){if(t instanceof RegExp){for(var n=t.toString(),r=0;r<e.length;r++)if(e[r]instanceof RegExp&&e[r].toString()===n)return e;e.push(t)}else!t&&0!==t||-1!==e.indexOf(t)||e.push(t);return e}},{}],192:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plot_api/plot_config").dfltConfig,i={add:function(e,t,n,r,i){var o,l;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},l=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(l,e.undoQueue.queue.length-l,o),e.undoQueue.index+=1):o=e.undoQueue.queue[l-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(t),o.undo.args.unshift(n),o.redo.calls.push(r),o.redo.args.push(i)),e.undoQueue.queue.length>a.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,n;if(e.framework&&e.framework.isPolar)e.framework.undo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.undo.calls.length;n++)i.plotDo(e,t.undo.calls[n],t.undo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1}},redo:function(e){var t,n;if(e.framework&&e.framework.isPolar)e.framework.redo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index>=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.redo.calls.length;n++)i.plotDo(e,t.redo.calls[n],t.redo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1,e.undoQueue.index++}},plotDo:function(e,t,n){e.autoplay=!0,n=function(e,t){for(var n,a=[],i=0;i<t.length;i++)n=t[i],a[i]=n===e?n:"object"==typeof n?Array.isArray(n)?r.extendDeep([],n):r.extendDeepAll({},n):n;return a}(e,n),t.apply(null,n)}};t.exports=i},{"../lib":178,"../plot_api/plot_config":210}],193:[function(e,t,n){"use strict";n.counter=function(e,t,n,r){var a=(t||"")+(n?"":"$"),i=!1===r?"":"^";return"xy"===e?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)}},{}],194:[function(e,t,n){"use strict";var r=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,a=/^[^\.\[\]]+$/;t.exports=function(e,t){for(;t;){var n=e.match(r);if(n)e=n[1];else{if(!e.match(a))throw new Error("bad relativeAttr call:"+[e,t]);e=""}if("^"!==t.charAt(0))break;t=t.slice(1)}return e&&"["!==t.charAt(0)?e+"."+t:e+t}},{}],195:[function(e,t,n){"use strict";var r=e("./array").isArrayOrTypedArray,a=e("./is_plain_object");t.exports=function e(t,n){for(var i in n){var o=n[i],l=t[i];if(l!==o)if("_"===i.charAt(0)||"function"==typeof o){if(i in t)continue;t[i]=o}else if(r(o)&&r(l)&&a(o[0])){if("customdata"===i||"ids"===i)continue;for(var s=Math.min(o.length,l.length),c=0;c<s;c++)l[c]!==o[c]&&a(o[c])&&a(l[c])&&e(l[c],o[c])}else a(o)&&a(l)&&(e(l,o),Object.keys(l).length||delete t[i])}}},{"./array":165,"./is_plain_object":179}],196:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("./loggers"),i=e("./identity");function o(e,t){return e<t}function l(e,t){return e<=t}function s(e,t){return e>t}function c(e,t){return e>=t}n.findBin=function(e,t,n){if(r(t.start))return n?Math.ceil((e-t.start)/t.size-1e-9)-1:Math.floor((e-t.start)/t.size+1e-9);var i,u,f=0,d=t.length,p=0,h=d>1?(t[d-1]-t[0])/(d-1):1;for(u=h>=0?n?o:l:n?c:s,e+=1e-9*h*(n?-1:1)*(h>=0?1:-1);f<d&&p++<100;)u(t[i=Math.floor((f+d)/2)],e)?f=i+1:d=i;return p>90&&a.log("Long binary search..."),f-1},n.sorterAsc=function(e,t){return e-t},n.sorterDes=function(e,t){return t-e},n.distinctVals=function(e){var t=e.slice();t.sort(n.sorterAsc);for(var r=t.length-1,a=t[r]-t[0]||1,i=a/(r||1)/1e4,o=[t[0]],l=0;l<r;l++)t[l+1]>t[l]+i&&(a=Math.min(a,t[l+1]-t[l]),o.push(t[l+1]));return{vals:o,minDiff:a}},n.roundUp=function(e,t,n){for(var r,a=0,i=t.length-1,o=0,l=n?0:1,s=n?1:0,c=n?Math.ceil:Math.floor;a<i&&o++<100;)t[r=c((a+i)/2)]<=e?a=r+l:i=r-s;return t[a]},n.sort=function(e,t){for(var n=0,r=0,a=1;a<e.length;a++){var i=t(e[a],e[a-1]);if(i<0?n=1:i>0&&(r=1),n&&r)return e.sort(t)}return r?e:e.reverse()},n.findIndexOfMin=function(e,t){t=t||i;for(var n,r=1/0,a=0;a<e.length;a++){var o=t(e[a]);o<r&&(r=o,n=a)}return n}},{"./identity":177,"./loggers":182,"fast-isnumeric":18}],197:[function(e,t,n){"use strict";t.exports=function(e,t){(e.attr("class")||"").split(" ").forEach((function(t){0===t.indexOf("cursor-")&&e.classed(t,!1)})),t&&e.classed("cursor-"+t,!0)}},{}],198:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("./array").isArrayOrTypedArray;n.aggNums=function(e,t,i,o){var l,s;if((!o||o>i.length)&&(o=i.length),r(t)||(t=!1),a(i[0])){for(s=new Array(o),l=0;l<o;l++)s[l]=n.aggNums(e,t,i[l]);i=s}for(l=0;l<o;l++)r(t)?r(i[l])&&(t=e(+t,+i[l])):t=i[l];return t},n.len=function(e){return n.aggNums((function(e){return e+1}),0,e)},n.mean=function(e,t){return t||(t=n.len(e)),n.aggNums((function(e,t){return e+t}),0,e)/t},n.midRange=function(e){if(void 0!==e&&0!==e.length)return(n.aggNums(Math.max,null,e)+n.aggNums(Math.min,null,e))/2},n.variance=function(e,t,a){return t||(t=n.len(e)),r(a)||(a=n.mean(e,t)),n.aggNums((function(e,t){return e+Math.pow(t-a,2)}),0,e)/t},n.stdev=function(e,t,r){return Math.sqrt(n.variance(e,t,r))},n.median=function(e){var t=e.slice().sort();return n.interp(t,.5)},n.interp=function(e,t){if(!r(t))throw"n should be a finite number";if((t=t*e.length-.5)<0)return e[0];if(t>e.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},{"./array":165,"fast-isnumeric":18}],199:[function(e,t,n){"use strict";var r=e("d3"),a=e("../lib"),i=e("../constants/xmlns_namespaces"),o=e("../constants/alignment").LINE_SPACING;function l(e,t){return e.node().getBoundingClientRect()[t]}var s=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;n.convertToTspans=function(e,t,M){var A=e.text(),L=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&A.match(s),C=r.select(e.node().parentNode);if(!C.empty()){var O=e.attr("class")?e.attr("class").split(" ")[0]:"text";return O+="-math",C.selectAll("svg."+O).remove(),C.selectAll("g."+O+"-group").remove(),e.style("display",null).attr({"data-unformatted":A,"data-math":"N"}),L?(t&&t._promises||[]).push(new Promise((function(t){e.style("display","none");var n=parseInt(e.node().style.fontSize,10),i={fontSize:n};!function(e,t,n){var i,o,l,s;MathJax.Hub.Queue((function(){return o=a.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]},displayAlign:"left"})}),(function(){if("SVG"!==(i=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")}),(function(){var n="math-output-"+a.randstr({},64);return s=r.select("body").append("div").attr({id:n}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(e.replace(c,"\\lt ").replace(u,"\\gt ")),MathJax.Hub.Typeset(s.node())}),(function(){var t=r.select("body").select("#MathJax_SVG_glyphs");if(s.select(".MathJax_SVG").empty()||!s.select("svg").node())a.log("There was an error in the tex syntax.",e),n();else{var o=s.select("svg").node().getBoundingClientRect();n(s.select(".MathJax_SVG"),t,o)}if(s.remove(),"SVG"!==i)return MathJax.Hub.setRenderer(i)}),(function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(o)}))}(L[2],i,(function(r,a,i){C.selectAll("svg."+O).remove(),C.selectAll("g."+O+"-group").remove();var o=r&&r.select("svg");if(!o||!o.node())return P(),void t();var s=C.append("g").classed(O+"-group",!0).attr({"pointer-events":"none","data-unformatted":A,"data-math":"Y"});s.node().appendChild(o.node()),a&&a.node()&&o.node().insertBefore(a.node().cloneNode(!0),o.node().firstChild),o.attr({class:O,height:i.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var c=e.node().style.fill||"black",u=o.select("g");u.attr({fill:c,stroke:c});var f=l(u,"width"),d=l(u,"height"),p=+e.attr("x")-f*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],h=-(n||l(e,"height"))/4;"y"===O[0]?(s.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+") translate("+[-f/2,h-d/2]+")"}),o.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===O[0]?o.attr({x:e.attr("x"),y:h-d/2}):"a"===O[0]&&0!==O.indexOf("atitle")?o.attr({x:0,y:h}):o.attr({x:p,y:+e.attr("y")+h-d/2}),M&&M.call(e,s),t(s)}))}))):P(),e}function P(){C.empty()||(O=e.attr("class")+"-math",C.select("svg."+O).remove()),e.text("").style("white-space","pre"),function(e,t){t=t.replace(g," ");var n,l=!1,s=[],c=-1;function u(){c++;var t=document.createElementNS(i.svg,"tspan");r.select(t).attr({class:"line",dy:c*o+"em"}),e.appendChild(t),n=t;var a=s;if(s=[{node:t}],a.length>1)for(var l=1;l<a.length;l++)M(a[l])}function M(e){var t,a=e.type,o={};if("a"===a){t="a";var l=e.target,c=e.href,u=e.popup;c&&(o={"xlink:xlink:show":"_blank"===l||"_"!==l.charAt(0)?"new":"replace",target:l,"xlink:xlink:href":c},u&&(o.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+u+'");return false;'))}else t="tspan";e.style&&(o.style=e.style);var f=document.createElementNS(i.svg,t);if("sup"===a||"sub"===a){A(n,""),n.appendChild(f);var h=document.createElementNS(i.svg,"tspan");A(h,""),r.select(h).attr("dy",p[a]),o.dy=d[a],n.appendChild(f),n.appendChild(h)}else n.appendChild(f);r.select(f).attr(o),n=e.node=f,s.push(e)}function A(e,t){e.appendChild(document.createTextNode(t))}function L(e){if(1!==s.length){var r=s.pop();e!==r.type&&a.log("Start tag <"+r.type+"> doesnt match end tag <"+e+">. Pretending it did match.",t),n=s[s.length-1].node}else a.log("Ignoring unexpected end tag </"+e+">.",t)}y.test(t)?u():(n=e,s=[{node:e}]);for(var C=t.split(m),O=0;O<C.length;O++){var P=C[O],E=P.match(v),z=E&&E[2].toLowerCase(),D=f[z];if("br"===z)u();else if(void 0===D)A(n,S(P));else if(E[1])L(z);else{var R=E[4],I={type:z},N=k(R,x);if(N?(N=N.replace(T,"$1 fill:"),D&&(N+=";"+D)):D&&(N=D),N&&(I.style=N),"a"===z){l=!0;var F=k(R,b);if(F){var B=document.createElement("a");B.href=F,-1!==h.indexOf(B.protocol)&&(I.href=encodeURI(decodeURI(F)),I.target=k(R,_)||"_blank",I.popup=k(R,w))}}M(I)}}return l}(e.node(),A)&&e.style("pointer-events","all"),n.positionText(e),M&&M.call(e)}};var c=/(<|<|<)/g,u=/(>|>|>)/g,f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},d={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},h=["http:","https:","mailto:","",void 0,":"],g=n.NEWLINES=/(\r\n?|\n)/g,m=/(<[^<>]*>)/,v=/<(\/?)([^ >]*)(\s+(.*))?>/i,y=/<br(\s+.*)?>/i;n.BR_TAG_ALL=/<br(\s+.*)?>/gi;var x=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,b=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,_=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,w=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function k(e,t){if(!e)return null;var n=e.match(t),r=n&&(n[3]||n[4]);return r&&S(r)}var T=/(^|;)\s*color:/;n.plainText=function(e,t){for(var n=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,r=void 0!==t.allowedTags?t.allowedTags:["br"],a="...".length,i=e.split(m),o=[],l="",s=0,c=0;c<i.length;c++){var u=i[c],f=u.match(v),d=f&&f[2].toLowerCase();if(d)-1!==r.indexOf(d)&&(o.push(u),l=d);else{var p=u.length;if(s+p<n)o.push(u),s+=p;else if(s<n){var h=n-s;l&&("br"!==l||h<=a||p<=a)&&o.pop(),n>a?o.push(u.substr(0,h-a)+"..."):o.push(u.substr(0,h));break}l=""}}return o.join("")};var M={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function S(e){return e.replace(A,(function(e,t){return("#"===t.charAt(0)?function(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var n=String.fromCharCode;return e<=65535?n(e):n(55232+(e>>10),e%1024+56320)}}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):M[t])||e}))}function L(e,t,n){var r,a,i,o=n.horizontalAlign,l=n.verticalAlign||"top",s=e.node().getBoundingClientRect(),c=t.node().getBoundingClientRect();return a="bottom"===l?function(){return s.bottom-r.height}:"middle"===l?function(){return s.top+(s.height-r.height)/2}:function(){return s.top},i="right"===o?function(){return s.right-r.width}:"center"===o?function(){return s.left+(s.width-r.width)/2}:function(){return s.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:a()-c.top+"px",left:i()-c.left+"px","z-index":1e3}),this}}n.convertEntities=S,n.sanitizeHTML=function(e){e=e.replace(g," ");for(var t=document.createElement("p"),n=t,a=[],i=e.split(m),o=0;o<i.length;o++){var l=i[o],s=l.match(v),c=s&&s[2].toLowerCase();if(c in f)if(s[1])a.length&&(n=a.pop());else{var u=s[4],d=k(u,x),p=d?{style:d}:{};if("a"===c){var y=k(u,b);if(y){var w=document.createElement("a");if(w.href=y,-1!==h.indexOf(w.protocol)){p.href=encodeURI(decodeURI(y));var T=k(u,_);T&&(p.target=T)}}}var M=document.createElement(c);n.appendChild(M),r.select(M).attr(p),n=M,a.push(M)}else n.appendChild(document.createTextNode(S(l)))}return t.innerHTML},n.lineCount=function(e){return e.selectAll("tspan.line").size()||1},n.positionText=function(e,t,n){return e.each((function(){var e=r.select(this);function a(t,n){return void 0===n?null===(n=e.attr(t))&&(e.attr(t,0),n=0):e.attr(t,n),n}var i=a("x",t),o=a("y",n);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:i,y:o})}))},n.makeEditable=function(e,t){var n=t.gd,a=t.delegate,i=r.dispatch("edit","input","cancel"),o=a||e;if(e.style({"pointer-events":a?"none":"all"}),1!==e.size())throw new Error("boo");function l(){var a,l,c,u,f;a=r.select(n).select(".svg-container"),l=a.append("div"),c=e.node().style,u=parseFloat(c.fontSize||12),void 0===(f=t.text)&&(f=e.attr("data-unformatted")),l.classed("plugin-editable editable",!0).style({position:"absolute","font-family":c.fontFamily||"Arial","font-size":u,color:t.fill||c.fill||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-u/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(f).call(L(e,a,t)).on("blur",(function(){n._editing=!1,e.text(this.textContent).style({opacity:1});var t,a=r.select(this).attr("class");(t=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(t).style({opacity:0});var o=this.textContent;r.select(this).transition().duration(0).remove(),r.select(document).on("mouseup",null),i.edit.call(e,o)})).on("focus",(function(){var e=this;n._editing=!0,r.select(document).on("mouseup",(function(){if(r.event.target===e)return!1;document.activeElement===l.node()&&l.node().blur()}))})).on("keyup",(function(){27===r.event.which?(n._editing=!1,e.style({opacity:1}),r.select(this).style({opacity:0}).on("blur",(function(){return!1})).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),r.select(this).call(L(e,a,t)))})).on("keydown",(function(){13===r.event.which&&this.blur()})).call(s),e.style({opacity:0});var d,p=o.attr("class");(d=p?"."+p.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(d).style({opacity:0})}function s(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}return t.immediate?l():o.on("click",l),r.rebind(e,i,"on")}},{"../constants/alignment":154,"../constants/xmlns_namespaces":159,"../lib":178,d3:16}],200:[function(e,t,n){"use strict";var r={};function a(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}n.throttle=function(e,t,n){var i=r[e],o=Date.now();if(!i){for(var l in r)r[l].ts<o-6e4&&delete r[l];i=r[e]={ts:0,timer:null}}function s(){n(),i.ts=Date.now(),i.onDone&&(i.onDone(),i.onDone=null)}a(i),o>i.ts+t?s():i.timer=setTimeout((function(){s(),i.timer=null}),t)},n.done=function(e){var t=r[e];return t&&t.timer?new Promise((function(e){var n=t.onDone;t.onDone=function(){n&&n(),e(),t.onDone=null}})):Promise.resolve()},n.clear=function(e){if(e)a(r[e]),delete r[e];else for(var t in r)n.clear(t)}},{}],201:[function(e,t,n){"use strict";var r=e("fast-isnumeric");t.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},{"fast-isnumeric":18}],202:[function(e,t,n){"use strict";t.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},{}],203:[function(e,t,n){"use strict";t.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},{}],204:[function(e,t,n){"use strict";var r=e("../registry");t.exports=function(e){for(var t,n,a=r.layoutArrayContainers,i=r.layoutArrayRegexes,o=e.split("[")[0],l=0;l<i.length;l++)if((n=e.match(i[l]))&&0===n.index){t=n[0];break}if(t||(t=a[a.indexOf(o)]),!t)return!1;var s=e.substr(t.length);return s?!!(n=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:t,index:Number(n[1]),property:n[3]||""}:{array:t,index:"",property:""}}},{"../registry":269}],205:[function(e,t,n){"use strict";var r=e("../lib"),a=r.extendFlat,i=r.isPlainObject,o={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},l={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},s=o.flags.slice().concat(["fullReplot"]),c=l.flags.slice().concat("layoutReplot");function u(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!1;return t}function f(e,t,n){var r=a({},e);for(var o in r){var l=r[o];i(l)&&(r[o]=d(l,t,0,o))}return"from-root"===n&&(r.editType=t),r}function d(e,t,n,r){if(e.valType){var i=a({},e);if(i.editType=t,Array.isArray(e.items)){i.items=new Array(e.items.length);for(var o=0;o<e.items.length;o++)i.items[o]=d(e.items[o],t)}return i}return f(e,t,"_"===r.charAt(0)?"nested":"from-root")}t.exports={traces:o,layout:l,traceFlags:function(){return u(s)},layoutFlags:function(){return u(c)},update:function(e,t){var n=t.editType;if(n&&"none"!==n)for(var r=n.split("+"),a=0;a<r.length;a++)e[r[a]]=!0},overrideAll:f}},{"../lib":178}],206:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("gl-mat4/fromQuat"),i=e("../registry"),o=e("../lib"),l=e("../plots/plots"),s=e("../plots/cartesian/axis_ids"),c=e("../components/color"),u=s.cleanId,f=s.getFromTrace,d=i.traceIs;function p(e,t){var n=e[t],r=t.charAt(0);n&&"paper"!==n&&(e[t]=u(n,r))}function h(e){function t(t,n){var r=e[t],a=e.title&&e.title[n];r&&!a&&(e.title||(e.title={}),e.title[n]=e[t],delete e[t])}e&&("string"!=typeof e.title&&"number"!=typeof e.title||(e.title={text:e.title}),t("titlefont","font"),t("titleposition","position"),t("titleside","side"),t("titleoffset","offset"))}function g(e){if(!o.isPlainObject(e))return!1;var t=e.name;return delete e.name,delete e.showlegend,("string"==typeof t||"number"==typeof t)&&String(t)}function m(e,t,n,r){if(n&&!r)return e;if(r&&!n)return t;if(!e.trim())return t;if(!t.trim())return e;var a,i=Math.min(e.length,t.length);for(a=0;a<i&&e.charAt(a)===t.charAt(a);a++);return e.substr(0,a).trim()}function v(e){var t="middle",n="center";return"string"==typeof e&&(-1!==e.indexOf("top")?t="top":-1!==e.indexOf("bottom")&&(t="bottom"),-1!==e.indexOf("left")?n="left":-1!==e.indexOf("right")&&(n="right")),t+" "+n}function y(e,t){return t in e&&"object"==typeof e[t]&&0===Object.keys(e[t]).length}n.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&o.log("Clearing previous rejected promises from queue."),e._promises=[]},n.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(l.subplotsRegistry.cartesian||{}).attrRegex,s=(l.subplotsRegistry.polar||{}).attrRegex,f=(l.subplotsRegistry.ternary||{}).attrRegex,d=(l.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(e);for(t=0;t<g.length;t++){var m=g[t];if(i&&i.test(m)){var v=e[m];v.anchor&&"free"!==v.anchor&&(v.anchor=u(v.anchor)),v.overlaying&&(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type="date":v.islog?v.type="log":!1===v.isdate&&!1===v.islog&&(v.type="linear")),"withzero"!==v.autorange&&"tozero"!==v.autorange||(v.autorange=!0,v.rangemode="tozero"),delete v.islog,delete v.isdate,delete v.categories,y(v,"domain")&&delete v.domain,void 0!==v.autotick&&(void 0===v.tickmode&&(v.tickmode=v.autotick?"auto":"linear"),delete v.autotick),h(v)}else if(s&&s.test(m))h(e[m].radialaxis);else if(f&&f.test(m)){var x=e[m];h(x.aaxis),h(x.baxis),h(x.caxis)}else if(d&&d.test(m)){var b=e[m],_=b.cameraposition;if(Array.isArray(_)&&4===_[0].length){var w=_[0],k=_[1],T=_[2],M=a([],w),A=[];for(r=0;r<3;++r)A[r]=k[r]+T*M[2+4*r];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:k[0],y:k[1],z:k[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}h(b.xaxis),h(b.yaxis),h(b.zaxis)}}var S=Array.isArray(e.annotations)?e.annotations.length:0;for(t=0;t<S;t++){var L=e.annotations[t];o.isPlainObject(L)&&(L.ref&&("paper"===L.ref?(L.xref="paper",L.yref="paper"):"data"===L.ref&&(L.xref="x",L.yref="y"),delete L.ref),p(L,"xref"),p(L,"yref"))}var C=Array.isArray(e.shapes)?e.shapes.length:0;for(t=0;t<C;t++){var O=e.shapes[t];o.isPlainObject(O)&&(p(O,"xref"),p(O,"yref"))}var P=e.legend;return P&&(P.x>3?(P.x=1.02,P.xanchor="left"):P.x<-2&&(P.x=-.02,P.xanchor="right"),P.y>3?(P.y=1.02,P.yanchor="bottom"):P.y<-2&&(P.y=-.02,P.yanchor="top")),h(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),c.clean(e),e.template&&e.template.layout&&n.cleanLayout(e.template.layout),e},n.cleanData=function(e){for(var t=0;t<e.length;t++){var r,a=e[t];if("histogramy"===a.type&&"xbins"in a&&!("ybins"in a)&&(a.ybins=a.xbins,delete a.xbins),a.error_y&&"opacity"in a.error_y){var s=c.defaults,f=a.error_y.color||(d(a,"bar")?c.defaultLine:s[t%s.length]);a.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*a.error_y.opacity),delete a.error_y.opacity}if("bardir"in a&&("h"!==a.bardir||!d(a,"bar")&&"histogram"!==a.type.substr(0,9)||(a.orientation="h",n.swapXYData(a)),delete a.bardir),"histogramy"===a.type&&n.swapXYData(a),"histogramx"!==a.type&&"histogramy"!==a.type||(a.type="histogram"),"scl"in a&&!("colorscale"in a)&&(a.colorscale=a.scl,delete a.scl),"reversescl"in a&&!("reversescale"in a)&&(a.reversescale=a.reversescl,delete a.reversescl),a.xaxis&&(a.xaxis=u(a.xaxis,"x")),a.yaxis&&(a.yaxis=u(a.yaxis,"y")),d(a,"gl3d")&&a.scene&&(a.scene=l.subplotsRegistry.gl3d.cleanId(a.scene)),!d(a,"pie-like")&&!d(a,"bar-like"))if(Array.isArray(a.textposition))for(r=0;r<a.textposition.length;r++)a.textposition[r]=v(a.textposition[r]);else a.textposition&&(a.textposition=v(a.textposition));var p=i.getModule(a);if(p&&p.colorbar){var x=p.colorbar.container,b=x?a[x]:a;b&&b.colorscale&&("YIGnBu"===b.colorscale&&(b.colorscale="YlGnBu"),"YIOrRd"===b.colorscale&&(b.colorscale="YlOrRd"))}if("surface"===a.type&&o.isPlainObject(a.contours)){var _=["x","y","z"];for(r=0;r<_.length;r++){var w=a.contours[_[r]];o.isPlainObject(w)&&(w.highlightColor&&(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&&(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if("candlestick"===a.type||"ohlc"===a.type){var k=!1!==(a.increasing||{}).showlegend,T=!1!==(a.decreasing||{}).showlegend,M=g(a.increasing),A=g(a.decreasing);if(!1!==M&&!1!==A){var S=m(M,A,k,T);S&&(a.name=S)}else!M&&!A||a.name||(a.name=M||A)}if(Array.isArray(a.transforms)){var L=a.transforms;for(r=0;r<L.length;r++){var C=L[r];if(o.isPlainObject(C))switch(C.type){case"filter":C.filtersrc&&(C.target=C.filtersrc,delete C.filtersrc),C.calendar&&(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case"groupby":if(C.styles=C.styles||C.style,C.styles&&!Array.isArray(C.styles)){var O=C.styles,P=Object.keys(O);C.styles=[];for(var E=0;E<P.length;E++)C.styles.push({target:P[E],value:O[P[E]]})}}}}y(a,"line")&&delete a.line,"marker"in a&&(y(a.marker,"line")&&delete a.marker.line,y(a,"marker")&&delete a.marker),c.clean(a),a.autobinx&&(delete a.autobinx,delete a.xbins),a.autobiny&&(delete a.autobiny,delete a.ybins),h(a),a.colorbar&&h(a.colorbar),a.marker&&a.marker.colorbar&&h(a.marker.colorbar),a.line&&a.line.colorbar&&h(a.line.colorbar),a.aaxis&&h(a.aaxis),a.baxis&&h(a.baxis)}},n.swapXYData=function(e){var t;if(o.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var n=e.error_y,r="copy_ystyle"in n?n.copy_ystyle:!(n.color||n.thickness||n.width);o.swapAttrs(e,["error_?.copy_ystyle"]),r&&o.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if("string"==typeof e.hoverinfo){var a=e.hoverinfo.split("+");for(t=0;t<a.length;t++)"x"===a[t]?a[t]="y":"y"===a[t]&&(a[t]="x");e.hoverinfo=a.join("+")}},n.coerceTraceIndices=function(e,t){if(r(t))return[t];if(!Array.isArray(t)||!t.length)return e.data.map((function(e,t){return t}));if(Array.isArray(t)){for(var n=[],a=0;a<t.length;a++)o.isIndex(t[a],e.data.length)?n.push(t[a]):o.warn("trace index (",t[a],") is not a number or is out of bounds");return n}return t},n.manageArrayContainers=function(e,t,n){var a=e.obj,i=e.parts,l=i.length,s=i[l-1],c=r(s);if(c&&null===t){var u=i.slice(0,l-1).join(".");o.nestedProperty(a,u).get().splice(s,1)}else c&&void 0===e.get()?(void 0===e.get()&&(n[e.astr]=null),e.set(t)):e.set(t)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(e){var t=e.search(x);if(t>0)return e.substr(0,t)}n.hasParent=function(e,t){for(var n=b(t);n;){if(n in e)return!0;n=b(n)}return!1};var _=["x","y","z"];n.clearAxisTypes=function(e,t,n){for(var r=0;r<t.length;r++)for(var a=e._fullData[r],i=0;i<3;i++){var l=f(e,a,_[i]);if(l&&"log"!==l.type){var s=l._name,c=l._id.substr(1);if("scene"===c.substr(0,5)){if(void 0!==n[c])continue;s=c+"."+s}var u=s+".type";void 0===n[s]&&void 0===n[u]&&o.nestedProperty(e.layout,u).set(null)}}}},{"../components/color":52,"../lib":178,"../plots/cartesian/axis_ids":225,"../plots/plots":256,"../registry":269,"fast-isnumeric":18,"gl-mat4/fromQuat":19}],207:[function(e,t,n){"use strict";var r=e("./plot_api");n.plot=r.plot,n.newPlot=r.newPlot,n.restyle=r.restyle,n.relayout=r.relayout,n.redraw=r.redraw,n.update=r.update,n._guiRestyle=r._guiRestyle,n._guiRelayout=r._guiRelayout,n._guiUpdate=r._guiUpdate,n._storeDirectGUIEdit=r._storeDirectGUIEdit,n.react=r.react,n.extendTraces=r.extendTraces,n.prependTraces=r.prependTraces,n.addTraces=r.addTraces,n.deleteTraces=r.deleteTraces,n.moveTraces=r.moveTraces,n.purge=r.purge,n.addFrames=r.addFrames,n.deleteFrames=r.deleteFrames,n.animate=r.animate,n.setPlotConfig=r.setPlotConfig,n.toImage=e("./to_image"),n.validate=e("./validate"),n.downloadImage=e("../snapshot/download");var a=e("./template_api");n.makeTemplate=a.makeTemplate,n.validateTemplate=a.validateTemplate},{"../snapshot/download":271,"./plot_api":209,"./template_api":214,"./to_image":215,"./validate":216}],208:[function(e,t,n){"use strict";var r=e("../lib/is_plain_object"),a=e("../lib/noop"),i=e("../lib/loggers"),o=e("../lib/search").sorterAsc,l=e("../registry");n.containerArrayMatch=e("./container_array_match");var s=n.isAddVal=function(e){return"add"===e||r(e)},c=n.isRemoveVal=function(e){return null===e||"remove"===e};n.applyContainerArrayChanges=function(e,t,n,r,u){var f=t.astr,d=l.getComponentMethod(f,"supplyLayoutDefaults"),p=l.getComponentMethod(f,"draw"),h=l.getComponentMethod(f,"drawOne"),g=r.replot||r.recalc||d===a||p===a,m=e.layout,v=e._fullLayout;if(n[""]){Object.keys(n).length>1&&i.warn("Full array edits are incompatible with other edits",f);var y=n[""][""];if(c(y))t.set(null);else{if(!Array.isArray(y))return i.warn("Unrecognized full array edit value",f,y),!0;t.set(y)}return!g&&(d(m,v),p(e),!0)}var x,b,_,w,k,T,M,A,S=Object.keys(n).map(Number).sort(o),L=t.get(),C=L||[],O=u(v,f).get(),P=[],E=-1,z=C.length;for(x=0;x<S.length;x++)if(w=n[_=S[x]],k=Object.keys(w),T=w[""],M=s(T),_<0||_>C.length-(M?0:1))i.warn("index out of range",f,_);else if(void 0!==T)k.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",f,_),c(T)?P.push(_):M?("add"===T&&(T={}),C.splice(_,0,T),O&&O.splice(_,0,{})):i.warn("Unrecognized full object edit value",f,_,T),-1===E&&(E=_);else for(b=0;b<k.length;b++)A=f+"["+_+"].",u(C[_],k[b],A).set(w[k[b]]);for(x=P.length-1;x>=0;x--)C.splice(P[x],1),O&&O.splice(P[x],1);if(C.length?L||t.set(C):t.set(null),g)return!1;if(d(m,v),h!==a){var D;if(-1===E)D=S;else{for(z=Math.max(C.length,z),D=[],x=0;x<S.length&&!((_=S[x])>=E);x++)D.push(_);for(x=E;x<z;x++)D.push(x)}for(x=0;x<D.length;x++)h(e,D[x])}else p(e);return!0}},{"../lib/is_plain_object":179,"../lib/loggers":182,"../lib/noop":187,"../lib/search":196,"../registry":269,"./container_array_match":204}],209:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("has-hover"),o=e("../lib"),l=o.nestedProperty,s=e("../lib/events"),c=e("../lib/queue"),u=e("../registry"),f=e("./plot_schema"),d=e("../plots/plots"),p=e("../plots/polar/legacy"),h=e("../plots/cartesian/axes"),g=e("../components/drawing"),m=e("../components/color"),v=e("../plots/cartesian/graph_interact").initInteractions,y=e("../constants/xmlns_namespaces"),x=e("../lib/svg_text_utils"),b=e("../plots/cartesian/select").clearSelect,_=e("./plot_config").dfltConfig,w=e("./manage_arrays"),k=e("./helpers"),T=e("./subroutines"),M=e("./edit_types"),A=e("../plots/cartesian/constants").AX_NAME_PATTERN,S=0;function L(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function C(e,t){try{e._fullLayout._paper.style("background",t)}catch(e){o.error(e)}}function O(e,t){C(e,m.combine(t,"white"))}function P(e,t){if(!e._context){e._context=o.extendDeep({},_);var n=r.select("base");e._context._baseUrl=n.size()&&n.attr("href")?window.location.href.split("#")[0]:""}var a,l,s,c=e._context;if(t){for(l=Object.keys(t),a=0;a<l.length;a++)"editable"!==(s=l[a])&&"edits"!==s&&s in c&&("setBackground"===s&&"opaque"===t[s]?c[s]=O:c[s]=t[s]);t.plot3dPixelRatio&&!c.plotGlPixelRatio&&(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=t.editable;if(void 0!==u)for(c.editable=u,l=Object.keys(c.edits),a=0;a<l.length;a++)c.edits[l[a]]=u;if(t.edits)for(l=Object.keys(t.edits),a=0;a<l.length;a++)(s=l[a])in c.edits&&(c.edits[s]=t.edits[s]);c._exportedPlot=t._exportedPlot}c.staticPlot&&(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),"hover"!==c.displayModeBar||i||(c.displayModeBar=!0),"transparent"!==c.setBackground&&"function"==typeof c.setBackground||(c.setBackground=C),c._hasZeroHeight=c._hasZeroHeight||0===e.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===e.clientWidth;var f=c.scrollZoom,d=c._scrollZoom={};if(!0===f)d.cartesian=1,d.gl3d=1,d.geo=1,d.mapbox=1;else if("string"==typeof f){var p=f.split("+");for(a=0;a<p.length;a++)d[p[a]]=1}else!1!==f&&(d.gl3d=1,d.geo=1,d.mapbox=1)}function E(e,t){var n,r,a=t+1,i=[];for(n=0;n<e.length;n++)(r=e[n])<0?i.push(a+r):i.push(r);return i}function z(e,t,n){var r,a;for(r=0;r<t.length;r++){if((a=t[r])!==parseInt(a,10))throw new Error("all values in "+n+" must be integers");if(a>=e.data.length||a<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(a,r+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+n+" must be unique.")}}function D(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),z(e,t,"currentIndices"),void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&z(e,n,"newIndices"),void 0!==n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function R(e,t,n,r,i){!function(e,t,n,r){var a=o.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===n)throw new Error("indices must be an integer or array of integers");for(var i in z(e,n,"indices"),t){if(!Array.isArray(t[i])||t[i].length!==n.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(a&&(!(i in r)||!Array.isArray(r[i])||r[i].length!==t[i].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,n,r);for(var s=function(e,t,n,r){var i,s,c,u,f,d=o.isPlainObject(r),p=[];for(var h in Array.isArray(n)||(n=[n]),n=E(n,e.data.length-1),t)for(var g=0;g<n.length;g++){if(i=e.data[n[g]],s=(c=l(i,h)).get(),u=t[h][g],!o.isArrayOrTypedArray(u))throw new Error("attribute: "+h+" index: "+g+" must be an array");if(!o.isArrayOrTypedArray(s))throw new Error("cannot extend missing or non-array attribute: "+h);if(s.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+h);f=d?r[h][g]:r,a(f)||(f=-1),p.push({prop:c,target:s,insert:u,maxp:Math.floor(f)})}return p}(e,t,n,r),c={},u={},f=0;f<s.length;f++){var d=s[f].prop,p=s[f].maxp,h=i(s[f].target,s[f].insert,p);d.set(h[0]),Array.isArray(c[d.astr])||(c[d.astr]=[]),c[d.astr].push(h[1]),Array.isArray(u[d.astr])||(u[d.astr]=[]),u[d.astr].push(s[f].target.length)}return{update:c,maxPoints:u}}function I(e,t){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}function N(e,t,r,a){e=o.getGraphDiv(e),k.clearPromiseQueue(e);var i={};if("string"==typeof t)i[t]=r;else{if(!o.isPlainObject(t))return o.warn("Restyle fail.",t,r,a),Promise.reject();i=o.extendFlat({},t),void 0===a&&(a=r)}Object.keys(i).length&&(e.changed=!0);var l=k.coerceTraceIndices(e,a),s=H(e,i,l),u=s.flags;u.calc&&(e.calcdata=void 0),u.clearAxisTypes&&k.clearAxisTypes(e,l,{});var f=[];u.fullReplot?f.push(n.plot):(f.push(d.previousPromises),d.supplyDefaults(e),u.markerSize&&(d.doCalcdata(e),G(f)),u.style&&f.push(T.doTraceStyle),u.colorbars&&f.push(T.doColorBars),f.push(L)),f.push(d.rehover,d.redrag),c.add(e,N,[e,s.undoit,s.traces],N,[e,s.redoit,s.traces]);var p=o.syncOrAsync(f,e);return p&&p.then||(p=Promise.resolve()),p.then((function(){return e.emit("plotly_restyle",s.eventData),e}))}function F(e){return void 0===e?null:e}function B(e,t){return t?function(t,n,r){var a=l(t,n),i=a.set;return a.set=function(t){j((r||"")+n,a.get(),t,e),i(t)},a}:l}function j(e,t,n,r){if(Array.isArray(t)||Array.isArray(n))for(var a=Array.isArray(t)?t:[],i=Array.isArray(n)?n:[],l=Math.max(a.length,i.length),s=0;s<l;s++)j(e+"["+s+"]",a[s],i[s],r);else if(o.isPlainObject(t)||o.isPlainObject(n)){var c=o.isPlainObject(t)?t:{},u=o.isPlainObject(n)?n:{},f=o.extendFlat({},c,u);for(var d in f)j(e+"."+d,c[d],u[d],r)}else void 0===r[e]&&(r[e]=F(t))}function H(e,t,n){var r,a=e._fullLayout,i=e._fullData,s=e.data,c=a._guiEditing,p=B(a._preGUI,c),g=o.extendDeepAll({},t);q(t);var m,v=M.traceFlags(),y={},x={};function b(){return n.map((function(){}))}function _(e){var t=h.id2name(e);-1===m.indexOf(t)&&m.push(t)}function w(e){return"LAYOUT"+e+".autorange"}function T(e){return"LAYOUT"+e+".range"}function A(e){for(var t=e;t<i.length;t++)if(i[t]._input===s[e])return i[t]}function S(r,i,o){if(Array.isArray(r))r.forEach((function(e){S(e,i,o)}));else if(!(r in t)&&!k.hasParent(t,r)){var l;if("LAYOUT"===r.substr(0,6))l=p(e.layout,r.replace("LAYOUT",""));else{var u=n[o];l=B(a._tracePreGUI[A(u)._fullInput.uid],c)(s[u],r)}r in x||(x[r]=b()),void 0===x[r][o]&&(x[r][o]=F(l.get())),void 0!==i&&l.set(i)}}function L(e){return function(t){return i[t][e]}}function C(e){return function(t,r){return!1===t?i[n[r]][e]:null}}for(var O in t){if(k.hasParent(t,O))throw new Error("cannot set "+O+" and a parent attribute simultaneously");var P,E,z,D,R,I,N=t[O];if("autobinx"!==O&&"autobiny"!==O||(O=O.charAt(O.length-1)+"bins",N=Array.isArray(N)?N.map(C(O)):!1===N?n.map(L(O)):null),y[O]=N,"LAYOUT"!==O.substr(0,6)){for(x[O]=b(),r=0;r<n.length;r++)if(P=s[n[r]],E=A(n[r]),D=(z=B(a._tracePreGUI[E._fullInput.uid],c)(P,O)).get(),void 0!==(R=Array.isArray(N)?N[r%N.length]:N)){var j=z.parts[z.parts.length-1],H=O.substr(0,O.length-j.length-1),V=H?H+".":"",U=H?l(E,H).get():E;if((I=f.getTraceValObject(E,z.parts))&&I.impliedEdits&&null!==R)for(var G in I.impliedEdits)S(o.relativeAttr(O,G),I.impliedEdits[G],r);else if("thicknessmode"!==j&&"lenmode"!==j||D===R||"fraction"!==R&&"pixels"!==R||!U){if("type"===O&&("pie"===R!=("pie"===D)||"funnelarea"===R!=("funnelarea"===D))){var Z="x",W="y";"bar"!==R&&"bar"!==D||"h"!==P.orientation||(Z="y",W="x"),o.swapAttrs(P,["?","?src"],"labels",Z),o.swapAttrs(P,["d?","?0"],"label",Z),o.swapAttrs(P,["?","?src"],"values",W),"pie"===D||"funnelarea"===D?(l(P,"marker.color").set(l(P,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):u.traceIs(P,"cartesian")&&l(P,"marker.colors").set(l(P,"marker.color").get())}}else{var Y=a._size,X=U.orient,$="top"===X||"bottom"===X;if("thicknessmode"===j){var Q=$?Y.h:Y.w;S(V+"thickness",U.thickness*("fraction"===R?1/Q:Q),r)}else{var K=$?Y.w:Y.h;S(V+"len",U.len*("fraction"===R?1/K:K),r)}}if(x[O][r]=F(D),-1!==["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(O)){if("orientation"===O){z.set(R);var J=P.x&&!P.y?"h":"v";if((z.get()||J)===E.orientation)continue}else"orientationaxes"===O&&(P.orientation={v:"h",h:"v"}[E.orientation]);k.swapXYData(P),v.calc=v.clearAxisTypes=!0}else-1!==d.dataArrayContainers.indexOf(z.parts[0])?(k.manageArrayContainers(z,R,x),v.calc=!0):(I?I.arrayOk&&!u.traceIs(E,"regl")&&(o.isArrayOrTypedArray(R)||o.isArrayOrTypedArray(D))?v.calc=!0:M.update(v,I):v.calc=!0,z.set(R))}if(-1!==["swapxyaxes","orientationaxes"].indexOf(O)&&h.swap(e,n),"orientationaxes"===O){var ee=l(e.layout,"hovermode");"x"===ee.get()?ee.set("y"):"y"===ee.get()?ee.set("x"):"x unified"===ee.get()?ee.set("y unified"):"y unified"===ee.get()&&ee.set("x unified")}if(-1!==["orientation","type"].indexOf(O)){for(m=[],r=0;r<n.length;r++){var te=s[n[r]];u.traceIs(te,"cartesian")&&(_(te.xaxis||"x"),_(te.yaxis||"y"))}S(m.map(w),!0,0),S(m.map(T),[0,1],0)}}else z=p(e.layout,O.replace("LAYOUT","")),x[O]=[F(z.get())],z.set(Array.isArray(N)?N[0]:N),v.calc=!0}return(v.calc||v.plot)&&(v.fullReplot=!0),{flags:v,undoit:x,redoit:y,traces:n,eventData:o.extendDeepNoArrays([],[g,n])}}function q(e){var t,n,r,a=o.counterRegex("axis",".title",!1,!1),i=/colorbar\.title$/,l=Object.keys(e);for(t=0;t<l.length;t++)n=l[t],r=e[n],"title"!==n&&!a.test(n)&&!i.test(n)||"string"!=typeof r&&"number"!=typeof r?n.indexOf("titlefont")>-1?s(n,n.replace("titlefont","title.font")):n.indexOf("titleposition")>-1?s(n,n.replace("titleposition","title.position")):n.indexOf("titleside")>-1?s(n,n.replace("titleside","title.side")):n.indexOf("titleoffset")>-1&&s(n,n.replace("titleoffset","title.offset")):s(n,n.replace("title","title.text"));function s(t,n){e[n]=e[t],delete e[t]}}function V(e,t,n){if(e=o.getGraphDiv(e),k.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var r={};if("string"==typeof t)r[t]=n;else{if(!o.isPlainObject(t))return o.warn("Relayout fail.",t,n),Promise.reject();r=o.extendFlat({},t)}Object.keys(r).length&&(e.changed=!0);var a=X(e,r),i=a.flags;i.calc&&(e.calcdata=void 0);var l=[d.previousPromises];i.layoutReplot?l.push(T.layoutReplot):Object.keys(r).length&&(U(e,i,a)||d.supplyDefaults(e),i.legend&&l.push(T.doLegend),i.layoutstyle&&l.push(T.layoutStyles),i.axrange&&G(l,a.rangesAltered),i.ticks&&l.push(T.doTicksRelayout),i.modebar&&l.push(T.doModeBar),i.camera&&l.push(T.doCamera),i.colorbars&&l.push(T.doColorBars),l.push(L)),l.push(d.rehover,d.redrag),c.add(e,V,[e,a.undoit],V,[e,a.redoit]);var s=o.syncOrAsync(l,e);return s&&s.then||(s=Promise.resolve(e)),s.then((function(){return e.emit("plotly_relayout",a.eventData),e}))}function U(e,t,n){var r=e._fullLayout;if(!t.axrange)return!1;for(var a in t)if("axrange"!==a&&t[a])return!1;for(var i in n.rangesAltered){var o=h.id2name(i),l=e.layout[o],s=r[o];if(s.autorange=l.autorange,s.range=l.range.slice(),s.cleanRange(),s._matchGroup)for(var c in s._matchGroup)if(c!==i){var u=r[h.id2name(c)];u.autorange=s.autorange,u.range=s.range.slice(),u._input.range=s.range.slice()}}return!0}function G(e,t){var n=t?function(e){var n=[],r=!0;for(var a in t){var i=h.getFromId(e,a);if(n.push(a),i._matchGroup)for(var o in i._matchGroup)t[o]||n.push(o);i.automargin&&(r=!1)}return h.draw(e,n,{skipTitle:r})}:function(e){return h.draw(e,"redraw")};e.push(b,T.doAutoRangeAndConstraints,n,T.drawData,T.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,Y=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function X(e,t){var n,r,a,i=e.layout,s=e._fullLayout,c=s._guiEditing,d=B(s._preGUI,c),p=Object.keys(t),g=h.list(e),m=o.extendDeepAll({},t),v={};for(q(t),p=Object.keys(t),r=0;r<p.length;r++)if(0===p[r].indexOf("allaxes")){for(a=0;a<g.length;a++){var y=g[a]._id.substr(1),x=-1!==y.indexOf("scene")?y+".":"",b=p[r].replace("allaxes",x+g[a]._name);t[b]||(t[b]=t[p[r]])}delete t[p[r]]}var _=M.layoutFlags(),T={},S={};function L(e,n){if(Array.isArray(e))e.forEach((function(e){L(e,n)}));else if(!(e in t)&&!k.hasParent(t,e)){var r=d(i,e);e in S||(S[e]=F(r.get())),void 0!==n&&r.set(n)}}var C,O={};function P(e){var t=h.name2id(e.split(".")[0]);return O[t]=1,t}for(var E in t){if(k.hasParent(t,E))throw new Error("cannot set "+E+" and a parent attribute simultaneously");for(var z=d(i,E),D=t[E],R=z.parts.length-1;R>0&&"string"!=typeof z.parts[R];)R--;var I=z.parts[R],N=z.parts[R-1]+"."+I,j=z.parts.slice(0,R).join("."),H=l(e.layout,j).get(),V=l(s,j).get(),U=z.get();if(void 0!==D){T[E]=D,S[E]="reverse"===I?D:F(U);var G=f.getLayoutValObject(s,z.parts);if(G&&G.impliedEdits&&null!==D)for(var X in G.impliedEdits)L(o.relativeAttr(E,X),G.impliedEdits[X]);if(-1!==["width","height"].indexOf(E))if(D){L("autosize",null);var Q="height"===E?"width":"height";L(Q,s[Q])}else s[E]=e._initialAutoSize[E];else if("autosize"===E)L("width",D?null:s.width),L("height",D?null:s.height);else if(N.match(Z))P(N),l(s,j+"._inputRange").set(null);else if(N.match(W)){P(N),l(s,j+"._inputRange").set(null);var K=l(s,j).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else N.match(Y)&&l(s,j+"._inputDomain").set(null);if("type"===I){var J=H,ee="linear"===V.type&&"log"===D,te="log"===V.type&&"linear"===D;if(ee||te){if(J&&J.range)if(V.autorange)ee&&(J.range=J.range[1]>J.range[0]?[1,2]:[2,1]);else{var ne=J.range[0],re=J.range[1];ee?(ne<=0&&re<=0&&L(j+".autorange",!0),ne<=0?ne=re/1e6:re<=0&&(re=ne/1e6),L(j+".range[0]",Math.log(ne)/Math.LN10),L(j+".range[1]",Math.log(re)/Math.LN10)):(L(j+".range[0]",Math.pow(10,ne)),L(j+".range[1]",Math.pow(10,re)))}else L(j+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[z.parts[0]]&&"radialaxis"===z.parts[1]&&delete s[z.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(e,V,D,L),u.getComponentMethod("images","convertCoords")(e,V,D,L)}else L(j+".autorange",!0),L(j+".range",null);l(s,j+"._inputRange").set(null)}else if(I.match(A)){var ae=l(s,E).get(),ie=(D||{}).type;ie&&"-"!==ie||(ie="linear"),u.getComponentMethod("annotations","convertCoords")(e,ae,ie,L),u.getComponentMethod("images","convertCoords")(e,ae,ie,L)}var oe=w.containerArrayMatch(E);if(oe){n=oe.array,r=oe.index;var le=oe.property,se=G||{editType:"calc"};""!==r&&""===le&&(w.isAddVal(D)?S[E]=null:w.isRemoveVal(D)?S[E]=(l(i,n).get()||[])[r]:o.warn("unrecognized full object value",t)),M.update(_,se),v[n]||(v[n]={});var ce=v[n][r];ce||(ce=v[n][r]={}),ce[le]=D,delete t[E]}else"reverse"===I?(H.range?H.range.reverse():(L(j+".autorange",!0),H.range=[1,0]),V.autorange?_.calc=!0:_.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===E&&("lasso"===D||"select"===D)&&"lasso"!==U&&"select"!==U||s._has("gl2d")?_.plot=!0:G?M.update(_,G):_.calc=!0,z.set(D))}}for(n in v)w.applyContainerArrayChanges(e,d(i,n),v[n],_,d)||(_.plot=!0);var ue=s._axisConstraintGroups||[];for(C in O)for(r=0;r<ue.length;r++){var fe=ue[r];if(fe[C])for(var de in _.calc=!0,fe)O[de]||(h.getFromId(e,de)._constraintShrinkable=!0)}return($(e)||t.height||t.width)&&(_.plot=!0),(_.plot||_.calc)&&(_.layoutReplot=!0),{flags:_,rangesAltered:O,undoit:S,redoit:T,eventData:m}}function $(e){var t=e._fullLayout,n=t.width,r=t.height;return e.layout.autosize&&d.plotAutoSize(e,e.layout,t),t.width!==n||t.height!==r}function Q(e,t,r,a){if(e=o.getGraphDiv(e),k.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);o.isPlainObject(t)||(t={}),o.isPlainObject(r)||(r={}),Object.keys(t).length&&(e.changed=!0),Object.keys(r).length&&(e.changed=!0);var i=k.coerceTraceIndices(e,a),l=H(e,o.extendFlat({},t),i),s=l.flags,u=X(e,o.extendFlat({},r)),f=u.flags;(s.calc||f.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&k.clearAxisTypes(e,i,r);var p=[];f.layoutReplot?p.push(T.layoutReplot):s.fullReplot?p.push(n.plot):(p.push(d.previousPromises),U(e,f,u)||d.supplyDefaults(e),s.style&&p.push(T.doTraceStyle),(s.colorbars||f.colorbars)&&p.push(T.doColorBars),f.legend&&p.push(T.doLegend),f.layoutstyle&&p.push(T.layoutStyles),f.axrange&&G(p,u.rangesAltered),f.ticks&&p.push(T.doTicksRelayout),f.modebar&&p.push(T.doModeBar),f.camera&&p.push(T.doCamera),p.push(L)),p.push(d.rehover,d.redrag),c.add(e,Q,[e,l.undoit,u.undoit,l.traces],Q,[e,l.redoit,u.redoit,l.traces]);var h=o.syncOrAsync(p,e);return h&&h.then||(h=Promise.resolve(e)),h.then((function(){return e.emit("plotly_update",{data:l.eventData,layout:u.eventData}),e}))}function K(e){return function(t){t._fullLayout._guiEditing=!0;var n=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,n}}var J=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],ee=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function te(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=e.match(r.pattern);if(a)return{head:a[1],attr:r.attr}}}function ne(e,t){var n=l(t,e).get();if(void 0!==n)return n;var r=e.split(".");for(r.pop();r.length>1;)if(r.pop(),void 0!==(n=l(t,r.join(".")+".uirevision").get()))return n;return t.uirevision}function re(e,t){for(var n=0;n<t.length;n++)if(t[n]._fullInput.uid===e)return n;return-1}function ae(e,t,n){for(var r=0;r<t.length;r++)if(t[r].uid===e)return r;return!t[n]||t[n].uid?-1:n}function ie(e,t){var n=o.isPlainObject(e),r=Array.isArray(e);return n||r?(n&&o.isPlainObject(t)||r&&Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):e===t}function oe(e,t,n,r){var a,i,s,c=r.getValObject,u=r.flags,f=r.immutable,d=r.inArray,p=r.arrayIndex;function h(){var e=a.editType;d&&-1!==e.indexOf("arraydraw")?o.pushUnique(u.arrays[d],p):(M.update(u,a),"none"!==e&&u.nChanges++,r.transition&&a.anim&&u.nChangesAnim++,(Z.test(s)||W.test(s))&&(u.rangesAltered[n[0]]=1),Y.test(s)&&l(t,"_inputDomain").set(null),"datarevision"===i&&(u.newDataRevision=1))}function g(e){return"data_array"===e.valType||e.arrayOk}for(i in e){if(u.calc&&!r.transition)return;var m=e[i],v=t[i],y=n.concat(i);if(s=y.join("."),"_"!==i.charAt(0)&&"function"!=typeof m&&m!==v){if(("tick0"===i||"dtick"===i)&&"geo"!==n[0]){var x=t.tickmode;if("auto"===x||"array"===x||!x)continue}if(("range"!==i||!t.autorange)&&("zmin"!==i&&"zmax"!==i||"contourcarpet"!==t.type)&&(a=c(y))&&(!a._compareAsJSON||JSON.stringify(m)!==JSON.stringify(v))){var b,_=a.valType,w=g(a),k=Array.isArray(m),T=Array.isArray(v);if(k&&T){var A="_input_"+i,S=e[A],L=t[A];if(Array.isArray(S)&&S===L)continue}if(void 0===v)w&&k?u.calc=!0:h();else if(a._isLinkedToArray){var C=[],O=!1;d||(u.arrays[i]=C);var P=Math.min(m.length,v.length),E=Math.max(m.length,v.length);if(P!==E){if("arraydraw"!==a.editType){h();continue}O=!0}for(b=0;b<P;b++)oe(m[b],v[b],y.concat(b),o.extendFlat({inArray:i,arrayIndex:b},r));if(O)for(b=P;b<E;b++)C.push(b)}else!_&&o.isPlainObject(m)?oe(m,v,y,r):w?k&&T?(f&&(u.calc=!0),(f||r.newDataRevision)&&h()):k!==T?u.calc=!0:h():k&&T&&m.length===v.length&&String(m)===String(v)||h()}}}for(i in t)if(!(i in e)&&"_"!==i.charAt(0)&&"function"!=typeof t[i]){if(g(a=c(n.concat(i)))&&Array.isArray(t[i]))return void(u.calc=!0);h()}}function le(e){var t=r.select(e),n=e._fullLayout;if(n._container=t.selectAll(".plot-container").data([0]),n._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),n._paperdiv=n._container.selectAll(".svg-container").data([0]),n._paperdiv.enter().append("div").classed("svg-container",!0).style("position","relative"),n._glcontainer=n._paperdiv.selectAll(".gl-container").data([{}]),n._glcontainer.enter().append("div").classed("gl-container",!0),n._paperdiv.selectAll(".main-svg").remove(),n._paperdiv.select(".modebar-container").remove(),n._paper=n._paperdiv.insert("svg",":first-child").classed("main-svg",!0),n._toppaper=n._paperdiv.append("svg").classed("main-svg",!0),n._modebardiv=n._paperdiv.append("div"),n._hoverpaper=n._paperdiv.append("svg").classed("main-svg",!0),!n._uid){var a={};r.selectAll("defs").each((function(){this.id&&(a[this.id.split("-")[1]]=1)})),n._uid=o.randstr(a)}n._paperdiv.selectAll(".main-svg").attr(y.svgAttrs),n._defs=n._paper.append("defs").attr("id","defs-"+n._uid),n._clips=n._defs.append("g").classed("clips",!0),n._topdefs=n._toppaper.append("defs").attr("id","topdefs-"+n._uid),n._topclips=n._topdefs.append("g").classed("clips",!0),n._bgLayer=n._paper.append("g").classed("bglayer",!0),n._draggers=n._paper.append("g").classed("draglayer",!0);var i=n._paper.append("g").classed("layer-below",!0);n._imageLowerLayer=i.append("g").classed("imagelayer",!0),n._shapeLowerLayer=i.append("g").classed("shapelayer",!0),n._cartesianlayer=n._paper.append("g").classed("cartesianlayer",!0),n._polarlayer=n._paper.append("g").classed("polarlayer",!0),n._ternarylayer=n._paper.append("g").classed("ternarylayer",!0),n._geolayer=n._paper.append("g").classed("geolayer",!0),n._funnelarealayer=n._paper.append("g").classed("funnelarealayer",!0),n._pielayer=n._paper.append("g").classed("pielayer",!0),n._treemaplayer=n._paper.append("g").classed("treemaplayer",!0),n._sunburstlayer=n._paper.append("g").classed("sunburstlayer",!0),n._indicatorlayer=n._toppaper.append("g").classed("indicatorlayer",!0),n._glimages=n._paper.append("g").classed("glimages",!0);var l=n._toppaper.append("g").classed("layer-above",!0);n._imageUpperLayer=l.append("g").classed("imagelayer",!0),n._shapeUpperLayer=l.append("g").classed("shapelayer",!0),n._infolayer=n._toppaper.append("g").classed("infolayer",!0),n._menulayer=n._toppaper.append("g").classed("menulayer",!0),n._zoomlayer=n._toppaper.append("g").classed("zoomlayer",!0),n._hoverlayer=n._hoverpaper.append("g").classed("hoverlayer",!0),n._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}n.animate=function(e,t,n){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var r=e._transitionData;r._frameQueue||(r._frameQueue=[]);var a=(n=d.supplyAnimationDefaults(n)).transition,i=n.frame;function l(e){return Array.isArray(a)?e>=a.length?a[0]:a[e]:a}function s(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function c(e,t){var n=0;return function(){if(e&&++n===t)return e()}}return void 0===r._frameWaitingCnt&&(r._frameWaitingCnt=0),new Promise((function(i,u){function f(){r._currentFrame&&r._currentFrame.onComplete&&r._currentFrame.onComplete();var t=r._currentFrame=r._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,r._lastFrameAt=Date.now(),r._timeToNext=t.frameOpts.duration,d.transition(e,t.frame.data,t.frame.layout,k.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(r._animationRaf),r._animationRaf=null}function p(){e.emit("plotly_animating"),r._lastFrameAt=-1/0,r._timeToNext=0,r._runningTransitions=0,r._currentFrame=null;var t=function(){r._animationRaf=window.requestAnimationFrame(t),Date.now()-r._lastFrameAt>r._timeToNext&&f()};t()}var h,g,m=0;function v(e){return Array.isArray(a)?m>=a.length?e.transitionOpts=a[m]:e.transitionOpts=a[0]:e.transitionOpts=a,m++,e}var y=[],x=null==t,b=Array.isArray(t);if(x||b||!o.isPlainObject(t)){if(x||-1!==["string","number"].indexOf(typeof t))for(h=0;h<r._frames.length;h++)(g=r._frames[h])&&(x||String(g.group)===String(t))&&y.push({type:"byname",name:String(g.name),data:v({name:g.name})});else if(b)for(h=0;h<t.length;h++){var _=t[h];-1!==["number","string"].indexOf(typeof _)?(_=String(_),y.push({type:"byname",name:_,data:v({name:_})})):o.isPlainObject(_)&&y.push({type:"object",data:v(o.extendFlat({},_))})}}else y.push({type:"object",data:v(o.extendFlat({},t))});for(h=0;h<y.length;h++)if("byname"===(g=y[h]).type&&!r._frameHash[g.data.name])return o.warn('animate failure: frame not found: "'+g.data.name+'"'),void u();-1!==["next","immediate"].indexOf(n.mode)&&function(){if(0!==r._frameQueue.length){for(;r._frameQueue.length;){var t=r._frameQueue.pop();t.onInterrupt&&t.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}(),"reverse"===n.direction&&y.reverse();var w=e._fullLayout._currentFrame;if(w&&n.fromcurrent){var T=-1;for(h=0;h<y.length;h++)if("byname"===(g=y[h]).type&&g.name===w){T=h;break}if(T>0&&T<y.length-1){var M=[];for(h=0;h<y.length;h++)g=y[h],("byname"!==y[h].type||h>T)&&M.push(g);y=M}}y.length>0?function(t){if(0!==t.length){for(var a=0;a<t.length;a++){var o;o="byname"===t[a].type?d.computeFrame(e,t[a].name):t[a].data;var f=s(a),h=l(a);h.duration=Math.min(h.duration,f.duration);var g={frame:o,name:t[a].name,frameOpts:f,transitionOpts:h};a===t.length-1&&(g.onComplete=c(i,2),g.onInterrupt=u),r._frameQueue.push(g)}"immediate"===n.mode&&(r._lastFrameAt=-1/0),r._animationRaf||p()}}(y):(e.emit("plotly_animated"),i())}))},n.addFrames=function(e,t,n){if(e=o.getGraphDiv(e),null==t)return Promise.resolve();if(!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var r,a,i,l,s=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var f=s.length+2*t.length,p=[],h={};for(r=t.length-1;r>=0;r--)if(o.isPlainObject(t[r])){var g=t[r].name,m=(u[g]||h[g]||{}).name,v=t[r].name,y=u[m]||h[m];m&&v&&"number"==typeof v&&y&&S<5&&(S++,o.warn('addFrames: overwriting frame "'+(u[m]||h[m]).name+'" with a frame whose name of type "number" also equates to "'+m+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&&o.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),h[g]={name:g},p.push({frame:d.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:f+r})}p.sort((function(e,t){return e.index>t.index?-1:e.index<t.index?1:0}));var x=[],b=[],_=s.length;for(r=p.length-1;r>=0;r--){if("number"==typeof(a=p[r].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(i=0;i<s.length&&(s[i]||{}).name!==a.name;i++);x.push({type:"replace",index:i,value:a}),b.unshift({type:"replace",index:i,value:s[i]})}else l=Math.max(0,Math.min(p[r].index,_)),x.push({type:"insert",index:l,value:a}),b.unshift({type:"delete",index:l}),_++}var w=d.modifyFrames,k=d.modifyFrames,T=[e,b],M=[e,x];return c&&c.add(e,w,T,k,M),d.modifyFrames(e,x)},n.deleteFrames=function(e,t){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var n,r,a=e._transitionData._frames,i=[],l=[];if(!t)for(t=[],n=0;n<a.length;n++)t.push(n);for((t=t.slice()).sort(),n=t.length-1;n>=0;n--)r=t[n],i.push({type:"delete",index:r}),l.unshift({type:"insert",index:r,value:a[r]});var s=d.modifyFrames,u=d.modifyFrames,f=[e,l],p=[e,i];return c&&c.add(e,s,f,u,p),d.modifyFrames(e,i)},n.addTraces=function e(t,r,a){t=o.getGraphDiv(t);var i,l,s=[],u=n.deleteTraces,f=e,d=[t,s],p=[t,r];for(function(e,t,n){var r,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),r=0;r<t.length;r++)if("object"!=typeof(a=t[r])||Array.isArray(a)||null===a)throw new Error("all values in traces array must be non-array objects");if(void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&n.length!==t.length)throw new Error("if indices is specified, traces.length must equal indices.length")}(t,r,a),Array.isArray(r)||(r=[r]),r=r.map((function(e){return o.extendFlat({},e)})),k.cleanData(r),i=0;i<r.length;i++)t.data.push(r[i]);for(i=0;i<r.length;i++)s.push(-r.length+i);if(void 0===a)return l=n.redraw(t),c.add(t,u,d,f,p),l;Array.isArray(a)||(a=[a]);try{D(t,s,a)}catch(e){throw t.data.splice(t.data.length-r.length,r.length),e}return c.startSequence(t),c.add(t,u,d,f,p),l=n.moveTraces(t,s,a),c.stopSequence(t),l},n.deleteTraces=function e(t,r){t=o.getGraphDiv(t);var a,i,l=[],s=n.addTraces,u=e,f=[t,l,r],d=[t,r];if(void 0===r)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),z(t,r,"indices"),(r=E(r,t.data.length-1)).sort(o.sorterDes),a=0;a<r.length;a+=1)i=t.data.splice(r[a],1)[0],l.push(i);var p=n.redraw(t);return c.add(t,s,f,u,d),p},n.extendTraces=function e(t,r,a,i){function l(e,t,n){var r,a;if(o.isTypedArray(e))if(n<0){var i=new e.constructor(0),l=I(e,t);n<0?(r=l,a=i):(r=i,a=l)}else if(r=new e.constructor(n),a=new e.constructor(e.length+t.length-n),n===t.length)r.set(t),a.set(e);else if(n<t.length){var s=t.length-n;r.set(t.subarray(s)),a.set(e),a.set(t.subarray(0,s),e.length)}else{var c=n-t.length,u=e.length-c;r.set(e.subarray(u)),r.set(t,c),a.set(e.subarray(0,u))}else r=e.concat(t),a=n>=0&&n<r.length?r.splice(0,r.length-n):[];return[r,a]}var s=R(t=o.getGraphDiv(t),r,a,i,l),u=n.redraw(t),f=[t,s.update,a,s.maxPoints];return c.add(t,n.prependTraces,f,e,arguments),u},n.moveTraces=function e(t,r,a){var i,l=[],s=[],u=e,f=e,d=[t=o.getGraphDiv(t),a,r],p=[t,r,a];if(D(t,r,a),r=Array.isArray(r)?r:[r],void 0===a)for(a=[],i=0;i<r.length;i++)a.push(-r.length+i);for(a=Array.isArray(a)?a:[a],r=E(r,t.data.length-1),a=E(a,t.data.length-1),i=0;i<t.data.length;i++)-1===r.indexOf(i)&&l.push(t.data[i]);for(i=0;i<r.length;i++)s.push({newIndex:a[i],trace:t.data[r[i]]});for(s.sort((function(e,t){return e.newIndex-t.newIndex})),i=0;i<s.length;i+=1)l.splice(s[i].newIndex,0,s[i].trace);t.data=l;var h=n.redraw(t);return c.add(t,u,d,f,p),h},n.prependTraces=function e(t,r,a,i){function l(e,t,n){var r,a;if(o.isTypedArray(e))if(n<=0){var i=new e.constructor(0),l=I(t,e);n<0?(r=l,a=i):(r=i,a=l)}else if(r=new e.constructor(n),a=new e.constructor(e.length+t.length-n),n===t.length)r.set(t),a.set(e);else if(n<t.length){var s=t.length-n;r.set(t.subarray(0,s)),a.set(t.subarray(s)),a.set(e,s)}else{var c=n-t.length;r.set(t),r.set(e.subarray(0,c),t.length),a.set(e.subarray(c))}else r=t.concat(e),a=n>=0&&n<r.length?r.splice(n,r.length):[];return[r,a]}var s=R(t=o.getGraphDiv(t),r,a,i,l),u=n.redraw(t),f=[t,s.update,a,s.maxPoints];return c.add(t,n.extendTraces,f,e,arguments),u},n.newPlot=function(e,t,r,a){return e=o.getGraphDiv(e),d.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),d.purge(e),n.plot(e,t,r,a)},n.plot=function(e,t,a,i){var l;if(e=o.getGraphDiv(e),s.init(e),o.isPlainObject(t)){var c=t;t=c.data,a=c.layout,i=c.config,l=c.frames}if(!1===s.triggerHandler(e,"plotly_beforeplot",[t,a,i]))return Promise.reject();t||a||o.isPlotDiv(e)||o.warn("Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.",e),P(e,i),a||(a={}),r.select(e).classed("js-plotly-plot",!0),g.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var f=0===(e.data||[]).length&&Array.isArray(t);Array.isArray(t)&&(k.cleanData(t),f?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),e.layout&&!f||(e.layout=k.cleanLayout(a)),d.supplyDefaults(e);var m=e._fullLayout,y=m._has("cartesian");if(!m._has("polar")&&t&&t[0]&&t[0].r)return o.log("Legacy polar charts are deprecated!"),function(e,t,n){var a=r.select(e).selectAll(".plot-container").data([0]);a.enter().insert("div",":first-child").classed("plot-container plotly",!0);var i=a.selectAll(".svg-container").data([0]);i.enter().append("div").classed("svg-container",!0).style("position","relative"),i.html(""),t&&(e.data=t),n&&(e.layout=n),p.manager.fillLayout(e),i.style({width:e._fullLayout.width+"px",height:e._fullLayout.height+"px"}),e.framework=p.manager.framework(e),e.framework({data:e.data,layout:e.layout},i.node()),e.framework.setUndoPoint();var l=e.framework.svg(),s=1,c=e._fullLayout.title?e._fullLayout.title.text:"";""!==c&&c||(s=0);var u=function(){this.call(x.convertToTspans,e)},f=l.select(".title-group text").call(u);if(e._context.edits.titleText){var h=o._(e,"Click to enter Plot title");c&&c!==h||(s=.2,f.attr({"data-unformatted":h}).text(h).style({opacity:s}).on("mouseover.opacity",(function(){r.select(this).transition().duration(100).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(1e3).style("opacity",0)})));var g=function(){this.call(x.makeEditable,{gd:e}).on("edit",(function(t){e.framework({layout:{title:{text:t}}}),this.text(t).call(u),this.call(g)})).on("cancel",(function(){var e=this.attr("data-unformatted");this.text(e).call(u)}))};f.call(g)}return e._context.setBackground(e,e._fullLayout.paper_bgcolor),d.addLinks(e),Promise.resolve()}(e,t,a);m._replotting=!0,f&&le(e),e.framework!==le&&(e.framework=le,le(e)),g.initGradients(e),f&&h.saveShowSpikeInitial(e);var b=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;b&&d.doCalcdata(e);for(var _=0;_<e.calcdata.length;_++)e.calcdata[_][0].trace=e._fullData[_];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){o.isHidden(e)||d.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):o.clearResponsive(e);var w=o.extendFlat({},m._size),M=0;function A(){if(d.clearAutoMarginIds(e),T.drawMarginPushers(e),h.allowAutoMargin(e),m._has("pie"))for(var t=e._fullData,n=0;n<t.length;n++){var r=t[n];"pie"===r.type&&r.automargin&&d.allowAutoMargin(e,"pie."+r.uid+".automargin")}return d.doAutoMargin(e),d.previousPromises(e)}function S(){e._transitioning||(T.doAutoRangeAndConstraints(e),f&&h.saveRangeInitial(e),u.getComponentMethod("rangeslider","calcAutorange")(e))}var C=[d.previousPromises,function(){if(l)return n.addFrames(e,l)},function t(){for(var n=m._basePlotModules,r=0;r<n.length;r++)n[r].drawFramework&&n[r].drawFramework(e);if(!m._glcanvas&&m._has("gl")&&(m._glcanvas=m._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],(function(e){return e.key})),m._glcanvas.enter().append("canvas").attr("class",(function(e){return"gl-canvas gl-canvas-"+e.key.replace("Layer","")})).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"})),m._glcanvas){m._glcanvas.attr("width",m.width).attr("height",m.height);var a=m._glcanvas.data()[0].regl;if(a&&(Math.floor(m.width)!==a._gl.drawingBufferWidth||Math.floor(m.height)!==a._gl.drawingBufferHeight)){var i="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!M)return o.log(i+" Clearing graph and plotting again."),d.cleanPlot([],{},e._fullData,m),d.supplyDefaults(e),m=e._fullLayout,d.doCalcdata(e),M++,t();o.error(i)}}return"h"===m.modebar.orientation?m._modebardiv.style("height",null).style("width","100%"):m._modebardiv.style("width",null).style("height",m.height+"px"),d.previousPromises(e)},A,function(){if(d.didMarginChange(w,m._size))return o.syncOrAsync([A,T.layoutStyles],e)}];y&&C.push((function(){if(b)return o.syncOrAsync([u.getComponentMethod("shapes","calcAutorange"),u.getComponentMethod("annotations","calcAutorange"),S],e);S()})),C.push(T.layoutStyles),y&&C.push((function(){return h.draw(e,f?"":"redraw")})),C.push(T.drawData,T.finalDraw,v,d.addLinks,d.rehover,d.redrag,d.doAutoMargin,d.previousPromises);var O=o.syncOrAsync(C,e);return O&&O.then||(O=Promise.resolve()),O.then((function(){return L(e),e}))},n.purge=function(e){var t=(e=o.getGraphDiv(e))._fullLayout||{},n=e._fullData||[];return d.cleanPlot([],{},n,t),d.purge(e),s.purge(e),t._container&&t._container.remove(),delete e._context,e},n.react=function(e,t,r,a){var i,s;e=o.getGraphDiv(e),k.clearPromiseQueue(e);var c=e._fullData,p=e._fullLayout;if(o.isPlotDiv(e)&&c&&p){if(o.isPlainObject(t)){var h=t;t=h.data,r=h.layout,a=h.config,i=h.frames}var g=!1;if(a){var m=o.extendDeep({},e._context);e._context=void 0,P(e,a),g=function e(t,n){var r;for(r in t)if("_"!==r.charAt(0)){var a=t[r],i=n[r];if(a!==i)if(o.isPlainObject(a)&&o.isPlainObject(i)){if(e(a,i))return!0}else{if(!Array.isArray(a)||!Array.isArray(i))return!0;if(a.length!==i.length)return!0;for(var l=0;l<a.length;l++)if(a[l]!==i[l]){if(!o.isPlainObject(a[l])||!o.isPlainObject(i[l]))return!0;if(e(a[l],i[l]))return!0}}}}(m,e._context)}e.data=t||[],k.cleanData(e.data),e.layout=r||{},k.cleanLayout(e.layout),function(e,t,n,r){var a,i,s,c,u,f,d,p,h=r._preGUI,g=[],m={};for(a in h){if(u=te(a,J)){if(i=u.attr||u.head+".uirevision",(c=(s=l(r,i).get())&&ne(i,t))&&c===s&&(null===(f=h[a])&&(f=void 0),ie(p=(d=l(t,a)).get(),f))){void 0===p&&"autorange"===a.substr(a.length-9)&&g.push(a.substr(0,a.length-10)),d.set(F(l(r,a).get()));continue}}else o.warn("unrecognized GUI edit: "+a);delete h[a],"range["===a.substr(a.length-8,6)&&(m[a.substr(0,a.length-9)]=1)}for(var v=0;v<g.length;v++){var y=g[v];if(m[y]){var x=l(t,y).get();x&&delete x.autorange}}var b=r._tracePreGUI;for(var _ in b){var w,k=b[_],T=null;for(a in k){if(!T){var M=re(_,n);if(M<0){delete b[_];break}var A=ae(_,e,(w=n[M]._fullInput).index);if(A<0){delete b[_];break}T=e[A]}if(u=te(a,ee)){if(u.attr?c=(s=l(r,u.attr).get())&&ne(u.attr,t):(s=w.uirevision,void 0===(c=T.uirevision)&&(c=t.uirevision)),c&&c===s&&(null===(f=k[a])&&(f=void 0),ie(p=(d=l(T,a)).get(),f))){d.set(F(l(w,a).get()));continue}}else o.warn("unrecognized GUI edit: "+a+" in trace uid "+_);delete k[a]}}}(e.data,e.layout,c,p),d.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,y=e._fullLayout,x=void 0===y.datarevision,b=y.transition,_=function(e,t,n,r,a){var i=M.layoutFlags();return i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0,oe(t,n,[],{getValObject:function(e){return f.getLayoutValObject(n,e)},flags:i,immutable:r,transition:a,gd:e}),(i.plot||i.calc)&&(i.layoutReplot=!0),a&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some"),i}(e,p,y,x,b),w=_.newDataRevision,A=function(e,t,n,r,a,i){var o=t.length===n.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var l,s,c=M.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(e){var t=f.getTraceValObject(s,e);return!s._module.animatable&&t.anim&&(t.anim=!1),t},flags:c,immutable:r,transition:a,newDataRevision:i,gd:e},p={};for(l=0;l<t.length;l++)if(n[l]){if(s=n[l]._fullInput,d.hasMakesDataTransform(s)&&(s=n[l]),p[s.uid])continue;p[s.uid]=1,oe(t[l]._fullInput,s,[],u)}return(c.calc||c.plot)&&(c.fullReplot=!0),a&&c.nChanges&&c.nChangesAnim&&(c.anim=c.nChanges===c.nChangesAnim&&o?"all":"some"),c}(e,c,v,x,b,w);$(e)&&(_.layoutReplot=!0),A.calc||_.calc?e.calcdata=void 0:d.supplyDefaultsUpdateCalc(e.calcdata,v);var S=[];if(i&&(e._transitionData={},d.createTransitionData(e),S.push((function(){return n.addFrames(e,i)}))),y.transition&&!g&&(A.anim||_.anim))d.doCalcdata(e),T.doAutoRangeAndConstraints(e),S.push((function(){return d.transitionFromReact(e,A,_,p)}));else if(A.fullReplot||_.layoutReplot||g)e._fullLayout._skipDefaults=!0,S.push(n.plot);else{for(var C in _.arrays){var O=_.arrays[C];if(O.length){var E=u.getComponentMethod(C,"drawOne");if(E!==o.noop)for(var z=0;z<O.length;z++)E(e,O[z]);else{var D=u.getComponentMethod(C,"draw");if(D===o.noop)throw new Error("cannot draw components: "+C);D(e)}}}S.push(d.previousPromises),A.style&&S.push(T.doTraceStyle),(A.colorbars||_.colorbars)&&S.push(T.doColorBars),_.legend&&S.push(T.doLegend),_.layoutstyle&&S.push(T.layoutStyles),_.axrange&&G(S),_.ticks&&S.push(T.doTicksRelayout),_.modebar&&S.push(T.doModeBar),_.camera&&S.push(T.doCamera),S.push(L)}S.push(d.rehover,d.redrag),(s=o.syncOrAsync(S,e))&&s.then||(s=Promise.resolve(e))}else s=n.newPlot(e,t,r,a);return s.then((function(){return e.emit("plotly_react",{data:t,layout:r}),e}))},n.redraw=function(e){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return k.cleanData(e.data),k.cleanLayout(e.layout),e.calcdata=void 0,n.plot(e).then((function(){return e.emit("plotly_redraw"),e}))},n.relayout=V,n.restyle=N,n.setPlotConfig=function(e){return o.extendFlat(_,e)},n.update=Q,n._guiRelayout=K(V),n._guiRestyle=K(N),n._guiUpdate=K(Q),n._storeDirectGUIEdit=function(e,t,n){for(var r in n)j(r,l(e,r).get(),n[r],t)}},{"../components/color":52,"../components/drawing":74,"../constants/xmlns_namespaces":159,"../lib":178,"../lib/events":172,"../lib/queue":192,"../lib/svg_text_utils":199,"../plots/cartesian/axes":222,"../plots/cartesian/constants":228,"../plots/cartesian/graph_interact":231,"../plots/cartesian/select":241,"../plots/plots":256,"../plots/polar/legacy":259,"../registry":269,"./edit_types":205,"./helpers":206,"./manage_arrays":208,"./plot_config":210,"./plot_schema":211,"./subroutines":213,d3:16,"fast-isnumeric":18,"has-hover":20}],210:[function(e,t,n){"use strict";var r={staticPlot:{valType:"boolean",dflt:!1},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},a={};!function e(t,n){for(var r in t){var a=t[r];a.valType?n[r]=a.dflt:(n[r]||(n[r]={}),e(a,n[r]))}}(r,a),t.exports={configAttributes:r,dfltConfig:a}},{}],211:[function(e,t,n){"use strict";var r=e("../registry"),a=e("../lib"),i=e("../plots/attributes"),o=e("../plots/layout_attributes"),l=e("../plots/frame_attributes"),s=e("../plots/animation_attributes"),c=e("./plot_config").configAttributes,u=e("../plots/polar/legacy/area_attributes"),f=e("../plots/polar/legacy/axis_attributes"),d=e("./edit_types"),p=a.extendFlat,h=a.extendDeepAll,g=a.isPlainObject,m=a.isArrayOrTypedArray,v=a.nestedProperty,y=a.valObjectMeta,x=["_isSubplotObj","_isLinkedToArray","_arrayAttrRegexps","_deprecated"];function b(e,t,n){if(!e)return!1;if(e._isLinkedToArray)if(_(t[n]))n++;else if(n<t.length)return!1;for(;n<t.length;n++){var r=e[t[n]];if(!g(r))break;if(e=r,n===t.length-1)break;if(e._isLinkedToArray){if(!_(t[++n]))return!1}else if("info_array"===e.valType){var a=t[++n];if(!_(a))return!1;var i=e.items;if(Array.isArray(i)){if(a>=i.length)return!1;if(2===e.dimensions){if(n++,t.length===n)return e;var o=t[n];if(!_(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function _(e){return e===Math.round(e)&&e>=0}function w(){var e,t,n={};for(e in h(n,o),r.subplotsRegistry)if((t=r.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)T(n,t,t.attr[a]);else T(n,t,"subplot"===t.attr?t.name:t.attr);for(e in n=function(e){return p(e,{radialaxis:f.radialaxis,angularaxis:f.angularaxis}),p(e,f.layout),e}(n),r.componentsRegistry){var i=(t=r.componentsRegistry[e]).schema;if(i&&(i.subplots||i.layout)){var l=i.subplots;if(l&&l.xaxis&&!l.yaxis)for(var s in l.xaxis)delete n.yaxis[s]}else"colorscale"===t.name?h(n,t.layoutAttributes):t.layoutAttributes&&M(n,t.layoutAttributes,t.name)}return{layoutAttributes:k(n)}}function k(e){return function(e){n.crawl(e,(function(e,t,r){n.isValObject(e)?"data_array"===e.valType?(e.role="data",r[t+"src"]={valType:"string",editType:"none"}):!0===e.arrayOk&&(r[t+"src"]={valType:"string",editType:"none"}):g(e)&&(e.role="object")}))}(e),function(e){n.crawl(e,(function(e,t,n){if(e){var r=e._isLinkedToArray;r&&(delete e._isLinkedToArray,n[t]={items:{}},n[t].items[r]=e,n[t].role="object")}}))}(e),function(e){!function e(t){for(var n in t)if(g(t[n]))e(t[n]);else if(Array.isArray(t[n]))for(var r=0;r<t[n].length;r++)e(t[n][r]);else t[n]instanceof RegExp&&(t[n]=t[n].toString())}(e)}(e),e}function T(e,t,n){var r=v(e,n),a=h({},t.layoutAttributes);a._isSubplotObj=!0,r.set(a)}function M(e,t,n){var r=v(e,n);r.set(h(r.get()||{},t))}n.IS_SUBPLOT_OBJ="_isSubplotObj",n.IS_LINKED_TO_ARRAY="_isLinkedToArray",n.DEPRECATED="_deprecated",n.UNDERSCORE_ATTRS=x,n.get=function(){var e={};r.allTypes.concat("area").forEach((function(t){e[t]=function(e){var t,a;"area"===e?(t={attributes:u},a={}):(t=r.modules[e]._module,a=t.basePlotModule);var o={type:null},l=h({},i),s=h({},t.attributes);n.crawl(s,(function(e,t,n,r,a){v(l,a).set(void 0),void 0===e&&v(s,a).set(void 0)})),h(o,l),r.traceIs(e,"noOpacity")&&delete o.opacity,r.traceIs(e,"showLegend")||(delete o.showlegend,delete o.legendgroup),r.traceIs(e,"noHover")&&(delete o.hoverinfo,delete o.hoverlabel),t.selectPoints||delete o.selectedpoints,h(o,s),a.attributes&&h(o,a.attributes),o.type=e;var c={meta:t.meta||{},categories:t.categories||{},animatable:Boolean(t.animatable),type:e,attributes:k(o)};if(t.layoutAttributes){var f={};h(f,t.layoutAttributes),c.layoutAttributes=k(f)}return t.animatable||n.crawl(c,(function(e){n.isValObject(e)&&"anim"in e&&delete e.anim})),c}(t)}));var t,a={};return Object.keys(r.transformsRegistry).forEach((function(e){a[e]=function(e){var t=r.transformsRegistry[e],n=h({},t.attributes);return Object.keys(r.componentsRegistry).forEach((function(t){var a=r.componentsRegistry[t];a.schema&&a.schema.transforms&&a.schema.transforms[e]&&Object.keys(a.schema.transforms[e]).forEach((function(t){M(n,a.schema.transforms[e][t],t)}))})),{attributes:k(n)}}(e)})),{defs:{valObjects:y,metaKeys:x.concat(["description","role","editType","impliedEdits"]),editType:{traces:d.traces,layout:d.layout},impliedEdits:{}},traces:e,layout:w(),transforms:a,frames:(t={frames:h({},l)},k(t),t.frames),animation:k(s),config:k(c)}},n.crawl=function(e,t,r,a){var i=r||0;a=a||"",Object.keys(e).forEach((function(r){var o=e[r];if(-1===x.indexOf(r)){var l=(a?a+".":"")+r;t(o,r,e,i,l),n.isValObject(o)||g(o)&&"impliedEdits"!==r&&n.crawl(o,t,i+1,l)}}))},n.isValObject=function(e){return e&&void 0!==e.valType},n.findArrayAttributes=function(e){var t,r,a=[],o=[],l=[];function s(e,n,i,s){o=o.slice(0,s).concat([n]),l=l.slice(0,s).concat([e&&e._isLinkedToArray]),e&&("data_array"===e.valType||!0===e.arrayOk)&&("colorbar"!==o[s-1]||"ticktext"!==n&&"tickvals"!==n)&&function e(t,n,i){var s=t[o[n]],c=i+o[n];if(n===o.length-1)m(s)&&a.push(r+c);else if(l[n]){if(Array.isArray(s))for(var u=0;u<s.length;u++)g(s[u])&&e(s[u],n+1,c+"["+u+"].")}else g(s)&&e(s,n+1,c+".")}(t,0,"")}t=e,r="",n.crawl(i,s),e._module&&e._module.attributes&&n.crawl(e._module.attributes,s);var c=e.transforms;if(c)for(var u=0;u<c.length;u++){var f=c[u],d=f._module;d&&(r="transforms["+u+"].",t=f,n.crawl(d.attributes,s))}return a},n.getTraceValObject=function(e,t){var n,a,o=t[0],l=1;if("transforms"===o){if(1===t.length)return i.transforms;var s=e.transforms;if(!Array.isArray(s)||!s.length)return!1;var c=t[1];if(!_(c)||c>=s.length)return!1;a=(n=(r.transformsRegistry[s[c].type]||{}).attributes)&&n[t[2]],l=3}else if("area"===e.type)a=u[o];else{var f=e._module;if(f||(f=(r.modules[e.type||i.type.dflt]||{})._module),!f)return!1;if(!(a=(n=f.attributes)&&n[o])){var d=f.basePlotModule;d&&d.attributes&&(a=d.attributes[o])}a||(a=i[o])}return b(a,t,l)},n.getLayoutValObject=function(e,t){return b(function(e,t){var n,a,i,l,s=e._basePlotModules;if(s){var c;for(n=0;n<s.length;n++){if((i=s[n]).attrRegex&&i.attrRegex.test(t)){if(i.layoutAttrOverrides)return i.layoutAttrOverrides;!c&&i.layoutAttributes&&(c=i.layoutAttributes)}var u=i.baseLayoutAttrOverrides;if(u&&t in u)return u[t]}if(c)return c}var d=e._modules;if(d)for(n=0;n<d.length;n++)if((l=d[n].layoutAttributes)&&t in l)return l[t];for(a in r.componentsRegistry){if("colorscale"===(i=r.componentsRegistry[a]).name&&0===t.indexOf("coloraxis"))return i.layoutAttributes[t];if(!i.schema&&t===i.name)return i.layoutAttributes}return t in o?o[t]:"radialaxis"===t||"angularaxis"===t?f[t]:f.layout[t]||!1}(e,t[0]),t,1)}},{"../lib":178,"../plots/animation_attributes":217,"../plots/attributes":219,"../plots/frame_attributes":251,"../plots/layout_attributes":254,"../plots/polar/legacy/area_attributes":257,"../plots/polar/legacy/axis_attributes":258,"../registry":269,"./edit_types":205,"./plot_config":210}],212:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plots/attributes"),i={name:{valType:"string",editType:"none"}};function o(e){return e&&"string"==typeof e}function l(e){var t=e.length-1;return"s"!==e.charAt(t)&&r.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}i.templateitemname={valType:"string",editType:"calc"},n.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=i.name,t.templateitemname=i.templateitemname,t},n.traceTemplater=function(e){var t,n,i={};for(t in e)n=e[t],Array.isArray(n)&&n.length&&(i[t]=0);return{newTrace:function(o){var l={type:t=r.coerce(o,{},a,"type"),_template:null};if(t in i){n=e[t];var s=i[t]%n.length;i[t]++,l._template=n[s]}return l}}},n.newContainer=function(e,t,n){var a=e._template,i=a&&(a[t]||n&&a[n]);return r.isPlainObject(i)||(i=null),e[t]={_template:i}},n.arrayTemplater=function(e,t,n){var r=e._template,a=r&&r[l(t)],i=r&&r[t];Array.isArray(i)&&i.length||(i=[]);var s={};return{newItem:function(e){var t={name:e.name,_input:e},r=t.templateitemname=e.templateitemname;if(!o(r))return t._template=a,t;for(var l=0;l<i.length;l++){var c=i[l];if(c.name===r)return s[r]=1,t._template=c,t}return t[n]=e[n]||!1,t._template=!1,t},defaultItems:function(){for(var e=[],t=0;t<i.length;t++){var n=i[t],r=n.name;if(o(r)&&!s[r]){var a={_template:n,name:r,_input:{_templateitemname:r}};a.templateitemname=n.templateitemname,e.push(a),s[r]=1}}return e}}},n.arrayDefaultKey=l,n.arrayEditor=function(e,t,n){var a=(r.nestedProperty(e,t).get()||[]).length,i=n._index,o=i>=a&&(n._input||{})._templateitemname;o&&(i=a);var l,s=t+"["+i+"]";function c(){l={},o&&(l[s]={},l[s].templateitemname=o)}function u(e,t){o?r.nestedProperty(l[s],e).set(t):l[s+"."+e]=t}function f(){var e=l;return c(),e}return c(),{modifyBase:function(e,t){l[e]=t},modifyItem:u,getUpdateObj:f,applyUpdate:function(t,n){t&&u(t,n);var a=f();for(var i in a)r.nestedProperty(e,i).set(a[i])}}}},{"../lib":178,"../plots/attributes":219}],213:[function(e,t,n){"use strict";var r=e("d3"),a=e("../registry"),i=e("../plots/plots"),o=e("../lib"),l=e("../lib/clear_gl_canvases"),s=e("../components/color"),c=e("../components/drawing"),u=e("../components/titles"),f=e("../components/modebar"),d=e("../plots/cartesian/axes"),p=e("../constants/alignment"),h=e("../plots/cartesian/constraints"),g=h.enforce,m=h.clean,v=e("../plots/cartesian/autorange").doAutoRange;function y(e,t,n){for(var r=0;r<n.length;r++){var a=n[r][0],i=n[r][1];if(!(a[0]>=e[1]||a[1]<=e[0])&&i[0]<t[1]&&i[1]>t[0])return!0}return!1}function x(e){var t,a,l,u,h,g,m=e._fullLayout,v=m._size,x=v.p,_=d.list(e,"",!0);if(m._paperdiv.style({width:e._context.responsive&&m.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":m.width+"px",height:e._context.responsive&&m.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":m.height+"px"}).selectAll(".main-svg").call(c.setSize,m.width,m.height),e._context.setBackground(e,m.paper_bgcolor),n.drawMainTitle(e),f.manage(e),!m._has("cartesian"))return i.previousPromises(e);function k(e,t,n){var r=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===n?t._offset-x-r:t._offset+t._length+x+r:v.t+v.h*(1-(e.position||0))+r%1:t?"right"===n?t._offset+t._length+x+r:t._offset-x-r:v.l+v.w*(e.position||0)+r%1}for(t=0;t<_.length;t++){var T=(u=_[t])._anchorAxis;u._linepositions={},u._lw=c.crispRound(e,u.linewidth,1),u._mainLinePosition=k(u,T,u.side),u._mainMirrorPosition=u.mirror&&T?k(u,T,p.OPPOSITE_SIDE[u.side]):null}var M=[],A=[],S=[],L=1===s.opacity(m.paper_bgcolor)&&1===s.opacity(m.plot_bgcolor)&&m.paper_bgcolor===m.plot_bgcolor;for(a in m._plots)if((l=m._plots[a]).mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var C=l.xaxis.domain,O=l.yaxis.domain,P=l.plotgroup;if(y(C,O,S)){var E=P.node(),z=l.bg=o.ensureSingle(P,"rect","bg");E.insertBefore(z.node(),E.childNodes[0]),A.push(a)}else P.select("rect.bg").remove(),S.push([C,O]),L||(M.push(a),A.push(a))}var D,R,I,N,F,B,j,H,q,V,U,G,Z,W=m._bgLayer.selectAll(".bg").data(M);for(W.enter().append("rect").classed("bg",!0),W.exit().remove(),W.each((function(e){m._plots[e].bg=r.select(this)})),t=0;t<A.length;t++)l=m._plots[A[t]],h=l.xaxis,g=l.yaxis,l.bg&&l.bg.call(c.setRect,h._offset-x,g._offset-x,h._length+2*x,g._length+2*x).call(s.fill,m.plot_bgcolor).style("stroke-width",0);if(!m._hasOnlyLargeSploms)for(a in m._plots){l=m._plots[a],h=l.xaxis,g=l.yaxis;var Y,X,$=l.clipId="clip"+m._uid+a+"plot",Q=o.ensureSingleById(m._clips,"clipPath",$,(function(e){e.classed("plotclip",!0).append("rect")}));l.clipRect=Q.select("rect").attr({width:h._length,height:g._length}),c.setTranslate(l.plot,h._offset,g._offset),l._hasClipOnAxisFalse?(Y=null,X=$):(Y=$,X=null),c.setClipUrl(l.plot,Y,e),l.layerClipId=X}function K(e){return"M"+D+","+e+"H"+R}function J(e){return"M"+h._offset+","+e+"h"+h._length}function ee(e){return"M"+e+","+H+"V"+j}function te(e){return"M"+e+","+g._offset+"v"+g._length}function ne(e,t,n){if(!e.showline||a!==e._mainSubplot)return"";if(!e._anchorAxis)return n(e._mainLinePosition);var r=t(e._mainLinePosition);return e.mirror&&(r+=t(e._mainMirrorPosition)),r}for(a in m._plots){l=m._plots[a],h=l.xaxis,g=l.yaxis;var re="M0,0";b(h,a)&&(F=w(h,"left",g,_),D=h._offset-(F?x+F:0),B=w(h,"right",g,_),R=h._offset+h._length+(B?x+B:0),I=k(h,g,"bottom"),N=k(h,g,"top"),!(Z=!h._anchorAxis||a!==h._mainSubplot)||"allticks"!==h.mirror&&"all"!==h.mirror||(h._linepositions[a]=[I,N]),re=ne(h,K,J),Z&&h.showline&&("all"===h.mirror||"allticks"===h.mirror)&&(re+=K(I)+K(N)),l.xlines.style("stroke-width",h._lw+"px").call(s.stroke,h.showline?h.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",re);var ae="M0,0";b(g,a)&&(U=w(g,"bottom",h,_),j=g._offset+g._length+(U?x:0),G=w(g,"top",h,_),H=g._offset-(G?x:0),q=k(g,h,"left"),V=k(g,h,"right"),!(Z=!g._anchorAxis||a!==g._mainSubplot)||"allticks"!==g.mirror&&"all"!==g.mirror||(g._linepositions[a]=[q,V]),ae=ne(g,ee,te),Z&&g.showline&&("all"===g.mirror||"allticks"===g.mirror)&&(ae+=ee(q)+ee(V)),l.ylines.style("stroke-width",g._lw+"px").call(s.stroke,g.showline?g.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ae)}return d.makeClipPaths(e),i.previousPromises(e)}function b(e,t){return(e.ticks||e.showline)&&(t===e._mainSubplot||"all"===e.mirror||"allticks"===e.mirror)}function _(e,t,n){if(!n.showline||!n._lw)return!1;if("all"===n.mirror||"allticks"===n.mirror)return!0;var r=n._anchorAxis;if(!r)return!1;var a=p.FROM_BL[t];return n.side===t?r.domain[a]===e.domain[a]:n.mirror&&r.domain[1-a]===e.domain[1-a]}function w(e,t,n,r){if(_(e,t,n))return n._lw;for(var a=0;a<r.length;a++){var i=r[a];if(i._mainAxis===n._mainAxis&&_(e,t,i))return i._lw}return 0}function k(e,t){var n=e.title,r=e._size,a=0;switch("start"===t?a=n.pad.l:"end"===t&&(a=-n.pad.r),n.xref){case"paper":return r.l+r.w*n.x+a;case"container":default:return e.width*n.x+a}}function T(e,t){var n=e.title,r=e._size,a=0;if("0em"!==t&&t?t===p.CAP_SHIFT+"em"&&(a=n.pad.t):a=-n.pad.b,"auto"===n.y)return r.t/2;switch(n.yref){case"paper":return r.t+r.h-r.h*n.y+a;case"container":default:return e.height-e.height*n.y+a}}n.layoutStyles=function(e){return o.syncOrAsync([i.doAutoMargin,x],e)},n.drawMainTitle=function(e){var t=e._fullLayout,n=function(e){var t=e.title,n="middle";return o.isRightAnchor(t)?n="end":o.isLeftAnchor(t)&&(n="start"),n}(t),r=function(e){var t=e.title,n="0em";return o.isTopAnchor(t)?n=p.CAP_SHIFT+"em":o.isMiddleAnchor(t)&&(n=p.MID_SHIFT+"em"),n}(t);u.draw(e,"gtitle",{propContainer:t,propName:"title.text",placeholder:t._dfltTitle.plot,attributes:{x:k(t,n),y:T(t,r),"text-anchor":n,dy:r}})},n.doTraceStyle=function(e){var t,r=e.calcdata,o=[];for(t=0;t<r.length;t++){var s=r[t],c=s[0]||{},u=c.trace||{},f=u._module||{},d=f.arraysToCalcdata;d&&d(s,u);var p=f.editStyle;p&&o.push({fn:p,cd0:c})}if(o.length){for(t=0;t<o.length;t++){var h=o[t];h.fn(e,h.cd0)}l(e),n.redrawReglTraces(e)}return i.style(e),a.getComponentMethod("legend","draw")(e),i.previousPromises(e)},n.doColorBars=function(e){return a.getComponentMethod("colorbar","draw")(e),i.previousPromises(e)},n.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,a.call("plot",e,"",t)},n.doLegend=function(e){return a.getComponentMethod("legend","draw")(e),i.previousPromises(e)},n.doTicksRelayout=function(e){return d.draw(e,"redraw"),e._fullLayout._hasOnlyLargeSploms&&(a.subplotsRegistry.splom.updateGrid(e),l(e),n.redrawReglTraces(e)),n.drawMainTitle(e),i.previousPromises(e)},n.doModeBar=function(e){var t=e._fullLayout;f.manage(e);for(var n=0;n<t._basePlotModules.length;n++){var r=t._basePlotModules[n].updateFx;r&&r(e)}return i.previousPromises(e)},n.doCamera=function(e){for(var t=e._fullLayout,n=t._subplots.gl3d,r=0;r<n.length;r++){var a=t[n[r]];a._scene.setViewport(a)}},n.drawData=function(e){var t=e._fullLayout;l(e);for(var r=t._basePlotModules,o=0;o<r.length;o++)r[o].plot(e);return n.redrawReglTraces(e),i.style(e),a.getComponentMethod("shapes","draw")(e),a.getComponentMethod("annotations","draw")(e),a.getComponentMethod("images","draw")(e),t._replotting=!1,i.previousPromises(e)},n.redrawReglTraces=function(e){var t=e._fullLayout;if(t._has("regl")){var n,r,a=e._fullData,i=[],l=[];for(t._hasOnlyLargeSploms&&t._splomGrid.draw(),n=0;n<a.length;n++){var s=a[n];!0===s.visible&&0!==s._length&&("splom"===s.type?t._splomScenes[s.uid].draw():"scattergl"===s.type?o.pushUnique(i,s.xaxis+s.yaxis):"scatterpolargl"===s.type&&o.pushUnique(l,s.subplot))}for(n=0;n<i.length;n++)(r=t._plots[i[n]])._scene&&r._scene.draw();for(n=0;n<l.length;n++)(r=t[l[n]]._subplot)._scene&&r._scene.draw()}},n.doAutoRangeAndConstraints=function(e){for(var t,n,r=e._fullLayout,a=d.list(e,"",!0),i=r._axisMatchGroups||[],l={},s=0;s<a.length;s++)t=a[s],m(e,t),v(e,t),l[t._id]=1;g(e);e:for(var c=0;c<i.length;c++){var u,f=i[c],p=null;for(u in f)if(l[(t=d.getFromId(e,u))._id]){if(!1===t.autorange)continue e;n=o.simpleMap(t.range,t.r2l),p?p[0]<p[1]?(p[0]=Math.min(p[0],n[0]),p[1]=Math.max(p[1],n[1])):(p[0]=Math.max(p[0],n[0]),p[1]=Math.min(p[1],n[1])):p=n}for(u in f)(t=d.getFromId(e,u)).range=o.simpleMap(p,t.l2r),t._input.range=t.range.slice(),t.setScale()}},n.finalDraw=function(e){a.getComponentMethod("rangeslider","draw")(e),a.getComponentMethod("rangeselector","draw")(e)},n.drawMarginPushers=function(e){a.getComponentMethod("legend","draw")(e),a.getComponentMethod("rangeselector","draw")(e),a.getComponentMethod("sliders","draw")(e),a.getComponentMethod("updatemenus","draw")(e),a.getComponentMethod("colorbar","draw")(e)}},{"../components/color":52,"../components/drawing":74,"../components/modebar":112,"../components/titles":147,"../constants/alignment":154,"../lib":178,"../lib/clear_gl_canvases":167,"../plots/cartesian/autorange":221,"../plots/cartesian/axes":222,"../plots/cartesian/constraints":229,"../plots/plots":256,"../registry":269,d3:16}],214:[function(e,t,n){"use strict";var r=e("../lib"),a=r.isPlainObject,i=e("./plot_schema"),o=e("../plots/plots"),l=e("../plots/attributes"),s=e("./plot_template"),c=e("./plot_config").dfltConfig;function u(e,t){e=r.extendDeep({},e);var n,i,o=Object.keys(e).sort();function l(t,n,r){if(a(n)&&a(t))u(t,n);else if(Array.isArray(n)&&Array.isArray(t)){var o=s.arrayTemplater({_template:e},r);for(i=0;i<n.length;i++){var l=n[i],c=o.newItem(l)._template;c&&u(c,l)}var f=o.defaultItems();for(i=0;i<f.length;i++)n.push(f[i]._template);for(i=0;i<n.length;i++)delete n[i].templateitemname}}for(n=0;n<o.length;n++){var c=o[n],d=e[c];if(c in t?l(d,t[c],c):t[c]=d,f(c)===c)for(var p in t){var h=f(p);p===h||h!==c||p in e||l(d,t[p],c)}}}function f(e){return e.replace(/[0-9]+$/,"")}function d(e,t,n,i,o){var l=o&&n(o);for(var c in e){var u=e[c],p=g(e,c,i),h=g(e,c,o),m=n(h);if(!m){var v=f(c);v!==c&&(m=n(h=g(e,v,o)))}if(!(l&&l===m||!m||m._noTemplating||"data_array"===m.valType||m.arrayOk&&Array.isArray(u)))if(!m.valType&&a(u))d(u,t,n,p,h);else if(m._isLinkedToArray&&Array.isArray(u))for(var y=!1,x=0,b={},_=0;_<u.length;_++){var w=u[_];if(a(w)){var k=w.name;if(k)b[k]||(d(w,t,n,g(u,x,p),g(u,x,h)),x++,b[k]=1);else if(!y){var T=g(e,s.arrayDefaultKey(c),i),M=g(u,x,p);d(w,t,n,M,g(u,x,h));var A=r.nestedProperty(t,M);r.nestedProperty(t,T).set(A.get()),A.set(null),y=!0}}}else r.nestedProperty(t,p).set(u)}}function p(e,t){return i.getLayoutValObject(e,r.nestedProperty({},t).parts)}function h(e,t){return i.getTraceValObject(e,r.nestedProperty({},t).parts)}function g(e,t,n){return n?Array.isArray(e)?n+"["+t+"]":n+"."+t:t}function m(e){for(var t=0;t<e.length;t++)if(a(e[t]))return!0}function v(e){var t;switch(e.code){case"data":t="The template has no key data.";break;case"layout":t="The template has no key layout.";break;case"missing":t=e.path?"There are no templates for item "+e.path+" with name "+e.templateitemname:"There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":t=e.path?"The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?"Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":"The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":t="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type."}return e.msg=t,e}n.makeTemplate=function(e){e=r.isPlainObject(e)?e:r.getGraphDiv(e),e=r.extendDeep({_context:c},{data:e.data,layout:e.layout}),o.supplyDefaults(e);var t=e.data||[],n=e.layout||{};n._basePlotModules=e._fullLayout._basePlotModules,n._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach((function(e){var t={};d(e,t,h.bind(null,e));var n=r.coerce(e,{},l,"type"),a=i.data[n];a||(a=i.data[n]=[]),a.push(t)})),d(n,i.layout,p.bind(null,n)),delete i.layout.template;var s=n.template;if(a(s)){var f,g,m,v,y,x,b=s.layout;a(b)&&u(b,i.layout);var _=s.data;if(a(_)){for(g in i.data)if(m=_[g],Array.isArray(m)){for(x=(y=i.data[g]).length,v=m.length,f=0;f<x;f++)u(m[f%v],y[f]);for(f=x;f<v;f++)y.push(r.extendDeep({},m[f]))}for(g in _)g in i.data||(i.data[g]=r.extendDeep([],_[g]))}}return i},n.validateTemplate=function(e,t){var n=r.extendDeep({},{_context:c,data:e.data,layout:e.layout}),i=n.layout||{};a(t)||(t=i.template||{});var l=t.layout,s=t.data,u=[];n.layout=i,n.layout.template=t,o.supplyDefaults(n);var d=n._fullLayout,p=n._fullData,h={};if(a(l)?(function e(t,n){for(var r in t)if("_"!==r.charAt(0)&&a(t[r])){var i,o=f(r),l=[];for(i=0;i<n.length;i++)l.push(g(t,r,n[i])),o!==r&&l.push(g(t,o,n[i]));for(i=0;i<l.length;i++)h[l[i]]=1;e(t[r],l)}}(d,["layout"]),function e(t,n){for(var r in t)if(-1===r.indexOf("defaults")&&a(t[r])){var i=g(t,r,n);h[i]?e(t[r],i):u.push({code:"unused",path:i})}}(l,"layout")):u.push({code:"layout"}),a(s)){for(var y,x={},b=0;b<p.length;b++){var _=p[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:"missing",index:_._fullInput.index,traceType:y})}for(y in s){var w=s[y].length,k=x[y]||0;w>k?u.push({code:"unused",traceType:y,templateCount:w,dataCount:k}):k>w&&u.push({code:"reused",traceType:y,templateCount:w,dataCount:k})}}else u.push({code:"data"});if(function e(t,n){for(var r in t)if("_"!==r.charAt(0)){var i=t[r],o=g(t,r,n);a(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&u.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&m(i)&&e(i,o)}}({data:p,layout:d},""),u.length)return u.map(v)}},{"../lib":178,"../plots/attributes":219,"../plots/plots":256,"./plot_config":210,"./plot_schema":211,"./plot_template":212}],215:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("./plot_api"),i=e("../plots/plots"),o=e("../lib"),l=e("../snapshot/helpers"),s=e("../snapshot/tosvg"),c=e("../snapshot/svgtoimg"),u=e("../version").version,f={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};t.exports=function(e,t){var n,d,p,h;function g(e){return!(e in t)||o.validate(t[e],f[e])}if(t=t||{},o.isPlainObject(e)?(n=e.data||[],d=e.layout||{},p=e.config||{},h={}):(e=o.getGraphDiv(e),n=o.extendDeep([],e.data),d=o.extendDeep({},e.layout),p=e._context,h=e._fullLayout||{}),!g("width")&&null!==t.width||!g("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!g("format"))throw new Error("Image format is not jpeg, png, svg or webp.");var m={};function v(e,n){return o.coerce(t,m,f,e,n)}var y=v("format"),x=v("width"),b=v("height"),_=v("scale"),w=v("setBackground"),k=v("imageDataOnly"),T=document.createElement("div");T.style.position="absolute",T.style.left="-5000px",document.body.appendChild(T);var M=o.extendFlat({},d);x?M.width=x:null===t.width&&r(h.width)&&(M.width=h.width),b?M.height=b:null===t.height&&r(h.height)&&(M.height=h.height);var A=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=l.getRedrawFunc(T);function L(){return new Promise((function(e){setTimeout(e,l.getDelay(T._fullLayout))}))}function C(){return new Promise((function(e,t){var n=s(T,y,_),r=T._fullLayout.width,f=T._fullLayout.height;function d(){a.purge(T),document.body.removeChild(T)}if("full-json"===y){var p=i.graphJson(T,!1,"keepdata","object",!0,!0);return p.version=u,p=JSON.stringify(p),d(),e(k?p:l.encodeJSON(p))}if(d(),"svg"===y)return e(k?n:l.encodeSVG(n));var h=document.createElement("canvas");h.id=o.randstr(),c({format:y,width:r,height:f,scale:_,canvas:h,svg:n,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){a.plot(T,n,M,A).then(S).then(L).then(C).then((function(t){e(function(e){return k?e.replace(l.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},{"../lib":178,"../plots/plots":256,"../snapshot/helpers":273,"../snapshot/svgtoimg":275,"../snapshot/tosvg":277,"../version":435,"./plot_api":209,"fast-isnumeric":18}],216:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plots/plots"),i=e("./plot_schema"),o=e("./plot_config").dfltConfig,l=r.isPlainObject,s=Array.isArray,c=r.isArrayOrTypedArray;function u(e,t,n,a,i,o){o=o||[];for(var f=Object.keys(e),d=0;d<f.length;d++){var p=f[d];if("transforms"!==p){var v=o.slice();v.push(p);var y=e[p],x=t[p],b=m(n,p),_=(b||{}).valType,w="info_array"===_,k="colorscale"===_,T=(b||{}).items;if(g(n,p))if(l(y)&&l(x)&&"any"!==_)u(y,x,b,a,i,v);else if(w&&s(y)){y.length>x.length&&a.push(h("unused",i,v.concat(x.length)));var M,A,S,L,C,O=x.length,P=Array.isArray(T);if(P&&(O=Math.min(O,T.length)),2===b.dimensions)for(A=0;A<O;A++)if(s(y[A])){y[A].length>x[A].length&&a.push(h("unused",i,v.concat(A,x[A].length)));var E=x[A].length;for(M=0;M<(P?Math.min(E,T[A].length):E);M++)S=P?T[A][M]:T,L=y[A][M],C=x[A][M],r.validate(L,S)?C!==L&&C!==+L&&a.push(h("dynamic",i,v.concat(A,M),L,C)):a.push(h("value",i,v.concat(A,M),L))}else a.push(h("array",i,v.concat(A),y[A]));else for(A=0;A<O;A++)S=P?T[A]:T,L=y[A],C=x[A],r.validate(L,S)?C!==L&&C!==+L&&a.push(h("dynamic",i,v.concat(A),L,C)):a.push(h("value",i,v.concat(A),L))}else if(b.items&&!w&&s(y)){var z,D,R=T[Object.keys(T)[0]],I=[];for(z=0;z<x.length;z++){var N=x[z]._index||z;if((D=v.slice()).push(N),l(y[N])&&l(x[z])){I.push(N);var F=y[N],B=x[z];l(F)&&!1!==F.visible&&!1===B.visible?a.push(h("invisible",i,D)):u(F,B,R,a,i,D)}}for(z=0;z<y.length;z++)(D=v.slice()).push(z),l(y[z])?-1===I.indexOf(z)&&a.push(h("unused",i,D)):a.push(h("object",i,D,y[z]))}else!l(y)&&l(x)?a.push(h("object",i,v,y)):c(y)||!c(x)||w||k?p in t?r.validate(y,b)?"enumerated"===b.valType&&(b.coerceNumber&&y!==+x||y!==x)&&a.push(h("dynamic",i,v,y,x)):a.push(h("value",i,v,y)):a.push(h("unused",i,v,y)):a.push(h("array",i,v,y));else a.push(h("schema",i,v))}}return a}function f(e,t){for(var n=e.layout.layoutAttributes,a=0;a<t.length;a++){var i=t[a],o=e.traces[i.type],l=o.layoutAttributes;l&&(i.subplot?r.extendFlat(n[o.attributes.subplot.dflt],l):r.extendFlat(n,l))}return n}t.exports=function(e,t){var n,c,d=i.get(),p=[],g={_context:r.extendFlat({},o)};s(e)?(g.data=r.extendDeep([],e),n=e):(g.data=[],n=[],p.push(h("array","data"))),l(t)?(g.layout=r.extendDeep({},t),c=t):(g.layout={},c={},arguments.length>1&&p.push(h("object","layout"))),a.supplyDefaults(g);for(var m=g._fullData,v=n.length,y=0;y<v;y++){var x=n[y],b=["data",y];if(l(x)){var _=m[y],w=_.type,k=d.traces[w].attributes;k.type={valType:"enumerated",values:[w]},!1===_.visible&&!1!==x.visible&&p.push(h("invisible",b)),u(x,_,k,p,b);var T=x.transforms,M=_.transforms;if(T){s(T)||p.push(h("array",b,["transforms"])),b.push("transforms");for(var A=0;A<T.length;A++){var S=["transforms",A],L=T[A].type;if(l(T[A])){var C=d.transforms[L]?d.transforms[L].attributes:{};C.type={valType:"enumerated",values:Object.keys(d.transforms)},u(T[A],M[A],C,p,b,S)}else p.push(h("object",b,S))}}}else p.push(h("object",b))}var O=g._fullLayout,P=f(d,m);return u(c,O,P,p,"layout"),0===p.length?void 0:p};var d={object:function(e,t){return("layout"===e&&""===t?"The layout argument":"data"===e[0]&&""===t?"Trace "+e[1]+" in the data argument":p(e)+"key "+t)+" must be linked to an object container"},array:function(e,t){return("data"===e?"The data argument":p(e)+"key "+t)+" must be linked to an array container"},schema:function(e,t){return p(e)+"key "+t+" is not part of the schema"},unused:function(e,t,n){var r=l(n)?"container":"key";return p(e)+r+" "+t+" did not get coerced"},dynamic:function(e,t,n,r){return[p(e)+"key",t,"(set to '"+n+"')","got reset to","'"+r+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?p(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,n){return[p(e)+"key "+t,"is set to an invalid value ("+n+")"].join(" ")}};function p(e){return s(e)?"In data trace "+e[1]+", ":"In "+e+", "}function h(e,t,n,a,i){var o,l;n=n||"",s(t)?(o=t[0],l=t[1]):(o=t,l=null);var c=function(e){if(!s(e))return String(e);for(var t="",n=0;n<e.length;n++){var r=e[n];"number"==typeof r?t=t.substr(0,t.length-1)+"["+r+"]":t+=r,n<e.length-1&&(t+=".")}return t}(n),u=d[e](t,c,a,i);return r.log(u),{code:e,container:o,trace:l,path:n,astr:c,msg:u}}function g(e,t){var n=y(t),r=n.keyMinusId,a=n.id;return!!(r in e&&e[r]._isSubplotObj&&a)||t in e}function m(e,t){return t in e?e[t]:e[y(t).keyMinusId]}var v=r.counterRegex("([a-z]+)");function y(e){var t=e.match(v);return{keyMinusId:t&&t[1],id:t&&t[2]}}},{"../lib":178,"../plots/plots":256,"./plot_config":210,"./plot_schema":211}],217:[function(e,t,n){"use strict";t.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}},{}],218:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plot_api/plot_template");t.exports=function(e,t,n){var i,o,l=n.name,s=n.inclusionAttr||"visible",c=t[l],u=r.isArrayOrTypedArray(e[l])?e[l]:[],f=t[l]=[],d=a.arrayTemplater(t,l,s);for(i=0;i<u.length;i++){var p=u[i];r.isPlainObject(p)?o=d.newItem(p):(o=d.newItem({}))[s]=!1,o._index=i,!1!==o[s]&&n.handleItemDefaults(p,o,t,n),f.push(o)}var h=d.defaultItems();for(i=0;i<h.length;i++)(o=h[i])._index=f.length,n.handleItemDefaults({},o,t,n,{}),f.push(o);if(r.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(i=0;i<g;i++)r.relinkPrivateKeys(f[i],c[i])}return f}},{"../lib":178,"../plot_api/plot_template":212}],219:[function(e,t,n){"use strict";var r=e("../components/fx/attributes");t.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:r.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc"},uirevision:{valType:"any",editType:"none"}}},{"../components/fx/attributes":83}],220:[function(e,t,n){"use strict";t.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},{}],221:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),i=e("../../constants/numerical").FP_SAFE,o=e("../../registry");function l(e,t){var n,r,i=[],o=s(t),l=c(e,t),u=l.min,f=l.max;if(0===u.length||0===f.length)return a.simpleMap(t.range,t.r2l);var d=u[0].val,p=f[0].val;for(n=1;n<u.length&&d===p;n++)d=Math.min(d,u[n].val);for(n=1;n<f.length&&d===p;n++)p=Math.max(p,f[n].val);var h=!1;if(t.range){var g=a.simpleMap(t.range,t.r2l);h=g[1]<g[0]}"reversed"===t.autorange&&(h=!0,t.autorange=!0);var m,v,y,x,b,_,w=t.rangemode,k="tozero"===w,T="nonnegative"===w,M=t._length,A=M/10,S=function(e,n){var r=0;if(t.rangebreaks)for(var a=t.locateBreaks(e,n),i=0;i<a.length;i++){var o=a[i];r+=o.max-o.min}return r},L=0;for(n=0;n<u.length;n++)for(m=u[n],r=0;r<f.length;r++)(_=(v=f[r]).val-m.val-S(m.val,v.val))>0&&((b=M-o(m)-o(v))>A?_/b>L&&(y=m,x=v,L=_/b):_/M>L&&(y={val:m.val,pad:0},x={val:v.val,pad:0},L=_/M));if(d===p){var C=d-1,O=d+1;if(k)if(0===d)i=[0,1];else{var P=(d>0?f:u).reduce((function(e,t){return Math.max(e,o(t))}),0),E=d/(1-Math.min(.5,P/M));i=d>0?[0,E]:[E,0]}else i=T?[Math.max(0,C),Math.max(1,O)]:[C,O]}else k?(y.val>=0&&(y={val:0,pad:0}),x.val<=0&&(x={val:0,pad:0})):T&&(y.val-L*o(y)<0&&(y={val:0,pad:0}),x.val<=0&&(x={val:1,pad:0})),L=(x.val-y.val-S(m.val,v.val))/(M-o(y)-o(x)),i=[y.val-L*o(y),x.val+L*o(x)];return h&&i.reverse(),a.simpleMap(i,t.l2r||Number)}function s(e){var t=e._length/20;return"domain"===e.constrain&&e._inputDomain&&(t*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(e){return e.pad+(e.extrapad?t:0)}}function c(e,t){var n,r,a,i=t._id,o=e._fullData,l=e._fullLayout,s=[],c=[];function d(e,t){for(n=0;n<t.length;n++){var o=e[t[n]],l=(o._extremes||{})[i];if(!0===o.visible&&l){for(r=0;r<l.min.length;r++)a=l.min[r],u(s,a.val,a.pad,{extrapad:a.extrapad});for(r=0;r<l.max.length;r++)a=l.max[r],f(c,a.val,a.pad,{extrapad:a.extrapad})}}}return d(o,t._traceIndices),d(l.annotations||[],t._annIndices||[]),d(l.shapes||[],t._shapeIndices||[]),{min:s,max:c}}function u(e,t,n,r){d(e,t,n,r,h)}function f(e,t,n,r){d(e,t,n,r,g)}function d(e,t,n,r,a){for(var i=r.tozero,o=r.extrapad,l=!0,s=0;s<e.length&&l;s++){var c=e[s];if(a(c.val,t)&&c.pad>=n&&(c.extrapad||!o)){l=!1;break}a(t,c.val)&&c.pad<=n&&(o||!c.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&0===t;e.push({val:t,pad:u?0:n,extrapad:!u&&o})}}function p(e){return r(e)&&Math.abs(e)<i}function h(e,t){return e<=t}function g(e,t){return e>=t}t.exports={getAutoRange:l,makePadFn:s,doAutoRange:function(e,t){if(t.setScale(),t.autorange){t.range=l(e,t),t._r=t.range.slice(),t._rl=a.simpleMap(t._r,t.r2l);var n=t._input,r={};r[t._attr+".range"]=t.range,r[t._attr+".autorange"]=t.autorange,o.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,r),n.range=t.range.slice(),n.autorange=t.autorange}var i=t._anchorAxis;if(i&&i.rangeslider){var s=i.rangeslider[t._name];s&&"auto"===s.rangemode&&(s.range=l(e,t)),i._input.rangeslider[t._name]=a.extendFlat({},s)}},findExtremes:function(e,t,n){n||(n={}),e._m||e.setScale();var a,o,l,s,c,d,h,g,m,v=[],y=[],x=t.length,b=n.padded||!1,_=n.tozero&&("linear"===e.type||"-"===e.type),w="log"===e.type,k=!1,T=n.vpadLinearized||!1;function M(e){if(Array.isArray(e))return k=!0,function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}var A=M((e._m>0?n.ppadplus:n.ppadminus)||n.ppad||0),S=M((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),L=M(n.vpadplus||n.vpad),C=M(n.vpadminus||n.vpad);if(!k){if(g=1/0,m=-1/0,w)for(a=0;a<x;a++)(o=t[a])<g&&o>0&&(g=o),o>m&&o<i&&(m=o);else for(a=0;a<x;a++)(o=t[a])<g&&o>-i&&(g=o),o>m&&o<i&&(m=o);t=[g,m],x=2}var O={tozero:_,extrapad:b};function P(n){l=t[n],r(l)&&(d=A(n),h=S(n),T?(s=e.c2l(l)-C(n),c=e.c2l(l)+L(n)):(g=l-C(n),m=l+L(n),w&&g<m/10&&(g=m/10),s=e.c2l(g),c=e.c2l(m)),_&&(s=Math.min(0,s),c=Math.max(0,c)),p(s)&&u(v,s,h,O),p(c)&&f(y,c,d,O))}var E=Math.min(6,x);for(a=0;a<E;a++)P(a);for(a=x-1;a>=E;a--)P(a);return{min:v,max:y,opts:n}},concatExtremes:c}},{"../../constants/numerical":158,"../../lib":178,"../../registry":269,"fast-isnumeric":18}],222:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("../../plots/plots"),o=e("../../registry"),l=e("../../lib"),s=e("../../lib/svg_text_utils"),c=e("../../components/titles"),u=e("../../components/color"),f=e("../../components/drawing"),d=e("./layout_attributes"),p=e("./clean_ticks"),h=e("../../constants/numerical"),g=h.ONEAVGYEAR,m=h.ONEAVGMONTH,v=h.ONEDAY,y=h.ONEHOUR,x=h.ONEMIN,b=h.ONESEC,_=h.MINUS_SIGN,w=h.BADNUM,k=e("../../constants/alignment"),T=k.MID_SHIFT,M=k.CAP_SHIFT,A=k.LINE_SPACING,S=k.OPPOSITE_SIDE,L=t.exports={};L.setConvert=e("./set_convert");var C=e("./axis_autotype"),O=e("./axis_ids");L.id2name=O.id2name,L.name2id=O.name2id,L.cleanId=O.cleanId,L.list=O.list,L.listIds=O.listIds,L.getFromId=O.getFromId,L.getFromTrace=O.getFromTrace;var P=e("./autorange");L.getAutoRange=P.getAutoRange,L.findExtremes=P.findExtremes,L.coerceRef=function(e,t,n,r,a,i){var o=r.charAt(r.length-1),s=n._fullLayout._subplots[o+"axis"],c=r+"ref",u={};return a||(a=s[0]||i),i||(i=a),u[c]={valType:"enumerated",values:s.concat(i?[i]:[]),dflt:a},l.coerce(e,t,u,c)},L.coercePosition=function(e,t,n,r,a,i){var o,s;if("paper"===r||"pixel"===r)o=l.ensureNumber,s=n(a,i);else{var c=L.getFromId(t,r);s=n(a,i=c.fraction2r(i)),o=c.cleanPos}e[a]=o(s)},L.cleanPosition=function(e,t,n){return("paper"===n||"pixel"===n?l.ensureNumber:L.getFromId(t,n).cleanPos)(e)},L.redrawComponents=function(e,t){t=t||L.listIds(e);var n=e._fullLayout;function r(r,a,i,l){for(var s=o.getComponentMethod(r,a),c={},u=0;u<t.length;u++)for(var f=n[L.id2name(t[u])][i],d=0;d<f.length;d++){var p=f[d];if(!c[p]&&(s(e,p),c[p]=1,l))return}}r("annotations","drawOne","_annIndices"),r("shapes","drawOne","_shapeIndices"),r("images","draw","_imgIndices",!0)};var E=L.getDataConversions=function(e,t,n,r){var a,i="x"===n||"y"===n||"z"===n?n:r;if(Array.isArray(i)){if(a={type:C(r),_categories:[]},L.setConvert(a),"category"===a.type)for(var o=0;o<r.length;o++)a.d2c(r[o])}else a=L.getFromTrace(e,t,i);return a?{d2c:a.d2c,c2d:a.c2d}:"ids"===i?{d2c:D,c2d:D}:{d2c:z,c2d:z}};function z(e){return+e}function D(e){return String(e)}L.getDataToCoordFunc=function(e,t,n,r){return E(e,t,n,r).d2c},L.counterLetter=function(e){var t=e.charAt(0);return"x"===t?"y":"y"===t?"x":void 0},L.minDtick=function(e,t,n,r){-1===["log","category","multicategory"].indexOf(e.type)&&r?void 0===e._minDtick?(e._minDtick=t,e._forceTick0=n):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((n-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=n):((t/e._minDtick+1e-6)%1>2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},L.saveRangeInitial=function(e,t){for(var n=L.list(e,"",!0),r=!1,a=0;a<n.length;a++){var i=n[a],o=void 0===i._rangeInitial,l=o||!(i.range[0]===i._rangeInitial[0]&&i.range[1]===i._rangeInitial[1]);(o&&!1===i.autorange||t&&l)&&(i._rangeInitial=i.range.slice(),r=!0)}return r},L.saveShowSpikeInitial=function(e,t){for(var n=L.list(e,"",!0),r=!1,a="on",i=0;i<n.length;i++){var o=n[i],l=void 0===o._showSpikeInitial,s=l||!(o.showspikes===o._showspikes);(l||t&&s)&&(o._showSpikeInitial=o.showspikes,r=!0),"on"!==a||o.showspikes||(a="off")}return e._fullLayout._cartesianSpikesEnabled=a,r},L.autoBin=function(e,t,n,r,i,o){var s,c=l.aggNums(Math.min,null,e),u=l.aggNums(Math.max,null,e);if("category"===t.type||"multicategory"===t.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(i||(i=t.calendar),s="log"===t.type?{type:"linear",range:[c,u]}:{type:t.type,range:l.simpleMap([c,u],t.c2r,0,i),calendar:i},L.setConvert(s),o=o&&p.dtick(o,s.type))s.dtick=o,s.tick0=p.tick0(void 0,s.type,i);else{var f;if(n)f=(u-c)/n;else{var d=l.distinctVals(e),h=Math.pow(10,Math.floor(Math.log(d.minDiff)/Math.LN10)),g=h*l.roundUp(d.minDiff/h,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*l.stdev(e)/Math.pow(e.length,r?.25:.4)),a(f)||(f=1)}L.autoTicks(s,f)}var m,y=s.dtick,x=L.tickIncrement(L.tickFirst(s),y,"reverse",i);if("number"==typeof y)m=(x=function(e,t,n,r,i){var o=0,l=0,s=0,c=0;function u(t){return(1+100*(t-e)/n.dtick)%100<2}for(var f=0;f<t.length;f++)t[f]%1==0?s++:a(t[f])||c++,u(t[f])&&o++,u(t[f]+n.dtick/2)&&l++;var d=t.length-c;if(s===d&&"date"!==n.type)n.dtick<1?e=r-.5*n.dtick:(e-=.5)+n.dtick<r&&(e+=n.dtick);else if(l<.1*d&&(o>.3*d||u(r)||u(i))){var p=n.dtick/2;e+=e+p<r?p:-p}return e}(x,e,s,c,u))+(1+Math.floor((u-x)/y))*y;else for("M"===s.dtick.charAt(0)&&(x=function(e,t,n,r,a){var i=l.findExactDates(t,a);if(i.exactDays>.8){var o=Number(n.substr(1));i.exactYears>.8&&o%12==0?e=L.tickIncrement(e,"M6","reverse")+1.5*v:i.exactMonths>.8?e=L.tickIncrement(e,"M1","reverse")+15.5*v:e-=v/2;var s=L.tickIncrement(e,n);if(s<=r)return s}return e}(x,e,y,c,i)),m=x;m<=u;)m=L.tickIncrement(m,y,!1,i);return{start:t.c2r(x,0,i),end:t.c2r(m,0,i),size:y,_dataSpan:u-c}},L.prepTicks=function(e){var t=l.simpleMap(e.range,e.r2l);if("auto"===e.tickmode||!e.dtick){var n,r=e.nticks;r||("category"===e.type||"multicategory"===e.type?(n=e.tickfont?1.2*(e.tickfont.size||12):15,r=e._length/n):(n="y"===e._id.charAt(0)?40:80,r=l.constrain(e._length/n,4,9)+1),"radialaxis"===e._name&&(r*=2)),"array"===e.tickmode&&(r*=100),e._roughDTick=(Math.abs(t[1]-t[0])-(e._lBreaks||0))/r,L.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),"date"===e.type&&e.dtick<.1&&(e.dtick=.1),V(e)},L.calcTicks=function(e){L.prepTicks(e);var t=l.simpleMap(e.range,e.r2l);if("array"===e.tickmode)return function(e){var t=e.tickvals,n=e.ticktext,r=new Array(t.length),a=l.simpleMap(e.range,e.r2l),i=1.0001*a[0]-1e-4*a[1],o=1.0001*a[1]-1e-4*a[0],s=Math.min(i,o),c=Math.max(i,o),u=0;Array.isArray(n)||(n=[]);var f="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var d=0;d<t.length;d++){var p=f(t[d]);p>s&&p<c&&(void 0===n[d]?r[u]=L.tickText(e,p):r[u]=U(e,p,String(n[d])),u++)}return u<t.length&&r.splice(u,t.length-u),e.rangebreaks&&(r=r.filter((function(t){return e.maskBreaks(t.x)!==w}))),r}(e);e._tmin=L.tickFirst(e);var n=1.0001*t[0]-1e-4*t[1],r=1.0001*t[1]-1e-4*t[0],i=t[1]<t[0];if(e._tmin<n!==i)return[];"category"!==e.type&&"multicategory"!==e.type||(r=i?Math.max(-.5,r):Math.min(e._categories.length-.5,r));var o,s="log"===e.type&&!(a(e.dtick)||"L"===e.dtick.charAt(0));if(function(){var t=null,n=Math.max(1e3,e._length||0);o=[];for(var a=e._tmin;(i?a>=r:a<=r)&&!(o.length>n||a===t);a=L.tickIncrement(a,e.dtick,i,e.calendar)){t=a;var l=!1;s&&a!==(0|a)&&(l=!0),o.push({minor:l,value:a})}}(),e.rangebreaks){if("auto"===e.tickmode)for(var c=0;c<o.length;c++){var u=o[c].value;if(e.maskBreaks(u)===w)for(var f=0;f<e._rangebreaks.length;f++){var d=e._rangebreaks[f];if(u>=d.min&&u<d.max){o[c].value=d.max;break}}}var p=o.length;if(p>2){for(var h,g=2*(e.tickfont?e.tickfont.size:12),m=[],v=i?1:-1,y=i?p-1:0,x=i?0:p-1;v*x<=v*y;x+=v){var b=e.c2p(o[x].value);(void 0===h||Math.abs(b-h)>g)&&(h=b,m.push(o[x]))}o=m.reverse()}}oe(e)&&360===Math.abs(t[1]-t[0])&&o.pop(),e._tmax=(o[o.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;for(var _=new Array(o.length),k=0;k<o.length;k++){var T=o[k].minor,M=o[k].value;_[k]=L.tickText(e,M,!1,T)}return e._inCalcTicks=!1,_};var R=[2,5,10],I=[1,2,3,6,12],N=[1,2,5,10,15,30],F=[1,2,3,7,14],B=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],j=[-.301,0,.301,.699,1],H=[15,30,45,90,180];function q(e,t,n){return t*l.roundUp(e/t,n)}function V(e){var t=e.dtick;if(e._tickexponent=0,a(t)||"string"==typeof t||(t=1),"category"!==e.type&&"multicategory"!==e.type||(e._tickround=null),"date"===e.type){var n=e.r2l(e.tick0),r=e.l2r(n).replace(/(^-|i)/g,""),i=r.length;if("M"===String(t).charAt(0))i>10||"01-01"!==r.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=v&&i<=10||t>=15*v)e._tickround="d";else if(t>=x&&i<=16||t>=y)e._tickround="M";else if(t>=b&&i<=19||t>=x)e._tickround="S";else{var o=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20,e._tickround<0&&(e._tickround=4)}}else if(a(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);a(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),c=Math.floor(Math.log(s)/Math.LN10+.01);Math.abs(c)>3&&(Z(e.exponentformat)&&!W(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function U(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}L.autoTicks=function(e,t){var n;function r(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=l.dateTick0(e.calendar);var i=2*t;i>g?(t/=g,n=r(10),e.dtick="M"+12*q(t,n,R)):i>m?(t/=m,e.dtick="M"+q(t,1,I)):i>v?(e.dtick=q(t,v,e._hasDayOfWeekBreaks?[1,7,14]:F),e.tick0=l.dateTick0(e.calendar,!0)):i>y?e.dtick=q(t,y,I):i>x?e.dtick=q(t,x,N):i>b?e.dtick=q(t,b,N):(n=r(10),e.dtick=q(t,n,R))}else if("log"===e.type){e.tick0=0;var o=l.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(o[1]-o[0])<1){var s=1.5*Math.abs((o[1]-o[0])/t);t=Math.abs(Math.pow(10,o[1])-Math.pow(10,o[0]))/s,n=r(10),e.dtick="L"+q(t,n,R)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):oe(e)?(e.tick0=0,n=1,e.dtick=q(t,n,H)):(e.tick0=0,n=r(10),e.dtick=q(t,n,R));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!=typeof e.dtick){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}},L.tickIncrement=function(e,t,n,i){var o=n?-1:1;if(a(t))return e+o*t;var s=t.charAt(0),c=o*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,c,i);if("L"===s)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===s){var u="D2"===t?j:B,f=e+.01*o,d=l.roundUp(l.mod(f,1),u,n);return Math.floor(f)+Math.log(r.round(Math.pow(10,d),1))/Math.LN10}throw"unrecognized dtick "+String(t)},L.tickFirst=function(e){var t=e.r2l||Number,n=l.simpleMap(e.range,t),i=n[1]<n[0],o=i?Math.floor:Math.ceil,s=1.0001*n[0]-1e-4*n[1],c=e.dtick,u=t(e.tick0);if(a(c)){var f=o((s-u)/c)*c+u;return"category"!==e.type&&"multicategory"!==e.type||(f=l.constrain(f,0,e._categories.length-1)),f}var d=c.charAt(0),p=Number(c.substr(1));if("M"===d){for(var h,g,m,v=0,y=u;v<10;){if(((h=L.tickIncrement(y,c,i,e.calendar))-s)*(y-s)<=0)return i?Math.min(y,h):Math.max(y,h);g=(s-(y+h)/2)/(h-y),m=d+(Math.abs(Math.round(g))||1)*p,y=L.tickIncrement(y,m,g<0?!i:i,e.calendar),v++}return l.error("tickFirst did not converge",e),y}if("L"===d)return Math.log(o((Math.pow(10,s)-u)/p)*p+u)/Math.LN10;if("D"===d){var x="D2"===c?j:B,b=l.roundUp(l.mod(s,1),x,i);return Math.floor(s)+Math.log(r.round(Math.pow(10,b),1))/Math.LN10}throw"unrecognized dtick "+String(c)},L.tickText=function(e,t,n,r){var i,o=U(e,t),s="array"===e.tickmode,c=n||s,u=e.type,f="category"===u?e.d2l_noadd:e.d2l;if(s&&Array.isArray(e.ticktext)){var d=l.simpleMap(e.range,e.r2l),p=(Math.abs(d[1]-d[0])-(e._lBreaks||0))/1e4;for(i=0;i<e.ticktext.length&&!(Math.abs(t-f(e.tickvals[i]))<p);i++);if(i<e.ticktext.length)return o.text=String(e.ticktext[i]),o}function h(r){if(void 0===r)return!0;if(n)return"none"===r;var a={first:e._tmin,last:e._tmax}[r];return"all"!==r&&t!==a}var g=n?"never":"none"!==e.exponentformat&&h(e.showexponent)?"hide":"";if("date"===u?function(e,t,n,r){var i=e._tickround,o=n&&e.hoverformat||L.getTickFormat(e);r&&(i=a(i)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[i]);var s,c=l.formatDate(t.x,o,i,e._dateFormat,e.calendar,e._extraFormat),u=c.indexOf("\n");-1!==u&&(s=c.substr(u+1),c=c.substr(0,u)),r&&("00:00:00"===c||"00:00"===c?(c=s,s=""):8===c.length&&(c=c.replace(/:00$/,""))),s&&(n?"d"===i?c+=", "+s:c=s+(c?", "+c:""):e._inCalcTicks&&s===e._prevDateHead||(c+="<br>"+s,e._prevDateHead=s)),t.text=c}(e,o,n,c):"log"===u?function(e,t,n,r,i){var o=e.dtick,s=t.x,c=e.tickformat,u="string"==typeof o&&o.charAt(0);if("never"===i&&(i=""),r&&"L"!==u&&(o="L3",u="L"),c||"L"===u)t.text=Y(Math.pow(10,s),e,i,r);else if(a(o)||"D"===u&&l.mod(s+.01,1)<.1){var f=Math.round(s),d=Math.abs(f),p=e.exponentformat;"power"===p||Z(p)&&W(f)?(t.text=0===f?1:1===f?"10":"10<sup>"+(f>1?"":_)+d+"</sup>",t.fontSize*=1.25):("e"===p||"E"===p)&&d>2?t.text="1"+p+(f>0?"+":_)+d:(t.text=Y(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,l.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var h=String(t.text).charAt(0);"0"!==h&&"1"!==h||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}(e,o,0,c,g):"category"===u?function(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n=""),t.text=String(n)}(e,o):"multicategory"===u?function(e,t,n){var r=Math.round(t.x),a=e._categories[r]||[],i=void 0===a[1]?"":String(a[1]),o=void 0===a[0]?"":String(a[0]);n?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,o,n):oe(e)?function(e,t,n,r,a){if("radians"!==e.thetaunit||n)t.text=Y(t.x,e,a,r);else{var i=t.x/180;if(0===i)t.text="0";else{var o=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}var n=function(e){for(var n=1;!t(Math.round(e*n)/n,e);)n*=10;return n}(e),r=e*n,a=Math.abs(function e(n,r){return t(r,0)?n:e(r,n%r)}(r,n));return[Math.round(r/a),Math.round(n/a)]}(i);if(o[1]>=100)t.text=Y(l.deg2rad(t.x),e,a,r);else{var s=t.x<0;1===o[1]?1===o[0]?t.text="π":t.text=o[0]+"π":t.text=["<sup>",o[0],"</sup>","⁄","<sub>",o[1],"</sub>","π"].join(""),s&&(t.text=_+t.text)}}}}(e,o,n,c,g):function(e,t,n,r,a){"never"===a?a="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=Y(t.x,e,a,r)}(e,o,0,c,g),r||(e.tickprefix&&!h(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!h(e.showticksuffix)&&(o.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var m=function(t){var n=e.l2p(t);return n>=0&&n<=e._length?t:null};o.xbnd=[m(o.x-.5),m(o.x+e.dtick-.5)]}return o},L.hoverLabelText=function(e,t,n){if(n!==w&&n!==t)return L.hoverLabelText(e,t)+" - "+L.hoverLabelText(e,n);var r="log"===e.type&&t<=0,a=L.tickText(e,e.c2l(r?-t:t),"hover").text;return r?0===t?"0":_+a:a};var G=["f","p","n","μ","m","","k","M","G","T"];function Z(e){return"SI"===e||"B"===e}function W(e){return e>14||e<-15}function Y(e,t,n,r){var i=e<0,o=t._tickround,s=n||t.exponentformat||"B",c=t._tickexponent,u=L.getTickFormat(t),f=t.separatethousands;if(r){var d={exponentformat:s,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};V(d),o=(Number(d._tickround)||0)+4,c=d._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,_);var p,h=Math.pow(10,-o)/2;if("none"===s&&(c=0),(e=Math.abs(e))<h)e="0",i=!1;else{if(e+=h,c&&(e*=Math.pow(10,-c),o+=c),0===o)e=String(Math.floor(e));else if(o<0){e=(e=String(Math.round(e))).substr(0,e.length+o);for(var g=o;g<0;g++)e+="0"}else{var m=(e=String(e)).indexOf(".")+1;m&&(e=e.substr(0,m+o).replace(/\.?0+$/,""))}e=l.numSeparate(e,t._separators,f)}return c&&"hide"!==s&&(Z(s)&&W(c)&&(s="power"),p=c<0?_+-c:"power"!==s?"+"+c:String(c),"e"===s||"E"===s?e+=s+p:"power"===s?e+="×10<sup>"+p+"</sup>":"B"===s&&9===c?e+="B":Z(s)&&(e+=G[c/3+5])),i?_+e:e}function X(e,t){for(var n=[],r={},a=0;a<t.length;a++){var i=t[a];r[i.text2]?r[i.text2].push(i.x):r[i.text2]=[i.x]}for(var o in r)n.push(U(e,l.interp(r[o],.5),o));return n}function $(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}function Q(e){var t=e.title.font.size,n=(e.title.text.match(s.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?n?t*(M+n*A):t*M:n?t*(n+1)*A:t}function K(e,t){var n=e.l2p(t);return n>1&&n<e._length-1}function J(e){var t=r.select(e),n=t.select(".text-math-group");return n.empty()?t.select("text"):n}function ee(e){return e._id+".automargin"}function te(e){return ee(e)+".mirror"}function ne(e){return e._id+".rangeslider"}function re(e,t){for(var n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n])}function ae(e,t,n){var r,a,i=[],o=[],s=e.layout;for(r=0;r<t.length;r++)i.push(L.getFromId(e,t[r]));for(r=0;r<n.length;r++)o.push(L.getFromId(e,n[r]));var c=Object.keys(d),u=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(r=0;r<c.length;r++){var p=c[r],h=i[0][p],g=o[0][p],m=!0,v=!1,y=!1;if("_"!==p.charAt(0)&&"function"!=typeof h&&-1===u.indexOf(p)){for(a=1;a<i.length&&m;a++){var x=i[a][p];"type"===p&&-1!==f.indexOf(h)&&-1!==f.indexOf(x)&&h!==x?v=!0:x!==h&&(m=!1)}for(a=1;a<o.length&&m;a++){var b=o[a][p];"type"===p&&-1!==f.indexOf(g)&&-1!==f.indexOf(b)&&g!==b?y=!0:o[a][p]!==g&&(m=!1)}m&&(v&&(s[i[0]._name].type="linear"),y&&(s[o[0]._name].type="linear"),ie(s,p,i,o,e._fullLayout._dfltTitle))}}for(r=0;r<e._fullLayout.annotations.length;r++){var _=e._fullLayout.annotations[r];-1!==t.indexOf(_.xref)&&-1!==n.indexOf(_.yref)&&l.swapAttrs(s.annotations[r],["?"])}}function ie(e,t,n,r,a){var i,o=l.nestedProperty,s=o(e[n[0]._name],t).get(),c=o(e[r[0]._name],t).get();for("title"===t&&(s&&s.text===a.x&&(s.text=a.y),c&&c.text===a.y&&(c.text=a.x)),i=0;i<n.length;i++)o(e,n[i]._name+"."+t).set(c);for(i=0;i<r.length;i++)o(e,r[i]._name+"."+t).set(s)}function oe(e){return"angularaxis"===e._id}L.getTickFormat=function(e){var t,n,r,a,i,o,l,s;function c(e){return"string"!=typeof e?e:Number(e.replace("M",""))*m}function u(e,t){var n=["L","D"];if(typeof e==typeof t){if("number"==typeof e)return e-t;var r=n.indexOf(e.charAt(0)),a=n.indexOf(t.charAt(0));return r===a?Number(e.replace(/(L|D)/g,""))-Number(t.replace(/(L|D)/g,"")):r-a}return"number"==typeof e?1:-1}function f(e,t){var n=null===t[0],r=null===t[1],a=u(e,t[0])>=0,i=u(e,t[1])<=0;return(n||a)&&(r||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t<e.tickformatstops.length;t++)if((r=e.tickformatstops[t]).enabled&&(a=e.dtick,i=r.dtickrange,o=void 0,l=void 0,s=void 0,o=c||function(e){return e},l=i[0],s=i[1],(!l&&"number"!=typeof l||o(l)<=o(a))&&(!s&&"number"!=typeof s||o(s)>=o(a)))){n=r;break}break;case"log":for(t=0;t<e.tickformatstops.length;t++)if((r=e.tickformatstops[t]).enabled&&f(e.dtick,r.dtickrange)){n=r;break}}return n?n.value:e.tickformat},L.getSubplots=function(e,t){var n=e._fullLayout._subplots,r=n.cartesian.concat(n.gl2d||[]),a=t?L.findSubplotsWithAxis(r,t):r;return a.sort((function(e,t){var n=e.substr(1).split("y"),r=t.substr(1).split("y");return n[0]===r[0]?+n[1]-+r[1]:+n[0]-+r[0]})),a},L.findSubplotsWithAxis=function(e,t){for(var n=new RegExp("x"===t._id.charAt(0)?"^"+t._id+"y":t._id+"$"),r=[],a=0;a<e.length;a++){var i=e[a];n.test(i)&&r.push(i)}return r},L.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var n,a,i={_offset:0,_length:t.width,_id:""},o={_offset:0,_length:t.height,_id:""},l=L.list(e,"x",!0),s=L.list(e,"y",!0),c=[];for(n=0;n<l.length;n++)for(c.push({x:l[n],y:o}),a=0;a<s.length;a++)0===n&&c.push({x:i,y:s[a]}),c.push({x:l[n],y:s[a]});var u=t._clips.selectAll(".axesclip").data(c,(function(e){return e.x._id+e.y._id}));u.enter().append("clipPath").classed("axesclip",!0).attr("id",(function(e){return"clip"+t._uid+e.x._id+e.y._id})).append("rect"),u.exit().remove(),u.each((function(e){r.select(this).select("rect").attr({x:e.x._offset||0,y:e.y._offset||0,width:e.x._length||1,height:e.y._length||1})}))}},L.draw=function(e,t,n){var r=e._fullLayout;"redraw"===t&&r._paper.selectAll("g.subplot").each((function(e){var t=e[0],n=r._plots[t],a=n.xaxis,i=n.yaxis;n.xaxislayer.selectAll("."+a._id+"tick").remove(),n.yaxislayer.selectAll("."+i._id+"tick").remove(),n.xaxislayer.selectAll("."+a._id+"tick2").remove(),n.yaxislayer.selectAll("."+i._id+"tick2").remove(),n.xaxislayer.selectAll("."+a._id+"divider").remove(),n.yaxislayer.selectAll("."+i._id+"divider").remove(),n.gridlayer&&n.gridlayer.selectAll("path").remove(),n.zerolinelayer&&n.zerolinelayer.selectAll("path").remove(),r._infolayer.select(".g-"+a._id+"title").remove(),r._infolayer.select(".g-"+i._id+"title").remove()}));var a=t&&"redraw"!==t?t:L.listIds(e);return l.syncOrAsync(a.map((function(t){return function(){if(t){var r=L.getFromId(e,t),a=L.drawOne(e,r,n);return r._r=r.range.slice(),r._rl=l.simpleMap(r._r,r.r2l),a}}})))},L.drawOne=function(e,t,n){var r,a,s;n=n||{},t.setScale();var d=e._fullLayout,p=t._id,h=p.charAt(0),g=L.counterLetter(p),m=d._plots[t._mainSubplot];if(m){var v=m[h+"axislayer"],y=t._mainLinePosition,x=t._mainMirrorPosition,b=t._vals=L.calcTicks(t),_=[t.mirror,y,x].join("_");for(r=0;r<b.length;r++)b[r].axInfo=_;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var w={};if(t.visible){var k,T,M=L.makeTransFn(t);if("boundaries"===t.tickson){var C=function(e,t){var n,r=[],a=function(e,t){var n=e.xbnd[t];null!==n&&r.push(l.extendFlat({},e,{x:n}))};if(t.length){for(n=0;n<t.length;n++)a(t[n],0);a(t[n-1],1)}return r}(0,b);T=L.clipEnds(t,C),k="inside"===t.ticks?T:C}else T=L.clipEnds(t,b),k="inside"===t.ticks?T:b;var O=t._gridVals=T,P=function(e,t){var n,r,a=[],i=function(e,t){var n=e.xbnd[t];null!==n&&a.push(l.extendFlat({},e,{x:n}))};if(e.showdividers&&t.length){for(n=0;n<t.length;n++){var o=t[n];o.text2!==r&&i(o,0),r=o.text2}i(t[n-1],1)}return a}(t,b);if(!d._hasOnlyLargeSploms){var E=t._subplotsWith,z={};for(r=0;r<E.length;r++){a=E[r];var D=(s=d._plots[a])[g+"axis"],R=D._mainAxis._id;if(!z[R]){z[R]=1;var I="x"===h?"M0,"+D._offset+"v"+D._length:"M"+D._offset+",0h"+D._length;L.drawGrid(e,t,{vals:O,counterAxis:D,layer:s.gridlayer.select("."+p),path:I,transFn:M}),L.drawZeroLine(e,t,{counterAxis:D,layer:s.zerolinelayer,path:I,transFn:M})}}}var N=L.getTickSigns(t),F=[];if(t.ticks){var B,j,H,q=L.makeTickPath(t,y,N[2]);if(t._anchorAxis&&t.mirror&&!0!==t.mirror?(B=L.makeTickPath(t,x,N[3]),j=q+B):(B="",j=q),t.showdividers&&"outside"===t.ticks&&"boundaries"===t.tickson){var V={};for(r=0;r<P.length;r++)V[P[r].x]=1;H=function(e){return V[e.x]?B:j}}else H=j;L.drawTicks(e,t,{vals:k,layer:v,path:H,transFn:M}),"allticks"===t.mirror&&(F=Object.keys(t._linepositions||{}))}for(r=0;r<F.length;r++){a=F[r],s=d._plots[a];var U=t._linepositions[a]||[],G=L.makeTickPath(t,U[0],N[0])+L.makeTickPath(t,U[1],N[1]);L.drawTicks(e,t,{vals:k,layer:s[h+"axislayer"],path:G,transFn:M})}var Z=[];if(Z.push((function(){return L.drawLabels(e,t,{vals:b,layer:v,transFn:M,labelFns:L.makeLabelFns(t,y)})})),"multicategory"===t.type){var W={x:2,y:10}[h];Z.push((function(){var n={x:"height",y:"width"}[h],r=K()[n]+W+(t._tickAngles[p+"tick"]?t.tickfont.size*A:0);return L.drawLabels(e,t,{vals:X(t,b),layer:v,cls:p+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:L.makeLabelFns(t,y+r*N[4])})})),Z.push((function(){return t._depth=N[4]*(K("tick2")[t.side]-y),function(e,t,n){var r=t._id+"divider",a=n.vals,i=n.layer.selectAll("path."+r).data(a,$);i.exit().remove(),i.enter().insert("path",":first-child").classed(r,1).classed("crisp",1).call(u.stroke,t.dividercolor).style("stroke-width",f.crispRound(e,t.dividerwidth,1)+"px"),i.attr("transform",n.transFn).attr("d",n.path)}(e,t,{vals:P,layer:v,path:L.makeTickPath(t,y,N[4],t._depth),transFn:M})}))}else t.title.hasOwnProperty("standoff")&&Z.push((function(){t._depth=N[4]*(K()[t.side]-y)}));var Y=o.getComponentMethod("rangeslider","isVisible")(t);return Z.push((function(){var n,r,a,l,s=t.side.charAt(0),c=S[t.side].charAt(0),u=L.getPxPosition(e,t),f="outside"===t.ticks?t.ticklen:0;if((t.automargin||Y)&&("multicategory"===t.type?n=K("tick2"):(n=K(),"x"===h&&"b"===s&&(t._depth=Math.max(n.width>0?n.bottom-u:0,f)))),t.automargin){r={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if("x"===h){if("b"===s?r[s]=t._depth:(r[s]=t._depth=Math.max(n.width>0?u-n.top:0,f),p.reverse()),n.width>0){var m=n.right-(t._offset+t._length);m>0&&(r.xr=1,r.r=m);var v=t._offset-n.left;v>0&&(r.xl=0,r.l=v)}}else if("l"===s?r[s]=t._depth=Math.max(n.height>0?u-n.left:0,f):(r[s]=t._depth=Math.max(n.height>0?n.right-u:0,f),p.reverse()),n.height>0){var y=n.bottom-(t._offset+t._length);y>0&&(r.yb=0,r.b=y);var x=t._offset-n.top;x>0&&(r.yt=1,r.t=x)}r[g]="free"===t.anchor?t.position:t._anchorAxis.domain[p[0]],t.title.text!==d._dfltTitle[h]&&(r[s]+=Q(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((a={x:0,y:0,r:0,l:0,t:0,b:0})[c]=t.linewidth,t.mirror&&!0!==t.mirror&&(a[c]+=f),!0===t.mirror||"ticks"===t.mirror?a[g]=t._anchorAxis.domain[p[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(a[g]=[t._counterDomainMin,t._counterDomainMax][p[1]]))}Y&&(l=o.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),i.autoMargin(e,ee(t),r),i.autoMargin(e,te(t),a),i.autoMargin(e,ne(t),l)})),n.skipTitle||Y&&"bottom"===t.side||Z.push((function(){return function(e,t){var n,r=e._fullLayout,a=t._id,i=a.charAt(0),o=t.title.font.size;t.title.hasOwnProperty("standoff")?n=t._depth+t.title.standoff+Q(t):(n="multicategory"===t.type?t._depth:10+1.5*o+(t.linewidth?t.linewidth-1:0),n+="x"===i?"top"===t.side?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):"right"===t.side?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0));var l,s,u,d,p=L.getPxPosition(e,t);if("x"===i?(s=t._offset+t._length/2,u="top"===t.side?p-n:p+n):(u=t._offset+t._length/2,s="right"===t.side?p+n:p-n,l={rotate:"-90",offset:0}),"multicategory"!==t.type){var h=t._selections[t._id+"tick"];if(d={selection:h,side:t.side},h&&h.node()&&h.node().parentNode){var g=f.getTranslate(h.node().parentNode);d.offsetLeft=g.x,d.offsetTop=g.y}t.title.hasOwnProperty("standoff")&&(d.pad=0)}return c.draw(e,a+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:d,transform:l,attributes:{x:s,y:u,"text-anchor":"middle"}})}(e,t)})),l.syncOrAsync(Z)}}function K(e){var n=p+(e||"tick");return w[n]||(w[n]=function(e,t){var n,r,a,i;return e._selections[t].size()?(n=1/0,r=-1/0,a=1/0,i=-1/0,e._selections[t].each((function(){var e=J(this),t=f.bBox(e.node().parentNode);n=Math.min(n,t.top),r=Math.max(r,t.bottom),a=Math.min(a,t.left),i=Math.max(i,t.right)}))):(n=0,r=0,a=0,i=0),{top:n,bottom:r,left:a,right:i,height:r-n,width:i-a}}(t,n)),w[n]}},L.getTickSigns=function(e){var t=e._id.charAt(0),n={x:"top",y:"right"}[t],r=e.side===n?1:-1,a=[-1,1,r,-r];return"inside"!==e.ticks==("x"===t)&&(a=a.map((function(e){return-e}))),e.side&&a.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),a},L.makeTransFn=function(e){var t=e._id.charAt(0),n=e._offset;return"x"===t?function(t){return"translate("+(n+e.l2p(t.x))+",0)"}:function(t){return"translate(0,"+(n+e.l2p(t.x))+")"}},L.makeTickPath=function(e,t,n,r){r=void 0!==r?r:e.ticklen;var a=e._id.charAt(0),i=(e.linewidth||1)/2;return"x"===a?"M0,"+(t+i*n)+"v"+r*n:"M"+(t+i*n)+",0h"+r*n},L.makeLabelFns=function(e,t,n){var r=e._id.charAt(0),i="boundaries"!==e.tickson&&"outside"===e.ticks,o=0,s=0;if(i&&(o+=e.ticklen),n&&"outside"===e.ticks){var c=l.deg2rad(n);o=e.ticklen*Math.cos(c)+1,s=e.ticklen*Math.sin(c)}e.showticklabels&&(i||e.showline)&&(o+=.2*e.tickfont.size);var u,f,d,p,h={labelStandoff:o+=(e.linewidth||1)/2,labelShift:s};return"x"===r?(p="bottom"===e.side?1:-1,u=s*p,f=t+o*p,d="bottom"===e.side?1:-.2,h.xFn=function(e){return e.dx+u},h.yFn=function(e){return e.dy+f+e.fontSize*d},h.anchorFn=function(e,t){return a(t)&&0!==t&&180!==t?t*p<0?"end":"start":"middle"},h.heightFn=function(t,n,r){return n<-60||n>60?-.5*r:"top"===e.side?-r:0}):"y"===r&&(p="right"===e.side?1:-1,u=o,f=-s*p,d=90===Math.abs(e.tickangle)?.5:0,h.xFn=function(e){return e.dx+t+(u+e.fontSize*d)*p},h.yFn=function(e){return e.dy+f+e.fontSize*T},h.anchorFn=function(t,n){return a(n)&&90===Math.abs(n)?"middle":"right"===e.side?"start":"end"},h.heightFn=function(t,n,r){return(n*="left"===e.side?1:-1)<-30?-r:n<30?-.5*r:0}),h},L.drawTicks=function(e,t,n){n=n||{};var r=t._id+"tick",a=n.layer.selectAll("path."+r).data(t.ticks?n.vals:[],$);a.exit().remove(),a.enter().append("path").classed(r,1).classed("ticks",1).classed("crisp",!1!==n.crisp).call(u.stroke,t.tickcolor).style("stroke-width",f.crispRound(e,t.tickwidth,1)+"px").attr("d",n.path),a.attr("transform",n.transFn)},L.drawGrid=function(e,t,n){n=n||{};var r=t._id+"grid",a=n.vals,i=n.counterAxis;if(!1===t.showgrid)a=[];else if(i&&L.shouldShowZeroLine(e,t,i))for(var o="array"===t.tickmode,l=0;l<a.length;l++){var s=a[l].x;if(o?!s:Math.abs(s)<t.dtick/100){if(a=a.slice(0,l).concat(a.slice(l+1)),!o)break;l--}}var c=n.layer.selectAll("path."+r).data(a,$);c.exit().remove(),c.enter().append("path").classed(r,1).classed("crisp",!1!==n.crisp),t._gw=f.crispRound(e,t.gridwidth,1),c.attr("transform",n.transFn).attr("d",n.path).call(u.stroke,t.gridcolor||"#ddd").style("stroke-width",t._gw+"px"),"function"==typeof n.path&&c.attr("d",n.path)},L.drawZeroLine=function(e,t,n){n=n||n;var r=t._id+"zl",a=L.shouldShowZeroLine(e,t,n.counterAxis),i=n.layer.selectAll("path."+r).data(a?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(r,1).classed("zl",1).classed("crisp",!1!==n.crisp).each((function(){n.layer.selectAll("path").sort((function(e,t){return O.idSort(e.id,t.id)}))})),i.attr("transform",n.transFn).attr("d",n.path).call(u.stroke,t.zerolinecolor||u.defaultLine).style("stroke-width",f.crispRound(e,t.zerolinewidth,t._gw||1)+"px")},L.drawLabels=function(e,t,n){n=n||{};var i=e._fullLayout,o=t._id,c=o.charAt(0),u=n.cls||o+"tick",d=n.vals,p=n.labelFns,h=n.secondary?0:t.tickangle,g=(t._prevTickAngles||{})[u],m=n.layer.selectAll("g."+u).data(t.showticklabels?d:[],$),v=[];function y(e,t){e.each((function(e){var i=r.select(this),o=i.select(".text-math-group"),l=p.anchorFn(e,t),c=n.transFn.call(i.node(),e)+(a(t)&&0!=+t?" rotate("+t+","+p.xFn(e)+","+(p.yFn(e)-e.fontSize/2)+")":""),u=s.lineCount(i),d=A*e.fontSize,h=p.heightFn(e,a(t)?+t:0,(u-1)*d);if(h&&(c+=" translate(0, "+h+")"),o.empty())i.select("text").attr({transform:c,"text-anchor":l});else{var g=f.bBox(o.node()).width*{end:-.5,start:.5}[l];o.attr("transform",c+(g?"translate("+g+",0)":""))}}))}m.enter().append("g").classed(u,1).append("text").attr("text-anchor","middle").each((function(t){var n=r.select(this),a=e._promises.length;n.call(s.positionText,p.xFn(t),p.yFn(t)).call(f.font,t.font,t.fontSize,t.fontColor).text(t.text).call(s.convertToTspans,e),e._promises[a]?v.push(e._promises.pop().then((function(){y(n,h)}))):y(n,h)})),m.exit().remove(),n.repositionOnUpdate&&m.each((function(e){r.select(this).select("text").call(s.positionText,p.xFn(e),p.yFn(e))})),y(m,g+1?g:h);var x=null;t._selections&&(t._selections[u]=m);var b=[function(){return v.length&&Promise.all(v)}];t.automargin&&i._redrawFromAutoMarginCount&&90===g?(x=90,b.push((function(){y(m,g)}))):b.push((function(){if(y(m,h),d.length&&"x"===c&&!a(h)&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){x=0;var e,r=0,i=[];if(m.each((function(e){r=Math.max(r,e.fontSize);var n=t.l2p(e.x),a=J(this),o=f.bBox(a.node());i.push({top:0,bottom:10,height:10,left:n-o.width/2,right:n+o.width/2+2,width:o.width+2})})),"boundaries"!==t.tickson&&!t.showdividers||n.secondary){var o=d.length,s=Math.abs((d[o-1].x-d[0].x)*t._m)/(o-1)<2.5*r||"multicategory"===t.type;for(e=0;e<i.length-1;e++)if(l.bBoxIntersect(i[e],i[e+1])){x=s?90:30;break}}else{var u=2;for(t.ticks&&(u+=t.tickwidth/2),e=0;e<i.length;e++){var p=d[e].xbnd,g=i[e];if(null!==p[0]&&g.left-t.l2p(p[0])<u||null!==p[1]&&t.l2p(p[1])-g.right<u){x=90;break}}}x&&y(m,x)}})),t._tickAngles&&b.push((function(){t._tickAngles[u]=null===x?a(h)?h:0:x}));var _=l.syncOrAsync(b);return _&&_.then&&e._promises.push(_),_},L.getPxPosition=function(e,t){var n,r=e._fullLayout._size,a=t._id.charAt(0),i=t.side;return"free"!==t.anchor?n=t._anchorAxis:"x"===a?n={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:"y"===a&&(n={_offset:r.l+(t.position||0)*r.w,_length:0}),"top"===i||"left"===i?n._offset:"bottom"===i||"right"===i?n._offset+n._length:void 0},L.shouldShowZeroLine=function(e,t,n){var r=l.simpleMap(t.range,t.r2l);return r[0]*r[1]<=0&&t.zeroline&&("linear"===t.type||"-"===t.type)&&!(t.rangebreaks&&t.maskBreaks(0)===w)&&(K(t,0)||!function(e,t,n,r){var a=n._mainAxis;if(a){var i=e._fullLayout,o=t._id.charAt(0),l=L.counterLetter(t._id),s=t._offset+(Math.abs(r[0])<Math.abs(r[1])==("x"===o)?0:t._length),c=i._plots[n._mainSubplot];if(!(c.mainplotinfo||c).overlays.length)return p(n);for(var u=L.list(e,l),f=0;f<u.length;f++){var d=u[f];if(d._mainAxis===a&&p(d))return!0}}function p(e){if(!e.showline||!e.linewidth)return!1;var n=Math.max((e.linewidth+t.zerolinewidth)/2,1);function r(e){return"number"==typeof e&&Math.abs(e-s)<n}if(r(e._mainLinePosition)||r(e._mainMirrorPosition))return!0;var a=e._linepositions||{};for(var i in a)if(r(a[i][0])||r(a[i][1]))return!0}}(e,t,n,r)||function(e,t){for(var n=e._fullData,r=t._mainSubplot,a=t._id.charAt(0),i=0;i<n.length;i++){var l=n[i];if(!0===l.visible&&l.xaxis+l.yaxis===r){if(o.traceIs(l,"bar-like")&&l.orientation==={x:"h",y:"v"}[a])return!0;if(l.fill&&l.fill.charAt(l.fill.length-1)===a)return!0}}return!1}(e,t))},L.clipEnds=function(e,t){return t.filter((function(t){return K(e,t.x)}))},L.allowAutoMargin=function(e){for(var t=L.list(e,"",!0),n=0;n<t.length;n++){var r=t[n];r.automargin&&(i.allowAutoMargin(e,ee(r)),r.mirror&&i.allowAutoMargin(e,te(r))),o.getComponentMethod("rangeslider","isVisible")(r)&&i.allowAutoMargin(e,ne(r))}},L.swap=function(e,t){for(var n=function(e,t){var n,r,a=[];for(n=0;n<t.length;n++){var i=[],o=e._fullData[t[n]].xaxis,l=e._fullData[t[n]].yaxis;if(o&&l){for(r=0;r<a.length;r++)-1===a[r].x.indexOf(o)&&-1===a[r].y.indexOf(l)||i.push(r);if(i.length){var s,c=a[i[0]];if(i.length>1)for(r=1;r<i.length;r++)s=a[i[r]],re(c.x,s.x),re(c.y,s.y);re(c.x,[o]),re(c.y,[l])}else a.push({x:[o],y:[l]})}}return a}(e,t),r=0;r<n.length;r++)ae(e,n[r].x,n[r].y)}},{"../../components/color":52,"../../components/drawing":74,"../../components/titles":147,"../../constants/alignment":154,"../../constants/numerical":158,"../../lib":178,"../../lib/svg_text_utils":199,"../../plots/plots":256,"../../registry":269,"./autorange":221,"./axis_autotype":223,"./axis_ids":225,"./clean_ticks":227,"./layout_attributes":236,"./set_convert":242,d3:16,"fast-isnumeric":18}],223:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),i=e("../../constants/numerical").BADNUM;t.exports=function(e,t,n){return!(n=n||{}).noMultiCategory&&(o=e,a.isArrayOrTypedArray(o[0])&&a.isArrayOrTypedArray(o[1]))?"multicategory":function(e,t){for(var n=Math.max(1,(e.length-1)/1e3),i=0,o=0,l={},s=0;s<e.length;s+=n){var c=e[Math.round(s)],u=String(c);l[u]||(l[u]=1,a.isDateTime(c,t)&&(i+=1),r(c)&&(o+=1))}return i>2*o}(e,t)?"date":function(e){for(var t=Math.max(1,(e.length-1)/1e3),n=0,r=0,o={},l=0;l<e.length;l+=t){var s=e[Math.round(l)],c=String(s);o[c]||(o[c]=1,"boolean"==typeof s?r++:a.cleanNumber(s)!==i?n++:"string"==typeof s&&r++)}return r>2*n}(e)?"category":function(e){if(!e)return!1;for(var t=0;t<e.length;t++)if(r(e[t]))return!0;return!1}(e)?"linear":"-";var o}},{"../../constants/numerical":158,"../../lib":178,"fast-isnumeric":18}],224:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../registry"),i=e("../../lib"),o=e("../array_container_defaults"),l=e("./layout_attributes"),s=e("./tick_value_defaults"),c=e("./tick_mark_defaults"),u=e("./tick_label_defaults"),f=e("./category_order_defaults"),d=e("./line_grid_defaults"),p=e("./set_convert"),h=e("./constants").WEEKDAY_PATTERN,g=e("./constants").HOUR_PATTERN;function m(e,t,n){function a(n,r){return i.coerce(e,t,l.rangebreaks,n,r)}if(a("enabled")){var o=a("bounds");if(o&&o.length>=2){var s,c,u="";if(2===o.length)for(s=0;s<2;s++)if(c=y(o[s])){u=h;break}var f=a("pattern",u);if(f===h)for(s=0;s<2;s++)(c=y(o[s]))&&(t.bounds[s]=o[s]=c-1);if(f)for(s=0;s<2;s++)switch(c=o[s],f){case h:if(!r(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[s]=o[s]=c;break;case g:if(!r(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[s]=o[s]=c}if(!1===n.autorange){var d=n.range;if(d[0]<d[1]){if(o[0]<d[0]&&o[1]>d[1])return void(t.enabled=!1)}else if(o[0]>d[0]&&o[1]<d[1])return void(t.enabled=!1)}}else{var p=a("values");if(!p||!p.length)return void(t.enabled=!1);a("dvalue")}}}t.exports=function(e,t,n,r,g){var v=r.letter,y=r.font||{},x=r.splomStash||{},b=n("visible",!r.visibleDflt),_=t._template||{},w=t.type||_.type||"-";"date"===w&&a.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",r.calendar),p(t,g);var k=!t.isValidRange(e.range);k&&r.reverseDflt&&(k="reversed"),!n("autorange",k)||"linear"!==w&&"-"!==w||n("rangemode"),n("range"),t.cleanRange(),f(e,t,n,r),"category"===w||r.noHover||n("hoverformat");var T=n("color"),M=T!==l.color.dflt?T:y.color,A=x.label||g._dfltTitle[v];if(u(e,t,n,w,r,{pass:1}),!b)return t;n("title.text",A),i.coerceFont(n,"title.font",{family:y.family,size:Math.round(1.2*y.size),color:M}),s(e,t,n,w),u(e,t,n,w,r,{pass:2}),c(e,t,n,r),d(e,t,n,{dfltColor:T,bgColor:r.bgColor,showGrid:r.showGrid,attributes:l}),(t.showline||t.ticks)&&n("mirror"),r.automargin&&n("automargin");var S,L="multicategory"===w;if(r.noTickson||"category"!==w&&!L||!t.ticks&&!t.showgrid||(L&&(S="boundaries"),n("tickson",S)),L&&n("showdividers")&&(n("dividercolor"),n("dividerwidth")),"date"===w)if(o(e,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:m}),t.rangebreaks.length){for(var C=0;C<t.rangebreaks.length;C++)if(t.rangebreaks[C].pattern===h){t._hasDayOfWeekBreaks=!0;break}if(p(t,g),g._has("scattergl")||g._has("splom"))for(var O=0;O<r.data.length;O++){var P=r.data[O];"scattergl"!==P.type&&"splom"!==P.type||(P.visible=!1,i.warn(P.type+" traces do not work on axes with rangebreaks. Setting trace "+P.index+" to `visible: false`."))}}else delete t.rangebreaks;return t};var v={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function y(e){if("string"==typeof e)return v[e.substr(0,3).toLowerCase()]}},{"../../lib":178,"../../registry":269,"../array_container_defaults":218,"./category_order_defaults":226,"./constants":228,"./layout_attributes":236,"./line_grid_defaults":238,"./set_convert":242,"./tick_label_defaults":243,"./tick_mark_defaults":244,"./tick_value_defaults":245,"fast-isnumeric":18}],225:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("./constants");n.id2name=function(e){if("string"==typeof e&&e.match(a.AX_ID_PATTERN)){var t=e.substr(1);return"1"===t&&(t=""),e.charAt(0)+"axis"+t}},n.name2id=function(e){if(e.match(a.AX_NAME_PATTERN)){var t=e.substr(5);return"1"===t&&(t=""),e.charAt(0)+t}},n.cleanId=function(e,t){if(e.match(a.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)){var n=e.substr(1).replace(/^0+/,"");return"1"===n&&(n=""),e.charAt(0)+n}},n.list=function(e,t,r){var a=e._fullLayout;if(!a)return[];var i,o=n.listIds(e,t),l=new Array(o.length);for(i=0;i<o.length;i++){var s=o[i];l[i]=a[s.charAt(0)+"axis"+s.substr(1)]}if(!r){var c=a._subplots.gl3d||[];for(i=0;i<c.length;i++){var u=a[c[i]];t?l.push(u[t+"axis"]):l.push(u.xaxis,u.yaxis,u.zaxis)}}return l},n.listIds=function(e,t){var n=e._fullLayout;if(!n)return[];var r=n._subplots;return t?r[t+"axis"]:r.xaxis.concat(r.yaxis)},n.getFromId=function(e,t,r){var a=e._fullLayout;return"x"===r?t=t.replace(/y[0-9]*/,""):"y"===r&&(t=t.replace(/x[0-9]*/,"")),a[n.id2name(t)]},n.getFromTrace=function(e,t,a){var i=e._fullLayout,o=null;if(r.traceIs(t,"gl3d")){var l=t.scene;"scene"===l.substr(0,5)&&(o=i[l][a+"axis"])}else o=n.getFromId(e,t[a+"axis"]||a);return o},n.idSort=function(e,t){var n=e.charAt(0),r=t.charAt(0);return n!==r?n>r?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},n.getAxisGroup=function(e,t){for(var n=e._axisMatchGroups,r=0;r<n.length;r++)if(n[r][t])return"g"+r;return t}},{"../../registry":269,"./constants":228}],226:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){if("category"===t.type){var a,i=e.categoryarray,o=Array.isArray(i)&&i.length>0;o&&(a="array");var l,s=n("categoryorder",a);"array"===s&&(l=n("categoryarray")),o||"array"!==s||(s=t.categoryorder="trace"),"trace"===s?t._initialCategories=[]:"array"===s?t._initialCategories=l.slice():(l=function(e,t){var n,r,a,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)n=t.axData;else for(n=[],r=0;r<t.data.length;r++){var l=t.data[r];l[i+"axis"]===e._id&&n.push(l)}for(r=0;r<n.length;r++){var s=n[r][i];for(a=0;a<s.length;a++){var c=s[a];null!=c&&(o[c]=1)}}return Object.keys(o)}(t,r).sort(),"category ascending"===s?t._initialCategories=l:"category descending"===s&&(t._initialCategories=l.reverse()))}}},{}],227:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),i=e("../../constants/numerical").ONEDAY;n.dtick=function(e,t){var n="log"===t,a="date"===t,o="category"===t,l=a?i:1;if(!e)return l;if(r(e))return(e=Number(e))<=0?l:o?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if("string"!=typeof e||!a&&!n)return l;var s=e.charAt(0),c=e.substr(1);return(c=r(c)?Number(c):0)<=0||!(a&&"M"===s&&c===Math.round(c)||n&&"L"===s||n&&"D"===s&&(1===c||2===c))?l:e},n.tick0=function(e,t,n,i){return"date"===t?a.cleanDate(e,a.dateTick0(n)):"D1"!==i&&"D2"!==i?r(e)?Number(e):0:void 0}},{"../../constants/numerical":158,"../../lib":178,"fast-isnumeric":18}],228:[function(e,t,n){"use strict";var r=e("../../lib/regex").counter;t.exports={idRegex:{x:r("x"),y:r("y")},attrRegex:r("[xy]axis"),xAxisMatch:r("xaxis"),yAxisMatch:r("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*$/,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,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:"-select",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"}}},{"../../lib/regex":193}],229:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./axis_ids").id2name,i=e("./scale_zoom"),o=e("./autorange").makePadFn,l=e("./autorange").concatExtremes,s=e("../../constants/numerical").ALMOST_EQUAL,c=e("../../constants/alignment").FROM_BL;function u(e,t,n,r,i){var o,l,s,c,u="range"!==i,f=r[a(t)].type,d=[];for(l=0;l<n.length;l++)(s=n[l])!==t&&(c=r[a(s)]).type===f&&(c.fixedrange?u&&c.anchor&&r[a(c.anchor)].fixedrange&&d.push(s):d.push(s));for(o=0;o<e.length;o++)if(e[o][t]){var p=e[o],h=[];for(l=0;l<d.length;l++)p[s=d[l]]||h.push(s);return{linkableAxes:h,thisGroup:p}}return{linkableAxes:d,thisGroup:null}}function f(e,t,n,r,a){var i,o,l,s,c;null===t?((t={})[n]=1,c=e.length,e.push(t)):c=e.indexOf(t);var u=Object.keys(t);for(i=0;i<e.length;i++)if(l=e[i],i!==c&&l[r]){var f=l[r];for(o=0;o<u.length;o++)l[s=u[o]]=f*a*t[s];return void e.splice(c,1)}if(1!==a)for(o=0;o<u.length;o++)t[u[o]]*=a;t[r]=1}function d(e,t){var n=e._inputDomain,r=c[e.constraintoward],a=n[0]+(n[1]-n[0])*r;e.domain=e._input.domain=[a+(n[0]-a)/t,a+(n[1]-a)/t],e.setScale()}n.handleConstraintDefaults=function(e,t,n,a){var i,o,l,s,c=a.allAxisIds,d=a.layoutOut,p=a.scaleanchorDflt,h=a.constrainDflt,g=d._axisConstraintGroups,m=d._axisMatchGroups,v=t._id,y=v.charAt(0),x=((d._splomAxes||{})[y]||{})[v]||{},b=t._id,_=b.charAt(0),w=n("constrain",h);if(r.coerce(e,t,{constraintoward:{valType:"enumerated",values:"x"===_?["left","center","right"]:["bottom","middle","top"],dflt:"x"===_?"center":"middle"}},"constraintoward"),!e.matches&&!x.matches||t.fixedrange||(o=u(m,b,c,d),i=r.coerce(e,t,{matches:{valType:"enumerated",values:o.linkableAxes||[],dflt:x.matches}},"matches")),i||t.fixedrange&&"domain"!==w||!e.scaleanchor&&!p||(s=u(g,b,c,d,w),l=r.coerce(e,t,{scaleanchor:{valType:"enumerated",values:s.linkableAxes||[]}},"scaleanchor",p)),i?(delete t.constrain,f(m,o.thisGroup,b,i,1)):-1!==c.indexOf(e.matches)&&r.warn("ignored "+t._name+'.matches: "'+e.matches+'" to avoid either an infinite loop or because the target axis has fixed range.'),l){var k=n("scaleratio");k||(k=t.scaleratio=1),f(g,s.thisGroup,b,l,k)}else-1!==c.indexOf(e.scaleanchor)&&r.warn("ignored "+t._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because the target axis has fixed range or this axis declares a *matches* constraint.')},n.enforce=function(e){var t,n,r,c,u,f,p,h=e._fullLayout,g=h._axisConstraintGroups||[];for(t=0;t<g.length;t++){var m=g[t],v=Object.keys(m),y=1/0,x=0,b=1/0,_={},w={},k=!1;for(n=0;n<v.length;n++)w[r=v[n]]=c=h[a(r)],c._inputDomain?c.domain=c._inputDomain.slice():c._inputDomain=c.domain.slice(),c._inputRange||(c._inputRange=c.range.slice()),c.setScale(),_[r]=u=Math.abs(c._m)/m[r],y=Math.min(y,u),"domain"!==c.constrain&&c._constraintShrinkable||(b=Math.min(b,u)),delete c._constraintShrinkable,x=Math.max(x,u),"domain"===c.constrain&&(k=!0);if(!(y>s*x)||k)for(n=0;n<v.length;n++)if(u=_[r=v[n]],f=(c=w[r]).constrain,u!==b||"domain"===f)if(p=u/b,"range"===f)i(c,p);else{var T=c._inputDomain,M=(c.domain[1]-c.domain[0])/(T[1]-T[0]),A=(c.r2l(c.range[1])-c.r2l(c.range[0]))/(c.r2l(c._inputRange[1])-c.r2l(c._inputRange[0]));if((p/=M)*A<1){c.domain=c._input.domain=T.slice(),i(c,p);continue}if(A<1&&(c.range=c._input.range=c._inputRange.slice(),p*=A),c.autorange){var S=c.r2l(c.range[0]),L=c.r2l(c.range[1]),C=(S+L)/2,O=C,P=C,E=Math.abs(L-C),z=C-E*p*1.0001,D=C+E*p*1.0001,R=o(c);d(c,p);var I,N,F=Math.abs(c._m),B=l(e,c),j=B.min,H=B.max;for(N=0;N<j.length;N++)(I=j[N].val-R(j[N])/F)>z&&I<O&&(O=I);for(N=0;N<H.length;N++)(I=H[N].val+R(H[N])/F)<D&&I>P&&(P=I);p/=(P-O)/(2*E),O=c.l2r(O),P=c.l2r(P),c.range=c._input.range=S<L?[O,P]:[P,O]}d(c,p)}}},n.clean=function(e,t){if(t._inputDomain){for(var n=!1,r=t._id,a=e._fullLayout._axisConstraintGroups,i=0;i<a.length;i++)if(a[i][r]){n=!0;break}n&&"domain"===t.constrain||(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}}},{"../../constants/alignment":154,"../../constants/numerical":158,"../../lib":178,"./autorange":221,"./axis_ids":225,"./scale_zoom":240}],230:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),i=e("has-passive-events"),o=e("../../registry"),l=e("../../lib"),s=e("../../lib/svg_text_utils"),c=e("../../components/color"),u=e("../../components/drawing"),f=e("../../components/fx"),d=e("./axes"),p=e("../../lib/setcursor"),h=e("../../components/dragelement"),g=e("../../components/dragelement/helpers"),m=g.selectingOrDrawing,v=g.freeMode,y=e("../../constants/alignment").FROM_TL,x=e("../../lib/clear_gl_canvases"),b=e("../../plot_api/subroutines").redrawReglTraces,_=e("../plots"),w=e("./axis_ids").getFromId,k=e("./select").prepSelect,T=e("./select").clearSelect,M=e("./select").selectOnClick,A=e("./scale_zoom"),S=e("./constants"),L=S.MINDRAG,C=S.MINZOOM,O=!0;function P(e,t,n,r){var a=l.ensureSingle(e.draglayer,t,n,(function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)}));return a.call(p,r),a.node()}function E(e,t,n,a,i,o,l){var s=P(e,"rect",t,n);return r.select(s).call(u.setRect,a,i,o,l),s}function z(e,t){for(var n=0;n<e.length;n++)if(!e[n].fixedrange)return t;return""}function D(e,t,n,r,a){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var l="y"===o._id.charAt(0),s=l?1-t:t,c=l?1-n:n;r[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),r[o._name+".range[1]"]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;r[o._name+".range[0]"]=o.l2r(u+f*t),r[o._name+".range[1]"]=o.l2r(u+f*n)}}if(a&&a.length){var d=(t+(1-n))/2;D(a,d,1-d,r,[])}}function R(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r.fixedrange)if(r.rangebreaks){var a=r._length,i=(r.p2l(0+t)-r.p2l(0)+(r.p2l(a+t)-r.p2l(a)))/2;r.range=[r.l2r(r._rl[0]-i),r.l2r(r._rl[1]-i)]}else r.range=[r.l2r(r._rl[0]-t/r._m),r.l2r(r._rl[1]-t/r._m)]}}function I(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function N(e,t,n,r,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","translate("+n+", "+r+")").attr("d",a+"Z")}function F(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+n+")").attr("d","M0,0Z")}function B(e,t,n,r,a,i){e.attr("d",r+"M"+n.l+","+n.t+"v"+n.h+"h"+n.w+"v-"+n.h+"h-"+n.w+"Z"),j(e,t,a,i)}function j(e,t,n,r){n||(e.transition().style("fill",r>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function H(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function q(e){O&&e.data&&e._context.showTips&&(l.notifier(l._(e,"Double-click to zoom back out"),"long"),O=!1)}function V(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,C)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function U(e,t,n,r){for(var a,i,o,s,c=!1,u={},f={},d=0;d<t.length;d++){var p=t[d];for(a in n)if(p[a]){for(o in p)("x"===o.charAt(0)?n:r)[o]||(u[o]=a);for(i in r)p[i]&&(c=!0)}for(i in r)if(p[i])for(s in p)("x"===s.charAt(0)?n:r)[s]||(f[s]=i)}c&&(l.extendFlat(u,f),f={});var h={},g=[];for(o in u){var m=w(e,o);g.push(m),h[m._id]=m}var v={},y=[];for(s in f){var x=w(e,s);y.push(x),v[x._id]=x}return{xaHash:h,yaHash:v,xaxes:g,yaxes:y,xLinks:u,yLinks:f,isSubplotConstrained:c}}function G(e,t){if(i){var n=void 0!==e.onwheel?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(n,e._onwheel),e._onwheel=t,e.addEventListener(n,t,{passive:!1})}else void 0!==e.onwheel?e.onwheel=t:void 0!==e.onmousewheel&&(e.onmousewheel=t)}function Z(e){var t=[];for(var n in e)t.push(e[n]);return t}t.exports={makeDragBox:function(e,t,n,i,c,p,g,O){var P,j,W,Y,X,$,Q,K,J,ee,te,ne,re,ae,ie,oe,le,se,ce,ue,fe,de=e._fullLayout._zoomlayer,pe=g+O==="nsew",he=1===(g+O).length;function ge(){if(P=t.xaxis,j=t.yaxis,J=P._length,ee=j._length,Q=P._offset,K=j._offset,(W={})[P._id]=P,(Y={})[j._id]=j,g&&O)for(var n=t.overlays,r=0;r<n.length;r++){var a=n[r].xaxis;W[a._id]=a;var i=n[r].yaxis;Y[i._id]=i}X=Z(W),$=Z(Y),re=z(X,O),ae=z($,g),ie=!ae&&!re,te=U(e,e._fullLayout._axisConstraintGroups,W,Y),ne=U(e,e._fullLayout._axisMatchGroups,W,Y),oe=O||te.isSubplotConstrained||ne.isSubplotConstrained,le=g||te.isSubplotConstrained||ne.isSubplotConstrained;var o=e._fullLayout;se=o._has("scattergl"),ce=o._has("splom"),ue=o._has("svg")}ge();var me=function(e,t,n){return e?"nsew"===e?n?"":"pan"===t?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}(ae+re,e._fullLayout.dragmode,pe),ve=E(t,g+O+"drag",me,n,i,c,p);if(ie&&!pe)return ve.onmousedown=null,ve.style.pointerEvents="none",ve;var ye,xe,be,_e,we,ke,Te,Me,Ae,Se,Le={element:ve,gd:e,plotinfo:t};function Ce(){Le.plotinfo.selection=!1,T(e)}function Oe(e,n){var a=Le.gd;if(a._fullLayout._activeShapeIndex>=0)a._fullLayout._deactivateShape(a);else{var i=a._fullLayout.clickmode;if(H(a),2!==e||he||He(),pe)i.indexOf("select")>-1&&M(n,a,X,$,t.id,Le),i.indexOf("event")>-1&&f.click(a,n,t.id);else if(1===e&&he){var l=g?j:P,c="s"===g||"w"===O?0:1,u=l._name+".range["+c+"]",d=function(e,t){var n,a=e.range[t],i=Math.abs(a-e.range[1-t]);return"date"===e.type?a:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,r.format("."+n+"g")(Math.pow(10,a))):(n=Math.floor(Math.log(Math.abs(a))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,r.format("."+String(n)+"g")(a))}(l,c),p="left",h="middle";if(l.fixedrange)return;g?(h="n"===g?"top":"bottom","right"===l.side&&(p="right")):"e"===O&&(p="right"),a._context.showAxisRangeEntryBoxes&&r.select(ve).call(s.makeEditable,{gd:a,immediate:!0,background:a._fullLayout.paper_bgcolor,text:String(d),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:p,verticalAlign:h}).on("edit",(function(e){var t=l.d2r(e);void 0!==t&&o.call("_guiRelayout",a,u,t)}))}}}function Pe(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min(J,t+ye)),a=Math.max(0,Math.min(ee,n+xe)),i=Math.abs(r-ye),o=Math.abs(a-xe);function l(){Te="",be.r=be.l,be.t=be.b,Ae.attr("d","M0,0Z")}if(be.l=Math.min(ye,r),be.r=Math.max(ye,r),be.t=Math.min(xe,a),be.b=Math.max(xe,a),te.isSubplotConstrained)i>C||o>C?(Te="xy",i/J>o/ee?(o=i*ee/J,xe>a?be.t=xe-o:be.b=xe+o):(i=o*J/ee,ye>r?be.l=ye-i:be.r=ye+i),Ae.attr("d",V(be))):l();else if(ne.isSubplotConstrained)if(i>C||o>C){Te="xy";var s=Math.min(be.l/J,(ee-be.b)/ee),c=Math.max(be.r/J,(ee-be.t)/ee);be.l=s*J,be.r=c*J,be.b=(1-s)*ee,be.t=(1-c)*ee,Ae.attr("d",V(be))}else l();else!ae||o<Math.min(Math.max(.6*i,L),C)?i<L||!re?l():(be.t=0,be.b=ee,Te="x",Ae.attr("d",function(e,t){return"M"+(e.l-.5)+","+(t-C-.5)+"h-3v"+(2*C+1)+"h3ZM"+(e.r+.5)+","+(t-C-.5)+"h3v"+(2*C+1)+"h-3Z"}(be,xe))):!re||i<Math.min(.6*o,C)?(be.l=0,be.r=J,Te="y",Ae.attr("d",function(e,t){return"M"+(t-C-.5)+","+(e.t-.5)+"v-3h"+(2*C+1)+"v3ZM"+(t-C-.5)+","+(e.b+.5)+"v3h"+(2*C+1)+"v-3Z"}(be,ye))):(Te="xy",Ae.attr("d",V(be)));be.w=be.r-be.l,be.h=be.b-be.t,Te&&(Se=!0),e._dragged=Se,B(Me,Ae,be,we,ke,_e),Ee(),e.emit("plotly_relayouting",fe),ke=!0}function Ee(){fe={},"xy"!==Te&&"x"!==Te||(D(X,be.l/J,be.r/J,fe,te.xaxes),Be("x",fe)),"xy"!==Te&&"y"!==Te||(D($,(ee-be.b)/ee,(ee-be.t)/ee,fe,te.yaxes),Be("y",fe))}function ze(){Ee(),H(e),qe(),q(e)}Le.prepFn=function(t,n,r){var i=Le.dragmode,o=e._fullLayout.dragmode;o!==i&&(Le.dragmode=o),ge(),ie||(pe?t.shiftKey?"pan"===o?o="zoom":m(o)||(o="pan"):t.ctrlKey&&(o="pan"):o="pan"),v(o)?Le.minDrag=1:Le.minDrag=void 0,m(o)?(Le.xaxes=X,Le.yaxes=$,k(t,n,r,Le,o)):(Le.clickFn=Oe,m(i)&&Ce(),ie||("zoom"===o?(Le.moveFn=Pe,Le.doneFn=ze,Le.minDrag=1,function(t,n,r){var i=ve.getBoundingClientRect();ye=n-i.left,xe=r-i.top,be={l:ye,r:ye,w:0,t:xe,b:xe,h:0},_e=e._hmpixcount?e._hmlumcount/e._hmpixcount:a(e._fullLayout.plot_bgcolor).getLuminance(),ke=!1,Te="xy",Se=!1,Me=N(de,_e,Q,K,we="M0,0H"+J+"V"+ee+"H0V0"),Ae=F(de,Q,K)}(0,n,r)):"pan"===o&&(Le.moveFn=Fe,Le.doneFn=qe))),e._fullLayout._redrag=function(){var t=e._dragdata;if(t&&t.element===ve){var n=e._fullLayout.dragmode;m(n)||(ge(),Ve([0,0,J,ee]),Le.moveFn(t.dx,t.dy))}}},h.init(Le);var De=[0,0,J,ee],Re=null,Ie=S.REDRAWDELAY,Ne=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function Fe(t,n){if(!e._transitioningWithDuration){if(e._fullLayout._replotting=!0,"ew"===re||"ns"===ae)return re&&(R(X,t),Be("x")),ae&&(R($,n),Be("y")),Ve([re?-t:0,ae?-n:0,J,ee]),je(),void e.emit("plotly_relayouting",fe);if(te.isSubplotConstrained&&re&&ae){var r="w"===re==("n"===ae)?1:-1,a=(t/J+r*n/ee)/2;t=a*J,n=r*a*ee}"w"===re?t=s(X,0,t):"e"===re?t=s(X,1,-t):re||(t=0),"n"===ae?n=s($,1,n):"s"===ae?n=s($,0,-n):ae||(n=0);var i="w"===re?t:0,o="n"===ae?n:0;if(te.isSubplotConstrained){var l;if(!re&&1===ae.length){for(l=0;l<X.length;l++)X[l].range=X[l]._r.slice(),A(X[l],1-n/ee);i=(t=n*J/ee)/2}if(!ae&&1===re.length){for(l=0;l<$.length;l++)$[l].range=$[l]._r.slice(),A($[l],1-t/J);o=(n=t*ee/J)/2}}Be("x"),Be("y"),Ve([i,o,J-t,ee-n]),je(),e.emit("plotly_relayouting",fe)}function s(e,t,n){for(var r,a,i=1-t,o=0;o<e.length;o++){var l=e[o];if(!l.fixedrange){r=l,a=l._rl[i]+(l._rl[t]-l._rl[i])/I(n/l._length);var s=l.l2r(a);!1!==s&&void 0!==s&&(l.range[t]=s)}}return r._length*(r._rl[t]-a)/(r._rl[t]-r._rl[i])}}function Be(e,t){for(var n=ne.isSubplotConstrained?{x:$,y:X}[e]:ne[e+"axes"],r=ne.isSubplotConstrained?{x:X,y:$}[e]:[],a=0;a<n.length;a++){var i=n[a],o=i._id,l=ne.xLinks[o]||ne.yLinks[o],s=r[0]||W[l]||Y[l];s&&(t?(t[i._name+".range[0]"]=t[s._name+".range[0]"],t[i._name+".range[1]"]=t[s._name+".range[1]"]):i.range=s.range.slice())}}function je(){var t,n=[];function r(e){for(t=0;t<e.length;t++)e[t].fixedrange||n.push(e[t]._id)}for(oe&&(r(X),r(te.xaxes),r(ne.xaxes)),le&&(r($),r(te.yaxes),r(ne.yaxes)),fe={},t=0;t<n.length;t++){var a=n[t],i=w(e,a);d.drawOne(e,i,{skipTitle:!0}),fe[i._name+".range[0]"]=i.range[0],fe[i._name+".range[1]"]=i.range[1]}d.redrawComponents(e,n)}function He(){if(!e._transitioningWithDuration){var t=e._context.doubleClick,n=[];re&&(n=n.concat(X)),ae&&(n=n.concat($)),ne.xaxes&&(n=n.concat(ne.xaxes)),ne.yaxes&&(n=n.concat(ne.yaxes));var r,a,i,l={};if("reset+autosize"===t)for(t="autosize",a=0;a<n.length;a++)if((r=n[a])._rangeInitial&&(r.range[0]!==r._rangeInitial[0]||r.range[1]!==r._rangeInitial[1])||!r._rangeInitial&&!r.autorange){t="reset";break}if("autosize"===t)for(a=0;a<n.length;a++)(r=n[a]).fixedrange||(l[r._name+".autorange"]=!0);else if("reset"===t)for((re||te.isSubplotConstrained)&&(n=n.concat(te.xaxes)),ae&&!te.isSubplotConstrained&&(n=n.concat(te.yaxes)),te.isSubplotConstrained&&(re?ae||(n=n.concat($)):n=n.concat(X)),a=0;a<n.length;a++)(r=n[a]).fixedrange||(r._rangeInitial?(i=r._rangeInitial,l[r._name+".range[0]"]=i[0],l[r._name+".range[1]"]=i[1]):l[r._name+".autorange"]=!0);e.emit("plotly_doubleclick",null),o.call("_guiRelayout",e,l)}}function qe(){Ve([0,0,J,ee]),l.syncOrAsync([_.previousPromises,function(){e._fullLayout._replotting=!1,o.call("_guiRelayout",e,fe)}],e)}function Ve(t){var n,r,a,i,s=e._fullLayout,c=s._plots,f=s._subplots.cartesian;if(ce&&o.subplotsRegistry.splom.drag(e),se)for(n=0;n<f.length;n++)if(a=(r=c[f[n]]).xaxis,i=r.yaxis,r._scene){var d=l.simpleMap(a.range,a.r2l),p=l.simpleMap(i.range,i.r2l);r._scene.update({range:[d[0],p[0],d[1],p[1]]})}if((ce||se)&&(x(e),b(e)),ue){var h=t[2]/P._length,m=t[3]/j._length;for(n=0;n<f.length;n++){a=(r=c[f[n]]).xaxis,i=r.yaxis;var v,y,_,w,k=oe&&!a.fixedrange&&W[a._id],T=le&&!i.fixedrange&&Y[i._id];if(k?(v=h,_=O?t[0]:Ze(a,v)):ne.xaHash[a._id]?(v=h,_=t[0]*a._length/P._length):ne.yaHash[a._id]?(v=m,_="ns"===ae?-t[1]*a._length/j._length:Ze(a,v,{n:"top",s:"bottom"}[ae])):_=Ge(a,v=Ue(a,h,m)),T?(y=m,w=g?t[1]:Ze(i,y)):ne.yaHash[i._id]?(y=m,w=t[1]*i._length/j._length):ne.xaHash[i._id]?(y=h,w="ew"===re?-t[0]*i._length/P._length:Ze(i,y,{e:"right",w:"left"}[re])):w=Ge(i,y=Ue(i,h,m)),v||y){v||(v=1),y||(y=1);var M=a._offset-_/v,A=i._offset-w/y;r.clipRect.call(u.setTranslate,_,w).call(u.setScale,v,y),r.plot.call(u.setTranslate,M,A).call(u.setScale,1/v,1/y),v===r.xScaleFactor&&y===r.yScaleFactor||(u.setPointGroupScale(r.zoomScalePts,v,y),u.setTextPointsScale(r.zoomScaleTxt,v,y)),u.hideOutsideRangePoints(r.clipOnAxisFalseTraces,r),r.xScaleFactor=v,r.yScaleFactor=y}}}}function Ue(e,t,n){return e.fixedrange?0:oe&&te.xaHash[e._id]?t:le&&(te.isSubplotConstrained?te.xaHash:te.yaHash)[e._id]?n:0}function Ge(e,t){return t?(e.range=e._r.slice(),A(e,t),Ze(e,t)):0}function Ze(e,t,n){return e._length*(1-t)*y[n||e.constraintoward||"middle"]}return g.length*O.length!=1&&G(ve,(function(t){if(e._context._scrollZoom.cartesian||e._fullLayout._enablescrollzoom){if(Ce(),e._transitioningWithDuration)return t.preventDefault(),void t.stopPropagation();ge(),clearTimeout(Re);var n=-t.deltaY;if(isFinite(n)||(n=t.wheelDelta/10),isFinite(n)){var r,a=Math.exp(-Math.min(Math.max(n,-20),20)/200),i=Ne.draglayer.select(".nsewdrag").node().getBoundingClientRect(),o=(t.clientX-i.left)/i.width,s=(i.bottom-t.clientY)/i.height;if(oe){for(O||(o=.5),r=0;r<X.length;r++)c(X[r],o,a);Be("x"),De[2]*=a,De[0]+=De[2]*o*(1/a-1)}if(le){for(g||(s=.5),r=0;r<$.length;r++)c($[r],s,a);Be("y"),De[3]*=a,De[1]+=De[3]*(1-s)*(1/a-1)}Ve(De),je(),e.emit("plotly_relayouting",fe),Re=setTimeout((function(){De=[0,0,J,ee],qe()}),Ie),t.preventDefault()}else l.log("Did not find wheel motion attributes: ",t)}function c(e,t,n){if(!e.fixedrange){var r=l.simpleMap(e.range,e.r2l),a=r[0]+(r[1]-r[0])*t;e.range=r.map((function(t){return e.l2r(a+(t-a)*n)}))}}})),ve},makeDragger:P,makeRectDragger:E,makeZoombox:N,makeCorners:F,updateZoombox:B,xyCorners:V,transitionZoombox:j,removeZoombox:H,showDoubleClickNotifier:q,attachWheelEventHandler:G}},{"../../components/color":52,"../../components/dragelement":71,"../../components/dragelement/helpers":70,"../../components/drawing":74,"../../components/fx":92,"../../constants/alignment":154,"../../lib":178,"../../lib/clear_gl_canvases":167,"../../lib/setcursor":197,"../../lib/svg_text_utils":199,"../../plot_api/subroutines":213,"../../registry":269,"../plots":256,"./axes":222,"./axis_ids":225,"./constants":228,"./scale_zoom":240,"./select":241,d3:16,"has-passive-events":21,tinycolor2:35}],231:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/fx"),i=e("../../components/dragelement"),o=e("../../lib/setcursor"),l=e("./dragbox").makeDragBox,s=e("./constants").DRAGGERSIZE;n.initInteractions=function(e){var t=e._fullLayout;if(e._context.staticPlot)r.select(e).selectAll(".drag").remove();else if(t._has("cartesian")||t._has("splom")){Object.keys(t._plots||{}).sort((function(e,n){if((t._plots[e].mainplot&&!0)===(t._plots[n].mainplot&&!0)){var r=e.split("y"),a=n.split("y");return r[0]===a[0]?Number(r[1]||1)-Number(a[1]||1):Number(r[0]||1)-Number(a[0]||1)}return t._plots[e].mainplot?1:-1})).forEach((function(n){var r=t._plots[n],o=r.xaxis,c=r.yaxis;if(!r.mainplot){var u=l(e,r,o._offset,c._offset,o._length,c._length,"ns","ew");u.onmousemove=function(t){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===n&&e._fullLayout._plots[n]&&a.hover(e,t,n)},a.hover(e,t,n),e._fullLayout._lasthover=u,e._fullLayout._hoversubplot=n},u.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,i.unhover(e,t))},e._context.showAxisDragHandles&&(l(e,r,o._offset-s,c._offset-s,s,s,"n","w"),l(e,r,o._offset+o._length,c._offset-s,s,s,"n","e"),l(e,r,o._offset-s,c._offset+c._length,s,s,"s","w"),l(e,r,o._offset+o._length,c._offset+c._length,s,s,"s","e"))}if(e._context.showAxisDragHandles){if(n===o._mainSubplot){var f=o._mainLinePosition;"top"===o.side&&(f-=s),l(e,r,o._offset+.1*o._length,f,.8*o._length,s,"","ew"),l(e,r,o._offset,f,.1*o._length,s,"","w"),l(e,r,o._offset+.9*o._length,f,.1*o._length,s,"","e")}if(n===c._mainSubplot){var d=c._mainLinePosition;"right"!==c.side&&(d-=s),l(e,r,d,c._offset+.1*c._length,s,.8*c._length,"ns",""),l(e,r,d,c._offset+.9*c._length,s,.1*c._length,"s",""),l(e,r,d,c._offset,s,.1*c._length,"n","")}}}));var o=t._hoverlayer.node();o.onmousemove=function(n){n.target=e._fullLayout._lasthover,a.hover(e,n,t._hoversubplot)},o.onclick=function(t){t.target=e._fullLayout._lasthover,a.click(e,t)},o.onmousedown=function(t){e._fullLayout._lasthover.onmousedown(t)},n.updateFx(e)}},n.updateFx=function(e){var t=e._fullLayout,n="pan"===t.dragmode?"move":"crosshair";o(t._draggers,n)}},{"../../components/dragelement":71,"../../components/fx":92,"../../lib/setcursor":197,"./constants":228,"./dragbox":230,d3:16}],232:[function(e,t,n){"use strict";t.exports={clearOutlineControllers:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()},clearSelect:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._drawing=!1}}},{}],233:[function(e,t,n){"use strict";function r(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)}}t.exports={p2r:r,r2p:function(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}},axValue:function(e){var t="y"===e._id.charAt(0)?1:0;return function(n){return r(e,n[t])}},getTransform:function(e){return"translate("+e.xaxis._offset+","+e.yaxis._offset+")"}}},{}],234:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib");t.exports=function(e){return function(t,n){var i=t[e];if(Array.isArray(i))for(var o=r.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,c=s.xaxis,u=s.yaxis,f=s.cartesian,d=n._has("cartesian")||n._has("gl2d"),p=0;p<i.length;p++){var h=i[p];if(a.isPlainObject(h)){var g=h.xref,m=h.yref,v=l.x.test(g),y=l.y.test(m);if(v||y){d||a.pushUnique(n._basePlotModules,o);var x=!1;v&&-1===c.indexOf(g)&&(c.push(g),x=!0),y&&-1===u.indexOf(m)&&(u.push(m),x=!0),x&&v&&y&&f.push(g+m)}}}}}},{"../../lib":178,"../../registry":269}],235:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),i=e("../../lib"),o=e("../plots"),l=e("../../components/drawing"),s=e("../get_data").getModuleCalcData,c=e("./axis_ids"),u=e("./constants"),f=e("../../constants/xmlns_namespaces"),d=i.ensureSingle;function p(e,t,n){return i.ensureSingle(e,t,n,(function(e){e.datum(n)}))}function h(e,t,n,i,o){for(var c,f,d,p=u.traceLayerClasses,h=e._fullLayout,g=h._modules,m=[],v=[],y=0;y<g.length;y++){var x=(c=g[y]).name,b=a.modules[x].categories;if(b.svg){var _=c.layerName||x+"layer",w=c.plot;d=(f=s(n,w))[0],n=f[1],d.length&&m.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:d}),b.zoomScale&&v.push("."+_)}}m.sort((function(e,t){return e.i-t.i}));var k=t.plot.selectAll("g.mlayer").data(m,(function(e){return e.className}));if(k.enter().append("g").attr("class",(function(e){return e.className})).classed("mlayer",!0).classed("rangeplot",t.isRangePlot),k.exit().remove(),k.order(),k.each((function(n){var a=r.select(this),s=n.className;n.plotMethod(e,t,n.cdModule,a,i,o),-1===u.clipOnAxisFalseQuery.indexOf("."+s)&&l.setClipUrl(a,t.layerClipId,e)})),h._has("scattergl")&&(c=a.getModule("scattergl"),d=s(n,c)[0],c.plot(e,t,d)),!e._context.staticPlot&&(t._hasClipOnAxisFalse&&(t.clipOnAxisFalseTraces=t.plot.selectAll(u.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),v.length)){var T=t.plot.selectAll(v.join(",")).selectAll(".trace");t.zoomScalePts=T.selectAll("path.point"),t.zoomScaleTxt=T.selectAll(".textpoint")}}function g(e,t){var n=t.plotgroup,r=t.id,a=u.layerValue2layerClass[t.xaxis.layer],i=u.layerValue2layerClass[t.yaxis.layer],o=e._fullLayout._hasOnlyLargeSploms;if(t.mainplot){var l=t.mainplotinfo,s=l.plotgroup,f=r+"-x",h=r+"-y";t.gridlayer=l.gridlayer,t.zerolinelayer=l.zerolinelayer,d(l.overlinesBelow,"path",f),d(l.overlinesBelow,"path",h),d(l.overaxesBelow,"g",f),d(l.overaxesBelow,"g",h),t.plot=d(l.overplot,"g",r),d(l.overlinesAbove,"path",f),d(l.overlinesAbove,"path",h),d(l.overaxesAbove,"g",f),d(l.overaxesAbove,"g",h),t.xlines=s.select(".overlines-"+a).select("."+f),t.ylines=s.select(".overlines-"+i).select("."+h),t.xaxislayer=s.select(".overaxes-"+a).select("."+f),t.yaxislayer=s.select(".overaxes-"+i).select("."+h)}else if(o)t.xlines=d(n,"path","xlines-above"),t.ylines=d(n,"path","ylines-above"),t.xaxislayer=d(n,"g","xaxislayer-above"),t.yaxislayer=d(n,"g","yaxislayer-above");else{var g=d(n,"g","layer-subplot");t.shapelayer=d(g,"g","shapelayer"),t.imagelayer=d(g,"g","imagelayer"),t.gridlayer=d(n,"g","gridlayer"),t.zerolinelayer=d(n,"g","zerolinelayer"),d(n,"path","xlines-below"),d(n,"path","ylines-below"),t.overlinesBelow=d(n,"g","overlines-below"),d(n,"g","xaxislayer-below"),d(n,"g","yaxislayer-below"),t.overaxesBelow=d(n,"g","overaxes-below"),t.plot=d(n,"g","plot"),t.overplot=d(n,"g","overplot"),t.xlines=d(n,"path","xlines-above"),t.ylines=d(n,"path","ylines-above"),t.overlinesAbove=d(n,"g","overlines-above"),d(n,"g","xaxislayer-above"),d(n,"g","yaxislayer-above"),t.overaxesAbove=d(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+a),t.ylines=n.select(".ylines-"+i),t.xaxislayer=n.select(".xaxislayer-"+a),t.yaxislayer=n.select(".yaxislayer-"+i)}o||(p(t.gridlayer,"g",t.xaxis._id),p(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map((function(e){return e[0]})).sort(c.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0)}function m(e,t){if(e){var n={};for(var a in e.each((function(e){var a=e[0];r.select(this).remove(),v(a,t),n[a]=!0})),t._plots)for(var i=t._plots[a].overlays||[],o=0;o<i.length;o++){var l=i[o];n[l.id]&&l.plot.selectAll(".trace").remove()}}}function v(e,t){t._draggers.selectAll("g."+e).remove(),t._defs.select("#clip"+t._uid+e+"plot").remove()}n.name="cartesian",n.attr=["xaxis","yaxis"],n.idRoot=["x","y"],n.idRegex=u.idRegex,n.attrRegex=u.attrRegex,n.attributes=e("./attributes"),n.layoutAttributes=e("./layout_attributes"),n.supplyLayoutDefaults=e("./layout_defaults"),n.transitionAxes=e("./transition_axes"),n.finalizeSubplots=function(e,t){var n,r,a,o=t._subplots,l=o.xaxis,s=o.yaxis,f=o.cartesian,d=f.concat(o.gl2d||[]),p={},h={};for(n=0;n<d.length;n++){var g=d[n].split("y");p[g[0]]=1,h["y"+g[1]]=1}for(n=0;n<l.length;n++)p[r=l[n]]||(a=(e[c.id2name(r)]||{}).anchor,u.idRegex.y.test(a)||(a="y"),f.push(r+a),d.push(r+a),h[a]||(h[a]=1,i.pushUnique(s,a)));for(n=0;n<s.length;n++)h[a=s[n]]||(r=(e[c.id2name(a)]||{}).anchor,u.idRegex.x.test(r)||(r="x"),f.push(r+a),d.push(r+a),p[r]||(p[r]=1,i.pushUnique(l,r)));if(!d.length){for(var m in r="",a="",e)u.attrRegex.test(m)&&("x"===m.charAt(0)?(!r||+m.substr(5)<+r.substr(5))&&(r=m):(!a||+m.substr(5)<+a.substr(5))&&(a=m));r=r?c.name2id(r):"x",a=a?c.name2id(a):"y",l.push(r),s.push(a),f.push(r+a)}},n.plot=function(e,t,n,r){var a,i=e._fullLayout,o=i._subplots.cartesian,l=e.calcdata;if(!Array.isArray(t))for(t=[],a=0;a<l.length;a++)t.push(a);for(a=0;a<o.length;a++){for(var s,c=o[a],u=i._plots[c],f=[],d=0;d<l.length;d++){var p=l[d],g=p[0].trace;g.xaxis+g.yaxis===c&&((-1!==t.indexOf(g.index)||g.carpet)&&(s&&s[0].trace.xaxis+s[0].trace.yaxis===c&&-1!==["tonextx","tonexty","tonext"].indexOf(g.fill)&&-1===f.indexOf(s)&&f.push(s),f.push(p)),s=p)}h(e,u,f,n,r)}},n.clean=function(e,t,n,r){var a,i,o,l=r._plots||{},s=t._plots||{},u=r._subplots||{};if(r._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(o in l)(a=l[o]).plotgroup&&a.plotgroup.remove();var f=r._has&&r._has("gl"),d=t._has&&t._has("gl");if(f&&!d)for(o in l)(a=l[o])._scene&&a._scene.destroy();if(u.xaxis&&u.yaxis){var p=c.listIds({_fullLayout:r});for(i=0;i<p.length;i++){var h=p[i];t[c.id2name(h)]||r._infolayer.selectAll(".g-"+h+"title").remove()}}var g=r._has&&r._has("cartesian"),y=t._has&&t._has("cartesian");if(g&&!y)m(r._cartesianlayer.selectAll(".subplot"),r),r._defs.selectAll(".axesclip").remove(),delete r._axisConstraintGroups;else if(u.cartesian)for(i=0;i<u.cartesian.length;i++){var x=u.cartesian[i];if(!s[x]){var b="."+x+",."+x+"-x,."+x+"-y";r._cartesianlayer.selectAll(b).remove(),v(x,r)}}},n.drawFramework=function(e){var t=e._fullLayout,n=function(e){var t,n,r,a,i,o,l=e._fullLayout,s=l._subplots.cartesian,c=s.length,u=[],f=[];for(t=0;t<c;t++){r=s[t],a=l._plots[r],i=a.xaxis,o=a.yaxis;var d=i._mainAxis,p=o._mainAxis,h=d._id+p._id,g=l._plots[h];a.overlays=[],h!==r&&g?(a.mainplot=h,a.mainplotinfo=g,f.push(r)):(a.mainplot=void 0,a.mainPlotinfo=void 0,u.push(r))}for(t=0;t<f.length;t++)r=f[t],(a=l._plots[r]).mainplotinfo.overlays.push(a);var m=u.concat(f),v=new Array(c);for(t=0;t<c;t++){r=m[t],a=l._plots[r],i=a.xaxis,o=a.yaxis;var y=[r,i.layer,o.layer,i.overlaying||"",o.overlaying||""];for(n=0;n<a.overlays.length;n++)y.push(a.overlays[n].id);v[t]=y}return v}(e),a=t._cartesianlayer.selectAll(".subplot").data(n,String);a.enter().append("g").attr("class",(function(e){return"subplot "+e[0]})),a.order(),a.exit().call(m,t),a.each((function(n){var a=n[0],i=t._plots[a];i.plotgroup=r.select(this),g(e,i),i.draglayer=d(t._draggers,"g",a)}))},n.rangePlot=function(e,t,n){g(e,t),h(e,t,n),o.style(e)},n.toSVG=function(e){var t=e._fullLayout._glimages,n=r.select(e).selectAll(".svg-container");n.filter((function(e,t){return t===n.size()-1})).selectAll(".gl-canvas-context, .gl-canvas-focus").each((function(){var e=this.toDataURL("image/png");t.append("svg:image").attr({xmlns:f.svg,"xlink:href":e,preserveAspectRatio:"none",x:0,y:0,width:this.width,height:this.height})}))},n.updateFx=e("./graph_interact").updateFx},{"../../components/drawing":74,"../../constants/xmlns_namespaces":159,"../../lib":178,"../../registry":269,"../get_data":252,"../plots":256,"./attributes":220,"./axis_ids":225,"./constants":228,"./graph_interact":231,"./layout_attributes":236,"./layout_defaults":237,"./transition_axes":246,d3:16}],236:[function(e,t,n){"use strict";var r=e("../font_attributes"),a=e("../../components/color/attributes"),i=e("../../components/drawing/attributes").dash,o=e("../../lib/extend").extendFlat,l=e("../../plot_api/plot_template").templatedArray,s=(e("../../constants/docs").FORMAT_LINK,e("../../constants/docs").DATE_FORMAT_LINK,e("../../constants/numerical").ONEDAY),c=e("./constants"),u=c.HOUR_PATTERN,f=c.WEEKDAY_PATTERN;t.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:a.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:r({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},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},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},scaleanchor:{valType:"enumerated",values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],dflt:"range",editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:"calc"},rangebreaks:l("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[f,u,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:s},editType:"calc"}),tickmode:{valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:"integer",min:0,dflt:0,editType:"ticks"},tick0:{valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},dtick:{valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},tickvals:{valType:"data_array",editType:"ticks"},ticktext:{valType:"data_array",editType:"ticks"},ticks:{valType:"enumerated",values:["outside","inside",""],editType:"ticks"},tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:{valType:"number",min:0,dflt:5,editType:"ticks"},tickwidth:{valType:"number",min:0,dflt:1,editType:"ticks"},tickcolor:{valType:"color",dflt:a.defaultLine,editType:"ticks"},showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},automargin:{valType:"boolean",dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:o({},i,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"data",editType:"none"},tickfont:r({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks"},tickformatstops:l("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:a.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:{valType:"boolean",editType:"ticks"},gridcolor:{valType:"color",dflt:a.lightLine,editType:"ticks"},gridwidth:{valType:"number",min:0,dflt:1,editType:"ticks"},zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:a.defaultLine,editType:"ticks"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:a.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",c.idRegex.x.toString(),c.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",c.idRegex.x.toString(),c.idRegex.y.toString()],editType:"plot"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},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"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},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"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks"},title:{valType:"string",editType:"ticks"},titlefont:r({editType:"ticks"})}}},{"../../components/color/attributes":51,"../../components/drawing/attributes":73,"../../constants/docs":155,"../../constants/numerical":158,"../../lib/extend":173,"../../plot_api/plot_template":212,"../font_attributes":250,"./constants":228}],237:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color"),i=e("../../components/fx/helpers").isUnifiedHover,o=e("../../components/fx/hovermode_defaults"),l=e("../../plot_api/plot_template"),s=e("../layout_attributes"),c=e("./layout_attributes"),u=e("./type_defaults"),f=e("./axis_defaults"),d=e("./constraints").handleConstraintDefaults,p=e("./position_defaults"),h=e("./axis_ids"),g=h.id2name,m=h.name2id,v=e("./constants").AX_ID_PATTERN,y=e("../../registry"),x=y.traceIs,b=y.getComponentMethod;function _(e,t,n){Array.isArray(e[t])?e[t].push(n):e[t]=[n]}t.exports=function(e,t,n){var h,y,w={},k={},T={},M={},A={},S={},L={},C={},O={},P={};for(h=0;h<n.length;h++){var E=n[h];if(x(E,"cartesian")||x(E,"gl2d")){var z,D;if(E.xaxis)z=g(E.xaxis),_(w,z,E);else if(E.xaxes)for(y=0;y<E.xaxes.length;y++)_(w,g(E.xaxes[y]),E);if(E.yaxis)D=g(E.yaxis),_(w,D,E);else if(E.yaxes)for(y=0;y<E.yaxes.length;y++)_(w,g(E.yaxes[y]),E);"funnel"===E.type?"h"===E.orientation?(z&&(k[z]=!0),D&&(L[D]=!0)):D&&(T[D]=!0):"image"===E.type?(D&&(C[D]=!0),z&&(C[z]=!0)):(D&&(A[D]=!0,S[D]=!0),x(E,"carpet")&&("carpet"!==E.type||E._cheater)||z&&(M[z]=!0)),"carpet"===E.type&&E._cheater&&z&&(k[z]=!0),x(E,"2dMap")&&(O[z]=!0,O[D]=!0),x(E,"oriented")&&(P["h"===E.orientation?D:z]=!0)}}var R=t._subplots,I=R.xaxis,N=R.yaxis,F=r.simpleMap(I,g),B=r.simpleMap(N,g),j=F.concat(B),H=a.background;I.length&&N.length&&(H=r.coerce(e,t,s,"plot_bgcolor"));var q,V,U,G,Z,W=a.combine(H,t.paper_bgcolor);function Y(){var e=w[q]||[];Z._traceIndices=e.map((function(e){return e._expandedIndex})),Z._annIndices=[],Z._shapeIndices=[],Z._imgIndices=[],Z._subplotsWith=[],Z._counterAxes=[],Z._name=Z._attr=q,Z._id=V}function X(e,t){return r.coerce(G,Z,c,e,t)}function $(e,t){return r.coerce2(G,Z,c,e,t)}function Q(e){return"x"===e?N:I}function K(t,n){for(var r="x"===t?F:B,a=[],i=0;i<r.length;i++){var o=r[i];o===n||(e[o]||{}).overlaying||a.push(m(o))}return a}var J={x:Q("x"),y:Q("y")},ee=J.x.concat(J.y),te={},ne=[];function re(){var e=G.matches;v.test(e)&&-1===ee.indexOf(e)&&(te[e]=G.type,ne=Object.keys(te))}var ae=o(e,t,n),ie=i(ae);for(h=0;h<j.length;h++){q=j[h],V=m(q),U=q.charAt(0),r.isPlainObject(e[q])||(e[q]={}),G=e[q],Z=l.newContainer(t,q,U+"axis"),Y();var oe="x"===U&&!M[q]&&k[q]||"y"===U&&!A[q]&&T[q],le="y"===U&&(!S[q]&&L[q]||C[q]),se={letter:U,font:t.font,outerTicks:O[q],showGrid:!P[q],data:w[q]||[],bgColor:W,calendar:t.calendar,automargin:!0,visibleDflt:oe,reverseDflt:le,splomStash:((t._splomAxes||{})[U]||{})[V]};X("uirevision",t.uirevision),u(G,Z,X,se),f(G,Z,X,se,t);var ce=ie&&U===ae.charAt(0),ue=$("spikecolor",ie?Z.color:void 0),fe=$("spikethickness",ie?1.5:void 0),de=$("spikedash",ie?"dot":void 0),pe=$("spikemode",ie?"across":void 0),he=$("spikesnap",ie?"hovered data":void 0);X("showspikes",!!(ce||ue||fe||de||pe||he))||(delete Z.spikecolor,delete Z.spikethickness,delete Z.spikedash,delete Z.spikemode,delete Z.spikesnap),p(G,Z,X,{letter:U,counterAxes:J[U],overlayableAxes:K(U,q),grid:t.grid}),X("title.standoff"),re(),Z._input=G}for(h=0;h<ne.length;){V=ne[h++],U=(q=g(V)).charAt(0),r.isPlainObject(e[q])||(e[q]={}),G=e[q],Z=l.newContainer(t,q,U+"axis"),Y();var ge={letter:U,font:t.font,outerTicks:O[q],showGrid:!P[q],data:[],bgColor:W,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,splomStash:((t._splomAxes||{})[U]||{})[V]};X("uirevision",t.uirevision),Z.type=te[V]||"linear",f(G,Z,X,ge,t),p(G,Z,X,{letter:U,counterAxes:J[U],overlayableAxes:K(U,q),grid:t.grid}),X("fixedrange"),re(),Z._input=G}var me=b("rangeslider","handleDefaults"),ve=b("rangeselector","handleDefaults");for(h=0;h<F.length;h++)q=F[h],G=e[q],Z=t[q],me(e,t,q),"date"===Z.type&&ve(G,Z,t,B,Z.calendar),X("fixedrange");for(h=0;h<B.length;h++){q=B[h],G=e[q],Z=t[q];var ye=t[g(Z.anchor)];X("fixedrange",b("rangeslider","isVisible")(ye))}var xe=t._axisConstraintGroups=[],be=t._axisMatchGroups=[],_e=ee.concat(ne),we=j.concat(r.simpleMap(ne,g));for(h=0;h<we.length;h++){var ke,Te;U=(q=we[h]).charAt(0),G=e[q],Z=t[q],ke="y"===U&&!G.hasOwnProperty("scaleanchor")&&C[q]?Z.anchor:void 0,Te=!G.hasOwnProperty("constrain")&&C[q]?"domain":void 0,d(G,Z,X,{allAxisIds:_e,layoutOut:t,scaleanchorDflt:ke,constrainDflt:Te})}for(h=0;h<be.length;h++){var Me=be[h],Ae=null,Se=null;for(V in Me)(Z=t[g(V)]).matches||(Ae=Z.range,Se=Z.autorange);if(null===Ae||null===Se)for(V in Me){Ae=(Z=t[g(V)]).range,Se=Z.autorange;break}for(V in Me)(Z=t[g(V)]).matches&&(Z.range=Ae.slice(),Z.autorange=Se),Z._matchGroup=Me;if(xe.length)for(V in Me)for(y=0;y<xe.length;y++){var Le=xe[y];for(var Ce in Le)V===Ce&&(r.warn("Axis "+Ce+" is set with both a *scaleanchor* and *matches* constraint; ignoring the scale constraint."),delete Le[Ce],Object.keys(Le).length<2&&xe.splice(y,1))}}}},{"../../components/color":52,"../../components/fx/helpers":88,"../../components/fx/hovermode_defaults":91,"../../lib":178,"../../plot_api/plot_template":212,"../../registry":269,"../layout_attributes":254,"./axis_defaults":224,"./axis_ids":225,"./constants":228,"./constraints":229,"./layout_attributes":236,"./position_defaults":239,"./type_defaults":247}],238:[function(e,t,n){"use strict";var r=e("tinycolor2").mix,a=e("../../components/color/attributes").lightFraction,i=e("../../lib");t.exports=function(e,t,n,o){var l=(o=o||{}).dfltColor;function s(n,r){return i.coerce2(e,t,o.attributes,n,r)}var c=s("linecolor",l),u=s("linewidth");n("showline",o.showLine||!!c||!!u)||(delete t.linecolor,delete t.linewidth);var f=s("gridcolor",r(l,o.bgColor,o.blend||a).toRgbString()),d=s("gridwidth");if(n("showgrid",o.showGrid||!!f||!!d)||(delete t.gridcolor,delete t.gridwidth),!o.noZeroLine){var p=s("zerolinecolor",l),h=s("zerolinewidth");n("zeroline",o.showGrid||!!p||!!h)||(delete t.zerolinecolor,delete t.zerolinewidth)}}},{"../../components/color/attributes":51,"../../lib":178,tinycolor2:35}],239:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib");t.exports=function(e,t,n,i){var o,l,s,c,u=i.counterAxes||[],f=i.overlayableAxes||[],d=i.letter,p=i.grid;p&&(l=p._domains[d][p._axisMap[t._id]],o=p._anchors[t._id],l&&(s=p[d+"side"].split(" ")[0],c=p.domain[d]["right"===s||"top"===s?1:0])),l=l||[0,1],o=o||(r(e.position)?"free":u[0]||"free"),s=s||("x"===d?"bottom":"left"),c=c||0,"free"===a.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(u),dflt:o}},"anchor")&&n("position",c),a.coerce(e,t,{side:{valType:"enumerated",values:"x"===d?["bottom","top"]:["left","right"],dflt:s}},"side");var h=!1;if(f.length&&(h=a.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(f),dflt:!1}},"overlaying")),!h){var g=n("domain",l);g[0]>g[1]-1/4096&&(t.domain=l),a.noneOrAll(e.domain,t.domain,l)}return n("layer"),t}},{"../../lib":178,"fast-isnumeric":18}],240:[function(e,t,n){"use strict";var r=e("../../constants/alignment").FROM_BL;t.exports=function(e,t,n){void 0===n&&(n=r[e.constraintoward||"center"]);var a=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=a[0]+(a[1]-a[0])*n;e.range=e._input.range=[e.l2r(i+(a[0]-i)*t),e.l2r(i+(a[1]-i)*t)]}},{"../../constants/alignment":154}],241:[function(e,t,n){"use strict";var r=e("polybooljs"),a=e("../../registry"),i=e("../../components/drawing").dashStyle,o=e("../../components/color"),l=e("../../components/fx"),s=e("../../components/fx/helpers").makeEventData,c=e("../../components/dragelement/helpers"),u=c.freeMode,f=c.rectMode,d=c.drawMode,p=c.openMode,h=c.selectMode,g=e("../../components/shapes/draw_newshape/display_outlines"),m=e("../../components/shapes/draw_newshape/helpers").handleEllipse,v=e("../../components/shapes/draw_newshape/newshapes"),y=e("../../lib"),x=e("../../lib/polygon"),b=e("../../lib/throttle"),_=e("./axis_ids").getFromId,w=e("../../lib/clear_gl_canvases"),k=e("../../plot_api/subroutines").redrawReglTraces,T=e("./constants"),M=T.MINSELECT,A=x.filter,S=x.tester,L=e("./handle_outline").clearSelect,C=e("./helpers"),O=C.p2r,P=C.axValue,E=C.getTransform;function z(e,t,n,r,a,i,o){var l,s,c,u,f,d,h,m,v,y=t._hoverdata,x=t._fullLayout.clickmode.indexOf("event")>-1,b=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(y)){N(e,t,i);var _=function(e,t){var n,r,a=e[0],i=-1,o=[];for(r=0;r<t.length;r++)if(n=t[r],a.fullData._expandedIndex===n.cd[0].trace._expandedIndex){if(!0===a.hoverOnBox)break;void 0!==a.pointNumber?i=a.pointNumber:void 0!==a.binNumber&&(i=a.binNumber,o=a.pointNumbers);break}return{pointNumber:i,pointNumbers:o,searchInfo:n}}(y,l=B(t,n,r,a));if(_.pointNumbers.length>0?function(e,t){var n,r,a,i=[];for(a=0;a<e.length;a++)(n=e[a]).cd[0].trace.selectedpoints&&n.cd[0].trace.selectedpoints.length>0&&i.push(n);if(1===i.length&&i[0]===t.searchInfo&&(r=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(a=0;a<t.pointNumbers.length;a++)if(r.selectedpoints.indexOf(t.pointNumbers[a])<0)return!1;return!0}return!1}(l,_):function(e){var t,n,r,a=0;for(r=0;r<e.length;r++)if(t=e[r],(n=t.cd[0].trace).selectedpoints){if(n.selectedpoints.length>1)return!1;if((a+=n.selectedpoints.length)>1)return!1}return 1===a}(l)&&(d=j(_))){for(o&&o.remove(),v=0;v<l.length;v++)(s=l[v])._module.selectPoints(s,!1);H(t,l),F(i),x&&t.emit("plotly_deselect",null)}else{for(h=e.shiftKey&&(void 0!==d?d:j(_)),c=function(e,t,n){return{pointNumber:e,searchInfo:t,subtract:n}}(_.pointNumber,_.searchInfo,h),u=I(i.selectionDefs.concat([c])),v=0;v<l.length;v++)if(f=q(l[v]._module.selectPoints(l[v],u),l[v]),b.length)for(var w=0;w<f.length;w++)b.push(f[w]);else b=f;if(H(t,l,m={points:b}),c&&i&&i.selectionDefs.push(c),o){var k=i.mergedPolygons,T=p(i.dragmode);g(V(k,T),o,i)}x&&t.emit("plotly_selected",m)}}}function D(e){return"pointNumber"in e&&"searchInfo"in e}function R(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,n,r,a){var i=e.searchInfo.cd[0].trace._expandedIndex;return a.cd[0].trace._expandedIndex===i&&r===e.pointNumber},isRect:!1,degenerate:!1,subtract:e.subtract}}function I(e){for(var t=[],n=D(e[0])?0:e[0][0][0],r=n,a=D(e[0])?0:e[0][0][1],i=a,o=0;o<e.length;o++)if(D(e[o]))t.push(R(e[o]));else{var l=x.tester(e[o]);l.subtract=e[o].subtract,t.push(l),n=Math.min(n,l.xmin),r=Math.max(r,l.xmax),a=Math.min(a,l.ymin),i=Math.max(i,l.ymax)}return{xmin:n,xmax:r,ymin:a,ymax:i,pts:[],contains:function(e,n,r,a){for(var i=!1,o=0;o<t.length;o++)t[o].contains(e,n,r,a)&&(i=!1===t[o].subtract);return i},isRect:!1,degenerate:!1}}function N(e,t,n){t._fullLayout._drawing=!1;var r=t._fullLayout,a=n.plotinfo,i=n.dragmode,o=r._lastSelectedSubplot&&r._lastSelectedSubplot===a.id,l=(e.shiftKey||e.altKey)&&!(d(i)&&p(i));o&&l&&a.selection&&a.selection.selectionDefs&&!n.selectionDefs?(n.selectionDefs=a.selection.selectionDefs,n.mergedPolygons=a.selection.mergedPolygons):l&&a.selection||F(n),o||(L(t),r._lastSelectedSubplot=a.id)}function F(e){var t=e.dragmode,n=e.plotinfo,r=e.gd;if(r._fullLayout._activeShapeIndex>=0&&r._fullLayout._deactivateShape(r),d(t)){var i=r._fullLayout._zoomlayer.selectAll(".select-outline-"+n.id);if(i&&r._fullLayout._drawing){var o=v(i,e);o&&a.call("_guiRelayout",r,{shapes:o}),r._fullLayout._drawing=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function B(e,t,n,r){var a,i,o,l=[],s=t.map((function(e){return e._id})),c=n.map((function(e){return e._id}));for(o=0;o<e.calcdata.length;o++)if(!0===(i=(a=e.calcdata[o])[0].trace).visible&&i._module&&i._module.selectPoints)if(!r||i.subplot!==r&&i.geo!==r)if("splom"===i.type&&i._xaxes[s[0]]&&i._yaxes[c[0]]){var u=d(i._module,a,t[0],n[0]);u.scene=e._fullLayout._splomScenes[i.uid],l.push(u)}else if("sankey"===i.type){var f=d(i._module,a,t[0],n[0]);l.push(f)}else{if(-1===s.indexOf(i.xaxis))continue;if(-1===c.indexOf(i.yaxis))continue;l.push(d(i._module,a,_(e,i.xaxis),_(e,i.yaxis)))}else l.push(d(i._module,a,t[0],n[0]));return l;function d(e,t,n,r){return{_module:e,cd:t,xaxis:n,yaxis:r}}}function j(e){var t=e.searchInfo.cd[0].trace,n=e.pointNumber,r=e.pointNumbers,a=r.length>0?r[0]:n;return!!t.selectedpoints&&t.selectedpoints.indexOf(a)>-1}function H(e,t,n){var r,i,o,l;for(r=0;r<t.length;r++){var s=t[r].cd[0].trace._fullInput,c=e._fullLayout._tracePreGUI[s.uid]||{};void 0===c.selectedpoints&&(c.selectedpoints=s._input.selectedpoints||null)}if(n){var u=n.points||[];for(r=0;r<t.length;r++)(l=t[r].cd[0].trace)._input.selectedpoints=l._fullInput.selectedpoints=[],l._fullInput!==l&&(l.selectedpoints=[]);for(r=0;r<u.length;r++){var f=u[r],d=f.data,p=f.fullData;f.pointIndices?([].push.apply(d.selectedpoints,f.pointIndices),l._fullInput!==l&&[].push.apply(p.selectedpoints,f.pointIndices)):(d.selectedpoints.push(f.pointIndex),l._fullInput!==l&&p.selectedpoints.push(f.pointIndex))}}else for(r=0;r<t.length;r++)delete(l=t[r].cd[0].trace).selectedpoints,delete l._input.selectedpoints,l._fullInput!==l&&delete l._fullInput.selectedpoints;var h=!1;for(r=0;r<t.length;r++){l=(o=(i=t[r]).cd)[0].trace,a.traceIs(l,"regl")&&(h=!0);var g=i._module,m=g.styleOnSelect||g.style;m&&(m(e,o,o[0].node3),o[0].nodeRangePlot3&&m(e,o,o[0].nodeRangePlot3))}h&&(w(e),k(e))}function q(e,t){if(Array.isArray(e))for(var n=t.cd,r=t.cd[0].trace,a=0;a<e.length;a++)e[a]=s(e[a],r,n);return e}function V(e,t){for(var n=[],r=0;r<e.length;r++){n[r]=[];for(var a=0;a<e[r].length;a++){n[r][a]=[],n[r][a][0]=a?"L":"M";for(var i=0;i<e[r][a].length;i++)n[r][a].push(e[r][a][i])}t||n[r].push(["Z",n[r][0][1],n[r][0][2]])}return n}t.exports={prepSelect:function(e,t,n,a,s){var c,v,x,_,w,k,L,C=u(s),D=f(s),R=p(s),j=d(s),U=h(s),G="drawcircle"===s,Z="drawline"===s||G,W=a.gd,Y=W._fullLayout,X=Y._zoomlayer,$=a.element.getBoundingClientRect(),Q=a.plotinfo,K=E(Q),J=t-$.left,ee=n-$.top,te=J,ne=ee,re="M"+J+","+ee,ae=a.xaxes[0]._length,ie=a.yaxes[0]._length,oe=a.xaxes.concat(a.yaxes),le=e.altKey&&!(d(s)&&R);N(e,W,a),C&&(c=A([[J,ee]],T.BENDPX));var se=X.selectAll("path.select-outline-"+Q.id).data(j?[0]:[1,2]),ce=Y.newshape;se.enter().append("path").attr("class",(function(e){return"select-outline select-outline-"+e+" select-outline-"+Q.id})).style(j?{opacity:ce.opacity/2,fill:R?void 0:ce.fillcolor,stroke:ce.line.color,"stroke-dasharray":i(ce.line.dash,ce.line.width),"stroke-width":ce.line.width+"px"}:{}).attr("fill-rule",ce.fillrule).classed("cursor-move",!!j).attr("transform",K).attr("d",re+"Z");var ue,fe=X.append("path").attr("class","zoombox-corners").style({fill:o.background,stroke:o.defaultLine,"stroke-width":1}).attr("transform",K).attr("d","M0,0Z"),de=Y._uid+T.SELECTID,pe=[],he=B(W,a.xaxes,a.yaxes,a.subplot);function ge(e,t){return e-t}ue=Q.fillRangeItems?Q.fillRangeItems:D?function(e,t){var n=e.range={};for(w=0;w<oe.length;w++){var r=oe[w],a=r._id.charAt(0);n[r._id]=[O(r,t[a+"min"]),O(r,t[a+"max"])].sort(ge)}}:function(e,t,n){var r=e.lassoPoints={};for(w=0;w<oe.length;w++){var a=oe[w];r[a._id]=n.filtered.map(P(a))}},a.moveFn=function(e,t){te=Math.max(0,Math.min(ae,e+J)),ne=Math.max(0,Math.min(ie,t+ee));var n=Math.abs(te-J),i=Math.abs(ne-ee);if(D){var o,l,s;if(U){var u=Y.selectdirection;switch(o="any"===u?i<Math.min(.6*n,M)?"h":n<Math.min(.6*i,M)?"v":"d":u){case"h":l=G?ie/2:0,s=ie;break;case"v":l=G?ae/2:0,s=ae}}if(j)switch(Y.newshape.drawdirection){case"vertical":o="h",l=G?ie/2:0,s=ie;break;case"horizontal":o="v",l=G?ae/2:0,s=ae;break;case"ortho":n<i?(o="h",l=ee,s=ne):(o="v",l=J,s=te);break;default:o="d"}"h"===o?((_=Z?m(G,[te,l],[te,s]):[[J,l],[J,s],[te,s],[te,l]]).xmin=Z?te:Math.min(J,te),_.xmax=Z?te:Math.max(J,te),_.ymin=Math.min(l,s),_.ymax=Math.max(l,s),fe.attr("d","M"+_.xmin+","+(ee-M)+"h-4v"+2*M+"h4ZM"+(_.xmax-1)+","+(ee-M)+"h4v"+2*M+"h-4Z")):"v"===o?((_=Z?m(G,[l,ne],[s,ne]):[[l,ee],[l,ne],[s,ne],[s,ee]]).xmin=Math.min(l,s),_.xmax=Math.max(l,s),_.ymin=Z?ne:Math.min(ee,ne),_.ymax=Z?ne:Math.max(ee,ne),fe.attr("d","M"+(J-M)+","+_.ymin+"v-4h"+2*M+"v4ZM"+(J-M)+","+(_.ymax-1)+"v4h"+2*M+"v-4Z")):"d"===o&&((_=Z?m(G,[J,ee],[te,ne]):[[J,ee],[J,ne],[te,ne],[te,ee]]).xmin=Math.min(J,te),_.xmax=Math.max(J,te),_.ymin=Math.min(ee,ne),_.ymax=Math.max(ee,ne),fe.attr("d","M0,0Z"))}else C&&(c.addPt([te,ne]),_=c.filtered);a.selectionDefs&&a.selectionDefs.length?(x=function(e,t,n){return n?r.difference({regions:e,inverted:!1},{regions:[t],inverted:!1}).regions:r.union({regions:e,inverted:!1},{regions:[t],inverted:!1}).regions}(a.mergedPolygons,_,le),_.subtract=le,v=I(a.selectionDefs.concat([_]))):(x=[_],v=S(_)),g(V(x,R),se,a),U&&b.throttle(de,T.SELECTDELAY,(function(){var e;pe=[];var t,n=[];for(w=0;w<he.length;w++)if(t=(k=he[w])._module.selectPoints(k,v),n.push(t),e=q(t,k),pe.length)for(var r=0;r<e.length;r++)pe.push(e[r]);else pe=e;H(W,he,L={points:pe}),ue(L,_,c),a.gd.emit("plotly_selecting",L)}))},a.clickFn=function(e,t){if(fe.remove(),W._fullLayout._activeShapeIndex>=0)W._fullLayout._deactivateShape(W);else if(!j){var n=Y.clickmode;b.done(de).then((function(){if(b.clear(de),2===e){for(se.remove(),w=0;w<he.length;w++)(k=he[w])._module.selectPoints(k,!1);H(W,he),F(a),W.emit("plotly_deselect",null)}else n.indexOf("select")>-1&&z(t,W,a.xaxes,a.yaxes,a.subplot,a,se),"event"===n&&W.emit("plotly_selected",void 0);l.click(W,t)})).catch(y.error)}},a.doneFn=function(){fe.remove(),b.done(de).then((function(){b.clear(de),a.gd.emit("plotly_selected",L),_&&a.selectionDefs&&(_.subtract=le,a.selectionDefs.push(_),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,x)),a.doneFnCompleted&&a.doneFnCompleted(pe)})).catch(y.error),j&&F(a)}},clearSelect:L,clearSelectionsCache:F,selectOnClick:z}},{"../../components/color":52,"../../components/dragelement/helpers":70,"../../components/drawing":74,"../../components/fx":92,"../../components/fx/helpers":88,"../../components/shapes/draw_newshape/display_outlines":137,"../../components/shapes/draw_newshape/helpers":138,"../../components/shapes/draw_newshape/newshapes":139,"../../lib":178,"../../lib/clear_gl_canvases":167,"../../lib/polygon":190,"../../lib/throttle":200,"../../plot_api/subroutines":213,"../../registry":269,"./axis_ids":225,"./constants":228,"./handle_outline":232,"./helpers":233,polybooljs:26}],242:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("../../lib"),o=i.cleanNumber,l=i.ms2DateTime,s=i.dateTime2ms,c=i.ensureNumber,u=i.isArrayOrTypedArray,f=e("../../constants/numerical"),d=f.FP_SAFE,p=f.BADNUM,h=f.LOG_CLIP,g=f.ONEDAY,m=f.ONEHOUR,v=f.ONEMIN,y=f.ONESEC,x=e("./axis_ids"),b=e("./constants"),_=b.HOUR_PATTERN,w=b.WEEKDAY_PATTERN;function k(e){return Math.pow(10,e)}function T(e){return null!=e}t.exports=function(e,t){t=t||{};var n=e._id||"x",f=n.charAt(0);function M(t,n){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&n&&e.range&&2===e.range.length){var r=e.range[0],a=e.range[1];return.5*(r+a-2*h*Math.abs(r-a))}return p}function A(t,n,r){var o=s(t,r||e.calendar);if(o===p){if(!a(t))return p;t=+t;var l=Math.floor(10*i.mod(t+.05,1)),c=Math.round(t-l/10);o=s(new Date(c))+l/10}return o}function S(t,n,r){return l(t,n,r||e.calendar)}function L(t){return e._categories[Math.round(t)]}function C(t){if(T(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"==typeof t?String(t):t);var n=e._categories.length-1;return e._categoriesMap[t]=n,n}return p}function O(t){if(e._categoriesMap)return e._categoriesMap[t]}function P(e){var t=O(e);return void 0!==t?t:a(e)?+e:void 0}function E(e,t,n){return r.round(n+t*e,2)}function z(e,t,n){return(e-n)/t}var D=function(t){return a(t)?E(t,e._m,e._b):p},R=function(t){return z(t,e._m,e._b)};if(e.rangebreaks){var I="y"===f;D=function(t){if(!a(t))return p;var n=e._rangebreaks.length;if(!n)return E(t,e._m,e._b);var r=I;e.range[0]>e.range[1]&&(r=!r);for(var i=r?-1:1,o=i*t,l=0,s=0;s<n;s++){var c=i*e._rangebreaks[s].min,u=i*e._rangebreaks[s].max;if(o<c)break;if(!(o>u)){l=o<(c+u)/2?s:s+1;break}l=s+1}var f=e._B[l]||0;return isFinite(f)?E(t,e._m2,f):0},R=function(t){var n=e._rangebreaks.length;if(!n)return z(t,e._m,e._b);for(var r=0,a=0;a<n&&!(t<e._rangebreaks[a].pmin);a++)t>e._rangebreaks[a].pmax&&(r=a+1);return z(t,e._m2,e._B[r])}}e.c2l="log"===e.type?M:c,e.l2c="log"===e.type?k:c,e.l2p=D,e.p2l=R,e.c2p="log"===e.type?function(e,t){return D(M(e,t))}:D,e.p2c="log"===e.type?function(e){return k(R(e))}:R,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=o,e.c2d=e.c2r=e.l2d=e.l2r=c,e.d2p=e.r2p=function(t){return e.l2p(o(t))},e.p2d=e.p2r=R,e.cleanPos=c):"log"===e.type?(e.d2r=e.d2l=function(e,t){return M(o(e),t)},e.r2d=e.r2c=function(e){return k(o(e))},e.d2c=e.r2l=o,e.c2d=e.l2r=c,e.c2r=M,e.l2d=k,e.d2p=function(t,n){return e.l2p(e.d2r(t,n))},e.p2d=function(e){return k(R(e))},e.r2p=function(t){return e.l2p(o(t))},e.p2r=R,e.cleanPos=c):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=A,e.c2d=e.c2r=e.l2d=e.l2r=S,e.d2p=e.r2p=function(t,n,r){return e.l2p(A(t,0,r))},e.p2d=e.p2r=function(e,t,n){return S(R(e),t,n)},e.cleanPos=function(t){return i.cleanDate(t,p,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=C,e.r2d=e.c2d=e.l2d=L,e.d2r=e.d2l_noadd=P,e.r2c=function(t){var n=P(t);return void 0!==n?n:e.fraction2r(.5)},e.l2r=e.c2r=c,e.r2l=P,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return L(R(e))},e.r2p=e.d2p,e.p2r=R,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:c(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=L,e.d2r=e.d2l_noadd=P,e.r2c=function(t){var n=P(t);return void 0!==n?n:e.fraction2r(.5)},e.r2c_just_indices=O,e.l2r=e.c2r=c,e.r2l=P,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return L(R(e))},e.r2p=e.d2p,e.p2r=R,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:c(e)},e.setupMultiCategory=function(r){var a,o,l=e._traceIndices,s=t._axisMatchGroups;if(s&&s.length&&0===e._categories.length)for(a=0;a<s.length;a++){var c=s[a];if(c[n])for(var d in c)if(d!==n){var p=t[x.id2name(d)];l=l.concat(p._traceIndices)}}var h=[[0,{}],[0,{}]],g=[];for(a=0;a<l.length;a++){var m=r[l[a]];if(f in m){var v=m[f],y=m._length||i.minRowLength(v);if(u(v[0])&&u(v[1]))for(o=0;o<y;o++){var b=v[0][o],_=v[1][o];T(b)&&T(_)&&(g.push([b,_]),b in h[0][1]||(h[0][1][b]=h[0][0]++),_ in h[1][1]||(h[1][1][_]=h[1][0]++))}}}for(g.sort((function(e,t){var n=h[0][1],r=n[e[0]]-n[t[0]];if(r)return r;var a=h[1][1];return a[e[1]]-a[t[1]]})),a=0;a<g.length;a++)C(g[a])}),e.fraction2r=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return e.l2r(n+t*(r-n))},e.r2fraction=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return(e.r2l(t)-n)/(r-n)},e.cleanRange=function(t,n){n||(n={}),t||(t="range");var r,o,l=i.nestedProperty(e,t).get();if(o=(o="date"===e.type?i.dfltRange(e.calendar):"y"===f?b.DFLTRANGEY:n.dfltRange||b.DFLTRANGEX).slice(),"tozero"!==e.rangemode&&"nonnegative"!==e.rangemode||(o[0]=0),l&&2===l.length)for("date"!==e.type||e.autorange||(l[0]=i.cleanDate(l[0],p,e.calendar),l[1]=i.cleanDate(l[1],p,e.calendar)),r=0;r<2;r++)if("date"===e.type){if(!i.isDateTime(l[r],e.calendar)){e[t]=o;break}if(e.r2l(l[0])===e.r2l(l[1])){var s=i.constrain(e.r2l(l[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);l[0]=e.l2r(s-1e3),l[1]=e.l2r(s+1e3);break}}else{if(!a(l[r])){if(!a(l[1-r])){e[t]=o;break}l[r]=l[1-r]*(r?10:.1)}if(l[r]<-d?l[r]=-d:l[r]>d&&(l[r]=d),l[0]===l[1]){var c=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=c,l[1]+=c}}else i.nestedProperty(e,t).set(o)},e.setScale=function(n){var r=t._size;if(e.overlaying){var a=x.getFromId({_fullLayout:t},e.overlaying);e.domain=a.domain}var i=n&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var l,s,c=e.r2l(e[i][0],o),u=e.r2l(e[i][1],o),d="y"===f;if(d?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks&&(e._rangebreaks=e.locateBreaks(Math.min(c,u),Math.max(c,u)),e._rangebreaks.length)){for(l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._lBreaks+=Math.abs(s.max-s.min);var p=d;c>u&&(p=!p),p&&e._rangebreaks.reverse();var h=p?-1:1;for(e._m2=h*e._length/(Math.abs(u-c)-e._lBreaks),e._B.push(-e._m2*(d?u:c)),l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._B.push(e._B[e._B.length-1]-h*e._m2*(s.max-s.min));for(l=0;l<e._rangebreaks.length;l++)(s=e._rangebreaks[l]).pmin=D(s.min),s.pmax=D(s.max)}if(!isFinite(e._m)||!isFinite(e._b)||e._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},e.maskBreaks=function(t){for(var n,r,a,l,s,c=e.rangebreaks||[],u=0;u<c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var d=f.pattern;switch(r=(n=i.simpleMap(f.bounds,d?o:e.d2c))[0],a=n[1],d){case w:l=(s=new Date(t)).getUTCDay(),r>a&&(a+=7,l<r&&(l+=7));break;case _:l=(s=new Date(t)).getUTCHours()+(s.getUTCMinutes()/60+s.getUTCSeconds()/3600+s.getUTCMilliseconds()/36e5),r>a&&(a+=24,l<r&&(l+=24));break;case"":l=t}if(l>=r&&l<a)return p}else for(var h=i.simpleMap(f.values,e.d2c).sort(i.sorterAsc),g=0;g<h.length;g++)if(a=(r=h[g])+f.dvalue,t>=r&&t<a)return p}return t},e.locateBreaks=function(t,n){var r,a,l,s,c=[];if(!e.rangebreaks)return c;var u=e.rangebreaks.slice().sort((function(e,t){return e.pattern===w&&t.pattern===_?-1:t.pattern===w&&e.pattern===_?1:0})),f=function(e,r){if((e=i.constrain(e,t,n))!==(r=i.constrain(r,t,n))){for(var a=!0,o=0;o<c.length;o++){var l=c[o];e>l.max||r<l.min||(e<l.min&&(l.min=e),r>l.max&&(l.max=r),a=!1)}a&&c.push({min:e,max:r})}};for(r=0;r<u.length;r++){var d=u[r];if(d.enabled)if(d.bounds){var p=t,h=n;d.pattern&&(p=Math.floor(p)),l=(a=i.simpleMap(d.bounds,d.pattern?o:e.r2l))[0],s=a[1];var x,b,k=new Date(p);switch(d.pattern){case w:b=7*g,x=(s-l+(s<l?7:0))*g,p+=l*g-(k.getUTCDay()*g+k.getUTCHours()*m+k.getUTCMinutes()*v+k.getUTCSeconds()*y+k.getUTCMilliseconds());break;case _:b=g,x=(s-l+(s<l?24:0))*m,p+=l*m-(k.getUTCHours()*m+k.getUTCMinutes()*v+k.getUTCSeconds()*y+k.getUTCMilliseconds());break;default:p=Math.min(a[0],a[1]),x=b=(h=Math.max(a[0],a[1]))-p}for(var T=p;T<h;T+=b)f(T,T+x)}else for(var M=i.simpleMap(d.values,e.d2c),A=0;A<M.length;A++)f(l=M[A],s=l+d.dvalue)}return c.sort((function(e,t){return e.min-t.min})),c},e.makeCalcdata=function(t,n){var r,a,o,l,s=e.type,c="date"===s&&t[n+"calendar"];if(n in t){if(r=t[n],l=t._length||i.minRowLength(r),i.isTypedArray(r)&&("linear"===s||"log"===s)){if(l===r.length)return r;if(r.subarray)return r.subarray(0,l)}if("multicategory"===s)return function(e,t){for(var n=new Array(t),r=0;r<t;r++){var a=(e[0]||[])[r],i=(e[1]||[])[r];n[r]=O([a,i])}return n}(r,l);for(a=new Array(l),o=0;o<l;o++)a[o]=e.d2c(r[o],0,c)}else{var u=n+"0"in t?e.d2c(t[n+"0"],0,c):0,f=t["d"+n]?Number(t["d"+n]):1;for(r=t[{x:"y",y:"x"}[n]],l=t._length||r.length,a=new Array(l),o=0;o<l;o++)a[o]=u+o*f}if(e.rangebreaks)for(o=0;o<l;o++)a[o]=e.maskBreaks(a[o]);return a},e.isValidRange=function(t){return Array.isArray(t)&&2===t.length&&a(e.r2l(t[0]))&&a(e.r2l(t[1]))},e.isPtWithinRange=function(t,n){var r=e.c2l(t[f],null,n),a=e.r2l(e.range[0]),i=e.r2l(e.range[1]);return a<i?a<=r&&r<=i:i<=r&&r<=a},e.clearCalc=function(){var r=function(){e._categories=[],e._categoriesMap={}},a=t._axisMatchGroups;if(a&&a.length){for(var i=!1,o=0;o<a.length;o++){var l=a[o];if(l[n]){i=!0;var s=null,c=null;for(var u in l){var f=t[x.id2name(u)];if(f._categories){s=f._categories,c=f._categoriesMap;break}}s&&c?(e._categories=s,e._categoriesMap=c):r();break}}i||r()}else r();if(e._initialCategories)for(var d=0;d<e._initialCategories.length;d++)C(e._initialCategories[d])},e.sortByInitialCategories=function(){var r=[];if(e._categories=[],e._categoriesMap={},e._initialCategories)for(var a=0;a<e._initialCategories.length;a++)C(e._initialCategories[a]);r=r.concat(e._traceIndices);var i=e._matchGroup;for(var o in i)if(n!==o){var l=t[x.id2name(o)];l._categories=e._categories,l._categoriesMap=e._categoriesMap,r=r.concat(l._traceIndices)}return r};var N=t._d3locale;"date"===e.type&&(e._dateFormat=N?N.timeFormat.utc:r.time.format.utc,e._extraFormat=t._extraFormat),e._separators=t.separators,e._numFormat=N?N.numberFormat:r.format,delete e._minDtick,delete e._forceTick0}},{"../../constants/numerical":158,"../../lib":178,"./axis_ids":225,"./constants":228,d3:16,"fast-isnumeric":18}],243:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes"),i=e("../array_container_defaults");function o(e){var t=["showexponent","showtickprefix","showticksuffix"].filter((function(t){return void 0!==e[t]}));if(t.every((function(n){return e[n]===e[t[0]]}))||1===t.length)return e[t[0]]}function l(e,t){function n(n,i){return r.coerce(e,t,a.tickformatstops,n,i)}n("enabled")&&(n("dtickrange"),n("value"))}t.exports=function(e,t,n,s,c,u){u&&1!==u.pass||function(e,t,n,r,a){var i=o(e);n("tickprefix")&&n("showtickprefix",i),n("ticksuffix",a.tickSuffixDflt)&&n("showticksuffix",i)}(e,0,n,0,c),u&&2!==u.pass||function(e,t,n,s,c){var u=o(e);if(n("tickprefix")&&n("showtickprefix",u),n("ticksuffix",c.tickSuffixDflt)&&n("showticksuffix",u),n("showticklabels")){var f=c.font||{},d=t.color,p=d&&d!==a.color.dflt?d:f.color;if(r.coerceFont(n,"tickfont",{family:f.family,size:f.size,color:p}),n("tickangle"),"category"!==s){var h=n("tickformat");i(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:l}),t.tickformatstops.length||delete t.tickformatstops,h||"date"===s||(n("showexponent",u),n("exponentformat"),n("separatethousands"))}}}(e,t,n,s,c)}},{"../../lib":178,"../array_container_defaults":218,"./layout_attributes":236}],244:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t,n,i){var o=r.coerce2(e,t,a,"ticklen"),l=r.coerce2(e,t,a,"tickwidth"),s=r.coerce2(e,t,a,"tickcolor",t.color);n("ticks",i.outerTicks||o||l||s?"outside":"")||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},{"../../lib":178,"./layout_attributes":236}],245:[function(e,t,n){"use strict";var r=e("./clean_ticks");t.exports=function(e,t,n,a){function i(n){var r=e[n];return void 0!==r?r:(t._template||{})[n]}var o,l=i("tick0"),s=i("dtick"),c=i("tickvals");if("auto"===(o="array"!==i("tickmode")||"log"!==a&&"date"!==a?n("tickmode",Array.isArray(c)?"array":s?"linear":"auto"):t.tickmode="auto"))n("nticks");else if("linear"===o){var u=t.dtick=r.dtick(s,a);t.tick0=r.tick0(l,a,t.calendar,u)}else"multicategory"!==a&&(void 0===n("tickvals")?t.tickmode="auto":n("ticktext"))}},{"./clean_ticks":227}],246:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),i=e("../../lib"),o=e("../../components/drawing"),l=e("./axes");t.exports=function(e,t,n,s){var c=e._fullLayout;if(0!==t.length){var u,f,d,p;s&&(u=s());var h=r.ease(n.easing);return e._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var n={},r=0;r<t.length;r++){var i=t[r],o=i.plotinfo.xaxis,l=i.plotinfo.yaxis;i.xr0&&(n[o._name+".range"]=i.xr0.slice()),i.yr0&&(n[l._name+".range"]=i.yr0.slice())}return a.call("relayout",e,n).then((function(){for(var e=0;e<t.length;e++)g(t[e].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function r(){d=Date.now();for(var i=Math.min(1,(d-f)/n.duration),o=h(i),l=0;l<t.length;l++)m(t[l],o);d-f>n.duration?(function(){for(var n={},r=0;r<t.length;r++){var i=t[r],o=i.plotinfo.xaxis,l=i.plotinfo.yaxis;i.xr1&&(n[o._name+".range"]=i.xr1.slice()),i.yr1&&(n[l._name+".range"]=i.yr1.slice())}u&&u(),a.call("relayout",e,n).then((function(){for(var e=0;e<t.length;e++)g(t[e].plotinfo)}))}(),p=window.cancelAnimationFrame(r)):p=window.requestAnimationFrame(r)})),Promise.resolve()}function g(e){var t=e.xaxis,n=e.yaxis;c._defs.select("#"+e.clipId+"> rect").call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,n._offset).call(o.setScale,1,1);var r=e.plot.selectAll(".scatterlayer .trace");r.selectAll(".point").call(o.setPointGroupScale,1,1),r.selectAll(".textpoint").call(o.setTextPointsScale,1,1),r.call(o.hideOutsideRangePoints,e)}function m(t,n){var r=t.plotinfo,a=r.xaxis,s=r.yaxis,c=a._length,u=s._length,f=!!t.xr1,d=!!t.yr1,p=[];if(f){var h=i.simpleMap(t.xr0,a.r2l),g=i.simpleMap(t.xr1,a.r2l),m=h[1]-h[0],v=g[1]-g[0];p[0]=(h[0]*(1-n)+n*g[0]-h[0])/(h[1]-h[0])*c,p[2]=c*(1-n+n*v/m),a.range[0]=a.l2r(h[0]*(1-n)+n*g[0]),a.range[1]=a.l2r(h[1]*(1-n)+n*g[1])}else p[0]=0,p[2]=c;if(d){var y=i.simpleMap(t.yr0,s.r2l),x=i.simpleMap(t.yr1,s.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-n)+n*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-n+n*_/b),s.range[0]=a.l2r(y[0]*(1-n)+n*x[0]),s.range[1]=s.l2r(y[1]*(1-n)+n*x[1])}else p[1]=0,p[3]=u;l.drawOne(e,a,{skipTitle:!0}),l.drawOne(e,s,{skipTitle:!0}),l.redrawComponents(e,[a._id,s._id]);var w=f?c/p[2]:1,k=d?u/p[3]:1,T=f?p[0]:0,M=d?p[1]:0,A=f?p[0]/p[2]*c:0,S=d?p[1]/p[3]*u:0,L=a._offset-A,C=s._offset-S;r.clipRect.call(o.setTranslate,T,M).call(o.setScale,1/w,1/k),r.plot.call(o.setTranslate,L,C).call(o.setScale,w,k),o.setPointGroupScale(r.zoomScalePts,1/w,1/k),o.setTextPointsScale(r.zoomScaleTxt,1/w,1/k)}l.redrawComponents(e)}},{"../../components/drawing":74,"../../lib":178,"../../registry":269,"./axes":222,d3:16}],247:[function(e,t,n){"use strict";var r=e("../../registry").traceIs,a=e("./axis_autotype");function i(e){return{v:"x",h:"y"}[e.orientation||"v"]}function o(e,t){var n=i(e),a=r(e,"box-violin"),o=r(e._fullInput||{},"candlestick");return a&&!o&&t===n&&void 0===e[n]&&void 0===e[n+"0"]}t.exports=function(e,t,n,l){"-"===n("type",(l.splomStash||{}).type)&&(function(e,t){if("-"===e.type){var n,l=e._id,s=l.charAt(0);-1!==l.indexOf("scene")&&(l=s);var c=function(e,t,n){for(var r=0;r<e.length;r++){var a=e[r];if("splom"===a.type&&a._length>0&&(a["_"+n+"axes"]||{})[t])return a;if((a[n+"axis"]||n)===t){if(o(a,n))return a;if((a[n]||[]).length||a[n+"0"])return a}}}(t,l,s);if(c)if("histogram"!==c.type||s!=={v:"y",h:"x"}[c.orientation||"v"]){var u=s+"calendar",f=c[u],d={noMultiCategory:!r(c,"cartesian")||r(c,"noMultiCategory")};if("box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(d.noMultiCategory=!0),o(c,s)){var p=i(c),h=[];for(n=0;n<t.length;n++){var g=t[n];r(g,"box-violin")&&(g[s+"axis"]||s)===l&&(void 0!==g[p]?h.push(g[p][0]):void 0!==g.name?h.push(g.name):h.push("text"),g[u]!==f&&(f=void 0))}e.type=a(h,f,d)}else if("splom"===c.type){var m=c.dimensions[c._axesDim[l]];m.visible&&(e.type=a(m.values,f,d))}else e.type=a(c[s]||[c[s+"0"]],f,d)}else e.type="linear"}}(t,l.data),"-"===t.type?t.type="linear":e.type=t.type)}},{"../../registry":269,"./axis_autotype":223}],248:[function(e,t,n){"use strict";var r=e("../registry"),a=e("../lib");function i(e,t,n){var r,i,o,l=!1;if("data"===t.type)r=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;r=e._fullLayout}return i=a.nestedProperty(r,t.prop).get(),(o=n[t.type]=n[t.type]||{}).hasOwnProperty(t.prop)&&o[t.prop]!==i&&(l=!0),o[t.prop]=i,{changed:l,value:i}}function o(e,t){var n=[],r=t[0],i={};if("string"==typeof r)i[r]=t[1];else{if(!a.isPlainObject(r))return n;i=r}return s(i,(function(e,t,r){n.push({type:"layout",prop:e,value:r})}),"",0),n}function l(e,t){var n,r,i,o,l=[];if(r=t[0],i=t[1],n=t[2],o={},"string"==typeof r)o[r]=i;else{if(!a.isPlainObject(r))return l;o=r,void 0===n&&(n=i)}return void 0===n&&(n=null),s(o,(function(t,r,a){var i,o;if(Array.isArray(a)){o=a.slice();var s=Math.min(o.length,e.data.length);n&&(s=Math.min(s,n.length)),i=[];for(var c=0;c<s;c++)i[c]=n?n[c]:c}else o=a,i=n?n.slice():null;if(null===i)Array.isArray(o)&&(o=o[0]);else if(Array.isArray(i)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f<i.length;f++)o[f]=u}o.length=Math.min(i.length,o.length)}l.push({type:"data",prop:t,traces:i,value:o})}),"",0),l}function s(e,t,n,r){Object.keys(e).forEach((function(i){var o=e[i];if("_"!==i[0]){var l=n+(r>0?".":"")+i;a.isPlainObject(o)?s(o,t,l,r+1):t(l,i,o)}}))}n.manageCommandObserver=function(e,t,r,o){var l={},s=!0;t&&t._commandObserver&&(l=t._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var c=n.hasSimpleAPICommandBindings(e,r,l.lookupTable);if(t&&t._commandObserver){if(c)return l;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,l}if(c){i(e,c,l.cache),l.check=function(){if(s){var t=i(e,c,l.cache);return t.changed&&o&&void 0!==l.lookupTable[t.value]&&(l.disable(),Promise.resolve(o({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:l.lookupTable[t.value]})).then(l.enable,l.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f<u.length;f++)e._internalOn(u[f],l.check);l.remove=function(){for(var t=0;t<u.length;t++)e._removeInternalListener(u[t],l.check)}}else a.log("Unable to automatically bind plot updates to API command"),l.lookupTable={},l.remove=function(){};return l.disable=function(){s=!1},l.enable=function(){s=!0},t&&(t._commandObserver=l),l},n.hasSimpleAPICommandBindings=function(e,t,r){var a,i,o=t.length;for(a=0;a<o;a++){var l,s=t[a],c=s.method,u=s.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=n.computeAPICommandBindings(e,c,u);if(1!==f.length)return!1;if(i){if((l=f[0]).type!==i.type)return!1;if(l.prop!==i.prop)return!1;if(Array.isArray(i.traces)){if(!Array.isArray(l.traces))return!1;l.traces.sort();for(var d=0;d<i.traces.length;d++)if(i.traces[d]!==l.traces[d])return!1}else if(l.prop!==i.prop)return!1}else i=f[0],Array.isArray(i.traces)&&i.traces.sort();var p=(l=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}r&&(r[p]=a)}return i},n.executeAPICommand=function(e,t,n){if("skip"===t)return Promise.resolve();var i=r.apiMethodRegistry[t],o=[e];Array.isArray(n)||(n=[]);for(var l=0;l<n.length;l++)o.push(n[l]);return i.apply(null,o).catch((function(e){return a.warn("API call to Plotly."+t+" rejected.",e),Promise.reject(e)}))},n.computeAPICommandBindings=function(e,t,n){var r;switch(Array.isArray(n)||(n=[]),t){case"restyle":r=l(e,n);break;case"relayout":r=o(0,n);break;case"update":r=l(e,[n[0],n[2]]).concat(o(0,[n[1]]));break;case"animate":r=function(e,t){return Array.isArray(t[0])&&1===t[0].length&&-1!==["string","number"].indexOf(typeof t[0][0])?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}(0,n);break;default:r=[]}return r}},{"../lib":178,"../registry":269}],249:[function(e,t,n){"use strict";var r=e("../lib/extend").extendFlat;n.attributes=function(e,t){t=t||{};var n={valType:"info_array",editType:(e=e||{}).editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=(e.name&&e.name,e.trace,t.description&&t.description,{x:r({},n,{}),y:r({},n,{}),editType:e.editType});return e.noGridCell||(a.row={valType:"integer",min:0,dflt:0,editType:e.editType},a.column={valType:"integer",min:0,dflt:0,editType:e.editType}),a},n.defaults=function(e,t,n,r){var a=r&&r.x||[0,1],i=r&&r.y||[0,1],o=t.grid;if(o){var l=n("domain.column");void 0!==l&&(l<o.columns?a=o._domains.x[l]:delete e.domain.column);var s=n("domain.row");void 0!==s&&(s<o.rows?i=o._domains.y[s]:delete e.domain.row)}var c=n("domain.x",a),u=n("domain.y",i);c[0]<c[1]||(e.domain.x=a.slice()),u[0]<u[1]||(e.domain.y=i.slice())}},{"../lib/extend":173}],250:[function(e,t,n){"use strict";t.exports=function(e){var t=e.editType,n=e.colorEditType;void 0===n&&(n=t);var r={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},editType:t};return e.arrayOk&&(r.family.arrayOk=!0,r.size.arrayOk=!0,r.color.arrayOk=!0),r}},{}],251:[function(e,t,n){"use strict";t.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}},{}],252:[function(e,t,n){"use strict";var r=e("../registry"),a=e("./cartesian/constants").SUBPLOT_PATTERN;n.getSubplotCalcData=function(e,t,n){var a=r.subplotsRegistry[t];if(!a)return[];for(var i=a.attr,o=[],l=0;l<e.length;l++){var s=e[l];s[0].trace[i]===n&&o.push(s)}return o},n.getModuleCalcData=function(e,t){var n,a=[],i=[];if(!(n="string"==typeof t?r.getModule(t).plot:"function"==typeof t?t:t.plot))return[a,e];for(var o=0;o<e.length;o++){var l=e[o],s=l[0].trace;!0===s.visible&&0!==s._length&&(s._module.plot===n?a.push(l):i.push(l))}return[a,i]},n.getSubplotData=function(e,t,n){if(!r.subplotsRegistry[t])return[];var i,o,l,s=r.subplotsRegistry[t].attr,c=[];if("gl2d"===t){var u=n.match(a);o="x"+u[1],l="y"+u[2]}for(var f=0;f<e.length;f++)i=e[f],"gl2d"===t&&r.traceIs(i,"gl2d")?i[s[0]]===o&&i[s[1]]===l&&c.push(i):i[s]===n&&c.push(i);return c}},{"../registry":269,"./cartesian/constants":228}],253:[function(e,t,n){"use strict";function r(e,t){var n,r,a=[0,0,0,0];for(n=0;n<4;++n)for(r=0;r<4;++r)a[r]+=e[4*n+r]*t[n];return a}t.exports=function(e,t){return r(e.projection,r(e.view,r(e.model,[t[0],t[1],t[2],1])))}},{}],254:[function(e,t,n){"use strict";var r=e("./font_attributes"),a=e("./animation_attributes"),i=e("../components/color/attributes"),o=e("../components/shapes/draw_newshape/attributes"),l=e("./pad_attributes"),s=e("../lib/extend").extendFlat,c=r({editType:"calc"});c.family.dflt='"Open Sans", verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=i.defaultLine,t.exports={font:c,title:{text:{valType:"string",editType:"layoutstyle"},font:r({editType:"layoutstyle"}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:s(l({editType:"layoutstyle"}),{}),editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},paper_bgcolor:{valType:"color",dflt:i.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:i.background,editType:"layoutstyle"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:i.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},modebar:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"modebar"},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:s({},a.transition,{editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle"},titlefont:r({editType:"layoutstyle"})}}},{"../components/color/attributes":51,"../components/shapes/draw_newshape/attributes":134,"../lib/extend":173,"./animation_attributes":217,"./font_attributes":250,"./pad_attributes":255}],255:[function(e,t,n){"use strict";t.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}},{}],256:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("../registry"),o=e("../plot_api/plot_schema"),l=e("../plot_api/plot_template"),s=e("../lib"),c=e("../components/color"),u=e("../constants/numerical").BADNUM,f=e("./cartesian/axis_ids"),d=e("./cartesian/handle_outline").clearSelect,p=e("./animation_attributes"),h=e("./frame_attributes"),g=e("../plots/get_data").getModuleCalcData,m=s.relinkPrivateKeys,v=s._,y=t.exports={};s.extendFlat(y,i),y.attributes=e("./attributes"),y.attributes.type.values=y.allTypes,y.fontAttrs=e("./font_attributes"),y.layoutAttributes=e("./layout_attributes"),y.fontWeight="normal";var x=y.transformsRegistry,b=e("./command");y.executeAPICommand=b.executeAPICommand,y.computeAPICommandBindings=b.computeAPICommandBindings,y.manageCommandObserver=b.manageCommandObserver,y.hasSimpleAPICommandBindings=b.hasSimpleAPICommandBindings,y.redrawText=function(e){var t=(e=s.getGraphDiv(e))._fullLayout||{};if(t._has&&t._has("polar")||!e.data||!e.data[0]||!e.data[0].r)return new Promise((function(t){setTimeout((function(){i.getComponentMethod("annotations","draw")(e),i.getComponentMethod("legend","draw")(e),i.getComponentMethod("colorbar","draw")(e),t(y.previousPromises(e))}),300)}))},y.resize=function(e){var t;e=s.getGraphDiv(e);var n=new Promise((function(n,r){e&&!s.isHidden(e)||r(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||s.isHidden(e))n(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,i.call("relayout",e,{autosize:!0}).then((function(){e.changed=t,e._resolveResize===n&&(delete e._resolveResize,n(e))}))}}),100)}));return t&&t(n),n},y.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then((function(){e._promises=[]}))},y.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,n=s.ensureSingle(t._paper,"text","js-plot-link-container",(function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:c.defaultLine,"pointer-events":"all"}).each((function(){var e=r.select(this);e.append("tspan").classed("js-link-to-tool",!0),e.append("tspan").classed("js-link-spacer",!0),e.append("tspan").classed("js-sourcelinks",!0)}))})),a=n.node(),i={y:t._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),n.attr(i);var o=n.select(".js-link-to-tool"),l=n.select(".js-link-spacer"),u=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",(function(){y.sendDataToCloud(e)}));else{var r=window.location.pathname.split("/"),a=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+a})}}(e,o),l.text(o.text()&&u.text()?" - ":"")}},y.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),a=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=y.graphJson(e,!1,"keepdata"),a.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1}};var _=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],w=["year","month","dayMonth","dayMonthYear"];function k(e,t){var n=e._context.locale,r=!1,a={};function o(e){for(var n=!0,i=0;i<t.length;i++){var o=t[i];a[o]||(e[o]?a[o]=e[o]:n=!1)}n&&(r=!0)}for(var l=0;l<2;l++){for(var s=e._context.locales,c=0;c<2;c++){var u=(s[n]||{}).format;if(u&&(o(u),r))break;s=i.localeRegistry}var f=n.split("-")[0];if(r||f===n)break;n=f}return r||o(i.localeRegistry.en.format),a}function T(e,t){var n={_fullLayout:t},r="x"===e._id.charAt(0),a=e._mainAxis._anchorAxis,i="",o="",l="";if(a&&(l=a._mainAxis._id,i=r?e._id+l:l+e._id),!i||!t._plots[i]){i="";for(var s=e._counterAxes,c=0;c<s.length;c++){var u=s[c],d=r?e._id+u:u+e._id;o||(o=d);var p=f.getFromId(n,u);if(l&&p.overlaying===l){i=d;break}}}return i||o}function M(e){var t=e.transforms;if(Array.isArray(t)&&t.length)for(var n=0;n<t.length;n++){var r=t[n],a=r._module||x[r.type];if(a&&a.makesData)return!0}return!1}function A(e,t,n,r){for(var a=e.transforms,i=[e],o=0;o<a.length;o++){var l=a[o],s=x[l.type];s&&s.transform&&(i=s.transform(i,{transform:l,fullTrace:e,fullData:t,layout:n,fullLayout:r,transformIndex:o}))}return i}function S(e){var t=e.margin;if(!e._size){var n=e._size={l:Math.round(t.l),r:Math.round(t.r),t:Math.round(t.t),b:Math.round(t.b),p:Math.round(t.pad)};n.w=Math.round(e.width)-n.l-n.r,n.h=Math.round(e.height)-n.t-n.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={})}y.supplyDefaults=function(e,t){var n=t&&t.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults)delete a._skipDefaults;else{var o,l=e._fullLayout={},c=e.layout||{},u=e._fullData||[],f=e._fullData=[],p=e.data||[],h=e.calcdata||[],g=e._context||{};e._transitionData||y.createTransitionData(e),l._dfltTitle={plot:v(e,"Click to enter Plot title"),x:v(e,"Click to enter X axis title"),y:v(e,"Click to enter Y axis title"),colorbar:v(e,"Click to enter Colorscale title"),annotation:v(e,"new text")},l._traceWord=v(e,"trace");var x=k(e,_);if(l._mapboxAccessToken=g.mapboxAccessToken,a._initialAutoSizeIsDone){var b=a.width,T=a.height;y.supplyLayoutGlobalDefaults(c,l,x),c.width||(l.width=b),c.height||(l.height=T),y.sanitizeMargins(l)}else{y.supplyLayoutGlobalDefaults(c,l,x);var M=!c.width||!c.height,A=l.autosize,L=g.autosizable;M&&(A||L)?y.plotAutoSize(e,c,l):M&&y.sanitizeMargins(l),!A&&M&&(c.width=l.width,c.height=l.height)}l._d3locale=function(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),r.locale(e)}(x,l.separators),l._extraFormat=k(e,w),l._initialAutoSizeIsDone=!0,l._dataLength=p.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var C=l._subplots=function(){var e,t,n=i.collectableSubplotTypes,r={};if(!n){n=[];var a=i.subplotsRegistry;for(var o in a){var l=a[o].attr;if(l&&(n.push(o),Array.isArray(l)))for(t=0;t<l.length;t++)s.pushUnique(n,l[t])}}for(e=0;e<n.length;e++)r[n[e]]=[];return r}(),O=l._splomAxes={x:{},y:{}},P=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(e,t){var n,r,a=t.length,i=[];for(n=0;n<e.length;n++){var o=e[n]._fullInput;o!==r&&i.push(o),r=o}var l=i.length,c=new Array(a),u={};function f(e,t){c[t]=e,u[e]=1}function d(e,t){if(e&&"string"==typeof e&&!u[e])return f(e,t),!0}for(n=0;n<a;n++){var p=t[n].uid;"number"==typeof p&&(p=String(p)),d(p,n)||n<l&&d(i[n].uid,n)||f(s.randstr(u),n)}return c}(u,p),l._globalTransforms=(e._context||{}).globalTransforms,y.supplyDataDefaults(p,f,c,l);var E=Object.keys(O.x),z=Object.keys(O.y);if(E.length>1&&z.length>1){for(i.getComponentMethod("grid","sizeDefaults")(c,l),o=0;o<E.length;o++)s.pushUnique(C.xaxis,E[o]);for(o=0;o<z.length;o++)s.pushUnique(C.yaxis,z[o]);for(var D in P)s.pushUnique(C.cartesian,D)}if(l._has=y._hasPlotType.bind(l),u.length===f.length)for(o=0;o<f.length;o++)m(f[o],u[o]);y.supplyLayoutModuleDefaults(c,l,f,e._transitionData);var R=l._visibleModules,I=[];for(o=0;o<R.length;o++){var N=R[o].crossTraceDefaults;N&&s.pushUnique(I,N)}for(o=0;o<I.length;o++)I[o](f,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&&"splom"===l._basePlotModules[0].name&&E.length>15&&z.length>15&&0===l.shapes.length&&0===l.images.length,l._hasCartesian=l._has("cartesian"),l._hasGeo=l._has("geo"),l._hasGL3D=l._has("gl3d"),l._hasGL2D=l._has("gl2d"),l._hasTernary=l._has("ternary"),l._hasPie=l._has("pie"),y.linkSubplots(f,l,u,a),y.cleanPlot(f,l,u,a),a._zoomlayer&&!e._dragging&&d({_fullLayout:a}),function(e,t){var n,r=[];t.meta&&(n=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a<e.length;a++){var i=e[a];i.meta?r[i.index]=i._meta={meta:i.meta}:t.meta&&(i._meta={meta:t.meta}),t.meta&&(i._meta.layout={meta:t.meta})}r.length&&(n||(n=t._meta={}),n.data=r)}(f,l),m(l,a),i.getComponentMethod("colorscale","crossTraceDefaults")(f,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var F,B=l._tracePreGUI,j={};for(F in B)j[F]="old";for(o=0;o<f.length;o++)j[F=f[o]._fullInput.uid]||(B[F]={}),j[F]="new";for(F in j)"old"===j[F]&&delete B[F];S(l),i.getComponentMethod("rangeslider","makeData")(l),n||h.length!==f.length||y.supplyDefaultsUpdateCalc(h,f)}},y.supplyDefaultsUpdateCalc=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=(e[n]||[])[0];if(a&&a.trace){var i=a.trace;if(i._hasCalcTransform){var o,l,c,u=i._arrayAttrs;for(o=0;o<u.length;o++)l=u[o],c=s.nestedProperty(i,l).get().slice(),s.nestedProperty(r,l).set(c)}a.trace=r}}},y.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])},y._hasPlotType=function(e){var t,n=this._basePlotModules||[];for(t=0;t<n.length;t++)if(n[t].name===e)return!0;var r=this._modules||[];for(t=0;t<r.length;t++){var a=r[t].name;if(a===e)return!0;var o=i.modules[a];if(o&&o.categories[e])return!0}return!1},y.cleanPlot=function(e,t,n,r){var a,i,o=r._basePlotModules||[];for(a=0;a<o.length;a++){var l=o[a];l.clean&&l.clean(e,t,n,r)}var s=r._has&&r._has("gl"),c=t._has&&t._has("gl");s&&!c&&void 0!==r._glcontainer&&(r._glcontainer.selectAll(".gl-canvas").remove(),r._glcontainer.selectAll(".no-webgl").remove(),r._glcanvas=null);var u=!!r._infolayer;e:for(a=0;a<n.length;a++){var f=n[a].uid;for(i=0;i<e.length;i++)if(f===e[i].uid)continue e;u&&r._infolayer.select(".cb"+f).remove()}},y.linkSubplots=function(e,t,n,r){var a,o,l=r._plots||{},c=t._plots={},u=t._subplots,d={_fullData:e,_fullLayout:t},p=u.cartesian.concat(u.gl2d||[]);for(a=0;a<p.length;a++){var h,g=p[a],m=l[g],v=f.getFromId(d,g,"x"),y=f.getFromId(d,g,"y");for(m?h=c[g]=m:(h=c[g]={}).id=g,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(g),y._subplotsWith.push(g),h.xaxis=v,h.yaxis=y,h._hasClipOnAxisFalse=!1,o=0;o<e.length;o++){var x=e[o];if(x.xaxis===h.xaxis._id&&x.yaxis===h.yaxis._id&&!1===x.cliponaxis){h._hasClipOnAxisFalse=!0;break}}}var b,_=f.list(d,null,!0);for(a=0;a<_.length;a++){var w=null;(b=_[a]).overlaying&&(w=f.getFromId(d,b.overlaying))&&w.overlaying&&(b.overlaying=!1,w=null),b._mainAxis=w||b,w&&(b.domain=w.domain.slice()),b._anchorAxis="free"===b.anchor?null:f.getFromId(d,b.anchor)}for(a=0;a<_.length;a++)if((b=_[a])._counterAxes.sort(f.idSort),b._subplotsWith.sort(s.subplotSort),b._mainSubplot=T(b,t),b._counterAxes.length&&(b.spikemode&&-1!==b.spikemode.indexOf("across")||b.automargin&&b.mirror&&"free"!==b.anchor||i.getComponentMethod("rangeslider","isVisible")(b))){var k=1,M=0;for(o=0;o<b._counterAxes.length;o++){var A=f.getFromId(d,b._counterAxes[o]);k=Math.min(k,A.domain[0]),M=Math.max(M,A.domain[1])}k<M&&(b._counterDomainMin=k,b._counterDomainMax=M)}},y.clearExpandedTraceDefaultColors=function(e){var t,n,r;for(n=[],(t=e._module._colorAttrs)||(e._module._colorAttrs=t=[],o.crawl(e._module.attributes,(function(e,r,a,i){n[i]=r,n.length=i+1,"color"===e.valType&&void 0===e.dflt&&t.push(n.join("."))}))),r=0;r<t.length;r++)s.nestedProperty(e,"_input."+t[r]).get()||s.nestedProperty(e,t[r]).set(null)},y.supplyDataDefaults=function(e,t,n,r){var a,o,c,u=r._modules,f=r._visibleModules,d=r._basePlotModules,p=0,h=0;function g(e){t.push(e);var n=e._module;n&&(s.pushUnique(u,n),!0===e.visible&&s.pushUnique(f,n),s.pushUnique(d,e._module.basePlotModule),p++,!1!==e._input.visible&&h++)}r._transformModules=[];var v={},x=[],b=(n.template||{}).data||{},_=l.traceTemplater(b);for(a=0;a<e.length;a++){if(c=e[a],(o=_.newTrace(c)).uid=r._traceUids[a],y.supplyTraceDefaults(c,o,h,r,a),o.index=a,o._input=c,o._expandedIndex=p,o.transforms&&o.transforms.length)for(var w=!1!==c.visible&&!1===o.visible,k=A(o,t,n,r),T=0;T<k.length;T++){var M=k[T],S={_template:o._template,type:o.type,uid:o.uid+T};w&&!1===M.visible&&delete M.visible,y.supplyTraceDefaults(M,S,p,r,a),m(S,M),S.index=a,S._input=c,S._fullInput=o,S._expandedIndex=p,S._expandedInput=M,g(S)}else o._fullInput=o,o._expandedInput=o,g(o);i.traceIs(o,"carpetAxis")&&(v[o.carpet]=o),i.traceIs(o,"carpetDependent")&&x.push(a)}for(a=0;a<x.length;a++)if((o=t[x[a]]).visible){var L=v[o.carpet];o._carpet=L,L&&L.visible?(o.xaxis=L.xaxis,o.yaxis=L.yaxis):o.visible=!1}},y.supplyAnimationDefaults=function(e){var t;e=e||{};var n={};function r(t,r){return s.coerce(e||{},n,p,t,r)}if(r("mode"),r("direction"),r("fromcurrent"),Array.isArray(e.frame))for(n.frame=[],t=0;t<e.frame.length;t++)n.frame[t]=y.supplyAnimationFrameDefaults(e.frame[t]||{});else n.frame=y.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(n.transition=[],t=0;t<e.transition.length;t++)n.transition[t]=y.supplyAnimationTransitionDefaults(e.transition[t]||{});else n.transition=y.supplyAnimationTransitionDefaults(e.transition||{});return n},y.supplyAnimationFrameDefaults=function(e){var t={};function n(n,r){return s.coerce(e||{},t,p.frame,n,r)}return n("duration"),n("redraw"),t},y.supplyAnimationTransitionDefaults=function(e){var t={};function n(n,r){return s.coerce(e||{},t,p.transition,n,r)}return n("duration"),n("easing"),t},y.supplyFrameDefaults=function(e){var t={};function n(n,r){return s.coerce(e,t,h,n,r)}return n("group"),n("name"),n("traces"),n("baseframe"),n("data"),n("layout"),t},y.supplyTraceDefaults=function(e,t,n,r,a){var o,l=r.colorway||c.defaults,u=l[n%l.length];function f(n,r){return s.coerce(e,t,y.attributes,n,r)}var d=f("visible");f("type"),f("name",r._traceWord+" "+a),f("uirevision",r.uirevision);var p=y.getModule(t);if(t._module=p,p){var h=p.basePlotModule,g=h.attr,m=h.attributes;if(g&&m){var v=r._subplots,x="";if(d||"gl2d"!==h.name){if(Array.isArray(g))for(o=0;o<g.length;o++){var b=g[o],_=s.coerce(e,t,m,b);v[b]&&s.pushUnique(v[b],_),x+=_}else x=s.coerce(e,t,m,g);v[h.name]&&s.pushUnique(v[h.name],x)}}}return d&&(f("customdata"),f("ids"),f("meta"),i.traceIs(t,"showLegend")?(s.coerce(e,t,p.attributes.showlegend?p.attributes:y.attributes,"showlegend"),f("legendgroup"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,p&&p.supplyDefaults(e,t,u,r),i.traceIs(t,"noOpacity")||f("opacity"),i.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),i.traceIs(t,"noHover")||(t.hovertemplate||s.coerceHoverinfo(e,t,r),"parcats"!==t.type&&i.getComponentMethod("fx","supplyDefaults")(e,t,u,r)),p&&p.selectPoints&&f("selectedpoints"),y.supplyTransformDefaults(e,t,r)),t},y.hasMakesDataTransform=M,y.supplyTransformDefaults=function(e,t,n){if(t._length||M(e)){var r=n._globalTransforms||[],a=n._transformModules||[];if(Array.isArray(e.transforms)||0!==r.length)for(var i=e.transforms||[],o=r.concat(i),l=t.transforms=[],c=0;c<o.length;c++){var u,f=o[c],d=f.type,p=x[d],h=!(f._module&&f._module===p),g=p&&"function"==typeof p.transform;p||s.warn("Unrecognized transform type "+d+"."),p&&p.supplyDefaults&&(h||g)?((u=p.supplyDefaults(f,t,n,e)).type=d,u._module=p,s.pushUnique(a,p)):u=s.extendFlat({},f),l.push(u)}}},y.supplyLayoutGlobalDefaults=function(e,t,n){function r(n,r){return s.coerce(e,t,y.layoutAttributes,n,r)}var a=e.template;s.isPlainObject(a)&&(t.template=a,t._template=a.layout,t._dataTemplate=a.data);var o=s.coerceFont(r,"font");r("title.text",t._dfltTitle.plot),s.coerceFont(r,"title.font",{family:o.family,size:Math.round(1.4*o.size),color:o.color}),r("title.xref"),r("title.yref"),r("title.x"),r("title.y"),r("title.xanchor"),r("title.yanchor"),r("title.pad.t"),r("title.pad.r"),r("title.pad.b"),r("title.pad.l"),r("uniformtext.mode")&&r("uniformtext.minsize"),r("autosize",!(e.width&&e.height)),r("width"),r("height"),r("margin.l"),r("margin.r"),r("margin.t"),r("margin.b"),r("margin.pad"),r("margin.autoexpand"),e.width&&e.height&&y.sanitizeMargins(t),i.getComponentMethod("grid","sizeDefaults")(e,t),r("paper_bgcolor"),r("separators",n.decimal+n.thousands),r("hidesources"),r("colorway"),r("datarevision");var l=r("uirevision");r("editrevision",l),r("selectionrevision",l),r("modebar.orientation"),r("modebar.bgcolor",c.addOpacity(t.paper_bgcolor,.5));var u=c.contrast(c.rgb(t.modebar.bgcolor));r("modebar.color",c.addOpacity(u,.3)),r("modebar.activecolor",c.addOpacity(u,.7)),r("modebar.uirevision",l),i.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,r),r("meta"),s.isPlainObject(e.transition)&&(r("transition.duration"),r("transition.easing"),r("transition.ordering")),i.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),i.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,r)},y.plotAutoSize=function(e,t,n){var r,i,o=e._context||{},l=o.frameMargins,c=s.isPlotDiv(e);if(c&&e.emit("plotly_autosize"),o.fillFrame)r=window.innerWidth,i=window.innerHeight,document.body.style.overflow="hidden";else{var u=c?window.getComputedStyle(e):{};if(r=parseFloat(u.width)||parseFloat(u.maxWidth)||n.width,i=parseFloat(u.height)||parseFloat(u.maxHeight)||n.height,a(l)&&l>0){var f=1-2*l;r=Math.round(f*r),i=Math.round(f*i)}}var d=y.layoutAttributes.width.min,p=y.layoutAttributes.height.min;r<d&&(r=d),i<p&&(i=p);var h=!t.width&&Math.abs(n.width-r)>1,g=!t.height&&Math.abs(n.height-i)>1;(g||h)&&(h&&(n.width=r),g&&(n.height=i)),e._initialAutoSize||(e._initialAutoSize={width:r,height:i}),y.sanitizeMargins(n)},y.supplyLayoutModuleDefaults=function(e,t,n,r){var a,o,l,c=i.componentsRegistry,u=t._basePlotModules,f=i.subplotsRegistry.cartesian;for(a in c)(l=c[a]).includeBasePlot&&l.includeBasePlot(e,t);for(var d in u.length||u.push(f),t._has("cartesian")&&(i.getComponentMethod("grid","contentDefaults")(e,t),f.finalizeSubplots(e,t)),t._subplots)t._subplots[d].sort(s.subplotSort);for(o=0;o<u.length;o++)(l=u[o]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n);var p=t._modules;for(o=0;o<p.length;o++)(l=p[o]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n);var h=t._transformModules;for(o=0;o<h.length;o++)(l=h[o]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n,r);for(a in c)(l=c[a]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n)},y.purge=function(e){var t=e._fullLayout||{};void 0!==t._glcontainer&&(t._glcontainer.selectAll(".gl-canvas").remove(),t._glcontainer.remove(),t._glcanvas=null),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),s.clearThrottle(),s.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.framework,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()},y.style=function(e){var t,n=e._fullLayout._visibleModules,r=[];for(t=0;t<n.length;t++){var a=n[t];a.style&&s.pushUnique(r,a.style)}for(t=0;t<r.length;t++)r[t](e)},y.sanitizeMargins=function(e){if(e&&e.margin){var t,n=e.width,r=e.height,a=e.margin,i=n-(a.l+a.r),o=r-(a.t+a.b);i<0&&(t=(n-1)/(a.l+a.r),a.l=Math.floor(t*a.l),a.r=Math.floor(t*a.r)),o<0&&(t=(r-1)/(a.t+a.b),a.t=Math.floor(t*a.t),a.b=Math.floor(t*a.b))}},y.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}},y.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1},y.autoMargin=function(e,t,n){var r=e._fullLayout,a=r._pushmargin,i=r._pushmarginIds;if(!1!==r.margin.autoexpand){if(n){var o=n.pad;if(void 0===o){var l=r.margin;o=Math.min(12,l.l,l.r,l.t,l.b)}n.l+n.r>.5*r.width&&(s.log("Margin push",t,"is too big in x, dropping"),n.l=n.r=0),n.b+n.t>.5*r.height&&(s.log("Margin push",t,"is too big in y, dropping"),n.b=n.t=0);var c=void 0!==n.xl?n.xl:n.x,u=void 0!==n.xr?n.xr:n.x,f=void 0!==n.yt?n.yt:n.y,d=void 0!==n.yb?n.yb:n.y;a[t]={l:{val:c,size:n.l+o},r:{val:u,size:n.r+o},b:{val:d,size:n.b+o},t:{val:f,size:n.t+o}},i[t]=1}else delete a[t],delete i[t];if(!r._replotting)return y.doAutoMargin(e)}},y.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),S(t);var n=t._size,r=t.margin,o=s.extendFlat({},n),l=r.l,c=r.r,u=r.t,f=r.b,d=t.width,p=t.height,h=t._pushmargin,g=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var m in h)g[m]||delete h[m];for(var v in h.base={l:{val:0,size:l},r:{val:1,size:c},t:{val:1,size:u},b:{val:0,size:f}},h){var x=h[v].l||{},b=h[v].b||{},_=x.val,w=x.size,k=b.val,T=b.size;for(var M in h){if(a(w)&&h[M].r){var A=h[M].r.val,L=h[M].r.size;if(A>_){var C=(w*A+(L-d)*_)/(A-_),O=(L*(1-_)+(w-d)*(1-A))/(A-_);C>=0&&O>=0&&d-(C+O)>0&&C+O>l+c&&(l=C,c=O)}}if(a(T)&&h[M].t){var P=h[M].t.val,E=h[M].t.size;if(P>k){var z=(T*P+(E-p)*k)/(P-k),D=(E*(1-k)+(T-p)*(1-P))/(P-k);z>=0&&D>=0&&p-(D+z)>0&&z+D>f+u&&(f=z,u=D)}}}}}if(n.l=Math.round(l),n.r=Math.round(c),n.t=Math.round(u),n.b=Math.round(f),n.p=Math.round(r.pad),n.w=Math.round(d)-n.l-n.r,n.h=Math.round(p)-n.t-n.b,!t._replotting&&y.didMarginChange(o,n)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var R=3*(1+Object.keys(g).length);if(t._redrawFromAutoMarginCount<R)return i.call("plot",e);s.warn("Too many auto-margin redraws.")}};var L=["l","r","t","b","p","w","h"];function C(e,t,n){var r=!1,a=[y.previousPromises,function(){if(e._transitionData)return e._transitioning=!1,function(e){var t=Promise.resolve();if(!e)return t;for(;e.length;)t=t.then(e.shift());return t}(e._transitionData._interruptCallbacks)},n.prepareFn,y.rehover,function(){return e.emit("plotly_transitioning",[]),new Promise((function(a){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){r=!0})),n.redraw&&e._transitionData._interruptCallbacks.push((function(){return i.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var o=0,l=0;function s(){return o++,function(){var t;l++,r||l!==o||(t=a,e._transitionData&&(function(e){if(e)for(;e.length;)e.shift()}(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(n.redraw)return i.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)))}}n.runFn(s),setTimeout(s())}))}],o=s.syncOrAsync(a,e);return o&&o.then||(o=Promise.resolve()),o.then((function(){return e}))}y.didMarginChange=function(e,t){for(var n=0;n<L.length;n++){var r=L[n],i=e[r],o=t[r];if(!a(i)||Math.abs(o-i)>1)return!0}return!1},y.graphJson=function(e,t,n,r,a,i){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&y.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,c=(e._transitionData||{})._frames;function u(e,t){if("function"==typeof e)return t?"_function_":null;if(s.isPlainObject(e)){var r,a={};return Object.keys(e).sort().forEach((function(i){if(-1===["_","["].indexOf(i.charAt(0)))if("function"!=typeof e[i]){if("keepdata"===n){if("src"===i.substr(i.length-3))return}else if("keepstream"===n){if("string"==typeof(r=e[i+"src"])&&r.indexOf(":")>0&&!s.isPlainObject(e.stream))return}else if("keepall"!==n&&"string"==typeof(r=e[i+"src"])&&r.indexOf(":")>0)return;a[i]=u(e[i],t)}else t&&(a[i]="_function")})),a}return Array.isArray(e)?e.map((function(e){return u(e,t)})):s.isTypedArray(e)?s.simpleMap(e,s.identity):s.isJSDate(e)?s.ms2DateTimeLocal(+e):e}var f={data:(o||[]).map((function(e){var n=u(e);return t&&delete n.fit,n}))};return t||(f.layout=u(l)),e.framework&&e.framework.isPolar&&(f=e.framework.getConfig()),c&&(f.frames=u(c)),i&&(f.config=u(e._context,!0)),"object"===r?f:JSON.stringify(f)},y.modifyFrames=function(e,t){var n,r,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(n=0;n<t.length;n++)switch((r=t[n]).type){case"replace":a=r.value;var l=(i[r.index]||{}).name,s=a.name;i[r.index]=o[s]=a,s!==l&&(delete o[l],o[s]=a);break;case"insert":o[(a=r.value).name]=a,i.splice(r.index,0,a);break;case"delete":delete o[(a=i[r.index]).name],i.splice(r.index,1)}return Promise.resolve()},y.computeFrame=function(e,t){var n,r,a,i,o=e._transitionData._frameHash;if(!t)throw new Error("computeFrame must be given a string frame name");var l=o[t.toString()];if(!l)return!1;for(var s=[l],c=[l.name];l.baseframe&&(l=o[l.baseframe.toString()])&&-1===c.indexOf(l.name);)s.push(l),c.push(l.name);for(var u={};l=s.pop();)if(l.layout&&(u.layout=y.extendLayout(u.layout,l.layout)),l.data){if(u.data||(u.data=[]),!(r=l.traces))for(r=[],n=0;n<l.data.length;n++)r[n]=n;for(u.traces||(u.traces=[]),n=0;n<l.data.length;n++)null!=(a=r[n])&&(-1===(i=u.traces.indexOf(a))&&(i=u.data.length,u.traces[i]=a),u.data[i]=y.extendTrace(u.data[i],l.data[n]))}return u},y.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},n=e._transitionData._frames,r=0;r<n.length;r++){var a=n[r];a&&a.name&&(t[a.name]=a)}},y.extendObjectWithContainers=function(e,t,n){var r,a,i,o,l,c,u,f=s.extendDeepNoArrays({},t||{}),d=s.expandObjectPaths(f),p={};if(n&&n.length)for(i=0;i<n.length;i++)void 0===(a=(r=s.nestedProperty(d,n[i])).get())?s.nestedProperty(p,n[i]).set(null):(r.set(null),s.nestedProperty(p,n[i]).set(a));if(e=s.extendDeepNoArrays(e||{},d),n&&n.length)for(i=0;i<n.length;i++)if(c=s.nestedProperty(p,n[i]).get()){for(u=(l=s.nestedProperty(e,n[i])).get(),Array.isArray(u)||(u=[],l.set(u)),o=0;o<c.length;o++){var h=c[o];u[o]=null===h?null:y.extendObjectWithContainers(u[o],h)}l.set(u)}return e},y.dataArrayContainers=["transforms","dimensions"],y.layoutArrayContainers=i.layoutArrayContainers,y.extendTrace=function(e,t){return y.extendObjectWithContainers(e,t,y.dataArrayContainers)},y.extendLayout=function(e,t){return y.extendObjectWithContainers(e,t,y.layoutArrayContainers)},y.transition=function(e,t,n,r,a,i){var o={redraw:a.redraw},l={},c=[];return o.prepareFn=function(){for(var a=Array.isArray(t)?t.length:0,i=r.slice(0,a),o=0;o<i.length;o++){var u=i[o],f=e._fullData[u]._module;if(f){if(f.animatable){var d=f.basePlotModule.name;l[d]||(l[d]=[]),l[d].push(u)}e.data[i[o]]=y.extendTrace(e.data[i[o]],t[o])}}var p=s.expandObjectPaths(s.extendDeepNoArrays({},n)),h=/^[xy]axis[0-9]*$/;for(var g in p)h.test(g)&&delete p[g].range;y.extendLayout(e.layout,p),delete e.calcdata,y.supplyDefaults(e),y.doCalcdata(e);var m=s.expandObjectPaths(n);if(m){var v=e._fullLayout._plots;for(var x in v){var b=v[x],_=b.xaxis,w=b.yaxis,k=_.range.slice(),T=w.range.slice(),M=null,A=null,S=null,L=null;Array.isArray(m[_._name+".range"])?M=m[_._name+".range"].slice():Array.isArray((m[_._name]||{}).range)&&(M=m[_._name].range.slice()),Array.isArray(m[w._name+".range"])?A=m[w._name+".range"].slice():Array.isArray((m[w._name]||{}).range)&&(A=m[w._name].range.slice()),k&&M&&(_.r2l(k[0])!==_.r2l(M[0])||_.r2l(k[1])!==_.r2l(M[1]))&&(S={xr0:k,xr1:M}),T&&A&&(w.r2l(T[0])!==w.r2l(A[0])||w.r2l(T[1])!==w.r2l(A[1]))&&(L={yr0:T,yr1:A}),(S||L)&&c.push(s.extendFlat({plotinfo:b},S,L))}}return Promise.resolve()},o.runFn=function(t){var r,a,o=e._fullLayout._basePlotModules,u=c.length;if(n)for(a=0;a<o.length;a++)o[a].transitionAxes&&o[a].transitionAxes(e,c,i,t);for(var f in u?((r=s.extendFlat({},i)).duration=0,delete l.cartesian):r=i,l){var d=l[f];e._fullData[d[0]]._module.basePlotModule.plot(e,d,r,t)}},C(e,i,o)},y.transitionFromReact=function(e,t,n,r){var a=e._fullLayout,i=a.transition,o={},l=[];return o.prepareFn=function(){var e=a._plots;for(var i in o.redraw=!1,"some"===t.anim&&(o.redraw=!0),"some"===n.anim&&(o.redraw=!0),e){var c=e[i],u=c.xaxis,f=c.yaxis,d=r[u._name].range.slice(),p=r[f._name].range.slice(),h=u.range.slice(),g=f.range.slice();u.setScale(),f.setScale();var m=null,v=null;u.r2l(d[0])===u.r2l(h[0])&&u.r2l(d[1])===u.r2l(h[1])||(m={xr0:d,xr1:h}),f.r2l(p[0])===f.r2l(g[0])&&f.r2l(p[1])===f.r2l(g[1])||(v={yr0:p,yr1:g}),(m||v)&&l.push(s.extendFlat({plotinfo:c},m,v))}return Promise.resolve()},o.runFn=function(n){for(var r,a,o,c=e._fullData,u=e._fullLayout._basePlotModules,f=[],d=0;d<c.length;d++)f.push(d);function p(){for(var t=0;t<u.length;t++)u[t].transitionAxes&&u[t].transitionAxes(e,l,r,n)}function h(){for(var t=0;t<u.length;t++)u[t].plot(e,o,a,n)}l.length&&t.anim?"traces first"===i.ordering?(r=s.extendFlat({},i,{duration:0}),o=f,a=i,setTimeout(p,i.duration),h()):(r=i,o=null,a=s.extendFlat({},i,{duration:0}),setTimeout(h,r.duration),p()):l.length?(r=i,p()):t.anim&&(o=f,a=i,h())},C(e,i,o)},y.doCalcdata=function(e,t){var n,r,a,l,c=f.list(e),d=e._fullData,p=e._fullLayout,h=new Array(d.length),g=(e.calcdata||[]).slice();for(e.calcdata=h,p._numBoxes=0,p._numViolins=0,p._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,p._piecolormap={},p._sunburstcolormap={},p._treemapcolormap={},p._funnelareacolormap={},a=0;a<d.length;a++)Array.isArray(t)&&-1===t.indexOf(a)&&(h[a]=g[a]);for(a=0;a<d.length;a++)(n=d[a])._arrayAttrs=o.findArrayAttributes(n),n._extremes={};var m=p._subplots.polar||[];for(a=0;a<m.length;a++)c.push(p[m[a]].radialaxis,p[m[a]].angularaxis);for(var v in p._colorAxes){var y=p[v];!1!==y.cauto&&(delete y.cmin,delete y.cmax)}var b=!1;function _(t){if(n=d[t],r=n._module,!0===n.visible&&n.transforms){if(r&&r.calc){var a=r.calc(e,n);a[0]&&a[0].t&&a[0].t._scene&&delete a[0].t._scene.dirty}for(l=0;l<n.transforms.length;l++){var i=n.transforms[l];(r=x[i.type])&&r.calcTransform&&(n._hasCalcTransform=!0,b=!0,r.calcTransform(e,n,i))}}}function w(t,a){if(n=d[t],!!(r=n._module).isContainer===a){var i=[];if(!0===n.visible&&0!==n._length){delete n._indexToPoints;var o=n.transforms||[];for(l=o.length-1;l>=0;l--)if(o[l].enabled){n._indexToPoints=o[l]._indexToPoints;break}r&&r.calc&&(i=r.calc(e,n))}Array.isArray(i)&&i[0]||(i=[{x:u,y:u}]),i[0].t||(i[0].t={}),i[0].trace=n,h[t]=i}}for(P(c,d,p),a=0;a<d.length;a++)w(a,!0);for(a=0;a<d.length;a++)_(a);for(b&&P(c,d,p),a=0;a<d.length;a++)w(a,!0);for(a=0;a<d.length;a++)w(a,!1);E(e);var k=function(e,t){var n,r,a,o,l,c=[];function u(e,n,r){var a=n._id.charAt(0);if("histogram2dcontour"===e){var i=n._counterAxes[0],o=f.getFromId(t,i),l="x"===a||"x"===i&&"category"===o.type,s="y"===a||"y"===i&&"category"===o.type;return function(e,t){return 0===e||0===t||l&&e===r[t].length-1||s&&t===r.length-1?-1:("y"===a?t:e)-1}}return function(e,t){return"y"===a?t:e}}var d={min:function(e){return s.aggNums(Math.min,null,e)},max:function(e){return s.aggNums(Math.max,null,e)},sum:function(e){return s.aggNums((function(e,t){return e+t}),null,e)},total:function(e){return s.aggNums((function(e,t){return e+t}),null,e)},mean:function(e){return s.mean(e)},median:function(e){return s.median(e)}};for(n=0;n<e.length;n++){var p=e[n];if("category"===p.type){var h=p.categoryorder.match(O);if(h){var g=h[1],m=h[2],v=[];for(r=0;r<p._categories.length;r++)v.push([p._categories[r],[]]);for(r=0;r<p._traceIndices.length;r++){var y=p._traceIndices[r],x=t._fullData[y],b=p._id.charAt(0);if(!0===x.visible){var _=x.type;i.traceIs(x,"histogram")&&(delete x._xautoBinFinished,delete x._yautoBinFinished);var w=t.calcdata[y];for(a=0;a<w.length;a++){var k,T,M,A=w[a];if("splom"===_){var S=x._axesDim[p._id];if("y"===b){var L=x._diag[S][0];L&&(p=t._fullLayout[f.id2name(L)])}var C=A.trace.dimensions[S].values;for(o=0;o<C.length;o++)for(k=C[o],T=p._categoriesMap[k],l=0;l<A.trace.dimensions.length;l++)if(l!==S){var P=A.trace.dimensions[l];v[T][1].push(P.values[o])}}else if("scattergl"===_){for(o=0;o<A.t.x.length;o++)"x"===b&&(k=A.t.x[o],T=k,M=A.t.y[o]),"y"===b&&(k=A.t.y[o],T=k,M=A.t.x[o]),v[T][1].push(M);A.t&&A.t._scene&&delete A.t._scene.dirty}else if(A.hasOwnProperty("z")){M=A.z;var E=u(x.type,p,M);for(o=0;o<M.length;o++)for(l=0;l<M[o].length;l++)(T=E(l,o))+1&&v[T][1].push(M[o][l])}else for("x"===b?(k=A.p+1?A.p:A.x,M=A.s||A.v||A.y):"y"===b&&(k=A.p+1?A.p:A.y,M=A.s||A.v||A.x),Array.isArray(M)||(M=[M]),o=0;o<M.length;o++)v[k][1].push(M[o])}}}p._categoriesValue=v;var z=[];for(r=0;r<v.length;r++)z.push([v[r][0],d[g](v[r][1])]);z.sort((function(e,t){return e[1]-t[1]})),p._categoriesAggregatedValue=z,p._initialCategories=z.map((function(e){return e[0]})),"descending"===m&&p._initialCategories.reverse(),c=c.concat(p.sortByInitialCategories())}}}return c}(c,e);if(k.length){for(p._numBoxes=0,p._numViolins=0,a=0;a<k.length;a++)w(k[a],!0);for(a=0;a<k.length;a++)w(k[a],!1);E(e)}i.getComponentMethod("fx","calc")(e),i.getComponentMethod("errorbars","calc")(e)};var O=/(total|sum|min|max|mean|median) (ascending|descending)/;function P(e,t,n){var r,a,i,o={};for(r=0;r<e.length;r++)i=(a=e[r])._id,a.clearCalc(),"multicategory"===a.type&&a.setupMultiCategory(t),o[a._id]=1;var l=n._axisMatchGroups||[];for(r=0;r<l.length;r++)for(i in l[r])o[i]||(a=n[f.id2name(i)]).clearCalc()}function E(e){var t,n,r,a=e._fullLayout,i=a._visibleModules,o={};for(n=0;n<i.length;n++){var l=i[n],c=l.crossTraceCalc;if(c){var u=l.basePlotModule.name;o[u]?s.pushUnique(o[u],c):o[u]=[c]}}for(r in o){var f=o[r],d=a._subplots[r];if(Array.isArray(d))for(t=0;t<d.length;t++){var p=d[t],h="cartesian"===r?a._plots[p]:a[p];for(n=0;n<f.length;n++)f[n](e,h,p)}else for(n=0;n<f.length;n++)f[n](e)}}y.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},y.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()},y.generalUpdatePerTraceModule=function(e,t,n,r){var a,i=t.traceHash,o={};for(a=0;a<n.length;a++){var l=n[a],c=l[0].trace;c.visible&&(o[c.type]=o[c.type]||[],o[c.type].push(l))}for(var u in i)if(!o[u]){var f=i[u][0];f[0].trace.visible=!1,o[u]=[f]}for(var d in o){var p=o[d];p[0][0].trace._module.plot(e,t,s.filterVisible(p),r)}t.traceHash=o},y.plotBasePlot=function(e,t,n,r,a){var o=i.getModule(e),l=g(t.calcdata,o)[0];o.plot(t,l,r,a)},y.cleanBasePlot=function(e,t,n,r,a){var i=a._has&&a._has(e),o=n._has&&n._has(e);i&&!o&&a["_"+e+"layer"].selectAll("g.trace").remove()}},{"../components/color":52,"../constants/numerical":158,"../lib":178,"../plot_api/plot_schema":211,"../plot_api/plot_template":212,"../plots/get_data":252,"../registry":269,"./animation_attributes":217,"./attributes":219,"./cartesian/axis_ids":225,"./cartesian/handle_outline":232,"./command":248,"./font_attributes":250,"./frame_attributes":251,"./layout_attributes":254,d3:16,"fast-isnumeric":18}],257:[function(e,t,n){"use strict";var r=e("../../../traces/scatter/attributes"),a=r.marker,i=e("../../../lib/extend").extendFlat;["Area traces are deprecated!","Please switch to the *barpolar* trace type."].join(" "),t.exports={r:i({},r.r,{}),t:i({},r.t,{}),marker:{color:i({},a.color,{}),size:i({},a.size,{}),symbol:i({},a.symbol,{}),opacity:i({},a.opacity,{}),editType:"calc"}}},{"../../../lib/extend":173,"../../../traces/scatter/attributes":389}],258:[function(e,t,n){"use strict";var r=e("../../cartesian/layout_attributes"),a=e("../../../lib/extend").extendFlat,i=e("../../../plot_api/edit_types").overrideAll,o=["Legacy polar charts are deprecated!","Please switch to *polar* subplots."].join(" "),l=a({},r.domain,{});function s(e,t){return a({},t,{showline:{valType:"boolean"},showticklabels:{valType:"boolean"},tickorientation:{valType:"enumerated",values:["horizontal","vertical"]},ticklen:{valType:"number",min:0},tickcolor:{valType:"color"},ticksuffix:{valType:"string"},endpadding:{valType:"number",description:o},visible:{valType:"boolean"}})}t.exports=i({radialaxis:s(0,{range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},domain:l,orientation:{valType:"number"}}),angularaxis:s(0,{range:{valType:"info_array",items:[{valType:"number",dflt:0},{valType:"number",dflt:360}]},domain:l}),layout:{direction:{valType:"enumerated",values:["clockwise","counterclockwise"]},orientation:{valType:"angle"}}},"plot","nested")},{"../../../lib/extend":173,"../../../plot_api/edit_types":205,"../../cartesian/layout_attributes":236}],259:[function(e,t,n){"use strict";(t.exports=e("./micropolar")).manager=e("./micropolar_manager")},{"./micropolar":260,"./micropolar_manager":261}],260:[function(e,t,n){var r=e("d3"),a=e("../../../lib").extendDeepAll,i=e("../../../constants/alignment").MID_SHIFT,o=t.exports={version:"0.2.2"};o.Axis=function(){var e,t,n,l,s={data:[],layout:{}},c={},u={},f=r.dispatch("hover"),d={render:function(c){return function(c){t=c||t;var f=s.data,d=s.layout;("string"==typeof t||t.nodeName)&&(t=r.select(t)),t.datum(f).each((function(t,s){var c=t.slice();u={data:o.util.cloneJson(c),layout:o.util.cloneJson(d)};var f=0;c.forEach((function(e,t){e.color||(e.color=d.defaultColorRange[f],f=(f+1)%d.defaultColorRange.length),e.strokeColor||(e.strokeColor="LinePlot"===e.geometry?e.color:r.rgb(e.color).darker().toString()),u.data[t].color=e.color,u.data[t].strokeColor=e.strokeColor,u.data[t].strokeDash=e.strokeDash,u.data[t].strokeSize=e.strokeSize}));var p=c.filter((function(e,t){var n=e.visible;return void 0===n||!0===n})),h=!1,g=p.map((function(e,t){return h=h||void 0!==e.groupId,e}));if(h){var m=r.nest().key((function(e,t){return void 0!==e.groupId?e.groupId:"unstacked"})).entries(g),v=[],y=m.map((function(e,t){if("unstacked"===e.key)return e.values;var n=e.values[0].r.map((function(e,t){return 0}));return e.values.forEach((function(e,t,r){e.yStack=[n],v.push(n),n=o.util.sumArrays(e.r,n)})),e.values}));p=r.merge(y)}p.forEach((function(e,t){e.t=Array.isArray(e.t[0])?e.t:[e.t],e.r=Array.isArray(e.r[0])?e.r:[e.r]}));var x=Math.min(d.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2;x=Math.max(10,x);var b,_=[d.margin.left+x,d.margin.top+x];b=h?[0,r.max(o.util.sumArrays(o.util.arrayLast(p).r[0],o.util.arrayLast(v)))]:r.extent(o.util.flattenArray(p.map((function(e,t){return e.r})))),d.radialAxis.domain!=o.DATAEXTENT&&(b[0]=0),n=r.scale.linear().domain(d.radialAxis.domain!=o.DATAEXTENT&&d.radialAxis.domain?d.radialAxis.domain:b).range([0,x]),u.layout.radialAxis.domain=n.domain();var w,k=o.util.flattenArray(p.map((function(e,t){return e.t}))),T="string"==typeof k[0];T&&(k=o.util.deduplicate(k),w=k.slice(),k=r.range(k.length),p=p.map((function(e,t){var n=e;return e.t=[k],h&&(n.yStack=e.yStack),n})));var M=p.filter((function(e,t){return"LinePlot"===e.geometry||"DotPlot"===e.geometry})).length===p.length,A=null===d.needsEndSpacing?T||!M:d.needsEndSpacing,S=d.angularAxis.domain&&d.angularAxis.domain!=o.DATAEXTENT&&!T&&d.angularAxis.domain[0]>=0?d.angularAxis.domain:r.extent(k),L=Math.abs(k[1]-k[0]);M&&!T&&(L=0);var C=S.slice();A&&T&&(C[1]+=L);var O=d.angularAxis.ticksCount||4;O>8&&(O=O/(O/8)+O%8),d.angularAxis.ticksStep&&(O=(C[1]-C[0])/O);var P=d.angularAxis.ticksStep||(C[1]-C[0])/(O*(d.minorTicks+1));w&&(P=Math.max(Math.round(P),1)),C[2]||(C[2]=P);var E=r.range.apply(this,C);if(E=E.map((function(e,t){return parseFloat(e.toPrecision(12))})),l=r.scale.linear().domain(C.slice(0,2)).range("clockwise"===d.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=l.domain(),u.layout.angularAxis.endPadding=A?L:0,void 0===(e=r.select(this).select("svg.chart-root"))||e.empty()){var z=(new DOMParser).parseFromString("<svg xmlns='http://www.w3.org/2000/svg' class='chart-root'>' + '<g class='outer-group'>' + '<g class='chart-group'>' + '<circle class='background-circle'></circle>' + '<g class='geometry-group'></g>' + '<g class='radial axis-group'>' + '<circle class='outside-circle'></circle>' + '</g>' + '<g class='angular axis-group'></g>' + '<g class='guides-group'><line></line><circle r='0'></circle></g>' + '</g>' + '<g class='legend-group'></g>' + '<g class='tooltips-group'></g>' + '<g class='title-group'><text></text></g>' + '</g>' + '</svg>","application/xml"),D=this.appendChild(this.ownerDocument.importNode(z.documentElement,!0));e=r.select(D)}e.select(".guides-group").style({"pointer-events":"none"}),e.select(".angular.axis-group").style({"pointer-events":"none"}),e.select(".radial.axis-group").style({"pointer-events":"none"});var R,I=e.select(".chart-group"),N={fill:"none",stroke:d.tickColor},F={"font-size":d.font.size,"font-family":d.font.family,fill:d.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map((function(e,t){return" "+e+" 0 "+d.font.outlineColor})).join(",")};if(d.showLegend){R=e.select(".legend-group").attr({transform:"translate("+[x,d.margin.top]+")"}).style({display:"block"});var B=p.map((function(e,t){var n=o.util.cloneJson(e);return n.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",n.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,n.color="LinePlot"===e.geometry?e.strokeColor:e.color,n}));o.Legend().config({data:p.map((function(e,t){return e.name||"Element"+t})),legendConfig:a({},o.Legend.defaultConfig().legendConfig,{container:R,elements:B,reverseOrder:d.legend.reverseOrder})})();var j=R.node().getBBox();x=Math.min(d.width-j.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2,x=Math.max(10,x),_=[d.margin.left+x,d.margin.top+x],n.range([0,x]),u.layout.radialAxis.domain=n.domain(),R.attr("transform","translate("+[_[0]+x,_[1]-x]+")")}else R=e.select(".legend-group").style({display:"none"});e.attr({width:d.width,height:d.height}).style({opacity:d.opacity}),I.attr("transform","translate("+_+")").style({cursor:"crosshair"});var H=[(d.width-(d.margin.left+d.margin.right+2*x+(j?j.width:0)))/2,(d.height-(d.margin.top+d.margin.bottom+2*x))/2];if(H[0]=Math.max(0,H[0]),H[1]=Math.max(0,H[1]),e.select(".outer-group").attr("transform","translate("+H+")"),d.title&&d.title.text){var q=e.select("g.title-group text").style(F).text(d.title.text),V=q.node().getBBox();q.attr({x:_[0]-V.width/2,y:_[1]-x-20})}var U=e.select(".radial.axis-group");if(d.radialAxis.gridLinesVisible){var G=U.selectAll("circle.grid-circle").data(n.ticks(5));G.enter().append("circle").attr({class:"grid-circle"}).style(N),G.attr("r",n),G.exit().remove()}U.select("circle.outside-circle").attr({r:x}).style(N);var Z=e.select("circle.background-circle").attr({r:x}).style({fill:d.backgroundColor,stroke:d.stroke});function W(e,t){return l(e)%360+d.orientation}if(d.radialAxis.visible){var Y=r.svg.axis().scale(n).ticks(5).tickSize(5);U.call(Y).attr({transform:"rotate("+d.radialAxis.orientation+")"}),U.selectAll(".domain").style(N),U.selectAll("g>text").text((function(e,t){return this.textContent+d.radialAxis.ticksSuffix})).style(F).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===d.radialAxis.tickOrientation?"rotate("+-d.radialAxis.orientation+") translate("+[0,F["font-size"]]+")":"translate("+[0,F["font-size"]]+")"}}),U.selectAll("g>line").style({stroke:"black"})}var X=e.select(".angular.axis-group").selectAll("g.angular-tick").data(E),$=X.enter().append("g").classed("angular-tick",!0);X.attr({transform:function(e,t){return"rotate("+W(e)+")"}}).style({display:d.angularAxis.visible?"block":"none"}),X.exit().remove(),$.append("line").classed("grid-line",!0).classed("major",(function(e,t){return t%(d.minorTicks+1)==0})).classed("minor",(function(e,t){return!(t%(d.minorTicks+1)==0)})).style(N),$.selectAll(".minor").style({stroke:d.minorTickColor}),X.select("line.grid-line").attr({x1:d.tickLength?x-d.tickLength:0,x2:x}).style({display:d.angularAxis.gridLinesVisible?"block":"none"}),$.append("text").classed("axis-text",!0).style(F);var Q=X.select("text.axis-text").attr({x:x+d.labelOffset,dy:i+"em",transform:function(e,t){var n=W(e),r=x+d.labelOffset,a=d.angularAxis.tickOrientation;return"horizontal"==a?"rotate("+-n+" "+r+" 0)":"radial"==a?n<270&&n>90?"rotate(180 "+r+" 0)":null:"rotate("+(n<=180&&n>0?-90:90)+" "+r+" 0)"}}).style({"text-anchor":"middle",display:d.angularAxis.labelsVisible?"block":"none"}).text((function(e,t){return t%(d.minorTicks+1)!=0?"":w?w[e]+d.angularAxis.ticksSuffix:e+d.angularAxis.ticksSuffix})).style(F);d.angularAxis.rewriteTicks&&Q.text((function(e,t){return t%(d.minorTicks+1)!=0?"":d.angularAxis.rewriteTicks(this.textContent,t)}));var K=r.max(I.selectAll(".angular-tick text")[0].map((function(e,t){return e.getCTM().e+e.getBBox().width})));R.attr({transform:"translate("+[x+K,d.margin.top]+")"});var J=e.select("g.geometry-group").selectAll("g").size()>0,ee=e.select("g.geometry-group").selectAll("g.geometry").data(p);if(ee.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),ee.exit().remove(),p[0]||J){var te=[];p.forEach((function(e,t){var r={};r.radialScale=n,r.angularScale=l,r.container=ee.filter((function(e,n){return n==t})),r.geometry=e.geometry,r.orientation=d.orientation,r.direction=d.direction,r.index=t,te.push({data:e,geometryConfig:r})}));var ne=r.nest().key((function(e,t){return void 0!==e.data.groupId||"unstacked"})).entries(te),re=[];ne.forEach((function(e,t){"unstacked"===e.key?re=re.concat(e.values.map((function(e,t){return[e]}))):re.push(e.values)})),re.forEach((function(e,t){var n;n=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var r=e.map((function(e,t){return a(o[n].defaultConfig(),e)}));o[n]().config(r)()}))}var ae,ie,oe=e.select(".guides-group"),le=e.select(".tooltips-group"),se=o.tooltipPanel().config({container:le,fontSize:8})(),ce=o.tooltipPanel().config({container:le,fontSize:8})(),ue=o.tooltipPanel().config({container:le,hasTick:!0})();if(!T){var fe=oe.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});I.on("mousemove.angular-guide",(function(e,t){var n=o.util.getMousePos(Z).angle;fe.attr({x2:-x,transform:"rotate("+n+")"}).style({opacity:.5});var r=(n+180+360-d.orientation)%360;ae=l.invert(r);var a=o.util.convertToCartesian(x+12,n+180);se.text(o.util.round(ae)).move([a[0]+_[0],a[1]+_[1]])})).on("mouseout.angular-guide",(function(e,t){oe.select("line").style({opacity:0})}))}var de=oe.select("circle").style({stroke:"grey",fill:"none"});I.on("mousemove.radial-guide",(function(e,t){var r=o.util.getMousePos(Z).radius;de.attr({r:r}).style({opacity:.5}),ie=n.invert(o.util.getMousePos(Z).radius);var a=o.util.convertToCartesian(r,d.radialAxis.orientation);ce.text(o.util.round(ie)).move([a[0]+_[0],a[1]+_[1]])})).on("mouseout.radial-guide",(function(e,t){de.style({opacity:0}),ue.hide(),se.hide(),ce.hide()})),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",(function(t,n){var a=r.select(this),i=this.style.fill,l="black",s=this.style.opacity||1;if(a.attr({"data-opacity":s}),i&&"none"!==i){a.attr({"data-fill":i}),l=r.hsl(i).darker().toString(),a.style({fill:l,opacity:1});var c={t:o.util.round(t[0]),r:o.util.round(t[1])};T&&(c.t=w[t[0]]);var u="t: "+c.t+", r: "+c.r,f=this.getBoundingClientRect(),d=e.node().getBoundingClientRect(),p=[f.left+f.width/2-H[0]-d.left,f.top+f.height/2-H[1]-d.top];ue.config({color:l}).text(u),ue.move(p)}else i=this.style.stroke||"black",a.attr({"data-stroke":i}),l=r.hsl(i).darker().toString(),a.style({stroke:l,opacity:1})})).on("mousemove.tooltip",(function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&ue.show()})).on("mouseout.tooltip",(function(e,t){ue.hide();var n=r.select(this),a=n.attr("data-fill");a?n.style({fill:a,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})}))}))}(c),this},config:function(e){if(!arguments.length)return s;var t=o.util.cloneJson(e);return t.data.forEach((function(e,t){s.data[t]||(s.data[t]={}),a(s.data[t],o.Axis.defaultConfig().data[0]),a(s.data[t],e)})),a(s.layout,o.Axis.defaultConfig().layout),a(s.layout,t.layout),this},getLiveConfig:function(){return u},getinputConfig:function(){return c},radialScale:function(e){return n},angularScale:function(e){return l},svg:function(){return e}};return r.rebind(d,f,"on"),d},o.Axis.defaultConfig=function(e,t){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:r.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT="dataExtent",o.AREA="AreaChart",o.LINE="LinePlot",o.DOT="DotPlot",o.BAR="BarChart",o.util._override=function(e,t){for(var n in e)n in t&&(t[n]=e[n])},o.util._extend=function(e,t){for(var n in e)t[n]=e[n]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(e,t){var n=t||6;return r.range(0,360+n,n).map((function(t,n){var r=t*Math.PI/180;return[t,e(r)]}))},o.util.dataFromEquation=function(e,t,n){var a=t||6,i=[],o=[];r.range(0,360+a,a).forEach((function(t,n){var r=t*Math.PI/180,a=e(r);i.push(t),o.push(a)}));var l={t:i,r:o};return n&&(l.name=n),l},o.util.ensureArray=function(e,t){if(void 0===e)return null;var n=[].concat(e);return r.range(t).map((function(e,t){return n[t]||n[0]}))},o.util.fillArrays=function(e,t,n){return t.forEach((function(t,r){e[t]=o.util.ensureArray(e[t],n)})),e},o.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},o.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var n=t.shift();return e[n]&&(!t.length||objHasKeys(e[n],t))},o.util.sumArrays=function(e,t){return r.zip(e,t).map((function(e,t){return r.sum(e)}))},o.util.arrayLast=function(e){return e[e.length-1]},o.util.arrayEqual=function(e,t){for(var n=Math.max(e.length,t.length,1);n-- >=0&&e[n]===t[n];);return-2===n},o.util.flattenArray=function(e){for(var t=[];!o.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},o.util.deduplicate=function(e){return e.filter((function(e,t,n){return n.indexOf(e)==t}))},o.util.convertToCartesian=function(e,t){var n=t*Math.PI/180;return[e*Math.cos(n),e*Math.sin(n)]},o.util.round=function(e,t){var n=t||2,r=Math.pow(10,n);return Math.round(e*r)/r},o.util.getMousePos=function(e){var t=r.mouse(e.node()),n=t[0],a=t[1],i={};return i.x=n,i.y=a,i.pos=t,i.angle=180*(Math.atan2(a,n)+Math.PI)/Math.PI,i.radius=Math.sqrt(n*n+a*a),i},o.util.duplicatesCount=function(e){for(var t,n={},r={},a=0,i=e.length;a<i;a++)(t=e[a])in n?(n[t]++,r[t]=n[t]):n[t]=1;return r},o.util.duplicates=function(e){return Object.keys(o.util.duplicatesCount(e))},o.util.translator=function(e,t,n,r){if(r){var a=n.slice();n=t,t=a}var i=t.reduce((function(e,t){if(void 0!==e)return e[t]}),e);void 0!==i&&(t.reduce((function(e,n,r){if(void 0!==e)return r===t.length-1&&delete e[n],e[n]}),e),n.reduce((function(e,t,r){return void 0===e[t]&&(e[t]={}),r===n.length-1&&(e[t]=i),e[t]}),e))},o.PolyChart=function(){var e=[o.PolyChart.defaultConfig()],t=r.dispatch("hover"),n={solid:"none",dash:[5,2],dot:[2,5]};function i(){var t=e[0].geometryConfig,a=t.container;"string"==typeof a&&(a=r.select(a)),a.datum(e).each((function(e,a){var i=!!e[0].data.yStack,o=e.map((function(e,t){return i?r.zip(e.data.t[0],e.data.r[0],e.data.yStack[0]):r.zip(e.data.t[0],e.data.r[0])})),l=t.angularScale,s=t.radialScale.domain()[0],c={bar:function(n,a,i){var o=e[i].data,s=t.radialScale(n[1])-t.radialScale(0),c=t.radialScale(n[2]||0),u=o.barWidth;r.select(this).attr({class:"mark bar",d:"M"+[[s+c,-u/2],[s+c,u/2],[c,u/2],[c,-u/2]].join("L")+"Z",transform:function(e,n){return"rotate("+(t.orientation+l(e[0]))+")"}})},dot:function(n,a,i){var o=n[2]?[n[0],n[1]+n[2]]:n,l=r.svg.symbol().size(e[i].data.dotSize).type(e[i].data.dotType)(n,a);r.select(this).attr({class:"mark dot",d:l,transform:function(e,n){var r,a,i,l=(r=function(e,n){var r=t.radialScale(e[1]),a=(t.angularScale(e[0])+t.orientation)*Math.PI/180;return{r:r,t:a}}(o),a=r.r*Math.cos(r.t),i=r.r*Math.sin(r.t),{x:a,y:i});return"translate("+[l.x,l.y]+")"}})}},u=r.svg.line.radial().interpolate(e[0].data.lineInterpolation).radius((function(e){return t.radialScale(e[1])})).angle((function(e){return t.angularScale(e[0])*Math.PI/180}));c.line=function(n,a,i){var l=n[2]?o[i].map((function(e,t){return[e[0],e[1]+e[2]]})):o[i];if(r.select(this).each(c.dot).style({opacity:function(t,n){return+e[i].data.dotVisible},fill:h.stroke(n,a,i)}).attr({class:"mark dot"}),!(a>0)){var s=r.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:u(l),transform:function(e,n){return"rotate("+(t.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return h.fill(n,a,i)},"fill-opacity":0,stroke:function(e,t){return h.stroke(n,a,i)},"stroke-width":function(e,t){return h["stroke-width"](n,a,i)},"stroke-dasharray":function(e,t){return h["stroke-dasharray"](n,a,i)},opacity:function(e,t){return h.opacity(n,a,i)},display:function(e,t){return h.display(n,a,i)}})}};var f=t.angularScale.range(),d=Math.abs(f[1]-f[0])/o[0].length*Math.PI/180,p=r.svg.arc().startAngle((function(e){return-d/2})).endAngle((function(e){return d/2})).innerRadius((function(e){return t.radialScale(s+(e[2]||0))})).outerRadius((function(e){return t.radialScale(s+(e[2]||0))+t.radialScale(e[1])}));c.arc=function(e,n,a){r.select(this).attr({class:"mark arc",d:p,transform:function(e,n){return"rotate("+(t.orientation+l(e[0])+90)+")"}})};var h={fill:function(t,n,r){return e[r].data.color},stroke:function(t,n,r){return e[r].data.strokeColor},"stroke-width":function(t,n,r){return e[r].data.strokeSize+"px"},"stroke-dasharray":function(t,r,a){return n[e[a].data.strokeDash]},opacity:function(t,n,r){return e[r].data.opacity},display:function(t,n,r){return void 0===e[r].data.visible||e[r].data.visible?"block":"none"}},g=r.select(this).selectAll("g.layer").data(o);g.enter().append("g").attr({class:"layer"});var m=g.selectAll("path.mark").data((function(e,t){return e}));m.enter().append("path").attr({class:"mark"}),m.style(h).each(c[t.geometryType]),m.exit().remove(),g.exit().remove()}))}return i.config=function(t){return arguments.length?(t.forEach((function(t,n){e[n]||(e[n]={}),a(e[n],o.PolyChart.defaultConfig()),a(e[n],t)})),this):e},i.getColorScale=function(){},r.rebind(i,t,"on"),i},o.PolyChart.defaultConfig=function(){return{data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:r.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},o.Legend=function(){var e=o.Legend.defaultConfig(),t=r.dispatch("hover");function n(){var t=e.legendConfig,i=e.data.map((function(e,n){return[].concat(e).map((function(e,r){var i=a({},t.elements[n]);return i.name=e,i.color=[].concat(t.elements[n].color)[r],i}))})),o=r.merge(i);o=o.filter((function(e,n){return t.elements[n]&&(t.elements[n].visibleInLegend||void 0===t.elements[n].visibleInLegend)})),t.reverseOrder&&(o=o.reverse());var l=t.container;("string"==typeof l||l.nodeName)&&(l=r.select(l));var s=o.map((function(e,t){return e.color})),c=t.fontSize,u=null==t.isContinuous?"number"==typeof o[0]:t.isContinuous,f=u?t.height:c*o.length,d=l.classed("legend-group",!0).selectAll("svg").data([0]),p=d.enter().append("svg").attr({width:300,height:f+c,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});p.append("g").classed("legend-axis",!0),p.append("g").classed("legend-marks",!0);var h=r.range(o.length),g=r.scale[u?"linear":"ordinal"]().domain(h).range(s),m=r.scale[u?"linear":"ordinal"]().domain(h)[u?"range":"rangePoints"]([0,f]);if(u){var v=d.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(s);v.enter().append("stop"),v.attr({offset:function(e,t){return t/(s.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),d.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var y=d.select(".legend-marks").selectAll("path.legend-mark").data(o);y.enter().append("path").classed("legend-mark",!0),y.attr({transform:function(e,t){return"translate("+[c/2,m(t)+c/2]+")"},d:function(e,t){var n,a,i,o=e.symbol;return i=3*(a=c),"line"===(n=o)?"M"+[[-a/2,-a/12],[a/2,-a/12],[a/2,a/12],[-a/2,a/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(n)?r.svg.symbol().type(n).size(i)():r.svg.symbol().type("square").size(i)()},fill:function(e,t){return g(t)}}),y.exit().remove()}var x=r.svg.axis().scale(m).orient("right"),b=d.select("g.legend-axis").attr({transform:"translate("+[u?t.colorBandWidth:c,c/2]+")"}).call(x);return b.selectAll(".domain").style({fill:"none",stroke:"none"}),b.selectAll("line").style({fill:"none",stroke:u?t.textColor:"none"}),b.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text((function(e,t){return o[t].name})),n}return n.config=function(t){return arguments.length?(a(e,t),this):e},r.rebind(n,t,"on"),n},o.Legend.defaultConfig=function(e,t){return{data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}}},o.tooltipPanel=function(){var e,t,n,i={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},l="tooltip-"+o.tooltipPanel.uid++,s=10,c=function(){var r=(e=i.container.selectAll("g."+l).data([0])).enter().append("g").classed(l,!0).style({"pointer-events":"none",display:"none"});return n=r.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=r.append("text").attr({dx:i.padding+s,dy:.3*+i.fontSize}),c};return c.text=function(a){var o=r.hsl(i.color).l,l=o>=.5?"#aaa":"white",u=o>=.5?"black":"white",f=a||"";t.style({fill:u,"font-size":i.fontSize+"px"}).text(f);var d=i.padding,p=t.node().getBBox(),h={fill:i.color,stroke:l,"stroke-width":"2px"},g=p.width+2*d+s,m=p.height+2*d;return n.attr({d:"M"+[[s,-m/2],[s,-m/4],[i.hasTick?0:s,0],[s,m/4],[s,m/2],[g,m/2],[g,-m/2]].join("L")+"Z"}).style(h),e.attr({transform:"translate("+[s,-m/2+2*d]+")"}),e.style({display:"block"}),c},c.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),c},c.hide=function(){if(e)return e.style({display:"none"}),c},c.show=function(){if(e)return e.style({display:"block"}),c},c.config=function(e){return a(i,e),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var e={convert:function(e,t){var n={};if(e.data&&(n.data=e.data.map((function(e,n){var r=a({},e);return[[r,["marker","color"],["color"]],[r,["marker","opacity"],["opacity"]],[r,["marker","line","color"],["strokeColor"]],[r,["marker","line","dash"],["strokeDash"]],[r,["marker","line","width"],["strokeSize"]],[r,["marker","symbol"],["dotType"]],[r,["marker","size"],["dotSize"]],[r,["marker","barWidth"],["barWidth"]],[r,["line","interpolation"],["lineInterpolation"]],[r,["showlegend"],["visibleInLegend"]]].forEach((function(e,n){o.util.translator.apply(null,e.concat(t))})),t||delete r.marker,t&&delete r.groupId,t?("LinePlot"===r.geometry?(r.type="scatter",!0===r.dotVisible?(delete r.dotVisible,r.mode="lines+markers"):r.mode="lines"):"DotPlot"===r.geometry?(r.type="scatter",r.mode="markers"):"AreaChart"===r.geometry?r.type="area":"BarChart"===r.geometry&&(r.type="bar"),delete r.geometry):("scatter"===r.type?"lines"===r.mode?r.geometry="LinePlot":"markers"===r.mode?r.geometry="DotPlot":"lines+markers"===r.mode&&(r.geometry="LinePlot",r.dotVisible=!0):"area"===r.type?r.geometry="AreaChart":"bar"===r.type&&(r.geometry="BarChart"),delete r.mode,delete r.type),r})),!t&&e.layout&&"stack"===e.layout.barmode)){var i=o.util.duplicates(n.data.map((function(e,t){return e.geometry})));n.data.forEach((function(e,t){var r=i.indexOf(e.geometry);-1!=r&&(n.data[t].groupId=r)}))}if(e.layout){var l=a({},e.layout);if([[l,["plot_bgcolor"],["backgroundColor"]],[l,["showlegend"],["showLegend"]],[l,["radialaxis"],["radialAxis"]],[l,["angularaxis"],["angularAxis"]],[l.angularaxis,["showline"],["gridLinesVisible"]],[l.angularaxis,["showticklabels"],["labelsVisible"]],[l.angularaxis,["nticks"],["ticksCount"]],[l.angularaxis,["tickorientation"],["tickOrientation"]],[l.angularaxis,["ticksuffix"],["ticksSuffix"]],[l.angularaxis,["range"],["domain"]],[l.angularaxis,["endpadding"],["endPadding"]],[l.radialaxis,["showline"],["gridLinesVisible"]],[l.radialaxis,["tickorientation"],["tickOrientation"]],[l.radialaxis,["ticksuffix"],["ticksSuffix"]],[l.radialaxis,["range"],["domain"]],[l.angularAxis,["showline"],["gridLinesVisible"]],[l.angularAxis,["showticklabels"],["labelsVisible"]],[l.angularAxis,["nticks"],["ticksCount"]],[l.angularAxis,["tickorientation"],["tickOrientation"]],[l.angularAxis,["ticksuffix"],["ticksSuffix"]],[l.angularAxis,["range"],["domain"]],[l.angularAxis,["endpadding"],["endPadding"]],[l.radialAxis,["showline"],["gridLinesVisible"]],[l.radialAxis,["tickorientation"],["tickOrientation"]],[l.radialAxis,["ticksuffix"],["ticksSuffix"]],[l.radialAxis,["range"],["domain"]],[l.font,["outlinecolor"],["outlineColor"]],[l.legend,["traceorder"],["reverseOrder"]],[l,["labeloffset"],["labelOffset"]],[l,["defaultcolorrange"],["defaultColorRange"]]].forEach((function(e,n){o.util.translator.apply(null,e.concat(t))})),t?(void 0!==l.tickLength&&(l.angularaxis.ticklen=l.tickLength,delete l.tickLength),l.tickColor&&(l.angularaxis.tickcolor=l.tickColor,delete l.tickColor)):(l.angularAxis&&void 0!==l.angularAxis.ticklen&&(l.tickLength=l.angularAxis.ticklen),l.angularAxis&&void 0!==l.angularAxis.tickcolor&&(l.tickColor=l.angularAxis.tickcolor)),l.legend&&"boolean"!=typeof l.legend.reverseOrder&&(l.legend.reverseOrder="normal"!=l.legend.reverseOrder),l.legend&&"boolean"==typeof l.legend.traceorder&&(l.legend.traceorder=l.legend.traceorder?"reversed":"normal",delete l.legend.reverseOrder),l.margin&&void 0!==l.margin.t){var s=["t","r","b","l","pad"],c=["top","right","bottom","left","pad"],u={};r.entries(l.margin).forEach((function(e,t){u[c[s.indexOf(e.key)]]=e.value})),l.margin=u}t&&(delete l.needsEndSpacing,delete l.minorTickColor,delete l.minorTicks,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksStep,delete l.angularaxis.rewriteTicks,delete l.angularaxis.nticks,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksStep,delete l.radialaxis.rewriteTicks,delete l.radialaxis.nticks),n.layout=l}return n}};return e}},{"../../../constants/alignment":154,"../../../lib":178,d3:16}],261:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../../lib"),i=e("../../../components/color"),o=e("./micropolar"),l=e("./undo_manager"),s=a.extendDeepAll,c=t.exports={};c.framework=function(e){var t,n,a,i,u,f=new l;function d(n,l){return l&&(u=l),r.select(r.select(u).node().parentNode).selectAll(".svg-container>*:not(.chart-root)").remove(),t=t?s(t,n):n,a||(a=o.Axis()),i=o.adapter.plotly().convert(t),a.config(i).render(u),e.data=t.data,e.layout=t.layout,c.fillLayout(e),t}return d.isPolar=!0,d.svg=function(){return a.svg()},d.getConfig=function(){return t},d.getLiveConfig=function(){return o.adapter.plotly().convert(a.getLiveConfig(),!0)},d.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},d.setUndoPoint=function(){var e,r,a=this,i=o.util.cloneJson(t);e=i,r=n,f.add({undo:function(){r&&a(r)},redo:function(){a(e)}}),n=o.util.cloneJson(i)},d.undo=function(){f.undo()},d.redo=function(){f.redo()},d},c.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),a=e.framework&&e.framework.svg&&e.framework.svg(),o={width:800,height:600,paper_bgcolor:i.background,_container:t,_paperdiv:n,_paper:a};e._fullLayout=s(o,e.layout)}},{"../../../components/color":52,"../../../lib":178,"./micropolar":260,"./undo_manager":262,d3:16}],262:[function(e,t,n){"use strict";t.exports=function(){var e,t=[],n=-1,r=!1;function a(e,t){return e?(r=!0,e[t](),r=!1,this):this}return{add:function(e){return r||(t.splice(n+1,t.length-n),t.push(e),n=t.length-1),this},setCallback:function(t){e=t},undo:function(){var r=t[n];return r?(a(r,"undo"),n-=1,e&&e(r.undo),this):this},redo:function(){var r=t[n+1];return r?(a(r,"redo"),n+=1,e&&e(r.redo),this):this},clear:function(){t=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n<t.length-1},getCommands:function(){return t},getPreviousCommand:function(){return t[n-1]},getIndex:function(){return n}}}},{}],263:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plot_api/plot_template"),i=e("./domain").defaults;t.exports=function(e,t,n,o){var l,s,c=o.type,u=o.attributes,f=o.handleDefaults,d=o.partition||"x",p=t._subplots[c],h=p.length,g=h&&p[0].replace(/\d+$/,"");function m(e,t){return r.coerce(l,s,u,e,t)}for(var v=0;v<h;v++){var y=p[v];l=e[y]?e[y]:e[y]={},s=a.newContainer(t,y,g),m("uirevision",t.uirevision);var x={};x[d]=[v/h,(v+1)/h],i(s,t,m,x),o.id=y,f(l,s,m,o)}}},{"../lib":178,"../plot_api/plot_template":212,"./domain":249}],264:[function(e,t,n){"use strict";function r(e){var t=e.description?" "+e.description:"",n=e.keys||[];if(n.length>0){for(var r=[],a=0;a<n.length;a++)r[a]="`"+n[a]+"`";t+="Finally, the template string has access to ",t=1===n.length?"variable "+r[0]:"variables "+r.slice(0,-1).join(", ")+" and "+r.slice(-1)+"."}return t}['Variables are inserted using %{variable}, for example "y: %{y}".','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".',e("../constants/docs").FORMAT_LINK,"for details on the formatting syntax.",'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".',e("../constants/docs").DATE_FORMAT_LINK,"for details on the date formatting syntax."].join(" "),n.hovertemplateAttrs=function(e,t){e=e||{},r(t=t||{});var n={valType:"string",dflt:"",editType:e.editType||"none"};return!1!==e.arrayOk&&(n.arrayOk=!0),n},n.texttemplateAttrs=function(e,t){e=e||{},r(t=t||{});var n={valType:"string",dflt:"",editType:e.editType||"calc"};return!1!==e.arrayOk&&(n.arrayOk=!0),n}},{"../constants/docs":155}],265:[function(e,t,n){"use strict";var r=e("./ternary"),a=e("../../plots/get_data").getSubplotCalcData,i=e("../../lib").counterRegex;n.name="ternary";var o=n.attr="subplot";n.idRoot="ternary",n.idRegex=n.attrRegex=i("ternary"),(n.attributes={})[o]={valType:"subplotid",dflt:"ternary",editType:"calc"},n.layoutAttributes=e("./layout_attributes"),n.supplyLayoutDefaults=e("./layout_defaults"),n.plot=function(e){for(var t=e._fullLayout,n=e.calcdata,i=t._subplots.ternary,o=0;o<i.length;o++){var l=i[o],s=a(n,"ternary",l),c=t[l]._subplot;c||(c=new r({id:l,graphDiv:e,container:t._ternarylayer.node()},t),t[l]._subplot=c),c.plot(s,t,e._promises)}},n.clean=function(e,t,n,r){for(var a=r._subplots.ternary||[],i=0;i<a.length;i++){var o=a[i],l=r[o]._subplot;!t[o]&&l&&(l.plotContainer.remove(),l.clipDef.remove(),l.clipDefRelative.remove(),l.layers["a-title"].remove(),l.layers["b-title"].remove(),l.layers["c-title"].remove())}}},{"../../lib":178,"../../plots/get_data":252,"./layout_attributes":266,"./layout_defaults":267,"./ternary":268}],266:[function(e,t,n){"use strict";var r=e("../../components/color/attributes"),a=e("../domain").attributes,i=e("../cartesian/layout_attributes"),o=e("../../plot_api/edit_types").overrideAll,l=e("../../lib/extend").extendFlat,s={title:{text:i.title.text,font:i.title.font},color:i.color,tickmode:i.tickmode,nticks:l({},i.nticks,{dflt:6,min:1}),tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:l({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:l({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth,layer:i.layer,min:{valType:"number",dflt:0,min:0},_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},c=t.exports=o({domain:a({name:"ternary"}),bgcolor:{valType:"color",dflt:r.background},sum:{valType:"number",dflt:1,min:0},aaxis:s,baxis:s,caxis:s},"plot","from-root");c.uirevision={valType:"any",editType:"none"},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:"any",editType:"none"}},{"../../components/color/attributes":51,"../../lib/extend":173,"../../plot_api/edit_types":205,"../cartesian/layout_attributes":236,"../domain":249}],267:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../../plot_api/plot_template"),i=e("../../lib"),o=e("../subplot_defaults"),l=e("../cartesian/tick_label_defaults"),s=e("../cartesian/tick_mark_defaults"),c=e("../cartesian/tick_value_defaults"),u=e("../cartesian/line_grid_defaults"),f=e("./layout_attributes"),d=["aaxis","baxis","caxis"];function p(e,t,n,i){var o,l,s,c=n("bgcolor"),u=n("sum");i.bgColor=r.combine(c,i.paper_bgcolor);for(var f=0;f<d.length;f++)l=e[o=d[f]]||{},(s=a.newContainer(t,o))._name=o,h(l,s,i,t);var p=t.aaxis,g=t.baxis,m=t.caxis;p.min+g.min+m.min>=u&&(p.min=0,g.min=0,m.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function h(e,t,n,r){var a=f[t._name];function o(n,r){return i.coerce(e,t,a,n,r)}o("uirevision",r.uirevision),t.type="linear";var d=o("color"),p=d!==a.color.dflt?d:n.font.color,h=t._name.charAt(0).toUpperCase(),g="Component "+h,m=o("title.text",g);t._hovertitle=m===g?m:h,i.coerceFont(o,"title.font",{family:n.font.family,size:Math.round(1.2*n.font.size),color:p}),o("min"),c(e,t,o,"linear"),l(e,t,o,"linear",{}),s(e,t,o,{outerTicks:!0}),o("showticklabels")&&(i.coerceFont(o,"tickfont",{family:n.font.family,size:n.font.size,color:p}),o("tickangle"),o("tickformat")),u(e,t,o,{dfltColor:d,bgColor:n.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:a}),o("hoverformat"),o("layer")}t.exports=function(e,t,n){o(e,t,n,{type:"ternary",attributes:f,handleDefaults:p,font:t.font,paper_bgcolor:t.paper_bgcolor})}},{"../../components/color":52,"../../lib":178,"../../plot_api/plot_template":212,"../cartesian/line_grid_defaults":238,"../cartesian/tick_label_defaults":243,"../cartesian/tick_mark_defaults":244,"../cartesian/tick_value_defaults":245,"../subplot_defaults":263,"./layout_attributes":266}],268:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),i=e("../../registry"),o=e("../../lib"),l=o._,s=e("../../components/color"),c=e("../../components/drawing"),u=e("../cartesian/set_convert"),f=e("../../lib/extend").extendFlat,d=e("../plots"),p=e("../cartesian/axes"),h=e("../../components/dragelement"),g=e("../../components/fx"),m=e("../../components/dragelement/helpers"),v=m.freeMode,y=m.rectMode,x=e("../../components/titles"),b=e("../cartesian/select").prepSelect,_=e("../cartesian/select").selectOnClick,w=e("../cartesian/select").clearSelect,k=e("../cartesian/select").clearSelectionsCache,T=e("../cartesian/constants");function M(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}t.exports=M;var A=M.prototype;A.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}},A.plot=function(e,t){var n=t[this.id],r=t._size;this._hasClipOnAxisFalse=!1;for(var a=0;a<e.length;a++)if(!1===e[a][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}this.updateLayers(n),this.adjustLayout(n,r),d.generalUpdatePerTraceModule(this.graphDiv,this,e,n),this.layers.plotbg.select("path").call(s.fill,n.bgcolor)},A.makeFramework=function(e){var t=this.graphDiv,n=e[this.id],r=this.clipId="clip"+this.layoutId+this.id,a=this.clipIdRelative="clip-relative"+this.layoutId+this.id;this.clipDef=o.ensureSingleById(e._clips,"clipPath",r,(function(e){e.append("path").attr("d","M0,0Z")})),this.clipDefRelative=o.ensureSingleById(e._clips,"clipPath",a,(function(e){e.append("path").attr("d","M0,0Z")})),this.plotContainer=o.ensureSingle(this.container,"g",this.id),this.updateLayers(n),c.setClipUrl(this.layers.backplot,r,t),c.setClipUrl(this.layers.grids,r,t)},A.updateLayers=function(e){var t=this.layers,n=["draglayer","plotbg","backplot","grids"];"below traces"===e.aaxis.layer&&n.push("aaxis","aline"),"below traces"===e.baxis.layer&&n.push("baxis","bline"),"below traces"===e.caxis.layer&&n.push("caxis","cline"),n.push("frontplot"),"above traces"===e.aaxis.layer&&n.push("aaxis","aline"),"above traces"===e.baxis.layer&&n.push("baxis","bline"),"above traces"===e.caxis.layer&&n.push("caxis","cline");var a=this.plotContainer.selectAll("g.toplevel").data(n,String),i=["agrid","bgrid","cgrid"];a.enter().append("g").attr("class",(function(e){return"toplevel "+e})).each((function(e){var n=r.select(this);t[e]=n,"frontplot"===e?n.append("g").classed("scatterlayer",!0):"backplot"===e?n.append("g").classed("maplayer",!0):"plotbg"===e?n.append("path").attr("d","M0,0Z"):"aline"===e||"bline"===e||"cline"===e?n.append("path"):"grids"===e&&i.forEach((function(e){t[e]=n.append("g").classed("grid "+e,!0)}))})),a.order()};var S=Math.sqrt(4/3);A.adjustLayout=function(e,t){var n,r,a,i,o,l,d=this,p=e.domain,h=(p.x[0]+p.x[1])/2,g=(p.y[0]+p.y[1])/2,m=p.x[1]-p.x[0],v=p.y[1]-p.y[0],y=m*t.w,x=v*t.h,b=e.sum,_=e.aaxis.min,w=e.baxis.min,k=e.caxis.min;y>S*x?a=(i=x)*S:i=(a=y)/S,o=m*a/y,l=v*i/x,n=t.l+t.w*h-a/2,r=t.t+t.h*(1-g)-i/2,d.x0=n,d.y0=r,d.w=a,d.h=i,d.sum=b,d.xaxis={type:"linear",range:[_+2*k-b,b-_-2*w],domain:[h-o/2,h+o/2],_id:"x"},u(d.xaxis,d.graphDiv._fullLayout),d.xaxis.setScale(),d.xaxis.isPtWithinRange=function(e){return e.a>=d.aaxis.range[0]&&e.a<=d.aaxis.range[1]&&e.b>=d.baxis.range[1]&&e.b<=d.baxis.range[0]&&e.c>=d.caxis.range[1]&&e.c<=d.caxis.range[0]},d.yaxis={type:"linear",range:[_,b-w-k],domain:[g-l/2,g+l/2],_id:"y"},u(d.yaxis,d.graphDiv._fullLayout),d.yaxis.setScale(),d.yaxis.isPtWithinRange=function(){return!0};var T=d.yaxis.domain[0],M=d.aaxis=f({},e.aaxis,{range:[_,b-w-k],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+l*S],anchor:"free",position:0,_id:"y",_length:a});u(M,d.graphDiv._fullLayout),M.setScale();var A=d.baxis=f({},e.baxis,{range:[b-_-k,w],side:"bottom",domain:d.xaxis.domain,anchor:"free",position:0,_id:"x",_length:a});u(A,d.graphDiv._fullLayout),A.setScale();var L=d.caxis=f({},e.caxis,{range:[b-_-w,k],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+l*S],anchor:"free",position:0,_id:"y",_length:a});u(L,d.graphDiv._fullLayout),L.setScale();var C="M"+n+","+(r+i)+"h"+a+"l-"+a/2+",-"+i+"Z";d.clipDef.select("path").attr("d",C),d.layers.plotbg.select("path").attr("d",C);var O="M0,"+i+"h"+a+"l-"+a/2+",-"+i+"Z";d.clipDefRelative.select("path").attr("d",O);var P="translate("+n+","+r+")";d.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),d.clipDefRelative.select("path").attr("transform",null);var E="translate("+(n-A._offset)+","+(r+i)+")";d.layers.baxis.attr("transform",E),d.layers.bgrid.attr("transform",E);var z="translate("+(n+a/2)+","+r+")rotate(30)translate(0,"+-M._offset+")";d.layers.aaxis.attr("transform",z),d.layers.agrid.attr("transform",z);var D="translate("+(n+a/2)+","+r+")rotate(-30)translate(0,"+-L._offset+")";d.layers.caxis.attr("transform",D),d.layers.cgrid.attr("transform",D),d.drawAxes(!0),d.layers.aline.select("path").attr("d",M.showline?"M"+n+","+(r+i)+"l"+a/2+",-"+i:"M0,0").call(s.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),d.layers.bline.select("path").attr("d",A.showline?"M"+n+","+(r+i)+"h"+a:"M0,0").call(s.stroke,A.linecolor||"#000").style("stroke-width",(A.linewidth||0)+"px"),d.layers.cline.select("path").attr("d",L.showline?"M"+(n+a/2)+","+r+"l"+a/2+","+i:"M0,0").call(s.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),d.graphDiv._context.staticPlot||d.initInteractions(),c.setClipUrl(d.layers.frontplot,d._hasClipOnAxisFalse?null:d.clipId,d.graphDiv)},A.drawAxes=function(e){var t=this.graphDiv,n=this.id.substr(7)+"title",r=this.layers,a=this.aaxis,i=this.baxis,o=this.caxis;if(this.drawAx(a),this.drawAx(i),this.drawAx(o),e){var s=Math.max(a.showticklabels?a.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+("outside"===o.ticks?.87*o.ticklen:0)),c=(i.showticklabels?i.tickfont.size:0)+("outside"===i.ticks?i.ticklen:0)+3;r["a-title"]=x.draw(t,"a"+n,{propContainer:a,propName:this.id+".aaxis.title",placeholder:l(t,"Click to enter Component A title"),attributes:{x:this.x0+this.w/2,y:this.y0-a.title.font.size/3-s,"text-anchor":"middle"}}),r["b-title"]=x.draw(t,"b"+n,{propContainer:i,propName:this.id+".baxis.title",placeholder:l(t,"Click to enter Component B title"),attributes:{x:this.x0-c,y:this.y0+this.h+.83*i.title.font.size+c,"text-anchor":"middle"}}),r["c-title"]=x.draw(t,"c"+n,{propContainer:o,propName:this.id+".caxis.title",placeholder:l(t,"Click to enter Component C title"),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,"text-anchor":"middle"}})}},A.drawAx=function(e){var t,n=this.graphDiv,r=e._name,a=r.charAt(0),i=e._id,l=this.layers[r],s=a+"tickLayout",c=(t=e).ticks+String(t.ticklen)+String(t.showticklabels);this[s]!==c&&(l.selectAll("."+i+"tick").remove(),this[s]=c),e.setScale();var u=p.calcTicks(e),f=p.clipEnds(e,u),d=p.makeTransFn(e),h=p.getTickSigns(e)[2],g=o.deg2rad(30),m=h*(e.linewidth||1)/2,v=h*e.ticklen,y=this.w,x=this.h,b="b"===a?"M0,"+m+"l"+Math.sin(g)*v+","+Math.cos(g)*v:"M"+m+",0l"+Math.cos(g)*v+","+-Math.sin(g)*v,_={a:"M0,0l"+x+",-"+y/2,b:"M0,0l-"+y/2+",-"+x,c:"M0,0l-"+x+","+y/2}[a];p.drawTicks(n,e,{vals:"inside"===e.ticks?f:u,layer:l,path:b,transFn:d,crisp:!1}),p.drawGrid(n,e,{vals:f,layer:this.layers[a+"grid"],path:_,transFn:d,crisp:!1}),p.drawLabels(n,e,{vals:u,layer:l,transFn:d,labelFns:p.makeLabelFns(e,0,30)})};var L=T.MINZOOM/2+.87,C="m-0.87,.5h"+L+"v3h-"+(L+5.2)+"l"+(L/2+2.6)+",-"+(.87*L+4.5)+"l2.6,1.5l-"+L/2+","+.87*L+"Z",O="m0.87,.5h-"+L+"v3h"+(L+5.2)+"l-"+(L/2+2.6)+",-"+(.87*L+4.5)+"l-2.6,1.5l"+L/2+","+.87*L+"Z",P="m0,1l"+L/2+","+.87*L+"l2.6,-1.5l-"+(L/2+2.6)+",-"+(.87*L+4.5)+"l-"+(L/2+2.6)+","+(.87*L+4.5)+"l2.6,1.5l"+L/2+",-"+.87*L+"Z",E=!0;function z(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}A.clearSelect=function(){k(this.dragOptions),w(this.dragOptions.gd)},A.initInteractions=function(){var e,t,n,r,u,f,d,p,m,x,w=this,k=w.layers.plotbg.select("path").node(),M=w.graphDiv,A=M._fullLayout._zoomlayer;function L(e){var t={};return t[w.id+".aaxis.min"]=e.a,t[w.id+".baxis.min"]=e.b,t[w.id+".caxis.min"]=e.c,t}function D(e,t){var n=M._fullLayout.clickmode;z(M),2===e&&(M.emit("plotly_doubleclick",null),i.call("_guiRelayout",M,L({a:0,b:0,c:0}))),n.indexOf("select")>-1&&1===e&&_(t,M,[w.xaxis],[w.yaxis],w.id,w.dragOptions),n.indexOf("event")>-1&&g.click(M,t,w.id)}function R(e,t){return 1-t/w.h}function I(e,t){return 1-(e+(w.h-t)/Math.sqrt(3))/w.w}function N(e,t){return(e-(w.h-t)/Math.sqrt(3))/w.w}function F(a,i){var o=e+a,l=t+i,s=Math.max(0,Math.min(1,R(0,t),R(0,l))),c=Math.max(0,Math.min(1,I(e,t),I(o,l))),h=Math.max(0,Math.min(1,N(e,t),N(o,l))),g=(s/2+h)*w.w,v=(1-s/2-c)*w.w,y=(g+v)/2,b=v-g,_=(1-s)*w.h,k=_-b/S;b<T.MINZOOM?(u=n,m.attr("d",d),x.attr("d","M0,0Z")):(u={a:n.a+s*r,b:n.b+c*r,c:n.c+h*r},m.attr("d",d+"M"+g+","+_+"H"+v+"L"+y+","+k+"L"+g+","+_+"Z"),x.attr("d","M"+e+","+t+"m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM"+g+","+_+C+"M"+v+","+_+O+"M"+y+","+k+P)),p||(m.transition().style("fill",f>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),x.transition().style("opacity",1).duration(200),p=!0),M.emit("plotly_relayouting",L(u))}function B(){z(M),u!==n&&(i.call("_guiRelayout",M,L(u)),E&&M.data&&M._context.showTips&&(o.notifier(l(M,"Double-click to zoom back out"),"long"),E=!1))}function j(e,t){var r=e/w.xaxis._m,a=t/w.yaxis._m,i=[(u={a:n.a-a,b:n.b+(r+a)/2,c:n.c-(r-a)/2}).a,u.b,u.c].sort(),o=i.indexOf(u.a),l=i.indexOf(u.b),s=i.indexOf(u.c);i[0]<0&&(i[1]+i[0]/2<0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),u={a:i[o],b:i[l],c:i[s]},t=(n.a-u.a)*w.yaxis._m,e=(n.c-u.c-n.b+u.b)*w.xaxis._m);var f="translate("+(w.x0+e)+","+(w.y0+t)+")";w.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",f);var d="translate("+-e+","+-t+")";w.clipDefRelative.select("path").attr("transform",d),w.aaxis.range=[u.a,w.sum-u.b-u.c],w.baxis.range=[w.sum-u.a-u.c,u.b],w.caxis.range=[w.sum-u.a-u.b,u.c],w.drawAxes(!1),w._hasClipOnAxisFalse&&w.plotContainer.select(".scatterlayer").selectAll(".trace").call(c.hideOutsideRangePoints,w),M.emit("plotly_relayouting",L(u))}function H(){i.call("_guiRelayout",M,L(u))}this.dragOptions={element:k,gd:M,plotinfo:{id:w.id,domain:M._fullLayout[w.id].domain,xaxis:w.xaxis,yaxis:w.yaxis},subplot:w.id,prepFn:function(i,o,l){w.dragOptions.xaxes=[w.xaxis],w.dragOptions.yaxes=[w.yaxis];var c=w.dragOptions.dragmode=M._fullLayout.dragmode;v(c)?w.dragOptions.minDrag=1:w.dragOptions.minDrag=void 0,"zoom"===c?(w.dragOptions.moveFn=F,w.dragOptions.clickFn=D,w.dragOptions.doneFn=B,function(i,o,l){var c=k.getBoundingClientRect();e=o-c.left,t=l-c.top,n={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},u=n,r=w.aaxis.range[1]-n.a,f=a(w.graphDiv._fullLayout[w.id].bgcolor).getLuminance(),d="M0,"+w.h+"L"+w.w/2+", 0L"+w.w+","+w.h+"Z",p=!1,m=A.append("path").attr("class","zoombox").attr("transform","translate("+w.x0+", "+w.y0+")").style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",d),x=A.append("path").attr("class","zoombox-corners").attr("transform","translate("+w.x0+", "+w.y0+")").style({fill:s.background,stroke:s.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),w.clearSelect(M)}(0,o,l)):"pan"===c?(w.dragOptions.moveFn=j,w.dragOptions.clickFn=D,w.dragOptions.doneFn=H,n={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},u=n,w.clearSelect(M)):(y(c)||v(c))&&b(i,o,l,w.dragOptions,c)}},k.onmousemove=function(e){g.hover(M,e,w.id),M._fullLayout._lasthover=k,M._fullLayout._hoversubplot=w.id},k.onmouseout=function(e){M._dragging||h.unhover(M,e)},h.init(this.dragOptions)}},{"../../components/color":52,"../../components/dragelement":71,"../../components/dragelement/helpers":70,"../../components/drawing":74,"../../components/fx":92,"../../components/titles":147,"../../lib":178,"../../lib/extend":173,"../../registry":269,"../cartesian/axes":222,"../cartesian/constants":228,"../cartesian/select":241,"../cartesian/set_convert":242,"../plots":256,d3:16,tinycolor2:35}],269:[function(e,t,n){"use strict";var r=e("./lib/loggers"),a=e("./lib/noop"),i=e("./lib/push_unique"),o=e("./lib/is_plain_object"),l=e("./lib/dom").addStyleRule,s=e("./lib/extend"),c=e("./plots/attributes"),u=e("./plots/layout_attributes"),f=s.extendFlat,d=s.extendDeepAll;function p(e){var t=e.name,a=e.categories,i=e.meta;if(n.modules[t])r.log("Type "+t+" already registered");else{n.subplotsRegistry[e.basePlotModule.name]||function(e){var t=e.name;if(n.subplotsRegistry[t])r.log("Plot type "+t+" already registered.");else for(var a in v(e),n.subplotsRegistry[t]=e,n.componentsRegistry)b(a,e.name)}(e.basePlotModule);for(var o={},s=0;s<a.length;s++)o[a[s]]=!0,n.allCategories[a[s]]=!0;for(var c in n.modules[t]={_module:e,categories:o},i&&Object.keys(i).length&&(n.modules[t].meta=i),n.allTypes.push(t),n.componentsRegistry)y(c,t);e.layoutAttributes&&f(n.traceLayoutAttributes,e.layoutAttributes);var u=e.basePlotModule,d=u.name;if("mapbox"===d){var p=u.constants.styleRules;for(var h in p)l(".js-plotly-plot .plotly .mapboxgl-"+h,p[h])}"geo"!==d&&"mapbox"!==d||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function h(e){if("string"!=typeof e.name)throw new Error("Component module *name* must be a string.");var t=e.name;for(var r in n.componentsRegistry[t]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&i(n.layoutArrayContainers,t),v(e)),n.modules)y(t,r);for(var a in n.subplotsRegistry)b(t,a);for(var o in n.transformsRegistry)x(t,o);e.schema&&e.schema.layout&&d(u,e.schema.layout)}function g(e){if("string"!=typeof e.name)throw new Error("Transform module *name* must be a string.");var t="Transform module "+e.name,a="function"==typeof e.transform,i="function"==typeof e.calcTransform;if(!a&&!i)throw new Error(t+" is missing a *transform* or *calcTransform* method.");for(var l in a&&i&&r.log([t+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),o(e.attributes)||r.log(t+" registered without an *attributes* object."),"function"!=typeof e.supplyDefaults&&r.log(t+" registered without a *supplyDefaults* method."),n.transformsRegistry[e.name]=e,n.componentsRegistry)x(l,e.name)}function m(e){var t=e.name,r=t.split("-")[0],a=e.dictionary,i=e.format,o=a&&Object.keys(a).length,l=i&&Object.keys(i).length,s=n.localeRegistry,c=s[t];if(c||(s[t]=c={}),r!==t){var u=s[r];u||(s[r]=u={}),o&&u.dictionary===c.dictionary&&(u.dictionary=a),l&&u.format===c.format&&(u.format=i)}o&&(c.dictionary=a),l&&(c.format=i)}function v(e){if(e.layoutAttributes){var t=e.layoutAttributes._arrayAttrRegexps;if(t)for(var r=0;r<t.length;r++)i(n.layoutArrayRegexes,t[r])}}function y(e,t){var r=n.componentsRegistry[e].schema;if(r&&r.traces){var a=r.traces[t];a&&d(n.modules[t]._module.attributes,a)}}function x(e,t){var r=n.componentsRegistry[e].schema;if(r&&r.transforms){var a=r.transforms[t];a&&d(n.transformsRegistry[t].attributes,a)}}function b(e,t){var r=n.componentsRegistry[e].schema;if(r&&r.subplots){var a=n.subplotsRegistry[t],i=a.layoutAttributes,o="subplot"===a.attr?a.name:a.attr;Array.isArray(o)&&(o=o[0]);var l=r.subplots[o];i&&l&&d(i,l)}}function _(e){return"object"==typeof e&&(e=e.type),e}n.modules={},n.allCategories={},n.allTypes=[],n.subplotsRegistry={},n.transformsRegistry={},n.componentsRegistry={},n.layoutArrayContainers=[],n.layoutArrayRegexes=[],n.traceLayoutAttributes={},n.localeRegistry={},n.apiMethodRegistry={},n.collectableSubplotTypes=null,n.register=function(e){if(n.collectableSubplotTypes=null,!e)throw new Error("No argument passed to Plotly.register.");e&&!Array.isArray(e)&&(e=[e]);for(var t=0;t<e.length;t++){var r=e[t];if(!r)throw new Error("Invalid module was attempted to be registered!");switch(r.moduleType){case"trace":p(r);break;case"transform":g(r);break;case"component":h(r);break;case"locale":m(r);break;case"apiMethod":var a=r.name;n.apiMethodRegistry[a]=r.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},n.getModule=function(e){var t=n.modules[_(e)];return!!t&&t._module},n.traceIs=function(e,t){if("various"===(e=_(e)))return!1;var a=n.modules[e];return a||(e&&"area"!==e&&r.log("Unrecognized trace type "+e+"."),a=n.modules[c.type.dflt]),!!a.categories[t]},n.getTransformIndices=function(e,t){for(var n=[],r=e.transforms||[],a=0;a<r.length;a++)r[a].type===t&&n.push(a);return n},n.hasTransform=function(e,t){for(var n=e.transforms||[],r=0;r<n.length;r++)if(n[r].type===t)return!0;return!1},n.getComponentMethod=function(e,t){var r=n.componentsRegistry[e];return r&&r[t]||a},n.call=function(){var e=arguments[0],t=[].slice.call(arguments,1);return n.apiMethodRegistry[e].apply(null,t)}},{"./lib/dom":171,"./lib/extend":173,"./lib/is_plain_object":179,"./lib/loggers":182,"./lib/noop":187,"./lib/push_unique":191,"./plots/attributes":219,"./plots/layout_attributes":254}],270:[function(e,t,n){"use strict";var r=e("../registry"),a=e("../lib"),i=a.extendFlat,o=a.extendDeep;function l(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}t.exports=function(e,t){var n;e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var a,s=e.data,c=e.layout,u=o([],s),f=o({},c,l(t.tileClass)),d=e._context||{};if(t.width&&(f.width=t.width),t.height&&(f.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){f.annotations=[];var p=Object.keys(f);for(n=0;n<p.length;n++)a=p[n],["xaxis","yaxis","zaxis"].indexOf(a.slice(0,5))>-1&&(f[p[n]].title={text:""});for(n=0;n<u.length;n++){var h=u[n];h.showscale=!1,h.marker&&(h.marker.showscale=!1),r.traceIs(h,"pie-like")&&(h.textposition="none")}}if(Array.isArray(t.annotations))for(n=0;n<t.annotations.length;n++)f.annotations.push(t.annotations[n]);var g=Object.keys(f).filter((function(e){return e.match(/^scene\d*$/)}));if(g.length){var m={};for("thumbnail"===t.tileClass&&(m={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<g.length;n++){var v=f[g[n]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),i(v.xaxis,m),i(v.yaxis,m),i(v.zaxis,m),v._scene=null}}var y=document.createElement("div");t.tileClass&&(y.className=t.tileClass);var x={gd:y,td:y,layout:f,data:u,config:{staticPlot:void 0===t.staticPlot||t.staticPlot,plotGlPixelRatio:void 0===t.plotGlPixelRatio?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showLink:t.showLink||!1,showTips:t.showTips||!1,mapboxAccessToken:d.mapboxAccessToken}};return"transparent"!==t.setBackground&&(x.config.setBackground=t.setBackground||"opaque"),x.gd.defaultLayout=l(t.tileClass),x}},{"../lib":178,"../registry":269}],271:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plot_api/to_image"),i=e("./filesaver"),o=e("./helpers");t.exports=function(e,t){var n;return r.isPlainObject(e)||(n=r.getGraphDiv(e)),(t=t||{}).format=t.format||"png",t.imageDataOnly=!0,new Promise((function(l,s){n&&n._snapshotInProgress&&s(new Error("Snapshotting already in progress.")),r.isIE()&&"svg"!==t.format&&s(new Error(o.MSG_IE_BAD_FORMAT)),n&&(n._snapshotInProgress=!0);var c=a(e,t),u=t.filename||e.fn||"newplot";u+="."+t.format.replace("-","."),c.then((function(e){return n&&(n._snapshotInProgress=!1),i(e,u,t.format)})).then((function(e){l(e)})).catch((function(e){n&&(n._snapshotInProgress=!1),s(e)}))}))}},{"../lib":178,"../plot_api/to_image":215,"./filesaver":272,"./helpers":273}],272:[function(e,t,n){"use strict";var r=e("../lib"),a=e("./helpers");t.exports=function(e,t,n){var i=document.createElement("a"),o="download"in i;return new Promise((function(l,s){var c,u;if(r.isIE9orBelow()&&s(new Error("IE < 10 unsupported")),r.isSafari()){var f="svg"===n?",":";base64,";return a.octetStream(f+encodeURIComponent(e)),l(t)}return r.isIE()?(c=a.createBlob(e,"svg"),window.navigator.msSaveBlob(c,t),c=null,l(t)):o?(c=a.createBlob(e,n),u=a.createObjectURL(c),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),a.revokeObjectURL(u),c=null,l(t)):void s(new Error("download error"))}))}},{"../lib":178,"./helpers":273}],273:[function(e,t,n){"use strict";var r=e("../registry");n.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},n.getRedrawFunc=function(e){return function(){var t=e._fullLayout||{};(!t._has||!t._has("polar"))&&e.data&&e.data[0]&&e.data[0].r||r.getComponentMethod("colorbar","draw")(e)}},n.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},n.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var a=window.URL||window.webkitURL;n.createObjectURL=function(e){return a.createObjectURL(e)},n.revokeObjectURL=function(e){return a.revokeObjectURL(e)},n.createBlob=function(e,t){if("svg"===t)return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if("full-json"===t)return new window.Blob([e],{type:"application/json;charset=utf-8"});var n=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),a=0;a<t;a++)r[a]=e.charCodeAt(a);return n}(window.atob(e));return new window.Blob([n],{type:"image/"+t})},n.octetStream=function(e){document.location.href="data:application/octet-stream"+e},n.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,n.MSG_IE_BAD_FORMAT="Sorry IE does not support downloading from canvas. Try {format:'svg'} instead."},{"../registry":269}],274:[function(e,t,n){"use strict";var r=e("./helpers"),a={getDelay:r.getDelay,getRedrawFunc:r.getRedrawFunc,clone:e("./cloneplot"),toSVG:e("./tosvg"),svgToImg:e("./svgtoimg"),toImage:e("./toimage"),downloadImage:e("./download")};t.exports=a},{"./cloneplot":270,"./download":271,"./helpers":273,"./svgtoimg":275,"./toimage":276,"./tosvg":277}],275:[function(e,t,n){"use strict";var r=e("../lib"),a=e("events").EventEmitter,i=e("./helpers");t.exports=function(e){var t=e.emitter||new a,n=new Promise((function(a,o){var l=window.Image,s=e.svg,c=e.format||"png";if(r.isIE()&&"svg"!==c){var u=new Error(i.MSG_IE_BAD_FORMAT);return o(u),e.promise?n:t.emit("error",u)}var f,d,p=e.canvas,h=e.scale||1,g=e.width||300,m=e.height||150,v=h*g,y=h*m,x=p.getContext("2d"),b=new l;"svg"===c||r.isIE9orBelow()||r.isSafari()?d=i.encodeSVG(s):(f=i.createBlob(s,"svg"),d=i.createObjectURL(f)),p.width=v,p.height=y,b.onload=function(){var n;switch(f=null,i.revokeObjectURL(d),"svg"!==c&&x.drawImage(b,0,0,v,y),c){case"jpeg":n=p.toDataURL("image/jpeg");break;case"png":n=p.toDataURL("image/png");break;case"webp":n=p.toDataURL("image/webp");break;case"svg":n=d;break;default:var r="Image format is not jpeg, png, svg or webp.";if(o(new Error(r)),!e.promise)return t.emit("error",r)}a(n),e.promise||t.emit("success",n)},b.onerror=function(n){if(f=null,i.revokeObjectURL(d),o(n),!e.promise)return t.emit("error",n)},b.src=d}));return e.promise?n:t}},{"../lib":178,"./helpers":273,events:15}],276:[function(e,t,n){"use strict";var r=e("events").EventEmitter,a=e("../registry"),i=e("../lib"),o=e("./helpers"),l=e("./cloneplot"),s=e("./tosvg"),c=e("./svgtoimg");t.exports=function(e,t){var n=new r,u=l(e,{format:"png"}),f=u.gd;f.style.position="absolute",f.style.left="-5000px",document.body.appendChild(f);var d=o.getRedrawFunc(f);return a.call("plot",f,u.data,u.layout,u.config).then(d).then((function(){var e=o.getDelay(f._fullLayout);setTimeout((function(){var e=s(f),r=document.createElement("canvas");r.id=i.randstr(),(n=c({format:t.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:r,emitter:n,svg:e})).clean=function(){f&&document.body.removeChild(f)}}),e)})).catch((function(e){n.emit("error",e)})),n}},{"../lib":178,"../registry":269,"./cloneplot":270,"./helpers":273,"./svgtoimg":275,"./tosvg":277,events:15}],277:[function(e,t,n){"use strict";var r=e("d3"),a=e("../lib"),i=e("../components/drawing"),o=e("../components/color"),l=e("../constants/xmlns_namespaces"),s=/"/g,c=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");t.exports=function(e,t,n){var u,f=e._fullLayout,d=f._paper,p=f._toppaper,h=f.width,g=f.height;d.insert("rect",":first-child").call(i.setRect,0,0,h,g).call(o.fill,f.paper_bgcolor);var m=f._basePlotModules||[];for(u=0;u<m.length;u++){var v=m[u];v.toSVG&&v.toSVG(e)}if(p){var y=p.node().childNodes,x=Array.prototype.slice.call(y);for(u=0;u<x.length;u++){var b=x[u];b.childNodes.length&&d.node().appendChild(b)}}if(f._draggers&&f._draggers.remove(),d.node().style.background="",d.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each((function(){var e=r.select(this);if("hidden"!==this.style.visibility&&"none"!==this.style.display){e.style({visibility:null,display:null});var t=this.style.fontFamily;t&&-1!==t.indexOf('"')&&e.style("font-family",t.replace(s,"TOBESTRIPPED"))}else e.remove()})),f._gradientUrlQueryParts){var _=[];for(var w in f._gradientUrlQueryParts)_.push(w);_.length&&d.selectAll(_.join(",")).each((function(){var e=r.select(this),t=this.style.fill;t&&-1!==t.indexOf("url(")&&e.style("fill",t.replace(s,"TOBESTRIPPED"));var n=this.style.stroke;n&&-1!==n.indexOf("url(")&&e.style("stroke",n.replace(s,"TOBESTRIPPED"))}))}"pdf"!==t&&"eps"!==t||d.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),d.node().setAttributeNS(l.xmlns,"xmlns",l.svg),d.node().setAttributeNS(l.xmlns,"xmlns:xlink",l.xlink),"svg"===t&&n&&(d.attr("width",n*h),d.attr("height",n*g),d.attr("viewBox","0 0 "+h+" "+g));var k=(new window.XMLSerializer).serializeToString(d.node());return k=(k=(k=function(e){var t=r.select("body").append("div").style({display:"none"}).html(""),n=e.replace(/(&[^;]*;)/gi,(function(e){return"<"===e?"<":"&rt;"===e?">":-1!==e.indexOf("<")||-1!==e.indexOf(">")?"":t.html(e).text()}));return t.remove(),n}(k)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(c,"'"),a.isIE()&&(k=(k=(k=k.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),k}},{"../components/color":52,"../components/drawing":74,"../constants/xmlns_namespaces":159,"../lib":178,d3:16}],278:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;r.mergeArray(t.text,e,"tx"),r.mergeArray(t.hovertext,e,"htx");var a=t.marker;if(a){r.mergeArray(a.opacity,e,"mo",!0),r.mergeArray(a.color,e,"mc");var i=a.line;i&&(r.mergeArray(i.color,e,"mlc"),r.mergeArrayCastPositive(i.width,e,"mlw"))}}},{"../../lib":178}],279:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,i=e("../../plots/template_attributes").texttemplateAttrs,o=e("../../components/colorscale/attributes"),l=e("../../plots/font_attributes"),s=e("./constants"),c=e("../../lib/extend").extendFlat,u=l({editType:"calc",arrayOk:!0,colorEditType:"style"}),f=c({},r.marker.line.width,{dflt:0}),d=c({width:f,editType:"calc"},o("marker.line")),p=c({line:d,editType:"calc"},o("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"}});t.exports={x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,text:r.text,texttemplate:i({editType:"plot"},{keys:s.eventDataKeys}),hovertext:r.hovertext,hovertemplate:a({},{keys:s.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"none",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:c({},u,{}),insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:c({},r.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:p,offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},selected:{marker:{opacity:r.selected.marker.opacity,color:r.selected.marker.color,editType:"style"},textfont:r.selected.textfont,editType:"style"},unselected:{marker:{opacity:r.unselected.marker.opacity,color:r.unselected.marker.color,editType:"style"},textfont:r.unselected.textfont,editType:"style"},r:r.r,t:r.t,_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"]}}}},{"../../components/colorscale/attributes":59,"../../lib/extend":173,"../../plots/font_attributes":250,"../../plots/template_attributes":264,"../scatter/attributes":389,"./constants":281}],280:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/calc"),o=e("./arrays_to_calcdata"),l=e("../scatter/calc_selection");t.exports=function(e,t){var n,s,c=r.getFromId(e,t.xaxis||"x"),u=r.getFromId(e,t.yaxis||"y");"h"===t.orientation?(n=c.makeCalcdata(t,"x"),s=u.makeCalcdata(t,"y")):(n=u.makeCalcdata(t,"y"),s=c.makeCalcdata(t,"x"));for(var f=Math.min(s.length,n.length),d=new Array(f),p=0;p<f;p++)d[p]={p:s[p],s:n[p]},t.ids&&(d[p].id=String(t.ids[p]));return a(t,"marker")&&i(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),a(t,"marker.line")&&i(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),o(d,t),l(d,t),d}},{"../../components/colorscale/calc":60,"../../components/colorscale/helpers":63,"../../plots/cartesian/axes":222,"../scatter/calc_selection":391,"./arrays_to_calcdata":278}],281:[function(e,t,n){"use strict";t.exports={TEXTPAD:3,eventDataKeys:["value","label"]}},{}],282:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib").isArrayOrTypedArray,i=e("../../constants/numerical").BADNUM,o=e("../../registry"),l=e("../../plots/cartesian/axes"),s=e("../../plots/cartesian/axis_ids").getAxisGroup,c=e("./sieve.js");function u(e,t,n,o,u){if(o.length){var b,_,w,k;switch(function(e,t){var n,i;for(n=0;n<t.length;n++){var o,l=t[n],s=l[0].trace,c="funnel"===s.type?s._base:s.base,u="h"===s.orientation?s.xcalendar:s.ycalendar,f="category"===e.type||"multicategory"===e.type?function(){return null}:e.d2c;if(a(c)){for(i=0;i<Math.min(c.length,l.length);i++)o=f(c[i],0,u),r(o)?(l[i].b=+o,l[i].hasB=1):l[i].b=0;for(;i<l.length;i++)l[i].b=0}else{o=f(c,0,u);var d=r(o);for(o=d?o:0,i=0;i<l.length;i++)l[i].b=o,d&&(l[i].hasB=1)}}}(n,o),u.mode){case"overlay":f(t,n,o,u);break;case"group":for(b=[],_=[],w=0;w<o.length;w++)void 0===(k=o[w])[0].trace.offset?_.push(k):b.push(k);_.length&&function(e,t,n,r,a){var o=new c(r,{sepNegVal:!1,overlapNoMerge:!a.norm});(function(e,t,n,r){for(var a=e._fullLayout,i=n.positions,o=n.distinctPositions,l=n.minDiff,c=n.traces,u=c.length,f=i.length!==o.length,d=l*(1-r.gap),m=s(a,t._id)+c[0][0].trace.orientation,v=a._alignmentOpts[m]||{},y=0;y<u;y++){var x,b,_=c[y],w=_[0].trace,k=v[w.alignmentgroup]||{},T=Object.keys(k.offsetGroups||{}).length,M=(x=T?d/T:f?d/u:d)*(1-(r.groupgap||0));b=T?((2*w._offsetIndex+1-T)*x-M)/2:f?((2*y+1-u)*x-M)/2:-M/2;var A=_[0].t;A.barwidth=M,A.poffset=b,A.bargroupwidth=d,A.bardelta=l}n.binWidth=c[0][0].t.barwidth/100,p(n),h(t,n),g(t,n,f)})(e,t,o,a),function(e){for(var t=e.traces,n=0;n<t.length;n++){var r=t[n];if(void 0===r[0].trace.base)for(var a=new c([r],{sepNegVal:!0,overlapNoMerge:!0}),o=0;o<r.length;o++){var l=r[o];if(l.p!==i){var s=a.put(l.p,l.b+l.s);s&&(l.b=s)}}}}(o),a.norm?(v(o),y(n,o,a)):m(n,o)}(e,t,n,_,u),b.length&&f(t,n,b,u);break;case"stack":case"relative":for(b=[],_=[],w=0;w<o.length;w++)void 0===(k=o[w])[0].trace.base?_.push(k):b.push(k);_.length&&function(e,t,n,r,a){var o=new c(r,{sepNegVal:"relative"===a.mode,overlapNoMerge:!(a.norm||"stack"===a.mode||"relative"===a.mode)});d(t,o,a),function(e,t,n){var r,a,o,s,c,u,f=x(e),d=t.traces;for(s=0;s<d.length;s++)if(r=d[s],"funnel"===(a=r[0].trace).type)for(c=0;c<r.length;c++)(u=r[c]).s!==i&&t.put(u.p,-.5*u.s);for(s=0;s<d.length;s++){r=d[s],a=r[0].trace,o="funnel"===a.type;var p=[];for(c=0;c<r.length;c++)if((u=r[c]).s!==i){var h;h=o?u.s:u.s+u.b;var g=t.put(u.p,h),m=g+h;u.b=g,u[f]=m,n.norm||(p.push(m),u.hasB&&p.push(g))}n.norm||(a._extremes[e._id]=l.findExtremes(e,p,{tozero:!0,padded:!0}))}}(n,o,a);for(var s=0;s<r.length;s++)for(var u=r[s],f=0;f<u.length;f++){var p=u[f];p.s!==i&&p.b+p.s===o.get(p.p,p.s)&&(p._outmost=!0)}a.norm&&y(n,o,a)}(0,t,n,_,u),b.length&&f(t,n,b,u)}!function(e,t){var n,a,i,o=x(t),l={},s=1/0,c=-1/0;for(n=0;n<e.length;n++)for(i=e[n],a=0;a<i.length;a++){var u=i[a].p;r(u)&&(s=Math.min(s,u),c=Math.max(c,u))}var f=1e4/(c-s),d=l.round=function(e){return String(Math.round(f*(e-s)))};for(n=0;n<e.length;n++){(i=e[n])[0].t.extents=l;var p=i[0].t.poffset,h=Array.isArray(p);for(a=0;a<i.length;a++){var g=i[a],m=g[o]-g.w/2;if(r(m)){var v=g[o]+g.w/2,y=d(g.p);l[y]?l[y]=[Math.min(m,l[y][0]),Math.max(v,l[y][1])]:l[y]=[m,v]}g.p0=g.p+(h?p[a]:p),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,t)}}function f(e,t,n,r){for(var a=0;a<n.length;a++){var i=n[a],o=new c([i],{sepNegVal:!1,overlapNoMerge:!r.norm});d(e,o,r),r.norm?(v(o),y(t,o,r)):m(t,o)}}function d(e,t,n){for(var r=t.minDiff,a=t.traces,i=r*(1-n.gap),o=i*(1-(n.groupgap||0)),l=-o/2,s=0;s<a.length;s++){var c=a[s][0].t;c.barwidth=o,c.poffset=l,c.bargroupwidth=i,c.bardelta=r}t.binWidth=a[0][0].t.barwidth/100,p(t),h(e,t),g(e,t)}function p(e){var t,n,i=e.traces;for(t=0;t<i.length;t++){var o,l=i[t],s=l[0],c=s.trace,u=s.t,f=c._offset||c.offset,d=u.poffset;if(a(f)){for(o=Array.prototype.slice.call(f,0,l.length),n=0;n<o.length;n++)r(o[n])||(o[n]=d);for(n=o.length;n<l.length;n++)o.push(d);u.poffset=o}else void 0!==f&&(u.poffset=f);var p=c._width||c.width,h=u.barwidth;if(a(p)){var g=Array.prototype.slice.call(p,0,l.length);for(n=0;n<g.length;n++)r(g[n])||(g[n]=h);for(n=g.length;n<l.length;n++)g.push(h);if(u.barwidth=g,void 0===f){for(o=[],n=0;n<l.length;n++)o.push(d+(h-g[n])/2);u.poffset=o}}else void 0!==p&&(u.barwidth=p,void 0===f&&(u.poffset=d+(h-p)/2))}}function h(e,t){for(var n=t.traces,r=x(e),a=0;a<n.length;a++)for(var i=n[a],o=i[0].t,l=o.poffset,s=Array.isArray(l),c=o.barwidth,u=Array.isArray(c),f=0;f<i.length;f++){var d=i[f],p=d.w=u?c[f]:c;d[r]=d.p+(s?l[f]:l)+p/2}}function g(e,t,n){var r=t.traces,a=t.minDiff/2;l.minDtick(e,t.minDiff,t.distinctPositions[0],n);for(var i=0;i<r.length;i++){var o,s,c,u,f=r[i],d=f[0],p=d.trace,h=[];for(u=0;u<f.length;u++)s=(o=f[u]).p-a,c=o.p+a,h.push(s,c);if(p.width||p.offset){var g=d.t,m=g.poffset,v=g.barwidth,y=Array.isArray(m),x=Array.isArray(v);for(u=0;u<f.length;u++){o=f[u];var b=y?m[u]:m,_=x?v[u]:v;c=(s=o.p+b)+_,h.push(s,c)}}p._extremes[e._id]=l.findExtremes(e,h,{padded:!1})}}function m(e,t){for(var n=t.traces,r=x(e),a=0;a<n.length;a++){for(var i=n[a],o=i[0].trace,s=[],c=!1,u=0;u<i.length;u++){var f=i[u],d=f.b,p=d+f.s;f[r]=p,s.push(p),f.hasB&&s.push(d),f.hasB&&f.b||(c=!0)}o._extremes[e._id]=l.findExtremes(e,s,{tozero:c,padded:!0})}}function v(e){for(var t=e.traces,n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;a++){var o=r[a];o.s!==i&&e.put(o.p,o.b+o.s)}}function y(e,t,n){var a=t.traces,o=x(e),s="fraction"===n.norm?1:100,c=s/1e9,u=e.l2c(e.c2l(0)),f="stack"===n.mode?s:u;function d(t){return r(e.c2l(t))&&(t<u-c||t>f+c||!r(u))}for(var p=0;p<a.length;p++){for(var h=a[p],g=h[0].trace,m=[],v=!1,y=!1,b=0;b<h.length;b++){var _=h[b];if(_.s!==i){var w=Math.abs(s/t.get(_.p,_.s));_.b*=w,_.s*=w;var k=_.b,T=k+_.s;_[o]=T,m.push(T),y=y||d(T),_.hasB&&(m.push(k),y=y||d(k)),_.hasB&&_.b||(v=!0)}}g._extremes[e._id]=l.findExtremes(e,m,{tozero:v,padded:y})}}function x(e){return e._id.charAt(0)}t.exports={crossTraceCalc:function(e,t){for(var n=t.xaxis,r=t.yaxis,a=e._fullLayout,i=e._fullData,l=e.calcdata,s=[],c=[],f=0;f<i.length;f++){var d=i[f];if(!0===d.visible&&o.traceIs(d,"bar")&&d.xaxis===n._id&&d.yaxis===r._id&&("h"===d.orientation?s.push(l[f]):c.push(l[f]),d._computePh))for(var p=e.calcdata[f],h=0;h<p.length;h++)"function"==typeof p[h].ph0&&(p[h].ph0=p[h].ph0()),"function"==typeof p[h].ph1&&(p[h].ph1=p[h].ph1())}var g={mode:a.barmode,norm:a.barnorm,gap:a.bargap,groupgap:a.bargroupgap};u(e,n,r,c,g),u(e,r,n,s,g)},setGroupPositions:u}},{"../../constants/numerical":158,"../../lib":178,"../../plots/cartesian/axes":222,"../../plots/cartesian/axis_ids":225,"../../registry":269,"./sieve.js":292,"fast-isnumeric":18}],283:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color"),i=e("../../registry"),o=e("../scatter/xy_defaults"),l=e("./style_defaults"),s=e("../../plots/cartesian/axis_ids").getAxisGroup,c=e("./attributes"),u=r.coerceFont;function f(e,t,n,r){var a=t.orientation,i=t[{v:"x",h:"y"}[a]+"axis"],o=s(n,i)+a,l=n._alignmentOpts||{},c=r("alignmentgroup"),u=l[o];u||(u=l[o]={});var f=u[c];f?f.traces.push(t):f=u[c]={traces:[t],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var d=r("offsetgroup"),p=f.offsetGroups,h=p[d];d&&(h||(h=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=h.offsetIndex)}function d(e,t,n,a,i,o){var l=!(!1===(o=o||{}).moduleHasSelected),s=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),f=!(!1===o.moduleHasCliponaxis),d=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),h=!!o.hasPathbar,g=Array.isArray(i)||"auto"===i,m=g||"inside"===i,v=g||"outside"===i;if(m||v){var y=u(a,"textfont",n.font),x=r.extendFlat({},y),b=!(e.textfont&&e.textfont.color);if(b&&delete x.color,u(a,"insidetextfont",x),h){var _=r.extendFlat({},y);b&&delete _.color,u(a,"pathbar.textfont",_)}v&&u(a,"outsidetextfont",y),l&&a("selected.textfont.color"),s&&a("unselected.textfont.color"),c&&a("constraintext"),f&&a("cliponaxis"),d&&a("textangle"),a("texttemplate")}m&&p&&a("insidetextanchor")}t.exports={supplyDefaults:function(e,t,n,s){function u(n,a){return r.coerce(e,t,c,n,a)}if(o(e,t,s,u)){u("orientation",t.x&&!t.y?"h":"v"),u("base"),u("offset"),u("width"),u("text"),u("hovertext"),u("hovertemplate");var f=u("textposition");d(e,0,s,u,f,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(e,t,u,n,s);var p=(t.marker.line||{}).color,h=i.getComponentMethod("errorbars","supplyDefaults");h(e,t,p||a.defaultLine,{axis:"y"}),h(e,t,p||a.defaultLine,{axis:"x",inherit:"y"}),r.coerceSelectionMarkerOpacity(t,u)}else t.visible=!1},crossTraceDefaults:function(e,t){var n;function a(e){return r.coerce(n._input,n,c,e)}if("group"===t.barmode)for(var i=0;i<e.length;i++)"bar"===(n=e[i]).type&&(n._input,f(0,n,t,a))},handleGroupingDefaults:f,handleText:d}},{"../../components/color":52,"../../lib":178,"../../plots/cartesian/axis_ids":225,"../../registry":269,"../scatter/xy_defaults":415,"./attributes":279,"./style_defaults":294}],284:[function(e,t,n){"use strict";t.exports=function(e,t,n){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),"h"===n.orientation?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},{}],285:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("tinycolor2"),i=e("../../lib").isArrayOrTypedArray;n.coerceString=function(e,t,n){if("string"==typeof t){if(t||!e.noBlank)return t}else if(("number"==typeof t||!0===t)&&!e.strict)return String(t);return void 0!==n?n:e.dflt},n.coerceNumber=function(e,t,n){if(r(t)){t=+t;var a=e.min,i=e.max;if(!(void 0!==a&&t<a||void 0!==i&&t>i))return t}return void 0!==n?n:e.dflt},n.coerceColor=function(e,t,n){return a(t).isValid()?t:void 0!==n?n:e.dflt},n.coerceEnumerated=function(e,t,n){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==n?n:e.dflt},n.getValue=function(e,t){var n;return Array.isArray(e)?t<e.length&&(n=e[t]):n=e,n},n.getLineWidth=function(e,t){return 0<t.mlw?t.mlw:i(e.marker.line.width)?0:e.marker.line.width}},{"../../lib":178,"fast-isnumeric":18,tinycolor2:35}],286:[function(e,t,n){"use strict";var r=e("../../components/fx"),a=e("../../registry"),i=e("../../components/color"),o=e("../../lib").fillText,l=e("./helpers").getLineWidth,s=e("../../plots/cartesian/axes").hoverLabelText,c=e("../../constants/numerical").BADNUM;function u(e,t,n,a){var i,l,u,f,d,p,h,g=e.cd,m=g[0].trace,v=g[0].t,y="closest"===a,x="waterfall"===m.type,b=e.maxHoverDistance;function _(e){return e[u]-e.w/2}function w(e){return e[u]+e.w/2}var k=y?_:function(e){return Math.min(_(e),e.p-v.bardelta/2)},T=y?w:function(e){return Math.max(w(e),e.p+v.bardelta/2)};function M(e,t){return r.inbox(e-i,t-i,b+Math.min(1,Math.abs(t-e)/h)-1)}function A(e){return M(k(e),T(e))}function S(e){var t=l,n=e.b,a=e[f];if(x){var i=Math.abs(e.rawS)||0;t>0?a+=i:t<0&&(a-=i)}return r.inbox(n-t,a-t,b+(a-t)/(a-n)-1)}"h"===m.orientation?(i=n,l=t,u="y",f="x",d=S,p=A):(i=t,l=n,u="x",f="y",p=S,d=A);var L=e[u+"a"],C=e[f+"a"];h=Math.abs(L.r2c(L.range[1])-L.r2c(L.range[0]));var O=r.getDistanceFunction(a,d,p,(function(e){return(d(e)+p(e))/2}));if(r.getClosest(g,O,e),!1!==e.index&&g[e.index].p!==c){y||(k=function(e){return Math.min(_(e),e.p-v.bargroupwidth/2)},T=function(e){return Math.max(w(e),e.p+v.bargroupwidth/2)});var P=g[e.index],E=m.base?P.b+P.s:P.s;e[f+"0"]=e[f+"1"]=C.c2p(P[f],!0),e[f+"LabelVal"]=E;var z=v.extents[v.extents.round(P.p)];return e[u+"0"]=L.c2p(y?k(P):z[0],!0),e[u+"1"]=L.c2p(y?T(P):z[1],!0),e[u+"LabelVal"]=P.p,e.labelLabel=s(L,e[u+"LabelVal"]),e.valueLabel=s(C,e[f+"LabelVal"]),e.spikeDistance=(S(P)+function(e){return M(_(e),w(e))}(P))/2-b,e[u+"Spike"]=L.c2p(P.p,!0),o(P,m,e),e.hovertemplate=m.hovertemplate,e}}function f(e,t){var n=t.mcc||e.marker.color,r=t.mlcc||e.marker.line.color,a=l(e,t);return i.opacity(n)?n:i.opacity(r)&&a?r:void 0}t.exports={hoverPoints:function(e,t,n,r){var i=u(e,t,n,r);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=f(l,s),a.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}},hoverOnBars:u,getTraceColor:f}},{"../../components/color":52,"../../components/fx":92,"../../constants/numerical":158,"../../lib":178,"../../plots/cartesian/axes":222,"../../registry":269,"./helpers":285}],287:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults").supplyDefaults,crossTraceDefaults:e("./defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc").crossTraceCalc,colorbar:e("../scatter/marker_colorbar"),arraysToCalcdata:e("./arrays_to_calcdata"),plot:e("./plot").plot,style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover").hoverPoints,eventData:e("./event_data"),selectPoints:e("./select"),moduleType:"trace",name:"bar",basePlotModule:e("../../plots/cartesian"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},{"../../plots/cartesian":235,"../scatter/marker_colorbar":407,"./arrays_to_calcdata":278,"./attributes":279,"./calc":280,"./cross_trace_calc":282,"./defaults":283,"./event_data":284,"./hover":286,"./layout_attributes":288,"./layout_defaults":289,"./plot":290,"./select":291,"./style":293}],288:[function(e,t,n){"use strict";t.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],289:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../plots/cartesian/axes"),i=e("../../lib"),o=e("./layout_attributes");t.exports=function(e,t,n){function l(n,r){return i.coerce(e,t,o,n,r)}for(var s=!1,c=!1,u=!1,f={},d=l("barmode"),p=0;p<n.length;p++){var h=n[p];if(r.traceIs(h,"bar")&&h.visible){if(s=!0,"group"===d){var g=h.xaxis+h.yaxis;f[g]&&(u=!0),f[g]=!0}h.visible&&"histogram"===h.type&&"category"!==a.getFromId({_fullLayout:t},h["v"===h.orientation?"xaxis":"yaxis"]).type&&(c=!0)}}s?("overlay"!==d&&l("barnorm"),l("bargap",c&&!u?0:.2),l("bargroupgap")):delete t.barmode}},{"../../lib":178,"../../plots/cartesian/axes":222,"../../registry":269,"./layout_attributes":288}],290:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),i=e("../../lib"),o=e("../../lib/svg_text_utils"),l=e("../../components/color"),s=e("../../components/drawing"),c=e("../../registry"),u=e("../../plots/cartesian/axes").tickText,f=e("./uniform_text"),d=f.recordMinTextSize,p=f.clearMinTextSize,h=e("./style"),g=e("./helpers"),m=e("./constants"),v=e("./attributes"),y=v.text,x=v.textposition,b=e("../../components/fx/helpers").appendArrayPointValue,_=m.TEXTPAD;function w(e){return e.id}function k(e){if(e.ids)return w}function T(e,t){return e<t?1:-1}function M(e,t,n,r){var a;return!t.uniformtext.mode&&A(n)?(r&&(a=r()),e.transition().duration(n.duration).ease(n.easing).each("end",(function(){a&&a()})).each("interrupt",(function(){a&&a()}))):e}function A(e){return e&&e.duration>0}function S(e){return"auto"===e?0:e}function L(e,t){var n=Math.PI/180*t,r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));return{x:e.width*a+e.height*r,y:e.width*r+e.height*a}}function C(e,t,n,r,a,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor||"end",u="end"===c,f="start"===c,d=((i.leftToRight||0)+1)/2,p=1-d,h=a.width,g=a.height,m=Math.abs(t-e),v=Math.abs(r-n),y=m>2*_&&v>2*_?_:0;m-=2*y,v-=2*y;var x=S(s);"auto"!==s||h<=m&&g<=v||!(h>m||g>v)||(h>v||g>m)&&h<g==m<v||(x+=90);var b=L(a,x),w=1;l&&(w=Math.min(1,m/b.x,v/b.y));var k=a.left*p+a.right*d,M=(a.top+a.bottom)/2,A=(e+_)*p+(t-_)*d,C=(n+r)/2,O=0,P=0;if(f||u){var E=(o?b.x:b.y)/2,z=o?T(e,t):T(n,r);o?f?(A=e+z*y,O=-z*E):(A=t-z*y,O=z*E):f?(C=n+z*y,P=-z*E):(C=r-z*y,P=z*E)}return{textX:k,textY:M,targetX:A,targetY:C,anchorX:O,anchorY:P,scale:w,rotate:x}}t.exports={plot:function(e,t,n,f,m,v){var w=t.xaxis,O=t.yaxis,P=e._fullLayout;m||(m={mode:P.barmode,norm:P.barmode,gap:P.bargap,groupgap:P.bargroupgap},p("bar",P));var E=i.makeTraceGroups(f,n,"trace bars").each((function(n){var c=r.select(this),f=n[0].trace,p="waterfall"===f.type,E="funnel"===f.type,z="bar"===f.type||E,D=0;p&&f.connector.visible&&"between"===f.connector.mode&&(D=f.connector.line.width/2);var R="h"===f.orientation,I=A(m),N=i.ensureSingle(c,"g","points"),F=k(f),B=N.selectAll("g.point").data(i.identity,F);B.enter().append("g").classed("point",!0),B.exit().remove(),B.each((function(c,p){var k,A,E=r.select(this),N=function(e,t,n,r){var a=[],i=[],o=r?t:n,l=r?n:t;return a[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),a[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),r?[a,i]:[i,a]}(c,w,O,R),F=N[0][0],B=N[0][1],j=N[1][0],H=N[1][1],q=0==(R?B-F:H-j);if(q&&z&&g.getLineWidth(f,c)&&(q=!1),q||(q=!(a(F)&&a(B)&&a(j)&&a(H))),c.isBlank=q,q&&(R?B=F:H=j),D&&!q&&(R?(F-=T(F,B)*D,B+=T(F,B)*D):(j-=T(j,H)*D,H+=T(j,H)*D)),"waterfall"===f.type){if(!q){var V=f[c.dir].marker;k=V.line.width,A=V.color}}else k=g.getLineWidth(f,c),A=c.mc||f.marker.color;function U(e){var t=r.round(k/2%1,2);return 0===m.gap&&0===m.groupgap?r.round(Math.round(e)-t,2):e}if(!e._context.staticPlot){var G=l.opacity(A)<1||k>.01?U:function(e,t,n){return n&&e===t?e:Math.abs(e-t)>=2?U(e):e>t?Math.ceil(e):Math.floor(e)};F=G(F,B,R),B=G(B,F,R),j=G(j,H,!R),H=G(H,j,!R)}var Z=M(i.ensureSingle(E,"path"),P,m,v);if(Z.style("vector-effect","non-scaling-stroke").attr("d",isNaN((B-F)*(H-j))?"M0,0Z":"M"+F+","+j+"V"+H+"H"+B+"V"+j+"Z").call(s.setClipUrl,t.layerClipId,e),!P.uniformtext.mode&&I){var W=s.makePointStyleFns(f);s.singlePointStyle(c,Z,f,W,e)}!function(e,t,n,r,a,l,c,f,p,m,v){var w,k=t.xaxis,A=t.yaxis,O=e._fullLayout;function P(t,n,r){return i.ensureSingle(t,"text").text(n).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(s.font,r).call(o.convertToTspans,e)}var E=r[0].trace,z="h"===E.orientation,D=function(e,t,n,r,a){var o,l=t[0].trace;return o=l.texttemplate?function(e,t,n,r,a){var o=t[0].trace,l=i.castOption(o,n,"texttemplate");if(!l)return"";var s,c,f,d,p="waterfall"===o.type,h="funnel"===o.type;function g(e){return u(d,+e,!0).text}"h"===o.orientation?(s="y",c=a,f="x",d=r):(s="x",c=r,f="y",d=a);var m,v=t[n],y={};y.label=v.p,y.labelLabel=y[s+"Label"]=(m=v.p,u(c,m,!0).text);var x=i.castOption(o,v.i,"text");(0===x||x)&&(y.text=x),y.value=v.s,y.valueLabel=y[f+"Label"]=g(v.s);var _={};b(_,o,v.i),p&&(y.delta=+v.rawS||v.s,y.deltaLabel=g(y.delta),y.final=v.v,y.finalLabel=g(y.final),y.initial=y.final-y.delta,y.initialLabel=g(y.initial)),h&&(y.value=v.s,y.valueLabel=g(y.value),y.percentInitial=v.begR,y.percentInitialLabel=i.formatPercent(v.begR),y.percentPrevious=v.difR,y.percentPreviousLabel=i.formatPercent(v.difR),y.percentTotal=v.sumR,y.percenTotalLabel=i.formatPercent(v.sumR));var w=i.castOption(o,v.i,"customdata");return w&&(y.customdata=w),i.texttemplateString(l,y,e._d3locale,_,y,o._meta||{})}(e,t,n,r,a):l.textinfo?function(e,t,n,r){var a=e[0].trace,o="h"===a.orientation,l="waterfall"===a.type,s="funnel"===a.type;function c(e){return u(o?n:r,+e,!0).text}var f,d,p=a.textinfo,h=e[t],g=p.split("+"),m=[],v=function(e){return-1!==g.indexOf(e)};if(v("label")&&m.push((d=e[t].p,u(o?r:n,d,!0).text)),v("text")&&(0===(f=i.castOption(a,h.i,"text"))||f)&&m.push(f),l){var y=+h.rawS||h.s,x=h.v,b=x-y;v("initial")&&m.push(c(b)),v("delta")&&m.push(c(y)),v("final")&&m.push(c(x))}if(s){v("value")&&m.push(c(h.s));var _=0;v("percent initial")&&_++,v("percent previous")&&_++,v("percent total")&&_++;var w=_>1;v("percent initial")&&(f=i.formatPercent(h.begR),w&&(f+=" of initial"),m.push(f)),v("percent previous")&&(f=i.formatPercent(h.difR),w&&(f+=" of previous"),m.push(f)),v("percent total")&&(f=i.formatPercent(h.sumR),w&&(f+=" of total"),m.push(f))}return m.join("<br>")}(t,n,r,a):g.getValue(l.text,n),g.coerceString(y,o)}(O,r,a,k,A);w=function(e,t){var n=g.getValue(e.textposition,t);return g.coerceEnumerated(x,n)}(E,a);var R="stack"===m.mode||"relative"===m.mode,I=r[a],N=!R||I._outmost;if(D&&"none"!==w&&(!I.isBlank&&l!==c&&f!==p||"auto"!==w&&"inside"!==w)){var F=O.font,B=h.getBarColor(r[a],E),j=h.getInsideTextFont(E,a,F,B),H=h.getOutsideTextFont(E,a,F),q=n.datum();z?"log"===k.type&&q.s0<=0&&(l=k.range[0]<k.range[1]?0:k._length):"log"===A.type&&q.s0<=0&&(f=A.range[0]<A.range[1]?A._length:0);var V,U,G,Z,W,Y=Math.abs(c-l)-2*_,X=Math.abs(p-f)-2*_;if("outside"===w&&(N||I.hasB||(w="inside")),"auto"===w)if(N){w="inside",W=i.ensureUniformFontSize(e,j),V=P(n,D,W),U=s.bBox(V.node()),G=U.width,Z=U.height;var $=G<=Y&&Z<=X,Q=G<=X&&Z<=Y,K=z?Y>=G*(X/Z):X>=Z*(Y/G);G>0&&Z>0&&($||Q||K)?w="inside":(w="outside",V.remove(),V=null)}else w="inside";if(!V){W=i.ensureUniformFontSize(e,"outside"===w?H:j);var J=(V=P(n,D,W)).attr("transform");if(V.attr("transform",""),U=s.bBox(V.node()),G=U.width,Z=U.height,V.attr("transform",J),G<=0||Z<=0)return void V.remove()}var ee,te,ne=E.textangle;"outside"===w?(te="both"===E.constraintext||"outside"===E.constraintext,ee=function(e,t,n,r,a,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,u=a.width,f=a.height,d=Math.abs(t-e),p=Math.abs(r-n);o=l?p>2*_?_:0:d>2*_?_:0;var h=1;s&&(h=l?Math.min(1,p/f):Math.min(1,d/u));var g=S(c),m=L(a,g),v=(l?m.x:m.y)/2,y=(a.left+a.right)/2,x=(a.top+a.bottom)/2,b=(e+t)/2,w=(n+r)/2,k=0,M=0,A=l?T(t,e):T(n,r);return l?(b=t-A*o,k=A*v):(w=r+A*o,M=-A*v),{textX:y,textY:x,targetX:b,targetY:w,anchorX:k,anchorY:M,scale:h,rotate:g}}(l,c,f,p,U,{isHorizontal:z,constrained:te,angle:ne})):(te="both"===E.constraintext||"inside"===E.constraintext,ee=C(l,c,f,p,U,{isHorizontal:z,constrained:te,angle:ne,anchor:E.insidetextanchor})),ee.fontSize=W.size,d(E.type,ee,O),I.transform=ee,M(V,O,m,v).attr("transform",i.getTextTransform(ee))}else n.select("text").remove()}(e,t,E,n,p,F,B,j,H,m,v),t.layerClipId&&s.hideOutsideRangePoint(c,E.select("text"),w,O,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;s.setClipUrl(c,j?null:t.layerClipId,e)}));c.getComponentMethod("errorbars","plot")(e,E,t,m)},toMoveInsideBar:C}},{"../../components/color":52,"../../components/drawing":74,"../../components/fx/helpers":88,"../../lib":178,"../../lib/svg_text_utils":199,"../../plots/cartesian/axes":222,"../../registry":269,"./attributes":279,"./constants":281,"./helpers":285,"./style":293,"./uniform_text":295,d3:16,"fast-isnumeric":18}],291:[function(e,t,n){"use strict";function r(e,t,n,r,a){var i=t.c2p(r?e.s0:e.p0,!0),o=t.c2p(r?e.s1:e.p1,!0),l=n.c2p(r?e.p0:e.s0,!0),s=n.c2p(r?e.p1:e.s1,!0);return a?[(i+o)/2,(l+s)/2]:r?[o,(l+s)/2]:[(i+o)/2,s]}t.exports=function(e,t){var n,a=e.cd,i=e.xaxis,o=e.yaxis,l=a[0].trace,s="funnel"===l.type,c="h"===l.orientation,u=[];if(!1===t)for(n=0;n<a.length;n++)a[n].selected=0;else for(n=0;n<a.length;n++){var f=a[n],d="ct"in f?f.ct:r(f,i,o,c,s);t.contains(d,!1,n,e)?(u.push({pointNumber:n,x:i.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},{}],292:[function(e,t,n){"use strict";t.exports=i;var r=e("../../lib").distinctVals,a=e("../../constants/numerical").BADNUM;function i(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var n=1/0,i=[],o=0;o<e.length;o++){for(var l=e[o],s=0;s<l.length;s++){var c=l[s];c.p!==a&&i.push(c.p)}l[0]&&l[0].width1&&(n=Math.min(l[0].width1,n))}this.positions=i;var u=r(i);this.distinctPositions=u.vals,1===u.vals.length&&n!==1/0?this.minDiff=n:this.minDiff=Math.min(u.minDiff,n),this.binWidth=this.minDiff,this.bins={}}i.prototype.put=function(e,t){var n=this.getLabel(e,t),r=this.bins[n]||0;return this.bins[n]=r+t,r},i.prototype.get=function(e,t){var n=this.getLabel(e,t);return this.bins[n]||0},i.prototype.getLabel=function(e,t){return(t<0&&this.sepNegVal?"v":"^")+(this.overlapNoMerge?e:Math.round(e/this.binWidth))}},{"../../constants/numerical":158,"../../lib":178}],293:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/color"),i=e("../../components/drawing"),o=e("../../lib"),l=e("../../registry"),s=e("./uniform_text").resizeText,c=e("./attributes"),u=c.textfont,f=c.insidetextfont,d=c.outsidetextfont,p=e("./helpers");function h(e,t,n){i.pointStyle(e.selectAll("path"),t,n),g(e,t,n)}function g(e,t,n){e.selectAll("text").each((function(e){var a=r.select(this),l=o.ensureUniformFontSize(n,m(a,e,t,n));i.font(a,l)}))}function m(e,t,n,r){var a=r._fullLayout.font,i=n.textfont;if(e.classed("bartext-inside")){var o=_(t,n);i=y(n,t.i,a,o)}else e.classed("bartext-outside")&&(i=x(n,t.i,a));return i}function v(e,t,n){return b(u,e.textfont,t,n)}function y(e,t,n,r){var i=v(e,t,n);return(void 0===e._input.textfont||void 0===e._input.textfont.color||Array.isArray(e.textfont.color)&&void 0===e.textfont.color[t])&&(i={color:a.contrast(r),family:i.family,size:i.size}),b(f,e.insidetextfont,t,i)}function x(e,t,n){var r=v(e,t,n);return b(d,e.outsidetextfont,t,r)}function b(e,t,n,r){t=t||{};var a=p.getValue(t.family,n),i=p.getValue(t.size,n),o=p.getValue(t.color,n);return{family:p.coerceString(e.family,a,r.family),size:p.coerceNumber(e.size,i,r.size),color:p.coerceColor(e.color,o,r.color)}}function _(e,t){return"waterfall"===t.type?t[e.dir].marker.color:e.mc||t.marker.color}t.exports={style:function(e){var t=r.select(e).selectAll("g.barlayer").selectAll("g.trace");s(e,t,"bar");var n=t.size(),a=e._fullLayout;t.style("opacity",(function(e){return e[0].trace.opacity})).each((function(e){("stack"===a.barmode&&n>1||0===a.bargap&&0===a.bargroupgap&&!e[0].trace.marker.line.width)&&r.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){h(r.select(this),t[0].trace,e)})),l.getComponentMethod("errorbars","style")(t)},styleTextPoints:g,styleOnSelect:function(e,t,n){var a=t[0].trace;a.selectedpoints?function(e,t,n){i.selectedPointStyle(e.selectAll("path"),t),function(e,t,n){e.each((function(e){var a,l=r.select(this);if(e.selected){a=o.ensureUniformFontSize(n,m(l,e,t,n));var s=t.selected.textfont&&t.selected.textfont.color;s&&(a.color=s),i.font(l,a)}else i.selectedTextStyle(l,t)}))}(e.selectAll("text"),t,n)}(n,a,e):(h(n,a,e),l.getComponentMethod("errorbars","style")(n))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:s}},{"../../components/color":52,"../../components/drawing":74,"../../lib":178,"../../registry":269,"./attributes":279,"./helpers":285,"./uniform_text":295,d3:16}],294:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/defaults");t.exports=function(e,t,n,o,l){n("marker.color",o),a(e,"marker")&&i(e,t,l,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",r.defaultLine),a(e,"marker.line")&&i(e,t,l,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),n("selected.marker.color"),n("unselected.marker.color")}},{"../../components/color":52,"../../components/colorscale/defaults":62,"../../components/colorscale/helpers":63}],295:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib");function i(e){return"_"+e+"Text_minsize"}t.exports={recordMinTextSize:function(e,t,n){if(n.uniformtext.mode){var r=i(e),a=n.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=o<a,n[r]=n[r]||1/0,t.hide||(n[r]=Math.min(n[r],Math.max(o,a)))}},clearMinTextSize:function(e,t){t[i(e)]=void 0},resizeText:function(e,t,n){var i=e._fullLayout,o=i["_"+n+"Text_minsize"];if(o){var l,s="hide"===i.uniformtext.mode;switch(n){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}t.selectAll(l).each((function(e){var t=e.transform;t&&(t.scale=s&&t.hide?0:o/t.fontSize,r.select(this).select("text").attr("transform",a.getTextTransform(t)))}))}}}},{"../../lib":178,d3:16}],296:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),a=e("../bar/attributes"),i=e("../../components/color/attributes"),o=e("../../plots/template_attributes").hovertemplateAttrs,l=e("../../lib/extend").extendFlat,s=r.marker,c=s.line;t.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:l({},s.symbol,{arrayOk:!1,editType:"plot"}),opacity:l({},s.opacity,{arrayOk:!1,dflt:1,editType:"style"}),size:l({},s.size,{arrayOk:!1,editType:"calc"}),color:l({},s.color,{arrayOk:!1,editType:"style"}),line:{color:l({},c.color,{arrayOk:!1,dflt:i.defaultLine,editType:"style"}),width:l({},c.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:r.fillcolor,whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},offsetgroup:a.offsetgroup,alignmentgroup:a.alignmentgroup,selected:{marker:r.selected.marker,editType:"style"},unselected:{marker:r.unselected.marker,editType:"style"},text:l({},r.text,{}),hovertext:l({},r.hovertext,{}),hovertemplate:o({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},{"../../components/color/attributes":51,"../../lib/extend":173,"../../plots/template_attributes":264,"../bar/attributes":279,"../scatter/attributes":389}],297:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../plots/cartesian/axes"),i=e("../../lib"),o=e("../../constants/numerical").BADNUM,l=i._;t.exports=function(e,t){var n,s,v,y,x,b,_=e._fullLayout,w=a.getFromId(e,t.xaxis||"x"),k=a.getFromId(e,t.yaxis||"y"),T=[],M="violin"===t.type?"_numViolins":"_numBoxes";"h"===t.orientation?(v=w,y="x",x=k,b="y"):(v=k,y="y",x=w,b="x");var A,S,L,C,O,P,E=function(e,t,n,a){var o,l=t+"0"in e,s="d"+t in e;if(t in e||l&&s)return n.makeCalcdata(e,t);o=l?e[t+"0"]:"name"in e&&("category"===n.type||r(e.name)&&-1!==["linear","log"].indexOf(n.type)||i.isDateTime(e.name)&&"date"===n.type)?e.name:a;for(var c="multicategory"===n.type?n.r2c_just_indices(o):n.d2c(o,0,e[t+"calendar"]),u=e._length,f=new Array(u),d=0;d<u;d++)f[d]=c;return f}(t,b,x,_[M]),z=i.distinctVals(E),D=z.vals,R=z.minDiff/2,I="all"===(t.boxpoints||t.points)?i.identity:function(e){return e.v<A.lf||e.v>A.uf};if(t._hasPreCompStats){var N=t[y],F=function(e){return v.d2c((t[e]||[])[n])},B=1/0,j=-1/0;for(n=0;n<t._length;n++){var H=E[n];if(r(H)){if((A={}).pos=A[b]=H,A.q1=F("q1"),A.med=F("median"),A.q3=F("q3"),S=[],N&&i.isArrayOrTypedArray(N[n]))for(s=0;s<N[n].length;s++)(P=v.d2c(N[n][s]))!==o&&(c(O={v:P,i:[n,s]},t,[n,s]),S.push(O));if(A.pts=S.sort(u),C=(L=A[y]=S.map(f)).length,A.med!==o&&A.q1!==o&&A.q3!==o&&A.med>=A.q1&&A.q3>=A.med){var q=F("lowerfence");A.lf=q!==o&&q<=A.q1?q:d(A,L,C);var V=F("upperfence");A.uf=V!==o&&V>=A.q3?V:p(A,L,C);var U=F("mean");A.mean=U!==o?U:C?i.mean(L,C):(A.q1+A.q3)/2;var G=F("sd");A.sd=U!==o&&G>=0?G:C?i.stdev(L,C,A.mean):A.q3-A.q1,A.lo=h(A),A.uo=g(A);var Z=F("notchspan");Z=Z!==o&&Z>0?Z:m(A,C),A.ln=A.med-Z,A.un=A.med+Z;var W=A.lf,Y=A.uf;t.boxpoints&&L.length&&(W=Math.min(W,L[0]),Y=Math.max(Y,L[C-1])),t.notched&&(W=Math.min(W,A.ln),Y=Math.max(Y,A.un)),A.min=W,A.max=Y}else{var X;i.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+A.q1,"median = "+A.med,"q3 = "+A.q3].join("\n")),X=A.med!==o?A.med:A.q1!==o?A.q3!==o?(A.q1+A.q3)/2:A.q1:A.q3!==o?A.q3:0,A.med=X,A.q1=A.q3=X,A.lf=A.uf=X,A.mean=A.sd=X,A.ln=A.un=X,A.min=A.max=X}B=Math.min(B,A.min),j=Math.max(j,A.max),A.pts2=S.filter(I),T.push(A)}}t._extremes[v._id]=a.findExtremes(v,[B,j],{padded:!0})}else{var $=v.makeCalcdata(t,y),Q=function(e,t){for(var n=e.length,r=new Array(n+1),a=0;a<n;a++)r[a]=e[a]-t;return r[n]=e[n-1]+t,r}(D,R),K=D.length,J=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}(K);for(n=0;n<t._length;n++)if(P=$[n],r(P)){var ee=i.findBin(E[n],Q);ee>=0&&ee<K&&(c(O={v:P,i:n},t,n),J[ee].push(O))}var te=1/0,ne=-1/0,re=t.quartilemethod,ae="exclusive"===re,ie="inclusive"===re;for(n=0;n<K;n++)if(J[n].length>0){var oe,le;(A={}).pos=A[b]=D[n],S=A.pts=J[n].sort(u),C=(L=A[y]=S.map(f)).length,A.min=L[0],A.max=L[C-1],A.mean=i.mean(L,C),A.sd=i.stdev(L,C,A.mean),A.med=i.interp(L,.5),C%2&&(ae||ie)?(ae?(oe=L.slice(0,C/2),le=L.slice(C/2+1)):ie&&(oe=L.slice(0,C/2+1),le=L.slice(C/2)),A.q1=i.interp(oe,.5),A.q3=i.interp(le,.5)):(A.q1=i.interp(L,.25),A.q3=i.interp(L,.75)),A.lf=d(A,L,C),A.uf=p(A,L,C),A.lo=h(A),A.uo=g(A);var se=m(A,C);A.ln=A.med-se,A.un=A.med+se,te=Math.min(te,A.ln),ne=Math.max(ne,A.un),A.pts2=S.filter(I),T.push(A)}t._extremes[v._id]=a.findExtremes(v,t.notched?$.concat([te,ne]):$,{padded:!0})}return function(e,t){if(i.isArrayOrTypedArray(t.selectedpoints))for(var n=0;n<e.length;n++){for(var r=e[n].pts||[],a={},o=0;o<r.length;o++)a[r[o].i]=o;i.tagSelected(r,t,a)}}(T,t),T.length>0?(T[0].t={num:_[M],dPos:R,posLetter:b,valLetter:y,labels:{med:l(e,"median:"),min:l(e,"min:"),q1:l(e,"q1:"),q3:l(e,"q3:"),max:l(e,"max:"),mean:"sd"===t.boxmean?l(e,"mean ± σ:"):l(e,"mean:"),lf:l(e,"lower fence:"),uf:l(e,"upper fence:")}},_[M]++,T):[{t:{empty:!0}}]};var s={text:"tx",hovertext:"htx"};function c(e,t,n){for(var r in s)i.isArrayOrTypedArray(t[r])&&(Array.isArray(n)?i.isArrayOrTypedArray(t[r][n[0]])&&(e[s[r]]=t[r][n[0]][n[1]]):e[s[r]]=t[r][n])}function u(e,t){return e.v-t.v}function f(e){return e.v}function d(e,t,n){return 0===n?e.q1:Math.min(e.q1,t[Math.min(i.findBin(2.5*e.q1-1.5*e.q3,t,!0)+1,n-1)])}function p(e,t,n){return 0===n?e.q3:Math.max(e.q3,t[Math.max(i.findBin(2.5*e.q3-1.5*e.q1,t),0)])}function h(e){return 4*e.q1-3*e.q3}function g(e){return 4*e.q3-3*e.q1}function m(e,t){return 0===t?0:1.57*(e.q3-e.q1)/Math.sqrt(t)}},{"../../constants/numerical":158,"../../lib":178,"../../plots/cartesian/axes":222,"fast-isnumeric":18}],298:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../lib"),i=e("../../plots/cartesian/axis_ids").getAxisGroup,o=["v","h"];function l(e,t,n,o){var l,s,c,u=t.calcdata,f=t._fullLayout,d=o._id,p=d.charAt(0),h=[],g=0;for(l=0;l<n.length;l++)for(c=u[n[l]],s=0;s<c.length;s++)h.push(o.c2l(c[s].pos,!0)),g+=(c[s].pts2||[]).length;if(h.length){var m=a.distinctVals(h),v=m.minDiff/2;r.minDtick(o,m.minDiff,m.vals[0],!0);var y=f["violin"===e?"_numViolins":"_numBoxes"],x="group"===f[e+"mode"]&&y>1,b=1-f[e+"gap"],_=1-f[e+"groupgap"];for(l=0;l<n.length;l++){var w,k,T,M,A,S,L=(c=u[n[l]])[0].trace,C=c[0].t,O=L.width,P=L.side;if(O)w=k=M=O/2,T=0;else if(w=v,x){var E=i(f,o._id)+L.orientation,z=(f._alignmentOpts[E]||{})[L.alignmentgroup]||{},D=Object.keys(z.offsetGroups||{}).length,R=D||y;k=w*b*_/R,T=2*w*(((D?L._offsetIndex:C.num)+.5)/R-.5)*b,M=w*b/R}else k=w*b*_,T=0,M=w;C.dPos=w,C.bPos=T,C.bdPos=k,C.wHover=M;var I,N,F,B,j,H,q=T+k,V=Boolean(O);if("positive"===P?(A=w*(O?1:.5),I=q,S=I=T):"negative"===P?(A=I=T,S=w*(O?1:.5),N=q):(A=S=w,I=N=q),(L.boxpoints||L.points)&&g>0){var U=L.pointpos,G=L.jitter,Z=L.marker.size/2,W=0;U+G>=0&&((W=q*(U+G))>A?(V=!0,j=Z,F=W):W>I&&(j=Z,F=A)),W<=A&&(F=A);var Y=0;U-G<=0&&((Y=-q*(U-G))>S?(V=!0,H=Z,B=Y):Y>N&&(H=Z,B=S)),Y<=S&&(B=S)}else F=A,B=S;var X=new Array(c.length);for(s=0;s<c.length;s++)X[s]=c[s].pos;L._extremes[d]=r.findExtremes(o,X,{padded:V,vpadminus:B,vpadplus:F,vpadLinearized:!0,ppadminus:{x:H,y:j}[p],ppadplus:{x:j,y:H}[p]})}}}t.exports={crossTraceCalc:function(e,t){for(var n=e.calcdata,r=t.xaxis,a=t.yaxis,i=0;i<o.length;i++){for(var s=o[i],c="h"===s?a:r,u=[],f=0;f<n.length;f++){var d=n[f],p=d[0].t,h=d[0].trace;!0!==h.visible||"box"!==h.type&&"candlestick"!==h.type||p.empty||(h.orientation||"v")!==s||h.xaxis!==r._id||h.yaxis!==a._id||u.push(f)}l("box",e,u,c)}},setPositionOffset:l}},{"../../lib":178,"../../plots/cartesian/axes":222,"../../plots/cartesian/axis_ids":225}],299:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry"),i=e("../../components/color"),o=e("../bar/defaults").handleGroupingDefaults,l=e("../../plots/cartesian/axis_autotype"),s=e("./attributes");function c(e,t,n,i){function o(e){var t=0;return e&&e.length&&(t+=1,r.isArrayOrTypedArray(e[0])&&e[0].length&&(t+=1)),t}function c(t){return r.validate(e[t],s[t])}var u,f=n("y"),d=n("x");if("box"===t.type){var p=n("q1"),h=n("median"),g=n("q3");t._hasPreCompStats=p&&p.length&&h&&h.length&&g&&g.length,u=Math.min(r.minRowLength(p),r.minRowLength(h),r.minRowLength(g))}var m,v,y=o(f),x=o(d),b=y&&r.minRowLength(f),_=x&&r.minRowLength(d);if(t._hasPreCompStats)switch(String(x)+String(y)){case"00":var w=c("x0")||c("dx");m=!c("y0")&&!c("dy")||w?"v":"h",v=u;break;case"10":m="v",v=Math.min(u,_);break;case"20":m="h",v=Math.min(u,d.length);break;case"01":m="h",v=Math.min(u,b);break;case"02":m="v",v=Math.min(u,f.length);break;case"12":m="v",v=Math.min(u,_,f.length);break;case"21":m="h",v=Math.min(u,d.length,b);break;case"11":v=0;break;case"22":var k,T=!1;for(k=0;k<d.length;k++)if("category"===l(d[k])){T=!0;break}if(T)m="v",v=Math.min(u,_,f.length);else{for(k=0;k<f.length;k++)if("category"===l(f[k])){T=!0;break}T?(m="h",v=Math.min(u,d.length,b)):(m="v",v=Math.min(u,_,f.length))}}else y>0?(m="v",v=x>0?Math.min(_,b):Math.min(b)):x>0?(m="h",v=Math.min(_)):v=0;if(v){t._length=v;var M=n("orientation",m);t._hasPreCompStats?"v"===M&&0===x?(n("x0",0),n("dx",1)):"h"===M&&0===y&&(n("y0",0),n("dy",1)):"v"===M&&0===x?n("x0"):"h"===M&&0===y&&n("y0"),a.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],i)}else t.visible=!1}function u(e,t,n,a){var i=a.prefix,o=r.coerce2(e,t,s,"marker.outliercolor"),l=n("marker.line.outliercolor"),c="outliers";t._hasPreCompStats?c="all":(o||l)&&(c="suspectedoutliers");var u=n(i+"points",c);u?(n("jitter","all"===u?.3:0),n("pointpos","all"===u?-1.5:0),n("marker.symbol"),n("marker.opacity"),n("marker.size"),n("marker.color",t.line.color),n("marker.line.color"),n("marker.line.width"),"suspectedoutliers"===u&&(n("marker.line.outliercolor",t.marker.color),n("marker.line.outlierwidth")),n("selected.marker.color"),n("unselected.marker.color"),n("selected.marker.size"),n("unselected.marker.size"),n("text"),n("hovertext")):delete t.marker;var f=n("hoveron");"all"!==f&&-1===f.indexOf("points")||n("hovertemplate"),r.coerceSelectionMarkerOpacity(t,n)}t.exports={supplyDefaults:function(e,t,n,a){function o(n,a){return r.coerce(e,t,s,n,a)}if(c(e,t,o,a),!1!==t.visible){var l=t._hasPreCompStats;l&&(o("lowerfence"),o("upperfence")),o("line.color",(e.marker||{}).color||n),o("line.width"),o("fillcolor",i.addOpacity(t.line.color,.5));var f=!1;if(l){var d=o("mean"),p=o("sd");d&&d.length&&(f=!0,p&&p.length&&(f="sd"))}o("boxmean",f),o("whiskerwidth"),o("width"),o("quartilemethod");var h=!1;if(l){var g=o("notchspan");g&&g.length&&(h=!0)}else r.validate(e.notchwidth,s.notchwidth)&&(h=!0);o("notched",h)&&o("notchwidth"),u(e,t,o,{prefix:"box"})}},crossTraceDefaults:function(e,t){var n,a;function i(e){return r.coerce(a._input,a,s,e)}for(var l=0;l<e.length;l++){var c=(a=e[l]).type;"box"!==c&&"violin"!==c||(n=a._input,"group"===t[c+"mode"]&&o(n,a,t,i))}},handleSampleDefaults:c,handlePointsDefaults:u}},{"../../components/color":52,"../../lib":178,"../../plots/cartesian/axis_autotype":223,"../../registry":269,"../bar/defaults":283,"./attributes":296}],300:[function(e,t,n){"use strict";t.exports=function(e,t){return t.hoverOnBox&&(e.hoverOnBox=t.hoverOnBox),"xVal"in t&&(e.x=t.xVal),"yVal"in t&&(e.y=t.yVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},{}],301:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../lib"),i=e("../../components/fx"),o=e("../../components/color"),l=a.fillText;function s(e,t,n,l){var s,c,u,f,d,p,h,g,m,v,y,x,b,_,w=e.cd,k=e.xa,T=e.ya,M=w[0].trace,A=w[0].t,S="violin"===M.type,L=[],C=A.bdPos,O=A.wHover,P=function(e){return u.c2l(e.pos)+A.bPos-u.c2l(p)};S&&"both"!==M.side?("positive"===M.side&&(m=function(e){var t=P(e);return i.inbox(t,t+O,v)},x=C,b=0),"negative"===M.side&&(m=function(e){var t=P(e);return i.inbox(t-O,t,v)},x=0,b=C)):(m=function(e){var t=P(e);return i.inbox(t-O,t+O,v)},x=b=C),_=S?function(e){return i.inbox(e.span[0]-d,e.span[1]-d,v)}:function(e){return i.inbox(e.min-d,e.max-d,v)},"h"===M.orientation?(d=t,p=n,h=_,g=m,s="y",u=T,c="x",f=k):(d=n,p=t,h=m,g=_,s="x",u=k,c="y",f=T);var E=Math.min(1,C/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function z(e){return(h(e)+g(e))/2}v=e.maxHoverDistance-E,y=e.maxSpikeDistance-E;var D=i.getDistanceFunction(l,h,g,z);if(i.getClosest(w,D,e),!1===e.index)return[];var R=w[e.index],I=M.line.color,N=(M.marker||{}).color;o.opacity(I)&&M.line.width?e.color=I:o.opacity(N)&&M.boxpoints?e.color=N:e.color=M.fillcolor,e[s+"0"]=u.c2p(R.pos+A.bPos-b,!0),e[s+"1"]=u.c2p(R.pos+A.bPos+x,!0),e[s+"LabelVal"]=R.pos;var F=s+"Spike";e.spikeDistance=z(R)*y/v,e[F]=u.c2p(R.pos,!0);var B={},j=["med","q1","q3","min","max"];(M.boxmean||(M.meanline||{}).visible)&&j.push("mean"),(M.boxpoints||M.points)&&j.push("lf","uf");for(var H=0;H<j.length;H++){var q=j[H];if(q in R&&!(R[q]in B)){B[R[q]]=!0;var V=R[q],U=f.c2p(V,!0),G=a.extendFlat({},e);G.attr=q,G[c+"0"]=G[c+"1"]=U,G[c+"LabelVal"]=V,G[c+"Label"]=(A.labels?A.labels[q]+" ":"")+r.hoverLabelText(f,V),G.hoverOnBox=!0,"mean"===q&&"sd"in R&&"sd"===M.boxmean&&(G[c+"err"]=R.sd),e.name="",e.spikeDistance=void 0,e[F]=void 0,G.hovertemplate=!1,L.push(G)}}return L}function c(e,t,n){for(var r,o,s,c=e.cd,u=e.xa,f=e.ya,d=c[0].trace,p=u.c2p(t),h=f.c2p(n),g=i.quadrature((function(e){var t=Math.max(3,e.mrc||0);return Math.max(Math.abs(u.c2p(e.x)-p)-t,1-3/t)}),(function(e){var t=Math.max(3,e.mrc||0);return Math.max(Math.abs(f.c2p(e.y)-h)-t,1-3/t)})),m=!1,v=0;v<c.length;v++){o=c[v];for(var y=0;y<(o.pts||[]).length;y++){var x=g(s=o.pts[y]);x<=e.distance&&(e.distance=x,m=[v,y])}}if(!m)return!1;s=(o=c[m[0]]).pts[m[1]];var b,_=u.c2p(s.x,!0),w=f.c2p(s.y,!0),k=s.mrc||1;return r=a.extendFlat({},e,{index:s.i,color:(d.marker||{}).color,name:d.name,x0:_-k,x1:_+k,y0:w-k,y1:w+k,spikeDistance:e.distance,hovertemplate:d.hovertemplate}),"h"===d.orientation?(b=f,r.xLabelVal=s.x,r.yLabelVal=o.pos):(b=u,r.xLabelVal=o.pos,r.yLabelVal=s.y),r[b._id.charAt(0)+"Spike"]=b.c2p(o.pos,!0),l(s,d,r),r}t.exports={hoverPoints:function(e,t,n,r){var a,i=e.cd[0].trace.hoveron,o=[];return-1!==i.indexOf("boxes")&&(o=o.concat(s(e,t,n,r))),-1!==i.indexOf("points")&&(a=c(e,t,n)),"closest"===r?a?[a]:o:a?(o.push(a),o):o},hoverOnBoxes:s,hoverOnPoints:c}},{"../../components/color":52,"../../components/fx":92,"../../lib":178,"../../plots/cartesian/axes":222}],302:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults").supplyDefaults,crossTraceDefaults:e("./defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults").supplyLayoutDefaults,calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc").crossTraceCalc,plot:e("./plot").plot,style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover").hoverPoints,eventData:e("./event_data"),selectPoints:e("./select"),moduleType:"trace",name:"box",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}},{"../../plots/cartesian":235,"./attributes":296,"./calc":297,"./cross_trace_calc":298,"./defaults":299,"./event_data":300,"./hover":301,"./layout_attributes":303,"./layout_defaults":304,"./plot":305,"./select":306,"./style":307}],303:[function(e,t,n){"use strict";t.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}},{}],304:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),i=e("./layout_attributes");function o(e,t,n,a,i){for(var o=i+"Layout",l=!1,s=0;s<n.length;s++){var c=n[s];if(r.traceIs(c,o)){l=!0;break}}l&&(a(i+"mode"),a(i+"gap"),a(i+"groupgap"))}t.exports={supplyLayoutDefaults:function(e,t,n){o(0,0,n,(function(n,r){return a.coerce(e,t,i,n,r)}),"box")},_supply:o}},{"../../lib":178,"../../registry":269,"./layout_attributes":303}],305:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),i=e("../../components/drawing");function o(e,t,n,i){var o,l,s=t.pos,c=t.val,u=i.bPos,f=i.wdPos||0,d=i.bPosPxOffset||0,p=n.whiskerwidth||0,h=n.notched||!1,g=h?1-2*n.notchwidth:1;Array.isArray(i.bdPos)?(o=i.bdPos[0],l=i.bdPos[1]):(o=i.bdPos,l=i.bdPos);var m=e.selectAll("path.box").data("violin"!==n.type||n.box.visible?a.identity:[]);m.enter().append("path").style("vector-effect","non-scaling-stroke").attr("class","box"),m.exit().remove(),m.each((function(e){if(e.empty)return"M0,0Z";var t=s.c2l(e.pos+u,!0),i=s.l2p(t)+d,m=s.l2p(t-o)+d,v=s.l2p(t+l)+d,y=s.l2p(t-f)+d,x=s.l2p(t+f)+d,b=s.l2p(t-o*g)+d,_=s.l2p(t+l*g)+d,w=c.c2p(e.q1,!0),k=c.c2p(e.q3,!0),T=a.constrain(c.c2p(e.med,!0),Math.min(w,k)+1,Math.max(w,k)-1),M=void 0===e.lf||!1===n.boxpoints,A=c.c2p(M?e.min:e.lf,!0),S=c.c2p(M?e.max:e.uf,!0),L=c.c2p(e.ln,!0),C=c.c2p(e.un,!0);"h"===n.orientation?r.select(this).attr("d","M"+T+","+b+"V"+_+"M"+w+","+m+"V"+v+(h?"H"+L+"L"+T+","+_+"L"+C+","+v:"")+"H"+k+"V"+m+(h?"H"+C+"L"+T+","+b+"L"+L+","+m:"")+"ZM"+w+","+i+"H"+A+"M"+k+","+i+"H"+S+(0===p?"":"M"+A+","+y+"V"+x+"M"+S+","+y+"V"+x)):r.select(this).attr("d","M"+b+","+T+"H"+_+"M"+m+","+w+"H"+v+(h?"V"+L+"L"+_+","+T+"L"+v+","+C:"")+"V"+k+"H"+m+(h?"V"+C+"L"+b+","+T+"L"+m+","+L:"")+"ZM"+i+","+w+"V"+A+"M"+i+","+k+"V"+S+(0===p?"":"M"+y+","+A+"H"+x+"M"+y+","+S+"H"+x))}))}function l(e,t,n,r){var o=t.x,l=t.y,s=r.bdPos,c=r.bPos,u=n.boxpoints||n.points;a.seedPseudoRandom();var f=e.selectAll("g.points").data(u?function(e){return e.forEach((function(e){e.t=r,e.trace=n})),e}:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var d=f.selectAll("path").data((function(e){var t,r,i=e.pts2,o=Math.max((e.max-e.min)/10,e.q3-e.q1),l=1e-9*o,f=.01*o,d=[],p=0;if(n.jitter){if(0===o)for(p=1,d=new Array(i.length),t=0;t<i.length;t++)d[t]=1;else for(t=0;t<i.length;t++){var h=Math.max(0,t-5),g=i[h].v,m=Math.min(i.length-1,t+5),v=i[m].v;"all"!==u&&(i[t].v<e.lf?v=Math.min(v,e.lf):g=Math.max(g,e.uf));var y=Math.sqrt(f*(m-h)/(v-g+l))||0;y=a.constrain(Math.abs(y),0,1),d.push(y),p=Math.max(y,p)}r=2*n.jitter/(p||1)}for(t=0;t<i.length;t++){var x=i[t],b=x.v,_=n.jitter?r*d[t]*(a.pseudoRandom()-.5):0,w=e.pos+c+s*(n.pointpos+_);"h"===n.orientation?(x.y=w,x.x=b):(x.x=w,x.y=b),"suspectedoutliers"===u&&b<e.uo&&b>e.lo&&(x.so=!0)}return i}));d.enter().append("path").classed("point",!0),d.exit().remove(),d.call(i.translatePoints,o,l)}function s(e,t,n,i){var o,l,s=t.pos,c=t.val,u=i.bPos,f=i.bPosPxOffset||0,d=n.boxmean||(n.meanline||{}).visible;Array.isArray(i.bdPos)?(o=i.bdPos[0],l=i.bdPos[1]):(o=i.bdPos,l=i.bdPos);var p=e.selectAll("path.mean").data("box"===n.type&&n.boxmean||"violin"===n.type&&n.box.visible&&n.meanline.visible?a.identity:[]);p.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),p.exit().remove(),p.each((function(e){var t=s.c2l(e.pos+u,!0),a=s.l2p(t)+f,i=s.l2p(t-o)+f,p=s.l2p(t+l)+f,h=c.c2p(e.mean,!0),g=c.c2p(e.mean-e.sd,!0),m=c.c2p(e.mean+e.sd,!0);"h"===n.orientation?r.select(this).attr("d","M"+h+","+i+"V"+p+("sd"===d?"m0,0L"+g+","+a+"L"+h+","+i+"L"+m+","+a+"Z":"")):r.select(this).attr("d","M"+i+","+h+"H"+p+("sd"===d?"m0,0L"+a+","+g+"L"+i+","+h+"L"+a+","+m+"Z":""))}))}t.exports={plot:function(e,t,n,i){var c=t.xaxis,u=t.yaxis;a.makeTraceGroups(i,n,"trace boxes").each((function(e){var t,n,a=r.select(this),i=e[0],f=i.t,d=i.trace;f.wdPos=f.bdPos*d.whiskerwidth,!0!==d.visible||f.empty?a.remove():("h"===d.orientation?(t=u,n=c):(t=c,n=u),o(a,{pos:t,val:n},d,f),l(a,{x:c,y:u},d,f),s(a,{pos:t,val:n},d,f))}))},plotBoxAndWhiskers:o,plotPoints:l,plotBoxMean:s}},{"../../components/drawing":74,"../../lib":178,d3:16}],306:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,a=e.cd,i=e.xaxis,o=e.yaxis,l=[];if(!1===t)for(n=0;n<a.length;n++)for(r=0;r<(a[n].pts||[]).length;r++)a[n].pts[r].selected=0;else for(n=0;n<a.length;n++)for(r=0;r<(a[n].pts||[]).length;r++){var s=a[n].pts[r],c=i.c2p(s.x),u=o.c2p(s.y);t.contains([c,u],null,s.i,e)?(l.push({pointNumber:s.i,x:i.c2d(s.x),y:o.c2d(s.y)}),s.selected=1):s.selected=0}return l}},{}],307:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/color"),i=e("../../components/drawing");t.exports={style:function(e,t,n){var o=n||r.select(e).selectAll("g.trace.boxes");o.style("opacity",(function(e){return e[0].trace.opacity})),o.each((function(t){var n=r.select(this),o=t[0].trace,l=o.line.width;function s(e,t,n,r){e.style("stroke-width",t+"px").call(a.stroke,n).call(a.fill,r)}var c=n.selectAll("path.box");if("candlestick"===o.type)c.each((function(e){if(!e.empty){var t=r.select(this),n=o[e.dir];s(t,n.line.width,n.line.color,n.fillcolor),t.style("opacity",o.selectedpoints&&!e.selected?.3:1)}}));else{s(c,l,o.line.color,o.fillcolor),n.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(a.stroke,o.line.color);var u=n.selectAll("path.point");i.pointStyle(u,o,e)}}))},styleOnSelect:function(e,t,n){var r=t[0].trace,a=n.selectAll("path.point");r.selectedpoints?i.selectedPointStyle(a,r):i.pointStyle(a,r,e)}}},{"../../components/color":52,"../../components/drawing":74,d3:16}],308:[function(e,t,n){"use strict";var r=e("../heatmap/attributes"),a=e("../scatter/attributes"),i=e("../../components/colorscale/attributes"),o=e("../../components/drawing/attributes").dash,l=e("../../plots/font_attributes"),s=e("../../lib/extend").extendFlat,c=e("../../constants/filter_ops"),u=c.COMPARISON_OPS2,f=c.INTERVAL_OPS,d=(e("../../constants/docs").FORMAT_LINK,a.line);t.exports=s({z:r.z,x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,text:r.text,hovertext:r.hovertext,transpose:r.transpose,xtype:r.xtype,ytype:r.ytype,zhoverformat:r.zhoverformat,hovertemplate:r.hovertemplate,hoverongaps:r.hoverongaps,connectgaps:s({},r.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:l({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot"},operation:{valType:"enumerated",values:[].concat(u).concat(f),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:s({},d.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:o,smoothing:s({},d.smoothing,{}),editType:"plot"}},i("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))},{"../../components/colorscale/attributes":59,"../../components/drawing/attributes":73,"../../constants/docs":155,"../../constants/filter_ops":156,"../../lib/extend":173,"../../plots/font_attributes":250,"../heatmap/attributes":330,"../scatter/attributes":389}],309:[function(e,t,n){"use strict";var r=e("../../components/colorscale"),a=e("../heatmap/calc"),i=e("./set_contours"),o=e("./end_plus");t.exports=function(e,t){var n=a(e,t),l=n[0].z;i(t,l);var s,c=t.contours,u=r.extractOpts(t);if("heatmap"===c.coloring&&u.auto&&!1===t.autocontour){var f=c.start,d=o(c),p=c.size||1,h=Math.floor((d-f)/p)+1;isFinite(p)||(p=1,h=1);var g=f-p/2;s=[g,g+h*p]}else s=l;return r.calc(e,t,{vals:s,cLetter:"z"}),n}},{"../../components/colorscale":64,"../heatmap/calc":331,"./end_plus":319,"./set_contours":327}],310:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r=e[0],a=r.z;switch(t.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;n<e.length;n++){var o=e[n];o.prefixBoundary=!o.edgepaths.length&&(i>o.level||o.starts.length&&i===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var l=r.x.length,s=r.y.length,c=-1/0,u=1/0;for(n=0;n<s;n++)u=Math.min(u,a[n][0]),u=Math.min(u,a[n][l-1]),c=Math.max(c,a[n][0]),c=Math.max(c,a[n][l-1]);for(n=1;n<l-1;n++)u=Math.min(u,a[0][n]),u=Math.min(u,a[s-1][n]),c=Math.max(c,a[0][n]),c=Math.max(c,a[s-1][n]);var f,d,p=t.value;switch(t._operation){case">":p>c&&(r.prefixBoundary=!0);break;case"<":(p<u||r.starts.length&&p===u)&&(r.prefixBoundary=!0);break;case"[]":f=Math.min(p[0],p[1]),((d=Math.max(p[0],p[1]))<u||f>c||r.starts.length&&d===u)&&(r.prefixBoundary=!0);break;case"][":f=Math.min(p[0],p[1]),d=Math.max(p[0],p[1]),f<u&&d>c&&(r.prefixBoundary=!0)}}}},{}],311:[function(e,t,n){"use strict";var r=e("../../components/colorscale"),a=e("./make_color_map"),i=e("./end_plus");t.exports={min:"zmin",max:"zmax",calc:function(e,t,n){var o=t.contours,l=t.line,s=o.size||1,c=o.coloring,u=a(t,{isColorbar:!0});if("heatmap"===c){var f=r.extractOpts(t);n._fillgradient=f.reversescale?r.flipScale(f.colorscale):f.colorscale,n._zrange=[f.min,f.max]}else"fill"===c&&(n._fillcolor=u);n._line={color:"lines"===c?u:l.color,width:!1!==o.showlines?l.width:0,dash:l.dash},n._levels={start:o.start,end:i(o),size:s}}}},{"../../components/colorscale":64,"./end_plus":319,"./make_color_map":324}],312:[function(e,t,n){"use strict";t.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],313:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("./label_defaults"),i=e("../../components/color"),o=i.addOpacity,l=i.opacity,s=e("../../constants/filter_ops"),c=s.CONSTRAINT_REDUCTION,u=s.COMPARISON_OPS2;t.exports=function(e,t,n,i,s,f){var d,p,h,g=t.contours,m=n("contours.operation");g._operation=c[m],function(e,t){var n;-1===u.indexOf(t.operation)?(e("contours.value",[0,1]),Array.isArray(t.value)?t.value.length>2?t.value=t.value.slice(2):0===t.length?t.value=[0,1]:t.length<2?(n=parseFloat(t.value[0]),t.value=[n,n+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:r(t.value)&&(n=parseFloat(t.value),t.value=[n,n+1])):(e("contours.value",0),r(t.value)||(Array.isArray(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}(n,g),"="===m?d=g.showlines=!0:(d=n("contours.showlines"),h=n("fillcolor",o((e.line||{}).color||s,.5))),d&&(p=n("line.color",h&&l(h)?o(t.fillcolor,1):s),n("line.width",2),n("line.dash")),n("line.smoothing"),a(n,i,p,f)}},{"../../components/color":52,"../../constants/filter_ops":156,"./label_defaults":323,"fast-isnumeric":18}],314:[function(e,t,n){"use strict";var r=e("../../constants/filter_ops"),a=e("fast-isnumeric");function i(e,t){var n,i=Array.isArray(t);function o(e){return a(e)?+e:null}return-1!==r.COMPARISON_OPS2.indexOf(e)?n=o(i?t[0]:t):-1!==r.INTERVAL_OPS.indexOf(e)?n=i?[o(t[0]),o(t[1])]:[o(t),o(t)]:-1!==r.SET_OPS.indexOf(e)&&(n=i?t.map(o):[o(t)]),n}function o(e){return function(t){t=i(e,t);var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return{start:n,end:r,size:r-n}}}function l(e){return function(t){return{start:t=i(e,t),end:1/0,size:1/0}}}t.exports={"[]":o("[]"),"][":o("]["),">":l(">"),"<":l("<"),"=":l("=")}},{"../../constants/filter_ops":156,"fast-isnumeric":18}],315:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var a=r("contours.start"),i=r("contours.end"),o=!1===a||!1===i,l=n("contours.size");!(o?t.autocontour=!0:n("autocontour",!1))&&l||n("ncontours")}},{}],316:[function(e,t,n){"use strict";var r=e("../../lib");function a(e){return r.extendFlat({},e,{edgepaths:r.extendDeep([],e.edgepaths),paths:r.extendDeep([],e.paths),starts:r.extendDeep([],e.starts)})}t.exports=function(e,t){var n,i,o,l=function(e){return e.reverse()},s=function(e){return e};switch(t){case"=":case"<":return e;case">":for(1!==e.length&&r.warn("Contour data invalid for the specified inequality operation."),i=e[0],n=0;n<i.edgepaths.length;n++)i.edgepaths[n]=l(i.edgepaths[n]);for(n=0;n<i.paths.length;n++)i.paths[n]=l(i.paths[n]);for(n=0;n<i.starts.length;n++)i.starts[n]=l(i.starts[n]);return e;case"][":var c=l;l=s,s=c;case"[]":for(2!==e.length&&r.warn("Contour data invalid for the specified inequality range operation."),i=a(e[0]),o=a(e[1]),n=0;n<i.edgepaths.length;n++)i.edgepaths[n]=l(i.edgepaths[n]);for(n=0;n<i.paths.length;n++)i.paths[n]=l(i.paths[n]);for(n=0;n<i.starts.length;n++)i.starts[n]=l(i.starts[n]);for(;o.edgepaths.length;)i.edgepaths.push(s(o.edgepaths.shift()));for(;o.paths.length;)i.paths.push(s(o.paths.shift()));for(;o.starts.length;)i.starts.push(s(o.starts.shift()));return[i]}}},{"../../lib":178}],317:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../heatmap/xyz_defaults"),i=e("./constraint_defaults"),o=e("./contours_defaults"),l=e("./style_defaults"),s=e("./attributes");t.exports=function(e,t,n,c){function u(n,a){return r.coerce(e,t,s,n,a)}if(a(e,t,u,c)){u("text"),u("hovertext"),u("hovertemplate"),u("hoverongaps");var f="constraint"===u("contours.type");u("connectgaps",r.isArray1D(t.z)),f?i(e,t,u,c,n):(o(e,t,u,(function(n){return r.coerce2(e,t,s,n)})),l(e,t,u,c))}else t.visible=!1}},{"../../lib":178,"../heatmap/xyz_defaults":344,"./attributes":308,"./constraint_defaults":313,"./contours_defaults":315,"./style_defaults":329}],318:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./constraint_mapping"),i=e("./end_plus");t.exports=function(e,t,n){for(var o="constraint"===e.type?a[e._operation](e.value):e,l=o.size,s=[],c=i(o),u=n.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:n.a,y:n.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:n.x,y:n.y},d=o.start;d<c;d+=l)if(s.push(r.extendFlat({level:d,crossings:{},starts:[],edgepaths:[],paths:[],z:n.z,smoothing:n.trace.line.smoothing},f)),s.length>1e3){r.warn("Too many contours, clipping at 1000",e);break}return s}},{"../../lib":178,"./constraint_mapping":314,"./end_plus":319}],319:[function(e,t,n){"use strict";t.exports=function(e){return e.end+e.size/1e6}},{}],320:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./constants");function i(e,t,n,r){return Math.abs(e[0]-t[0])<n&&Math.abs(e[1]-t[1])<r}function o(e,t,n,o,s){var c,u=t.join(","),f=e.crossings[u],d=function(e,t,n){var r=0,i=0;return e>20&&t?208===e||1114===e?r=0===n[0]?1:-1:i=0===n[1]?1:-1:-1!==a.BOTTOMSTART.indexOf(e)?i=1:-1!==a.LEFTSTART.indexOf(e)?r=1:-1!==a.TOPSTART.indexOf(e)?i=-1:r=-1,[r,i]}(f,n,t),p=[l(e,t,[-d[0],-d[1]])],h=e.z.length,g=e.z[0].length,m=t.slice(),v=d.slice();for(c=0;c<1e4;c++){if(f>20?(f=a.CHOOSESADDLE[f][(d[0]||d[1])<0?0:1],e.crossings[u]=a.SADDLEREMAINDER[f]):delete e.crossings[u],!(d=a.NEWDELTA[f])){r.log("Found bad marching index:",f,t,e.level);break}p.push(l(e,t,d)),t[0]+=d[0],t[1]+=d[1],u=t.join(","),i(p[p.length-1],p[p.length-2],o,s)&&p.pop();var y=d[0]&&(t[0]<0||t[0]>g-2)||d[1]&&(t[1]<0||t[1]>h-2);if(t[0]===m[0]&&t[1]===m[1]&&d[0]===v[0]&&d[1]===v[1]||n&&y)break;f=e.crossings[u]}1e4===c&&r.log("Infinite loop in contour?");var x,b,_,w,k,T,M,A,S,L,C,O,P,E,z,D=i(p[0],p[p.length-1],o,s),R=0,I=.2*e.smoothing,N=[],F=0;for(c=1;c<p.length;c++)O=p[c],P=p[c-1],E=void 0,z=void 0,E=O[2]-P[2],z=O[3]-P[3],R+=M=Math.sqrt(E*E+z*z),N.push(M);var B=R/N.length*I;function j(e){return p[e%p.length]}for(c=p.length-2;c>=F;c--)if((x=N[c])<B){for(_=0,b=c-1;b>=F&&x+N[b]<B;b--)x+=N[b];if(D&&c===p.length-2)for(_=0;_<b&&x+N[_]<B;_++)x+=N[_];k=c-b+_+1,T=Math.floor((c+b+_+2)/2),w=D||c!==p.length-2?D||-1!==b?k%2?j(T):[(j(T)[0]+j(T+1)[0])/2,(j(T)[1]+j(T+1)[1])/2]:p[0]:p[p.length-1],p.splice(b+1,c-b+1,w),c=b+1,_&&(F=_),D&&(c===p.length-2?p[_]=p[p.length-1]:0===c&&(p[p.length-1]=p[0]))}for(p.splice(0,F),c=0;c<p.length;c++)p[c].length=2;if(!(p.length<2))if(D)p.pop(),e.paths.push(p);else{n||r.log("Unclosed interior contour?",e.level,m.join(","),p.join("L"));var H=!1;for(A=0;A<e.edgepaths.length;A++)if(L=e.edgepaths[A],!H&&i(L[0],p[p.length-1],o,s)){p.pop(),H=!0;var q=!1;for(S=0;S<e.edgepaths.length;S++)if(i((C=e.edgepaths[S])[C.length-1],p[0],o,s)){q=!0,p.shift(),e.edgepaths.splice(A,1),S===A?e.paths.push(p.concat(C)):(S>A&&S--,e.edgepaths[S]=C.concat(p,L));break}q||(e.edgepaths[A]=p.concat(L))}for(A=0;A<e.edgepaths.length&&!H;A++)i((L=e.edgepaths[A])[L.length-1],p[0],o,s)&&(p.shift(),e.edgepaths[A]=L.concat(p),H=!0);H||e.edgepaths.push(p)}}function l(e,t,n){var r=t[0]+Math.max(n[0],0),a=t[1]+Math.max(n[1],0),i=e.z[a][r],o=e.xaxis,l=e.yaxis;if(n[1]){var s=(e.level-i)/(e.z[a][r+1]-i);return[o.c2p((1-s)*e.x[r]+s*e.x[r+1],!0),l.c2p(e.y[a],!0),r+s,a]}var c=(e.level-i)/(e.z[a+1][r]-i);return[o.c2p(e.x[r],!0),l.c2p((1-c)*e.y[a]+c*e.y[a+1],!0),r,a+c]}t.exports=function(e,t,n){var a,i,l,s;for(t=t||.01,n=n||.01,i=0;i<e.length;i++){for(l=e[i],s=0;s<l.starts.length;s++)o(l,l.starts[s],"edge",t,n);for(a=0;Object.keys(l.crossings).length&&a<1e4;)a++,o(l,Object.keys(l.crossings)[0].split(",").map(Number),void 0,t,n);1e4===a&&r.log("Infinite loop in contour?")}}},{"../../lib":178,"./constants":312}],321:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../heatmap/hover");t.exports=function(e,t,n,i,o){var l=a(e,t,n,i,o,!0);return l&&l.forEach((function(e){var t=e.trace;"constraint"===t.contours.type&&(t.fillcolor&&r.opacity(t.fillcolor)?e.color=r.addOpacity(t.fillcolor,1):t.contours.showlines&&r.opacity(t.line.color)&&(e.color=r.addOpacity(t.line.color,1)))})),l}},{"../../components/color":52,"../heatmap/hover":337}],322:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot").plot,style:e("./style"),colorbar:e("./colorbar"),hoverPoints:e("./hover"),moduleType:"trace",name:"contour",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}},{"../../plots/cartesian":235,"./attributes":308,"./calc":309,"./colorbar":311,"./defaults":317,"./hover":321,"./plot":326,"./style":328}],323:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t,n,a){if(a||(a={}),e("contours.showlabels")){var i=t.font;r.coerceFont(e,"contours.labelfont",{family:i.family,size:i.size,color:n}),e("contours.labelformat")}!1!==a.hasHover&&e("zhoverformat")}},{"../../lib":178}],324:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/colorscale"),i=e("./end_plus");t.exports=function(e){var t=e.contours,n=t.start,o=i(t),l=t.size||1,s=Math.floor((o-n)/l)+1,c="lines"===t.coloring?0:1,u=a.extractOpts(e);isFinite(l)||(l=1,s=1);var f,d,p=u.reversescale?a.flipScale(u.colorscale):u.colorscale,h=p.length,g=new Array(h),m=new Array(h);if("heatmap"===t.coloring){var v=u.min,y=u.max;for(d=0;d<h;d++)f=p[d],g[d]=f[0]*(y-v)+v,m[d]=f[1];var x=r.extent([v,y,t.start,t.start+l*(s-1)]),b=x[v<y?0:1],_=x[v<y?1:0];b!==v&&(g.splice(0,0,b),m.splice(0,0,m[0])),_!==y&&(g.push(_),m.push(m[m.length-1]))}else for(d=0;d<h;d++)f=p[d],g[d]=(f[0]*(s+c-1)-c/2)*l+n,m[d]=f[1];return a.makeColorScaleFunc({domain:g,range:m},{noNumericCheck:!0})}},{"../../components/colorscale":64,"./end_plus":319,d3:16}],325:[function(e,t,n){"use strict";var r=e("./constants");function a(e,t){var n=(t[0][0]>e?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);return 5===n||10===n?e>(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4?5===n?713:1114:5===n?104:208:15===n?0:n}t.exports=function(e){var t,n,i,o,l,s,c,u,f,d=e[0].z,p=d.length,h=d[0].length,g=2===p||2===h;for(n=0;n<p-1;n++)for(o=[],0===n&&(o=o.concat(r.BOTTOMSTART)),n===p-2&&(o=o.concat(r.TOPSTART)),t=0;t<h-1;t++)for(i=o.slice(),0===t&&(i=i.concat(r.LEFTSTART)),t===h-2&&(i=i.concat(r.RIGHTSTART)),l=t+","+n,s=[[d[n][t],d[n][t+1]],[d[n+1][t],d[n+1][t+1]]],f=0;f<e.length;f++)(c=a((u=e[f]).level,s))&&(u.crossings[l]=c,-1!==i.indexOf(c)&&(u.starts.push([t,n]),g&&-1!==i.indexOf(c,i.indexOf(c)+1)&&u.starts.push([t,n])))}},{"./constants":312}],326:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),i=e("../../components/drawing"),o=e("../../components/colorscale"),l=e("../../lib/svg_text_utils"),s=e("../../plots/cartesian/axes"),c=e("../../plots/cartesian/set_convert"),u=e("../heatmap/plot"),f=e("./make_crossings"),d=e("./find_all_paths"),p=e("./empty_pathinfo"),h=e("./convert_to_constraints"),g=e("./close_boundaries"),m=e("./constants"),v=m.LABELOPTIMIZER;function y(e,t){var n,r,o,l,s,c,u,f="",d=0,p=e.edgepaths.map((function(e,t){return t})),h=!0;function g(e){return Math.abs(e[1]-t[2][1])<.01}function m(e){return Math.abs(e[0]-t[0][0])<.01}function v(e){return Math.abs(e[0]-t[2][0])<.01}for(;p.length;){for(c=i.smoothopen(e.edgepaths[d],e.smoothing),f+=h?c:c.replace(/^M/,"L"),p.splice(p.indexOf(d),1),n=e.edgepaths[d][e.edgepaths[d].length-1],l=-1,o=0;o<4;o++){if(!n){a.log("Missing end?",d,e);break}for(u=n,Math.abs(u[1]-t[0][1])<.01&&!v(n)?r=t[1]:m(n)?r=t[0]:g(n)?r=t[3]:v(n)&&(r=t[2]),s=0;s<e.edgepaths.length;s++){var y=e.edgepaths[s][0];Math.abs(n[0]-r[0])<.01?Math.abs(n[0]-y[0])<.01&&(y[1]-n[1])*(r[1]-y[1])>=0&&(r=y,l=s):Math.abs(n[1]-r[1])<.01?Math.abs(n[1]-y[1])<.01&&(y[0]-n[0])*(r[0]-y[0])>=0&&(r=y,l=s):a.log("endpt to newendpt is not vert. or horz.",n,r,y)}if(n=r,l>=0)break;f+="L"+r}if(l===e.edgepaths.length){a.log("unclosed perimeter path");break}d=l,(h=-1===p.indexOf(d))&&(d=p[0],f+="Z")}for(d=0;d<e.paths.length;d++)f+=i.smoothclosed(e.paths[d],e.smoothing);return f}function x(e,t,n,r){var i=t.width/2,o=t.height/2,l=e.x,s=e.y,c=e.theta,u=Math.cos(c)*i,f=Math.sin(c)*i,d=(l>r.center?r.right-l:l-r.left)/(u+Math.abs(Math.sin(c)*o)),p=(s>r.middle?r.bottom-s:s-r.top)/(Math.abs(f)+Math.cos(c)*o);if(d<1||p<1)return 1/0;var h=v.EDGECOST*(1/(d-1)+1/(p-1));h+=v.ANGLECOST*c*c;for(var g=l-u,m=s-f,y=l+u,x=s+f,b=0;b<n.length;b++){var _=n[b],w=Math.cos(_.theta)*_.width/2,k=Math.sin(_.theta)*_.width/2,T=2*a.segmentDistance(g,m,y,x,_.x-w,_.y-k,_.x+w,_.y+k)/(t.height+_.height),M=_.level===t.level,A=M?v.SAMELEVELDISTANCE:1;if(T<=A)return 1/0;h+=v.NEIGHBORCOST*(M?v.SAMELEVELFACTOR:1)/(T-A)}return h}function b(e){var t,n,r=e.trace._emptypoints,a=[],i=e.z.length,o=e.z[0].length,l=[];for(t=0;t<o;t++)l.push(1);for(t=0;t<i;t++)a.push(l.slice());for(t=0;t<r.length;t++)a[(n=r[t])[0]][n[1]]=0;return e.zmask=a,a}n.plot=function(e,t,o,l){var s=t.xaxis,c=t.yaxis;a.makeTraceGroups(l,o,"contour").each((function(o){var l=r.select(this),v=o[0],x=v.trace,_=v.x,w=v.y,k=x.contours,T=p(k,t,v),M=a.ensureSingle(l,"g","heatmapcoloring"),A=[];"heatmap"===k.coloring&&(A=[o]),u(e,t,A,M),f(T),d(T);var S=s.c2p(_[0],!0),L=s.c2p(_[_.length-1],!0),C=c.c2p(w[0],!0),O=c.c2p(w[w.length-1],!0),P=[[S,O],[L,O],[L,C],[S,C]],E=T;"constraint"===k.type&&(E=h(T,k._operation)),function(e,t,n){var r=a.ensureSingle(e,"g","contourbg").selectAll("path").data("fill"===n.coloring?[0]:[]);r.enter().append("path"),r.exit().remove(),r.attr("d","M"+t.join("L")+"Z").style("stroke","none")}(l,P,k),function(e,t,n,i){var o="fill"===i.coloring||"constraint"===i.type&&"="!==i._operation,l="M"+n.join("L")+"Z";o&&g(t,i);var s=a.ensureSingle(e,"g","contourfill").selectAll("path").data(o?t:[]);s.enter().append("path"),s.exit().remove(),s.each((function(e){var t=(e.prefixBoundary?l:"")+y(e,n);t?r.select(this).attr("d",t).style("stroke","none"):r.select(this).remove()}))}(l,E,P,k),function(e,t,o,l,s){var c=a.ensureSingle(e,"g","contourlines"),u=!1!==s.showlines,f=s.showlabels,d=u&&f,p=n.createLines(c,u||f,t),h=n.createLineClip(c,d,o,l.trace.uid),g=e.selectAll("g.contourlabels").data(f?[0]:[]);if(g.exit().remove(),g.enter().append("g").classed("contourlabels",!0),f){var v=[],y=[];a.clearLocationCache();var x=n.labelFormatter(o,l),b=i.tester.append("text").attr("data-notex",1).call(i.font,s.labelfont),_=t[0].xaxis,w=t[0].yaxis,k=_._length,T=w._length,M=_.range,A=w.range,S=a.aggNums(Math.min,null,l.x),L=a.aggNums(Math.max,null,l.x),C=a.aggNums(Math.min,null,l.y),O=a.aggNums(Math.max,null,l.y),P=Math.max(_.c2p(S,!0),0),E=Math.min(_.c2p(L,!0),k),z=Math.max(w.c2p(O,!0),0),D=Math.min(w.c2p(C,!0),T),R={};M[0]<M[1]?(R.left=P,R.right=E):(R.left=E,R.right=P),A[0]<A[1]?(R.top=z,R.bottom=D):(R.top=D,R.bottom=z),R.middle=(R.top+R.bottom)/2,R.center=(R.left+R.right)/2,v.push([[R.left,R.top],[R.right,R.top],[R.right,R.bottom],[R.left,R.bottom]]);var I=Math.sqrt(k*k+T*T),N=m.LABELDISTANCE*I/Math.max(1,t.length/m.LABELINCREASE);p.each((function(e){var t=n.calcTextOpts(e.level,x,b,o);r.select(this).selectAll("path").each((function(){var e=a.getVisibleSegment(this,R,t.height/2);if(e&&!(e.len<(t.width+t.height)*m.LABELMIN))for(var r=Math.min(Math.ceil(e.len/N),m.LABELMAX),i=0;i<r;i++){var o=n.findBestTextLocation(this,e,t,y,R);if(!o)break;n.addLabelData(o,t,y,v)}}))})),b.remove(),n.drawLabels(g,y,o,h,d?v:null)}f&&!u&&p.remove()}(l,T,e,v,k),function(e,t,n,r,o){var l=r.trace,s=n._fullLayout._clips,c="clip"+l.uid,u=s.selectAll("#"+c).data(l.connectgaps?[]:[0]);if(u.enter().append("clipPath").classed("contourclip",!0).attr("id",c),u.exit().remove(),!1===l.connectgaps){var p={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:t.xaxis,yaxis:t.yaxis,x:r.x,y:r.y,z:b(r),smoothing:0};f([p]),d([p]),g([p],{type:"levels"}),a.ensureSingle(u,"path","").attr("d",(p.prefixBoundary?"M"+o.join("L")+"Z":"")+y(p,o))}else c=null;i.setClipUrl(e,c,n)}(l,t,e,v,P)}))},n.createLines=function(e,t,n){var r=n[0].smoothing,a=e.selectAll("g.contourlevel").data(t?n:[]);if(a.exit().remove(),a.enter().append("g").classed("contourlevel",!0),t){var o=a.selectAll("path.openline").data((function(e){return e.pedgepaths||e.edgepaths}));o.exit().remove(),o.enter().append("path").classed("openline",!0),o.attr("d",(function(e){return i.smoothopen(e,r)})).style("stroke-miterlimit",1).style("vector-effect","non-scaling-stroke");var l=a.selectAll("path.closedline").data((function(e){return e.ppaths||e.paths}));l.exit().remove(),l.enter().append("path").classed("closedline",!0),l.attr("d",(function(e){return i.smoothclosed(e,r)})).style("stroke-miterlimit",1).style("vector-effect","non-scaling-stroke")}return a},n.createLineClip=function(e,t,n,r){var a=t?"clipline"+r:null,o=n._fullLayout._clips.selectAll("#"+a).data(t?[0]:[]);return o.exit().remove(),o.enter().append("clipPath").classed("contourlineclip",!0).attr("id",a),i.setClipUrl(e,a,n),o},n.labelFormatter=function(e,t){var n=e._fullLayout,r=t.trace,a=r.contours,i={type:"linear",_id:"ycontour",showexponent:"all",exponentformat:"B"};if(a.labelformat)i.tickformat=a.labelformat,c(i,n);else{var l=o.extractOpts(r);if(l&&l.colorbar&&l.colorbar._axis)i=l.colorbar._axis;else{if("constraint"===a.type){var u=a.value;Array.isArray(u)?i.range=[u[0],u[u.length-1]]:i.range=[u,u]}else i.range=[a.start,a.end],i.nticks=(a.end-a.start)/a.size;i.range[0]===i.range[1]&&(i.range[1]+=i.range[0]||1),i.nticks||(i.nticks=1e3),c(i,n),s.prepTicks(i),i._tmin=null,i._tmax=null}}return function(e){return s.tickText(i,e).text}},n.calcTextOpts=function(e,t,n,r){var a=t(e);n.text(a).call(l.convertToTspans,r);var o=n.node(),s=i.bBox(o,!0);return{text:a,width:s.width,height:s.height,fontSize:+o.style["font-size"].replace("px",""),level:e,dy:(s.top+s.bottom)/2}},n.findBestTextLocation=function(e,t,n,r,i){var o,l,s,c,u,f=n.width;t.isClosed?(l=t.len/v.INITIALSEARCHPOINTS,o=t.min+l/2,s=t.max):(l=(t.len-f)/(v.INITIALSEARCHPOINTS+1),o=t.min+l+f/2,s=t.max-(l+f)/2);for(var d=1/0,p=0;p<v.ITERATIONS;p++){for(var h=o;h<s;h+=l){var g=a.getTextLocation(e,t.total,h,f),m=x(g,n,r,i);m<d&&(d=m,u=g,c=h)}if(d>2*v.MAXCOST)break;p&&(l/=2),s=(o=c-l/2)+1.5*l}if(d<=v.MAXCOST)return u},n.addLabelData=function(e,t,n,r){var a=t.fontSize,i=t.width+a/3,o=Math.max(0,t.height-a/3),l=e.x,s=e.y,c=e.theta,u=Math.sin(c),f=Math.cos(c),d=function(e,t){return[l+e*f-t*u,s+e*u+t*f]},p=[d(-i/2,-o/2),d(-i/2,o/2),d(i/2,o/2),d(i/2,-o/2)];n.push({text:t.text,x:l,y:s,dy:t.dy,theta:c,level:t.level,width:i,height:o}),r.push(p)},n.drawLabels=function(e,t,n,i,o){var s=e.selectAll("text").data(t,(function(e){return e.text+","+e.x+","+e.y+","+e.theta}));if(s.exit().remove(),s.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each((function(e){var t=e.x+Math.sin(e.theta)*e.dy,a=e.y-Math.cos(e.theta)*e.dy;r.select(this).text(e.text).attr({x:t,y:a,transform:"rotate("+180*e.theta/Math.PI+" "+t+" "+a+")"}).call(l.convertToTspans,n)})),o){for(var c="",u=0;u<o.length;u++)c+="M"+o[u].join("L")+"Z";a.ensureSingle(i,"path","").attr("d",c)}}},{"../../components/colorscale":64,"../../components/drawing":74,"../../lib":178,"../../lib/svg_text_utils":199,"../../plots/cartesian/axes":222,"../../plots/cartesian/set_convert":242,"../heatmap/plot":341,"./close_boundaries":310,"./constants":312,"./convert_to_constraints":316,"./empty_pathinfo":318,"./find_all_paths":320,"./make_crossings":325,d3:16}],327:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../lib");function i(e,t,n){var a={type:"linear",range:[e,t]};return r.autoTicks(a,(t-e)/(n||15)),a}t.exports=function(e,t){var n=e.contours;if(e.autocontour){var o=e.zmin,l=e.zmax;(e.zauto||void 0===o)&&(o=a.aggNums(Math.min,null,t)),(e.zauto||void 0===l)&&(l=a.aggNums(Math.max,null,t));var s=i(o,l,e.ncontours);n.size=s.dtick,n.start=r.tickFirst(s),s.range.reverse(),n.end=r.tickFirst(s),n.start===o&&(n.start+=n.size),n.end===l&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),e._input.contours||(e._input.contours={}),a.extendFlat(e._input.contours,{start:n.start,end:n.end,size:n.size}),e._input.autocontour=!0}else if("constraint"!==n.type){var c,u=n.start,f=n.end,d=e._input.contours;u>f&&(n.start=d.start=f,f=n.end=d.end=u,u=n.start),n.size>0||(c=u===f?1:i(u,f,e.ncontours).dtick,d.size=n.size=c)}}},{"../../lib":178,"../../plots/cartesian/axes":222}],328:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/drawing"),i=e("../heatmap/style"),o=e("./make_color_map");t.exports=function(e){var t=r.select(e).selectAll("g.contour");t.style("opacity",(function(e){return e[0].trace.opacity})),t.each((function(e){var t=r.select(this),n=e[0].trace,i=n.contours,l=n.line,s=i.size||1,c=i.start,u="constraint"===i.type,f=!u&&"lines"===i.coloring,d=!u&&"fill"===i.coloring,p=f||d?o(n):null;t.selectAll("g.contourlevel").each((function(e){r.select(this).selectAll("path").call(a.lineGroupStyle,l.width,f?p(e.level):l.color,l.dash)}));var h=i.labelfont;if(t.selectAll("g.contourlabels text").each((function(e){a.font(r.select(this),{family:h.family,size:h.size,color:h.color||(f?p(e.level):l.color)})})),u)t.selectAll("g.contourfill path").style("fill",n.fillcolor);else if(d){var g;t.selectAll("g.contourfill path").style("fill",(function(e){return void 0===g&&(g=e.level),p(e.level+.5*s)})),void 0===g&&(g=c),t.selectAll("g.contourbg path").style("fill",p(g-.5*s))}})),i(e)}},{"../../components/drawing":74,"../heatmap/style":342,"./make_color_map":324,d3:16}],329:[function(e,t,n){"use strict";var r=e("../../components/colorscale/defaults"),a=e("./label_defaults");t.exports=function(e,t,n,i,o){var l,s=n("contours.coloring"),c="";"fill"===s&&(l=n("contours.showlines")),!1!==l&&("lines"!==s&&(c=n("line.color","#000")),n("line.width",.5),n("line.dash")),"none"!==s&&(!0!==e.showlegend&&(t.showlegend=!1),t._dfltShowLegend=!1,r(e,t,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),a(n,i,c,o)}},{"../../components/colorscale/defaults":62,"./label_defaults":323}],330:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),a=e("../../plots/attributes"),i=e("../../plots/template_attributes").hovertemplateAttrs,o=e("../../components/colorscale/attributes"),l=(e("../../constants/docs").FORMAT_LINK,e("../../lib/extend").extendFlat);t.exports=l({z:{valType:"data_array",editType:"calc"},x:l({},r.x,{impliedEdits:{xtype:"array"}}),x0:l({},r.x0,{impliedEdits:{xtype:"scaled"}}),dx:l({},r.dx,{impliedEdits:{xtype:"scaled"}}),y:l({},r.y,{impliedEdits:{ytype:"array"}}),y0:l({},r.y0,{impliedEdits:{ytype:"scaled"}}),dy:l({},r.dy,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},zhoverformat:{valType:"string",dflt:"",editType:"none"},hovertemplate:i(),showlegend:l({},a.showlegend,{dflt:!1})},{transforms:void 0},o("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":59,"../../constants/docs":155,"../../lib/extend":173,"../../plots/attributes":219,"../../plots/template_attributes":264,"../scatter/attributes":389}],331:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("../histogram2d/calc"),l=e("../../components/colorscale/calc"),s=e("./convert_column_xyz"),c=e("./clean_2d_array"),u=e("./interp2d"),f=e("./find_empties"),d=e("./make_bound_array");t.exports=function(e,t){var n,p,h,g,m,v,y,x,b,_=i.getFromId(e,t.xaxis||"x"),w=i.getFromId(e,t.yaxis||"y"),k=r.traceIs(t,"contour"),T=r.traceIs(t,"histogram"),M=r.traceIs(t,"gl2d"),A=k?"best":t.zsmooth;if(_._minDtick=0,w._minDtick=0,T)n=(b=o(e,t)).x,p=b.x0,h=b.dx,g=b.y,m=b.y0,v=b.dy,y=b.z;else{var S=t.z;a.isArray1D(S)?(s(t,_,w,"x","y",["z"]),n=t._x,g=t._y,S=t._z):(n=t._x=t.x?_.makeCalcdata(t,"x"):[],g=t._y=t.y?w.makeCalcdata(t,"y"):[]),p=t.x0,h=t.dx,m=t.y0,v=t.dy,y=c(S,t,_,w),(k||t.connectgaps)&&(t._emptypoints=f(y),u(y,t._emptypoints))}function L(e){A=t._input.zsmooth=t.zsmooth=!1,a.warn('cannot use zsmooth: "fast": '+e)}if("fast"===A)if("log"===_.type||"log"===w.type)L("log axis found");else if(!T){if(n.length){var C=(n[n.length-1]-n[0])/(n.length-1),O=Math.abs(C/100);for(x=0;x<n.length-1;x++)if(Math.abs(n[x+1]-n[x]-C)>O){L("x scale is not linear");break}}if(g.length&&"fast"===A){var P=(g[g.length-1]-g[0])/(g.length-1),E=Math.abs(P/100);for(x=0;x<g.length-1;x++)if(Math.abs(g[x+1]-g[x]-P)>E){L("y scale is not linear");break}}}var z=a.maxRowLength(y),D="scaled"===t.xtype?"":n,R=d(t,D,p,h,z,_),I="scaled"===t.ytype?"":g,N=d(t,I,m,v,y.length,w);M||(t._extremes[_._id]=i.findExtremes(_,R),t._extremes[w._id]=i.findExtremes(w,N));var F={x:R,y:N,z:y,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(D&&D.length===R.length-1&&(F.xCenter=D),I&&I.length===N.length-1&&(F.yCenter=I),T&&(F.xRanges=b.xRanges,F.yRanges=b.yRanges,F.pts=b.pts),k||l(e,t,{vals:y,cLetter:"z"}),k&&t.contours&&"heatmap"===t.contours.coloring){var B={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};F.xfill=d(B,D,p,h,z,_),F.yfill=d(B,I,m,v,y.length,w)}return[F]}},{"../../components/colorscale/calc":60,"../../lib":178,"../../plots/cartesian/axes":222,"../../registry":269,"../histogram2d/calc":359,"./clean_2d_array":332,"./convert_column_xyz":334,"./find_empties":336,"./interp2d":339,"./make_bound_array":340}],332:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),i=e("../../constants/numerical").BADNUM;t.exports=function(e,t,n,o){var l,s,c,u,f,d;function p(e){if(r(e))return+e}if(t&&t.transpose){for(l=0,f=0;f<e.length;f++)l=Math.max(l,e[f].length);if(0===l)return!1;c=function(e){return e.length},u=function(e,t,n){return(e[n]||[])[t]}}else l=e.length,c=function(e,t){return e[t].length},u=function(e,t,n){return(e[t]||[])[n]};var h=function(e,t,n){return t===i||n===i?i:u(e,t,n)};function g(e){if(t&&"carpet"!==t.type&&"contourcarpet"!==t.type&&e&&"category"===e.type&&t["_"+e._id.charAt(0)].length){var n=e._id.charAt(0),r={},o=t["_"+n+"CategoryMap"]||t[n];for(f=0;f<o.length;f++)r[o[f]]=f;return function(t){var n=r[e._categories[t]];return n+1?n:i}}return a.identity}var m=g(n),v=g(o);o&&"category"===o.type&&(l=o._categories.length);var y=new Array(l);for(f=0;f<l;f++)for(s=n&&"category"===n.type?n._categories.length:c(e,f),y[f]=new Array(s),d=0;d<s;d++)y[f][d]=p(h(e,v(f),m(d)));return y}},{"../../constants/numerical":158,"../../lib":178,"fast-isnumeric":18}],333:[function(e,t,n){"use strict";t.exports={min:"zmin",max:"zmax"}},{}],334:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../constants/numerical").BADNUM;t.exports=function(e,t,n,i,o,l){var s,c,u,f,d=e._length,p=t.makeCalcdata(e,i),h=n.makeCalcdata(e,o),g=e.text,m=void 0!==g&&r.isArray1D(g),v=e.hovertext,y=void 0!==v&&r.isArray1D(v),x=r.distinctVals(p),b=x.vals,_=r.distinctVals(h),w=_.vals,k=[];for(s=0;s<l.length;s++)k[s]=r.init2dArray(w.length,b.length);m&&(u=r.init2dArray(w.length,b.length)),y&&(f=r.init2dArray(w.length,b.length));var T=r.init2dArray(w.length,b.length);for(s=0;s<d;s++)if(p[s]!==a&&h[s]!==a){var M=r.findBin(p[s]+x.minDiff/2,b),A=r.findBin(h[s]+_.minDiff/2,w);for(c=0;c<l.length;c++){var S=e[l[c]];k[c][A][M]=S[s],T[A][M]=s}m&&(u[A][M]=g[s]),y&&(f[A][M]=v[s])}for(e["_"+i]=b,e["_"+o]=w,c=0;c<l.length;c++)e["_"+l[c]]=k[c];m&&(e._text=u),y&&(e._hovertext=f),t&&"category"===t.type&&(e["_"+i+"CategoryMap"]=b.map((function(e){return t._categories[e]}))),n&&"category"===n.type&&(e["_"+o+"CategoryMap"]=w.map((function(e){return n._categories[e]}))),e._after2before=T}},{"../../constants/numerical":158,"../../lib":178}],335:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./xyz_defaults"),i=e("./style_defaults"),o=e("../../components/colorscale/defaults"),l=e("./attributes");t.exports=function(e,t,n,s){function c(n,a){return r.coerce(e,t,l,n,a)}a(e,t,c,s)?(c("text"),c("hovertext"),c("hovertemplate"),i(e,t,c,s),c("hoverongaps"),c("connectgaps",r.isArray1D(t.z)&&!1!==t.zsmooth),o(e,t,s,c,{prefix:"",cLetter:"z"})):t.visible=!1}},{"../../components/colorscale/defaults":62,"../../lib":178,"./attributes":330,"./style_defaults":343,"./xyz_defaults":344}],336:[function(e,t,n){"use strict";var r=e("../../lib").maxRowLength;t.exports=function(e){var t,n,a,i,o,l,s,c,u=[],f={},d=[],p=e[0],h=[],g=[0,0,0],m=r(e);for(n=0;n<e.length;n++)for(t=h,h=p,p=e[n+1]||[],a=0;a<m;a++)void 0===h[a]&&((l=(void 0!==h[a-1]?1:0)+(void 0!==h[a+1]?1:0)+(void 0!==t[a]?1:0)+(void 0!==p[a]?1:0))?(0===n&&l++,0===a&&l++,n===e.length-1&&l++,a===h.length-1&&l++,l<4&&(f[[n,a]]=[n,a,l]),u.push([n,a,l])):d.push([n,a]));for(;d.length;){for(s={},c=!1,o=d.length-1;o>=0;o--)(l=((f[[(n=(i=d[o])[0])-1,a=i[1]]]||g)[2]+(f[[n+1,a]]||g)[2]+(f[[n,a-1]]||g)[2]+(f[[n,a+1]]||g)[2])/20)&&(s[i]=[n,a,l],d.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(i in s)f[i]=s[i],u.push(s[i])}return u.sort((function(e,t){return t[2]-e[2]}))}},{"../../lib":178}],337:[function(e,t,n){"use strict";var r=e("../../components/fx"),a=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("../../components/colorscale").extractOpts;t.exports=function(e,t,n,l,s,c){var u,f,d,p,h=e.cd[0],g=h.trace,m=e.xa,v=e.ya,y=h.x,x=h.y,b=h.z,_=h.xCenter,w=h.yCenter,k=h.zmask,T=g.zhoverformat,M=y,A=x;if(!1!==e.index){try{d=Math.round(e.index[1]),p=Math.round(e.index[0])}catch(t){return void a.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(d<0||d>=b[0].length||p<0||p>b.length)return}else{if(r.inbox(t-y[0],t-y[y.length-1],0)>0||r.inbox(n-x[0],n-x[x.length-1],0)>0)return;if(c){var S;for(M=[2*y[0]-y[1]],S=1;S<y.length;S++)M.push((y[S]+y[S-1])/2);for(M.push([2*y[y.length-1]-y[y.length-2]]),A=[2*x[0]-x[1]],S=1;S<x.length;S++)A.push((x[S]+x[S-1])/2);A.push([2*x[x.length-1]-x[x.length-2]])}d=Math.max(0,Math.min(M.length-2,a.findBin(t,M))),p=Math.max(0,Math.min(A.length-2,a.findBin(n,A)))}var L=m.c2p(y[d]),C=m.c2p(y[d+1]),O=v.c2p(x[p]),P=v.c2p(x[p+1]);c?(C=L,u=y[d],P=O,f=x[p]):(u=_?_[d]:(y[d]+y[d+1])/2,f=w?w[p]:(x[p]+x[p+1])/2,m&&"category"===m.type&&(u=y[d]),v&&"category"===v.type&&(f=x[p]),g.zsmooth&&(L=C=m.c2p(u),O=P=v.c2p(f)));var E=b[p][d];if(k&&!k[p][d]&&(E=void 0),void 0!==E||g.hoverongaps){var z;Array.isArray(h.hovertext)&&Array.isArray(h.hovertext[p])?z=h.hovertext[p][d]:Array.isArray(h.text)&&Array.isArray(h.text[p])&&(z=h.text[p][d]);var D=o(g),R={type:"linear",range:[D.min,D.max],hoverformat:T,_separators:m._separators,_numFormat:m._numFormat},I=i.tickText(R,E,"hover").text;return[a.extendFlat(e,{index:g._after2before?g._after2before[p][d]:[p,d],distance:e.maxHoverDistance,spikeDistance:e.maxSpikeDistance,x0:L,x1:C,y0:O,y1:P,xLabelVal:u,yLabelVal:f,zLabelVal:E,zLabel:I,text:z})]}}},{"../../components/colorscale":64,"../../components/fx":92,"../../lib":178,"../../plots/cartesian/axes":222}],338:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),colorbar:e("./colorbar"),style:e("./style"),hoverPoints:e("./hover"),moduleType:"trace",name:"heatmap",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}},{"../../plots/cartesian":235,"./attributes":330,"./calc":331,"./colorbar":333,"./defaults":335,"./hover":337,"./plot":341,"./style":342}],339:[function(e,t,n){"use strict";var r=e("../../lib"),a=[[-1,0],[1,0],[0,-1],[0,1]];function i(e){return.5-.25*Math.min(1,.5*e)}function o(e,t,n){var r,i,o,l,s,c,u,f,d,p,h,g,m,v=0;for(l=0;l<t.length;l++){for(i=(r=t[l])[0],o=r[1],h=e[i][o],p=0,d=0,s=0;s<4;s++)(u=e[i+(c=a[s])[0]])&&void 0!==(f=u[o+c[1]])&&(0===p?g=m=f:(g=Math.min(g,f),m=Math.max(m,f)),d++,p+=f);if(0===d)throw"iterateInterp2d order is wrong: no defined neighbors";e[i][o]=p/d,void 0===h?d<4&&(v=1):(e[i][o]=(1+n)*e[i][o]-n*h,m>g&&(v=Math.max(v,Math.abs(e[i][o]-h)/(m-g))))}return v}t.exports=function(e,t){var n,a=1;for(o(e,t),n=0;n<t.length&&!(t[n][2]<4);n++);for(t=t.slice(n),n=0;n<100&&a>.01;n++)a=o(e,t,i(a));return a>.01&&r.log("interp2d didn't converge quickly",a),e}},{"../../lib":178}],340:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,n,i,o,l){var s,c,u,f=[],d=r.traceIs(e,"contour"),p=r.traceIs(e,"histogram"),h=r.traceIs(e,"gl2d");if(a(t)&&t.length>1&&!p&&"category"!==l.type){var g=t.length;if(!(g<=o))return d?t.slice(0,o):t.slice(0,o+1);if(d||h)f=t.slice(0,o);else if(1===o)f=[t[0]-.5,t[0]+.5];else{for(f=[1.5*t[0]-.5*t[1]],u=1;u<g;u++)f.push(.5*(t[u-1]+t[u]));f.push(1.5*t[g-1]-.5*t[g-2])}if(g<o){var m=f[f.length-1],v=m-f[f.length-2];for(u=g;u<o;u++)m+=v,f.push(m)}}else{var y=e[l._id.charAt(0)+"calendar"];for(s=p?l.r2c(n,0,y):a(t)&&1===t.length?t[0]:void 0===n?0:("log"===l.type?l.d2c:l.r2c)(n,0,y),c=i||1,u=d||h?0:-.5;u<o;u++)f.push(s+c*u)}return f}},{"../../lib":178,"../../registry":269}],341:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),i=e("../../registry"),o=e("../../lib"),l=e("../../components/colorscale").makeColorScaleFuncFromTrace,s=e("../../constants/xmlns_namespaces");function c(e,t){var n=t.length-2,r=o.constrain(o.findBin(e,t),0,n),a=t[r],i=t[r+1],l=o.constrain(r+(e-a)/(i-a)-.5,0,n),s=Math.round(l),c=Math.abs(l-s);return l&&l!==n&&c?{bin0:s,frac:c,bin1:Math.round(s+c/(l-s))}:{bin0:s,bin1:s,frac:0}}function u(e,t){var n=t.length-1,r=o.constrain(o.findBin(e,t),0,n),a=t[r],i=(e-a)/(t[r+1]-a)||0;return i<=0?{bin0:r,bin1:r,frac:0}:i<.5?{bin0:r,bin1:r+1,frac:i}:{bin0:r+1,bin1:r,frac:1-i}}function f(e,t,n){e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=Math.round(255*n[3])}t.exports=function(e,t,n,d){var p=t.xaxis,h=t.yaxis;o.makeTraceGroups(d,n,"hm").each((function(t){var n,d,g,m,v,y,x=r.select(this),b=t[0],_=b.trace,w=b.z,k=b.x,T=b.y,M=b.xCenter,A=b.yCenter,S=i.traceIs(_,"contour"),L=S?"best":_.zsmooth,C=w.length,O=o.maxRowLength(w),P=!1,E=!1;for(y=0;void 0===n&&y<k.length-1;)n=p.c2p(k[y]),y++;for(y=k.length-1;void 0===d&&y>0;)d=p.c2p(k[y]),y--;for(d<n&&(g=d,d=n,n=g,P=!0),y=0;void 0===m&&y<T.length-1;)m=h.c2p(T[y]),y++;for(y=T.length-1;void 0===v&&y>0;)v=h.c2p(T[y]),y--;if(v<m&&(g=m,m=v,v=g,E=!0),S&&(M=k,A=T,k=b.xfill,T=b.yfill),"fast"!==L){var z="best"===L?0:.5;n=Math.max(-z*p._length,n),d=Math.min((1+z)*p._length,d),m=Math.max(-z*h._length,m),v=Math.min((1+z)*h._length,v)}var D=Math.round(d-n),R=Math.round(v-m);if(D<=0||R<=0)x.selectAll("image").data([]).exit().remove();else{var I,N;"fast"===L?(I=O,N=C):(I=D,N=R);var F=document.createElement("canvas");F.width=I,F.height=N;var B,j,H=F.getContext("2d"),q=l(_,{noNumericCheck:!0,returnArray:!0});"fast"===L?(B=P?function(e){return O-1-e}:o.identity,j=E?function(e){return C-1-e}:o.identity):(B=function(e){return o.constrain(Math.round(p.c2p(k[e])-n),0,D)},j=function(e){return o.constrain(Math.round(h.c2p(T[e])-m),0,R)});var V,U,G,Z,W,Y=j(0),X=[Y,Y],$=P?0:1,Q=E?0:1,K=0,J=0,ee=0,te=0;if(L){var ne,re=0;try{ne=new Uint8Array(D*R*4)}catch(e){ne=new Array(D*R*4)}if("best"===L){var ae,ie,oe,le=M||k,se=A||T,ce=new Array(le.length),ue=new Array(se.length),fe=new Array(D),de=M?u:c,pe=A?u:c;for(y=0;y<le.length;y++)ce[y]=Math.round(p.c2p(le[y])-n);for(y=0;y<se.length;y++)ue[y]=Math.round(h.c2p(se[y])-m);for(y=0;y<D;y++)fe[y]=de(y,ce);for(U=0;U<R;U++)for(ie=w[(ae=pe(U,ue)).bin0],oe=w[ae.bin1],y=0;y<D;y++,re+=4)f(ne,re,W=Te(ie,oe,fe[y],ae))}else for(U=0;U<C;U++)for(Z=w[U],X=j(U),y=0;y<D;y++)W=ke(Z[y],1),f(ne,re=4*(X*D+B(y)),W);var he=H.createImageData(D,R);try{he.data.set(ne)}catch(e){var ge=he.data,me=ge.length;for(U=0;U<me;U++)ge[U]=ne[U]}H.putImageData(he,0,0)}else{var ve=_.xgap,ye=_.ygap,xe=Math.floor(ve/2),be=Math.floor(ye/2);for(U=0;U<C;U++)if(Z=w[U],X.reverse(),X[Q]=j(U+1),X[0]!==X[1]&&void 0!==X[0]&&void 0!==X[1])for(V=[G=B(0),G],y=0;y<O;y++)V.reverse(),V[$]=B(y+1),V[0]!==V[1]&&void 0!==V[0]&&void 0!==V[1]&&(W=ke(Z[y],(V[1]-V[0])*(X[1]-X[0])),H.fillStyle="rgba("+W.join(",")+")",H.fillRect(V[0]+xe,X[0]+be,V[1]-V[0]-ve,X[1]-X[0]-ye))}J=Math.round(J/K),ee=Math.round(ee/K),te=Math.round(te/K);var _e=a("rgb("+J+","+ee+","+te+")");e._hmpixcount=(e._hmpixcount||0)+K,e._hmlumcount=(e._hmlumcount||0)+K*_e.getLuminance();var we=x.selectAll("image").data(t);we.enter().append("svg:image").attr({xmlns:s.svg,preserveAspectRatio:"none"}),we.attr({height:R,width:D,x:n,y:m,"xlink:href":F.toDataURL("image/png")})}function ke(e,t){if(void 0!==e){var n=q(e);return n[0]=Math.round(n[0]),n[1]=Math.round(n[1]),n[2]=Math.round(n[2]),K+=t,J+=n[0]*t,ee+=n[1]*t,te+=n[2]*t,n}return[0,0,0,0]}function Te(e,t,n,r){var a=e[n.bin0];if(void 0===a)return ke(void 0,1);var i,o=e[n.bin1],l=t[n.bin0],s=t[n.bin1],c=o-a||0,u=l-a||0;return i=void 0===o?void 0===s?0:void 0===l?2*(s-a):2*(2*s-l-a)/3:void 0===s?void 0===l?0:2*(2*a-o-l)/3:void 0===l?2*(2*s-o-a)/3:s+a-o-l,ke(a+n.frac*c+r.frac*(u+n.frac*i))}}))}},{"../../components/colorscale":64,"../../constants/xmlns_namespaces":159,"../../lib":178,"../../registry":269,d3:16,tinycolor2:35}],342:[function(e,t,n){"use strict";var r=e("d3");t.exports=function(e){r.select(e).selectAll(".hm image").style("opacity",(function(e){return e.trace.opacity}))}},{d3:16}],343:[function(e,t,n){"use strict";t.exports=function(e,t,n){!1===n("zsmooth")&&(n("xgap"),n("ygap")),n("zhoverformat")}},{}],344:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),i=e("../../registry");function o(e,t){var n=t(e);return"scaled"===(n?t(e+"type","array"):"scaled")&&(t(e+"0"),t("d"+e)),n}t.exports=function(e,t,n,l,s,c){var u,f,d=n("z");if(s=s||"x",c=c||"y",void 0===d||!d.length)return 0;if(a.isArray1D(e.z)){u=n(s),f=n(c);var p=a.minRowLength(u),h=a.minRowLength(f);if(0===p||0===h)return 0;t._length=Math.min(p,h,d.length)}else{if(u=o(s,n),f=o(c,n),!function(e){for(var t,n=!0,i=!1,o=!1,l=0;l<e.length;l++){if(t=e[l],!a.isArrayOrTypedArray(t)){n=!1;break}t.length>0&&(i=!0);for(var s=0;s<t.length;s++)if(r(t[s])){o=!0;break}}return n&&i&&o}(d))return 0;n("transpose"),t._length=null}return i.getComponentMethod("calendars","handleTraceDefaults")(e,t,[s,c],l),!0}},{"../../lib":178,"../../registry":269,"fast-isnumeric":18}],345:[function(e,t,n){"use strict";var r=e("../bar/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,i=e("./bin_attributes"),o=e("./constants"),l=e("../../lib/extend").extendFlat;t.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},text:l({},r.text,{}),hovertext:l({},r.hovertext,{}),orientation:r.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:i("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:i("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:a({},{keys:o.eventDataKeys}),marker:r.marker,offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup,selected:r.selected,unselected:r.unselected,_deprecated:{bardir:r._deprecated.bardir}}},{"../../lib/extend":173,"../../plots/template_attributes":264,"../bar/attributes":279,"./bin_attributes":347,"./constants":351}],346:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n=e.length,r=0,a=0;a<n;a++)t[a]?(e[a]/=t[a],r+=e[a]):e[a]=null;return r}},{}],347:[function(e,t,n){"use strict";t.exports=function(e,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}},{}],348:[function(e,t,n){"use strict";var r=e("fast-isnumeric");t.exports={count:function(e,t,n){return n[e]++,1},sum:function(e,t,n,a){var i=a[t];return r(i)?(i=Number(i),n[e]+=i,i):0},avg:function(e,t,n,a,i){var o=a[t];return r(o)&&(o=Number(o),n[e]+=o,i[e]++),0},min:function(e,t,n,a){var i=a[t];if(r(i)){if(i=Number(i),!r(n[e]))return n[e]=i,i;if(n[e]>i){var o=i-n[e];return n[e]=i,o}}return 0},max:function(e,t,n,a){var i=a[t];if(r(i)){if(i=Number(i),!r(n[e]))return n[e]=i,i;if(n[e]<i){var o=i-n[e];return n[e]=i,o}}return 0}}},{"fast-isnumeric":18}],349:[function(e,t,n){"use strict";var r=e("../../constants/numerical"),a=r.ONEAVGYEAR,i=r.ONEAVGMONTH,o=r.ONEDAY,l=r.ONEHOUR,s=r.ONEMIN,c=r.ONESEC,u=e("../../plots/cartesian/axes").tickIncrement;function f(e,t,n,r){if(e*t<=0)return 1/0;for(var a=Math.abs(t-e),i="date"===n.type,o=d(a,i),l=0;l<10;l++){var s=d(80*o,i);if(o===s)break;if(!p(s,e,t,i,n,r))break;o=s}return o}function d(e,t){return t&&e>c?e>o?e>1.1*a?a:e>1.1*i?i:o:e>l?l:e>s?s:c:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function p(e,t,n,r,i,l){if(r&&e>o){var s=h(t,i,l),c=h(n,i,l),u=e===a?0:1;return s[u]!==c[u]}return Math.floor(n/e)-Math.floor(t/e)>.1}function h(e,t,n){var r=t.c2d(e,a,n).split("-");return""===r[0]&&(r.unshift(),r[0]="-"+r[0]),r}t.exports=function(e,t,n,r,i){var l,s,c=-1.1*t,d=-.1*t,p=e-d,h=n[0],g=n[1],m=Math.min(f(h+d,h+p,r,i),f(g+d,g+p,r,i)),v=Math.min(f(h+c,h+d,r,i),f(g+c,g+d,r,i));if(m>v&&v<Math.abs(g-h)/4e3?(l=m,s=!1):(l=Math.min(m,v),s=!0),"date"===r.type&&l>o){var y=l===a?1:6,x=l===a?"M12":"M1";return function(t,n){var o=r.c2d(t,a,i),l=o.indexOf("-",y);l>0&&(o=o.substr(0,l));var c=r.d2c(o,0,i);if(c<t){var f=u(c,x,!1,i);(c+f)/2<t+e&&(c=f)}return n&&s?u(c,x,!0,i):c}}return function(t,n){var r=l*Math.round(t/l);return r+l/10<t&&r+.9*l<t+e&&(r+=l),n&&s&&(r-=l),r}}},{"../../constants/numerical":158,"../../plots/cartesian/axes":222}],350:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),i=e("../../registry"),o=e("../../plots/cartesian/axes"),l=e("../bar/arrays_to_calcdata"),s=e("./bin_functions"),c=e("./norm_functions"),u=e("./average"),f=e("./bin_label_vals");function d(e,t,n,l,s){var c,u,f,p,h,g,m,v=l+"bins",y=e._fullLayout,x=t["_"+l+"bingroup"],b=y._histogramBinOpts[x],_="overlay"===y.barmode,w=function(e){return n.r2c(e,0,p)},k=function(e){return n.c2r(e,0,p)},T="date"===n.type?function(e){return e||0===e?a.cleanDate(e,null,p):null}:function(e){return r(e)?Number(e):null};function M(e,t,n){t[e+"Found"]?(t[e]=T(t[e]),null===t[e]&&(t[e]=n[e])):(g[e]=t[e]=n[e],a.nestedProperty(u[0],v+"."+e).set(n[e]))}if(t["_"+l+"autoBinFinished"])delete t["_"+l+"autoBinFinished"];else{u=b.traces;var A=[],S=!0,L=!1,C=!1;for(c=0;c<u.length;c++)if((f=u[c]).visible){var O=b.dirs[c];h=f["_"+O+"pos0"]=n.makeCalcdata(f,O),A=a.concat(A,h),delete f["_"+l+"autoBinFinished"],!0===t.visible&&(S?S=!1:(delete f._autoBin,f["_"+l+"autoBinFinished"]=1),i.traceIs(f,"2dMap")&&(L=!0),"histogram2dcontour"===f.type&&(C=!0))}p=u[0][l+"calendar"];var P=o.autoBin(A,n,b.nbins,L,p,b.sizeFound&&b.size),E=u[0]._autoBin={};if(g=E[b.dirs[0]]={},C&&(b.size||(P.start=k(o.tickIncrement(w(P.start),P.size,!0,p))),void 0===b.end&&(P.end=k(o.tickIncrement(w(P.end),P.size,!1,p)))),_&&!i.traceIs(t,"2dMap")&&0===P._dataSpan&&"category"!==n.type&&"multicategory"!==n.type){if(s)return[P,h,!0];P=function(e,t,n,r,i){var o,l,s,c=e._fullLayout,u=function(e,t){for(var n=t.xaxis,r=t.yaxis,a=t.orientation,i=[],o=e._fullData,l=0;l<o.length;l++){var s=o[l];"histogram"===s.type&&!0===s.visible&&s.orientation===a&&s.xaxis===n&&s.yaxis===r&&i.push(s)}return i}(e,t),f=!1,p=1/0,h=[t];for(o=0;o<u.length;o++)if((l=u[o])===t)f=!0;else if(f){var g=d(e,l,n,r,!0),m=g[0],v=g[2];l["_"+r+"autoBinFinished"]=1,l["_"+r+"pos0"]=g[1],v?h.push(l):p=Math.min(p,m.size)}else s=c._histogramBinOpts[l["_"+r+"bingroup"]],p=Math.min(p,s.size||l[i].size);var y=new Array(h.length);for(o=0;o<h.length;o++)for(var x=h[o]["_"+r+"pos0"],b=0;b<x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}for(isFinite(p)||(p=a.distinctVals(y).minDiff),o=0;o<h.length;o++){var _=(l=h[o])[r+"calendar"],w={start:n.c2r(y[o]-p/2,0,_),end:n.c2r(y[o]+p/2,0,_),size:p};l._input[i]=l[i]=w,(s=c._histogramBinOpts[l["_"+r+"bingroup"]])&&a.extendFlat(s,w)}return t[i]}(e,t,n,l,v)}(m=f.cumulative||{}).enabled&&"include"!==m.currentbin&&("decreasing"===m.direction?P.start=k(o.tickIncrement(w(P.start),P.size,!0,p)):P.end=k(o.tickIncrement(w(P.end),P.size,!1,p))),b.size=P.size,b.sizeFound||(g.size=P.size,a.nestedProperty(u[0],v+".size").set(P.size)),M("start",b,P),M("end",b,P)}h=t["_"+l+"pos0"],delete t["_"+l+"pos0"];var z=t._input[v]||{},D=a.extendFlat({},b),R=b.start,I=n.r2l(z.start),N=void 0!==I;if((b.startFound||N)&&I!==n.r2l(R)){var F=N?I:a.aggNums(Math.min,null,h),B={type:"category"===n.type||"multicategory"===n.type?"linear":n.type,r2l:n.r2l,dtick:b.size,tick0:R,calendar:p,range:[F,o.tickIncrement(F,b.size,!1,p)].map(n.l2r)},j=o.tickFirst(B);j>n.r2l(F)&&(j=o.tickIncrement(j,b.size,!0,p)),D.start=n.l2r(j),N||a.nestedProperty(t,v+".start").set(D.start)}var H=b.end,q=n.r2l(z.end),V=void 0!==q;if((b.endFound||V)&&q!==n.r2l(H)){var U=V?q:a.aggNums(Math.max,null,h);D.end=n.l2r(U),V||a.nestedProperty(t,v+".start").set(D.end)}var G="autobin"+l;return!1===t._input[G]&&(t._input[v]=a.extendFlat({},t[v]||{}),delete t._input[G],delete t[G]),[D,h]}t.exports={calc:function(e,t){var n,i,p,h,g=[],m=[],v=o.getFromId(e,"h"===t.orientation?t.yaxis:t.xaxis),y="h"===t.orientation?"y":"x",x={x:"y",y:"x"}[y],b=t[y+"calendar"],_=t.cumulative,w=d(e,t,v,y),k=w[0],T=w[1],M="string"==typeof k.size,A=[],S=M?A:k,L=[],C=[],O=[],P=0,E=t.histnorm,z=t.histfunc,D=-1!==E.indexOf("density");_.enabled&&D&&(E=E.replace(/ ?density$/,""),D=!1);var R,I="max"===z||"min"===z?null:0,N=s.count,F=c[E],B=!1,j=function(e){return v.r2c(e,0,b)};for(a.isArrayOrTypedArray(t[x])&&"count"!==z&&(R=t[x],B="avg"===z,N=s[z]),n=j(k.start),p=j(k.end)+(n-o.tickIncrement(n,k.size,!1,b))/1e6;n<p&&g.length<1e6&&(i=o.tickIncrement(n,k.size,!1,b),g.push((n+i)/2),m.push(I),O.push([]),A.push(n),D&&L.push(1/(i-n)),B&&C.push(0),!(i<=n));)n=i;A.push(n),M||"date"!==v.type||(S={start:j(S.start),end:j(S.end),size:S.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var H=t["_"+y+"bingroup"],q={leftGap:1/0,rightGap:1/0};H&&(e._fullLayout._roundFnOpts[H]||(e._fullLayout._roundFnOpts[H]=q),q=e._fullLayout._roundFnOpts[H]);var V,U=m.length,G=!0,Z=q.leftGap,W=q.rightGap,Y={};for(n=0;n<T.length;n++){var X=T[n];(h=a.findBin(X,S))>=0&&h<U&&(P+=N(h,n,m,R,C),G&&O[h].length&&X!==T[O[h][0]]&&(G=!1),O[h].push(n),Y[n]=h,Z=Math.min(Z,X-A[h]),W=Math.min(W,A[h+1]-X))}q.leftGap=Z,q.rightGap=W,G||(V=function(t,n){return function(){var r=e._fullLayout._roundFnOpts[H];return f(r.leftGap,r.rightGap,A,v,b)(t,n)}}),B&&(P=u(m,C)),F&&F(m,P,L),_.enabled&&function(e,t,n){var r,a,i;function o(t){i=e[t],e[t]/=2}function l(t){a=e[t],e[t]=i+a/2,i+=a}if("half"===n)if("increasing"===t)for(o(0),r=1;r<e.length;r++)l(r);else for(o(e.length-1),r=e.length-2;r>=0;r--)l(r);else if("increasing"===t){for(r=1;r<e.length;r++)e[r]+=e[r-1];"exclude"===n&&(e.unshift(0),e.pop())}else{for(r=e.length-2;r>=0;r--)e[r]+=e[r+1];"exclude"===n&&(e.push(0),e.shift())}}(m,_.direction,_.currentbin);var $=Math.min(g.length,m.length),Q=[],K=0,J=$-1;for(n=0;n<$;n++)if(m[n]){K=n;break}for(n=$-1;n>=K;n--)if(m[n]){J=n;break}for(n=K;n<=J;n++)if(r(g[n])&&r(m[n])){var ee={p:g[n],s:m[n],b:0};_.enabled||(ee.pts=O[n],G?ee.ph0=ee.ph1=O[n].length?T[O[n][0]]:g[n]:(t._computePh=!0,ee.ph0=V(A[n]),ee.ph1=V(A[n+1],!0))),Q.push(ee)}return 1===Q.length&&(Q[0].width1=o.tickIncrement(Q[0].p,k.size,!1,b)-Q[0].p),l(Q,t),a.isArrayOrTypedArray(t.selectedpoints)&&a.tagSelected(Q,t,Y),Q},calcAllAutoBins:d}},{"../../lib":178,"../../plots/cartesian/axes":222,"../../registry":269,"../bar/arrays_to_calcdata":278,"./average":346,"./bin_functions":348,"./bin_label_vals":349,"./norm_functions":357,"fast-isnumeric":18}],351:[function(e,t,n){"use strict";t.exports={eventDataKeys:["binNumber"]}},{}],352:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axis_ids"),i=e("../../registry").traceIs,o=e("../bar/defaults").handleGroupingDefaults,l=r.nestedProperty,s=a.getAxisGroup,c=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];t.exports=function(e,t){var n,f,d,p,h,g,m,v=t._histogramBinOpts={},y=[],x={},b=[];function _(e,t){return r.coerce(n._input,n,n._module.attributes,e,t)}function w(e){return"v"===e.orientation?"x":"y"}function k(e,n,i){var o=e.uid+"__"+i;n||(n=o);var l=function(e,n){return a.getFromTrace({_fullLayout:t},e,n).type}(e,i),s=e[i+"calendar"]||"",c=v[n],u=!0;c&&(l===c.axType&&s===c.calendar?(u=!1,c.traces.push(e),c.dirs.push(i)):(n=o,l!==c.axType&&r.warn(["Attempted to group the bins of trace",e.index,"set on a","type:"+l,"axis","with bins on","type:"+c.axType,"axis."].join(" ")),s!==c.calendar&&r.warn(["Attempted to group the bins of trace",e.index,"set with a",s,"calendar","with bins",c.calendar?"on a "+c.calendar+" calendar":"w/o a set calendar"].join(" ")))),u&&(v[n]={traces:[e],dirs:[i],axType:l,calendar:e[i+"calendar"]||""}),e["_"+i+"bingroup"]=n}for(h=0;h<e.length;h++)n=e[h],i(n,"histogram")&&(y.push(n),delete n._xautoBinFinished,delete n._yautoBinFinished,i(n,"2dMap")||o(n._input,n,t,_));var T=t._alignmentOpts||{};for(h=0;h<y.length;h++){if(n=y[h],d="",!i(n,"2dMap")){if(p=w(n),"group"===t.barmode&&n.alignmentgroup){var M=n[p+"axis"],A=s(t,M)+n.orientation;(T[A]||{})[n.alignmentgroup]&&(d=A)}d||"overlay"===t.barmode||(d=s(t,n.xaxis)+s(t,n.yaxis)+w(n))}d?(x[d]||(x[d]=[]),x[d].push(n)):b.push(n)}for(d in x)if(1!==(f=x[d]).length){var S=!1;for(h=0;h<f.length;h++){n=f[h],S=_("bingroup");break}for(d=S||d,h=0;h<f.length;h++){var L=(n=f[h])._input.bingroup;L&&L!==d&&r.warn(["Trace",n.index,"must match","within bingroup",d+".","Ignoring its bingroup:",L,"setting."].join(" ")),n.bingroup=d,k(n,d,w(n))}}else b.push(f[0]);for(h=0;h<b.length;h++){n=b[h];var C=_("bingroup");if(i(n,"2dMap"))for(m=0;m<2;m++){var O=_((p=u[m])+"bingroup",C?C+"__"+p:null);k(n,O,p)}else k(n,C,w(n))}for(d in v){var P=v[d];for(f=P.traces,g=0;g<c.length;g++){var E,z,D=c[g],R=D.name;if("nbins"!==R||!P.sizeFound){for(h=0;h<f.length;h++){if(n=f[h],p=P.dirs[h],E=D.aStr[p],void 0!==l(n._input,E).get()){P[R]=_(E),P[R+"Found"]=!0;break}(z=(n._autoBin||{})[p]||{})[R]&&l(n,E).set(z[R])}if("start"===R||"end"===R)for(;h<f.length;h++)(n=f[h])["_"+p+"bingroup"]&&_(E,(z=(n._autoBin||{})[p]||{})[R]);"nbins"!==R||P.sizeFound||P.nbinsFound||(n=f[0],P[R]=_(E))}}}}},{"../../lib":178,"../../plots/cartesian/axis_ids":225,"../../registry":269,"../bar/defaults":283}],353:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),i=e("../../components/color"),o=e("../bar/style_defaults"),l=e("./attributes");t.exports=function(e,t,n,s){function c(n,r){return a.coerce(e,t,l,n,r)}var u=c("x"),f=c("y");c("cumulative.enabled")&&(c("cumulative.direction"),c("cumulative.currentbin")),c("text"),c("hovertext"),c("hovertemplate");var d=c("orientation",f&&!u?"h":"v"),p="v"===d?"x":"y",h="v"===d?"y":"x",g=u&&f?Math.min(a.minRowLength(u)&&a.minRowLength(f)):a.minRowLength(t[p]||[]);if(g){t._length=g,r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],s),t[h]&&c("histfunc"),c("histnorm"),c("autobin"+p),o(e,t,c,n,s),a.coerceSelectionMarkerOpacity(t,c);var m=(t.marker.line||{}).color,v=r.getComponentMethod("errorbars","supplyDefaults");v(e,t,m||i.defaultLine,{axis:"y"}),v(e,t,m||i.defaultLine,{axis:"x",inherit:"y"})}else t.visible=!1}},{"../../components/color":52,"../../lib":178,"../../registry":269,"../bar/style_defaults":294,"./attributes":345}],354:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a){if(e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(e.z=t.zLabelVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),!(n.cumulative||{}).enabled){var i,o=Array.isArray(a)?r[0].pts[a[0]][a[1]]:r[a].pts;if(e.pointNumbers=o,e.binNumber=e.pointNumber,delete e.pointNumber,delete e.pointIndex,n._indexToPoints){i=[];for(var l=0;l<o.length;l++)i=i.concat(n._indexToPoints[o[l]])}else i=o;e.pointIndices=i}return e}},{}],355:[function(e,t,n){"use strict";var r=e("../bar/hover").hoverPoints,a=e("../../plots/cartesian/axes").hoverLabelText;t.exports=function(e,t,n,i){var o=r(e,t,n,i);if(o){var l=(e=o[0]).cd[e.index],s=e.cd[0].trace;if(!s.cumulative.enabled){var c="h"===s.orientation?"y":"x";e[c+"Label"]=a(e[c+"a"],l.ph0,l.ph1)}return o}}},{"../../plots/cartesian/axes":222,"../bar/hover":286}],356:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("../bar/layout_attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("./cross_trace_defaults"),supplyLayoutDefaults:e("../bar/layout_defaults"),calc:e("./calc").calc,crossTraceCalc:e("../bar/cross_trace_calc").crossTraceCalc,plot:e("../bar/plot").plot,layerName:"barlayer",style:e("../bar/style").style,styleOnSelect:e("../bar/style").styleOnSelect,colorbar:e("../scatter/marker_colorbar"),hoverPoints:e("./hover"),selectPoints:e("../bar/select"),eventData:e("./event_data"),moduleType:"trace",name:"histogram",basePlotModule:e("../../plots/cartesian"),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}},{"../../plots/cartesian":235,"../bar/cross_trace_calc":282,"../bar/layout_attributes":288,"../bar/layout_defaults":289,"../bar/plot":290,"../bar/select":291,"../bar/style":293,"../scatter/marker_colorbar":407,"./attributes":345,"./calc":350,"./cross_trace_defaults":352,"./defaults":353,"./event_data":354,"./hover":355}],357:[function(e,t,n){"use strict";t.exports={percent:function(e,t){for(var n=e.length,r=100/t,a=0;a<n;a++)e[a]*=r},probability:function(e,t){for(var n=e.length,r=0;r<n;r++)e[r]/=t},density:function(e,t,n,r){var a=e.length;r=r||1;for(var i=0;i<a;i++)e[i]*=n[i]*r},"probability density":function(e,t,n,r){var a=e.length;r&&(t/=r);for(var i=0;i<a;i++)e[i]*=n[i]/t}}},{}],358:[function(e,t,n){"use strict";var r=e("../histogram/attributes"),a=e("../histogram/bin_attributes"),i=e("../heatmap/attributes"),o=e("../../plots/attributes"),l=e("../../plots/template_attributes").hovertemplateAttrs,s=e("../../components/colorscale/attributes"),c=e("../../lib/extend").extendFlat;t.exports=c({x:r.x,y:r.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:r.histnorm,histfunc:r.histfunc,nbinsx:r.nbinsx,xbins:a("x"),nbinsy:r.nbinsy,ybins:a("y"),autobinx:r.autobinx,autobiny:r.autobiny,bingroup:c({},r.bingroup,{}),xbingroup:c({},r.bingroup,{}),ybingroup:c({},r.bingroup,{}),xgap:i.xgap,ygap:i.ygap,zsmooth:i.zsmooth,zhoverformat:i.zhoverformat,hovertemplate:l({},{keys:"z"}),showlegend:c({},o.showlegend,{dflt:!1})},s("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":59,"../../lib/extend":173,"../../plots/attributes":219,"../../plots/template_attributes":264,"../heatmap/attributes":330,"../histogram/attributes":345,"../histogram/bin_attributes":347}],359:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../histogram/bin_functions"),o=e("../histogram/norm_functions"),l=e("../histogram/average"),s=e("../histogram/bin_label_vals"),c=e("../histogram/calc").calcAllAutoBins;function u(e,t,n,r){var a,i=new Array(e);if(r)for(a=0;a<e;a++)i[a]=1/(t[a+1]-t[a]);else{var o=1/n;for(a=0;a<e;a++)i[a]=o}return i}function f(e,t){return{start:e(t.start),end:e(t.end),size:t.size}}function d(e,t,n,r,a,i){var o,l=e.length-1,c=new Array(l),u=s(n,r,e,a,i);for(o=0;o<l;o++){var f=(t||[])[o];c[o]=void 0===f?[u(e[o]),u(e[o+1],!0)]:[f,f]}return c}t.exports=function(e,t){var n,s,p,h,g=a.getFromId(e,t.xaxis),m=a.getFromId(e,t.yaxis),v=t.xcalendar,y=t.ycalendar,x=function(e){return g.r2c(e,0,v)},b=function(e){return m.r2c(e,0,y)},_=c(e,t,g,"x"),w=_[0],k=_[1],T=c(e,t,m,"y"),M=T[0],A=T[1],S=t._length;k.length>S&&k.splice(S,k.length-S),A.length>S&&A.splice(S,A.length-S);var L=[],C=[],O=[],P="string"==typeof w.size,E="string"==typeof M.size,z=[],D=[],R=P?z:w,I=E?D:M,N=0,F=[],B=[],j=t.histnorm,H=t.histfunc,q=-1!==j.indexOf("density"),V="max"===H||"min"===H?null:0,U=i.count,G=o[j],Z=!1,W=[],Y=[],X="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";X&&"count"!==H&&(Z="avg"===H,U=i[H]);var $=w.size,Q=x(w.start),K=x(w.end)+(Q-a.tickIncrement(Q,$,!1,v))/1e6;for(n=Q;n<K;n=a.tickIncrement(n,$,!1,v))C.push(V),z.push(n),Z&&O.push(0);z.push(n);var J,ee=C.length,te=(n-Q)/ee,ne=(J=Q+te/2,g.c2r(J,0,v)),re=M.size,ae=b(M.start),ie=b(M.end)+(ae-a.tickIncrement(ae,re,!1,y))/1e6;for(n=ae;n<ie;n=a.tickIncrement(n,re,!1,y)){L.push(C.slice()),D.push(n);var oe=new Array(ee);for(s=0;s<ee;s++)oe[s]=[];B.push(oe),Z&&F.push(O.slice())}D.push(n);var le=L.length,se=(n-ae)/le,ce=function(e){return m.c2r(e,0,y)}(ae+se/2);q&&(W=u(C.length,R,te,P),Y=u(L.length,I,se,E)),P||"date"!==g.type||(R=f(x,R)),E||"date"!==m.type||(I=f(b,I));var ue=!0,fe=!0,de=new Array(ee),pe=new Array(le),he=1/0,ge=1/0,me=1/0,ve=1/0;for(n=0;n<S;n++){var ye=k[n],xe=A[n];p=r.findBin(ye,R),h=r.findBin(xe,I),p>=0&&p<ee&&h>=0&&h<le&&(N+=U(p,n,L[h],X,F[h]),B[h][p].push(n),ue&&(void 0===de[p]?de[p]=ye:de[p]!==ye&&(ue=!1)),fe&&(void 0===pe[h]?pe[h]=xe:pe[h]!==xe&&(fe=!1)),he=Math.min(he,ye-z[p]),ge=Math.min(ge,z[p+1]-ye),me=Math.min(me,xe-D[h]),ve=Math.min(ve,D[h+1]-xe))}if(Z)for(h=0;h<le;h++)N+=l(L[h],F[h]);if(G)for(h=0;h<le;h++)G(L[h],N,W,Y[h]);return{x:k,xRanges:d(z,ue&&de,he,ge,g,v),x0:ne,dx:te,y:A,yRanges:d(D,fe&&pe,me,ve,m,y),y0:ce,dy:se,z:L,pts:B}}},{"../../lib":178,"../../plots/cartesian/axes":222,"../histogram/average":346,"../histogram/bin_functions":348,"../histogram/bin_label_vals":349,"../histogram/calc":350,"../histogram/norm_functions":357}],360:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./sample_defaults"),i=e("../heatmap/style_defaults"),o=e("../../components/colorscale/defaults"),l=e("./attributes");t.exports=function(e,t,n,s){function c(n,a){return r.coerce(e,t,l,n,a)}a(e,t,c,s),!1!==t.visible&&(i(e,t,c,s),o(e,t,s,c,{prefix:"",cLetter:"z"}),c("hovertemplate"))}},{"../../components/colorscale/defaults":62,"../../lib":178,"../heatmap/style_defaults":343,"./attributes":358,"./sample_defaults":363}],361:[function(e,t,n){"use strict";var r=e("../heatmap/hover"),a=e("../../plots/cartesian/axes").hoverLabelText;t.exports=function(e,t,n,i,o,l){var s=r(e,t,n,i,o,l);if(s){var c=(e=s[0]).index,u=c[0],f=c[1],d=e.cd[0],p=d.xRanges[f],h=d.yRanges[u];return e.xLabel=a(e.xa,p[0],p[1]),e.yLabel=a(e.ya,h[0],h[1]),s}}},{"../../plots/cartesian/axes":222,"../heatmap/hover":337}],362:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("../histogram/cross_trace_defaults"),calc:e("../heatmap/calc"),plot:e("../heatmap/plot"),layerName:"heatmaplayer",colorbar:e("../heatmap/colorbar"),style:e("../heatmap/style"),hoverPoints:e("./hover"),eventData:e("../histogram/event_data"),moduleType:"trace",name:"histogram2d",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}},{"../../plots/cartesian":235,"../heatmap/calc":331,"../heatmap/colorbar":333,"../heatmap/plot":341,"../heatmap/style":342,"../histogram/cross_trace_defaults":352,"../histogram/event_data":354,"./attributes":358,"./defaults":360,"./hover":361}],363:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib");t.exports=function(e,t,n,i){var o=n("x"),l=n("y"),s=a.minRowLength(o),c=a.minRowLength(l);s&&c?(t._length=Math.min(s,c),r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],i),(n("z")||n("marker.color"))&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")):t.visible=!1}},{"../../lib":178,"../../registry":269}],364:[function(e,t,n){"use strict";var r=e("../histogram2d/attributes"),a=e("../contour/attributes"),i=e("../../components/colorscale/attributes"),o=e("../../lib/extend").extendFlat;t.exports=o({x:r.x,y:r.y,z:r.z,marker:r.marker,histnorm:r.histnorm,histfunc:r.histfunc,nbinsx:r.nbinsx,xbins:r.xbins,nbinsy:r.nbinsy,ybins:r.ybins,autobinx:r.autobinx,autobiny:r.autobiny,bingroup:r.bingroup,xbingroup:r.xbingroup,ybingroup:r.ybingroup,autocontour:a.autocontour,ncontours:a.ncontours,contours:a.contours,line:{color:a.line.color,width:o({},a.line.width,{dflt:.5}),dash:a.line.dash,smoothing:a.line.smoothing,editType:"plot"},zhoverformat:r.zhoverformat,hovertemplate:r.hovertemplate},i("",{cLetter:"z",editTypeOverride:"calc"}))},{"../../components/colorscale/attributes":59,"../../lib/extend":173,"../contour/attributes":308,"../histogram2d/attributes":358}],365:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../histogram2d/sample_defaults"),i=e("../contour/contours_defaults"),o=e("../contour/style_defaults"),l=e("./attributes");t.exports=function(e,t,n,s){function c(n,a){return r.coerce(e,t,l,n,a)}a(e,t,c,s),!1!==t.visible&&(i(e,t,c,(function(n){return r.coerce2(e,t,l,n)})),o(e,t,c,s),c("hovertemplate"))}},{"../../lib":178,"../contour/contours_defaults":315,"../contour/style_defaults":329,"../histogram2d/sample_defaults":363,"./attributes":364}],366:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("../histogram/cross_trace_defaults"),calc:e("../contour/calc"),plot:e("../contour/plot").plot,layerName:"contourlayer",style:e("../contour/style"),colorbar:e("../contour/colorbar"),hoverPoints:e("../contour/hover"),moduleType:"trace",name:"histogram2dcontour",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}},{"../../plots/cartesian":235,"../contour/calc":309,"../contour/colorbar":311,"../contour/hover":321,"../contour/plot":326,"../contour/style":328,"../histogram/cross_trace_defaults":352,"./attributes":364,"./defaults":365}],367:[function(e,t,n){"use strict";for(var r=e("../../plots/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,i=e("../../lib/extend").extendFlat,o=e("./constants").colormodel,l=["rgb","rgba","hsl","hsla"],s=[],c=[],u=0;u<l.length;u++)s.push("For the `"+l[u]+"` colormodel, it is ["+o[l[u]].min.join(", ")+"]."),c.push("For the `"+l[u]+"` colormodel, it is ["+o[l[u]].max.join(", ")+"].");t.exports=i({z:{valType:"data_array",editType:"calc"},colormodel:{valType:"enumerated",values:l,dflt:"rgb",editType:"calc"},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc"},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc"},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dx:{valType:"number",dflt:1,editType:"calc"},dy:{valType:"number",dflt:1,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"data_array",editType:"plot"},hoverinfo:i({},r.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:a({},{keys:["z","color","colormodel"]}),transforms:void 0})},{"../../lib/extend":173,"../../plots/attributes":219,"../../plots/template_attributes":264,"./constants":369}],368:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./constants"),i=e("fast-isnumeric"),o=e("../../plots/cartesian/axes"),l=e("../../lib").maxRowLength;function s(e,t,n,a){return function(i){return r.constrain((i-e)*t,n,a)}}function c(e,t){return function(n){return r.constrain(n,e,t)}}t.exports=function(e,t){var n,r=o.getFromId(e,t.xaxis||"x"),u=o.getFromId(e,t.yaxis||"y"),f=r.d2c(t.x0)-t.dx/2,d=u.d2c(t.y0)-t.dy/2,p=t.z.length,h=l(t.z),g=[f,f+h*t.dx],m=[d,d+p*t.dy];if(r&&"log"===r.type)for(n=0;n<h;n++)g.push(f+n*t.dx);if(u&&"log"===u.type)for(n=0;n<p;n++)m.push(d+n*t.dy);return t._extremes[r._id]=o.findExtremes(r,g),t._extremes[u._id]=o.findExtremes(u,m),t._scaler=function(e){var t=e.colormodel,n=t.length,r=a.colormodel[t];e._sArray=[];for(var o=0;o<n;o++)r.min[o]!==e.zmin[o]||r.max[o]!==e.zmax[o]?e._sArray.push(s(e.zmin[o],(r.max[o]-r.min[o])/(e.zmax[o]-e.zmin[o]),r.min[o],r.max[o])):e._sArray.push(c(r.min[o],r.max[o]));return function(t){for(var r=t.slice(0,n),a=0;a<n;a++){var o=r[a];if(!i(o))return!1;r[a]=e._sArray[a](o)}return r}}(t),[{x0:f,y0:d,z:t.z,w:h,h:p}]}},{"../../lib":178,"../../plots/cartesian/axes":222,"./constants":369,"fast-isnumeric":18}],369:[function(e,t,n){"use strict";t.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["°","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["°","%","%",""]}}}},{}],370:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),i=e("./constants");t.exports=function(e,t){function n(n,i){return r.coerce(e,t,a,n,i)}var o=n("z");if(void 0!==o&&o.length&&o[0]&&o[0].length){n("x0"),n("y0"),n("dx"),n("dy");var l=n("colormodel");n("zmin",i.colormodel[l].min),n("zmax",i.colormodel[l].max),n("text"),n("hovertext"),n("hovertemplate"),t._length=null}else t.visible=!1}},{"../../lib":178,"./attributes":367,"./constants":369}],371:[function(e,t,n){"use strict";t.exports=function(e,t){return"xVal"in t&&(e.x=t.xVal),"yVal"in t&&(e.y=t.yVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e.color=t.color,e.colormodel=t.trace.colormodel,e}},{}],372:[function(e,t,n){"use strict";var r=e("../../components/fx"),a=e("../../lib"),i=e("./constants");t.exports=function(e,t,n){var o=e.cd[0],l=o.trace,s=e.xa,c=e.ya;if(!(r.inbox(t-o.x0,t-(o.x0+o.w*l.dx),0)>0||r.inbox(n-o.y0,n-(o.y0+o.h*l.dy),0)>0)){var u=Math.floor((t-o.x0)/l.dx),f=Math.floor(Math.abs(n-o.y0)/l.dy);if(o.z[f][u]){var d,p=o.hi||l.hoverinfo;if(p){var h=p.split("+");-1!==h.indexOf("all")&&(h=["color"]),-1!==h.indexOf("color")&&(d=!0)}var g,m=l.colormodel,v=m.length,y=l._scaler(o.z[f][u]),x=i.colormodel[m].suffix,b=[];(l.hovertemplate||d)&&(b.push("["+[y[0]+x[0],y[1]+x[1],y[2]+x[2]].join(", ")),4===v&&b.push(", "+y[3]+x[3]),b.push("]"),b=b.join(""),e.extraText=m.toUpperCase()+": "+b),Array.isArray(l.hovertext)&&Array.isArray(l.hovertext[f])?g=l.hovertext[f][u]:Array.isArray(l.text)&&Array.isArray(l.text[f])&&(g=l.text[f][u]);var _=c.c2p(o.y0+(f+.5)*l.dy),w=o.x0+(u+.5)*l.dx,k=o.y0+(f+.5)*l.dy,T="["+o.z[f][u].slice(0,l.colormodel.length).join(", ")+"]";return[a.extendFlat(e,{index:[f,u],x0:s.c2p(o.x0+u*l.dx),x1:s.c2p(o.x0+(u+1)*l.dx),y0:_,y1:_,color:y,xVal:w,xLabelVal:w,yVal:k,yLabelVal:k,zLabelVal:T,text:g,hovertemplateLabels:{zLabel:T,colorLabel:b,"color[0]Label":y[0]+x[0],"color[1]Label":y[1]+x[1],"color[2]Label":y[2]+x[2],"color[3]Label":y[3]+x[3]}})]}}}},{"../../components/fx":92,"../../lib":178,"./constants":369}],373:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),style:e("./style"),hoverPoints:e("./hover"),eventData:e("./event_data"),moduleType:"trace",name:"image",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},{"../../plots/cartesian":235,"./attributes":367,"./calc":368,"./defaults":370,"./event_data":371,"./hover":372,"./plot":374,"./style":375}],374:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),i=e("../../constants/xmlns_namespaces"),o=e("./constants");t.exports=function(e,t,n,l){var s=t.xaxis,c=t.yaxis;a.makeTraceGroups(l,n,"im").each((function(e){var t,n,l,u,f,d,p=r.select(this),h=e[0],g=h.trace,m=h.z,v=h.x0,y=h.y0,x=h.w,b=h.h,_=g.dx,w=g.dy;for(d=0;void 0===t&&d<x;)t=s.c2p(v+d*_),d++;for(d=x;void 0===n&&d>0;)n=s.c2p(v+d*_),d--;for(d=0;void 0===u&&d<b;)u=c.c2p(y+d*w),d++;for(d=b;void 0===f&&d>0;)f=c.c2p(y+d*w),d--;n<t&&(l=n,n=t,t=l),f<u&&(l=u,u=f,f=l),t=Math.max(-.5*s._length,t),n=Math.min(1.5*s._length,n),u=Math.max(-.5*c._length,u),f=Math.min(1.5*c._length,f);var k=Math.round(n-t),T=Math.round(f-u);if(k<=0||T<=0)p.selectAll("image").data([]).exit().remove();else{var M=document.createElement("canvas");M.width=k,M.height=T;var A,S=M.getContext("2d"),L=function(e){return a.constrain(Math.round(s.c2p(v+e*_)-t),0,k)},C=function(e){return a.constrain(Math.round(c.c2p(y+e*w)-u),0,T)},O=o.colormodel[g.colormodel].fmt;for(d=0;d<h.w;d++){var P=L(d),E=L(d+1);if(E!==P&&!isNaN(E)&&!isNaN(P))for(var z=0;z<h.h;z++){var D=C(z),R=C(z+1);R===D||isNaN(R)||isNaN(D)||!m[z][d]||(A=g._scaler(m[z][d]),S.fillStyle=A?g.colormodel+"("+O(A).join(",")+")":"rgba(0,0,0,0)",S.fillRect(P,D,E-P,R-D))}}var I=p.selectAll("image").data(e);I.enter().append("svg:image").attr({xmlns:i.svg,preserveAspectRatio:"none"}),I.attr({height:T,width:k,x:t,y:u,"xlink:href":M.toDataURL("image/png")})}}))}},{"../../constants/xmlns_namespaces":159,"../../lib":178,"./constants":369,d3:16}],375:[function(e,t,n){"use strict";var r=e("d3");t.exports=function(e){r.select(e).selectAll(".im image").style("opacity",(function(e){return e.trace.opacity}))}},{d3:16}],376:[function(e,t,n){"use strict";var r=e("../../plots/attributes"),a=e("../../plots/domain").attributes,i=e("../../plots/font_attributes"),o=e("../../components/color/attributes"),l=e("../../plots/template_attributes").hovertemplateAttrs,s=e("../../plots/template_attributes").texttemplateAttrs,c=e("../../lib/extend").extendFlat,u=i({editType:"plot",arrayOk:!0,colorEditType:"plot"});t.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:o.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:c({},r.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:l({},{keys:["label","color","value","percent","text"]}),texttemplate:s({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:c({},u,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:c({},u,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:a({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"number",min:-360,max:360,dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:c({},u,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},{"../../components/color/attributes":51,"../../lib/extend":173,"../../plots/attributes":219,"../../plots/domain":249,"../../plots/font_attributes":250,"../../plots/template_attributes":264}],377:[function(e,t,n){"use strict";var r=e("../../plots/plots");n.name="pie",n.plot=function(e,t,a,i){r.plotBasePlot(n.name,e,t,a,i)},n.clean=function(e,t,a,i){r.cleanBasePlot(n.name,e,t,a,i)}},{"../../plots/plots":256}],378:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("tinycolor2"),i=e("../../components/color"),o={};function l(e){return function(t,n){return!!t&&!!(t=a(t)).isValid()&&(t=i.addOpacity(t,t.getAlpha()),e[n]||(e[n]=t),t)}}function s(e,t){var n,r=JSON.stringify(e),i=t[r];if(!i){for(i=e.slice(),n=0;n<e.length;n++)i.push(a(e[n]).lighten(20).toHexString());for(n=0;n<e.length;n++)i.push(a(e[n]).darken(20).toHexString());t[r]=i}return i}t.exports={calc:function(e,t){var n,a,i=[],o=e._fullLayout,s=o.hiddenlabels||[],c=t.labels,u=t.marker.colors||[],f=t.values,d=t._length,p=t._hasValues&&d;if(t.dlabel)for(c=new Array(d),n=0;n<d;n++)c[n]=String(t.label0+n*t.dlabel);var h={},g=l(o["_"+t.type+"colormap"]),m=0,v=!1;for(n=0;n<d;n++){var y,x,b;if(p){if(y=f[n],!r(y))continue;if((y=+y)<0)continue}else y=1;void 0!==(x=c[n])&&""!==x||(x=n);var _=h[x=String(x)];void 0===_?(h[x]=i.length,(b=-1!==s.indexOf(x))||(m+=y),i.push({v:y,label:x,color:g(u[n],x),i:n,pts:[n],hidden:b})):(v=!0,(a=i[_]).v+=y,a.pts.push(n),a.hidden||(m+=y),!1===a.color&&u[n]&&(a.color=g(u[n],x)))}return("funnelarea"===t.type?v:t.sort)&&i.sort((function(e,t){return t.v-e.v})),i[0]&&(i[0].vTotal=m),i},crossTraceCalc:function(e,t){var n=(t||{}).type;n||(n="pie");var r=e._fullLayout,a=e.calcdata,i=r[n+"colorway"],l=r["_"+n+"colormap"];r["extend"+n+"colors"]&&(i=s(i,o));for(var c=0,u=0;u<a.length;u++){var f=a[u];if(f[0].trace.type===n)for(var d=0;d<f.length;d++){var p=f[d];!1===p.color&&(l[p.label]?p.color=l[p.label]:(l[p.label]=p.color=i[c%i.length],c++))}}},makePullColorFn:l,generateExtendedColors:s}},{"../../components/color":52,"fast-isnumeric":18,tinycolor2:35}],379:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),i=e("./attributes"),o=e("../../plots/domain").defaults,l=e("../bar/defaults").handleText;function s(e,t){var n=Array.isArray(e),i=a.isArrayOrTypedArray(t),o=Math.min(n?e.length:1/0,i?t.length:1/0);if(isFinite(o)||(o=0),o&&i){for(var l,s=0;s<o;s++){var c=t[s];if(r(c)&&c>0){l=!0;break}}l||(o=0)}return{hasLabels:n,hasValues:i,len:o}}t.exports={handleLabelsAndValues:s,supplyDefaults:function(e,t,n,r){function c(n,r){return a.coerce(e,t,i,n,r)}var u=s(c("labels"),c("values")),f=u.len;if(t._hasLabels=u.hasLabels,t._hasValues=u.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),f){t._length=f,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var d,p=c("text"),h=c("texttemplate");if(h||(d=c("textinfo",Array.isArray(p)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),h||d&&"none"!==d){var g=c("textposition");l(e,t,r,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&c("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&c("insidetextorientation")}o(t,r,c);var m=c("hole");if(c("title.text")){var v=c("title.position",m?"middle center":"top center");m||"middle center"!==v||(t.title.position="top center"),a.coerceFont(c,"title.font",r.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else t.visible=!1}}},{"../../lib":178,"../../plots/domain":249,"../bar/defaults":283,"./attributes":376,"fast-isnumeric":18}],380:[function(e,t,n){"use strict";var r=e("../../components/fx/helpers").appendArrayMultiPointValues;t.exports=function(e,t){var n={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,v:e.v};return 1===e.pts.length&&(n.pointNumber=n.i=e.pts[0]),r(n,t,e.pts),"funnelarea"===t.type&&(delete n.v,delete n.i),n}},{"../../components/fx/helpers":88}],381:[function(e,t,n){"use strict";var r=e("../../lib");n.formatPiePercent=function(e,t){var n=(100*e).toPrecision(3);return-1!==n.lastIndexOf(".")&&(n=n.replace(/[.]?0+$/,"")),r.numSeparate(n,t)+"%"},n.formatPieValue=function(e,t){var n=e.toPrecision(10);return-1!==n.lastIndexOf(".")&&(n=n.replace(/[.]?0+$/,"")),r.numSeparate(n,t)},n.getFirstFilled=function(e,t){if(Array.isArray(e))for(var n=0;n<t.length;n++){var r=e[t[n]];if(r||0===r||""===r)return r}},n.castOption=function(e,t){return Array.isArray(e)?n.getFirstFilled(e,t):e||void 0}},{"../../lib":178}],382:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults").supplyDefaults,supplyLayoutDefaults:e("./layout_defaults"),layoutAttributes:e("./layout_attributes"),calc:e("./calc").calc,crossTraceCalc:e("./calc").crossTraceCalc,plot:e("./plot").plot,style:e("./style"),styleOne:e("./style_one"),moduleType:"trace",name:"pie",basePlotModule:e("./base_plot"),categories:["pie-like","pie","showLegend"],meta:{}}},{"./attributes":376,"./base_plot":377,"./calc":378,"./defaults":379,"./layout_attributes":383,"./layout_defaults":384,"./plot":385,"./style":386,"./style_one":387}],383:[function(e,t,n){"use strict";t.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{}],384:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t){function n(n,i){return r.coerce(e,t,a,n,i)}n("hiddenlabels"),n("piecolorway",t.colorway),n("extendpiecolors")}},{"../../lib":178,"./layout_attributes":383}],385:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../plots/plots"),i=e("../../components/fx"),o=e("../../components/color"),l=e("../../components/drawing"),s=e("../../lib"),c=e("../../lib/svg_text_utils"),u=e("../bar/uniform_text"),f=u.recordMinTextSize,d=u.clearMinTextSize,p=e("../bar/constants").TEXTPAD,h=e("./helpers"),g=e("./event_data"),m=e("../../lib").isValidTextValue;function v(e,t,n){var a=n[0],o=a.trace,l=a.cx,c=a.cy;"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",(function(e){var n=t._fullLayout,u=t._fullData[o.index];if(!t._dragging&&!1!==n.hovermode){var f=u.hoverinfo;if(Array.isArray(f)&&(f=i.castHoverinfo({hoverinfo:[h.castOption(f,e.pts)],_module:o._module},n,0)),"all"===f&&(f="label+text+value+percent+name"),u.hovertemplate||"none"!==f&&"skip"!==f&&f){var d=e.rInscribed||0,p=l+e.pxmid[0]*(1-d),m=c+e.pxmid[1]*(1-d),v=n.separators,y=[];if(f&&-1!==f.indexOf("label")&&y.push(e.label),e.text=h.castOption(u.hovertext||u.text,e.pts),f&&-1!==f.indexOf("text")){var x=e.text;s.isValidTextValue(x)&&y.push(x)}e.value=e.v,e.valueLabel=h.formatPieValue(e.v,v),f&&-1!==f.indexOf("value")&&y.push(e.valueLabel),e.percent=e.v/a.vTotal,e.percentLabel=h.formatPiePercent(e.percent,v),f&&-1!==f.indexOf("percent")&&y.push(e.percentLabel);var b=u.hoverlabel,_=b.font;i.loneHover({trace:o,x0:p-d*a.r,x1:p+d*a.r,y:m,text:y.join("<br>"),name:u.hovertemplate||-1!==f.indexOf("name")?u.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:h.castOption(b.bgcolor,e.pts)||e.color,borderColor:h.castOption(b.bordercolor,e.pts),fontFamily:h.castOption(_.family,e.pts),fontSize:h.castOption(_.size,e.pts),fontColor:h.castOption(_.color,e.pts),nameLength:h.castOption(b.namelength,e.pts),textAlign:h.castOption(b.align,e.pts),hovertemplate:h.castOption(u.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[g(e,u)]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[g(e,u)],event:r.event})}})),e.on("mouseout",(function(e){var n=t._fullLayout,a=t._fullData[o.index],l=r.select(this).datum();o._hasHoverEvent&&(e.originalEvent=r.event,t.emit("plotly_unhover",{points:[g(l,a)],event:r.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(i.loneUnhover(n._hoverlayer.node()),o._hasHoverLabel=!1)})),e.on("click",(function(e){var n=t._fullLayout,a=t._fullData[o.index];t._dragging||!1===n.hovermode||(t._hoverdata=[g(e,a)],i.click(t,r.event))}))}function y(e,t,n){var r=h.castOption(e.insidetextfont.color,t.pts);!r&&e._input.textfont&&(r=h.castOption(e._input.textfont.color,t.pts));var a=h.castOption(e.insidetextfont.family,t.pts)||h.castOption(e.textfont.family,t.pts)||n.family,i=h.castOption(e.insidetextfont.size,t.pts)||h.castOption(e.textfont.size,t.pts)||n.size;return{color:r||o.contrast(t.color),family:a,size:i}}function x(e,t){for(var n,r,a=0;a<e.length;a++)if((r=(n=e[a][0]).trace).title.text){var i=r.title.text;r._meta&&(i=s.templateString(i,r._meta));var o=l.tester.append("text").attr("data-notex",1).text(i).call(l.font,r.title.font).call(c.convertToTspans,t),u=l.bBox(o.node(),!0);n.titleBox={width:u.width,height:u.height},o.remove()}}function b(e,t,n){var r=n.r||t.rpx1,a=t.rInscribed;if(t.startangle===t.stopangle)return{rCenter:1-a,scale:0,rotate:0,textPosAngle:0};var i,o=t.ring,l=1===o&&Math.abs(t.startangle-t.stopangle)===2*Math.PI,s=t.halfangle,c=t.midangle,u=n.trace.insidetextorientation,f="horizontal"===u,d="tangential"===u,p="radial"===u,h="auto"===u,g=[];if(!h){var m,v=function(n,a){if(function(e,t){var n=e.startangle,r=e.stopangle;return n>t&&t>r||n<t&&t<r}(t,n)){var l=Math.abs(n-t.startangle),s=Math.abs(n-t.stopangle),c=l<s?l:s;(i="tan"===a?w(e,r,o,c,0):_(e,r,o,c,Math.PI/2)).textPosAngle=n,g.push(i)}};if(f||d){for(m=4;m>=-4;m-=2)v(Math.PI*m,"tan");for(m=4;m>=-4;m-=2)v(Math.PI*(m+1),"tan")}if(f||p){for(m=4;m>=-4;m-=2)v(Math.PI*(m+1.5),"rad");for(m=4;m>=-4;m-=2)v(Math.PI*(m+.5),"rad")}}if(l||h||f){var y=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:a*r*2/y,rCenter:1-a,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;g.push(i)}(h||p)&&((i=_(e,r,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i)),(h||d)&&((i=w(e,r,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i));for(var x=0,b=0,k=0;k<g.length;k++){var T=g[k].scale;if(b<T&&(b=T,x=k),!h&&b>=1)break}return g[x]}function _(e,t,n,r,a){t=Math.max(0,t-2*p);var i=e.width/e.height,o=M(i,r,t,n);return{scale:2*o/e.height,rCenter:k(i,o/t),rotate:T(a)}}function w(e,t,n,r,a){t=Math.max(0,t-2*p);var i=e.height/e.width,o=M(i,r,t,n);return{scale:2*o/e.width,rCenter:k(i,o/t),rotate:T(a+Math.PI/2)}}function k(e,t){return Math.cos(t)-e*t}function T(e){return(180/Math.PI*e+720)%180-90}function M(e,t,n,r){var a=e+1/(2*Math.tan(t));return n*Math.min(1/(Math.sqrt(a*a+.5)+a),r/(Math.sqrt(e*e+r/2)+e))}function A(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function S(e,t){var n=t.pxmid[0],r=t.pxmid[1],a=e.width/2,i=e.height/2;return n<0&&(a*=-1),r<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:a+Math.abs(i)*(a>0?1:-1)/2,y:i/(1+n*n/(r*r)),outside:!0}}function L(e,t){var n,r,a,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,a=O(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+a)*e.r,l.ty-=e.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+a)*e.r);var s,c,u=(s=e.r,c=e.trace.aspectratio,s/(void 0===c?1:c)),f=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(f+=u,o.x-=(1+a)*u,l.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?f*=2:-1!==i.title.position.indexOf("right")&&(f+=u,o.x+=(1+a)*u,l.tx-=e.titleBox.width/2),n=f/e.titleBox.width,r=C(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(n,r),tx:l.tx,ty:l.ty}}function C(e,t){var n=e.trace,r=t.h*(n.domain.y[1]-n.domain.y[0]);return Math.min(e.titleBox.height,r/2)}function O(e){var t,n=e.pull;if(!n)return 0;if(Array.isArray(n))for(n=0,t=0;t<e.pull.length;t++)e.pull[t]>n&&(n=e.pull[t]);return n}function P(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r][0],i=a.trace,o=i.domain,l=t.w*(o.x[1]-o.x[0]),s=t.h*(o.y[1]-o.y[0]);i.title.text&&"middle center"!==i.title.position&&(s-=C(a,t));var c=l/2,u=s/2;"funnelarea"!==i.type||i.scalegroup||(u/=i.aspectratio),a.r=Math.min(c,u)/(1+O(i)),a.cx=t.l+t.w*(i.domain.x[1]+i.domain.x[0])/2,a.cy=t.t+t.h*(1-i.domain.y[0])-s/2,i.title.text&&-1!==i.title.position.indexOf("bottom")&&(a.cy-=C(a,t)),i.scalegroup&&-1===n.indexOf(i.scalegroup)&&n.push(i.scalegroup)}!function(e,t){for(var n,r,a,i=0;i<t.length;i++){var o=1/0,l=t[i];for(r=0;r<e.length;r++)if(n=e[r][0],(a=n.trace).scalegroup===l){var s;if("pie"===a.type)s=n.r*n.r;else if("funnelarea"===a.type){var c,u;a.aspectratio>1?(c=n.r,u=c/a.aspectratio):(u=n.r,c=u*a.aspectratio),c*=(1+a.baseratio)/2,s=c*u}o=Math.min(o,s/n.vTotal)}for(r=0;r<e.length;r++)if(n=e[r][0],(a=n.trace).scalegroup===l){var f=o*n.vTotal;"funnelarea"===a.type&&(f/=(1+a.baseratio)/2,f/=a.aspectratio),n.r=Math.sqrt(f)}}}(e,n)}function E(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function z(e,t,n){var r=e._fullLayout,a=n.trace,i=a.texttemplate,o=a.textinfo;if(!i&&o&&"none"!==o){var l,c=o.split("+"),u=function(e){return-1!==c.indexOf(e)},f=u("label"),d=u("text"),p=u("value"),g=u("percent"),v=r.separators;if(l=f?[t.label]:[],d){var y=h.getFirstFilled(a.text,t.pts);m(y)&&l.push(y)}p&&l.push(h.formatPieValue(t.v,v)),g&&l.push(h.formatPiePercent(t.v/n.vTotal,v)),t.text=l.join("<br>")}if(i){var x=s.castOption(a,t.i,"texttemplate");if(x){var b=function(e){return{label:e.label,value:e.v,valueLabel:h.formatPieValue(e.v,r.separators),percent:e.v/n.vTotal,percentLabel:h.formatPiePercent(e.v/n.vTotal,r.separators),color:e.color,text:e.text,customdata:s.castOption(a,e.i,"customdata")}}(t),_=h.getFirstFilled(a.text,t.pts);(m(_)||""===_)&&(b.text=_),t.text=s.texttemplateString(x,b,e._fullLayout._d3locale,b,a._meta||{})}else t.text=""}}function D(e,t){var n=e.rotate*Math.PI/180,r=Math.cos(n),a=Math.sin(n),i=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=i*r-o*a,e.textY=i*a+o*r,e.noCenter=!0}t.exports={plot:function(e,t){var n=e._fullLayout,i=n._size;d("pie",n),x(t,e),P(t,i);var u=s.makeTraceGroups(n._pielayer,t,"trace").each((function(t){var u=r.select(this),d=t[0],p=d.trace;!function(e){var t,n,r,a=e[0],i=a.r,o=a.trace,l=o.rotation*Math.PI/180,s=2*Math.PI/a.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(t=0;t<e.length&&e[t].hidden;t++);if(t===e.length)return;l+=s*e[t].v,s*=-1,c="px1",u="px0"}for(r=E(i,l),t=0;t<e.length;t++)(n=e[t]).hidden||(n[c]=r,n.startangle=l,l+=s*n.v/2,n.pxmid=E(i,l),n.midangle=l,l+=s*n.v/2,r=E(i,l),n.stopangle=l,n[u]=r,n.largeArc=n.v>a.vTotal/2?1:0,n.halfangle=Math.PI*Math.min(n.v/a.vTotal,.5),n.ring=1-o.hole,n.rInscribed=A(n,a))}(t),u.attr("stroke-linejoin","round"),u.each((function(){var g=r.select(this).selectAll("g.slice").data(t);g.enter().append("g").classed("slice",!0),g.exit().remove();var m=[[[],[]],[[],[]]],x=!1;g.each((function(a,i){if(a.hidden)r.select(this).selectAll("path,g").remove();else{a.pointNumber=a.i,a.curveNumber=p.index,m[a.pxmid[1]<0?0:1][a.pxmid[0]<0?0:1].push(a);var o=d.cx,u=d.cy,g=r.select(this),_=g.selectAll("path.surface").data([a]);if(_.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),g.call(v,e,t),p.pull){var w=+h.castOption(p.pull,a.pts)||0;w>0&&(o+=w*a.pxmid[0],u+=w*a.pxmid[1])}a.cxFinal=o,a.cyFinal=u;var k=p.hole;if(a.v===d.vTotal){var T="M"+(o+a.px0[0])+","+(u+a.px0[1])+O(a.px0,a.pxmid,!0,1)+O(a.pxmid,a.px0,!0,1)+"Z";k?_.attr("d","M"+(o+k*a.px0[0])+","+(u+k*a.px0[1])+O(a.px0,a.pxmid,!1,k)+O(a.pxmid,a.px0,!1,k)+"Z"+T):_.attr("d",T)}else{var M=O(a.px0,a.px1,!0,1);if(k){var A=1-k;_.attr("d","M"+(o+k*a.px1[0])+","+(u+k*a.px1[1])+O(a.px1,a.px0,!1,k)+"l"+A*a.px0[0]+","+A*a.px0[1]+M+"Z")}else _.attr("d","M"+o+","+u+"l"+a.px0[0]+","+a.px0[1]+M+"Z")}z(e,a,d);var L=h.castOption(p.textposition,a.pts),C=g.selectAll("g.slicetext").data(a.text&&"none"!==L?[0]:[]);C.enter().append("g").classed("slicetext",!0),C.exit().remove(),C.each((function(){var g=s.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),m=s.ensureUniformFontSize(e,"outside"===L?function(e,t,n){var r=h.castOption(e.outsidetextfont.color,t.pts)||h.castOption(e.textfont.color,t.pts)||n.color,a=h.castOption(e.outsidetextfont.family,t.pts)||h.castOption(e.textfont.family,t.pts)||n.family,i=h.castOption(e.outsidetextfont.size,t.pts)||h.castOption(e.textfont.size,t.pts)||n.size;return{color:r,family:a,size:i}}(p,a,n.font):y(p,a,n.font));g.text(a.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l.font,m).call(c.convertToTspans,e);var v,_=l.bBox(g.node());if("outside"===L)v=S(_,a);else if(v=b(_,a,d),"auto"===L&&v.scale<1){var w=s.ensureUniformFontSize(e,p.outsidetextfont);g.call(l.font,w),v=S(_=l.bBox(g.node()),a)}var k=v.textPosAngle,T=void 0===k?a.pxmid:E(d.r,k);if(v.targetX=o+T[0]*v.rCenter+(v.x||0),v.targetY=u+T[1]*v.rCenter+(v.y||0),D(v,_),v.outside){var M=v.targetY;a.yLabelMin=M-_.height/2,a.yLabelMid=M,a.yLabelMax=M+_.height/2,a.labelExtraX=0,a.labelExtraY=0,x=!0}v.fontSize=m.size,f(p.type,v,n),t[i].transform=v,g.attr("transform",s.getTextTransform(v))}))}function O(e,t,n,r){var i=r*(t[0]-e[0]),o=r*(t[1]-e[1]);return"a"+r*d.r+","+r*d.r+" 0 "+a.largeArc+(n?" 1 ":" 0 ")+i+","+o}}));var _=r.select(this).selectAll("g.titletext").data(p.title.text?[0]:[]);if(_.enter().append("g").classed("titletext",!0),_.exit().remove(),_.each((function(){var t,n=s.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),a=p.title.text;p._meta&&(a=s.templateString(a,p._meta)),n.text(a).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l.font,p.title.font).call(c.convertToTspans,e),t="middle center"===p.title.position?function(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(d):L(d,i),n.attr("transform","translate("+t.x+","+t.y+")"+(t.scale<1?"scale("+t.scale+")":"")+"translate("+t.tx+","+t.ty+")")})),x&&function(e,t){var n,r,a,i,o,l,s,c,u,f,d,p,g;function m(e,t){return e.pxmid[1]-t.pxmid[1]}function v(e,t){return t.pxmid[1]-e.pxmid[1]}function y(e,n){n||(n={});var a,c,u,d,p=n.labelExtraY+(r?n.yLabelMax:n.yLabelMin),g=r?e.yLabelMin:e.yLabelMax,m=r?e.yLabelMax:e.yLabelMin,v=e.cyFinal+o(e.px0[1],e.px1[1]),y=p-g;if(y*s>0&&(e.labelExtraY=y),Array.isArray(t.pull))for(c=0;c<f.length;c++)(u=f[c])===e||(h.castOption(t.pull,e.pts)||0)>=(h.castOption(t.pull,u.pts)||0)||((e.pxmid[1]-u.pxmid[1])*s>0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-g-e.labelExtraY)*s>0&&(e.labelExtraY+=y):(m+e.labelExtraY-v)*s>0&&(a=3*l*Math.abs(c-f.indexOf(e)),(d=u.cxFinal+i(u.px0[0],u.px1[0])+a-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=d)))}for(r=0;r<2;r++)for(a=r?m:v,o=r?Math.max:Math.min,s=r?1:-1,n=0;n<2;n++){for(i=n?Math.max:Math.min,l=n?1:-1,(c=e[r][n]).sort(a),u=e[1-r][n],f=u.concat(c),p=[],d=0;d<c.length;d++)void 0!==c[d].yLabelMid&&p.push(c[d]);for(g=!1,d=0;r&&d<u.length;d++)if(void 0!==u[d].yLabelMid){g=u[d];break}for(d=0;d<p.length;d++){var x=d&&p[d-1];g&&!d&&(x=g),y(p[d],x)}}}(m,p),function(e,t){e.each((function(e){var n=r.select(this);if(e.labelExtraX||e.labelExtraY){var a=n.select("g.slicetext text");e.transform.targetX+=e.labelExtraX,e.transform.targetY+=e.labelExtraY,a.attr("transform",s.getTextTransform(e.transform));var i=e.cxFinal+e.pxmid[0],l="M"+i+","+(e.cyFinal+e.pxmid[1]),c=(e.yLabelMax-e.yLabelMin)*(e.pxmid[0]<0?-1:1)/4;if(e.labelExtraX){var u=e.labelExtraX*e.pxmid[1]/e.pxmid[0],f=e.yLabelMid+e.labelExtraY-(e.cyFinal+e.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*e.pxmid[0]/e.pxmid[1]+","+f+"H"+(i+e.labelExtraX+c):l+="l"+e.labelExtraX+","+u+"v"+(f-u)+"h"+c}else l+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;s.ensureSingle(n,"path","textline").call(o.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:l,fill:"none"})}else n.select("path.textline").remove()}))}(g,p),x&&p.automargin){var w=l.bBox(u.node()),k=p.domain,T=i.w*(k.x[1]-k.x[0]),M=i.h*(k.y[1]-k.y[0]),A=(.5*T-d.r)/i.w,C=(.5*M-d.r)/i.h;a.autoMargin(e,"pie."+p.uid+".automargin",{xl:k.x[0]-A,xr:k.x[1]+A,yb:k.y[0]-C,yt:k.y[1]+C,l:Math.max(d.cx-d.r-w.left,0),r:Math.max(w.right-(d.cx+d.r),0),b:Math.max(w.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-w.top,0),pad:5})}}))}));setTimeout((function(){u.selectAll("tspan").each((function(){var e=r.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:z,transformInsideText:b,determineInsideTextFont:y,positionTitleOutside:L,prerenderTitles:x,layoutAreas:P,attachFxHandlers:v,computeTransform:D}},{"../../components/color":52,"../../components/drawing":74,"../../components/fx":92,"../../lib":178,"../../lib/svg_text_utils":199,"../../plots/plots":256,"../bar/constants":281,"../bar/uniform_text":295,"./event_data":380,"./helpers":381,d3:16}],386:[function(e,t,n){"use strict";var r=e("d3"),a=e("./style_one"),i=e("../bar/uniform_text").resizeText;t.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");i(e,t,"pie"),t.each((function(e){var t=e[0].trace,n=r.select(this);n.style({opacity:t.opacity}),n.selectAll("path.surface").each((function(e){r.select(this).call(a,e,t)}))}))}},{"../bar/uniform_text":295,"./style_one":387,d3:16}],387:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("./helpers").castOption;t.exports=function(e,t,n){var i=n.marker.line,o=a(i.color,t.pts)||r.defaultLine,l=a(i.width,t.pts)||0;e.style("stroke-width",l).call(r.fill,t.color).call(r.stroke,o)}},{"../../components/color":52,"./helpers":381}],388:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;r.mergeArray(t.text,e,"tx"),r.mergeArray(t.texttemplate,e,"txt"),r.mergeArray(t.hovertext,e,"htx"),r.mergeArray(t.customdata,e,"data"),r.mergeArray(t.textposition,e,"tp"),t.textfont&&(r.mergeArrayCastPositive(t.textfont.size,e,"ts"),r.mergeArray(t.textfont.color,e,"tc"),r.mergeArray(t.textfont.family,e,"tf"));var a=t.marker;if(a){r.mergeArrayCastPositive(a.size,e,"ms"),r.mergeArrayCastPositive(a.opacity,e,"mo"),r.mergeArray(a.symbol,e,"mx"),r.mergeArray(a.color,e,"mc");var i=a.line;a.line&&(r.mergeArray(i.color,e,"mlc"),r.mergeArrayCastPositive(i.width,e,"mlw"));var o=a.gradient;o&&"none"!==o.type&&(r.mergeArray(o.type,e,"mgt"),r.mergeArray(o.color,e,"mgc"))}}},{"../../lib":178}],389:[function(e,t,n){"use strict";var r=e("../../plots/template_attributes").texttemplateAttrs,a=e("../../plots/template_attributes").hovertemplateAttrs,i=e("../../components/colorscale/attributes"),o=e("../../plots/font_attributes"),l=e("../../components/drawing/attributes").dash,s=e("../../components/drawing"),c=e("./constants"),u=e("../../lib/extend").extendFlat;t.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:r({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:a({},{keys:c.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:u({},l,{editType:"style"}),simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:{valType:"color",editType:"style",anim:!0},marker:u({symbol:{valType:"enumerated",values:s.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:u({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},i("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},i("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},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"},textfont:o({editType:"calc",colorEditType:"style",arrayOk:!0}),r:{valType:"data_array",editType:"calc"},t:{valType:"data_array",editType:"calc"}}},{"../../components/colorscale/attributes":59,"../../components/drawing":74,"../../components/drawing/attributes":73,"../../lib/extend":173,"../../plots/font_attributes":250,"../../plots/template_attributes":264,"./constants":393}],390:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("../../constants/numerical").BADNUM,l=e("./subtypes"),s=e("./colorscale_calc"),c=e("./arrays_to_calcdata"),u=e("./calc_selection");function f(e,t,n,r,a,o,s){var c=t._length,u=e._fullLayout,f=n._id,d=r._id,p=u._firstScatter[h(t)]===t.uid,m=(g(t,u,n,r)||{}).orientation,v=t.fill;n._minDtick=0,r._minDtick=0;var y={padded:!0},x={padded:!0};s&&(y.ppad=x.ppad=s);var b=c<2||a[0]!==a[c-1]||o[0]!==o[c-1];b&&("tozerox"===v||"tonextx"===v&&(p||"h"===m))?y.tozero=!0:(t.error_y||{}).visible||"tonexty"!==v&&"tozeroy"!==v&&(l.hasMarkers(t)||l.hasText(t))||(y.padded=!1,y.ppad=0),b&&("tozeroy"===v||"tonexty"===v&&(p||"v"===m))?x.tozero=!0:"tonextx"!==v&&"tozerox"!==v||(x.padded=!1),f&&(t._extremes[f]=i.findExtremes(n,a,y)),d&&(t._extremes[d]=i.findExtremes(r,o,x))}function d(e,t){if(l.hasMarkers(e)){var n,r=e.marker,o=1.6*(e.marker.sizeref||1);if(n="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/o),3)}:function(e){return Math.max((e||0)/o,3)},a.isArrayOrTypedArray(r.size)){var s={type:"linear"};i.setConvert(s);for(var c=s.makeCalcdata(e.marker,"size"),u=new Array(t),f=0;f<t;f++)u[f]=n(c[f]);return u}return n(r.size)}}function p(e,t){var n=h(t),r=e._firstScatter;r[n]||(r[n]=t.uid)}function h(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function g(e,t,n,r){var a=e.stackgroup;if(a){var i=t._scatterStackOpts[n._id+r._id][a],o="v"===i.orientation?r:n;return"linear"===o.type||"log"===o.type?i:void 0}}t.exports={calc:function(e,t){var n,l,h,m,v,y,x=e._fullLayout,b=i.getFromId(e,t.xaxis||"x"),_=i.getFromId(e,t.yaxis||"y"),w=b.makeCalcdata(t,"x"),k=_.makeCalcdata(t,"y"),T=t._length,M=new Array(T),A=t.ids,S=g(t,x,b,_),L=!1;p(x,t);var C,O="x",P="y";for(S?(a.pushUnique(S.traceIndices,t._expandedIndex),(n="v"===S.orientation)?(P="s",C="x"):(O="s",C="y"),v="interpolate"===S.stackgaps):f(e,t,b,_,w,k,d(t,T)),l=0;l<T;l++){var E=M[l]={},z=r(w[l]),D=r(k[l]);z&&D?(E[O]=w[l],E[P]=k[l]):S&&(n?z:D)?(E[C]=n?w[l]:k[l],E.gap=!0,v?(E.s=o,L=!0):E.s=0):E[O]=E[P]=o,A&&(E.id=String(A[l]))}if(c(M,t),s(e,t),u(M,t),S){for(l=0;l<M.length;)M[l][C]===o?M.splice(l,1):l++;if(a.sort(M,(function(e,t){return e[C]-t[C]||e.i-t.i})),L){for(l=0;l<M.length-1&&M[l].gap;)l++;for((y=M[l].s)||(y=M[l].s=0),h=0;h<l;h++)M[h].s=y;for(m=M.length-1;m>l&&M[m].gap;)m--;for(y=M[m].s,h=M.length-1;h>m;h--)M[h].s=y;for(;l<m;)if(M[++l].gap){for(h=l+1;M[h].gap;)h++;for(var R=M[l-1][C],I=M[l-1].s,N=(M[h].s-I)/(M[h][C]-R);l<h;)M[l].s=I+(M[l][C]-R)*N,l++}}}return M},calcMarkerSize:d,calcAxisExpansion:f,setFirstScatter:p,getStackOpts:g}},{"../../constants/numerical":158,"../../lib":178,"../../plots/cartesian/axes":222,"./arrays_to_calcdata":388,"./calc_selection":391,"./colorscale_calc":392,"./subtypes":413,"fast-isnumeric":18}],391:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){r.isArrayOrTypedArray(t.selectedpoints)&&r.tagSelected(e,t)}},{"../../lib":178}],392:[function(e,t,n){"use strict";var r=e("../../components/colorscale/helpers").hasColorscale,a=e("../../components/colorscale/calc"),i=e("./subtypes");t.exports=function(e,t){i.hasLines(t)&&r(t,"line")&&a(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),i.hasMarkers(t)&&(r(t,"marker")&&a(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),r(t,"marker.line")&&a(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},{"../../components/colorscale/calc":60,"../../components/colorscale/helpers":63,"./subtypes":413}],393:[function(e,t,n){"use strict";t.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],394:[function(e,t,n){"use strict";var r=e("./calc");function a(e,t,n,r,a,i,o){a[r]=!0;var l={i:null,gap:!0,s:0};if(l[o]=n,e.splice(t,0,l),t&&n===e[t-1][o]){var s=e[t-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else i&&(l.s=function(e,t,n,r){var a=e[t-1],i=e[t+1];return i?a?a.s+(i.s-a.s)*(n-a[r])/(i[r]-a[r]):i.s:a.s}(e,t,n,o));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}t.exports=function(e,t){var n=t.xaxis,i=t.yaxis,o=n._id+i._id,l=e._fullLayout._scatterStackOpts[o];if(l){var s,c,u,f,d,p,h,g,m,v,y,x,b,_,w,k=e.calcdata;for(var T in l){var M=(v=l[T]).traceIndices;if(M.length){for(y="interpolate"===v.stackgaps,x=v.groupnorm,"v"===v.orientation?(b="x",_="y"):(b="y",_="x"),w=new Array(M.length),s=0;s<w.length;s++)w[s]=!1;p=k[M[0]];var A=new Array(p.length);for(s=0;s<p.length;s++)A[s]=p[s][b];for(s=1;s<M.length;s++){for(d=k[M[s]],c=u=0;c<d.length;c++){for(h=d[c][b];h>A[u]&&u<A.length;u++)a(d,c,A[u],s,w,y,b),c++;if(h!==A[u]){for(f=0;f<s;f++)a(k[M[f]],u,h,f,w,y,b);A.splice(u,0,h)}u++}for(;u<A.length;u++)a(d,c,A[u],s,w,y,b),c++}var S=A.length;for(c=0;c<p.length;c++){for(g=p[c][_]=p[c].s,s=1;s<M.length;s++)(d=k[M[s]])[0].trace._rawLength=d[0].trace._length,d[0].trace._length=S,g+=d[c].s,d[c][_]=g;if(x)for(m=("fraction"===x?g:g/100)||1,s=0;s<M.length;s++){var L=k[M[s]][c];L[_]/=m,L.sNorm=L.s/m}}for(s=0;s<M.length;s++){var C=(d=k[M[s]])[0].trace,O=r.calcMarkerSize(C,C._rawLength),P=Array.isArray(O);if(O&&w[s]||P){var E=O;for(O=new Array(S),c=0;c<S;c++)O[c]=d[c].gap?0:P?E[d[c].i]:E}var z=new Array(S),D=new Array(S);for(c=0;c<S;c++)z[c]=d[c].x,D[c]=d[c].y;r.calcAxisExpansion(e,C,n,i,z,D,O),d[0].t.orientation=v.orientation}}}}}},{"./calc":390}],395:[function(e,t,n){"use strict";t.exports=function(e){for(var t=0;t<e.length;t++){var n=e[t];if("scatter"===n.type){var r=n.fill;if("none"!==r&&"toself"!==r&&(n.opacity=void 0,"tonexty"===r||"tonextx"===r))for(var a=t-1;a>=0;a--){var i=e[a];if("scatter"===i.type&&i.xaxis===n.xaxis&&i.yaxis===n.yaxis){i.opacity=void 0;break}}}}}},{}],396:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry"),i=e("./attributes"),o=e("./constants"),l=e("./subtypes"),s=e("./xy_defaults"),c=e("./stack_defaults"),u=e("./marker_defaults"),f=e("./line_defaults"),d=e("./line_shape_defaults"),p=e("./text_defaults"),h=e("./fillcolor_defaults");t.exports=function(e,t,n,g){function m(n,a){return r.coerce(e,t,i,n,a)}var v=s(e,t,g,m);if(v||(t.visible=!1),t.visible){var y=c(e,t,g,m),x=!y&&v<o.PTS_LINESONLY?"lines+markers":"lines";m("text"),m("hovertext"),m("mode",x),l.hasLines(t)&&(f(e,t,n,g,m),d(e,t,m),m("connectgaps"),m("line.simplify")),l.hasMarkers(t)&&u(e,t,n,g,m,{gradient:!0}),l.hasText(t)&&(m("texttemplate"),p(e,t,g,m));var b=[];(l.hasMarkers(t)||l.hasText(t))&&(m("cliponaxis"),m("marker.maxdisplayed"),b.push("points")),m("fill",y?y.fillDflt:"none"),"none"!==t.fill&&(h(e,t,n,m),l.hasLines(t)||d(e,t,m));var _=(t.line||{}).color,w=(t.marker||{}).color;"tonext"!==t.fill&&"toself"!==t.fill||b.push("fills"),m("hoveron",b.join("+")||"points"),"fills"!==t.hoveron&&m("hovertemplate");var k=a.getComponentMethod("errorbars","supplyDefaults");k(e,t,_||w||n,{axis:"y"}),k(e,t,_||w||n,{axis:"x",inherit:"y"}),r.coerceSelectionMarkerOpacity(t,m)}}},{"../../lib":178,"../../registry":269,"./attributes":389,"./constants":393,"./fillcolor_defaults":397,"./line_defaults":402,"./line_shape_defaults":404,"./marker_defaults":408,"./stack_defaults":411,"./subtypes":413,"./text_defaults":414,"./xy_defaults":415}],397:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,n,i){var o=!1;if(t.marker){var l=t.marker.color,s=(t.marker.line||{}).color;l&&!a(l)?o=l:s&&!a(s)&&(o=s)}i("fillcolor",r.addOpacity((t.line||{}).color||o||n,.5))}},{"../../components/color":52,"../../lib":178}],398:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes");t.exports=function(e,t,n){var a={},i={_fullLayout:n},o=r.getFromTrace(i,t,"x"),l=r.getFromTrace(i,t,"y");return a.xLabel=r.tickText(o,e.x,!0).text,a.yLabel=r.tickText(l,e.y,!0).text,a}},{"../../plots/cartesian/axes":222}],399:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("./subtypes");t.exports=function(e,t){var n,i;if("lines"===e.mode)return(n=e.line.color)&&r.opacity(n)?n:e.fillcolor;if("none"===e.mode)return e.fill?e.fillcolor:"";var o=t.mcc||(e.marker||{}).color,l=t.mlcc||((e.marker||{}).line||{}).color;return(i=o&&r.opacity(o)?o:l&&r.opacity(l)&&(t.mlw||((e.marker||{}).line||{}).width)?l:"")?r.opacity(i)<.3?r.addOpacity(i,.3):i:(n=(e.line||{}).color)&&r.opacity(n)&&a.hasLines(e)&&e.line.width?n:e.fillcolor}},{"../../components/color":52,"./subtypes":413}],400:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/fx"),i=e("../../registry"),o=e("./get_trace_color"),l=e("../../components/color"),s=r.fillText;t.exports=function(e,t,n,c){var u=e.cd,f=u[0].trace,d=e.xa,p=e.ya,h=d.c2p(t),g=p.c2p(n),m=[h,g],v=f.hoveron||"",y=-1!==f.mode.indexOf("markers")?3:.5;if(-1!==v.indexOf("points")){var x=function(e){var t=Math.max(y,e.mrc||0),n=d.c2p(e.x)-h,r=p.c2p(e.y)-g;return Math.max(Math.sqrt(n*n+r*r)-t,1-y/t)},b=a.getDistanceFunction(c,(function(e){var t=Math.max(3,e.mrc||0),n=1-1/t,r=Math.abs(d.c2p(e.x)-h);return r<t?n*r/t:r-t+n}),(function(e){var t=Math.max(3,e.mrc||0),n=1-1/t,r=Math.abs(p.c2p(e.y)-g);return r<t?n*r/t:r-t+n}),x);if(a.getClosest(u,b,e),!1!==e.index){var _=u[e.index],w=d.c2p(_.x,!0),k=p.c2p(_.y,!0),T=_.mrc||1;e.index=_.i;var M=u[0].t.orientation,A=M&&(_.sNorm||_.s),S="h"===M?A:_.x,L="v"===M?A:_.y;return r.extendFlat(e,{color:o(f,_),x0:w-T,x1:w+T,xLabelVal:S,y0:k-T,y1:k+T,yLabelVal:L,spikeDistance:x(_),hovertemplate:f.hovertemplate}),s(_,f,e),i.getComponentMethod("errorbars","hoverInfo")(_,f,e),[e]}}if(-1!==v.indexOf("fills")&&f._polygons){var C,O,P,E,z,D,R,I,N,F=f._polygons,B=[],j=!1,H=1/0,q=-1/0,V=1/0,U=-1/0;for(C=0;C<F.length;C++)(P=F[C]).contains(m)&&(j=!j,B.push(P),V=Math.min(V,P.ymin),U=Math.max(U,P.ymax));if(j){var G=((V=Math.max(V,0))+(U=Math.min(U,p._length)))/2;for(C=0;C<B.length;C++)for(E=B[C].pts,O=1;O<E.length;O++)(I=E[O-1][1])>G!=(N=E[O][1])>=G&&(D=E[O-1][0],R=E[O][0],N-I&&(z=D+(R-D)*(G-I)/(N-I),H=Math.min(H,z),q=Math.max(q,z)));H=Math.max(H,0),q=Math.min(q,d._length);var Z=l.defaultLine;return l.opacity(f.fillcolor)?Z=f.fillcolor:l.opacity((f.line||{}).color)&&(Z=f.line.color),r.extendFlat(e,{distance:e.maxHoverDistance,x0:H,x1:q,y0:G,y1:G,color:Z,hovertemplate:!1}),delete e.index,f.text&&!Array.isArray(f.text)?e.text=String(f.text):e.text=f.name,[e]}}}},{"../../components/color":52,"../../components/fx":92,"../../lib":178,"../../registry":269,"./get_trace_color":399}],401:[function(e,t,n){"use strict";var r=e("./subtypes");t.exports={hasLines:r.hasLines,hasMarkers:r.hasMarkers,hasText:r.hasText,isBubble:r.isBubble,attributes:e("./attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("./cross_trace_defaults"),calc:e("./calc").calc,crossTraceCalc:e("./cross_trace_calc"),arraysToCalcdata:e("./arrays_to_calcdata"),plot:e("./plot"),colorbar:e("./marker_colorbar"),formatLabels:e("./format_labels"),style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("./select"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},{"../../plots/cartesian":235,"./arrays_to_calcdata":388,"./attributes":389,"./calc":390,"./cross_trace_calc":394,"./cross_trace_defaults":395,"./defaults":396,"./format_labels":398,"./hover":400,"./marker_colorbar":407,"./plot":409,"./select":410,"./style":412,"./subtypes":413}],402:[function(e,t,n){"use strict";var r=e("../../lib").isArrayOrTypedArray,a=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/defaults");t.exports=function(e,t,n,o,l,s){var c=(e.marker||{}).color;l("line.color",n),a(e,"line")?i(e,t,o,l,{prefix:"line.",cLetter:"c"}):l("line.color",!r(c)&&c||n),l("line.width"),(s||{}).noDash||l("line.dash")}},{"../../components/colorscale/defaults":62,"../../components/colorscale/helpers":63,"../../lib":178}],403:[function(e,t,n){"use strict";var r=e("../../constants/numerical"),a=r.BADNUM,i=r.LOG_CLIP,o=i+.5,l=i-.5,s=e("../../lib"),c=s.segmentsIntersect,u=s.constrain,f=e("./constants");t.exports=function(e,t){var n,r,i,d,p,h,g,m,v,y,x,b,_,w,k,T,M,A,S=t.xaxis,L=t.yaxis,C="log"===S.type,O="log"===L.type,P=S._length,E=L._length,z=t.connectGaps,D=t.baseTolerance,R=t.shape,I="linear"===R,N=t.fill&&"none"!==t.fill,F=[],B=f.minTolerance,j=e.length,H=new Array(j),q=0;function V(n){var r=e[n];if(!r)return!1;var i=t.linearized?S.l2p(r.x):S.c2p(r.x),s=t.linearized?L.l2p(r.y):L.c2p(r.y);if(i===a){if(C&&(i=S.c2p(r.x,!0)),i===a)return!1;O&&s===a&&(i*=Math.abs(S._m*E*(S._m>0?o:l)/(L._m*P*(L._m>0?o:l)))),i*=1e3}if(s===a){if(O&&(s=L.c2p(r.y,!0)),s===a)return!1;s*=1e3}return[i,s]}function U(e,t,n,r){var a=n-e,i=r-t,o=.5-e,l=.5-t,s=a*a+i*i,c=a*o+i*l;if(c>0&&c<s){var u=o*i-l*a;if(u*u<s)return!0}}function G(e,t){var n=e[0]/P,r=e[1]/E,a=Math.max(0,-n,n-1,-r,r-1);return a&&void 0!==M&&U(n,r,M,A)&&(a=0),a&&t&&U(n,r,t[0]/P,t[1]/E)&&(a=0),(1+f.toleranceGrowth*a)*D}function Z(e,t){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}var W,Y,X,$,Q,K,J,ee=f.maxScreensAway,te=-P*ee,ne=P*(1+ee),re=-E*ee,ae=E*(1+ee),ie=[[te,re,ne,re],[ne,re,ne,ae],[ne,ae,te,ae],[te,ae,te,re]];function oe(e){if(e[0]<te||e[0]>ne||e[1]<re||e[1]>ae)return[u(e[0],te,ne),u(e[1],re,ae)]}function le(e,t){return e[0]===t[0]&&(e[0]===te||e[0]===ne)||e[1]===t[1]&&(e[1]===re||e[1]===ae)||void 0}function se(e,t,n){return function(r,a){var i=oe(r),o=oe(a),l=[];if(i&&o&&le(i,o))return l;i&&l.push(i),o&&l.push(o);var c=2*s.constrain((r[e]+a[e])/2,t,n)-((i||r)[e]+(o||a)[e]);return c&&((i&&o?c>0==i[e]>o[e]?i:o:i||o)[e]+=c),l}}function ce(e){var t=e[0],n=e[1],r=t===H[q-1][0],a=n===H[q-1][1];if(!r||!a)if(q>1){var i=t===H[q-2][0],o=n===H[q-2][1];r&&(t===te||t===ne)&&i?o?q--:H[q-1]=e:a&&(n===re||n===ae)&&o?i?q--:H[q-1]=e:H[q++]=e}else H[q++]=e}function ue(e){H[q-1][0]!==e[0]&&H[q-1][1]!==e[1]&&ce([X,$]),ce(e),Q=null,X=$=0}function fe(e){if(M=e[0]/P,A=e[1]/E,W=e[0]<te?te:e[0]>ne?ne:0,Y=e[1]<re?re:e[1]>ae?ae:0,W||Y){if(q)if(Q){var t=J(Q,e);t.length>1&&(ue(t[0]),H[q++]=t[1])}else K=J(H[q-1],e)[0],H[q++]=K;else H[q++]=[W||e[0],Y||e[1]];var n=H[q-1];W&&Y&&(n[0]!==W||n[1]!==Y)?(Q&&(X!==W&&$!==Y?ce(X&&$?(r=Q,i=(a=e)[0]-r[0],o=(a[1]-r[1])/i,(r[1]*a[0]-a[1]*r[0])/i>0?[o>0?te:ne,ae]:[o>0?ne:te,re]):[X||W,$||Y]):X&&$&&ce([X,$])),ce([W,Y])):X-W&&$-Y&&ce([W||X,Y||$]),Q=e,X=W,$=Y}else Q&&ue(J(Q,e)[0]),H[q++]=e;var r,a,i,o}for("linear"===R||"spline"===R?J=function(e,t){for(var n=[],r=0,a=0;a<4;a++){var i=ie[a],o=c(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!r||Math.abs(o.x-n[0][0])>1||Math.abs(o.y-n[0][1])>1)&&(o=[o.x,o.y],r&&Z(o,e)<Z(n[0],e)?n.unshift(o):n.push(o),r++)}return n}:"hv"===R||"vh"===R?J=function(e,t){var n=[],r=oe(e),a=oe(t);return r&&a&&le(r,a)||(r&&n.push(r),a&&n.push(a)),n}:"hvh"===R?J=se(0,te,ne):"vhv"===R&&(J=se(1,re,ae)),n=0;n<j;n++)if(r=V(n)){for(q=0,Q=null,fe(r),n++;n<j;n++){if(!(d=V(n))){if(z)continue;break}if(I&&t.simplify){var de=V(n+1);if(y=Z(d,r),N&&(0===q||q===j-1)||!(y<G(d,de)*B)){for(m=[(d[0]-r[0])/y,(d[1]-r[1])/y],p=r,x=y,b=w=k=0,g=!1,i=d,n++;n<e.length;n++){if(h=de,de=V(n+1),!h){if(z)continue;break}if(T=(v=[h[0]-r[0],h[1]-r[1]])[0]*m[1]-v[1]*m[0],w=Math.min(w,T),(k=Math.max(k,T))-w>G(h,de))break;i=h,(_=v[0]*m[0]+v[1]*m[1])>x?(x=_,d=h,g=!1):_<b&&(b=_,p=h,g=!0)}if(g?(fe(d),i!==p&&fe(p)):(p!==r&&fe(p),i!==d&&fe(d)),fe(i),n>=e.length||!h)break;fe(h),r=h}}else fe(d)}Q&&ce([X||Q[0],$||Q[1]]),F.push(H.slice(0,q))}return F}},{"../../constants/numerical":158,"../../lib":178,"./constants":393}],404:[function(e,t,n){"use strict";t.exports=function(e,t,n){"spline"===n("line.shape")&&n("line.smoothing")}},{}],405:[function(e,t,n){"use strict";var r={tonextx:1,tonexty:1,tonext:1};t.exports=function(e,t,n){var a,i,o,l,s,c={},u=!1,f=-1,d=0,p=-1;for(i=0;i<n.length;i++)(o=(a=n[i][0].trace).stackgroup||"")?o in c?s=c[o]:(s=c[o]=d,d++):a.fill in r&&p>=0?s=p:(s=p=d,d++),s<f&&(u=!0),a._groupIndex=f=s;var h=n.slice();u&&h.sort((function(e,t){var n=e[0].trace,r=t[0].trace;return n._groupIndex-r._groupIndex||n.index-r.index}));var g={};for(i=0;i<h.length;i++)o=(a=h[i][0].trace).stackgroup||"",!0===a.visible?(a._nexttrace=null,a.fill in r&&(l=g[o],a._prevtrace=l||null,l&&(l._nexttrace=a)),a._ownfill=a.fill&&("tozero"===a.fill.substr(0,6)||"toself"===a.fill||"to"===a.fill.substr(0,2)&&!a._prevtrace),g[o]=a):a._prevtrace=a._nexttrace=a._ownfill=null;return h}},{}],406:[function(e,t,n){"use strict";var r=e("fast-isnumeric");t.exports=function(e){var t=e.marker,n=t.sizeref||1,a=t.sizemin||0,i="area"===t.sizemode?function(e){return Math.sqrt(e/n)}:function(e){return e/n};return function(e){var t=i(e/2);return r(t)&&t>0?Math.max(t,a):0}}},{"fast-isnumeric":18}],407:[function(e,t,n){"use strict";t.exports={container:"marker",min:"cmin",max:"cmax"}},{}],408:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/defaults"),o=e("./subtypes");t.exports=function(e,t,n,l,s,c){var u=o.isBubble(e),f=(e.line||{}).color;c=c||{},f&&(n=f),s("marker.symbol"),s("marker.opacity",u?.7:1),s("marker.size"),s("marker.color",n),a(e,"marker")&&i(e,t,l,s,{prefix:"marker.",cLetter:"c"}),c.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),c.noLine||(s("marker.line.color",f&&!Array.isArray(f)&&t.marker.color!==f?f:u?r.background:r.defaultLine),a(e,"marker.line")&&i(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",u?1:0)),u&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),c.gradient&&"none"!==s("marker.gradient.type")&&s("marker.gradient.color")}},{"../../components/color":52,"../../components/colorscale/defaults":62,"../../components/colorscale/helpers":63,"./subtypes":413}],409:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),i=e("../../lib"),o=i.ensureSingle,l=i.identity,s=e("../../components/drawing"),c=e("./subtypes"),u=e("./line_points"),f=e("./link_traces"),d=e("../../lib/polygon").tester;function p(e,t,n,f,p,h,g){var m;!function(e,t,n,a,o){var l=n.xaxis,s=n.yaxis,u=r.extent(i.simpleMap(l.range,l.r2c)),f=r.extent(i.simpleMap(s.range,s.r2c)),d=a[0].trace;if(c.hasMarkers(d)){var p=d.marker.maxdisplayed;if(0!==p){var h=a.filter((function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=f[0]&&e.y<=f[1]})),g=Math.ceil(h.length/p),m=0;o.forEach((function(e,n){var r=e[0].trace;c.hasMarkers(r)&&r.marker.maxdisplayed>0&&n<t&&m++}));var v=Math.round(m*g/3+Math.floor(m/3)*g/7.1);a.forEach((function(e){delete e.vis})),h.forEach((function(e,t){0===Math.round((t+v)%g)&&(e.vis=!0)}))}}}(0,t,n,f,p);var v=!!g&&g.duration>0;function y(e){return v?e.transition():e}var x=n.xaxis,b=n.yaxis,_=f[0].trace,w=_.line,k=r.select(h),T=o(k,"g","errorbars"),M=o(k,"g","lines"),A=o(k,"g","points"),S=o(k,"g","text");if(a.getComponentMethod("errorbars","plot")(e,T,n,g),!0===_.visible){var L,C;y(k).style("opacity",_.opacity);var O=_.fill.charAt(_.fill.length-1);"x"!==O&&"y"!==O&&(O=""),f[0][n.isRangePlot?"nodeRangePlot3":"node3"]=k;var P,E,z="",D=[],R=_._prevtrace;R&&(z=R._prevRevpath||"",C=R._nextFill,D=R._polygons);var I,N,F,B,j,H,q,V="",U="",G=[],Z=i.noop;if(L=_._ownFill,c.hasLines(_)||"none"!==_.fill){for(C&&C.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(I=s.steps(w.shape),N=s.steps(w.shape.split("").reverse().join(""))):I=N="spline"===w.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?s.smoothclosed(e.slice(1),w.smoothing):s.smoothopen(e,w.smoothing)}:function(e){return"M"+e.join("L")},F=function(e){return N(e.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),q=_._polygons=new Array(G.length),m=0;m<G.length;m++)_._polygons[m]=d(G[m]);G.length&&(B=G[0][0],H=(j=G[G.length-1])[j.length-1]),Z=function(e){return function(t){if(P=I(t),E=F(t),V?O?(V+="L"+P.substr(1),U=E+"L"+U.substr(1)):(V+="Z"+P,U=E+"Z"+U):(V=P,U=E),c.hasLines(_)&&t.length>1){var n=r.select(this);if(n.datum(f),e)y(n.style("opacity",0).attr("d",P).call(s.lineGroupStyle)).style("opacity",1);else{var a=y(n);a.attr("d",P),s.singleLineStyle(f,a)}}}}}var W=M.selectAll(".js-line").data(G);y(W.exit()).style("opacity",0).remove(),W.each(Z(!1)),W.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(s.lineGroupStyle).each(Z(!0)),s.setClipUrl(W,n.layerClipId,e),G.length?(L?(L.datum(f),B&&H&&(O?("y"===O?B[1]=H[1]=b.c2p(0,!0):"x"===O&&(B[0]=H[0]=x.c2p(0,!0)),y(L).attr("d","M"+H+"L"+B+"L"+V.substr(1)).call(s.singleFillStyle)):y(L).attr("d",V+"Z").call(s.singleFillStyle))):C&&("tonext"===_.fill.substr(0,6)&&V&&z?("tonext"===_.fill?y(C).attr("d",V+"Z"+z+"Z").call(s.singleFillStyle):y(C).attr("d",V+"L"+z.substr(1)+"Z").call(s.singleFillStyle),_._polygons=_._polygons.concat(D)):(X(C),_._polygons=null)),_._prevRevpath=U,_._prevPolygons=q):(L?X(L):C&&X(C),_._polygons=_._prevRevpath=_._prevPolygons=null),A.datum(f),S.datum(f),function(t,a,i){var o,u=i[0].trace,f=c.hasMarkers(u),d=c.hasText(u),p=ee(u),h=te,g=te;if(f||d){var m=l,_=u.stackgroup,w=_&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?Q:$:_&&!w&&(m=K),f&&(h=m),d&&(g=m)}var k,T=(o=t.selectAll("path.point").data(h,p)).enter().append("path").classed("point",!0);v&&T.call(s.pointStyle,u,e).call(s.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),o.order(),f&&(k=s.makePointStyleFns(u)),o.each((function(t){var a=r.select(this),i=y(a);s.translatePoint(t,i,x,b)?(s.singlePointStyle(t,i,u,k,e),n.layerClipId&&s.hideOutsideRangePoint(t,i,x,b,u.xcalendar,u.ycalendar),u.customdata&&a.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()})),v?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=a.selectAll("g").data(g,p)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(e){var t=r.select(this),a=y(t.select("text"));s.translatePoint(e,a,x,b)?n.layerClipId&&s.hideOutsideRangePoint(e,t,x,b,u.xcalendar,u.ycalendar):t.remove()})),o.selectAll("text").call(s.textPointStyle,u,e).each((function(e){var t=x.c2p(e.x),n=b.c2p(e.y);r.select(this).selectAll("tspan.line").each((function(){y(r.select(this)).attr({x:t,y:n})}))})),o.exit().remove()}(A,S,f);var Y=!1===_.cliponaxis?null:n.layerClipId;s.setClipUrl(A,Y,e),s.setClipUrl(S,Y,e)}function X(e){y(e).attr("d","M0,0Z")}function $(e){return e.filter((function(e){return!e.gap&&e.vis}))}function Q(e){return e.filter((function(e){return e.vis}))}function K(e){return e.filter((function(e){return!e.gap}))}function J(e){return e.id}function ee(e){if(e.ids)return J}function te(){return!1}}t.exports=function(e,t,n,a,i,c){var u,d,h=!i,g=!!i&&i.duration>0,m=f(e,t,n);(u=a.selectAll("g.trace").data(m,(function(e){return e[0].trace.uid}))).enter().append("g").attr("class",(function(e){return"trace scatter trace"+e[0].trace.uid})).style("stroke-miterlimit",2),u.order(),function(e,t,n){t.each((function(t){var a=o(r.select(this),"g","fills");s.setClipUrl(a,n.layerClipId,e);var i=t[0].trace,c=[];i._ownfill&&c.push("_ownFill"),i._nexttrace&&c.push("_nextFill");var u=a.selectAll("g").data(c,l);u.enter().append("g"),u.exit().each((function(e){i[e]=null})).remove(),u.order().each((function(e){i[e]=o(r.select(this),"path","js-fill")}))}))}(e,u,t),g?(c&&(d=c()),r.transition().duration(i.duration).ease(i.easing).each("end",(function(){d&&d()})).each("interrupt",(function(){d&&d()})).each((function(){a.selectAll("g.trace").each((function(n,r){p(e,r,t,n,m,this,i)}))}))):u.each((function(n,r){p(e,r,t,n,m,this,i)})),h&&u.exit().remove(),a.selectAll("path:not([d])").remove()}},{"../../components/drawing":74,"../../lib":178,"../../lib/polygon":190,"../../registry":269,"./line_points":403,"./link_traces":405,"./subtypes":413,d3:16}],410:[function(e,t,n){"use strict";var r=e("./subtypes");t.exports=function(e,t){var n,a,i,o,l=e.cd,s=e.xaxis,c=e.yaxis,u=[],f=l[0].trace;if(!r.hasMarkers(f)&&!r.hasText(f))return[];if(!1===t)for(n=0;n<l.length;n++)l[n].selected=0;else for(n=0;n<l.length;n++)a=l[n],i=s.c2p(a.x),o=c.c2p(a.y),null!==a.i&&t.contains([i,o],!1,n,e)?(u.push({pointNumber:a.i,x:s.c2d(a.x),y:c.c2d(a.y)}),a.selected=1):a.selected=0;return u}},{"./subtypes":413}],411:[function(e,t,n){"use strict";var r=["orientation","groupnorm","stackgaps"];t.exports=function(e,t,n,a){var i=n._scatterStackOpts,o=a("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var c=s[o],u=!1;c?c.traces.push(t):(c=s[o]={traceIndices:[],traces:[t]},u=!0);for(var f={orientation:t.x&&!t.y?"h":"v"},d=0;d<r.length;d++){var p=r[d],h=p+"Found";if(!c[h]){var g=void 0!==e[p],m="orientation"===p;if((g||u)&&(c[p]=a(p,f[p]),m&&(c.fillDflt="h"===c[p]?"tonextx":"tonexty"),g&&(c[h]=!0,!u&&(delete c.traces[0][p],m))))for(var v=0;v<c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&&(y.fill=c.fillDflt)}}}return c}}},{}],412:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/drawing"),i=e("../../registry");function o(e,t,n){a.pointStyle(e.selectAll("path.point"),t,n)}function l(e,t,n){a.textPointStyle(e.selectAll("text"),t,n)}t.exports={style:function(e){var t=r.select(e).selectAll("g.trace.scatter");t.style("opacity",(function(e){return e[0].trace.opacity})),t.selectAll("g.points").each((function(t){o(r.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.text").each((function(t){l(r.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.trace path.js-line").call(a.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(a.fillGroupStyle),i.getComponentMethod("errorbars","style")(t)},stylePoints:o,styleText:l,styleOnSelect:function(e,t,n){var r=t[0].trace;r.selectedpoints?(a.selectedPointStyle(n.selectAll("path.point"),r),a.selectedTextStyle(n.selectAll("text"),r)):(o(n,r,e),l(n,r,e))}}},{"../../components/drawing":74,"../../registry":269,d3:16}],413:[function(e,t,n){"use strict";var r=e("../../lib");t.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&(e.mode&&-1!==e.mode.indexOf("markers")||"splom"===e.type)},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){return r.isPlainObject(e.marker)&&r.isArrayOrTypedArray(e.marker.size)}}},{"../../lib":178}],414:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t,n,a,i){i=i||{},a("textposition"),r.coerceFont(a,"textfont",n.font),i.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}},{"../../lib":178}],415:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry");t.exports=function(e,t,n,i){var o,l=i("x"),s=i("y");if(a.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],n),l){var c=r.minRowLength(l);s?o=Math.min(c,r.minRowLength(s)):(o=c,i("y0"),i("dy"))}else{if(!s)return 0;o=r.minRowLength(s),i("x0"),i("dx")}return t._length=o,o}},{"../../lib":178,"../../registry":269}],416:[function(e,t,n){"use strict";var r=e("../../plots/template_attributes").hovertemplateAttrs,a=e("../../plots/template_attributes").texttemplateAttrs,i=e("../scatter/attributes"),o=e("../../plots/attributes"),l=e("../../components/colorscale/attributes"),s=e("../../components/drawing/attributes").dash,c=e("../../lib/extend").extendFlat,u=i.marker,f=i.line,d=u.line;t.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:c({},i.mode,{dflt:"markers"}),text:c({},i.text,{}),texttemplate:a({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:c({},i.hovertext,{}),line:{color:f.color,width:f.width,dash:s,shape:c({},f.shape,{values:["linear","spline"]}),smoothing:f.smoothing,editType:"calc"},connectgaps:i.connectgaps,cliponaxis:i.cliponaxis,fill:c({},i.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:i.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:d.width,editType:"calc"},l("marker.line")),gradient:u.gradient,editType:"calc"},l("marker")),textfont:i.textfont,textposition:i.textposition,selected:i.selected,unselected:i.unselected,hoverinfo:c({},o.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:i.hoveron,hovertemplate:r()}},{"../../components/colorscale/attributes":59,"../../components/drawing/attributes":73,"../../lib/extend":173,"../../plots/attributes":219,"../../plots/template_attributes":264,"../scatter/attributes":389}],417:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../scatter/colorscale_calc"),i=e("../scatter/arrays_to_calcdata"),o=e("../scatter/calc_selection"),l=e("../scatter/calc").calcMarkerSize,s=["a","b","c"],c={a:["b","c"],b:["a","c"],c:["a","b"]};t.exports=function(e,t){var n,u,f,d,p,h,g=e._fullLayout[t.subplot].sum,m=t.sum||g,v={a:t.a,b:t.b,c:t.c};for(n=0;n<s.length;n++)if(!v[f=s[n]]){for(p=v[c[f][0]],h=v[c[f][1]],d=new Array(p.length),u=0;u<p.length;u++)d[u]=m-p[u]-h[u];v[f]=d}var y,x,b,_,w,k,T=t._length,M=new Array(T);for(n=0;n<T;n++)y=v.a[n],x=v.b[n],b=v.c[n],r(y)&&r(x)&&r(b)?(1!=(_=g/((y=+y)+(x=+x)+(b=+b)))&&(y*=_,x*=_,b*=_),k=y,w=b-x,M[n]={x:w,y:k,a:y,b:x,c:b}):M[n]={x:!1,y:!1};return l(t,T),a(e,t),i(M,t),o(M,t),M}},{"../scatter/arrays_to_calcdata":388,"../scatter/calc":390,"../scatter/calc_selection":391,"../scatter/colorscale_calc":392,"fast-isnumeric":18}],418:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatter/constants"),i=e("../scatter/subtypes"),o=e("../scatter/marker_defaults"),l=e("../scatter/line_defaults"),s=e("../scatter/line_shape_defaults"),c=e("../scatter/text_defaults"),u=e("../scatter/fillcolor_defaults"),f=e("./attributes");t.exports=function(e,t,n,d){function p(n,a){return r.coerce(e,t,f,n,a)}var h,g=p("a"),m=p("b"),v=p("c");if(g?(h=g.length,m?(h=Math.min(h,m.length),v&&(h=Math.min(h,v.length))):h=v?Math.min(h,v.length):0):m&&v&&(h=Math.min(m.length,v.length)),h){t._length=h,p("sum"),p("text"),p("hovertext"),"fills"!==t.hoveron&&p("hovertemplate"),p("mode",h<a.PTS_LINESONLY?"lines+markers":"lines"),i.hasLines(t)&&(l(e,t,n,d,p),s(e,t,p),p("connectgaps")),i.hasMarkers(t)&&o(e,t,n,d,p,{gradient:!0}),i.hasText(t)&&(p("texttemplate"),c(e,t,d,p));var y=[];(i.hasMarkers(t)||i.hasText(t))&&(p("cliponaxis"),p("marker.maxdisplayed"),y.push("points")),p("fill"),"none"!==t.fill&&(u(e,t,n,p),i.hasLines(t)||s(e,t,p)),"tonext"!==t.fill&&"toself"!==t.fill||y.push("fills"),p("hoveron",y.join("+")||"points"),r.coerceSelectionMarkerOpacity(t,p)}else t.visible=!1}},{"../../lib":178,"../scatter/constants":393,"../scatter/fillcolor_defaults":397,"../scatter/line_defaults":402,"../scatter/line_shape_defaults":404,"../scatter/marker_defaults":408,"../scatter/subtypes":413,"../scatter/text_defaults":414,"./attributes":416}],419:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a){if(t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),r[a]){var i=r[a];e.a=i.a,e.b=i.b,e.c=i.c}else e.a=t.a,e.b=t.b,e.c=t.c;return e}},{}],420:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes");t.exports=function(e,t,n){var a={},i=n[t.subplot]._subplot;return a.aLabel=r.tickText(i.aaxis,e.a,!0).text,a.bLabel=r.tickText(i.baxis,e.b,!0).text,a.cLabel=r.tickText(i.caxis,e.c,!0).text,a}},{"../../plots/cartesian/axes":222}],421:[function(e,t,n){"use strict";var r=e("../scatter/hover");t.exports=function(e,t,n,a){var i=r(e,t,n,a);if(i&&!1!==i[0].index){var o=i[0];if(void 0===o.index){var l=1-o.y0/e.ya._length,s=e.xa._length,c=s*l/2,u=s-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),i}var f=o.cd[o.index],d=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var h={};h[d.subplot]={_subplot:p};var g=d._module.formatLabels(f,d,h);o.aLabel=g.aLabel,o.bLabel=g.bLabel,o.cLabel=g.cLabel;var m=f.hi||d.hoverinfo,v=[];if(!d.hovertemplate){var y=m.split("+");-1!==y.indexOf("all")&&(y=["a","b","c"]),-1!==y.indexOf("a")&&x(p.aaxis,o.aLabel),-1!==y.indexOf("b")&&x(p.baxis,o.bLabel),-1!==y.indexOf("c")&&x(p.caxis,o.cLabel)}return o.extraText=v.join("<br>"),o.hovertemplate=d.hovertemplate,i}function x(e,t){v.push(e._hovertitle+": "+t)}}},{"../scatter/hover":400}],422:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("./calc"),plot:e("./plot"),style:e("../scatter/style").style,styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../scatter/select"),eventData:e("./event_data"),moduleType:"trace",name:"scatterternary",basePlotModule:e("../../plots/ternary"),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/ternary":265,"../scatter/marker_colorbar":407,"../scatter/select":410,"../scatter/style":412,"./attributes":416,"./calc":417,"./defaults":418,"./event_data":419,"./format_labels":420,"./hover":421,"./plot":423}],423:[function(e,t,n){"use strict";var r=e("../scatter/plot");t.exports=function(e,t,n){var a=t.plotContainer;a.select(".scatterlayer").selectAll("*").remove();var i={xaxis:t.xaxis,yaxis:t.yaxis,plot:a,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},o=t.layers.frontplot.select("g.scatterlayer");r(e,i,n,o)}},{"../scatter/plot":409}],424:[function(e,t,n){"use strict";var r=e("../box/attributes"),a=e("../../lib/extend").extendFlat;t.exports={y:r.y,x:r.x,x0:r.x0,y0:r.y0,name:a({},r.name,{}),orientation:a({},r.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:r.fillcolor,points:a({},r.boxpoints,{}),jitter:a({},r.jitter,{}),pointpos:a({},r.pointpos,{}),width:a({},r.width,{}),marker:r.marker,text:r.text,hovertext:r.hovertext,hovertemplate:r.hovertemplate,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup,selected:r.selected,unselected:r.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"}}},{"../../lib/extend":173,"../box/attributes":296}],425:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../box/calc"),o=e("./helpers"),l=e("../../constants/numerical").BADNUM;function s(e,t,n){var a=t.max-t.min;if(!a)return e.bandwidth?e.bandwidth:0;if(e.bandwidth)return Math.max(e.bandwidth,a/1e4);var i=n.length,o=r.stdev(n,i-1,t.mean);return Math.max(function(e,t,n){return 1.059*Math.min(t,n/1.349)*Math.pow(e,-.2)}(i,o,t.q3-t.q1),a/100)}function c(e,t,n,r){var i,o=e.spanmode,s=e.span||[],c=[t.min,t.max],u=[t.min-2*r,t.max+2*r];function f(r){var a=s[r],i="multicategory"===n.type?n.r2c(a):n.d2c(a,0,e[t.valLetter+"calendar"]);return i===l?u[r]:i}var d={type:"linear",range:i="soft"===o?u:"hard"===o?c:[f(0),f(1)]};return a.setConvert(d),d.cleanRange(),i}t.exports=function(e,t){var n=i(e,t);if(n[0].t.empty)return n;for(var l=e._fullLayout,u=a.getFromId(e,t["h"===t.orientation?"xaxis":"yaxis"]),f=1/0,d=-1/0,p=0,h=0,g=0;g<n.length;g++){var m=n[g],v=m.pts.map(o.extractVal),y=m.bandwidth=s(t,m,v),x=m.span=c(t,m,u,y);if(m.min===m.max&&0===y)x=m.span=[m.min,m.max],m.density=[{v:1,t:x[0]}],m.bandwidth=y,p=Math.max(p,1);else{var b=x[1]-x[0],_=Math.ceil(b/(y/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return r.error("Something went wrong with computing the violin span"),n[0].t.empty=!0,n;var k=o.makeKDE(m,t,v);m.density=new Array(_);for(var T=0,M=x[0];M<x[1]+w/2;T++,M+=w){var A=k(M);m.density[T]={v:A,t:M},p=Math.max(p,A)}}h=Math.max(h,v.length),f=Math.min(f,x[0]),d=Math.max(d,x[1])}var S=a.findExtremes(u,[f,d],{padded:!0});if(t._extremes[u._id]=S,t.width)n[0].t.maxKDE=p;else{var L=l._violinScaleGroupStats,C=t.scalegroup,O=L[C];O?(O.maxKDE=Math.max(O.maxKDE,p),O.maxCount=Math.max(O.maxCount,h)):L[C]={maxKDE:p,maxCount:h}}return n[0].t.labels.kde=r._(e,"kde:"),n}},{"../../constants/numerical":158,"../../lib":178,"../../plots/cartesian/axes":222,"../box/calc":297,"./helpers":428}],426:[function(e,t,n){"use strict";var r=e("../box/cross_trace_calc").setPositionOffset,a=["v","h"];t.exports=function(e,t){for(var n=e.calcdata,i=t.xaxis,o=t.yaxis,l=0;l<a.length;l++){for(var s=a[l],c="h"===s?o:i,u=[],f=0;f<n.length;f++){var d=n[f],p=d[0].t,h=d[0].trace;!0!==h.visible||"violin"!==h.type||p.empty||h.orientation!==s||h.xaxis!==i._id||h.yaxis!==o._id||u.push(f)}r("violin",e,u,c)}}},{"../box/cross_trace_calc":298}],427:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color"),i=e("../box/defaults"),o=e("./attributes");t.exports=function(e,t,n,l){function s(n,a){return r.coerce(e,t,o,n,a)}function c(n,a){return r.coerce2(e,t,o,n,a)}if(i.handleSampleDefaults(e,t,s,l),!1!==t.visible){s("bandwidth"),s("side"),s("width")||(s("scalegroup",t.name),s("scalemode"));var u,f=s("span");Array.isArray(f)&&(u="manual"),s("spanmode",u);var d=s("line.color",(e.marker||{}).color||n),p=s("line.width"),h=s("fillcolor",a.addOpacity(t.line.color,.5));i.handlePointsDefaults(e,t,s,{prefix:""});var g=c("box.width"),m=c("box.fillcolor",h),v=c("box.line.color",d),y=c("box.line.width",p);s("box.visible",Boolean(g||m||v||y))||(t.box={visible:!1});var x=c("meanline.color",d),b=c("meanline.width",p);s("meanline.visible",Boolean(x||b))||(t.meanline={visible:!1})}}},{"../../components/color":52,"../../lib":178,"../box/defaults":299,"./attributes":424}],428:[function(e,t,n){"use strict";var r=e("../../lib"),a=function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)};n.makeKDE=function(e,t,n){var r=n.length,i=a,o=e.bandwidth,l=1/(r*o);return function(e){for(var t=0,a=0;a<r;a++)t+=i((e-n[a])/o);return l*t}},n.getPositionOnKdePath=function(e,t,n){var a,i;"h"===t.orientation?(a="y",i="x"):(a="x",i="y");var o=r.findPointOnPath(e.path,n,i,{pathLength:e.pathLength}),l=e.posCenterPx,s=o[a];return[s,"both"===t.side?2*l-s:l]},n.getKdeValue=function(e,t,r){var a=e.pts.map(n.extractVal);return n.makeKDE(e,t,a)(r)/e.posDensityScale},n.extractVal=function(e){return e.v}},{"../../lib":178}],429:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../box/hover"),o=e("./helpers");t.exports=function(e,t,n,l,s){var c,u,f=e.cd,d=f[0].trace,p=d.hoveron,h=-1!==p.indexOf("violins"),g=-1!==p.indexOf("kde"),m=[];if(h||g){var v=i.hoverOnBoxes(e,t,n,l);if(g&&v.length>0){var y,x,b,_,w,k=e.xa,T=e.ya;"h"===d.orientation?(w=t,y="y",b=T,x="x",_=k):(w=n,y="x",b=k,x="y",_=T);var M=f[e.index];if(w>=M.span[0]&&w<=M.span[1]){var A=r.extendFlat({},e),S=_.c2p(w,!0),L=o.getKdeValue(M,d,w),C=o.getPositionOnKdePath(M,d,S),O=b._offset,P=b._length;A[y+"0"]=C[0],A[y+"1"]=C[1],A[x+"0"]=A[x+"1"]=S,A[x+"Label"]=x+": "+a.hoverLabelText(_,w)+", "+f[0].t.labels.kde+" "+L.toFixed(3),A.spikeDistance=v[0].spikeDistance;var E=y+"Spike";A[E]=v[0][E],v[0].spikeDistance=void 0,v[0][E]=void 0,A.hovertemplate=!1,m.push(A),(u={stroke:e.color})[y+"1"]=r.constrain(O+C[0],O,O+P),u[y+"2"]=r.constrain(O+C[1],O,O+P),u[x+"1"]=u[x+"2"]=_._offset+S}}h&&(m=m.concat(v))}-1!==p.indexOf("points")&&(c=i.hoverOnPoints(e,t,n));var z=s.selectAll(".violinline-"+d.uid).data(u?[0]:[]);return z.enter().append("line").classed("violinline-"+d.uid,!0).attr("stroke-width",1.5),z.exit().remove(),z.attr(u),"closest"===l?c?[c]:m:c?(m.push(c),m):m}},{"../../lib":178,"../../plots/cartesian/axes":222,"../box/hover":301,"./helpers":428}],430:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("../box/defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc"),plot:e("./plot"),style:e("./style"),styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../box/select"),moduleType:"trace",name:"violin",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}},{"../../plots/cartesian":235,"../box/defaults":299,"../box/select":306,"../scatter/style":412,"./attributes":424,"./calc":425,"./cross_trace_calc":426,"./defaults":427,"./hover":429,"./layout_attributes":431,"./layout_defaults":432,"./plot":433,"./style":434}],431:[function(e,t,n){"use strict";var r=e("../box/layout_attributes"),a=e("../../lib").extendFlat;t.exports={violinmode:a({},r.boxmode,{}),violingap:a({},r.boxgap,{}),violingroupgap:a({},r.boxgroupgap,{})}},{"../../lib":178,"../box/layout_attributes":303}],432:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes"),i=e("../box/layout_defaults");t.exports=function(e,t,n){i._supply(e,t,n,(function(n,i){return r.coerce(e,t,a,n,i)}),"violin")}},{"../../lib":178,"../box/layout_defaults":304,"./layout_attributes":431}],433:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),i=e("../../components/drawing"),o=e("../box/plot"),l=e("../scatter/line_points"),s=e("./helpers");t.exports=function(e,t,n,c){var u=e._fullLayout,f=t.xaxis,d=t.yaxis;function p(e){var t=l(e,{xaxis:f,yaxis:d,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return i.smoothopen(t[0],1)}a.makeTraceGroups(c,n,"trace violins").each((function(e){var n=r.select(this),i=e[0],l=i.t,c=i.trace;if(!0!==c.visible||l.empty)n.remove();else{var h=l.bPos,g=l.bdPos,m=t[l.valLetter+"axis"],v=t[l.posLetter+"axis"],y="both"===c.side,x=y||"positive"===c.side,b=y||"negative"===c.side,_=n.selectAll("path.violin").data(a.identity);_.enter().append("path").style("vector-effect","non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each((function(e){var t,n,a,i,o,s,f,d,_=r.select(this),w=e.density,k=w.length,T=v.c2l(e.pos+h,!0),M=v.l2p(T);if(c.width)t=l.maxKDE/g;else{var A=u._violinScaleGroupStats[c.scalegroup];t="count"===c.scalemode?A.maxKDE/g*(A.maxCount/e.pts.length):A.maxKDE/g}if(x){for(f=new Array(k),o=0;o<k;o++)(d=f[o]={})[l.posLetter]=T+w[o].v/t,d[l.valLetter]=m.c2l(w[o].t,!0);n=p(f)}if(b){for(f=new Array(k),s=0,o=k-1;s<k;s++,o--)(d=f[s]={})[l.posLetter]=T-w[o].v/t,d[l.valLetter]=m.c2l(w[o].t,!0);a=p(f)}if(y)i=n+"L"+a.substr(1)+"Z";else{var S=[M,m.c2p(w[0].t)],L=[M,m.c2p(w[k-1].t)];"h"===c.orientation&&(S.reverse(),L.reverse()),i=x?"M"+S+"L"+n.substr(1)+"L"+L:"M"+L+"L"+a.substr(1)+"L"+S}_.attr("d",i),e.posCenterPx=M,e.posDensityScale=t*g,e.path=_.node(),e.pathLength=e.path.getTotalLength()/(y?2:1)}));var w,k,T,M=c.box,A=M.width,S=(M.line||{}).width;y?(w=g*A,k=0):x?(w=[0,g*A/2],k=S*{x:1,y:-1}[l.posLetter]):(w=[g*A/2,0],k=S*{x:-1,y:1}[l.posLetter]),o.plotBoxAndWhiskers(n,{pos:v,val:m},c,{bPos:h,bdPos:w,bPosPxOffset:k}),o.plotBoxMean(n,{pos:v,val:m},c,{bPos:h,bdPos:w,bPosPxOffset:k}),!c.box.visible&&c.meanline.visible&&(T=a.identity);var L=n.selectAll("path.meanline").data(T||[]);L.enter().append("path").attr("class","meanline").style("fill","none").style("vector-effect","non-scaling-stroke"),L.exit().remove(),L.each((function(e){var t=m.c2p(e.mean,!0),n=s.getPositionOnKdePath(e,c,t);r.select(this).attr("d","h"===c.orientation?"M"+t+","+n[0]+"V"+n[1]:"M"+n[0]+","+t+"H"+n[1])})),o.plotPoints(n,{x:f,y:d},c,l)}}))}},{"../../components/drawing":74,"../../lib":178,"../box/plot":305,"../scatter/line_points":403,"./helpers":428,d3:16}],434:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/color"),i=e("../scatter/style").stylePoints;t.exports=function(e){var t=r.select(e).selectAll("g.trace.violins");t.style("opacity",(function(e){return e[0].trace.opacity})),t.each((function(t){var n=t[0].trace,o=r.select(this),l=n.box||{},s=l.line||{},c=n.meanline||{},u=c.width;o.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(a.stroke,n.line.color).call(a.fill,n.fillcolor),o.selectAll("path.box").style("stroke-width",s.width+"px").call(a.stroke,s.color).call(a.fill,l.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};o.selectAll("path.mean").style(f).call(a.stroke,c.color),o.selectAll("path.meanline").style(f).call(a.stroke,c.color),i(o,n,e)}))}},{"../../components/color":52,"../scatter/style":412,d3:16}],435:[function(e,t,n){"use strict";n.version="1.54.1"},{}]},{},[11])(11)}).call(this,n(4))}]]);</script><script type="text/javascript">!function(e){function t(t){for(var n,l,o=t[0],i=t[1],c=t[2],m=0,p=[];m<o.length;m++)l=o[m],r[l]&&p.push(r[l][0]),r[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(d&&d(t);p.length;)p.shift()();return s.push.apply(s,c||[]),a()}function a(){for(var e,t=0;t<s.length;t++){for(var a=s[t],n=!0,o=1;o<a.length;o++){var i=a[o];0!==r[i]&&(n=!1)}n&&(s.splice(t--,1),e=l(l.s=a[0]))}return e}var n={},r={0:0},s=[];function l(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,l),a.l=!0,a.exports}l.m=e,l.c=n,l.d=function(e,t,a){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(l.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(a,n,function(t){return e[t]}.bind(null,n));return a},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="";var o=window.webpackJsonp=window.webpackJsonp||[],i=o.push.bind(o);o.push=t,o=o.slice();for(var c=0;c<o.length;c++)t(o[c]);var d=i;s.push([6,1]),a()}([,function(e,t,a){var n=a(12);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};a(14)(n,r);n.locals&&(e.exports=n.locals)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=a(0);var r,s,l=a(5).jStat;!function(e){e[e.DisplayMean=0]="DisplayMean",e[e.DisplayMedian=1]="DisplayMedian",e[e.CompareAgainst=2]="CompareAgainst",e[e.HighlightVariance=3]="HighlightVariance",e[e.BoxPlot=4]="BoxPlot"}(r=t.DisplayMode||(t.DisplayMode={}));class o{constructor(e){this.type=e}}t.DisplayModeCompare=class{constructor(e){this.compareAgainst=e,this.type=r.CompareAgainst}},t.DisplayMode_Mean=new o(r.DisplayMean),t.DisplayMode_Median=new o(r.DisplayMedian),t.DisplayMode_HighlightVariance=new o(r.HighlightVariance),t.DisplayMode_BoxPlot=new o(r.BoxPlot),function(e){e[e.CPU=0]="CPU",e[e.MEM=1]="MEM",e[e.STARTUP=2]="STARTUP"}(s=t.BenchmarkType||(t.BenchmarkType={})),t.SORT_BY_NAME="SORT_BY_NAME",t.SORT_BY_GEOMMEAN_CPU="SORT_BY_GEOMMEAN_CPU",t.SORT_BY_GEOMMEAN_MEM="SORT_BY_GEOMMEAN_MEM",t.SORT_BY_GEOMMEAN_STARTUP="SORT_BY_GEOMMEAN_STARTUP";let i=function(e){if(e<2){let t=e-1,a=191*(1-t)+236*t,n=124*(1-t)+132*t;return`rgb(${(99*(1-t)+255*t).toFixed(0)}, ${a.toFixed(0)}, ${n.toFixed(0)})`}{let t=Math.min((e-2)/2,1),a=236*(1-t)+105*t,n=132*(1-t)+108*t;return`rgb(${(255*(1-t)+249*t).toFixed(0)}, ${a.toFixed(0)}, ${n.toFixed(0)})`}};class c{constructor(e,t,a,n,r,s,l,o,i){this.key=e,this.value=t,this.formattedValue=a,this.deviation=n,this.factor=r,this.formattedFactor=s,this.bgColor=l,this.textColor=o,this.statisticallySignificantFactor=i}render(){let e=this.bgColor,t=this.textColor;return n.createElement("td",{key:this.key,style:{backgroundColor:e,color:t}},n.createElement("span",{className:"mean"},this.formattedValue),n.createElement("span",{className:"deviation"},this.deviation),n.createElement("br",null),n.createElement("span",{className:"factor"},"(",this.formattedFactor,")"),this.statisticallySignificantFactor&&n.createElement(n.Fragment,null,n.createElement("br",null),n.createElement("span",{className:"factor"},this.statisticallySignificantFactor)))}}t.TableResultValueEntry=c;class d{constructor(e,t,a){this.key=e,this.mean=t,this.color=a}render(){return n.createElement("th",{key:this.key,style:{backgroundColor:this.color}},this.mean.toFixed(2))}}t.TableResultGeommeanEntry=d,t.convertToMap=function(e){let t=new Map;return e.forEach(e=>{t.has(e.benchmark)||t.set(e.benchmark,new Map),t.get(e.benchmark).set(e.framework,e)}),(e,a)=>{let n=t.get(e.id);if(!n)return null;let r=n.get(a.name);return r||null}};const m=new Intl.NumberFormat("en-US",{minimumFractionDigits:1,maximumFractionDigits:1,useGrouping:!0});t.ResultTableData=class{constructor(e,t,a,n,r,s,l,o){this.allFrameworks=e,this.allBenchmarks=t,this.results=a,this.selectedFrameworks=n,this.selectedBenchmarks=r,this.displayMode=o,this.filterResults=function(e,t,a){return t.reduce((t,n)=>{let r=a.filter(t=>t.benchmark===e.id&&t.framework===n.name);return 1===r.length?t.push(r[0]):t.push(null),t},new Array)},this.frameworks=this.allFrameworks.filter(e=>(void 0===s||e.keyed!==s)&&n.has(e)),this.update(l)}update(e){console.time("update"),this.benchmarksCPU=this.allBenchmarks.filter(e=>e.type===s.CPU&&this.selectedBenchmarks.has(e)),this.benchmarksStartup=this.allBenchmarks.filter(e=>e.type===s.STARTUP&&this.selectedBenchmarks.has(e)),this.benchmarksMEM=this.allBenchmarks.filter(e=>e.type===s.MEM&&this.selectedBenchmarks.has(e)),this.resultsCPU=this.benchmarksCPU.map(e=>this.computeFactors(e,!0)),this.resultsStartup=this.benchmarksStartup.map(e=>this.computeFactors(e,!0)),this.resultsMEM=this.benchmarksMEM.map(e=>this.computeFactors(e,!1)),this.geomMeanCPU=this.frameworks.map((e,t)=>{let a=this.resultsCPU.map(e=>e[t]);return this.computeGeometricMean(e,this.benchmarksCPU,a)}),this.geomMeanStartup=this.frameworks.map((e,t)=>{let a=this.resultsStartup.map(e=>e[t]);return this.computeGeometricMean(e,this.benchmarksStartup,a)}),this.geomMeanMEM=this.frameworks.map((e,t)=>{let a=this.resultsMEM.map(e=>e[t]);return this.computeGeometricMean(e,this.benchmarksMEM,a)}),this.sortBy(e),console.timeEnd("update")}sortBy(e){let a=this.frameworks.map((a,n)=>{let r;if(e===t.SORT_BY_NAME)r=a.name;else if(e===t.SORT_BY_GEOMMEAN_CPU)r=this.geomMeanCPU[n].mean||Number.POSITIVE_INFINITY;else if(e===t.SORT_BY_GEOMMEAN_MEM)r=this.geomMeanMEM[n].mean||Number.POSITIVE_INFINITY;else if(e===t.SORT_BY_GEOMMEAN_STARTUP)r=this.geomMeanStartup[n].mean||Number.POSITIVE_INFINITY;else{let t=this.benchmarksCPU.findIndex(t=>t.id===e),a=this.benchmarksStartup.findIndex(t=>t.id===e),s=this.benchmarksMEM.findIndex(t=>t.id===e);if(t>-1)r=null==this.resultsCPU[t][n]?Number.POSITIVE_INFINITY:this.resultsCPU[t][n].value;else if(a>-1)r=null==this.resultsStartup[a][n]?Number.POSITIVE_INFINITY:this.resultsStartup[a][n].value;else{if(!(s>-1))throw`sortKey ${e} not found`;r=null==this.resultsMEM[s][n]?Number.POSITIVE_INFINITY:this.resultsMEM[s][n].value}}return{framework:a,origIndex:n,sortValue:r}});a.sort((e,t)=>e.sortValue<t.sortValue?-1:e.sortValue==t.sortValue?0:1);let n=a.map(e=>e.origIndex);this.frameworks=this.remap(n,this.frameworks),this.resultsCPU=this.resultsCPU.map(e=>this.remap(n,e)),this.resultsStartup=this.resultsStartup.map(e=>this.remap(n,e)),this.resultsMEM=this.resultsMEM.map(e=>this.remap(n,e)),this.geomMeanCPU=this.remap(n,this.geomMeanCPU),this.geomMeanMEM=this.remap(n,this.geomMeanMEM),this.geomMeanStartup=this.remap(n,this.geomMeanStartup)}remap(e,t){let a=new Array(t.length);return e.forEach((e,n)=>{a[n]=t[e]}),a}computeGeometricMean(e,t,a){let n=0,r=a.reduce((e,t)=>(null!==t&&(n++,e*=t.factor),e),1),s=Math.pow(r,1/n);return new d(e.name,s,i(s))}computeFactors(e,t){let a=this.frameworks.map(t=>this.results(e,t)),n=e=>null===e?0:this.displayMode.type===r.DisplayMean?e.mean:this.displayMode.type===r.DisplayMedian?e.median:this.displayMode.type===r.HighlightVariance?(e.standardDeviation||0)/e.mean*100:e.mean,s=a.reduce((e,t)=>null===t?e:Math.min(e,n(t)),Number.POSITIVE_INFINITY);return this.frameworks.map(t=>{let a=this.results(e,t);if(null===a)return null;let o=n(a),d=o/s;if(this.displayMode.type===r.DisplayMean){let e=(1.959964*(a.standardDeviation||0)/Math.sqrt(a.values.length)).toFixed(1),n=m.format(o);return new c(t.name,o,n,e,d,d.toFixed(2),i(d),"#000")}if(this.displayMode.type===r.BoxPlot){let e=(1.959964*(a.standardDeviation||0)/Math.sqrt(a.values.length)).toFixed(1),n=m.format(o);return new c(t.name,o,n,e,d,d.toFixed(2),i(d),"#000")}if(this.displayMode.type===r.DisplayMedian){let e=(1.959964*(a.standardDeviation||0)/Math.sqrt(a.values.length)).toFixed(1),n=m.format(o);return new c(t.name,o,n,e,d,d.toFixed(2),i(d),"#000")}if(this.displayMode.type===r.HighlightVariance){let n=m.format(a.mean),r=a.standardDeviation||0,s=r.toFixed(1),l=r/a.mean*100;return console.log("variance ",t.name,e.id,r,o,l),new c(t.name,o,n,s,l,l.toFixed(2)+"%",i(l/5+1),"#000")}if(this.displayMode.type===r.CompareAgainst&&this.displayMode.compareAgainst){let n=this.results(e,this.displayMode.compareAgainst),r=(1.959964*(a.standardDeviation||0)/Math.sqrt(a.values.length)).toFixed(1),s=m.format(o),i=void 0,p=void 0,h=n.mean,u=a.standardDeviation||0,y=n.standardDeviation||0,b=o,k=h,f=u*u,w=y*y,M=10,v=10,E=Math.pow(f/M+w/v,2)/(f*f/(M*M*(M-1))+w*w/(v*v*(v-1))),g=(b-k)/Math.sqrt(f/M+w/v),S=2*(1-l.studentt.cdf(Math.abs(g),E));return p=function(e,t){if(t>.1)return["#fff","#000"];if(e<0){let e=10*(.1-t),a=255*(1-e)+160*e,n=0;return[`rgb(${(0).toFixed(0)}, ${a.toFixed(0)}, ${n.toFixed(0)})`,"#fff"]}{let e=10*(.1-t),a=0,n=0;return[`rgb(${(255*(1-e)+160*e).toFixed(0)}, ${a.toFixed(0)}, ${n.toFixed(0)})`,"#fff"]}}(g,S),i=(100*S).toFixed(3)+"%",new c(t.name,o,s,r,d,d.toFixed(2),p[0],p[1],i)}return null})}}},,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=a(0),r=a(8);a(1);const s=a(16),l=a(2),o=a(17),i=a(22);var c=a(5).jStat;let d=[{issue:634,text:"The HTML structure for the implementation is not fully correct.",link:"https://github.com/krausest/js-framework-benchmark/issues/634"},{issue:694,text:"Keyed implementations must move the DOM nodes for swap rows ",link:"https://github.com/krausest/js-framework-benchmark/issues/694"}],m=s.results.map(e=>Object.assign({framework:e.f,benchmark:e.b,values:e.v},{mean:e.v?c.mean(e.v):Number.NaN,median:e.v?c.median(e.v):Number.NaN,standardDeviation:e.v?c.stdev(e.v,!0):Number.NaN})),p=s.benchmarks.reduce((e,t)=>e.add(t),new Set),h=s.frameworks.reduce((e,t)=>e.add(t),new Set),u=l.convertToMap(m);class y extends n.Component{constructor(e){super(e),this.benchSelect=e=>({selectAll:t=>{t.preventDefault();let a=this.state.selectedBenchmarks;s.benchmarks.forEach(t=>{t.type===e&&a.add(t)}),this.nextState.selectedBenchmarks=a,this.setState({selectedBenchmarks:a,resultTables:this.updateResultTable()})},selectNone:t=>{t.preventDefault();let a=this.state.selectedBenchmarks;s.benchmarks.forEach(t=>{t.type===e&&a.delete(t)}),this.nextState.selectedBenchmarks=a,this.nextState.sortKey=l.SORT_BY_NAME,this.setState({selectedBenchmarks:a,sortKey:l.SORT_BY_NAME,resultTables:this.updateResultTable()})},areAllSelected:()=>s.benchmarks.filter(t=>t.type===e).every(e=>this.state.selectedBenchmarks.has(e)),isNoneSelected:()=>s.benchmarks.filter(t=>t.type===e).every(e=>!this.state.selectedBenchmarks.has(e)),isSelected:e=>this.state.selectedBenchmarks.has(e)}),this.frameworkSelect=e=>({selectAll:t=>{t.preventDefault();let a=this.state.selectedFrameworks;s.frameworks.forEach(t=>{t.keyed!==e||a.has(t)||a.add(t)}),this.nextState.selectedFrameworks=a,this.setState({selectedFrameworks:a,resultTables:this.updateResultTable()})},selectNone:t=>{t.preventDefault();let a=this.state.selectedFrameworks;a.forEach(t=>{t.keyed===e&&a.delete(t)}),this.nextState.selectedFrameworks=a,this.setState({selectedFrameworks:a,resultTables:this.updateResultTable()})},areAllSelected:()=>s.frameworks.filter(t=>t.keyed===e).every(e=>this.state.selectedFrameworks.has(e)),isNoneSelected:()=>s.frameworks.filter(t=>t.keyed===e).every(e=>!this.state.selectedFrameworks.has(e)),isSelected:e=>this.state.selectedFrameworks.has(e)}),this.benchSelectCpu=this.benchSelect(l.BenchmarkType.CPU),this.benchSelectStartup=this.benchSelect(l.BenchmarkType.STARTUP),this.benchSelectMem=this.benchSelect(l.BenchmarkType.MEM),this.frameworkSelectKeyed=this.frameworkSelect(!0),this.frameworkSelectNonKeyed=this.frameworkSelect(!1),this.selectBenchmark=(e,t)=>{let a=new Set;this.state.selectedBenchmarks.forEach(e=>a.add(e)),a.has(e)?a.delete(e):a.add(e);let n=this.state.sortKey,r=new Set;a.forEach(e=>r.add(e.id)),n==l.SORT_BY_NAME||n==l.SORT_BY_GEOMMEAN_CPU||n==l.SORT_BY_GEOMMEAN_MEM||n==l.SORT_BY_GEOMMEAN_STARTUP||r.has(n)||(n=l.SORT_BY_NAME),this.nextState.selectedBenchmarks=a,this.setState({selectedBenchmarks:a,sortKey:n,resultTables:this.updateResultTable()})},this.selectFramework=(e,t)=>{let a=new Set;this.state.selectedFrameworks.forEach(e=>a.add(e)),a.has(e)?a.delete(e):a.add(e),this.nextState.selectedFrameworks=a,this.setState({selectedFrameworks:a,resultTables:this.updateResultTable()})},this.selectSeparateKeyedAndNonKeyed=e=>{this.nextState.separateKeyedAndNonKeyed=e,this.setState({separateKeyedAndNonKeyed:e,resultTables:this.updateResultTable()})},this.selectDisplayMode=e=>{let t=Number(e);this.nextState.displayMode=(e=>{switch(t){case l.DisplayMode.DisplayMean:return l.DisplayMode_Mean;case l.DisplayMode.DisplayMedian:return l.DisplayMode_Median;case l.DisplayMode.CompareAgainst:return new l.DisplayModeCompare(void 0);case l.DisplayMode.HighlightVariance:return l.DisplayMode_HighlightVariance;case l.DisplayMode.BoxPlot:return l.DisplayMode_BoxPlot}})(),this.setState({displayMode:this.nextState.displayMode,resultTables:this.updateResultTable()})},this.selectComparison=e=>{let t=void 0;t=this.state.frameworksKeyed.find(t=>t.name===e),t||(t=this.state.frameworksNonKeyed.find(t=>t.name===e)),this.nextState.displayMode=new l.DisplayModeCompare(t),this.setState({displayMode:this.nextState.displayMode,resultTables:this.updateResultTable()})},this.sortBy=(e,t)=>{this.state.resultTables[t].sortBy(e),this.nextState.sortKey=e,this.nextState.resultTables=this.updateResultTable(),this.setState({sortKey:e,resultTables:this.nextState.resultTables})},this.nextState={benchmarks:s.benchmarks,benchmarksCPU:s.benchmarks.filter(e=>e.type===l.BenchmarkType.CPU),benchmarksStartup:s.benchmarks.filter(e=>e.type===l.BenchmarkType.STARTUP),benchmarksMEM:s.benchmarks.filter(e=>e.type===l.BenchmarkType.MEM),frameworks:s.frameworks,frameworksKeyed:s.frameworks.filter(e=>!0===e.keyed),frameworksNonKeyed:s.frameworks.filter(e=>!1===e.keyed),selectedBenchmarks:p,selectedFrameworks:h,separateKeyedAndNonKeyed:!1,resultTables:[],sortKey:l.SORT_BY_GEOMMEAN_CPU,displayMode:l.DisplayMode_Mean},this.nextState.resultTables=this.updateResultTable(),this.state=this.nextState}updateResultTable(){return this.nextState.separateKeyedAndNonKeyed?[new l.ResultTableData(s.frameworks,s.benchmarks,u,this.nextState.selectedFrameworks,this.nextState.selectedBenchmarks,!1,this.nextState.sortKey,this.nextState.displayMode),new l.ResultTableData(s.frameworks,s.benchmarks,u,this.nextState.selectedFrameworks,this.nextState.selectedBenchmarks,!0,this.nextState.sortKey,this.nextState.displayMode)]:[new l.ResultTableData(s.frameworks,s.benchmarks,u,this.nextState.selectedFrameworks,this.nextState.selectedBenchmarks,void 0,this.nextState.sortKey,this.nextState.displayMode)]}render(){let e=n.createElement("p",null,"Warning: These results are preliminary - use with caution (they may e.g. be from different browser versions).Official results are published on my ",n.createElement("a",{href:"http://www.stefankrause.net/"},"blog"),".");return n.createElement("div",null,e,n.createElement("p",null,"The benchmark was run on a Razer Blade 15 Advanced (i7-8750H, 32 GB RAM, Ubuntu 20.04 (Linux 5.4.0-21, mitigations=off), Chrome 81.0.4044.113 (64-bit))"),n.createElement(o.SelectBar,{benchmarksCPU:this.state.benchmarksCPU,benchmarksStartup:this.state.benchmarksStartup,benchmarksMEM:this.state.benchmarksMEM,frameworksKeyed:this.state.frameworksKeyed,frameworksNonKeyed:this.state.frameworksNonKeyed,frameworkSelectKeyed:this.frameworkSelectKeyed,frameworkSelectNonKeyed:this.frameworkSelectNonKeyed,benchSelectCpu:this.benchSelectCpu,benchSelectStartup:this.benchSelectStartup,benchSelectMem:this.benchSelectMem,selectBenchmark:this.selectBenchmark,selectFramework:this.selectFramework,selectSeparateKeyedAndNonKeyed:this.selectSeparateKeyedAndNonKeyed,separateKeyedAndNonKeyed:this.state.separateKeyedAndNonKeyed,selectComparison:this.selectComparison,displayMode:this.state.displayMode,selectDisplayMode:this.selectDisplayMode}),this.state.displayMode.type===l.DisplayMode.CompareAgainst&&n.createElement("p",{style:{marginTop:"10px"}},"In comparison mode white cells mean there's no statistically significant difference. Green cells are significantly faster than the comparison and red cells are slower. The test is performed as a one sided t-test. The significance level is 10%. The darker the color the lower the p-Value."),n.createElement(i.ResultTable,{currentSortKey:this.state.sortKey,data:this.state.resultTables,separateKeyedAndNonKeyed:this.state.separateKeyedAndNonKeyed,sortBy:this.sortBy,displayMode:this.state.displayMode}),n.createElement("h3",null,"Known Issues"),d.map(e=>n.createElement("dl",{id:e.issue.toFixed()},n.createElement("dt",null,n.createElement("a",{target:"_blank",href:e.link},e.issue.toFixed())),n.createElement("dd",null,e.text))))}}t.default=y,r.render(n.createElement(y,null),document.getElementById("main"))},,,,,,function(e,t,a){(e.exports=a(13)(!1)).push([e.i,":root {\n box-sizing: border-box;\n}\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\nbody {\n font-family: Helvetica, Arial, sans-serif;\n font-size: 14px;\n margin: 10px;\n}\na, a:active, a:hover {\n text-decoration: none;\n}\nbutton, select {\n font-size: 14px;\n}\n.selectBar {\n background-color: #fafafa;\n border-top: 1px solid #ccc;\n border-bottom: 1px solid #ccc;\n}\nselect {\n border: 1px solid #ccc;\n border-radius: 4px;\n height: 29px;\n background: #fff;\n}\n.header-row {\n margin: 20px 0;\n}\n.dropdown-container {\n display: inline-block;\n}\n.dropdown-container > .shutter, .dropdown-container > .dropdown-menu {\n display: none;\n}\n.open>.shutter,.open>.dropdown-menu {\n display:block;\n}\n.dropdown-menu > .section {\n position: relative;\n}\n.open>.dropdown-menu {\n z-index: 1000;\n position: absolute;\n background: #fff;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: 4px 4px 5px 5px rgba(0, 0, 0, 0.2);\n padding: 10px;\n}\n.dropdown, .dropdown:focus {\n border: 1px solid #ccc;\n border-radius: 4px;\n padding: 5px 10px;\n outline: none;\n box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.0);\n transition: all 0.5s;\n}\n.dropdown.open {\n box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);\n}\n\n.dropdown > .caret {\n width: 10px;\n height: 5px;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 5px solid #ccc;\n display: inline-block;\n}\n\n.shutter {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n display:none;\n}\n\ninput + label {\n margin-left: 5px;\n}\n\n.float-rt {\n position: absolute;\n top: 10px;\n right: 10px;\n}\n\n.grid {\n display: flex;\n flex-wrap: wrap;\n}\n.col-3 {\n width: 33%;\n}\n\n.hspan {\n display: inline-block;\n width: 10px;\n}\n\n.panel-body .checkbox {\n margin-top: 5px;\n margin-bottom: 5px;\n}\n\ntable.results {\n font-size: 11px;\n table-layout: fixed;\n width: 1px;\n overflow:visible;\n display: table;\n border-spacing: 0 0;\n border-collapse: collapse;\n}\ntable.results th {\n width: 60px;\n font-weight: normal;\n font-size: 11px;\n text-align: center;\n word-break:keep-all;\n word-wrap:break-word;\n}\ntable.results th.benchname {\nwidth: 100px;\n}\ntable.results td {\npadding: 3px;\nborder: 1px solid #ddd;\n}\ntable.results th {\npadding: 3px;\nborder: 1px solid #ddd;\n}\n.top1 {\nbackground-color: #63BF7C;\n}\n.top2 {\nbackground-color: #D1D580;\n}\n.top3 {\nbackground-color: #FFEC84;\n}\n.top4 {\nbackground-color: #FCAA78;\n}\n.top5 {\nbackground-color: #F9696C;\n}\ntd {\ntext-align: center;\n}\n.rowCount {\nfont-size: 10px;\n}\n.deviation {\nfont-size: 8px;\npadding-left: 5px;\n}\n.deviation:before {\ncontent: '± ';\n}\n.factor {\nfont-size: 8px;\n}\n.sortKey {\n text-decoration: underline;\n}\n\ndl {\n width: 100%;\n overflow: hidden;\n padding: 0;\n margin-bottom: 16px;\n}\ndt {\n float: left;\n width: 50px;\n padding: 0;\n margin: 0\n}\ndd {\n padding: 0;\n margin: 0;\n}\n.with-issues {\n background-color: #faa;\n}",""])},,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.results=[{f:"wasm-bindgen-v0.2.47-keyed",b:"01_run1k",v:[111.679,110.216]},{f:"wasm-bindgen-v0.2.47-keyed",b:"02_replace1k",v:[108.808,114.004]},{f:"wasm-bindgen-v0.2.47-keyed",b:"03_update10th1k_x16",v:[175.604,161.142]},{f:"wasm-bindgen-v0.2.47-keyed",b:"04_select1k",v:[25.468,25.739]},{f:"wasm-bindgen-v0.2.47-keyed",b:"05_swap1k",v:[55.216,54.351]},{f:"wasm-bindgen-v0.2.47-keyed",b:"06_remove-one-1k",v:[24.208,28.341]},{f:"wasm-bindgen-v0.2.47-keyed",b:"07_create10k",v:[1178.322,1184.971]},{f:"wasm-bindgen-v0.2.47-keyed",b:"08_create1k-after1k_x2",v:[261.251,233.08]},{f:"wasm-bindgen-v0.2.47-keyed",b:"09_clear1k_x8",v:[124.812,105.986]},{f:"wasm-bindgen-v0.2.47-keyed",b:"21_ready-memory",v:[1.0803298950195312,1.0803375244140625]},{f:"wasm-bindgen-v0.2.47-keyed",b:"22_run-memory",v:[1.5682106018066406,1.5682106018066406]},{f:"wasm-bindgen-v0.2.47-keyed",b:"23_update5-memory",v:[1.8900527954101562,1.8900718688964844]},{f:"wasm-bindgen-v0.2.47-keyed",b:"24_run5-memory",v:[2.189403533935547,2.189373016357422]},{f:"wasm-bindgen-v0.2.47-keyed",b:"25_run-clear-memory",v:[2.334686279296875,2.3347625732421875]},{f:"wasm-bindgen-v0.2.47-keyed",b:"31_startup-ci",v:[1351.92,1350.788]},{f:"wasm-bindgen-v0.2.47-keyed",b:"32_startup-bt",v:[20.8,18.651999999999994]},{f:"wasm-bindgen-v0.2.47-keyed",b:"34_startup-totalbytes",v:[59.8857421875,59.8857421875]},{f:"yew-v0.16.2-keyed",b:"01_run1k",v:[213.78,202.191]},{f:"yew-v0.16.2-keyed",b:"02_replace1k",v:[73.778,76.039]},{f:"yew-v0.16.2-keyed",b:"03_update10th1k_x16",v:[288.693,237.006]},{f:"yew-v0.16.2-keyed",b:"04_select1k",v:[52.324,42.072]},{f:"yew-v0.16.2-keyed",b:"05_swap1k",v:[32.711,34.04]},{f:"yew-v0.16.2-keyed",b:"06_remove-one-1k",v:[83.746,82.741]},{f:"yew-v0.16.2-keyed",b:"07_create10k",v:[2221.002,2330.112]},{f:"yew-v0.16.2-keyed",b:"08_create1k-after1k_x2",v:[409.533,445.373]},{f:"yew-v0.16.2-keyed",b:"09_clear1k_x8",v:[354.703,335.971]},{f:"yew-v0.16.2-keyed",b:"21_ready-memory",v:[1.0472145080566406,1.0471687316894531]},{f:"yew-v0.16.2-keyed",b:"22_run-memory",v:[2.110729217529297,2.110759735107422]},{f:"yew-v0.16.2-keyed",b:"23_update5-memory",v:[2.428478240966797,2.4285507202148438]},{f:"yew-v0.16.2-keyed",b:"24_run5-memory",v:[2.050769805908203,2.0508155822753906]},{f:"yew-v0.16.2-keyed",b:"25_run-clear-memory",v:[2.3814697265625,2.3814697265625]},{f:"yew-v0.16.2-keyed",b:"31_startup-ci",v:[1351.104,1350.812]},{f:"yew-v0.16.2-keyed",b:"32_startup-bt",v:[26.511999999999997,31.799999999999986]},{f:"yew-v0.16.2-keyed",b:"34_startup-totalbytes",v:[85.0029296875,85.0029296875]},{f:"yew-baseline-v0.16.2-keyed",b:"01_run1k",v:[219.837,203.44]},{f:"yew-baseline-v0.16.2-keyed",b:"02_replace1k",v:[84.511,86.996]},{f:"yew-baseline-v0.16.2-keyed",b:"03_update10th1k_x16",v:[244.717,241.208]},{f:"yew-baseline-v0.16.2-keyed",b:"04_select1k",v:[42.196,43.413]},{f:"yew-baseline-v0.16.2-keyed",b:"05_swap1k",v:[26.277,27.517]},{f:"yew-baseline-v0.16.2-keyed",b:"06_remove-one-1k",v:[79.33,82.96]},{f:"yew-baseline-v0.16.2-keyed",b:"07_create10k",v:[2181.581,2335.49]},{f:"yew-baseline-v0.16.2-keyed",b:"08_create1k-after1k_x2",v:[398.373,397.793]},{f:"yew-baseline-v0.16.2-keyed",b:"09_clear1k_x8",v:[339.692,344.243]},{f:"yew-baseline-v0.16.2-keyed",b:"21_ready-memory",v:[1.0472755432128906,1.0472068786621094]},{f:"yew-baseline-v0.16.2-keyed",b:"22_run-memory",v:[2.111675262451172,2.1116905212402344]},{f:"yew-baseline-v0.16.2-keyed",b:"23_update5-memory",v:[2.4295692443847656,2.42950439453125]},{f:"yew-baseline-v0.16.2-keyed",b:"24_run5-memory",v:[2.050670623779297,2.051464080810547]},{f:"yew-baseline-v0.16.2-keyed",b:"25_run-clear-memory",v:[2.3824424743652344,2.382404327392578]},{f:"yew-baseline-v0.16.2-keyed",b:"31_startup-ci",v:[1350.696,1350.9479999999999]},{f:"yew-baseline-v0.16.2-keyed",b:"32_startup-bt",v:[28.015999999999984,35.37999999999998]},{f:"yew-baseline-v0.16.2-keyed",b:"34_startup-totalbytes",v:[85.1904296875,85.1904296875]}],t.frameworks=[{name:"wasm-bindgen-v0.2.47-keyed",keyed:!0},{name:"yew-v0.16.2-keyed",keyed:!0},{name:"yew-baseline-v0.16.2-keyed",keyed:!0}],t.benchmarks=[{id:"01_run1k",label:"create rows",description:"creating 1,000 rows",type:0},{id:"02_replace1k",label:"replace all rows",description:"updating all 1,000 rows (5 warmup runs).",type:0},{id:"03_update10th1k_x16",label:"partial update",description:"updating every 10th row for 1,000 rows (3 warmup runs). 16x CPU slowdown.",type:0,throttleCPU:16},{id:"04_select1k",label:"select row",description:"highlighting a selected row. (5 warmup runs). 16x CPU slowdown.",type:0,throttleCPU:16},{id:"05_swap1k",label:"swap rows",description:"swap 2 rows for table with 1,000 rows. (5 warmup runs). 4x CPU slowdown.",type:0,throttleCPU:4},{id:"06_remove-one-1k",label:"remove row",description:"removing one row. (5 warmup runs).",type:0},{id:"07_create10k",label:"create many rows",description:"creating 10,000 rows",type:0},{id:"08_create1k-after1k_x2",label:"append rows to large table",description:"appending 1,000 to a table of 10,000 rows. 2x CPU slowdown",type:0,throttleCPU:2},{id:"09_clear1k_x8",label:"clear rows",description:"clearing a table with 1,000 rows. 8x CPU slowdown",type:0,throttleCPU:8},{id:"21_ready-memory",label:"ready memory",description:"Memory usage after page load.",type:1},{id:"22_run-memory",label:"run memory",description:"Memory usage after adding 1000 rows.",type:1},{id:"23_update5-memory",label:"update eatch 10th row for 1k rows (5 cycles)",description:"Memory usage after clicking update every 10th row 5 times",type:1},{id:"24_run5-memory",label:"replace 1k rows (5 cycles)",description:"Memory usage after clicking create 1000 rows 5 times",type:1},{id:"25_run-clear-memory",label:"creating/clearing 1k rows (5 cycles)",description:"Memory usage after creating and clearing 1000 rows 5 times",type:1},{id:"31_startup-ci",label:"consistently interactive",description:"a pessimistic TTI - when the CPU and network are both definitely very idle. (no more CPU tasks over 50ms)",type:2,property:"TimeToConsistentlyInteractive"},{id:"32_startup-bt",label:"script bootup time",description:"the total ms required to parse/compile/evaluate all the page's scripts",type:2,property:"ScriptBootUpTtime"},{id:"34_startup-totalbytes",label:"total kilobyte weight",description:"network transfer cost (post-compression) of all the resources loaded into the page.",type:2,property:"TotalKiloByteWeight"}]},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=a(0);a(1);const r=a(18),s=a(19),l=a(2),o=a(20),i=a(21),c=({benchmarks:e,select:t,benchSelect:a,label:r})=>n.createElement(s.DropDownContents,Object.assign({},a),n.createElement("h3",null,r),n.createElement("div",null,n.createElement(i.SelectBarBenchmarks,{isSelected:a.isSelected,select:t,benchmarks:e})));class d extends n.Component{render(){let{frameworkSelectKeyed:e,frameworkSelectNonKeyed:t,benchSelectCpu:a,benchSelectStartup:i,benchSelectMem:d,selectFramework:m,selectBenchmark:p,selectSeparateKeyedAndNonKeyed:h,separateKeyedAndNonKeyed:u,frameworksKeyed:y,frameworksNonKeyed:b,benchmarksCPU:k,benchmarksStartup:f,benchmarksMEM:w,selectComparison:M,selectDisplayMode:v,displayMode:E}=this.props;return n.createElement("div",{className:"selectBar"},n.createElement("div",{className:"header-row"},n.createElement(r.DropDown,{label:"Which frameworks?",width:"1024px"},n.createElement(s.DropDownContents,Object.assign({},e),n.createElement("h3",null,"Keyed frameworks:"),n.createElement(o.SelectBarFrameworks,{isSelected:e.isSelected,select:m,frameworks:y})),n.createElement(s.DropDownContents,Object.assign({},t),n.createElement("h3",null,"Non-keyed frameworks:"),n.createElement(o.SelectBarFrameworks,{isSelected:t.isSelected,select:m,frameworks:b}))),n.createElement("div",{className:"hspan"}),n.createElement(r.DropDown,{label:"Which benchmarks?",width:"300px"},n.createElement(c,{benchmarks:k,select:p,benchSelect:a,label:"Duration"}),n.createElement(c,{benchmarks:f,select:p,benchSelect:i,label:"Startup"}),n.createElement(c,{benchmarks:w,select:p,benchSelect:d,label:"Memory"}))),n.createElement("div",{className:"header-row"},n.createElement("div",null,n.createElement("label",{htmlFor:"displayMode"},"Display mode"),n.createElement("div",{className:"hspan"}),n.createElement("select",{id:"displayMode",className:"custom-select",value:E.type,onChange:e=>v(e.target.value)},n.createElement("option",{value:l.DisplayMode.DisplayMean},"Display results (mean results)"),n.createElement("option",{value:l.DisplayMode.DisplayMedian},"Display results (median results)"),n.createElement("option",{value:l.DisplayMode.CompareAgainst},"Compare results against one framework"),n.createElement("option",{value:l.DisplayMode.HighlightVariance},"Colorize high variance"),n.createElement("option",{value:l.DisplayMode.BoxPlot},"Display as box plots")),n.createElement("div",{className:"hspan"}),n.createElement("input",{id:"chb_nonKeyed",type:"checkbox",onChange:e=>h(e.target.checked),checked:u}),n.createElement("label",{htmlFor:"chb_nonKeyed"},"Separate keyed and non-keyed"),E.type===l.DisplayMode.CompareAgainst&&n.createElement(n.Fragment,null,n.createElement("div",{className:"hspan"}),n.createElement("select",{className:"custom-select",value:E.compareAgainst?E.compareAgainst.name:"",onChange:e=>M(e.target.value)},n.createElement("option",{value:""},"Compare with ..."),n.createElement("optgroup",{label:"Keyed"},y.map(e=>n.createElement("option",{key:e.name,value:e.name},e.name))),n.createElement("optgroup",{label:"Non-keyed"},b.map(e=>n.createElement("option",{key:e.name,value:e.name},e.name))))))))}}t.SelectBar=d},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=a(0);class r extends n.Component{constructor(e){super(e),this.toggle=e=>{e.stopPropagation(),this.setState((e,t)=>({open:!e.open}))},this.state={open:!1}}render(){let{label:e,children:t,width:a}=this.props;return n.createElement("div",{className:this.state.open?"open dropdown-container":"dropdown-container"},n.createElement("button",{type:"button",onClick:this.toggle,className:this.state.open?"open dropdown":"dropdown"},e," ",n.createElement("span",{className:"caret"})),n.createElement("div",{className:"shutter",onClick:this.toggle}),n.createElement("div",{className:(this.state.open?"show ":"")+"dropdown-menu",style:{width:a}},t))}}t.DropDown=r},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=a(0);t.DropDownContents=function(e){let{selectNone:t,selectAll:a,isNoneSelected:r,areAllSelected:s,children:l}=e;return n.createElement("div",{className:"section"},l[0],n.createElement("div",{className:"float-rt"},r()?n.createElement("span",null,"None"):n.createElement("a",{href:"#",onClick:t},"None")," ",s()?n.createElement("span",null,"All"):n.createElement("a",{href:"#",onClick:a},"All")),n.createElement("div",{className:"grid"},l[1]))}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=a(0);t.SelectBarFrameworks=e=>n.createElement(n.Fragment,null,e.frameworks.map(t=>n.createElement("div",{key:t.name,className:"col-3"},n.createElement("input",{className:"form-check-input",id:"inp-"+t.name+"-"+t.keyed,type:"checkbox",onChange:a=>e.select(t,a.target.checked),checked:e.isSelected(t)}),n.createElement("label",{htmlFor:"inp-"+t.name+"-"+t.keyed,className:"form-check-label"},t.name))))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=a(0);t.SelectBarBenchmarks=e=>n.createElement("div",null,e.benchmarks.map(t=>n.createElement("div",{key:t.id,className:"col-md-12"},n.createElement("div",{className:"form-check"},n.createElement("input",{id:"inp-"+t.id,className:"form-check-input",type:"checkbox",onChange:a=>e.select(t,a.target.checked),checked:e.isSelected(t)}),n.createElement("label",{htmlFor:"inp-"+t.id,className:"form-check-label"},t.label)))))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a(1);const n=a(0),r=a(2);let s=a(23);const l=({results:e,geomMean:t,benchmarks:a,currentSortKey:r,sortBy:s,sortbyGeommeanEnum:l})=>n.createElement(n.Fragment,null,e.map((e,t)=>n.createElement("tr",{key:a[t].id},n.createElement("th",{className:"benchname"},n.createElement("a",{href:"#",className:r==a[t].id?"sortKey":"",onClick:e=>{e.preventDefault(),s(a[t].id)}},a[t].label),n.createElement("div",{className:"rowCount"},a[t].description)),e.map((e,t)=>null==e?n.createElement("td",{key:t}):e.render()))),n.createElement("tr",null,n.createElement("th",null,n.createElement("a",{href:"#",className:r==l?"sortKey":"",onClick:e=>{e.preventDefault(),s(l)}},"slowdown geometric mean")),t.map(e=>null==e?n.createElement("td",null):e.render())));class o extends n.Component{constructor(e){super(e),this.elemRef=n.createRef(),this.repaint=this.repaint.bind(this)}repaint(){let e=this.props.traces.map(e=>({type:"box",y:e.values,boxpoints:!1,jitter:.5,name:e.framework,boxmean:"sd"}));s.newPlot(this.elemRef.current,e,{showlegend:!1,margin:{l:40,r:0,b:120,t:0,pad:0}},{staticPlot:!0,editable:!1})}componentDidMount(){this.repaint()}componentDidUpdate(){this.repaint()}render(){return n.createElement("div",{ref:this.elemRef,style:{height:"100%",width:"100%"}})}}const i=({frameworks:e,benchmarks:t,results:a,currentSortKey:r,sortBy:s})=>n.createElement(n.Fragment,null,t.map(t=>n.createElement("tr",{key:t.id,style:{height:400}},n.createElement("th",{className:"benchname"},n.createElement("a",{href:"#",className:r==t.id?"sortKey":"",onClick:e=>{e.preventDefault(),s(t.id)}},t.label),n.createElement("div",{className:"rowCount"},t.description)),n.createElement("td",null,n.createElement(o,{traces:e.map(e=>({framework:e.name,values:a(t,e)?a(t,e).values:[]}))}))))),c=({frameworks:e,benchmarks:t,results:a,currentSortKey:s,sortBy:l})=>0==t.length?null:n.createElement("div",null,n.createElement("h3",null,"Duration in milliseconds"),n.createElement("table",{className:"results"},n.createElement("thead",null,n.createElement("tr",null,n.createElement("th",{className:"benchname"},n.createElement("a",{href:"#",className:s==r.SORT_BY_NAME?"sortKey":"",onClick:e=>{e.preventDefault(),l(r.SORT_BY_NAME)}},"Name")),n.createElement("th",{style:{width:70*e.length+100}}))),n.createElement("tbody",null,n.createElement(i,{results:a,frameworks:e,benchmarks:t,currentSortKey:s,sortBy:l})))),d=({data:e,currentSortKey:t,sortBy:a,displayMode:s})=>0==e.resultsCPU.length?null:n.createElement("div",null,n.createElement("h3",null,"Duration in milliseconds ± ",s.type===r.DisplayMode.HighlightVariance?"standard deviation":"95% confidence interval"," (Slowdown = Duration / Fastest)"),n.createElement("table",{className:"results"},n.createElement("thead",null,n.createElement("tr",null,n.createElement("th",{className:"benchname"},n.createElement("a",{href:"#",className:t==r.SORT_BY_NAME?"sortKey":"",onClick:e=>{e.preventDefault(),a(r.SORT_BY_NAME)}},"Name"),n.createElement("br",null),"Duration for..."),e.frameworks.map(e=>n.createElement("th",{className:e.issues?"with-issues":"",key:e.name},e.name)))),n.createElement("thead",null,n.createElement("tr",null,n.createElement("th",{className:"openIssues"},"Issues for the implementation"),e.frameworks.map(e=>n.createElement("th",{key:e.name},e.issues&&e.issues.map(e=>n.createElement("a",{href:"#"+e.toFixed()},e.toFixed())))))),n.createElement("tbody",null,n.createElement(l,{results:e.resultsCPU,benchmarks:e.benchmarksCPU,currentSortKey:t,sortBy:a,geomMean:e.geomMeanCPU,sortbyGeommeanEnum:r.SORT_BY_GEOMMEAN_CPU})))),m=({data:e,currentSortKey:t,sortBy:a})=>0==e.resultsStartup.length?null:n.createElement("div",null,n.createElement("h3",null,"Startup metrics (lighthouse with mobile simulation)"),n.createElement("table",{className:"results"},n.createElement("thead",null,n.createElement("tr",null,n.createElement("th",{className:"benchname"},n.createElement("a",{href:"#",className:t==r.SORT_BY_NAME?"sortKey":"",onClick:e=>{e.preventDefault(),a(r.SORT_BY_NAME)}},"Name")),e.frameworks.map(e=>n.createElement("th",{key:e.name},e.name)))),n.createElement("tbody",null,n.createElement(l,{results:e.resultsStartup,benchmarks:e.benchmarksStartup,currentSortKey:t,sortBy:a,geomMean:e.geomMeanStartup,sortbyGeommeanEnum:r.SORT_BY_GEOMMEAN_STARTUP})))),p=({data:e,currentSortKey:t,sortBy:a,displayMode:s})=>0==e.resultsMEM.length?null:n.createElement("div",null,n.createElement("h3",null,"Memory allocation in MBs ± ",s.type===r.DisplayMode.HighlightVariance?"standard deviation":"95% confidence interval"),n.createElement("table",{className:"results"},n.createElement("thead",null,n.createElement("tr",null,n.createElement("th",{className:"benchname"},n.createElement("a",{href:"#",className:t==r.SORT_BY_NAME?"sortKey":"",onClick:e=>{e.preventDefault(),a(r.SORT_BY_NAME)}},"Name")),e.frameworks.map(e=>n.createElement("th",{key:e.name},e.name)))),n.createElement("tbody",null,n.createElement(l,{results:e.resultsMEM,benchmarks:e.benchmarksMEM,currentSortKey:t,sortBy:a,geomMean:e.geomMeanMEM,sortbyGeommeanEnum:r.SORT_BY_GEOMMEAN_MEM}))));class h extends n.Component{constructor(e){super(e)}render(){let e=this.props.separateKeyedAndNonKeyed?[{nonKeyed:!1,label:"Keyed results",description:"Keyed implementations create an association between the domain data and a dom element by assigning a 'key'. If data changes the dom element with that key will be updated. In consequence inserting or deleting an element in the data array causes a corresponding change to the dom."},{nonKeyed:!0,label:"Non keyed results",description:"Non keyed implementations are allowed to reuse existing dom elements. In consequence inserting or deleting an element in the data array might append after or delete the last table row and update the contents of all elements after the inserting or deletion index. This can perform better, but can cause problems if dom state is modified externally."}]:[{nonKeyed:void 0,label:"Mixed keyed and non-keyed",description:"This is an apple to oranges comparison. Use it to find out how much a non-keyed version can be faster (if that doesn't introduce any problems e.g. with transitions)."}];return this.props.displayMode.type!==r.DisplayMode.CompareAgainst||this.props.displayMode.compareAgainst?n.createElement("div",{className:"mt-3"},this.props.data.map((t,a)=>0===t.frameworks.length||0==t.benchmarksCPU.length&&0==t.benchmarksStartup.length&&0==t.benchmarksMEM.length?null:n.createElement("div",{key:e[a].label},n.createElement("h1",null,e[a].label),n.createElement("p",null,e[a].description),this.props.displayMode.type===r.DisplayMode.BoxPlot?n.createElement(n.Fragment,null,n.createElement(c,{results:t.results,frameworks:t.frameworks,benchmarks:t.benchmarksCPU,currentSortKey:this.props.currentSortKey,sortBy:e=>this.props.sortBy(e,a)})):n.createElement(n.Fragment,null,n.createElement(d,{currentSortKey:this.props.currentSortKey,sortBy:e=>this.props.sortBy(e,a),data:t,displayMode:this.props.displayMode}),n.createElement(m,{currentSortKey:this.props.currentSortKey,sortBy:e=>this.props.sortBy(e,a),data:t}),n.createElement(p,{currentSortKey:this.props.currentSortKey,sortBy:e=>this.props.sortBy(e,a),data:t,displayMode:this.props.displayMode}))))):n.createElement("h3",null,"Please choose a framework for the comparison.")}}t.ResultTable=h}]);</script></body> -</html> diff --git a/webdriver-ts/.gitignore b/webdriver-ts/.gitignore new file mode 100644 index 000000000..91a9c5928 --- /dev/null +++ b/webdriver-ts/.gitignore @@ -0,0 +1 @@ +results.json diff --git a/webdriver-ts/results.json b/webdriver-ts/results.json deleted file mode 100644 index 8e1929fac..000000000 --- a/webdriver-ts/results.json +++ /dev/null @@ -1 +0,0 @@ -[{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"01_run1k","values":[111.679,110.216]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"02_replace1k","values":[108.808,114.004]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"03_update10th1k_x16","values":[175.604,161.142]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"04_select1k","values":[25.468,25.739]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"05_swap1k","values":[55.216,54.351]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"06_remove-one-1k","values":[24.208,28.341]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"07_create10k","values":[1178.322,1184.971]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"08_create1k-after1k_x2","values":[261.251,233.08]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"09_clear1k_x8","values":[124.812,105.986]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"21_ready-memory","values":[1.0803298950195312,1.0803375244140625]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"22_run-memory","values":[1.5682106018066406,1.5682106018066406]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"23_update5-memory","values":[1.8900527954101562,1.8900718688964844]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"24_run5-memory","values":[2.189403533935547,2.189373016357422]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"25_run-clear-memory","values":[2.334686279296875,2.3347625732421875]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"31_startup-ci","values":[1351.92,1350.788]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"32_startup-bt","values":[20.8,18.651999999999994]},{"framework":"wasm-bindgen-v0.2.47-keyed","benchmark":"34_startup-totalbytes","values":[59.8857421875,59.8857421875]},{"framework":"yew-v0.16.2-keyed","benchmark":"01_run1k","values":[213.78,202.191]},{"framework":"yew-v0.16.2-keyed","benchmark":"02_replace1k","values":[73.778,76.039]},{"framework":"yew-v0.16.2-keyed","benchmark":"03_update10th1k_x16","values":[288.693,237.006]},{"framework":"yew-v0.16.2-keyed","benchmark":"04_select1k","values":[52.324,42.072]},{"framework":"yew-v0.16.2-keyed","benchmark":"05_swap1k","values":[32.711,34.04]},{"framework":"yew-v0.16.2-keyed","benchmark":"06_remove-one-1k","values":[83.746,82.741]},{"framework":"yew-v0.16.2-keyed","benchmark":"07_create10k","values":[2221.002,2330.112]},{"framework":"yew-v0.16.2-keyed","benchmark":"08_create1k-after1k_x2","values":[409.533,445.373]},{"framework":"yew-v0.16.2-keyed","benchmark":"09_clear1k_x8","values":[354.703,335.971]},{"framework":"yew-v0.16.2-keyed","benchmark":"21_ready-memory","values":[1.0472145080566406,1.0471687316894531]},{"framework":"yew-v0.16.2-keyed","benchmark":"22_run-memory","values":[2.110729217529297,2.110759735107422]},{"framework":"yew-v0.16.2-keyed","benchmark":"23_update5-memory","values":[2.428478240966797,2.4285507202148438]},{"framework":"yew-v0.16.2-keyed","benchmark":"24_run5-memory","values":[2.050769805908203,2.0508155822753906]},{"framework":"yew-v0.16.2-keyed","benchmark":"25_run-clear-memory","values":[2.3814697265625,2.3814697265625]},{"framework":"yew-v0.16.2-keyed","benchmark":"31_startup-ci","values":[1351.104,1350.812]},{"framework":"yew-v0.16.2-keyed","benchmark":"32_startup-bt","values":[26.511999999999997,31.799999999999986]},{"framework":"yew-v0.16.2-keyed","benchmark":"34_startup-totalbytes","values":[85.0029296875,85.0029296875]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"01_run1k","values":[219.837,203.44]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"02_replace1k","values":[84.511,86.996]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"03_update10th1k_x16","values":[244.717,241.208]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"04_select1k","values":[42.196,43.413]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"05_swap1k","values":[26.277,27.517]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"06_remove-one-1k","values":[79.33,82.96]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"07_create10k","values":[2181.581,2335.49]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"08_create1k-after1k_x2","values":[398.373,397.793]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"09_clear1k_x8","values":[339.692,344.243]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"21_ready-memory","values":[1.0472755432128906,1.0472068786621094]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"22_run-memory","values":[2.111675262451172,2.1116905212402344]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"23_update5-memory","values":[2.4295692443847656,2.42950439453125]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"24_run5-memory","values":[2.050670623779297,2.051464080810547]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"25_run-clear-memory","values":[2.3824424743652344,2.382404327392578]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"31_startup-ci","values":[1350.696,1350.9479999999999]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"32_startup-bt","values":[28.015999999999984,35.37999999999998]},{"framework":"yew-baseline-v0.16.2-keyed","benchmark":"34_startup-totalbytes","values":[85.1904296875,85.1904296875]}] \ No newline at end of file From 29e5275698045d77028525aae025a49c0abe3c74 Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sat, 19 Sep 2020 12:32:20 +0300 Subject: [PATCH 03/26] expand gitignore --- .gitignore | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 969d3eb39..f1af4c3a5 100644 --- a/.gitignore +++ b/.gitignore @@ -79,5 +79,6 @@ Cargo.lock # emacs *~ -bundled-dist/*.js -bundled-dist/*.wasm +**/bundled-dist/*.js +**/bundled-dist/*.wasm +**/bundled-dist/*.html From 7ad02f1aa953d5ddad5d368efe9ef1e4d3604cde Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sat, 19 Sep 2020 12:44:06 +0300 Subject: [PATCH 04/26] run http server in script --- bechmark_change.sh | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/bechmark_change.sh b/bechmark_change.sh index b29478e8b..3efd8336a 100755 --- a/bechmark_change.sh +++ b/bechmark_change.sh @@ -1,25 +1,32 @@ #! /bin/bash # Usage: ./bechmark_change.sh CHANGE_BRANCH -set -euo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ sed -i 's/PLACEHOLDER/'"${1/\//\\\/}"'/' frameworks/keyed/yew/Cargo.toml -npm install -d -(cd frameworks/keyed/wasm-bindgen && - npm run build-prod) -(cd frameworks/keyed/yew && - npm install -d && - npm run build-prod) -(cd frameworks/keyed/yew-baseline && - npm install -d && - npm run build-prod) +http -p 8080 & -(cd webdriver-ts-results && - npm install -d) -(cd webdriver-ts && - npm install -d && - npm run build-prod && - npm run bench -- --headless keyed/yew keyed/yew-baseline && - npm run results) +( + set -euo pipefail -chromium http://localhost:8080/webdriver-ts-results/table.html + npm install -d + (cd frameworks/keyed/wasm-bindgen && + npm run build-prod) + (cd frameworks/keyed/yew && + npm install -d && + npm run build-prod) + (cd frameworks/keyed/yew-baseline && + npm install -d && + npm run build-prod) + + (cd webdriver-ts-results && + npm install -d) + (cd webdriver-ts && + npm install -d && + npm run build-prod && + npm run bench -- --headless keyed/yew keyed/yew-baseline && + npm run results) + + chromium http://localhost:8080/webdriver-ts-results/table.html +) + +kill %% From c70e7913aed629f804a1eb9bf479944b6092ed1f Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sat, 19 Sep 2020 12:45:27 +0300 Subject: [PATCH 05/26] reset hard on start --- bechmark_change.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bechmark_change.sh b/bechmark_change.sh index 3efd8336a..88b82bee5 100755 --- a/bechmark_change.sh +++ b/bechmark_change.sh @@ -1,6 +1,7 @@ #! /bin/bash # Usage: ./bechmark_change.sh CHANGE_BRANCH +git reset --hard sed -i 's/PLACEHOLDER/'"${1/\//\\\/}"'/' frameworks/keyed/yew/Cargo.toml http -p 8080 & From 7eaede5158c430a7a534998ad0fc5325feaea0a4 Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sat, 19 Sep 2020 12:57:37 +0300 Subject: [PATCH 06/26] also run wasm_bingen --- bechmark_change.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bechmark_change.sh b/bechmark_change.sh index 88b82bee5..d09a5f6b6 100755 --- a/bechmark_change.sh +++ b/bechmark_change.sh @@ -24,7 +24,9 @@ http -p 8080 & (cd webdriver-ts && npm install -d && npm run build-prod && - npm run bench -- --headless keyed/yew keyed/yew-baseline && + npm run bench -- --headless \ + frameworks/keyed/wasm-bindgen \ + keyed/yew keyed/yew-baseline && npm run results) chromium http://localhost:8080/webdriver-ts-results/table.html From 7eb396d033a66d00a539b659e197160213d6c20c Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sat, 19 Sep 2020 13:12:23 +0300 Subject: [PATCH 07/26] use set -e in subshells --- bechmark_change.sh | 46 +++++++++++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/bechmark_change.sh b/bechmark_change.sh index d09a5f6b6..1f119d873 100755 --- a/bechmark_change.sh +++ b/bechmark_change.sh @@ -10,24 +10,40 @@ http -p 8080 & set -euo pipefail npm install -d - (cd frameworks/keyed/wasm-bindgen && - npm run build-prod) - (cd frameworks/keyed/yew && - npm install -d && - npm run build-prod) - (cd frameworks/keyed/yew-baseline && - npm install -d && - npm run build-prod) - (cd webdriver-ts-results && - npm install -d) - (cd webdriver-ts && - npm install -d && - npm run build-prod && + ( + set -euo pipefail + cd frameworks/keyed/wasm-bindgen + npm install -d + npm run build-prod + ) + ( + set -euo pipefail + cd frameworks/keyed/yew + npm install -d + npm run build-prod + ) + ( + set -euo pipefail + cd frameworks/keyed/yew-baseline + npm install -d + npm run build-prod + ) + ( + set -euo pipefail + cd webdriver-ts-results + npm install -d + ) + ( + set -euo pipefail + cd webdriver-ts + npm install -d + npm run build-prod npm run bench -- --headless \ frameworks/keyed/wasm-bindgen \ - keyed/yew keyed/yew-baseline && - npm run results) + keyed/yew keyed/yew-baseline + npm run results + ) chromium http://localhost:8080/webdriver-ts-results/table.html ) From ca52e97d9085f95be2441146292d9cc876c0989e Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 4 Oct 2020 21:01:48 +0300 Subject: [PATCH 08/26] clean up and don't run wasm-bindgen --- bechmark_change.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/bechmark_change.sh b/bechmark_change.sh index 1f119d873..51504cb32 100755 --- a/bechmark_change.sh +++ b/bechmark_change.sh @@ -11,12 +11,6 @@ http -p 8080 & npm install -d - ( - set -euo pipefail - cd frameworks/keyed/wasm-bindgen - npm install -d - npm run build-prod - ) ( set -euo pipefail cd frameworks/keyed/yew @@ -37,11 +31,10 @@ http -p 8080 & ( set -euo pipefail cd webdriver-ts + rm -rf results npm install -d npm run build-prod - npm run bench -- --headless \ - frameworks/keyed/wasm-bindgen \ - keyed/yew keyed/yew-baseline + npm run bench -- --headless keyed/yew keyed/yew-baseline npm run results ) From 9cf12a2f0c7b688830cc6b6fdd13ccdadb2d7dbf Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 4 Oct 2020 21:50:31 +0300 Subject: [PATCH 09/26] remove hard reset --- bechmark_change.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/bechmark_change.sh b/bechmark_change.sh index 51504cb32..bef6afc0b 100755 --- a/bechmark_change.sh +++ b/bechmark_change.sh @@ -1,7 +1,6 @@ #! /bin/bash # Usage: ./bechmark_change.sh CHANGE_BRANCH -git reset --hard sed -i 's/PLACEHOLDER/'"${1/\//\\\/}"'/' frameworks/keyed/yew/Cargo.toml http -p 8080 & From ad894ed5e3045be928da89ac2b91a2600cd310b4 Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Thu, 19 Nov 2020 00:21:46 +0200 Subject: [PATCH 10/26] benchmark local path --- bechmark_change.sh | 2 -- frameworks/keyed/yew/Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bechmark_change.sh b/bechmark_change.sh index bef6afc0b..a3370363d 100755 --- a/bechmark_change.sh +++ b/bechmark_change.sh @@ -1,8 +1,6 @@ #! /bin/bash # Usage: ./bechmark_change.sh CHANGE_BRANCH -sed -i 's/PLACEHOLDER/'"${1/\//\\\/}"'/' frameworks/keyed/yew/Cargo.toml - http -p 8080 & ( diff --git a/frameworks/keyed/yew/Cargo.toml b/frameworks/keyed/yew/Cargo.toml index f211b5362..0bd184ff8 100644 --- a/frameworks/keyed/yew/Cargo.toml +++ b/frameworks/keyed/yew/Cargo.toml @@ -12,7 +12,7 @@ rand = {version = "0.7.3", features = ["wasm-bindgen", "small_rng"]} wasm-bindgen = "0.2.62" # UPDATE TO USE YOUR BRANCH -yew = {git = "https://github.com/bakape/yew ", branch = "PLACEHOLDER"} +yew = {path = "/home/janis/src/yew/yew"} # UPDATE TO USE YOUR BRANCH [profile.release] From 5b5b80750713661b98bb60c9ff3cb2cca46fddaf Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 16:21:45 +0300 Subject: [PATCH 11/26] update yew package path --- frameworks/keyed/yew/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/keyed/yew/Cargo.toml b/frameworks/keyed/yew/Cargo.toml index 0bd184ff8..1d36292c4 100644 --- a/frameworks/keyed/yew/Cargo.toml +++ b/frameworks/keyed/yew/Cargo.toml @@ -12,7 +12,7 @@ rand = {version = "0.7.3", features = ["wasm-bindgen", "small_rng"]} wasm-bindgen = "0.2.62" # UPDATE TO USE YOUR BRANCH -yew = {path = "/home/janis/src/yew/yew"} +yew = {path = "/home/janis/src/yew/packages/yew"} # UPDATE TO USE YOUR BRANCH [profile.release] From 97121342622d22e676ecf6970143e8267c702bfb Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 16:37:04 +0300 Subject: [PATCH 12/26] update to new app starting API --- frameworks/keyed/yew/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/keyed/yew/src/lib.rs b/frameworks/keyed/yew/src/lib.rs index 57edd4f40..89aee58a0 100644 --- a/frameworks/keyed/yew/src/lib.rs +++ b/frameworks/keyed/yew/src/lib.rs @@ -313,5 +313,5 @@ impl Component for Row { pub fn start() { let document = window().unwrap().document().unwrap(); let mount_el = document.query_selector("#main").unwrap().unwrap(); - App::<Model>::new().mount(mount_el); + yew::start_app_in_element::<Model>(mount_el); } From 9da074ba5ef05920c87ca176080a26d692d98a9f Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 16:42:28 +0300 Subject: [PATCH 13/26] also update app starting in baseline example --- frameworks/keyed/yew-baseline/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/keyed/yew-baseline/src/lib.rs b/frameworks/keyed/yew-baseline/src/lib.rs index 57edd4f40..89aee58a0 100644 --- a/frameworks/keyed/yew-baseline/src/lib.rs +++ b/frameworks/keyed/yew-baseline/src/lib.rs @@ -313,5 +313,5 @@ impl Component for Row { pub fn start() { let document = window().unwrap().document().unwrap(); let mount_el = document.query_selector("#main").unwrap().unwrap(); - App::<Model>::new().mount(mount_el); + yew::start_app_in_element::<Model>(mount_el); } From c67863cf0b4a4393a335ed51cb0aaada9057aede Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 16:59:06 +0300 Subject: [PATCH 14/26] reset lock files on becnchmark --- bechmark_change.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bechmark_change.sh b/bechmark_change.sh index a3370363d..a8f9a1c17 100755 --- a/bechmark_change.sh +++ b/bechmark_change.sh @@ -11,12 +11,14 @@ http -p 8080 & ( set -euo pipefail cd frameworks/keyed/yew + rm Cargo.lock npm install -d npm run build-prod ) ( set -euo pipefail cd frameworks/keyed/yew-baseline + rm Cargo.lock npm install -d npm run build-prod ) From c5c7377480492bfed53160694fac0310bd66bc8b Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 16:59:37 +0300 Subject: [PATCH 15/26] account for lock files not being present --- bechmark_change.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bechmark_change.sh b/bechmark_change.sh index a8f9a1c17..7609e7b8e 100755 --- a/bechmark_change.sh +++ b/bechmark_change.sh @@ -11,14 +11,14 @@ http -p 8080 & ( set -euo pipefail cd frameworks/keyed/yew - rm Cargo.lock + rm -f Cargo.lock npm install -d npm run build-prod ) ( set -euo pipefail cd frameworks/keyed/yew-baseline - rm Cargo.lock + rm -f Cargo.lock npm install -d npm run build-prod ) From 6650013b89b7c50e07ad53289f7650dd4f205a0f Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 17:34:41 +0300 Subject: [PATCH 16/26] npm: update dep versions --- frameworks/keyed/yew-baseline/package.json | 4 ++-- frameworks/keyed/yew/package.json | 4 ++-- webdriver-ts-results/package.json | 4 ++-- webdriver-ts/package.json | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frameworks/keyed/yew-baseline/package.json b/frameworks/keyed/yew-baseline/package.json index 2fa0702aa..b8bc377c8 100644 --- a/frameworks/keyed/yew-baseline/package.json +++ b/frameworks/keyed/yew-baseline/package.json @@ -15,7 +15,7 @@ "url": "https://github.com/krausest/js-framework-benchmark.git" }, "devDependencies": { - "rimraf": "^2.6.3", - "cpr": "^3.0.1" + "cpr": "^3.0.1", + "rimraf": "^2.6.3" } } diff --git a/frameworks/keyed/yew/package.json b/frameworks/keyed/yew/package.json index 2fa0702aa..b8bc377c8 100644 --- a/frameworks/keyed/yew/package.json +++ b/frameworks/keyed/yew/package.json @@ -15,7 +15,7 @@ "url": "https://github.com/krausest/js-framework-benchmark.git" }, "devDependencies": { - "rimraf": "^2.6.3", - "cpr": "^3.0.1" + "cpr": "^3.0.1", + "rimraf": "^2.6.3" } } diff --git a/webdriver-ts-results/package.json b/webdriver-ts-results/package.json index beaadf2c0..9b1f60bc7 100644 --- a/webdriver-ts-results/package.json +++ b/webdriver-ts-results/package.json @@ -43,8 +43,8 @@ }, "dependencies": { "jStat": "1.7.1", + "plotly.js-cartesian-dist": "^1.45.2", "react": "16.8.4", - "react-dom": "16.8.4", - "plotly.js-cartesian-dist": "^1.45.2" + "react-dom": "16.8.4" } } diff --git a/webdriver-ts/package.json b/webdriver-ts/package.json index 922721543..db91a6b58 100644 --- a/webdriver-ts/package.json +++ b/webdriver-ts/package.json @@ -42,10 +42,10 @@ "jstat": "1.9.2", "lighthouse": "5.6.0", "lodash": "4.17.15", + "npm-check-updates": "4.0.1", "ramda": "0.27.0", "selenium-webdriver": "4.0.0-alpha.1", - "yargs": "15.1.0", - "npm-check-updates": "4.0.1", - "semver": "7.1.2" + "semver": "7.1.2", + "yargs": "15.1.0" } } From 8fd6c848891a00f15eec6499193c09d3ff3cecd6 Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 17:43:02 +0300 Subject: [PATCH 17/26] change npm i -d -> npm ci --- bechmark_change.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bechmark_change.sh b/bechmark_change.sh index 7609e7b8e..70b0af7c4 100755 --- a/bechmark_change.sh +++ b/bechmark_change.sh @@ -12,26 +12,26 @@ http -p 8080 & set -euo pipefail cd frameworks/keyed/yew rm -f Cargo.lock - npm install -d + npm ci npm run build-prod ) ( set -euo pipefail cd frameworks/keyed/yew-baseline rm -f Cargo.lock - npm install -d + npm ci npm run build-prod ) ( set -euo pipefail cd webdriver-ts-results - npm install -d + npm ci ) ( set -euo pipefail cd webdriver-ts rm -rf results - npm install -d + npm ci npm run build-prod npm run bench -- --headless keyed/yew keyed/yew-baseline npm run results From f21c6e69c0dc9dca2462907e8fdceec0b4f8a4ec Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 19:01:42 +0300 Subject: [PATCH 18/26] parametric yew path --- README.md | 129 ++-------------------- bechmark_change.sh => benchmark_change.sh | 7 +- frameworks/keyed/yew/Cargo.toml | 2 +- 3 files changed, 15 insertions(+), 123 deletions(-) rename bechmark_change.sh => benchmark_change.sh (73%) diff --git a/README.md b/README.md index 9a0bdceed..ea67a81f6 100755 --- a/README.md +++ b/README.md @@ -37,7 +37,9 @@ There are 3 framework entries in this repository: * `keyed/yew` * `keyed/yew-baseline` _(Used to determine if recent changes improved performance)_ -### 1. Prerequisites +### Prerequisites + +#### Install Node Have *node.js (>=10.0)* installed. We recommend using `nvm` to manage node versions The benchmark has been tested with node v12.16.2. Please make sure that the following command work before trying to build: @@ -51,136 +53,23 @@ v12.16.2 v12.16.2 ``` -### Install `chromedriver` +#### Install `chromedriver` https://chromedriver.chromium.org/downloads -### Setup local server - -You can use any server which properly handles the MIME type of wasm files. We recommend the `https` crate: +#### Install local server ``` cargo install https ``` -Start server in the root directory -``` -http -p 8080 -``` - -Verify that the server works: -Try to open [http://localhost:8080/index.html](http://localhost:8080/index.html). If you see something like that you're on the right track: - - -Now open a new terminal window and keep `http` running in background. - -### 2. Building and running a single framework - -We now try to build a framework. Go to the `wasm-bindgen` reference implementation -``` -cd frameworks/keyed/wasm-bindgen -``` -and install the dependencies -``` -npm install -``` -and build the framework -``` -npm run build-prod -``` -There should be no build errors and we can open the framework in the browser: -[http://localhost:8080/frameworks/keyed/wasm-bindgen/index.html](http://localhost:8080/frameworks/keyed/wasm-bindgen/index.html) - -## 3. Running a single framework with the automated benchmark driver - -The benchmark uses an automated benchmark driver using `chromedriver` to measure the duration for each operation using chrome's timeline. Here are the steps to run for a single framework: +Make sure port `8080` is not taken. ### Run benchmarks -First, navigate to the `webdriver-ts/` directory. - -and install the dependencies -``` -npm install -``` -and build the benchmark driver -``` -npm run build-prod -``` -now run the benchmark driver for the "wasmbindgen-keyed" framework: -``` -npm run bench -- --headless keyed/wasm-bindgen -``` -Just lean back and wait for chrome to run the benchmarks. -Keep an eye on the console output to see if benchmark checks are timing out. If so, visit [http://localhost:8080/frameworks/keyed/wasm-bindgen/index.html](http://localhost:8080/frameworks/keyed/wasm-bindgen/index.html) and check for console errors. You could also try without using `--headless` to debug. - -The results for that run will be saved in the `webdriver-ts/results` directory. We can take a look at the results of a single result: -``` -cat results/wasm-bindgen-v0.2.47-keyed_01_run1k.json - -{ - "framework": "wasm-bindgen-v0.2.47-keyed", - "keyed": true, - "benchmark": "01_run1k", - "type": "cpu", - "min": 101.123, - "max": 114.547, - "mean": 107.69300000000001, - "median": 105.821, - "geometricMean": 107.5587774247631, - "standardDeviation": 6.028027040417119, - "values": [ - 114.547, - 113.509, - 103.465, - 105.821, - 101.123 - ] -} -``` -As you can see the mean duration for create 1000 rows was 107 msecs. - -You can also check whether the implementation appears to be compliant to the rules: -``` -npm run check keyed/wasm-bindgen -``` -If it finds anything it'll report an ERROR. - -## 4. Building the result table - -Install libraries -``` -(cd webdriver-ts-results && npm install) -``` - -In the webdriver-ts directory issue the following command: -``` -npm run results -``` -Now a result table should have been created which can be opened on [http://localhost:8080/webdriver-ts-results/table.html](http://localhost:8080/webdriver-ts-results/table.html). - -## 5. Building and running the benchmarks for all frameworks - -From the base directory, you can build all frameworks by running ``` -npm install -npm run build-prod +./benchmark_change.sh $CHANGED_YEW_PROJECT ``` - -You can now run the benchmark for all frameworks by: - -1. Navigate to the `webdriver-ts/` directory -2. Run benches: `npm run bench -- --headless --count <COUNT>` -3. Process results: `npm run results` - -After that, you can check all results in [http://localhost:8080/webdriver-ts/table.html](http://localhost:8080/webdriver-ts/table.html). - -## Tips and tricks - -* You can run multiple frameworks by passing their directory names (cd to webdriver-ts): -`npm run bench keyed/yew-baseline keyed/yew` or if you want to pass more options it becomes: -`npm run bench -- --count 3 keyed/yew`. -* You can run all of the frameworks you've installed using `npm run bench -- --installed` -* To achieve good precision you should run each framework often enough. I recommend at least 10 times, more is better. The result table contains the mean and the standard deviation. You can seen the effect on the latter pretty well if you increase the count. - +where `$CHANGED_YEW_PROJECT` is the path to the root of the yew project you have +your changes in. diff --git a/bechmark_change.sh b/benchmark_change.sh similarity index 73% rename from bechmark_change.sh rename to benchmark_change.sh index 70b0af7c4..eb0ab7299 100755 --- a/bechmark_change.sh +++ b/benchmark_change.sh @@ -6,7 +6,10 @@ http -p 8080 & ( set -euo pipefail - npm install -d + git checkout HEAD -- frameworks/keyed/yew/Cargo.toml + sed -i "s/PATH/$1\/packages/yew/" frameworks/keyed/yew/Cargo.toml + + npm ci ( set -euo pipefail @@ -37,7 +40,7 @@ http -p 8080 & npm run results ) - chromium http://localhost:8080/webdriver-ts-results/table.html + xdg-open http://localhost:8080/webdriver-ts-results/table.html & ) kill %% diff --git a/frameworks/keyed/yew/Cargo.toml b/frameworks/keyed/yew/Cargo.toml index 1d36292c4..d3f1922bb 100644 --- a/frameworks/keyed/yew/Cargo.toml +++ b/frameworks/keyed/yew/Cargo.toml @@ -12,7 +12,7 @@ rand = {version = "0.7.3", features = ["wasm-bindgen", "small_rng"]} wasm-bindgen = "0.2.62" # UPDATE TO USE YOUR BRANCH -yew = {path = "/home/janis/src/yew/packages/yew"} +yew = {path = "PATH"} # UPDATE TO USE YOUR BRANCH [profile.release] From e4f05a4787a3e1f5defd9603faa68190f3f584dc Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 19:35:49 +0300 Subject: [PATCH 19/26] fix path substitution --- benchmark_change.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark_change.sh b/benchmark_change.sh index eb0ab7299..85422f912 100755 --- a/benchmark_change.sh +++ b/benchmark_change.sh @@ -7,7 +7,7 @@ http -p 8080 & set -euo pipefail git checkout HEAD -- frameworks/keyed/yew/Cargo.toml - sed -i "s/PATH/$1\/packages/yew/" frameworks/keyed/yew/Cargo.toml + sed -i "s,PATH,$1/packages/yew," frameworks/keyed/yew/Cargo.toml npm ci @@ -40,7 +40,7 @@ http -p 8080 & npm run results ) - xdg-open http://localhost:8080/webdriver-ts-results/table.html & + xdg-open http://localhost:8080/webdriver-ts-results/table.html ) kill %% From 5db86a9574346ea12f940b1508bd8c6bfd0fb22d Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 20:00:14 +0300 Subject: [PATCH 20/26] Update framework versions --- frameworks/keyed/yew-baseline/package.json | 2 +- frameworks/keyed/yew/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/keyed/yew-baseline/package.json b/frameworks/keyed/yew-baseline/package.json index b8bc377c8..b30402857 100644 --- a/frameworks/keyed/yew-baseline/package.json +++ b/frameworks/keyed/yew-baseline/package.json @@ -4,7 +4,7 @@ "description": "Benchmark for Yew", "license": "ISC", "js-framework-benchmark": { - "frameworkVersion": "0.16.2" + "frameworkVersion": "master" }, "scripts": { "build-dev": "rimraf bundled-dist && wasm-pack build --dev --target web --no-typescript --out-name js-framework-benchmark-yew --out-dir bundled-dist && cpr index.html bundled-dist/index.html && (cd bundled-dist && rimraf .gitignore README.md package.json)", diff --git a/frameworks/keyed/yew/package.json b/frameworks/keyed/yew/package.json index b8bc377c8..22fda1137 100644 --- a/frameworks/keyed/yew/package.json +++ b/frameworks/keyed/yew/package.json @@ -4,7 +4,7 @@ "description": "Benchmark for Yew", "license": "ISC", "js-framework-benchmark": { - "frameworkVersion": "0.16.2" + "frameworkVersion": "local" }, "scripts": { "build-dev": "rimraf bundled-dist && wasm-pack build --dev --target web --no-typescript --out-name js-framework-benchmark-yew --out-dir bundled-dist && cpr index.html bundled-dist/index.html && (cd bundled-dist && rimraf .gitignore README.md package.json)", From 3bb79a71357a85900a3d10b6b826327a39441a9b Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 23 May 2021 20:40:40 +0300 Subject: [PATCH 21/26] add delay to open the page --- benchmark_change.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmark_change.sh b/benchmark_change.sh index 85422f912..9a9b1c55e 100755 --- a/benchmark_change.sh +++ b/benchmark_change.sh @@ -40,7 +40,8 @@ http -p 8080 & npm run results ) - xdg-open http://localhost:8080/webdriver-ts-results/table.html + xdg-open http://localhost:8080/webdriver-ts-results/table.html & + sleep 1 ) kill %% From e9036e7d31d11af450115ae643495a53e30329ba Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 18 Jul 2021 20:14:09 +0300 Subject: [PATCH 22/26] Mac OS support --- benchmark_change.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/benchmark_change.sh b/benchmark_change.sh index 9a9b1c55e..bb5ff8667 100755 --- a/benchmark_change.sh +++ b/benchmark_change.sh @@ -40,7 +40,11 @@ http -p 8080 & npm run results ) - xdg-open http://localhost:8080/webdriver-ts-results/table.html & + if [[ $OSTYPE == 'darwin'* ]]; then + open http://localhost:8080/webdriver-ts-results/table.html & + else + xdg-open http://localhost:8080/webdriver-ts-results/table.html & + fi sleep 1 ) From 06a0402b76fe1824b9a0dfc5c8d2b99dded1300b Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 18 Jul 2021 20:52:43 +0300 Subject: [PATCH 23/26] update property syntax --- frameworks/keyed/yew-baseline/src/lib.rs | 30 ++++++++++++------------ frameworks/keyed/yew/Cargo.toml | 2 +- frameworks/keyed/yew/src/lib.rs | 30 ++++++++++++------------ 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/frameworks/keyed/yew-baseline/src/lib.rs b/frameworks/keyed/yew-baseline/src/lib.rs index 89aee58a0..e8547076a 100644 --- a/frameworks/keyed/yew-baseline/src/lib.rs +++ b/frameworks/keyed/yew-baseline/src/lib.rs @@ -155,18 +155,18 @@ impl Component for Model { .iter() .map(|row| { html! { - <Row key=row.id - data=row.clone() - selected=self.selected_id == Some(row.id) - on_select=self.on_select.clone() - on_remove=self.on_remove.clone() /> + <Row key={row.id} + data={row.clone()} + selected={self.selected_id == Some(row.id)} + on_select={self.on_select.clone()} + on_remove={self.on_remove.clone()} /> } }) .collect(); html! { <div class="container"> - <Jumbotron link=self.link.clone() /> + <Jumbotron link={self.link.clone()} /> <table class="table table-hover table-striped test-data"> <tbody id="tbody"> { rows } @@ -213,22 +213,22 @@ impl Component for Jumbotron { <div class="col-md-6"> <div class="row"> <div class="col-sm-6 smallpad"> - <button type="button" id="run" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Run(1_000))>{ "Create 1,000 rows" }</button> + <button type="button" id="run" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Run(1_000))}>{ "Create 1,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Run(10_000)) id="runlots">{ "Create 10,000 rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Run(10_000))} id="runlots">{ "Create 10,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Add(1_000)) id="add">{ "Append 1,000 rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Add(1_000))} id="add">{ "Append 1,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Update(10)) id="update">{ "Update every 10th row" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Update(10))} id="update">{ "Update every 10th row" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Clear) id="clear">{ "Clear" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Clear)} id="clear">{ "Clear" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Swap) id="swaprows">{ "Swap Rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Swap)} id="swaprows">{ "Swap Rows" }</button> </div> </div> </div> @@ -293,13 +293,13 @@ impl Component for Row { fn view(&self) -> Html { html! { - <tr class=if self.props.selected { "danger" } else { "" }> + <tr class={if self.props.selected { Some("danger") } else { None }}> <td class="col-md-1">{ self.props.data.id }</td> - <td class="col-md-4" onclick=self.state.on_select.clone()> + <td class="col-md-4" onclick={self.state.on_select.clone()}> <a class="lbl">{ self.props.data.label.clone() }</a> </td> <td class="col-md-1"> - <a class="remove" onclick=self.state.on_remove.clone()> + <a class="remove" onclick={self.state.on_remove.clone()}> <span class="glyphicon glyphicon-remove remove" aria-hidden="true"></span> </a> </td> diff --git a/frameworks/keyed/yew/Cargo.toml b/frameworks/keyed/yew/Cargo.toml index d3f1922bb..1d36292c4 100644 --- a/frameworks/keyed/yew/Cargo.toml +++ b/frameworks/keyed/yew/Cargo.toml @@ -12,7 +12,7 @@ rand = {version = "0.7.3", features = ["wasm-bindgen", "small_rng"]} wasm-bindgen = "0.2.62" # UPDATE TO USE YOUR BRANCH -yew = {path = "PATH"} +yew = {path = "/home/janis/src/yew/packages/yew"} # UPDATE TO USE YOUR BRANCH [profile.release] diff --git a/frameworks/keyed/yew/src/lib.rs b/frameworks/keyed/yew/src/lib.rs index 89aee58a0..e8547076a 100644 --- a/frameworks/keyed/yew/src/lib.rs +++ b/frameworks/keyed/yew/src/lib.rs @@ -155,18 +155,18 @@ impl Component for Model { .iter() .map(|row| { html! { - <Row key=row.id - data=row.clone() - selected=self.selected_id == Some(row.id) - on_select=self.on_select.clone() - on_remove=self.on_remove.clone() /> + <Row key={row.id} + data={row.clone()} + selected={self.selected_id == Some(row.id)} + on_select={self.on_select.clone()} + on_remove={self.on_remove.clone()} /> } }) .collect(); html! { <div class="container"> - <Jumbotron link=self.link.clone() /> + <Jumbotron link={self.link.clone()} /> <table class="table table-hover table-striped test-data"> <tbody id="tbody"> { rows } @@ -213,22 +213,22 @@ impl Component for Jumbotron { <div class="col-md-6"> <div class="row"> <div class="col-sm-6 smallpad"> - <button type="button" id="run" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Run(1_000))>{ "Create 1,000 rows" }</button> + <button type="button" id="run" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Run(1_000))}>{ "Create 1,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Run(10_000)) id="runlots">{ "Create 10,000 rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Run(10_000))} id="runlots">{ "Create 10,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Add(1_000)) id="add">{ "Append 1,000 rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Add(1_000))} id="add">{ "Append 1,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Update(10)) id="update">{ "Update every 10th row" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Update(10))} id="update">{ "Update every 10th row" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Clear) id="clear">{ "Clear" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Clear)} id="clear">{ "Clear" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick=self.link.callback(|_| Msg::Swap) id="swaprows">{ "Swap Rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Swap)} id="swaprows">{ "Swap Rows" }</button> </div> </div> </div> @@ -293,13 +293,13 @@ impl Component for Row { fn view(&self) -> Html { html! { - <tr class=if self.props.selected { "danger" } else { "" }> + <tr class={if self.props.selected { Some("danger") } else { None }}> <td class="col-md-1">{ self.props.data.id }</td> - <td class="col-md-4" onclick=self.state.on_select.clone()> + <td class="col-md-4" onclick={self.state.on_select.clone()}> <a class="lbl">{ self.props.data.label.clone() }</a> </td> <td class="col-md-1"> - <a class="remove" onclick=self.state.on_remove.clone()> + <a class="remove" onclick={self.state.on_remove.clone()}> <span class="glyphicon glyphicon-remove remove" aria-hidden="true"></span> </a> </td> From 1d60f9eac002721d59f2d201bd40a98c1f4f73fc Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 18 Jul 2021 20:57:19 +0300 Subject: [PATCH 24/26] fix yew path rouge commit --- frameworks/keyed/yew/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/keyed/yew/Cargo.toml b/frameworks/keyed/yew/Cargo.toml index 1d36292c4..d3f1922bb 100644 --- a/frameworks/keyed/yew/Cargo.toml +++ b/frameworks/keyed/yew/Cargo.toml @@ -12,7 +12,7 @@ rand = {version = "0.7.3", features = ["wasm-bindgen", "small_rng"]} wasm-bindgen = "0.2.62" # UPDATE TO USE YOUR BRANCH -yew = {path = "/home/janis/src/yew/packages/yew"} +yew = {path = "PATH"} # UPDATE TO USE YOUR BRANCH [profile.release] From 0cd543b93aa1a9b098969031f6f25bee93a85c43 Mon Sep 17 00:00:00 2001 From: bakape <bakape@gmail.com> Date: Sun, 19 Sep 2021 17:03:07 +0300 Subject: [PATCH 25/26] upgrade to components v2 API --- frameworks/keyed/yew-baseline/src/lib.rs | 88 ++++++++++-------------- frameworks/keyed/yew/Cargo.toml | 2 +- frameworks/keyed/yew/src/lib.rs | 88 ++++++++++-------------- 3 files changed, 71 insertions(+), 107 deletions(-) diff --git a/frameworks/keyed/yew-baseline/src/lib.rs b/frameworks/keyed/yew-baseline/src/lib.rs index e8547076a..05f38a2ca 100644 --- a/frameworks/keyed/yew-baseline/src/lib.rs +++ b/frameworks/keyed/yew-baseline/src/lib.rs @@ -4,7 +4,7 @@ use rand::prelude::*; use std::cmp::min; use wasm_bindgen::prelude::wasm_bindgen; use yew::prelude::*; -use yew::web_sys::window; +use yew::{html::Scope, web_sys::window}; static ADJECTIVES: &[&str] = &[ "pretty", @@ -68,7 +68,6 @@ struct Model { next_id: usize, selected_id: Option<usize>, rng: SmallRng, - link: ComponentLink<Self>, on_select: Callback<usize>, on_remove: Callback<usize>, } @@ -87,23 +86,18 @@ impl Component for Model { type Message = Msg; type Properties = (); - fn create(_: Self::Properties, link: ComponentLink<Self>) -> Self { + fn create(ctx: &Context<Self>) -> Self { Model { rows: Vec::new(), next_id: 1, selected_id: None, rng: SmallRng::from_entropy(), - on_select: link.callback(|id| Msg::Select(id)), - on_remove: link.callback(|id| Msg::Remove(id)), - link, + on_select: ctx.link().callback(|id| Msg::Select(id)), + on_remove: ctx.link().callback(|id| Msg::Remove(id)), } } - fn change(&mut self, _: ()) -> ShouldRender { - false - } - - fn update(&mut self, msg: Self::Message) -> ShouldRender { + fn update(&mut self, _: &Context<Self>, msg: Self::Message) -> bool { match msg { Msg::Run(amount) => { let rng = &mut self.rng; @@ -149,7 +143,7 @@ impl Component for Model { true } - fn view(&self) -> Html { + fn view(&self, ctx: &Context<Self>) -> Html { let rows: Html = self .rows .iter() @@ -166,7 +160,7 @@ impl Component for Model { html! { <div class="container"> - <Jumbotron link={self.link.clone()} /> + <Jumbotron link={ctx.link().clone()} /> <table class="table table-hover table-striped test-data"> <tbody id="tbody"> { rows } @@ -180,30 +174,29 @@ impl Component for Model { #[derive(Properties, Clone)] struct JumbotronProps { - link: ComponentLink<Model>, + link: Scope<Model>, } -struct Jumbotron { - link: ComponentLink<Model>, +impl PartialEq for JumbotronProps { + fn eq(&self, _: &Self) -> bool { + // Never changed + true + } } +impl Eq for JumbotronProps {} + +struct Jumbotron; + impl Component for Jumbotron { type Properties = JumbotronProps; type Message = (); - fn create(props: Self::Properties, _: ComponentLink<Self>) -> Self { - Self { link: props.link } - } - - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false - } - - fn update(&mut self, _: Self::Message) -> ShouldRender { - false + fn create(_: &Context<Self>) -> Self { + Self } - fn view(&self) -> Html { + fn view(&self, ctx: &Context<Self>) -> Html { html! { <div class="jumbotron"> <div class="row"> @@ -213,22 +206,22 @@ impl Component for Jumbotron { <div class="col-md-6"> <div class="row"> <div class="col-sm-6 smallpad"> - <button type="button" id="run" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Run(1_000))}>{ "Create 1,000 rows" }</button> + <button type="button" id="run" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Run(1_000))}>{ "Create 1,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Run(10_000))} id="runlots">{ "Create 10,000 rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Run(10_000))} id="runlots">{ "Create 10,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Add(1_000))} id="add">{ "Append 1,000 rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Add(1_000))} id="add">{ "Append 1,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Update(10))} id="update">{ "Update every 10th row" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Update(10))} id="update">{ "Update every 10th row" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Clear)} id="clear">{ "Clear" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Clear)} id="clear">{ "Clear" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Swap)} id="swaprows">{ "Swap Rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Swap)} id="swaprows">{ "Swap Rows" }</button> </div> </div> </div> @@ -253,7 +246,6 @@ struct RowState { struct Row { state: RowState, - props: RowProps, } impl RowState { @@ -270,33 +262,23 @@ impl Component for Row { type Message = (); type Properties = RowProps; - fn create(props: Self::Properties, _: ComponentLink<Self>) -> Self { + fn create(ctx: &Context<Self>) -> Self { Self { - state: RowState::from_props(&props), - props, + state: RowState::from_props(ctx.props()), } } - fn change(&mut self, props: RowProps) -> ShouldRender { - if self.props != props { - self.state = RowState::from_props(&props); - self.props = props; - true - } else { - false - } - } - - fn update(&mut self, _: ()) -> ShouldRender { - false + fn changed(&mut self, ctx: &Context<Self>) -> bool { + self.state = RowState::from_props(ctx.props()); + true } - fn view(&self) -> Html { + fn view(&self, ctx: &Context<Self>) -> Html { html! { - <tr class={if self.props.selected { Some("danger") } else { None }}> - <td class="col-md-1">{ self.props.data.id }</td> + <tr class={if ctx.props().selected { Some("danger") } else { None }}> + <td class="col-md-1">{ ctx.props().data.id }</td> <td class="col-md-4" onclick={self.state.on_select.clone()}> - <a class="lbl">{ self.props.data.label.clone() }</a> + <a class="lbl">{ ctx.props().data.label.clone() }</a> </td> <td class="col-md-1"> <a class="remove" onclick={self.state.on_remove.clone()}> diff --git a/frameworks/keyed/yew/Cargo.toml b/frameworks/keyed/yew/Cargo.toml index d3f1922bb..1d36292c4 100644 --- a/frameworks/keyed/yew/Cargo.toml +++ b/frameworks/keyed/yew/Cargo.toml @@ -12,7 +12,7 @@ rand = {version = "0.7.3", features = ["wasm-bindgen", "small_rng"]} wasm-bindgen = "0.2.62" # UPDATE TO USE YOUR BRANCH -yew = {path = "PATH"} +yew = {path = "/home/janis/src/yew/packages/yew"} # UPDATE TO USE YOUR BRANCH [profile.release] diff --git a/frameworks/keyed/yew/src/lib.rs b/frameworks/keyed/yew/src/lib.rs index e8547076a..05f38a2ca 100644 --- a/frameworks/keyed/yew/src/lib.rs +++ b/frameworks/keyed/yew/src/lib.rs @@ -4,7 +4,7 @@ use rand::prelude::*; use std::cmp::min; use wasm_bindgen::prelude::wasm_bindgen; use yew::prelude::*; -use yew::web_sys::window; +use yew::{html::Scope, web_sys::window}; static ADJECTIVES: &[&str] = &[ "pretty", @@ -68,7 +68,6 @@ struct Model { next_id: usize, selected_id: Option<usize>, rng: SmallRng, - link: ComponentLink<Self>, on_select: Callback<usize>, on_remove: Callback<usize>, } @@ -87,23 +86,18 @@ impl Component for Model { type Message = Msg; type Properties = (); - fn create(_: Self::Properties, link: ComponentLink<Self>) -> Self { + fn create(ctx: &Context<Self>) -> Self { Model { rows: Vec::new(), next_id: 1, selected_id: None, rng: SmallRng::from_entropy(), - on_select: link.callback(|id| Msg::Select(id)), - on_remove: link.callback(|id| Msg::Remove(id)), - link, + on_select: ctx.link().callback(|id| Msg::Select(id)), + on_remove: ctx.link().callback(|id| Msg::Remove(id)), } } - fn change(&mut self, _: ()) -> ShouldRender { - false - } - - fn update(&mut self, msg: Self::Message) -> ShouldRender { + fn update(&mut self, _: &Context<Self>, msg: Self::Message) -> bool { match msg { Msg::Run(amount) => { let rng = &mut self.rng; @@ -149,7 +143,7 @@ impl Component for Model { true } - fn view(&self) -> Html { + fn view(&self, ctx: &Context<Self>) -> Html { let rows: Html = self .rows .iter() @@ -166,7 +160,7 @@ impl Component for Model { html! { <div class="container"> - <Jumbotron link={self.link.clone()} /> + <Jumbotron link={ctx.link().clone()} /> <table class="table table-hover table-striped test-data"> <tbody id="tbody"> { rows } @@ -180,30 +174,29 @@ impl Component for Model { #[derive(Properties, Clone)] struct JumbotronProps { - link: ComponentLink<Model>, + link: Scope<Model>, } -struct Jumbotron { - link: ComponentLink<Model>, +impl PartialEq for JumbotronProps { + fn eq(&self, _: &Self) -> bool { + // Never changed + true + } } +impl Eq for JumbotronProps {} + +struct Jumbotron; + impl Component for Jumbotron { type Properties = JumbotronProps; type Message = (); - fn create(props: Self::Properties, _: ComponentLink<Self>) -> Self { - Self { link: props.link } - } - - fn change(&mut self, _: Self::Properties) -> ShouldRender { - false - } - - fn update(&mut self, _: Self::Message) -> ShouldRender { - false + fn create(_: &Context<Self>) -> Self { + Self } - fn view(&self) -> Html { + fn view(&self, ctx: &Context<Self>) -> Html { html! { <div class="jumbotron"> <div class="row"> @@ -213,22 +206,22 @@ impl Component for Jumbotron { <div class="col-md-6"> <div class="row"> <div class="col-sm-6 smallpad"> - <button type="button" id="run" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Run(1_000))}>{ "Create 1,000 rows" }</button> + <button type="button" id="run" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Run(1_000))}>{ "Create 1,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Run(10_000))} id="runlots">{ "Create 10,000 rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Run(10_000))} id="runlots">{ "Create 10,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Add(1_000))} id="add">{ "Append 1,000 rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Add(1_000))} id="add">{ "Append 1,000 rows" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Update(10))} id="update">{ "Update every 10th row" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Update(10))} id="update">{ "Update every 10th row" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Clear)} id="clear">{ "Clear" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Clear)} id="clear">{ "Clear" }</button> </div> <div class="col-sm-6 smallpad"> - <button type="button" class="btn btn-primary btn-block" onclick={self.link.callback(|_| Msg::Swap)} id="swaprows">{ "Swap Rows" }</button> + <button type="button" class="btn btn-primary btn-block" onclick={ctx.props().link.callback(|_| Msg::Swap)} id="swaprows">{ "Swap Rows" }</button> </div> </div> </div> @@ -253,7 +246,6 @@ struct RowState { struct Row { state: RowState, - props: RowProps, } impl RowState { @@ -270,33 +262,23 @@ impl Component for Row { type Message = (); type Properties = RowProps; - fn create(props: Self::Properties, _: ComponentLink<Self>) -> Self { + fn create(ctx: &Context<Self>) -> Self { Self { - state: RowState::from_props(&props), - props, + state: RowState::from_props(ctx.props()), } } - fn change(&mut self, props: RowProps) -> ShouldRender { - if self.props != props { - self.state = RowState::from_props(&props); - self.props = props; - true - } else { - false - } - } - - fn update(&mut self, _: ()) -> ShouldRender { - false + fn changed(&mut self, ctx: &Context<Self>) -> bool { + self.state = RowState::from_props(ctx.props()); + true } - fn view(&self) -> Html { + fn view(&self, ctx: &Context<Self>) -> Html { html! { - <tr class={if self.props.selected { Some("danger") } else { None }}> - <td class="col-md-1">{ self.props.data.id }</td> + <tr class={if ctx.props().selected { Some("danger") } else { None }}> + <td class="col-md-1">{ ctx.props().data.id }</td> <td class="col-md-4" onclick={self.state.on_select.clone()}> - <a class="lbl">{ self.props.data.label.clone() }</a> + <a class="lbl">{ ctx.props().data.label.clone() }</a> </td> <td class="col-md-1"> <a class="remove" onclick={self.state.on_remove.clone()}> From fa2fa25940ccb71d2267ae6142044d1a3f2c3d1f Mon Sep 17 00:00:00 2001 From: Janis Petersons <bakape@gmail.com> Date: Wed, 29 Dec 2021 16:12:41 +0200 Subject: [PATCH 26/26] fix rouge path commit --- frameworks/keyed/yew/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/keyed/yew/Cargo.toml b/frameworks/keyed/yew/Cargo.toml index 1d36292c4..d3f1922bb 100644 --- a/frameworks/keyed/yew/Cargo.toml +++ b/frameworks/keyed/yew/Cargo.toml @@ -12,7 +12,7 @@ rand = {version = "0.7.3", features = ["wasm-bindgen", "small_rng"]} wasm-bindgen = "0.2.62" # UPDATE TO USE YOUR BRANCH -yew = {path = "/home/janis/src/yew/packages/yew"} +yew = {path = "PATH"} # UPDATE TO USE YOUR BRANCH [profile.release]