-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.bundle.js
1 lines (1 loc) · 167 KB
/
index.bundle.js
1
(()=>{var t={757:(t,n,e)=>{t.exports=e(666)},566:(t,n,e)=>{"use strict";e.d(n,{Z:()=>u});var r=e(81),a=e.n(r),i=e(645),o=e.n(i)()(a());o.push([t.id,'body {\n font-family: "Open Sans";\n}\n\n.svg-container {\n display: inline-block;\n position: relative;\n width: 100%;\n padding-bottom: 75%;\n vertical-align: top;\n overflow: hidden;\n border-radius : .25rem;\n}\n\n.svg-content-responsive {\n display: inline-block;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n#heatmap-container {\n border-radius : 0 0 .25rem .25rem;\n}\n\n#edge-importance-container{\n padding-bottom: 55%;\n}\n\n#arthitecture-designer-container{\n padding-bottom: 83%;\n}\n\n.performance-result {\n opacity: 0.5;\n}\n\n.recommend-accuracy{\n font-size : 13.2px;\n}\n\n.idc {\n font-weight: bold;\n font-family: "Rajdhani", sans-serif;\n}\n.lab {\n font-family: "Rajdhani", sans-serif;\n}\n\na {\n text-decoration: none;\n}\na:hover {\n text-decoration: underline;\n}\nbody {\n min-height: 100vh;\n display: grid;\n grid-template-rows: auto 1fr auto;\n}\n\nbutton {\n font-size: 10px;\n}\n\n\n#recommend-accuracy {\n text-align: center;\n font-size: 7;\n}\n\n.preset-cell {\n padding-bottom: 0.25rem;\n}\n\n#preset-col li {\n width: 100%;\n}\n#preset-name {\n text-align: center;\n font-size: 7;\n}\n.append-button {\n color: white;\n}\n\n.section-title {\n font-size: 10;\n}\n\n.tooltip-inner {\n max-width: 400px;\n text-align: left;\n padding: 10px;\n}\n\n.width-auto {\n width: auto;\n}\n',""]);const u=o},645:t=>{"use strict";t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e="",r=void 0!==n[5];return n[4]&&(e+="@supports (".concat(n[4],") {")),n[2]&&(e+="@media ".concat(n[2]," {")),r&&(e+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),e+=t(n),r&&(e+="}"),n[2]&&(e+="}"),n[4]&&(e+="}"),e})).join("")},n.i=function(t,e,r,a,i){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var u=0;u<this.length;u++){var c=this[u][0];null!=c&&(o[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);r&&o[f[0]]||(void 0!==i&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=i),e&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=e):f[2]=e),a&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=a):f[4]="".concat(a)),n.push(f))}},n}},81:t=>{"use strict";t.exports=function(t){return t[1]}},666:t=>{var n=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,e){return t[n]=e}}function l(t,n,e,r){var a=n&&n.prototype instanceof v?n:v,i=Object.create(a.prototype),o=new E(r||[]);return i._invoke=function(t,n,e){var r=s;return function(a,i){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===a)throw i;return T()}for(e.method=a,e.arg=i;;){var o=e.delegate;if(o){var u=k(o,e);if(u){if(u===y)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===s)throw r=p,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=d;var c=f(t,n,e);if("normal"===c.type){if(r=e.done?p:h,c.arg===y)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r=p,e.method="throw",e.arg=c.arg)}}}(t,e,o),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var s="suspendedStart",h="suspendedYield",d="executing",p="completed",y={};function v(){}function g(){}function m(){}var b={};b[i]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(O([])));w&&w!==e&&r.call(w,i)&&(b=w);var _=m.prototype=v.prototype=Object.create(b);function M(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function A(t,n){function e(a,i,o,u){var c=f(t[a],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==typeof s&&r.call(s,"__await")?n.resolve(s.__await).then((function(t){e("next",t,o,u)}),(function(t){e("throw",t,o,u)})):n.resolve(s).then((function(t){l.value=t,o(l)}),(function(t){return e("throw",t,o,u)}))}u(c.arg)}var a;this._invoke=function(t,r){function i(){return new n((function(n,a){e(t,r,n,a)}))}return a=a?a.then(i,i):i()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var a=f(r,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,y;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function e(){for(;++a<t.length;)if(r.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:T}}function T(){return{value:n,done:!0}}return g.prototype=_.constructor=m,m.constructor=g,g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===g||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},M(A.prototype),A.prototype[o]=function(){return this},t.AsyncIterator=A,t.async=function(n,e,r,a,i){void 0===i&&(i=Promise);var o=new A(l(n,e,r,a),i);return t.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},M(_),c(_,u,"Generator"),_[i]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return u.type="throw",u.arg=t,e.next=r,a&&(e.method="next",e.arg=n),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=n,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),y},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var a=r.arg;S(e)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),y}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},379:t=>{"use strict";var n=[];function e(t){for(var e=-1,r=0;r<n.length;r++)if(n[r].identifier===t){e=r;break}return e}function r(t,r){for(var i={},o=[],u=0;u<t.length;u++){var c=t[u],l=r.base?c[0]+r.base:c[0],f=i[l]||0,s="".concat(l," ").concat(f);i[l]=f+1;var h=e(s),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)n[h].references++,n[h].updater(d);else{var p=a(d,r);r.byIndex=u,n.splice(u,0,{identifier:s,updater:p,references:1})}o.push(s)}return o}function a(t,n){var e=n.domAPI(n);return e.update(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap&&n.supports===t.supports&&n.layer===t.layer)return;e.update(t=n)}else e.remove()}}t.exports=function(t,a){var i=r(t=t||[],a=a||{});return function(t){t=t||[];for(var o=0;o<i.length;o++){var u=e(i[o]);n[u].references--}for(var c=r(t,a),l=0;l<i.length;l++){var f=e(i[l]);0===n[f].references&&(n[f].updater(),n.splice(f,1))}i=c}}},569:t=>{"use strict";var n={};t.exports=function(t,e){var r=function(t){if(void 0===n[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}n[t]=e}return n[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(e)}},216:t=>{"use strict";t.exports=function(t){var n=document.createElement("style");return t.setAttributes(n,t.attributes),t.insert(n,t.options),n}},565:(t,n,e)=>{"use strict";t.exports=function(t){var n=e.nc;n&&t.setAttribute("nonce",n)}},795:t=>{"use strict";t.exports=function(t){var n=t.insertStyleElement(t);return{update:function(e){!function(t,n,e){var r="";e.supports&&(r+="@supports (".concat(e.supports,") {")),e.media&&(r+="@media ".concat(e.media," {"));var a=void 0!==e.layer;a&&(r+="@layer".concat(e.layer.length>0?" ".concat(e.layer):""," {")),r+=e.css,a&&(r+="}"),e.media&&(r+="}"),e.supports&&(r+="}");var i=e.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleTagTransform(r,t,n.options)}(n,t,e)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)}}}},589:t=>{"use strict";t.exports=function(t,n){if(n.styleSheet)n.styleSheet.cssText=t;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(t))}}}},n={};function e(r){var a=n[r];if(void 0!==a)return a.exports;var i=n[r]={id:r,exports:{}};return t[r](i,i.exports,e),i.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n);var r={};(()=>{"use strict";function t(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let a of t)null!=(a=n(a,++r,t))&&(e<a||void 0===e&&a>=a)&&(e=a)}return e}function n(t,n,e){t=+t,n=+n,e=(a=arguments.length)<2?(n=t,t=0,1):a<3?1:+e;for(var r=-1,a=0|Math.max(0,Math.ceil((n-t)/e)),i=new Array(a);++r<a;)i[r]=t+r*e;return i}function a(t){return t}e.d(r,{i:()=>kl,J:()=>Nl});var i=1e-6;function o(t){return"translate("+t+",0)"}function u(t){return"translate(0,"+t+")"}function c(t){return n=>+t(n)}function l(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function f(){return!this.__axis}function s(t,n){var e=[],r=null,s=null,h=6,d=6,p=3,y="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,v=1===t||4===t?-1:1,g=4===t||2===t?"x":"y",m=1===t||3===t?o:u;function b(o){var u=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,b=null==s?n.tickFormat?n.tickFormat.apply(n,e):a:s,x=Math.max(h,0)+p,w=n.range(),_=+w[0]+y,M=+w[w.length-1]+y,A=(n.bandwidth?l:c)(n.copy(),y),k=o.selection?o.selection():o,N=k.selectAll(".domain").data([null]),S=k.selectAll(".tick").data(u,n).order(),E=S.exit(),O=S.enter().append("g").attr("class","tick"),T=S.select("line"),j=S.select("text");N=N.merge(N.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(O),T=T.merge(O.append("line").attr("stroke","currentColor").attr(g+"2",v*h)),j=j.merge(O.append("text").attr("fill","currentColor").attr(g,v*x).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),o!==k&&(N=N.transition(o),S=S.transition(o),T=T.transition(o),j=j.transition(o),E=E.transition(o).attr("opacity",i).attr("transform",(function(t){return isFinite(t=A(t))?m(t+y):this.getAttribute("transform")})),O.attr("opacity",i).attr("transform",(function(t){var n=this.parentNode.__axis;return m((n&&isFinite(n=n(t))?n:A(t))+y)}))),E.remove(),N.attr("d",4===t||2===t?d?"M"+v*d+","+_+"H"+y+"V"+M+"H"+v*d:"M"+y+","+_+"V"+M:d?"M"+_+","+v*d+"V"+y+"H"+M+"V"+v*d:"M"+_+","+y+"H"+M),S.attr("opacity",1).attr("transform",(function(t){return m(A(t)+y)})),T.attr(g+"2",v*h),j.attr(g,v*x).text(b),k.filter(f).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),k.each((function(){this.__axis=A}))}return b.scale=function(t){return arguments.length?(n=t,b):n},b.ticks=function(){return e=Array.from(arguments),b},b.tickArguments=function(t){return arguments.length?(e=null==t?[]:Array.from(t),b):e.slice()},b.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),b):r&&r.slice()},b.tickFormat=function(t){return arguments.length?(s=t,b):s},b.tickSize=function(t){return arguments.length?(h=d=+t,b):h},b.tickSizeInner=function(t){return arguments.length?(h=+t,b):h},b.tickSizeOuter=function(t){return arguments.length?(d=+t,b):d},b.tickPadding=function(t){return arguments.length?(p=+t,b):p},b.offset=function(t){return arguments.length?(y=+t,b):y},b}function h(t){return s(4,t)}function d(){}function p(t){return null==t?d:function(){return this.querySelector(t)}}function y(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function v(){return[]}function g(t){return null==t?v:function(){return this.querySelectorAll(t)}}function m(t){return function(){return this.matches(t)}}function b(t){return function(n){return n.matches(t)}}var x=Array.prototype.find;function w(){return this.firstElementChild}var _=Array.prototype.filter;function M(){return Array.from(this.children)}function A(t){return new Array(t.length)}function k(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function N(t){return function(){return t}}function S(t,n,e,r,a,i){for(var o,u=0,c=n.length,l=i.length;u<l;++u)(o=n[u])?(o.__data__=i[u],r[u]=o):e[u]=new k(t,i[u]);for(;u<c;++u)(o=n[u])&&(a[u]=o)}function E(t,n,e,r,a,i,o){var u,c,l,f=new Map,s=n.length,h=i.length,d=new Array(s);for(u=0;u<s;++u)(c=n[u])&&(d[u]=l=o.call(c,c.__data__,u,n)+"",f.has(l)?a[u]=c:f.set(l,c));for(u=0;u<h;++u)l=o.call(t,i[u],u,i)+"",(c=f.get(l))?(r[u]=c,c.__data__=i[u],f.delete(l)):e[u]=new k(t,i[u]);for(u=0;u<s;++u)(c=n[u])&&f.get(d[u])===c&&(a[u]=c)}function O(t){return t.__data__}function T(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function j(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}k.prototype={constructor:k,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var P="http://www.w3.org/1999/xhtml";const C={svg:"http://www.w3.org/2000/svg",xhtml:P,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function I(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),C.hasOwnProperty(n)?{space:C[n],local:t}:t}function L(t){return function(){this.removeAttribute(t)}}function z(t){return function(){this.removeAttributeNS(t.space,t.local)}}function U(t,n){return function(){this.setAttribute(t,n)}}function q(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function R(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function X(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function D(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function V(t){return function(){this.style.removeProperty(t)}}function $(t,n,e){return function(){this.style.setProperty(t,n,e)}}function B(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function H(t,n){return t.style.getPropertyValue(n)||D(t).getComputedStyle(t,null).getPropertyValue(n)}function F(t){return function(){delete this[t]}}function Y(t,n){return function(){this[t]=n}}function G(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function W(t){return t.trim().split(/^|\s+/)}function Z(t){return t.classList||new J(t)}function J(t){this._node=t,this._names=W(t.getAttribute("class")||"")}function K(t,n){for(var e=Z(t),r=-1,a=n.length;++r<a;)e.add(n[r])}function Q(t,n){for(var e=Z(t),r=-1,a=n.length;++r<a;)e.remove(n[r])}function tt(t){return function(){K(this,t)}}function nt(t){return function(){Q(this,t)}}function et(t,n){return function(){(n.apply(this,arguments)?K:Q)(this,t)}}function rt(){this.textContent=""}function at(t){return function(){this.textContent=t}}function it(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function ot(){this.innerHTML=""}function ut(t){return function(){this.innerHTML=t}}function ct(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function lt(){this.nextSibling&&this.parentNode.appendChild(this)}function ft(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function st(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===P&&n.documentElement.namespaceURI===P?n.createElement(t):n.createElementNS(e,t)}}function ht(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function dt(t){var n=I(t);return(n.local?ht:st)(n)}function pt(){return null}function yt(){var t=this.parentNode;t&&t.removeChild(this)}function vt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function gt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function mt(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function bt(t){return function(){var n=this.__on;if(n){for(var e,r=0,a=-1,i=n.length;r<i;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++a]=e:this.removeEventListener(e.type,e.listener,e.options);++a?n.length=a:delete this.__on}}}function xt(t,n,e){return function(){var r,a=this.__on,i=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(a)for(var o=0,u=a.length;o<u;++o)if((r=a[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=e),void(r.value=n);this.addEventListener(t.type,i,e),r={type:t.type,name:t.name,value:n,listener:i,options:e},a?a.push(r):this.__on=[r]}}function wt(t,n,e){var r=D(t),a=r.CustomEvent;"function"==typeof a?a=new a(n,e):(a=r.document.createEvent("Event"),e?(a.initEvent(n,e.bubbles,e.cancelable),a.detail=e.detail):a.initEvent(n,!1,!1)),t.dispatchEvent(a)}function _t(t,n){return function(){return wt(this,t,n)}}function Mt(t,n){return function(){return wt(this,t,n.apply(this,arguments))}}J.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var At=[null];function kt(t,n){this._groups=t,this._parents=n}function Nt(){return new kt([[document.documentElement]],At)}kt.prototype=Nt.prototype={constructor:kt,select:function(t){"function"!=typeof t&&(t=p(t));for(var n=this._groups,e=n.length,r=new Array(e),a=0;a<e;++a)for(var i,o,u=n[a],c=u.length,l=r[a]=new Array(c),f=0;f<c;++f)(i=u[f])&&(o=t.call(i,i.__data__,f,u))&&("__data__"in i&&(o.__data__=i.__data__),l[f]=o);return new kt(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return y(t.apply(this,arguments))}}(t):g(t);for(var n=this._groups,e=n.length,r=[],a=[],i=0;i<e;++i)for(var o,u=n[i],c=u.length,l=0;l<c;++l)(o=u[l])&&(r.push(t.call(o,o.__data__,l,u)),a.push(o));return new kt(r,a)},selectChild:function(t){return this.select(null==t?w:function(t){return function(){return x.call(this.children,t)}}("function"==typeof t?t:b(t)))},selectChildren:function(t){return this.selectAll(null==t?M:function(t){return function(){return _.call(this.children,t)}}("function"==typeof t?t:b(t)))},filter:function(t){"function"!=typeof t&&(t=m(t));for(var n=this._groups,e=n.length,r=new Array(e),a=0;a<e;++a)for(var i,o=n[a],u=o.length,c=r[a]=[],l=0;l<u;++l)(i=o[l])&&t.call(i,i.__data__,l,o)&&c.push(i);return new kt(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,O);var e=n?E:S,r=this._parents,a=this._groups;"function"!=typeof t&&(t=N(t));for(var i=a.length,o=new Array(i),u=new Array(i),c=new Array(i),l=0;l<i;++l){var f=r[l],s=a[l],h=s.length,d=T(t.call(f,f&&f.__data__,l,r)),p=d.length,y=u[l]=new Array(p),v=o[l]=new Array(p),g=c[l]=new Array(h);e(f,s,y,v,g,d,n);for(var m,b,x=0,w=0;x<p;++x)if(m=y[x]){for(x>=w&&(w=x+1);!(b=v[w])&&++w<p;);m._next=b||null}}return(o=new kt(o,r))._enter=u,o._exit=c,o},enter:function(){return new kt(this._enter||this._groups.map(A),this._parents)},exit:function(){return new kt(this._exit||this._groups.map(A),this._parents)},join:function(t,n,e){var r=this.enter(),a=this,i=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=n&&(a=n(a))&&(a=a.selection()),null==e?i.remove():e(i),r&&a?r.merge(a).order():a},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,a=e.length,i=r.length,o=Math.min(a,i),u=new Array(a),c=0;c<o;++c)for(var l,f=e[c],s=r[c],h=f.length,d=u[c]=new Array(h),p=0;p<h;++p)(l=f[p]||s[p])&&(d[p]=l);for(;c<a;++c)u[c]=e[c];return new kt(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,a=t[n],i=a.length-1,o=a[i];--i>=0;)(r=a[i])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=j);for(var e=this._groups,r=e.length,a=new Array(r),i=0;i<r;++i){for(var o,u=e[i],c=u.length,l=a[i]=new Array(c),f=0;f<c;++f)(o=u[f])&&(l[f]=o);l.sort(n)}return new kt(a,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],a=0,i=r.length;a<i;++a){var o=r[a];if(o)return o}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var a,i=n[e],o=0,u=i.length;o<u;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this},attr:function(t,n){var e=I(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?z:L:"function"==typeof n?e.local?X:R:e.local?q:U)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?V:"function"==typeof n?B:$)(t,n,null==e?"":e)):H(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?F:"function"==typeof n?G:Y)(t,n)):this.node()[t]},classed:function(t,n){var e=W(t+"");if(arguments.length<2){for(var r=Z(this.node()),a=-1,i=e.length;++a<i;)if(!r.contains(e[a]))return!1;return!0}return this.each(("function"==typeof n?et:n?tt:nt)(e,n))},text:function(t){return arguments.length?this.each(null==t?rt:("function"==typeof t?it:at)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ot:("function"==typeof t?ct:ut)(t)):this.node().innerHTML},raise:function(){return this.each(lt)},lower:function(){return this.each(ft)},append:function(t){var n="function"==typeof t?t:dt(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:dt(t),r=null==n?pt:"function"==typeof n?n:p(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(yt)},clone:function(t){return this.select(t?gt:vt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,a,i=mt(t+""),o=i.length;if(!(arguments.length<2)){for(u=n?xt:bt,r=0;r<o;++r)this.each(u(i[r],n,e));return this}var u=this.node().__on;if(u)for(var c,l=0,f=u.length;l<f;++l)for(r=0,c=u[l];r<o;++r)if((a=i[r]).type===c.type&&a.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?Mt:_t)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,a=t[n],i=0,o=a.length;i<o;++i)(r=a[i])&&(yield r)}};const St=Nt;var Et={value:()=>{}};function Ot(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Tt(r)}function Tt(t){this._=t}function jt(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function Pt(t,n){for(var e,r=0,a=t.length;r<a;++r)if((e=t[r]).name===n)return e.value}function Ct(t,n,e){for(var r=0,a=t.length;r<a;++r)if(t[r].name===n){t[r]=Et,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}Tt.prototype=Ot.prototype={constructor:Tt,on:function(t,n){var e,r=this._,a=jt(t+"",r),i=-1,o=a.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++i<o;)if(e=(t=a[i]).type)r[e]=Ct(r[e],t.name,n);else if(null==n)for(e in r)r[e]=Ct(r[e],t.name,null);return this}for(;++i<o;)if((e=(t=a[i]).type)&&(e=Pt(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Tt(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,a=new Array(e),i=0;i<e;++i)a[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,e=(r=this._[t]).length;i<e;++i)r[i].value.apply(n,a)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],a=0,i=r.length;a<i;++a)r[a].value.apply(n,e)}};const It=Ot;var Lt,zt,Ut=0,qt=0,Rt=0,Xt=0,Dt=0,Vt=0,$t="object"==typeof performance&&performance.now?performance:Date,Bt="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ht(){return Dt||(Bt(Ft),Dt=$t.now()+Vt)}function Ft(){Dt=0}function Yt(){this._call=this._time=this._next=null}function Gt(t,n,e){var r=new Yt;return r.restart(t,n,e),r}function Wt(){Dt=(Xt=$t.now())+Vt,Ut=qt=0;try{!function(){Ht(),++Ut;for(var t,n=Lt;n;)(t=Dt-n._time)>=0&&n._call.call(void 0,t),n=n._next;--Ut}()}finally{Ut=0,function(){for(var t,n,e=Lt,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Lt=n);zt=t,Jt(r)}(),Dt=0}}function Zt(){var t=$t.now(),n=t-Xt;n>1e3&&(Vt-=n,Xt=t)}function Jt(t){Ut||(qt&&(qt=clearTimeout(qt)),t-Dt>24?(t<1/0&&(qt=setTimeout(Wt,t-$t.now()-Vt)),Rt&&(Rt=clearInterval(Rt))):(Rt||(Xt=$t.now(),Rt=setInterval(Zt,1e3)),Ut=1,Bt(Wt)))}function Kt(t,n,e){var r=new Yt;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}Yt.prototype=Gt.prototype={constructor:Yt,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ht():+e)+(null==n?0:+n),this._next||zt===this||(zt?zt._next=this:Lt=this,zt=this),this._call=t,this._time=e,Jt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jt())}};var Qt=It("start","end","cancel","interrupt"),tn=[];function nn(t,n,e,r,a,i){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function(t,n,e){var r,a=t.__transition;function i(c){var l,f,s,h;if(1!==e.state)return u();for(l in a)if((h=a[l]).name===e.name){if(3===h.state)return Kt(i);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete a[l]):+l<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete a[l])}if(Kt((function(){3===e.state&&(e.state=4,e.timer.restart(o,e.delay,e.time),o(c))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(s=e.tween.length),l=0,f=-1;l<s;++l)(h=e.tween[l].value.call(t,t.__data__,e.index,e.group))&&(r[++f]=h);r.length=f+1}}function o(n){for(var a=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(u),e.state=5,1),i=-1,o=r.length;++i<o;)r[i].call(t,a);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){for(var r in e.state=6,e.timer.stop(),delete a[n],a)return;delete t.__transition}a[n]=e,e.timer=Gt((function(t){e.state=1,e.timer.restart(i,e.delay,e.time),e.delay<=t&&i(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:a,on:Qt,tween:tn,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function en(t,n){var e=an(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function rn(t,n){var e=an(t,n);if(e.state>3)throw new Error("too late; already running");return e}function an(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function on(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var un,cn=180/Math.PI,ln={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fn(t,n,e,r,a,i){var o,u,c;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,c/=u),t*r<n*e&&(t=-t,n=-n,c=-c,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(n,t)*cn,skewX:Math.atan(c)*cn,scaleX:o,scaleY:u}}function sn(t,n,e,r){function a(t){return t.length?t.pop()+" ":""}return function(i,o){var u=[],c=[];return i=t(i),o=t(o),function(t,r,a,i,o,u){if(t!==a||r!==i){var c=o.push("translate(",null,n,null,e);u.push({i:c-4,x:on(t,a)},{i:c-2,x:on(r,i)})}else(a||i)&&o.push("translate("+a+n+i+e)}(i.translateX,i.translateY,o.translateX,o.translateY,u,c),function(t,n,e,i){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),i.push({i:e.push(a(e)+"rotate(",null,r)-2,x:on(t,n)})):n&&e.push(a(e)+"rotate("+n+r)}(i.rotate,o.rotate,u,c),function(t,n,e,i){t!==n?i.push({i:e.push(a(e)+"skewX(",null,r)-2,x:on(t,n)}):n&&e.push(a(e)+"skewX("+n+r)}(i.skewX,o.skewX,u,c),function(t,n,e,r,i,o){if(t!==e||n!==r){var u=i.push(a(i)+"scale(",null,",",null,")");o.push({i:u-4,x:on(t,e)},{i:u-2,x:on(n,r)})}else 1===e&&1===r||i.push(a(i)+"scale("+e+","+r+")")}(i.scaleX,i.scaleY,o.scaleX,o.scaleY,u,c),i=o=null,function(t){for(var n,e=-1,r=c.length;++e<r;)u[(n=c[e]).i]=n.x(t);return u.join("")}}}var hn=sn((function(t){const n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?ln:fn(n.a,n.b,n.c,n.d,n.e,n.f)}),"px, ","px)","deg)"),dn=sn((function(t){return null==t?ln:(un||(un=document.createElementNS("http://www.w3.org/2000/svg","g")),un.setAttribute("transform",t),(t=un.transform.baseVal.consolidate())?fn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ln)}),", ",")",")");function pn(t,n){var e,r;return function(){var a=rn(this,t),i=a.tween;if(i!==e)for(var o=0,u=(r=e=i).length;o<u;++o)if(r[o].name===n){(r=r.slice()).splice(o,1);break}a.tween=r}}function yn(t,n,e){var r,a;if("function"!=typeof e)throw new Error;return function(){var i=rn(this,t),o=i.tween;if(o!==r){a=(r=o).slice();for(var u={name:n,value:e},c=0,l=a.length;c<l;++c)if(a[c].name===n){a[c]=u;break}c===l&&a.push(u)}i.tween=a}}function vn(t,n,e){var r=t._id;return t.each((function(){var t=rn(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return an(t,r).value[n]}}function gn(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function mn(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function bn(){}var xn=.7,wn=1/xn,_n="\\s*([+-]?\\d+)\\s*",Mn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",An="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kn=/^#([0-9a-f]{3,8})$/,Nn=new RegExp("^rgb\\("+[_n,_n,_n]+"\\)$"),Sn=new RegExp("^rgb\\("+[An,An,An]+"\\)$"),En=new RegExp("^rgba\\("+[_n,_n,_n,Mn]+"\\)$"),On=new RegExp("^rgba\\("+[An,An,An,Mn]+"\\)$"),Tn=new RegExp("^hsl\\("+[Mn,An,An]+"\\)$"),jn=new RegExp("^hsla\\("+[Mn,An,An,Mn]+"\\)$"),Pn={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 Cn(){return this.rgb().formatHex()}function In(){return this.rgb().formatRgb()}function Ln(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=kn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?zn(n):3===e?new Xn(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Un(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Un(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Nn.exec(t))?new Xn(n[1],n[2],n[3],1):(n=Sn.exec(t))?new Xn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=En.exec(t))?Un(n[1],n[2],n[3],n[4]):(n=On.exec(t))?Un(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Tn.exec(t))?Bn(n[1],n[2]/100,n[3]/100,1):(n=jn.exec(t))?Bn(n[1],n[2]/100,n[3]/100,n[4]):Pn.hasOwnProperty(t)?zn(Pn[t]):"transparent"===t?new Xn(NaN,NaN,NaN,0):null}function zn(t){return new Xn(t>>16&255,t>>8&255,255&t,1)}function Un(t,n,e,r){return r<=0&&(t=n=e=NaN),new Xn(t,n,e,r)}function qn(t){return t instanceof bn||(t=Ln(t)),t?new Xn((t=t.rgb()).r,t.g,t.b,t.opacity):new Xn}function Rn(t,n,e,r){return 1===arguments.length?qn(t):new Xn(t,n,e,null==r?1:r)}function Xn(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Dn(){return"#"+$n(this.r)+$n(this.g)+$n(this.b)}function Vn(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function $n(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Bn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Fn(t,n,e,r)}function Hn(t){if(t instanceof Fn)return new Fn(t.h,t.s,t.l,t.opacity);if(t instanceof bn||(t=Ln(t)),!t)return new Fn;if(t instanceof Fn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,a=Math.min(n,e,r),i=Math.max(n,e,r),o=NaN,u=i-a,c=(i+a)/2;return u?(o=n===i?(e-r)/u+6*(e<r):e===i?(r-n)/u+2:(n-e)/u+4,u/=c<.5?i+a:2-i-a,o*=60):u=c>0&&c<1?0:o,new Fn(o,u,c,t.opacity)}function Fn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Yn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Gn(t,n,e,r,a){var i=t*t,o=i*t;return((1-3*t+3*i-o)*n+(4-6*i+3*o)*e+(1+3*t+3*i-3*o)*r+o*a)/6}gn(bn,Ln,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Cn,formatHex:Cn,formatHsl:function(){return Hn(this).formatHsl()},formatRgb:In,toString:In}),gn(Xn,Rn,mn(bn,{brighter:function(t){return t=null==t?wn:Math.pow(wn,t),new Xn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?xn:Math.pow(xn,t),new Xn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Dn,formatHex:Dn,formatRgb:Vn,toString:Vn})),gn(Fn,(function(t,n,e,r){return 1===arguments.length?Hn(t):new Fn(t,n,e,null==r?1:r)}),mn(bn,{brighter:function(t){return t=null==t?wn:Math.pow(wn,t),new Fn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?xn:Math.pow(xn,t),new Fn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,a=2*e-r;return new Xn(Yn(t>=240?t-240:t+120,a,r),Yn(t,a,r),Yn(t<120?t+240:t-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Wn=t=>()=>t;function Zn(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Wn(isNaN(t)?n:t)}const Jn=function t(n){var e=function(t){return 1==(t=+t)?Zn:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Wn(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=Rn(t)).r,(n=Rn(n)).r),a=e(t.g,n.g),i=e(t.b,n.b),o=Zn(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=a(n),t.b=i(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function Kn(t){return function(n){var e,r,a=n.length,i=new Array(a),o=new Array(a),u=new Array(a);for(e=0;e<a;++e)r=Rn(n[e]),i[e]=r.r||0,o[e]=r.g||0,u[e]=r.b||0;return i=t(i),o=t(o),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=o(t),r.b=u(t),r+""}}}var Qn=Kn((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),a=t[r],i=t[r+1],o=r>0?t[r-1]:2*a-i,u=r<n-1?t[r+2]:2*i-a;return Gn((e-r/n)*n,o,a,i,u)}})),te=(Kn((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),a=t[(r+n-1)%n],i=t[r%n],o=t[(r+1)%n],u=t[(r+2)%n];return Gn((e-r/n)*n,a,i,o,u)}})),/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g),ne=new RegExp(te.source,"g");function ee(t,n){var e,r,a,i=te.lastIndex=ne.lastIndex=0,o=-1,u=[],c=[];for(t+="",n+="";(e=te.exec(t))&&(r=ne.exec(n));)(a=r.index)>i&&(a=n.slice(i,a),u[o]?u[o]+=a:u[++o]=a),(e=e[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:on(e,r)})),i=ne.lastIndex;return i<n.length&&(a=n.slice(i),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)u[(e=c[r]).i]=e.x(t);return u.join("")})}function re(t,n){var e;return("number"==typeof n?on:n instanceof Ln?Jn:(e=Ln(n))?(n=e,Jn):ee)(t,n)}function ae(t){return function(){this.removeAttribute(t)}}function ie(t){return function(){this.removeAttributeNS(t.space,t.local)}}function oe(t,n,e){var r,a,i=e+"";return function(){var o=this.getAttribute(t);return o===i?null:o===r?a:a=n(r=o,e)}}function ue(t,n,e){var r,a,i=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?a:a=n(r=o,e)}}function ce(t,n,e){var r,a,i;return function(){var o,u,c=e(this);if(null!=c)return(o=this.getAttribute(t))===(u=c+"")?null:o===r&&u===a?i:(a=u,i=n(r=o,c));this.removeAttribute(t)}}function le(t,n,e){var r,a,i;return function(){var o,u,c=e(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(u=c+"")?null:o===r&&u===a?i:(a=u,i=n(r=o,c));this.removeAttributeNS(t.space,t.local)}}function fe(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function se(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function he(t,n){var e,r;function a(){var a=n.apply(this,arguments);return a!==r&&(e=(r=a)&&se(t,a)),e}return a._value=n,a}function de(t,n){var e,r;function a(){var a=n.apply(this,arguments);return a!==r&&(e=(r=a)&&fe(t,a)),e}return a._value=n,a}function pe(t,n){return function(){en(this,t).delay=+n.apply(this,arguments)}}function ye(t,n){return n=+n,function(){en(this,t).delay=n}}function ve(t,n){return function(){rn(this,t).duration=+n.apply(this,arguments)}}function ge(t,n){return n=+n,function(){rn(this,t).duration=n}}function me(t,n){if("function"!=typeof n)throw new Error;return function(){rn(this,t).ease=n}}function be(t,n,e){var r,a,i=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?en:rn;return function(){var o=i(this,t),u=o.on;u!==r&&(a=(r=u).copy()).on(n,e),o.on=a}}var xe=St.prototype.constructor;function we(t){return function(){this.style.removeProperty(t)}}function _e(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Me(t,n,e){var r,a;function i(){var i=n.apply(this,arguments);return i!==a&&(r=(a=i)&&_e(t,i,e)),r}return i._value=n,i}function Ae(t){return function(n){this.textContent=t.call(this,n)}}function ke(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&Ae(r)),n}return r._value=t,r}var Ne=0;function Se(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Ee(){return++Ne}var Oe=St.prototype;Se.prototype=function(t){return St().transition(t)}.prototype={constructor:Se,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=p(t));for(var r=this._groups,a=r.length,i=new Array(a),o=0;o<a;++o)for(var u,c,l=r[o],f=l.length,s=i[o]=new Array(f),h=0;h<f;++h)(u=l[h])&&(c=t.call(u,u.__data__,h,l))&&("__data__"in u&&(c.__data__=u.__data__),s[h]=c,nn(s[h],n,e,h,s,an(u,e)));return new Se(i,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=g(t));for(var r=this._groups,a=r.length,i=[],o=[],u=0;u<a;++u)for(var c,l=r[u],f=l.length,s=0;s<f;++s)if(c=l[s]){for(var h,d=t.call(c,c.__data__,s,l),p=an(c,e),y=0,v=d.length;y<v;++y)(h=d[y])&&nn(h,n,e,y,d,p);i.push(d),o.push(c)}return new Se(i,o,n,e)},selectChild:Oe.selectChild,selectChildren:Oe.selectChildren,filter:function(t){"function"!=typeof t&&(t=m(t));for(var n=this._groups,e=n.length,r=new Array(e),a=0;a<e;++a)for(var i,o=n[a],u=o.length,c=r[a]=[],l=0;l<u;++l)(i=o[l])&&t.call(i,i.__data__,l,o)&&c.push(i);return new Se(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,a=e.length,i=Math.min(r,a),o=new Array(r),u=0;u<i;++u)for(var c,l=n[u],f=e[u],s=l.length,h=o[u]=new Array(s),d=0;d<s;++d)(c=l[d]||f[d])&&(h[d]=c);for(;u<r;++u)o[u]=n[u];return new Se(o,this._parents,this._name,this._id)},selection:function(){return new xe(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Ee(),r=this._groups,a=r.length,i=0;i<a;++i)for(var o,u=r[i],c=u.length,l=0;l<c;++l)if(o=u[l]){var f=an(o,n);nn(o,t,e,l,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Se(r,this._parents,t,e)},call:Oe.call,nodes:Oe.nodes,node:Oe.node,size:Oe.size,empty:Oe.empty,each:Oe.each,on:function(t,n){var e=this._id;return arguments.length<2?an(this.node(),e).on.on(t):this.each(be(e,t,n))},attr:function(t,n){var e=I(t),r="transform"===e?dn:re;return this.attrTween(t,"function"==typeof n?(e.local?le:ce)(e,r,vn(this,"attr."+t,n)):null==n?(e.local?ie:ae)(e):(e.local?ue:oe)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=I(t);return this.tween(e,(r.local?he:de)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?hn:re;return null==n?this.styleTween(t,function(t,n){var e,r,a;return function(){var i=H(this,t),o=(this.style.removeProperty(t),H(this,t));return i===o?null:i===e&&o===r?a:a=n(e=i,r=o)}}(t,r)).on("end.style."+t,we(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,a,i;return function(){var o=H(this,t),u=e(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=H(this,t)),o===c?null:o===r&&c===a?i:(a=c,i=n(r=o,u))}}(t,r,vn(this,"style."+t,n))).each(function(t,n){var e,r,a,i,o="style."+n,u="end."+o;return function(){var c=rn(this,t),l=c.on,f=null==c.value[o]?i||(i=we(n)):void 0;l===e&&a===f||(r=(e=l).copy()).on(u,a=f),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,a,i=e+"";return function(){var o=H(this,t);return o===i?null:o===r?a:a=n(r=o,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,Me(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(vn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,ke(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,a=an(this.node(),e).tween,i=0,o=a.length;i<o;++i)if((r=a[i]).name===t)return r.value;return null}return this.each((null==n?pn:yn)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?pe:ye)(n,t)):an(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ve:ge)(n,t)):an(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(me(n,t)):an(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!=typeof e)throw new Error;rn(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,a=e.size();return new Promise((function(i,o){var u={value:o},c={value:function(){0==--a&&i()}};e.each((function(){var e=rn(this,r),a=e.on;a!==t&&((n=(t=a).copy())._.cancel.push(u),n._.interrupt.push(u),n._.end.push(c)),e.on=n})),0===a&&i()}))},[Symbol.iterator]:Oe[Symbol.iterator]};var Te={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function je(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}St.prototype.interrupt=function(t){return this.each((function(){!function(t,n){var e,r,a,i=t.__transition,o=!0;if(i){for(a in n=null==n?null:n+"",i)(e=i[a]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete i[a]):o=!1;o&&delete t.__transition}}(this,t)}))},St.prototype.transition=function(t){var n,e;t instanceof Se?(n=t._id,t=t._name):(n=Ee(),(e=Te).time=Ht(),t=null==t?null:t+"");for(var r=this._groups,a=r.length,i=0;i<a;++i)for(var o,u=r[i],c=u.length,l=0;l<c;++l)(o=u[l])&&nn(o,t,n,l,u,e||je(o,n));return new Se(r,this._parents,t,n)};const{abs:Pe,max:Ce,min:Ie}=Math;function Le(t){return{type:t}}function ze(t){return"string"==typeof t?new kt([[document.querySelector(t)]],[document.documentElement]):new kt([[t]],At)}function Ue(t,n){if(t=function(t){let n;for(;n=t.sourceEvent;)t=n;return t}(t),void 0===n&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(n.getScreenCTM().inverse())).x,r.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[t.clientX-a.left-n.clientLeft,t.clientY-a.top-n.clientTop]}}return[t.pageX,t.pageY]}["w","e"].map(Le),["n","s"].map(Le),["n","w","e","s","nw","ne","sw","se"].map(Le);const qe={passive:!1},Re={capture:!0,passive:!1};function Xe(t){t.stopImmediatePropagation()}function De(t){t.preventDefault(),t.stopImmediatePropagation()}const Ve=t=>()=>t;function $e(t,{sourceEvent:n,subject:e,target:r,identifier:a,active:i,x:o,y:u,dx:c,dy:l,dispatch:f}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:f}})}function Be(t){return!t.ctrlKey&&!t.button}function He(){return this.parentNode}function Fe(t,n){return null==n?{x:t.x,y:t.y}:n}function Ye(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ge(){var t,n,e,r,a=Be,i=He,o=Fe,u=Ye,c={},l=It("start","drag","end"),f=0,s=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",v).on("touchmove.drag",g,qe).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(o,u){if(!r&&a.call(this,o,u)){var c=b(this,i.call(this,o,u),o,u,"mouse");c&&(ze(o.view).on("mousemove.drag",p,Re).on("mouseup.drag",y,Re),function(t){var n=t.document.documentElement,e=ze(t).on("dragstart.drag",De,Re);"onselectstart"in n?e.on("selectstart.drag",De,Re):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(o.view),Xe(o),e=!1,t=o.clientX,n=o.clientY,c("start",o))}}function p(r){if(De(r),!e){var a=r.clientX-t,i=r.clientY-n;e=a*a+i*i>s}c.mouse("drag",r)}function y(t){ze(t.view).on("mousemove.drag mouseup.drag",null),function(t,n){var e=t.document.documentElement,r=ze(t).on("dragstart.drag",null);n&&(r.on("click.drag",De,Re),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}(t.view,e),De(t),c.mouse("end",t)}function v(t,n){if(a.call(this,t,n)){var e,r,o=t.changedTouches,u=i.call(this,t,n),c=o.length;for(e=0;e<c;++e)(r=b(this,u,t,n,o[e].identifier,o[e]))&&(Xe(t),r("start",t,o[e]))}}function g(t){var n,e,r=t.changedTouches,a=r.length;for(n=0;n<a;++n)(e=c[r[n].identifier])&&(De(t),e("drag",t,r[n]))}function m(t){var n,e,a=t.changedTouches,i=a.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),n=0;n<i;++n)(e=c[a[n].identifier])&&(Xe(t),e("end",t,a[n]))}function b(t,n,e,r,a,i){var u,s,d,p=l.copy(),y=Ue(i||e,n);if(null!=(d=o.call(t,new $e("beforestart",{sourceEvent:e,target:h,identifier:a,active:f,x:y[0],y:y[1],dx:0,dy:0,dispatch:p}),r)))return u=d.x-y[0]||0,s=d.y-y[1]||0,function e(i,o,l){var v,g=y;switch(i){case"start":c[a]=e,v=f++;break;case"end":delete c[a],--f;case"drag":y=Ue(l||o,n),v=f}p.call(i,t,new $e(i,{sourceEvent:o,subject:d,target:h,identifier:a,active:v,x:y[0]+u,y:y[1]+s,dx:y[0]-g[0],dy:y[1]-g[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(a="function"==typeof t?t:Ve(!!t),h):a},h.container=function(t){return arguments.length?(i="function"==typeof t?t:Ve(t),h):i},h.subject=function(t){return arguments.length?(o="function"==typeof t?t:Ve(t),h):o},h.touchable=function(t){return arguments.length?(u="function"==typeof t?t:Ve(!!t),h):u},h.on=function(){var t=l.on.apply(l,arguments);return t===l?h:t},h.clickDistance=function(t){return arguments.length?(s=(t=+t)*t,h):Math.sqrt(s)},h}function We(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Ze(t,n){return fetch(t,n).then(We)}function Je(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var a,i,o,u,c,l,f,s,h,d=t._root,p={data:r},y=t._x0,v=t._y0,g=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((l=n>=(i=(y+g)/2))?y=i:g=i,(f=e>=(o=(v+m)/2))?v=o:m=o,a=d,!(d=d[s=f<<1|l]))return a[s]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,a?a[s]=p:t._root=p,t;do{a=a?a[s]=new Array(4):t._root=new Array(4),(l=n>=(i=(y+g)/2))?y=i:g=i,(f=e>=(o=(v+m)/2))?v=o:m=o}while((s=f<<1|l)==(h=(c>=o)<<1|u>=i));return a[h]=d,a[s]=p,t}function Ke(t,n,e,r,a){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=a}function Qe(t){return t[0]}function tr(t){return t[1]}function nr(t,n,e){var r=new er(null==n?Qe:n,null==e?tr:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function er(t,n,e,r,a,i){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=a,this._y1=i,this._root=void 0}function rr(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}$e.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var ar=nr.prototype=er.prototype;function ir(t){return function(){return t}}function or(t){return 1e-6*(t()-.5)}function ur(t){return t.x+t.vx}function cr(t){return t.y+t.vy}function lr(t){return t.index}function fr(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}ar.copy=function(){var t,n,e=new er(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=rr(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var a=0;a<4;++a)(n=r.source[a])&&(n.length?t.push({source:n,target:r.target[a]=new Array(4)}):r.target[a]=rr(n));return e},ar.add=function(t){const n=+this._x.call(null,t),e=+this._y.call(null,t);return Je(this.cover(n,e),n,e,t)},ar.addAll=function(t){var n,e,r,a,i=t.length,o=new Array(i),u=new Array(i),c=1/0,l=1/0,f=-1/0,s=-1/0;for(e=0;e<i;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(a=+this._y.call(null,n))||(o[e]=r,u[e]=a,r<c&&(c=r),r>f&&(f=r),a<l&&(l=a),a>s&&(s=a));if(c>f||l>s)return this;for(this.cover(c,l).cover(f,s),e=0;e<i;++e)Je(this,o[e],u[e],t[e]);return this},ar.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,a=this._x1,i=this._y1;if(isNaN(e))a=(e=Math.floor(t))+1,i=(r=Math.floor(n))+1;else{for(var o,u,c=a-e||1,l=this._root;e>t||t>=a||r>n||n>=i;)switch(u=(n<r)<<1|t<e,(o=new Array(4))[u]=l,l=o,c*=2,u){case 0:a=e+c,i=r+c;break;case 1:e=a-c,i=r+c;break;case 2:a=e+c,r=i-c;break;case 3:e=a-c,r=i-c}this._root&&this._root.length&&(this._root=l)}return this._x0=e,this._y0=r,this._x1=a,this._y1=i,this},ar.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},ar.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ar.find=function(t,n,e){var r,a,i,o,u,c,l,f=this._x0,s=this._y0,h=this._x1,d=this._y1,p=[],y=this._root;for(y&&p.push(new Ke(y,f,s,h,d)),null==e?e=1/0:(f=t-e,s=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(y=c.node)||(a=c.x0)>h||(i=c.y0)>d||(o=c.x1)<f||(u=c.y1)<s))if(y.length){var v=(a+o)/2,g=(i+u)/2;p.push(new Ke(y[3],v,g,o,u),new Ke(y[2],a,g,v,u),new Ke(y[1],v,i,o,g),new Ke(y[0],a,i,v,g)),(l=(n>=g)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var m=t-+this._x.call(null,y.data),b=n-+this._y.call(null,y.data),x=m*m+b*b;if(x<e){var w=Math.sqrt(e=x);f=t-w,s=n-w,h=t+w,d=n+w,r=y.data}}return r},ar.remove=function(t){if(isNaN(i=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var n,e,r,a,i,o,u,c,l,f,s,h,d=this._root,p=this._x0,y=this._y0,v=this._x1,g=this._y1;if(!d)return this;if(d.length)for(;;){if((l=i>=(u=(p+v)/2))?p=u:v=u,(f=o>=(c=(y+g)/2))?y=c:g=c,n=d,!(d=d[s=f<<1|l]))return this;if(!d.length)break;(n[s+1&3]||n[s+2&3]||n[s+3&3])&&(e=n,h=s)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(a=d.next)&&delete d.next,r?(a?r.next=a:delete r.next,this):n?(a?n[s]=a:delete n[s],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=a,this)},ar.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},ar.root=function(){return this._root},ar.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},ar.visit=function(t){var n,e,r,a,i,o,u=[],c=this._root;for(c&&u.push(new Ke(c,this._x0,this._y0,this._x1,this._y1));n=u.pop();)if(!t(c=n.node,r=n.x0,a=n.y0,i=n.x1,o=n.y1)&&c.length){var l=(r+i)/2,f=(a+o)/2;(e=c[3])&&u.push(new Ke(e,l,f,i,o)),(e=c[2])&&u.push(new Ke(e,r,f,l,o)),(e=c[1])&&u.push(new Ke(e,l,a,i,f)),(e=c[0])&&u.push(new Ke(e,r,a,l,f))}return this},ar.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new Ke(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var a=n.node;if(a.length){var i,o=n.x0,u=n.y0,c=n.x1,l=n.y1,f=(o+c)/2,s=(u+l)/2;(i=a[0])&&e.push(new Ke(i,o,u,f,s)),(i=a[1])&&e.push(new Ke(i,f,u,c,s)),(i=a[2])&&e.push(new Ke(i,o,s,f,l)),(i=a[3])&&e.push(new Ke(i,f,s,c,l))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},ar.x=function(t){return arguments.length?(this._x=t,this):this._x},ar.y=function(t){return arguments.length?(this._y=t,this):this._y};const sr=4294967296;function hr(t){return t.x}function dr(t){return t.y}var pr=Math.PI*(3-Math.sqrt(5));function yr(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function vr(t){return(t=yr(Math.abs(t)))?t[1]:NaN}var gr,mr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function br(t){if(!(n=mr.exec(t)))throw new Error("invalid format: "+t);var n;return new xr({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function xr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function wr(t,n){var e=yr(t,n);if(!e)return t+"";var r=e[0],a=e[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}br.prototype=xr.prototype,xr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const _r={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>wr(100*t,n),r:wr,s:function(t,n){var e=yr(t,n);if(!e)return t+"";var r=e[0],a=e[1],i=a-(gr=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+yr(t,Math.max(0,n+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Mr(t){return t}var Ar,kr,Nr,Sr=Array.prototype.map,Er=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Or(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function Tr(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}Ar=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Mr:(n=Sr.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var a=t.length,i=[],o=0,u=n[0],c=0;a>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(t.substring(a-=u,a+u)),!((c+=u+1)>r));)u=n[o=(o+1)%n.length];return i.reverse().join(e)}),a=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Mr:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Sr.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function s(t){var n=(t=br(t)).fill,e=t.align,s=t.sign,h=t.symbol,d=t.zero,p=t.width,y=t.comma,v=t.precision,g=t.trim,m=t.type;"n"===m?(y=!0,m="g"):_r[m]||(void 0===v&&(v=12),g=!0,m="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?a:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===h?i:/[%p]/.test(m)?c:"",w=_r[m],_=/[defgprs%]/.test(m);function M(t){var a,i,c,h=b,M=x;if("c"===m)M=w(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:w(Math.abs(t),v),g&&(t=function(t){t:for(var n,e=t.length,r=1,a=-1;r<e;++r)switch(t[r]){case".":a=n=r;break;case"0":0===a&&(a=r),n=r;break;default:if(!+t[r])break t;a>0&&(a=0)}return a>0?t.slice(0,a)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==s&&(A=!1),h=(A?"("===s?s:l:"-"===s||"("===s?"":s)+h,M=("s"===m?Er[8+gr/3]:"")+M+(A&&"("===s?")":""),_)for(a=-1,i=t.length;++a<i;)if(48>(c=t.charCodeAt(a))||c>57){M=(46===c?o+t.slice(a+1):t.slice(a))+M,t=t.slice(0,a);break}}y&&!d&&(t=r(t,1/0));var k=h.length+t.length+M.length,N=k<p?new Array(p-k+1).join(n):"";switch(y&&d&&(t=r(N+t,N.length?p-M.length:1/0),N=""),e){case"<":t=h+t+M+N;break;case"=":t=h+N+t+M;break;case"^":t=N.slice(0,k=N.length>>1)+h+t+M+N.slice(k);break;default:t=N+h+t+M}return u(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),M.toString=function(){return t+""},M}return{format:s,formatPrefix:function(t,n){var e=s(((t=br(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(vr(n)/3))),a=Math.pow(10,-r),i=Er[8+r/3];return function(t){return e(a*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),kr=Ar.format,Nr=Ar.formatPrefix;class jr extends Map{constructor(t,n=Cr){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(Pr(this,t))}has(t){return super.has(Pr(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(e),t.delete(r)),e}(this,t))}}function Pr({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function Cr(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Ir=Symbol("implicit");function Lr(){var t=new jr,n=[],e=[],r=Ir;function a(a){let i=t.get(a);if(void 0===i){if(r!==Ir)return r;t.set(a,i=n.push(a)-1)}return e[i%e.length]}return a.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new jr;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return a},a.range=function(t){return arguments.length?(e=Array.from(t),a):e.slice()},a.unknown=function(t){return arguments.length?(r=t,a):r},a.copy=function(){return Lr(n,e).unknown(r)},Or.apply(a,arguments),a}function zr(){var t,e,r=Lr().unknown(void 0),a=r.domain,i=r.range,o=0,u=1,c=!1,l=0,f=0,s=.5;function h(){var r=a().length,h=u<o,d=h?u:o,p=h?o:u;t=(p-d)/Math.max(1,r-l+2*f),c&&(t=Math.floor(t)),d+=(p-d-t*(r-l))*s,e=t*(1-l),c&&(d=Math.round(d),e=Math.round(e));var y=n(r).map((function(n){return d+t*n}));return i(h?y.reverse():y)}return delete r.unknown,r.domain=function(t){return arguments.length?(a(t),h()):a()},r.range=function(t){return arguments.length?([o,u]=t,o=+o,u=+u,h()):[o,u]},r.rangeRound=function(t){return[o,u]=t,o=+o,u=+u,c=!0,h()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,h()):c},r.padding=function(t){return arguments.length?(l=Math.min(1,f=+t),h()):l},r.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},r.paddingOuter=function(t){return arguments.length?(f=+t,h()):f},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),h()):s},r.copy=function(){return zr(a(),[o,u]).round(c).paddingInner(l).paddingOuter(f).align(s)},Or.apply(h(),arguments)}var Ur=Math.sqrt(50),qr=Math.sqrt(10),Rr=Math.sqrt(2);function Xr(t,n,e){var r=(n-t)/Math.max(0,e),a=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,a);return a>=0?(i>=Ur?10:i>=qr?5:i>=Rr?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(i>=Ur?10:i>=qr?5:i>=Rr?2:1)}function Dr(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Vr(t){let n=t,e=t;function r(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r<a;){const i=r+a>>>1;e(t[i],n)<0?r=i+1:a=i}return r}return 1===t.length&&(n=(n,e)=>t(n)-e,e=function(t){return(n,e)=>Dr(t(n),e)}(t)),{left:r,center:function(t,e,a,i){null==a&&(a=0),null==i&&(i=t.length);const o=r(t,e,a,i-1);return o>a&&n(t[o-1],e)>-n(t[o],e)?o-1:o},right:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r<a;){const i=r+a>>>1;e(t[i],n)>0?a=i:r=i+1}return r}}}const $r=Vr(Dr),Br=$r.right,Hr=($r.left,Vr((function(t){return null===t?NaN:+t})).center,Br);function Fr(t,n){var e,r=n?n.length:0,a=t?Math.min(r,t.length):0,i=new Array(a),o=new Array(r);for(e=0;e<a;++e)i[e]=Zr(t[e],n[e]);for(;e<r;++e)o[e]=n[e];return function(t){for(e=0;e<a;++e)o[e]=i[e](t);return o}}function Yr(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function Gr(t,n){var e,r={},a={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Zr(t[e],n[e]):a[e]=n[e];return function(t){for(e in r)a[e]=r[e](t);return a}}function Wr(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,a=n.slice();return function(i){for(e=0;e<r;++e)a[e]=t[e]*(1-i)+n[e]*i;return a}}function Zr(t,n){var e,r,a=typeof n;return null==n||"boolean"===a?Wn(n):("number"===a?on:"string"===a?(e=Ln(n))?(n=e,Jn):ee:n instanceof Ln?Jn:n instanceof Date?Yr:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?Fr:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Gr:on:Wr))(t,n)}function Jr(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Kr(t){return+t}var Qr=[0,1];function ta(t){return t}function na(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function ea(t,n,e){var r=t[0],a=t[1],i=n[0],o=n[1];return a<r?(r=na(a,r),i=e(o,i)):(r=na(r,a),i=e(i,o)),function(t){return i(r(t))}}function ra(t,n,e){var r=Math.min(t.length,n.length)-1,a=new Array(r),i=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<r;)a[o]=na(t[o],t[o+1]),i[o]=e(n[o],n[o+1]);return function(n){var e=Hr(t,n,1,r)-1;return i[e](a[e](n))}}function aa(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ia(){return function(){var t,n,e,r,a,i,o=Qr,u=Qr,c=Zr,l=ta;function f(){var t,n,e,c=Math.min(o.length,u.length);return l!==ta&&(t=o[0],n=o[c-1],t>n&&(e=t,t=n,n=e),l=function(e){return Math.max(t,Math.min(n,e))}),r=c>2?ra:ea,a=i=null,s}function s(n){return null==n||isNaN(n=+n)?e:(a||(a=r(o.map(t),u,c)))(t(l(n)))}return s.invert=function(e){return l(n((i||(i=r(u,o.map(t),on)))(e)))},s.domain=function(t){return arguments.length?(o=Array.from(t,Kr),f()):o.slice()},s.range=function(t){return arguments.length?(u=Array.from(t),f()):u.slice()},s.rangeRound=function(t){return u=Array.from(t),c=Jr,f()},s.clamp=function(t){return arguments.length?(l=!!t||ta,f()):l!==ta},s.interpolate=function(t){return arguments.length?(c=t,f()):c},s.unknown=function(t){return arguments.length?(e=t,s):e},function(e,r){return t=e,n=r,f()}}()(ta,ta)}function oa(t){var n=t.domain;return t.ticks=function(t){var e=n();return function(t,n,e){var r,a,i,o,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(a=t,t=n,n=a),0===(o=Xr(t,n,e))||!isFinite(o))return[];if(o>0){let e=Math.round(t/o),r=Math.round(n/o);for(e*o<t&&++e,r*o>n&&--r,i=new Array(a=r-e+1);++u<a;)i[u]=(e+u)*o}else{o=-o;let e=Math.round(t*o),r=Math.round(n*o);for(e/o<t&&++e,r/o>n&&--r,i=new Array(a=r-e+1);++u<a;)i[u]=(e+u)/o}return r&&i.reverse(),i}(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return function(t,n,e,r){var a,i=function(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/a;return i>=Ur?a*=10:i>=qr?a*=5:i>=Rr&&(a*=2),n<t?-a:a}(t,n,e);switch((r=br(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(a=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(vr(n)/3)))-vr(Math.abs(t)))}(i,o))||(r.precision=a),Nr(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,vr(n)-vr(t))+1}(i,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=function(t){return Math.max(0,-vr(Math.abs(t)))}(i))||(r.precision=a-2*("%"===r.type))}return kr(r)}(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,a,i=n(),o=0,u=i.length-1,c=i[o],l=i[u],f=10;for(l<c&&(a=c,c=l,l=a,a=o,o=u,u=a);f-- >0;){if((a=Xr(c,l,e))===r)return i[o]=c,i[u]=l,n(i);if(a>0)c=Math.floor(c/a)*a,l=Math.ceil(l/a)*a;else{if(!(a<0))break;c=Math.ceil(c*a)/a,l=Math.floor(l*a)/a}r=a}return t},t}function ua(){var t=ia();return t.copy=function(){return aa(t,ua())},Or.apply(t,arguments),oa(t)}function ca(){var t,n,e,r,a,i=0,o=1,u=ta,c=!1;function l(n){return null==n||isNaN(n=+n)?a:u(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}function f(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),l):[u(0),u(1)]}}return l.domain=function(a){return arguments.length?([i,o]=a,t=r(i=+i),n=r(o=+o),e=t===n?0:1/(n-t),l):[i,o]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=f(Zr),l.rangeRound=f(Jr),l.unknown=function(t){return arguments.length?(a=t,l):a},function(a){return r=a,t=a(i),n=a(o),e=t===n?0:1/(n-t),l}}function la(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function fa(){var t=oa(ca()(ta));return t.copy=function(){return la(t,fa())},Tr.apply(t,arguments)}function sa(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e}const ha=sa("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),da=sa("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),pa=(ya=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(sa),Qn(ya[ya.length-1]));var ya;function va(t){return ze(dt(t).call(document.documentElement))}function ga(t){return"string"==typeof t?new kt([document.querySelectorAll(t)],[document.documentElement]):new kt([y(t)],At)}function ma(t,n,e){this.k=t,this.x=n,this.y=e}ma.prototype={constructor:ma,scale:function(t){return 1===t?this:new ma(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new ma(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new ma(1,0,0),ma.prototype;var ba=e(379),xa=e.n(ba),wa=e(795),_a=e.n(wa),Ma=e(569),Aa=e.n(Ma),ka=e(565),Na=e.n(ka),Sa=e(216),Ea=e.n(Sa),Oa=e(589),Ta=e.n(Oa),ja=e(566),Pa={};Pa.styleTagTransform=Ta(),Pa.setAttributes=Na(),Pa.insert=Aa().bind(null,"head"),Pa.domAPI=_a(),Pa.insertStyleElement=Ea(),xa()(ja.Z,Pa),ja.Z&&ja.Z.locals&&ja.Z.locals;var Ca={conv11:da[3],conv33:da[0],pool33:da[5],gray:ha[8],positive:pa(.9),negative:pa(.1)};function Ia(t){var n=t.append("defs");n.append("filter").attr("id","drop-shadow-start").append("feDropShadow").attr("dx",0).attr("dy",0).attr("stdDeviation",6).attr("flood-color","#0d6efd").attr("flood-opacity",1),n.append("marker").attr("id","end").attr("orient","auto").attr("markerWidth",6).attr("markerHeight",4).attr("refX",15).attr("refY",2).append("polygon").attr("points","0 0, 6 2, 0 4").attr("fill","black"),n.append("marker").attr("id","endNegative").attr("orient","auto").attr("markerWidth",6).attr("markerHeight",4).attr("refX",15).attr("refY",2).append("polygon").attr("points","0 0, 6 2, 0 4").attr("fill",pa(.1)),n.append("marker").attr("id","endPositive").attr("orient","auto").attr("markerWidth",6).attr("markerHeight",4).attr("refX",15).attr("refY",2).append("polygon").attr("points","0 0, 6 2, 0 4").attr("fill",pa(.9)),n.append("marker").attr("id","endRecommend").attr("orient","auto").attr("markerWidth",6).attr("markerHeight",4).attr("refX",15).attr("refY",2).append("polygon").attr("points","0 0, 6 2, 0 4").attr("fill","gray")}function La(t,n,e,r,a,i,o){try{var u=t[i](o),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,a)}function za(t){return function(){var n=this,e=arguments;return new Promise((function(r,a){var i=t.apply(n,e);function o(t){La(i,r,a,o,u,"next",t)}function u(t){La(i,r,a,o,u,"throw",t)}o(void 0)}))}}var Ua=e(757),qa=e.n(Ua),Ra=[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}],Xa=[];function Da(){return Ra}function Va(){return Xa}var $a={1:[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}],2:[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}],3:[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}],4:[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}],5:[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}],6:[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}],7:[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}],8:[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}],9:[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}],10:[{index:0,type:"input",name:"INPUT",x:100,y:300,fx:100,fy:300,status:null},{index:1,type:"output",name:"OUTPUT",x:700,y:300,fx:700,fy:300,status:null}]},Ba={1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]};function Ha(t){return $a[t]}function Fa(t){return Ba[t]}function Ya(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return Ga(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ga(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw i}}}}function Ga(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Wa(t,n){var e,r,a,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0==o?(e=Da(),r=Va()):(e=Ha(o),r=Fa(o)),t==n)return 0;var u,c=Ya(e);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.index==t&&(a=l),l.index==n&&(i=l)}}catch(t){c.e(t)}finally{c.f()}var f={source:a,target:i,isExt:!1,isDelete:null};r.push(f)}function Za(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Ja(t,n){if(t){if("string"==typeof t)return Za(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Za(t,n):void 0}}function Ka(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,a,i=[],o=!0,u=!1;try{for(e=e.call(t);!(o=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);o=!0);}catch(t){u=!0,a=t}finally{try{o||null==e.return||e.return()}finally{if(u)throw a}}return i}}(t,n)||Ja(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return ti(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ti(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw i}}}}function ti(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function ni(t,n){null==t&&(t=Da()),null==n&&(n=Va());for(var e=t.length,r={isConnected:null,isAcyclic:!0,numEdges:n.length,numNodes:e,extraneous:[]},a=[0],i=[0],o=null;i.length>0;){o=0;var u=i[i.length-1];a.push(u);var c,l=Qa(n);try{for(l.s();!(c=l.n()).done;){var f=c.value;if(f.source.index==u){if(-1!=i.indexOf(f.target.index))return r.isConnected=!1,r.isAcyclic=!1,r.extraneous=i.slice(i.indexOf(f.target.index)),r.extraneous.push(u),r;if(-1==a.indexOf(f.target.index)){i.push(f.target.index),o=1;break}}}}catch(t){l.e(t)}finally{l.f()}o||i.pop()}for(var s=new Set([1]),h=[1];h.length>0;){var d,p=h.pop(),y=Qa(n);try{for(y.s();!(d=y.n()).done;){var v=d.value;v.target.index!=p||s.has(v.source.index)||(s.add(v.source.index),h.push(v.source.index))}}catch(t){y.e(t)}finally{y.f()}}var g,m=[],b=Qa(t);try{for(b.s();!(g=b.n()).done;){var x=g.value;m.push(x.index)}}catch(t){b.e(t)}finally{b.f()}var w=new Set(m).difference(s.intersection(new Set(a)));return r.extraneous=Array.from(w),r.extraneous.sort((function(t,n){return t-n})),e-r.extraneous.length<2?r.isConnected=!1:r.isConnected=!0,r}function ei(t){var n,e=["input"],r=Qa(String(t).split(""));try{for(r.s();!(n=r.n()).done;){var a=n.value;"2"==a?e.push("conv1x1-bn-relu"):"3"==a?e.push("conv3x3-bn-relu"):"4"==a&&e.push("maxpool3x3")}}catch(t){r.e(t)}finally{r.f()}return e.push("output"),e}function ri(t){var n=null;if("string"==typeof t)n=t.split("");else{n=[];var e,r=Qa(t);try{for(r.s();!(e=r.n()).done;){var a=e.value;n.push(a[0]),n.push(a[1])}}catch(t){r.e(t)}finally{r.f()}}for(var i=new Set(n),o=new Array(i.size).fill(0),u=[],c=0;c<i.size;c++)u.push(o.slice());for(var l=0;l<n.length;l+=2)u[Number(n[l])][Number(n[l+1])]=1;return u}function ai(t,n){var e=ni(t,n).extraneous;return[t.filter((function(t){return-1==e.indexOf(t.index)})),n.filter((function(t){return-1==e.indexOf(t.source.index)&&-1==e.indexOf(t.target.index)}))]}function ii(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return oi(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?oi(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw i}}}}function oi(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}Set.prototype.intersection=function(t){var n,e=new Set,r=Qa(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;this.has(a)&&e.add(a)}}catch(t){r.e(t)}finally{r.f()}return e},Set.prototype.difference=function(t){var n,e=new Set(this),r=Qa(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;e.delete(a)}}catch(t){r.e(t)}finally{r.f()}return e};var ui={input:0,output:1,"conv1x1-bn-relu":2,"conv3x3-bn-relu":3,maxpool3x3:4};function ci(t,n,e,r){for(var a={2:[],3:[],4:[]},i={2:[],3:[],4:[]},o=1;o<r.length-1;o++)a[r[o]].push(o);var u,c=ii(t);try{for(c.s();!(u=c.n()).done;){var l=u.value;0!=l.index&&1!=l.index&&i[ui[l.type]].push(l.index)}}catch(t){c.e(t)}finally{c.f()}var f=ei(r),s=new Array(t.length);s[0]=0,s[t.length-1]=1;for(var h=[s],d=[],p=1;p<t.length-1;p++){for(;h.length>0;){var y,v=h.shift(),g=ii(i[ui[f[p]]]);try{for(g.s();!(y=g.n()).done;){var m=y.value,b=v.slice();-1==b.indexOf(m)&&(b[p]=m,d.push(b))}}catch(t){g.e(t)}finally{g.f()}}h=d,d=[]}var x,w=h,_=[],M=ii(t);try{for(M.s();!(x=M.n()).done;)x.value,_.push(new Array(t.length).fill(0))}catch(t){M.e(t)}finally{M.f()}var A,k=ii(e);try{for(k.s();!(A=k.n()).done;){var N=A.value;_[N[0]][N[1]]=1}}catch(t){k.e(t)}finally{k.f()}var S,E=ii(w);try{for(E.s();!(S=E.n()).done;){var O,T=S.value,j=[],P=ii(t);try{for(P.s();!(O=P.n()).done;)O.value,j.push(new Array(t.length).fill(0))}catch(t){P.e(t)}finally{P.f()}var C,I=!0,L=ii(n);try{for(L.s();!(C=L.n()).done;){var z=C.value,U=T.indexOf(z.source.index),q=T.indexOf(z.target.index);if(0==_[U][q]){I=!1;break}}}catch(t){L.e(t)}finally{L.f()}if(I)return T}}catch(t){E.e(t)}finally{E.f()}return!1}function li(t,n){var e,r=[0,0,0,n.length],a=ii(t);try{for(a.s();!(e=a.n()).done;){var i=e.value;"conv1x1-bn-relu"==i.type&&r[0]++,"conv3x3-bn-relu"==i.type&&r[1]++,"maxpool3x3"==i.type&&r[2]++}}catch(t){a.e(t)}finally{a.f()}var o,u=r.join(""),c=[],l=ii(kl[u]);try{for(l.s();!(o=l.n()).done;){var f=o.value;if(t.length==f[1].length+2&&2*n.length==f[0].length){for(var s=[],h=0;h<f[0].length;h+=2)s.push([Number(f[0][h]),Number(f[0][h+1])]);var d=ci(t,n,s,f[1]);d&&c.push({dataEdges:s,ops:f[1],trainable_parameters:f[3],training_time:f[2],train_accuracy:f[4],validation_accuracy:f[5],test_accuracy:f[6],sharpley_value:f[7],graph_matcher:d})}}}catch(t){l.e(t)}finally{l.f()}return c[0]}function fi(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return si(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?si(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw i}}}}function si(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function hi(){return di.apply(this,arguments)}function di(){return(di=za(qa().mark((function t(){var n,e,r,a,i,o,u,c,l,f,s,h,d,p,y,v,g,m,b,x,w,_,M,A,k,N,S,E,O,T,j;return qa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:ze("#analytics").classed("visually-hidden",!0),ze("#analyticsTitle").classed("visually-hidden",!0),n=Da(),e=Va(),r=ni(),a=0,r.numEdges>9&&(ze("#analytics").attr("class","visually-hidden"),ze("#edgeNumberAlert").attr("class","notcell alert alert-danger"),a++),r.isConnected||(ze("#analytics").attr("class","visually-hidden"),ze("#connectAlert").attr("class","notcell alert alert-warning"),a++),r.isAcyclic||(ze("#analytics").attr("class","visually-hidden"),ze("#cycleAlert").attr("class","notcell alert alert-danger"),a++),i=fi(n);try{for(i.s();!(o=i.n()).done;)o.value.status=null}catch(t){i.e(t)}finally{i.f()}u=fi(e);try{for(u.s();!(c=u.n()).done;)c.value.isExt=!1}catch(t){u.e(t)}finally{u.f()}if(r.extraneous.length>0){ze("#analytics").attr("class","visually-hidden"),l=fi(r.extraneous);try{for(l.s();!(f=l.n()).done;){s=f.value,h=fi(n);try{for(h.s();!(d=h.n()).done;)(p=d.value).index==s&&0!=p.index&&1!=p.index&&(p.status="ext")}catch(t){h.e(t)}finally{h.f()}y=fi(e);try{for(y.s();!(v=y.n()).done;)(g=v.value).source.index!=s&&g.target.index!=s||(g.isExt=!0)}catch(t){y.e(t)}finally{y.f()}}}catch(t){l.e(t)}finally{l.f()}ze("#extraneousAlert").attr("class","alert alert-warning")}else ze("#extraneousAlert").attr("class","visually-hidden");if(!a)if(ga(".notcell").attr("class","visually-hidden"),m=ai(n,e),b=Ka(m,2),x=b[0],w=b[1],_=li(x,w)){ze("#analyticsTitle").classed("visually-hidden",!1),M=new Date(1e3*parseInt(_.training_time)).toISOString().substr(11,8),ze("#analytics").classed("visually-hidden",!1),ze("#trainable_parameters").text(kr(",")(_.trainable_parameters)),ze("#training_time").text(M),ze("#train_accuracy").text(kr(".2%")(_.train_accuracy)),ze("#validation_accuracy").text(kr(".2%")(_.validation_accuracy)),ze("#test_accuracy").text(kr(".2%")(_.test_accuracy)),A=_.sharpley_value,k=_.graph_matcher,N=fi(w);try{for(N.s();!(S=N.n()).done;)E=S.value,O=k.indexOf(E.source.index),T=k.indexOf(E.target.index),j=String(O)+String(T),""==A[j]?E.sharpleyValue=null:E.sharpleyValue=A[j]}catch(t){N.e(t)}finally{N.f()}}else ze("#analyticsTitle").classed("visually-hidden",!0),ze("#analytics").classed("visually-hidden",!0);Wi();case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pi(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return yi(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?yi(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw i}}}}function yi(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function vi(t){var n=Ha(t+1),e=Fa(t+1),r=(Xa.splice(0),Xa),a=(Ra.splice(2),Ra);a.splice(0);var i,o=pi(n);try{for(o.s();!(i=o.n()).done;){var u=i.value;a.push(u)}}catch(t){o.e(t)}finally{o.f()}var c,l=pi(e);try{for(l.s();!(c=l.n()).done;){var f=c.value;r.push(f)}}catch(t){l.e(t)}finally{l.f()}hi(),Ai()}function gi(){var t,n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0==e?(t=Da(),n=Va()):(t=Ha(e),n=Fa(e)),t.splice(2,t.length),n.splice(0,n.length)}function mi(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;gi(e);var r,a=t.slice(1,t.length-1),i=pi(a);try{for(i.s();!(r=i.n()).done;){var o=r.value;ki(o,e)}}catch(t){i.e(t)}finally{i.f()}for(var u=0;u<n.length-1;u++)for(var c=u+1;c<n.length;c++)1!=n[u][c]&&"1"!=n[u][c]||(0==u&&c==n.length-1?Wa(0,1,e):0==u?Wa(0,c+1,e):c==n.length-1?Wa(u+1,1,e):Wa(u+1,c+1,e))}function bi(t){return function(t){if(Array.isArray(t))return Za(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ja(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xi(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return wi(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?wi(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw i}}}}function wi(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function _i(t,n){var e=[];return 1===n?t.map((function(t){return[t]})):(t.forEach((function(t,r,a){var i=_i(a.slice(r+1),n-1).map((function(n){return[t].concat(bi(n))}));e.push.apply(e,bi(i))})),e)}function Mi(t,n,e,r){return 0==n.length||ci(t,n,e,r)}function Ai(){var t=function(t,n){for(var e=[],r=n.length;r<10;r++){var a,i=[0,0,0,r],o=xi(t);try{for(o.s();!(a=o.n()).done;){var u=a.value;"conv1x1-bn-relu"==u.type&&i[0]++,"conv3x3-bn-relu"==u.type&&i[1]++,"maxpool3x3"==u.type&&i[2]++}}catch(t){o.e(t)}finally{o.f()}var c=i.join(""),l=kl[c];if(null!=l){var f,s=xi(l);try{for(s.s();!(f=s.n()).done;){for(var h=f.value,d=[],p=0;p<h[0].length;p+=2)d.push([Number(h[0][p]),Number(h[0][p+1])]);var y=h[1],v=_i(d,n.length);v.push([]);var g,m=xi(v);try{for(m.s();!(g=m.n()).done;){var b=Mi(t,n,g.value,y),x=ei(y);if(b){var w=[h[6],x,ri(d)];e.push(w)}}}catch(t){m.e(t)}finally{m.f()}}}catch(t){s.e(t)}finally{s.f()}}}return e.sort((function(t,n){return n[0]-t[0]})),e.slice(0,5)}(Da(),Va()),n=ze("#recommend-col").selectAll(".recommend-cell").data(t);n.on("click",(function(n,e){vi(t.indexOf(e))})),n.select(".recommend-accuracy").text((function(t){return"Accuracy : "+kr(".2%")(t[0])}));var e=n.enter().append("li").attr("class","row g-0 px-4 recommend-cell list-group-item").on("click",(function(n,e){vi(t.indexOf(e))}));e.append("div").attr("class","border bg-light svg-container mb-1 recommend-cell-svg").append("svg").attr("id",(function(t,n){return"recommend"+(n+1)})).attr("viewBox","0 0 800 600").attr("preserveAspectRatio","xMinYMin meet").attr("class","svg-content-responsive"),e.append("div").attr("class","row g-0 justify-content-center align-middle recommend-accuracy").text((function(t){return"Accuracy : "+kr(".2%")(t[0])})),n.exit().remove();for(var r=0;r<t.length;r++)mi(t[r][1],t[r][2],r+1),Ji(null,r+1)}function ki(t){var n,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if((n=0==e?Da():Ha(e)).length>6)return 0;var r=null;"conv1x1-bn-relu"==t&&(r="1X1 CONV"),"conv3x3-bn-relu"==t&&(r="3X3 CONV"),"maxpool3x3"==t&&(r="3X3 MAXPOOL");var a={index:n[n.length-1].index+1,type:t,name:r,x:400*Math.random()+200,y:350*Math.random()+100};n.push(a)}function Ni(){return(Ni=za(qa().mark((function t(){return qa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!=ki(ze(this).attr("id"))){t.next=7;break}return ze("#nodeNumberAlert").attr("class","notcell alert alert-danger"),t.next=6,new Promise((function(t){return setTimeout(t,3e3)}));case 6:ze("#nodeNumberAlert").attr("class","notcell alert alert-danger visually-hidden");case 7:hi(),Ai();case 9:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Si(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Wa(t,n,e),hi(),Ai()}function Ei(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return Oi(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Oi(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw i}}}}function Oi(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var Ti=null;function ji(t,n){if("input"==n.type||"output"==n.type)return null;ze("#deleteBox").attr("visibility","visible")}function Pi(t,n){n.x=t.x,n.y=t.y,Wi(null)}function Ci(t,n){if("input"==n.type||"output"==n.type)return null;var e=ze(this);ze("#deleteBox").attr("visibility","hidden");var r,a,i=Number(e.attr("id").replace("node",""));r=t.x,a=t.y,20<r&&r<780&&594<a&&a<644&&(function(t){for(var n=Da(),e=Va(),r=0;r<n.length;r++)n[r].index==t&&n.splice(r,1);for(var a=0;a<e.length;a++)e[a].source.index!=t&&e[a].target.index!=t||(e.splice(a,1),a--);Ai()}(i),hi())}function Ii(){var t=ze(this),n=Ti,e=Number(t.attr("id")[4]),r=Da();if(null!=Ti){(function(t,n){var e,r=Ya(Va());try{for(r.s();!(e=r.n()).done;){var a=e.value;if(a.source.index==t&&a.target.index==n||a.source.index==n&&a.target.index==t)return!0}}catch(t){r.e(t)}finally{r.f()}return!1})(n,e)||Si(n,e),Ti=null;var a,i=Ei(r);try{for(i.s();!(a=i.n()).done;){var o=a.value;"clicked"==o.status&&(o.status=null)}}catch(t){i.e(t)}finally{i.f()}}else{Ti=e;var u,c=Ei(r);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.index==e&&(l.status="clicked")}}catch(t){c.e(t)}finally{c.f()}}Wi(Ti)}var Li=ze("#cellBuilder").append("div").attr("class","tooltipMetric").style("position","fixed").style("background-color","white").style("border","solid").style("border-width","2px").style("border-radius","5px").style("padding","5px").classed("visually-hidden",!0).style("font-size","10px");function zi(t,n){ze(this).datum().isDelete="delete",Li.html("Contribution Rate: "+n.sharpleyValue).style("top",t.y+"px").style("left",function(t){return t.x<1350?t.x+10+"px":t.x-145+"px"}(t)).classed("visually-hidden",!1),Wi()}function Ui(){ze(this).datum().isDelete=null,Li.classed("visually-hidden",!0),Wi()}function qi(){(function(t){for(var n=Va(),e=0;e<n.length;e++)if(n[e]==t){n.splice(e,1);break}})(ze(this).datum()),hi(),Ai(),Wi()}function Ri(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return Xi(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Xi(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(u)throw i}}}}function Xi(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Di(t,n,e,r){if(t==n)return 0;var a,i,o,u=Ri(e);try{for(u.s();!(o=u.n()).done;){var c=o.value;c==t&&(a=c),c==n&&(i=c)}}catch(t){u.e(t)}finally{u.f()}var l={source:a,target:i,isExt:!1,isDelete:null};r.push(l)}function Vi(t){for(var n=Va(),e=new Set([t]),r=[t];r.length>0;){var a,i=r.pop(),o=Ri(n);try{for(o.s();!(a=o.n()).done;){var u=a.value;u.target.index!=i||e.has(u.source.index)||(e.add(u.source.index),r.push(u.source.index))}}catch(t){o.e(t)}finally{o.f()}}return e.has(0)?e:null}function $i(t){return Bi.apply(this,arguments)}function Bi(){return(Bi=za(qa().mark((function t(n){var e,r,a,i,o,u,c,l,f,s,h,d,p,y,v,g,m,b,x,w,_,M,A,k,N,S;return qa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=(e=Vi(n))){t.next=3;break}return t.abrupt("return",null);case 3:r=Da(),a=Va(),i=[],o=Ri(r),t.prev=7,o.s();case 9:if((u=o.n()).done){t.next=31;break}if(c=u.value,!e.has(c.index)){t.next=13;break}return t.abrupt("continue",29);case 13:l=!1,f=Ri(a);try{for(f.s();!(s=f.n()).done;)(h=s.value).source.index==n&&h.target.index==c.index&&(l=!0)}catch(t){f.e(t)}finally{f.f()}if(!l){t.next=18;break}return t.abrupt("continue",29);case 18:if(d=a.slice(),p=void 0,y=void 0,1!=c.index){v=Ri(r);try{for(v.s();!(g=v.n()).done;)(m=g.value).index==c.index&&(p=m),1==m.index&&(y=m)}catch(t){v.e(t)}finally{v.f()}Di(p,y,r,d)}b=Ri(r);try{for(b.s();!(x=b.n()).done;)(w=x.value).index==c.index&&(y=w),w.index==n&&(p=w)}catch(t){b.e(t)}finally{b.f()}Di(p,y,r,d),_=ai(r,d),M=Ka(_,2),A=M[0],k=M[1],N=li(A,k).test_accuracy,S=1==c.index?1:0,i.push({source:r.filter((function(t,e){return t.index==n}))[0],target:c,label:1,testAccuracy:N}),1!=S&&i.push({source:c,target:r[1],label:0,testAccuracy:N});case 29:t.next=9;break;case 31:t.next=36;break;case 33:t.prev=33,t.t0=t.catch(7),o.e(t.t0);case 36:return t.prev=36,o.f(),t.finish(36);case 39:return t.abrupt("return",i);case 40:case"end":return t.stop()}}),t,null,[[7,33,36,39]])})))).apply(this,arguments)}function Hi(t){return Fi.apply(this,arguments)}function Fi(){return(Fi=za(qa().mark((function t(n){var e,r,a;return qa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=null,null!=n){t.next=5;break}e=[],t.next=8;break;case 5:return t.next=7,$i(n);case 7:e=t.sent;case 8:r=ze("#architecture").selectAll(".recommendLine").data(e),(a=r.enter().append("g").attr("class","recommendLine")).append("line").attr("x1",(function(t){return t.source.x})).attr("y1",(function(t){return t.source.y})).attr("x2",(function(t){return t.target.x})).attr("y2",(function(t){return t.target.y})).attr("stroke-width",3).attr("stroke-dasharray","10,10").attr("d","M5 40 l215 0").attr("stroke","gray").style("marker-end",(function(t){return 0==t.label||0==t.source.index&&1==t.target.index?"url(#endRecommend)":null})),a.append("text").text((function(t){return 0==t.label?"":new String(t.testAccuracy).slice(0,5)})).attr("fill","gray").attr("font-weight","bold").attr("text-anchor","middle").attr("font-size",14).attr("transform",(function(t){return"translate("+[(t.source.x+t.target.x)/2,(t.source.y+t.target.y)/2]+")"})),r.exit().remove();case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yi(){var t,n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0==e?(t=Va(),n=ze("#architecture").selectAll(".edge").data(t)):(t=Fa(e),n=ze("#recommend"+e).selectAll(".edge").data(t)),n.select("line").attr("x1",(function(t){return t.source.x})).attr("y1",(function(t){return t.source.y})).attr("x2",(function(t){return t.target.x})).attr("y2",(function(t){return t.target.y})).attr("stroke",(function(t){return null==t.sharpleyValue?"black":t.sharpleyValue>0?Ca.positive:t.sharpleyValue<0?Ca.negative:"black"})).style("marker-end",(function(t){return null==t.sharpleyValue?"url(#end)":t.sharpleyValue>0?"url(#endPositive)":t.sharpleyValue<0?"url(#endNegative)":"black"})).attr("opacity",(function(t){return t.isExt?.2:1}));var r=n.enter().append("g").attr("class","edge");r.append("line").attr("x1",(function(t){return t.source.x})).attr("y1",(function(t){return t.source.y})).attr("x2",(function(t){return t.target.x})).attr("y2",(function(t){return t.target.y})).attr("stroke-width",4).attr("opacity",(function(t){return t.isExt?.2:1})).attr("stroke",(function(t){return null==t.sharpleyValue?"black":t.sharpleyValue>0?Ca.positive:t.sharpleyValue<0?Ca.negative:"black"})).style("marker-end",(function(t){return null==t.sharpleyValue?"url(#end)":t.sharpleyValue>0?"url(#endPositive)":t.sharpleyValue<0?"url(#endNegative)":"black"})).on("mouseover",zi).on("mouseout",Ui).on("click",qi),n.exit().remove()}function Gi(){var t,n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0==e?(t=Da(),n=ze("#architecture").selectAll(".node").data(t)):(t=Ha(e),n=ze("#recommend"+e).selectAll(".node").data(t));var r=40;n.attr("id",(function(t){return"node"+t.index})).attr("transform",(function(t){return"translate("+[t.x,t.y]+")"})),n.select("text").text((function(t){return t.name})),n.select("circle").attr("opacity",(function(t){return"ext"==t.status?.4:1})).attr("fill",(function(t){return"input"==t.type||"output"==t.type?Ca.gray:"conv1x1-bn-relu"==t.type?Ca.conv11:"conv3x3-bn-relu"==t.type?Ca.conv33:"maxpool3x3"==t.type?Ca.pool33:void 0})).style("filter",(function(t){return null==t.status?null:"clicked"==t.status?"url(#drop-shadow-start)":null}));var a=n.enter().append("g").attr("id",(function(t){return"node"+t.index})).attr("transform",(function(t){return"translate("+[t.x,t.y]+")"})).attr("class","node").call(Ge().on("start",ji).on("drag",Pi).on("end",Ci)).on("click",Ii);a.append("circle").attr("r",r).attr("opacity",(function(t){return"ext"==t.status?.4:1})).attr("fill",(function(t){return"input"==t.type||"output"==t.type?Ca.gray:"conv1x1-bn-relu"==t.type?Ca.conv11:"conv3x3-bn-relu"==t.type?Ca.conv33:"maxpool3x3"==t.type?Ca.pool33:void 0})).style("filter",(function(t){return null==t.status?null:"clicked"==t.status?"url(#drop-shadow-start)":null})),a.append("text").text((function(t){return t.name})).attr("fill","white").attr("font-weight","bold").attr("text-anchor","middle").attr("font-size",11),n.exit().remove()}function Wi(t){return Zi.apply(this,arguments)}function Zi(){return(Zi=za(qa().mark((function t(n){var e,r=arguments;return qa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Gi(e=r.length>1&&void 0!==r[1]?r[1]:0),Yi(e),ga(".node").raise(),t.next=6,Hi(n);case 6:ga(".node").raise();case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ji(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ki(n),Gi(n),Yi(n),ga(".node").raise()}function Ki(t){var n,e;t?(n=Ha(t),e=Fa(t)):(n=Da(),e=Va()),function(t){var n,e=1,r=.001,a=1-Math.pow(r,1/300),i=0,o=.6,u=new Map,c=Gt(s),l=It("tick","end"),f=function(){let t=1;return()=>(t=(1664525*t+1013904223)%sr)/sr}();function s(){h(),l.call("tick",n),e<r&&(c.stop(),l.call("end",n))}function h(r){var c,l,f=t.length;void 0===r&&(r=1);for(var s=0;s<r;++s)for(e+=(i-e)*a,u.forEach((function(t){t(e)})),c=0;c<f;++c)null==(l=t[c]).fx?l.x+=l.vx*=o:(l.x=l.fx,l.vx=0),null==l.fy?l.y+=l.vy*=o:(l.y=l.fy,l.vy=0);return n}function d(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var a=10*Math.sqrt(.5+e),i=e*pr;n.x=a*Math.cos(i),n.y=a*Math.sin(i)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function p(n){return n.initialize&&n.initialize(t,f),n}return null==t&&(t=[]),d(),n={tick:h,restart:function(){return c.restart(s),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,d(),u.forEach(p),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(a=+t,n):+a},alphaTarget:function(t){return arguments.length?(i=+t,n):i},velocityDecay:function(t){return arguments.length?(o=1-t,n):1-o},randomSource:function(t){return arguments.length?(f=t,u.forEach(p),n):f},force:function(t,e){return arguments.length>1?(null==e?u.delete(t):u.set(t,p(e)),n):u.get(t)},find:function(n,e,r){var a,i,o,u,c,l=0,f=t.length;for(null==r?r=1/0:r*=r,l=0;l<f;++l)(o=(a=n-(u=t[l]).x)*a+(i=e-u.y)*i)<r&&(c=u,r=o);return c},on:function(t,e){return arguments.length>1?(l.on(t,e),n):l.on(t)}}}(n).force("charge",function(){var t,n,e,r,a,i=ir(-30),o=1,u=1/0,c=.81;function l(e){var a,i=t.length,o=nr(t,hr,dr).visitAfter(s);for(r=e,a=0;a<i;++a)n=t[a],o.visit(h)}function f(){if(t){var n,e,r=t.length;for(a=new Array(r),n=0;n<r;++n)e=t[n],a[e.index]=+i(e,n,t)}}function s(t){var n,e,r,i,o,u=0,c=0;if(t.length){for(r=i=o=0;o<4;++o)(n=t[o])&&(e=Math.abs(n.value))&&(u+=n.value,c+=e,r+=e*n.x,i+=e*n.y);t.x=r/c,t.y=i/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{u+=a[n.data.index]}while(n=n.next)}t.value=u}function h(t,i,l,f){if(!t.value)return!0;var s=t.x-n.x,h=t.y-n.y,d=f-i,p=s*s+h*h;if(d*d/c<p)return p<u&&(0===s&&(p+=(s=or(e))*s),0===h&&(p+=(h=or(e))*h),p<o&&(p=Math.sqrt(o*p)),n.vx+=s*t.value*r/p,n.vy+=h*t.value*r/p),!0;if(!(t.length||p>=u)){(t.data!==n||t.next)&&(0===s&&(p+=(s=or(e))*s),0===h&&(p+=(h=or(e))*h),p<o&&(p=Math.sqrt(o*p)));do{t.data!==n&&(d=a[t.data.index]*r/p,n.vx+=s*d,n.vy+=h*d)}while(t=t.next)}}return l.initialize=function(n,r){t=n,e=r,f()},l.strength=function(t){return arguments.length?(i="function"==typeof t?t:ir(+t),f(),l):i},l.distanceMin=function(t){return arguments.length?(o=t*t,l):Math.sqrt(o)},l.distanceMax=function(t){return arguments.length?(u=t*t,l):Math.sqrt(u)},l.theta=function(t){return arguments.length?(c=t*t,l):Math.sqrt(c)},l}()).force("collison",function(t){var n,e,r,a=1,i=1;function o(){for(var t,o,c,l,f,s,h,d=n.length,p=0;p<i;++p)for(o=nr(n,ur,cr).visitAfter(u),t=0;t<d;++t)c=n[t],s=e[c.index],h=s*s,l=c.x+c.vx,f=c.y+c.vy,o.visit(y);function y(t,n,e,i,o){var u=t.data,d=t.r,p=s+d;if(!u)return n>l+p||i<l-p||e>f+p||o<f-p;if(u.index>c.index){var y=l-u.x-u.vx,v=f-u.y-u.vy,g=y*y+v*v;g<p*p&&(0===y&&(g+=(y=or(r))*y),0===v&&(g+=(v=or(r))*v),g=(p-(g=Math.sqrt(g)))/g*a,c.vx+=(y*=g)*(p=(d*=d)/(h+d)),c.vy+=(v*=g)*p,u.vx-=y*(p=1-p),u.vy-=v*p)}}}function u(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function c(){if(n){var r,a,i=n.length;for(e=new Array(i),r=0;r<i;++r)a=n[r],e[a.index]=+t(a,r,n)}}return"function"!=typeof t&&(t=ir(null==t?1:+t)),o.initialize=function(t,e){n=t,r=e,c()},o.iterations=function(t){return arguments.length?(i=+t,o):i},o.strength=function(t){return arguments.length?(a=+t,o):a},o.radius=function(n){return arguments.length?(t="function"==typeof n?n:ir(+n),c(),o):t},o}(120)).force("link",function(t){var n,e,r,a,i,o,u=lr,c=function(t){return 1/Math.min(a[t.source.index],a[t.target.index])},l=ir(30),f=1;function s(r){for(var a=0,u=t.length;a<f;++a)for(var c,l,s,h,d,p,y,v=0;v<u;++v)l=(c=t[v]).source,h=(s=c.target).x+s.vx-l.x-l.vx||or(o),d=s.y+s.vy-l.y-l.vy||or(o),h*=p=((p=Math.sqrt(h*h+d*d))-e[v])/p*r*n[v],d*=p,s.vx-=h*(y=i[v]),s.vy-=d*y,l.vx+=h*(y=1-y),l.vy+=d*y}function h(){if(r){var o,c,l=r.length,f=t.length,s=new Map(r.map(((t,n)=>[u(t,n,r),t])));for(o=0,a=new Array(l);o<f;++o)(c=t[o]).index=o,"object"!=typeof c.source&&(c.source=fr(s,c.source)),"object"!=typeof c.target&&(c.target=fr(s,c.target)),a[c.source.index]=(a[c.source.index]||0)+1,a[c.target.index]=(a[c.target.index]||0)+1;for(o=0,i=new Array(f);o<f;++o)c=t[o],i[o]=a[c.source.index]/(a[c.source.index]+a[c.target.index]);n=new Array(f),d(),e=new Array(f),p()}}function d(){if(r)for(var e=0,a=t.length;e<a;++e)n[e]=+c(t[e],e,t)}function p(){if(r)for(var n=0,a=t.length;n<a;++n)e[n]=+l(t[n],n,t)}return null==t&&(t=[]),s.initialize=function(t,n){r=t,o=n,h()},s.links=function(n){return arguments.length?(t=n,h(),s):t},s.id=function(t){return arguments.length?(u=t,s):u},s.iterations=function(t){return arguments.length?(f=+t,s):f},s.strength=function(t){return arguments.length?(c="function"==typeof t?t:ir(+t),d(),s):c},s.distance=function(t){return arguments.length?(l="function"==typeof t?t:ir(+t),p(),s):l},s}(e)).force("center",function(t,n){var e,r=1;function a(){var a,i,o=e.length,u=0,c=0;for(a=0;a<o;++a)u+=(i=e[a]).x,c+=i.y;for(u=(u/o-t)*r,c=(c/o-n)*r,a=0;a<o;++a)(i=e[a]).x-=u,i.y-=c}return null==t&&(t=0),null==n&&(n=0),a.initialize=function(t){e=t},a.x=function(n){return arguments.length?(t=+n,a):t},a.y=function(t){return arguments.length?(n=+t,a):n},a.strength=function(t){return arguments.length?(r=+t,a):r},a}(400,300)).stop().tick(1e4)}function Qi(){ze(this).attr("opacity",.5)}function to(){ze(this).attr("opacity",1)}function no(t){t.sort((function(t,n){return t.value-n.value}));var n=ze("#sharpleyvalue"),e=ua().range([50,750]).domain([-.03,.03]),r=zr().domain(t.map((function(t){return t.name}))).rangeRound([400,50]).padding(.2),a=n.selectAll("rect.bar").data(t),i=fa(pa).domain([-.03,.03]);a.enter().append("rect").attr("class","bar").attr("width",(function(t){return Math.abs(e(t.value)-e(0))})).attr("height",r.bandwidth()).attr("fill",(function(t){return i(t.value)})).attr("x",(function(t){return e(Math.min(0,t.value))})).attr("y",(function(t){return r(t.name)})).on("click",(function(t){!function(t,n){var e=Da();"input"==t&&"output"==n?Si(0,1):"input"==t?(ki(n),Si(0,e[e.length-1].index)):"output"==n?(ki(t),Si(e[e.length-1].index,1)):e.length<6&&(ki(t),ki(n),Si(e[e.length-2].index,e[e.length-1].index)),Ai(),hi()}(t.target.__data__.source,t.target.__data__.target)})).on("mouseover",Qi).on("mouseout",to);var o=n.append("g").attr("class","xAxis").attr("transform","translate(0, ".concat(50,")")),u=n.append("g").attr("class","yAxis").attr("transform","translate(".concat(e(0),", 0)")),c=s(1,e),l=h(r);o.call(c),u.call(l),n.selectAll(".yAxis").selectAll("text").attr("text-anchor",(function(n,e){return t[e].value>0?"end":"start"})).attr("x",(function(n,e){return t[e].value>0?-9:9})),n.selectAll(".yAxis").selectAll("line").attr("x2",(function(n,e){return t[e].value>0?-6:6})),n.selectAll("text").attr("font-size",14)}var eo="http://www.w3.org/1999/xhtml";const ro={svg:"http://www.w3.org/2000/svg",xhtml:eo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ao(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),ro.hasOwnProperty(n)?{space:ro[n],local:t}:t}function io(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===eo&&n.documentElement.namespaceURI===eo?n.createElement(t):n.createElementNS(e,t)}}function oo(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function uo(t){var n=ao(t);return(n.local?oo:io)(n)}var co=0;function lo(){this._="@"+(++co).toString(36)}lo.prototype=function(){return new lo}.prototype={constructor:lo,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var fo=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var so=document.documentElement;if(!so.matches){var ho=so.webkitMatchesSelector||so.msMatchesSelector||so.mozMatchesSelector||so.oMatchesSelector;fo=function(t){return function(){return ho.call(this,t)}}}}const po=fo;var yo={},vo=null;function go(t,n,e){return t=mo(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function mo(t,n,e){return function(r){var a=vo;vo=r;try{t.call(this,this.__data__,n,e)}finally{vo=a}}}function bo(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function xo(t){return function(){var n=this.__on;if(n){for(var e,r=0,a=-1,i=n.length;r<i;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++a]=e:this.removeEventListener(e.type,e.listener,e.capture);++a?n.length=a:delete this.__on}}}function wo(t,n,e){var r=yo.hasOwnProperty(t.type)?go:mo;return function(a,i,o){var u,c=this.__on,l=r(n,i,o);if(c)for(var f=0,s=c.length;f<s;++f)if((u=c[f]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=l,u.capture=e),void(u.value=n);this.addEventListener(t.type,l,e),u={type:t.type,name:t.name,value:n,listener:l,capture:e},c?c.push(u):this.__on=[u]}}function _o(){}function Mo(t){return null==t?_o:function(){return this.querySelector(t)}}function Ao(){return[]}function ko(t){return new Array(t.length)}function No(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function So(t,n,e,r,a,i){for(var o,u=0,c=n.length,l=i.length;u<l;++u)(o=n[u])?(o.__data__=i[u],r[u]=o):e[u]=new No(t,i[u]);for(;u<c;++u)(o=n[u])&&(a[u]=o)}function Eo(t,n,e,r,a,i,o){var u,c,l,f={},s=n.length,h=i.length,d=new Array(s);for(u=0;u<s;++u)(c=n[u])&&(d[u]=l="$"+o.call(c,c.__data__,u,n),l in f?a[u]=c:f[l]=c);for(u=0;u<h;++u)(c=f[l="$"+o.call(t,i[u],u,i)])?(r[u]=c,c.__data__=i[u],f[l]=null):e[u]=new No(t,i[u]);for(u=0;u<s;++u)(c=n[u])&&f[d[u]]===c&&(a[u]=c)}function Oo(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function To(t){return function(){this.removeAttribute(t)}}function jo(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Po(t,n){return function(){this.setAttribute(t,n)}}function Co(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Io(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Lo(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function zo(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Uo(t){return function(){this.style.removeProperty(t)}}function qo(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Ro(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Xo(t){return function(){delete this[t]}}function Do(t,n){return function(){this[t]=n}}function Vo(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function $o(t){return t.trim().split(/^|\s+/)}function Bo(t){return t.classList||new Ho(t)}function Ho(t){this._node=t,this._names=$o(t.getAttribute("class")||"")}function Fo(t,n){for(var e=Bo(t),r=-1,a=n.length;++r<a;)e.add(n[r])}function Yo(t,n){for(var e=Bo(t),r=-1,a=n.length;++r<a;)e.remove(n[r])}function Go(t){return function(){Fo(this,t)}}function Wo(t){return function(){Yo(this,t)}}function Zo(t,n){return function(){(n.apply(this,arguments)?Fo:Yo)(this,t)}}function Jo(){this.textContent=""}function Ko(t){return function(){this.textContent=t}}function Qo(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function tu(){this.innerHTML=""}function nu(t){return function(){this.innerHTML=t}}function eu(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ru(){this.nextSibling&&this.parentNode.appendChild(this)}function au(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function iu(){return null}function ou(){var t=this.parentNode;t&&t.removeChild(this)}function uu(t,n,e){var r=zo(t),a=r.CustomEvent;a?a=new a(n,e):(a=r.document.createEvent("Event"),e?(a.initEvent(n,e.bubbles,e.cancelable),a.detail=e.detail):a.initEvent(n,!1,!1)),t.dispatchEvent(a)}function cu(t,n){return function(){return uu(this,t,n)}}function lu(t,n){return function(){return uu(this,t,n.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(yo={mouseenter:"mouseover",mouseleave:"mouseout"})),No.prototype={constructor:No,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},Ho.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var fu,su=[null];function hu(t,n){this._groups=t,this._parents=n}function du(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function pu(t){return(t=du(Math.abs(t)))?t[1]:NaN}function yu(t,n){var e=du(t,n);if(!e)return t+"";var r=e[0],a=e[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}hu.prototype=function(){return new hu([[document.documentElement]],su)}.prototype={constructor:hu,select:function(t){"function"!=typeof t&&(t=Mo(t));for(var n=this._groups,e=n.length,r=new Array(e),a=0;a<e;++a)for(var i,o,u=n[a],c=u.length,l=r[a]=new Array(c),f=0;f<c;++f)(i=u[f])&&(o=t.call(i,i.__data__,f,u))&&("__data__"in i&&(o.__data__=i.__data__),l[f]=o);return new hu(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?Ao:function(){return this.querySelectorAll(t)}}(t));for(var n=this._groups,e=n.length,r=[],a=[],i=0;i<e;++i)for(var o,u=n[i],c=u.length,l=0;l<c;++l)(o=u[l])&&(r.push(t.call(o,o.__data__,l,u)),a.push(o));return new hu(r,a)},filter:function(t){"function"!=typeof t&&(t=po(t));for(var n=this._groups,e=n.length,r=new Array(e),a=0;a<e;++a)for(var i,o=n[a],u=o.length,c=r[a]=[],l=0;l<u;++l)(i=o[l])&&t.call(i,i.__data__,l,o)&&c.push(i);return new hu(r,this._parents)},data:function(t,n){if(!t)return p=new Array(this.size()),f=-1,this.each((function(t){p[++f]=t})),p;var e,r=n?Eo:So,a=this._parents,i=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var o=i.length,u=new Array(o),c=new Array(o),l=new Array(o),f=0;f<o;++f){var s=a[f],h=i[f],d=h.length,p=t.call(s,s&&s.__data__,f,a),y=p.length,v=c[f]=new Array(y),g=u[f]=new Array(y);r(s,h,v,g,l[f]=new Array(d),p,n);for(var m,b,x=0,w=0;x<y;++x)if(m=v[x]){for(x>=w&&(w=x+1);!(b=g[w])&&++w<y;);m._next=b||null}}return(u=new hu(u,a))._enter=c,u._exit=l,u},enter:function(){return new hu(this._enter||this._groups.map(ko),this._parents)},exit:function(){return new hu(this._exit||this._groups.map(ko),this._parents)},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,a=e.length,i=Math.min(r,a),o=new Array(r),u=0;u<i;++u)for(var c,l=n[u],f=e[u],s=l.length,h=o[u]=new Array(s),d=0;d<s;++d)(c=l[d]||f[d])&&(h[d]=c);for(;u<r;++u)o[u]=n[u];return new hu(o,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,a=t[n],i=a.length-1,o=a[i];--i>=0;)(r=a[i])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Oo);for(var e=this._groups,r=e.length,a=new Array(r),i=0;i<r;++i){for(var o,u=e[i],c=u.length,l=a[i]=new Array(c),f=0;f<c;++f)(o=u[f])&&(l[f]=o);l.sort(n)}return new hu(a,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],a=0,i=r.length;a<i;++a){var o=r[a];if(o)return o}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var a,i=n[e],o=0,u=i.length;o<u;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this},attr:function(t,n){var e=ao(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?jo:To:"function"==typeof n?e.local?Lo:Io:e.local?Co:Po)(e,n))},style:function(t,n,e){var r;return arguments.length>1?this.each((null==n?Uo:"function"==typeof n?Ro:qo)(t,n,null==e?"":e)):zo(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)},property:function(t,n){return arguments.length>1?this.each((null==n?Xo:"function"==typeof n?Vo:Do)(t,n)):this.node()[t]},classed:function(t,n){var e=$o(t+"");if(arguments.length<2){for(var r=Bo(this.node()),a=-1,i=e.length;++a<i;)if(!r.contains(e[a]))return!1;return!0}return this.each(("function"==typeof n?Zo:n?Go:Wo)(e,n))},text:function(t){return arguments.length?this.each(null==t?Jo:("function"==typeof t?Qo:Ko)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?tu:("function"==typeof t?eu:nu)(t)):this.node().innerHTML},raise:function(){return this.each(ru)},lower:function(){return this.each(au)},append:function(t){var n="function"==typeof t?t:uo(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:uo(t),r=null==n?iu:"function"==typeof n?n:Mo(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ou)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,a,i=bo(t+""),o=i.length;if(!(arguments.length<2)){for(u=n?wo:xo,null==e&&(e=!1),r=0;r<o;++r)this.each(u(i[r],n,e));return this}var u=this.node().__on;if(u)for(var c,l=0,f=u.length;l<f;++l)for(r=0,c=u[l];r<o;++r)if((a=i[r]).type===c.type&&a.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?lu:cu)(t,n))}};const vu={"":function(t,n){t:for(var e,r=(t=t.toPrecision(n)).length,a=1,i=-1;a<r;++a)switch(t[a]){case".":i=e=a;break;case"0":0===i&&(i=a),e=a;break;case"e":break t;default:i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t},"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return yu(100*t,n)},r:yu,s:function(t,n){var e=du(t,n);if(!e)return t+"";var r=e[0],a=e[1],i=a-(fu=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+du(t,Math.max(0,n+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};var gu=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function mu(t){return new bu(t)}function bu(t){if(!(n=gu.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",a=n[3]||"-",i=n[4]||"",o=!!n[5],u=n[6]&&+n[6],c=!!n[7],l=n[8]&&+n[8].slice(1),f=n[9]||"";"n"===f?(c=!0,f="g"):vu[f]||(f=""),(o||"0"===e&&"="===r)&&(o=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=a,this.symbol=i,this.zero=o,this.width=u,this.comma=c,this.precision=l,this.type=f}bu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var xu,wu,_u,Mu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Au(t){return t}function ku(t){var n,e,r=t.grouping&&t.thousands?(n=t.grouping,e=t.thousands,function(t,r){for(var a=t.length,i=[],o=0,u=n[0],c=0;a>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(t.substring(a-=u,a+u)),!((c+=u+1)>r));)u=n[o=(o+1)%n.length];return i.reverse().join(e)}):Au,a=t.currency,i=t.decimal;function o(t){var n=(t=mu(t)).fill,e=t.align,o=t.sign,u=t.symbol,c=t.zero,l=t.width,f=t.comma,s=t.precision,h=t.type,d="$"===u?a[0]:"#"===u&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",p="$"===u?a[1]:/[%p]/.test(h)?"%":"",y=vu[h],v=!h||/[defgprs%]/.test(h);function g(t){var a,u,g,m=d,b=p;if("c"===h)b=y(t)+b,t="";else{var x=((t=+t)<0||1/t<0)&&(t*=-1,!0);if(t=y(t,s),x)for(a=-1,u=t.length,x=!1;++a<u;)if(48<(g=t.charCodeAt(a))&&g<58||"x"===h&&96<g&&g<103||"X"===h&&64<g&&g<71){x=!0;break}if(m=(x?"("===o?o:"-":"-"===o||"("===o?"":o)+m,b=b+("s"===h?Mu[8+fu/3]:"")+(x&&"("===o?")":""),v)for(a=-1,u=t.length;++a<u;)if(48>(g=t.charCodeAt(a))||g>57){b=(46===g?i+t.slice(a+1):t.slice(a))+b,t=t.slice(0,a);break}}f&&!c&&(t=r(t,1/0));var w=m.length+t.length+b.length,_=w<l?new Array(l-w+1).join(n):"";switch(f&&c&&(t=r(_+t,_.length?l-b.length:1/0),_=""),e){case"<":return m+t+b+_;case"=":return m+_+t+b;case"^":return _.slice(0,w=_.length>>1)+m+t+b+_.slice(w)}return _+m+t+b}return s=null==s?h?6:12:/[gprs]/.test(h)?Math.max(1,Math.min(21,s)):Math.max(0,Math.min(20,s)),g.toString=function(){return t+""},g}return{format:o,formatPrefix:function(t,n){var e=o(((t=mu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(pu(n)/3))),a=Math.pow(10,-r),i=Mu[8+r/3];return function(t){return e(a*t)+i}}}}xu=ku({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),wu=xu.format,_u=xu.formatPrefix;var Nu={value:function(){}};function Su(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new Eu(r)}function Eu(t){this._=t}function Ou(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function Tu(t,n){for(var e,r=0,a=t.length;r<a;++r)if((e=t[r]).name===n)return e.value}function ju(t,n,e){for(var r=0,a=t.length;r<a;++r)if(t[r].name===n){t[r]=Nu,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}Eu.prototype=Su.prototype={constructor:Eu,on:function(t,n){var e,r=this._,a=Ou(t+"",r),i=-1,o=a.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++i<o;)if(e=(t=a[i]).type)r[e]=ju(r[e],t.name,n);else if(null==n)for(e in r)r[e]=ju(r[e],t.name,null);return this}for(;++i<o;)if((e=(t=a[i]).type)&&(e=Tu(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Eu(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,a=new Array(e),i=0;i<e;++i)a[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,e=(r=this._[t]).length;i<e;++i)r[i].value.apply(n,a)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],a=0,i=r.length;a<i;++a)r[a].value.apply(n,e)}};const Pu=Su;function Cu(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var Iu,Lu;const zu=(1===(Iu=Cu).length&&(Lu=Iu,Iu=function(t,n){return Cu(Lu(t),n)}),{left:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){var a=e+r>>>1;Iu(t[a],n)<0?e=a+1:r=a}return e},right:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){var a=e+r>>>1;Iu(t[a],n)>0?r=a:e=a+1}return e}}).right;var Uu=Array.prototype;Uu.slice,Uu.map;var qu=Math.sqrt(50),Ru=Math.sqrt(10),Xu=Math.sqrt(2);function Du(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/a;return i>=qu?a*=10:i>=Ru?a*=5:i>=Xu&&(a*=2),n<t?-a:a}var Vu="$";function $u(){}function Bu(t,n){var e=new $u;if(t instanceof $u)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,a=-1,i=t.length;if(null==n)for(;++a<i;)e.set(a,t[a]);else for(;++a<i;)e.set(n(r=t[a],a,t),r)}else if(t)for(var o in t)e.set(o,t[o]);return e}function Hu(){}$u.prototype=Bu.prototype={constructor:$u,has:function(t){return Vu+t in this},get:function(t){return this[Vu+t]},set:function(t,n){return this[Vu+t]=n,this},remove:function(t){var n=Vu+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===Vu&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===Vu&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===Vu&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===Vu&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===Vu&&++t;return t},empty:function(){for(var t in this)if(t[0]===Vu)return!1;return!0},each:function(t){for(var n in this)n[0]===Vu&&t(this[n],n.slice(1),this)}};var Fu=Bu.prototype;Hu.prototype=function(t,n){var e=new Hu;if(t instanceof Hu)t.each((function(t){e.add(t)}));else if(t){var r=-1,a=t.length;if(null==n)for(;++r<a;)e.add(t[r]);else for(;++r<a;)e.add(n(t[r],r,t))}return e}.prototype={constructor:Hu,has:Fu.has,add:function(t){return this[Vu+(t+="")]=t,this},remove:Fu.remove,clear:Fu.clear,values:Fu.keys,size:Fu.size,empty:Fu.empty,each:Fu.each};var Yu=Array.prototype,Gu=Yu.map,Wu=Yu.slice;function Zu(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Ju(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Ku(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Qu(){}var tc=.7,nc=1/tc,ec="\\s*([+-]?\\d+)\\s*",rc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ac="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ic=/^#([0-9a-f]{3,8})$/,oc=new RegExp("^rgb\\("+[ec,ec,ec]+"\\)$"),uc=new RegExp("^rgb\\("+[ac,ac,ac]+"\\)$"),cc=new RegExp("^rgba\\("+[ec,ec,ec,rc]+"\\)$"),lc=new RegExp("^rgba\\("+[ac,ac,ac,rc]+"\\)$"),fc=new RegExp("^hsl\\("+[rc,ac,ac]+"\\)$"),sc=new RegExp("^hsla\\("+[rc,ac,ac,rc]+"\\)$"),hc={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 dc(){return this.rgb().formatHex()}function pc(){return this.rgb().formatRgb()}function yc(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=ic.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?vc(n):3===e?new xc(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?gc(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?gc(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=oc.exec(t))?new xc(n[1],n[2],n[3],1):(n=uc.exec(t))?new xc(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=cc.exec(t))?gc(n[1],n[2],n[3],n[4]):(n=lc.exec(t))?gc(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=fc.exec(t))?Ac(n[1],n[2]/100,n[3]/100,1):(n=sc.exec(t))?Ac(n[1],n[2]/100,n[3]/100,n[4]):hc.hasOwnProperty(t)?vc(hc[t]):"transparent"===t?new xc(NaN,NaN,NaN,0):null}function vc(t){return new xc(t>>16&255,t>>8&255,255&t,1)}function gc(t,n,e,r){return r<=0&&(t=n=e=NaN),new xc(t,n,e,r)}function mc(t){return t instanceof Qu||(t=yc(t)),t?new xc((t=t.rgb()).r,t.g,t.b,t.opacity):new xc}function bc(t,n,e,r){return 1===arguments.length?mc(t):new xc(t,n,e,null==r?1:r)}function xc(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function wc(){return"#"+Mc(this.r)+Mc(this.g)+Mc(this.b)}function _c(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Mc(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ac(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Nc(t,n,e,r)}function kc(t){if(t instanceof Nc)return new Nc(t.h,t.s,t.l,t.opacity);if(t instanceof Qu||(t=yc(t)),!t)return new Nc;if(t instanceof Nc)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,a=Math.min(n,e,r),i=Math.max(n,e,r),o=NaN,u=i-a,c=(i+a)/2;return u?(o=n===i?(e-r)/u+6*(e<r):e===i?(r-n)/u+2:(n-e)/u+4,u/=c<.5?i+a:2-i-a,o*=60):u=c>0&&c<1?0:o,new Nc(o,u,c,t.opacity)}function Nc(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Sc(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Ec(t,n,e,r,a){var i=t*t,o=i*t;return((1-3*t+3*i-o)*n+(4-6*i+3*o)*e+(1+3*t+3*i-3*o)*r+o*a)/6}function Oc(t){return function(){return t}}function Tc(t,n){return function(e){return t+e*n}}function jc(t,n){var e=n-t;return e?Tc(t,e):Oc(isNaN(t)?n:t)}Ju(Qu,yc,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:dc,formatHex:dc,formatHsl:function(){return kc(this).formatHsl()},formatRgb:pc,toString:pc}),Ju(xc,bc,Ku(Qu,{brighter:function(t){return t=null==t?nc:Math.pow(nc,t),new xc(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?tc:Math.pow(tc,t),new xc(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wc,formatHex:wc,formatRgb:_c,toString:_c})),Ju(Nc,(function(t,n,e,r){return 1===arguments.length?kc(t):new Nc(t,n,e,null==r?1:r)}),Ku(Qu,{brighter:function(t){return t=null==t?nc:Math.pow(nc,t),new Nc(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?tc:Math.pow(tc,t),new Nc(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,a=2*e-r;return new xc(Sc(t>=240?t-240:t+120,a,r),Sc(t,a,r),Sc(t<120?t+240:t-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Pc=function t(n){var e=function(t){return 1==(t=+t)?jc:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Oc(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=bc(t)).r,(n=bc(n)).r),a=e(t.g,n.g),i=e(t.b,n.b),o=jc(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=a(n),t.b=i(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function Cc(t){return function(n){var e,r,a=n.length,i=new Array(a),o=new Array(a),u=new Array(a);for(e=0;e<a;++e)r=bc(n[e]),i[e]=r.r||0,o[e]=r.g||0,u[e]=r.b||0;return i=t(i),o=t(o),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=o(t),r.b=u(t),r+""}}}function Ic(t,n){var e,r=n?n.length:0,a=t?Math.min(r,t.length):0,i=new Array(a),o=new Array(r);for(e=0;e<a;++e)i[e]=Dc(t[e],n[e]);for(;e<r;++e)o[e]=n[e];return function(t){for(e=0;e<a;++e)o[e]=i[e](t);return o}}function Lc(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function zc(t,n){var e,r={},a={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Dc(t[e],n[e]):a[e]=n[e];return function(t){for(e in r)a[e]=r[e](t);return a}}Cc((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),a=t[r],i=t[r+1],o=r>0?t[r-1]:2*a-i,u=r<n-1?t[r+2]:2*i-a;return Ec((e-r/n)*n,o,a,i,u)}})),Cc((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),a=t[(r+n-1)%n],i=t[r%n],o=t[(r+1)%n],u=t[(r+2)%n];return Ec((e-r/n)*n,a,i,o,u)}}));var Uc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qc=new RegExp(Uc.source,"g");function Rc(t,n){var e,r,a,i=Uc.lastIndex=qc.lastIndex=0,o=-1,u=[],c=[];for(t+="",n+="";(e=Uc.exec(t))&&(r=qc.exec(n));)(a=r.index)>i&&(a=n.slice(i,a),u[o]?u[o]+=a:u[++o]=a),(e=e[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:Zu(e,r)})),i=qc.lastIndex;return i<n.length&&(a=n.slice(i),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)u[(e=c[r]).i]=e.x(t);return u.join("")})}function Xc(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,a=n.slice();return function(i){for(e=0;e<r;++e)a[e]=t[e]*(1-i)+n[e]*i;return a}}function Dc(t,n){var e,r,a=typeof n;return null==n||"boolean"===a?Oc(n):("number"===a?Zu:"string"===a?(e=yc(n))?(n=e,Pc):Rc:n instanceof yc?Pc:n instanceof Date?Lc:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?Ic:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?zc:Zu:Xc))(t,n)}function Vc(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function $c(t){return+t}var Bc=[0,1];function Hc(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=n,function(){return e});var e}function Fc(t,n,e,r){var a=t[0],i=t[1],o=n[0],u=n[1];return i<a?(a=e(i,a),o=r(u,o)):(a=e(a,i),o=r(o,u)),function(t){return o(a(t))}}function Yc(t,n,e,r){var a=Math.min(t.length,n.length)-1,i=new Array(a),o=new Array(a),u=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<a;)i[u]=e(t[u],t[u+1]),o[u]=r(n[u],n[u+1]);return function(n){var e=zu(t,n,1,a)-1;return o[e](i[e](n))}}function Gc(){var t=function(t,n){var e,r,a,i=Bc,o=Bc,u=Dc,c=!1;function l(){return e=Math.min(i.length,o.length)>2?Yc:Fc,r=a=null,f}function f(n){return(r||(r=e(i,o,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,u)))(+n)}return f.invert=function(t){return(a||(a=e(o,i,Hc,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},f.domain=function(t){return arguments.length?(i=Gu.call(t,$c),l()):i.slice()},f.range=function(t){return arguments.length?(o=Wu.call(t),l()):o.slice()},f.rangeRound=function(t){return o=Wu.call(t),u=Vc,l()},f.clamp=function(t){return arguments.length?(c=!!t,l()):c},f.interpolate=function(t){return arguments.length?(u=t,l()):u},l()}(Hc,Zu);return t.copy=function(){return n=t,Gc().domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp());var n},function(t){var n=t.domain;return t.ticks=function(t){var e=n();return function(t,n,e){var r=Du(t,n,e);return function(t,n,e){t=+t,n=+n,e=(a=arguments.length)<2?(n=t,t=0,1):a<3?1:+e;for(var r=-1,a=0|Math.max(0,Math.ceil((n-t)/e)),i=new Array(a);++r<a;)i[r]=t+r*e;return i}(Math.ceil(t/r)*r,Math.floor(n/r)*r+r/2,r)}(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return function(t,n,e){var r,a=t[0],i=t[t.length-1],o=Du(a,i,null==n?10:n);switch((e=mu(null==e?",f":e)).type){case"s":var u=Math.max(Math.abs(a),Math.abs(i));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pu(n)/3)))-pu(Math.abs(t)))}(o,u))||(e.precision=r),_u(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,pu(n)-pu(t))+1}(o,Math.max(Math.abs(a),Math.abs(i))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-pu(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return wu(e)}(n(),t,e)},t.nice=function(e){var r=n(),a=r.length-1,i=null==e?10:e,o=r[0],u=r[a],c=Du(o,u,i);return c&&(c=Du(Math.floor(o/c)*c,Math.ceil(u/c)*c,i),r[0]=Math.floor(o/c)*c,r[a]=Math.ceil(u/c)*c,n(r)),t},t}(t)}function Wc(t){return t.match(/.{6}/g).map((function(t){return"#"+t}))}Wc("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Wc("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Wc("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Wc("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");var Zc=Math.PI/180,Jc=180/Math.PI,Kc=-.14861,Qc=1.78277,tl=-.29227,nl=-.90649,el=1.97294,rl=el*nl,al=el*Qc,il=Qc*tl-nl*Kc;function ol(t){if(t instanceof cl)return new cl(t.h,t.s,t.l,t.opacity);t instanceof xc||(t=mc(t));var n=t.r/255,e=t.g/255,r=t.b/255,a=(il*r+rl*n-al*e)/(il+rl-al),i=r-a,o=(el*(e-a)-tl*i)/nl,u=Math.sqrt(o*o+i*i)/(el*a*(1-a)),c=u?Math.atan2(o,i)*Jc-120:NaN;return new cl(c<0?c+360:c,u,a,t.opacity)}function ul(t,n,e,r){return 1===arguments.length?ol(t):new cl(t,n,e,null==r?1:r)}function cl(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function ll(t){return function n(e){function r(n,r){var a=t((n=ul(n)).h,(r=ul(r)).h),i=jc(n.s,r.s),o=jc(n.l,r.l),u=jc(n.opacity,r.opacity);return function(t){return n.h=a(t),n.s=i(t),n.l=o(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}Ju(cl,ul,Ku(Qu,{brighter:function(t){return t=null==t?nc:Math.pow(nc,t),new cl(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?tc:Math.pow(tc,t),new cl(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Zc,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),a=Math.sin(t);return new xc(255*(n+e*(Kc*r+Qc*a)),255*(n+e*(tl*r+nl*a)),255*(n+e*(el*r)),this.opacity)}})),ll((function(t,n){var e=n-t;return e?Tc(t,e>180||e<-180?e-360*Math.round(e/360):e):Oc(isNaN(t)?n:t)}));var fl=ll(jc);function sl(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}fl(ul(300,.5,0),ul(-240,.5,1)),fl(ul(-100,.75,.35),ul(80,1.5,.8)),fl(ul(260,.75,.35),ul(80,1.5,.8)),ul(),sl(Wc("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),sl(Wc("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),sl(Wc("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),sl(Wc("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl=function(t){return t},pl=function(t){for(var n=[],e=0,r=t.length;e<r;e++)n[e]=t[r-e-1];return n},yl=function(t,n){t.each((function(){for(var t,e=function(t){return"string"==typeof t?new hu([[document.querySelector(t)]],[document.documentElement]):new hu([[t]],su)}(this),r=e.text().split(/\s+/).reverse(),a=[],i=(e.attr("y"),parseFloat(e.attr("dy"))||0),o=e.text(null).append("tspan").attr("x",0).attr("dy",i+"em");t=r.pop();)a.push(t),o.text(a.join(" ")),o.node().getComputedTextLength()>n&&a.length>1&&(a.pop(),o.text(a.join(" ")),a=[t],o=e.append("tspan").attr("x",0).attr("dy",1.2+i+"em").text(t))}))},vl={d3_drawShapes:function(t,n,e,r,a,i){"rect"===t?n.attr("height",e).attr("width",r):"circle"===t?n.attr("r",a):"line"===t?n.attr("x1",0).attr("x2",r).attr("y1",0).attr("y2",0):"path"===t&&n.attr("d",i)},d3_addText:function(t,n,e,r,a){n.append("text").attr("class",r+"label");var i=t.selectAll("g."+r+"cell text."+r+"label").data(e).text(dl);return a&&t.selectAll("g."+r+"cell text."+r+"label").call(yl,a),i},d3_calcType:function(t,n,e,r,a,i){var o=t.invertExtent?function(t,n,e){var r=t.range().map((function(r){var a=t.invertExtent(r);return n(a[0])+" "+e+" "+n(a[1])}));return{data:t.range(),labels:r,feature:dl}}(t,a,i):t.ticks?function(t,n,e){var r=[];if(n.length>1)r=n;else for(var a=t.domain(),i=(a[a.length-1]-a[0])/(n-1),o=0;o<n;o++)r.push(a[0]+o*i);var u=r.map(e);return{data:r,labels:u,feature:function(n){return t(n)}}}(t,e,a):function(t){return{data:t.domain(),labels:t.domain(),feature:function(n){return t(n)}}}(t),u=t.range&&t.range()||t.domain();return o.labels=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1],e=arguments[2],r=arguments[3],a=arguments[4];if("object"===(void 0===n?"undefined":hl(n))){if(0===n.length)return t;for(var i=n.length;i<t.length;i++)n.push(t[i]);return n}if("function"==typeof n){for(var o=[],u=t.length,c=0;c<u;c++)o.push(n({i:c,genLength:u,generatedLabels:t,domain:e,range:r,labelDelimiter:a}));return o}return t}(o.labels,r,t.domain(),u,i),n&&(o.labels=pl(o.labels),o.data=pl(o.data)),o},d3_filterCells:function(t,n){var e=t.data.map((function(n,e){return{data:n,label:t.labels[e]}})).filter(n),r=e.map((function(t){return t.data})),a=e.map((function(t){return t.label}));return t.data=t.data.filter((function(t){return-1!==r.indexOf(t)})),t.labels=t.labels.filter((function(t){return-1!==a.indexOf(t)})),t},d3_placement:function(t,n,e,r,a,i){n.attr("transform",e),r.attr("transform",a),"horizontal"===t&&r.style("text-anchor",i)},d3_addEvents:function(t,n){t.on("mouseover.legend",(function(t){!function(t,n,e){t.call("cellover",e,n)}(n,t,this)})).on("mouseout.legend",(function(t){!function(t,n,e){t.call("cellout",e,n)}(n,t,this)})).on("click.legend",(function(t){!function(t,n,e){t.call("cellclick",e,n)}(n,t,this)}))},d3_title:function(t,n,e,r){if(""!==n){t.selectAll("text."+e+"legendTitle").data([n]).enter().append("text").attr("class",e+"legendTitle"),t.selectAll("text."+e+"legendTitle").text(n),r&&t.selectAll("text."+e+"legendTitle").call(yl,r);var a=t.select("."+e+"legendCells"),i=t.select("."+e+"legendTitle").nodes().map((function(t){return t.getBBox().height}))[0],o=-a.nodes().map((function(t){return t.getBBox().x}))[0];a.attr("transform","translate("+o+","+i+")")}},d3_defaultLocale:{format:wu,formatPrefix:_u},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};var gl=600,ml=400,bl=["module_operations","module_adjacency","training_time","trainable_parameters","train_accuracy","validation_accuracy","test_accuracy"],xl={trainable_parameters:"# of Parameters",training_time:"Training Time",accuracy:"Accuracy"},wl=function(){var e=100,r=100,a="x",i="y",o="z";function u(u){var c=function(t){return t[bl.indexOf(a)]},l=function(t){return t[bl.indexOf(i)]},f=va("svg").attr("viewBox",[0,0,gl,ml]),d=[0,t(u,c)],p=[0,t(u,l)],y=ua().domain(d).range([60,570]).nice();d=y.domain();var v=ua().domain(p).range([320,5]).nice();p=v.domain();var g=d[1]/e,m=p[1]/r,b={},x=n(d[0],d[1]+g,g);n(p[0],p[1]+m,m).forEach((function(t){x.forEach((function(n){var e=Math.floor(n/g),r=Math.floor(t/m),a=[];a.i=e,a.j=r,a.x=e*g,a.y=r*m,a.zMax=0,b[e+"-"+r]=a}))})),u.forEach((function(t){var n=Math.floor(c(t)/g),e=Math.floor(l(t)/m),r=t[bl.indexOf(o)],a=n+"-"+e;b[a].push(t),r>b[a].zMax&&(b[a].zMax=r,b[a].module_operations=t[1],b[a].module_adjacency=t[0])}));var w=Object.values(b),_=function(t,n){let e,r;for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));return[e,r]}(w.map((function(t){return t.zMax})).filter((function(t){return 0!==t}))),M=fa(pa).domain(_),A=y(d[0]+g)-60,k=v(p[1]-m)-5,N=va("div").attr("class","tooltip").style("opacity",0).style("position","fixed").style("background-color","white").style("border","solid").style("border-width","2px").style("border-radius","5px").style("padding","5px").style("font-size","10px");f.append("g").call((function(t){return t.attr("transform","translate(0, ".concat(320,")")).call((n=y,s(3,n)).tickFormat("trainable_parameters"===a?kr(".2s"):function(t){return t})).call((function(t){return t.append("text").attr("text-anchor","end").attr("x",570).attr("y",30).attr("fill","currentColor").text(xl[a])}));var n})),f.append("g").call((function(t){return t.attr("transform","translate(".concat(60,", 0)")).call(h(v).tickFormat("trainable_parameters"===i?kr(".2s"):function(t){return t})).call((function(t){return t.append("text").attr("text-anchor","end").attr("x",-10).attr("y",-40).attr("fill","currentColor").attr("transform","rotate(-90)").text(xl[i])}))})),f.append("g").attr("transform","translate(".concat(60,",").concat(5,")")),f.append("clipPath").attr("id","clip").append("rect").attr("width",570).attr("height",320),f.append("g").attr("clip-path","url(#clip)").selectAll().data(w).enter().append("rect").attr("x",(function(t){return y(t.x)})).attr("y",(function(t){return v(t.y)})).attr("width",A).attr("height",k).attr("fill",(function(t){return 0===t.length?"transparent":M(t.zMax)})).attr("stroke","grey").attr("stroke-width","0.2").attr("stroke-opacity",.5).on("mouseover",(function(t,n){0!=n.length&&N.style("opacity",1)})).on("mousemove",(function(t,n){N.html("accuracy: "+kr(".2%")(n.zMax)).style("top",t.y+"px").style("left",t.x+10+"px")})).on("mouseleave",(function(t,n){N.style("opacity",0)})).on("click",(function(t,n){mi(ei(n.module_operations),ri(n.module_adjacency),0),Ji(null,0),Ai(),hi()})),f.append("g").attr("class","accuracyLegend").attr("transform","translate(".concat(100,",").concat(390,")"));var S=kr(".1%"),E=function(){var t=Gc(),n="rect",e=15,r=15,a=10,i=2,o=[5],u=void 0,c=[],l="",f=!1,s="",h=vl.d3_defaultLocale,d=vl.d3_defaultFormatSpecifier,p=10,y="middle",v=vl.d3_defaultDelimiter,g=void 0,m="vertical",b=!1,x=void 0,w=void 0,_=Pu("cellover","cellout","cellclick");function M(M){var A=vl.d3_calcType(t,b,o,c,h.format(d),v);M.selectAll("g").data([t]).enter().append("g").attr("class",l+"legendCells"),u&&vl.d3_filterCells(A,u);var k=M.select("."+l+"legendCells").selectAll("."+l+"cell").data(A.data),N=k.enter().append("g").attr("class",l+"cell");N.append(n).attr("class",l+"swatch");var S=M.selectAll("g."+l+"cell "+n+"."+l+"swatch").data(A.data);vl.d3_addEvents(N,_),k.exit().transition().style("opacity",0).remove(),S.exit().transition().style("opacity",0).remove(),S=S.merge(S),vl.d3_drawShapes(n,S,r,e,a,x);var E=vl.d3_addText(M,N,A.labels,l,g);k=N.merge(k);var O=E.nodes().map((function(t){return t.getBBox()})),T=S.nodes().map((function(t){return t.getBBox()}));f?S.attr("class",(function(t){return l+"swatch "+A.feature(t)})):"line"==n?S.style("stroke",A.feature):S.style("fill",A.feature);var j,P=void 0,C=void 0,I="start"==y?0:"middle"==y?.5:1;"vertical"===m?(j=O.map((function(t,n){return Math.max(t.height,T[n].height)})),P=function(t,n){return"translate(0, "+(function(t,n){var e,r=0,a=t.length,i=-1;if(null==n)for(;++i<a;)(e=+t[i])&&(r+=e);else for(;++i<a;)(e=+n(t[i],i,t))&&(r+=e);return r}(j.slice(0,n))+n*i)+")"},C=function(t,n){return"translate( "+(T[n].width+T[n].x+p)+", "+(T[n].y+T[n].height/2+5)+")"}):"horizontal"===m&&(P=function(t,n){return"translate("+n*(T[n].width+i)+",0)"},C=function(t,n){return"translate("+(T[n].width*I+T[n].x)+",\n "+(T[n].height+T[n].y+p+8)+")"}),vl.d3_placement(m,k,P,E,C,y),vl.d3_title(M,s,l,w),k.transition().style("opacity",1)}return M.scale=function(n){return arguments.length?(t=n,M):t},M.cells=function(t){return arguments.length?((t.length>1||t>=2)&&(o=t),M):o},M.cellFilter=function(t){return arguments.length?(u=t,M):u},M.shape=function(t,e){return arguments.length?(("rect"==t||"circle"==t||"line"==t||"path"==t&&"string"==typeof e)&&(n=t,x=e),M):n},M.shapeWidth=function(t){return arguments.length?(e=+t,M):e},M.shapeHeight=function(t){return arguments.length?(r=+t,M):r},M.shapeRadius=function(t){return arguments.length?(a=+t,M):a},M.shapePadding=function(t){return arguments.length?(i=+t,M):i},M.labels=function(t){return arguments.length?(c=t,M):c},M.labelAlign=function(t){return arguments.length?("start"!=t&&"end"!=t&&"middle"!=t||(y=t),M):y},M.locale=function(t){return arguments.length?(h=ku(t),M):h},M.labelFormat=function(t){return arguments.length?(d=mu(t),M):M.locale().format(d)},M.labelOffset=function(t){return arguments.length?(p=+t,M):p},M.labelDelimiter=function(t){return arguments.length?(v=t,M):v},M.labelWrap=function(t){return arguments.length?(g=t,M):g},M.useClass=function(t){return arguments.length?(!0!==t&&!1!==t||(f=t),M):f},M.orient=function(t){return arguments.length?("horizontal"!=(t=t.toLowerCase())&&"vertical"!=t||(m=t),M):m},M.ascending=function(t){return arguments.length?(b=!!t,M):b},M.classPrefix=function(t){return arguments.length?(l=t,M):l},M.title=function(t){return arguments.length?(s=t,M):s},M.titleWidth=function(t){return arguments.length?(w=t,M):w},M.textWrap=function(t){return arguments.length?(textWrap=t,M):textWrap},M.on=function(){var t=_.on.apply(_,arguments);return t===_?M:t},M}().title("Accuracy").shapeWidth(40).shapePadding(40).labelFormat(S).labels((function(t){var n=t.i,e=(t.genLength,t.generatedLabels);return t.labelDelimiter,"~ "+e[n]})).cells(10).orient("horizontal").scale(M);return f.select(".accuracyLegend").call(E),f.select(".accuracyLegend").select(".legendTitle").style("font-size","15px").style("text-anchor","middle").attr("transform","translate(".concat(200,",-10)")),f.select(".accuracyLegend").select(".legendCells").style("font-size","10px").selectAll(".cell").select(".label").style("text-anchor","middle").attr("transform","translate(".concat(20,",25)")),{graph:f.node(),tooltip:N.node()}}return u.splitX=function(t){return arguments.length?(e=t,u):e},u.splitY=function(t){return arguments.length?(r=t,u):r},u.x=function(t){return arguments.length?(a=t,u):a},u.y=function(t){return arguments.length?(i=t,u):i},u.z=function(t){return arguments.length?(o=t,u):o},u};function _l(){return(_l=za(qa().mark((function t(){var n;return qa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ze("./nasbench101_edgesignificance.json",{method:"GET"});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ml(t){return[t[6],ei(t[1]),ri(t[0])]}function Al(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=1;return e*=t[6]*t[6]*t[6],1===n&&console.log(e),e/=Math.log(Math.log(t[3]))*Math.log(t[2]),1===n&&console.log(e),e}var kl=null,Nl=null,Sl=ze("#heatmap"),El=ze("#tooltip"),Ol=ze("#architecture"),Tl=ze("#sharpleyvalue");function jl(){ze(this).attr("opacity",.5)}function Pl(){ze(this).attr("opacity",1)}function Cl(t){var n=wl().x(ze("#optionX").property("value")).y(ze("#optionY").property("value")).z("test_accuracy").splitX(50).splitY(30)(t);Sl.append((function(){return n.graph})),El.append((function(){return n.tooltip}))}Ia(Ol),function(t){var n=50,e=175,r=t.append("g").attr("transform","translate("+[20,594]+")").attr("id","conv1x1-bn-relu").attr("class","append-button conv1x1-bn-relu");r.append("rect").attr("width",e).attr("height",n).attr("rx","5px").attr("ry","5px").attr("fill",Ca.conv11),r.append("text").text("(+) 1×1 CONV").attr("fill","white").attr("x",87.5).attr("y",25).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("font-size",20);var a=t.append("g").attr("transform","translate("+[215,594]+")").attr("id","conv3x3-bn-relu").attr("class","append-button conv3x3-bn-relu");a.append("rect").attr("width",e).attr("height",n).attr("rx","5px").attr("ry","5px").attr("fill",Ca.conv33),a.append("text").text("(+) 3×3 CONV").attr("fill","white").attr("x",87.5).attr("y",25).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("font-size",20);var i=t.append("g").attr("transform","translate("+[410,594]+")").attr("id","maxpool3x3").attr("class","append-button maxpool3x3");i.append("rect").attr("width",e).attr("height",n).attr("rx","5px").attr("ry","5px").attr("fill",Ca.pool33),i.append("text").text("(+) 3×3 POOL").attr("fill","white").attr("x",87.5).attr("y",25).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("font-size",20);var o=t.append("g").attr("transform","translate("+[605,594]+")").attr("id","init");o.append("rect").attr("width",e).attr("height",n).attr("rx","5px").attr("ry","5px").attr("fill",Ca.gray),o.append("text").text("Reset").attr("fill","white").attr("x",87.5).attr("y",25).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("font-size",20);var u=t.append("g").attr("transform","translate("+[20,594]+")").attr("id","deleteBox").attr("visibility","hidden").attr("width",760).attr("height",n).attr("rx","5").attr("ry","5");u.append("rect").attr("width",760).attr("height",n).attr("rx","5").attr("ry","5").attr("fill","#dc3545"),u.append("text").text("Drag here to delete node").attr("fill","white").attr("x",380).attr("y",25).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("font-weight","bold").attr("font-size",24)}(Ol),Ia(Tl),Wi(),Ze("./nasbench101_minified.json").then((function(t){kl=t,Nl=Object.values(kl).reduce((function(t,n){return t.concat(n)})),Ai(),function(){for(var t,n,e,r,a=(n=[],e=Nl[0],r=Nl[0],Nl.forEach((function(n){1156===n[2]&&2694282===n[3]&&(t=n),e[6]<n[6]&&(e=n),Al(r)<Al(n,0)&&(r=n)})),n.push(Ml(t)),n.push(Ml(e)),n.push(Ml(r)),n),i=0;i<3;i++)mi(a[i][1],a[i][2],i+6),Ji(null,i+6);ze("#preset-col").selectAll(".preset-cell").data(a).on("click",(function(t,n){vi(a.indexOf(n)+5)}))}(),Cl(Nl),ze("#loading").attr("class","visually-hidden"),ze("#main").attr("class","bd-main container-xxl bd-layout overflow-hidden")})),ga(".conv1x1-bn-relu").attr("fill",Ca.conv11).style("background-color",Ca.conv11),ga(".conv3x3-bn-relu").attr("fill",Ca.conv33).style("background-color",Ca.conv33),ga(".maxpool3x3").attr("fill",Ca.pool33).style("background-color",Ca.pool33),ga(".gray").attr("fill",Ca.gray).style("background-color",Ca.gray),ga(".append-button").on("click",(function(){return Ni.apply(this,arguments)})).on("mouseover",jl).on("mouseout",Pl),ze("#init").on("click",(function(){gi(),hi(),Ai()})).on("mouseover",jl).on("mouseout",Pl),ga("#optionX, #optionY").on("change",(function(){Sl.select("svg").remove(),Cl(Nl)})),function(){return _l.apply(this,arguments)}().then((function(t){return no(t.children)}))})()})();