@wavemaker/app-runtime-wm-build 11.14.1-next.28340 → 11.14.1-rc.233
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -559,7 +559,7 @@ n.version="2.30.1",e=Nt,n.fn=Dn,n.min=function(){return jt("isBefore",[].slice.c
|
|
|
559
559
|
//! Copyright (c) JS Foundation and other contributors
|
|
560
560
|
//! license : MIT
|
|
561
561
|
//! github.com/moment/moment-timezone
|
|
562
|
-
function(e,t){"use strict";"object"==typeof module&&module.exports?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define(["moment"],t):t(e.moment)}(this,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},r={},i={},o={},s={};e&&"string"==typeof e.version||C("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=e.version.split("."),l=+a[0],c=+a[1];function u(e){return e>96?e-87:e>64?e-29:e-48}function d(e){var t=0,n=e.split("."),r=n[0],i=n[1]||"",o=1,s=0,a=1;for(45===e.charCodeAt(0)&&(t=1,a=-1);t<r.length;t++)s=60*s+u(r.charCodeAt(t));for(t=0;t<i.length;t++)o/=60,s+=u(i.charCodeAt(t))*o;return s*a}function h(e){for(var t=0;t<e.length;t++)e[t]=d(e[t])}function p(e,t){var n,r=[];for(n=0;n<t.length;n++)r[n]=e[t[n]];return r}function f(e){var t=e.split("|"),n=t[2].split(" "),r=t[3].split(""),i=t[4].split(" ");return h(n),h(r),h(i),function(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}(i,r.length),{name:t[0],abbrs:p(t[1].split(" "),r),offsets:p(n,r),untils:i,population:0|t[5]}}function m(e){e&&this._set(f(e))}function g(e,t){this.name=e,this.zones=t}function v(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=t.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function y(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function b(e,t){for(var n,r;r=6e4*((t.at-e.at)/12e4|0);)(n=new v(new Date(e.at+r))).offset===e.offset?e=n:t=n;return e}function _(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function w(e,t){var n,r;for(h(t),n=0;n<t.length;n++)r=t[n],s[r]=s[r]||{},s[r][e]=!0}function A(e){var t,n,r,i,a=e.length,l={},c=[],u={};for(t=0;t<a;t++)if(r=e[t].offset,!u.hasOwnProperty(r)){for(n in i=s[r]||{})i.hasOwnProperty(n)&&(l[n]=!0);u[r]=!0}for(t in l)l.hasOwnProperty(t)&&c.push(o[t]);return c}function x(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=o[k(e)];if(t)return t;C("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,r,i,s=function(){var e,t,n,r,i=(new Date).getFullYear()-2,o=new v(new Date(i,0,1)),s=o.offset,a=[o];for(r=1;r<48;r++)(n=new Date(i,r,1).getTimezoneOffset())!==s&&(e=b(o,t=new v(new Date(i,r,1))),a.push(e),a.push(new v(new Date(e.at+6e4))),o=t,s=n);for(r=0;r<4;r++)a.push(new v(new Date(i+r,0,1))),a.push(new v(new Date(i+r,6,1)));return a}(),a=s.length,l=A(s),c=[];for(r=0;r<l.length;r++){for(n=new y(E(l[r]),a),i=0;i<a;i++)n.scoreOffsetAt(s[i]);c.push(n)}return c.sort(_),c.length>0?c[0].zone.name:void 0}function k(e){return(e||"").toLowerCase().replace(/\//g,"_")}function S(e){var t,r,i,s;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)s=k(r=(i=e[t].split("|"))[0]),n[s]=e[t],o[s]=r,w(s,i[2].split(" "))}function E(e,t){e=k(e);var i,s=n[e];return s instanceof m?s:"string"==typeof s?(s=new m(s),n[e]=s,s):r[e]&&t!==E&&(i=E(r[e],E))?((s=n[e]=new m)._set(i),s.name=o[e],s):null}function T(e){var t,n,i,s;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)i=k((n=e[t].split("|"))[0]),s=k(n[1]),r[i]=s,o[i]=n[0],r[s]=i,o[s]=n[1]}function D(e){var t="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||t)}function C(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function M(t){var n,r=Array.prototype.slice.call(arguments,0,-1),i=arguments[arguments.length-1],o=e.utc.apply(null,r);return!e.isMoment(t)&&D(o)&&(n=E(i))&&o.add(n.parse(o),"minutes"),o.tz(i),o}(l<2||2===l&&c<6)&&C("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),m.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t;if((t=function(e,t){var n,r=t.length;if(e<t[0])return 0;if(r>1&&t[r-1]===1/0&&e>=t[r-2])return r-1;if(e>=t[r-1])return-1;for(var i=0,o=r-1;o-i>1;)t[n=Math.floor((i+o)/2)]<=e?i=n:o=n;return o}(+e,this.untils))>=0)return t},countries:function(){var e=this.name;return Object.keys(i).filter(function(t){return-1!==i[t].zones.indexOf(e)})},parse:function(e){var t,n,r,i,o=+e,s=this.offsets,a=this.untils,l=a.length-1;for(i=0;i<l;i++)if(t=s[i],n=s[i+1],r=s[i?i-1:i],t<n&&M.moveAmbiguousForward?t=n:t>r&&M.moveInvalidForward&&(t=r),o<a[i]-6e4*t)return s[i];return s[l]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return C("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},y.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},M.version="0.6.0",M.dataVersion="",M._zones=n,M._links=r,M._names=o,M._countries=i,M.add=S,M.link=T,M.load=function(e){S(e.zones),T(e.links),function(e){var t,n,r,o;if(e&&e.length)for(t=0;t<e.length;t++)n=(o=e[t].split("|"))[0].toUpperCase(),r=o[1].split(" "),i[n]=new g(n,r)}(e.countries),M.dataVersion=e.version},M.zone=E,M.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,C("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!E(t)},M.guess=function(e){return t&&!e||(t=x()),t},M.names=function(){var e,t=[];for(e in o)o.hasOwnProperty(e)&&(n[e]||n[r[e]])&&o[e]&&t.push(o[e]);return t.sort()},M.Zone=m,M.unpack=f,M.unpackBase60=d,M.needsOffset=D,M.moveInvalidForward=!0,M.moveAmbiguousForward=!1,M.countries=function(){return Object.keys(i)},M.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=i[n]||null))return null;var r=e.zones.sort();return t?r.map(function(e){return{name:e,offset:E(e).utcOffset(new Date)}}):r};var I,O=e.fn;function L(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function N(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=M,e.defaultZone=null,e.updateOffset=function(t,n){var r,i=e.defaultZone;if(void 0===t._z&&(i&&D(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(i.parse(t),"minutes")),t._z=i),t._z)if(r=t._z.utcOffset(t),Math.abs(r)<16&&(r/=60),void 0!==t.utcOffset){var o=t._z;t.utcOffset(-r,n),t._z=o}else t.zone(r,n)},O.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=E(t),this._z?e.updateOffset(this,n):C("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},O.zoneName=L(O.zoneName),O.zoneAbbr=L(O.zoneAbbr),O.utc=N(O.utc),O.local=N(O.local),O.utcOffset=(I=O.utcOffset,function(){return arguments.length>0&&(this._z=null),I.apply(this,arguments)}),e.tz.setDefault=function(t){return(l<2||2===l&&c<9)&&C("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?E(t):null,e};var P=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(P)?(P.push("_z"),P.push("_a")):P&&(P._z=null),e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t(require("@xmldom/xmldom").DOMParser):e.X2JS=t()}(this,function(e){"use strict";return function(t){(t=t||{}).arrayAccessForm=t.arrayAccessForm||"none",t.emptyNodeForm=t.emptyNodeForm||"text",t.jsAttributeFilter=t.jsAttributeFilter,t.jsAttributeConverter=t.jsAttributeConverter,t.attributeConverters=t.attributeConverters||[],t.datetimeAccessFormPaths=t.datetimeAccessFormPaths||[],t.arrayAccessFormPaths=t.arrayAccessFormPaths||[],t.xmldomOptions=t.xmldomOptions||{},void 0===t.enableToStringFunc&&(t.enableToStringFunc=!0),void 0===t.skipEmptyTextNodesForObj&&(t.skipEmptyTextNodesForObj=!0),void 0===t.stripWhitespaces&&(t.stripWhitespaces=!0),void 0===t.useDoubleQuotes&&(t.useDoubleQuotes=!0),void 0===t.ignoreRoot&&(t.ignoreRoot=!1),void 0===t.escapeMode&&(t.escapeMode=!0),void 0===t.attributePrefix&&(t.attributePrefix="_"),void 0===t.selfClosingElements&&(t.selfClosingElements=!0),void 0===t.keepCData&&(t.keepCData=!1),void 0===t.keepText&&(t.keepText=!1),void 0===t.jsDateUTC&&(t.jsDateUTC=!1),function(){function e(e){var t=String(e);return 1===t.length&&(t="0"+t),t}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|^\n+|(\s|\n)+$/g,"")}),"function"!=typeof Date.prototype.toISOString&&(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}();var n=1,r=3,i=4,o=8,s=9;function a(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!==t||(t=e.nodeName),t}function l(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function c(e,n,r){if("property"===t.arrayAccessForm)e[n]instanceof Array?e[n+"_asArray"]=e[n]:e[n+"_asArray"]=[e[n]];if(!(e[n]instanceof Array)&&t.arrayAccessFormPaths.length>0){for(var i=!1,o=0;o<t.arrayAccessFormPaths.length;o++){var s=t.arrayAccessFormPaths[o];if("string"==typeof s){if(s===r){i=!0;break}}else if(s instanceof RegExp){if(s.test(r)){i=!0;break}}else if("function"==typeof s&&s(n,r)){i=!0;break}}i&&(e[n]=[e[n]])}}function u(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),r=t[5].split(".");if(n.setHours(t[3],t[4],r[0]),r.length>1&&n.setMilliseconds(r[1]),t[6]&&t[7]){var i=60*t[6]+Number(t[7]);i=0+("-"===(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*i:i),n.setMinutes(n.getMinutes()-i-n.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function d(e,n){for(var r={__cnt:0},i=e.childNodes,s=0;s<i.length;s++){var l=i.item(s),d=a(l);l.nodeType!==o&&(r.__cnt++,null==r[d]?(r[d]=h(l,n+"."+d),c(r,d,n+"."+d)):(r[d]instanceof Array||(r[d]=[r[d]],c(r,d,n+"."+d)),r[d][r[d].length]=h(l,n+"."+d)))}for(var p=0;p<e.attributes.length;p++){var f=e.attributes.item(p);r.__cnt++;for(var m=f.value,g=0;g<t.attributeConverters.length;g++){var v=t.attributeConverters[g];v.test.call(null,f.name,f.value)&&(m=v.convert.call(null,f.name,f.value))}r[t.attributePrefix+f.name]=m}var y=e.prefix;return y&&(r.__cnt++,r.__prefix=y),r["#text"]&&(r.__text=r["#text"],r.__text instanceof Array&&(r.__text=r.__text.join("\n")),t.escapeMode&&(r.__text=r.__text.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")),t.stripWhitespaces&&(r.__text=r.__text.trim()),delete r["#text"],"property"===t.arrayAccessForm&&delete r["#text_asArray"],r.__text=function(e,n,r){if(t.datetimeAccessFormPaths.length>0)for(var i=r.split(".#")[0],o=0;o<t.datetimeAccessFormPaths.length;o++){var s=t.datetimeAccessFormPaths[o];if("string"==typeof s){if(s===i)return u(e)}else if(s instanceof RegExp){if(s.test(i))return u(e)}else if("function"==typeof s&&s(i))return u(e)}return e}(r.__text,0,n+".#text")),r.hasOwnProperty("#cdata-section")&&(r.__cdata=r["#cdata-section"],delete r["#cdata-section"],"property"===t.arrayAccessForm&&delete r["#cdata-section_asArray"]),1===r.__cnt&&r.__text&&!t.keepText?r=r.__text:0===r.__cnt&&"text"===t.emptyNodeForm?r="":r.__cnt>1&&void 0!==r.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""===r.__text||""===r.__text.trim())&&delete r.__text,delete r.__cnt,t.keepCData||r.hasOwnProperty("__text")||!r.hasOwnProperty("__cdata")||1!==Object.keys(r).length?(t.enableToStringFunc&&(r.__text||r.__cdata)&&(r.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),r):r.__cdata?r.__cdata:""}function h(e,o){return e.nodeType===s?function(e){for(var r={},i=e.childNodes,o=0;o<i.length;o++){var s=i.item(o);if(s.nodeType===n){var l=a(s);t.ignoreRoot?r=h(s,l):r[l]=h(s,l)}}return r}(e):e.nodeType===n?d(e,o):e.nodeType===r||e.nodeType===i?e.nodeValue:null}function p(e,n,r,i){var o="<"+(e&&e.__prefix?e.__prefix+":":"")+n;if(r)for(var s=0;s<r.length;s++){var a=r[s],c=e[a];t.escapeMode&&(c=l(c)),o+=" "+a.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?o+='"'+c+'"':o+="'"+c+"'"}return o+=i?" />":">"}function f(e,t){return"</"+(e&&e.__prefix?e.__prefix+":":"")+t+">"}function m(e,n){return"property"===t.arrayAccessForm&&(r=n.toString(),i="_asArray",-1!==r.indexOf(i,r.length-i.length))||0===n.toString().indexOf(t.attributePrefix)||0===n.toString().indexOf("__")||e[n]instanceof Function;var r,i}function g(e){var t=0;if(e instanceof Object)for(var n in e)m(e,n)||t++;return t}function v(e){var n=[];if(e instanceof Object)for(var r in e)-1===r.toString().indexOf("__")&&0===r.toString().indexOf(t.attributePrefix)&&n.push(r);return n}function y(e){var n="";return e instanceof Object?n+=function(e){var n="";return e.__cdata&&(n+="<![CDATA["+e.__cdata+"]]>"),(e.__text||"number"==typeof e.__text||"boolean"==typeof e.__text)&&(t.escapeMode?n+=l(e.__text):n+=e.__text),n}(e):null!==e&&(t.escapeMode?n+=l(e):n+=e),n}function b(e,n,r){var i="";if(t.jsAttributeFilter&&t.jsAttributeFilter.call(null,n,e))return i;if(t.jsAttributeConverter&&(e=t.jsAttributeConverter.call(null,n,e)),null!=e&&""!==e||!t.selfClosingElements)if("object"==typeof e)if("[object Array]"===Object.prototype.toString.call(e))i+=function(e,t,n){var r="";if(0===e.length)r+=p(e,t,n,!0);else for(var i=0;i<e.length;i++)r+=b(e[i],t,v(e[i]));return r}(e,n,r);else if(e instanceof Date)i+=p(e,n,r,!1),i+=t.jsDateUTC?e.toUTCString():e.toISOString(),i+=f(e,n);else{g(e)>0||"number"==typeof e.__text||"boolean"==typeof e.__text||e.__text||e.__cdata?(i+=p(e,n,r,!1),i+=_(e),i+=f(e,n)):t.selfClosingElements?i+=p(e,n,r,!0):(i+=p(e,n,r,!1),i+=f(e,n))}else i+=p(e,n,r,!1),i+=y(e),i+=f(e,n);else i+=p(e,n,r,!0);return i}function _(e){var t="";if(g(e)>0)for(var n in e)if(!m(e,n)){var r=e[n];t+=b(r,n,v(r))}return t+=y(e)}function w(n){if(void 0===n)return null;if("string"!=typeof n)return null;var r=null,i=null;if(e)i=(r=new e(t.xmldomOptions)).parseFromString(n,"text/xml");else if(window&&window.DOMParser){r=new window.DOMParser;var o=null;if(!(window.ActiveXObject||"ActiveXObject"in window)&&document.all&&!document.addEventListener)try{o=r.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(e){o=null}try{i=r.parseFromString(n,"text/xml"),null!==o&&i.getElementsByTagNameNS(o,"parsererror").length>0&&(i=null)}catch(e){i=null}}else 0===n.indexOf("<?")&&(n=n.substr(n.indexOf("?>")+2)),(i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(n);return i}this.asArray=function(e){return null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?u(e):e},this.xml2dom=function(e){return w(e)},this.dom2js=function(e){return h(e,null)},this.js2dom=function(e){return w(this.js2xml(e))},this.xml2js=function(e){var t=w(e);return null!=t?this.dom2js(t):null},this.js2xml=function(e){return _(e)},this.getVersion=function(){return"3.4.4"}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).d3=e.d3||{})}(this,function(e){"use strict";function t(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function n(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function r(e){let r,o,s;function a(e,t,n=0,i=e.length){if(n<i){if(0!==r(t,t))return i;do{const r=n+i>>>1;o(e[r],t)<0?n=r+1:i=r}while(n<i)}return n}return 2!==e.length?(r=t,o=(n,r)=>t(e(n),r),s=(t,n)=>e(t)-n):(r=e===t||e===n?e:i,o=e,s=e),{left:a,center:function(e,t,n=0,r=e.length){const i=a(e,t,n,r-1);return i>n&&s(e[i-1],t)>-s(e[i],t)?i-1:i},right:function(e,t,n=0,i=e.length){if(n<i){if(0!==r(t,t))return i;do{const r=n+i>>>1;o(e[r],t)<=0?n=r+1:i=r}while(n<i)}return n}}}function i(){return 0}function o(e){return null===e?NaN:+e}const s=r(t),a=s.right,l=s.left,c=r(o).center;var u=a;const d=p(g),h=p(function(e){const t=g(e);return(e,n,r,i,o)=>{t(e,n,0+(r<<=2),0+(i<<=2),o<<=2),t(e,n,r+1,i+1,o),t(e,n,r+2,i+2,o),t(e,n,r+3,i+3,o)}});function p(e){return function(t,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:s}=t;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((s=Math.floor(void 0!==s?s:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!s||!n&&!r)return t;const a=n&&e(n),l=r&&e(r),c=i.slice();return a&&l?(f(a,c,i,o,s),f(a,i,c,o,s),f(a,c,i,o,s),m(l,i,c,o,s),m(l,c,i,o,s),m(l,i,c,o,s)):a?(f(a,i,c,o,s),f(a,c,i,o,s),f(a,i,c,o,s)):l&&(m(l,i,c,o,s),m(l,c,i,o,s),m(l,i,c,o,s)),t}}function f(e,t,n,r,i){for(let o=0,s=r*i;o<s;)e(t,n,o,o+=r,1)}function m(e,t,n,r,i){for(let o=0,s=r*i;o<r;++o)e(t,n,o,o+s,r)}function g(e){const t=Math.floor(e);if(t===e)return function(e){const t=2*e+1;return(n,r,i,o,s)=>{if(!((o-=s)>=i))return;let a=e*r[i];const l=s*e;for(let e=i,t=i+l;e<t;e+=s)a+=r[Math.min(o,e)];for(let e=i,c=o;e<=c;e+=s)a+=r[Math.min(o,e+l)],n[e]=a/t,a-=r[Math.max(i,e-l)]}}(e);const n=e-t,r=2*e+1;return(e,i,o,s,a)=>{if(!((s-=a)>=o))return;let l=t*i[o];const c=a*t,u=c+a;for(let e=o,t=o+c;e<t;e+=a)l+=i[Math.min(s,e)];for(let t=o,d=s;t<=d;t+=a)l+=i[Math.min(s,t+c)],e[t]=(l+n*(i[Math.max(o,t-u)]+i[Math.min(s,t+u)]))/r,l-=i[Math.max(o,t-c)]}}function v(e,t){let n=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&++n;else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(i=+i)>=i&&++n}return n}function y(e){return 0|e.length}function b(e){return!(e>0)}function _(e){return"object"!=typeof e||"length"in e?e:Array.from(e)}function w(e,t){let n,r=0,i=0,o=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(n=t-i,i+=n/++r,o+=n*(t-i));else{let s=-1;for(let a of e)null!=(a=t(a,++s,e))&&(a=+a)>=a&&(n=a-i,i+=n/++r,o+=n*(a-i))}if(r>1)return o/(r-1)}function A(e,t){const n=w(e,t);return n?Math.sqrt(n):n}function x(e,t){let n,r;if(void 0===t)for(const t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class k{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=t[r],o=e+i,s=Math.abs(e)<Math.abs(i)?e-(o-i):i-(o-e);s&&(t[n++]=s),e=o}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,r,i=this._n,o=0;if(i>0){for(o=e[--i];i>0&&(t=o,n=e[--i],o=t+n,r=n-(o-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=o+n,n==t-o&&(o=t))}return o}}class S extends Map{constructor(e,t=M){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(T(this,e))}has(e){return super.has(T(this,e))}set(e,t){return super.set(D(this,e),t)}delete(e){return super.delete(C(this,e))}}class E extends Set{constructor(e,t=M){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(T(this,e))}add(e){return super.add(D(this,e))}delete(e){return super.delete(C(this,e))}}function T({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function D({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function C({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function M(e){return null!==e&&"object"==typeof e?e.valueOf():e}function I(e){return e}function O(e,...t){return F(e,I,I,t)}function L(e,...t){return F(e,Array.from,I,t)}function N(e,t){for(let n=1,r=t.length;n<r;++n)e=e.flatMap(e=>e.pop().map(([t,n])=>[...e,t,n]));return e}function P(e,t,...n){return F(e,I,t,n)}function R(e,t,...n){return F(e,Array.from,t,n)}function j(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function F(e,t,n,r){return function e(i,o){if(o>=r.length)return n(i);const s=new S,a=r[o++];let l=-1;for(const e of i){const t=a(e,++l,i),n=s.get(t);n?n.push(e):s.set(t,[e])}for(const[t,n]of s)s.set(t,e(n,o));return t(s)}(e,0)}function B(e,t){return Array.from(t,t=>e[t])}function Y(e,...t){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&2!==n.length||t.length>1){const r=Uint32Array.from(e,(e,t)=>t);return t.length>1?(t=t.map(t=>e.map(t)),r.sort((e,n)=>{for(const r of t){const t=H(r[e],r[n]);if(t)return t}})):(n=e.map(n),r.sort((e,t)=>H(n[e],n[t]))),B(e,r)}return e.sort(V(n))}function V(e=t){if(e===t)return H;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}function H(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}var U=Array.prototype.slice;function z(e){return()=>e}const q=Math.sqrt(50),W=Math.sqrt(10),$=Math.sqrt(2);function G(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=q?10:o>=W?5:o>=$?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?G(e,t,2*n):[a,l,c]}function K(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,s]=r?G(t,e,n):G(e,t,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let e=0;e<a;++e)l[e]=(o-e)/-s;else for(let e=0;e<a;++e)l[e]=(o-e)*s;else if(s<0)for(let e=0;e<a;++e)l[e]=(i+e)/-s;else for(let e=0;e<a;++e)l[e]=(i+e)*s;return l}function Z(e,t,n){return G(e=+e,t=+t,n=+n)[2]}function X(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?Z(t,e,n):Z(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Q(e,t,n){let r;for(;;){const i=Z(e,t,n);if(i===r||0===i||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function J(e){return Math.max(1,Math.ceil(Math.log(v(e))/Math.LN2)+1)}function ee(){var e=I,t=x,n=J;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,s,a=r.length,l=new Array(a);for(i=0;i<a;++i)l[i]=e(r[i],i,r);var c=t(l),d=c[0],h=c[1],p=n(l,d,h);if(!Array.isArray(p)){const e=h,n=+p;if(t===x&&([d,h]=Q(d,h,n)),(p=K(d,h,n))[0]<=d&&(s=Z(d,h,n)),p[p.length-1]>=h)if(e>=h&&t===x){const e=Z(d,h,n);isFinite(e)&&(e>0?h=(Math.floor(h/e)+1)*e:e<0&&(h=(Math.ceil(h*-e)+1)/-e))}else p.pop()}for(var f=p.length,m=0,g=f;p[m]<=d;)++m;for(;p[g-1]>h;)--g;(m||g<f)&&(p=p.slice(m,g),f=g-m);var v,y=new Array(f+1);for(i=0;i<=f;++i)(v=y[i]=[]).x0=i>0?p[i-1]:d,v.x1=i<f?p[i]:h;if(isFinite(s)){if(s>0)for(i=0;i<a;++i)null!=(o=l[i])&&d<=o&&o<=h&&y[Math.min(f,Math.floor((o-d)/s))].push(r[i]);else if(s<0)for(i=0;i<a;++i)if(null!=(o=l[i])&&d<=o&&o<=h){const e=Math.floor((d-o)*s);y[Math.min(f,e+(p[e]<=o))].push(r[i])}}else for(i=0;i<a;++i)null!=(o=l[i])&&d<=o&&o<=h&&y[u(p,o,0,f)].push(r[i]);return y}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:z(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:z([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:z(Array.isArray(e)?U.call(e):e),r):n},r}function te(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function ne(e,t){let n,r=-1,i=-1;if(void 0===t)for(const t of e)++i,null!=t&&(n<t||void 0===n&&t>=t)&&(n=t,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}function re(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function ie(e,t){let n,r=-1,i=-1;if(void 0===t)for(const t of e)++i,null!=t&&(n>t||void 0===n&&t>=t)&&(n=t,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}function oe(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=void 0===i?H:V(i);r>n;){if(r-n>600){const o=r-n+1,s=t-n+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);oe(e,t,Math.max(n,Math.floor(t-s*l/o+c)),Math.min(r,Math.floor(t+(o-s)*l/o+c)),i)}const o=e[t];let s=n,a=r;for(se(e,n,t),i(e[r],o)>0&&se(e,n,r);s<a;){for(se(e,s,a),++s,--a;i(e[s],o)<0;)++s;for(;i(e[a],o)>0;)--a}0===i(e[n],o)?se(e,n,a):(++a,se(e,a,r)),a<=t&&(n=a+1),t<=a&&(r=a-1)}return e}function se(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ae(e,n=t){let r,i=!1;if(1===n.length){let o;for(const s of e){const e=n(s);(i?t(e,o)>0:0===t(e,e))&&(r=s,o=e,i=!0)}}else for(const t of e)(i?n(t,r)>0:0===n(t,t))&&(r=t,i=!0);return r}function le(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return re(e);if(t>=1)return te(e);var r,i=(r-1)*t,o=Math.floor(i),s=te(oe(e,o).subarray(0,o+1));return s+(re(e.subarray(o+1))-s)*(i-o)}}function ce(e,t,n=o){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,s=Math.floor(i),a=+n(e[s],s,e);return a+(+n(e[s+1],s+1,e)-a)*(i-s)}}function ue(e,t,n=o){if(!isNaN(t=+t)){if(r=Float64Array.from(e,(t,r)=>o(n(e[r],r,e))),t<=0)return ie(r);if(t>=1)return ne(r);var r,i=Uint32Array.from(e,(e,t)=>t),s=r.length-1,a=Math.floor(s*t);return oe(i,a,0,s,(e,t)=>H(r[e],r[t])),(a=ae(i.subarray(0,a+1),e=>r[e]))>=0?a:-1}}function de(e){return Array.from(function*(e){for(const t of e)yield*t}(e))}function he(e,t){return[e,t]}function pe(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}function fe(e,n=t){if(1===n.length)return ie(e,n);let r,i=-1,o=-1;for(const t of e)++o,(i<0?0===n(t,t):n(t,r)<0)&&(r=t,i=o);return i}var me=ge(Math.random);function ge(e){return function(t,n=0,r=t.length){let i=r-(n=+n);for(;i;){const r=e()*i--|0,o=t[i+n];t[i+n]=t[r+n],t[r+n]=o}return t}}function ve(e){if(!(i=e.length))return[];for(var t=-1,n=re(e,ye),r=new Array(n);++t<n;)for(var i,o=-1,s=r[t]=new Array(i);++o<i;)s[o]=e[o][t];return r}function ye(e){return e.length}function be(e){return e instanceof E?e:new E(e)}function _e(e,t){const n=e[Symbol.iterator](),r=new Set;for(const e of t){const t=we(e);if(r.has(t))continue;let i,o;for(;({value:i,done:o}=n.next());){if(o)return!1;const e=we(i);if(r.add(e),Object.is(t,e))break}}return!0}function we(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Ae(e){return e}var xe=1e-6;function ke(e){return"translate("+e+",0)"}function Se(e){return"translate(0,"+e+")"}function Ee(e){return t=>+e(t)}function Te(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function De(){return!this.__axis}function Ce(e,t){var n=[],r=null,i=null,o=6,s=6,a=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",d=1===e||3===e?ke:Se;function h(h){var p=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,f=null==i?t.tickFormat?t.tickFormat.apply(t,n):Ae:i,m=Math.max(o,0)+a,g=t.range(),v=+g[0]+l,y=+g[g.length-1]+l,b=(t.bandwidth?Te:Ee)(t.copy(),l),_=h.selection?h.selection():h,w=_.selectAll(".domain").data([null]),A=_.selectAll(".tick").data(p,t).order(),x=A.exit(),k=A.enter().append("g").attr("class","tick"),S=A.select("line"),E=A.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),E=E.merge(k.append("text").attr("fill","currentColor").attr(u,c*m).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),h!==_&&(w=w.transition(h),A=A.transition(h),S=S.transition(h),E=E.transition(h),x=x.transition(h).attr("opacity",xe).attr("transform",function(e){return isFinite(e=b(e))?d(e+l):this.getAttribute("transform")}),k.attr("opacity",xe).attr("transform",function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:b(e))+l)})),x.remove(),w.attr("d",4===e||2===e?s?"M"+c*s+","+v+"H"+l+"V"+y+"H"+c*s:"M"+l+","+v+"V"+y:s?"M"+v+","+c*s+"V"+l+"H"+y+"V"+c*s:"M"+v+","+l+"H"+y),A.attr("opacity",1).attr("transform",function(e){return d(b(e)+l)}),S.attr(u+"2",c*o),E.attr(u,c*m).text(f),_.filter(De).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each(function(){this.__axis=b})}return h.scale=function(e){return arguments.length?(t=e,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),h):n.slice()},h.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),h):r&&r.slice()},h.tickFormat=function(e){return arguments.length?(i=e,h):i},h.tickSize=function(e){return arguments.length?(o=s=+e,h):o},h.tickSizeInner=function(e){return arguments.length?(o=+e,h):o},h.tickSizeOuter=function(e){return arguments.length?(s=+e,h):s},h.tickPadding=function(e){return arguments.length?(a=+e,h):a},h.offset=function(e){return arguments.length?(l=+e,h):l},h}var Me={value:()=>{}};function Ie(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Oe(r)}function Oe(e){this._=e}function Le(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function Ne(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Me,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Oe.prototype=Ie.prototype={constructor:Oe,on:function(e,t){var n,r,i=this._,o=(r=i,(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++s<a;)if(n=(e=o[s]).type)i[n]=Ne(i[n],e.name,t);else if(null==t)for(n in i)i[n]=Ne(i[n],e.name,null);return this}for(;++s<a;)if((n=(e=o[s]).type)&&(n=Le(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Oe(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var Pe="http://www.w3.org/1999/xhtml",Re={svg:"http://www.w3.org/2000/svg",xhtml:Pe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function je(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Re.hasOwnProperty(t)?{space:Re[t],local:e}:e}function Fe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Pe&&t.documentElement.namespaceURI===Pe?t.createElement(e):t.createElementNS(n,e)}}function Be(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ye(e){var t=je(e);return(t.local?Be:Fe)(t)}function Ve(){}function He(e){return null==e?Ve:function(){return this.querySelector(e)}}function Ue(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function ze(){return[]}function qe(e){return null==e?ze:function(){return this.querySelectorAll(e)}}function We(e){return function(){return this.matches(e)}}function $e(e){return function(t){return t.matches(e)}}var Ge=Array.prototype.find;function Ke(){return this.firstElementChild}var Ze=Array.prototype.filter;function Xe(){return Array.from(this.children)}function Qe(e){return new Array(e.length)}function Je(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function et(e,t,n,r,i,o){for(var s,a=0,l=t.length,c=o.length;a<c;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new Je(e,o[a]);for(;a<l;++a)(s=t[a])&&(i[a]=s)}function tt(e,t,n,r,i,o,s){var a,l,c,u=new Map,d=t.length,h=o.length,p=new Array(d);for(a=0;a<d;++a)(l=t[a])&&(p[a]=c=s.call(l,l.__data__,a,t)+"",u.has(c)?i[a]=l:u.set(c,l));for(a=0;a<h;++a)c=s.call(e,o[a],a,o)+"",(l=u.get(c))?(r[a]=l,l.__data__=o[a],u.delete(c)):n[a]=new Je(e,o[a]);for(a=0;a<d;++a)(l=t[a])&&u.get(p[a])===l&&(i[a]=l)}function nt(e){return e.__data__}function rt(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function it(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ot(e){return function(){this.removeAttribute(e)}}function st(e){return function(){this.removeAttributeNS(e.space,e.local)}}function at(e,t){return function(){this.setAttribute(e,t)}}function lt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ct(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function ut(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function dt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ht(e){return function(){this.style.removeProperty(e)}}function pt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ft(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function mt(e,t){return e.style.getPropertyValue(t)||dt(e).getComputedStyle(e,null).getPropertyValue(t)}function gt(e){return function(){delete this[e]}}function vt(e,t){return function(){this[e]=t}}function yt(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function bt(e){return e.trim().split(/^|\s+/)}function _t(e){return e.classList||new wt(e)}function wt(e){this._node=e,this._names=bt(e.getAttribute("class")||"")}function At(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function xt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function kt(e){return function(){At(this,e)}}function St(e){return function(){xt(this,e)}}function Et(e,t){return function(){(t.apply(this,arguments)?At:xt)(this,e)}}function Tt(){this.textContent=""}function Dt(e){return function(){this.textContent=e}}function Ct(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Mt(){this.innerHTML=""}function It(e){return function(){this.innerHTML=e}}function Ot(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Lt(){this.nextSibling&&this.parentNode.appendChild(this)}function Nt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Pt(){return null}function Rt(){var e=this.parentNode;e&&e.removeChild(this)}function jt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ft(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Bt(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Yt(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Vt(e,t,n){var r=dt(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Ht(e,t){return function(){return Vt(this,e,t)}}function Ut(e,t){return function(){return Vt(this,e,t.apply(this,arguments))}}Je.prototype={constructor:Je,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},wt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var zt=[null];function qt(e,t){this._groups=e,this._parents=t}function Wt(){return new qt([[document.documentElement]],zt)}function $t(e){return"string"==typeof e?new qt([[document.querySelector(e)]],[document.documentElement]):new qt([[e]],zt)}qt.prototype=Wt.prototype={constructor:qt,select:function(e){"function"!=typeof e&&(e=He(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s,a=t[i],l=a.length,c=r[i]=new Array(l),u=0;u<l;++u)(o=a[u])&&(s=e.call(o,o.__data__,u,a))&&("__data__"in o&&(s.__data__=o.__data__),c[u]=s);return new qt(r,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return Ue(e.apply(this,arguments))}}(e):qe(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var s,a=t[o],l=a.length,c=0;c<l;++c)(s=a[c])&&(r.push(e.call(s,s.__data__,c,a)),i.push(s));return new qt(r,i)},selectChild:function(e){return this.select(null==e?Ke:function(e){return function(){return Ge.call(this.children,e)}}("function"==typeof e?e:$e(e)))},selectChildren:function(e){return this.selectAll(null==e?Xe:function(e){return function(){return Ze.call(this.children,e)}}("function"==typeof e?e:$e(e)))},filter:function(e){"function"!=typeof e&&(e=We(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s=t[i],a=s.length,l=r[i]=[],c=0;c<a;++c)(o=s[c])&&e.call(o,o.__data__,c,s)&&l.push(o);return new qt(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,nt);var n=t?tt:et,r=this._parents,i=this._groups;"function"!=typeof e&&(e=function(e){return function(){return e}}(e));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],h=d.length,p=rt(e.call(u,u&&u.__data__,c,r)),f=p.length,m=a[c]=new Array(f),g=s[c]=new Array(f);n(u,d,m,g,l[c]=new Array(h),p,t);for(var v,y,b=0,_=0;b<f;++b)if(v=m[b]){for(b>=_&&(_=b+1);!(y=g[_])&&++_<f;);v._next=y||null}}return(s=new qt(s,r))._enter=a,s._exit=l,s},enter:function(){return new qt(this._enter||this._groups.map(Qe),this._parents)},exit:function(){return new qt(this._exit||this._groups.map(Qe),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c,u=n[l],d=r[l],h=u.length,p=a[l]=new Array(h),f=0;f<h;++f)(c=u[f]||d[f])&&(p[f]=c);for(;l<i;++l)a[l]=n[l];return new qt(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=it);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s,a=n[o],l=a.length,c=i[o]=new Array(l),u=0;u<l;++u)(s=a[u])&&(c[u]=s);c.sort(t)}return new qt(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],s=0,a=o.length;s<a;++s)(i=o[s])&&e.call(i,i.__data__,s,o);return this},attr:function(e,t){var n=je(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?st:ot:"function"==typeof t?n.local?ut:ct:n.local?lt:at)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?ht:"function"==typeof t?ft:pt)(e,t,null==n?"":n)):mt(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?gt:"function"==typeof t?yt:vt)(e,t)):this.node()[e]},classed:function(e,t){var n=bt(e+"");if(arguments.length<2){for(var r=_t(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?Et:t?kt:St)(n,t))},text:function(e){return arguments.length?this.each(null==e?Tt:("function"==typeof e?Ct:Dt)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Mt:("function"==typeof e?Ot:It)(e)):this.node().innerHTML},raise:function(){return this.each(Lt)},lower:function(){return this.each(Nt)},append:function(e){var t="function"==typeof e?e:Ye(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:Ye(e),r=null==t?Pt:"function"==typeof t?t:He(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Rt)},clone:function(e){return this.select(e?Ft:jt)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),s=o.length;if(!(arguments.length<2)){for(a=t?Yt:Bt,r=0;r<s;++r)this.each(a(o[r],t,n));return this}var a=this.node().__on;if(a)for(var l,c=0,u=a.length;c<u;++c)for(r=0,l=a[c];r<s;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Ut:Ht)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,s=i.length;o<s;++o)(r=i[o])&&(yield r)}};var Gt=0;function Kt(){return new Zt}function Zt(){this._="@"+(++Gt).toString(36)}function Xt(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Qt(e,t){if(e=Xt(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}Zt.prototype=Kt.prototype={constructor:Zt,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};const Jt={passive:!1},en={capture:!0,passive:!1};function tn(e){e.stopImmediatePropagation()}function nn(e){e.preventDefault(),e.stopImmediatePropagation()}function rn(e){var t=e.document.documentElement,n=$t(e).on("dragstart.drag",nn,en);"onselectstart"in t?n.on("selectstart.drag",nn,en):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function on(e,t){var n=e.document.documentElement,r=$t(e).on("dragstart.drag",null);t&&(r.on("click.drag",nn,en),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var sn=e=>()=>e;function an(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}function ln(e){return!e.ctrlKey&&!e.button}function cn(){return this.parentNode}function un(e,t){return null==t?{x:e.x,y:e.y}:t}function dn(){return navigator.maxTouchPoints||"ontouchstart"in this}function hn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fn(){}an.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var mn=.7,gn=1/mn,vn="\\s*([+-]?\\d+)\\s*",yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_n=/^#([0-9a-f]{3,8})$/,wn=new RegExp(`^rgb\\(${vn},${vn},${vn}\\)$`),An=new RegExp(`^rgb\\(${bn},${bn},${bn}\\)$`),xn=new RegExp(`^rgba\\(${vn},${vn},${vn},${yn}\\)$`),kn=new RegExp(`^rgba\\(${bn},${bn},${bn},${yn}\\)$`),Sn=new RegExp(`^hsl\\(${yn},${bn},${bn}\\)$`),En=new RegExp(`^hsla\\(${yn},${bn},${bn},${yn}\\)$`),Tn={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 Dn(){return this.rgb().formatHex()}function Cn(){return this.rgb().formatRgb()}function Mn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_n.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?In(t):3===n?new Pn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?On(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?On(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=wn.exec(e))?new Pn(t[1],t[2],t[3],1):(t=An.exec(e))?new Pn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xn.exec(e))?On(t[1],t[2],t[3],t[4]):(t=kn.exec(e))?On(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Sn.exec(e))?Vn(t[1],t[2]/100,t[3]/100,1):(t=En.exec(e))?Vn(t[1],t[2]/100,t[3]/100,t[4]):Tn.hasOwnProperty(e)?In(Tn[e]):"transparent"===e?new Pn(NaN,NaN,NaN,0):null}function In(e){return new Pn(e>>16&255,e>>8&255,255&e,1)}function On(e,t,n,r){return r<=0&&(e=t=n=NaN),new Pn(e,t,n,r)}function Ln(e){return e instanceof fn||(e=Mn(e)),e?new Pn((e=e.rgb()).r,e.g,e.b,e.opacity):new Pn}function Nn(e,t,n,r){return 1===arguments.length?Ln(e):new Pn(e,t,n,null==r?1:r)}function Pn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Rn(){return`#${Yn(this.r)}${Yn(this.g)}${Yn(this.b)}`}function jn(){const e=Fn(this.opacity);return`${1===e?"rgb(":"rgba("}${Bn(this.r)}, ${Bn(this.g)}, ${Bn(this.b)}${1===e?")":`, ${e})`}`}function Fn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Bn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yn(e){return((e=Bn(e))<16?"0":"")+e.toString(16)}function Vn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new zn(e,t,n,r)}function Hn(e){if(e instanceof zn)return new zn(e.h,e.s,e.l,e.opacity);if(e instanceof fn||(e=Mn(e)),!e)return new zn;if(e instanceof zn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n<r):n===o?(r-t)/a+2:(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new zn(s,a,l,e.opacity)}function Un(e,t,n,r){return 1===arguments.length?Hn(e):new zn(e,t,n,null==r?1:r)}function zn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qn(e){return(e=(e||0)%360)<0?e+360:e}function Wn(e){return Math.max(0,Math.min(1,e||0))}function $n(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}hn(fn,Mn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Dn,formatHex:Dn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Hn(this).formatHsl()},formatRgb:Cn,toString:Cn}),hn(Pn,Nn,pn(fn,{brighter(e){return e=null==e?gn:Math.pow(gn,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?mn:Math.pow(mn,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pn(Bn(this.r),Bn(this.g),Bn(this.b),Fn(this.opacity))},displayable(){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:Rn,formatHex:Rn,formatHex8:function(){return`#${Yn(this.r)}${Yn(this.g)}${Yn(this.b)}${Yn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:jn,toString:jn})),hn(zn,Un,pn(fn,{brighter(e){return e=null==e?gn:Math.pow(gn,e),new zn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?mn:Math.pow(mn,e),new zn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Pn($n(e>=240?e-240:e+120,i,r),$n(e,i,r),$n(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new zn(qn(this.h),Wn(this.s),Wn(this.l),Fn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Fn(this.opacity);return`${1===e?"hsl(":"hsla("}${qn(this.h)}, ${100*Wn(this.s)}%, ${100*Wn(this.l)}%${1===e?")":`, ${e})`}`}}));const Gn=Math.PI/180,Kn=180/Math.PI,Zn=.96422,Xn=.82521,Qn=4/29,Jn=6/29,er=3*Jn*Jn,tr=Jn*Jn*Jn;function nr(e){if(e instanceof ir)return new ir(e.l,e.a,e.b,e.opacity);if(e instanceof dr)return hr(e);e instanceof Pn||(e=Ln(e));var t,n,r=lr(e.r),i=lr(e.g),o=lr(e.b),s=or((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=s:(t=or((.4360747*r+.3850649*i+.1430804*o)/Zn),n=or((.0139322*r+.0971045*i+.7141733*o)/Xn)),new ir(116*s-16,500*(t-s),200*(s-n),e.opacity)}function rr(e,t,n,r){return 1===arguments.length?nr(e):new ir(e,t,n,null==r?1:r)}function ir(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function or(e){return e>tr?Math.pow(e,1/3):e/er+Qn}function sr(e){return e>Jn?e*e*e:er*(e-Qn)}function ar(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function lr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function cr(e){if(e instanceof dr)return new dr(e.h,e.c,e.l,e.opacity);if(e instanceof ir||(e=nr(e)),0===e.a&&0===e.b)return new dr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Kn;return new dr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ur(e,t,n,r){return 1===arguments.length?cr(e):new dr(e,t,n,null==r?1:r)}function dr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function hr(e){if(isNaN(e.h))return new ir(e.l,0,0,e.opacity);var t=e.h*Gn;return new ir(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}hn(ir,rr,pn(fn,{brighter(e){return new ir(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ir(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Pn(ar(3.1338561*(t=Zn*sr(t))-1.6168667*(e=1*sr(e))-.4906146*(n=Xn*sr(n))),ar(-.9787684*t+1.9161415*e+.033454*n),ar(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),hn(dr,ur,pn(fn,{brighter(e){return new dr(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new dr(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return hr(this).rgb()}}));var pr=-.14861,fr=1.78277,mr=-.29227,gr=-.90649,vr=1.97294,yr=vr*gr,br=vr*fr,_r=fr*mr-gr*pr;function wr(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ar)return new Ar(e.h,e.s,e.l,e.opacity);e instanceof Pn||(e=Ln(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(_r*r+yr*t-br*n)/(_r+yr-br),o=r-i,s=(vr*(n-i)-mr*o)/gr,a=Math.sqrt(s*s+o*o)/(vr*i*(1-i)),l=a?Math.atan2(s,o)*Kn-120:NaN;return new Ar(l<0?l+360:l,a,i,e.opacity)}(e):new Ar(e,t,n,null==r?1:r)}function Ar(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function xr(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}function kr(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return xr((n-r/t)*t,s,i,o,a)}}function Sr(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],s=e[(r+1)%t],a=e[(r+2)%t];return xr((n-r/t)*t,i,o,s,a)}}hn(Ar,wr,pn(fn,{brighter(e){return e=null==e?gn:Math.pow(gn,e),new Ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?mn:Math.pow(mn,e),new Ar(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Gn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Pn(255*(t+n*(pr*r+fr*i)),255*(t+n*(mr*r+gr*i)),255*(t+n*(vr*r)),this.opacity)}}));var Er=e=>()=>e;function Tr(e,t){return function(n){return e+n*t}}function Dr(e,t){var n=t-e;return n?Tr(e,n>180||n<-180?n-360*Math.round(n/360):n):Er(isNaN(e)?t:e)}function Cr(e,t){var n=t-e;return n?Tr(e,n):Er(isNaN(e)?t:e)}var Mr=function e(t){var n=function(e){return 1==(e=+e)?Cr:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Er(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Nn(e)).r,(t=Nn(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),s=Cr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);function Ir(e){return function(t){var n,r,i=t.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=Nn(t[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=e(o),s=e(s),a=e(a),r.opacity=1,function(e){return r.r=o(e),r.g=s(e),r.b=a(e),r+""}}}var Or=Ir(kr),Lr=Ir(Sr);function Nr(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function Pr(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Rr(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=Ur(e[n],t[n]);for(;n<r;++n)s[n]=t[n];return function(e){for(n=0;n<i;++n)s[n]=o[n](e);return s}}function jr(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Fr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Br(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Ur(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Yr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vr=new RegExp(Yr.source,"g");function Hr(e,t){var n,r,i,o=Yr.lastIndex=Vr.lastIndex=0,s=-1,a=[],l=[];for(e+="",t+="";(n=Yr.exec(e))&&(r=Vr.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Fr(n,r)})),o=Vr.lastIndex;return o<t.length&&(i=t.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)a[(n=l[r]).i]=n.x(e);return a.join("")})}function Ur(e,t){var n,r=typeof t;return null==t||"boolean"===r?Er(t):("number"===r?Fr:"string"===r?(n=Mn(t))?(t=n,Mr):Hr:t instanceof Mn?Mr:t instanceof Date?jr:Pr(t)?Nr:Array.isArray(t)?Rr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Br:Fr)(e,t)}function zr(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var qr,Wr=180/Math.PI,$r={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Gr(e,t,n,r,i,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Wr,skewX:Math.atan(l)*Wr,scaleX:s,scaleY:a}}function Kr(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,s){var a=[],l=[];return o=e(o),s=e(s),function(e,r,i,o,s,a){if(e!==i||r!==o){var l=s.push("translate(",null,t,null,n);a.push({i:l-4,x:Fr(e,i)},{i:l-2,x:Fr(r,o)})}else(i||o)&&s.push("translate("+i+t+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,l),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fr(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,s.rotate,a,l),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fr(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,s.skewX,a,l),function(e,t,n,r,o,s){if(e!==n||t!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:Fr(e,n)},{i:a-2,x:Fr(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,l),o=s=null,function(e){for(var t,n=-1,r=l.length;++n<r;)a[(t=l[n]).i]=t.x(e);return a.join("")}}}var Zr=Kr(function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?$r:Gr(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),Xr=Kr(function(e){return null==e?$r:(qr||(qr=document.createElementNS("http://www.w3.org/2000/svg","g")),qr.setAttribute("transform",e),(e=qr.transform.baseVal.consolidate())?Gr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):$r)},", ",")",")");function Qr(e){return((e=Math.exp(e))+1/e)/2}var Jr=function e(t,n,r){function i(e,i){var o,s,a=e[0],l=e[1],c=e[2],u=i[0],d=i[1],h=i[2],p=u-a,f=d-l,m=p*p+f*f;if(m<1e-12)s=Math.log(h/c)/t,o=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*s)]};else{var g=Math.sqrt(m),v=(h*h-c*c+r*m)/(2*c*n*g),y=(h*h-c*c-r*m)/(2*h*n*g),b=Math.log(Math.sqrt(v*v+1)-v),_=Math.log(Math.sqrt(y*y+1)-y);s=(_-b)/t,o=function(e){var r=e*s,i=Qr(b),o=c/(n*g)*(i*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[a+o*p,l+o*f,c*i/Qr(t*r+b)]}}return o.duration=1e3*s*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);function ei(e){return function(t,n){var r=e((t=Un(t)).h,(n=Un(n)).h),i=Cr(t.s,n.s),o=Cr(t.l,n.l),s=Cr(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=s(e),t+""}}}var ti=ei(Dr),ni=ei(Cr);function ri(e){return function(t,n){var r=e((t=ur(t)).h,(n=ur(n)).h),i=Cr(t.c,n.c),o=Cr(t.l,n.l),s=Cr(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=s(e),t+""}}}var ii=ri(Dr),oi=ri(Cr);function si(e){return function t(n){function r(t,r){var i=e((t=wr(t)).h,(r=wr(r)).h),o=Cr(t.s,r.s),s=Cr(t.l,r.l),a=Cr(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=s(Math.pow(e,n)),t.opacity=a(e),t+""}}return n=+n,r.gamma=t,r}(1)}var ai=si(Dr),li=si(Cr);function ci(e,t){void 0===t&&(t=e,e=Ur);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}var ui,di,hi=0,pi=0,fi=0,mi=0,gi=0,vi=0,yi="object"==typeof performance&&performance.now?performance:Date,bi="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function _i(){return gi||(bi(wi),gi=yi.now()+vi)}function wi(){gi=0}function Ai(){this._call=this._time=this._next=null}function xi(e,t,n){var r=new Ai;return r.restart(e,t,n),r}function ki(){_i(),++hi;for(var e,t=ui;t;)(e=gi-t._time)>=0&&t._call.call(void 0,e),t=t._next;--hi}function Si(){gi=(mi=yi.now())+vi,hi=pi=0;try{ki()}finally{hi=0,function(){for(var e,t,n=ui,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:ui=t);di=e,Ti(r)}(),gi=0}}function Ei(){var e=yi.now(),t=e-mi;t>1e3&&(vi-=t,mi=e)}function Ti(e){hi||(pi&&(pi=clearTimeout(pi)),e-gi>24?(e<1/0&&(pi=setTimeout(Si,e-yi.now()-vi)),fi&&(fi=clearInterval(fi))):(fi||(mi=yi.now(),fi=setInterval(Ei,1e3)),hi=1,bi(Si)))}function Di(e,t,n){var r=new Ai;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}Ai.prototype=xi.prototype={constructor:Ai,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?_i():+n)+(null==t?0:+t),this._next||di===this||(di?di._next=this:ui=this,di=this),this._call=e,this._time=n,Ti()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ti())}};var Ci=Ie("start","end","cancel","interrupt"),Mi=[];function Ii(e,t,n,r,i,o){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(l){var c,u,d,h;if(1!==n.state)return a();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return Di(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(Di(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(a),n.state=5,1),o=-1,s=r.length;++o<s;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=xi(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:Ci,tween:Mi,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Oi(e,t){var n=Ni(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Li(e,t){var n=Ni(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Ni(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Pi(e,t){var n,r,i,o=e.__transition,s=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete e.__transition}}function Ri(e,t){var n,r;return function(){var i=Li(this,e),o=i.tween;if(o!==n)for(var s=0,a=(r=n=o).length;s<a;++s)if(r[s].name===t){(r=r.slice()).splice(s,1);break}i.tween=r}}function ji(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Li(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function Fi(e,t,n){var r=e._id;return e.each(function(){var e=Li(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return Ni(e,r).value[t]}}function Bi(e,t){var n;return("number"==typeof t?Fr:t instanceof Mn?Mr:(n=Mn(t))?(t=n,Mr):Hr)(e,t)}function Yi(e){return function(){this.removeAttribute(e)}}function Vi(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Hi(e,t,n){var r,i,o=n+"";return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}}function Ui(e,t,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}function zi(e,t,n){var r,i,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=t(r=s,l));this.removeAttribute(e)}}function qi(e,t,n){var r,i,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=t(r=s,l));this.removeAttributeNS(e.space,e.local)}}function Wi(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function $i(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function Gi(e,t){return function(){Oi(this,e).delay=+t.apply(this,arguments)}}function Ki(e,t){return t=+t,function(){Oi(this,e).delay=t}}function Zi(e,t){return function(){Li(this,e).duration=+t.apply(this,arguments)}}function Xi(e,t){return t=+t,function(){Li(this,e).duration=t}}var Qi=Wt.prototype.constructor;function Ji(e){return function(){this.style.removeProperty(e)}}var eo=0;function to(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function no(e){return Wt().transition(e)}function ro(){return++eo}var io=Wt.prototype;function oo(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function so(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}to.prototype=no.prototype={constructor:to,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=He(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a,l,c=r[s],u=c.length,d=o[s]=new Array(u),h=0;h<u;++h)(a=c[h])&&(l=e.call(a,a.__data__,h,c))&&("__data__"in a&&(l.__data__=a.__data__),d[h]=l,Ii(d[h],t,n,h,d,Ni(a,n)));return new to(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=qe(e));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l,c=r[a],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,p=e.call(l,l.__data__,d,c),f=Ni(l,n),m=0,g=p.length;m<g;++m)(h=p[m])&&Ii(h,t,n,m,p,f);o.push(p),s.push(l)}return new to(o,s,t,n)},selectChild:io.selectChild,selectChildren:io.selectChildren,filter:function(e){"function"!=typeof e&&(e=We(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s=t[i],a=s.length,l=r[i]=[],c=0;c<a;++c)(o=s[c])&&e.call(o,o.__data__,c,s)&&l.push(o);return new to(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l,c=t[a],u=n[a],d=c.length,h=s[a]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;a<r;++a)s[a]=t[a];return new to(s,this._parents,this._name,this._id)},selection:function(){return new Qi(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=ro(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,c=0;c<l;++c)if(s=a[c]){var u=Ni(s,t);Ii(s,e,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new to(r,this._parents,e,n)},call:io.call,nodes:io.nodes,node:io.node,size:io.size,empty:io.empty,each:io.each,on:function(e,t){var n=this._id;return arguments.length<2?Ni(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?Oi:Li;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}(n,e,t))},attr:function(e,t){var n=je(e),r="transform"===n?Xr:Bi;return this.attrTween(e,"function"==typeof t?(n.local?qi:zi)(n,r,Fi(this,"attr."+e,t)):null==t?(n.local?Vi:Yi)(n):(n.local?Ui:Hi)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=je(e);return this.tween(n,(r.local?Wi:$i)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Zr:Bi;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=mt(this,e),s=(this.style.removeProperty(e),mt(this,e));return o===s?null:o===n&&s===r?i:i=t(n=o,r=s)}}(e,r)).on("end.style."+e,Ji(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var s=mt(this,e),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(e),l=a=mt(this,e)),s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a))}}(e,r,Fi(this,"style."+e,t))).each(function(e,t){var n,r,i,o,s="style."+t,a="end."+s;return function(){var l=Li(this,e),c=l.on,u=null==l.value[s]?o||(o=Ji(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(a,i=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var s=mt(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Fi(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=Ni(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?Ri:ji)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Gi:Ki)(t,e)):Ni(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Zi:Xi)(t,e)):Ni(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){Li(this,e).ease=t}}(t,e)):Ni(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;Li(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){0==--i&&o()}};n.each(function(){var n=Li(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t}),0===i&&o()})},[Symbol.iterator]:io[Symbol.iterator]};var ao=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),lo=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),co=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),uo=Math.PI,ho=uo/2;function po(e){return(1-Math.cos(uo*e))/2}function fo(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function mo(e){return((e*=2)<=1?fo(1-e):2-fo(e-1))/2}function go(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var vo=4/11,yo=6/11,bo=8/11,_o=9/11,wo=10/11,Ao=21/22,xo=7.5625;function ko(e){return(e=+e)<vo?xo*e*e:e<bo?xo*(e-=yo)*e+.75:e<wo?xo*(e-=_o)*e+.9375:xo*(e-=Ao)*e+.984375}var So=1.70158,Eo=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(So),To=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(So),Do=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(So),Co=2*Math.PI,Mo=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Co);function i(e){return t*fo(- --e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*Co)},i.period=function(n){return e(t,n)},i}(1,.3),Io=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Co);function i(e){return 1-t*fo(e=+e)*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*Co)},i.period=function(n){return e(t,n)},i}(1,.3),Oo=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Co);function i(e){return((e=2*e-1)<0?t*fo(-e)*Math.sin((r-e)/n):2-t*fo(e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*Co)},i.period=function(n){return e(t,n)},i}(1,.3),Lo={time:null,delay:0,duration:250,ease:so};function No(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}Wt.prototype.interrupt=function(e){return this.each(function(){Pi(this,e)})},Wt.prototype.transition=function(e){var t,n;e instanceof to?(t=e._id,e=e._name):(t=ro(),(n=Lo).time=_i(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,c=0;c<l;++c)(s=a[c])&&Ii(s,e,t,c,a,n||No(s,t));return new to(r,this._parents,e,t)};var Po=[null],Ro=e=>()=>e;function jo(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Fo(e){e.preventDefault(),e.stopImmediatePropagation()}var Bo={name:"drag"},Yo={name:"space"},Vo={name:"handle"},Ho={name:"center"};const{abs:Uo,max:zo,min:qo}=Math;function Wo(e){return[+e[0],+e[1]]}function $o(e){return[Wo(e[0]),Wo(e[1])]}var Go={name:"x",handles:["w","e"].map(ns),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Ko={name:"y",handles:["n","s"].map(ns),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Zo={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(ns),input:function(e){return null==e?null:$o(e)},output:function(e){return e}},Xo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Jo={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},es={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ts={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ns(e){return{type:e}}function rs(e){return!e.ctrlKey&&!e.button}function is(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function os(){return navigator.maxTouchPoints||"ontouchstart"in this}function ss(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function as(e){var t,n=is,r=rs,i=os,o=!0,s=Ie("start","brush","end"),a=6;function l(t){var n=t.property("__brush",m).selectAll(".overlay").data([ns("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Xo.overlay).merge(n).each(function(){var e=ss(this).extent;$t(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])}),t.selectAll(".selection").data([ns("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Xo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,function(e){return e.type});r.exit().remove(),r.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return Xo[e.type]}),t.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",f).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var e=$t(this),t=ss(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-a/2:t[0][0]-a/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-a/2:t[0][1]-a/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+a:a}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+a:a})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(e,t,n){var r=e.__brush.emitter;return!r||n&&r.clean?new d(e,t,n):r}function d(e,t,n){this.that=e,this.args=t,this.state=e.__brush,this.active=0,this.clean=n}function h(n){if((!t||n.touches)&&r.apply(this,arguments)){var i,s,a,l,d,h,p,f,m,g,v,y=this,b=n.target.__data__.type,_="selection"===(o&&n.metaKey?b="overlay":b)?Bo:o&&n.altKey?Ho:Vo,w=e===Ko?null:es[b],A=e===Go?null:ts[b],x=ss(y),k=x.extent,S=x.selection,E=k[0][0],T=k[0][1],D=k[1][0],C=k[1][1],M=0,I=0,O=w&&A&&o&&n.shiftKey,L=Array.from(n.touches||[n],e=>{const t=e.identifier;return(e=Qt(e,y)).point0=e.slice(),e.identifier=t,e});Pi(y);var N=u(y,arguments,!0).beforestart();if("overlay"===b){S&&(m=!0);const t=[L[0],L[1]||L[0]];x.selection=S=[[i=e===Ko?E:qo(t[0][0],t[1][0]),a=e===Go?T:qo(t[0][1],t[1][1])],[d=e===Ko?D:zo(t[0][0],t[1][0]),p=e===Go?C:zo(t[0][1],t[1][1])]],L.length>1&&B(n)}else i=S[0][0],a=S[0][1],d=S[1][0],p=S[1][1];s=i,l=a,h=d,f=p;var P=$t(y).attr("pointer-events","none"),R=P.selectAll(".overlay").attr("cursor",Xo[b]);if(n.touches)N.moved=F,N.ended=Y;else{var j=$t(n.view).on("mousemove.brush",F,!0).on("mouseup.brush",Y,!0);o&&j.on("keydown.brush",function(e){switch(e.keyCode){case 16:O=w&&A;break;case 18:_===Vo&&(w&&(d=h-M*w,i=s+M*w),A&&(p=f-I*A,a=l+I*A),_=Ho,B(e));break;case 32:_!==Vo&&_!==Ho||(w<0?d=h-M:w>0&&(i=s-M),A<0?p=f-I:A>0&&(a=l-I),_=Yo,R.attr("cursor",Xo.selection),B(e));break;default:return}Fo(e)},!0).on("keyup.brush",function(e){switch(e.keyCode){case 16:O&&(g=v=O=!1,B(e));break;case 18:_===Ho&&(w<0?d=h:w>0&&(i=s),A<0?p=f:A>0&&(a=l),_=Vo,B(e));break;case 32:_===Yo&&(e.altKey?(w&&(d=h-M*w,i=s+M*w),A&&(p=f-I*A,a=l+I*A),_=Ho):(w<0?d=h:w>0&&(i=s),A<0?p=f:A>0&&(a=l),_=Vo),R.attr("cursor",Xo[b]),B(e));break;default:return}Fo(e)},!0),rn(n.view)}c.call(y),N.start(n,_.name)}function F(e){for(const t of e.changedTouches||[e])for(const e of L)e.identifier===t.identifier&&(e.cur=Qt(t,y));if(O&&!g&&!v&&1===L.length){const e=L[0];Uo(e.cur[0]-e[0])>Uo(e.cur[1]-e[1])?v=!0:g=!0}for(const e of L)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);m=!0,Fo(e),B(e)}function B(e){const t=L[0],n=t.point0;var r;switch(M=t[0]-n[0],I=t[1]-n[1],_){case Yo:case Bo:w&&(M=zo(E-i,qo(D-d,M)),s=i+M,h=d+M),A&&(I=zo(T-a,qo(C-p,I)),l=a+I,f=p+I);break;case Vo:L[1]?(w&&(s=zo(E,qo(D,L[0][0])),h=zo(E,qo(D,L[1][0])),w=1),A&&(l=zo(T,qo(C,L[0][1])),f=zo(T,qo(C,L[1][1])),A=1)):(w<0?(M=zo(E-i,qo(D-i,M)),s=i+M,h=d):w>0&&(M=zo(E-d,qo(D-d,M)),s=i,h=d+M),A<0?(I=zo(T-a,qo(C-a,I)),l=a+I,f=p):A>0&&(I=zo(T-p,qo(C-p,I)),l=a,f=p+I));break;case Ho:w&&(s=zo(E,qo(D,i-M*w)),h=zo(E,qo(D,d+M*w))),A&&(l=zo(T,qo(C,a-I*A)),f=zo(T,qo(C,p+I*A)))}h<s&&(w*=-1,r=i,i=d,d=r,r=s,s=h,h=r,b in Qo&&R.attr("cursor",Xo[b=Qo[b]])),f<l&&(A*=-1,r=a,a=p,p=r,r=l,l=f,f=r,b in Jo&&R.attr("cursor",Xo[b=Jo[b]])),x.selection&&(S=x.selection),g&&(s=S[0][0],h=S[1][0]),v&&(l=S[0][1],f=S[1][1]),S[0][0]===s&&S[0][1]===l&&S[1][0]===h&&S[1][1]===f||(x.selection=[[s,l],[h,f]],c.call(y),N.brush(e,_.name))}function Y(e){if(function(e){e.stopImmediatePropagation()}(e),e.touches){if(e.touches.length)return;t&&clearTimeout(t),t=setTimeout(function(){t=null},500)}else on(e.view,m),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);P.attr("pointer-events","all"),R.attr("cursor",Xo.overlay),x.selection&&(S=x.selection),function(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}(S)&&(x.selection=null,c.call(y)),N.end(e,_.name)}}function p(e){u(this,arguments).moved(e)}function f(e){u(this,arguments).ended(e)}function m(){var t=this.__brush||{selection:null};return t.extent=$o(n.apply(this,arguments)),t.dim=e,t}return l.move=function(t,n,r){t.tween?t.on("start.brush",function(e){u(this,arguments).beforestart().start(e)}).on("interrupt.brush end.brush",function(e){u(this,arguments).end(e)}).tween("brush",function(){var t=this,r=t.__brush,i=u(t,arguments),o=r.selection,s=e.input("function"==typeof n?n.apply(this,arguments):n,r.extent),a=Ur(o,s);function l(e){r.selection=1===e&&null===s?null:a(e),c.call(t),i.brush()}return null!==o&&null!==s?l:l(1)}):t.each(function(){var t=this,i=arguments,o=t.__brush,s=e.input("function"==typeof n?n.apply(t,i):n,o.extent),a=u(t,i).beforestart();Pi(t),o.selection=null===s?null:s,c.call(t),a.start(r).brush(r).end(r)})},l.clear=function(e,t){l.move(e,null,t)},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(e,t){return this.starting?(this.starting=!1,this.emit("start",e,t)):this.emit("brush",e),this},brush:function(e,t){return this.emit("brush",e,t),this},end:function(e,t){return 0==--this.active&&(delete this.state.emitter,this.emit("end",e,t)),this},emit:function(t,n,r){var i=$t(this.that).datum();s.call(t,this.that,new jo(t,{sourceEvent:n,target:l,selection:e.output(this.state.selection),mode:r,dispatch:s}),i)}},l.extent=function(e){return arguments.length?(n="function"==typeof e?e:Ro($o(e)),l):n},l.filter=function(e){return arguments.length?(r="function"==typeof e?e:Ro(!!e),l):r},l.touchable=function(e){return arguments.length?(i="function"==typeof e?e:Ro(!!e),l):i},l.handleSize=function(e){return arguments.length?(a=+e,l):a},l.keyModifiers=function(e){return arguments.length?(o=!!e,l):o},l.on=function(){var e=s.on.apply(s,arguments);return e===s?l:e},l}var ls=Math.abs,cs=Math.cos,us=Math.sin,ds=Math.PI,hs=ds/2,ps=2*ds,fs=Math.max,ms=1e-12;function gs(e,t){return Array.from({length:t-e},(t,n)=>e+n)}function vs(e,t){var n=0,r=null,i=null,o=null;function s(s){var a,l=s.length,c=new Array(l),u=gs(0,l),d=new Array(l*l),h=new Array(l),p=0;s=Float64Array.from({length:l*l},t?(e,t)=>s[t%l][t/l|0]:(e,t)=>s[t/l|0][t%l]);for(let t=0;t<l;++t){let n=0;for(let r=0;r<l;++r)n+=s[t*l+r]+e*s[r*l+t];p+=c[t]=n}a=(p=fs(0,ps-n*l)/p)?n:ps/l;{let t=0;r&&u.sort((e,t)=>r(c[e],c[t]));for(const n of u){const r=t;if(e){const e=gs(1+~l,l).filter(e=>e<0?s[~e*l+n]:s[n*l+e]);i&&e.sort((e,t)=>i(e<0?-s[~e*l+n]:s[n*l+e],t<0?-s[~t*l+n]:s[n*l+t]));for(const r of e)r<0?(d[~r*l+n]||(d[~r*l+n]={source:null,target:null})).target={index:n,startAngle:t,endAngle:t+=s[~r*l+n]*p,value:s[~r*l+n]}:(d[n*l+r]||(d[n*l+r]={source:null,target:null})).source={index:n,startAngle:t,endAngle:t+=s[n*l+r]*p,value:s[n*l+r]};h[n]={index:n,startAngle:r,endAngle:t,value:c[n]}}else{const e=gs(0,l).filter(e=>s[n*l+e]||s[e*l+n]);i&&e.sort((e,t)=>i(s[n*l+e],s[n*l+t]));for(const r of e){let e;if(n<r?(e=d[n*l+r]||(d[n*l+r]={source:null,target:null}),e.source={index:n,startAngle:t,endAngle:t+=s[n*l+r]*p,value:s[n*l+r]}):(e=d[r*l+n]||(d[r*l+n]={source:null,target:null}),e.target={index:n,startAngle:t,endAngle:t+=s[n*l+r]*p,value:s[n*l+r]},n===r&&(e.source=e.target)),e.source&&e.target&&e.source.value<e.target.value){const t=e.source;e.source=e.target,e.target=t}}h[n]={index:n,startAngle:r,endAngle:t,value:c[n]}}t+=a}}return(d=Object.values(d)).groups=h,o?d.sort(o):d}return s.padAngle=function(e){return arguments.length?(n=fs(0,e),s):n},s.sortGroups=function(e){return arguments.length?(r=e,s):r},s.sortSubgroups=function(e){return arguments.length?(i=e,s):i},s.sortChords=function(e){return arguments.length?(null==e?o=null:(t=e,o=function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)})._=e,s):o&&o._;var t},s}const ys=Math.PI,bs=2*ys,_s=1e-6,ws=bs-_s;function As(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}let xs=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?As:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return As;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,o){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,a=n-e,l=r-t,c=o-e,u=s-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>_s)if(Math.abs(u*a-l*c)>_s&&i){let h=n-o,p=r-s,f=a*a+l*l,m=h*h+p*p,g=Math.sqrt(f),v=Math.sqrt(d),y=i*Math.tan((ys-Math.acos((f+d-m)/(2*g*v)))/2),b=y/v,_=y/g;Math.abs(b-1)>_s&&this._append`L${e+b*c},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*h>c*p)},${this._x1=e+_*a},${this._y1=t+_*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,o){if(e=+e,t=+t,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(r),a=n*Math.sin(r),l=e+s,c=t+a,u=1^o,d=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>_s||Math.abs(this._y1-c)>_s)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%bs+bs),d>ws?this._append`A${n},${n},0,1,${u},${e-s},${t-a}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>_s&&this._append`A${n},${n},0,${+(d>=ys)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function ks(){return new xs}ks.prototype=xs.prototype;var Ss=Array.prototype.slice;function Es(e){return function(){return e}}function Ts(e){return e.source}function Ds(e){return e.target}function Cs(e){return e.radius}function Ms(e){return e.startAngle}function Is(e){return e.endAngle}function Os(){return 0}function Ls(){return 10}function Ns(e){var t=Ts,n=Ds,r=Cs,i=Cs,o=Ms,s=Is,a=Os,l=null;function c(){var c,u=t.apply(this,arguments),d=n.apply(this,arguments),h=a.apply(this,arguments)/2,p=Ss.call(arguments),f=+r.apply(this,(p[0]=u,p)),m=o.apply(this,p)-hs,g=s.apply(this,p)-hs,v=+i.apply(this,(p[0]=d,p)),y=o.apply(this,p)-hs,b=s.apply(this,p)-hs;if(l||(l=c=ks()),h>ms&&(ls(g-m)>2*h+ms?g>m?(m+=h,g-=h):(m-=h,g+=h):m=g=(m+g)/2,ls(b-y)>2*h+ms?b>y?(y+=h,b-=h):(y-=h,b+=h):y=b=(y+b)/2),l.moveTo(f*cs(m),f*us(m)),l.arc(0,0,f,m,g),m!==y||g!==b)if(e){var _=v-+e.apply(this,arguments),w=(y+b)/2;l.quadraticCurveTo(0,0,_*cs(y),_*us(y)),l.lineTo(v*cs(w),v*us(w)),l.lineTo(_*cs(b),_*us(b))}else l.quadraticCurveTo(0,0,v*cs(y),v*us(y)),l.arc(0,0,v,y,b);if(l.quadraticCurveTo(0,0,f*cs(m),f*us(m)),l.closePath(),c)return l=null,c+""||null}return e&&(c.headRadius=function(t){return arguments.length?(e="function"==typeof t?t:Es(+t),c):e}),c.radius=function(e){return arguments.length?(r=i="function"==typeof e?e:Es(+e),c):r},c.sourceRadius=function(e){return arguments.length?(r="function"==typeof e?e:Es(+e),c):r},c.targetRadius=function(e){return arguments.length?(i="function"==typeof e?e:Es(+e),c):i},c.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:Es(+e),c):o},c.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:Es(+e),c):s},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Es(+e),c):a},c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.context=function(e){return arguments.length?(l=null==e?null:e,c):l},c}var Ps=Array.prototype.slice;function Rs(e,t){return e-t}var js=e=>()=>e;function Fs(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=Bs(e,t[r]))return n;return 0}function Bs(e,t){for(var n=t[0],r=t[1],i=-1,o=0,s=e.length,a=s-1;o<s;a=o++){var l=e[o],c=l[0],u=l[1],d=e[a],h=d[0],p=d[1];if(Ys(l,d,t))return 0;u>r!=p>r&&n<(h-c)*(r-u)/(p-u)+c&&(i=-i)}return i}function Ys(e,t,n){var r,i,o,s;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],s=t[r],i<=o&&o<=s||s<=o&&o<=i)}function Vs(){}var Hs=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Us(){var e=1,t=1,n=J,r=a;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Rs);else{const n=x(e,zs);for(t=K(...Q(n[0],n[1],t),t);t[t.length-1]>=n[1];)t.pop();for(;t[1]<n[0];)t.shift()}return t.map(t=>o(e,t))}function o(n,i){const o=null==i?NaN:+i;if(isNaN(o))throw new Error(`invalid value: ${i}`);var a=[],l=[];return function(n,r,i){var o,a,l,c,u,d,h=new Array,p=new Array;for(o=a=-1,c=qs(n[0],r),Hs[c<<1].forEach(f);++o<e-1;)l=c,c=qs(n[o+1],r),Hs[l|c<<1].forEach(f);for(Hs[c|0].forEach(f);++a<t-1;){for(o=-1,c=qs(n[a*e+e],r),u=qs(n[a*e],r),Hs[c<<1|u<<2].forEach(f);++o<e-1;)l=c,c=qs(n[a*e+e+o+1],r),d=u,u=qs(n[a*e+o+1],r),Hs[l|c<<1|u<<2|d<<3].forEach(f);Hs[c|u<<3].forEach(f)}for(o=-1,u=n[a*e]>=r,Hs[u<<2].forEach(f);++o<e-1;)d=u,u=qs(n[a*e+o+1],r),Hs[u<<2|d<<3].forEach(f);function f(e){var t,n,r=[e[0][0]+o,e[0][1]+a],l=[e[1][0]+o,e[1][1]+a],c=s(r),u=s(l);(t=p[c])?(n=h[u])?(delete p[t.end],delete h[n.start],t===n?(t.ring.push(l),i(t.ring)):h[t.start]=p[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete p[t.end],t.ring.push(l),p[t.end=u]=t):(t=h[u])?(n=p[c])?(delete h[t.start],delete p[n.end],t===n?(t.ring.push(l),i(t.ring)):h[n.start]=p[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete h[t.start],t.ring.unshift(r),h[t.start=c]=t):h[c]=p[u]={start:c,end:u,ring:[r,l]}}Hs[u<<3].forEach(f)}(n,o,function(e){r(e,n,o),function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}(e)>0?a.push([e]):l.push(e)}),l.forEach(function(e){for(var t,n=0,r=a.length;n<r;++n)if(-1!==Fs((t=a[n])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:i,coordinates:a}}function s(t){return 2*t[0]+t[1]*(e+1)*4}function a(n,r,i){n.forEach(function(n){var o=n[0],s=n[1],a=0|o,l=0|s,c=Ws(r[l*e+a]);o>0&&o<e&&a===o&&(n[0]=$s(o,Ws(r[l*e+a-1]),c,i)),s>0&&s<t&&l===s&&(n[1]=$s(s,Ws(r[(l-1)*e+a]),c,i))})}return i.contour=o,i.size=function(n){if(!arguments.length)return[e,t];var r=Math.floor(n[0]),o=Math.floor(n[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?js(Ps.call(e)):js(e),i):n},i.smooth=function(e){return arguments.length?(r=e?a:Vs,i):r===a},i}function zs(e){return isFinite(e)?e:NaN}function qs(e,t){return null!=e&&+e>=t}function Ws(e){return null==e||isNaN(e=+e)?-1/0:e}function $s(e,t,n,r){const i=r-t,o=n-t,s=isFinite(i)||isFinite(o)?i/o:Math.sign(i)/Math.sign(o);return isNaN(s)?e:e+s-.5}function Gs(e){return e[0]}function Ks(e){return e[1]}function Zs(){return 1}const Xs=134217729;function Qs(e,t,n,r,i){let o,s,a,l,c=t[0],u=r[0],d=0,h=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++h]);let p=0;if(d<e&&h<n)for(u>c==u>-c?(s=c+o,a=o-(s-c),c=t[++d]):(s=u+o,a=o-(s-u),u=r[++h]),o=s,0!==a&&(i[p++]=a);d<e&&h<n;)u>c==u>-c?(s=o+c,l=s-o,a=o-(s-l)+(c-l),c=t[++d]):(s=o+u,l=s-o,a=o-(s-l)+(u-l),u=r[++h]),o=s,0!==a&&(i[p++]=a);for(;d<e;)s=o+c,l=s-o,a=o-(s-l)+(c-l),c=t[++d],o=s,0!==a&&(i[p++]=a);for(;h<n;)s=o+u,l=s-o,a=o-(s-l)+(u-l),u=r[++h],o=s,0!==a&&(i[p++]=a);return 0===o&&0!==p||(i[p++]=o),p}function Js(e){return new Float64Array(e)}const ea=Js(4),ta=Js(8),na=Js(12),ra=Js(16),ia=Js(4);function oa(e,t,n,r,i,o){const s=(t-o)*(n-i),a=(e-i)*(r-o),l=s-a,c=Math.abs(s+a);return Math.abs(l)>=33306690738754716e-32*c?l:-function(e,t,n,r,i,o,s){let a,l,c,u,d,h,p,f,m,g,v,y,b,_,w,A,x,k;const S=e-i,E=n-i,T=t-o,D=r-o;_=S*D,h=Xs*S,p=h-(h-S),f=S-p,h=Xs*D,m=h-(h-D),g=D-m,w=f*g-(_-p*m-f*m-p*g),A=T*E,h=Xs*T,p=h-(h-T),f=T-p,h=Xs*E,m=h-(h-E),g=E-m,x=f*g-(A-p*m-f*m-p*g),v=w-x,d=w-v,ea[0]=w-(v+d)+(d-x),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-A,d=b-v,ea[1]=b-(v+d)+(d-A),k=y+v,d=k-y,ea[2]=y-(k-d)+(v-d),ea[3]=k;let C=function(e,t){let n=t[0];for(let e=1;e<4;e++)n+=t[e];return n}(0,ea),M=22204460492503146e-32*s;if(C>=M||-C>=M)return C;if(d=e-S,a=e-(S+d)+(d-i),d=n-E,c=n-(E+d)+(d-i),d=t-T,l=t-(T+d)+(d-o),d=r-D,u=r-(D+d)+(d-o),0===a&&0===l&&0===c&&0===u)return C;if(M=11093356479670487e-47*s+33306690738754706e-32*Math.abs(C),C+=S*u+D*a-(T*c+E*l),C>=M||-C>=M)return C;_=a*D,h=Xs*a,p=h-(h-a),f=a-p,h=Xs*D,m=h-(h-D),g=D-m,w=f*g-(_-p*m-f*m-p*g),A=l*E,h=Xs*l,p=h-(h-l),f=l-p,h=Xs*E,m=h-(h-E),g=E-m,x=f*g-(A-p*m-f*m-p*g),v=w-x,d=w-v,ia[0]=w-(v+d)+(d-x),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-A,d=b-v,ia[1]=b-(v+d)+(d-A),k=y+v,d=k-y,ia[2]=y-(k-d)+(v-d),ia[3]=k;const I=Qs(4,ea,4,ia,ta);_=S*u,h=Xs*S,p=h-(h-S),f=S-p,h=Xs*u,m=h-(h-u),g=u-m,w=f*g-(_-p*m-f*m-p*g),A=T*c,h=Xs*T,p=h-(h-T),f=T-p,h=Xs*c,m=h-(h-c),g=c-m,x=f*g-(A-p*m-f*m-p*g),v=w-x,d=w-v,ia[0]=w-(v+d)+(d-x),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-A,d=b-v,ia[1]=b-(v+d)+(d-A),k=y+v,d=k-y,ia[2]=y-(k-d)+(v-d),ia[3]=k;const O=Qs(I,ta,4,ia,na);_=a*u,h=Xs*a,p=h-(h-a),f=a-p,h=Xs*u,m=h-(h-u),g=u-m,w=f*g-(_-p*m-f*m-p*g),A=l*c,h=Xs*l,p=h-(h-l),f=l-p,h=Xs*c,m=h-(h-c),g=c-m,x=f*g-(A-p*m-f*m-p*g),v=w-x,d=w-v,ia[0]=w-(v+d)+(d-x),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-A,d=b-v,ia[1]=b-(v+d)+(d-A),k=y+v,d=k-y,ia[2]=y-(k-d)+(v-d),ia[3]=k;const L=Qs(O,na,4,ia,ra);return ra[L-1]}(e,t,n,r,i,o,c)}const sa=Math.pow(2,-52),aa=new Uint32Array(512);class la{static from(e,t=fa,n=ma){const r=e.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=e[o];i[2*o]=t(r),i[2*o+1]=n(r)}return new la(i)}constructor(e){const t=e.length>>1;if(t>0&&"number"!=typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let s=1/0,a=1/0,l=-1/0,c=-1/0;for(let t=0;t<o;t++){const n=e[2*t],r=e[2*t+1];n<s&&(s=n),r<a&&(a=r),n>l&&(l=n),r>c&&(c=r),this._ids[t]=t}const u=(s+l)/2,d=(a+c)/2;let h,p,f,m=1/0;for(let t=0;t<o;t++){const n=ca(u,d,e[2*t],e[2*t+1]);n<m&&(h=t,m=n)}const g=e[2*h],v=e[2*h+1];m=1/0;for(let t=0;t<o;t++){if(t===h)continue;const n=ca(g,v,e[2*t],e[2*t+1]);n<m&&n>0&&(p=t,m=n)}let y=e[2*p],b=e[2*p+1],_=1/0;for(let t=0;t<o;t++){if(t===h||t===p)continue;const n=da(g,v,y,b,e[2*t],e[2*t+1]);n<_&&(f=t,_=n)}let w=e[2*f],A=e[2*f+1];if(_===1/0){for(let t=0;t<o;t++)this._dists[t]=e[2*t]-e[0]||e[2*t+1]-e[1];ha(this._ids,this._dists,0,o-1);const t=new Uint32Array(o);let n=0;for(let e=0,r=-1/0;e<o;e++){const i=this._ids[e];this._dists[i]>r&&(t[n++]=i,r=this._dists[i])}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(oa(g,v,y,b,w,A)<0){const e=p,t=y,n=b;p=f,y=w,b=A,f=e,w=t,A=n}const x=function(e,t,n,r,i,o){const s=n-e,a=r-t,l=i-e,c=o-t,u=s*s+a*a,d=l*l+c*c,h=.5/(s*c-a*l);return{x:e+(c*u-a*d)*h,y:t+(s*d-l*u)*h}}(g,v,y,b,w,A);this._cx=x.x,this._cy=x.y;for(let t=0;t<o;t++)this._dists[t]=ca(e[2*t],e[2*t+1],x.x,x.y);ha(this._ids,this._dists,0,o-1),this._hullStart=h;let k=3;n[h]=t[f]=p,n[p]=t[h]=f,n[f]=t[p]=h,r[h]=0,r[p]=1,r[f]=2,i.fill(-1),i[this._hashKey(g,v)]=h,i[this._hashKey(y,b)]=p,i[this._hashKey(w,A)]=f,this.trianglesLen=0,this._addTriangle(h,p,f,-1,-1,-1);for(let o,s,a=0;a<this._ids.length;a++){const l=this._ids[a],c=e[2*l],u=e[2*l+1];if(a>0&&Math.abs(c-o)<=sa&&Math.abs(u-s)<=sa)continue;if(o=c,s=u,l===h||l===p||l===f)continue;let d=0;for(let e=0,t=this._hashKey(c,u);e<this._hashSize&&(d=i[(t+e)%this._hashSize],-1===d||d===n[d]);e++);d=t[d];let m,g=d;for(;m=n[g],oa(c,u,e[2*g],e[2*g+1],e[2*m],e[2*m+1])>=0;)if(g=m,g===d){g=-1;break}if(-1===g)continue;let v=this._addTriangle(g,l,n[g],-1,-1,r[g]);r[l]=this._legalize(v+2),r[g]=v,k++;let y=n[g];for(;m=n[y],oa(c,u,e[2*y],e[2*y+1],e[2*m],e[2*m+1])<0;)v=this._addTriangle(y,l,m,r[l],-1,r[y]),r[l]=this._legalize(v+2),n[y]=y,k--,y=m;if(g===d)for(;m=t[g],oa(c,u,e[2*m],e[2*m+1],e[2*g],e[2*g+1])<0;)v=this._addTriangle(m,l,g,-1,r[g],r[m]),this._legalize(v+2),r[m]=v,n[g]=g,k--,g=m;this._hullStart=t[l]=g,n[g]=t[y]=l,n[l]=y,i[this._hashKey(c,u)]=l,i[this._hashKey(e[2*g],e[2*g+1])]=g}this.hull=new Uint32Array(k);for(let e=0,t=this._hullStart;e<k;e++)this.hull[e]=t,t=n[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const s=n[e],a=e-e%3;if(o=a+(e+2)%3,-1===s){if(0===i)break;e=aa[--i];continue}const l=s-s%3,c=a+(e+1)%3,u=l+(s+2)%3,d=t[o],h=t[e],p=t[c],f=t[u];if(ua(r[2*d],r[2*d+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1],r[2*f],r[2*f+1])){t[e]=f,t[s]=d;const r=n[u];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===u){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(s,n[o]),this._link(o,u);const a=l+(s+1)%3;i<aa.length&&(aa[i++]=a)}else{if(0===i)break;e=aa[--i]}}return o}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,o){const s=this.trianglesLen;return this._triangles[s]=e,this._triangles[s+1]=t,this._triangles[s+2]=n,this._link(s,r),this._link(s+1,i),this._link(s+2,o),this.trianglesLen+=3,s}}function ca(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function ua(e,t,n,r,i,o,s,a){const l=e-s,c=t-a,u=n-s,d=r-a,h=i-s,p=o-a,f=u*u+d*d,m=h*h+p*p;return l*(d*m-f*p)-c*(u*m-f*h)+(l*l+c*c)*(u*p-d*h)<0}function da(e,t,n,r,i,o){const s=n-e,a=r-t,l=i-e,c=o-t,u=s*s+a*a,d=l*l+c*c,h=.5/(s*c-a*l),p=(c*u-a*d)*h,f=(s*d-l*u)*h;return p*p+f*f}function ha(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=r}else{let i=n+1,o=r;pa(e,n+r>>1,i),t[e[n]]>t[e[r]]&&pa(e,n,r),t[e[i]]>t[e[r]]&&pa(e,i,r),t[e[n]]>t[e[i]]&&pa(e,n,i);const s=e[i],a=t[s];for(;;){do{i++}while(t[e[i]]<a);do{o--}while(t[e[o]]>a);if(o<i)break;pa(e,i,o)}e[n+1]=e[o],e[o]=s,r-i+1>=o-n?(ha(e,t,i,r),ha(e,t,n,o-1)):(ha(e,t,n,o-1),ha(e,t,i,r))}}function pa(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function fa(e){return e[0]}function ma(e){return e[1]}const ga=1e-6;class va{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>ga||Math.abs(this._y1-i)>ga)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class ya{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class ba{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this;let i,o;const s=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let r,a,l=0,c=0,u=n.length;l<u;l+=3,c+=2){const u=2*n[l],d=2*n[l+1],h=2*n[l+2],p=e[u],f=e[u+1],m=e[d],g=e[d+1],v=e[h],y=e[h+1],b=m-p,_=g-f,w=v-p,A=y-f,x=2*(b*A-_*w);if(Math.abs(x)<1e-9){if(void 0===i){i=o=0;for(const n of t)i+=e[2*n],o+=e[2*n+1];i/=t.length,o/=t.length}const n=1e9*Math.sign((i-p)*A-(o-f)*w);r=(p+v)/2-n*A,a=(f+y)/2+n*w}else{const e=1/x,t=b*b+_*_,n=w*w+A*A;r=p+(A*t-_*n)*e,a=f+(b*n-w*t)*e}s[c]=r,s[c+1]=a}let a,l,c,u=t[t.length-1],d=4*u,h=e[2*u],p=e[2*u+1];r.fill(0);for(let n=0;n<t.length;++n)u=t[n],a=d,l=h,c=p,d=4*u,h=e[2*u],p=e[2*u+1],r[a+2]=r[d]=c-p,r[a+3]=r[d+1]=h-l}render(e){const t=null==e?e=new va:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:s}=this;if(i.length<=1)return null;for(let t=0,r=n.length;t<r;++t){const r=n[t];if(r<t)continue;const i=2*Math.floor(t/3),s=2*Math.floor(r/3),a=o[i],l=o[i+1],c=o[s],u=o[s+1];this._renderSegment(a,l,c,u,e)}let a,l=i[i.length-1];for(let t=0;t<i.length;++t){a=l,l=i[t];const n=2*Math.floor(r[l]/3),c=o[n],u=o[n+1],d=4*a,h=this._project(c,u,s[d+2],s[d+3]);h&&this._renderSegment(c,u,h[0],h[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new va:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const n=null==t?t=new va:void 0,r=this._clip(e);if(null===r||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let e=2;e<i;e+=2)r[e]===r[e-2]&&r[e+1]===r[e-1]||t.lineTo(r[e],r[e+1]);return t.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new ya;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let o;const s=this._regioncode(e,t),a=this._regioncode(n,r);0===s&&0===a?(i.moveTo(e,t),i.lineTo(n,r)):(o=this._clipSegment(e,t,n,r,s,a))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(e,t,n){return(t=+t)==t&&(n=+n)==n&&this.delaunay._step(e,t,n)===e}*neighbors(e){const t=this._clip(e);if(t)for(const n of this.delaunay.neighbors(e)){const e=this._clip(n);if(e)e:for(let r=0,i=t.length;r<i;r+=2)for(let o=0,s=e.length;o<s;o+=2)if(t[r]===e[o]&&t[r+1]===e[o+1]&&t[(r+2)%i]===e[(o+s-2)%s]&&t[(r+3)%i]===e[(o+s-1)%s]){yield n;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[e];if(-1===o)return null;const s=[];let a=o;do{const n=Math.floor(a/3);if(s.push(t[2*n],t[2*n+1]),a=a%3==2?a-2:a+1,i[a]!==e)break;a=r[a]}while(a!==o&&-1!==a);return s}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:n}=this,r=4*e;return this._simplify(n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t))}_clipFinite(e,t){const n=t.length;let r,i,o,s,a=null,l=t[n-2],c=t[n-1],u=this._regioncode(l,c),d=0;for(let h=0;h<n;h+=2)if(r=l,i=c,l=t[h],c=t[h+1],o=u,u=this._regioncode(l,c),0===o&&0===u)s=d,d=0,a?a.push(l,c):a=[l,c];else{let t,n,h,p,f;if(0===o){if(null===(t=this._clipSegment(r,i,l,c,o,u)))continue;[n,h,p,f]=t}else{if(null===(t=this._clipSegment(l,c,r,i,u,o)))continue;[p,f,n,h]=t,s=d,d=this._edgecode(n,h),s&&d&&this._edge(e,s,d,a,a.length),a?a.push(n,h):a=[n,h]}s=d,d=this._edgecode(p,f),s&&d&&this._edge(e,s,d,a,a.length),a?a.push(p,f):a=[p,f]}if(a)s=d,d=this._edgecode(a[0],a[1]),s&&d&&this._edge(e,s,d,a,a.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return a}_clipSegment(e,t,n,r,i,o){const s=i<o;for(s&&([e,t,n,r,i,o]=[n,r,e,t,o,i]);;){if(0===i&&0===o)return s?[n,r,e,t]:[e,t,n,r];if(i&o)return null;let a,l,c=i||o;8&c?(a=e+(n-e)*(this.ymax-t)/(r-t),l=this.ymax):4&c?(a=e+(n-e)*(this.ymin-t)/(r-t),l=this.ymin):2&c?(l=t+(r-t)*(this.xmax-e)/(n-e),a=this.xmax):(l=t+(r-t)*(this.xmin-e)/(n-e),a=this.xmin),i?(e=a,t=l,i=this._regioncode(e,t)):(n=a,r=l,o=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,o){let s,a=Array.from(t);if((s=this._project(a[0],a[1],n,r))&&a.unshift(s[0],s[1]),(s=this._project(a[a.length-2],a[a.length-1],i,o))&&a.push(s[0],s[1]),a=this._clipFinite(e,a))for(let t,n=0,r=a.length,i=this._edgecode(a[r-2],a[r-1]);n<r;n+=2)t=i,i=this._edgecode(a[n],a[n+1]),t&&i&&(n=this._edge(e,t,i,a,n),r=a.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(e,t,n,r,i){for(;t!==n;){let n,o;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,o=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,o=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,o=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(e,n,o)||(r.splice(i,0,n,o),i+=2)}return i}_project(e,t,n,r){let i,o,s,a=1/0;if(r<0){if(t<=this.ymin)return null;(i=(this.ymin-t)/r)<a&&(s=this.ymin,o=e+(a=i)*n)}else if(r>0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)<a&&(s=this.ymax,o=e+(a=i)*n)}if(n>0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)<a&&(o=this.xmax,s=t+(a=i)*r)}else if(n<0){if(e<=this.xmin)return null;(i=(this.xmin-e)/n)<a&&(o=this.xmin,s=t+(a=i)*r)}return[o,s]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t<e.length;t+=2){const n=(t+2)%e.length,r=(t+4)%e.length;(e[t]===e[n]&&e[n]===e[r]||e[t+1]===e[n+1]&&e[n+1]===e[r+1])&&(e.splice(n,2),t-=2)}e.length||(e=null)}return e}}const _a=2*Math.PI,wa=Math.pow;function Aa(e){return e[0]}function xa(e){return e[1]}function ka(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Sa{static from(e,t=Aa,n=xa,r){return new Sa("length"in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let s=0;s<i;++s){const i=e[s];o[2*s]=t.call(r,i,s,e),o[2*s+1]=n.call(r,i,s,e)}return o}(e,t,n,r):Float64Array.from(function*(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}(e,t,n,r)))}constructor(e){this._delaunator=new la(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:n}=e;for(let e=0;e<t.length;e+=3){const r=2*t[e],i=2*t[e+1],o=2*t[e+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},(e,t)=>t).sort((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]);const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let e=0,n=t.length/2;e<n;++e){const n=ka(t[2*e],t[2*e+1],i);t[2*e]=n[0],t[2*e+1]=n[1]}this._delaunator=new la(t)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let e=0,t=n.length;e<t;++e){const t=i[e%3==2?e-2:e+1];-1!==n[e]&&-1!==o[t]||(o[t]=e)}for(let e=0,t=r.length;e<t;++e)s[r[e]]=e;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(e){return new ba(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:s}=this;if(s){const t=s.indexOf(e);return t>0&&(yield s[t-1]),void(t<s.length-1&&(yield s[t+1]))}const a=t[e];if(-1===a)return;let l=a,c=-1;do{if(yield c=o[l],l=l%3==2?l-2:l+1,o[l]!==e)return;if(l=i[l],-1===l){const t=n[(r[e]+1)%n.length];return void(t!==c&&(yield t))}}while(l!==a)}find(e,t,n=0){if((e=+e)!=e||(t=+t)!=t)return-1;const r=n;let i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:s,triangles:a,points:l}=this;if(-1===r[e]||!l.length)return(e+1)%(l.length>>1);let c=e,u=wa(t-l[2*e],2)+wa(n-l[2*e+1],2);const d=r[e];let h=d;do{let r=a[h];const d=wa(t-l[2*r],2)+wa(n-l[2*r+1],2);if(d<u&&(u=d,c=r),h=h%3==2?h-2:h+1,a[h]!==e)break;if(h=s[h],-1===h){if(h=i[(o[e]+1)%i.length],h!==r&&wa(t-l[2*h],2)+wa(n-l[2*h+1],2)<u)return h;break}}while(h!==d);return c}render(e){const t=null==e?e=new va:void 0,{points:n,halfedges:r,triangles:i}=this;for(let t=0,o=r.length;t<o;++t){const o=r[t];if(o<t)continue;const s=2*i[t],a=2*i[o];e.moveTo(n[s],n[s+1]),e.lineTo(n[a],n[a+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t){void 0!==t||e&&"function"==typeof e.moveTo||(t=e,e=null),t=null==t?2:+t;const n=null==e?e=new va:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],o=r[n+1];e.moveTo(i+t,o),e.arc(i,o,t,0,_a)}return n&&n.value()}renderHull(e){const t=null==e?e=new va:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;e.moveTo(r[i],r[i+1]);for(let t=1;t<o;++t){const i=2*n[t];e.lineTo(r[i],r[i+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new ya;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new va:void 0,{points:r,triangles:i}=this,o=2*i[e*=3],s=2*i[e+1],a=2*i[e+2];return t.moveTo(r[o],r[o+1]),t.lineTo(r[s],r[s+1]),t.lineTo(r[a],r[a+1]),t.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new ya;return this.renderTriangle(e,t),t.value()}}var Ea={},Ta={};function Da(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'}).join(",")+"}")}function Ca(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}function Ma(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function Ia(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],o=e.length,s=0,a=0,l=o<=0,c=!1;function u(){if(l)return Ta;if(c)return c=!1,Ea;var t,r,i=s;if(34===e.charCodeAt(i)){for(;s++<o&&34!==e.charCodeAt(s)||34===e.charCodeAt(++s););return(t=s)>=o?l=!0:10===(r=e.charCodeAt(s++))?c=!0:13===r&&(c=!0,10===e.charCodeAt(s)&&++s),e.slice(i+1,t-1).replace(/""/g,'"')}for(;s<o;){if(10===(r=e.charCodeAt(t=s++)))c=!0;else if(13===r)c=!0,10===e.charCodeAt(s)&&++s;else if(r!==n)continue;return e.slice(i,t)}return l=!0,e.slice(i,o)}for(10===e.charCodeAt(o-1)&&--o,13===e.charCodeAt(o-1)&&--o;(r=u())!==Ta;){for(var d=[];r!==Ea&&r!==Ta;)d.push(r),r=u();t&&null==(d=t(d,a++))||i.push(d)}return i}function i(t,n){return t.map(function(t){return n.map(function(e){return s(t[e])}).join(e)})}function o(t){return t.map(s).join(e)}function s(e){return null==e?"":e instanceof Date?function(e){var t,n=e.getUTCHours(),r=e.getUTCMinutes(),i=e.getUTCSeconds(),o=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":((t=e.getUTCFullYear())<0?"-"+Ma(-t,6):t>9999?"+"+Ma(t,6):Ma(t,4))+"-"+Ma(e.getUTCMonth()+1,2)+"-"+Ma(e.getUTCDate(),2)+(o?"T"+Ma(n,2)+":"+Ma(r,2)+":"+Ma(i,2)+"."+Ma(o,3)+"Z":i?"T"+Ma(n,2)+":"+Ma(r,2)+":"+Ma(i,2)+"Z":r||n?"T"+Ma(n,2)+":"+Ma(r,2)+"Z":"")}(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,i,o=r(e,function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=Da(e);return function(r,i){return t(n(r),i,e)}}(e,t):Da(e)});return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=Ca(t)),[n.map(s).join(e)].concat(i(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=Ca(e)),i(e,t).join("\n")},formatRows:function(e){return e.map(o).join("\n")},formatRow:o,formatValue:s}}var Oa=Ia(","),La=Oa.parse,Na=Oa.parseRows,Pa=Oa.format,Ra=Oa.formatBody,ja=Oa.formatRows,Fa=Oa.formatRow,Ba=Oa.formatValue,Ya=Ia("\t"),Va=Ya.parse,Ha=Ya.parseRows,Ua=Ya.format,za=Ya.formatBody,qa=Ya.formatRows,Wa=Ya.formatRow,$a=Ya.formatValue;const Ga=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Ka(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function Za(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function Xa(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function Qa(e,t){return fetch(e,t).then(Xa)}function Ja(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),Qa(t,n).then(function(t){return e(t,r)})}}var el=Ja(La),tl=Ja(Va);function nl(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(204!==e.status&&205!==e.status)return e.json()}function rl(e){return(t,n)=>Qa(t,n).then(t=>(new DOMParser).parseFromString(t,e))}var il=rl("application/xml"),ol=rl("text/html"),sl=rl("image/svg+xml");function al(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,s,a,l,c,u,d,h,p=e._root,f={data:r},m=e._x0,g=e._y0,v=e._x1,y=e._y1;if(!p)return e._root=f,e;for(;p.length;)if((c=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(s=(g+y)/2))?g=s:y=s,i=p,!(p=p[d=u<<1|c]))return i[d]=f,e;if(a=+e._x.call(null,p.data),l=+e._y.call(null,p.data),t===a&&n===l)return f.next=p,i?i[d]=f:e._root=f,e;do{i=i?i[d]=new Array(4):e._root=new Array(4),(c=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(s=(g+y)/2))?g=s:y=s}while((d=u<<1|c)==(h=(l>=s)<<1|a>=o));return i[h]=p,i[d]=f,e}function ll(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function cl(e){return e[0]}function ul(e){return e[1]}function dl(e,t,n){var r=new hl(null==t?cl:t,null==n?ul:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function hl(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function pl(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var fl=dl.prototype=hl.prototype;function ml(e){return function(){return e}}function gl(e){return 1e-6*(e()-.5)}function vl(e){return e.x+e.vx}function yl(e){return e.y+e.vy}function bl(e){return e.index}function _l(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}fl.copy=function(){var e,t,n=new hl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=pl(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=pl(t));return n},fl.add=function(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return al(this.cover(t,n),t,n,e)},fl.addAll=function(e){var t,n,r,i,o=e.length,s=new Array(o),a=new Array(o),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(s[n]=r,a[n]=i,r<l&&(l=r),r>u&&(u=r),i<c&&(c=i),i>d&&(d=i));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),n=0;n<o;++n)al(this,s[n],a[n],e[n]);return this},fl.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var s,a,l=i-n||1,c=this._root;n>e||e>=i||r>t||t>=o;)switch(a=(t<r)<<1|e<n,(s=new Array(4))[a]=c,c=s,l*=2,a){case 0:i=n+l,o=r+l;break;case 1:n=i-l,o=r+l;break;case 2:i=n+l,r=o-l;break;case 3:n=i-l,r=o-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},fl.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},fl.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},fl.find=function(e,t,n){var r,i,o,s,a,l,c,u=this._x0,d=this._y0,h=this._x1,p=this._y1,f=[],m=this._root;for(m&&f.push(new ll(m,u,d,h,p)),null==n?n=1/0:(u=e-n,d=t-n,h=e+n,p=t+n,n*=n);l=f.pop();)if(!(!(m=l.node)||(i=l.x0)>h||(o=l.y0)>p||(s=l.x1)<u||(a=l.y1)<d))if(m.length){var g=(i+s)/2,v=(o+a)/2;f.push(new ll(m[3],g,v,s,a),new ll(m[2],i,v,g,a),new ll(m[1],g,o,s,v),new ll(m[0],i,o,g,v)),(c=(t>=v)<<1|e>=g)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-c],f[f.length-1-c]=l)}else{var y=e-+this._x.call(null,m.data),b=t-+this._y.call(null,m.data),_=y*y+b*b;if(_<n){var w=Math.sqrt(n=_);u=e-w,d=t-w,h=e+w,p=t+w,r=m.data}}return r},fl.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(s=+this._y.call(null,e)))return this;var t,n,r,i,o,s,a,l,c,u,d,h,p=this._root,f=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=o>=(a=(f+g)/2))?f=a:g=a,(u=s>=(l=(m+v)/2))?m=l:v=l,t=p,!(p=p[d=u<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=i,this)},fl.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},fl.root=function(){return this._root},fl.size=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},fl.visit=function(e){var t,n,r,i,o,s,a=[],l=this._root;for(l&&a.push(new ll(l,this._x0,this._y0,this._x1,this._y1));t=a.pop();)if(!e(l=t.node,r=t.x0,i=t.y0,o=t.x1,s=t.y1)&&l.length){var c=(r+o)/2,u=(i+s)/2;(n=l[3])&&a.push(new ll(n,c,u,o,s)),(n=l[2])&&a.push(new ll(n,r,u,c,s)),(n=l[1])&&a.push(new ll(n,c,i,o,u)),(n=l[0])&&a.push(new ll(n,r,i,c,u))}return this},fl.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new ll(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var o,s=t.x0,a=t.y0,l=t.x1,c=t.y1,u=(s+l)/2,d=(a+c)/2;(o=i[0])&&n.push(new ll(o,s,a,u,d)),(o=i[1])&&n.push(new ll(o,u,a,l,d)),(o=i[2])&&n.push(new ll(o,s,d,u,c)),(o=i[3])&&n.push(new ll(o,u,d,l,c))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},fl.x=function(e){return arguments.length?(this._x=e,this):this._x},fl.y=function(e){return arguments.length?(this._y=e,this):this._y};const wl=4294967296;function Al(e){return e.x}function xl(e){return e.y}var kl=Math.PI*(3-Math.sqrt(5));function Sl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function El(e){return(e=Sl(Math.abs(e)))?e[1]:NaN}var Tl,Dl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cl(e){if(!(t=Dl.exec(e)))throw new Error("invalid format: "+e);var t;return new Ml({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Ml(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Il(e,t){var n=Sl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Cl.prototype=Ml.prototype,Ml.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};var Ol={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Il(100*e,t),r:Il,s:function(e,t){var n=Sl(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Tl=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Sl(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ll(e){return e}var Nl,Pl=Array.prototype.map,Rl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function jl(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Ll:(t=Pl.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(e.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?Ll:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Pl.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"\u2212":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Cl(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,y=e.type;"n"===y?(m=!0,y="g"):Ol[y]||(void 0===g&&(g=12),v=!0,y="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",_="$"===h?o:/[%p]/.test(y)?l:"",w=Ol[y],A=/[defgprs%]/.test(y);function x(e){var i,o,l,h=b,x=_;if("c"===y)x=w(e)+x,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==d&&(k=!1),h=(k?"("===d?d:c:"-"===d||"("===d?"":d)+h,x=("s"===y?Rl[8+Tl/3]:"")+x+(k&&"("===d?")":""),A)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){x=(46===l?s+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}m&&!p&&(e=r(e,1/0));var S=h.length+e.length+x.length,E=S<f?new Array(f-S+1).join(t):"";switch(m&&p&&(e=r(E+e,E.length?f-x.length:1/0),E=""),n){case"<":e=h+e+x+E;break;case"=":e=h+E+e+x;break;case"^":e=E.slice(0,S=E.length>>1)+h+e+x+E.slice(S);break;default:e=E+h+e+x}return a(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),x.toString=function(){return e+""},x}return{format:d,formatPrefix:function(e,t){var n=d(((e=Cl(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(El(t)/3))),i=Math.pow(10,-r),o=Rl[8+r/3];return function(e){return n(i*e)+o}}}}function Fl(t){return Nl=jl(t),e.format=Nl.format,e.formatPrefix=Nl.formatPrefix,Nl}function Bl(e){return Math.max(0,-El(Math.abs(e)))}function Yl(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(El(t)/3)))-El(Math.abs(e)))}function Vl(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,El(t)-El(e))+1}e.format=void 0,e.formatPrefix=void 0,Fl({thousands:",",grouping:[3],currency:["$",""]});var Hl=1e-6,Ul=1e-12,zl=Math.PI,ql=zl/2,Wl=zl/4,$l=2*zl,Gl=180/zl,Kl=zl/180,Zl=Math.abs,Xl=Math.atan,Ql=Math.atan2,Jl=Math.cos,ec=Math.ceil,tc=Math.exp,nc=Math.hypot,rc=Math.log,ic=Math.pow,oc=Math.sin,sc=Math.sign||function(e){return e>0?1:e<0?-1:0},ac=Math.sqrt,lc=Math.tan;function cc(e){return e>1?0:e<-1?zl:Math.acos(e)}function uc(e){return e>1?ql:e<-1?-ql:Math.asin(e)}function dc(e){return(e=oc(e/2))*e}function hc(){}function pc(e,t){e&&mc.hasOwnProperty(e.type)&&mc[e.type](e,t)}var fc={Feature:function(e,t){pc(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)pc(n[r].geometry,t)}},mc={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){gc(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)gc(n[r],t,0)},Polygon:function(e,t){vc(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)vc(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)pc(n[r],t)}};function gc(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function vc(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)gc(e[n],t,1);t.polygonEnd()}function yc(e,t){e&&fc.hasOwnProperty(e.type)?fc[e.type](e,t):pc(e,t)}var bc,_c,wc,Ac,xc,kc,Sc,Ec,Tc,Dc,Cc,Mc,Ic,Oc,Lc,Nc,Pc=new k,Rc=new k,jc={point:hc,lineStart:hc,lineEnd:hc,polygonStart:function(){Pc=new k,jc.lineStart=Fc,jc.lineEnd=Bc},polygonEnd:function(){var e=+Pc;Rc.add(e<0?$l+e:e),this.lineStart=this.lineEnd=this.point=hc},sphere:function(){Rc.add($l)}};function Fc(){jc.point=Yc}function Bc(){Vc(bc,_c)}function Yc(e,t){jc.point=Vc,bc=e,_c=t,wc=e*=Kl,Ac=Jl(t=(t*=Kl)/2+Wl),xc=oc(t)}function Vc(e,t){var n=(e*=Kl)-wc,r=n>=0?1:-1,i=r*n,o=Jl(t=(t*=Kl)/2+Wl),s=oc(t),a=xc*s,l=Ac*o+a*Jl(i),c=a*r*oc(i);Pc.add(Ql(c,l)),wc=e,Ac=o,xc=s}function Hc(e){return[Ql(e[1],e[0]),uc(e[2])]}function Uc(e){var t=e[0],n=e[1],r=Jl(n);return[r*Jl(t),r*oc(t),oc(n)]}function zc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function qc(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Wc(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function $c(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Gc(e){var t=ac(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Kc,Zc,Xc,Qc,Jc,eu,tu,nu,ru,iu,ou,su,au,lu,cu,uu,du={point:hu,lineStart:fu,lineEnd:mu,polygonStart:function(){du.point=gu,du.lineStart=vu,du.lineEnd=yu,Oc=new k,jc.polygonStart()},polygonEnd:function(){jc.polygonEnd(),du.point=hu,du.lineStart=fu,du.lineEnd=mu,Pc<0?(kc=-(Ec=180),Sc=-(Tc=90)):Oc>Hl?Tc=90:Oc<-Hl&&(Sc=-90),Nc[0]=kc,Nc[1]=Ec},sphere:function(){kc=-(Ec=180),Sc=-(Tc=90)}};function hu(e,t){Lc.push(Nc=[kc=e,Ec=e]),t<Sc&&(Sc=t),t>Tc&&(Tc=t)}function pu(e,t){var n=Uc([e*Kl,t*Kl]);if(Ic){var r=qc(Ic,n),i=qc([r[1],-r[0],0],r);Gc(i),i=Hc(i);var o,s=e-Dc,a=s>0?1:-1,l=i[0]*Gl*a,c=Zl(s)>180;c^(a*Dc<l&&l<a*e)?(o=i[1]*Gl)>Tc&&(Tc=o):c^(a*Dc<(l=(l+360)%360-180)&&l<a*e)?(o=-i[1]*Gl)<Sc&&(Sc=o):(t<Sc&&(Sc=t),t>Tc&&(Tc=t)),c?e<Dc?bu(kc,e)>bu(kc,Ec)&&(Ec=e):bu(e,Ec)>bu(kc,Ec)&&(kc=e):Ec>=kc?(e<kc&&(kc=e),e>Ec&&(Ec=e)):e>Dc?bu(kc,e)>bu(kc,Ec)&&(Ec=e):bu(e,Ec)>bu(kc,Ec)&&(kc=e)}else Lc.push(Nc=[kc=e,Ec=e]);t<Sc&&(Sc=t),t>Tc&&(Tc=t),Ic=n,Dc=e}function fu(){du.point=pu}function mu(){Nc[0]=kc,Nc[1]=Ec,du.point=hu,Ic=null}function gu(e,t){if(Ic){var n=e-Dc;Oc.add(Zl(n)>180?n+(n>0?360:-360):n)}else Cc=e,Mc=t;jc.point(e,t),pu(e,t)}function vu(){jc.lineStart()}function yu(){gu(Cc,Mc),jc.lineEnd(),Zl(Oc)>Hl&&(kc=-(Ec=180)),Nc[0]=kc,Nc[1]=Ec,Ic=null}function bu(e,t){return(t-=e)<0?t+360:t}function _u(e,t){return e[0]-t[0]}function wu(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var Au={sphere:hc,point:xu,lineStart:Su,lineEnd:Du,polygonStart:function(){Au.lineStart=Cu,Au.lineEnd=Mu},polygonEnd:function(){Au.lineStart=Su,Au.lineEnd=Du}};function xu(e,t){e*=Kl;var n=Jl(t*=Kl);ku(n*Jl(e),n*oc(e),oc(t))}function ku(e,t,n){++Kc,Xc+=(e-Xc)/Kc,Qc+=(t-Qc)/Kc,Jc+=(n-Jc)/Kc}function Su(){Au.point=Eu}function Eu(e,t){e*=Kl;var n=Jl(t*=Kl);lu=n*Jl(e),cu=n*oc(e),uu=oc(t),Au.point=Tu,ku(lu,cu,uu)}function Tu(e,t){e*=Kl;var n=Jl(t*=Kl),r=n*Jl(e),i=n*oc(e),o=oc(t),s=Ql(ac((s=cu*o-uu*i)*s+(s=uu*r-lu*o)*s+(s=lu*i-cu*r)*s),lu*r+cu*i+uu*o);Zc+=s,eu+=s*(lu+(lu=r)),tu+=s*(cu+(cu=i)),nu+=s*(uu+(uu=o)),ku(lu,cu,uu)}function Du(){Au.point=xu}function Cu(){Au.point=Iu}function Mu(){Ou(su,au),Au.point=xu}function Iu(e,t){su=e,au=t,e*=Kl,t*=Kl,Au.point=Ou;var n=Jl(t);lu=n*Jl(e),cu=n*oc(e),uu=oc(t),ku(lu,cu,uu)}function Ou(e,t){e*=Kl;var n=Jl(t*=Kl),r=n*Jl(e),i=n*oc(e),o=oc(t),s=cu*o-uu*i,a=uu*r-lu*o,l=lu*i-cu*r,c=nc(s,a,l),u=uc(c),d=c&&-u/c;ru.add(d*s),iu.add(d*a),ou.add(d*l),Zc+=u,eu+=u*(lu+(lu=r)),tu+=u*(cu+(cu=i)),nu+=u*(uu+(uu=o)),ku(lu,cu,uu)}function Lu(e){return function(){return e}}function Nu(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function Pu(e,t){return Zl(e)>zl&&(e-=Math.round(e/$l)*$l),[e,t]}function Ru(e,t,n){return(e%=$l)?t||n?Nu(Fu(e),Bu(t,n)):Fu(e):t||n?Bu(t,n):Pu}function ju(e){return function(t,n){return Zl(t+=e)>zl&&(t-=Math.round(t/$l)*$l),[t,n]}}function Fu(e){var t=ju(e);return t.invert=ju(-e),t}function Bu(e,t){var n=Jl(e),r=oc(e),i=Jl(t),o=oc(t);function s(e,t){var s=Jl(t),a=Jl(e)*s,l=oc(e)*s,c=oc(t),u=c*n+a*r;return[Ql(l*i-u*o,a*n-c*r),uc(u*i+l*o)]}return s.invert=function(e,t){var s=Jl(t),a=Jl(e)*s,l=oc(e)*s,c=oc(t),u=c*i-l*o;return[Ql(l*i+c*o,a*n+u*r),uc(u*n-a*r)]},s}function Yu(e){function t(t){return(t=e(t[0]*Kl,t[1]*Kl))[0]*=Gl,t[1]*=Gl,t}return e=Ru(e[0]*Kl,e[1]*Kl,e.length>2?e[2]*Kl:0),t.invert=function(t){return(t=e.invert(t[0]*Kl,t[1]*Kl))[0]*=Gl,t[1]*=Gl,t},t}function Vu(e,t,n,r,i,o){if(n){var s=Jl(t),a=oc(t),l=r*n;null==i?(i=t+r*$l,o=t-l/2):(i=Hu(s,i),o=Hu(s,o),(r>0?i<o:i>o)&&(i+=r*$l));for(var c,u=i;r>0?u>o:u<o;u-=l)c=Hc([s,-a*Jl(u),-a*oc(u)]),e.point(c[0],c[1])}}function Hu(e,t){(t=Uc(t))[0]-=e,Gc(t);var n=cc(-t[1]);return((-t[2]<0?-n:n)+$l-Hl)%$l}function Uu(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:hc,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function zu(e,t){return Zl(e[0]-t[0])<Hl&&Zl(e[1]-t[1])<Hl}function qu(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Wu(e,t,n,r,i){var o,s,a=[],l=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],s=e[t];if(zu(r,s)){if(!r[2]&&!s[2]){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);return void i.lineEnd()}s[0]+=2*Hl}a.push(n=new qu(r,e,null,!0)),l.push(n.o=new qu(r,null,n,!1)),a.push(n=new qu(s,e,null,!1)),l.push(n.o=new qu(s,null,n,!0))}}),a.length){for(l.sort(t),$u(a),$u(l),o=0,s=l.length;o<s;++o)l[o].e=n=!n;for(var c,u,d=a[0];;){for(var h=d,p=!0;h.v;)if((h=h.n)===d)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,s=c.length;o<s;++o)i.point((u=c[o])[0],u[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(c=h.p.z,o=c.length-1;o>=0;--o)i.point((u=c[o])[0],u[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function $u(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function Gu(e){return Zl(e[0])<=zl?e[0]:sc(e[0])*((Zl(e[0])+zl)%$l-zl)}function Ku(e,t){var n=Gu(t),r=t[1],i=oc(r),o=[oc(n),-Jl(n),0],s=0,a=0,l=new k;1===i?r=ql+Hl:-1===i&&(r=-ql-Hl);for(var c=0,u=e.length;c<u;++c)if(h=(d=e[c]).length)for(var d,h,p=d[h-1],f=Gu(p),m=p[1]/2+Wl,g=oc(m),v=Jl(m),y=0;y<h;++y,f=_,g=A,v=x,p=b){var b=d[y],_=Gu(b),w=b[1]/2+Wl,A=oc(w),x=Jl(w),S=_-f,E=S>=0?1:-1,T=E*S,D=T>zl,C=g*A;if(l.add(Ql(C*E*oc(T),v*x+C*Jl(T))),s+=D?S+E*$l:S,D^f>=n^_>=n){var M=qc(Uc(p),Uc(b));Gc(M);var I=qc(o,M);Gc(I);var O=(D^S>=0?-1:1)*uc(I[2]);(r>O||r===O&&(M[0]||M[1]))&&(a+=D^S>=0?1:-1)}}return(s<-Hl||s<Hl&&l<-Ul)^1&a}function Zu(e,t,n,r){return function(i){var o,s,a,l=t(i),c=Uu(),u=t(c),d=!1,h={point:p,lineStart:m,lineEnd:g,polygonStart:function(){h.point=v,h.lineStart=y,h.lineEnd=b,s=[],o=[]},polygonEnd:function(){h.point=p,h.lineStart=m,h.lineEnd=g,s=de(s);var e=Ku(o,r);s.length?(d||(i.polygonStart(),d=!0),Wu(s,Qu,e,n,i)):e&&(d||(i.polygonStart(),d=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),d&&(i.polygonEnd(),d=!1),s=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(t,n){e(t,n)&&i.point(t,n)}function f(e,t){l.point(e,t)}function m(){h.point=f,l.lineStart()}function g(){h.point=p,l.lineEnd()}function v(e,t){a.push([e,t]),u.point(e,t)}function y(){u.lineStart(),a=[]}function b(){v(a[0][0],a[0][1]),u.lineEnd();var e,t,n,r,l=u.clean(),h=c.result(),p=h.length;if(a.pop(),o.push(a),a=null,p)if(1&l){if((t=(n=h[0]).length-1)>0){for(d||(i.polygonStart(),d=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}}else p>1&&2&l&&h.push(h.pop().concat(h.shift())),s.push(h.filter(Xu))}return h}}function Xu(e){return e.length>1}function Qu(e,t){return((e=e.x)[0]<0?e[1]-ql-Hl:ql-e[1])-((t=t.x)[0]<0?t[1]-ql-Hl:ql-t[1])}Pu.invert=Pu;var Ju=Zu(function(){return!0},function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,s){var a=o>0?zl:-zl,l=Zl(o-n);Zl(l-zl)<Hl?(e.point(n,r=(r+s)/2>0?ql:-ql),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),e.point(o,r),t=0):i!==a&&l>=zl&&(Zl(n-i)<Hl&&(n-=i*Hl),Zl(o-a)<Hl&&(o-=a*Hl),r=function(e,t,n,r){var i,o,s=oc(e-n);return Zl(s)>Hl?Xl((oc(t)*(o=Jl(r))*oc(n)-oc(r)*(i=Jl(t))*oc(e))/(i*o*s)):(t+r)/2}(n,r,o,s),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),t=0),e.point(n=o,r=s),i=a},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)i=n*ql,r.point(-zl,i),r.point(0,i),r.point(zl,i),r.point(zl,0),r.point(zl,-i),r.point(0,-i),r.point(-zl,-i),r.point(-zl,0),r.point(-zl,i);else if(Zl(e[0]-t[0])>Hl){var o=e[0]<t[0]?zl:-zl;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])},[-zl,-ql]);function ed(e){var t=Jl(e),n=6*Kl,r=t>0,i=Zl(t)>Hl;function o(e,n){return Jl(e)*Jl(n)>t}function s(e,n,r){var i=[1,0,0],o=qc(Uc(e),Uc(n)),s=zc(o,o),a=o[0],l=s-a*a;if(!l)return!r&&e;var c=t*s/l,u=-t*a/l,d=qc(i,o),h=$c(i,c);Wc(h,$c(o,u));var p=d,f=zc(h,p),m=zc(p,p),g=f*f-m*(zc(h,h)-1);if(!(g<0)){var v=ac(g),y=$c(p,(-f-v)/m);if(Wc(y,h),y=Hc(y),!r)return y;var b,_=e[0],w=n[0],A=e[1],x=n[1];w<_&&(b=_,_=w,w=b);var k=w-_,S=Zl(k-zl)<Hl;if(!S&&x<A&&(b=A,A=x,x=b),S||k<Hl?S?A+x>0^y[1]<(Zl(y[0]-_)<Hl?A:x):A<=y[1]&&y[1]<=x:k>zl^(_<=y[0]&&y[0]<=w)){var E=$c(p,(-f+v)/m);return Wc(E,h),[y,Hc(E)]}}}function a(t,n){var i=r?e:zl-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return Zu(o,function(e){var t,n,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(d,h){var p,f=[d,h],m=o(d,h),g=r?m?0:a(d,h):m?a(d+(d<0?zl:-zl),h):0;if(!t&&(c=l=m)&&e.lineStart(),m!==l&&(!(p=s(t,f))||zu(t,p)||zu(f,p))&&(f[2]=1),m!==l)u=0,m?(e.lineStart(),p=s(f,t),e.point(p[0],p[1])):(p=s(t,f),e.point(p[0],p[1],2),e.lineEnd()),t=p;else if(i&&t&&r^m){var v;g&n||!(v=s(f,t,!0))||(u=0,r?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1],3)))}!m||t&&zu(t,f)||e.point(f[0],f[1]),t=f,l=m,n=g},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}},function(t,r,i,o){Vu(o,e,n,i,t,r)},r?[0,-e]:[-zl,e-zl])}var td,nd,rd,id,od=1e9,sd=-od;function ad(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,a,c){var u=0,d=0;if(null==i||(u=s(i,a))!==(d=s(o,a))||l(i,o)<0^a>0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+a+4)%4)!==d);else c.point(o[0],o[1])}function s(r,i){return Zl(r[0]-e)<Hl?i>0?0:3:Zl(r[0]-n)<Hl?i>0?2:1:Zl(r[1]-t)<Hl?i>0?1:0:i>0?3:2}function a(e,t){return l(e.x,t.x)}function l(e,t){var n=s(e,1),r=s(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){var l,c,u,d,h,p,f,m,g,v,y,b=s,_=Uu(),w={point:A,lineStart:function(){w.point=x,c&&c.push(u=[]),v=!0,g=!1,f=m=NaN},lineEnd:function(){l&&(x(d,h),p&&g&&_.rejoin(),l.push(_.result())),w.point=A,g&&b.lineEnd()},polygonStart:function(){b=_,l=[],c=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=c.length;n<i;++n)for(var o,s,a=c[n],l=1,u=a.length,d=a[0],h=d[0],p=d[1];l<u;++l)o=h,s=p,h=(d=a[l])[0],p=d[1],s<=r?p>r&&(h-o)*(r-s)>(p-s)*(e-o)&&++t:p<=r&&(h-o)*(r-s)<(p-s)*(e-o)&&--t;return t}(),n=y&&t,i=(l=de(l)).length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&Wu(l,a,t,o,s),s.polygonEnd()),b=s,l=c=u=null}};function A(e,t){i(e,t)&&b.point(e,t)}function x(o,s){var a=i(o,s);if(c&&u.push([o,s]),v)d=o,h=s,p=a,v=!1,a&&(b.lineStart(),b.point(o,s));else if(a&&g)b.point(o,s);else{var l=[f=Math.max(sd,Math.min(od,f)),m=Math.max(sd,Math.min(od,m))],_=[o=Math.max(sd,Math.min(od,o)),s=Math.max(sd,Math.min(od,s))];!function(e,t,n,r,i,o){var s,a=e[0],l=e[1],c=0,u=1,d=t[0]-a,h=t[1]-l;if(s=n-a,d||!(s>0)){if(s/=d,d<0){if(s<c)return;s<u&&(u=s)}else if(d>0){if(s>u)return;s>c&&(c=s)}if(s=i-a,d||!(s<0)){if(s/=d,d<0){if(s>u)return;s>c&&(c=s)}else if(d>0){if(s<c)return;s<u&&(u=s)}if(s=r-l,h||!(s>0)){if(s/=h,h<0){if(s<c)return;s<u&&(u=s)}else if(h>0){if(s>u)return;s>c&&(c=s)}if(s=o-l,h||!(s<0)){if(s/=h,h<0){if(s>u)return;s>c&&(c=s)}else if(h>0){if(s<c)return;s<u&&(u=s)}return c>0&&(e[0]=a+c*d,e[1]=l+c*h),u<1&&(t[0]=a+u*d,t[1]=l+u*h),!0}}}}}(l,_,e,t,n,r)?a&&(b.lineStart(),b.point(o,s),y=!1):(g||(b.lineStart(),b.point(l[0],l[1])),b.point(_[0],_[1]),a||b.lineEnd(),y=!1)}f=o,m=s,g=a}return w}}var ld={sphere:hc,point:hc,lineStart:function(){ld.point=ud,ld.lineEnd=cd},lineEnd:hc,polygonStart:hc,polygonEnd:hc};function cd(){ld.point=ld.lineEnd=hc}function ud(e,t){nd=e*=Kl,rd=oc(t*=Kl),id=Jl(t),ld.point=dd}function dd(e,t){e*=Kl;var n=oc(t*=Kl),r=Jl(t),i=Zl(e-nd),o=Jl(i),s=r*oc(i),a=id*n-rd*r*o,l=rd*n+id*r*o;td.add(Ql(ac(s*s+a*a),l)),nd=e,rd=n,id=r}function hd(e){return td=new k,yc(e,ld),+td}var pd=[null,null],fd={type:"LineString",coordinates:pd};function md(e,t){return pd[0]=e,pd[1]=t,hd(fd)}var gd={Feature:function(e,t){return yd(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(yd(n[r].geometry,t))return!0;return!1}},vd={Sphere:function(){return!0},Point:function(e,t){return bd(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(bd(n[r],t))return!0;return!1},LineString:function(e,t){return _d(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(_d(n[r],t))return!0;return!1},Polygon:function(e,t){return wd(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(wd(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(yd(n[r],t))return!0;return!1}};function yd(e,t){return!(!e||!vd.hasOwnProperty(e.type))&&vd[e.type](e,t)}function bd(e,t){return 0===md(e,t)}function _d(e,t){for(var n,r,i,o=0,s=e.length;o<s;o++){if(0===(r=md(e[o],t)))return!0;if(o>0&&(i=md(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<Ul*i)return!0;n=r}return!1}function wd(e,t){return!!Ku(e.map(Ad),xd(t))}function Ad(e){return(e=e.map(xd)).pop(),e}function xd(e){return[e[0]*Kl,e[1]*Kl]}function kd(e,t,n){var r=pe(e,t-Hl,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function Sd(e,t,n){var r=pe(e,t-Hl,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function Ed(){var e,t,n,r,i,o,s,a,l,c,u,d,h=10,p=h,f=90,m=360,g=2.5;function v(){return{type:"MultiLineString",coordinates:y()}}function y(){return pe(ec(r/f)*f,n,f).map(u).concat(pe(ec(a/m)*m,s,m).map(d)).concat(pe(ec(t/h)*h,e,h).filter(function(e){return Zl(e%f)>Hl}).map(l)).concat(pe(ec(o/p)*p,i,p).filter(function(e){return Zl(e%m)>Hl}).map(c))}return v.lines=function(){return y().map(function(e){return{type:"LineString",coordinates:e}})},v.outline=function(){return{type:"Polygon",coordinates:[u(r).concat(d(s).slice(1),u(n).reverse().slice(1),d(a).reverse().slice(1))]}},v.extent=function(e){return arguments.length?v.extentMajor(e).extentMinor(e):v.extentMinor()},v.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],a=+e[0][1],s=+e[1][1],r>n&&(e=r,r=n,n=e),a>s&&(e=a,a=s,s=e),v.precision(g)):[[r,a],[n,s]]},v.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),v.precision(g)):[[t,o],[e,i]]},v.step=function(e){return arguments.length?v.stepMajor(e).stepMinor(e):v.stepMinor()},v.stepMajor=function(e){return arguments.length?(f=+e[0],m=+e[1],v):[f,m]},v.stepMinor=function(e){return arguments.length?(h=+e[0],p=+e[1],v):[h,p]},v.precision=function(h){return arguments.length?(g=+h,l=kd(o,i,90),c=Sd(t,e,g),u=kd(a,s,90),d=Sd(r,n,g),v):g},v.extentMajor([[-180,-90+Hl],[180,90-Hl]]).extentMinor([[-180,-80-Hl],[180,80+Hl]])}var Td,Dd,Cd,Md,Id=e=>e,Od=new k,Ld=new k,Nd={point:hc,lineStart:hc,lineEnd:hc,polygonStart:function(){Nd.lineStart=Pd,Nd.lineEnd=Fd},polygonEnd:function(){Nd.lineStart=Nd.lineEnd=Nd.point=hc,Od.add(Zl(Ld)),Ld=new k},result:function(){var e=Od/2;return Od=new k,e}};function Pd(){Nd.point=Rd}function Rd(e,t){Nd.point=jd,Td=Cd=e,Dd=Md=t}function jd(e,t){Ld.add(Md*e-Cd*t),Cd=e,Md=t}function Fd(){jd(Td,Dd)}var Bd,Yd,Vd,Hd,Ud=Nd,zd=1/0,qd=zd,Wd=-zd,$d=Wd,Gd={point:function(e,t){e<zd&&(zd=e),e>Wd&&(Wd=e),t<qd&&(qd=t),t>$d&&($d=t)},lineStart:hc,lineEnd:hc,polygonStart:hc,polygonEnd:hc,result:function(){var e=[[zd,qd],[Wd,$d]];return Wd=$d=-(qd=zd=1/0),e}},Kd=Gd,Zd=0,Xd=0,Qd=0,Jd=0,eh=0,th=0,nh=0,rh=0,ih=0,oh={point:sh,lineStart:ah,lineEnd:uh,polygonStart:function(){oh.lineStart=dh,oh.lineEnd=hh},polygonEnd:function(){oh.point=sh,oh.lineStart=ah,oh.lineEnd=uh},result:function(){var e=ih?[nh/ih,rh/ih]:th?[Jd/th,eh/th]:Qd?[Zd/Qd,Xd/Qd]:[NaN,NaN];return Zd=Xd=Qd=Jd=eh=th=nh=rh=ih=0,e}};function sh(e,t){Zd+=e,Xd+=t,++Qd}function ah(){oh.point=lh}function lh(e,t){oh.point=ch,sh(Vd=e,Hd=t)}function ch(e,t){var n=e-Vd,r=t-Hd,i=ac(n*n+r*r);Jd+=i*(Vd+e)/2,eh+=i*(Hd+t)/2,th+=i,sh(Vd=e,Hd=t)}function uh(){oh.point=sh}function dh(){oh.point=ph}function hh(){fh(Bd,Yd)}function ph(e,t){oh.point=fh,sh(Bd=Vd=e,Yd=Hd=t)}function fh(e,t){var n=e-Vd,r=t-Hd,i=ac(n*n+r*r);Jd+=i*(Vd+e)/2,eh+=i*(Hd+t)/2,th+=i,nh+=(i=Hd*e-Vd*t)*(Vd+e),rh+=i*(Hd+t),ih+=3*i,sh(Vd=e,Hd=t)}var mh=oh;function gh(e){this._context=e}gh.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,$l)}},result:hc};var vh,yh,bh,_h,wh,Ah=new k,xh={point:hc,lineStart:function(){xh.point=kh},lineEnd:function(){vh&&Sh(yh,bh),xh.point=hc},polygonStart:function(){vh=!0},polygonEnd:function(){vh=null},result:function(){var e=+Ah;return Ah=new k,e}};function kh(e,t){xh.point=Sh,yh=_h=e,bh=wh=t}function Sh(e,t){_h-=e,wh-=t,Ah.add(ac(_h*_h+wh*wh)),_h=e,wh=t}var Eh=xh;let Th,Dh,Ch,Mh;class Ih{constructor(e){this._append=null==e?Oh:function(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return Oh;if(t!==Th){const e=10**t;Th=t,Dh=function(t){let n=1;this._+=t[0];for(const r=t.length;n<r;++n)this._+=Math.round(arguments[n]*e)/e+t[n]}}return Dh}(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==Ch||this._append!==Dh){const e=this._radius,t=this._;this._="",this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,Ch=e,Dh=this._append,Mh=this._,this._=t}this._+=Mh}}result(){const e=this._;return this._="",e.length?e:null}}function Oh(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Lh(e){return function(t){var n=new Nh;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Nh(){}function Ph(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),yc(n,e.stream(Kd)),t(Kd.result()),null!=r&&e.clipExtent(r),e}function Rh(e,t,n){return Ph(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),s=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,a=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([s,a])},n)}function jh(e,t,n){return Rh(e,[[0,0],t],n)}function Fh(e,t,n){return Ph(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,s=-i*n[0][1];e.scale(150*i).translate([o,s])},n)}function Bh(e,t,n){return Ph(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],s=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,s])},n)}Nh.prototype={constructor:Nh,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Yh=Jl(30*Kl);function Vh(e,t){return+t?function(e,t){function n(r,i,o,s,a,l,c,u,d,h,p,f,m,g){var v=c-r,y=u-i,b=v*v+y*y;if(b>4*t&&m--){var _=s+h,w=a+p,A=l+f,x=ac(_*_+w*w+A*A),k=uc(A/=x),S=Zl(Zl(A)-1)<Hl||Zl(o-d)<Hl?(o+d)/2:Ql(w,_),E=e(S,k),T=E[0],D=E[1],C=T-r,M=D-i,I=y*C-v*M;(I*I/b>t||Zl((v*C+y*M)/b-.5)>.3||s*h+a*p+l*f<Yh)&&(n(r,i,o,s,a,l,T,D,S,_/=x,w/=x,A,m,g),g.point(T,D),n(T,D,S,_,w,A,c,u,d,h,p,f,m,g))}}return function(t){var r,i,o,s,a,l,c,u,d,h,p,f,m={point:g,lineStart:v,lineEnd:b,polygonStart:function(){t.polygonStart(),m.lineStart=_},polygonEnd:function(){t.polygonEnd(),m.lineStart=v}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function v(){u=NaN,m.point=y,t.lineStart()}function y(r,i){var o=Uc([r,i]),s=e(r,i);n(u,d,c,h,p,f,u=s[0],d=s[1],c=r,h=o[0],p=o[1],f=o[2],16,t),t.point(u,d)}function b(){m.point=g,t.lineEnd()}function _(){v(),m.point=w,m.lineEnd=A}function w(e,t){y(r=e,t),i=u,o=d,s=h,a=p,l=f,m.point=y}function A(){n(u,d,c,h,p,f,i,o,r,s,a,l,16,t),m.lineEnd=b,b()}return m}}(e,t):function(e){return Lh({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)}var Hh=Lh({point:function(e,t){this.stream.point(e*Kl,t*Kl)}});function Uh(e,t,n,r,i,o){if(!o)return function(e,t,n,r,i){function o(o,s){return[t+e*(o*=r),n-e*(s*=i)]}return o.invert=function(o,s){return[(o-t)/e*r,(n-s)/e*i]},o}(e,t,n,r,i);var s=Jl(o),a=oc(o),l=s*e,c=a*e,u=s/e,d=a/e,h=(a*n-s*t)/e,p=(a*t+s*n)/e;function f(e,o){return[l*(e*=r)-c*(o*=i)+t,n-c*e-l*o]}return f.invert=function(e,t){return[r*(u*e-d*t+h),i*(p-d*e-u*t)]},f}function zh(e){return qh(function(){return e})()}function qh(e){var t,n,r,i,o,s,a,l,c,u,d=150,h=480,p=250,f=0,m=0,g=0,v=0,y=0,b=0,_=1,w=1,A=null,x=Ju,k=null,S=Id,E=.5;function T(e){return l(e[0]*Kl,e[1]*Kl)}function D(e){return(e=l.invert(e[0],e[1]))&&[e[0]*Gl,e[1]*Gl]}function C(){var e=Uh(d,0,0,_,w,b).apply(null,t(f,m)),r=Uh(d,h-e[0],p-e[1],_,w,b);return n=Ru(g,v,y),a=Nu(t,r),l=Nu(n,a),s=Vh(a,E),M()}function M(){return c=u=null,T}return T.stream=function(e){return c&&u===e?c:c=Hh(function(e){return Lh({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}(n)(x(s(S(u=e)))))},T.preclip=function(e){return arguments.length?(x=e,A=void 0,M()):x},T.postclip=function(e){return arguments.length?(S=e,k=r=i=o=null,M()):S},T.clipAngle=function(e){return arguments.length?(x=+e?ed(A=e*Kl):(A=null,Ju),M()):A*Gl},T.clipExtent=function(e){return arguments.length?(S=null==e?(k=r=i=o=null,Id):ad(k=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),M()):null==k?null:[[k,r],[i,o]]},T.scale=function(e){return arguments.length?(d=+e,C()):d},T.translate=function(e){return arguments.length?(h=+e[0],p=+e[1],C()):[h,p]},T.center=function(e){return arguments.length?(f=e[0]%360*Kl,m=e[1]%360*Kl,C()):[f*Gl,m*Gl]},T.rotate=function(e){return arguments.length?(g=e[0]%360*Kl,v=e[1]%360*Kl,y=e.length>2?e[2]%360*Kl:0,C()):[g*Gl,v*Gl,y*Gl]},T.angle=function(e){return arguments.length?(b=e%360*Kl,C()):b*Gl},T.reflectX=function(e){return arguments.length?(_=e?-1:1,C()):_<0},T.reflectY=function(e){return arguments.length?(w=e?-1:1,C()):w<0},T.precision=function(e){return arguments.length?(s=Vh(a,E=e*e),M()):ac(E)},T.fitExtent=function(e,t){return Rh(T,e,t)},T.fitSize=function(e,t){return jh(T,e,t)},T.fitWidth=function(e,t){return Fh(T,e,t)},T.fitHeight=function(e,t){return Bh(T,e,t)},function(){return t=e.apply(this,arguments),T.invert=t.invert&&D,C()}}function Wh(e){var t=0,n=zl/3,r=qh(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Kl,n=e[1]*Kl):[t*Gl,n*Gl]},i}function $h(e,t){var n=oc(e),r=(n+oc(t))/2;if(Zl(r)<Hl)return function(e){var t=Jl(e);function n(e,n){return[e*t,oc(n)/t]}return n.invert=function(e,n){return[e/t,uc(n*t)]},n}(e);var i=1+n*(2*r-n),o=ac(i)/r;function s(e,t){var n=ac(i-2*r*oc(t))/r;return[n*oc(e*=r),o-n*Jl(e)]}return s.invert=function(e,t){var n=o-t,s=Ql(e,Zl(n))*sc(n);return n*r<0&&(s-=zl*sc(e)*sc(n)),[s/r,uc((i-(e*e+n*n)*r*r)/(2*r))]},s}function Gh(){return Wh($h).scale(155.424).center([0,33.6442])}function Kh(){return Gh().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Zh(e){return function(t,n){var r=Jl(t),i=Jl(n),o=e(r*i);return o===1/0?[2,0]:[o*i*oc(t),o*oc(n)]}}function Xh(e){return function(t,n){var r=ac(t*t+n*n),i=e(r),o=oc(i),s=Jl(i);return[Ql(t*o,r*s),uc(r&&n*o/r)]}}var Qh=Zh(function(e){return ac(2/(1+e))});Qh.invert=Xh(function(e){return 2*uc(e/2)});var Jh=Zh(function(e){return(e=cc(e))&&e/oc(e)});function ep(e,t){return[e,rc(lc((ql+t)/2))]}function tp(e){var t,n,r,i=zh(e),o=i.center,s=i.scale,a=i.translate,l=i.clipExtent,c=null;function u(){var o=zl*s(),a=i(Yu(i.rotate()).invert([0,0]));return l(null==c?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:e===ep?[[Math.max(a[0]-o,c),t],[Math.min(a[0]+o,n),r]]:[[c,Math.max(a[1]-o,t)],[n,Math.min(a[1]+o,r)]])}return i.scale=function(e){return arguments.length?(s(e),u()):s()},i.translate=function(e){return arguments.length?(a(e),u()):a()},i.center=function(e){return arguments.length?(o(e),u()):o()},i.clipExtent=function(e){return arguments.length?(null==e?c=t=n=r=null:(c=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),u()):null==c?null:[[c,t],[n,r]]},u()}function np(e){return lc((ql+e)/2)}function rp(e,t){var n=Jl(e),r=e===t?oc(e):rc(n/Jl(t))/rc(np(t)/np(e)),i=n*ic(np(e),r)/r;if(!r)return ep;function o(e,t){i>0?t<-ql+Hl&&(t=-ql+Hl):t>ql-Hl&&(t=ql-Hl);var n=i/ic(np(t),r);return[n*oc(r*e),i-n*Jl(r*e)]}return o.invert=function(e,t){var n=i-t,o=sc(r)*ac(e*e+n*n),s=Ql(e,Zl(n))*sc(n);return n*r<0&&(s-=zl*sc(e)*sc(n)),[s/r,2*Xl(ic(i/o,1/r))-ql]},o}function ip(e,t){return[e,t]}function op(e,t){var n=Jl(e),r=e===t?oc(e):(n-Jl(t))/(t-e),i=n/r+e;if(Zl(r)<Hl)return ip;function o(e,t){var n=i-t,o=r*e;return[n*oc(o),i-n*Jl(o)]}return o.invert=function(e,t){var n=i-t,o=Ql(e,Zl(n))*sc(n);return n*r<0&&(o-=zl*sc(e)*sc(n)),[o/r,i-sc(r)*ac(e*e+n*n)]},o}Jh.invert=Xh(function(e){return e}),ep.invert=function(e,t){return[e,2*Xl(tc(t))-ql]},ip.invert=ip;var sp=1.340264,ap=-.081106,lp=893e-6,cp=.003796,up=ac(3)/2;function dp(e,t){var n=uc(up*oc(t)),r=n*n,i=r*r*r;return[e*Jl(n)/(up*(sp+3*ap*r+i*(7*lp+9*cp*r))),n*(sp+ap*r+i*(lp+cp*r))]}function hp(e,t){var n=Jl(t),r=Jl(e)*n;return[n*oc(e)/r,oc(t)/r]}function pp(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function fp(e,t){return[Jl(t)*oc(e),oc(t)]}function mp(e,t){var n=Jl(t),r=1+Jl(e)*n;return[n*oc(e)/r,oc(t)/r]}function gp(e,t){return[rc(lc((ql+t)/2)),-e]}function vp(e,t){return e.parent===t.parent?1:2}function yp(e,t){return e+t.x}function bp(e,t){return Math.max(e,t.y)}function _p(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function wp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=xp)):void 0===t&&(t=Ap);for(var n,r,i,o,s,a=new Ep(e),l=[a];n=l.pop();)if((i=t(n.data))&&(s=(i=Array.from(i)).length))for(n.children=i,o=s-1;o>=0;--o)l.push(r=i[o]=new Ep(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(Sp)}function Ap(e){return e.children}function xp(e){return Array.isArray(e)?e[1]:null}function kp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Sp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ep(e){this.data=e,this.depth=this.height=0,this.parent=null}function Tp(e){return null==e?null:Dp(e)}function Dp(e){if("function"!=typeof e)throw new Error;return e}function Cp(){return 0}function Mp(e){return function(){return e}}dp.invert=function(e,t){for(var n,r=t,i=r*r,o=i*i*i,s=0;s<12&&(o=(i=(r-=n=(r*(sp+ap*i+o*(lp+cp*i))-t)/(sp+3*ap*i+o*(7*lp+9*cp*i)))*r)*i*i,!(Zl(n)<Ul));++s);return[up*e*(sp+3*ap*i+o*(7*lp+9*cp*i))/Jl(r),uc(oc(r)/up)]},hp.invert=Xh(Xl),pp.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,s=o*o;r-=n=(r*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-t)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(Zl(n)>Hl&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},fp.invert=Xh(uc),mp.invert=Xh(function(e){return 2*Xl(e)}),gp.invert=function(e,t){return[-t,2*Xl(tc(e))-ql]},Ep.prototype=wp.prototype={constructor:Ep,count:function(){return this.eachAfter(_p)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,s=[o],a=[],l=-1;o=s.pop();)if(a.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)s.push(n[r]);for(;o=a.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],s=-1;i=o.pop();)if(e.call(t,i,++s,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return wp(this).eachBefore(kp)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};const Ip=4294967296;function Op(){let e=1;return()=>(e=(1664525*e+1013904223)%Ip)/Ip}function Lp(e,t){for(var n,r,i=0,o=(e=function(e,t){let n,r,i=e.length;for(;i;)r=t()*i--|0,n=e[i],e[i]=e[r],e[r]=n;return e}(Array.from(e),t)).length,s=[];i<o;)n=e[i],r&&Rp(r,n)?++i:(r=Fp(s=Np(s,n)),i=0);return r}function Np(e,t){var n,r;if(jp(t,e))return[t];for(n=0;n<e.length;++n)if(Pp(t,e[n])&&jp(Bp(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(Pp(Bp(e[n],e[r]),t)&&Pp(Bp(e[n],t),e[r])&&Pp(Bp(e[r],t),e[n])&&jp(Yp(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Pp(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function Rp(e,t){var n=e.r-t.r+1e-9*Math.max(e.r,t.r,1),r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function jp(e,t){for(var n=0;n<t.length;++n)if(!Rp(e,t[n]))return!1;return!0}function Fp(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return Bp(e[0],e[1]);case 3:return Yp(e[0],e[1],e[2])}}function Bp(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,s=t.y,a=t.r,l=o-n,c=s-r,u=a-i,d=Math.sqrt(l*l+c*c);return{x:(n+o+l/d*u)/2,y:(r+s+c/d*u)/2,r:(d+i+a)/2}}function Yp(e,t,n){var r=e.x,i=e.y,o=e.r,s=t.x,a=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=r-s,p=r-c,f=i-a,m=i-u,g=l-o,v=d-o,y=r*r+i*i-o*o,b=y-s*s-a*a+l*l,_=y-c*c-u*u+d*d,w=p*f-h*m,A=(f*_-m*b)/(2*w)-r,x=(m*g-f*v)/w,k=(p*b-h*_)/(2*w)-i,S=(h*v-p*g)/w,E=x*x+S*S-1,T=2*(o+A*x+k*S),D=A*A+k*k-o*o,C=-(Math.abs(E)>1e-6?(T+Math.sqrt(T*T-4*E*D))/(2*E):D/T);return{x:r+A+x*C,y:i+k+S*C,r:C}}function Vp(e,t,n){var r,i,o,s,a=e.x-t.x,l=e.y-t.y,c=a*a+l*l;c?(i=t.r+n.r,i*=i,s=e.r+n.r,i>(s*=s)?(r=(c+s-i)/(2*c),o=Math.sqrt(Math.max(0,s/c-r*r)),n.x=e.x-r*a-o*l,n.y=e.y-r*l+o*a):(r=(c+i-s)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=t.x+r*a-o*l,n.y=t.y+r*l+o*a)):(n.x=t.x+n.r,n.y=t.y)}function Hp(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Up(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function zp(e){this._=e,this.next=null,this.previous=null}function qp(e,t){if(!(o=(e=function(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}(e)).length))return 0;var n,r,i,o,s,a,l,c,u,d,h;if((n=e[0]).x=0,n.y=0,!(o>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(o>2))return n.r+r.r;Vp(r,n,i=e[2]),n=new zp(n),r=new zp(r),i=new zp(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;e:for(l=3;l<o;++l){Vp(n._,r._,i=e[l]),i=new zp(i),c=r.next,u=n.previous,d=r._.r,h=n._.r;do{if(d<=h){if(Hp(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue e}d+=c._.r,c=c.next}else{if(Hp(u._,i._)){(n=u).next=r,r.previous=n,--l;continue e}h+=u._.r,u=u.previous}}while(c!==u.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,s=Up(n);(i=i.next)!==r;)(a=Up(i))<s&&(n=i,s=a);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=Lp(n,t),l=0;l<o;++l)(n=e[l]).x-=i.x,n.y-=i.y;return i.r}function Wp(e){return Math.sqrt(e.value)}function $p(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Gp(e,t,n){return function(r){if(i=r.children){var i,o,s,a=i.length,l=e(r)*t||0;if(l)for(o=0;o<a;++o)i[o].r+=l;if(s=qp(i,n),l)for(o=0;o<a;++o)i[o].r-=l;r.r=s+l}}}function Kp(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function Zp(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Xp(e,t,n,r,i){for(var o,s=e.children,a=-1,l=s.length,c=e.value&&(r-t)/e.value;++a<l;)(o=s[a]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}var Qp={depth:-1},Jp={},ef={};function tf(e){return e.id}function nf(e){return e.parentId}function rf(e){let t=e.length;if(t<2)return"";for(;--t>1&&!of(e,t););return e.slice(0,t)}function of(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function sf(e,t){return e.parent===t.parent?1:2}function af(e){var t=e.children;return t?t[0]:e.t}function lf(e){var t=e.children;return t?t[t.length-1]:e.t}function cf(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function uf(e,t,n){return e.a.parent===t.parent?e.a:n}function df(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function hf(e,t,n,r,i){for(var o,s=e.children,a=-1,l=s.length,c=e.value&&(i-n)/e.value;++a<l;)(o=s[a]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}df.prototype=Object.create(Ep.prototype);var pf=(1+Math.sqrt(5))/2;function ff(e,t,n,r,i,o){for(var s,a,l,c,u,d,h,p,f,m,g,v=[],y=t.children,b=0,_=0,w=y.length,A=t.value;b<w;){l=i-n,c=o-r;do{u=y[_++].value}while(!u&&_<w);for(d=h=u,g=u*u*(m=Math.max(c/l,l/c)/(A*e)),f=Math.max(h/g,g/d);_<w;++_){if(u+=a=y[_].value,a<d&&(d=a),a>h&&(h=a),g=u*u*m,(p=Math.max(h/g,g/d))>f){u-=a;break}f=p}v.push(s={value:u,dice:l<c,children:y.slice(b,_)}),s.dice?Xp(s,n,r,i,A?r+=c*u/A:o):hf(s,n,r,A?n+=l*u/A:i,o),A-=u,b=_}return v}var mf=function e(t){function n(e,n,r,i,o){ff(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(pf),gf=function e(t){function n(e,n,r,i,o){if((s=e._squarify)&&s.ratio===t)for(var s,a,l,c,u,d=-1,h=s.length,p=e.value;++d<h;){for(l=(a=s[d]).children,c=a.value=0,u=l.length;c<u;++c)a.value+=l[c].value;a.dice?Xp(a,n,r,i,p?r+=(o-r)*a.value/p:o):hf(a,n,r,p?n+=(i-n)*a.value/p:i,o),p-=a.value}else e._squarify=s=ff(t,e,n,r,i,o),s.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(pf);function vf(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function yf(e,t){return e[0]-t[0]||e[1]-t[1]}function bf(e){const t=e.length,n=[0,1];let r,i=2;for(r=2;r<t;++r){for(;i>1&&vf(e[n[i-2]],e[n[i-1]],e[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}var _f=Math.random,wf=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(_f),Af=function e(t){function n(e,n){return arguments.length<2&&(n=e,e=0),e=Math.floor(e),n=Math.floor(n)-e,function(){return Math.floor(t()*n+e)}}return n.source=e,n}(_f),xf=function e(t){function n(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*t()-1,o=2*t()-1,i=r*r+o*o}while(!i||i>1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(_f),kf=function e(t){var n=xf.source(t);function r(){var e=n.apply(this,arguments);return function(){return Math.exp(e())}}return r.source=e,r}(_f),Sf=function e(t){function n(e){return(e=+e)<=0?()=>0:function(){for(var n=0,r=e;r>1;--r)n+=t();return n+r*t()}}return n.source=e,n}(_f),Ef=function e(t){var n=Sf.source(t);function r(e){if(0==(e=+e))return t;var r=n(e);return function(){return r()/e}}return r.source=e,r}(_f),Tf=function e(t){function n(e){return function(){return-Math.log1p(-t())/e}}return n.source=e,n}(_f),Df=function e(t){function n(e){if((e=+e)<0)throw new RangeError("invalid alpha");return e=1/-e,function(){return Math.pow(1-t(),e)}}return n.source=e,n}(_f),Cf=function e(t){function n(e){if((e=+e)<0||e>1)throw new RangeError("invalid p");return function(){return Math.floor(t()+e)}}return n.source=e,n}(_f),Mf=function e(t){function n(e){if((e=+e)<0||e>1)throw new RangeError("invalid p");return 0===e?()=>1/0:1===e?()=>1:(e=Math.log1p(-e),function(){return 1+Math.floor(Math.log1p(-t())/e)})}return n.source=e,n}(_f),If=function e(t){var n=xf.source(t)();function r(e,r){if((e=+e)<0)throw new RangeError("invalid k");if(0===e)return()=>0;if(r=null==r?1:+r,1===e)return()=>-Math.log1p(-t())*r;var i=(e<1?e+1:e)-1/3,o=1/(3*Math.sqrt(i)),s=e<1?()=>Math.pow(t(),1/e):()=>1;return function(){do{do{var e=n(),a=1+o*e}while(a<=0);a*=a*a;var l=1-t()}while(l>=1-.0331*e*e*e*e&&Math.log(l)>=.5*e*e+i*(1-a+Math.log(a)));return i*a*s()*r}}return r.source=e,r}(_f),Of=function e(t){var n=If.source(t);function r(e,t){var r=n(e),i=n(t);return function(){var e=r();return 0===e?0:e/(e+i())}}return r.source=e,r}(_f),Lf=function e(t){var n=Mf.source(t),r=Of.source(t);function i(e,t){return e=+e,(t=+t)>=1?()=>e:t<=0?()=>0:function(){for(var i=0,o=e,s=t;o*s>16&&o*(1-s)>16;){var a=Math.floor((o+1)*s),l=r(a,o-a+1)();l<=s?(i+=a,o-=a,s=(s-l)/(1-l)):(o=a-1,s/=l)}for(var c=s<.5,u=n(c?s:1-s),d=u(),h=0;d<=o;++h)d+=u();return i+(c?h:o-h)}}return i.source=e,i}(_f),Nf=function e(t){function n(e,n,r){var i;return 0==(e=+e)?i=e=>-Math.log(e):(e=1/e,i=t=>Math.pow(t,e)),n=null==n?0:+n,r=null==r?1:+r,function(){return n+r*i(-Math.log1p(-t()))}}return n.source=e,n}(_f),Pf=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,function(){return e+n*Math.tan(Math.PI*t())}}return n.source=e,n}(_f),Rf=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,function(){var r=t();return e+n*Math.log(r/(1-r))}}return n.source=e,n}(_f),jf=function e(t){var n=If.source(t),r=Lf.source(t);function i(e){return function(){for(var i=0,o=e;o>16;){var s=Math.floor(.875*o),a=n(s)();if(a>o)return i+r(s-1,o/a)();i+=s,o-=a}for(var l=-Math.log1p(-t()),c=0;l<=o;++c)l-=Math.log1p(-t());return i+c}}return i.source=e,i}(_f);const Ff=1/4294967296;function Bf(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Yf(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const Vf=Symbol("implicit");function Hf(){var e=new S,t=[],n=[],r=Vf;function i(i){let o=e.get(i);if(void 0===o){if(r!==Vf)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new S;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Hf(t,n).unknown(r)},Bf.apply(i,arguments),i}function Uf(){var e,t,n=Hf().unknown(void 0),r=n.domain,i=n.range,o=0,s=1,a=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=s<o,h=d?s:o,p=d?o:s;e=(p-h)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*u,t=e*(1-l),a&&(h=Math.round(h),t=Math.round(t));var f=pe(n).map(function(t){return h+e*t});return i(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,s]=e,o=+o,s=+s,d()):[o,s]},n.rangeRound=function(e){return[o,s]=e,o=+o,s=+s,a=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,d()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return Uf(r(),[o,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},Bf.apply(d(),arguments)}function zf(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return zf(t())},e}function qf(e){return+e}var Wf=[0,1];function $f(e){return e}function Gf(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Kf(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=Gf(i,r),o=n(s,o)):(r=Gf(r,i),o=n(o,s)),function(e){return o(r(e))}}function Zf(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=Gf(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(t){var n=u(e,t,1,r)-1;return o[n](i[n](t))}}function Xf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Qf(){var e,t,n,r,i,o,s=Wf,a=Wf,l=Ur,c=$f;function u(){var e=Math.min(s.length,a.length);return c!==$f&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(s[0],s[e-1])),r=e>2?Zf:Kf,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(s.map(e),a,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(a,s.map(e),Fr)))(n)))},d.domain=function(e){return arguments.length?(s=Array.from(e,qf),u()):s.slice()},d.range=function(e){return arguments.length?(a=Array.from(e),u()):a.slice()},d.rangeRound=function(e){return a=Array.from(e),l=zr,u()},d.clamp=function(e){return arguments.length?(c=!!e||$f,u()):c!==$f},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function Jf(){return Qf()($f,$f)}function em(t,n,r,i){var o,s=X(t,n,r);switch((i=Cl(null==i?",f":i)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=i.precision||isNaN(o=Yl(s,a))||(i.precision=o),e.formatPrefix(i,a);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Vl(s,Math.max(Math.abs(t),Math.abs(n))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Bl(s))||(i.precision=o-2*("%"===i.type))}return e.format(i)}function tm(e){var t=e.domain;return e.ticks=function(e){var n=t();return K(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return em(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),s=0,a=o.length-1,l=o[s],c=o[a],u=10;for(c<l&&(i=l,l=c,c=i,i=s,s=a,a=i);u-- >0;){if((i=Z(l,c,n))===r)return o[s]=l,o[a]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function nm(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],s=e[i];return s<o&&(n=r,r=i,i=n,n=o,o=s,s=n),e[r]=t.floor(o),e[i]=t.ceil(s),e}function rm(e){return Math.log(e)}function im(e){return Math.exp(e)}function om(e){return-Math.log(-e)}function sm(e){return-Math.exp(-e)}function am(e){return isFinite(e)?+("1e"+e):e<0?0:e}function lm(e){return(t,n)=>-e(-t,n)}function cm(t){const n=t(rm,im),r=n.domain;let i,o,s=10;function a(){return i=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(s),o=function(e){return 10===e?am:e===Math.E?Math.exp:t=>Math.pow(e,t)}(s),r()[0]<0?(i=lm(i),o=lm(o),t(om,sm)):t(rm,im),n}return n.base=function(e){return arguments.length?(s=+e,a()):s},n.domain=function(e){return arguments.length?(r(e),a()):r()},n.ticks=e=>{const t=r();let n=t[0],a=t[t.length-1];const l=a<n;l&&([n,a]=[a,n]);let c,u,d=i(n),h=i(a);const p=null==e?10:+e;let f=[];if(!(s%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),n>0){for(;d<=h;++d)for(c=1;c<s;++c)if(u=d<0?c/o(-d):c*o(d),!(u<n)){if(u>a)break;f.push(u)}}else for(;d<=h;++d)for(c=s-1;c>=1;--c)if(u=d>0?c/o(-d):c*o(d),!(u<n)){if(u>a)break;f.push(u)}2*f.length<p&&(f=K(n,a,p))}else f=K(d,h,Math.min(h-d,p)).map(o);return l?f.reverse():f},n.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===s?"s":","),"function"!=typeof r&&(s%1||null!=(r=Cl(r)).precision||(r.trim=!0),r=e.format(r)),t===1/0)return r;const a=Math.max(1,s*t/n.ticks().length);return e=>{let t=e/o(Math.round(i(e)));return t*s<s-.5&&(t*=s),t<=a?r(e):""}},n.nice=()=>r(nm(r(),{floor:e=>o(Math.floor(i(e))),ceil:e=>o(Math.ceil(i(e)))})),n}function um(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function dm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function hm(e){var t=1,n=e(um(t),dm(t));return n.constant=function(n){return arguments.length?e(um(t=+n),dm(t)):t},tm(n)}function pm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function mm(e){return e<0?-e*e:e*e}function gm(e){var t=e($f,$f),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e($f,$f):.5===n?e(fm,mm):e(pm(n),pm(1/n)):n},tm(t)}function vm(){var e=gm(Qf());return e.copy=function(){return Xf(e,vm()).exponent(e.exponent())},Bf.apply(e,arguments),e}function ym(e){return Math.sign(e)*e*e}const bm=new Date,_m=new Date;function wm(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;let a;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=n=>wm(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(bm.setTime(+t),_m.setTime(+r),e(bm),e(_m),Math.floor(n(bm,_m))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const Am=wm(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Am.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?wm(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Am:null);const xm=Am.range,km=1e3,Sm=6e4,Em=36e5,Tm=864e5,Dm=6048e5,Cm=31536e6,Mm=wm(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*km)},(e,t)=>(t-e)/km,e=>e.getUTCSeconds()),Im=Mm.range,Om=wm(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*km)},(e,t)=>{e.setTime(+e+t*Sm)},(e,t)=>(t-e)/Sm,e=>e.getMinutes()),Lm=Om.range,Nm=wm(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Sm)},(e,t)=>(t-e)/Sm,e=>e.getUTCMinutes()),Pm=Nm.range,Rm=wm(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*km-e.getMinutes()*Sm)},(e,t)=>{e.setTime(+e+t*Em)},(e,t)=>(t-e)/Em,e=>e.getHours()),jm=Rm.range,Fm=wm(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Em)},(e,t)=>(t-e)/Em,e=>e.getUTCHours()),Bm=Fm.range,Ym=wm(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sm)/Tm,e=>e.getDate()-1),Vm=Ym.range,Hm=wm(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tm,e=>e.getUTCDate()-1),Um=Hm.range,zm=wm(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tm,e=>Math.floor(e/Tm)),qm=zm.range;function Wm(e){return wm(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sm)/Dm)}const $m=Wm(0),Gm=Wm(1),Km=Wm(2),Zm=Wm(3),Xm=Wm(4),Qm=Wm(5),Jm=Wm(6),eg=$m.range,tg=Gm.range,ng=Km.range,rg=Zm.range,ig=Xm.range,og=Qm.range,sg=Jm.range;function ag(e){return wm(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/Dm)}const lg=ag(0),cg=ag(1),ug=ag(2),dg=ag(3),hg=ag(4),pg=ag(5),fg=ag(6),mg=lg.range,gg=cg.range,vg=ug.range,yg=dg.range,bg=hg.range,_g=pg.range,wg=fg.range,Ag=wm(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth()),xg=Ag.range,kg=wm(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth()),Sg=kg.range,Eg=wm(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Eg.every=e=>isFinite(e=Math.floor(e))&&e>0?wm(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null;const Tg=Eg.range,Dg=wm(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Dg.every=e=>isFinite(e=Math.floor(e))&&e>0?wm(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null;const Cg=Dg.range;function Mg(e,t,n,i,o,s){const a=[[Mm,1,km],[Mm,5,5e3],[Mm,15,15e3],[Mm,30,3e4],[s,1,Sm],[s,5,3e5],[s,15,9e5],[s,30,18e5],[o,1,Em],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,Tm],[i,2,1728e5],[n,1,Dm],[t,1,2592e6],[t,3,7776e6],[e,1,Cm]];function l(t,n,i){const o=Math.abs(n-t)/i,s=r(([,,e])=>e).right(a,o);if(s===a.length)return e.every(X(t/Cm,n/Cm,i));if(0===s)return Am.every(Math.max(X(t,n,i),1));const[l,c]=a[o/a[s-1][2]<a[s][2]/o?s-1:s];return l.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:l(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},l]}const[Ig,Og]=Mg(Dg,kg,lg,zm,Fm,Nm),[Lg,Ng]=Mg(Eg,Ag,$m,Ym,Rm,Om);function Pg(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Rg(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function jg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Fg(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,c=Wg(i),u=$g(i),d=Wg(o),h=$g(o),p=Wg(s),f=$g(s),m=Wg(a),g=$g(a),v=Wg(l),y=$g(l),b={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:fv,e:fv,f:bv,g:Mv,G:Ov,H:mv,I:gv,j:vv,L:yv,m:_v,M:wv,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ty,s:ny,S:Av,u:xv,U:kv,V:Ev,w:Tv,W:Dv,x:null,X:null,y:Cv,Y:Iv,Z:Lv,"%":ey},_={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:Nv,e:Nv,f:Bv,g:Zv,G:Qv,H:Pv,I:Rv,j:jv,L:Fv,m:Yv,M:Vv,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ty,s:ny,S:Hv,u:Uv,U:zv,V:Wv,w:$v,W:Gv,x:null,X:null,y:Kv,Y:Xv,Z:Jv,"%":ey},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:iv,e:iv,f:uv,g:ev,G:Jg,H:sv,I:sv,j:ov,L:cv,m:rv,M:av,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:nv,Q:hv,s:pv,S:lv,u:Kg,U:Zg,V:Xg,w:Gg,W:Qg,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:ev,Y:Jg,Z:tv,"%":dv};function A(e,t){return function(n){var r,i,o,s=[],a=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===e.charCodeAt(a)&&(s.push(e.slice(l,a)),null!=(i=Yg[r=e.charAt(++a)])?r=e.charAt(++a):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),s.push(r),l=a+1);return s.push(e.slice(l,a)),s.join("")}}function x(e,t){return function(n){var r,i,o=jg(1900,void 0,1);if(k(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Rg(jg(o.y,0,1))).getUTCDay(),r=i>4||0===i?cg.ceil(r):cg(r),r=Hm.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Pg(jg(o.y,0,1))).getDay(),r=i>4||0===i?Gm.ceil(r):Gm(r),r=Ym.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Rg(jg(o.y,0,1)).getUTCDay():Pg(jg(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Rg(o)):Pg(o)}}function k(e,t,n,r){for(var i,o,s=0,a=t.length,l=n.length;s<a;){if(r>=l)return-1;if(37===(i=t.charCodeAt(s++))){if(i=t.charAt(s++),!(o=w[i in Yg?t.charAt(s++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=A(n,b),b.X=A(r,b),b.c=A(t,b),_.x=A(n,_),_.X=A(r,_),_.c=A(t,_),{format:function(e){var t=A(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=A(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}var Bg,Yg={"-":"",_:" ",0:"0"},Vg=/^\s*\d+/,Hg=/^%/,Ug=/[\\^$*+?|[\]().{}]/g;function zg(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function qg(e){return e.replace(Ug,"\\$&")}function Wg(e){return new RegExp("^(?:"+e.map(qg).join("|")+")","i")}function $g(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Gg(e,t,n){var r=Vg.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Kg(e,t,n){var r=Vg.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Zg(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Xg(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Qg(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Jg(e,t,n){var r=Vg.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ev(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tv(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function nv(e,t,n){var r=Vg.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rv(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function iv(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ov(e,t,n){var r=Vg.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function sv(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function av(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lv(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cv(e,t,n){var r=Vg.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function uv(e,t,n){var r=Vg.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dv(e,t,n){var r=Hg.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hv(e,t,n){var r=Vg.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function pv(e,t,n){var r=Vg.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function fv(e,t){return zg(e.getDate(),t,2)}function mv(e,t){return zg(e.getHours(),t,2)}function gv(e,t){return zg(e.getHours()%12||12,t,2)}function vv(e,t){return zg(1+Ym.count(Eg(e),e),t,3)}function yv(e,t){return zg(e.getMilliseconds(),t,3)}function bv(e,t){return yv(e,t)+"000"}function _v(e,t){return zg(e.getMonth()+1,t,2)}function wv(e,t){return zg(e.getMinutes(),t,2)}function Av(e,t){return zg(e.getSeconds(),t,2)}function xv(e){var t=e.getDay();return 0===t?7:t}function kv(e,t){return zg($m.count(Eg(e)-1,e),t,2)}function Sv(e){var t=e.getDay();return t>=4||0===t?Xm(e):Xm.ceil(e)}function Ev(e,t){return e=Sv(e),zg(Xm.count(Eg(e),e)+(4===Eg(e).getDay()),t,2)}function Tv(e){return e.getDay()}function Dv(e,t){return zg(Gm.count(Eg(e)-1,e),t,2)}function Cv(e,t){return zg(e.getFullYear()%100,t,2)}function Mv(e,t){return zg((e=Sv(e)).getFullYear()%100,t,2)}function Iv(e,t){return zg(e.getFullYear()%1e4,t,4)}function Ov(e,t){var n=e.getDay();return zg((e=n>=4||0===n?Xm(e):Xm.ceil(e)).getFullYear()%1e4,t,4)}function Lv(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+zg(t/60|0,"0",2)+zg(t%60,"0",2)}function Nv(e,t){return zg(e.getUTCDate(),t,2)}function Pv(e,t){return zg(e.getUTCHours(),t,2)}function Rv(e,t){return zg(e.getUTCHours()%12||12,t,2)}function jv(e,t){return zg(1+Hm.count(Dg(e),e),t,3)}function Fv(e,t){return zg(e.getUTCMilliseconds(),t,3)}function Bv(e,t){return Fv(e,t)+"000"}function Yv(e,t){return zg(e.getUTCMonth()+1,t,2)}function Vv(e,t){return zg(e.getUTCMinutes(),t,2)}function Hv(e,t){return zg(e.getUTCSeconds(),t,2)}function Uv(e){var t=e.getUTCDay();return 0===t?7:t}function zv(e,t){return zg(lg.count(Dg(e)-1,e),t,2)}function qv(e){var t=e.getUTCDay();return t>=4||0===t?hg(e):hg.ceil(e)}function Wv(e,t){return e=qv(e),zg(hg.count(Dg(e),e)+(4===Dg(e).getUTCDay()),t,2)}function $v(e){return e.getUTCDay()}function Gv(e,t){return zg(cg.count(Dg(e)-1,e),t,2)}function Kv(e,t){return zg(e.getUTCFullYear()%100,t,2)}function Zv(e,t){return zg((e=qv(e)).getUTCFullYear()%100,t,2)}function Xv(e,t){return zg(e.getUTCFullYear()%1e4,t,4)}function Qv(e,t){var n=e.getUTCDay();return zg((e=n>=4||0===n?hg(e):hg.ceil(e)).getUTCFullYear()%1e4,t,4)}function Jv(){return"+0000"}function ey(){return"%"}function ty(e){return+e}function ny(e){return Math.floor(+e/1e3)}function ry(t){return Bg=Fg(t),e.timeFormat=Bg.format,e.timeParse=Bg.parse,e.utcFormat=Bg.utcFormat,e.utcParse=Bg.utcParse,Bg}e.timeFormat=void 0,e.timeParse=void 0,e.utcFormat=void 0,e.utcParse=void 0,ry({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var iy="%Y-%m-%dT%H:%M:%S.%LZ",oy=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat(iy),sy=oy,ay=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse(iy),ly=ay;function cy(e){return new Date(e)}function uy(e){return e instanceof Date?+e:+new Date(+e)}function dy(e,t,n,r,i,o,s,a,l,c){var u=Jf(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),_=c("%Y");function w(e){return(l(e)<e?p:a(e)<e?f:s(e)<e?m:o(e)<e?g:r(e)<e?i(e)<e?v:y:n(e)<e?b:_)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,uy)):h().map(cy)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(nm(n,e)):u},u.copy=function(){return Xf(u,dy(e,t,n,r,i,o,s,a,l,c))},u}function hy(){var e,t,n,r,i,o=0,s=1,a=$f,l=!1;function c(t){return null==t||isNaN(t=+t)?i:a(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,a=e(n,r),c):[a(0),a(1)]}}return c.domain=function(i){return arguments.length?([o,s]=i,e=r(o=+o),t=r(s=+s),n=e===t?0:1/(t-e),c):[o,s]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(a=e,c):a},c.range=u(Ur),c.rangeRound=u(zr),c.unknown=function(e){return arguments.length?(i=e,c):i},function(i){return r=i,e=i(o),t=i(s),n=e===t?0:1/(t-e),c}}function py(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function fy(){var e=gm(hy());return e.copy=function(){return py(e,fy()).exponent(e.exponent())},Yf.apply(e,arguments)}function my(){var e,t,n,r,i,o,s,a=0,l=.5,c=1,u=1,d=$f,h=!1;function p(e){return isNaN(e=+e)?s:(e=.5+((e=+o(e))-t)*(u*e<u*t?r:i),d(h?Math.max(0,Math.min(1,e)):e))}function f(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,d=ci(e,[n,r,i]),p):[d(0),d(.5),d(1)]}}return p.domain=function(s){return arguments.length?([a,l,c]=s,e=o(a=+a),t=o(l=+l),n=o(c=+c),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,p):[a,l,c]},p.clamp=function(e){return arguments.length?(h=!!e,p):h},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=f(Ur),p.rangeRound=f(zr),p.unknown=function(e){return arguments.length?(s=e,p):s},function(s){return o=s,e=s(a),t=s(l),n=s(c),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function gy(){var e=gm(my());return e.copy=function(){return py(e,gy()).exponent(e.exponent())},Yf.apply(e,arguments)}function vy(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}var yy=vy("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),by=vy("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),_y=vy("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),wy=vy("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ay=vy("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),xy=vy("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),ky=vy("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Sy=vy("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Ey=vy("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ty=vy("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Dy=e=>Or(e[e.length-1]),Cy=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(vy),My=Dy(Cy),Iy=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(vy),Oy=Dy(Iy),Ly=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(vy),Ny=Dy(Ly),Py=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(vy),Ry=Dy(Py),jy=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(vy),Fy=Dy(jy),By=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(vy),Yy=Dy(By),Vy=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(vy),Hy=Dy(Vy),Uy=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(vy),zy=Dy(Uy),qy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(vy),Wy=Dy(qy),$y=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(vy),Gy=Dy($y),Ky=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(vy),Zy=Dy(Ky),Xy=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(vy),Qy=Dy(Xy),Jy=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(vy),eb=Dy(Jy),tb=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(vy),nb=Dy(tb),rb=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(vy),ib=Dy(rb),ob=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(vy),sb=Dy(ob),ab=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(vy),lb=Dy(ab),cb=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(vy),ub=Dy(cb),db=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(vy),hb=Dy(db),pb=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(vy),fb=Dy(pb),mb=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(vy),gb=Dy(mb),vb=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(vy),yb=Dy(vb),bb=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(vy),_b=Dy(bb),wb=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(vy),Ab=Dy(wb),xb=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(vy),kb=Dy(xb),Sb=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(vy),Eb=Dy(Sb),Tb=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(vy),Db=Dy(Tb),Cb=li(wr(300,.5,0),wr(-240,.5,1)),Mb=li(wr(-100,.75,.35),wr(80,1.5,.8)),Ib=li(wr(260,.75,.35),wr(80,1.5,.8)),Ob=wr(),Lb=Nn(),Nb=Math.PI/3,Pb=2*Math.PI/3;function Rb(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var jb=Rb(vy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Fb=Rb(vy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Bb=Rb(vy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Yb=Rb(vy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Vb(e){return function(){return e}}const Hb=Math.abs,Ub=Math.atan2,zb=Math.cos,qb=Math.max,Wb=Math.min,$b=Math.sin,Gb=Math.sqrt,Kb=1e-12,Zb=Math.PI,Xb=Zb/2,Qb=2*Zb;function Jb(e){return e>=1?Xb:e<=-1?-Xb:Math.asin(e)}function e_(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new xs(t)}function t_(e){return e.innerRadius}function n_(e){return e.outerRadius}function r_(e){return e.startAngle}function i_(e){return e.endAngle}function o_(e){return e&&e.padAngle}function s_(e,t,n,r,i,o,s){var a=e-n,l=t-r,c=(s?o:-o)/Gb(a*a+l*l),u=c*l,d=-c*a,h=e+u,p=t+d,f=n+u,m=r+d,g=(h+f)/2,v=(p+m)/2,y=f-h,b=m-p,_=y*y+b*b,w=i-o,A=h*m-f*p,x=(b<0?-1:1)*Gb(qb(0,w*w*_-A*A)),k=(A*b-y*x)/_,S=(-A*y-b*x)/_,E=(A*b+y*x)/_,T=(-A*y+b*x)/_,D=k-g,C=S-v,M=E-g,I=T-v;return D*D+C*C>M*M+I*I&&(k=E,S=T),{cx:k,cy:S,x01:-u,y01:-d,x11:k*(i/w-1),y11:S*(i/w-1)}}var a_=Array.prototype.slice;function l_(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function c_(e){this._context=e}function u_(e){return new c_(e)}function d_(e){return e[0]}function h_(e){return e[1]}function p_(e,t){var n=Vb(!0),r=null,i=u_,o=null,s=e_(a);function a(a){var l,c,u,d=(a=l_(a)).length,h=!1;for(null==r&&(o=i(u=s())),l=0;l<=d;++l)!(l<d&&n(c=a[l],l,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(c,l,a),+t(c,l,a));if(u)return o=null,u+""||null}return e="function"==typeof e?e:void 0===e?d_:Vb(e),t="function"==typeof t?t:void 0===t?h_:Vb(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:Vb(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Vb(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:Vb(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a}function f_(e,t,n){var r=null,i=Vb(!0),o=null,s=u_,a=null,l=e_(c);function c(c){var u,d,h,p,f,m=(c=l_(c)).length,g=!1,v=new Array(m),y=new Array(m);for(null==o&&(a=s(f=l())),u=0;u<=m;++u){if(!(u<m&&i(p=c[u],u,c))===g)if(g=!g)d=u,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),h=u-1;h>=d;--h)a.point(v[h],y[h]);a.lineEnd(),a.areaEnd()}g&&(v[u]=+e(p,u,c),y[u]=+t(p,u,c),a.point(r?+r(p,u,c):v[u],n?+n(p,u,c):y[u]))}if(f)return a=null,f+""||null}function u(){return p_().defined(i).curve(s).context(o)}return e="function"==typeof e?e:void 0===e?d_:Vb(+e),t="function"==typeof t?t:Vb(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?h_:Vb(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Vb(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Vb(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Vb(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Vb(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Vb(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Vb(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:Vb(!!e),c):i},c.curve=function(e){return arguments.length?(s=e,null!=o&&(a=s(o)),c):s},c.context=function(e){return arguments.length?(null==e?o=a=null:a=s(o=e),c):o},c}function m_(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function g_(e){return e}c_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var v_=b_(u_);function y_(e){this._curve=e}function b_(e){function t(t){return new y_(e(t))}return t._curve=e,t}function __(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(b_(e)):t()._curve},e}function w_(){return __(p_().curve(v_))}function A_(){var e=f_().curve(v_),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return __(n())},delete e.lineX0,e.lineEndAngle=function(){return __(r())},delete e.lineX1,e.lineInnerRadius=function(){return __(i())},delete e.lineY0,e.lineOuterRadius=function(){return __(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(b_(e)):t()._curve},e}function x_(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}y_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};class k_{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}class S_{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,t){if(e=+e,t=+t,0===this._point)this._point=1;else{const n=x_(this._x0,this._y0),r=x_(this._x0,this._y0=(this._y0+t)/2),i=x_(e,this._y0),o=x_(e,t);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...o)}this._x0=e,this._y0=t}}function E_(e){return new k_(e,!0)}function T_(e){return new k_(e,!1)}function D_(e){return new S_(e)}function C_(e){return e.source}function M_(e){return e.target}function I_(e){let t=C_,n=M_,r=d_,i=h_,o=null,s=null,a=e_(l);function l(){let l;const c=a_.call(arguments),u=t.apply(this,c),d=n.apply(this,c);if(null==o&&(s=e(l=a())),s.lineStart(),c[0]=u,s.point(+r.apply(this,c),+i.apply(this,c)),c[0]=d,s.point(+r.apply(this,c),+i.apply(this,c)),s.lineEnd(),l)return s=null,l+""||null}return l.source=function(e){return arguments.length?(t=e,l):t},l.target=function(e){return arguments.length?(n=e,l):n},l.x=function(e){return arguments.length?(r="function"==typeof e?e:Vb(+e),l):r},l.y=function(e){return arguments.length?(i="function"==typeof e?e:Vb(+e),l):i},l.context=function(t){return arguments.length?(null==t?o=s=null:s=e(o=t),l):o},l}const O_=Gb(3);var L_={draw(e,t){const n=.59436*Gb(t+Wb(t/28,.75)),r=n/2,i=r*O_;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},N_={draw(e,t){const n=Gb(t/Zb);e.moveTo(n,0),e.arc(0,0,n,0,Qb)}},P_={draw(e,t){const n=Gb(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};const R_=Gb(1/3),j_=2*R_;var F_={draw(e,t){const n=Gb(t/j_),r=n*R_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},B_={draw(e,t){const n=.62625*Gb(t);e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},Y_={draw(e,t){const n=.87559*Gb(t-Wb(t/7,2));e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},V_={draw(e,t){const n=Gb(t),r=-n/2;e.rect(r,r,n,n)}},H_={draw(e,t){const n=.4431*Gb(t);e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}};const U_=$b(Zb/10)/$b(7*Zb/10),z_=$b(Qb/10)*U_,q_=-zb(Qb/10)*U_;var W_={draw(e,t){const n=Gb(.8908130915292852*t),r=z_*n,i=q_*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){const o=Qb*t/5,s=zb(o),a=$b(o);e.lineTo(a*n,-s*n),e.lineTo(s*r-a*i,a*r+s*i)}e.closePath()}};const $_=Gb(3);var G_={draw(e,t){const n=-Gb(t/(3*$_));e.moveTo(0,2*n),e.lineTo(-$_*n,-n),e.lineTo($_*n,-n),e.closePath()}};const K_=Gb(3);var Z_={draw(e,t){const n=.6824*Gb(t),r=n/2,i=n*K_/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}};const X_=-.5,Q_=Gb(3)/2,J_=1/Gb(12),ew=3*(J_/2+1);var tw={draw(e,t){const n=Gb(t/ew),r=n/2,i=n*J_,o=r,s=n*J_+n,a=-o,l=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(a,l),e.lineTo(X_*r-Q_*i,Q_*r+X_*i),e.lineTo(X_*o-Q_*s,Q_*o+X_*s),e.lineTo(X_*a-Q_*l,Q_*a+X_*l),e.lineTo(X_*r+Q_*i,X_*i-Q_*r),e.lineTo(X_*o+Q_*s,X_*s-Q_*o),e.lineTo(X_*a+Q_*l,X_*l-Q_*a),e.closePath()}},nw={draw(e,t){const n=.6189*Gb(t-Wb(t/6,1.7));e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}};const rw=[N_,P_,F_,V_,W_,G_,tw],iw=[N_,Y_,nw,Z_,L_,H_,B_];function ow(){}function sw(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function aw(e){this._context=e}function lw(e){this._context=e}function cw(e){this._context=e}function uw(e,t){this._basis=new aw(e),this._beta=t}aw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:sw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:sw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},lw.prototype={areaStart:ow,areaEnd:ow,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:sw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},cw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:sw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},uw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],s=e[n]-i,a=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*s),this._beta*t[l]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var dw=function e(t){function n(e){return 1===t?new aw(e):new uw(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function hw(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function pw(e,t){this._context=e,this._k=(1-t)/6}pw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:hw(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:hw(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var fw=function e(t){function n(e){return new pw(e,t)}return n.tension=function(t){return e(+t)},n}(0);function mw(e,t){this._context=e,this._k=(1-t)/6}mw.prototype={areaStart:ow,areaEnd:ow,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:hw(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var gw=function e(t){function n(e){return new mw(e,t)}return n.tension=function(t){return e(+t)},n}(0);function vw(e,t){this._context=e,this._k=(1-t)/6}vw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:hw(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var yw=function e(t){function n(e){return new vw(e,t)}return n.tension=function(t){return e(+t)},n}(0);function bw(e,t,n){var r=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>Kb){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Kb){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,s,e._x2,e._y2)}function _w(e,t){this._context=e,this._alpha=t}_w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:bw(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ww=function e(t){function n(e){return t?new _w(e,t):new pw(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Aw(e,t){this._context=e,this._alpha=t}Aw.prototype={areaStart:ow,areaEnd:ow,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bw(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var xw=function e(t){function n(e){return t?new Aw(e,t):new mw(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function kw(e,t){this._context=e,this._alpha=t}kw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bw(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Sw=function e(t){function n(e){return t?new kw(e,t):new vw(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ew(e){this._context=e}function Tw(e){return e<0?-1:1}function Dw(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(Tw(o)+Tw(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Cw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Mw(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function Iw(e){this._context=e}function Ow(e){this._context=new Lw(e)}function Lw(e){this._context=e}function Nw(e){this._context=e}function Pw(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Rw(e,t){this._context=e,this._t=t}function jw(e,t){if((i=e.length)>1)for(var n,r,i,o=1,s=e[t[0]],a=s.length;o<i;++o)for(r=s,s=e[t[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Fw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Bw(e,t){return e[t]}function Yw(e){const t=[];return t.key=e,t}function Vw(e){var t=e.map(Hw);return Fw(e).sort(function(e,n){return t[e]-t[n]})}function Hw(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}function Uw(e){var t=e.map(zw);return Fw(e).sort(function(e,n){return t[e]-t[n]})}function zw(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}Ew.prototype={areaStart:ow,areaEnd:ow,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Iw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Mw(this,this._t0,Cw(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Mw(this,Cw(this,n=Dw(this,e,t)),n);break;default:Mw(this,this._t0,n=Dw(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Ow.prototype=Object.create(Iw.prototype)).point=function(e,t){Iw.prototype.point.call(this,t,e)},Lw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Nw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Pw(e),i=Pw(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Rw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var qw=e=>()=>e;function Ww(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function $w(e,t,n){this.k=e,this.x=t,this.y=n}$w.prototype={constructor:$w,scale:function(e){return 1===e?this:new $w(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new $w(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Gw=new $w(1,0,0);function Kw(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Gw;return e.__zoom}function Zw(e){e.stopImmediatePropagation()}function Xw(e){e.preventDefault(),e.stopImmediatePropagation()}function Qw(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Jw(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function eA(){return this.__zoom||Gw}function tA(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function nA(){return navigator.maxTouchPoints||"ontouchstart"in this}function rA(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}Kw.prototype=$w.prototype,e.Adder=k,e.Delaunay=Sa,e.FormatSpecifier=Ml,e.InternMap=S,e.InternSet=E,e.Node=Ep,e.Path=xs,e.Voronoi=ba,e.ZoomTransform=$w,e.active=function(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>1&&n.name===t)return new to([[e]],Po,t,+r);return null},e.arc=function(){var e=t_,t=n_,n=Vb(0),r=null,i=r_,o=i_,s=o_,a=null,l=e_(c);function c(){var c,u,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-Xb,f=o.apply(this,arguments)-Xb,m=Hb(f-p),g=f>p;if(a||(a=c=l()),h<d&&(u=h,h=d,d=u),h>Kb)if(m>Qb-Kb)a.moveTo(h*zb(p),h*$b(p)),a.arc(0,0,h,p,f,!g),d>Kb&&(a.moveTo(d*zb(f),d*$b(f)),a.arc(0,0,d,f,p,g));else{var v,y,b=p,_=f,w=p,A=f,x=m,k=m,S=s.apply(this,arguments)/2,E=S>Kb&&(r?+r.apply(this,arguments):Gb(d*d+h*h)),T=Wb(Hb(h-d)/2,+n.apply(this,arguments)),D=T,C=T;if(E>Kb){var M=Jb(E/d*$b(S)),I=Jb(E/h*$b(S));(x-=2*M)>Kb?(w+=M*=g?1:-1,A-=M):(x=0,w=A=(p+f)/2),(k-=2*I)>Kb?(b+=I*=g?1:-1,_-=I):(k=0,b=_=(p+f)/2)}var O=h*zb(b),L=h*$b(b),N=d*zb(A),P=d*$b(A);if(T>Kb){var R,j=h*zb(_),F=h*$b(_),B=d*zb(w),Y=d*$b(w);if(m<Zb)if(R=function(e,t,n,r,i,o,s,a){var l=n-e,c=r-t,u=s-i,d=a-o,h=d*l-u*c;if(!(h*h<Kb))return[e+(h=(u*(t-o)-d*(e-i))/h)*l,t+h*c]}(O,L,B,Y,j,F,N,P)){var V=O-R[0],H=L-R[1],U=j-R[0],z=F-R[1],q=1/$b(function(e){return e>1?0:e<-1?Zb:Math.acos(e)}((V*U+H*z)/(Gb(V*V+H*H)*Gb(U*U+z*z)))/2),W=Gb(R[0]*R[0]+R[1]*R[1]);D=Wb(T,(d-W)/(q-1)),C=Wb(T,(h-W)/(q+1))}else D=C=0}k>Kb?C>Kb?(v=s_(B,Y,O,L,h,C,g),y=s_(j,F,N,P,h,C,g),a.moveTo(v.cx+v.x01,v.cy+v.y01),C<T?a.arc(v.cx,v.cy,C,Ub(v.y01,v.x01),Ub(y.y01,y.x01),!g):(a.arc(v.cx,v.cy,C,Ub(v.y01,v.x01),Ub(v.y11,v.x11),!g),a.arc(0,0,h,Ub(v.cy+v.y11,v.cx+v.x11),Ub(y.cy+y.y11,y.cx+y.x11),!g),a.arc(y.cx,y.cy,C,Ub(y.y11,y.x11),Ub(y.y01,y.x01),!g))):(a.moveTo(O,L),a.arc(0,0,h,b,_,!g)):a.moveTo(O,L),d>Kb&&x>Kb?D>Kb?(v=s_(N,P,j,F,d,-D,g),y=s_(O,L,B,Y,d,-D,g),a.lineTo(v.cx+v.x01,v.cy+v.y01),D<T?a.arc(v.cx,v.cy,D,Ub(v.y01,v.x01),Ub(y.y01,y.x01),!g):(a.arc(v.cx,v.cy,D,Ub(v.y01,v.x01),Ub(v.y11,v.x11),!g),a.arc(0,0,d,Ub(v.cy+v.y11,v.cx+v.x11),Ub(y.cy+y.y11,y.cx+y.x11),g),a.arc(y.cx,y.cy,D,Ub(y.y11,y.x11),Ub(y.y01,y.x01),!g))):a.arc(0,0,d,A,w,g):a.lineTo(N,P)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Zb/2;return[zb(r)*n,$b(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Vb(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Vb(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Vb(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Vb(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Vb(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Vb(+e),c):o},c.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:Vb(+e),c):s},c.context=function(e){return arguments.length?(a=null==e?null:e,c):a},c},e.area=f_,e.areaRadial=A_,e.ascending=t,e.autoType=function(e){for(var t in e){var n,r,i=e[t].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Ga&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;e[t]=i}return e},e.axisBottom=function(e){return Ce(3,e)},e.axisLeft=function(e){return Ce(4,e)},e.axisRight=function(e){return Ce(2,e)},e.axisTop=function(e){return Ce(1,e)},e.bin=ee,e.bisect=u,e.bisectCenter=c,e.bisectLeft=l,e.bisectRight=a,e.bisector=r,e.blob=function(e,t){return fetch(e,t).then(Ka)},e.blur=function(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let n=e.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!t)return e;const r=g(t),i=e.slice();return r(e,i,0,n,1),r(i,e,0,n,1),r(e,i,0,n,1),e},e.blur2=d,e.blurImage=h,e.brush=function(){return as(Zo)},e.brushSelection=function(e){var t=e.__brush;return t?t.dim.output(t.selection):null},e.brushX=function(){return as(Go)},e.brushY=function(){return as(Ko)},e.buffer=function(e,t){return fetch(e,t).then(Za)},e.chord=function(){return vs(!1,!1)},e.chordDirected=function(){return vs(!0,!1)},e.chordTranspose=function(){return vs(!1,!0)},e.cluster=function(){var e=vp,t=1,n=1,r=!1;function i(i){var o,s=0;i.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(yp,0)/e.length}(n),t.y=function(e){return 1+e.reduce(bp,0)}(n)):(t.x=o?s+=e(t,o):0,t.y=0,o=t)});var a=function(e){for(var t;t=e.children;)e=t[0];return e}(i),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),c=a.x-e(a,l)/2,u=l.x+e(l,a)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},e.color=Mn,e.contourDensity=function(){var e=Gs,t=Ks,n=Zs,r=960,i=500,o=20,s=2,a=3*o,l=r+2*a>>s,c=i+2*a>>s,u=js(20);function h(r){var i=new Float32Array(l*c),u=Math.pow(2,-s),h=-1;for(const o of r){var p=(e(o,++h,r)+a)*u,f=(t(o,h,r)+a)*u,m=+n(o,h,r);if(m&&p>=0&&p<l&&f>=0&&f<c){var g=Math.floor(p),v=Math.floor(f),y=p-g-.5,b=f-v-.5;i[g+v*l]+=(1-y)*(1-b)*m,i[g+1+v*l]+=y*(1-b)*m,i[g+1+(v+1)*l]+=y*b*m,i[g+(v+1)*l]+=(1-y)*b*m}}return d({data:i,width:l,height:c},o*u),i}function p(e){var t=h(e),n=u(t),r=Math.pow(2,2*s);return Array.isArray(n)||(n=K(Number.MIN_VALUE,te(t)/r,n)),Us().size([l,c]).thresholds(n.map(e=>e*r))(t).map((e,t)=>(e.value=+n[t],f(e)))}function f(e){return e.coordinates.forEach(m),e}function m(e){e.forEach(g)}function g(e){e.forEach(v)}function v(e){e[0]=e[0]*Math.pow(2,s)-a,e[1]=e[1]*Math.pow(2,s)-a}function y(){return l=r+2*(a=3*o)>>s,c=i+2*a>>s,p}return p.contours=function(e){var t=h(e),n=Us().size([l,c]),r=Math.pow(2,2*s),i=e=>{e=+e;var i=f(n.contour(t,e*r));return i.value=e,i};return Object.defineProperty(i,"max",{get:()=>te(t)/r}),i},p.x=function(t){return arguments.length?(e="function"==typeof t?t:js(+t),p):e},p.y=function(e){return arguments.length?(t="function"==typeof e?e:js(+e),p):t},p.weight=function(e){return arguments.length?(n="function"==typeof e?e:js(+e),p):n},p.size=function(e){if(!arguments.length)return[r,i];var t=+e[0],n=+e[1];if(!(t>=0&&n>=0))throw new Error("invalid size");return r=t,i=n,y()},p.cellSize=function(e){if(!arguments.length)return 1<<s;if(!((e=+e)>=1))throw new Error("invalid cell size");return s=Math.floor(Math.log(e)/Math.LN2),y()},p.thresholds=function(e){return arguments.length?(u="function"==typeof e?e:Array.isArray(e)?js(Ps.call(e)):js(e),p):u},p.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return o=(Math.sqrt(4*e*e+1)-1)/2,y()},p},e.contours=Us,e.count=v,e.create=function(e){return $t(Ye(e).call(document.documentElement))},e.creator=Ye,e.cross=function(...e){const t="function"==typeof e[e.length-1]&&function(e){return t=>e(...t)}(e.pop()),n=(e=e.map(_)).map(y),r=e.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||n.some(b))return o;for(;;){o.push(i.map((t,n)=>e[n][t]));let s=r;for(;++i[s]===n[s];){if(0===s)return t?o.map(t):o;i[s--]=0}}},e.csv=el,e.csvFormat=Pa,e.csvFormatBody=Ra,e.csvFormatRow=Fa,e.csvFormatRows=ja,e.csvFormatValue=Ba,e.csvParse=La,e.csvParseRows=Na,e.cubehelix=wr,e.cumsum=function(e,t){var n=0,r=0;return Float64Array.from(e,void 0===t?e=>n+=+e||0:i=>n+=+t(i,r++,e)||0)},e.curveBasis=function(e){return new aw(e)},e.curveBasisClosed=function(e){return new lw(e)},e.curveBasisOpen=function(e){return new cw(e)},e.curveBumpX=E_,e.curveBumpY=T_,e.curveBundle=dw,e.curveCardinal=fw,e.curveCardinalClosed=gw,e.curveCardinalOpen=yw,e.curveCatmullRom=ww,e.curveCatmullRomClosed=xw,e.curveCatmullRomOpen=Sw,e.curveLinear=u_,e.curveLinearClosed=function(e){return new Ew(e)},e.curveMonotoneX=function(e){return new Iw(e)},e.curveMonotoneY=function(e){return new Ow(e)},e.curveNatural=function(e){return new Nw(e)},e.curveStep=function(e){return new Rw(e,.5)},e.curveStepAfter=function(e){return new Rw(e,1)},e.curveStepBefore=function(e){return new Rw(e,0)},e.descending=n,e.deviation=A,e.difference=function(e,...t){e=new E(e);for(const n of t)for(const t of n)e.delete(t);return e},e.disjoint=function(e,t){const n=t[Symbol.iterator](),r=new E;for(const t of e){if(r.has(t))return!1;let e,i;for(;({value:e,done:i}=n.next())&&!i;){if(Object.is(t,e))return!1;r.add(e)}}return!0},e.dispatch=Ie,e.drag=function(){var e,t,n,r,i=ln,o=cn,s=un,a=dn,l={},c=Ie("start","drag","end"),u=0,d=0;function h(e){e.on("mousedown.drag",p).filter(a).on("touchstart.drag",g).on("touchmove.drag",v,Jt).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(s,a){if(!r&&i.call(this,s,a)){var l=b(this,o.call(this,s,a),s,a,"mouse");l&&($t(s.view).on("mousemove.drag",f,en).on("mouseup.drag",m,en),rn(s.view),tn(s),n=!1,e=s.clientX,t=s.clientY,l("start",s))}}function f(r){if(nn(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>d}l.mouse("drag",r)}function m(e){$t(e.view).on("mousemove.drag mouseup.drag",null),on(e.view,n),nn(e),l.mouse("end",e)}function g(e,t){if(i.call(this,e,t)){var n,r,s=e.changedTouches,a=o.call(this,e,t),l=s.length;for(n=0;n<l;++n)(r=b(this,a,e,t,s[n].identifier,s[n]))&&(tn(e),r("start",e,s[n]))}}function v(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=l[r[t].identifier])&&(nn(e),n("drag",e,r[t]))}function y(e){var t,n,i=e.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),t=0;t<o;++t)(n=l[i[t].identifier])&&(tn(e),n("end",e,i[t]))}function b(e,t,n,r,i,o){var a,d,p,f=c.copy(),m=Qt(o||n,t);if(null!=(p=s.call(e,new an("beforestart",{sourceEvent:n,target:h,identifier:i,active:u,x:m[0],y:m[1],dx:0,dy:0,dispatch:f}),r)))return a=p.x-m[0]||0,d=p.y-m[1]||0,function n(o,s,c){var g,v=m;switch(o){case"start":l[i]=n,g=u++;break;case"end":delete l[i],--u;case"drag":m=Qt(c||s,t),g=u}f.call(o,e,new an(o,{sourceEvent:s,subject:p,target:h,identifier:i,active:g,x:m[0]+a,y:m[1]+d,dx:m[0]-v[0],dy:m[1]-v[1],dispatch:f}),r)}}return h.filter=function(e){return arguments.length?(i="function"==typeof e?e:sn(!!e),h):i},h.container=function(e){return arguments.length?(o="function"==typeof e?e:sn(e),h):o},h.subject=function(e){return arguments.length?(s="function"==typeof e?e:sn(e),h):s},h.touchable=function(e){return arguments.length?(a="function"==typeof e?e:sn(!!e),h):a},h.on=function(){var e=c.on.apply(c,arguments);return e===c?h:e},h.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,h):Math.sqrt(d)},h},e.dragDisable=rn,e.dragEnable=on,e.dsv=function(e,t,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=Ia(e);return Qa(t,n).then(function(e){return i.parse(e,r)})},e.dsvFormat=Ia,e.easeBack=Do,e.easeBackIn=Eo,e.easeBackInOut=Do,e.easeBackOut=To,e.easeBounce=ko,e.easeBounceIn=function(e){return 1-ko(1-e)},e.easeBounceInOut=function(e){return((e*=2)<=1?1-ko(1-e):ko(e-1)+1)/2},e.easeBounceOut=ko,e.easeCircle=go,e.easeCircleIn=function(e){return 1-Math.sqrt(1-e*e)},e.easeCircleInOut=go,e.easeCircleOut=function(e){return Math.sqrt(1- --e*e)},e.easeCubic=so,e.easeCubicIn=function(e){return e*e*e},e.easeCubicInOut=so,e.easeCubicOut=function(e){return--e*e*e+1},e.easeElastic=Io,e.easeElasticIn=Mo,e.easeElasticInOut=Oo,e.easeElasticOut=Io,e.easeExp=mo,e.easeExpIn=function(e){return fo(1-+e)},e.easeExpInOut=mo,e.easeExpOut=function(e){return 1-fo(e)},e.easeLinear=e=>+e,e.easePoly=co,e.easePolyIn=ao,e.easePolyInOut=co,e.easePolyOut=lo,e.easeQuad=oo,e.easeQuadIn=function(e){return e*e},e.easeQuadInOut=oo,e.easeQuadOut=function(e){return e*(2-e)},e.easeSin=po,e.easeSinIn=function(e){return 1==+e?1:1-Math.cos(e*ho)},e.easeSinInOut=po,e.easeSinOut=function(e){return Math.sin(e*ho)},e.every=function(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0},e.extent=x,e.fcumsum=function(e,t){const n=new k;let r=-1;return Float64Array.from(e,void 0===t?e=>n.add(+e||0):i=>n.add(+t(i,++r,e)||0))},e.filter=function(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of e)t(i,++r,e)&&n.push(i);return n},e.flatGroup=function(e,...t){return N(L(e,...t),t)},e.flatRollup=function(e,t,...n){return N(R(e,t,...n),n)},e.forceCenter=function(e,t){var n,r=1;function i(){var i,o,s=n.length,a=0,l=0;for(i=0;i<s;++i)a+=(o=n[i]).x,l+=o.y;for(a=(a/s-e)*r,l=(l/s-t)*r,i=0;i<s;++i)(o=n[i]).x-=a,o.y-=l}return null==e&&(e=0),null==t&&(t=0),i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i.strength=function(e){return arguments.length?(r=+e,i):r},i},e.forceCollide=function(e){var t,n,r,i=1,o=1;function s(){for(var e,s,l,c,u,d,h,p=t.length,f=0;f<o;++f)for(s=dl(t,vl,yl).visitAfter(a),e=0;e<p;++e)l=t[e],d=n[l.index],h=d*d,c=l.x+l.vx,u=l.y+l.vy,s.visit(m);function m(e,t,n,o,s){var a=e.data,p=e.r,f=d+p;if(!a)return t>c+f||o<c-f||n>u+f||s<u-f;if(a.index>l.index){var m=c-a.x-a.vx,g=u-a.y-a.vy,v=m*m+g*g;v<f*f&&(0===m&&(v+=(m=gl(r))*m),0===g&&(v+=(g=gl(r))*g),v=(f-(v=Math.sqrt(v)))/v*i,l.vx+=(m*=v)*(f=(p*=p)/(h+p)),l.vy+=(g*=v)*f,a.vx-=m*(f=1-f),a.vy-=g*f)}}}function a(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function l(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r<o;++r)i=t[r],n[i.index]=+e(i,r,t)}}return"function"!=typeof e&&(e=ml(null==e?1:+e)),s.initialize=function(e,n){t=e,r=n,l()},s.iterations=function(e){return arguments.length?(o=+e,s):o},s.strength=function(e){return arguments.length?(i=+e,s):i},s.radius=function(t){return arguments.length?(e="function"==typeof t?t:ml(+t),l(),s):e},s},e.forceLink=function(e){var t,n,r,i,o,s,a=bl,l=function(e){return 1/Math.min(i[e.source.index],i[e.target.index])},c=ml(30),u=1;function d(r){for(var i=0,a=e.length;i<u;++i)for(var l,c,d,h,p,f,m,g=0;g<a;++g)c=(l=e[g]).source,h=(d=l.target).x+d.vx-c.x-c.vx||gl(s),p=d.y+d.vy-c.y-c.vy||gl(s),h*=f=((f=Math.sqrt(h*h+p*p))-n[g])/f*r*t[g],p*=f,d.vx-=h*(m=o[g]),d.vy-=p*m,c.vx+=h*(m=1-m),c.vy+=p*m}function h(){if(r){var s,l,c=r.length,u=e.length,d=new Map(r.map((e,t)=>[a(e,t,r),e]));for(s=0,i=new Array(c);s<u;++s)(l=e[s]).index=s,"object"!=typeof l.source&&(l.source=_l(d,l.source)),"object"!=typeof l.target&&(l.target=_l(d,l.target)),i[l.source.index]=(i[l.source.index]||0)+1,i[l.target.index]=(i[l.target.index]||0)+1;for(s=0,o=new Array(u);s<u;++s)l=e[s],o[s]=i[l.source.index]/(i[l.source.index]+i[l.target.index]);t=new Array(u),p(),n=new Array(u),f()}}function p(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+l(e[n],n,e)}function f(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+c(e[t],t,e)}return null==e&&(e=[]),d.initialize=function(e,t){r=e,s=t,h()},d.links=function(t){return arguments.length?(e=t,h(),d):e},d.id=function(e){return arguments.length?(a=e,d):a},d.iterations=function(e){return arguments.length?(u=+e,d):u},d.strength=function(e){return arguments.length?(l="function"==typeof e?e:ml(+e),p(),d):l},d.distance=function(e){return arguments.length?(c="function"==typeof e?e:ml(+e),f(),d):c},d},e.forceManyBody=function(){var e,t,n,r,i,o=ml(-30),s=1,a=1/0,l=.81;function c(n){var i,o=e.length,s=dl(e,Al,xl).visitAfter(d);for(r=n,i=0;i<o;++i)t=e[i],s.visit(h)}function u(){if(e){var t,n,r=e.length;for(i=new Array(r),t=0;t<r;++t)n=e[t],i[n.index]=+o(n,t,e)}}function d(e){var t,n,r,o,s,a=0,l=0;if(e.length){for(r=o=s=0;s<4;++s)(t=e[s])&&(n=Math.abs(t.value))&&(a+=t.value,l+=n,r+=n*t.x,o+=n*t.y);e.x=r/l,e.y=o/l}else{(t=e).x=t.data.x,t.y=t.data.y;do{a+=i[t.data.index]}while(t=t.next)}e.value=a}function h(e,o,c,u){if(!e.value)return!0;var d=e.x-t.x,h=e.y-t.y,p=u-o,f=d*d+h*h;if(p*p/l<f)return f<a&&(0===d&&(f+=(d=gl(n))*d),0===h&&(f+=(h=gl(n))*h),f<s&&(f=Math.sqrt(s*f)),t.vx+=d*e.value*r/f,t.vy+=h*e.value*r/f),!0;if(!(e.length||f>=a)){(e.data!==t||e.next)&&(0===d&&(f+=(d=gl(n))*d),0===h&&(f+=(h=gl(n))*h),f<s&&(f=Math.sqrt(s*f)));do{e.data!==t&&(p=i[e.data.index]*r/f,t.vx+=d*p,t.vy+=h*p)}while(e=e.next)}}return c.initialize=function(t,r){e=t,n=r,u()},c.strength=function(e){return arguments.length?(o="function"==typeof e?e:ml(+e),u(),c):o},c.distanceMin=function(e){return arguments.length?(s=e*e,c):Math.sqrt(s)},c.distanceMax=function(e){return arguments.length?(a=e*e,c):Math.sqrt(a)},c.theta=function(e){return arguments.length?(l=e*e,c):Math.sqrt(l)},c},e.forceRadial=function(e,t,n){var r,i,o,s=ml(.1);function a(e){for(var s=0,a=r.length;s<a;++s){var l=r[s],c=l.x-t||1e-6,u=l.y-n||1e-6,d=Math.sqrt(c*c+u*u),h=(o[s]-d)*i[s]*e/d;l.vx+=c*h,l.vy+=u*h}}function l(){if(r){var t,n=r.length;for(i=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(r[t],t,r),i[t]=isNaN(o[t])?0:+s(r[t],t,r)}}return"function"!=typeof e&&(e=ml(+e)),null==t&&(t=0),null==n&&(n=0),a.initialize=function(e){r=e,l()},a.strength=function(e){return arguments.length?(s="function"==typeof e?e:ml(+e),l(),a):s},a.radius=function(t){return arguments.length?(e="function"==typeof t?t:ml(+t),l(),a):e},a.x=function(e){return arguments.length?(t=+e,a):t},a.y=function(e){return arguments.length?(n=+e,a):n},a},e.forceSimulation=function(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=xi(d),c=Ie("tick","end"),u=function(){let e=1;return()=>(e=(1664525*e+1013904223)%wl)/wl}();function d(){h(),c.call("tick",t),n<r&&(l.stop(),c.call("end",t))}function h(r){var l,c,u=e.length;void 0===r&&(r=1);for(var d=0;d<r;++d)for(n+=(o-n)*i,a.forEach(function(e){e(n)}),l=0;l<u;++l)null==(c=e[l]).fx?c.x+=c.vx*=s:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=s:(c.y=c.fy,c.vy=0);return t}function p(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var i=10*Math.sqrt(.5+n),o=n*kl;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function f(t){return t.initialize&&t.initialize(e,u),t}return null==e&&(e=[]),p(),t={tick:h,restart:function(){return l.restart(d),t},stop:function(){return l.stop(),t},nodes:function(n){return arguments.length?(e=n,p(),a.forEach(f),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(s=1-e,t):1-s},randomSource:function(e){return arguments.length?(u=e,a.forEach(f),t):u},force:function(e,n){return arguments.length>1?(null==n?a.delete(e):a.set(e,f(n)),t):a.get(e)},find:function(t,n,r){var i,o,s,a,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c<u;++c)(s=(i=t-(a=e[c]).x)*i+(o=n-a.y)*o)<r&&(l=a,r=s);return l},on:function(e,n){return arguments.length>1?(c.on(e,n),t):c.on(e)}}},e.forceX=function(e){var t,n,r,i=ml(.1);function o(e){for(var i,o=0,s=t.length;o<s;++o)(i=t[o]).vx+=(r[o]-i.x)*n[o]*e}function s(){if(t){var o,s=t.length;for(n=new Array(s),r=new Array(s),o=0;o<s;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=ml(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:ml(+e),s(),o):i},o.x=function(t){return arguments.length?(e="function"==typeof t?t:ml(+t),s(),o):e},o},e.forceY=function(e){var t,n,r,i=ml(.1);function o(e){for(var i,o=0,s=t.length;o<s;++o)(i=t[o]).vy+=(r[o]-i.y)*n[o]*e}function s(){if(t){var o,s=t.length;for(n=new Array(s),r=new Array(s),o=0;o<s;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=ml(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:ml(+e),s(),o):i},o.y=function(t){return arguments.length?(e="function"==typeof t?t:ml(+t),s(),o):e},o},e.formatDefaultLocale=Fl,e.formatLocale=jl,e.formatSpecifier=Cl,e.fsum=function(e,t){const n=new k;if(void 0===t)for(let t of e)(t=+t)&&n.add(t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n},e.geoAlbers=Kh,e.geoAlbersUsa=function(){var e,t,n,r,i,o,s=Kh(),a=Gh().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=Gh().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(e,t){o=[e,t]}};function u(e){var t=e[0],s=e[1];return o=null,n.point(t,s),o||(r.point(t,s),o)||(i.point(t,s),o)}function d(){return e=t=null,u}return u.invert=function(e){var t=s.scale(),n=s.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(e)},u.stream=function(n){return e&&t===n?e:(r=[s.stream(t=n),a.stream(n),l.stream(n)],i=r.length,e={point:function(e,t){for(var n=-1;++n<i;)r[n].point(e,t)},sphere:function(){for(var e=-1;++e<i;)r[e].sphere()},lineStart:function(){for(var e=-1;++e<i;)r[e].lineStart()},lineEnd:function(){for(var e=-1;++e<i;)r[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<i;)r[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<i;)r[e].polygonEnd()}});var r,i},u.precision=function(e){return arguments.length?(s.precision(e),a.precision(e),l.precision(e),d()):s.precision()},u.scale=function(e){return arguments.length?(s.scale(e),a.scale(.35*e),l.scale(e),u.translate(s.translate())):s.scale()},u.translate=function(e){if(!arguments.length)return s.translate();var t=s.scale(),o=+e[0],u=+e[1];return n=s.translate(e).clipExtent([[o-.455*t,u-.238*t],[o+.455*t,u+.238*t]]).stream(c),r=a.translate([o-.307*t,u+.201*t]).clipExtent([[o-.425*t+Hl,u+.12*t+Hl],[o-.214*t-Hl,u+.234*t-Hl]]).stream(c),i=l.translate([o-.205*t,u+.212*t]).clipExtent([[o-.214*t+Hl,u+.166*t+Hl],[o-.115*t-Hl,u+.234*t-Hl]]).stream(c),d()},u.fitExtent=function(e,t){return Rh(u,e,t)},u.fitSize=function(e,t){return jh(u,e,t)},u.fitWidth=function(e,t){return Fh(u,e,t)},u.fitHeight=function(e,t){return Bh(u,e,t)},u.scale(1070)},e.geoArea=function(e){return Rc=new k,yc(e,jc),2*Rc},e.geoAzimuthalEqualArea=function(){return zh(Qh).scale(124.75).clipAngle(179.999)},e.geoAzimuthalEqualAreaRaw=Qh,e.geoAzimuthalEquidistant=function(){return zh(Jh).scale(79.4188).clipAngle(179.999)},e.geoAzimuthalEquidistantRaw=Jh,e.geoBounds=function(e){var t,n,r,i,o,s,a;if(Tc=Ec=-(kc=Sc=1/0),Lc=[],yc(e,du),n=Lc.length){for(Lc.sort(_u),t=1,o=[r=Lc[0]];t<n;++t)wu(r,(i=Lc[t])[0])||wu(r,i[1])?(bu(r[0],i[1])>bu(r[0],r[1])&&(r[1]=i[1]),bu(i[0],r[1])>bu(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(s=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)i=o[t],(a=bu(r[1],i[0]))>s&&(s=a,kc=i[0],Ec=r[1])}return Lc=Nc=null,kc===1/0||Sc===1/0?[[NaN,NaN],[NaN,NaN]]:[[kc,Sc],[Ec,Tc]]},e.geoCentroid=function(e){Kc=Zc=Xc=Qc=Jc=eu=tu=nu=0,ru=new k,iu=new k,ou=new k,yc(e,Au);var t=+ru,n=+iu,r=+ou,i=nc(t,n,r);return i<Ul&&(t=eu,n=tu,r=nu,Zc<Hl&&(t=Xc,n=Qc,r=Jc),(i=nc(t,n,r))<Ul)?[NaN,NaN]:[Ql(n,t)*Gl,uc(r/i)*Gl]},e.geoCircle=function(){var e,t,n=Lu([0,0]),r=Lu(90),i=Lu(6),o={point:function(n,r){e.push(n=t(n,r)),n[0]*=Gl,n[1]*=Gl}};function s(){var s=n.apply(this,arguments),a=r.apply(this,arguments)*Kl,l=i.apply(this,arguments)*Kl;return e=[],t=Ru(-s[0]*Kl,-s[1]*Kl,0).invert,Vu(o,a,l,1),s={type:"Polygon",coordinates:[e]},e=t=null,s}return s.center=function(e){return arguments.length?(n="function"==typeof e?e:Lu([+e[0],+e[1]]),s):n},s.radius=function(e){return arguments.length?(r="function"==typeof e?e:Lu(+e),s):r},s.precision=function(e){return arguments.length?(i="function"==typeof e?e:Lu(+e),s):i},s},e.geoClipAntimeridian=Ju,e.geoClipCircle=ed,e.geoClipExtent=function(){var e,t,n,r=0,i=0,o=960,s=500;return n={stream:function(n){return e&&t===n?e:e=ad(r,i,o,s)(t=n)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],s=+a[1][1],e=t=null,n):[[r,i],[o,s]]}}},e.geoClipRectangle=ad,e.geoConicConformal=function(){return Wh(rp).scale(109.5).parallels([30,30])},e.geoConicConformalRaw=rp,e.geoConicEqualArea=Gh,e.geoConicEqualAreaRaw=$h,e.geoConicEquidistant=function(){return Wh(op).scale(131.154).center([0,13.9389])},e.geoConicEquidistantRaw=op,e.geoContains=function(e,t){return(e&&gd.hasOwnProperty(e.type)?gd[e.type]:yd)(e,t)},e.geoDistance=md,e.geoEqualEarth=function(){return zh(dp).scale(177.158)},e.geoEqualEarthRaw=dp,e.geoEquirectangular=function(){return zh(ip).scale(152.63)},e.geoEquirectangularRaw=ip,e.geoGnomonic=function(){return zh(hp).scale(144.049).clipAngle(60)},e.geoGnomonicRaw=hp,e.geoGraticule=Ed,e.geoGraticule10=function(){return Ed()()},e.geoIdentity=function(){var e,t,n,r,i,o,s,a=1,l=0,c=0,u=1,d=1,h=0,p=null,f=1,m=1,g=Lh({point:function(e,t){var n=b([e,t]);this.stream.point(n[0],n[1])}}),v=Id;function y(){return f=a*u,m=a*d,o=s=null,b}function b(n){var r=n[0]*f,i=n[1]*m;if(h){var o=i*e-r*t;r=r*e+i*t,i=o}return[r+l,i+c]}return b.invert=function(n){var r=n[0]-l,i=n[1]-c;if(h){var o=i*e+r*t;r=r*e-i*t,i=o}return[r/f,i/m]},b.stream=function(e){return o&&s===e?o:o=g(v(s=e))},b.postclip=function(e){return arguments.length?(v=e,p=n=r=i=null,y()):v},b.clipExtent=function(e){return arguments.length?(v=null==e?(p=n=r=i=null,Id):ad(p=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),y()):null==p?null:[[p,n],[r,i]]},b.scale=function(e){return arguments.length?(a=+e,y()):a},b.translate=function(e){return arguments.length?(l=+e[0],c=+e[1],y()):[l,c]},b.angle=function(n){return arguments.length?(t=oc(h=n%360*Kl),e=Jl(h),y()):h*Gl},b.reflectX=function(e){return arguments.length?(u=e?-1:1,y()):u<0},b.reflectY=function(e){return arguments.length?(d=e?-1:1,y()):d<0},b.fitExtent=function(e,t){return Rh(b,e,t)},b.fitSize=function(e,t){return jh(b,e,t)},b.fitWidth=function(e,t){return Fh(b,e,t)},b.fitHeight=function(e,t){return Bh(b,e,t)},b},e.geoInterpolate=function(e,t){var n=e[0]*Kl,r=e[1]*Kl,i=t[0]*Kl,o=t[1]*Kl,s=Jl(r),a=oc(r),l=Jl(o),c=oc(o),u=s*Jl(n),d=s*oc(n),h=l*Jl(i),p=l*oc(i),f=2*uc(ac(dc(o-r)+s*l*dc(i-n))),m=oc(f),g=f?function(e){var t=oc(e*=f)/m,n=oc(f-e)/m,r=n*u+t*h,i=n*d+t*p,o=n*a+t*c;return[Ql(i,r)*Gl,Ql(o,ac(r*r+i*i))*Gl]}:function(){return[n*Gl,r*Gl]};return g.distance=f,g},e.geoLength=hd,e.geoMercator=function(){return tp(ep).scale(961/$l)},e.geoMercatorRaw=ep,e.geoNaturalEarth1=function(){return zh(pp).scale(175.295)},e.geoNaturalEarth1Raw=pp,e.geoOrthographic=function(){return zh(fp).scale(249.5).clipAngle(90+Hl)},e.geoOrthographicRaw=fp,e.geoPath=function(e,t){let n,r,i=3,o=4.5;function s(e){return e&&("function"==typeof o&&r.pointRadius(+o.apply(this,arguments)),yc(e,n(r))),r.result()}return s.area=function(e){return yc(e,n(Ud)),Ud.result()},s.measure=function(e){return yc(e,n(Eh)),Eh.result()},s.bounds=function(e){return yc(e,n(Kd)),Kd.result()},s.centroid=function(e){return yc(e,n(mh)),mh.result()},s.projection=function(t){return arguments.length?(n=null==t?(e=null,Id):(e=t).stream,s):e},s.context=function(e){return arguments.length?(r=null==e?(t=null,new Ih(i)):new gh(t=e),"function"!=typeof o&&r.pointRadius(o),s):t},s.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(r.pointRadius(+e),+e),s):o},s.digits=function(e){if(!arguments.length)return i;if(null==e)i=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);i=t}return null===t&&(r=new Ih(i)),s},s.projection(e).digits(i).context(t)},e.geoProjection=zh,e.geoProjectionMutator=qh,e.geoRotation=Yu,e.geoStereographic=function(){return zh(mp).scale(250).clipAngle(142)},e.geoStereographicRaw=mp,e.geoStream=yc,e.geoTransform=function(e){return{stream:Lh(e)}},e.geoTransverseMercator=function(){var e=tp(gp),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=gp,e.gray=function(e,t){return new ir(e,0,0,null==t?1:t)},e.greatest=ae,e.greatestIndex=function(e,n=t){if(1===n.length)return ne(e,n);let r,i=-1,o=-1;for(const t of e)++o,(i<0?0===n(t,t):n(t,r)>0)&&(r=t,i=o);return i},e.group=O,e.groupSort=function(e,n,r){return(2!==n.length?Y(P(e,n,r),([e,n],[r,i])=>t(n,i)||t(e,r)):Y(O(e,r),([e,r],[i,o])=>n(r,o)||t(e,i))).map(([e])=>e)},e.groups=L,e.hcl=ur,e.hierarchy=wp,e.histogram=ee,e.hsl=Un,e.html=ol,e.image=function(e,t){return new Promise(function(n,r){var i=new Image;for(var o in t)i[o]=t[o];i.onerror=r,i.onload=function(){n(i)},i.src=e})},e.index=function(e,...t){return F(e,I,j,t)},e.indexes=function(e,...t){return F(e,Array.from,j,t)},e.interpolate=Ur,e.interpolateArray=function(e,t){return(Pr(t)?Nr:Rr)(e,t)},e.interpolateBasis=kr,e.interpolateBasisClosed=Sr,e.interpolateBlues=yb,e.interpolateBrBG=My,e.interpolateBuGn=Gy,e.interpolateBuPu=Zy,e.interpolateCividis=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},e.interpolateCool=Ib,e.interpolateCubehelix=ai,e.interpolateCubehelixDefault=Cb,e.interpolateCubehelixLong=li,e.interpolateDate=jr,e.interpolateDiscrete=function(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}},e.interpolateGnBu=Qy,e.interpolateGreens=_b,e.interpolateGreys=Ab,e.interpolateHcl=ii,e.interpolateHclLong=oi,e.interpolateHsl=ti,e.interpolateHslLong=ni,e.interpolateHue=function(e,t){var n=Dr(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}},e.interpolateInferno=Bb,e.interpolateLab=function(e,t){var n=Cr((e=rr(e)).l,(t=rr(t)).l),r=Cr(e.a,t.a),i=Cr(e.b,t.b),o=Cr(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}},e.interpolateMagma=Fb,e.interpolateNumber=Fr,e.interpolateNumberArray=Nr,e.interpolateObject=Br,e.interpolateOrRd=eb,e.interpolateOranges=Db,e.interpolatePRGn=Oy,e.interpolatePiYG=Ny,e.interpolatePlasma=Yb,e.interpolatePuBu=ib,e.interpolatePuBuGn=nb,e.interpolatePuOr=Ry,e.interpolatePuRd=sb,e.interpolatePurples=kb,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ob.h=360*e-100,Ob.s=1.5-1.5*t,Ob.l=.8-.9*t,Ob+""},e.interpolateRdBu=Fy,e.interpolateRdGy=Yy,e.interpolateRdPu=lb,e.interpolateRdYlBu=Hy,e.interpolateRdYlGn=zy,e.interpolateReds=Eb,e.interpolateRgb=Mr,e.interpolateRgbBasis=Or,e.interpolateRgbBasisClosed=Lr,e.interpolateRound=zr,e.interpolateSinebow=function(e){var t;return e=(.5-e)*Math.PI,Lb.r=255*(t=Math.sin(e))*t,Lb.g=255*(t=Math.sin(e+Nb))*t,Lb.b=255*(t=Math.sin(e+Pb))*t,Lb+""},e.interpolateSpectral=Wy,e.interpolateString=Hr,e.interpolateTransformCss=Zr,e.interpolateTransformSvg=Xr,e.interpolateTurbo=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},e.interpolateViridis=jb,e.interpolateWarm=Mb,e.interpolateYlGn=hb,e.interpolateYlGnBu=ub,e.interpolateYlOrBr=fb,e.interpolateYlOrRd=gb,e.interpolateZoom=Jr,e.interrupt=Pi,e.intersection=function(e,...t){e=new E(e),t=t.map(be);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e},e.interval=function(e,t,n){var r=new Ai,i=t;return null==t?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(e,t,n){t=+t,n=null==n?_i():+n,r._restart(function o(s){s+=i,r._restart(o,i+=t,n),e(s)},t,n)},r.restart(e,t,n),r)},e.isoFormat=sy,e.isoParse=ly,e.json=function(e,t){return fetch(e,t).then(nl)},e.lab=rr,e.lch=function(e,t,n,r){return 1===arguments.length?cr(e):new dr(n,t,e,null==r?1:r)},e.least=function(e,n=t){let r,i=!1;if(1===n.length){let o;for(const s of e){const e=n(s);(i?t(e,o)<0:0===t(e,e))&&(r=s,o=e,i=!0)}}else for(const t of e)(i?n(t,r)<0:0===n(t,t))&&(r=t,i=!0);return r},e.leastIndex=fe,e.line=p_,e.lineRadial=w_,e.link=I_,e.linkHorizontal=function(){return I_(E_)},e.linkRadial=function(){const e=I_(D_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.linkVertical=function(){return I_(T_)},e.local=Kt,e.map=function(e,t){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof t)throw new TypeError("mapper is not a function");return Array.from(e,(n,r)=>t(n,r,e))},e.matcher=We,e.max=te,e.maxIndex=ne,e.mean=function(e,t){let n=0,r=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(++n,r+=t);else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n},e.median=function(e,t){return le(e,.5,t)},e.medianIndex=function(e,t){return ue(e,.5,t)},e.merge=de,e.min=re,e.minIndex=ie,e.mode=function(e,t){const n=new S;if(void 0===t)for(let t of e)null!=t&&t>=t&&n.set(t,(n.get(t)||0)+1);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&i>=i&&n.set(i,(n.get(i)||0)+1)}let r,i=0;for(const[e,t]of n)t>i&&(i=t,r=e);return r},e.namespace=je,e.namespaces=Re,e.nice=Q,e.now=_i,e.pack=function(){var e=null,t=1,n=1,r=Cp;function i(i){const o=Op();return i.x=t/2,i.y=n/2,e?i.eachBefore($p(e)).eachAfter(Gp(r,.5,o)).eachBefore(Kp(1)):i.eachBefore($p(Wp)).eachAfter(Gp(Cp,1,o)).eachAfter(Gp(r,i.r/Math.min(t,n),o)).eachBefore(Kp(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=Tp(t),i):e},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"==typeof e?e:Mp(+e),i):r},i},e.packEnclose=function(e){return Lp(e,Op())},e.packSiblings=function(e){return qp(e,Op()),e},e.pairs=function(e,t=he){const n=[];let r,i=!1;for(const o of e)i&&n.push(t(r,o)),r=o,i=!0;return n},e.partition=function(){var e=1,t=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/o,i.eachBefore(function(e,t){return function(r){r.children&&Xp(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var i=r.x0,o=r.y0,s=r.x1-n,a=r.y1-n;s<i&&(i=s=(i+s)/2),a<o&&(o=a=(o+a)/2),r.x0=i,r.y0=o,r.x1=s,r.y1=a}}(t,o)),r&&i.eachBefore(Zp),i}return i.round=function(e){return arguments.length?(r=!!e,i):r},i.size=function(n){return arguments.length?(e=+n[0],t=+n[1],i):[e,t]},i.padding=function(e){return arguments.length?(n=+e,i):n},i},e.path=ks,e.pathRound=function(e=3){return new xs(+e)},e.permute=B,e.pie=function(){var e=g_,t=m_,n=null,r=Vb(0),i=Vb(Qb),o=Vb(0);function s(s){var a,l,c,u,d,h=(s=l_(s)).length,p=0,f=new Array(h),m=new Array(h),g=+r.apply(this,arguments),v=Math.min(Qb,Math.max(-Qb,i.apply(this,arguments)-g)),y=Math.min(Math.abs(v)/h,o.apply(this,arguments)),b=y*(v<0?-1:1);for(a=0;a<h;++a)(d=m[f[a]=a]=+e(s[a],a,s))>0&&(p+=d);for(null!=t?f.sort(function(e,n){return t(m[e],m[n])}):null!=n&&f.sort(function(e,t){return n(s[e],s[t])}),a=0,c=p?(v-h*b)/p:0;a<h;++a,g=u)l=f[a],u=g+((d=m[l])>0?d*c:0)+b,m[l]={data:s[l],index:a,value:d,startAngle:g,endAngle:u,padAngle:y};return m}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:Vb(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Vb(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Vb(+e),s):i},s.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Vb(+e),s):o},s},e.piecewise=ci,e.pointRadial=x_,e.pointer=Qt,e.pointers=function(e,t){return e.target&&(e=Xt(e),void 0===t&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,e=>Qt(e,t))},e.polygonArea=function(e){for(var t,n=-1,r=e.length,i=e[r-1],o=0;++n<r;)t=i,i=e[n],o+=t[1]*i[0]-t[0]*i[1];return o/2},e.polygonCentroid=function(e){for(var t,n,r=-1,i=e.length,o=0,s=0,a=e[i-1],l=0;++r<i;)t=a,a=e[r],l+=n=t[0]*a[1]-a[0]*t[1],o+=(t[0]+a[0])*n,s+=(t[1]+a[1])*n;return[o/(l*=3),s/l]},e.polygonContains=function(e,t){for(var n,r,i=e.length,o=e[i-1],s=t[0],a=t[1],l=o[0],c=o[1],u=!1,d=0;d<i;++d)n=(o=e[d])[0],(r=o[1])>a!=c>a&&s<(l-n)*(a-r)/(c-r)+n&&(u=!u),l=n,c=r;return u},e.polygonHull=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(yf),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=bf(r),s=bf(i),a=s[0]===o[0],l=s[s.length-1]===o[o.length-1],c=[];for(t=o.length-1;t>=0;--t)c.push(e[r[o[t]][2]]);for(t=+a;t<s.length-l;++t)c.push(e[r[s[t]][2]]);return c},e.polygonLength=function(e){for(var t,n,r=-1,i=e.length,o=e[i-1],s=o[0],a=o[1],l=0;++r<i;)t=s,n=a,t-=s=(o=e[r])[0],n-=a=o[1],l+=Math.hypot(t,n);return l},e.precisionFixed=Bl,e.precisionPrefix=Yl,e.precisionRound=Vl,e.quadtree=dl,e.quantile=le,e.quantileIndex=ue,e.quantileSorted=ce,e.quantize=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n},e.quickselect=oe,e.radialArea=A_,e.radialLine=w_,e.randomBates=Ef,e.randomBernoulli=Cf,e.randomBeta=Of,e.randomBinomial=Lf,e.randomCauchy=Pf,e.randomExponential=Tf,e.randomGamma=If,e.randomGeometric=Mf,e.randomInt=Af,e.randomIrwinHall=Sf,e.randomLcg=function(e=Math.random()){let t=0|(0<=e&&e<1?e/Ff:Math.abs(e));return()=>(t=1664525*t+1013904223|0,Ff*(t>>>0))},e.randomLogNormal=kf,e.randomLogistic=Rf,e.randomNormal=xf,e.randomPareto=Df,e.randomPoisson=jf,e.randomUniform=wf,e.randomWeibull=Nf,e.range=pe,e.rank=function(e,n=t){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");let r=Array.from(e);const i=new Float64Array(r.length);2!==n.length&&(r=r.map(n),n=t);const o=(e,t)=>n(r[e],r[t]);let s,a;return(e=Uint32Array.from(r,(e,t)=>t)).sort(n===t?(e,t)=>H(r[e],r[t]):V(o)),e.forEach((e,t)=>{const n=o(e,void 0===s?e:s);n>=0?((void 0===s||n>0)&&(s=e,a=t),i[e]=a):i[e]=NaN}),i},e.reduce=function(e,t,n){if("function"!=typeof t)throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let i,o,s=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++s}for(;({done:i,value:o}=r.next()),!i;)n=t(n,o,++s,e);return n},e.reverse=function(e){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(e).reverse()},e.rgb=Nn,e.ribbon=function(){return Ns()},e.ribbonArrow=function(){return Ns(Ls)},e.rollup=P,e.rollups=R,e.scaleBand=Uf,e.scaleDiverging=function e(){var t=tm(my()($f));return t.copy=function(){return py(t,e())},Yf.apply(t,arguments)},e.scaleDivergingLog=function e(){var t=cm(my()).domain([.1,1,10]);return t.copy=function(){return py(t,e()).base(t.base())},Yf.apply(t,arguments)},e.scaleDivergingPow=gy,e.scaleDivergingSqrt=function(){return gy.apply(null,arguments).exponent(.5)},e.scaleDivergingSymlog=function e(){var t=hm(my());return t.copy=function(){return py(t,e()).constant(t.constant())},Yf.apply(t,arguments)},e.scaleIdentity=function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,qf),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,qf):[0,1],tm(r)},e.scaleImplicit=Vf,e.scaleLinear=function e(){var t=Jf();return t.copy=function(){return Xf(t,e())},Bf.apply(t,arguments),tm(t)},e.scaleLog=function e(){const t=cm(Qf()).domain([1,10]);return t.copy=()=>Xf(t,e()).base(t.base()),Bf.apply(t,arguments),t},e.scaleOrdinal=Hf,e.scalePoint=function(){return zf(Uf.apply(null,arguments).paddingInner(1))},e.scalePow=vm,e.scaleQuantile=function e(){var n,r=[],i=[],o=[];function s(){var e=0,t=Math.max(1,i.length);for(o=new Array(t-1);++e<t;)o[e-1]=ce(r,e/t);return a}function a(e){return null==e||isNaN(e=+e)?n:i[u(o,e)]}return a.invertExtent=function(e){var t=i.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:r[0],t<o.length?o[t]:r[r.length-1]]},a.domain=function(e){if(!arguments.length)return r.slice();r=[];for(let t of e)null==t||isNaN(t=+t)||r.push(t);return r.sort(t),s()},a.range=function(e){return arguments.length?(i=Array.from(e),s()):i.slice()},a.unknown=function(e){return arguments.length?(n=e,a):n},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(r).range(i).unknown(n)},Bf.apply(a,arguments)},e.scaleQuantize=function e(){var t,n=0,r=1,i=1,o=[.5],s=[0,1];function a(e){return null!=e&&e<=e?s[u(o,e,0,i)]:t}function l(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+1);return a}return a.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,l()):[n,r]},a.range=function(e){return arguments.length?(i=(s=Array.from(e)).length-1,l()):s.slice()},a.invertExtent=function(e){var t=s.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return e().domain([n,r]).range(s).unknown(t)},Bf.apply(tm(a),arguments)},e.scaleRadial=function e(){var t,n=Jf(),r=[0,1],i=!1;function o(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(e){return n.invert(ym(e))},o.domain=function(e){return arguments.length?(n.domain(e),o):n.domain()},o.range=function(e){return arguments.length?(n.range((r=Array.from(e,qf)).map(ym)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(n.clamp(e),o):n.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(n.domain(),r).round(i).clamp(n.clamp()).unknown(t)},Bf.apply(o,arguments),tm(o)},e.scaleSequential=function e(){var t=tm(hy()($f));return t.copy=function(){return py(t,e())},Yf.apply(t,arguments)},e.scaleSequentialLog=function e(){var t=cm(hy()).domain([1,10]);return t.copy=function(){return py(t,e()).base(t.base())},Yf.apply(t,arguments)},e.scaleSequentialPow=fy,e.scaleSequentialQuantile=function e(){var n=[],r=$f;function i(e){if(null!=e&&!isNaN(e=+e))return r((u(n,e,1)-1)/(n.length-1))}return i.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(t),i},i.interpolator=function(e){return arguments.length?(r=e,i):r},i.range=function(){return n.map((e,t)=>r(t/(n.length-1)))},i.quantiles=function(e){return Array.from({length:e+1},(t,r)=>le(n,r/e))},i.copy=function(){return e(r).domain(n)},Yf.apply(i,arguments)},e.scaleSequentialSqrt=function(){return fy.apply(null,arguments).exponent(.5)},e.scaleSequentialSymlog=function e(){var t=hm(hy());return t.copy=function(){return py(t,e()).constant(t.constant())},Yf.apply(t,arguments)},e.scaleSqrt=function(){return vm.apply(null,arguments).exponent(.5)},e.scaleSymlog=function e(){var t=hm(Qf());return t.copy=function(){return Xf(t,e()).constant(t.constant())},Bf.apply(t,arguments)},e.scaleThreshold=function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[u(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},Bf.apply(o,arguments)},e.scaleTime=function(){return Bf.apply(dy(Lg,Ng,Eg,Ag,$m,Ym,Rm,Om,Mm,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},e.scaleUtc=function(){return Bf.apply(dy(Ig,Og,Dg,kg,lg,Hm,Fm,Nm,Mm,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},e.scan=function(e,t){const n=fe(e,t);return n<0?void 0:n},e.schemeAccent=by,e.schemeBlues=vb,e.schemeBrBG=Cy,e.schemeBuGn=$y,e.schemeBuPu=Ky,e.schemeCategory10=yy,e.schemeDark2=_y,e.schemeGnBu=Xy,e.schemeGreens=bb,e.schemeGreys=wb,e.schemeOrRd=Jy,e.schemeOranges=Tb,e.schemePRGn=Iy,e.schemePaired=wy,e.schemePastel1=Ay,e.schemePastel2=xy,e.schemePiYG=Ly,e.schemePuBu=rb,e.schemePuBuGn=tb,e.schemePuOr=Py,e.schemePuRd=ob,e.schemePurples=xb,e.schemeRdBu=jy,e.schemeRdGy=By,e.schemeRdPu=ab,e.schemeRdYlBu=Vy,e.schemeRdYlGn=Uy,e.schemeReds=Sb,e.schemeSet1=ky,e.schemeSet2=Sy,e.schemeSet3=Ey,e.schemeSpectral=qy,e.schemeTableau10=Ty,e.schemeYlGn=db,e.schemeYlGnBu=cb,e.schemeYlOrBr=pb,e.schemeYlOrRd=mb,e.select=$t,e.selectAll=function(e){return"string"==typeof e?new qt([document.querySelectorAll(e)],[document.documentElement]):new qt([Ue(e)],zt)},e.selection=Wt,e.selector=He,e.selectorAll=qe,e.shuffle=me,e.shuffler=ge,e.some=function(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1},e.sort=Y,e.stack=function(){var e=Vb([]),t=Fw,n=jw,r=Bw;function i(i){var o,s,a=Array.from(e.apply(this,arguments),Yw),l=a.length,c=-1;for(const e of i)for(o=0,++c;o<l;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,s=l_(t(a));o<l;++o)a[s[o]].index=o;return n(a,s),a}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Vb(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Vb(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?Fw:"function"==typeof e?e:Vb(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?jw:e,i):n},i},e.stackOffsetDiverging=function(e,t){if((a=e.length)>0)for(var n,r,i,o,s,a,l=0,c=e[t[0]].length;l<c;++l)for(o=s=0,n=0;n<a;++n)(i=(r=e[t[n]][l])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=s,r[0]=s+=i):(r[0]=0,r[1]=i)},e.stackOffsetExpand=function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,s=e[0].length;o<s;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}jw(e,t)}},e.stackOffsetNone=jw,e.stackOffsetSilhouette=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var s=0,a=0;s<n;++s)a+=e[s][r][1]||0;i[r][1]+=i[r][0]=-a/2}jw(e,t)}},e.stackOffsetWiggle=function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,s=1;s<r;++s){for(var a=0,l=0,c=0;a<i;++a){for(var u=e[t[a]],d=u[s][1]||0,h=(d-(u[s-1][1]||0))/2,p=0;p<a;++p){var f=e[t[p]];h+=(f[s][1]||0)-(f[s-1][1]||0)}l+=d,c+=h*d}n[s-1][1]+=n[s-1][0]=o,l&&(o-=c/l)}n[s-1][1]+=n[s-1][0]=o,jw(e,t)}},e.stackOrderAppearance=Vw,e.stackOrderAscending=Uw,e.stackOrderDescending=function(e){return Uw(e).reverse()},e.stackOrderInsideOut=function(e){var t,n,r=e.length,i=e.map(zw),o=Vw(e),s=0,a=0,l=[],c=[];for(t=0;t<r;++t)n=o[t],s<a?(s+=i[n],l.push(n)):(a+=i[n],c.push(n));return c.reverse().concat(l)},e.stackOrderNone=Fw,e.stackOrderReverse=function(e){return Fw(e).reverse()},e.stratify=function(){var e,t=tf,n=nf;function r(r){var i,o,s,a,l,c,u,d,h=Array.from(r),p=t,f=n,m=new Map;if(null!=e){const t=h.map((t,n)=>function(e){let t=(e=`${e}`).length;return of(e,t-1)&&!of(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r))),n=t.map(rf),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(rf(e)),h.push(ef));p=(e,n)=>t[n],f=(e,t)=>n[t]}for(s=0,i=h.length;s<i;++s)o=h[s],c=h[s]=new Ep(o),null!=(u=p(o,s,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?Jp:c)),null!=(u=f(o,s,r))&&(u+="")&&(c.parent=u);for(s=0;s<i;++s)if(u=(c=h[s]).parent){if(!(l=m.get(u)))throw new Error("missing: "+u);if(l===Jp)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(a)throw new Error("multiple roots");a=c}if(!a)throw new Error("no root");if(null!=e){for(;a.data===ef&&1===a.children.length;)a=a.children[0],--i;for(let e=h.length-1;e>=0&&(c=h[e]).data===ef;--e)c.data=null}if(a.parent=Qp,a.eachBefore(function(e){e.depth=e.parent.depth+1,--i}).eachBefore(Sp),a.parent=null,i>0)throw new Error("cycle");return a}return r.id=function(e){return arguments.length?(t=Tp(e),r):t},r.parentId=function(e){return arguments.length?(n=Tp(e),r):n},r.path=function(t){return arguments.length?(e=Tp(t),r):e},r},e.style=mt,e.subset=function(e,t){return _e(t,e)},e.sum=function(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n},e.superset=_e,e.svg=sl,e.symbol=function(e,t){let n=null,r=e_(i);function i(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return e="function"==typeof e?e:Vb(e||N_),t="function"==typeof t?t:Vb(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:Vb(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:Vb(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i},e.symbolAsterisk=L_,e.symbolCircle=N_,e.symbolCross=P_,e.symbolDiamond=F_,e.symbolDiamond2=B_,e.symbolPlus=Y_,e.symbolSquare=V_,e.symbolSquare2=H_,e.symbolStar=W_,e.symbolTimes=nw,e.symbolTriangle=G_,e.symbolTriangle2=Z_,e.symbolWye=tw,e.symbolX=nw,e.symbols=rw,e.symbolsFill=rw,e.symbolsStroke=iw,e.text=Qa,e.thresholdFreedmanDiaconis=function(e,t,n){const r=v(e),i=le(e,.75)-le(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1},e.thresholdScott=function(e,t,n){const r=v(e),i=A(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1},e.thresholdSturges=J,e.tickFormat=em,e.tickIncrement=Z,e.tickStep=X,e.ticks=K,e.timeDay=Ym,e.timeDays=Vm,e.timeFormatDefaultLocale=ry,e.timeFormatLocale=Fg,e.timeFriday=Qm,e.timeFridays=og,e.timeHour=Rm,e.timeHours=jm,e.timeInterval=wm,e.timeMillisecond=Am,e.timeMilliseconds=xm,e.timeMinute=Om,e.timeMinutes=Lm,e.timeMonday=Gm,e.timeMondays=tg,e.timeMonth=Ag,e.timeMonths=xg,e.timeSaturday=Jm,e.timeSaturdays=sg,e.timeSecond=Mm,e.timeSeconds=Im,e.timeSunday=$m,e.timeSundays=eg,e.timeThursday=Xm,e.timeThursdays=ig,e.timeTickInterval=Ng,e.timeTicks=Lg,e.timeTuesday=Km,e.timeTuesdays=ng,e.timeWednesday=Zm,e.timeWednesdays=rg,e.timeWeek=$m,e.timeWeeks=eg,e.timeYear=Eg,e.timeYears=Tg,e.timeout=Di,e.timer=xi,e.timerFlush=ki,e.transition=no,e.transpose=ve,e.tree=function(){var e=sf,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,s=new df(e,0),a=[s];t=a.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(n=t.children[i]=new df(r[i],i)),n.parent=t;return(s.parent=new df(null,0)).children=[s],s}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(s),r)i.eachBefore(a);else{var c=i,u=i,d=i;i.eachBefore(function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)});var h=c===u?1:e(c,u)/2,p=h-c.x,f=t/(u.x+h+p),m=n/(d.depth||1);i.eachBefore(function(e){e.x=(e.x+p)*f,e.y=e.depth*m})}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,s=t,a=n,l=o.parent.children[0],c=o.m,u=s.m,d=a.m,h=l.m;a=lf(a),o=af(o),a&&o;)l=af(l),(s=lf(s)).a=t,(i=a.z+d-o.z-c+e(a._,o._))>0&&(cf(uf(a,t,r),t,i),c+=i,u+=i),d+=a.m,c+=o.m,h+=l.m,u+=s.m;a&&!lf(s)&&(s.t=a,s.m+=d-u),o&&!af(l)&&(l.t=o,l.m+=c-h,r=t)}return r}(t,i,t.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function a(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},e.treemap=function(){var e=mf,t=!1,n=1,r=1,i=[0],o=Cp,s=Cp,a=Cp,l=Cp,c=Cp;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(Zp),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,h=t.y1-n;d<r&&(r=d=(r+d)/2),h<u&&(u=h=(u+h)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=h,t.children&&(n=i[t.depth+1]=o(t)/2,r+=c(t)-n,u+=s(t)-n,(d-=a(t)-n)<r&&(r=d=(r+d)/2),(h-=l(t)-n)<u&&(u=h=(u+h)/2),e(t,r,u,d,h))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=Dp(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:Mp(+e),u):o},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:Mp(+e),u):s},u.paddingRight=function(e){return arguments.length?(a="function"==typeof e?e:Mp(+e),u):a},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:Mp(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:Mp(+e),u):c},u},e.treemapBinary=function(e,t,n,r,i){var o,s,a=e.children,l=a.length,c=new Array(l+1);for(c[0]=s=o=0;o<l;++o)c[o+1]=s+=a[o].value;!function e(t,n,r,i,o,s,l){if(t>=n-1){var u=a[t];return u.x0=i,u.y0=o,u.x1=s,void(u.y1=l)}for(var d=c[t],h=r/2+d,p=t+1,f=n-1;p<f;){var m=p+f>>>1;c[m]<h?p=m+1:f=m}h-c[p-1]<c[p]-h&&t+1<p&&--p;var g=c[p]-d,v=r-g;if(s-i>l-o){var y=r?(i*v+s*g)/r:s;e(t,p,g,i,o,y,l),e(p,n,v,y,o,s,l)}else{var b=r?(o*v+l*g)/r:l;e(t,p,g,i,o,s,b),e(p,n,v,i,b,s,l)}}(0,l,e.value,t,n,r,i)},e.treemapDice=Xp,e.treemapResquarify=gf,e.treemapSlice=hf,e.treemapSliceDice=function(e,t,n,r,i){(1&e.depth?hf:Xp)(e,t,n,r,i)},e.treemapSquarify=mf,e.tsv=tl,e.tsvFormat=Ua,e.tsvFormatBody=za,e.tsvFormatRow=Wa,e.tsvFormatRows=qa,e.tsvFormatValue=$a,e.tsvParse=Va,e.tsvParseRows=Ha,e.union=function(...e){const t=new E;for(const n of e)for(const e of n)t.add(e);return t},e.unixDay=zm,e.unixDays=qm,e.utcDay=Hm,e.utcDays=Um,e.utcFriday=pg,e.utcFridays=_g,e.utcHour=Fm,e.utcHours=Bm,e.utcMillisecond=Am,e.utcMilliseconds=xm,e.utcMinute=Nm,e.utcMinutes=Pm,e.utcMonday=cg,e.utcMondays=gg,e.utcMonth=kg,e.utcMonths=Sg,e.utcSaturday=fg,e.utcSaturdays=wg,e.utcSecond=Mm,e.utcSeconds=Im,e.utcSunday=lg,e.utcSundays=mg,e.utcThursday=hg,e.utcThursdays=bg,e.utcTickInterval=Og,e.utcTicks=Ig,e.utcTuesday=ug,e.utcTuesdays=vg,e.utcWednesday=dg,e.utcWednesdays=yg,e.utcWeek=lg,e.utcWeeks=mg,e.utcYear=Dg,e.utcYears=Cg,e.variance=w,e.version="7.8.5",e.window=dt,e.xml=il,e.zip=function(){return ve(arguments)},e.zoom=function(){var e,t,n,r=Qw,i=Jw,o=rA,s=tA,a=nA,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=Jr,h=Ie("start","zoom","end"),p=0,f=10;function m(e){e.property("__zoom",eA).on("wheel.zoom",A,{passive:!1}).on("mousedown.zoom",x).on("dblclick.zoom",k).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new $w(t,e.x,e.y)}function v(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new $w(e.k,r,i)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function b(e,t,n,r){e.on("start.zoom",function(){_(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(r).end()}).tween("zoom",function(){var e=this,o=arguments,s=_(e,o).event(r),a=i.apply(e,o),l=null==n?y(a):"function"==typeof n?n.apply(e,o):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),u=e.__zoom,h="function"==typeof t?t.apply(e,o):t,p=d(u.invert(l).concat(c/u.k),h.invert(l).concat(c/h.k));return function(e){if(1===e)e=h;else{var t=p(e),n=c/t[2];e=new $w(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}})}function _(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function A(e,...t){if(r.apply(this,arguments)){var n=_(this,t).event(e),i=this.__zoom,a=Math.max(l[0],Math.min(l[1],i.k*Math.pow(2,s.apply(this,arguments)))),u=Qt(e);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=i.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(i.k===a)return;n.mouse=[u,i.invert(u)],Pi(this),n.start()}Xw(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(v(g(i,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function x(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,s=_(this,t,!0).event(e),a=$t(e.view).on("mousemove.zoom",function(e){if(Xw(e),!s.moved){var t=e.clientX-u,n=e.clientY-d;s.moved=t*t+n*n>p}s.event(e).zoom("mouse",o(v(s.that.__zoom,s.mouse[0]=Qt(e,i),s.mouse[1]),s.extent,c))},!0).on("mouseup.zoom",function(e){a.on("mousemove.zoom mouseup.zoom",null),on(e.view,s.moved),Xw(e),s.event(e).end()},!0),l=Qt(e,i),u=e.clientX,d=e.clientY;rn(e.view),Zw(e),s.mouse=[l,this.__zoom.invert(l)],Pi(this),s.start()}}function k(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,s=Qt(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),d=o(v(g(n,l),s,a),i.apply(this,t),c);Xw(e),u>0?$t(this).transition().duration(u).call(b,d,s,e):$t(this).call(m.transform,d,s,e)}}function S(n,...i){if(r.apply(this,arguments)){var o,s,a,l,c=n.touches,u=c.length,d=_(this,i,n.changedTouches.length===u).event(n);for(Zw(n),s=0;s<u;++s)l=[l=Qt(a=c[s],this),this.__zoom.invert(l),a.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,o=!0,d.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(d.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),Pi(this),d.start())}}function E(e,...t){if(this.__zooming){var n,r,i,s,a=_(this,t).event(e),l=e.changedTouches,u=l.length;for(Xw(e),n=0;n<u;++n)i=Qt(r=l[n],this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var d=a.touch0[0],h=a.touch0[1],p=a.touch1[0],f=a.touch1[1],m=(m=p[0]-d[0])*m+(m=p[1]-d[1])*m,y=(y=f[0]-h[0])*y+(y=f[1]-h[1])*y;r=g(r,Math.sqrt(m/y)),i=[(d[0]+p[0])/2,(d[1]+p[1])/2],s=[(h[0]+f[0])/2,(h[1]+f[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],s=a.touch0[1]}a.zoom("touch",o(v(r,i,s),a.extent,c))}}function T(e,...r){if(this.__zooming){var i,o,s=_(this,r).event(e),a=e.changedTouches,l=a.length;for(Zw(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=a[i],s.touch0&&s.touch0[2]===o.identifier?delete s.touch0:s.touch1&&s.touch1[2]===o.identifier&&delete s.touch1;if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0]);else if(s.end(),2===s.taps&&(o=Qt(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<f)){var c=$t(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return m.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",eA),e!==i?b(e,t,n,r):i.interrupt().each(function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},m.scaleBy=function(e,t,n,r){m.scaleTo(e,function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)},n,r)},m.scaleTo=function(e,t,n,r){m.transform(e,function(){var e=i.apply(this,arguments),r=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(s),l="function"==typeof t?t.apply(this,arguments):t;return o(v(g(r,l),s,a),e,c)},n,r)},m.translateBy=function(e,t,n,r){m.transform(e,function(){return o(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)},null,r)},m.translateTo=function(e,t,n,r,s){m.transform(e,function(){var e=i.apply(this,arguments),s=this.__zoom,a=null==r?y(e):"function"==typeof r?r.apply(this,arguments):r;return o(Gw.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)},r,s)},w.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=$t(this.that).datum();h.call(e,this.that,new Ww(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:h}),t)}},m.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:qw(+e),m):s},m.filter=function(e){return arguments.length?(r="function"==typeof e?e:qw(!!e),m):r},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:qw(!!e),m):a},m.extent=function(e){return arguments.length?(i="function"==typeof e?e:qw([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):i},m.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],m):[l[0],l[1]]},m.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(e){return arguments.length?(o=e,m):o},m.duration=function(e){return arguments.length?(u=+e,m):u},m.interpolate=function(e){return arguments.length?(d=e,m):d},m.on=function(){var e=h.on.apply(h,arguments);return e===h?m:e},m.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,m):Math.sqrt(p)},m.tapDistance=function(e){return arguments.length?(f=+e,m):f},m},e.zoomIdentity=Gw,e.zoomTransform=Kw}),function(e){var t="object"==typeof exports&&exports,n="object"==typeof module&&module&&module.exports==t&&module,r="object"==typeof global&&global;r.global!==r&&r.window!==r||(e=r);var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o=/[\x01-\x7F]/g,s=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,a=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,l={"\xad":"shy","\u200c":"zwnj","\u200d":"zwj","\u200e":"lrm","\u2063":"ic","\u2062":"it","\u2061":"af","\u200f":"rlm","\u200b":"ZeroWidthSpace","\u2060":"NoBreak","\u0311":"DownBreve","\u20db":"tdot","\u20dc":"DotDot","\t":"Tab","\n":"NewLine","\u2008":"puncsp","\u205f":"MediumSpace","\u2009":"thinsp","\u200a":"hairsp","\u2004":"emsp13","\u2002":"ensp","\u2005":"emsp14","\u2003":"emsp","\u2007":"numsp","\xa0":"nbsp","\u205f\u200a":"ThickSpace","\u203e":"oline",_:"lowbar","\u2010":"dash","\u2013":"ndash","\u2014":"mdash","\u2015":"horbar",",":"comma",";":"semi","\u204f":"bsemi",":":"colon","\u2a74":"Colone","!":"excl","\xa1":"iexcl","?":"quest","\xbf":"iquest",".":"period","\u2025":"nldr","\u2026":"mldr","\xb7":"middot","'":"apos","\u2018":"lsquo","\u2019":"rsquo","\u201a":"sbquo","\u2039":"lsaquo","\u203a":"rsaquo",'"':"quot","\u201c":"ldquo","\u201d":"rdquo","\u201e":"bdquo","\xab":"laquo","\xbb":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","\u2308":"lceil","\u2309":"rceil","\u230a":"lfloor","\u230b":"rfloor","\u2985":"lopar","\u2986":"ropar","\u298b":"lbrke","\u298c":"rbrke","\u298d":"lbrkslu","\u298e":"rbrksld","\u298f":"lbrksld","\u2990":"rbrkslu","\u2991":"langd","\u2992":"rangd","\u2993":"lparlt","\u2994":"rpargt","\u2995":"gtlPar","\u2996":"ltrPar","\u27e6":"lobrk","\u27e7":"robrk","\u27e8":"lang","\u27e9":"rang","\u27ea":"Lang","\u27eb":"Rang","\u27ec":"loang","\u27ed":"roang","\u2772":"lbbrk","\u2773":"rbbrk","\u2016":"Vert","\xa7":"sect","\xb6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","\u2030":"permil","\u2031":"pertenk","\u2020":"dagger","\u2021":"Dagger","\u2022":"bull","\u2043":"hybull","\u2032":"prime","\u2033":"Prime","\u2034":"tprime","\u2057":"qprime","\u2035":"bprime","\u2041":"caret","`":"grave","\xb4":"acute","\u02dc":"tilde","^":"Hat","\xaf":"macr","\u02d8":"breve","\u02d9":"dot","\xa8":"die","\u02da":"ring","\u02dd":"dblac","\xb8":"cedil","\u02db":"ogon","\u02c6":"circ","\u02c7":"caron","\xb0":"deg","\xa9":"copy","\xae":"reg","\u2117":"copysr","\u2118":"wp","\u211e":"rx","\u2127":"mho","\u2129":"iiota","\u2190":"larr","\u219a":"nlarr","\u2192":"rarr","\u219b":"nrarr","\u2191":"uarr","\u2193":"darr","\u2194":"harr","\u21ae":"nharr","\u2195":"varr","\u2196":"nwarr","\u2197":"nearr","\u2198":"searr","\u2199":"swarr","\u219d":"rarrw","\u219d\u0338":"nrarrw","\u219e":"Larr","\u219f":"Uarr","\u21a0":"Rarr","\u21a1":"Darr","\u21a2":"larrtl","\u21a3":"rarrtl","\u21a4":"mapstoleft","\u21a5":"mapstoup","\u21a6":"map","\u21a7":"mapstodown","\u21a9":"larrhk","\u21aa":"rarrhk","\u21ab":"larrlp","\u21ac":"rarrlp","\u21ad":"harrw","\u21b0":"lsh","\u21b1":"rsh","\u21b2":"ldsh","\u21b3":"rdsh","\u21b5":"crarr","\u21b6":"cularr","\u21b7":"curarr","\u21ba":"olarr","\u21bb":"orarr","\u21bc":"lharu","\u21bd":"lhard","\u21be":"uharr","\u21bf":"uharl","\u21c0":"rharu","\u21c1":"rhard","\u21c2":"dharr","\u21c3":"dharl","\u21c4":"rlarr","\u21c5":"udarr","\u21c6":"lrarr","\u21c7":"llarr","\u21c8":"uuarr","\u21c9":"rrarr","\u21ca":"ddarr","\u21cb":"lrhar","\u21cc":"rlhar","\u21d0":"lArr","\u21cd":"nlArr","\u21d1":"uArr","\u21d2":"rArr","\u21cf":"nrArr","\u21d3":"dArr","\u21d4":"iff","\u21ce":"nhArr","\u21d5":"vArr","\u21d6":"nwArr","\u21d7":"neArr","\u21d8":"seArr","\u21d9":"swArr","\u21da":"lAarr","\u21db":"rAarr","\u21dd":"zigrarr","\u21e4":"larrb","\u21e5":"rarrb","\u21f5":"duarr","\u21fd":"loarr","\u21fe":"roarr","\u21ff":"hoarr","\u2200":"forall","\u2201":"comp","\u2202":"part","\u2202\u0338":"npart","\u2203":"exist","\u2204":"nexist","\u2205":"empty","\u2207":"Del","\u2208":"in","\u2209":"notin","\u220b":"ni","\u220c":"notni","\u03f6":"bepsi","\u220f":"prod","\u2210":"coprod","\u2211":"sum","+":"plus","\xb1":"pm","\xf7":"div","\xd7":"times","<":"lt","\u226e":"nlt","<\u20d2":"nvlt","=":"equals","\u2260":"ne","=\u20e5":"bne","\u2a75":"Equal",">":"gt","\u226f":"ngt",">\u20d2":"nvgt","\xac":"not","|":"vert","\xa6":"brvbar","\u2212":"minus","\u2213":"mp","\u2214":"plusdo","\u2044":"frasl","\u2216":"setmn","\u2217":"lowast","\u2218":"compfn","\u221a":"Sqrt","\u221d":"prop","\u221e":"infin","\u221f":"angrt","\u2220":"ang","\u2220\u20d2":"nang","\u2221":"angmsd","\u2222":"angsph","\u2223":"mid","\u2224":"nmid","\u2225":"par","\u2226":"npar","\u2227":"and","\u2228":"or","\u2229":"cap","\u2229\ufe00":"caps","\u222a":"cup","\u222a\ufe00":"cups","\u222b":"int","\u222c":"Int","\u222d":"tint","\u2a0c":"qint","\u222e":"oint","\u222f":"Conint","\u2230":"Cconint","\u2231":"cwint","\u2232":"cwconint","\u2233":"awconint","\u2234":"there4","\u2235":"becaus","\u2236":"ratio","\u2237":"Colon","\u2238":"minusd","\u223a":"mDDot","\u223b":"homtht","\u223c":"sim","\u2241":"nsim","\u223c\u20d2":"nvsim","\u223d":"bsim","\u223d\u0331":"race","\u223e":"ac","\u223e\u0333":"acE","\u223f":"acd","\u2240":"wr","\u2242":"esim","\u2242\u0338":"nesim","\u2243":"sime","\u2244":"nsime","\u2245":"cong","\u2247":"ncong","\u2246":"simne","\u2248":"ap","\u2249":"nap","\u224a":"ape","\u224b":"apid","\u224b\u0338":"napid","\u224c":"bcong","\u224d":"CupCap","\u226d":"NotCupCap","\u224d\u20d2":"nvap","\u224e":"bump","\u224e\u0338":"nbump","\u224f":"bumpe","\u224f\u0338":"nbumpe","\u2250":"doteq","\u2250\u0338":"nedot","\u2251":"eDot","\u2252":"efDot","\u2253":"erDot","\u2254":"colone","\u2255":"ecolon","\u2256":"ecir","\u2257":"cire","\u2259":"wedgeq","\u225a":"veeeq","\u225c":"trie","\u225f":"equest","\u2261":"equiv","\u2262":"nequiv","\u2261\u20e5":"bnequiv","\u2264":"le","\u2270":"nle","\u2264\u20d2":"nvle","\u2265":"ge","\u2271":"nge","\u2265\u20d2":"nvge","\u2266":"lE","\u2266\u0338":"nlE","\u2267":"gE","\u2267\u0338":"ngE","\u2268\ufe00":"lvnE","\u2268":"lnE","\u2269":"gnE","\u2269\ufe00":"gvnE","\u226a":"ll","\u226a\u0338":"nLtv","\u226a\u20d2":"nLt","\u226b":"gg","\u226b\u0338":"nGtv","\u226b\u20d2":"nGt","\u226c":"twixt","\u2272":"lsim","\u2274":"nlsim","\u2273":"gsim","\u2275":"ngsim","\u2276":"lg","\u2278":"ntlg","\u2277":"gl","\u2279":"ntgl","\u227a":"pr","\u2280":"npr","\u227b":"sc","\u2281":"nsc","\u227c":"prcue","\u22e0":"nprcue","\u227d":"sccue","\u22e1":"nsccue","\u227e":"prsim","\u227f":"scsim","\u227f\u0338":"NotSucceedsTilde","\u2282":"sub","\u2284":"nsub","\u2282\u20d2":"vnsub","\u2283":"sup","\u2285":"nsup","\u2283\u20d2":"vnsup","\u2286":"sube","\u2288":"nsube","\u2287":"supe","\u2289":"nsupe","\u228a\ufe00":"vsubne","\u228a":"subne","\u228b\ufe00":"vsupne","\u228b":"supne","\u228d":"cupdot","\u228e":"uplus","\u228f":"sqsub","\u228f\u0338":"NotSquareSubset","\u2290":"sqsup","\u2290\u0338":"NotSquareSuperset","\u2291":"sqsube","\u22e2":"nsqsube","\u2292":"sqsupe","\u22e3":"nsqsupe","\u2293":"sqcap","\u2293\ufe00":"sqcaps","\u2294":"sqcup","\u2294\ufe00":"sqcups","\u2295":"oplus","\u2296":"ominus","\u2297":"otimes","\u2298":"osol","\u2299":"odot","\u229a":"ocir","\u229b":"oast","\u229d":"odash","\u229e":"plusb","\u229f":"minusb","\u22a0":"timesb","\u22a1":"sdotb","\u22a2":"vdash","\u22ac":"nvdash","\u22a3":"dashv","\u22a4":"top","\u22a5":"bot","\u22a7":"models","\u22a8":"vDash","\u22ad":"nvDash","\u22a9":"Vdash","\u22ae":"nVdash","\u22aa":"Vvdash","\u22ab":"VDash","\u22af":"nVDash","\u22b0":"prurel","\u22b2":"vltri","\u22ea":"nltri","\u22b3":"vrtri","\u22eb":"nrtri","\u22b4":"ltrie","\u22ec":"nltrie","\u22b4\u20d2":"nvltrie","\u22b5":"rtrie","\u22ed":"nrtrie","\u22b5\u20d2":"nvrtrie","\u22b6":"origof","\u22b7":"imof","\u22b8":"mumap","\u22b9":"hercon","\u22ba":"intcal","\u22bb":"veebar","\u22bd":"barvee","\u22be":"angrtvb","\u22bf":"lrtri","\u22c0":"Wedge","\u22c1":"Vee","\u22c2":"xcap","\u22c3":"xcup","\u22c4":"diam","\u22c5":"sdot","\u22c6":"Star","\u22c7":"divonx","\u22c8":"bowtie","\u22c9":"ltimes","\u22ca":"rtimes","\u22cb":"lthree","\u22cc":"rthree","\u22cd":"bsime","\u22ce":"cuvee","\u22cf":"cuwed","\u22d0":"Sub","\u22d1":"Sup","\u22d2":"Cap","\u22d3":"Cup","\u22d4":"fork","\u22d5":"epar","\u22d6":"ltdot","\u22d7":"gtdot","\u22d8":"Ll","\u22d8\u0338":"nLl","\u22d9":"Gg","\u22d9\u0338":"nGg","\u22da\ufe00":"lesg","\u22da":"leg","\u22db":"gel","\u22db\ufe00":"gesl","\u22de":"cuepr","\u22df":"cuesc","\u22e6":"lnsim","\u22e7":"gnsim","\u22e8":"prnsim","\u22e9":"scnsim","\u22ee":"vellip","\u22ef":"ctdot","\u22f0":"utdot","\u22f1":"dtdot","\u22f2":"disin","\u22f3":"isinsv","\u22f4":"isins","\u22f5":"isindot","\u22f5\u0338":"notindot","\u22f6":"notinvc","\u22f7":"notinvb","\u22f9":"isinE","\u22f9\u0338":"notinE","\u22fa":"nisd","\u22fb":"xnis","\u22fc":"nis","\u22fd":"notnivc","\u22fe":"notnivb","\u2305":"barwed","\u2306":"Barwed","\u230c":"drcrop","\u230d":"dlcrop","\u230e":"urcrop","\u230f":"ulcrop","\u2310":"bnot","\u2312":"profline","\u2313":"profsurf","\u2315":"telrec","\u2316":"target","\u231c":"ulcorn","\u231d":"urcorn","\u231e":"dlcorn","\u231f":"drcorn","\u2322":"frown","\u2323":"smile","\u232d":"cylcty","\u232e":"profalar","\u2336":"topbot","\u233d":"ovbar","\u233f":"solbar","\u237c":"angzarr","\u23b0":"lmoust","\u23b1":"rmoust","\u23b4":"tbrk","\u23b5":"bbrk","\u23b6":"bbrktbrk","\u23dc":"OverParenthesis","\u23dd":"UnderParenthesis","\u23de":"OverBrace","\u23df":"UnderBrace","\u23e2":"trpezium","\u23e7":"elinters","\u2423":"blank","\u2500":"boxh","\u2502":"boxv","\u250c":"boxdr","\u2510":"boxdl","\u2514":"boxur","\u2518":"boxul","\u251c":"boxvr","\u2524":"boxvl","\u252c":"boxhd","\u2534":"boxhu","\u253c":"boxvh","\u2550":"boxH","\u2551":"boxV","\u2552":"boxdR","\u2553":"boxDr","\u2554":"boxDR","\u2555":"boxdL","\u2556":"boxDl","\u2557":"boxDL","\u2558":"boxuR","\u2559":"boxUr","\u255a":"boxUR","\u255b":"boxuL","\u255c":"boxUl","\u255d":"boxUL","\u255e":"boxvR","\u255f":"boxVr","\u2560":"boxVR","\u2561":"boxvL","\u2562":"boxVl","\u2563":"boxVL","\u2564":"boxHd","\u2565":"boxhD","\u2566":"boxHD","\u2567":"boxHu","\u2568":"boxhU","\u2569":"boxHU","\u256a":"boxvH","\u256b":"boxVh","\u256c":"boxVH","\u2580":"uhblk","\u2584":"lhblk","\u2588":"block","\u2591":"blk14","\u2592":"blk12","\u2593":"blk34","\u25a1":"squ","\u25aa":"squf","\u25ab":"EmptyVerySmallSquare","\u25ad":"rect","\u25ae":"marker","\u25b1":"fltns","\u25b3":"xutri","\u25b4":"utrif","\u25b5":"utri","\u25b8":"rtrif","\u25b9":"rtri","\u25bd":"xdtri","\u25be":"dtrif","\u25bf":"dtri","\u25c2":"ltrif","\u25c3":"ltri","\u25ca":"loz","\u25cb":"cir","\u25ec":"tridot","\u25ef":"xcirc","\u25f8":"ultri","\u25f9":"urtri","\u25fa":"lltri","\u25fb":"EmptySmallSquare","\u25fc":"FilledSmallSquare","\u2605":"starf","\u2606":"star","\u260e":"phone","\u2640":"female","\u2642":"male","\u2660":"spades","\u2663":"clubs","\u2665":"hearts","\u2666":"diams","\u266a":"sung","\u2713":"check","\u2717":"cross","\u2720":"malt","\u2736":"sext","\u2758":"VerticalSeparator","\u27c8":"bsolhsub","\u27c9":"suphsol","\u27f5":"xlarr","\u27f6":"xrarr","\u27f7":"xharr","\u27f8":"xlArr","\u27f9":"xrArr","\u27fa":"xhArr","\u27fc":"xmap","\u27ff":"dzigrarr","\u2902":"nvlArr","\u2903":"nvrArr","\u2904":"nvHarr","\u2905":"Map","\u290c":"lbarr","\u290d":"rbarr","\u290e":"lBarr","\u290f":"rBarr","\u2910":"RBarr","\u2911":"DDotrahd","\u2912":"UpArrowBar","\u2913":"DownArrowBar","\u2916":"Rarrtl","\u2919":"latail","\u291a":"ratail","\u291b":"lAtail","\u291c":"rAtail","\u291d":"larrfs","\u291e":"rarrfs","\u291f":"larrbfs","\u2920":"rarrbfs","\u2923":"nwarhk","\u2924":"nearhk","\u2925":"searhk","\u2926":"swarhk","\u2927":"nwnear","\u2928":"toea","\u2929":"tosa","\u292a":"swnwar","\u2933":"rarrc","\u2933\u0338":"nrarrc","\u2935":"cudarrr","\u2936":"ldca","\u2937":"rdca","\u2938":"cudarrl","\u2939":"larrpl","\u293c":"curarrm","\u293d":"cularrp","\u2945":"rarrpl","\u2948":"harrcir","\u2949":"Uarrocir","\u294a":"lurdshar","\u294b":"ldrushar","\u294e":"LeftRightVector","\u294f":"RightUpDownVector","\u2950":"DownLeftRightVector","\u2951":"LeftUpDownVector","\u2952":"LeftVectorBar","\u2953":"RightVectorBar","\u2954":"RightUpVectorBar","\u2955":"RightDownVectorBar","\u2956":"DownLeftVectorBar","\u2957":"DownRightVectorBar","\u2958":"LeftUpVectorBar","\u2959":"LeftDownVectorBar","\u295a":"LeftTeeVector","\u295b":"RightTeeVector","\u295c":"RightUpTeeVector","\u295d":"RightDownTeeVector","\u295e":"DownLeftTeeVector","\u295f":"DownRightTeeVector","\u2960":"LeftUpTeeVector","\u2961":"LeftDownTeeVector","\u2962":"lHar","\u2963":"uHar","\u2964":"rHar","\u2965":"dHar","\u2966":"luruhar","\u2967":"ldrdhar","\u2968":"ruluhar","\u2969":"rdldhar","\u296a":"lharul","\u296b":"llhard","\u296c":"rharul","\u296d":"lrhard","\u296e":"udhar","\u296f":"duhar","\u2970":"RoundImplies","\u2971":"erarr","\u2972":"simrarr","\u2973":"larrsim","\u2974":"rarrsim","\u2975":"rarrap","\u2976":"ltlarr","\u2978":"gtrarr","\u2979":"subrarr","\u297b":"suplarr","\u297c":"lfisht","\u297d":"rfisht","\u297e":"ufisht","\u297f":"dfisht","\u299a":"vzigzag","\u299c":"vangrt","\u299d":"angrtvbd","\u29a4":"ange","\u29a5":"range","\u29a6":"dwangle","\u29a7":"uwangle","\u29a8":"angmsdaa","\u29a9":"angmsdab","\u29aa":"angmsdac","\u29ab":"angmsdad","\u29ac":"angmsdae","\u29ad":"angmsdaf","\u29ae":"angmsdag","\u29af":"angmsdah","\u29b0":"bemptyv","\u29b1":"demptyv","\u29b2":"cemptyv","\u29b3":"raemptyv","\u29b4":"laemptyv","\u29b5":"ohbar","\u29b6":"omid","\u29b7":"opar","\u29b9":"operp","\u29bb":"olcross","\u29bc":"odsold","\u29be":"olcir","\u29bf":"ofcir","\u29c0":"olt","\u29c1":"ogt","\u29c2":"cirscir","\u29c3":"cirE","\u29c4":"solb","\u29c5":"bsolb","\u29c9":"boxbox","\u29cd":"trisb","\u29ce":"rtriltri","\u29cf":"LeftTriangleBar","\u29cf\u0338":"NotLeftTriangleBar","\u29d0":"RightTriangleBar","\u29d0\u0338":"NotRightTriangleBar","\u29dc":"iinfin","\u29dd":"infintie","\u29de":"nvinfin","\u29e3":"eparsl","\u29e4":"smeparsl","\u29e5":"eqvparsl","\u29eb":"lozf","\u29f4":"RuleDelayed","\u29f6":"dsol","\u2a00":"xodot","\u2a01":"xoplus","\u2a02":"xotime","\u2a04":"xuplus","\u2a06":"xsqcup","\u2a0d":"fpartint","\u2a10":"cirfnint","\u2a11":"awint","\u2a12":"rppolint","\u2a13":"scpolint","\u2a14":"npolint","\u2a15":"pointint","\u2a16":"quatint","\u2a17":"intlarhk","\u2a22":"pluscir","\u2a23":"plusacir","\u2a24":"simplus","\u2a25":"plusdu","\u2a26":"plussim","\u2a27":"plustwo","\u2a29":"mcomma","\u2a2a":"minusdu","\u2a2d":"loplus","\u2a2e":"roplus","\u2a2f":"Cross","\u2a30":"timesd","\u2a31":"timesbar","\u2a33":"smashp","\u2a34":"lotimes","\u2a35":"rotimes","\u2a36":"otimesas","\u2a37":"Otimes","\u2a38":"odiv","\u2a39":"triplus","\u2a3a":"triminus","\u2a3b":"tritime","\u2a3c":"iprod","\u2a3f":"amalg","\u2a40":"capdot","\u2a42":"ncup","\u2a43":"ncap","\u2a44":"capand","\u2a45":"cupor","\u2a46":"cupcap","\u2a47":"capcup","\u2a48":"cupbrcap","\u2a49":"capbrcup","\u2a4a":"cupcup","\u2a4b":"capcap","\u2a4c":"ccups","\u2a4d":"ccaps","\u2a50":"ccupssm","\u2a53":"And","\u2a54":"Or","\u2a55":"andand","\u2a56":"oror","\u2a57":"orslope","\u2a58":"andslope","\u2a5a":"andv","\u2a5b":"orv","\u2a5c":"andd","\u2a5d":"ord","\u2a5f":"wedbar","\u2a66":"sdote","\u2a6a":"simdot","\u2a6d":"congdot","\u2a6d\u0338":"ncongdot","\u2a6e":"easter","\u2a6f":"apacir","\u2a70":"apE","\u2a70\u0338":"napE","\u2a71":"eplus","\u2a72":"pluse","\u2a73":"Esim","\u2a77":"eDDot","\u2a78":"equivDD","\u2a79":"ltcir","\u2a7a":"gtcir","\u2a7b":"ltquest","\u2a7c":"gtquest","\u2a7d":"les","\u2a7d\u0338":"nles","\u2a7e":"ges","\u2a7e\u0338":"nges","\u2a7f":"lesdot","\u2a80":"gesdot","\u2a81":"lesdoto","\u2a82":"gesdoto","\u2a83":"lesdotor","\u2a84":"gesdotol","\u2a85":"lap","\u2a86":"gap","\u2a87":"lne","\u2a88":"gne","\u2a89":"lnap","\u2a8a":"gnap","\u2a8b":"lEg","\u2a8c":"gEl","\u2a8d":"lsime","\u2a8e":"gsime","\u2a8f":"lsimg","\u2a90":"gsiml","\u2a91":"lgE","\u2a92":"glE","\u2a93":"lesges","\u2a94":"gesles","\u2a95":"els","\u2a96":"egs","\u2a97":"elsdot","\u2a98":"egsdot","\u2a99":"el","\u2a9a":"eg","\u2a9d":"siml","\u2a9e":"simg","\u2a9f":"simlE","\u2aa0":"simgE","\u2aa1":"LessLess","\u2aa1\u0338":"NotNestedLessLess","\u2aa2":"GreaterGreater","\u2aa2\u0338":"NotNestedGreaterGreater","\u2aa4":"glj","\u2aa5":"gla","\u2aa6":"ltcc","\u2aa7":"gtcc","\u2aa8":"lescc","\u2aa9":"gescc","\u2aaa":"smt","\u2aab":"lat","\u2aac":"smte","\u2aac\ufe00":"smtes","\u2aad":"late","\u2aad\ufe00":"lates","\u2aae":"bumpE","\u2aaf":"pre","\u2aaf\u0338":"npre","\u2ab0":"sce","\u2ab0\u0338":"nsce","\u2ab3":"prE","\u2ab4":"scE","\u2ab5":"prnE","\u2ab6":"scnE","\u2ab7":"prap","\u2ab8":"scap","\u2ab9":"prnap","\u2aba":"scnap","\u2abb":"Pr","\u2abc":"Sc","\u2abd":"subdot","\u2abe":"supdot","\u2abf":"subplus","\u2ac0":"supplus","\u2ac1":"submult","\u2ac2":"supmult","\u2ac3":"subedot","\u2ac4":"supedot","\u2ac5":"subE","\u2ac5\u0338":"nsubE","\u2ac6":"supE","\u2ac6\u0338":"nsupE","\u2ac7":"subsim","\u2ac8":"supsim","\u2acb\ufe00":"vsubnE","\u2acb":"subnE","\u2acc\ufe00":"vsupnE","\u2acc":"supnE","\u2acf":"csub","\u2ad0":"csup","\u2ad1":"csube","\u2ad2":"csupe","\u2ad3":"subsup","\u2ad4":"supsub","\u2ad5":"subsub","\u2ad6":"supsup","\u2ad7":"suphsub","\u2ad8":"supdsub","\u2ad9":"forkv","\u2ada":"topfork","\u2adb":"mlcp","\u2ae4":"Dashv","\u2ae6":"Vdashl","\u2ae7":"Barv","\u2ae8":"vBar","\u2ae9":"vBarv","\u2aeb":"Vbar","\u2aec":"Not","\u2aed":"bNot","\u2aee":"rnmid","\u2aef":"cirmid","\u2af0":"midcir","\u2af1":"topcir","\u2af2":"nhpar","\u2af3":"parsim","\u2afd":"parsl","\u2afd\u20e5":"nparsl","\u266d":"flat","\u266e":"natur","\u266f":"sharp","\xa4":"curren","\xa2":"cent",$:"dollar","\xa3":"pound","\xa5":"yen","\u20ac":"euro","\xb9":"sup1","\xbd":"half","\u2153":"frac13","\xbc":"frac14","\u2155":"frac15","\u2159":"frac16","\u215b":"frac18","\xb2":"sup2","\u2154":"frac23","\u2156":"frac25","\xb3":"sup3","\xbe":"frac34","\u2157":"frac35","\u215c":"frac38","\u2158":"frac45","\u215a":"frac56","\u215d":"frac58","\u215e":"frac78","\ud835\udcb6":"ascr","\ud835\udd52":"aopf","\ud835\udd1e":"afr","\ud835\udd38":"Aopf","\ud835\udd04":"Afr","\ud835\udc9c":"Ascr","\xaa":"ordf","\xe1":"aacute","\xc1":"Aacute","\xe0":"agrave","\xc0":"Agrave","\u0103":"abreve","\u0102":"Abreve","\xe2":"acirc","\xc2":"Acirc","\xe5":"aring","\xc5":"angst","\xe4":"auml","\xc4":"Auml","\xe3":"atilde","\xc3":"Atilde","\u0105":"aogon","\u0104":"Aogon","\u0101":"amacr","\u0100":"Amacr","\xe6":"aelig","\xc6":"AElig","\ud835\udcb7":"bscr","\ud835\udd53":"bopf","\ud835\udd1f":"bfr","\ud835\udd39":"Bopf","\u212c":"Bscr","\ud835\udd05":"Bfr","\ud835\udd20":"cfr","\ud835\udcb8":"cscr","\ud835\udd54":"copf","\u212d":"Cfr","\ud835\udc9e":"Cscr","\u2102":"Copf","\u0107":"cacute","\u0106":"Cacute","\u0109":"ccirc","\u0108":"Ccirc","\u010d":"ccaron","\u010c":"Ccaron","\u010b":"cdot","\u010a":"Cdot","\xe7":"ccedil","\xc7":"Ccedil","\u2105":"incare","\ud835\udd21":"dfr","\u2146":"dd","\ud835\udd55":"dopf","\ud835\udcb9":"dscr","\ud835\udc9f":"Dscr","\ud835\udd07":"Dfr","\u2145":"DD","\ud835\udd3b":"Dopf","\u010f":"dcaron","\u010e":"Dcaron","\u0111":"dstrok","\u0110":"Dstrok","\xf0":"eth","\xd0":"ETH","\u2147":"ee","\u212f":"escr","\ud835\udd22":"efr","\ud835\udd56":"eopf","\u2130":"Escr","\ud835\udd08":"Efr","\ud835\udd3c":"Eopf","\xe9":"eacute","\xc9":"Eacute","\xe8":"egrave","\xc8":"Egrave","\xea":"ecirc","\xca":"Ecirc","\u011b":"ecaron","\u011a":"Ecaron","\xeb":"euml","\xcb":"Euml","\u0117":"edot","\u0116":"Edot","\u0119":"eogon","\u0118":"Eogon","\u0113":"emacr","\u0112":"Emacr","\ud835\udd23":"ffr","\ud835\udd57":"fopf","\ud835\udcbb":"fscr","\ud835\udd09":"Ffr","\ud835\udd3d":"Fopf","\u2131":"Fscr","\ufb00":"fflig","\ufb03":"ffilig","\ufb04":"ffllig","\ufb01":"filig",fj:"fjlig","\ufb02":"fllig","\u0192":"fnof","\u210a":"gscr","\ud835\udd58":"gopf","\ud835\udd24":"gfr","\ud835\udca2":"Gscr","\ud835\udd3e":"Gopf","\ud835\udd0a":"Gfr","\u01f5":"gacute","\u011f":"gbreve","\u011e":"Gbreve","\u011d":"gcirc","\u011c":"Gcirc","\u0121":"gdot","\u0120":"Gdot","\u0122":"Gcedil","\ud835\udd25":"hfr","\u210e":"planckh","\ud835\udcbd":"hscr","\ud835\udd59":"hopf","\u210b":"Hscr","\u210c":"Hfr","\u210d":"Hopf","\u0125":"hcirc","\u0124":"Hcirc","\u210f":"hbar","\u0127":"hstrok","\u0126":"Hstrok","\ud835\udd5a":"iopf","\ud835\udd26":"ifr","\ud835\udcbe":"iscr","\u2148":"ii","\ud835\udd40":"Iopf","\u2110":"Iscr","\u2111":"Im","\xed":"iacute","\xcd":"Iacute","\xec":"igrave","\xcc":"Igrave","\xee":"icirc","\xce":"Icirc","\xef":"iuml","\xcf":"Iuml","\u0129":"itilde","\u0128":"Itilde","\u0130":"Idot","\u012f":"iogon","\u012e":"Iogon","\u012b":"imacr","\u012a":"Imacr","\u0133":"ijlig","\u0132":"IJlig","\u0131":"imath","\ud835\udcbf":"jscr","\ud835\udd5b":"jopf","\ud835\udd27":"jfr","\ud835\udca5":"Jscr","\ud835\udd0d":"Jfr","\ud835\udd41":"Jopf","\u0135":"jcirc","\u0134":"Jcirc","\u0237":"jmath","\ud835\udd5c":"kopf","\ud835\udcc0":"kscr","\ud835\udd28":"kfr","\ud835\udca6":"Kscr","\ud835\udd42":"Kopf","\ud835\udd0e":"Kfr","\u0137":"kcedil","\u0136":"Kcedil","\ud835\udd29":"lfr","\ud835\udcc1":"lscr","\u2113":"ell","\ud835\udd5d":"lopf","\u2112":"Lscr","\ud835\udd0f":"Lfr","\ud835\udd43":"Lopf","\u013a":"lacute","\u0139":"Lacute","\u013e":"lcaron","\u013d":"Lcaron","\u013c":"lcedil","\u013b":"Lcedil","\u0142":"lstrok","\u0141":"Lstrok","\u0140":"lmidot","\u013f":"Lmidot","\ud835\udd2a":"mfr","\ud835\udd5e":"mopf","\ud835\udcc2":"mscr","\ud835\udd10":"Mfr","\ud835\udd44":"Mopf","\u2133":"Mscr","\ud835\udd2b":"nfr","\ud835\udd5f":"nopf","\ud835\udcc3":"nscr","\u2115":"Nopf","\ud835\udca9":"Nscr","\ud835\udd11":"Nfr","\u0144":"nacute","\u0143":"Nacute","\u0148":"ncaron","\u0147":"Ncaron","\xf1":"ntilde","\xd1":"Ntilde","\u0146":"ncedil","\u0145":"Ncedil","\u2116":"numero","\u014b":"eng","\u014a":"ENG","\ud835\udd60":"oopf","\ud835\udd2c":"ofr","\u2134":"oscr","\ud835\udcaa":"Oscr","\ud835\udd12":"Ofr","\ud835\udd46":"Oopf","\xba":"ordm","\xf3":"oacute","\xd3":"Oacute","\xf2":"ograve","\xd2":"Ograve","\xf4":"ocirc","\xd4":"Ocirc","\xf6":"ouml","\xd6":"Ouml","\u0151":"odblac","\u0150":"Odblac","\xf5":"otilde","\xd5":"Otilde","\xf8":"oslash","\xd8":"Oslash","\u014d":"omacr","\u014c":"Omacr","\u0153":"oelig","\u0152":"OElig","\ud835\udd2d":"pfr","\ud835\udcc5":"pscr","\ud835\udd61":"popf","\u2119":"Popf","\ud835\udd13":"Pfr","\ud835\udcab":"Pscr","\ud835\udd62":"qopf","\ud835\udd2e":"qfr","\ud835\udcc6":"qscr","\ud835\udcac":"Qscr","\ud835\udd14":"Qfr","\u211a":"Qopf","\u0138":"kgreen","\ud835\udd2f":"rfr","\ud835\udd63":"ropf","\ud835\udcc7":"rscr","\u211b":"Rscr","\u211c":"Re","\u211d":"Ropf","\u0155":"racute","\u0154":"Racute","\u0159":"rcaron","\u0158":"Rcaron","\u0157":"rcedil","\u0156":"Rcedil","\ud835\udd64":"sopf","\ud835\udcc8":"sscr","\ud835\udd30":"sfr","\ud835\udd4a":"Sopf","\ud835\udd16":"Sfr","\ud835\udcae":"Sscr","\u24c8":"oS","\u015b":"sacute","\u015a":"Sacute","\u015d":"scirc","\u015c":"Scirc","\u0161":"scaron","\u0160":"Scaron","\u015f":"scedil","\u015e":"Scedil","\xdf":"szlig","\ud835\udd31":"tfr","\ud835\udcc9":"tscr","\ud835\udd65":"topf","\ud835\udcaf":"Tscr","\ud835\udd17":"Tfr","\ud835\udd4b":"Topf","\u0165":"tcaron","\u0164":"Tcaron","\u0163":"tcedil","\u0162":"Tcedil","\u2122":"trade","\u0167":"tstrok","\u0166":"Tstrok","\ud835\udcca":"uscr","\ud835\udd66":"uopf","\ud835\udd32":"ufr","\ud835\udd4c":"Uopf","\ud835\udd18":"Ufr","\ud835\udcb0":"Uscr","\xfa":"uacute","\xda":"Uacute","\xf9":"ugrave","\xd9":"Ugrave","\u016d":"ubreve","\u016c":"Ubreve","\xfb":"ucirc","\xdb":"Ucirc","\u016f":"uring","\u016e":"Uring","\xfc":"uuml","\xdc":"Uuml","\u0171":"udblac","\u0170":"Udblac","\u0169":"utilde","\u0168":"Utilde","\u0173":"uogon","\u0172":"Uogon","\u016b":"umacr","\u016a":"Umacr","\ud835\udd33":"vfr","\ud835\udd67":"vopf","\ud835\udccb":"vscr","\ud835\udd19":"Vfr","\ud835\udd4d":"Vopf","\ud835\udcb1":"Vscr","\ud835\udd68":"wopf","\ud835\udccc":"wscr","\ud835\udd34":"wfr","\ud835\udcb2":"Wscr","\ud835\udd4e":"Wopf","\ud835\udd1a":"Wfr","\u0175":"wcirc","\u0174":"Wcirc","\ud835\udd35":"xfr","\ud835\udccd":"xscr","\ud835\udd69":"xopf","\ud835\udd4f":"Xopf","\ud835\udd1b":"Xfr","\ud835\udcb3":"Xscr","\ud835\udd36":"yfr","\ud835\udcce":"yscr","\ud835\udd6a":"yopf","\ud835\udcb4":"Yscr","\ud835\udd1c":"Yfr","\ud835\udd50":"Yopf","\xfd":"yacute","\xdd":"Yacute","\u0177":"ycirc","\u0176":"Ycirc","\xff":"yuml","\u0178":"Yuml","\ud835\udccf":"zscr","\ud835\udd37":"zfr","\ud835\udd6b":"zopf","\u2128":"Zfr","\u2124":"Zopf","\ud835\udcb5":"Zscr","\u017a":"zacute","\u0179":"Zacute","\u017e":"zcaron","\u017d":"Zcaron","\u017c":"zdot","\u017b":"Zdot","\u01b5":"imped","\xfe":"thorn","\xde":"THORN","\u0149":"napos","\u03b1":"alpha","\u0391":"Alpha","\u03b2":"beta","\u0392":"Beta","\u03b3":"gamma","\u0393":"Gamma","\u03b4":"delta","\u0394":"Delta","\u03b5":"epsi","\u03f5":"epsiv","\u0395":"Epsilon","\u03dd":"gammad","\u03dc":"Gammad","\u03b6":"zeta","\u0396":"Zeta","\u03b7":"eta","\u0397":"Eta","\u03b8":"theta","\u03d1":"thetav","\u0398":"Theta","\u03b9":"iota","\u0399":"Iota","\u03ba":"kappa","\u03f0":"kappav","\u039a":"Kappa","\u03bb":"lambda","\u039b":"Lambda","\u03bc":"mu","\xb5":"micro","\u039c":"Mu","\u03bd":"nu","\u039d":"Nu","\u03be":"xi","\u039e":"Xi","\u03bf":"omicron","\u039f":"Omicron","\u03c0":"pi","\u03d6":"piv","\u03a0":"Pi","\u03c1":"rho","\u03f1":"rhov","\u03a1":"Rho","\u03c3":"sigma","\u03a3":"Sigma","\u03c2":"sigmaf","\u03c4":"tau","\u03a4":"Tau","\u03c5":"upsi","\u03a5":"Upsilon","\u03d2":"Upsi","\u03c6":"phi","\u03d5":"phiv","\u03a6":"Phi","\u03c7":"chi","\u03a7":"Chi","\u03c8":"psi","\u03a8":"Psi","\u03c9":"omega","\u03a9":"ohm","\u0430":"acy","\u0410":"Acy","\u0431":"bcy","\u0411":"Bcy","\u0432":"vcy","\u0412":"Vcy","\u0433":"gcy","\u0413":"Gcy","\u0453":"gjcy","\u0403":"GJcy","\u0434":"dcy","\u0414":"Dcy","\u0452":"djcy","\u0402":"DJcy","\u0435":"iecy","\u0415":"IEcy","\u0451":"iocy","\u0401":"IOcy","\u0454":"jukcy","\u0404":"Jukcy","\u0436":"zhcy","\u0416":"ZHcy","\u0437":"zcy","\u0417":"Zcy","\u0455":"dscy","\u0405":"DScy","\u0438":"icy","\u0418":"Icy","\u0456":"iukcy","\u0406":"Iukcy","\u0457":"yicy","\u0407":"YIcy","\u0439":"jcy","\u0419":"Jcy","\u0458":"jsercy","\u0408":"Jsercy","\u043a":"kcy","\u041a":"Kcy","\u045c":"kjcy","\u040c":"KJcy","\u043b":"lcy","\u041b":"Lcy","\u0459":"ljcy","\u0409":"LJcy","\u043c":"mcy","\u041c":"Mcy","\u043d":"ncy","\u041d":"Ncy","\u045a":"njcy","\u040a":"NJcy","\u043e":"ocy","\u041e":"Ocy","\u043f":"pcy","\u041f":"Pcy","\u0440":"rcy","\u0420":"Rcy","\u0441":"scy","\u0421":"Scy","\u0442":"tcy","\u0422":"Tcy","\u045b":"tshcy","\u040b":"TSHcy","\u0443":"ucy","\u0423":"Ucy","\u045e":"ubrcy","\u040e":"Ubrcy","\u0444":"fcy","\u0424":"Fcy","\u0445":"khcy","\u0425":"KHcy","\u0446":"tscy","\u0426":"TScy","\u0447":"chcy","\u0427":"CHcy","\u045f":"dzcy","\u040f":"DZcy","\u0448":"shcy","\u0428":"SHcy","\u0449":"shchcy","\u0429":"SHCHcy","\u044a":"hardcy","\u042a":"HARDcy","\u044b":"ycy","\u042b":"Ycy","\u044c":"softcy","\u042c":"SOFTcy","\u044d":"ecy","\u042d":"Ecy","\u044e":"yucy","\u042e":"YUcy","\u044f":"yacy","\u042f":"YAcy","\u2135":"aleph","\u2136":"beth","\u2137":"gimel","\u2138":"daleth"},c=/["&'<>`]/g,u={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},d=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,h=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,f={aacute:"\xe1",Aacute:"\xc1",abreve:"\u0103",Abreve:"\u0102",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",acy:"\u0430",Acy:"\u0410",aelig:"\xe6",AElig:"\xc6",af:"\u2061",afr:"\ud835\udd1e",Afr:"\ud835\udd04",agrave:"\xe0",Agrave:"\xc0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",Alpha:"\u0391",amacr:"\u0101",Amacr:"\u0100",amalg:"\u2a3f",amp:"&",AMP:"&",and:"\u2227",And:"\u2a53",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",Aogon:"\u0104",aopf:"\ud835\udd52",Aopf:"\ud835\udd38",ap:"\u2248",apacir:"\u2a6f",ape:"\u224a",apE:"\u2a70",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",aring:"\xe5",Aring:"\xc5",ascr:"\ud835\udcb6",Ascr:"\ud835\udc9c",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",Bcy:"\u0411",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",beta:"\u03b2",Beta:"\u0392",beth:"\u2136",between:"\u226c",bfr:"\ud835\udd1f",Bfr:"\ud835\udd05",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bNot:"\u2aed",bopf:"\ud835\udd53",Bopf:"\ud835\udd39",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxhD:"\u2565",boxHd:"\u2564",boxHD:"\u2566",boxhu:"\u2534",boxhU:"\u2568",boxHu:"\u2567",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpe:"\u224f",bumpE:"\u2aae",bumpeq:"\u224f",Bumpeq:"\u224e",cacute:"\u0107",Cacute:"\u0106",cap:"\u2229",Cap:"\u22d2",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",ccaron:"\u010d",Ccaron:"\u010c",ccedil:"\xe7",Ccedil:"\xc7",ccirc:"\u0109",Ccirc:"\u0108",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",Cdot:"\u010a",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\ud835\udd20",Cfr:"\u212d",chcy:"\u0447",CHcy:"\u0427",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",Chi:"\u03a7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cire:"\u2257",cirE:"\u29c3",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",colone:"\u2254",Colone:"\u2a74",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",cscr:"\ud835\udcb8",Cscr:"\ud835\udc9e",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",Cup:"\u22d3",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",dArr:"\u21d3",Darr:"\u21a1",dash:"\u2010",dashv:"\u22a3",Dashv:"\u2ae4",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",Dcaron:"\u010e",dcy:"\u0434",Dcy:"\u0414",dd:"\u2146",DD:"\u2145",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",delta:"\u03b4",Delta:"\u0394",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",Dfr:"\ud835\udd07",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",DJcy:"\u0402",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",Dopf:"\ud835\udd3b",dot:"\u02d9",Dot:"\xa8",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",downarrow:"\u2193",Downarrow:"\u21d3",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",Dscr:"\ud835\udc9f",dscy:"\u0455",DScy:"\u0405",dsol:"\u29f6",dstrok:"\u0111",Dstrok:"\u0110",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",DZcy:"\u040f",dzigrarr:"\u27ff",eacute:"\xe9",Eacute:"\xc9",easter:"\u2a6e",ecaron:"\u011b",Ecaron:"\u011a",ecir:"\u2256",ecirc:"\xea",Ecirc:"\xca",ecolon:"\u2255",ecy:"\u044d",Ecy:"\u042d",eDDot:"\u2a77",edot:"\u0117",eDot:"\u2251",Edot:"\u0116",ee:"\u2147",efDot:"\u2252",efr:"\ud835\udd22",Efr:"\ud835\udd08",eg:"\u2a9a",egrave:"\xe8",Egrave:"\xc8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",Emacr:"\u0112",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",eng:"\u014b",ENG:"\u014a",ensp:"\u2002",eogon:"\u0119",Eogon:"\u0118",eopf:"\ud835\udd56",Eopf:"\ud835\udd3c",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",Epsilon:"\u0395",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",esim:"\u2242",Esim:"\u2a73",eta:"\u03b7",Eta:"\u0397",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",Fcy:"\u0424",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",Ffr:"\ud835\udd09",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",Fopf:"\ud835\udd3d",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",gamma:"\u03b3",Gamma:"\u0393",gammad:"\u03dd",Gammad:"\u03dc",gap:"\u2a86",gbreve:"\u011f",Gbreve:"\u011e",Gcedil:"\u0122",gcirc:"\u011d",Gcirc:"\u011c",gcy:"\u0433",Gcy:"\u0413",gdot:"\u0121",Gdot:"\u0120",ge:"\u2265",gE:"\u2267",gel:"\u22db",gEl:"\u2a8c",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",Gfr:"\ud835\udd0a",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",GJcy:"\u0403",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\ud835\udd58",Gopf:"\ud835\udd3e",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",gscr:"\u210a",Gscr:"\ud835\udca2",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gt:">",Gt:"\u226b",GT:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",HARDcy:"\u042a",harr:"\u2194",hArr:"\u21d4",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",hcirc:"\u0125",Hcirc:"\u0124",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",hstrok:"\u0127",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",iacute:"\xed",Iacute:"\xcd",ic:"\u2063",icirc:"\xee",Icirc:"\xce",icy:"\u0438",Icy:"\u0418",Idot:"\u0130",iecy:"\u0435",IEcy:"\u0415",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",igrave:"\xec",Igrave:"\xcc",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",IJlig:"\u0132",Im:"\u2111",imacr:"\u012b",Imacr:"\u012a",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",Int:"\u222c",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",iocy:"\u0451",IOcy:"\u0401",iogon:"\u012f",Iogon:"\u012e",iopf:"\ud835\udd5a",Iopf:"\ud835\udd40",iota:"\u03b9",Iota:"\u0399",iprod:"\u2a3c",iquest:"\xbf",iscr:"\ud835\udcbe",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",Itilde:"\u0128",iukcy:"\u0456",Iukcy:"\u0406",iuml:"\xef",Iuml:"\xcf",jcirc:"\u0135",Jcirc:"\u0134",jcy:"\u0439",Jcy:"\u0419",jfr:"\ud835\udd27",Jfr:"\ud835\udd0d",jmath:"\u0237",jopf:"\ud835\udd5b",Jopf:"\ud835\udd41",jscr:"\ud835\udcbf",Jscr:"\ud835\udca5",jsercy:"\u0458",Jsercy:"\u0408",jukcy:"\u0454",Jukcy:"\u0404",kappa:"\u03ba",Kappa:"\u039a",kappav:"\u03f0",kcedil:"\u0137",Kcedil:"\u0136",kcy:"\u043a",Kcy:"\u041a",kfr:"\ud835\udd28",Kfr:"\ud835\udd0e",kgreen:"\u0138",khcy:"\u0445",KHcy:"\u0425",kjcy:"\u045c",KJcy:"\u040c",kopf:"\ud835\udd5c",Kopf:"\ud835\udd42",kscr:"\ud835\udcc0",Kscr:"\ud835\udca6",lAarr:"\u21da",lacute:"\u013a",Lacute:"\u0139",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",Lambda:"\u039b",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",Larr:"\u219e",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",lAtail:"\u291b",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",Lcaron:"\u013d",lcedil:"\u013c",Lcedil:"\u013b",lceil:"\u2308",lcub:"{",lcy:"\u043b",Lcy:"\u041b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",leftarrow:"\u2190",Leftarrow:"\u21d0",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",Leftrightarrow:"\u21d4",LeftRightArrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",leg:"\u22da",lEg:"\u2a8b",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\ud835\udd29",Lfr:"\ud835\udd0f",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",LJcy:"\u0409",ll:"\u226a",Ll:"\u22d8",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",Lmidot:"\u013f",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",Longleftarrow:"\u27f8",LongLeftArrow:"\u27f5",longleftrightarrow:"\u27f7",Longleftrightarrow:"\u27fa",LongLeftRightArrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",Longrightarrow:"\u27f9",LongRightArrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",Lopf:"\ud835\udd43",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",Lstrok:"\u0141",lt:"<",Lt:"\u226a",LT:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",Map:"\u2905",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",Mcy:"\u041c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",mfr:"\ud835\udd2a",Mfr:"\ud835\udd10",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\ud835\udd5e",Mopf:"\ud835\udd44",mp:"\u2213",mscr:"\ud835\udcc2",Mscr:"\u2133",mstpos:"\u223e",mu:"\u03bc",Mu:"\u039c",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",nacute:"\u0144",Nacute:"\u0143",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",Ncaron:"\u0147",ncedil:"\u0146",Ncedil:"\u0145",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",Ncy:"\u041d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",nfr:"\ud835\udd2b",Nfr:"\ud835\udd11",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",ngt:"\u226f",nGt:"\u226b\u20d2",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",NJcy:"\u040a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nlt:"\u226e",nLt:"\u226a\u20d2",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\ud835\udd5f",Nopf:"\u2115",not:"\xac",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\ud835\udcc3",Nscr:"\ud835\udca9",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2ac5\u0338",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2ac6\u0338",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntilde:"\xf1",Ntilde:"\xd1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",Nu:"\u039d",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xf3",Oacute:"\xd3",oast:"\u229b",ocir:"\u229a",ocirc:"\xf4",Ocirc:"\xd4",ocy:"\u043e",Ocy:"\u041e",odash:"\u229d",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29bf",ofr:"\ud835\udd2c",Ofr:"\ud835\udd12",ogon:"\u02db",ograve:"\xf2",Ograve:"\xd2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",Omacr:"\u014c",omega:"\u03c9",Omega:"\u03a9",omicron:"\u03bf",Omicron:"\u039f",omid:"\u29b6",ominus:"\u2296",oopf:"\ud835\udd60",Oopf:"\ud835\udd46",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",or:"\u2228",Or:"\u2a54",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",oscr:"\u2134",Oscr:"\ud835\udcaa",oslash:"\xf8",Oslash:"\xd8",osol:"\u2298",otilde:"\xf5",Otilde:"\xd5",otimes:"\u2297",Otimes:"\u2a37",otimesas:"\u2a36",ouml:"\xf6",Ouml:"\xd6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",pcy:"\u043f",Pcy:"\u041f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\ud835\udd2d",Pfr:"\ud835\udd13",phi:"\u03c6",Phi:"\u03a6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",Pi:"\u03a0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\xa3",pr:"\u227a",Pr:"\u2abb",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prE:"\u2ab3",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\ud835\udcc5",Pscr:"\ud835\udcab",psi:"\u03c8",Psi:"\u03a8",puncsp:"\u2008",qfr:"\ud835\udd2e",Qfr:"\ud835\udd14",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",qscr:"\ud835\udcc6",Qscr:"\ud835\udcac",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",racute:"\u0155",Racute:"\u0154",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",Rarr:"\u21a0",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",Rarrtl:"\u2916",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",Rcaron:"\u0158",rcedil:"\u0157",Rcedil:"\u0156",rceil:"\u2309",rcub:"}",rcy:"\u0440",Rcy:"\u0420",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",Rho:"\u03a1",rhov:"\u03f1",RightAngleBracket:"\u27e9",rightarrow:"\u2192",Rightarrow:"\u21d2",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",Sacute:"\u015a",sbquo:"\u201a",sc:"\u227b",Sc:"\u2abc",scap:"\u2ab8",scaron:"\u0161",Scaron:"\u0160",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",scedil:"\u015f",Scedil:"\u015e",scirc:"\u015d",Scirc:"\u015c",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",Scy:"\u0421",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\ud835\udd30",Sfr:"\ud835\udd16",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",SHCHcy:"\u0429",shcy:"\u0448",SHcy:"\u0428",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",sigma:"\u03c3",Sigma:"\u03a3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",SOFTcy:"\u042c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",Sopf:"\ud835\udd4a",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\ud835\udcc8",Sscr:"\ud835\udcae",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",Star:"\u22c6",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",sube:"\u2286",subE:"\u2ac5",subedot:"\u2ac3",submult:"\u2ac1",subne:"\u228a",subnE:"\u2acb",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup:"\u2283",Sup:"\u22d1",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supE:"\u2ac6",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supne:"\u228b",supnE:"\u2acc",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",tau:"\u03c4",Tau:"\u03a4",tbrk:"\u23b4",tcaron:"\u0165",Tcaron:"\u0164",tcedil:"\u0163",Tcedil:"\u0162",tcy:"\u0442",Tcy:"\u0422",tdot:"\u20db",telrec:"\u2315",tfr:"\ud835\udd31",Tfr:"\ud835\udd17",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",theta:"\u03b8",Theta:"\u0398",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",thorn:"\xfe",THORN:"\xde",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",Topf:"\ud835\udd4b",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",Tscr:"\ud835\udcaf",tscy:"\u0446",TScy:"\u0426",tshcy:"\u045b",TSHcy:"\u040b",tstrok:"\u0167",Tstrok:"\u0166",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uacute:"\xfa",Uacute:"\xda",uarr:"\u2191",uArr:"\u21d1",Uarr:"\u219f",Uarrocir:"\u2949",ubrcy:"\u045e",Ubrcy:"\u040e",ubreve:"\u016d",Ubreve:"\u016c",ucirc:"\xfb",Ucirc:"\xdb",ucy:"\u0443",Ucy:"\u0423",udarr:"\u21c5",udblac:"\u0171",Udblac:"\u0170",udhar:"\u296e",ufisht:"\u297e",ufr:"\ud835\udd32",Ufr:"\ud835\udd18",ugrave:"\xf9",Ugrave:"\xd9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",Umacr:"\u016a",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",uogon:"\u0173",Uogon:"\u0172",uopf:"\ud835\udd66",Uopf:"\ud835\udd4c",uparrow:"\u2191",Uparrow:"\u21d1",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",Updownarrow:"\u21d5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",upsilon:"\u03c5",Upsilon:"\u03a5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",Uring:"\u016e",urtri:"\u25f9",uscr:"\ud835\udcca",Uscr:"\ud835\udcb0",utdot:"\u22f0",utilde:"\u0169",Utilde:"\u0168",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uuml:"\xfc",Uuml:"\xdc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",vcy:"\u0432",Vcy:"\u0412",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",vee:"\u2228",Vee:"\u22c1",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",vfr:"\ud835\udd33",Vfr:"\ud835\udd19",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\ud835\udd67",Vopf:"\ud835\udd4d",vprop:"\u221d",vrtri:"\u22b3",vscr:"\ud835\udccb",Vscr:"\ud835\udcb1",vsubne:"\u228a\ufe00",vsubnE:"\u2acb\ufe00",vsupne:"\u228b\ufe00",vsupnE:"\u2acc\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",wcirc:"\u0175",Wcirc:"\u0174",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",wfr:"\ud835\udd34",Wfr:"\ud835\udd1a",wopf:"\ud835\udd68",Wopf:"\ud835\udd4e",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\ud835\udccc",Wscr:"\ud835\udcb2",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\ud835\udd35",Xfr:"\ud835\udd1b",xharr:"\u27f7",xhArr:"\u27fa",xi:"\u03be",Xi:"\u039e",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\ud835\udd69",Xopf:"\ud835\udd4f",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",xscr:"\ud835\udccd",Xscr:"\ud835\udcb3",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacute:"\xfd",Yacute:"\xdd",yacy:"\u044f",YAcy:"\u042f",ycirc:"\u0177",Ycirc:"\u0176",ycy:"\u044b",Ycy:"\u042b",yen:"\xa5",yfr:"\ud835\udd36",Yfr:"\ud835\udd1c",yicy:"\u0457",YIcy:"\u0407",yopf:"\ud835\udd6a",Yopf:"\ud835\udd50",yscr:"\ud835\udcce",Yscr:"\ud835\udcb4",yucy:"\u044e",YUcy:"\u042e",yuml:"\xff",Yuml:"\u0178",zacute:"\u017a",Zacute:"\u0179",zcaron:"\u017e",Zcaron:"\u017d",zcy:"\u0437",Zcy:"\u0417",zdot:"\u017c",Zdot:"\u017b",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",zeta:"\u03b6",Zeta:"\u0396",zfr:"\ud835\udd37",Zfr:"\u2128",zhcy:"\u0436",ZHcy:"\u0416",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",zscr:"\ud835\udccf",Zscr:"\ud835\udcb5",zwj:"\u200d",zwnj:"\u200c"},m={aacute:"\xe1",Aacute:"\xc1",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",aelig:"\xe6",AElig:"\xc6",agrave:"\xe0",Agrave:"\xc0",amp:"&",AMP:"&",aring:"\xe5",Aring:"\xc5",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",brvbar:"\xa6",ccedil:"\xe7",Ccedil:"\xc7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",Eacute:"\xc9",ecirc:"\xea",Ecirc:"\xca",egrave:"\xe8",Egrave:"\xc8",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",iacute:"\xed",Iacute:"\xcd",icirc:"\xee",Icirc:"\xce",iexcl:"\xa1",igrave:"\xec",Igrave:"\xcc",iquest:"\xbf",iuml:"\xef",Iuml:"\xcf",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",Ntilde:"\xd1",oacute:"\xf3",Oacute:"\xd3",ocirc:"\xf4",Ocirc:"\xd4",ograve:"\xf2",Ograve:"\xd2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",Oslash:"\xd8",otilde:"\xf5",Otilde:"\xd5",ouml:"\xf6",Ouml:"\xd6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",THORN:"\xde",times:"\xd7",uacute:"\xfa",Uacute:"\xda",ucirc:"\xfb",Ucirc:"\xdb",ugrave:"\xf9",Ugrave:"\xd9",uml:"\xa8",uuml:"\xfc",Uuml:"\xdc",yacute:"\xfd",Yacute:"\xdd",yen:"\xa5",yuml:"\xff"},g={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"},v=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],y=String.fromCharCode,b={}.hasOwnProperty,_=function(e,t){return b.call(e,t)},w=function(e,t){if(!e)return t;var n,r={};for(n in t)r[n]=_(e,n)?e[n]:t[n];return r},A=function(e,t){var n="";return e>=55296&&e<=57343||e>1114111?(t&&S("character reference outside the permissible Unicode range"),"\ufffd"):_(g,e)?(t&&S("disallowed character reference"),g[e]):(t&&function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]==t)return!0;return!1}(v,e)&&S("disallowed character reference"),e>65535&&(n+=y((e-=65536)>>>10&1023|55296),e=56320|1023&e),n+=y(e))},x=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},k=function(e){return"&#"+e+";"},S=function(e){throw Error("Parse error: "+e)},E=function(e,t){(t=w(t,E.options)).strict&&h.test(e)&&S("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,u=t.allowUnsafeSymbols,d=t.decimal?k:x,p=function(e){return d(e.charCodeAt(0))};return n?(e=e.replace(o,function(e){return r&&_(l,e)?"&"+l[e]+";":p(e)}),r&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),r&&(e=e.replace(a,function(e){return"&"+l[e]+";"}))):r?(u||(e=e.replace(c,function(e){return"&"+l[e]+";"})),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(a,function(e){return"&"+l[e]+";"})):u||(e=e.replace(c,p)),e.replace(i,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return d(1024*(t-55296)+n-56320+65536)}).replace(s,p)};E.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function(e,t){var n=(t=w(t,T.options)).strict;return n&&d.test(e)&&S("malformed character reference"),e.replace(p,function(e,r,i,o,s,a,l,c,u){var d,h,p,g,v,y;return r?f[v=r]:i?(v=i,(y=o)&&t.isAttributeValue?(n&&"="==y&&S("`&` did not start a character reference"),e):(n&&S("named character reference was not terminated by a semicolon"),m[v]+(y||""))):s?(p=s,h=a,n&&!h&&S("character reference was not terminated by a semicolon"),d=parseInt(p,10),A(d,n)):l?(g=l,h=c,n&&!h&&S("character reference was not terminated by a semicolon"),d=parseInt(g,16),A(d,n)):(n&&S("named character reference was not terminated by a semicolon"),e)})};T.options={isAttributeValue:!1,strict:!1};var D={version:"1.2.0",encode:E,decode:T,escape:function(e){return e.replace(c,function(e){return u[e]})},unescape:T};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return D});else if(t&&!t.nodeType)if(n)n.exports=D;else for(var C in D)_(D,C)&&(t[C]=D[C]);else e.he=D}(this),function(){var e={dev:!1};e.tooltip=e.tooltip||{},e.utils=e.utils||{},e.models=e.models||{},e.charts={},e.logs={},e.dom={},"undefined"!=typeof module&&"undefined"!=typeof exports&&"undefined"==typeof d3&&(d3=require("d3")),e.dispatch=d3.dispatch("start","end"),d3.functor=function(e){return"function"==typeof e?e:function(){return e}},d3.rebind=function(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}},Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),e.dev&&(e.dispatch.on("start",function(t){e.logs.startTime=+new Date}),e.dispatch.on("end",function(t){e.logs.endTime=+new Date,e.logs.totalTime=e.logs.endTime-e.logs.startTime,e.log("total",e.logs.totalTime)})),e.log=function(){return e.dev&&window.console&&console.log&&console.log.apply?console.log.apply(console,arguments):e.dev&&window.console&&"function"==typeof console.log&&Function.prototype.bind&&Function.prototype.bind.call(console.log,console).apply(console,arguments),arguments[arguments.length-1]},e.deprecated=function(e,t){console&&console.warn&&console.warn("nvd3 warning: `"+e+"` has been deprecated. ",t||"")},e.render=function(t){t=t||1,e.render.active=!0,e.dispatch.call("start");var n=function(){for(var r,i,o=0;o<t&&(i=e.render.queue[o]);o++)r=i.generate(),typeof i.callback==typeof Function&&i.callback(r);e.render.queue.splice(0,o),e.render.queue.length?setTimeout(n):(e.dispatch.call("end"),e.render.active=!1)};setTimeout(n)},e.render.active=!1,e.render.queue=[],e.addGraph=function(t){typeof arguments[0]==typeof Function&&(t={generate:arguments[0],callback:arguments[1]}),e.render.queue.push(t),e.render.active||e.render()},"undefined"!=typeof module&&"undefined"!=typeof exports&&(module.exports=e),"undefined"!=typeof window&&(window.nv=e),e.dom.write=function(e){return void 0!==window.fastdom?fastdom.mutate(e):e()},e.dom.read=function(e){return void 0!==window.fastdom?fastdom.measure(e):e()};var t={};setCoordinates=function(e,n){t.mouseX=e,t.mouseY=n},getCoordinates=function(e,n){return t},getInterpolationType=function(e){if(!e)return d3.curveLinear;switch(e){case"linear":return d3.curveLinear;case"cardinal":return d3.curveCatmullRom;case"step":return d3.curveStep}},e.interactiveGuideline=function(){"use strict";var t={left:0,top:0},n=null,r=null,i=d3.scaleLinear(),o=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick","elementMouseDown","elementMouseUp"),s=!0,a=null,l=e.models.tooltip(),c=window.ActiveXObject;function u(d){d.each(function(d){var h=d3.select(this),p=n||960,f=r||400;function m(e){var n=e.pageX-this.getBoundingClientRect().left-window.pageXOffset,r=e.pageY-this.getBoundingClientRect().top-window.pageYOffset,s=!0,a=!1;if(c&&(n=e.offsetX,r=e.offsetY,"svg"!==e.target.tagName&&(s=!1),e.target.className.baseVal.match("nv-legend")&&(a=!0)),setCoordinates(e.pageX,e.pageY),s&&(n-=t.left,r-=t.top),"mouseout"===e.type||n<0||r<0||n>p||r>f||void 0===e.target||a){if(c&&e.target&&(void 0===e.target.className||e.target.className.match(l.nvPointerEventsClass)))return;return o.call("elementMouseout",this,{mouseX:n,mouseY:r}),u.renderGuideLine(null),void l.hidden(!0)}l.hidden(!1);var d=void 0;if("function"==typeof i.rangeBands){var h=d3.bisect(i.range(),n)-1;if(!(i.range()[h]+i.rangeBand()>=n))return o.call("elementMouseout",this,{mouseX:n,mouseY:r}),u.renderGuideLine(null),void l.hidden(!0);d=i.domain()[d3.bisect(i.range(),n)-1]}else d=i.invert(n);"mousemove"===e.type&&o.call("elementMousemove",this,{mouseX:n,mouseY:r,pointXValue:d}),"dblclick"===e.type&&o.call("elementDblclick",this,{mouseX:n,mouseY:r,pointXValue:d}),"click"===e.type&&o.call("elementClick",this,{mouseX:n,mouseY:r,pointXValue:d}),"mousedown"===e.type&&o.call("elementMouseDown",this,{mouseX:n,mouseY:r,pointXValue:d}),"mouseup"===e.type&&o.call("elementMouseUp",this,{mouseX:n,mouseY:r,pointXValue:d}),"touchmove"!==e.type||l.hidden(!0)}d3.select(this).selectAll("g.nv-wrap.nv-interactiveLineLayer").data([d]).enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer").append("g").attr("class","nv-interactiveGuideLine"),a&&(a.on("touchmove",m).on("mousemove",m,!0).on("mouseout",m,!0).on("mousedown",m,!0).on("mouseup",m,!0).on("dblclick",m).on("click",m),u.guideLine=null,u.renderGuideLine=function(t){s&&h.select(".nv-interactiveGuideLine").selectAll("line").data(null!=t?[e.utils.NaNtoZero(t)]:[],String).join(e=>e.append("line").attr("class","nv-guideline"),e=>e,e=>e.remove()).attr("x1",function(e){return e}).attr("x2",function(e){return e}).attr("y1",f).attr("y2",0)})})}return l.duration(0).hideDelay(0).hidden(!1),u.dispatch=o,u.tooltip=l,u.margin=function(e){return arguments.length?(t.top=void 0!==e.top?e.top:t.top,t.left=void 0!==e.left?e.left:t.left,u):t},u.width=function(e){return arguments.length?(n=e,u):n},u.height=function(e){return arguments.length?(r=e,u):r},u.xScale=function(e){return arguments.length?(i=e,u):i},u.showGuideLine=function(e){return arguments.length?(s=e,u):s},u.svgContainer=function(e){return arguments.length?(a=e,u):a},u},e.interactiveBisect=function(e,t,n){"use strict";if(!(e instanceof Array))return null;r="function"!=typeof n?function(e){return e.x}:n;var r,i=d3.bisector(function(e,t){return r(e)-t}).left,o=d3.max([0,i(e,t)-1]),s=r(e[o]);if(void 0===s&&(s=o),s===t)return o;var a=d3.min([o+1,e.length-1]),l=r(e[a]);return void 0===l&&(l=a),Math.abs(l-t)>=Math.abs(s-t)?o:a},e.nearestValueIndex=function(e,t,n){"use strict";var r=1/0,i=null;return e.forEach(function(e,o){var s=Math.abs(t-e);null!=e&&s<=r&&s<n&&(r=s,i=o)}),i},e.models.tooltip=function(){"use strict";var t="nvtooltip-"+Math.floor(1e5*Math.random()),n=null,r="w",i=25,o=0,s=null,a=!0,l=200,c=null,u={left:null,top:null},d=!0,h=100,p=(d3.transition().delay(l).duration(0),!0),f="nv-pointer-events-none",m=function(e,t,n){return e},g=function(e){return e},v=function(e,t){return e},y=function(e,t){if(null===e)return"";var n=d3.select(document.createElement("table"));p&&n.selectAll("thead").data([e]).enter().append("thead").append("tr").append("td").attr("colspan",3).append("strong").classed("x-value",!0).html(g(e.value));var r=n.selectAll("tbody").data([e]).enter().append("tbody").selectAll("tr").data(function(e){return e.series}).enter().append("tr").classed("highlight",function(e){return e.highlight});r.append("td").classed("legend-color-guide",!0).append("div").style("background-color",function(e){return e.color}),r.append("td").classed("key",!0).classed("total",function(e){return!!e.total}).html(function(e,t){return v(e.key,t)}),r.append("td").classed("value",!0).html(function(e,t){return m(e.value,t,e)}),r.filter(function(e,t){return void 0!==e.percent}).append("td").classed("percent",!0).html(function(e,t){return"("+d3.format(".0%")(e.percent)+")"}),r.selectAll("td").each(function(e){if(e.highlight){var t=d3.scaleLinear().domain([0,1]).range(["#fff",e.color]);d3.select(this).style("border-bottom-color",t(.6)).style("border-top-color",t(.6))}});var i=n.node().outerHTML;return void 0!==e.footer&&(i+="<div class='footer'>"+e.footer+"</div>"),i},b=function(){var e=getCoordinates(),t={left:e.mouseX,top:e.mouseY};if("none"!=getComputedStyle(document.body).transform){var n=document.body.getBoundingClientRect();t.left-=n.left,t.top-=n.top}return t},_=function(e){var t,n,o,s=c.node()?c.node().offsetHeight:0,a=c.node()?c.node().offsetWidth:0,l=document.documentElement.clientWidth;switch(r){case"e":t=-a-i,n=-s/2,e.left+t<0&&(t=i),(o=e.top+n)<0&&(n-=o);break;case"w":t=i,n=-s/2,e.left+t+a>l&&(t=-a-i),(o=e.top+n)<0&&(n-=o);break;case"n":t=-a/2-5,n=i,(o=e.left+t)<0&&(t-=o),(o=e.left+t+a)>l&&(t-=o-l);break;case"s":t=-a/2,n=-s-i,e.top+n<0&&(n=i),(o=e.left+t)<0&&(t-=o),(o=e.left+t+a)>l&&(t-=o-l);break;case"center":t=-a/2,n=-s/2;break;default:t=0,n=0}return{left:t,top:n}},w=function(){e.dom.read(function(){let e=b(),t=_(e),n=e.left+t.left,r=e.top+t.top;if(a)c.interrupt().transition().delay(l).duration(0).style("opacity",0);else if(c){let e="translate("+u.left+"px, "+u.top+"px)",t="translate("+Math.round(n)+"px, "+Math.round(r)+"px)",i=d3.interpolateString(e,t),o=.1>parseFloat(c.style.opacity),s=d3.transition().duration(o?0:h).ease(d3.easeLinear);c.interrupt().transition(s).styleTween("transform",function(){return i},"important").styleTween("-webkit-transform",function(){return i}).style("-ms-transform",t).style("opacity",1)}u.left=n,u.top=r})};function A(){if(d&&function(t){if(t&&t.series){if(e.utils.isArray(t.series))return!0;if(e.utils.isObject(t.series))return t.series=[t.series],!0}return!1}(n))return e.dom.write(function(){c&&c.node()||((c=d3.select(document.body).selectAll("#"+t).data([1])).enter().append("div").attr("class","nvtooltip "+(s||"xy-tooltip")).attr("id",t).style("top",0).style("left",0).style("opacity",0).style("position","absolute").selectAll("div, table, td, tr").classed(f,!0).classed(f,!0),c.exit().remove());var e=y(n,c.node());e&&c.node()&&(c.node().innerHTML=e),w()}),A}return A.nvPointerEventsClass=f,A.options=e.utils.optionsFunc.bind(A),A._options=Object.create({},{duration:{get:function(){return h},set:function(e){h=e}},gravity:{get:function(){return r},set:function(e){r=e}},distance:{get:function(){return i},set:function(e){i=e}},snapDistance:{get:function(){return o},set:function(e){o=e}},classes:{get:function(){return s},set:function(e){s=e}},enabled:{get:function(){return d},set:function(e){d=e}},hideDelay:{get:function(){return l},set:function(e){l=e,d3.transition().delay(l).duration(0)}},contentGenerator:{get:function(){return y},set:function(e){y=e}},valueFormatter:{get:function(){return m},set:function(e){m=e}},headerFormatter:{get:function(){return g},set:function(e){g=e}},keyFormatter:{get:function(){return v},set:function(e){v=e}},headerEnabled:{get:function(){return p},set:function(e){p=e}},position:{get:function(){return b},set:function(e){b=e}},chartContainer:{get:function(){return document.body},set:function(t){e.deprecated("chartContainer","feature removed after 1.8.3")}},fixedTop:{get:function(){return null},set:function(t){e.deprecated("fixedTop","feature removed after 1.8.1")}},offset:{get:function(){return{left:0,top:0}},set:function(t){e.deprecated("offset","use chart.tooltip.distance() instead")}},hidden:{get:function(){return a},set:function(e){a!=e&&(a=!!e,A())}},data:{get:function(){return n},set:function(e){e.point&&(e.value=e.point.x,e.series=e.series||{},e.series.value=e.point.y,e.series.color=e.point.color||e.series.color),n=e}},node:{get:function(){return c.node()},set:function(e){}},id:{get:function(){return t},set:function(e){}}}),e.utils.initOptions(A),A},e.utils.windowSize=function(){var e={width:640,height:480};return window.innerWidth&&window.innerHeight?(e.width=window.innerWidth,e.height=window.innerHeight,e):"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth?(e.width=document.documentElement.offsetWidth,e.height=document.documentElement.offsetHeight,e):(document.body&&document.body.offsetWidth&&(e.width=document.body.offsetWidth,e.height=document.body.offsetHeight),e)},e.utils.isArray=Array.isArray,e.utils.isObject=function(e){return null!==e&&"object"==typeof e},e.utils.isFunction=function(e){return"function"==typeof e},e.utils.isDate=function(e){return"[object Date]"===toString.call(e)},e.utils.isNumber=function(e){return!isNaN(e)&&"number"==typeof e},e.utils.windowResize=function(t){return window.addEventListener?window.addEventListener("resize",t):e.log("ERROR: Failed to bind to window.resize with: ",t),{callback:t,clear:function(){window.removeEventListener("resize",t)}}},e.utils.getColor=function(t){if(void 0===t||e.utils.isArray(t)&&0===t.length)return e.utils.defaultColor();if(!e.utils.isArray(t))return t;var n=[];if(d3.min(t)===t[0]){n.push(0);for(var r=1;r<t.length-1;r++)n.push(r);n.push(t.length-1)}else{n.push(t.length-1);for(r=t.length-2;r>0;r--)n.push(r);n.push(0)}var i=d3.scaleOrdinal().range(t);return function(e,t){return e.color||i(void 0===t?e:t)}},e.utils.defaultColor=function(){return e.utils.getColor(d3.scaleOrdinal(d3.schemeSet3).range())},e.utils.customTheme=function(t,n,r){n=n||function(e){return e.key};var i=(r=r||d3.scaleOrdinal(d3.schemeAccent).range()).length;return function(o,s){var a=n(o);return e.utils.isFunction(t[a])?t[a]():void 0!==t[a]?t[a]:(i||(i=r.length),r[i-=1])}},e.utils.pjax=function(t,n){var r=function(r){d3.html(r,function(r){var i=d3.select(n).node();i.parentNode.replaceChild(d3.select(r).select(n).node(),i),e.utils.pjax(t,n)})};d3.selectAll(t).on("click",function(e){history.pushState(this.href,this.textContent,this.href),r(this.href),e.preventDefault()}),d3.select(window).on("popstate",function(e){e.state&&r(e.state)})},e.utils.calcApproxTextWidth=function(t){if(e.utils.isFunction(t.style)&&e.utils.isFunction(t.text)){var n=parseInt(t.style("font-size").replace("px",""),10),r=t.text().length;return e.utils.NaNtoZero(r*n*.5)}return 0},e.utils.NaNtoZero=function(t){return!e.utils.isNumber(t)||isNaN(t)||null===t||t===1/0||t===-1/0?0:t},d3.selection.prototype.watchTransition=function(e){var t=[this].concat([].slice.call(arguments,1));return e.transition.apply(e,t)},e.utils.renderWatch=function(t,n){if(!(this instanceof e.utils.renderWatch))return new e.utils.renderWatch(t,n);var r=void 0!==n?n:250,i=[],o=this;this.models=function(e){return(e=[].slice.call(arguments,0)).forEach(function(e){e.__rendered=!1,function(e){e.dispatch.on("renderEnd",function(t){e.__rendered=!0,o.renderEnd("model")})}(e),0>i.indexOf(e)&&i.push(e)}),this},this.reset=function(e){void 0!==e&&(r=e),i=[]},this.transition=function(e,t,n){if(n=(t=arguments.length>1?[].slice.call(arguments,1):[]).length>1?t.pop():void 0!==r?r:250,this.t=d3.transition().duration(n).ease(d3.easeLinear),e.__rendered=!1,0>i.indexOf(e)&&i.push(e),0===n)return e.__rendered=!0,e.delay=function(){return this},e.duration=function(){return this},e;0===e.length||e.filter(function(e,t){return void 0!==e&&!e.length})?e.__rendered=!0:e.__rendered=!1;var s=0;return e.transition(this.t).each(function(){++s}).on("end",function(n,r){0==--s&&(e.__rendered=!0,o.renderEnd.apply(this,t))})},this.renderEnd=function(){i.every(function(e){return e.__rendered})&&(i.forEach(function(e){e.__rendered=!1}),t.apply("renderEnd",this,arguments))}},e.utils.deepExtend=function(t){(arguments.length>1?[].slice.call(arguments,1):[]).forEach(function(n){for(var r in n){var i=e.utils.isArray(t[r]),o=e.utils.isObject(t[r]),s=e.utils.isObject(n[r]);o&&!i&&s?e.utils.deepExtend(t[r],n[r]):t[r]=n[r]}})},e.utils.state=function(){if(!(this instanceof e.utils.state))return new e.utils.state;var t={},n=function(){},r=function(){return{}},i=null;this.dispatch=d3.dispatch("change","set"),this.dispatch.on("set",function(e){n(e,!0)}),this.getter=function(e){return r=e,this},this.setter=function(e,t){return t||(t=function(){}),n=function(n,r){e(n),r&&t()},this},this.init=function(t){i=i||{},e.utils.deepExtend(i,t)};var o=function(){var e=r();if(JSON.stringify(e)===JSON.stringify(t))return!1;for(var n in e)void 0===t[n]&&(t[n]={}),t[n]=e[n];return!0};this.update=function(){i&&(n(i,!1),i=null),o.call(this)&&this.dispatch.call("change",this,t)}},e.utils.optionsFunc=function(t){return t&&new Map(t).each(((t,n)=>{e.utils.isFunction(this[t])&&this[t](n)}).bind(this)),this},e.utils.calcTicksX=function(t,n){for(var r=1,i=0;i<n.length;i+=1){var o=n[i]&&n[i].values?n[i].values.length:0;r=o>r?o:r}return e.log("Requested number of ticks: ",t),e.log("Calculated max values to be: ",r),t=Math.floor(t=(t=t>r?t=r-1:t)<1?1:t),e.log("Calculating tick count as: ",t),t},e.utils.calcTicksY=function(t,n,r){if(!r)return e.utils.calcTicksX(t,n);for(var i=1,o=0;o<n.length;o+=1)for(var s,a=n[o]&&n[o].values?n[o].values:[],l=0;l<a.length;l+=1)i=(s=a[l]&&r(a[l])?r(a[l]):0)>i?s:i;return e.log("Requested number of ticks: ",t),e.log("Calculated max values to be: ",i),t=Math.floor(t=(t=t>i?i-1:t)<1?1:t),e.log("Calculating tick count as: ",t),t},e.utils.initOption=function(e,t){e._calls&&e._calls[t]?e[t]=e._calls[t]:(e[t]=function(n){return arguments.length?(e._overrides[t]=!0,e._options[t]=n,e):e._options[t]},e["_"+t]=function(n){return arguments.length?(e._overrides[t]||(e._options[t]=n),e):e._options[t]})},e.utils.initOptions=function(t){t._overrides=t._overrides||{};var n=Object.getOwnPropertyNames(t._options||{}),r=Object.getOwnPropertyNames(t._calls||{});for(var i in n=n.concat(r))e.utils.initOption(t,n[i])},e.utils.inheritOptionsD3=function(t,n,r){t._d3options=r.concat(t._d3options||[]),t._d3options=(t._d3options||[]).filter(function(e,t,n){return n.indexOf(e)===t}),r.unshift(n),r.unshift(t),e.utils.rebind.apply(this,r)},e.utils.arrayUnique=function(e){return e.sort().filter(function(t,n){return!n||t!=e[n-1]})},e.utils.symbolMap=new Map,e.utils.typeMap=(new Map).set("circle",d3.symbolCircle).set("cross",d3.symbolCross).set("diamond",d3.symbolDiamond).set("square",d3.symbolSquare).set("star",d3.symbolStar).set("triangle-up",d3.symbolTriangle).set("wye",d3.symbolWye),e.utils.symbol=function(){var t,n=64;function r(r,i){var o=t.call(this,r,i),s=n.call(this,r,i);return void 0===e.utils.symbolMap.get(o)?d3.symbol().type(e.utils.typeMap.get(o)).size(s)():e.utils.symbolMap.get(o)(s)}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:function(){return e},r):t},r.size=function(e){return arguments.length?(n="function"==typeof e?e:function(){return e},r):n},r},e.utils.inheritOptions=function(t,n){var r=Object.getOwnPropertyNames(n._options||{}),i=Object.getOwnPropertyNames(n._calls||{}),o=n._inherited||[],s=n._d3options||[],a=r.concat(i).concat(o).concat(s);a.unshift(n),a.unshift(t),e.utils.rebind.apply(this,a),t._inherited=e.utils.arrayUnique(r.concat(i).concat(o).concat(r).concat(t._inherited||[])),t._d3options=e.utils.arrayUnique(s.concat(t._d3options||[]))},e.utils.rebind=function(t,n){for(var r,i=1,o=arguments.length;++i<o;)t[r=arguments[i]]=e.utils.d3_rebind(t,n,n[r]);return t},e.utils.d3_rebind=function(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}},e.utils.initSVG=function(e){e.classed("nvd3-svg",!0)},e.utils.sanitizeHeight=function(e,t){return e||parseInt(t.style("height"),10)||400},e.utils.sanitizeWidth=function(e,t){return e||parseInt(t.style("width"),10)||960},e.utils.availableHeight=function(t,n,r){return Math.max(0,e.utils.sanitizeHeight(t,n)-r.top-r.bottom)},e.utils.availableWidth=function(t,n,r){return Math.max(0,e.utils.sanitizeWidth(t,n)-r.left-r.right)},e.utils.noData=function(t,n){var r=t.options(),i=r.margin(),o=r.noData(),s=e.utils.availableHeight(null,n,i),a=e.utils.availableWidth(null,n,i),l=i.left+a/2,c=i.top+s/2;n.selectAll("g").remove();var u=n.selectAll(".nv-noData").data(null==o?["No Data Available."]:[o]);u.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),u.attr("x",l).attr("y",c).text(function(e){return e})},e.utils.wrapTicks=function(e,t){e.each(function(){for(var e,n=d3.select(this),r=n.text().split(/\s+/).reverse(),i=[],o=0,s=n.attr("y"),a=parseFloat(n.attr("dy")),l=n.text(null).append("tspan").attr("x",0).attr("y",s).attr("dy",a+"em");e=r.pop();)i.push(e),l.text(i.join(" ")),l.node().getComputedTextLength()>t&&(i.pop(),l.text(i.join(" ")),i=[e],l=n.append("tspan").attr("x",0).attr("y",s).attr("dy",1.1*++o+a+"em").text(e))})},e.utils.arrayEquals=function(t,n){if(t===n)return!0;if(!t||!n||t.length!=n.length)return!1;for(var r=0,i=t.length;r<i;r++)if(t[r]instanceof Array&&n[r]instanceof Array){if(!e.arrayEquals(t[r],n[r]))return!1}else if(t[r]!=n[r])return!1;return!0},e.utils.pointIsInArc=function(e,t,n){var r=n.innerRadius()(t),i=n.outerRadius()(t),o=n.startAngle()(t),s=n.endAngle()(t),a=e.x*e.x+e.y*e.y,l=Math.atan2(e.x,-e.y);return l=l<0?l+2*Math.PI:l,r*r<=a&&a<=i*i&&o<=l&&l<=s},e.models.axis=function(t,n){"use strict";var r,i,o=d3.scaleOrdinal(),s={top:0,right:0,bottom:0,left:0},a=75,l=60,c=null,u=!0,d=0,h=!0,p=!1,f=!1,m=null,g=0,v=void 0,y=250,b=d3.dispatch("renderEnd");t.tickFormat(e=>e);var _=e.utils.renderWatch(b,y);function w(l){return _.reset(),l.each(function(l){var y,b,w,A=d3.select(this);e.utils.initSVG(A);var x=A.selectAll("g.nv-wrap.nv-axis").data([l]),k=x.enter().append("g").attr("class","nvd3 nv-wrap nv-axis"),S=(k=k.merge(x)).append("g");S.select("g"),S=k.select("g"),null!==m?t.ticks(m):("top"===n||"bottom"===n)&&t.ticks(Math.abs(o.range()[1]-o.range()[0])/100),S.watchTransition(_,"axis").call(t),r=r||t.scale();var E=t.tickFormat();null==E&&(E=r.tickFormat()),S.attr("fill",""),S.attr("font-size",v),S.attr("font-family","");var T=S.selectAll("text.nv-axislabel").data([c||null]);switch(T.exit().remove(),void 0!==v&&S.selectAll("g").select("text").style("font-size",v),n){case"top":y=g+36;var D=T.enter().append("text").attr("class","nv-axislabel");if(D=A.selectAll("g.nv-wrap.nv-axis").selectAll("text.nv-axislabel"),w=0,1===o.range().length?w=f?2*o.range()[0]+o.bandwidth():0:2===o.range().length?w=f?o.range()[0]+o.range()[1]+o.bandwidth():o.range()[1]:o.range().length>2&&(w=o.range()[o.range().length-1]+(o.range()[1]-o.range()[0])),D.attr("text-anchor","middle").attr("y",-y).attr("x",w/2),u){b=S.enter().append("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" ")).merge(S);var C=(b=A.selectAll("g.nv-wrap.nv-axis").selectAll("g.nv-axisMaxMin").data(o.domain()).join("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" "))).select("text");C.empty()&&b.append("text"),b.exit().remove(),b.attr("transform",function(t,n){return"translate("+e.utils.NaNtoZero(o(t))+",0)"}).select("text").attr("dy","-0.5em").attr("y",-t.tickPadding()).attr("text-anchor","middle").text(function(e,t){var n=(i||E)(e);return(""+n).match("NaN")?"":n}),b.watchTransition(_,"min-max top").attr("transform",function(t,n){return"translate("+e.utils.NaNtoZero(o.range()[n])+",0)"})}break;case"bottom":y=g+36;var M=30,I=0,O=S.selectAll("g").select("text"),L="";if(d%360){O.attr("transform",""),O.each(function(e,t){var n=this.getBoundingClientRect(),r=n.width;I=n.height,r>M&&(M=r)}),L="rotate("+d+" 0,"+(I/2+t.tickPadding())+")";var N=Math.abs(Math.sin(d*Math.PI/180));y=(N?N*M:M)+30,O.attr("transform",L).style("text-anchor",d%360>0?"start":"end")}else p?O.attr("transform",function(e,t){return"translate(0,"+(t%2==0?"0":"12")+")"}):O.attr("transform","translate(0,0)");if(D=T.enter().append("text").attr("class","nv-axislabel"),D=A.selectAll("g.nv-wrap.nv-axis").selectAll("text.nv-axislabel"),w=0,1===o.range().length?w=f?2*o.range()[0]+o.bandwidth():0:2===o.range().length?w=f?o.range()[0]+o.range()[1]+o.bandwidth():o.range()[1]:o.range().length>2&&(w=o.range()[o.range().length-1]+(o.range()[1]-o.range()[0])),D.attr("text-anchor","middle").attr("y",y).attr("x",w/2),u){b=S.enter().append("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" ")).merge(S);C=(b=A.selectAll("g.nv-wrap.nv-axis").selectAll("g.nv-axisMaxMin").data([o.domain()[0],o.domain()[o.domain().length-1]]).join("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" "))).select("text");C.empty()&&b.append("text"),b.exit().remove(),b.attr("transform",function(t,n){return"translate("+e.utils.NaNtoZero(o(t)+(f?o.bandwidth()/2:0))+",0)"}).select("text").attr("dy",".71em").attr("y",t.tickPadding()).attr("transform",L).style("text-anchor",d?d%360>0?"start":"end":"middle").text(function(e,t){var n=(i||E)(e);return(""+n).match("NaN")?"":n}),b.watchTransition(_,"min-max bottom").attr("transform",function(t,n){return"translate("+e.utils.NaNtoZero(o(t)+(f?o.bandwidth()/2:0))+",0)"})}break;case"right":if(D=T.enter().append("text").attr("class","nv-axislabel"),(D=A.selectAll("g.nv-wrap.nv-axis").selectAll("text.nv-axislabel")).style("text-anchor",h?"middle":"begin").attr("transform",h?"rotate(90)":"").attr("y",h?12-Math.max(s.right,a)-(g||0):-10).attr("x",h?d3.max(o.range())/2:t.tickPadding()),u){b=S.enter().append("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" ")).merge(S);C=(b=A.selectAll("g.nv-wrap.nv-axis").selectAll("g.nv-axisMaxMin").data(o.domain()).join("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" "))).select("text");C.empty()&&b.append("text").style("opacity",0),b.exit().remove(),b.attr("transform",function(t,n){return"translate(0,"+e.utils.NaNtoZero(o(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",t.tickPadding()).style("text-anchor","start").text(function(e,t){var n=(i||E)(e);return(""+n).match("NaN")?"":n}),b.watchTransition(_,"min-max right").attr("transform",function(t,n){return"translate(0,"+e.utils.NaNtoZero(o.range()[n])+")"}).select("text").style("opacity",1)}break;case"left":if(D=T.enter().append("text").attr("class","nv-axislabel"),(D=A.selectAll("g.nv-wrap.nv-axis").selectAll("text.nv-axislabel")).style("text-anchor",h?"middle":"end").attr("transform",h?"rotate(-90)":"").attr("y",h?25-Math.max(s.left,a)-(g||0):-10).attr("x",h?-d3.max(o.range())/2:-t.tickPadding()),u){b=S.enter().append("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" ")).merge(S);C=(b=A.selectAll("g.nv-wrap.nv-axis").selectAll("g.nv-axisMaxMin").data(o.domain()).join("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" "))).select("text");C.empty()&&b.append("text").style("opacity",0),b.exit().remove(),b.attr("transform",function(t,n){return"translate(0,"+e.utils.NaNtoZero(r(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",-t.tickPadding()).attr("text-anchor","end").text(function(e,t){var n=(i||E)(e);return(""+n).match("NaN")?"":n}),b.watchTransition(_,"min-max right").attr("transform",function(t,n){return"translate(0,"+e.utils.NaNtoZero(o.range()[n])+")"}).select("text").style("opacity",1)}}if(D.text(function(e){return e}),u&&("left"===n||"right"===n)&&(S.selectAll("g").each(function(e,t){d3.select(this).select("text").attr("opacity",1),(o(e)<o.range()[1]+10||o(e)>o.range()[0]-10)&&((e>1e-10||e<-1e-10)&&d3.select(this).attr("opacity",0),d3.select(this).select("text").attr("opacity",0))}),o.domain()[0]==o.domain()[1]&&0==o.domain()[0]&&x.selectAll("g.nv-axisMaxMin").style("opacity",function(e,t){return t?0:1})),u&&("top"===n||"bottom"===n)){var P=[];b.each(function(e,t){try{t?P.push(o(e)-this.getBoundingClientRect().width-4):P.push(o(e)+this.getBoundingClientRect().width+4)}catch(n){t?P.push(o(e)-4):P.push(o(e)+4)}}),S.selectAll("g").each(function(e,t){(o(e)<P[0]||o(e)>P[1])&&(e>1e-10||e<-1e-10?d3.select(this).remove():d3.select(this).select("text").remove())})}S.selectAll(".tick").filter(function(e){return!parseFloat(Math.round(1e5*e)/1e6)&&void 0!==e}).classed("zero",!0),S.selectAll(".tick text").each(function(e){var t=d3.select(this);setTimeout(function(){if(t.node().getComputedTextLength()>120){var e=t.text().substring(0,10)+"...";t.text(e)}},100)}),r=o.copy()}),_.renderEnd("axis immediate"),w}return w.axis=t,w.dispatch=b,w.options=e.utils.optionsFunc.bind(w),w._options=Object.create({},{axisLabelDistance:{get:function(){return g},set:function(e){g=e}},staggerLabels:{get:function(){return p},set:function(e){p=e}},rotateLabels:{get:function(){return d},set:function(e){d=e}},rotateYLabel:{get:function(){return h},set:function(e){h=e}},showMaxMin:{get:function(){return u},set:function(e){u=e}},axisLabel:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return l},set:function(e){l=e}},ticks:{get:function(){return m},set:function(e){m=e}},width:{get:function(){return a},set:function(e){a=e}},fontSize:{get:function(){return v},set:function(e){v=e}},tickFormatMaxMin:{get:function(){return i},set:function(e){i=e}},margin:{get:function(){return s},set:function(e){s.top=void 0!==e.top?e.top:s.top,s.right=void 0!==e.right?e.right:s.right,s.bottom=void 0!==e.bottom?e.bottom:s.bottom,s.left=void 0!==e.left?e.left:s.left}},duration:{get:function(){return y},set:function(e){y=e,_.reset(y)}},scale:{get:function(){return o},set:function(n){o=n,t.scale(o),f="function"==typeof o.rangeBands,e.utils.inheritOptionsD3(w,o,["domain","range"])}}}),e.utils.initOptions(w),e.utils.inheritOptionsD3(w,t,["tickValues","tickSubdivide","tickSizeInner","tickSizeOuter","tickPadding","tickFormat"]),e.utils.inheritOptionsD3(w,o,["domain","range"]),w},e.models.boxPlot=function(){"use strict";var t,n,r,i,o,s,a={top:0,right:0,bottom:0,left:0},l=960,c=500,u=Math.floor(1e4*Math.random()),d=d3.scaleBand(),h=d3.scaleLinear(),p=function(e){return e.label},f=function(e){return e.values.Q1},m=function(e){return e.values.Q2},g=function(e){return e.values.Q3},v=function(e){return e.values.whisker_low},y=function(e){return e.values.whisker_high},b=function(e){return e.color},_=function(e){return e.values.outliers},w=function(e,t,n){return e},A=function(e,t,n){return e},x=function(e,t,n){},k=e.utils.defaultColor(),S=null,E=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),T=250,D=null,C=e.utils.renderWatch(E,T);function M(u){return C.reset(),u.each(function(u){var M=l-a.left-a.right,I=c-a.top-a.bottom;S=d3.select(this),e.utils.initSVG(S),d.domain(r||u.map(function(e,t){return p(e,t)})).range(i||[0,M],.1);var O=[];if(!o){var L=[];u.forEach(function(e,t){var n=f(e),r=g(e),i=v(e),o=y(e),s=_(e);s&&s.forEach(function(e,t){L.push(w(e,t,void 0))}),i&&L.push(i),n&&L.push(n),r&&L.push(r),o&&L.push(o)}),O=[d3.min(L),d3.max(L)]}h.domain(o||O),h.range(s||[I,0]),t=t||d,n=n||h.copy().range([h(0),h(0)]);var N=S.selectAll("g.nv-wrap").data([u]).enter().append("g").attr("class","nvd3 nv-wrap");N.attr("transform","translate("+a.left+","+a.top+")");var P=N.selectAll(".nv-boxplot").data(function(e){return e}),R=P.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);R.attr("class","nv-boxplot").attr("transform",function(e,t,n){return"translate("+(d(p(e,t))+.05*d.bandwidth())+", 0)"}).classed("hover",function(e){return e.hover}),R.watchTransition(C,"nv-boxplot: boxplots").style("stroke-opacity",1).style("fill-opacity",.75).delay(function(e,t){return t*T/u.length}).attr("transform",function(e,t){return"translate("+(d(p(e,t))+.05*d.bandwidth())+", 0)"}),P.exit().remove(),R.each(function(e,t){var n=d3.select(this);[v,y].forEach(function(r){if(void 0!==r(e)&&null!==r(e)){var i=r===v?"low":"high";n.append("line").style("stroke",b(e)||k(e,t)).attr("class","nv-boxplot-whisker nv-boxplot-"+i),n.append("line").style("stroke",b(e)||k(e,t)).attr("class","nv-boxplot-tick nv-boxplot-"+i)}})});var j=function(){return null===D?.9*d.bandwidth():Math.min(75,.9*d.bandwidth())},F=function(){return.45*d.bandwidth()-j()/2},B=function(){return.45*d.bandwidth()+j()/2};[v,y].forEach(function(e){var t=e===v?"low":"high",n=e===v?f:g;R.select("line.nv-boxplot-whisker.nv-boxplot-"+t).watchTransition(C,"nv-boxplot: boxplots").attr("x1",.45*d.bandwidth()).attr("y1",function(t,n){return h(e(t))}).attr("x2",.45*d.bandwidth()).attr("y2",function(e,t){return h(n(e))}),R.select("line.nv-boxplot-tick.nv-boxplot-"+t).watchTransition(C,"nv-boxplot: boxplots").attr("x1",F).attr("y1",function(t,n){return h(e(t))}).attr("x2",B).attr("y2",function(t,n){return h(e(t))})}),[v,y].forEach(function(e){var t=e===v?"low":"high";R.selectAll(".nv-boxplot-"+t).on("mouseover",function(t,n,r,i){setCoordinates(t.pageX,t.pageY),d3.select(this).classed("hover",!0),E.call("elementMouseover",this,{series:{key:e(n),color:b(n)||k(n,i)},e:t})}).on("mouseout",function(t,n,r,i){d3.select(this).classed("hover",!1),E.call("elementMouseout",this,{series:{key:e(n),color:b(n)||k(n,i)},e:t})}).on("mousemove",function(e,t,n){E.call("elementMousemove",this,{e:e})})}),R.append("rect").attr("class","nv-boxplot-box").on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0),E.call("elementMouseover",this,{key:p(t),value:p(t),series:[{key:"Q3",value:g(t),color:b(t)||k(t,n)},{key:"Q2",value:m(t),color:b(t)||k(t,n)},{key:"Q1",value:f(t),color:b(t)||k(t,n)}],data:t,index:t.index,e:e})}).on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1),E.call("elementMouseout",this,{key:p(t),value:p(t),series:[{key:"Q3",value:g(t),color:b(t)||k(t,n)},{key:"Q2",value:m(t),color:b(t)||k(t,n)},{key:"Q1",value:f(t),color:b(t)||k(t,n)}],data:t,index:t.index,e:e})}).on("mousemove",function(e,t,n){E.call("elementMousemove",this,{e:e})}).watchTransition(C,"nv-boxplot: boxes").attr("y",function(e,t){return h(g(e))}).attr("width",j).attr("x",F).attr("height",function(e,t){return Math.abs(h(g(e))-h(f(e)))||1}).style("fill",function(e,t){return b(e)||k(e,t)}).style("stroke",function(e,t){return b(e)||k(e,t)}),R.append("line").attr("class","nv-boxplot-median").watchTransition(C,"nv-boxplot: boxplots line").attr("x1",F).attr("y1",function(e,t){return h(m(e))}).attr("x2",B).attr("y2",function(e,t){return h(m(e))});var Y=R.selectAll(".nv-boxplot-outlier").data(function(e){return _(e)||[]});Y.enter().append("circle").style("fill",function(e,t,n){return x(e,t,n)||k(e,n)}).style("stroke",function(e,t,n){return x(e,t,n)||k(e,n)}).style("z-index",9e3).on("mouseover",function(e,t,n,r){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0),E.call("elementMouseover",this,{series:{key:A(t,n,r),color:x(t,n,r)||k(t,r)},e:e})}).on("mouseout",function(e,t,n,r){d3.select(this).classed("hover",!1),E.call("elementMouseout",this,{series:{key:A(t,n,r),color:x(t,n,r)||k(t,r)},e:e})}).on("mousemove",function(e,t,n){E.call("elementMousemove",this,{e:e})}),Y.attr("class","nv-boxplot-outlier"),Y.watchTransition(C,"nv-boxplot: nv-boxplot-outlier").attr("cx",.45*d.bandwidth()).attr("cy",function(e,t,n){return h(w(e,t,n))}).attr("r","3"),Y.exit().remove(),t=d.copy(),n=h.copy()}),C.renderEnd("nv-boxplot immediate"),M}return M.dispatch=E,M.options=e.utils.optionsFunc.bind(M),M._options=Object.create({},{width:{get:function(){return l},set:function(e){l=e}},height:{get:function(){return c},set:function(e){c=e}},maxBoxWidth:{get:function(){return D},set:function(e){D=e}},x:{get:function(){return p},set:function(e){p=e}},q1:{get:function(){return f},set:function(e){f=e}},q2:{get:function(){return m},set:function(e){m=e}},q3:{get:function(){return g},set:function(e){g=e}},wl:{get:function(){return v},set:function(e){v=e}},wh:{get:function(){return y},set:function(e){y=e}},itemColor:{get:function(){return b},set:function(e){b=e}},outliers:{get:function(){return _},set:function(e){_=e}},outlierValue:{get:function(){return w},set:function(e){w=e}},outlierLabel:{get:function(){return A},set:function(e){A=e}},outlierColor:{get:function(){return x},set:function(e){x=e}},xScale:{get:function(){return d},set:function(e){d=e}},yScale:{get:function(){return h},set:function(e){h=e}},xDomain:{get:function(){return r},set:function(e){r=e}},yDomain:{get:function(){return o},set:function(e){o=e}},xRange:{get:function(){return i},set:function(e){i=e}},yRange:{get:function(){return s},set:function(e){s=e}},id:{get:function(){return u},set:function(e){u=e}},y:{get:function(){return console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead."),{}},set:function(e){console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead.")}},margin:{get:function(){return a},set:function(e){a.top=void 0!==e.top?e.top:a.top,a.right=void 0!==e.right?e.right:a.right,a.bottom=void 0!==e.bottom?e.bottom:a.bottom,a.left=void 0!==e.left?e.left:a.left}},color:{get:function(){return k},set:function(t){k=e.utils.getColor(t)}},duration:{get:function(){return T},set:function(e){T=e,C.reset(T)}}}),e.utils.initOptions(M),M},e.models.boxPlotChart=function(){"use strict";var t,n,r=e.models.boxPlot(),i=e.models.axis(d3.axisBottom(d3.scaleBand()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s={top:15,right:10,bottom:50,left:60},a=null,l=null,c=e.utils.getColor(),u=!0,d=!0,h=!1,p=!1,f=e.models.tooltip(),m="No Data Available.",g=d3.dispatch("beforeUpdate","renderEnd"),v=250;d3.transition().duration(v).ease(d3.easeLinear);i.showMaxMin(!1).scale(),i.tickFormat(function(e){return e}),o.scale(),o.tickFormat(d3.format(",.1f")),f.duration(0);var y=e.utils.renderWatch(g,v);function b(c){return y.reset(),y.models(r),u&&y.models(i),d&&y.models(o),c.each(function(c){var f=d3.select(this);e.utils.initSVG(f);var y=(a||parseInt(f.style("width"))||960)-s.left-s.right,_=(l||parseInt(f.style("height"))||400)-s.top-s.bottom;if(b.update=function(){g.call("beforeUpdate",this),f.transition().duration(v).call(b)},b.container=this,!c||!c.length){var w=f.selectAll(".nv-noData").data([m]);return w.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),w.attr("x",s.left+y/2).attr("y",s.top+_/2).text(function(e){return e}),b}f.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale().clamp(!0);var A=f.selectAll("g.nv-wrap.nv-boxPlotWithAxes").data([c]),x=A.enter().append("g").attr("class","nvd3 nv-wrap nv-boxPlotWithAxes").append("g"),k=x.append("defs");A.select("g");var S=x.append("g").attr("class","nv-x nv-axis");S=f.selectAll("g.nv-wrap.nv-boxPlotWithAxes").select(".nv-x");var E=x.append("g").attr("class","nv-y nv-axis"),T=E.append("g").attr("class","nv-zeroLine").append("line"),D=x.append("g").attr("class","nv-barsWrap");if(x.attr("transform","translate("+s.left+","+s.top+")"),h&&E.attr("transform","translate("+y+",0)"),r.width(y).height(_),D.datum(c.filter(function(e){return!e.disabled})).transition().call(r),k.append("clipPath").attr("id","nv-x-label-clip-"+r.id()).append("rect").attr("width",t.bandwidth()*(p?2:1)).attr("height",16).attr("x",-t.bandwidth()/(p?1:2)),u){i.scale(t)._ticks(e.utils.calcTicksX(y/100,c)),i.tickSizeInner(-_),S.attr("transform","translate(0,"+n.range()[0]+")"),S.call(i);var C=S.select("g.nvd3.nv-wrap.nv-axis").selectAll("g");p&&C.selectAll("text").attr("transform",function(e,t,n){return"translate(0,"+(n%2==0?"5":"17")+")"})}d&&(o.scale(n)._ticks(Math.floor(_/36)),o.tickSizeInner(-y),E.call(o)),T.attr("x1",0).attr("x2",y).attr("y1",n(0)).attr("y2",n(0))}),y.renderEnd("nv-boxplot chart immediate"),b}return r.dispatch.on("elementMouseover.tooltip",function(e){f.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){f.data(e).hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(e){f()}),b.dispatch=g,b.boxplot=r,b.xAxis=i,b.yAxis=o,b.tooltip=f,b.options=e.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return a},set:function(e){a=e}},height:{get:function(){return l},set:function(e){l=e}},staggerLabels:{get:function(){return p},set:function(e){p=e}},showXAxis:{get:function(){return u},set:function(e){u=e}},showYAxis:{get:function(){return d},set:function(e){d=e}},tooltipContent:{get:function(){return f},set:function(e){f=e}},noData:{get:function(){return m},set:function(e){m=e}},margin:{get:function(){return s},set:function(e){s.top=void 0!==e.top?e.top:s.top,s.right=void 0!==e.right?e.right:s.right,s.bottom=void 0!==e.bottom?e.bottom:s.bottom,s.left=void 0!==e.left?e.left:s.left}},duration:{get:function(){return v},set:function(e){v=e,y.reset(v),d3.transition().duration(v).ease(d3.easeLinear),r.duration(v),i.duration(v),o.duration(v)}},color:{get:function(){return c},set:function(t){c=e.utils.getColor(t),r.color(c)}},rightAlignYAxis:{get:function(){return h},set:function(e){h=e,o.orient(e?"right":"left")}}}),e.utils.inheritOptions(b,r),e.utils.initOptions(b),b},e.models.bullet=function(){"use strict";var t={top:0,right:0,bottom:0,left:0},n="left",r=!1,i=function(e){return e.ranges},o=function(e){return e.markers?e.markers:[]},s=function(e){return e.markerLines?e.markerLines:[0]},a=function(e){return e.measures},l=function(e){return e.rangeLabels?e.rangeLabels:[]},c=function(e){return e.markerLabels?e.markerLabels:[]},u=function(e){return e.markerLineLabels?e.markerLineLabels:[]},d=function(e){return e.measureLabels?e.measureLabels:[]},h=[0],p=380,f=30,m=null,g=null,v=e.utils.getColor(["#1f77b4"]),y=d3.dispatch("elementMouseover","elementMouseout","elementMousemove"),b=["Maximum","Mean","Minimum"],_=["Max","Avg","Min"],w=1e3;d3.transition().duration(w).ease(d3.easeLinear);function A(e,t){var n=e.slice();e.sort(function(e,r){var i=n.indexOf(e),o=n.indexOf(r);return d3.descending(t[i],t[o])})}function x(n){return n.each(function(n,g){var w=p-t.left-t.right,x=f-t.top-t.bottom;m=d3.select(this),e.utils.initSVG(m);var k=i.call(this,n,g).slice(),S=o.call(this,n,g).slice(),E=s.call(this,n,g).slice(),T=a.call(this,n,g).slice(),D=l.call(this,n,g).slice(),C=c.call(this,n,g).slice(),M=u.call(this,n,g).slice(),I=d.call(this,n,g).slice();A(D,k),A(C,S),A(M,E),A(I,T),k.sort(d3.descending),S.sort(d3.descending),E.sort(d3.descending),T.sort(d3.descending);var O=d3.scaleLinear().domain(d3.extent(d3.merge([h,k]))).range(r?[w,0]:[0,w]);this.__chart__||d3.scaleLinear().domain([0,1/0]).range(O.range()),this.__chart__=O,d3.min(k),d3.max(k),k[1];for(var L=m.selectAll("g.nv-wrap.nv-bullet").data([n]),N=L.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet").append("g"),P=L.select("g"),R=(g=0,k.length);g<R;g++){var j="nv-range nv-range"+g;g<=2&&(j=j+" nv-range"+_[g]),N.append("rect").attr("class",j)}N.append("rect").attr("class","nv-measure"),L.attr("transform","translate("+t.left+","+t.top+")");var F=function(e){return Math.abs(O(e)-O(0))},B=function(e){return O(e<0?e:0)};for(g=0,R=k.length;g<R;g++){var Y=k[g];P.select("rect.nv-range"+g).datum(Y).attr("height",x).transition().duration(1e3).attr("width",F(Y)).attr("x",B(Y))}P.select("rect.nv-measure").style("fill",v).attr("height",x/3).attr("y",x/3).on("mouseover",function(){y.call("elementMouseover",this,{value:T[0],label:I[0]||"Current",color:d3.select(this).style("fill")})}).on("mousemove",function(){y.call("elementMousemove",this,{value:T[0],label:I[0]||"Current",color:d3.select(this).style("fill")})}).on("mouseout",function(){y.call("elementMouseout",this,{value:T[0],label:I[0]||"Current",color:d3.select(this).style("fill")})}).transition().duration(1e3).attr("width",T<0?O(0)-O(T[0]):O(T[0])-O(0)).attr("x",B(T));var V=x/6,H=S.map(function(e,t){return{value:e,label:C[t]}});N.selectAll("path.nv-markerTriangle").data(H).enter().append("path").attr("class","nv-markerTriangle").attr("d","M0,"+V+"L"+V+","+-V+" "+-V+","+-V+"Z").on("mouseover",function(e){y.call("elementMouseover",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill"),pos:[O(e.value),x/2]})}).on("mousemove",function(e){y.call("elementMousemove",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(e,t){y.call("elementMouseout",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill")})}),P.selectAll("path.nv-markerTriangle").data(H).transition().duration(1e3).attr("transform",function(e){return"translate("+O(e.value)+","+x/2+")"});var U=E.map(function(e,t){return{value:e,label:M[t]}});N.selectAll("line.nv-markerLine").data(U).enter().append("line").attr("cursor","").attr("class","nv-markerLine").attr("x1",function(e){return O(e.value)}).attr("y1","2").attr("x2",function(e){return O(e.value)}).attr("y2",x-2).on("mouseover",function(e){y.call("elementMouseover",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill"),pos:[O(e.value),x/2]})}).on("mousemove",function(e){y.call("elementMousemove",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(e,t){y.call("elementMouseout",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill")})}),P.selectAll("line.nv-markerLine").data(U).transition().duration(1e3).attr("x1",function(e){return O(e.value)}).attr("x2",function(e){return O(e.value)}),L.selectAll(".nv-range").on("mouseover",function(e,t){var n=D[t]||b[t];y.call("elementMouseover",this,{value:e,label:n,color:d3.select(this).style("fill")})}).on("mousemove",function(){y.call("elementMousemove",this,{value:T[0],label:I[0]||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(e,t){var n=D[t]||b[t];y.call("elementMouseout",this,{value:e,label:n,color:d3.select(this).style("fill")})})}),x}return x.dispatch=y,x.options=e.utils.optionsFunc.bind(x),x._options=Object.create({},{ranges:{get:function(){return i},set:function(e){i=e}},markers:{get:function(){return o},set:function(e){o=e}},measures:{get:function(){return a},set:function(e){a=e}},forceX:{get:function(){return h},set:function(e){h=e}},width:{get:function(){return p},set:function(e){p=e}},height:{get:function(){return f},set:function(e){f=e}},tickFormat:{get:function(){return g},set:function(e){g=e}},duration:{get:function(){return w},set:function(e){w=e,d3.transition().duration(w).ease(d3.easeLinear)}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},orient:{get:function(){return n},set:function(e){r="right"==(n=e)||"bottom"==n}},color:{get:function(){return v},set:function(t){v=e.utils.getColor(t)}}}),e.utils.initOptions(x),x},e.models.bulletChart=function(){"use strict";var t=e.models.bullet(),n=e.models.tooltip(),r="left",i=!1,o={top:5,right:40,bottom:20,left:120},s=function(e){return e.ranges},a=function(e){return e.markers?e.markers:[]},l=function(e){return e.measures},c=null,u=55,d=null,h=null,p=null,f=d3.dispatch();function m(n){return n.each(function(r,p){var f=d3.select(this);e.utils.initSVG(f);var g=e.utils.availableWidth(c,f,o),v=u-o.top-o.bottom;if(m.update=function(){m(n)},m.container=this,!r||!s.call(this,r,p))return e.utils.noData(m,f),m;f.selectAll(".nv-noData").remove();var y=s.call(this,r,p).slice().sort(d3.descending),b=a.call(this,r,p).slice().sort(d3.descending),_=l.call(this,r,p).slice().sort(d3.descending),w=f.selectAll("g.nv-wrap.nv-bulletChart").data([r]);w.attr("transform","translate("+o.left+","+o.top+")");var A=w.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart").append("g"),x=w.select("g"),k=A.append("g").attr("class","nv-bulletWrap"),S=A.append("g").attr("class","nv-titles"),E=d3.scaleLinear().domain([0,Math.max(y[0],b[0]||0,_[0])]).range(i?[g,0]:[0,g]),T=this.__chart__||d3.scaleLinear().domain([0,1/0]).range(E.range());this.__chart__=E;var D=S.append("g").attr("text-anchor","end").attr("transform","translate(-6,"+(u-o.top-o.bottom)/2+")");D.append("text").attr("class","nv-title").text(function(e){return e.title}),D.append("text").attr("class","nv-subtitle").attr("dy","1em").text(function(e){return e.subtitle}),t.width(g).height(v),k.transition().call(t);var C=d||E.tickFormat(g/100),M=x.selectAll("g.nv-tick").data(E.ticks(h||g/50),function(e){return this.textContent||C(e)}),I=M.enter().append("g").attr("class","nv-tick").attr("transform",function(e){return"translate("+T(e)+",0)"}).style("opacity",1e-6);I.append("line").attr("y1",v).attr("y2",7*v/6),I.append("text").attr("text-anchor","middle").attr("dy","1em").attr("y",7*v/6).text(C);var O=M.transition().duration(t.duration()).attr("transform",function(e){return"translate("+E(e)+",0)"}).style("opacity",1);O.select("line").attr("y1",v).attr("y2",7*v/6),O.select("text").attr("y",7*v/6),I.transition().duration(t.duration()).attr("transform",function(e){return"translate("+E(e)+",0)"}).style("opacity",1e-6).remove()}),d3.timerFlush(),m}return n.duration(0).headerEnabled(!1),t.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:e.label,value:e.value,color:e.color},n.data(e).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(e){n.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(e){n()}),m.bullet=t,m.dispatch=f,m.tooltip=n,m.options=e.utils.optionsFunc.bind(m),m._options=Object.create({},{ranges:{get:function(){return s},set:function(e){s=e}},markers:{get:function(){return a},set:function(e){a=e}},measures:{get:function(){return l},set:function(e){l=e}},width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},tickFormat:{get:function(){return d},set:function(e){d=e}},ticks:{get:function(){return h},set:function(e){h=e}},noData:{get:function(){return p},set:function(e){p=e}},margin:{get:function(){return o},set:function(e){o.top=void 0!==e.top?e.top:o.top,o.right=void 0!==e.right?e.right:o.right,o.bottom=void 0!==e.bottom?e.bottom:o.bottom,o.left=void 0!==e.left?e.left:o.left}},orient:{get:function(){return r},set:function(e){i="right"==(r=e)||"bottom"==r}}}),e.utils.inheritOptions(m,t),e.utils.initOptions(m),m},e.models.candlestickBar=function(){"use strict";var t,n,r,i,o,s={top:0,right:0,bottom:0,left:0},a=null,l=null,c=Math.floor(1e4*Math.random()),u=d3.scaleLinear(),d=d3.scaleLinear(),h=function(e){return e.x},p=function(e){return e.y},f=function(e){return e.open},m=function(e){return e.close},g=function(e){return e.high},v=function(e){return e.low},y=[],b=[],_=!1,w=!0,A=e.utils.defaultColor(),x=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function S(A){return A.each(function(A){t=d3.select(this);var x=e.utils.availableWidth(a,t,s),S=e.utils.availableHeight(l,t,s);e.utils.initSVG(t);var E=x/A[0].values.length*.45;u.domain(n||d3.extent(A[0].values.map(h).concat(y))),_?u.range(i||[.5*x/A[0].values.length,x*(A[0].values.length-.5)/A[0].values.length]):u.range(i||[5+E/2,x-E/2-5]),d.domain(r||[d3.min(A[0].values.map(v).concat(b)),d3.max(A[0].values.map(g).concat(b))]).range(o||[S,0]),u.domain()[0]===u.domain()[1]&&(u.domain()[0]?u.domain([u.domain()[0]-.01*u.domain()[0],u.domain()[1]+.01*u.domain()[1]]):u.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var T=d3.select(this).selectAll("g.nv-wrap.nv-candlestickBar").data([A[0].values]),D=T.enter().append("g").attr("class","nvd3 nv-wrap nv-candlestickBar");D.attr("transform","translate("+s.left+","+s.top+")");var C=D.append("defs"),M=D.append("g");T.select("g");var I=M.append("g").attr("class","nv-ticks");t.on("click",function(e,t,n){k.call("chartClick",this,{data:t,index:t.index,pos:e,id:c})}),C.append("clipPath").attr("id","nv-chart-clip-path-"+c).append("rect").attr("width",x).attr("height",S),M.attr("clip-path",w?"url(#nv-chart-clip-path-"+c+")":"");var O=I.selectAll(".nv-tick").data(function(e){return e});O.exit().remove();var L=O.enter().append("g");L.attr("class",function(e,t,n){return(f(e,t)>m(e,t)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+t}),L.append("line").attr("class","nv-candlestick-lines").attr("transform",function(e,t){return"translate("+u(h(e,t))+",0)"}).attr("x1",0).attr("y1",function(e,t){return d(g(e,t))}).attr("x2",0).attr("y2",function(e,t){return d(v(e,t))}),L.append("rect").attr("class","nv-candlestick-rects nv-bars").attr("transform",function(e,t){return"translate("+(u(h(e,t))-E/2)+","+(d(p(e,t))-(f(e,t)>m(e,t)?d(m(e,t))-d(f(e,t)):0))+")"}).attr("x",0).attr("y",0).attr("width",E).attr("height",function(e,t){var n=f(e,t),r=m(e,t);return n>r?d(r)-d(n):d(n)-d(r)}),L.select(".nv-candlestick-lines").transition().attr("transform",function(e,t){return"translate("+u(h(e,t))+",0)"}).attr("x1",0).attr("y1",function(e,t){return d(g(e,t))}).attr("x2",0).attr("y2",function(e,t){return d(v(e,t))}),L.select(".nv-candlestick-rects").transition().attr("transform",function(e,t){return"translate("+(u(h(e,t))-E/2)+","+(d(p(e,t))-(f(e,t)>m(e,t)?d(m(e,t))-d(f(e,t)):0))+")"}).attr("x",0).attr("y",0).attr("width",E).attr("height",function(e,t){var n=f(e,t),r=m(e,t);return n>r?d(r)-d(n):d(n)-d(r)})}),S}return S.highlightPoint=function(e,n){S.clearHighlights(),t.select(".nv-candlestickBar .nv-tick-0-"+e).classed("hover",n)},S.clearHighlights=function(){t.select(".nv-candlestickBar .nv-tick.hover").classed("hover",!1)},S.dispatch=k,S.options=e.utils.optionsFunc.bind(S),S._options=Object.create({},{width:{get:function(){return a},set:function(e){a=e}},height:{get:function(){return l},set:function(e){l=e}},xScale:{get:function(){return u},set:function(e){u=e}},yScale:{get:function(){return d},set:function(e){d=e}},xDomain:{get:function(){return n},set:function(e){n=e}},yDomain:{get:function(){return r},set:function(e){r=e}},xRange:{get:function(){return i},set:function(e){i=e}},yRange:{get:function(){return o},set:function(e){o=e}},forceX:{get:function(){return y},set:function(e){y=e}},forceY:{get:function(){return b},set:function(e){b=e}},padData:{get:function(){return _},set:function(e){_=e}},clipEdge:{get:function(){return w},set:function(e){w=e}},id:{get:function(){return c},set:function(e){c=e}},interactive:{get:function(){return x},set:function(e){x=e}},x:{get:function(){return h},set:function(e){h=e}},y:{get:function(){return p},set:function(e){p=e}},open:{get:function(){return f()},set:function(e){f=e}},close:{get:function(){return m()},set:function(e){m=e}},high:{get:function(){return g},set:function(e){g=e}},low:{get:function(){return v},set:function(e){v=e}},margin:{get:function(){return s},set:function(e){s.top=null!=e.top?e.top:s.top,s.right=null!=e.right?e.right:s.right,s.bottom=null!=e.bottom?e.bottom:s.bottom,s.left=null!=e.left?e.left:s.left}},color:{get:function(){return A},set:function(t){A=e.utils.getColor(t)}}}),e.utils.initOptions(S),S},e.models.cumulativeLineChart=function(){"use strict";var t,n,r=e.models.line(),i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=e.models.legend(),a=e.models.legend(),l=e.interactiveGuideline(),c=e.models.tooltip(),u={top:30,right:30,bottom:50,left:60},d=null,h=e.utils.defaultColor(),p=null,f=null,m=!0,g=!0,v=!0,y=!1,b=!0,_=!1,w=!0,A="top",x=r.id(),k=e.utils.state(),S=null,E=null,T=function(e){return e.average},D=d3.dispatch("stateChange","changeState","renderEnd"),C=250,M=(d3.transition().duration(C).ease(d3.easeLinear),!1);k.index=0,k.rescaleY=w,i.tickPadding(7),c.valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),a.updateState(!1);var I,O=d3.scaleLinear(),L={i:0,x:0},N=e.utils.renderWatch(D,C);function P(c){return N.reset(),N.models(r),g&&N.models(i),v&&N.models(o),c.each(function(c){var A,E,N,F=d3.select(this);e.utils.initSVG(F),F.classed("nv-chart-"+x,!0);var B,Y,V=e.utils.availableWidth(p,F,u),H=e.utils.availableHeight(f,F,u);if(P.update=function(){0===C?F.call(P):F.transition().duration(C).call(P)},P.container=this,k.setter((B=c,function(e){void 0!==e.index&&(L.i=e.index),void 0!==e.rescaleY&&(w=e.rescaleY),void 0!==e.active&&B.forEach(function(t,n){t.disabled=!e.active[n]})}),P.update).getter((Y=c,function(){return{active:Y.map(function(e){return!e.disabled}),index:L.i,rescaleY:w}})).update(),k.disabled=c.map(function(e){return!!e.disabled}),!S)for(N in S={},k)k[N]instanceof Array?S[N]=k[N].slice(0):S[N]=k[N];var U=d3.drag().on("start",function(e,t){d3.select(P.container).style("cursor","ew-resize")}).on("drag",function(e,t,n){L.x=e.x,L.i=Math.round(O.invert(L.x)),ue()}).on("end",function(e,t){d3.select(P.container).style("cursor","auto"),k.index=L.i,D.call("stateChange",this,k)});if(!c||!c.length||!c.filter(function(e){return e.values.length}).length)return e.utils.noData(P,F),P;F.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale(),O.domain([0,c[0].values.length-1]).range([0,V]).clamp(!0);A=L.i,E=c,R||(R=r.y()),c=E.map(function(e,t){if(!e.values)return e;var n=e.values[A];if(null==n)return e;var r=R(n,A);return 1e-5>Math.abs(r)&&!M?(e.tempDisabled=!0,e):(e.tempDisabled=!1,e.values=e.values.map(function(e,t){return e.display={y:(R(e,t)-r)/r},e}),e)});void 0===I&&(I=j(c)),w?r.yDomain(null):(r.yDomain(I),r.clipEdge(!0));var z=_?"none":"all",q=F.selectAll("g.nv-wrap.nv-cumulativeLine").data([c]),W=c.filter(function(e){return!e.disabled&&!e.tempDisabled}),$=q.enter().append("g").attr("class","nvd3 nv-wrap nv-cumulativeLine"),G=$.append("g");G.select("g");var K=G.append("g").attr("class","nv-interactive");K=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-interactive");var Z=G.append("g").attr("class","nv-x nv-axis").style("pointer-events","none");Z=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-x");var X=G.append("g").attr("class","nv-y nv-axis");X=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-y");var Q=G.append("g").attr("class","nv-background");Q=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-background");var J=G.append("g").data([W]).attr("class","nv-linesWrap nvd3-svg").style("pointer-events",z),ee=G.append("g").attr("class","nv-avgLinesWrap").style("pointer-events","none");ee=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-avgLinesWrap");var te=G.append("g").attr("class","nv-legendWrap"),ne=G.append("g").attr("class","nv-controlsWrap");if(ne=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-controlsWrap"),te=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-legendWrap"),m?(s.width(V),te.datum(c).call(s),d||s.height()===u.top||(u.top=s.height(),H=e.utils.availableHeight(f,F,u)),te.attr("transform","translate(0,"+-u.top+")")):te.selectAll("*").remove(),$.attr("transform","translate("+u.left+","+u.top+")"),b){var re=[{key:"Re-scale y-axis",disabled:!w}];a.width(140).color(["#444","#444","#444"]).rightAlign(!1).margin({top:5,right:0,bottom:5,left:20}),ne.datum(re).attr("transform","translate(0,"+-u.top+")").call(a)}else ne.selectAll("*").remove();y&&X.attr("transform","translate("+V+",0)");var ie=c.filter(function(e){return e.tempDisabled});$.select(".tempDisabled").remove(),ie.length&&$.append("text").attr("class","tempDisabled").attr("x",V/2).attr("y","-.71em").style("text-anchor","end").text(ie.map(function(e){return e.key}).join(", ")+" values cannot be calculated for this time period."),_&&(l.width(V).height(H).margin({left:u.left,top:u.top}).svgContainer(F).xScale(t),K.call(l));var oe=Q.select("rect");oe.empty()&&Q.append("rect"),oe.attr("width",V).attr("height",H),r.y(function(e){return e.display.y}).width(V).height(H).color(c.map(function(e,t){return e.color||h(e,t)}).filter(function(e,t){return!c[t].disabled&&!c[t].tempDisabled})),(J=F.selectAll("g.nv-linesWrap.nvd3-svg").data([W]).merge(J)).call(r),c.forEach(function(e,t){e.seriesIndex=t});var se=c.filter(function(e){return!e.disabled&&!!T(e)}),ae=ee.selectAll("line").data(se,function(e){return e.key}),le=function(e){var t=n(T(e));return t<0?0:t>H?H:t};ae.exit().remove(),ae.enter().append("line").style("stroke-width",2).style("stroke-dasharray","10,10").style("stroke",function(e,t){return r.color()(e,e.seriesIndex)}).attr("x1",0).attr("x2",V).attr("y1",le).attr("y2",le).style("stroke-opacity",function(e){var t=n(T(e));return t<0||t>H?0:1}).attr("x1",0).attr("x2",V).attr("y1",le).attr("y2",le).merge(ae);var ce=J.selectAll(".nv-indexLine").data([L]);function ue(){ce.data([L]);var e=P.duration();P.duration(0),P.update(),P.duration(e)}ce.merge(ce.enter().append("rect").attr("class","nv-indexLine").attr("width",3).attr("x",-2).attr("fill","red").attr("fill-opacity",.5).style("pointer-events","all").call(U)).attr("transform",function(e){return"translate("+O(e.i)+",0)"}).attr("height",H).merge(ce),g&&(i.scale(t)._ticks(e.utils.calcTicksX(V/70,c)),i.tickSizeInner(-H),Z.attr("transform","translate(0,"+n.range()[0]+")"),Z.call(i).merge(q.select(".nv-x.nv-axis"))),v&&(o.scale(n)._ticks(e.utils.calcTicksY(H/36,c)),o.tickSizeInner(-V),X.call(o)),oe.on("click",function(e){L.x=d3.pointer(e)[0],L.i=Math.round(O.invert(L.x)),k.index=L.i,D.call("stateChange",oe,k),ue()}),r.dispatch.on("elementClick",function(e){L.i=e.pointIndex,L.x=O(L.i),k.index=L.i,D.call("stateChange",r,k),ue()}),a.dispatch.on("legendClick",function(e,t,n){t.disabled=!t.disabled,w=!t.disabled,k.rescaleY=w,w||(I=j(c)),D.call("stateChange",this,k),P.update()}),s.dispatch.on("stateChange",function(e){for(var t in e)k[t]=e[t];D.call("stateChange",this,e),P.update()}),l.dispatch.on("elementMousemove",function(t){r.clearHighlights();var n,s,a,u=[];if(c.filter(function(e,t){return e.seriesIndex=t,!(e.disabled||e.tempDisabled)}).forEach(function(i,o){s=e.interactiveBisect(i.values,t.pointXValue,P.x()),r.highlightPoint(o,s,!0);var l=i.values[s];void 0!==l&&(void 0===n&&(n=l),void 0===a&&(a=P.xScale()(P.x()(l,s))),u.push({key:i.key,value:P.y()(l,s),color:h(i,i.seriesIndex)}))}),u.length>2){var d=P.yScale().invert(t.mouseY),p=Math.abs(P.yScale().domain()[0]-P.yScale().domain()[1]),f=e.nearestValueIndex(u.map(function(e){return e.value}),d,.03*p);null!==f&&(u[f].highlight=!0)}var m=i.tickFormat()(P.x()(n,s),s);l.tooltip.valueFormatter(function(e,t){return o.tickFormat()(e)}).data({value:m,series:u})(),l.renderGuideLine(a)}),l.dispatch.on("elementMouseout",function(e){r.clearHighlights()}),D.on("changeState",function(e){void 0!==e.disabled&&(c.forEach(function(t,n){t.disabled=e.disabled[n]}),k.disabled=e.disabled),void 0!==e.index&&(L.i=e.index,L.x=O(L.i),k.index=e.index,ce.data([L])),void 0!==e.rescaleY&&(w=e.rescaleY),P.update()})}),N.renderEnd("cumulativeLineChart immediate"),P}r.dispatch.on("elementMouseover.tooltip",function(e){var t={x:P.x()(e.point),y:P.y()(e.point),color:e.point.color};e.point=t,c.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){c.hidden(!0)});var R=null;function j(e){var t=e.filter(function(e){return!(e.disabled||e.tempDisabled)}).map(function(e,t){return d3.extent(e.values,function(e){return e.display.y})});return[d3.min(t,function(e){return e[0]}),d3.max(t,function(e){return e[1]})]}return P.dispatch=D,P.lines=r,P.legend=s,P.controls=a,P.xAxis=i,P.yAxis=o,P.interactiveLayer=l,P.state=k,P.tooltip=c,P.options=e.utils.optionsFunc.bind(P),P._options=Object.create({},{width:{get:function(){return p},set:function(e){p=e}},height:{get:function(){return f},set:function(e){f=e}},showControls:{get:function(){return b},set:function(e){b=e}},showLegend:{get:function(){return m},set:function(e){m=e}},legendPosition:{get:function(){return A},set:function(e){A=e}},average:{get:function(){return T},set:function(e){T=e}},defaultState:{get:function(){return S},set:function(e){S=e}},noData:{get:function(){return E},set:function(e){E=e}},showXAxis:{get:function(){return g},set:function(e){g=e}},showYAxis:{get:function(){return v},set:function(e){v=e}},noErrorCheck:{get:function(){return M},set:function(e){M=e}},rescaleY:{get:function(){return w},set:function(e){w=e,P.state.rescaleY=e}},margin:{get:function(){return u},set:function(e){void 0!==e.top&&(u.top=e.top,d=e.top),u.right=void 0!==e.right?e.right:u.right,u.bottom=void 0!==e.bottom?e.bottom:u.bottom,u.left=void 0!==e.left?e.left:u.left}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t),s.color(h)}},useInteractiveGuideline:{get:function(){return _},set:function(e){_=e,!0===e&&(P.interactive(!1),P.useVoronoi(!1))}},rightAlignYAxis:{get:function(){return y},set:function(e){y=e}},duration:{get:function(){return C},set:function(e){C=e,r.duration(C),i.duration(C),o.duration(C),N.reset(C),d3.transition().duration(C).ease(d3.easeLinear)}}}),e.utils.inheritOptions(P,r),e.utils.initOptions(P),P},e.models.differenceChart=function(){"use strict";var t=void 0,n=e.models.multiChart(),r=e.models.focus(e.models.line()),i=function(e){return void 0!==e.y0?e.y0:e.y},o=function(e){return e.x},s="x",a=function(e){return e.y};d3.transition().duration(300).ease(d3.easeLinear);var l=null,c=null,u=null,d=null,h={top:30,right:50,bottom:20,left:70},p={top:0,right:0,bottom:0,left:0},f=!0,m=getInterpolationType(m),g=1,v=d3.scaleTime(),y=d3.timeFormat([["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",function(){return!0}]]);function b(o){o.each(function(o){t=d3.select(this);var s=(o||[]).filter(function(e){return!e.disabled});if(!o||!s.length)return e.utils.noData(b,t),b;var a=_(o),f=e.utils.availableHeight(u,t,h)-r.height(),g=e.utils.availableWidth(d,t,h);t.attr("class","nv-differenceChart"),e.utils.initSVG(t),b.container=this,n.margin(h).color(d3.scaleOrdinal(d3.schemeCategory10).range()).y(i).width(d).height(f).interpolate(m).useInteractiveGuideline(!0),n.interactiveLayer.tooltip.valueFormatter(function(e,t,n){if(n.key===c||n.key===l){var r=Math.abs(n.data.y0-n.data.y1);return 0===r?"-":r}return e}),n.stack1.areaY1(function(e){return n.stack1.scatter.yScale()(e.display.y)}),n.stack1.transformData(function(e){e.display={y:e.y1,y0:e.y0}}),n.xAxis.scale(v),n.xAxis.tickFormat(y);var w=a.filter(function(e){return!e.disabled}).map(function(e){return e.values}),A=d3.extent(d3.merge(w),function(e){return e.x});n.xAxis.domain(A).range([0,g]);var x=d3.extent(d3.merge(w),function(e){return i(e)});n.yDomain1(x),n.yAxis1.tickFormat(d3.format(",.1f")),n.yAxis2.tickFormat(d3.format(",.1f")),r.width(g),r.margin(p),r.xScale(v.copy()),r.xAxis.tickFormat(y),r.xAxis.rotateLabels(0);var k=t.append("g").attr("class","nv-focusWrap").style("display","initial").attr("transform","translate("+h.left+", "+(f+r.margin().top)+")").datum(a.filter(function(e){return"line"===e.type})).call(r);return k.datum(a).call(n),r.dispatch.on("brush",function(e){var t=a.map(function(t){var n=-1,r=-1;t.values.some(function(t,i){return-1===n&&t.x>=e[0]&&(n=i),-1===r&&t.x>=e[1]&&(r=i,!0)});for(var i=t.values.slice(n,r),o=0;i.length<2&&o<5;)n-=1,r+=1,i=t.values.slice(n,r),o++;return Object.assign({},t,{values:i})});k.datum(t),n.xAxis.domain(e),n.update()}),b.update=function(){k.selectAll("*").remove(),k.transition().duration(300).call(b)},b})}function _(e){var t=e.slice(0),n=t.every(function(e){return e.processed}),r=t.filter(function(e){return"actual"===e.type}),i=t.filter(function(e){return"expected"===e.type});if(n)return t;if(!r.length||!i.length)return[];var u=i[0].key+" minus "+r[0].key+" (Predicted > Actual)",d=i[0].key+" minus "+r[0].key+" (Predicted < Actual)",h=[{key:l||u,type:"area",values:[],yAxis:1,color:"rgba(44,160,44,.9)",processed:!0,noHighlightSeries:!0},{key:c||d,type:"area",values:[],yAxis:1,color:"rgba(234,39,40,.9)",processed:!0,noHighlightSeries:!0},{key:r[0].key,type:"line",values:[],yAxis:1,color:"#666666",processed:!0,strokeWidth:g}];f&&(h[3]={key:i[0].key,type:"line",values:[],yAxis:1,color:"#aec7e8",processed:!0,strokeWidth:g});var p=r[0].values.reduce(function(e,t,n){return e[o(t)]=a(t),e},{}),m=i[0].values.reduce(function(e,t,n){return e[o(t)]=a(t),e},{});return Object.keys(p).forEach(function(e,t){var n=p[e],r=m[e],i={};i[s]=e;var a=o(i),l=r-n;isNaN(l)?(h[1].values[t]={x:a,y0:n,y1:n},h[0].values[t]={x:a,y0:n,y1:n}):l<0?(h[1].values[t]={x:a,y0:n,y1:r},h[0].values[t]={x:a,y0:n,y1:n}):(h[0].values[t]={x:a,y0:n,y1:r},h[1].values[t]={x:a,y0:n,y1:n}),h[2].values[t]={x:a,y:n},f&&(h[3].values[t]={x:a,y:r})}),h}return b.options=e.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return d},set:function(e){d=e}},height:{get:function(){return u},set:function(e){u=e}},strokeWidth:{get:function(){return g},set:function(e){g=e}},x:{get:function(){return o},set:function(e){o=e}},keyForXValue:{get:function(){return s},set:function(e){s=e}},y:{get:function(){return a},set:function(e){a=e}},xScale:{get:function(){return v},set:function(e){v=e}},keyForActualLessThanPredicted:{get:function(){return l},set:function(e){l=e}},keyForActualGreaterThanPredicted:{get:function(){return c},set:function(e){c=e}},showPredictedLine:{get:function(){return f},set:function(e){f=e}},tickFormat:{get:function(){return y},set:function(e){y=e}},interpolate:{get:function(){return m},set:function(e){m=e}},focusMargin:{get:function(){return p},set:function(e){p.top=void 0!==e.top?e.top:p.top,p.right=void 0!==e.right?e.right:p.right,p.bottom=void 0!==e.bottom?e.bottom:p.bottom,p.left=void 0!==e.left?e.left:p.left}},margin:{get:function(){return h},set:function(e){h.top=void 0!==e.top?e.top:h.top,h.right=void 0!==e.right?e.right:h.right,h.bottom=void 0!==e.bottom?e.bottom:h.bottom,h.left=void 0!==e.left?e.left:h.left}}}),b.xAxis=n.xAxis,b.yAxis=n.yAxis1,b.multiChart=n,b.focus=r,b.processData=_,e.utils.inheritOptions(b,n),e.utils.initOptions(b),b},e.models.discreteBar=function(){"use strict";var t,n,r,i,o,s,a,l={top:0,right:0,bottom:0,left:0},c=960,u=500,d=Math.floor(1e4*Math.random()),h=d3.scaleBand(),p=d3.scaleLinear(),f=function(e){return e.x},m=function(e){return e.y},g=[0],v=e.utils.defaultColor(),y=0,b=!1,_=d3.format(",.2f"),w=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),A="discreteBar",x=250,k=e.utils.renderWatch(w,x);function S(d){return k.reset(),d.each(function(d){var x=c-l.left-l.right,S=u-l.top-l.bottom;r=d3.select(this),e.utils.initSVG(r),d.forEach(function(e,t){e.values.forEach(function(e){e.series=t,e.seriesIndex=t})});var E=i&&o?[]:d.map(function(e){return e.values.map(function(e,t){return{x:f(e,t),y:m(e,t),y0:e.y0}})});h.domain(i||d3.merge(E).map(function(e){return e.x})).range(s||[0,x],.1),p.domain(o||d3.extent(d3.merge(E).map(function(e){return e.y}).concat(g))),b?p.range(a||[S-(p.domain()[0]<0?12:0),p.domain()[1]>0?12:0]):p.range(a||[S,0]),t=t||h,n=n||p.copy().range([p(0),p(0)]);var T=r.selectAll("g.nv-wrap.nv-discretebar").data([d]).enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar");T.attr("transform","translate("+l.left+","+l.top+")");var D=T.append("g");D.select("g");var C=D.append("g").attr("class","nv-groups").selectAll(".nv-group").data(function(e){return e},function(e){return e.key}).enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);C.exit().watchTransition(k,"discreteBar: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),C.attr("class",function(e,t){return"nv-group nv-series-"+t}).classed("hover",function(e){return e.hover}),C.watchTransition(k,"discreteBar: groups").style("stroke-opacity",1).style("fill-opacity",.75);var M=C.selectAll("g.nv-bar").data(function(e){return e.values});M.exit().remove();var I=M.enter().append("g").attr("transform",function(e,t,n){return"translate("+(h(f(e,t))+.05*h.bandwidth())+", "+p(0)+")"}).on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0),w.call("elementMouseover",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1),w.call("elementMouseout",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("mousemove",function(e,t,n){w.call("elementMousemove",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("click",function(e,t,n){w.call("elementClick",this,{data:t,index:t.index,color:d3.select(this).style("fill"),event:e,element:this}),e.stopPropagation()}).on("dblclick",function(e,t,n){w.call("elementDblClick",this,{data:t,index:t.index,color:d3.select(this).style("fill")}),e.stopPropagation()}),O=I.append("rect").attr("height",0).attr("width",.9*h.bandwidth()/d.length);b?I.append("text").attr("text-anchor","middle").text(function(e,t){return _(m(e,t))}).watchTransition(k,"discreteBar: bars text").attr("x",.9*h.bandwidth()/2).attr("y",function(e,t){return 0>m(e,t)?p(m(e,t))-p(0)+12:-4}):O.selectAll("text").remove(),I.attr("class",function(e,t){return 0>m(e,t)?"nv-bar negative":"nv-bar positive"}).style("fill",function(e,t){return e.color||v(e,t)}).style("stroke",function(e,t){return e.color||v(e,t)}).select("rect").attr("rx",y).attr("class",A).watchTransition(k,"discreteBar: bars rect").attr("width",.9*h.bandwidth()/d.length),I.watchTransition(k,"discreteBar: bars").attr("transform",function(e,t){return"translate("+(h(f(e,t))+.05*h.bandwidth())+", "+(0>m(e,t)?p(0):p(0)-p(m(e,t))<1?p(0)-1:p(m(e,t)))+")"}).select("rect").attr("height",function(e,t){return Math.max(Math.abs(p(m(e,t))-p(0)),1)}),t=h.copy(),n=p.copy()}),k.renderEnd("discreteBar immediate"),S}return S.dispatch=w,S.options=e.utils.optionsFunc.bind(S),S._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},forceY:{get:function(){return g},set:function(e){g=e}},showValues:{get:function(){return b},set:function(e){b=e}},cornerRadius:{get:function(){return y},set:function(e){y=e}},x:{get:function(){return f},set:function(e){f=e}},y:{get:function(){return m},set:function(e){m=e}},xScale:{get:function(){return h},set:function(e){h=e}},yScale:{get:function(){return p},set:function(e){p=e}},xDomain:{get:function(){return i},set:function(e){i=e}},yDomain:{get:function(){return o},set:function(e){o=e}},xRange:{get:function(){return s},set:function(e){s=e}},yRange:{get:function(){return a},set:function(e){a=e}},valueFormat:{get:function(){return _},set:function(e){_=e}},id:{get:function(){return d},set:function(e){d=e}},rectClass:{get:function(){return A},set:function(e){A=e}},margin:{get:function(){return l},set:function(e){l.top=void 0!==e.top?e.top:l.top,l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},color:{get:function(){return v},set:function(t){v=e.utils.getColor(t)}},duration:{get:function(){return x},set:function(e){x=e,k.reset(x)}}}),e.utils.initOptions(S),S},e.models.discreteBarChart=function(){"use strict";var t,n,r=e.models.discreteBar(),i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=e.models.legend(),a=e.models.tooltip(),l={top:15,right:10,bottom:50,left:60},c=null,u=null,d=null,h=e.utils.getColor(),p=!1,f=!0,m=!0,g=!1,v=!1,y=!1,b=0,_=null,w=d3.dispatch("beforeUpdate","renderEnd"),A=250;d3.transition().duration(A).ease(d3.easeLinear);i.showMaxMin(!1),i.tickFormat(function(e){return e}),o.tickFormat(d3.format(",.1f")),a.duration(0).headerEnabled(!1).valueFormatter(function(e,t){return o.tickFormat()(e,t)}).keyFormatter(function(e,t){return i.tickFormat()(e,t)});var x=e.utils.renderWatch(w,A);function k(a){return x.reset(),x.models(r),f&&x.models(i),m&&x.models(o),a.each(function(a){var h=d3.select(this),_=this;e.utils.initSVG(h);var x=e.utils.availableWidth(u,h,l),S=e.utils.availableHeight(d,h,l);if(k.update=function(){w.call("beforeUpdate",_),h.transition().duration(A).call(k)},k.container=this,!a||!a.length||!a.filter(function(e){return e.values.length}).length)return e.utils.noData(k,h),k;h.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale().clamp(!0);var E=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([a]).enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g");E.attr("transform","translate("+l.left+","+l.top+")");var T=E.append("defs"),D=E.select("g"),C=E.append("g").attr("class","nv-x nv-axis");C=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").select(".nv-x");var M=E.append("g").attr("class","nv-y nv-axis"),I=M.append("g").attr("class","nv-zeroLine").append("line"),O=E.append("g").attr("class","nv-barsWrap"),L=E.append("g").attr("class","nv-legendWrap");if(L=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").select(".nv-legendWrap"),p?(s.width(x),L.datum(a).call(s),c||s.height()===l.top||(l.top=s.height(),S=e.utils.availableHeight(d,h,l)),L.attr("transform","translate(0,"+-l.top+")")):L.selectAll("*").remove(),g&&M.attr("transform","translate("+x+",0)"),r.width(x).height(S),O.datum(a.filter(function(e){return!e.disabled})).transition().duration(0).call(r),T.append("clipPath").attr("id","nv-x-label-clip-"+r.id()).append("rect").attr("width",t.bandwidth()*(v?2:1)).attr("height",16).attr("x",-t.bandwidth()/(v?1:2)),f){i.scale(t)._ticks(e.utils.calcTicksX(x/100,a)),i.tickSizeInner(-S),C.attr("transform","translate(0,"+(n.range()[0]+(r.showValues()&&n.domain()[0]<0?16:0))+")"),C.call(i);var N=C.select("g.nvd3.nv-wrap.nv-axis").selectAll("g");v&&N.selectAll("text").attr("transform",function(e,t,n){return"translate(0,"+(n%2==0?"5":"17")+")"}),b&&N.selectAll(".tick text").attr("transform","rotate("+b+" 0,0)").style("text-anchor",b>0?"start":"end"),y&&D.selectAll(".tick text").call(e.utils.wrapTicks,k.xAxis.bandwidth())}m&&(o.scale(n)._ticks(e.utils.calcTicksY(S/36,a,r.y())),o.tickSizeInner(-x),M.call(o)),I.attr("x1",0).attr("x2",g?-x:x).attr("y1",n(0)).attr("y2",n(0))}),x.renderEnd("discreteBar chart immediate"),k}return r.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:k.x()(e.data),value:k.y()(e.data),color:e.color},a.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){a.hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(e){a()}),k.dispatch=w,k.discretebar=r,k.legend=s,k.xAxis=i,k.yAxis=o,k.tooltip=a,k.options=e.utils.optionsFunc.bind(k),k._options=Object.create({},{width:{get:function(){return u},set:function(e){u=e}},height:{get:function(){return d},set:function(e){d=e}},showLegend:{get:function(){return p},set:function(e){p=e}},staggerLabels:{get:function(){return v},set:function(e){v=e}},rotateLabels:{get:function(){return b},set:function(e){b=e}},wrapLabels:{get:function(){return y},set:function(e){y=!!e}},showXAxis:{get:function(){return f},set:function(e){f=e}},showYAxis:{get:function(){return m},set:function(e){m=e}},noData:{get:function(){return _},set:function(e){_=e}},margin:{get:function(){return l},set:function(e){void 0!==e.top&&(l.top=e.top,c=e.top),l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},duration:{get:function(){return A},set:function(e){A=e,x.reset(A),d3.transition().duration(A).ease(d3.easeLinear),r.duration(A),i.duration(A),o.duration(A)}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t),r.color(h),s.color(h)}},rightAlignYAxis:{get:function(){return g},set:function(e){g=e,o.orient(e?"right":"left")}}}),e.utils.inheritOptions(k,r),e.utils.initOptions(k),k},e.models.distribution=function(){"use strict";var t,n={top:0,right:0,bottom:0,left:0},r=400,i=8,o="x",s=function(e){return e[o]},a=e.utils.defaultColor(),l=d3.scaleLinear(),c=250,u=d3.dispatch("renderEnd"),d=e.utils.renderWatch(u,c);function h(r){return d.reset(),r.each(function(r){"x"===o?(n.left,n.right):(n.top,n.bottom);var c="x"==o?"y":"x",u=d3.select(this);e.utils.initSVG(u),t=t||l;var h=u.selectAll("g.nv-distribution").data([r]),p=h.enter().append("g").attr("class","nvd3 nv-distribution");p.attr("transform","translate("+n.left+","+n.top+")");var f=p.append("g");h.select("g");var m=f.selectAll("g.nv-dist").data(function(e){return e},function(e){return e.key});m.enter().append("g").attr("class",function(e,t){return"nv-dist nv-series-"+t}).style("stroke",function(e,t){return a(e,t)});var g=m.selectAll("line.nv-dist"+o).data(function(e){return e.values});g.enter().append("line").attr(o+"1",function(e,n){return t(s(e,n))}).attr(o+"2",function(e,n){return t(s(e,n))}),d.transition(m.exit().selectAll("line.nv-dist"+o),"dist exit").attr(o+"1",function(e,t){return l(s(e,t))}).attr(o+"2",function(e,t){return l(s(e,t))}).style("stroke-opacity",0).remove(),g.attr("class",function(e,t){return"nv-dist"+o+" nv-dist"+o+"-"+t}).attr(c+"1",0).attr(c+"2",i),d.transition(g,"dist").attr(o+"1",function(e,t){return l(s(e,t))}).attr(o+"2",function(e,t){return l(s(e,t))}),t=l.copy()}),d.renderEnd("distribution immediate"),h}return h.options=e.utils.optionsFunc.bind(h),h.dispatch=u,h.margin=function(e){return arguments.length?(n.top=void 0!==e.top?e.top:n.top,n.right=void 0!==e.right?e.right:n.right,n.bottom=void 0!==e.bottom?e.bottom:n.bottom,n.left=void 0!==e.left?e.left:n.left,h):n},h.width=function(e){return arguments.length?(r=e,h):r},h.axis=function(e){return arguments.length?(o=e,h):o},h.size=function(e){return arguments.length?(i=e,h):i},h.getData=function(e){return arguments.length?(s="function"==typeof e?e:function(){return e},h):s},h.scale=function(e){return arguments.length?(l=e,h):l},h.color=function(t){return arguments.length?(a=e.utils.getColor(t),h):a},h.duration=function(e){return arguments.length?(c=e,d.reset(c),h):c},h},e.models.distroPlot=function(){"use strict";var t,n,r,i,o,s,a,l={top:0,right:0,bottom:0,left:0},c=960,u=500,d=Math.floor(1e4*Math.random()),h=d3.scaleBand(),p=d3.scaleLinear(),f=function(e){return e.label},m=function(e){return e.value},g=function(e){return e.color},v=function(e){return e.values.q1},y=function(e){return e.values.q2},b=function(e){return e.values.q3},_=function(e){return e.values.mean},w=function(e){return e.values.wl[T]},A=function(e){return e.values.wu[T]},x=function(e){return e.values.min},k=function(e){return e.values.max},S=function(e){return e.values.dev},E=!1,T="iqr",D=!1,C=!1,M=!1,I=!1,O=!0,L=.7,N=!0,P="scott",R=!0,j=50,F=3,B=e.utils.defaultColor(),Y=null,V=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),H=250,U=null;function z(e,t){void 0===t&&(t="scott");var n,r,i=(n=e.sort(d3.ascending),r=(d3.quantile(n,.75)-d3.quantile(n,.25))/1.349,d3.min([d3.deviation(n),r])),o=e.length;return"scott"===t?Math.pow(1.059*i*o,-.2):Math.pow(.9*i*o,-.2)}function q(e){function t(e,t){var n,r,i,o,s=e.map(function(e){return M&&G.add(M(e)),m(e)}).sort(d3.ascending),a=d3.quantile(s,.25),l=d3.quantile(s,.75),c=l-a,u=l+1.5*c,d=a-1.5*c,h={iqr:d3.max([d3.min(s),d3.min(s.filter(function(e){return e>d}))]),minmax:d3.min(s),stddev:d3.mean(s)-d3.deviation(s)},f={iqr:d3.min([d3.max(s),d3.max(s.filter(function(e){return e<u}))]),minmax:d3.max(s),stddev:d3.mean(s)+d3.deviation(s)},g=d3.median(s),v=d3.mean(s),y=[];void 0!==d3.beeswarm?(y=d3.beeswarm().data(e.map(function(e){return m(e)})).radius(F+1).orientation("vertical").side("symmetric").distributeOn(function(e){return p(e)}).arrange()).map(function(n,r){n.key=t,n.object_constancy=e[r].object_constancy,n.isOutlier=n.datum<h.iqr||n.datum>f.iqr,n.isOutlierStdDev=n.datum<h.stddev||n.datum>f.stddev,n.randX=Math.random()*L*(1==Math.floor(2*Math.random())?1:-1)}):s.forEach(function(e,n){y.push({object_constancy:e.object_constancy,datum:e,key:t,isOutlier:e<h.iqr||e>f.iqr,isOutlierStdDev:e<h.stddev||e>f.stddev,randX:Math.random()*L*(1==Math.floor(2*Math.random())?1:-1)})}),isNaN(parseFloat(P))&&(n=-1!=["scott","silverman"].indexOf(P)?z(s,P):z(s));var b=(r=n,i=function(e){return 1>=Math.abs(e/=r)?.75*(1-e*e)/r:0},o=p._ticks(j),function(e){return o.map(function(t){var n=d3.mean(e,function(e){return i(t-e)});return{x:t,y:n}})}),_=R?function(e,t){if(t[0]===t[1])return e;var n=e.reduce(function(e,n){return n.x>=t[0]&&n.x<=t[1]&&e.push(n),e},[]);return t[0]<n[0].x&&n.unshift({x:t[0],y:n[0].y}),t[1]>n[n.length-1].x&&n.push({x:t[1],y:n[n.length-1].y}),n}(b(s),d3.extent(s)):b(s),w=d3.scaleLinear().domain([0,d3.max(_,function(e){return e.y})]).clamp(!0);K.push(w);var A={count:s.length,num_outlier:y.filter(function(e){return e.isOutlier}).length,sum:d3.sum(s),mean:v,q1:a,q2:g,q3:l,wl:h,wu:f,iqr:c,min:d3.min(s),max:d3.max(s),dev:d3.deviation(s),observations:y,key:t,kde:_,notch:1.57*c/Math.sqrt(s.length)};return M&&Z.push({key:t,values:A}),A}if(e.forEach(function(e,t){e.object_constancy=t+"_"+m(e)+"_"+f(e)}),M){G=new Set;var n,r=d3.group().key(function(e){return f(e)}).key(function(e){return M(e)}).rollup(function(e){return t(e,f(e[0]))}).entries(e);G=G.values();for(var i=r.map(function(e){return e.key}),o=[],s=0;s<i.length;s++)for(var a=0;a<G.length;a++)o.push(i[s]+"_"+G[a]);G=o,n=[],r.forEach(function(e){e.values.forEach(function(t){t.key=e.key+"_"+t.key}),n.push.apply(n,e.values)})}else n=d3.group().key(function(e){return f(e)}).rollup(function(e,n){return t(e)}).entries(e);return n}function W(e){return"iqr"==T&&e.isOutlier||"stddev"==T&&e.isOutlierStdDev}var $,G=new Set,K=[],Z=[],X=e.utils.renderWatch(V,H);function Q(d){return X.reset(),d.each(function(d){t=c-l.left-l.right,n=u-l.top-l.bottom,Y=d3.select(this),e.utils.initSVG(Y),p.domain(s||d3.extent(d.map(function(e){return m(e)}))).nice().range(a||[n,0]),void 0===$&&($=q(d)),h.range(o||[0,t],.1).domain(i||M&&!N?G:$.map(function(e){return e.key}));var f=Y.selectAll("g.nv-wrap").data([$]).enter().append("g").attr("class","nvd3 nv-wrap");f.watchTransition(X,"nv-wrap: wrap").attr("transform","translate("+l.left+","+l.top+")");var T,L=f.selectAll(".nv-distroplot-x-group").data(function(e){return e});L.each(function(e,t){d3.select(this).selectAll("line.nv-distroplot-middle").datum(e)}),T=L.enter().append("g").attr("class","nv-distroplot-x-group").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).style("fill",function(e,t){return g(e)||B(e,t)}).style("stroke",function(e,t){return g(e)||B(e,t)}),L.exit().remove();var P=function(){return h.bandwidth()},R=function(){return d3.min([U,.9*P()])},j=function(){return R()/2},H=function(){return j()-R()/2},z=function(){return j()-R()/5},Z=function(){return j()+R()/5};T.attr("transform",function(e){return"translate("+(h(e.key)+.5*(P()-R()))+", 0)"}),L.watchTransition(X,"nv-distroplot-x-group: distroplots").style("stroke-opacity",1).style("fill-opacity",.5).attr("transform",function(e){return"translate("+(h(e.key)+.5*(P()-R()))+", 0)"}),K.map(function(e){e.range([R()/2,0])}),r||(O=!1,E||(E="random")),T.each(function(e,t){var n=d3.select(this);[w,A].forEach(function(e){var t=e===w?"low":"high";n.append("line").style("opacity",function(){return D?"1":"0"}).attr("class","nv-distroplot-whisker nv-distroplot-"+t),n.append("line").style("opacity",function(){return D?"0":"1"}).attr("class","nv-distroplot-tick nv-distroplot-"+t)})}),[w,A].forEach(function(e){var t=e===w?"low":"high",n=e===w?v:b;L.select("line.nv-distroplot-whisker.nv-distroplot-"+t).watchTransition(X,"nv-distroplot-x-group: distroplots").attr("x1",j()).attr("y1",function(t){return p("violin"!=r?e(t):y(t))}).attr("x2",j()).attr("y2",function(e){return p("box"==r?n(e):y(e))}).style("opacity",function(){return D?"0":"1"}),L.select("line.nv-distroplot-tick.nv-distroplot-"+t).watchTransition(X,"nv-distroplot-x-group: distroplots").attr("x1",function(e){return"violin"!=r?z():j()}).attr("y1",function(t,n){return p("violin"!=r?e(t):y(t))}).attr("x2",function(e){return"violin"!=r?Z():j()}).attr("y2",function(t,n){return p("violin"!=r?e(t):y(t))}).style("opacity",function(){return D?"0":"1"})}),[w,A].forEach(function(e){var t=e===w?"low":"high";T.selectAll(".nv-distroplot-"+t).on("mouseover",function(n,r,i,o){setCoordinates(n.pageX,n.pageY),d3.select(this.parentNode).selectAll("line.nv-distroplot-"+t).classed("hover",!0),V.call("elementMouseover",this,{value:"low"==t?"Lower whisker":"Upper whisker",series:{key:e(r).toFixed(2),color:g(r)||B(r,o)},e:n})}).on("mouseout",function(n,r,i,o){d3.select(this.parentNode).selectAll("line.nv-distroplot-"+t).classed("hover",!1),V.call("elementMouseout",this,{value:"low"==t?"Lower whisker":"Upper whisker",series:{key:e(r).toFixed(2),color:g(r)||B(r,o)},e:n})}).on("mousemove",function(e,t){V.call("elementMousemove",this,{e:event})})}),T.each(function(e,t){var n=d3.select(this);["left","right"].forEach(function(e){["line","area"].forEach(function(t){n.append("path").attr("class","nv-distribution-"+t+" nv-distribution-"+e).attr("transform","rotate(90,0,0) translate(0,"+("left"==e?-R():0)+")"+("left"==e?"":" scale(1,-1)"))})}),T.selectAll(".nv-distribution-line").style("fill","none"),T.selectAll(".nv-distribution-area").style("stroke","none").style("opacity",.7)}),L.each(function(e,t){var n,i,o,s,a,l,c,u=d3.select(this),d="box"==r?(n=H(),i=z(),o=j(),s=e,c="mean"==I?_(s):y(s),C?[{x:o,y:p(v(s))},{x:n,y:p(v(s))},{x:n,y:p((a=s,("mean"==I?_(a):y(a))-a.values.notch))},{x:i,y:p(c)},{x:n,y:p((l=s,("mean"==I?_(l):y(l))+l.values.notch))},{x:n,y:p(b(s))},{x:o,y:p(b(s))}]:[{x:o,y:p(v(s))},{x:n,y:p(v(s))},{x:n,y:p(c)},{x:n,y:p(c)},{x:n,y:p(c)},{x:n,y:p(b(s))},{x:o,y:p(b(s))}]):e.values.kde;u.selectAll("path").datum(d);var h=K[t],f="box"==r?d3.curveLinear:d3.curveBasis;"box"==r||"violin"==r?["left","right"].forEach(function(e){L.selectAll(".nv-distribution-line.nv-distribution-"+e).attr("d",d3.line().x(function(e){return"box"==r?e.y:p(e.x)}).y(function(e){return"box"==r?e.x:h(e.y)}).curve(f)).attr("transform","rotate(90,0,0) translate(0,"+("left"==e?-R():0)+")"+("left"==e?"":" scale(1,-1)")).style("opacity",r?"1":"0"),L.selectAll(".nv-distribution-area.nv-distribution-"+e).attr("d",d3.area().x(function(e){return"box"==r?e.y:p(e.x)}).y(function(e){return"box"==r?e.x:h(e.y)}).y0(R()/2).curve(f)).attr("transform","rotate(90,0,0) translate(0,"+("left"==e?-R():0)+")"+("left"==e?"":" scale(1,-1)")).style("opacity",r?"1":"0")}):(L.selectAll(".nv-distribution-area").watchTransition(X,"nv-distribution-area: distroplots").style("opacity",r?"1":"0"),L.selectAll(".nv-distribution-line").watchTransition(X,"nv-distribution-line: distroplots").style("opacity",r?"1":"0"))}),L.selectAll("path").on("mouseover",function(e,t,n,r){setCoordinates(e.pageX,e.pageY),t=d3.select(this.parentNode).datum(),d3.select(this).classed("hover",!0),V.call("elementMouseover",this,{key:t.key,value:"Group "+t.key+" stats",series:[{key:"max",value:k(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q3",value:b(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q2",value:y(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q1",value:v(t).toFixed(2),color:g(t)||B(t,r)},{key:"min",value:x(t).toFixed(2),color:g(t)||B(t,r)},{key:"mean",value:_(t).toFixed(2),color:g(t)||B(t,r)},{key:"std. dev.",value:S(t).toFixed(2),color:g(t)||B(t,r)},{key:"count",value:t.values.count,color:g(t)||B(t,r)},{key:"num. outliers",value:t.values.num_outlier,color:g(t)||B(t,r)}],data:t,index:t.index,e:e})}).on("mouseout",function(e,t,n,r){d3.select(this).classed("hover",!1),t=d3.select(this.parentNode).datum(),V.call("elementMouseout",this,{key:t.key,value:"Group "+t.key+" stats",series:[{key:"max",value:k(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q3",value:b(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q2",value:y(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q1",value:v(t).toFixed(2),color:g(t)||B(t,r)},{key:"min",value:x(t).toFixed(2),color:g(t)||B(t,r)},{key:"mean",value:_(t).toFixed(2),color:g(t)||B(t,r)},{key:"std. dev.",value:S(t).toFixed(2),color:g(t)||B(t,r)},{key:"count",value:t.values.count,color:g(t)||B(t,r)},{key:"num. outliers",value:t.values.num_outlier,color:g(t)||B(t,r)}],data:t,index:t.index,e:e})}).on("mousemove",function(e,t,n){V.call("elementMousemove",this,{e:e})}),T.append("line").attr("class",function(e){return"nv-distroplot-middle"}),L.selectAll("line.nv-distroplot-middle").watchTransition(X,"nv-distroplot-x-group: distroplots line").attr("x1",C?z:"violin"!=r?H:z()).attr("y1",function(e,t,n){return p("mean"==I?_(e):y(e))}).attr("x2",C?Z:"violin"!=r?function(){return j()+R()/2}:Z()).attr("y2",function(e,t){return p("mean"==I?_(e):y(e))}).style("opacity",I?"1":"0"),L.selectAll(".nv-distroplot-middle").on("mouseover",function(e,t,n,r){if(setCoordinates(e.pageX,e.pageY),0!=d3.select(this).style("opacity")){var i=d3.select(this.parentNode).style("fill");d3.select(this).classed("hover",!0),V.call("elementMouseover",this,{value:"mean"==I?"Mean":"Median",series:{key:"mean"==I?_(t).toFixed(2):y(t).toFixed(2),color:i},e:e})}}).on("mouseout",function(e,t,n,r){if(0!=d3.select(this).style("opacity")){d3.select(this).classed("hover",!1);var i=d3.select(this.parentNode).style("fill");V.call("elementMouseout",this,{value:"mean"==I?"Mean":"Median",series:{key:"mean"==I?_(t).toFixed(2):y(t).toFixed(2),color:i},e:e})}}).on("mousemove",function(e,t,n){V.call("elementMousemove",this,{e:e})});var Q=L.selectAll("g.nv-distroplot-observation").data(function(e){return e.values.observations},function(e){return e.object_constancy}),J=Q.enter().append("g").attr("class","nv-distroplot-observation");J.append("circle").style({opacity:0}),J.append("line").style("stroke-width",1).style({stroke:d3.rgb(85,85,85),opacity:0}),Q.exit().remove(),Q.attr("class",function(e){return"nv-distroplot-observation "+(W(e)&&"box"==r?"nv-distroplot-outlier":"nv-distroplot-non-outlier")}),"line"==E?L.selectAll("g.nv-distroplot-observation line").watchTransition(X,"nv-distrolot-x-group: nv-distoplot-observation").attr("x1",z()+R()/4).attr("x2",Z()-R()/4).attr("y1",function(e){return p(e.datum)}).attr("y2",function(e){return p(e.datum)}):(L.selectAll("g.nv-distroplot-observation circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").attr("cy",function(e){return p(e.datum)}).attr("r",F),L.selectAll("g.nv-distroplot-observation circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").attr("cx",function(e){return"swarm"==E?e.x+R()/2:"random"==E?R()/2+e.randX*R()/2:R()/2})),!1!==E&&(O?(L.selectAll(".nv-distroplot-outlier "+("line"==E?"line":"circle")).watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",1),L.selectAll(".nv-distroplot-non-outlier "+("line"==E?"line":"circle")).watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",0)):L.selectAll("line"==E?"line":"circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",1)),L.selectAll(".nv-distroplot-observation"+("line"==E?" circle":" line")).watchTransition(X,"nv-distroplot: nv-distoplot-observation").style("opacity",0),L.selectAll(".nv-distroplot-observation").on("mouseover",function(e,t,n,i){setCoordinates(e.pageX,e.pageY);var o=d3.select(this);if(!O||"box"!=r||W(t)){var s=d3.select(this.parentNode).style("fill");o.classed("hover",!0),V.call("elementMouseover",this,{value:"box"==r&&W(t)?"Outlier":"Observation",series:{key:t.datum.toFixed(2),color:s},e:e})}}).on("mouseout",function(e,t,n,i){var o=d3.select(this),s=d3.select(this.parentNode).style("fill");o.classed("hover",!1),V.call("elementMouseout",this,{value:"box"==r&&W(t)?"Outlier":"Observation",series:{key:t.datum.toFixed(2),color:s},e:e})}).on("mousemove",function(e,t,n){V.call("elementMousemove",this,{e:e})})}),X.renderEnd("nv-distroplot-x-group immediate"),Q}return Q.dispatch=V,Q.options=e.utils.optionsFunc.bind(Q),Q._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},maxBoxWidth:{get:function(){return U},set:function(e){U=e}},x:{get:function(){return f},set:function(e){f=e}},y:{get:function(){return m},set:function(e){m=e}},plotType:{get:function(){return r},set:function(e){r=e}},observationType:{get:function(){return E},set:function(e){E=e}},whiskerDef:{get:function(){return T},set:function(e){T=e}},notchBox:{get:function(){return C},set:function(e){C=e}},hideWhiskers:{get:function(){return D},set:function(e){D=e}},colorGroup:{get:function(){return M},set:function(e){M=e}},centralTendency:{get:function(){return I},set:function(e){I=e}},bandwidth:{get:function(){return P},set:function(e){P=e}},clampViolin:{get:function(){return R},set:function(e){R=e}},resolution:{get:function(){return j},set:function(e){j=e}},xScale:{get:function(){return h},set:function(e){h=e}},yScale:{get:function(){return p},set:function(e){p=e}},showOnlyOutliers:{get:function(){return O},set:function(e){O=e}},jitter:{get:function(){return L},set:function(e){L=e}},squash:{get:function(){return N},set:function(e){N=e}},pointSize:{get:function(){return F},set:function(e){F=e}},xDomain:{get:function(){return i},set:function(e){i=e}},yDomain:{get:function(){return s},set:function(e){s=e}},xRange:{get:function(){return o},set:function(e){o=e}},yRange:{get:function(){return a},set:function(e){a=e}},recalcData:{get:function(){$=q(Y.datum())}},itemColor:{get:function(){return g},set:function(e){g=e}},id:{get:function(){return d},set:function(e){d=e}},margin:{get:function(){return l},set:function(e){l.top=void 0!==e.top?e.top:l.top,l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},color:{get:function(){return B},set:function(t){B=e.utils.getColor(t)}},duration:{get:function(){return H},set:function(e){H=e,X.reset(H)}}}),e.utils.initOptions(Q),Q},e.models.distroPlotChart=function(){"use strict";var t,n,r,i=e.models.distroPlot(),o=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),s=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),a={top:25,right:10,bottom:40,left:60},l=null,c=null,u=e.utils.getColor(),d=!0,h=!0,p=!1,f=!1,m=!1,g=!1,v=e.models.tooltip(),y="No Data Available.",b=d3.dispatch("stateChange","beforeUpdate","renderEnd"),_=500;d3.transition().duration(_).ease(d3.easeLinear);o.showMaxMin(!1).tickFormat(function(e){return e}),s.tickFormat(d3.format(",.1f")),v.duration(0);var w,A,x,k,S,E,T=e.utils.renderWatch(b,_);function D(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0}function C(u){return T.reset(),T.models(i),d&&T.models(o),h&&T.models(s),u.each(function(u){var m=d3.select(this),g=this;e.utils.initSVG(m);var v=(l||parseInt(m.style("width"))||960)-a.left-a.right,M=(c||parseInt(m.style("height"))||400)-a.top-a.bottom;if(void 0===t&&(t=JSON.parse(JSON.stringify(u))),C.update=function(){b.call("beforeUpdate",g);var e,n=i.options();(w!==n.colorGroup()||A!==n.x()||x!==n.y()||S!==n.bandwidth()||k!==n.resolution()||E!==n.clampViolin()||!function(e,t){if(e.length!==t.length)return!1;for(var n=e.length;n--;)if("object_constancy"in e[n]&&delete e[n].object_constancy,"object_constancy"in t[n]&&delete t[n].object_constancy,!D(e[n],t[n]))return!1;return!0}(e=u,t)&&(t=JSON.parse(JSON.stringify(e)),1))&&i.recalcData(),m.transition().duration(_).call(C)},C.container=this,"function"!=typeof d3.beeswarm&&"swarm"==C.options().observationType())return a.left,y='Please include the library https://github.com/Kcnarf/d3-beeswarm to use "swarm".',e.utils.noData(C,m),C;if(!u||!u.length)return e.utils.noData(C,m),C;m.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale().clamp(!0);var I=m.selectAll("g.nv-wrap.nv-distroPlot").data([u]),O=I.enter().append("g").attr("class","nvd3 nv-wrap nv-distroPlot").append("g"),L=O.append("defs"),N=I.select("g");if(O.append("g").attr("class","nv-x nv-axis"),O.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),O.append("g").attr("class","nv-distroWrap"),O.attr("transform","translate("+a.left+","+a.top+")"),N.watchTransition(T,"nv-wrap: wrap").attr("transform","translate("+a.left+","+a.top+")"),p&&N.select(".nv-y.nv-axis").attr("transform","translate("+v+",0)"),i.width(v).height(M),N.select(".nv-distroWrap").datum(u).transition().call(i),L.append("clipPath").attr("id","nv-x-label-clip-"+i.id()).append("rect").attr("width",n.range()*(f?2:1)).attr("height",16).attr("x",-n.range()/(f?1:2)),d){o.scale(n)._ticks(e.utils.calcTicksX(v/100,u)),o.tickSizeInner(-M),N.select(".nv-x.nv-axis").attr("transform","translate(0,"+r.range()[0]+")"),N.select(".nv-x.nv-axis").call(o);var P=N.select(".nv-x.nv-axis").select("g.nvd3.nv-wrap.nv-axis").selectAll("g");f&&P.selectAll("text").attr("transform",function(e,t,n){return"translate(0,"+(n%2==0?"5":"17")+")"})}h&&(s.scale(r)._ticks(Math.floor(M/36)),s.tickSizeInner(-v),N.select(".nv-y.nv-axis").call(s)),N.select(".nv-zeroLine line").attr("x1",0).attr("x2",v).attr("y1",r(0)).attr("y2",r(0)),w=i.options().colorGroup(),A=i.options().x(),x=i.options().y(),S=i.options().bandwidth(),k=i.options().resolution(),E=i.options().clampViolin()}),T.renderEnd("nv-distroplot chart immediate"),C}return a.top,i.dispatch.on("elementMouseover.tooltip",function(e){v.data(e).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(e){v.data(e).hidden(!0)}),i.dispatch.on("elementMousemove.tooltip",function(e){v()}),C.dispatch=b,C.distroplot=i,C.xAxis=o,C.yAxis=s,C.tooltip=v,C.options=e.utils.optionsFunc.bind(C),C._options=Object.create({},{width:{get:function(){return l},set:function(e){l=e}},height:{get:function(){return c},set:function(e){c=e}},staggerLabels:{get:function(){return f},set:function(e){f=e}},showXAxis:{get:function(){return d},set:function(e){d=e}},showYAxis:{get:function(){return h},set:function(e){h=e}},tooltipContent:{get:function(){return v},set:function(e){v=e}},noData:{get:function(){return y},set:function(e){y=e}},defaultState:{get:function(){return defaultState},set:function(e){defaultState=e}},margin:{get:function(){return a},set:function(e){a.top=void 0!==e.top?e.top:a.top,a.right=void 0!==e.right?e.right:a.right,a.bottom=void 0!==e.bottom?e.bottom:a.bottom,a.left=void 0!==e.left?e.left:a.left}},duration:{get:function(){return _},set:function(e){_=e,T.reset(_),d3.transition().duration(_).ease(d3.easeLinear),i.duration(_),o.duration(_),s.duration(_)}},color:{get:function(){return u},set:function(t){u=e.utils.getColor(t),i.color(u)}},rightAlignYAxis:{get:function(){return p},set:function(e){p=e,s.orient(e?"right":"left")}},xLabel:{get:function(){return m},set:function(e){m=e,o.axisLabel(m)}},yLabel:{get:function(){return g},set:function(e){g=e,s.axisLabel(g)}}}),e.utils.inheritOptions(C,i),e.utils.initOptions(C),C},e.models.focus=function(t){"use strict";t=t||e.models.line();var n,r,i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=d3.brush(),a={top:10,right:0,bottom:30,left:0},l=e.utils.defaultColor(),c=null,u=70,d=!0,h=!1,p=!1,f=null,m=250,g=(d3.transition().duration(m).ease(d3.easeLinear),d3.dispatch("brush","onBrush","renderEnd")),v=!0;t.interactive(!1),t.pointActive(function(e){return!1});var y=e.utils.renderWatch(g,m);function b(_){return y.reset(),y.models(t),d&&y.models(i),h&&y.models(o),_.each(function(y){var _=d3.select(this);e.utils.initSVG(_);var w=e.utils.availableWidth(c,_,a),A=u-a.top-a.bottom;b.update=function(){0===m?_.call(b):_.transition().duration(m).call(b)},b.container=this,n=t.xScale(),r=t.yScale();var x=_.selectAll("g.nv-focus").data([y]).enter().append("g").attr("class","nvd3 nv-focus");x.attr("transform","translate("+a.left+","+a.top+")");var k=x.append("g"),S=k.append("g").attr("class","nv-background").append("rect"),E=k.append("g").attr("class","nv-x nv-axis");E=_.selectAll(".nv-focus").select(".nv-x.nv-axis");var T=k.append("g").attr("class","nv-y nv-axis");T=_.selectAll(".nv-focus").select(".nv-x.nv-axis");var D=k.append("g").attr("class","nv-contentWrap");D=_.selectAll(".nv-focus").select(".nv-contentWrap");var C=k.append("g").attr("class","nv-brushBackground");C=_.selectAll(".nv-focus").select(".nv-brushBackground");var M=k.append("g").attr("class","nv-x nv-brush");M=_.selectAll(".nv-focus").select(".nv-x.nv-brush"),p&&T.attr("transform","translate("+w+",0)"),S.attr("width",w).attr("height",A),t.width(w).height(A).color(y.map(function(e,t){return e.color||l(e,t)}).filter(function(e,t){return!y[t].disabled})),D.datum(y.filter(function(e){return!e.disabled})),D.transition().call(t),s.on("brush",function(){N(v)}),s.on("end",function(e){v||g.call("brush",this,null===e.selection?n.domain():s.extent())}),f&&s.extent(f);var I=C.selectAll("g").data([f||s.extent()]),O=I.enter().append("g");O.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",A),O.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",A).merge(k);var L=M.call(s);function N(e){f=s.extent().length?s.extent():null;var t=s.extent().length?s.extent():n.domain();g.call("brush",null,{extent:t,brush:s}),null!=f&&s.extent(f),I.data([null===f?n.domain():f]).each(function(e,t){var r=n(e[0])-n.range()[0],i=w-n(e[1]);d3.select(this).select(".left").attr("width",r<0?0:r),d3.select(this).select(".right").attr("x",n(e[1])).attr("width",i<0?0:i)}),e&&g.call("brush",null,t)}L.selectAll("rect").attr("height",A),L.selectAll(".resize").append("path").attr("d",function(e){var t=+("e"==e),n=t?1:-1,r=A/3;return"M"+.5*n+","+r+"A6,6 0 0 "+t+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+t+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}).merge(k),N(!0),S.attr("width",w).attr("height",A).merge(k),d&&(i.scale(n)._ticks(e.utils.calcTicksX(w/100,y)),i.tickSizeInner(-A),E.attr("transform","translate(0,"+r.range()[0]+")"),E.transition().call(i)),h&&(o.scale(r)._ticks(e.utils.calcTicksY(A/36,y)),o.tickSizeInner(-w),T.call(o)),E.attr("transform","translate(0,"+r.range()[0]+")").merge(k)}),y.renderEnd("focus immediate"),b}return b.dispatch=g,b.content=t,b.brush=s,b.xAxis=i,b.yAxis=o,b.options=e.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},showXAxis:{get:function(){return d},set:function(e){d=e}},showYAxis:{get:function(){return h},set:function(e){h=e}},brushExtent:{get:function(){return f},set:function(e){f=e}},syncBrushing:{get:function(){return v},set:function(e){v=e}},margin:{get:function(){return a},set:function(e){a.top=void 0!==e.top?e.top:a.top,a.right=void 0!==e.right?e.right:a.right,a.bottom=void 0!==e.bottom?e.bottom:a.bottom,a.left=void 0!==e.left?e.left:a.left}},duration:{get:function(){return m},set:function(e){m=e,y.reset(m),d3.transition().duration(m).ease(d3.easeLinear),t.duration(m),i.duration(m),o.duration(m)}},color:{get:function(){return l},set:function(n){l=e.utils.getColor(n),t.color(l)}},interpolate:{get:function(){return t.interpolate()},set:function(e){t.interpolate(e)}},xTickFormat:{get:function(){return i.tickFormat()},set:function(e){i.tickFormat(e)}},yTickFormat:{get:function(){return o.tickFormat()},set:function(e){o.tickFormat(e)}},x:{get:function(){return t.x()},set:function(e){t.x(e)}},y:{get:function(){return t.y()},set:function(e){t.y(e)}},rightAlignYAxis:{get:function(){return p},set:function(e){p=e,o.orient(p?"right":"left")}}}),e.utils.inheritOptions(b,t),e.utils.initOptions(b),b},e.models.forceDirectedGraph=function(){"use strict";var t={top:2,right:0,bottom:2,left:0},n=400,r=32,i=null,o=d3.dispatch("renderEnd"),s=e.utils.getColor(["#000"]),a=e.models.tooltip(),l=null,c=.1,u=.5,d=30,h=-120,p=.1,f=.8,m=.3,g=5,v=function(e){},y=function(e){},b=function(){return 0},_=function(){return 0},w=e.utils.renderWatch(o);function A(o){return w.reset(),o.each(function(o){i=d3.select(this),e.utils.initSVG(i);var l=e.utils.availableWidth(n,i,t),p=e.utils.availableHeight(r,i,t);if(i.attr("width",l).attr("height",p),!o||!o.links||!o.nodes)return e.utils.noData(A,i),A;i.selectAll(".nv-noData").remove(),i.selectAll("*").remove();var f=new Set;o.nodes.forEach(function(e){Object.keys(e).forEach(function(e){f.add(e)})});var b=d3.forceSimulation().nodes(o.nodes).force("link",d3.forceLink(o.links).strength(c).distance(d)).force("center",d3.forceCenter(l/2,p/2)).force("charge",d3.forceManyBody().strength(h)).alphaTarget(m).velocityDecay(u),_=i.selectAll(".link").data(o.links).enter().append("line").attr("class","nv-force-link").style("stroke-width",function(e){return Math.sqrt(e.value)}),w=i.selectAll(".node").data(o.nodes).enter().append("g").attr("class","nv-force-node").call(d3.drag().on("start",function(e,t){e.sourceEvent.stopPropagation(),e.active||b.alphaTarget(m).restart(),t.fx=t.x,t.fy=t.y}).on("drag",function(e,t){t.fx=e.x,t.fy=e.y}).on("end",function(e,t){e.active||b.alphaTarget(m),t.fx=null,t.fy=null}));w.append("circle").attr("r",g).style("fill",function(e){return s(e)}).on("mouseover",function(e){i.select(".nv-series-"+e.seriesIndex+" .nv-distx-"+e.pointIndex).attr("y1",e.py),i.select(".nv-series-"+e.seriesIndex+" .nv-disty-"+e.pointIndex).attr("x2",e.px);var t=s(e);e.series=[],f.forEach(function(n){e.series.push({color:t,key:n,value:e[n]})}),a.data(e).hidden(!1)}).on("mouseout",function(e){a.hidden(!0)}),a.headerFormatter(function(e){return"Node"}),y(_),v(w),b.on("tick",function(){_.attr("x1",function(e){return e.source.x}).attr("y1",function(e){return e.source.y}).attr("x2",function(e){return e.target.x}).attr("y2",function(e){return e.target.y}),w.attr("transform",function(e){return"translate("+e.x+", "+e.y+")"})})}),A}return A.options=e.utils.optionsFunc.bind(A),A._options=Object.create({},{width:{get:function(){return n},set:function(e){n=e}},height:{get:function(){return r},set:function(e){r=e}},linkStrength:{get:function(){return c},set:function(e){c=e}},friction:{get:function(){return u},set:function(e){u=e}},linkDist:{get:function(){return d},set:function(e){d=e}},charge:{get:function(){return h},set:function(e){h=e}},gravity:{get:function(){return p},set:function(e){p=e}},theta:{get:function(){return f},set:function(e){f=e}},alpha:{get:function(){return m},set:function(e){m=e}},radius:{get:function(){return g},set:function(e){g=e}},x:{get:function(){return b},set:function(e){b="function"==typeof e?e:function(){return e}}},y:{get:function(){return _},set:function(e){_="function"==typeof e?e:function(){return e}}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},color:{get:function(){return s},set:function(t){s=e.utils.getColor(t)}},noData:{get:function(){return l},set:function(e){l=e}},nodeExtras:{get:function(){return v},set:function(e){v=e}},linkExtras:{get:function(){return y},set:function(e){y=e}}}),A.dispatch=o,A.tooltip=a,e.utils.initOptions(A),A},e.models.furiousLegend=function(){"use strict";var t={top:5,right:0,bottom:5,left:0},n=400,r=20,i=function(e){return e.key},o=function(e){return e},s=e.utils.getColor(),a=20,l=!0,c=28,u=!0,h=!0,p=!1,f=!1,m=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),g="classic";function v(y){function b(e,t){return"furious"!=g?"#000":f?e.disengaged?s(e,t):"#fff":f?void 0:e.disabled?s(e,t):"#fff"}function _(e,t){return f&&"furious"==g?e.disengaged?"#fff":s(e,t):e.disabled?"#fff":s(e,t)}return y.each(function(v){var y=n-t.left-t.right,w=d3.select(this);e.utils.initSVG(w);var A=w.selectAll("g.nv-legend").data([v]).enter().append("g").attr("class","nvd3 nv-legend");A.attr("transform","translate("+t.left+","+t.top+")");var x=A.append("g").select("g"),k=w.selectAll("g.nv-legend").select("g").selectAll(".nv-series").data(function(e){return"furious"!=g?e:e.filter(function(e){return!!f||!e.disengaged})}),S=k.enter().append("g").attr("class","nv-series");if("classic"==g)R=S.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5).select("circle");else if("furious"==g){var E=S.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3);R=E.select("rect"),E.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)"),k.select(".nv-check-box").each(function(e,t){d3.select(this).selectAll("path").attr("stroke",b(e,t))})}var T=S.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");switch((S=k.merge(S)).on("mouseover",function(e,t,n){m.call("legendMouseover",e,t,n)}).on("mouseout",function(e,t,n){m.call("legendMouseout",e,t,n)}).on("click",function(e,t,n){m.call("legendClick",e,t,n);var r=S.data();h&&("classic"==g?p?(r.forEach(function(e){e.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,r.every(function(e){return e.disabled})&&r.forEach(function(e){e.disabled=!1})):"furious"==g&&(f?(t.disengaged=!t.disengaged,t.userDisabled=null==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled):!f&&(t.disabled=!t.disabled,t.userDisabled=t.disabled,r.filter(function(e){return!e.disengaged}).every(function(e){return e.userDisabled})&&r.forEach(function(e){e.disabled=e.userDisabled=!1}))),m.call("stateChange",this,{disabled:r.map(function(e){return!!e.disabled}),disengaged:r.map(function(e){return!!e.disengaged})}))}).on("dblclick",function(e,t,n){if(("furious"!=g||!f)&&(m.call("legendDblclick",this,e,t,n),h)){var r=S.data();r.forEach(function(e){e.disabled=!0,"furious"==g&&(e.userDisabled=e.disabled)}),t.disabled=!1,"furious"==g&&(t.userDisabled=t.disabled),m.call("stateChange",this,{disabled:r.map(function(e){return!!e.disabled})})}}),S.classed("nv-disabled",function(e){return e.userDisabled}),S.exit().remove(),T.attr("fill",b(d,N)).text(function(e){return o(i(e))}),g){case"furious":j=23;break;case"classic":j=20}if(l){var D=[];S.each(function(t,n){if(o(i(t))&&o(i(t)).length>a){var r,s,l=o(i(t)).substring(0,a);r=d3.select(this).select("text").text(l+"..."),d3.select(this).append("svg:title").text(o(i(t)))}else r=d3.select(this).select("text");try{if((s=r.node().getComputedTextLength())<=0)throw Error()}catch(t){s=e.utils.calcApproxTextWidth(r)}D.push(s+c)});for(var C=0,M=0,I=[];M<y&&C<D.length;)I[C]=D[C],M+=D[C++];for(0===C&&(C=1);M>y&&C>1;){I=[],C--;for(var O=0;O<D.length;O++)D[O]>(I[O%C]||0)&&(I[O%C]=D[O]);M=I.reduce(function(e,t,n,r){return e+t})}for(var L=[],N=0,P=0;N<C;N++)L[N]=P,P+=I[N];S.attr("transform",function(e,t){return"translate("+L[t%C]+","+(5+Math.floor(t/C)*j)+")"}),u?x.attr("transform","translate("+(n-t.right-M)+","+t.top+")"):x.attr("transform","translate(0,"+t.top+")"),r=t.top+t.bottom+Math.ceil(D.length/C)*j}else{var R,j,F,B=5,Y=5,V=0;S.attr("transform",function(e,r){var i=d3.select(this).select("text").node().getComputedTextLength()+c;return F=Y,n<t.left+t.right+F+i&&(Y=F=5,B+=j),(Y+=i)>V&&(V=Y),"translate("+F+","+B+")"}),x.attr("transform","translate("+(n-t.right-V)+","+t.top+")"),r=t.top+t.bottom+B+15}"furious"==g&&R.attr("width",function(e,t){return T[0][t].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),R.style("fill",_).style("stroke",function(e,t){return e.color||s(e,t)})}),v}return v.dispatch=m,v.options=e.utils.optionsFunc.bind(v),v._options=Object.create({},{width:{get:function(){return n},set:function(e){n=e}},height:{get:function(){return r},set:function(e){r=e}},key:{get:function(){return i},set:function(e){i=e}},keyFormatter:{get:function(){return o},set:function(e){o=e}},align:{get:function(){return l},set:function(e){l=e}},rightAlign:{get:function(){return u},set:function(e){u=e}},maxKeyLength:{get:function(){return a},set:function(e){a=e}},padding:{get:function(){return c},set:function(e){c=e}},updateState:{get:function(){return h},set:function(e){h=e}},radioButtonMode:{get:function(){return p},set:function(e){p=e}},expanded:{get:function(){return f},set:function(e){f=e}},vers:{get:function(){return g},set:function(e){g=e}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},color:{get:function(){return s},set:function(t){s=e.utils.getColor(t)}}}),e.utils.initOptions(v),v},e.models.heatMap=function(){"use strict";var t,n,r,i,o,s,a,l,c,u,d,h,p={top:0,right:0,bottom:0,left:0},f=960,m=500,g=Math.floor(1e4*Math.random()),v=d3.scaleBand(),y=d3.scaleBand(),b=!1,_=function(e){return e.x},w=function(e){return e.y},A=function(e){return e.value},x=!0,k=function(e){return"number"==typeof e?e.toFixed(0):e},S=!1,E=2,T=4,D=!1,C=!0,M=e.utils.defaultColor(),I=e.utils.defaultColor(),O="#bcbcbc",L="",N=5,P=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),R=250,j=function(e){return n/3},F=function(e){return r/3},B=!1;function Y(e){var t=d3.median(e),n=e.map(function(e){return Math.abs(e-t)});return d3.median(n)}function V(e){var t=D?ie(e):A(e);return H()&&!isNaN(t)||void 0!==t?b(t):O}function H(){return"number"==typeof K[0]}function U(){d3.selectAll(".cell-hover").classed("cell-hover",!1),d3.selectAll(".no-hover").classed("no-hover",!1),d3.selectAll(".row-hover").classed("row-hover",!1),d3.selectAll(".column-hover").classed("column-hover",!1)}var z=function(e){var t=k(D?ie(e):A(e));return H()&&!isNaN(t)||void 0!==t?t:L};function q(e){return Object.keys(e).sort(function(t,n){return e[t]-e[n]})}function W(e,t){return Object.keys(e).filter(function(n){return e[n]===t})[0]}var $={},G={},K=[],Z=[],X=[],Q=[],J=e.utils.renderWatch(P,R),ee=["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],te=function(e){return e._cellPos},ne=function(e){return te(e).ix},re=function(e){return te(e).iy},ie=function(e){return te(e).norm},oe=function(e){return te(e).idx};function se(g){return J.reset(),g.each(function(g){$={},G={},K=[],Z=[],X=[],Q=[],k=[],O={},L=0,R=0,se=0,g.forEach(function(e){var t,n,r,i=_(e),o=w(e),s=A(e);i in $||($[i]=L,L++,O[i]={},"function"==typeof c&&Z.push(c(e))),o in G||(G[o]=R,R++,O[i][o]={},"function"==typeof u&&X.push(u(e))),-1==K.indexOf(s)&&K.push(s),e._cellPos={idx:se,ix:$[i],iy:G[o]},se++,t=Q,n=te=[i,o],r=JSON.stringify(n),t.some(function(e){return JSON.stringify(e)===r})?-1==k.indexOf(i+o)&&(k.push(i+o),console.warn("The row/column position "+i+"/"+o+" has multiple values; ensure each cell has only a single value.")):(Q.push(te),O[i][o]=e)}),K=K.sort(),ae=[],Object.keys(G).forEach(function(e){Object.keys($).forEach(function(t){var n=O[t][e];if(n)ae.push(n);else{var r={idx:se,ix:$[t],iy:G[e]};se++,ae.push({_cellPos:r})}})}),t=D?function(e){if(-1!=["centerRow","robustCenterRow","centerScaleRow","robustCenterScaleRow","centerColumn","robustCenterColumn","centerScaleColumn","robustCenterScaleColumn","centerAll","robustCenterAll","centerScaleAll","robustCenterScaleAll"].indexOf(D)){Object.keys($),Object.keys(G);var t,n,r=!!D.includes("Scale"),i=D.includes("robust")?"median":"mean",o=D.includes("Row")?"row":D.includes("Column")?"col":null,s=(t=o,n={},e.forEach(function(e,r){"row"==t?(re(e)in n||(n[re(e)]=[]),n[re(e)].push(A(e))):"col"==t?(ne(e)in n||(n[ne(e)]=[]),n[ne(e)].push(A(e))):null==t&&(0 in n||(n[0]=[]),n[0].push(A(e)))}),n),a={},l={};for(var c in s)a[c]="mean"==i?d3.mean(s[c]):d3.median(s[c]),r&&(l[c]="mean"==i?d3.deviation(s[c]):Y(s[c]));e.forEach(function(e,t){if(H()){if("row"==o)var n=re(e);else if("col"==o)n=ne(e);else if(null==o)n=0;var i=A(e)-a[n];e._cellPos.norm=r?i/l[n]:i}else e._cellPos.norm=A(e)})}else D=!1;return e}(ae):ae;var k,O,L,R,te,se,ae,le=f-p.left-p.right,ce=m-p.top-p.bottom;r=le/Object.keys($).length,n=S?r/S:ce/Object.keys(G).length,S&&(ce=n*Object.keys(G).length-p.top-p.bottom),i=d3.select(this),e.utils.initSVG(i),v.domain(o||q($)).range(a||[0,le-T/2]),y.domain(s||q(G)).range(l||[0,ce-T/2]),(b=H()?d3.scaleQuantize():d3.scaleOrdinal()).domain(h||(H()?D?d3.extent(t,function(e){return ie(e)}):d3.extent(K):H()?void 0:K)).range(d||ee);var ue=i.selectAll("g.nv-heatMapWrap").data([t]),de=ue.enter().append("g").attr("class","nvd3 nv-heatMapWrap");de.append("g").attr("class","cellWrap"),ue.watchTransition(J,"nv-wrap: heatMapWrap").attr("transform","translate("+p.left+","+p.top+")"),de.append("g").attr("class","cellGrid").style("opacity",1e-6);var he=de.select(".cellGrid").selectAll(".gridLines.verticalGrid").data(Object.values($).concat([Object.values($).length]));he.enter().append("line").attr("class","gridLines verticalGrid"),he.exit().remove();var pe=de.select(".cellGrid").selectAll(".gridLines.horizontalGrid").data(Object.values(G).concat([Object.values(G).length]));pe.enter().append("line").attr("class","gridLines horizontalGrid"),pe.exit().remove();var fe=de.select(".cellWrap").selectAll(".nv-cell").data(function(e){return e},function(e){return oe(e)});de.append("g").attr("class","xMetaWrap").attr("transform",function(){return"translate(0,"+(-j()-T-N)+")"});var me=de.select(".xMetaWrap").selectAll(".x-meta").data(Z);me.enter().append("rect").attr("class","x-meta meta").attr("width",r-T).attr("height",j()).attr("transform","translate(0,0)").attr("fill",function(e){return M(e)}),de.append("g").attr("class","yMetaWrap").attr("transform",function(e,t){return"translate("+(-F()-T-N)+",0)"});var ge=de.select(".yMetaWrap").selectAll(".y-meta").data(X);ge.enter().append("rect").attr("class","y-meta meta").attr("width",F()).attr("height",n-T).attr("transform",function(e,t){return"translate(0,0)"}).attr("fill",function(e,t){return I(e)}),me.exit().remove(),ge.exit().remove();var ve=fe.enter().append("g").style("opacity",1e-6).attr("transform",function(e){return"translate(0,"+re(e)*n+")"}).attr("data-row",function(e){return re(e)}).attr("data-column",function(e){return ne(e)});ve.append("rect"),ve.append("text").attr("text-anchor","middle").attr("dy",4).attr("class","cell-text"),fe.selectAll("rect").watchTransition(J,"heatMap: rect").attr("width",r-T).attr("height",n-T).attr("rx",E).attr("ry",E).style("stroke",function(e){return V(e)}),fe.attr("class",function(e){return isNaN(A(e))?"nv-cell cell-missing":"nv-cell"}).watchTransition(J,"heatMap: cells").style({opacity:1,fill:function(e){return V(e)}}).attr("transform",function(e){return"translate("+ne(e)*r+","+re(e)*n+")"}).attr("class",function(e){return isNaN(A(e))?"nv-cell cell-missing":"nv-cell"}),fe.exit().remove(),fe.selectAll("text").watchTransition(J,"heatMap: cells text").text(function(e){return z(e)}).attr("x",function(e){return(r-T)/2}).attr("y",function(e){return(n-T)/2}).style("fill",function(e){return function(e){if(!C)return"black";var t=d3.rgb(e);return(299*t.r+587*t.g+114*t.b)/1e3>=128?"#404040":"#EDEDED"}(V(e))}).style("opacity",function(){return x?1:0}),de.selectAll(".verticalGrid").watchTransition(J,"heatMap: gridLines").attr("y1",0).attr("y2",ce-T).attr("x1",function(e){return e*r-T/2}).attr("x2",function(e){return e*r-T/2});var ye=Object.keys(G).length;de.selectAll(".horizontalGrid").watchTransition(J,"heatMap: gridLines").attr("x1",function(e){return 0==e||e==ye?-T:0}).attr("x2",function(e){return 0==e||e==ye?le:le-T}).attr("y1",function(e){return e*n-T/2}).attr("y2",function(e){return e*n-T/2}),de.select(".cellGrid").watchTransition(J,"heatMap: gridLines").style({"stroke-width":T,opacity:function(){return B?1:1e-6}}),de.selectAll(".x-meta"),de.selectAll(".y-meta");var be=de.selectAll(".meta");me.watchTransition(J,"heatMap: xMetaRect").attr("width",r-T).attr("height",j()).attr("transform",function(e,t){return"translate("+t*r+",0)"}),ge.watchTransition(J,"heatMap: yMetaRect").attr("width",F()).attr("height",n-T).attr("transform",function(e,t){return"translate(0,"+t*n+")"}),de.select(".xMetaWrap").watchTransition(J,"heatMap: xMetaWrap").attr("transform",function(e,t){return"translate(0,"+(-j()-T-N)+")"}).style("opacity",function(){return!1!==c?1:0}),de.select(".yMetaWrap").watchTransition(J,"heatMap: yMetaWrap").attr("transform",function(e,t){return"translate("+(-F()-T-N)+",0)"}).style("opacity",function(){return!1!==u?1:0}),fe.on("mouseover",function(e,t){var n=oe(e),r=ne(e),i=re(e);d3.selectAll(".nv-cell").each(function(e){n==oe(e)?(d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1)):(d3.select(this).classed("no-hover",!0),d3.select(this).classed("cell-hover",!1)),r==ne(e)&&(d3.select(this).classed("no-hover",!1),d3.select(this).classed("column-hover",!0)),i==re(e)&&(d3.select(this).classed("no-hover",!1),d3.select(this).classed("row-hover",!0))}),d3.selectAll(".x-meta").each(function(e,t){t==r?(d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1)):(d3.select(this).classed("no-hover",!0),d3.select(this).classed("cell-hover",!1))}),d3.selectAll(".y-meta").each(function(e,t){t==i?(d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1)):(d3.select(this).classed("no-hover",!0),d3.select(this).classed("cell-hover",!1))}),P.call("elementMouseover",this,{value:W($,r)+" & "+W(G,i),series:{value:z(e),color:d3.select(this).select("rect").style("fill")},e:d3.event})}).on("mouseout",function(e,t){d3.select(this).select("rect").node().getBBox();var n=d3.pointer(d3.select(".nv-heatMap").node()),r=n[0],i=n[1];(r+T>=le||i+T>=ce||r<0||i<0)&&(U(),P.call("elementMouseout",this,{e:d3.event}))}).on("mousemove",function(e,t){P.call("elementMousemove",this,{e:d3.event})}),be.on("mouseover",function(e,t){var n=-1!=d3.select(this).attr("class").indexOf("x-meta");d3.selectAll(".nv-cell").each(function(e){n&&t==ne(e)?(d3.select(this).classed("column-hover",!0),d3.select(this).classed("no-hover",!1)):n||t-Z.length!=re(e)?(d3.select(this).classed("no-hover",!0),d3.select(this).classed("column-hover",!1),d3.select(this).classed("row-hover",!1)):(d3.select(this).classed("row-hover",!0),d3.select(this).classed("no-hover",!1)),d3.select(this).classed("cell-hover",!1)}),d3.selectAll(".meta").classed("no-hover",!0),d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1),P.call("elementMouseover",this,{value:n?"Column meta":"Row meta",series:{value:e,color:d3.select(this).style("fill")}})}).on("mouseout",function(e,t){var n=-1!=d3.select(this).attr("class").indexOf("x-meta");d3.select(this).node().getBBox();var r=d3.pointer(d3.select(n?".xMetaWrap":".yMetaWrap").node()),i=r[0],o=r[1];(o<0||i<0||n&&i+T>=le||!n&&o+T>=ce)&&(U(),P.call("elementMouseout",this,{e:d3.event}))}).on("mousemove",function(e,t){P.call("elementMousemove",this,{e:d3.event})})}),J.renderEnd("heatMap immediate"),se}return se.dispatch=P,se.options=e.utils.optionsFunc.bind(se),se._options=Object.create({},{width:{get:function(){return f},set:function(e){f=e}},height:{get:function(){return m},set:function(e){m=e}},showCellValues:{get:function(){return x},set:function(e){x=e}},x:{get:function(){return _},set:function(e){_=e}},y:{get:function(){return w},set:function(e){w=e}},cellValue:{get:function(){return A},set:function(e){A=e}},missingDataColor:{get:function(){return O},set:function(e){O=e}},missingDataLabel:{get:function(){return L},set:function(e){L=e}},xScale:{get:function(){return v},set:function(e){v=e}},yScale:{get:function(){return y},set:function(e){y=e}},colorScale:{get:function(){return b},set:function(e){b=e}},xDomain:{get:function(){return o},set:function(e){o=e}},yDomain:{get:function(){return s},set:function(e){s=e}},xRange:{get:function(){return a},set:function(e){a=e}},yRange:{get:function(){return l},set:function(e){l=e}},colorRange:{get:function(){return d},set:function(e){d=e}},colorDomain:{get:function(){return h},set:function(e){h=e}},xMeta:{get:function(){return c},set:function(e){c=e}},yMeta:{get:function(){return u},set:function(e){u=e}},xMetaColorScale:{get:function(){return color},set:function(t){color=e.utils.getColor(t)}},yMetaColorScale:{get:function(){return color},set:function(t){color=e.utils.getColor(t)}},cellAspectRatio:{get:function(){return S},set:function(e){S=e}},cellRadius:{get:function(){return E},set:function(e){E=e}},cellHeight:{get:function(){return n}},cellWidth:{get:function(){return r}},normalize:{get:function(){return D},set:function(e){D=e}},cellBorderWidth:{get:function(){return T},set:function(e){T=e}},highContrastText:{get:function(){return C},set:function(e){C=e}},cellValueFormat:{get:function(){return k},set:function(e){k=e}},id:{get:function(){return g},set:function(e){g=e}},metaOffset:{get:function(){return N},set:function(e){N=e}},xMetaHeight:{get:function(){return j},set:function(e){j=e}},yMetaWidth:{get:function(){return F},set:function(e){F=e}},showGrid:{get:function(){return B},set:function(e){B=e}},margin:{get:function(){return p},set:function(e){p.top=void 0!==e.top?e.top:p.top,p.right=void 0!==e.right?e.right:p.right,p.bottom=void 0!==e.bottom?e.bottom:p.bottom,p.left=void 0!==e.left?e.left:p.left}},duration:{get:function(){return R},set:function(e){R=e,J.reset(R)}}}),e.utils.initOptions(se),se},e.models.heatMapChart=function(){"use strict";var t,n,r=e.models.heatMap(),i=e.models.legend(),o=(e.models.legend(),e.models.legend(),e.models.tooltip()),s=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),a=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),l={top:20,right:10,bottom:50,left:60},c=null,u=null,d=(e.utils.getColor(),!0),h=!1,p=!0,f=!0,m="left",g="top",v=0,y=null,b=d3.dispatch("beforeUpdate","renderEnd"),_=250;d3.transition().duration(_).ease(d3.easeLinear),s.showMaxMin(!1).tickFormat(function(e){return e}),a.showMaxMin(!1).tickFormat(function(e){return e}),o.duration(0).headerEnabled(!0).keyFormatter(function(e,t){return s.tickFormat()(e,t)});var w=e.utils.renderWatch(b,_);function A(o){return w.reset(),w.models(r),w.models(s),w.models(a),o.each(function(o){var y=d3.select(this);e.utils.initSVG(y);var x=e.utils.availableWidth(c,y,l),k=e.utils.availableHeight(u,y,l);if(A.update=function(){b.call("beforeUpdate",this),y.transition().duration(_).call(A)},A.container=this,!o||!o.length)return e.utils.noData(A,y),A;y.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var S=y.selectAll("g.nv-wrap").data([o]),E=S.enter().append("g");E.attr("transform","translate("+l.left+","+l.top+")");var T=E.attr("class","nvd3 nv-wrap").append("g"),D=S.select("g"),C=T.append("g").attr("class","nv-heatMap"),M=T.append("g").attr("class","nv-legendWrap"),I=T.append("g").attr("class","nv-x nv-axis");I=y.selectAll("g.nv-wrap.nv-heatMap").select(".nv-x");var O=T.append("g").attr("class","nv-y nv-axis");M=y.selectAll("g.nv-wrap").select(".nv-legendWrap"),r.width(x).height(k),C.datum(o.filter(function(e){return!e.disabled})).transition().call(r),r.cellAspectRatio()&&(k=r.cellHeight()*n.domain().length,r.height(k)),s.scale(t)._ticks(e.utils.calcTicksX(x/100,o)),s.tickSizeInner(-k);var L=I;L.call(s).watchTransition(w,"heatMap: axisX").selectAll(".tick").style("opacity",function(){return p?1:0}),L.select("g.nvd3.nv-wrap.nv-axis").selectAll("g").selectAll(".tick text").attr("transform",function(e,t,n){return"translate(0, "+(h?n%2==0?"5":"17":"0")+") rotate("+(0!=v?v:"0")+" 0,0)"}).style("text-anchor",v>0?"start":v<0?"end":"middle");var N=-5;if("function"==typeof r.xMeta()&&(L.selectAll("text").style("text-anchor","middle"),N=-r.xMetaHeight()()/2-r.metaOffset()+3),"bottom"==g){if(L.watchTransition(w,"heatMap: axisX").attr("transform","translate(0,"+(k-N)+")"),!1!==r.xMeta()){var P=k+r.metaOffset()+r.cellBorderWidth();D.select(".xMetaWrap").watchTransition(w,"heatMap: xMetaWrap").attr("transform",function(e,t){return"translate(0,"+P+")"})}}else L.watchTransition(w,"heatMap: axisX").attr("transform","translate(0,"+N+")");a.scale(n)._ticks(e.utils.calcTicksY(k/36,o)),a.tickSizeInner(-x);var R=O;R.call(a).watchTransition(w,"heatMap: axisY").selectAll(".tick").style("opacity",function(){return f?1:0});var j=-5;if("function"==typeof r.yMeta()&&(R.selectAll("text").style("text-anchor","middle"),j=-r.yMetaWidth()()/2-r.metaOffset()),"right"==m){if(R.attr("transform","translate("+(x-j)+",0)"),!1!==r.yMeta()){P=x+r.metaOffset()+r.cellBorderWidth();D.select(".yMetaWrap").watchTransition(w,"heatMap: yMetaWrap").attr("transform",function(e,t){return"translate("+P+",0)"})}}else R.attr("transform","translate("+j+",0)");var F,B=M;i.width(x).color(r.colorScale().range());var Y=("string"==typeof(F=r.colorScale()).domain()[0]?F.domain():F.range().map(function(e){var t=F.invertExtent(e);return null===t[0]&&(t[0]=F.domain()[0]),null===t[1]&&(t[1]=F.domain()[1]),t})).map(function(e){return Array.isArray(e)?{key:e[0].toFixed(1)+" - "+e[1].toFixed(1)}:{key:e}});B.datum(Y).call(i).attr("transform","translate(0,"+("top"==g?k:-30)+")"),B.watchTransition(w,"heatMap: nv-legendWrap").style("opacity",function(){return d?1:0})}),d3.selectAll(".nv-axis").selectAll("line").style("stroke-opacity",0),yAxisAppend.select("path.domain").remove(),w.renderEnd("heatMap chart immediate"),A}return r.dispatch.on("elementMouseover.tooltip",function(e){o.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){o.hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(e){o()}),A.dispatch=b,A.heatMap=r,A.legend=i,A.xAxis=s,A.yAxis=a,A.tooltip=o,A.options=e.utils.optionsFunc.bind(A),A._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},showLegend:{get:function(){return d},set:function(e){d=e}},noData:{get:function(){return y},set:function(e){y=e}},showXAxis:{get:function(){return p},set:function(e){p=e}},showYAxis:{get:function(){return f},set:function(e){f=e}},staggerLabels:{get:function(){return h},set:function(e){h=e}},rotateLabels:{get:function(){return v},set:function(e){v=e}},margin:{get:function(){return l},set:function(e){void 0!==e.top&&(l.top=e.top,e.top),l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},duration:{get:function(){return _},set:function(e){_=e,w.reset(_),r.duration(_),s.duration(_),a.duration(_)}},alignYAxis:{get:function(){return m},set:function(e){m=e}},alignXAxis:{get:function(){return g},set:function(e){g=e}}}),e.utils.inheritOptions(A,r),e.utils.initOptions(A),A},e.models.historicalBar=function(){"use strict";var t,n,r,i,o={top:0,right:0,bottom:0,left:0},s=null,a=null,l=Math.floor(1e4*Math.random()),c=null,u=d3.scaleLinear(),d=d3.scaleLinear(),h=function(e){return e.x},p=function(e){return e.y},f=[],m=[0],g=!1,v=!0,y=e.utils.defaultColor(),b=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),_=!0,w=e.utils.renderWatch(b,0);function A(x){return x.each(function(A){w.reset(),c=d3.select(this);var x=e.utils.availableWidth(s,c,o),k=e.utils.availableHeight(a,c,o);e.utils.initSVG(c),u.domain(t||d3.extent(A[0].values.map(h).concat(f))),g?u.range(r||[.5*x/A[0].values.length,x*(A[0].values.length-.5)/A[0].values.length]):u.range(r||[0,x]),d.domain(n||d3.extent(A[0].values.map(p).concat(m))).range(i||[k,0]),u.domain()[0]===u.domain()[1]&&(u.domain()[0]?u.domain([u.domain()[0]-.01*u.domain()[0],u.domain()[1]+.01*u.domain()[1]]):u.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var S=c.selectAll("g.nv-wrap.nv-historicalBar-"+l).data([A[0].values]).enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+l);S.attr("transform","translate("+o.left+","+o.top+")");var E=S.append("defs"),T=S.append("g"),D=S.select("g"),C=T.append("g").attr("class","nv-bars");c.on("click",function(e,t,n){b.call("chartClick",this,{data:t,index:t.index,pos:e,id:l})}),E.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect").attr("width",x).attr("height",k),D.attr("clip-path",v?"url(#nv-chart-clip-path-"+l+")":"");var M=C.selectAll(".nv-bar").data(function(e){return e},function(e,t){return h(e,t)});M.exit().remove();var I=M.enter().append("rect").attr("x",0).attr("y",function(t,n){return e.utils.NaNtoZero(d(Math.max(0,p(t,n))))}).attr("height",function(t,n){return e.utils.NaNtoZero(Math.abs(d(p(t,n))-d(0)))}).attr("transform",function(e,t){return"translate("+(u(h(e,t))-x/A[0].values.length*.45)+",0)"}).on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),_&&(d3.select(this).classed("hover",!0),b.call("elementMouseover",this,{data:t,index:t.index,color:d3.select(this).style("fill")}))}).on("mouseout",function(e,t,n){_&&(d3.select(this).classed("hover",!1),b.call("elementMouseout",this,{data:t,index:t.index,color:d3.select(this).style("fill")}))}).on("mousemove",function(e,t,n){_&&b.call("elementMousemove",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("click",function(e,t,n){_&&(b.call("elementClick",this,{data:t,index:t.index,color:d3.select(this).style("fill"),event:d3.event,element:this}),e.stopPropagation())}).on("dblclick",function(e,t,n){_&&(b.call("elementDblClick",this,{data:t,index:t.index,color:d3.select(this).style("fill")}),e.stopPropagation())});I.attr("fill",function(e,t){return y(e,t)}).attr("class",function(e,t,n){return(0>p(e,t)?"nv-bar negative":"nv-bar positive")+" nv-bar-0-"+t}).watchTransition(w,"bars").attr("transform",function(e,t){return"translate("+(u(h(e,t))-x/A[0].values.length*.45)+",0)"}).attr("width",x/A[0].values.length*.9),I.watchTransition(w,"bars").attr("y",function(t,n){var r=0>p(t,n)?d(0):d(0)-d(p(t,n))<1?d(0)-1:d(p(t,n));return e.utils.NaNtoZero(r)}).attr("height",function(t,n){return e.utils.NaNtoZero(Math.max(Math.abs(d(p(t,n))-d(0)),1))})}),w.renderEnd("historicalBar immediate"),A}return A.highlightPoint=function(e,t){c.select(".nv-bars .nv-bar-0-"+e).classed("hover",t)},A.clearHighlights=function(){c.select(".nv-bars .nv-bar.hover").classed("hover",!1)},A.dispatch=b,A.options=e.utils.optionsFunc.bind(A),A._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},forceX:{get:function(){return f},set:function(e){f=e}},forceY:{get:function(){return m},set:function(e){m=e}},padData:{get:function(){return g},set:function(e){g=e}},x:{get:function(){return h},set:function(e){h=e}},y:{get:function(){return p},set:function(e){p=e}},xScale:{get:function(){return u},set:function(e){u=e}},yScale:{get:function(){return d},set:function(e){d=e}},xDomain:{get:function(){return t},set:function(e){t=e}},yDomain:{get:function(){return n},set:function(e){n=e}},xRange:{get:function(){return r},set:function(e){r=e}},yRange:{get:function(){return i},set:function(e){i=e}},clipEdge:{get:function(){return v},set:function(e){v=e}},id:{get:function(){return l},set:function(e){l=e}},interactive:{get:function(){return _},set:function(e){_=e}},margin:{get:function(){return o},set:function(e){o.top=void 0!==e.top?e.top:o.top,o.right=void 0!==e.right?e.right:o.right,o.bottom=void 0!==e.bottom?e.bottom:o.bottom,o.left=void 0!==e.left?e.left:o.left}},color:{get:function(){return y},set:function(t){y=e.utils.getColor(t)}}}),e.utils.initOptions(A),A},e.models.historicalBarChart=function(t){"use strict";var n,r,i=t||e.models.historicalBar(),o=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),s=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),a=e.models.legend(),l=e.interactiveGuideline(),c=e.models.tooltip(),u={top:30,right:90,bottom:50,left:90},d=null,h=e.utils.defaultColor(),p=null,f=null,m=!1,g=!0,v=!0,y=!1,b=!1,_={},w=null,A=null,x=d3.dispatch("tooltipHide","stateChange","changeState","renderEnd"),k=250;o.tickPadding(7),c.duration(0).headerEnabled(!1).valueFormatter(function(e,t){return s.tickFormat()(e,t)}).headerFormatter(function(e,t){return o.tickFormat()(e,t)});var S=e.utils.renderWatch(x,0);function E(t){return t.each(function(c){S.reset(),S.models(i),g&&S.models(o),v&&S.models(s);var A,T=d3.select(this);e.utils.initSVG(T);var D=e.utils.availableWidth(p,T,u),C=e.utils.availableHeight(f,T,u);if(E.update=function(){T.transition().duration(k).call(E)},E.container=this,_.disabled=c.map(function(e){return!!e.disabled}),!w)for(A in w={},_)_[A]instanceof Array?w[A]=_[A].slice(0):w[A]=_[A];if(!c||!c.length||!c.filter(function(e){return e.values.length}).length)return e.utils.noData(E,T),E;T.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale();var M=T.selectAll("g.nv-wrap.nv-historicalBarChart").data([c]),I=M.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart"),O=I.append("g");I.select("g");var L=O.append("g").attr("class","nv-x nv-axis");L=T.selectAll("g.nv-wrap.nv-historicalBarChart").select(".nv-x");var N=O.append("g").attr("class","nv-y nv-axis"),P=O.append("g").attr("class","nv-barsWrap"),R=O.append("g").attr("class","nv-legendWrap"),j=O.append("g").attr("class","nv-interactive");R=T.selectAll("g.nv-wrap.nv-historicalBarChart").select(".nv-legendWrap"),m?(a.width(D),R.datum(c).call(a),d||a.height()===u.top||(u.top=a.height(),C=e.utils.availableHeight(f,T,u)),R.attr("transform","translate(0,"+-u.top+")")):R.selectAll("*").remove(),I.attr("transform","translate("+u.left+","+u.top+")"),y&&N.attr("transform","translate("+D+",0)"),b&&(l.width(D).height(C).margin({left:u.left,top:u.top}).svgContainer(T).xScale(n),j.call(l)),i.width(D).height(C).color(c.map(function(e,t){return e.color||h(e,t)}).filter(function(e,t){return!c[t].disabled})),P.datum(c.filter(function(e){return!e.disabled})).transition().call(i),g&&(o.scale(n)._ticks(e.utils.calcTicksX(D/100,c)),o.tickSizeInner(-C),L.attr("transform","translate(0,"+r.range()[0]+")"),L.transition().call(o)),v&&(s.scale(r)._ticks(e.utils.calcTicksY(C/36,c)),s.tickSizeInner(-D),N.transition().call(s)),l.dispatch.on("elementMousemove",function(t){i.clearHighlights();var n,r,a,u=[];c.filter(function(e,t){return e.seriesIndex=t,!e.disabled}).forEach(function(o,s){r=e.interactiveBisect(o.values,t.pointXValue,E.x()),i.highlightPoint(r,!0);var l=o.values[r];void 0!==l&&(void 0===n&&(n=l),void 0===a&&(a=E.xScale()(E.x()(l,r))),u.push({key:o.key,value:E.y()(l,r),color:h(o,o.seriesIndex),data:o.values[r]}))});var d=o.tickFormat()(E.x()(n,r));l.tooltip.valueFormatter(function(e,t){return s.tickFormat()(e)}).data({value:d,index:r,series:u})(),l.renderGuideLine(a)}),l.dispatch.on("elementMouseout",function(e){x.call("tooltipHide",this),i.clearHighlights()}),a.dispatch.on("legendClick",function(e,n,r){n.disabled=!n.disabled,c.filter(function(e){return!e.disabled}).length||c.map(function(e){return e.disabled=!1,M.selectAll(".nv-series").classed("disabled",!1),e}),_.disabled=c.map(function(e){return!!e.disabled}),x.call("stateChange",this,_),t.transition().call(E)}),a.dispatch.on("legendDblclick",function(e){c.forEach(function(e){e.disabled=!0}),e.disabled=!1,_.disabled=c.map(function(e){return!!e.disabled}),x.call("stateChange",this,_),E.update()}),x.on("changeState",function(e){void 0!==e.disabled&&(c.forEach(function(t,n){t.disabled=e.disabled[n]}),_.disabled=e.disabled),E.update()})}),S.renderEnd("historicalBarChart immediate"),E}return i.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:E.x()(e.data),value:E.y()(e.data),color:e.color},c.data(e).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(e){c.hidden(!0)}),i.dispatch.on("elementMousemove.tooltip",function(e){c()}),E.dispatch=x,E.bars=i,E.legend=a,E.xAxis=o,E.yAxis=s,E.interactiveLayer=l,E.tooltip=c,E.options=e.utils.optionsFunc.bind(E),E._options=Object.create({},{width:{get:function(){return p},set:function(e){p=e}},height:{get:function(){return f},set:function(e){f=e}},showLegend:{get:function(){return m},set:function(e){m=e}},showXAxis:{get:function(){return g},set:function(e){g=e}},showYAxis:{get:function(){return v},set:function(e){v=e}},defaultState:{get:function(){return w},set:function(e){w=e}},noData:{get:function(){return A},set:function(e){A=e}},margin:{get:function(){return u},set:function(e){void 0!==e.top&&(u.top=e.top,d=e.top),u.right=void 0!==e.right?e.right:u.right,u.bottom=void 0!==e.bottom?e.bottom:u.bottom,u.left=void 0!==e.left?e.left:u.left}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t),a.color(h),i.color(h)}},duration:{get:function(){return k},set:function(e){k=e,S.reset(k),s.duration(k),o.duration(k)}},rightAlignYAxis:{get:function(){return y},set:function(e){y=e}},useInteractiveGuideline:{get:function(){return b},set:function(e){b=e,!0===e&&E.interactive(!1)}}}),e.utils.inheritOptions(E,i),e.utils.initOptions(E),E},e.models.ohlcBarChart=function(){var t=e.models.historicalBarChart(e.models.ohlcBar());return t.useInteractiveGuideline(!0),t.interactiveLayer.tooltip.contentGenerator(function(e){var n=e.series[0].data;return'<h3 style="color: #'+(n.open<n.close?"2ca02c":"d62728")+'">'+e.value+"</h3><table><tr><td>open:</td><td>"+t.yAxis.tickFormat()(n.open)+"</td></tr><tr><td>close:</td><td>"+t.yAxis.tickFormat()(n.close)+"</td></tr><tr><td>high</td><td>"+t.yAxis.tickFormat()(n.high)+"</td></tr><tr><td>low:</td><td>"+t.yAxis.tickFormat()(n.low)+"</td></tr></table>"}),t},e.models.candlestickBarChart=function(){var t=e.models.historicalBarChart(e.models.candlestickBar());return t.useInteractiveGuideline(!0),t.interactiveLayer.tooltip.contentGenerator(function(e){var n=e.series[0].data;return'<h3 style="color: #'+(n.open<n.close?"2ca02c":"d62728")+'">'+e.value+"</h3><table><tr><td>open:</td><td>"+t.yAxis.tickFormat()(n.open)+"</td></tr><tr><td>close:</td><td>"+t.yAxis.tickFormat()(n.close)+"</td></tr><tr><td>high</td><td>"+t.yAxis.tickFormat()(n.high)+"</td></tr><tr><td>low:</td><td>"+t.yAxis.tickFormat()(n.low)+"</td></tr></table>"}),t},e.models.legend=function(){"use strict";var t={top:5,right:0,bottom:5,left:0},n=400,r=20,i=function(e){return e.key},o=function(e){return e},s=e.utils.getColor(),a=20,l=!0,c=32,u=!0,d=!0,h=!0,p=!1,f=!1,m=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),g="classic";function v(y){function b(e,t){return"furious"!=g?"#000":f?e.disengaged?"#000":"#fff":f?void 0:(e.color||(e.color=s(e,t)),e.disabled?e.color:"#fff")}function _(e,t){return f&&"furious"==g&&e.disengaged?"#eee":e.color||s(e,t)}function w(e,t){return f&&"furious"==g?1:e.disabled?0:1}return y.each(function(s){var v=n-t.left-t.right,y=d3.select(this);e.utils.initSVG(y),y.selectAll("g.nv-legend").remove();var A=y.selectAll("g.nv-legend").data([s]).enter().append("g").attr("class","nvd3 nv-legend");u?A.attr("transform","translate("+-t.right+","+t.top+")"):A.attr("transform","translate("+t.left+","+t.top+")");var x=A.append("g");x.select("g");var k=y.selectAll("g.nv-legend").select("g").selectAll(".nv-series").data(function(e){return"furious"!=g?e:e.filter(function(e){return!!f||!e.disengaged})}),S=k.enter().append("g").attr("class","nv-series");switch(S=k.merge(S),g){case"furious":R=23;break;case"classic":R=20}"classic"==g?(S.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),P=S.select(".nv-legend-symbol")):"furious"==g&&(S.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),P=S.select(".nv-legend-symbol"),S.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)").each(function(e,t){d3.select(this).selectAll("path").attr("stroke",b(e,t))})),S.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var E=S.select("text.nv-legend-text");S.on("mouseover",function(e,t,n){m.call("legendMouseover",S,e,t,n)}).on("mouseout",function(e,t,n){m.call("legendMouseout",S,e,t,n)}).on("click",function(e,t,n){m.call("legendClick",S,e,t,n);var r=S.data();d&&("classic"==g?p?(r.forEach(function(e){e.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,r.every(function(e){return e.disabled})&&r.forEach(function(e){e.disabled=!1})):"furious"==g&&(f?(t.disengaged=!t.disengaged,t.userDisabled=null==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled):!f&&(t.disabled=!t.disabled,t.userDisabled=t.disabled,r.filter(function(e){return!e.disengaged}).every(function(e){return e.userDisabled})&&r.forEach(function(e){e.disabled=e.userDisabled=!1}))),m.call("stateChange",k,{disabled:r.map(function(e){return!!e.disabled}),disengaged:r.map(function(e){return!!e.disengaged})}))}).on("dblclick",function(e,t,n){if(h&&("furious"!=g||!f)&&(m.call("legendDblclick",S,e,t,n),d)){var r=S.data();r.forEach(function(e){e.disabled=!0,"furious"==g&&(e.userDisabled=e.disabled)}),t.disabled=!1,"furious"==g&&(t.userDisabled=t.disabled),m.call("stateChange",S,{disabled:r.map(function(e){return!!e.disabled})})}}),S.classed("nv-disabled",function(e){return e.userDisabled}),S.exit().remove(),E.attr("fill",b).text(function(e){return o(i(e))});var T=0;if(l){var D=[];S.each(function(t,n){if(o(i(t))&&o(i(t)).length>a){var r,s,l=o(i(t)).substring(0,a);r=d3.select(this).select("text").text(l+"..."),d3.select(this).append("svg:title").text(o(i(t)))}else r=d3.select(this).select("text");try{if((s=r.node().getComputedTextLength())<=0)throw Error()}catch(t){s=e.utils.calcApproxTextWidth(r)}D.push(s+c)});var C=0,M=[];for(T=0;T<v&&C<D.length;)M[C]=D[C],T+=D[C++];for(0===C&&(C=1);T>v&&C>1;){M=[],C--;for(var I=0;I<D.length;I++)D[I]>(M[I%C]||0)&&(M[I%C]=D[I]);T=M.reduce(function(e,t,n,r){return e+t})}for(var O=[],L=0,N=0;L<C;L++)O[L]=N,N+=M[L];S.attr("transform",function(e,t){return"translate("+O[t%C]+","+(5+Math.floor(t/C)*R)+")"}),u?x.attr("transform","translate("+(n-t.right-T)+","+t.top+")"):x.attr("transform","translate(0,"+t.top+")"),r=t.top+t.bottom+Math.ceil(D.length/C)*R}else{var P,R,j,F=5,B=5,Y=0;S.attr("transform",function(e,r){var i=d3.select(this).select("text").node().getComputedTextLength()+c;return j=B,n<t.left+t.right+j+i&&(B=j=5,F+=R),(B+=i)>Y&&(Y=B),T<j+Y&&(T=j+Y),"translate("+j+","+F+")"}),x.attr("transform","translate("+(n-t.right-Y)+","+t.top+")"),r=t.top+t.bottom+F+15}"furious"==g&&(P.attr("width",function(e,t){return S.select("text.nv-legend-text").nodes()[t].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),x.insert("rect",":first-child").attr("class","nv-legend-bg").attr("fill","#eee").attr("opacity",0),x.select(".nv-legend-bg").transition().duration(300).attr("x",-R).attr("width",T+R-12).attr("height",r+10).attr("y",-t.top-10).attr("opacity",f?1:0)),P.style("fill",_).style("fill-opacity",w).style("stroke",_)}),v}return v.dispatch=m,v.options=e.utils.optionsFunc.bind(v),v._options=Object.create({},{width:{get:function(){return n},set:function(e){n=e}},height:{get:function(){return r},set:function(e){r=e}},key:{get:function(){return i},set:function(e){i=e}},keyFormatter:{get:function(){return o},set:function(e){o=e}},align:{get:function(){return l},set:function(e){l=e}},maxKeyLength:{get:function(){return a},set:function(e){a=e}},rightAlign:{get:function(){return u},set:function(e){u=e}},padding:{get:function(){return c},set:function(e){c=e}},updateState:{get:function(){return d},set:function(e){d=e}},enableDoubleClick:{get:function(){return h},set:function(e){h=e}},radioButtonMode:{get:function(){return p},set:function(e){p=e}},expanded:{get:function(){return f},set:function(e){f=e}},vers:{get:function(){return g},set:function(e){g=e}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},color:{get:function(){return s},set:function(t){s=e.utils.getColor(t)}}}),e.utils.initOptions(v),v},e.models.line=function(){"use strict";var t,n,r=e.models.scatter(),i={top:0,right:0,bottom:0,left:0},o=960,s=500,a=null,l=e.utils.defaultColor(),c=function(e){return e.x},u=function(e){return e.y},d=function(e,t){return!isNaN(u(e,t))&&null!==u(e,t)},h=function(e){return e.area},p=!1,f=d3.curveLinear,m=(d3.curveBasis,250),g=d3.dispatch("elementClick","elementMouseover","elementMouseout","renderEnd");r.pointSize(16).pointDomain([16,256]);var v,y,b=e.utils.renderWatch(g,m);function _(m){return b.reset(),b.models(r),m.each(function(m){a=d3.select(this);var g=e.utils.availableWidth(o,a,i),_=e.utils.availableHeight(s,a,i);e.utils.initSVG(a),t=r.xScale(),n=r.yScale(),v=v||t,y=y||n;var w=a.selectAll("g.nv-wrap.nv-line").data([m]).enter().append("g").attr("class","nvd3 nv-wrap nv-line").attr("transform","translate("+i.left+","+i.top+")"),A=w.append("defs"),x=w.append("g");x.append("g").attr("class","nv-groups"),x.append("g").attr("class","nv-scatterWrap");var k=a.select(".nv-scatterWrap");r.width(g).height(_),k.call(r),A.append("clipPath").attr("id","nv-edge-clip-"+r.id()).append("rect").attr("width",g).attr("height",_>0?_:0),x.attr("clip-path",p?"url(#nv-edge-clip-"+r.id()+")":""),k.attr("clip-path",p?"url(#nv-edge-clip-"+r.id()+")":"");var S=a.select(".nv-groups").selectAll(".nv-group").data(function(e){return e},function(e){return e.key}),E=S.enter().append("g").style("stroke-opacity",1e-6).style("stroke-width",function(e){return e.strokeWidth||1.5}).style("fill-opacity",1e-6);S.exit().remove(),(E=S.merge(E)).attr("class",function(e,t){return(e.classed||"")+" nv-group nv-series-"+t}).classed("hover",function(e){return e.hover}).style("fill",function(e,t){return l(e,t)}).style("stroke",function(e,t){return l(e,t)}),E.watchTransition(b,"line: groups").style("stroke-opacity",1).style("fill-opacity",function(e){return e.fillOpacity||.5});var T=a.select(".nv-groups").selectAll(".nv-group").selectAll("path.nv-area").data(function(e){return h(e)?[e]:[]}),D=T.enter().append("path").attr("class","nv-area").attr("d",function(t){return d3.area().curve(getInterpolationType(f)).defined(d).x(function(t,n){return e.utils.NaNtoZero(v(c(t,n)))}).y0(function(t,n){return e.utils.NaNtoZero(y(u(t,n)))}).y1(function(e,t){return y(n.domain()[0]<=0?n.domain()[1]>=0?0:n.domain()[1]:n.domain()[0])}).apply(this,[t.values])});S.exit().selectAll("path.nv-area").remove(),(D=T.merge(D)).watchTransition(b,"line: areaPaths").attr("d",function(r){return d3.area().curve(getInterpolationType(f)).defined(d).x(function(n,r){return e.utils.NaNtoZero(t(c(n,r)))}).y0(function(t,r){return e.utils.NaNtoZero(n(u(t,r)))}).y1(function(e,t){return n(n.domain()[0]<=0?n.domain()[1]>=0?0:n.domain()[1]:n.domain()[0])}).apply(this,[r.values])});var C=E.selectAll("path.nv-line").data(function(e){return[e.values]}),M=C.enter().append("path").attr("class","nv-line").attr("d",d3.line().curve(getInterpolationType(f)).defined(d).x(function(t,n){return e.utils.NaNtoZero(v(c(t,n)))}).y(function(t,n){return e.utils.NaNtoZero(y(u(t,n)))}));(M=C.merge(M)).watchTransition(b,"line: linePaths").attr("d",d3.line().curve(getInterpolationType(f)).defined(d).x(function(n,r){return e.utils.NaNtoZero(t(c(n,r)))}).y(function(t,r){return e.utils.NaNtoZero(n(u(t,r)))})),v=t.copy(),y=n.copy()}),b.renderEnd("line immediate"),_}return _.dispatch=g,_.scatter=r,r.dispatch.on("elementClick",function(){g.apply("elementClick",this,arguments)}),r.dispatch.on("elementMouseover",function(){g.apply("elementMouseover",this,arguments)}),r.dispatch.on("elementMouseout",function(){g.apply("elementMouseout",this,arguments)}),_.options=e.utils.optionsFunc.bind(_),_._options=Object.create({},{width:{get:function(){return o},set:function(e){o=e}},height:{get:function(){return s},set:function(e){s=e}},defined:{get:function(){return d},set:function(e){d=e}},interpolate:{get:function(){return f},set:function(e){f=e}},clipEdge:{get:function(){return p},set:function(e){p=e}},margin:{get:function(){return i},set:function(e){i.top=void 0!==e.top?e.top:i.top,i.right=void 0!==e.right?e.right:i.right,i.bottom=void 0!==e.bottom?e.bottom:i.bottom,i.left=void 0!==e.left?e.left:i.left}},duration:{get:function(){return m},set:function(e){m=e,b.reset(m),r.duration(m)}},isArea:{get:function(){return h},set:function(e){h="function"==typeof e?e:function(){return e}}},x:{get:function(){return c},set:function(e){c=e,r.x(e)}},y:{get:function(){return u},set:function(e){u=e,r.y(e)}},color:{get:function(){return l},set:function(t){l=e.utils.getColor(t),r.color(l)}}}),e.utils.inheritOptions(_,r),e.utils.initOptions(_),_},e.models.lineChart=function(){"use strict";var t,n,r=e.models.line(),i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=e.models.legend(),a=e.interactiveGuideline(),l=e.models.tooltip(),c=e.models.focus(e.models.line()),u={top:30,right:20,bottom:50,left:60},d=null,h=e.utils.defaultColor(),p=null,f=null,m=!0,g="top",v=!0,y=!0,b=!1,_=!1,w=!1,A=e.utils.state(),x=null,k=null,S=d3.dispatch("stateChange","changeState","renderEnd"),E=250;d3.transition().duration(E).ease(d3.easeLinear);i.tickPadding(7),r.clipEdge(!0).duration(0),l.valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),a.tooltip.valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)});var T=e.utils.renderWatch(S,E);function D(l){return T.reset(),T.models(r),v&&T.models(i),y&&T.models(o),l.each(function(l){var k,T=d3.select(this);e.utils.initSVG(T);var C,M,I=e.utils.availableWidth(p,T,u),O=e.utils.availableHeight(f,T,u)-(w?c.height():0);if(D.update=function(){0===E?T.call(D):T.transition().duration(E).call(D)},D.container=this,A.setter((C=l,function(e){void 0!==e.active&&C.forEach(function(t,n){t.disabled=!e.active[n]})}),D.update).getter((M=l,function(){return{active:M.map(function(e){return!e.disabled})}})).update(),A.disabled=l.map(function(e){return!!e.disabled}),!x)for(k in x={},A)A[k]instanceof Array?x[k]=A[k].slice(0):x[k]=A[k];if(!l||!l.length||!l.filter(function(e){return e.values.length}).length)return e.utils.noData(D,T),D;T.selectAll(".nv-noData").remove(),c.dispatch.on("brush",function(e){K(e)}),t=r.xScale(),n=r.yScale();var L=l.filter(function(e){return!e.disabled}),N=T.selectAll("g.nv-wrap.nv-lineChart").data([l]).enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart"),P=N.append("g"),R=P,j=P.append("g").attr("class","nv-legendWrap");j=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-legendWrap");var F=P.append("g").attr("class","nv-focus"),B=F.append("g").attr("class","nv-background").append("rect"),Y=F.append("g").attr("class","nv-x nv-axis");Y=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-x");var V=F.append("g").attr("class","nv-y nv-axis");V=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-y");var H=F.append("g").attr("class","nv-linesWrap");H=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-linesWrap");var U=F.append("g").attr("class","nv-interactive");U=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-interactive");var z=P.append("g").attr("class","nv-focusWrap");z=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-focusWrap"),m?(s.width(I),j.datum(l).call(s),"bottom"===g?(u.bottom=i.height()+s.height(),O=e.utils.availableHeight(f,T,u),j.attr("transform","translate(0,"+(O+i.height())+")")):"top"===g&&(d||s.height()===u.top||(u.top=s.height(),O=e.utils.availableHeight(f,T,u)-(w?c.height():0)),j.attr("transform","translate(0,"+-u.top+")"))):j.selectAll("*").remove(),N.attr("transform","translate("+u.left+","+u.top+")"),b&&V.attr("transform","translate("+I+",0)"),_&&(a.width(I).height(O).margin({left:u.left,top:u.top}).svgContainer(T).xScale(t),U.call(a)),B.attr("width",I).attr("height",O),r.width(I).height(O).color(l.map(function(e,t){return e.color||h(e,t)}).filter(function(e,t){return!l[t].disabled}));var q=T.selectAll("g.nv-linesWrap.nvd3-svg").data([L]);function W(){v&&Y.transition().duration(E).call(i)}function $(){y&&V.transition().duration(E).call(o)}if(q=q.merge(H),v&&(i.scale(t)._ticks(e.utils.calcTicksX(I/100,l)),i.tickSizeInner(-O)),y&&(o.scale(n)._ticks(e.utils.calcTicksY(O/36,l)),o.tickSizeInner(-I)),Y.attr("transform","translate(0,"+O+")"),w){c.width(I),z.style("display",w?"initial":"none").attr("transform","translate(0,"+(O+u.bottom+c.margin().top)+")").call(c);var G=null===c.brush.extent()?c.xDomain():c.brush.extent();null!==G&&G.length&&K(G)}else q.transition().call(r),W(),$();function K(e){R.select(".nv-focus .nv-linesWrap").datum(l.filter(function(e){return!e.disabled}).map(function(t,n){return{key:t.key,area:t.area,classed:t.classed,values:t.values.filter(function(t,n){return r.x()(t,n)>=e[0]&&r.x()(t,n)<=e[1]}),disableTooltip:t.disableTooltip}})).transition().duration(E).call(r),W(),$()}s.dispatch.on("stateChange",function(e){for(var t in e)A[t]=e[t];S.call("stateChange",this,e),D.update()}),a.dispatch.on("elementMousemove",function(n){r.clearHighlights();var i,s,u,d=[];if(l.filter(function(e,t){return e.seriesIndex=t,!e.disabled&&!e.disableTooltip}).forEach(function(o,a){var l=null!=c.brush.extent()?t.domain():c.xScale().domain(),p=o.values.filter(function(e,t){return l[0]<=l[1]?r.x()(e,t)>=l[0]&&r.x()(e,t)<=l[1]:r.x()(e,t)>=l[1]&&r.x()(e,t)<=l[0]});if(p.length>0){var f=p[s=e.interactiveBisect(p,n.pointXValue,r.x())],m=D.y()(f,s);if(null!==m&&r.highlightPoint(a,o.values.indexOf(f),!0),void 0===f)return;void 0===i&&(i=f),void 0===u&&(u=D.xScale()(D.x()(f,s))),d.push({key:o.key,value:m,color:h(o,o.seriesIndex),data:f})}}),d.length>2){var p=D.yScale().invert(n.mouseY),f=Math.abs(D.yScale().domain()[0]-D.yScale().domain()[1]),m=e.nearestValueIndex(d.map(function(e){return e.value}),p,.03*f);null!==m&&(d[m].highlight=!0)}void 0!==s&&(a.tooltip.valueFormatter(a.tooltip.valueFormatter()||function(e,t){return null==e?"N/A":o.tickFormat()(e)}).data({value:D.x()(i,s),index:s,series:d})(),a.renderGuideLine(u))}),a.dispatch.on("elementClick",function(t){var n,i=[];l.filter(function(e,t){return e.seriesIndex=t,!e.disabled}).forEach(function(r){var o=e.interactiveBisect(r.values,t.pointXValue,D.x()),s=r.values[o];if(void 0!==s){void 0===n&&(n=D.xScale()(D.x()(s,o)));var a=D.yScale()(D.y()(s,o));i.push({point:s,pointIndex:o,pos:[n,a],seriesIndex:r.seriesIndex,series:r})}}),r.dispatch.call("elementClick",this,i)}),a.dispatch.on("elementMouseout",function(e){r.clearHighlights()}),S.on("changeState",function(e){void 0!==e.disabled&&l.length===e.disabled.length&&(l.forEach(function(t,n){t.disabled=e.disabled[n]}),A.disabled=e.disabled),D.update()})}),T.renderEnd("lineChart immediate"),D}return r.dispatch.on("elementMouseover.tooltip",function(e){e.series.disableTooltip||l.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){l.hidden(!0)}),D.dispatch=S,D.lines=r,D.legend=s,D.focus=c,D.xAxis=i,D.x2Axis=c.xAxis,D.yAxis=o,D.y2Axis=c.yAxis,D.interactiveLayer=a,D.tooltip=l,D.state=A,D.dispatch=S,D.options=e.utils.optionsFunc.bind(D),D._options=Object.create({},{width:{get:function(){return p},set:function(e){p=e}},height:{get:function(){return f},set:function(e){f=e}},showLegend:{get:function(){return m},set:function(e){m=e}},legendPosition:{get:function(){return g},set:function(e){g=e}},showXAxis:{get:function(){return v},set:function(e){v=e}},showYAxis:{get:function(){return y},set:function(e){y=e}},defaultState:{get:function(){return x},set:function(e){x=e}},noData:{get:function(){return k},set:function(e){k=e}},focusEnable:{get:function(){return w},set:function(e){w=e}},focusHeight:{get:function(){return c.height()},set:function(e){c.height(e)}},focusShowAxisX:{get:function(){return c.showXAxis()},set:function(e){c.showXAxis(e)}},focusShowAxisY:{get:function(){return c.showYAxis()},set:function(e){c.showYAxis(e)}},brushExtent:{get:function(){return c.brushExtent()},set:function(e){c.brushExtent(e)}},focusMargin:{get:function(){return c.margin},set:function(e){void 0!==e.top&&(u.top=e.top,d=e.top),c.margin.right=void 0!==e.right?e.right:c.margin.right,c.margin.bottom=void 0!==e.bottom?e.bottom:c.margin.bottom,c.margin.left=void 0!==e.left?e.left:c.margin.left}},margin:{get:function(){return u},set:function(e){u.top=void 0!==e.top?e.top:u.top,u.right=void 0!==e.right?e.right:u.right,u.bottom=void 0!==e.bottom?e.bottom:u.bottom,u.left=void 0!==e.left?e.left:u.left}},duration:{get:function(){return E},set:function(e){E=e,T.reset(E),d3.transition().duration(E).ease(d3.easeLinear),r.duration(E),c.duration(E),i.duration(E),o.duration(E)}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t),s.color(h),r.color(h),c.color(h)}},interpolate:{get:function(){return r.interpolate()},set:function(e){r.interpolate(e),c.interpolate(e)}},xTickFormat:{get:function(){return i.tickFormat()},set:function(e){i.tickFormat(e),c.xTickFormat(e)}},yTickFormat:{get:function(){return o.tickFormat()},set:function(e){o.tickFormat(e),c.yTickFormat(e)}},x:{get:function(){return r.x()},set:function(e){r.x(e),c.x(e)}},y:{get:function(){return r.y()},set:function(e){r.y(e),c.y(e)}},rightAlignYAxis:{get:function(){return b},set:function(e){b=e,o.orient(b?"right":"left")}},useInteractiveGuideline:{get:function(){return _},set:function(e){(_=e)&&(r.interactive(!1),r.useVoronoi(!1))}}}),e.utils.inheritOptions(D,r),e.utils.initOptions(D),D},e.models.lineWithFocusChart=function(){return e.models.lineChart().margin({bottom:30}).focusEnable(!0)},e.models.linePlusBarChart=function(){"use strict";var t,n,r,i,o,s,a=e.models.line(),l=e.models.line(),c=e.models.historicalBar(),u=e.models.historicalBar(),d=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),h=e.models.axis(d3.axisTop(d3.scaleLinear()),"top"),p=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),f=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),m=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),g=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),v=e.models.legend(),y=d3.brush(),b=e.models.tooltip(),_={top:30,right:30,bottom:30,left:60},w=null,A={top:0,right:30,bottom:20,left:60},x=null,k=null,S=function(e){return e.x},E=function(e){return e.y},T=e.utils.defaultColor(),D=!0,C=!0,M=!1,I=!0,O=50,L=null,N=null,P=d3.dispatch("brush","stateChange","changeState"),R=0,j=(d3.transition().duration(R).ease(d3.easeLinear),e.utils.state()),F=null,B=" (left axis)",Y=" (right axis)",V=!1;a.clipEdge(!0),l.interactive(!1),l.pointActive(function(e){return!1}),d.tickPadding(5),h.tickPadding(5),b.headerEnabled(!0).headerFormatter(function(e,t){return d.tickFormat()(e,t)});var H=function(e){return e.every(function(e){return e.disabled})};function U(b){return b.each(function(b){var N,z=d3.select(this);e.utils.initSVG(z);var q,W,$=e.utils.availableWidth(x,z,_),G=e.utils.availableHeight(k,z,_)-(C?O:0),K=O-A.top-A.bottom;if(U.update=function(){z.transition().duration(R).call(U)},U.container=this,j.setter((q=b,function(e){void 0!==e.active&&q.forEach(function(t,n){t.disabled=!e.active[n]})}),U.update).getter((W=b,function(){return{active:W.map(function(e){return!e.disabled})}})).update(),j.disabled=b.map(function(e){return!!e.disabled}),!F)for(N in F={},j)j[N]instanceof Array?F[N]=j[N].slice(0):F[N]=j[N];if(!b||!b.length||!b.filter(function(e){return e.values.length}).length)return e.utils.noData(U,z),U;z.selectAll(".nv-noData").remove();var Z=b.filter(function(e){return!e.disabled&&e.bar}),X=b.filter(function(e){return!e.bar});t=Z.length&&!V?c.xScale():a.xScale(),n=h.scale(),r=V?a.yScale():c.yScale(),i=V?c.yScale():a.yScale(),o=V?l.yScale():u.yScale(),s=V?u.yScale():l.yScale();var Q=b.filter(function(e){return!e.disabled&&(V?!e.bar:e.bar)}).map(function(e){return e.values.map(function(e,t){return{x:S(e,t),y:E(e,t)}})}),J=b.filter(function(e){return!e.disabled&&(V?e.bar:!e.bar)}).map(function(e){return e.values.map(function(e,t){return{x:S(e,t),y:E(e,t)}})});t.range([0,$]),n.domain(d3.extent(d3.merge(Q.concat(J)),function(e){return e.x})).range([0,$]);var ee=z.selectAll("g.nv-wrap.nv-linePlusBar").data([b]).enter().append("g").attr("class","nvd3 nv-wrap nv-linePlusBar"),te=ee.append("g"),ne=te.select("g"),re=te.append("g").attr("class","nv-legendWrap");re=z.selectAll("g.nv-wrap.nv-linePlusBar").select(".nv-legendWrap");var ie=te.append("g").attr("class","nv-focus"),oe=ie.append("g").attr("class","nv-x nv-axis");oe=z.selectAll("g.nv-wrap.nv-linePlusBar").select(".nv-x");var se=ie.append("g").attr("class","nv-y1 nv-axis"),ae=ie.append("g").attr("class","nv-y2 nv-axis"),le=ie.append("g").attr("class","nv-barsWrap"),ce=ie.append("g").attr("class","nv-linesWrap"),ue=te.append("g").attr("class","nv-context"),de=ue.append("g").attr("class","nv-x nv-axis"),he=ue.append("g").attr("class","nv-y1 nv-axis"),pe=ue.append("g").attr("class","nv-y2 nv-axis"),fe=ue.append("g").attr("class","nv-barsWrap"),me=ue.append("g").attr("class","nv-linesWrap"),ge=ue.append("g").attr("class","nv-brushBackground"),ve=ue.append("g").attr("class","nv-x nv-brush");if(D){var ye=v.align()?$/2:$,be=v.align()?ye:0;v.width(ye),re.datum(b.map(function(e){return e.originalKey=void 0===e.originalKey?e.key:e.originalKey,e.key=V?e.originalKey+(e.bar?Y:B):e.originalKey+(e.bar?B:Y),e})).call(v),w||v.height()===_.top||(_.top=v.height(),G=e.utils.availableHeight(k,z,_)-O),re.attr("transform","translate("+be+","+-_.top+")")}else re.selectAll("*").remove();ee.attr("transform","translate("+_.left+","+_.top+")"),ue.style("display",C?"initial":"none"),u.width($).height(K).color(b.map(function(e,t){return e.color||T(e,t)}).filter(function(e,t){return!b[t].disabled&&b[t].bar})),l.width($).height(K).color(b.map(function(e,t){return e.color||T(e,t)}).filter(function(e,t){return!b[t].disabled&&!b[t].bar}));var _e=fe.datum(Z.length?Z:[{values:[]}]),we=me.datum(H(X)?[{values:[]}]:X.filter(function(e){return!e.disabled}));ue.attr("transform","translate(0,"+(G+_.bottom+A.top)+")"),_e.transition().call(u),we.transition().call(l),I&&(h._ticks(e.utils.calcTicksX($/100,b)),h.tickSizeInner(-K),oe.attr("transform","translate(0,"+o.range()[0]+")"),oe.transition().call(h)),M&&(m.scale(o)._ticks(K/36),m.tickSizeInner(-$),g.scale(s)._ticks(K/36),g.tickSizeInner(Z.length?0:-$),ne.select(".nv-context .nv-y3.nv-axis").style("opacity",Z.length?1:0).attr("transform","translate(0,"+n.range()[0]+")"),pe.style("opacity",X.length?1:0).attr("transform","translate("+n.range()[1]+",0)"),he.transition().call(m),pe.transition().call(g)),y.on("brush",Se),L&&y.extent(L);var Ae=ge.selectAll("g").data([L||y.extent()]),xe=Ae.enter().append("g");xe.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",K),xe.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",K);var ke=ve.call(y);function Se(o){L=null===o?null:o.selection;var s,l=null===o?t.domain():o.selection;P.call("brush",this,{extent:l,brush:y}),null!==(s=o)&&y.extent(L),Ae.data([null===s?n.domain():L]).each(function(e,t){var r=n(e[0])-n.range()[0],i=n.range()[1]-n(e[1]);d3.select(this).select(".left").attr("width",r<0?0:r),d3.select(this).select(".right").attr("x",n(e[1])).attr("width",i<0?0:i)}),c.width($).height(G).color(b.map(function(e,t){return e.color||T(e,t)}).filter(function(e,t){return!b[t].disabled&&b[t].bar})),a.width($).height(G).color(b.map(function(e,t){return e.color||T(e,t)}).filter(function(e,t){return!b[t].disabled&&!b[t].bar}));var u=le.datum(Z.length?Z.map(function(e,t){return{key:e.key,values:e.values.filter(function(e,t){return c.x()(e,t)>=l[0]&&c.x()(e,t)<=l[1]})}}):[{values:[]}]),h=ce.datum(H(X)?[{values:[]}]:X.filter(function(e){return!e.disabled}).map(function(e,t){return{area:e.area,fillOpacity:e.fillOpacity,strokeWidth:e.strokeWidth,key:e.key,values:e.values.filter(function(e,t){return a.x()(e,t)>=l[0]&&a.x()(e,t)<=l[1]})}}));t=Z.length&&!V?c.xScale():a.xScale(),d.scale(t)._ticks(e.utils.calcTicksX($/100,b)),d.tickSizeInner(-G),d.domain([Math.ceil(l[0]),Math.floor(l[1])]),oe.transition().duration(R).call(d),u.transition().duration(R).call(c),h.transition().duration(R).call(a),de.attr("transform","translate(0,"+r.range()[0]+")"),p.scale(r)._ticks(e.utils.calcTicksY(G/36,b)),p.tickSizeInner(-$),f.scale(i)._ticks(e.utils.calcTicksY(G/36,b)),V?f.tickSizeInner(X.length?0:-$,0):f.tickSizeInner(Z.length?0:-$);var m=Z.length?1:0,g=X.length&&!H(X)?1:0,v=V?g:m,_=V?m:g;se.style("opacity",v),ae.style("opacity",_).attr("transform","translate("+t.range()[1]+",0)"),se.transition().duration(R).call(p),ae.transition().duration(R).call(f)}ke.selectAll("rect").attr("height",K),ke.selectAll(".resize").append("path").attr("d",function(e){var t=+("e"==e),n=t?1:-1,r=K/3;return"M"+.5*n+","+r+"A6,6 0 0 "+t+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+t+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}),v.dispatch.on("stateChange",function(e){for(var t in e)j[t]=e[t];P.call("stateChange",this,e),U.update()}),P.on("changeState",function(e){void 0!==e.disabled&&(b.forEach(function(t,n){t.disabled=e.disabled[n]}),j.disabled=e.disabled),U.update()}),Se(event)}),U}return a.dispatch.on("elementMouseover.tooltip",function(e){b.duration(100).valueFormatter(function(e,t){return(V?{main:p,focus:m}:{main:f,focus:g}).main.tickFormat()(e,t)}).data(e).hidden(!1)}),a.dispatch.on("elementMouseout.tooltip",function(e){b.hidden(!0)}),c.dispatch.on("elementMouseover.tooltip",function(e){e.value=U.x()(e.data),e.series={value:U.y()(e.data),color:e.color},b.duration(0).valueFormatter(function(e,t){return(V?{main:f,focus:g}:{main:p,focus:m}).main.tickFormat()(e,t)}).data(e).hidden(!1)}),c.dispatch.on("elementMouseout.tooltip",function(e){b.hidden(!0)}),c.dispatch.on("elementMousemove.tooltip",function(e){b()}),U.dispatch=P,U.legend=v,U.lines=a,U.lines2=l,U.bars=c,U.bars2=u,U.xAxis=d,U.x2Axis=h,U.y1Axis=p,U.y2Axis=f,U.y3Axis=m,U.y4Axis=g,U.tooltip=b,U.options=e.utils.optionsFunc.bind(U),U._options=Object.create({},{width:{get:function(){return x},set:function(e){x=e}},height:{get:function(){return k},set:function(e){k=e}},showLegend:{get:function(){return D},set:function(e){D=e}},brushExtent:{get:function(){return L},set:function(e){L=e}},noData:{get:function(){return N},set:function(e){N=e}},focusEnable:{get:function(){return C},set:function(e){C=e}},focusHeight:{get:function(){return O},set:function(e){O=e}},focusShowAxisX:{get:function(){return I},set:function(e){I=e}},focusShowAxisY:{get:function(){return M},set:function(e){M=e}},legendLeftAxisHint:{get:function(){return B},set:function(e){B=e}},legendRightAxisHint:{get:function(){return Y},set:function(e){Y=e}},margin:{get:function(){return _},set:function(e){void 0!==e.top&&(_.top=e.top,w=e.top),_.right=void 0!==e.right?e.right:_.right,_.bottom=void 0!==e.bottom?e.bottom:_.bottom,_.left=void 0!==e.left?e.left:_.left}},focusMargin:{get:function(){return A},set:function(e){A.top=void 0!==e.top?e.top:A.top,A.right=void 0!==e.right?e.right:A.right,A.bottom=void 0!==e.bottom?e.bottom:A.bottom,A.left=void 0!==e.left?e.left:A.left}},duration:{get:function(){return R},set:function(e){R=e}},color:{get:function(){return T},set:function(t){T=e.utils.getColor(t),v.color(T)}},x:{get:function(){return S},set:function(e){S=e,a.x(e),l.x(e),c.x(e),u.x(e)}},y:{get:function(){return E},set:function(e){E=e,a.y(e),l.y(e),c.y(e),u.y(e)}},switchYAxisOrder:{get:function(){return V},set:function(e){if(V!==e){var t=p;p=f,f=t;var n=m;m=g,g=n}V=e}}}),e.utils.inheritOptions(U,a),e.utils.initOptions(U),U},e.models.multiBar=function(){"use strict";var t,n,r,i,o,s,a,l={top:0,right:0,bottom:0,left:0},c=960,u=500,d=d3.scaleBand(),h=d3.scaleLinear(),p=Math.floor(1e4*Math.random()),f=null,m=function(e){return e.x},g=function(e){return e.y},v=[0],y=!0,b=!1,_=d3.stackOffsetNone,w=e.utils.defaultColor(),A=!1,x=null,k=500,S=.1,E=.75,T=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),D=e.utils.renderWatch(T,k),C=0;function M(I){return D.reset(),I.each(function(M){var I=c-l.left-l.right,O=u-l.top-l.bottom;f=d3.select(this),e.utils.initSVG(f);var L=0;if(A&&M.length&&(A=[{values:M[0].values.map(function(e){return{x:e.x,y:0,series:M[e.seriesIndex],size:.01}})}]),b){var N=M;M.forEach(function(e,t){e.seriesIndex=t,e.values=e.values.map(function(e,n){return e.index=n,e.seriesIndex=t,e})});var P=[];M[0].values.forEach(function(e){P.push({x:e.x})}),M.forEach(function(e,t,n){e.display={y:t,y0:n},e.values.forEach(function(t){P[t.index][e.key]=t.y})});var R=M.map(e=>e.key),j=d3.stack().keys(R).offset(_).value(function(e,t){return e[t]})(!P.length&&A?A:P),F=[];j.forEach(function(e,t){e.seriesIndex=t;var n=[];e.map(function(e,r){return n.push({x:e.data&&e.data.x?e.data.x:r,y:e[1]-e[0],y0:e[0],index:r,series:t,seriesIndex:t,display:{y:e[1]-e[0],y0:e[0]}}),n}),F.push({key:R[t],nonStackable:N[t].nonStackable,values:n})}),F.forEach(function(e,t){e.nonStackable?(M[t].nonStackableSeries=L++,F[t]=M[t]):t>0&&F[t-1].nonStackable&&F[t].values.map(function(e,n){e.y0-=F[t-1].values[n].y,e.y1=e.y0+e.y})}),M=F}M.forEach(function(e,t){e.values.forEach(function(n){n.series=t,n.seriesIndex=t,n.key=e.key})}),b&&M.length>0&&M[0].values.map(function(e,t){var n=0,r=0;M.map(function(e,i){if(!M[i].nonStackable){var o=e.values[t];o.size=Math.abs(o.y),o.y<0?(o.y1=r,r-=o.size):(o.y1=o.size+n,n+=o.size)}})});var B=n&&r?[]:M.map(function(e,t){return e.values.map(function(e,n){return{x:m(e,n),y:g(e,n),y0:e.y0,y1:e.y1,idx:t}})});d.domain(n||d3.merge(B).map(function(e){return e.x})).range(i||[0,I]).paddingInner(S).paddingOuter(S),h.domain(r||d3.extent(d3.merge(B).map(function(e){var t=e.y;return b&&!M[e.idx].nonStackable&&(t=e.y>0?e.y1:e.y1+e.y),t}).concat(v))).range(o||[O,0]),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]-.01*d.domain()[0],d.domain()[1]+.01*d.domain()[1]]):d.domain([-1,1])),h.domain()[0]===h.domain()[1]&&(h.domain()[0]?h.domain([h.domain()[0]+.01*h.domain()[0],h.domain()[1]-.01*h.domain()[1]]):h.domain([-1,1])),s=s||d,a=a||h;var Y=f.selectAll("g.nv-wrap.nv-multibar").data([M]).enter().append("g").attr("class","nvd3 nv-wrap nv-multibar");Y.attr("transform","translate("+l.left+","+l.top+")");var V=Y.append("defs"),H=Y.append("g");H.select("g"),H.append("g").attr("class","nv-groups"),V.append("clipPath").attr("id","nv-edge-clip-"+p).append("rect").attr("width",I).attr("height",O),H.attr("clip-path",y?"url(#nv-edge-clip-"+p+")":"");var U=f.select(".nv-groups").selectAll(".nv-group").data(function(e){return e},function(e,t){return t});U.exit().remove();var z=U.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);z=U.merge(z);var q=D.transition(z.exit().selectAll("rect.nv-bar"),"multibarExit",Math.min(100,k)).attr("y",function(e,t,n){var r=a(0)||0;return b&&M[e.seriesIndex]&&!M[e.seriesIndex].nonStackable&&(r=a(e.y0)),r}).attr("height",0).remove();q.delay&&q.delay(function(e,t){return t*(k/(C+1))-t}),z.attr("class",function(e,t){return"nv-group nv-series-"+t}).classed("hover",function(e){return e.hover}).style("fill",function(e,t){return w(e,t)}).style("stroke",function(e,t){return w(e,t)}),z.style("stroke-opacity",1).style("fill-opacity",E);var W=f.select(".nv-groups").selectAll(".nv-group").selectAll("rect.nv-bar").data(function(e,t){return A&&!M.length?A.values:M[t]?M[t].values:[]});W.exit().remove();var $=W.enter().append("rect").attr("class",function(e,t){return 0>g(e,t)?"nv-bar negative":"nv-bar positive"}).attr("x",function(e,t,n){return b&&!M[e.seriesIndex].nonStackable?0:e.seriesIndex*d.bandwidth()/M.length}).attr("y",function(e,t,n){return a(b&&!M[e.seriesIndex].nonStackable?e.y0:0)||0}).attr("height",0).attr("width",function(e,t,n){return d.bandwidth()/(b&&!M[e.seriesIndex].nonStackable?1:M.length)}).attr("transform",function(e,t){return"translate("+d(m(e,t))+",0)"});($=W.merge($)).style("fill",function(e,t,n){return w(e,e.seriesIndex,t)}).style("stroke",function(e,t,n){return w(e,e.seriesIndex,t)}).on("mouseover",function(e,t,n,r){d3.select(this).classed("hover",!0),setCoordinates(e.pageX,e.pageY),T.call("elementMouseover",this,{data:t,index:t.index,series:M[t.seriesIndex],color:d3.select(this).style("fill")})}).on("mouseout",function(e,t,n,r){d3.select(this).classed("hover",!1),T.call("elementMouseout",this,{data:t,index:t.index,series:M[t.seriesIndex],color:d3.select(this).style("fill")})}).on("mousemove",function(e,t,n,r){T.call("elementMousemove",this,{data:t,index:t.index,series:M[t.seriesIndex],color:d3.select(this).style("fill")})}).on("click",function(e,t,n,r){T.call("elementClick",this,{data:t,index:t.index,series:M[t.seriesIndex],color:d3.select(this).style("fill"),event:e,element:this}),e.stopPropagation()}).on("dblclick",function(e,t,n,r){T.call("elementDblClick",this,{data:t,index:t,index:index,series:M[t.seriesIndex],color:d3.select(this).style("fill")}),e.stopPropagation()}),$.attr("class",function(e,t){return 0>g(e,t)?"nv-bar negative":"nv-bar positive"}).attr("transform",function(e,t){return"translate("+d(m(e,t))+",0)"}),x&&(t||(t=M.map(function(){return!0})),$.style("fill",function(e,n,r){return d3.rgb(x(e,n)).darker(t.map(function(e,t){return t}).filter(function(e,n){return!t[n]})[e.seriesIndex]).toString()}).style("stroke",function(e,n,r){return d3.rgb(x(e,n)).darker(t.map(function(e,t){return t}).filter(function(e,n){return!t[n]})[e.seriesIndex]).toString()}));var G=$.watchTransition(D,"multibar",Math.min(250,k)).delay(function(e,t){return t*k/M[0].values.length});b?G.attr("y",function(e,t,n){return M[e.seriesIndex].nonStackable?0>g(e,t)?h(0):h(0)-h(g(e,t))<-1?h(0)-1:h(g(e,t))||0:h(e.y1)}).attr("height",function(e,t,n){return M[e.seriesIndex].nonStackable?Math.max(Math.abs(h(g(e,t))-h(0)),0)||0:Math.max(Math.abs(h(e.y+e.y0)-h(e.y0)),0)}).attr("x",function(e,t,n){var r=0;return M[e.seriesIndex].nonStackable&&(r=e.seriesIndex*d.bandwidth()/M.length,M.length!==L&&(r=M[e.seriesIndex].nonStackableSeries*d.bandwidth()/(2*L))),r}).attr("width",function(e,t,n){if(!M[e.seriesIndex].nonStackable)return d.bandwidth();var r=d.bandwidth()/L;return M.length!==L&&(r=d.bandwidth()/(2*L)),r}):G.attr("x",function(e,t){return e.seriesIndex*d.bandwidth()/M.length}).attr("width",d.bandwidth()/M.length).attr("y",function(e,t){return 0>g(e,t)?h(0):h(0)-h(g(e,t))<1?h(0)-1:h(g(e,t))||0}).attr("height",function(e,t){return Math.max(Math.abs(h(g(e,t))-h(0)),1)||0}),s=d.copy(),a=h.copy(),M[0]&&M[0].values&&(C=M[0].values.length)}),D.renderEnd("multibar immediate"),M}return M.dispatch=T,M.options=e.utils.optionsFunc.bind(M),M._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},x:{get:function(){return m},set:function(e){m=e}},y:{get:function(){return g},set:function(e){g=e}},xScale:{get:function(){return d},set:function(e){d=e}},yScale:{get:function(){return h},set:function(e){h=e}},xDomain:{get:function(){return n},set:function(e){n=e}},yDomain:{get:function(){return r},set:function(e){r=e}},xRange:{get:function(){return i},set:function(e){i=e}},yRange:{get:function(){return o},set:function(e){o=e}},forceY:{get:function(){return v},set:function(e){v=e}},stacked:{get:function(){return b},set:function(e){b=e}},stackOffset:{get:function(){return _},set:function(e){_=e}},clipEdge:{get:function(){return y},set:function(e){y=e}},disabled:{get:function(){return t},set:function(e){t=e}},id:{get:function(){return p},set:function(e){p=e}},hideable:{get:function(){return A},set:function(e){A=e}},groupSpacing:{get:function(){return S},set:function(e){S=e}},fillOpacity:{get:function(){return E},set:function(e){E=e}},margin:{get:function(){return l},set:function(e){l.top=void 0!==e.top?e.top:l.top,l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},duration:{get:function(){return k},set:function(e){k=e,D.reset(k)}},color:{get:function(){return w},set:function(t){w=e.utils.getColor(t)}},barColor:{get:function(){return x},set:function(t){x=t?e.utils.getColor(t):null}}}),e.utils.initOptions(M),M},e.models.multiBarChart=function(){"use strict";var t,n,r=e.models.multiBar(),i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=e.interactiveGuideline(),a=e.models.legend(),l=e.models.legend(),c=e.models.tooltip(),u={top:30,right:20,bottom:50,left:60},d=null,h=null,p=null,f=e.utils.defaultColor(),m=!0,g={},v=!0,y=null,b=!0,_=!0,w=!1,A=!0,x=!1,k=!1,S=0,E=e.utils.state(),T=null,D=null,C=d3.dispatch("stateChange","changeState","renderEnd"),M=function(){return m?180:0},I=250,O=(d3.transition().duration(I).ease(d3.easeLinear),!1);E.stacked=!1,r.stacked(!1),i.tickPadding(7),i.showMaxMin(!1).tickFormat(function(e){return e}),o.tickFormat(d3.format(",.1f")),c.duration(0).valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),s.tooltip.valueFormatter(function(e,t){return null==e?"N/A":o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),s.tooltip.valueFormatter(function(e,t){return null==e?"N/A":o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),s.tooltip.duration(0).valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),l.updateState(!1);var L=e.utils.renderWatch(C),N=!1;function P(D){return L.reset(),L.models(r),b&&L.models(i),_&&L.models(o),D.each(function(D){var L,R=d3.select(this);e.utils.initSVG(R);var j,F,B=e.utils.availableWidth(h,R,u),Y=e.utils.availableHeight(p,R,u);if(P.update=function(){0===I?R.call(P):R.transition().duration(I).call(P)},P.container=this,E.setter((j=D,function(e){void 0!==e.stacked&&(N=e.stacked),void 0!==e.active&&j.forEach(function(t,n){t.disabled=!e.active[n]})}),P.update).getter((F=D,function(){return{active:F.map(function(e){return!e.disabled}),stacked:N}})).update(),E.disabled=D.map(function(e){return!!e.disabled}),!T)for(L in T={},E)E[L]instanceof Array?T[L]=E[L].slice(0):T[L]=E[L];if(!D||!D.length||!D.filter(function(e){return e.values.length}).length)return e.utils.noData(P,R),P;R.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var V=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([D]).enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend"),H=V.append("g");H.select("g");var U=H.append("g").attr("class","nv-x nv-axis");U=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-x");var z=H.append("g").attr("class","nv-y nv-axis");z=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-y");var q=H.append("g").attr("class","nv-barsWrap");q=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-barsWrap");var W=H.append("g").attr("class","nv-legendWrap");W=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-legendWrap");var $=H.append("g").attr("class","nv-controlsWrap");$=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-controlsWrap");var G=H.append("g").attr("class","nv-interactive");if(G=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-interactive"),v?"bottom"===y?(a.width(B-u.right),W.datum(D).call(a),u.bottom=i.height()+a.height(),Y=e.utils.availableHeight(p,R,u),W.attr("transform","translate(0,"+(Y+i.height())+")")):(a.width(B-M()),W.datum(D).call(a),d||a.height()===u.top||(u.top=a.height(),Y=e.utils.availableHeight(p,R,u)),W.attr("transform","translate("+M()+","+-u.top+")")):W.selectAll("*").remove(),V.attr("transform","translate("+u.left+","+u.top+")"),m){var K=[{key:g.grouped||"Grouped",disabled:r.stacked()},{key:g.stacked||"Stacked",disabled:!r.stacked()}];l.width(M()).color(["#444","#444","#444"]),$.datum(K).attr("transform","translate(0,"+-u.top+")").call(l)}else $.selectAll("*").remove();w&&z.attr("transform","translate("+B+",0)"),r.disabled(D.map(function(e){return e.disabled})).width(B).height(Y).color(D.map(function(e,t){return e.color||f(e,t)}).filter(function(e,t){return!D[t].disabled}));var Z=R.select(".nv-multiBarWithLegend").selectAll(".nv-barsWrap").data([D.filter(function(e){return!e.disabled})]);if((Z=Z.merge(q)).call(r),b){i.scale(t)._ticks(e.utils.calcTicksX(B/100,D)),i.tickSizeInner(-Y),U.attr("transform","translate(0,"+n.range()[0]+")"),U.call(i);var X=U.select("g.nvd3.nv-wrap.nv-axis").selectAll("g");if(X.selectAll("line, text").style("opacity",1),x){var Q=function(e,t){return"translate("+e+","+t+")"};X.selectAll("text").attr("transform",function(e,t,n){return Q(0,n%2==0?5:17)});var J=d3.selectAll(".nv-x.nv-axis .nv-wrap g g text").nodes().length;X.selectAll(".nv-x.nv-axis .nv-axisMaxMin text").attr("transform",function(e,t){return Q(0,0===t||J%2!=0?17:5)})}k&&H.selectAll(".tick text").call(e.utils.wrapTicks,P.xScale().bandwidth()),A&&X.filter(function(e,t){return t%Math.ceil(D[0].values.length/(B/100))!=0}).selectAll("text, line").style("opacity",0),S&&X.selectAll(".tick text").attr("transform","rotate("+S+" 0,0)").style("text-anchor",S>0?"start":"end"),U.selectAll("g.nv-axisMaxMin text").style("opacity",1)}_&&(o.scale(n)._ticks(e.utils.calcTicksY(Y/36,D)),o.tickSizeInner(-B),z.call(o)),O&&(s.width(B).height(Y).margin({left:u.left,top:u.top}).svgContainer(R).xScale(t),G.call(s)),a.dispatch.on("stateChange",function(e){for(var t in e)E[t]=e[t];C.call("stateChange",this,e),P.update()}),l.dispatch.on("legendClick",function(e,t,n){if(t.disabled){switch(K=K.map(function(e){return e.disabled=!0,e}),t.disabled=!1,t.key){case"Grouped":case g.grouped:r.stacked(!1);break;case"Stacked":case g.stacked:r.stacked(!0)}E.stacked=r.stacked(),C.call("stateChange",this,E),P.update()}}),C.on("changeState",function(e){void 0!==e.disabled&&(D.forEach(function(t,n){t.disabled=e.disabled[n]}),E.disabled=e.disabled),void 0!==e.stacked&&(r.stacked(e.stacked),E.stacked=e.stacked,N=e.stacked),P.update()}),O?(s.dispatch.on("elementMousemove",function(e){if(null!=e.pointXValue){var n,r,i,o,a=[];D.filter(function(e,t){return e.seriesIndex=t,!e.disabled}).forEach(function(s,l){r=t.domain().indexOf(e.pointXValue);var c=s.values[r];void 0!==c&&(o=c.x,void 0===n&&(n=c),void 0===i&&(i=e.mouseX),a.push({key:s.key,value:P.y()(c,r),color:f(s,s.seriesIndex),data:s.values[r]}))}),s.tooltip.data({value:o,index:r,series:a})(),s.renderGuideLine(i)}}),s.dispatch.on("elementMouseout",function(e){s.tooltip.hidden(!0)})):(r.dispatch.on("elementMouseover.tooltip",function(e){e.value=P.x()(e.data),e.series={key:e.data.key,value:P.y()(e.data),color:e.color},c.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){c.hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(e){c()}))}),L.renderEnd("multibarchart immediate"),P}return P.dispatch=C,P.multibar=r,P.legend=a,P.controls=l,P.xAxis=i,P.yAxis=o,P.state=E,P.tooltip=c,P.interactiveLayer=s,P.options=e.utils.optionsFunc.bind(P),P._options=Object.create({},{width:{get:function(){return h},set:function(e){h=e}},height:{get:function(){return p},set:function(e){p=e}},showLegend:{get:function(){return v},set:function(e){v=e}},legendPosition:{get:function(){return y},set:function(e){y=e}},showControls:{get:function(){return m},set:function(e){m=e}},controlLabels:{get:function(){return g},set:function(e){g=e}},showXAxis:{get:function(){return b},set:function(e){b=e}},showYAxis:{get:function(){return _},set:function(e){_=e}},defaultState:{get:function(){return T},set:function(e){T=e}},noData:{get:function(){return D},set:function(e){D=e}},reduceXTicks:{get:function(){return A},set:function(e){A=e}},rotateLabels:{get:function(){return S},set:function(e){S=e}},staggerLabels:{get:function(){return x},set:function(e){x=e}},wrapLabels:{get:function(){return k},set:function(e){k=!!e}},margin:{get:function(){return u},set:function(e){void 0!==e.top&&(u.top=e.top,d=e.top),u.right=void 0!==e.right?e.right:u.right,u.bottom=void 0!==e.bottom?e.bottom:u.bottom,u.left=void 0!==e.left?e.left:u.left}},duration:{get:function(){return I},set:function(e){I=e,r.duration(I),i.duration(I),o.duration(I),L.reset(I)}},color:{get:function(){return f},set:function(t){f=e.utils.getColor(t),a.color(f)}},rightAlignYAxis:{get:function(){return w},set:function(e){w=e}},useInteractiveGuideline:{get:function(){return O},set:function(e){O=e}},barColor:{get:function(){return r.barColor},set:function(e){r.barColor(e),a.color(function(e,t){return d3.rgb("#ccc").darker(1.5*t).toString()})}}}),e.utils.inheritOptions(P,r),e.utils.initOptions(P),P},e.models.multiBarHorizontal=function(){"use strict";var t,n,r,i,o,s,a,l={top:0,right:0,bottom:0,left:0},c=960,u=500,d=Math.floor(1e4*Math.random()),h=null,p=d3.scaleBand(),f=d3.scaleLinear(),m=function(e){return e.x},g=function(e){return e.y},v=function(e){return e.yErr},y=[0],b=e.utils.defaultColor(),_=null,w=!1,A=!1,x=60,k=.1,S=.75,E=d3.format(",.2f"),T=250,D=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),C=e.utils.renderWatch(D,T);function M(d){return C.reset(),d.each(function(d){var T=c-l.left-l.right,M=u-l.top-l.bottom;if(h=d3.select(this),e.utils.initSVG(h),w){var I=d;d.forEach(function(e,t){e.seriesIndex=t,e.values=e.values.map(function(e,n){return e.index=n,e.series=t,e.seriesIndex=t,e})});var O=[];d[0].values.forEach(function(e){O.push({x:e.x})}),d.forEach(function(e,t,n){e.display={y:t,y0:n},e.values.forEach(function(t){O[t.index][e.key]=t.y})});var L=d.map(e=>e.key);d=d3.stack().keys(L).offset(d3.stackOffsetNone).value(function(e,t){return e[t]})(O);var N=[];d.forEach(function(e,t){e.seriesIndex=t,e.x=Array.from(Array(e.length).keys());var n=[];e.map(function(e,r){return n.push({label:I[t].values[r].label,x:r,y:e[1]-e[0],y0:e[0],series:t,seriesIndex:t,index:r}),n}),N.push({values:n,key:L[t],seriesIndex:t})}),d=N}d.forEach(function(e,t){e.values.forEach(function(n){n.series=t,n.seriesIndex=t,n.key=e.key})}),w&&d[0].values.map(function(e,t){var n=0,r=0;d.map(function(e){var i=e.values[t];i.size=Math.abs(i.y),i.y<0?(i.y1=r-i.size,r-=i.size):(i.y1=n,n+=i.size)})});var P=i&&o?[]:d.map(function(e){return e.values.map(function(e,t){return{x:m(e,t),y:g(e,t),y0:e.y0,y1:e.y1}})});p.domain(i||d3.merge(P).map(function(e){return e.x})).range(s||[0,M]).paddingInner(k).paddingOuter(k),f.domain(o||d3.extent(d3.merge(P).map(function(e){return w?e.y>0?e.y1+e.y:e.y1:e.y}).concat(y))),A&&!w?f.range(a||[f.domain()[0]<0?x:0,T-(f.domain()[1]>0?x:0)]):f.range(a||[0,T]),t=t||p,n=n||d3.scaleLinear().domain(f.domain()).range([f(0),f(0)]);var R=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([d]).enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal");R.attr("transform","translate("+l.left+","+l.top+")"),R.append("defs");var j=R.append("g");j.select("g"),j.append("g").attr("class","nv-groups");var F=d3.select(this).selectAll("g.nv-groups").selectAll(".nv-group").data(d),B=F.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);F.exit().remove();var Y=F.merge(B);Y.exit().watchTransition(C,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),Y.attr("class",function(e,t){return"nv-group nv-series-"+t}).classed("hover",function(e){return e.hover}).style("fill",function(e,t){return b(e,t)}).style("stroke",function(e,t){return b(e,t)}),Y.watchTransition(C,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",S);var V=Y.selectAll("g.nv-bar").data(function(e){return e.values});V.exit().remove();var H=V.enter().append("g").attr("transform",function(e,t,r){var i=r.indexOf(this);return"translate("+n(w?e.y0:0)+","+(w?0:i*p.bandwidth()/d.length+p(m(e,t)))+")"});(V=V.merge(H)).select("rect").remove(),V.append("rect").attr("width",0).attr("height",p.bandwidth()/(w?1:d.length)),V.on("mouseover",function(e,t,n){d3.select(this).classed("hover",!0),setCoordinates(e.pageX,e.pageY),D.call("elementMouseover",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1),D.call("elementMouseout",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("mouseout",function(e,t,n){D.call("elementMouseout",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("mousemove",function(e,t,n){D.call("elementMousemove",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("click",function(e,t,n){D.call("elementClick",this,{data:t,index:t.index,color:d3.select(this).style("fill"),event:e,element:this}),e.stopPropagation()}).on("dblclick",function(e,t,n){D.call("elementDblClick",this,{data:t,index:t.index,color:d3.select(this).style("fill")}),e.stopPropagation()}),v(d[0],0)&&(H.append("polyline"),V.select("polyline").attr("fill","none").attr("points",function(e,t){var n=v(e,t),r=.8*p.bandwidth()/(2*(w?1:d.length));return[[(n=(n=n.length?n:[-Math.abs(n),Math.abs(n)]).map(function(n){return f(n+(0>g(e,t)?0:g(e,t)))-f(0)}))[0],-r],[n[0],r],[n[0],0],[n[1],0],[n[1],-r],[n[1],r]].map(function(e){return e.join(",")}).join(" ")}).attr("transform",function(e,t){return"translate(0, "+p.bandwidth()/(2*(w?1:d.length))+")"})),H.append("text"),A&&!w?(V.select("text").attr("text-anchor",function(e,t){return 0>g(e,t)?"end":"start"}).attr("y",p.bandwidth()/(2*d.length)).attr("dy",".32em").text(function(e,t){var n=E(g(e,t)).replace(/\.0+%$/,"%"),r=v(e,t);return void 0===r?n:r.length?n+"+"+E(Math.abs(r[1]))+"-"+E(Math.abs(r[0])):n+"\xb1"+E(Math.abs(r))}),V.watchTransition(C,"multibarhorizontal: bars").select("text").attr("x",function(e,t){return 0>g(e,t)?-4:f(g(e,t))-f(0)+4})):V.selectAll("text").text(""),V.selectAll("text.nv-bar-label").text(""),V.attr("class",function(e,t){return 0>g(e,t)?"nv-bar negative":"nv-bar positive"}),_&&(r||(r=d.map(function(){return!0})),V.style("fill",function(e,t,n){return d3.rgb(_(e,t)).darker(r.map(function(e,t){return t}).filter(function(e,t){return!r[t]})[n]).toString()}).style("stroke",function(e,t,n){return d3.rgb(_(e,t)).darker(r.map(function(e,t){return t}).filter(function(e,t){return!r[t]})[n]).toString()})),w?V.watchTransition(C,"multibarhorizontal: bars").attr("transform",function(e,t){return"translate("+f(e.y1)+","+p(m(e,t))+")"}).select("rect").attr("width",function(e,t){return Math.abs(f(g(e,t)+e.y0)-f(e.y0))||0}).attr("height",p.bandwidth()):V.watchTransition(C,"multibarhorizontal: bars").attr("transform",function(e,t){return"translate("+(0>g(e,t)?f(g(e,t)):f(0))+","+(e.series*p.bandwidth()/d.length+p(m(e,t)))+")"}).select("rect").attr("height",p.bandwidth()/d.length).attr("width",function(e,t){return Math.max(Math.abs(f(g(e,t))-f(0)),1)||0}),t=p.copy(),n=f.copy()}),C.renderEnd("multibarHorizontal immediate"),M}return M.dispatch=D,M.options=e.utils.optionsFunc.bind(M),M._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},x:{get:function(){return m},set:function(e){m=e}},y:{get:function(){return g},set:function(e){g=e}},yErr:{get:function(){return v},set:function(e){v=e}},xScale:{get:function(){return p},set:function(e){p=e}},yScale:{get:function(){return f},set:function(e){f=e}},xDomain:{get:function(){return i},set:function(e){i=e}},yDomain:{get:function(){return o},set:function(e){o=e}},xRange:{get:function(){return s},set:function(e){s=e}},yRange:{get:function(){return a},set:function(e){a=e}},forceY:{get:function(){return y},set:function(e){y=e}},stacked:{get:function(){return w},set:function(e){w=e}},showValues:{get:function(){return A},set:function(e){A=e}},disabled:{get:function(){return r},set:function(e){r=e}},id:{get:function(){return d},set:function(e){d=e}},valueFormat:{get:function(){return E},set:function(e){E=e}},valuePadding:{get:function(){return x},set:function(e){x=e}},groupSpacing:{get:function(){return k},set:function(e){k=e}},fillOpacity:{get:function(){return S},set:function(e){S=e}},margin:{get:function(){return l},set:function(e){l.top=void 0!==e.top?e.top:l.top,l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},duration:{get:function(){return T},set:function(e){T=e,C.reset(T)}},color:{get:function(){return b},set:function(t){b=e.utils.getColor(t)}},barColor:{get:function(){return _},set:function(t){_=t?e.utils.getColor(t):null}}}),e.utils.initOptions(M),M},e.models.multiBarHorizontalChart=function(){"use strict";var t,n,r=e.models.multiBarHorizontal(),i=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),o=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),s=e.models.legend().height(30),a=e.models.legend().height(30),l=e.models.tooltip(),c={top:30,right:20,bottom:50,left:60},u=null,d=null,h=null,p=e.utils.defaultColor(),f=!0,m="top",g={},v=!0,y="top",b=!0,_=!0,w=!1,A=e.utils.state(),x=null,k=null,S=d3.dispatch("stateChange","changeState","renderEnd"),E=function(){return f?180:0},T=250;A.stacked=!1,r.stacked(w),i.tickPadding(5),i.showMaxMin(!1).tickFormat(function(e){return e}),o.tickFormat(d3.format(",.1f")),l.duration(0).valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),a.updateState(!1);var D=e.utils.renderWatch(S,T);function C(l){return D.reset(),D.models(r),b&&D.models(i),_&&D.models(o),l.each(function(l){var k,D=d3.select(this);e.utils.initSVG(D);var M,I,O=e.utils.availableWidth(d,D,c),L=e.utils.availableHeight(h,D,c);if(C.update=function(){D.transition().duration(T).call(C)},C.container=this,w=r.stacked(),A.setter((M=l,function(e){void 0!==e.stacked&&(w=e.stacked),void 0!==e.active&&M.forEach(function(t,n){t.disabled=!e.active[n]})}),C.update).getter((I=l,function(){return{active:I.map(function(e){return!e.disabled}),stacked:w}})).update(),A.disabled=l.map(function(e){return!!e.disabled}),!x)for(k in x={},A)A[k]instanceof Array?x[k]=A[k].slice(0):x[k]=A[k];if(!l||!l.length||!l.filter(function(e){return e.values.length}).length)return e.utils.noData(C,D),C;D.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale().clamp(!0);var N=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").data([l]).enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarHorizontalChart"),P=N.append("g");P.select("g");var R=P.append("g").attr("class","nv-x nv-axis");R=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-x");var j=P.append("g").attr("class","nv-y nv-axis"),F=j.append("g").attr("class","nv-zeroLine").append("line");j=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-y"),F=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart.nv-zeroLine").select("line");var B=P.append("g").attr("class","nv-barsWrap");B=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-barsWrap");var Y=P.append("g").attr("class","nv-legendWrap");Y=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-legendWrap");var V=P.append("g").attr("class","nv-controlsWrap");if(B=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-controlsWrap"),v?(s.width(O-E()),Y.datum(l).call(s),"bottom"===y?(c.bottom=i.height()+s.height(),L=e.utils.availableHeight(h,D,c),Y.attr("transform","translate("+E()+","+(L+i.height())+")")):"top"===y&&(u||s.height()===c.top||(c.top=s.height(),L=e.utils.availableHeight(h,D,c)),Y.attr("transform","translate("+E()+","+-c.top+")"))):Y.selectAll("*").remove(),N.attr("transform","translate("+c.left+","+c.top+")"),f){var H=[{key:g.grouped||"Grouped",disabled:r.stacked()},{key:g.stacked||"Stacked",disabled:!r.stacked()}];a.width(E()).color(["#444","#444","#444"]),"bottom"===m?(c.bottom=i.height()+s.height(),L=e.utils.availableHeight(h,D,c),V.datum(H).attr("transform","translate(0,"+(L+i.height())+")").call(a)):"top"===m&&V.datum(H).attr("transform","translate(0,"+-c.top+")").call(a)}else V.selectAll("*").remove();r.disabled(l.map(function(e){return e.disabled})).width(O).height(L).color(l.map(function(e,t){return e.color||p(e,t)}).filter(function(e,t){return!l[t].disabled})),(B=D.select(".nv-multiBarHorizontalChart").selectAll(".nv-barsWrap").data([l.filter(function(e){return!e.disabled})]).merge(B)).transition().call(r),b&&(i.scale(t)._ticks(e.utils.calcTicksY(L/24,l)),i.tickSizeInner(-O),R.call(i),R.select("g.nvd3.nv-wrap.nv-axis").selectAll("g").selectAll("line, text")),_&&(o.scale(n)._ticks(e.utils.calcTicksX(O/100,l)),o.tickSizeInner(-L),j.attr("transform","translate(0,"+L+")"),j.call(o)),F.attr("x1",n(0)).attr("x2",n(0)).attr("y1",0).attr("y2",-L),s.dispatch.on("stateChange",function(e){for(var t in e)A[t]=e[t];S.call("stateChange",this,e),C.update()}),a.dispatch.on("legendClick",function(e,t,n){if(t.disabled){switch(H=H.map(function(e){return e.disabled=!0,e}),t.disabled=!1,t.key){case"Grouped":case g.grouped:r.stacked(!1);break;case"Stacked":case g.stacked:r.stacked(!0)}A.stacked=r.stacked(),S.call("stateChange",this,A),w=r.stacked(),C.update()}}),S.on("changeState",function(e){void 0!==e.disabled&&(l.forEach(function(t,n){t.disabled=e.disabled[n]}),A.disabled=e.disabled),void 0!==e.stacked&&(r.stacked(e.stacked),A.stacked=e.stacked,w=e.stacked),C.update()})}),D.renderEnd("multibar horizontal chart immediate"),C}return r.dispatch.on("elementMouseover.tooltip",function(e){e.value=C.x()(e.data),e.series={key:e.data.key,value:C.y()(e.data),color:e.color},l.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){l.hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(e){l()}),C.dispatch=S,C.multibar=r,C.legend=s,C.controls=a,C.xAxis=i,C.yAxis=o,C.state=A,C.tooltip=l,C.options=e.utils.optionsFunc.bind(C),C._options=Object.create({},{width:{get:function(){return d},set:function(e){d=e}},height:{get:function(){return h},set:function(e){h=e}},showLegend:{get:function(){return v},set:function(e){v=e}},legendPosition:{get:function(){return y},set:function(e){y=e}},controlsPosition:{get:function(){return m},set:function(e){m=e}},showControls:{get:function(){return f},set:function(e){f=e}},controlLabels:{get:function(){return g},set:function(e){g=e}},showXAxis:{get:function(){return b},set:function(e){b=e}},showYAxis:{get:function(){return _},set:function(e){_=e}},defaultState:{get:function(){return x},set:function(e){x=e}},noData:{get:function(){return k},set:function(e){k=e}},margin:{get:function(){return c},set:function(e){void 0!==e.top&&(c.top=e.top,u=e.top),c.right=void 0!==e.right?e.right:c.right,c.bottom=void 0!==e.bottom?e.bottom:c.bottom,c.left=void 0!==e.left?e.left:c.left}},duration:{get:function(){return T},set:function(e){T=e,D.reset(T),r.duration(T),i.duration(T),o.duration(T)}},color:{get:function(){return p},set:function(t){p=e.utils.getColor(t),s.color(p)}},barColor:{get:function(){return r.barColor},set:function(e){r.barColor(e),s.color(function(e,t){return d3.rgb("#ccc").darker(1.5*t).toString()})}}}),e.utils.inheritOptions(C,r),e.utils.initOptions(C),C},e.models.multiChart=function(){"use strict";var t,n,r={top:30,right:20,bottom:50,left:60},i=null,o=e.utils.defaultColor(),s=null,a=null,l=!0,c=null,u=function(e){return e.x},d=function(e){return e.y},h=getInterpolationType(h),p=!0,f=e.interactiveGuideline(),m=!1,g=" (right axis)",v=250,y=d3.scaleLinear(),b=d3.scaleLinear(),_=d3.scaleLinear(),w=e.models.line().yScale(b).duration(v),A=e.models.line().yScale(_).duration(v),x=e.models.scatter().yScale(b).duration(v),k=e.models.scatter().yScale(_).duration(v),S=e.models.multiBar().stacked(!1).yScale(b).duration(v),E=e.models.multiBar().stacked(!1).yScale(_).duration(v),T=e.models.stackedArea().yScale(b).duration(v),D=e.models.stackedArea().yScale(_).duration(v),C=e.models.axis(d3.axisBottom(y),"bottom").tickPadding(5).duration(v),M=e.models.axis(d3.axisLeft(b),"left").duration(v),I=e.models.axis(d3.axisRight(_),"right").duration(v),O=e.models.legend().height(30),L=e.models.tooltip(),N=d3.dispatch(),P=[w,A,x,k,S,E,T,D];function R(c){return c.each(function(c){var p=d3.select(this);e.utils.initSVG(p),R.update=function(){p.call(R)},R.container=this;var v=e.utils.availableWidth(s,p,r),j=e.utils.availableHeight(a,p,r),F=c.filter(function(e){return"line"==e.type&&1==e.yAxis}),B=c.filter(function(e){return"line"==e.type&&2==e.yAxis}),Y=c.filter(function(e){return"scatter"==e.type&&1==e.yAxis}),V=c.filter(function(e){return"scatter"==e.type&&2==e.yAxis}),H=c.filter(function(e){return"bar"==e.type&&1==e.yAxis}),U=c.filter(function(e){return"bar"==e.type&&2==e.yAxis}),z=c.filter(function(e){return"area"==e.type&&1==e.yAxis}),q=c.filter(function(e){return"area"==e.type&&2==e.yAxis});if(!c||!c.length||!c.filter(function(e){return e.values.length}).length)return e.utils.noData(R,p),R;p.selectAll(".nv-noData").remove();var W=c.filter(function(e){return!e.disabled&&1==e.yAxis}).map(function(e){return e.values.map(function(e,t){return{x:u(e),y:d(e)}})}),$=c.filter(function(e){return!e.disabled&&2==e.yAxis}).map(function(e){return e.values.map(function(e,t){return{x:u(e),y:d(e)}})});y.domain(d3.extent(d3.merge(W.concat($)),function(e){return e.x})).range([0,v]);var G=p.selectAll("g.wrap.multiChart").data([c]),K=G.enter().append("g").attr("class","wrap nvd3 multiChart"),Z=K.append("g"),X=Z.append("g").attr("class","nv-x nv-axis");X=p.selectAll("g.wrap.multiChart").select(".nv-x");var Q=Z.append("g").attr("class","nv-y1 nv-axis"),J=Z.append("g").attr("class","nv-y2 nv-axis"),ee=Z.append("g").attr("class","stack1Wrap"),te=Z.append("g").attr("class","stack2Wrap"),ne=Z.append("g").attr("class","bars1Wrap"),re=Z.append("g").attr("class","bars2Wrap"),ie=Z.append("g").attr("class","scatters1Wrap"),oe=Z.append("g").attr("class","scatters2Wrap"),se=Z.append("g").attr("class","lines1Wrap"),ae=Z.append("g").attr("class","lines2Wrap"),le=Z.append("g").attr("class","legendWrap"),ce=Z.append("g").attr("class","nv-interactive");le=p.selectAll("g.wrap.nv-multiChart").select(".nv-legendWrap"),G.select("g");var ue=c.map(function(e,t){return c[t].color||o(e,t)});if(l){var de=O.align()?v/2:v,he=O.align()?de:0;O.width(de),O.color(ue),le.datum(c.map(function(e){return e.originalKey=void 0===e.originalKey?e.key:e.originalKey,e.key=e.originalKey+(1==e.yAxis?"":g),e})).call(O),i||O.height()===r.top||(r.top=O.height(),j=e.utils.availableHeight(a,p,r)),le.attr("transform","translate("+he+","+-r.top+")")}else le.selectAll("*").remove();K.attr("transform","translate("+r.left+","+r.top+")"),w.width(v).height(j).interpolate(h).color(ue.filter(function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"line"==c[t].type})),A.width(v).height(j).interpolate(h).color(ue.filter(function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"line"==c[t].type})),x.width(v).height(j).color(ue.filter(function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"scatter"==c[t].type})),k.width(v).height(j).color(ue.filter(function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"scatter"==c[t].type})),S.width(v).height(j).color(ue.filter(function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"bar"==c[t].type})),E.width(v).height(j).color(ue.filter(function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"bar"==c[t].type})),T.width(v).height(j).interpolate(h).color(ue.filter(function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"area"==c[t].type})),D.width(v).height(j).interpolate(h).color(ue.filter(function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"area"==c[t].type})),se.datum(F.filter(function(e){return!e.disabled})),ie.datum(Y.filter(function(e){return!e.disabled})),ne.datum(H.filter(function(e){return!e.disabled})),ee.datum(z.filter(function(e){return!e.disabled})),ae.datum(B.filter(function(e){return!e.disabled})),oe.datum(V.filter(function(e){return!e.disabled})),re.datum(U.filter(function(e){return!e.disabled})),te.datum(q.filter(function(e){return!e.disabled}));var pe=[];if(S.stacked()&&H.length){pe=H.filter(function(e){return!e.disabled}).map(function(e){return e.values});pe.length>0&&(pe=pe.reduce(function(e,t){return e.map(function(e,n){return{x:e.x,y:e.y+t[n].y}})}))}H.length&&pe.push({x:0,y:0});var fe=[];if(E.stacked()&&U.length){fe=U.filter(function(e){return!e.disabled}).map(function(e){return e.values});fe.length>0&&(fe=fe.reduce(function(e,t){return e.map(function(e,n){return{x:e.x,y:e.y+t[n].y}})}))}function me(e){return d3.transpose(e).map(function(e){return e.map(function(e){return e.y})}).map(function(e){return d3.sum(e)})}if(U.length&&fe.push({x:0,y:0}),b.domain(t||d3.extent(d3.merge(W).concat(pe),function(e){return e.y})).range([0,j]),_.domain(n||d3.extent(d3.merge($).concat(fe),function(e){return e.y})).range([0,j]),w.yDomain(b.domain()),x.yDomain(b.domain()),S.stacked()){var ge=b.domain([0,d3.max(me(W))]).range([0,j]);S.yDomain(ge.domain())}else S.yDomain(b.domain());if(T.yDomain(b.domain()),A.yDomain(_.domain()),k.yDomain(_.domain()),E.stacked()){var ve=_.domain([0,d3.max(me($))]).range([0,j]);E.yDomain(ve.domain())}else E.yDomain(_.domain());function ye(e){var t=2===e.series.yAxis?I:M;e.value=e.point.x,e.series={value:e.point.y,color:e.point.color,key:e.series.key},L.duration(0).headerFormatter(function(e,t){return C.tickFormat()(e,t)}).valueFormatter(function(e,n){return t.tickFormat()(e,n)}).data(e).hidden(!1)}function be(e){var t=2===e.series.yAxis?I:M;e.value=e.point.x,e.series={value:e.point.y,color:e.point.color,key:e.series.key},L.duration(100).headerFormatter(function(e,t){return C.tickFormat()(e,t)}).valueFormatter(function(e,n){return t.tickFormat()(e,n)}).data(e).hidden(!1)}function _e(e){var t=2===e.series.yAxis?I:M;e.point.x=T.x()(e.point),e.point.y=T.y()(e.point),L.duration(0).headerFormatter(function(e,t){return C.tickFormat()(e,t)}).valueFormatter(function(e,n){return t.tickFormat()(e,n)}).data(e).hidden(!1)}function we(e){var t=2===e.series.yAxis?I:M;e.value=S.x()(e.data),e.series={value:S.y()(e.data),color:e.color,key:e.data.key},L.duration(0).headerFormatter(function(e,t){return C.tickFormat()(e,t)}).valueFormatter(function(e,n){return t.tickFormat()(e,n)}).data(e).hidden(!1)}function Ae(){for(var e=0,t=P.length;e<t;e++){var n=P[e];try{n.clearHighlights()}catch(e){}}}D.yDomain(_.domain()),z.length&&ee.transition().call(T),q.length&&te.transition().call(D),H.length&&ne.transition().call(S),U.length&&re.transition().call(E),F.length&&se.transition().call(w),B.length&&ae.transition().call(A),Y.length&&ie.transition().call(x),V.length&&oe.transition().call(k),C._ticks(e.utils.calcTicksX(v/100,c)),C.tickSizeInner(-j),X.attr("transform","translate(0,"+j+")"),X.transition().call(C),M._ticks(e.utils.calcTicksY(j/36,c)),M.tickSizeInner(-v),Q.transition().call(M),I._ticks(e.utils.calcTicksY(j/36,c)),I.tickSizeInner(-v),J.transition().call(I),Q.classed("nv-disabled",!W.length).attr("transform","translate("+y.range()[0]+",0)"),J.classed("nv-disabled",!$.length).attr("transform","translate("+y.range()[1]+",0)"),O.dispatch.on("stateChange",function(e){N.call("stateChange",this,e),R.update()}),m&&(f.width(v).height(j).margin({left:r.left,top:r.top}).svgContainer(p).xScale(y),ce.call(f)),m?(f.dispatch.on("elementMousemove",function(t){Ae();var n,r,i,s=[];c.filter(function(e,t){return e.seriesIndex=t,!e.disabled}).forEach(function(a,l){var c=y.domain(),u=a.values.filter(function(e,t){return R.x()(e,t)>=c[0]&&R.x()(e,t)<=c[1]}),d=u[r=e.interactiveBisect(u,t.pointXValue,R.x())],h=R.y()(d,r);null===h||isNaN(h)||a.noHighlightSeries||function(e,t,n){var r={line:{yAxis1:{chart:w,data:F},yAxis2:{chart:A,data:B}},scatter:{yAxis1:{chart:x,data:Y},yAxis2:{chart:k,data:V}},bar:{yAxis1:{chart:S,data:H},yAxis2:{chart:E,data:U}},area:{yAxis1:{chart:T,data:z},yAxis2:{chart:D,data:q}}},i=r[e.type]["yAxis"+e.yAxis].chart,o=r[e.type]["yAxis"+e.yAxis].data.reduce(function(t,n,r){return n.key===e.key?r:t},0);try{i.highlightPoint(o,t,n,void 0)}catch(e){}}(a,r,!0),void 0!==d&&(void 0===n&&(n=d),void 0===i&&(i=y(R.x()(d,r))),s.push({key:a.key,value:h,color:o(a,a.seriesIndex),data:d,yAxis:2==a.yAxis?I:M}))});f.tooltip.headerFormatter(function(e,t){return C.tickFormat()(e,t)}).valueFormatter(f.tooltip.valueFormatter()||function(e,t){var n=s[t].yAxis;return null==e?"N/A":n.tickFormat()(e)}).data({value:R.x()(n,r),index:r,series:s})(),f.renderGuideLine(i)}),f.dispatch.on("elementMouseout",function(e){Ae()})):(w.dispatch.on("elementMouseover.tooltip",ye),A.dispatch.on("elementMouseover.tooltip",ye),w.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),A.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),x.dispatch.on("elementMouseover.tooltip",be),k.dispatch.on("elementMouseover.tooltip",be),x.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),k.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),T.dispatch.on("elementMouseover.tooltip",_e),D.dispatch.on("elementMouseover.tooltip",_e),T.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),D.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),S.dispatch.on("elementMouseover.tooltip",we),E.dispatch.on("elementMouseover.tooltip",we),S.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),E.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),S.dispatch.on("elementMousemove.tooltip",function(e){L()}),E.dispatch.on("elementMousemove.tooltip",function(e){L()}))}),R}return R.dispatch=N,R.legend=O,R.lines1=w,R.lines2=A,R.scatters1=x,R.scatters2=k,R.bars1=S,R.bars2=E,R.stack1=T,R.stack2=D,R.xAxis=C,R.yAxis1=M,R.yAxis2=I,R.tooltip=L,R.interactiveLayer=f,R.options=e.utils.optionsFunc.bind(R),R._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},showLegend:{get:function(){return l},set:function(e){l=e}},xScale:{get:function(){return y},set:function(e){y=e,C.scale(y)}},yDomain1:{get:function(){return t},set:function(e){t=e}},yDomain2:{get:function(){return n},set:function(e){n=e}},noData:{get:function(){return c},set:function(e){c=e}},interpolate:{get:function(){return h},set:function(e){h=e}},legendRightAxisHint:{get:function(){return g},set:function(e){g=e}},margin:{get:function(){return r},set:function(e){void 0!==e.top&&(r.top=e.top,i=e.top),r.right=void 0!==e.right?e.right:r.right,r.bottom=void 0!==e.bottom?e.bottom:r.bottom,r.left=void 0!==e.left?e.left:r.left}},color:{get:function(){return o},set:function(t){o=e.utils.getColor(t)}},x:{get:function(){return u},set:function(e){u=e,w.x(e),A.x(e),x.x(e),k.x(e),S.x(e),E.x(e),T.x(e),D.x(e)}},y:{get:function(){return d},set:function(e){d=e,w.y(e),A.y(e),x.y(e),k.y(e),T.y(e),D.y(e),S.y(e),E.y(e)}},useVoronoi:{get:function(){return p},set:function(e){p=e,w.useVoronoi(e),A.useVoronoi(e),T.useVoronoi(e),D.useVoronoi(e)}},useInteractiveGuideline:{get:function(){return m},set:function(e){(m=e)&&(w.interactive(!1),w.useVoronoi(!1),A.interactive(!1),A.useVoronoi(!1),T.interactive(!1),T.useVoronoi(!1),D.interactive(!1),D.useVoronoi(!1),x.interactive(!1),k.interactive(!1))}},duration:{get:function(){return v},set:function(e){v=e,[w,A,T,D,x,k,C,M,I].forEach(function(e){e.duration(v)})}}}),e.utils.initOptions(R),R},e.models.ohlcBar=function(){"use strict";var t,n,r,i,o={top:0,right:0,bottom:0,left:0},s=null,a=null,l=Math.floor(1e4*Math.random()),c=null,u=d3.scaleLinear(),d=d3.scaleLinear(),h=function(e){return e.x},p=function(e){return e.y},f=function(e){return e.open},m=function(e){return e.close},g=function(e){return e.high},v=function(e){return e.low},y=[],b=[],_=!1,w=!0,A=e.utils.defaultColor(),x=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function S(x){return x.each(function(x){c=d3.select(this);var S=e.utils.availableWidth(s,c,o),E=e.utils.availableHeight(a,c,o);e.utils.initSVG(c);var T=S/x[0].values.length*.9;u.domain(t||d3.extent(x[0].values.map(h).concat(y))),_?u.range(r||[.5*S/x[0].values.length,S*(x[0].values.length-.5)/x[0].values.length]):u.range(r||[5+T/2,S-T/2-5]),d.domain(n||[d3.min(x[0].values.map(v).concat(b)),d3.max(x[0].values.map(g).concat(b))]).range(i||[E,0]),u.domain()[0]===u.domain()[1]&&(u.domain()[0]?u.domain([u.domain()[0]-.01*u.domain()[0],u.domain()[1]+.01*u.domain()[1]]):u.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var D=d3.select(this).selectAll("g.nv-wrap.nv-ohlcBar").data([x[0].values]).enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar");D.attr("transform","translate("+o.left+","+o.top+")");var C=D.append("defs"),M=D.append("g");M.select("g");var I=M.append("g").attr("class","nv-ticks");c.on("click",function(e,t,n){k.call("chartClick",this,{data:t,index:t.index,pos:e,id:l})}),C.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect").attr("width",S).attr("height",E),M.attr("clip-path",w?"url(#nv-chart-clip-path-"+l+")":"");var O=I.selectAll(".nv-tick").data(function(e){return e});O.exit().remove(),O.enter().append("path").attr("class",function(e,t,n){return(f(e,t)>m(e,t)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+t}).attr("d",function(e,t){return"m0,0l0,"+(d(f(e,t))-d(g(e,t)))+"l"+-T/2+",0l"+T/2+",0l0,"+(d(v(e,t))-d(f(e,t)))+"l0,"+(d(m(e,t))-d(v(e,t)))+"l"+T/2+",0l"+-T/2+",0z"}).attr("transform",function(e,t){return"translate("+u(h(e,t))+","+d(g(e,t))+")"}).attr("fill",function(e,t){return A[0]}).attr("stroke",function(e,t){return A[0]}).attr("x",0).attr("y",function(e,t){return d(Math.max(0,p(e,t)))}).attr("height",function(e,t){return Math.abs(d(p(e,t))-d(0))}),O.attr("class",function(e,t,n){return(f(e,t)>m(e,t)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+t}),O.transition().duration(0).attr("transform",function(e,t){return"translate("+u(h(e,t))+","+d(g(e,t))+")"}).attr("d",function(e,t){var n=S/x[0].values.length*.9;return"m0,0l0,"+(d(f(e,t))-d(g(e,t)))+"l"+-n/2+",0l"+n/2+",0l0,"+(d(v(e,t))-d(f(e,t)))+"l0,"+(d(m(e,t))-d(v(e,t)))+"l"+n/2+",0l"+-n/2+",0z"})}),S}return S.highlightPoint=function(e,t){S.clearHighlights(),c.select(".nv-ohlcBar .nv-tick-0-"+e).classed("hover",t)},S.clearHighlights=function(){c.select(".nv-ohlcBar .nv-tick.hover").classed("hover",!1)},S.dispatch=k,S.options=e.utils.optionsFunc.bind(S),S._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},xScale:{get:function(){return u},set:function(e){u=e}},yScale:{get:function(){return d},set:function(e){d=e}},xDomain:{get:function(){return t},set:function(e){t=e}},yDomain:{get:function(){return n},set:function(e){n=e}},xRange:{get:function(){return r},set:function(e){r=e}},yRange:{get:function(){return i},set:function(e){i=e}},forceX:{get:function(){return y},set:function(e){y=e}},forceY:{get:function(){return b},set:function(e){b=e}},padData:{get:function(){return _},set:function(e){_=e}},clipEdge:{get:function(){return w},set:function(e){w=e}},id:{get:function(){return l},set:function(e){l=e}},interactive:{get:function(){return x},set:function(e){x=e}},x:{get:function(){return h},set:function(e){h=e}},y:{get:function(){return p},set:function(e){p=e}},open:{get:function(){return f()},set:function(e){f=e}},close:{get:function(){return m()},set:function(e){m=e}},high:{get:function(){return g},set:function(e){g=e}},low:{get:function(){return v},set:function(e){v=e}},margin:{get:function(){return o},set:function(e){o.top=null!=e.top?e.top:o.top,o.right=null!=e.right?e.right:o.right,o.bottom=null!=e.bottom?e.bottom:o.bottom,o.left=null!=e.left?e.left:o.left}},color:{get:function(){return A},set:function(t){A=e.utils.getColor(t)}}}),e.utils.initOptions(S),S},e.models.parallelCoordinates=function(){"use strict";var t,n,r,i={top:30,right:0,bottom:10,left:0},o=null,s=null,a=null,l=null,c=d3.scalePoint(),u={},d="undefined values",h=[],p=[],f=[],m=!0,g=e.utils.defaultColor(),v=[],y=[],b=[],_=[],w=1,A=d3.line(),x=d3.axisLeft(d3.scaleLinear()),k=d3.dispatch("start","brush","end","dimensionsOrder","stateChange","elementClick","elementMouseover","elementMouseout","elementMousemove","renderEnd","activeChanged"),S=e.utils.renderWatch(k);function E(T){return S.reset(),T.each(function(S){var E,T,D=d3.select(this);if(a=e.utils.availableWidth(o,D,i),l=e.utils.availableHeight(s,D,i),e.utils.initSVG(D),void 0===S[0].values){var C=[];S.forEach(function(e){var t={};Object.keys(e).forEach(function(n){"name"!==n&&(t[n]=e[n])}),C.push({key:e.name,values:t})}),S=C}var M=S.map(function(e){return e.values});0===y.length&&(y=S),f=h.sort(function(e,t){return e.currentPosition-t.currentPosition}).map(function(e){return e.key}),p=h.filter(function(e){return!e.disabled}),c.range([0,a],1).domain(p.map(function(e){return e.key}));var I={},O=!1,L=[];f.forEach(function(e){var t=d3.extent(M,function(t){return+t[e]}),n=t[0],r=t[1],i=!1;(isNaN(n)||isNaN(r))&&(i=!0,n=0,r=0),n===r&&(n-=1,r+=1);var o=v.filter(function(t){return t.dimension==e});0!==o.length&&(i?(n=u[e].domain()[0],r=u[e].domain()[1]):!o[0].hasOnlyNaN&&m?(n=n>o[0].extent[0]?o[0].extent[0]:n,r=r<o[0].extent[1]?o[0].extent[1]:r):o[0].hasNaN&&(r=r<o[0].extent[1]?o[0].extent[1]:r,I[e]=u[e].domain()[1],O=!0)),u[e]=d3.scaleLinear().domain([n,r]).range([.9*(l-12),0]),_=[],u[e].brush=d3.brush().on("start",K).on("brush",Z).on("end",X)});var N=D.selectAll("g.nv-wrap.nv-parallelCoordinates").data([S]).enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinates");N.attr("transform","translate("+i.left+","+i.top+")");var P=N.append("g"),R=N.select("g"),j=P.append("g").attr("class","nv-parallelCoordinates background"),F=P.append("g").attr("class","nv-parallelCoordinates foreground"),B=P.append("g").attr("class","nv-parallelCoordinates missingValuesline");A.curve(d3.curveCardinal.tension(w));var Y=d3.drag().on("start",function(e){b[e.key]=this.parentNode.__origin__=c(e.key),n.attr("visibility","hidden")}).on("drag",function(e,n){b[n.key]=Math.min(a,Math.max(0,this.parentNode.__origin__+=e.x)),t.attr("d",$),p.sort(function(e,t){return J(e.key)-J(t.key)}),p.forEach(function(e,t){return e.currentPosition=t}),c.domain(p.map(function(e){return e.key})),r.attr("transform",function(e){return"translate("+J(e.key)+")"})}).on("end",function(e,r){delete this.parentNode.__origin__,delete b[e.key],d3.select(this.parentNode).attr("transform","translate("+c(e.key)+")"),t.attr("d",$),n.attr("d",$).attr("visibility",null),k.call("dimensionsOrder",this,p)}),V=c.range()[1]-c.range()[0];if(V=isNaN(V)?c.range()[0]:V,!isNaN(V)){var H=[0+V/2,l-12,a-V/2,l-12];(E=B.selectAll("line").data([H])).enter().append("line"),E.exit().remove(),E.attr("x1",function(e){return e[0]}).attr("y1",function(e){return e[1]}).attr("x2",function(e){return e[2]}).attr("y2",function(e){return e[3]}),(T=B.selectAll("text").data([d])).append("text").data([d]),T.enter().append("text"),T.exit().remove(),T.attr("y",l).attr("x",a-92-V/2).text(function(e){return e})}(n=j.selectAll("path").data(S)).enter().append("path"),n.exit().remove(),n.attr("d",$),(t=F.selectAll("path").data(S)).enter().append("path"),t.exit().remove(),t.attr("d",$).style("stroke-width",function(e,t){return isNaN(e.strokeWidth)&&(e.strokeWidth=1),e.strokeWidth}).attr("stroke",function(e,t){return e.color||g(e,t)}),t.on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0).style("stroke-width",t.strokeWidth+2+"px").style("stroke-opacity",1),k.call("elementMouseover",this,{label:t.name,color:t.color||g(t,n),values:t.values,dimensions:p})}),t.on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1).style("stroke-width",t.strokeWidth+"px").style("stroke-opacity",.7),k.call("elementMouseout",this,{label:t.name,index:t.index})}),t.on("mousemove",function(e,t){k.call("elementMousemove",this)}),t.on("click",function(e){k.call("elementClick",this,{id:e.id})});var U=(r=R.selectAll(".dimension").data(p)).enter().append("g").attr("class","nv-parallelCoordinates dimension");r.attr("transform",function(e){return"translate("+c(e.key)+",0)"}),U.append("g").attr("class","nv-axis"),U.append("text").attr("class","nv-label").style("cursor","move").attr("dy","-1em").attr("text-anchor","middle").on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),k.call("elementMouseover",this,{label:t.tooltip||t.key,color:t.color})}).on("mouseout",function(e,t){k.call("elementMouseout",this,{label:e.tooltip})}).on("mousemove",function(e,t){k.call("elementMousemove",this)}).call(Y),U.append("g").attr("class","nv-brushBackground"),r.exit().remove(),r.select(".nv-label").text(function(e){return e.key}),G(m);var z=f.filter(function(e){return null!==event.selection}),q=z.map(function(e){return u[e].brush.extent()}),W=y.slice(0);function $(e){return A(p.map(function(t){if(isNaN(e.values[t.key])||isNaN(parseFloat(e.values[t.key]))||O){var n=u[t.key].domain(),r=u[t.key].range(),i=n[0]-(n[1]-n[0])/9;if(0>_.indexOf(t.key)){var o=d3.scaleLinear().domain([i,n[1]]).range([l-12,r[1]]);u[t.key].brush.extent([[o.range()[0],0],[o.range()[1],1]]),_.push(t.key)}if(isNaN(e.values[t.key])||isNaN(parseFloat(e.values[t.key])))return[c(t.key),u[t.key](i)]}return void 0!==E&&(_.length>0||O?(E.style("display","inline"),T.style("display","inline")):(E.style("display","none"),T.style("display","none"))),[c(t.key),u[t.key](e.values[t.key])]}))}function G(e){v.forEach(function(t){var n=u[t.dimension].brush.extent();t.hasOnlyNaN&&(t.extent[1]=(u[t.dimension].domain()[1]-n[0])*(t.extent[1]-t.extent[0])/(I[t.dimension]-t.extent[0])+n[0]),t.hasNaN&&(t.extent[0]=n[0]),e&&u[t.dimension].brush.extent(t.extent)}),r.select(".nv-brushBackground").each(function(e){d3.select(this).call(u[e.key].brush)}).selectAll("rect").attr("x",-8).attr("width",16),Q()}function K(){!1===m&&(m=!0,G(!0))}function Z(e){q=(z=f.filter(function(t){return null!==e.selection})).map(function(e){return u[e].brush.extent()}),v=[],z.forEach(function(e,t){v[t]={dimension:e,extent:q[t],hasNaN:!1,hasOnlyNaN:!1}}),y=[],t.style("display",function(e){var t=z.every(function(t,n){return!(!isNaN(e.values[t])&&!isNaN(parseFloat(e.values[t])))&&q[n][0]==u[t].brush.extent()[1][0]||q[n][0]<=e.values[t]&&e.values[t]<=q[n][1]&&!isNaN(parseFloat(e.values[t]))});return t&&y.push(e),t?null:"none"}),Q(),k.call("brush",this,{filters:v,active:y})}function X(){var e=z.length>0;v.forEach(function(e){e.extent[0]===u[e.dimension].brush.extent()[1]&&_.indexOf(e.dimension)>=0&&(e.hasNaN=!0),e.extent[1]<u[e.dimension].domain()[0]&&(e.hasOnlyNaN=!0)}),k.call("end",y,e)}function Q(){r.select(".nv-axis").each(function(e,t){var n=v.filter(function(t){return t.dimension==e.key});L[e.key]=u[e.key].domain(),0!=n.length&&m&&(L[e.key]=[],n[0].extent[1]>u[e.key].domain()[0]&&(L[e.key]=[n[0].extent[1]]),n[0].extent[0]>=u[e.key].domain()[0]&&L[e.key].push(n[0].extent[0])),d3.select(this).call(x.scale(u[e.key]).tickFormat(e.format).tickValues(L[e.key]))})}function J(e){var t=b[e];return null==t?c(e):t}y=[],t.style("display",function(e){var t=z.every(function(t,n){return!(!isNaN(e.values[t])&&!isNaN(parseFloat(e.values[t])))&&q[n][0]==u[t].brush.extent()[1][0]||q[n][0]<=e.values[t]&&e.values[t]<=q[n][1]&&!isNaN(parseFloat(e.values[t]))});return t&&y.push(e),t?null:"none"}),(v.length>0||!e.utils.arrayEquals(y,W))&&k.call("activeChanged",this,y)}),E}return E.dispatch=k,E.options=e.utils.optionsFunc.bind(E),E._options=Object.create({},{width:{get:function(){return o},set:function(e){o=e}},height:{get:function(){return s},set:function(e){s=e}},dimensionData:{get:function(){return h},set:function(e){h=e}},displayBrush:{get:function(){return m},set:function(e){m=e}},filters:{get:function(){return v},set:function(e){v=e}},active:{get:function(){return y},set:function(e){y=e}},lineTension:{get:function(){return w},set:function(e){w=e}},undefinedValuesLabel:{get:function(){return d},set:function(e){d=e}},dimensions:{get:function(){return h.map(function(e){return e.key})},set:function(t){e.deprecated("dimensions","use dimensionData instead"),0===h.length?t.forEach(function(e){h.push({key:e})}):t.forEach(function(e,t){h[t].key=e})}},dimensionNames:{get:function(){return h.map(function(e){return e.key})},set:function(t){e.deprecated("dimensionNames","use dimensionData instead"),f=[],0===h.length?t.forEach(function(e){h.push({key:e})}):t.forEach(function(e,t){h[t].key=e})}},dimensionFormats:{get:function(){return h.map(function(e){return e.format})},set:function(t){e.deprecated("dimensionFormats","use dimensionData instead"),0===h.length?t.forEach(function(e){h.push({format:e})}):t.forEach(function(e,t){h[t].format=e})}},margin:{get:function(){return i},set:function(e){i.top=void 0!==e.top?e.top:i.top,i.right=void 0!==e.right?e.right:i.right,i.bottom=void 0!==e.bottom?e.bottom:i.bottom,i.left=void 0!==e.left?e.left:i.left}},color:{get:function(){return g},set:function(t){g=e.utils.getColor(t)}}}),e.utils.initOptions(E),E},e.models.parallelCoordinatesChart=function(){"use strict";var t=e.models.parallelCoordinates(),n=e.models.legend(),r=e.models.tooltip();e.models.tooltip();var i={top:0,right:0,bottom:0,left:0},o=null,s=null,a=null,l=!0,c=e.utils.defaultColor(),u=e.utils.state(),d=[],h=!0,p=null,f=null,m="undefined",g=d3.dispatch("dimensionsOrder","end","stateChange","changeState","renderEnd"),v=e.utils.renderWatch(g);function y(r){return v.reset(),v.models(t),r.each(function(r){var c,f=d3.select(this);e.utils.initSVG(f);var m,v,b=this,_=e.utils.availableWidth(s,f,i),w=e.utils.availableHeight(a,f,i);if(y.update=function(){f.call(y)},y.container=this,u.setter((m=d,function(e){void 0!==e.active&&m.forEach(function(t,n){t.disabled=!e.active[n]})}),y.update).getter((v=d,function(){return{active:v.map(function(e){return!e.disabled})}})).update(),u.disabled=d.map(function(e){return!!e.disabled}),(d=d.map(function(e){return e.disabled=!!e.disabled,e})).forEach(function(e,t){e.originalPosition=isNaN(e.originalPosition)?t:e.originalPosition,e.currentPosition=isNaN(e.currentPosition)?t:e.currentPosition}),!p)for(c in p={},u)u[c]instanceof Array?p[c]=u[c].slice(0):p[c]=u[c];if(!r||!r.length)return e.utils.noData(y,f),y;f.selectAll(".nv-noData").remove();var A=f.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").data([r]).enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinatesChart");A.attr("transform","translate("+i.left+","+i.top+")");var x=A.append("g");A.select("g");var k=x.append("g").attr("class","nv-parallelCoordinatesWrap"),S=x.append("g").attr("class","nv-legendWrap");S=f.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").select(".nv-legendWrap"),x.select("rect").attr("width",_).attr("height",w>0?w:0),l?(n.width(_).color(function(e){return"rgb(188,190,192)"}),S.datum(d.sort(function(e,t){return e.originalPosition-t.originalPosition})).call(n),o||n.height()===i.top||(i.top=n.height(),w=e.utils.availableHeight(a,f,i)),S.attr("transform","translate( 0 ,"+-i.top+")")):S.selectAll("*").remove(),t.width(_).height(w).dimensionData(d).displayBrush(h),k.datum(r).transition().duration(0).call(t),t.dispatch.on("end",function(e,t){t?(h=!0,g.call("end",this,e)):h=!1}),n.dispatch.on("stateChange",function(e){for(var t in e)u[t]=e[t];g.call("stateChange",b,e),y.update()}),t.dispatch.on("dimensionsOrder",function(e){d.sort(function(e,t){return e.currentPosition-t.currentPosition});var t=!1;d.forEach(function(e,n){e.currentPosition=n,e.currentPosition!==e.originalPosition&&(t=!0)}),g.call("dimensionsOrder",d,t)}),g.on("changeState",function(e){void 0!==e.disabled&&(d.forEach(function(t,n){t.disabled=e.disabled[n]}),u.disabled=e.disabled),y.update()})}),v.renderEnd("parraleleCoordinateChart immediate"),y}return r.contentGenerator(function(e){var t='<table><thead><tr><td class="legend-color-guide"><div style="background-color:'+e.color+'"></div></td><td><strong>'+e.key+"</strong></td></tr></thead>";return 0!==e.series.length&&(t+='<tbody><tr><td height ="10px"></td></tr>',e.series.forEach(function(e){t=t+'<tr><td class="legend-color-guide"><div style="background-color:'+e.color+'"></div></td><td class="key">'+e.key+'</td><td class="value">'+e.value+"</td></tr>"}),t+="</tbody>"),t+="</table>"}),t.dispatch.on("elementMouseover.tooltip",function(e){var t={key:e.label,color:e.color,series:[]};e.values&&(Object.keys(e.values).forEach(function(n){var r,i=e.dimensions.filter(function(e){return e.key===n})[0];i&&(r=isNaN(e.values[n])||isNaN(parseFloat(e.values[n]))?m:i.format(e.values[n]),t.series.push({idx:i.currentPosition,key:n,value:r,color:i.color}))}),t.series.sort(function(e,t){return e.idx-t.idx})),r.data(t).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(e){r.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(){r()}),y.dispatch=g,y.parallelCoordinates=t,y.legend=n,y.tooltip=r,y.options=e.utils.optionsFunc.bind(y),y._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},showLegend:{get:function(){return l},set:function(e){l=e}},defaultState:{get:function(){return p},set:function(e){p=e}},dimensionData:{get:function(){return d},set:function(e){d=e}},displayBrush:{get:function(){return h},set:function(e){h=e}},noData:{get:function(){return f},set:function(e){f=e}},nanValue:{get:function(){return m},set:function(e){m=e}},margin:{get:function(){return i},set:function(e){void 0!==e.top&&(i.top=e.top,o=e.top),i.right=void 0!==e.right?e.right:i.right,i.bottom=void 0!==e.bottom?e.bottom:i.bottom,i.left=void 0!==e.left?e.left:i.left}},color:{get:function(){return c},set:function(r){c=e.utils.getColor(r),n.color(c),t.color(c)}}}),e.utils.inheritOptions(y,t),e.utils.initOptions(y),y},e.models.pie=function(){"use strict";var t={top:0,right:0,bottom:0,left:0},n=500,r=500,i=function(e){return e.x},o=function(e){return e.y},s=Math.floor(1e4*Math.random()),a=null,l=e.utils.defaultColor(),c=d3.format(",.2f"),u=!0,d=!1,h="key",p=.02,f=!1,m=!1,g=!1,v=!0,y=0,b=!1,_=!1,w=!1,A=!1,x=0,k=.5,S=250,E=(d3.transition().duration(S).ease(d3.easeLinear),d3.transition().duration(70).ease(d3.easeLinear),d3.transition().duration(50).ease(d3.easeLinear),[]),T=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),D=[],C=[],M=e.utils.renderWatch(T);function I(O){return M.reset(),O.each(function(I){var O=n-t.left-t.right,L=r-t.top-t.bottom,N=Math.min(O,L)/2,P=[],R=[];if(a=d3.select(this),0===E.length)for(var j=N-N/10,F=k*N,B=0;B<I.length;B++)P.push(j),R.push(F);else v?(P=E.map(function(e){return(e.outer-e.outer/10)*N}),R=E.map(function(e){return(e.inner-e.inner/10)*N}),k=d3.min(E.map(function(e){return e.inner-e.inner/10}))):(P=E.map(function(e){return e.outer*N}),R=E.map(function(e){return e.inner*N}),k=d3.min(E.map(function(e){return e.inner})));e.utils.initSVG(a);var Y=a.selectAll(".nv-wrap.nv-pie").data([I]),V=Y.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+s);Y=Y.merge(V);var H=V.append("g");Y.select("g");var U=H.append("g").attr("class","nv-pie");U=a.selectAll(".nv-wrap.nv-pie").selectAll(".nv-pie");var z=H.append("g").attr("class","nv-pieLabels");z=a.selectAll(".nv-wrap.nv-pie").selectAll(".nv-pieLabels"),Y.attr("transform","translate("+t.left+","+t.top+")"),U.attr("transform","translate("+O/2+","+L/2+")"),z.attr("transform","translate("+O/2+","+L/2+")"),a.on("click",function(e,t,n){T.call("chartClick",this,{data:t,index:t.index,pos:e,id:s})}),D=[],C=[];for(B=0;B<I.length;B++){var q=d3.arc().outerRadius(P[B]),W=d3.arc().outerRadius(P[B]+5);!1!==_&&(q.startAngle(_),W.startAngle(_)),!1!==A&&(q.endAngle(A),W.endAngle(A)),m&&(q.innerRadius(R[B]),W.innerRadius(R[B])),q.cornerRadius&&x&&(q.cornerRadius(x),W.cornerRadius(x)),D.push(q),C.push(W)}var $=d3.pie().sort(null).value(function(e){return e.disabled?0:o(e)});$.padAngle&&w&&$.padAngle(w),m&&g&&(U.select(".nv-pie-title").empty()&&U.append("text").attr("class","nv-pie-title"),Y.select(".nv-pie-title").style("text-anchor","middle").text(function(e){return g}).style("font-size",Math.min(O,L)*k*2/(g.length+2)+"px").attr("dy","0.35em").attr("transform",function(e,t){return"translate(0, "+y+")"}));var G=a.select(".nv-wrap.nv-pie").selectAll(".nv-pie").selectAll(".nv-slice").data($(I)),K=a.select(".nv-wrap.nv-pie").selectAll(".nv-pieLabels").selectAll(".nv-label").data($(I.filter(function(e){return!e.disabled}))),Z=G.enter().append("g");if(Z.attr("class","nv-slice"),G.exit().remove(),K.exit().remove(),Z.on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0),v&&d3.select(this).select("path").transition().duration(70).attr("d",C[t.index]),T.call("elementMouseover",this,{data:t.data,index:t.index,color:d3.select(this).style("fill"),percent:(t.endAngle-t.startAngle)/(2*Math.PI)})}),Z.on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1),v&&d3.select(this).select("path").transition().duration(50).attr("d",D[t.index]),T.call("elementMouseout",this,{data:t.data,index:t.index})}),Z.on("mousemove",function(e,t,n){T.call("elementMousemove",this,{data:t.data,index:t.index})}),Z.on("click",function(e,t,n){T.call("elementClick",this,{data:t.data,index:t.index,color:d3.select(this).style("fill"),event:e,element:this})}),Z.on("dblclick",function(e,t,n){T.call("elementDblClick",this,{data:t.data,index:t.index,color:d3.select(this).style("fill")})}),(Z=G.merge(Z)).attr("fill",function(e,t){return l(e.data,t)}),Z.attr("stroke",function(e,t){return l(e.data,t)}),Z.append("path").each(function(e){this._current=e}),Z.select("path").transition().duration(S).attr("d",function(e,t){return D[t](e)}).attrTween("d",function(e,t){e.endAngle=isNaN(e.endAngle)?0:e.endAngle,e.startAngle=isNaN(e.startAngle)?0:e.startAngle,m||(e.innerRadius=0);var n=d3.interpolate(this._current,e);return this._current=n(0),function(e){return D[t](n(e))}}),u){var X=[];for(B=0;B<I.length;B++)X.push(D[B]),d?m&&(X[B]=d3.arc().outerRadius(D[B].outerRadius()),!1!==_&&X[B].startAngle(_),!1!==A&&X[B].endAngle(A)):m||X[B].innerRadius(0);K.enter().append("g").classed("nv-label",!0);var Q=a.select(".nv-wrap.nv-pie").selectAll(".nv-pieLabels").selectAll(".nv-label").each(function(e,t){var n=d3.select(this);n.attr("transform",function(e,t){if(!b)return e.outerRadius=N+10,e.innerRadius=N+15,"translate("+X[t].centroid(e)+")";e.outerRadius=P[t]+10,e.innerRadius=P[t]+15;var n=(e.startAngle+e.endAngle)/2*(180/Math.PI);return(e.startAngle+e.endAngle)/2<Math.PI?n-=90:n+=90,"translate("+X[t].centroid(e)+") rotate("+n+")"}),n.append("rect"),a.select(".nv-wrap.nv-pie").selectAll(".nv-pieLabels").select("rect").style("stroke","#fff").style("fill","#fff").attr("rx",3).attr("ry",3),n.append("text"),a.select(".nv-wrap.nv-pie").selectAll(".nv-pieLabels").select("text").style("text-anchor",b?(e.startAngle+e.endAngle)/2<Math.PI?"start":"end":"middle").style("fill","#000")}),J={},ee=function(e){return 140*Math.floor(e[0]/140)+","+14*Math.floor(e[1]/14)},te=function(e){return(e.endAngle-e.startAngle)/(2*Math.PI)};Q.watchTransition(M,"pie labels").attr("transform",function(e,t){if(b){e.outerRadius=P[t]+10,e.innerRadius=P[t]+15;var n=(e.startAngle+e.endAngle)/2*(180/Math.PI);return(e.startAngle+e.endAngle)/2<Math.PI?n-=90:n+=90,"translate("+X[t].centroid(e)+") rotate("+n+")"}e.outerRadius=N+10,e.innerRadius=N+15;var r=X[t].centroid(e),i=te(e);return e.value&&i>=p&&(J[ee(r)]&&(r[1]-=14),J[ee(r)]=!0),"translate("+r+")"}),Q.select(".nv-label text").style("text-anchor",function(e,t){return b?(e.startAngle+e.endAngle)/2<Math.PI?"start":"end":"middle"}).text(function(e,t){var n=te(e),r="";if(!e.value||n<p)return"";if("function"==typeof h)r=h(e,t,{key:String(i(e.data)).replace(/\.0+([A-Za-z]*)$/,"$1").replace(/\.([1-9]+)0+([A-Za-z]*)$/,".$1$2"),value:String(o(e.data)).replace(/\.0+([A-Za-z]*)$/,"$1").replace(/\.([1-9]+)0+([A-Za-z]*)$/,".$1$2"),percent:c(n)});else switch(h){case"key":r=c(i(e.data)).replace(/\.0+([A-Za-z]*)$/,"$1").replace(/\.([1-9]+)0+([A-Za-z]*)$/,".$1$2");break;case"value":r=c(o(e.data)).replace(/\.0+([A-Za-z]*)$/,"$1").replace(/\.([1-9]+)0+([A-Za-z]*)$/,".$1$2");break;case"percent":r=d3.format(".0%")(n).replace(/\.0+([A-Za-z]*)$/,"$1").replace(/\.([1-9]+)0+([A-Za-z]*)$/,".$1$2")}return r}),f&&Q.each(function(t,n){if(this.getBBox){var r=this.getBBox(),i=X[n].centroid(t),o={x:i[0]+r.x,y:i[1]+r.y},s={x:o.x+r.width,y:o.y},a={x:o.x,y:o.y+r.height},l={x:o.x+r.width,y:o.y+r.height};t.visible=e.utils.pointIsInArc(o,t,q)&&e.utils.pointIsInArc(s,t,q)&&e.utils.pointIsInArc(a,t,q)&&e.utils.pointIsInArc(l,t,q)}}).style("display",function(e){return e.visible?null:"none"}),Q.merge(K)}}),M.renderEnd("pie immediate"),I}return I.dispatch=T,I.options=e.utils.optionsFunc.bind(I),I._options=Object.create({},{arcsRadius:{get:function(){return E},set:function(e){E=e}},width:{get:function(){return n},set:function(e){n=e}},height:{get:function(){return r},set:function(e){r=e}},showLabels:{get:function(){return u},set:function(e){u=e}},title:{get:function(){return g},set:function(e){g=e}},titleOffset:{get:function(){return y},set:function(e){y=e}},labelThreshold:{get:function(){return p},set:function(e){p=e}},hideOverlapLabels:{get:function(){return f},set:function(e){f=e}},valueFormat:{get:function(){return c},set:function(e){c=e}},x:{get:function(){return i},set:function(e){i=e}},id:{get:function(){return s},set:function(e){s=e}},endAngle:{get:function(){return A},set:function(e){A=e}},startAngle:{get:function(){return _},set:function(e){_=e}},padAngle:{get:function(){return w},set:function(e){w=e}},cornerRadius:{get:function(){return x},set:function(e){x=e}},donutRatio:{get:function(){return k},set:function(e){k=e}},labelsOutside:{get:function(){return d},set:function(e){d=e}},labelSunbeamLayout:{get:function(){return b},set:function(e){b=e}},donut:{get:function(){return m},set:function(e){m=e}},growOnHover:{get:function(){return v},set:function(e){v=e}},pieLabelsOutside:{get:function(){return d},set:function(t){d=t,e.deprecated("pieLabelsOutside","use labelsOutside instead")}},donutLabelsOutside:{get:function(){return d},set:function(t){d=t,e.deprecated("donutLabelsOutside","use labelsOutside instead")}},labelFormat:{get:function(){return c},set:function(t){c=t,e.deprecated("labelFormat","use valueFormat instead")}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},duration:{get:function(){return S},set:function(e){S=e,M.reset(S),d3.transition().duration(S).ease(d3.easeLinear)}},y:{get:function(){return o},set:function(e){o="function"==typeof e?e:function(){return e}}},color:{get:function(){return l},set:function(t){l=e.utils.getColor(t)}},labelType:{get:function(){return h},set:function(e){h=e||"key"}}}),e.utils.initOptions(I),I},e.models.pieChart=function(){"use strict";var t=e.models.pie(),n=e.models.legend(),r=e.models.tooltip(),i={top:30,right:20,bottom:20,left:20},o=null,s=null,a=null,l=!1,c=!0,u="top",d=e.utils.defaultColor(),h=e.utils.state(),p=null,f=null,m=250,g=d3.dispatch("stateChange","changeState","renderEnd");r.duration(0).headerEnabled(!1).valueFormatter(function(e,n){return t.valueFormat()(e,n)});var v=e.utils.renderWatch(g);function y(r){return v.reset(),v.models(t),r.each(function(r){var l,d=d3.select(this);e.utils.initSVG(d);var f,m,v=e.utils.availableWidth(s,d,i),b=e.utils.availableHeight(a,d,i);if(y.update=function(){d.transition().call(y)},y.container=this,h.setter((f=r,function(e){void 0!==e.active&&f.forEach(function(t,n){t.disabled=!e.active[n]})}),y.update).getter((m=r,function(){return{active:m.map(function(e){return!e.disabled})}})).update(),h.disabled=r.map(function(e){return!!e.disabled}),!p)for(l in p={},h)h[l]instanceof Array?p[l]=h[l].slice(0):p[l]=h[l];if(!r||!r.length)return e.utils.noData(y,d),y;d.selectAll(".nv-noData").remove();var _=d.selectAll("g.nv-wrap.nv-pieChart").data([r]).enter().append("g").attr("class","nvd3 nv-wrap nv-pieChart");_.append("g");var w=_.select("g"),A=w.append("g").attr("class","nv-pieWrap");A=d.selectAll("g.nv-wrap.nv-pieChart").select(".nv-pieWrap");var x=w.append("g").attr("class","nv-legendWrap");if(x=d.selectAll("g.nv-wrap.nv-pieChart").select(".nv-legendWrap"),c)if("top"===u)n.width(v).key(t.x()),x.datum(r).call(n),o||n.height()===i.top||(i.top=n.height(),b=e.utils.availableHeight(a,d,i)),x.attr("transform","translate(0,"+-i.top+")");else if("right"===u){var k=e.models.legend().width();v/2<k&&(k=v/2),n.height(b).key(t.x()),n.width(k),v-=n.width(),x.datum(r).call(n).attr("transform","translate("+v+",0)")}else"bottom"===u&&(n.width(v).key(t.x()),x.datum(r).call(n),i.bottom=n.height(),b=e.utils.availableHeight(a,d,i),x.attr("transform","translate(0,"+b+")"));else x.selectAll("*").remove();_.attr("transform","translate("+i.left+","+i.top+")"),t.width(v).height(b);var S=d.select(".nv-pieChart").selectAll(".nv-pieWrap").data([r]);(S=S.merge(A)).transition().call(t),n.dispatch.on("stateChange",function(e){for(var t in e)h[t]=e[t];g.call("stateChange",this,e),y.update()}),g.on("changeState",function(e){void 0!==e.disabled&&(r.forEach(function(t,n){t.disabled=e.disabled[n]}),h.disabled=e.disabled),y.update()})}),v.renderEnd("pieChart immediate"),y}return t.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:y.x()(e.data),value:y.y()(e.data),color:e.color,percent:e.percent},l||(delete e.percent,delete e.series.percent),r.data(e).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(e){r.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(e){r()}),y.legend=n,y.dispatch=g,y.pie=t,y.tooltip=r,y.options=e.utils.optionsFunc.bind(y),y._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},noData:{get:function(){return f},set:function(e){f=e}},showTooltipPercent:{get:function(){return l},set:function(e){l=e}},showLegend:{get:function(){return c},set:function(e){c=e}},legendPosition:{get:function(){return u},set:function(e){u=e}},defaultState:{get:function(){return p},set:function(e){p=e}},color:{get:function(){return d},set:function(e){d=e,n.color(d),t.color(d)}},duration:{get:function(){return m},set:function(e){m=e,v.reset(m),t.duration(m)}},margin:{get:function(){return i},set:function(e){void 0!==e.top&&(i.top=e.top,o=e.top),i.right=void 0!==e.right?e.right:i.right,i.bottom=void 0!==e.bottom?e.bottom:i.bottom,i.left=void 0!==e.left?e.left:i.left}}}),e.utils.inheritOptions(y,t),e.utils.initOptions(y),y},e.models.sankey=function(){"use strict";var t={},n=24,r=8,i=[1,1],o=[],s=[],a=!0,l=function(e){o.forEach(function(e){e.sourceLinks=[],e.targetLinks=[]}),s.forEach(function(e){var t=e.source,n=e.target;"number"==typeof t&&(t=e.source=o[e.source]),"number"==typeof n&&(n=e.target=o[e.target]),t.sourceLinks.push(e),n.targetLinks.push(e)}),o.forEach(function(e){e.value=Math.max(d3.sum(e.sourceLinks,h),d3.sum(e.targetLinks,h))}),function(){for(var e,t,r,s=o,l=0;s.length&&l<o.length;)r=[],s.forEach(function(e){e.x=l,e.dx=n,e.sourceLinks.forEach(function(e){0>r.indexOf(e.target)&&r.push(e.target)})}),s=r,++l;a&&(e=l,o.forEach(function(t){t.sourceLinks.length||(t.x=e-1)})),t=(i[0]-n)/(l-1),o.forEach(function(e){e.x*=t})}(),function(e){var t,n=d3.group().key(function(e){return e.x}).sortKeys(d3.ascending).entries(o).map(function(e){return e.values});t=d3.min(n,function(e){return(i[1]-(e.length-1)*r)/d3.sum(e,h)}),n.forEach(function(e){e.forEach(function(e,n){e.y=n,e.dy=e.value*t})}),s.forEach(function(e){e.dy=e.value*t}),p(),d();for(var a=1;e>0;--e)c(a*=.99),p(),d(),l(a),p(),d();function l(e){function t(e){return(e.source.y+e.sy+e.dy/2)*e.value}n.forEach(function(n,r){n.forEach(function(n){if(n.targetLinks.length){var r=d3.sum(n.targetLinks,t)/d3.sum(n.targetLinks,h);n.y+=(r-u(n))*e}})})}function c(e){function t(e){return(e.target.y+e.ty+e.dy/2)*e.value}n.slice().reverse().forEach(function(n){n.forEach(function(n){if(n.sourceLinks.length){var r=d3.sum(n.sourceLinks,t)/d3.sum(n.sourceLinks,h);n.y+=(r-u(n))*e}})})}function p(){n.forEach(function(e){var t,n,o,s=0,a=e.length;for(e.sort(f),o=0;o<a;++o)(n=s-(t=e[o]).y)>0&&(t.y+=n),s=t.y+t.dy+r;if((n=s-r-i[1])>0)for(s=t.y-=n,o=a-2;o>=0;--o)(n=(t=e[o]).y+t.dy+r-s)>0&&(t.y-=n),s=t.y})}function f(e,t){return e.y-t.y}}(e)},c=function(){var e=.5;function t(t){var n=t.source.x+t.source.dx,r=t.target.x,i=d3.interpolateNumber(n,r),o=i(e),s=i(1-e),a=t.source.y+t.sy+t.dy/2,l=t.target.y+t.ty+t.dy/2;return"M"+n+","+a+"C"+o+","+a+" "+s+","+l+" "+r+","+l}return t.curvature=function(n){return arguments.length?(e=+n,t):e},t},u=function(e){return e.y+e.dy/2};function d(){function e(e,t){return e.source.y-t.source.y}function t(e,t){return e.target.y-t.target.y}o.forEach(function(n){n.sourceLinks.sort(t),n.targetLinks.sort(e)}),o.forEach(function(e){var t=0,n=0;e.sourceLinks.forEach(function(e){e.sy=t,t+=e.dy}),e.targetLinks.forEach(function(e){e.ty=n,n+=e.dy})})}function h(e){return e.value}return t.options=e.utils.optionsFunc.bind(t),t._options=Object.create({},{nodeWidth:{get:function(){return n},set:function(e){n=+e}},nodePadding:{get:function(){return r},set:function(e){r=e}},nodes:{get:function(){return o},set:function(e){o=e}},links:{get:function(){return s},set:function(e){s=e}},size:{get:function(){return i},set:function(e){i=e}},sinksRight:{get:function(){return a},set:function(e){a=e}},layout:{get:function(){l(32)},set:function(e){l(e)}},relayout:{get:function(){d()},set:function(e){}},center:{get:function(){return u()},set:function(e){"function"==typeof e&&(u=e)}},link:{get:function(){return c()},set:function(e){return"function"==typeof e&&(c=e),c()}}}),e.utils.initOptions(t),t},e.models.sankeyChart=function(){"use strict";var t={top:5,right:0,bottom:5,left:0},n=e.models.sankey(),r=600,i=400,o=36,s=40,a="units",l=void 0,c=d3.format(",.0f"),u=function(e){return c(e)+" "+a},d=d3.scaleOrdinal(d3.schemeAccent),h=function(e){return e.source.name+" \u2192 "+e.target.name+"\n"+u(e.value)},p=function(e){return e.color=d(e.name.replace(/ .*/,""))},f=function(e){return d3.rgb(e.color).darker(2)},m=function(e){return e.name+"\n"+u(e.value)},g=function(e,t){e.append("text").attr("x",0).attr("y",0).attr("class","nvd3-sankey-chart-error").attr("text-anchor","middle").text(t)};function v(e){return e.each(function(t){var a={nodes:[{node:1,name:"Test 1"},{node:2,name:"Test 2"},{node:3,name:"Test 3"},{node:4,name:"Test 4"},{node:5,name:"Test 5"},{node:6,name:"Test 6"}],links:[{source:0,target:1,value:2295},{source:0,target:5,value:1199},{source:1,target:2,value:1119},{source:1,target:5,value:1176},{source:2,target:3,value:487},{source:2,target:5,value:632},{source:3,target:4,value:301},{source:3,target:5,value:186}]},c=!1,u=!1;if(("object"==typeof t.nodes&&t.nodes.length)>=0&&("object"==typeof t.links&&t.links.length)>=0&&(c=!0),t.nodes&&t.nodes.length>0&&t.links&&t.links.length>0&&(u=!0),!c)return console.error("NVD3 Sankey chart error:","invalid data format for",t),console.info("Valid data format is: ",a,JSON.stringify(a)),g(e,"Error loading chart, data is invalid"),!1;if(!u)return g(e,"No data available"),!1;var d=e.append("svg").attr("width",r).attr("height",i).append("g").attr("class","nvd3 nv-wrap nv-sankeyChart");n.nodeWidth(o).nodePadding(s).size([r,i]);var v=n.link();n.nodes(t.nodes).links(t.links).layout(32).center(l);var y=d.append("g").selectAll(".link").data(t.links).enter().append("path").attr("class","link").attr("d",v).style("stroke-width",function(e){return Math.max(1,e.dy)}).sort(function(e,t){return t.dy-e.dy});y.append("title").text(h);var b=d.append("g").selectAll(".node").data(t.nodes).enter().append("g").attr("class","node").attr("transform",function(e){return"translate("+e.x+","+e.y+")"}).call(d3.drag().subject(function(e){return e}).on("start",function(){this.parentNode.appendChild(this)}).on("drag",function(e,t){d3.select(this).attr("transform","translate("+t.x+","+(t.y=Math.max(0,Math.min(i-t.dy,e.y)))+")"),n.relayout(),y.attr("d",v)}));b.append("rect").attr("height",function(e){return e.dy}).attr("width",n.nodeWidth()).style("fill",p).style("stroke",f).append("title").text(m),b.append("text").attr("x",-6).attr("y",function(e){return e.dy/2}).attr("dy",".35em").attr("text-anchor","end").attr("transform",null).text(function(e){return e.name}).filter(function(e){return e.x<r/2}).attr("x",6+n.nodeWidth()).attr("text-anchor","start")}),v}return v.options=e.utils.optionsFunc.bind(v),v._options=Object.create({},{units:{get:function(){return a},set:function(e){a=e}},width:{get:function(){return r},set:function(e){r=e}},height:{get:function(){return i},set:function(e){i=e}},format:{get:function(){return u},set:function(e){u=e}},linkTitle:{get:function(){return h},set:function(e){h=e}},nodeWidth:{get:function(){return o},set:function(e){o=e}},nodePadding:{get:function(){return s},set:function(e){s=e}},center:{get:function(){return l},set:function(e){l=e}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},nodeStyle:{get:function(){return{}},set:function(e){p=void 0!==e.fillColor?e.fillColor:p,f=void 0!==e.strokeColor?e.strokeColor:f,m=void 0!==e.title?e.title:m}}}),e.utils.initOptions(v),v},e.models.scatter=function(){"use strict";var t,n,r,i,o,s,a,l,c={top:0,right:0,bottom:0,left:0},u=null,d=null,h=e.utils.defaultColor(),p=null,f=Math.floor(1e5*Math.random()),m=null,g=d3.scaleLinear(),v=d3.scaleLinear(),y=d3.scaleLinear(),b=function(e){return e.x},_=function(e){return e.y},w=function(e){return e.size||1},A=function(e){return e.shape||"circle"},x=[],k=[],S=[],E=!0,T=function(e){return!e.notActive},D=!1,C=.1,M=!1,I=!0,O=!1,L=function(){return 25},N=null,P=null,R=null,j=null,F=null,B=null,Y=!1,V=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),H=!0,U=250,z=300,q=!1,W=!1,$=e.utils.renderWatch(V,U),G=[16,256],K={};function Z(e){delete K[e[0].series+":"+e[1]]}function X(e){var t,n,r,i,o,s=K[n=(t=e)[0].series+":"+t[1]]=K[n]||{},a=!1;for(r=1;r<arguments.length;r+=2)i=arguments[r],o=arguments[r+1](e[0],e[1]),s[i]===o&&s.hasOwnProperty(i)||(s[i]=o,a=!0);return a}function Q(U){return $.reset(),U.each(function(U){m=d3.select(this);var K=e.utils.availableWidth(u,m,c),J=e.utils.availableHeight(d,m,c);e.utils.initSVG(m),U.forEach(function(e,t){e.values.forEach(function(e){e.series=t,e.seriesIndex=t})});var ee="function"==typeof Q.yScale().base,te=N&&P&&F?[]:d3.merge(U.map(function(e){return e.values.map(function(e,t){return{x:b(e,t),y:_(e,t),size:w(e,t)}})}));if(g.domain(N||d3.extent(te.map(function(e){return e.x}).concat(x))),D&&U[0]?g.range(R||[(K*C+K)/(2*U[0].values.length),K-K*(1+C)/(2*U[0].values.length)]):g.range(R||[0,K]),ee){var ne=d3.min(te.map(function(e){if(0!==e.y)return e.y}));v.clamp(!0).domain(P||d3.extent(te.map(function(e){return 0!==e.y?e.y:.1*ne}).concat(k))).range(j||[J,0])}else v.domain(P||d3.extent(te.map(function(e){return e.y}).concat(k))).range(j||[J,0]);y.domain(F||d3.extent(te.map(function(e){return e.size}).concat(S))).range(B||G),Y=g.domain()[0]===g.domain()[1]||v.domain()[0]===v.domain()[1],g.domain()[0]===g.domain()[1]&&(g.domain()[0]?g.domain([g.domain()[0]-.01*g.domain()[0],g.domain()[1]+.01*g.domain()[1]]):g.domain([-1,1])),v.domain()[0]===v.domain()[1]&&(v.domain()[0]?v.domain([v.domain()[0]-.01*v.domain()[0],v.domain()[1]+.01*v.domain()[1]]):v.domain([-1,1])),isNaN(g.domain()[0])&&g.domain([-1,1]),isNaN(v.domain()[0])&&v.domain([-1,1]),t=t||g,n=n||v,r=r||y;var re=g(1)!==t(1)||v(1)!==n(1)||y(1)!==r(1);a=a||d;var ie=(s=s||u)!==u||a!==d,oe=(i=i||[])[0]!==g.domain()[0]||i[1]!==g.domain()[1];i=g.domain(),o=o||[],oe=oe||o[0]!==v.domain()[0]||o[1]!==v.domain()[1],o=v.domain();var se=m.selectAll("g.nv-wrap.nv-scatter").data([U]),ae=se.enter().append("g").attr("class","nvd3 nv-wrap nv-scatter nv-chart-"+f);ae.classed("nv-single-point",Y);var le=ae.append("defs"),ce=ae.append("g");ce.append("g").attr("class","nv-groups");var ue=ce.append("g").attr("class","nv-point-paths"),de=ae.append("g").attr("class","nv-point-clips");function he(){if(W=!1,!E)return!1;if(m.selectAll(".nv-point.hover").classed("hover",!1),ue.selectAll("path").remove(),!0===H){var t=d3.merge(U.map(function(t,n){return t.values.map(function(t,r){var i=b(t,r),o=_(t,r);return[e.utils.NaNtoZero(g(i))+1e-4*Math.random(),e.utils.NaNtoZero(v(o))+1e-4*Math.random(),n,r,t]}).filter(function(e,t){return T(e[4],t)})}));if(0==t.length)return!1;t.length<3&&(t.push([g.range()[0]-20,v.range()[0]-20,null,null]),t.push([g.range()[1]+20,v.range()[1]+20,null,null]),t.push([g.range()[0]-20,v.range()[0]+20,null,null]),t.push([g.range()[1]+20,v.range()[1]-20,null,null]));var n=[[-10,-10],[-10,d+10],[u+10,d+10],[u+10,-10]];t=t.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]});for(var r=0;r<t.length-1;)1e-4>Math.abs(t[r][0]-t[r+1][0])&&1e-4>Math.abs(t[r][1]-t[r+1][1])?t.splice(r+1,1):r++;var i=Array.from(d3.Delaunay.from(t,e=>e[0],e=>e[1]).voronoi([n[0][0],n[0][1],n[2][0],n[2][1]]).cellPolygons()).map(function(e,n){return{data:e,series:t[n][2],point:t[n][3]}}),o=ue.selectAll("path").data(i).enter().append("svg:path").attr("d",function(e){return e&&e.data&&0!==e.data.length?"M"+e.data.join(",")+"Z":"M 0 0"}).attr("id",function(e,t){return"nv-path-"+t}).attr("clip-path",function(e,t){return"url(#nv-clip-"+f+"-"+t+")"});O&&o.style("fill",d3.rgb(230,230,230)).style("fill-opacity",.4).style("stroke-opacity",1).style("stroke",d3.rgb(200,200,200)),I&&(de.selectAll("*").remove(),de.selectAll("clipPath").data(t).enter().append("svg:clipPath").attr("id",function(e,t){return"nv-clip-"+f+"-"+t}).append("svg:circle").attr("cx",function(e){return e[0]}).attr("cy",function(e){return e[1]}).attr("r",L));var s=function(e,t,n,r){if(W)return 0;setCoordinates(t.pageX,t.pageY);var i=U[n.seriesIndex||n.series];if(void 0!==i){var o=i.values[n.point];o.color=h(i,n.seriesIndex),o.x=b(o),o.y=_(o);var s=m.node().getBoundingClientRect(),a=window.pageYOffset||document.documentElement.scrollTop,l=window.pageXOffset||document.documentElement.scrollLeft,u={left:g(b(o,n.point))+s.left+l+c.left+10,top:v(_(o,n.point))+s.top+a+c.top+10};V.call(r,this,{point:o,series:i,pos:u,relativePos:[g(b(o,n.point))+c.left,v(_(o,n.point))+c.top],seriesIndex:n.seriesIndex||n.series,pointIndex:n.point,event:d3.event,element:e})}};o.on("click",function(e,t){s(this,e,t,"elementClick")}).on("dblclick",function(e,t){s(this,e,t,"elementDblClick")}).on("mouseover",function(e,t){s(this,e,t,"elementMouseover")}).on("mouseout",function(e,t,n){s(this,e,t,"elementMouseout")})}else m.selectAll(".nv-group").selectAll(".nv-point").on("click",function(e,t){if(W||!U[e[0].series])return 0;var n=U[e[0].series],r=n.values[t];V.call("elementClick",this,{point:r,series:n,pos:[g(b(r,t))+c.left,v(_(r,t))+c.top],relativePos:[g(b(r,t))+c.left,v(_(r,t))+c.top],seriesIndex:e[0].series,pointIndex:t,event:d3.event,element:this})}).on("dblclick",function(e,t){if(W||!U[e[0].series])return 0;var n=U[e[0].series],r=n.values[t];V.call("elementDblClick",this,{point:r,series:n,pos:[g(b(r,t))+c.left,v(_(r,t))+c.top],relativePos:[g(b(r,t))+c.left,v(_(r,t))+c.top],seriesIndex:e[0].series,pointIndex:t})}).on("mouseover",function(e,t){if(W||!U[e[0].series])return 0;var n=U[e[0].series],r=n.values[t];V.call("elementMouseover",this,{point:r,series:n,pos:[g(b(r,t))+c.left,v(_(r,t))+c.top],relativePos:[g(b(r,t))+c.left,v(_(r,t))+c.top],seriesIndex:e[0].series,pointIndex:t,color:h(e[0],t)})}).on("mouseout",function(e,t){if(W||!U[e[0].series])return 0;var n=U[e[0].series],r=n.values[t];V.call("elementMouseout",this,{point:r,series:n,pos:[g(b(r,t))+c.left,v(_(r,t))+c.top],relativePos:[g(b(r,t))+c.left,v(_(r,t))+c.top],seriesIndex:e[0].series,pointIndex:t,color:h(e[0],t)})})}se.attr("transform","translate("+c.left+","+c.top+")"),le.append("clipPath").attr("id","nv-edge-clip-"+f).append("rect").attr("transform","translate( -10, -10)").attr("width",K+20).attr("height",J>0?J+20:0),M&&ce.attr("clip-path",M?"url(#nv-edge-clip-"+f+")":""),W=!0;var pe=m.select("g.nv-groups").selectAll("g.nv-group").data(function(e){return e},function(e){return e.key}),fe=pe.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).attr("class",function(e,t){return(e.classed||"")+" nv-group nv-series-"+t}).classed("nv-noninteractive",!E).classed("hover",function(e){return e.hover});pe.exit().remove();var me=pe.merge(fe);me.watchTransition($,"scatter: groups").style("fill",function(e,t){return h(e,t)}).style("stroke",function(e,t){return e.pointBorderColor||p||h(e,t)}).style("stroke-opacity",1).style("fill-opacity",.5);var ge=me.selectAll("path.nv-point").data(function(e){return e.values.map(function(e,t){return[e,t]}).filter(function(e,t){return T(e[0],t)})}),ve=ge.enter().append("path").attr("class",function(e){return"nv-point nv-point-"+e[1]}).style("fill",function(e){return e.color}).style("stroke",function(e){return e.color}).attr("transform",function(r){return"translate("+e.utils.NaNtoZero(t(b(r[0],r[1])))+","+e.utils.NaNtoZero(n(_(r[0],r[1])))+")"}).attr("d",e.utils.symbol().type(function(e){return A(e[0])}).size(function(e){return y(w(e[0],e[1]))}));ge.exit().each(Z).remove();var ye=ge.merge(ve);if(me.exit().selectAll("path.nv-point").watchTransition($,"scatter exit").attr("transform",function(t){return"translate("+e.utils.NaNtoZero(g(b(t[0],t[1])))+","+e.utils.NaNtoZero(v(_(t[0],t[1])))+")"}).remove(),ye.filter(function(e){return X(e,"x",b,"y",_)||re||ie||oe}).watchTransition($,"scatter points").attr("transform",function(t){return"translate("+e.utils.NaNtoZero(g(b(t[0],t[1])))+","+e.utils.NaNtoZero(v(_(t[0],t[1])))+")"}),ye.filter(function(e){return X(e,"shape",A,"size",w)||re||ie||oe}).watchTransition($,"scatter points").attr("d",e.utils.symbol().type(function(e){return A(e[0])}).size(function(e){return y(w(e[0],e[1]))})),q){var be=me.selectAll(".nv-label").data(function(e){return e.values.map(function(e,t){return[e,t]}).filter(function(e,t){return T(e[0],t)})}),_e=be.enter().append("text").style("fill",function(e,t){return e.color}).style("stroke-opacity",0).style("fill-opacity",1).attr("transform",function(r){return"translate("+(e.utils.NaNtoZero(t(b(r[0],r[1])))+Math.sqrt(y(w(r[0],r[1]))/Math.PI)+2)+","+e.utils.NaNtoZero(n(_(r[0],r[1])))+")"}).text(function(e,t){return e[0].label});be.exit().remove();var we=be.merge(_e);me.exit().selectAll("path.nv-label").watchTransition($,"scatter exit").attr("transform",function(t){return"translate("+(e.utils.NaNtoZero(g(b(t[0],t[1])))+Math.sqrt(y(w(t[0],t[1]))/Math.PI)+2)+","+e.utils.NaNtoZero(v(_(t[0],t[1])))+")"}).remove(),we.each(function(e){d3.select(this).classed("nv-label",!0).classed("nv-label-"+e[1],!1).classed("hover",!1)}),we.watchTransition($,"scatter labels").text(function(e,t){return e[0].label}).attr("transform",function(t){return"translate("+(e.utils.NaNtoZero(g(b(t[0],t[1])))+Math.sqrt(y(w(t[0],t[1]))/Math.PI)+2)+","+e.utils.NaNtoZero(v(_(t[0],t[1])))+")"})}z?(clearTimeout(l),l=setTimeout(he,z)):he(),t=g.copy(),n=v.copy(),r=y.copy(),s=u,a=d}),$.renderEnd("scatter immediate"),Q}return Q.dispatch=V,Q.options=e.utils.optionsFunc.bind(Q),Q._calls=new function(){this.clearHighlights=function(){return e.dom.write(function(){m&&m.selectAll(".nv-point.hover").classed("hover",!1)}),null},this.highlightPoint=function(t,n,r){e.dom.write(function(){m&&m.select(".nv-groups").selectAll(".nv-series-"+t).selectAll(".nv-point-"+n).classed("hover",r)})}},V.on("elementMouseover.point",function(e){E&&Q._calls.highlightPoint(e.seriesIndex,e.pointIndex,!0)}),V.on("elementMouseout.point",function(e){E&&Q._calls.highlightPoint(e.seriesIndex,e.pointIndex,!1)}),Q._options=Object.create({},{width:{get:function(){return u},set:function(e){u=e}},height:{get:function(){return d},set:function(e){d=e}},xScale:{get:function(){return g},set:function(e){g=e}},yScale:{get:function(){return v},set:function(e){v=e}},pointScale:{get:function(){return y},set:function(e){y=e}},xDomain:{get:function(){return N},set:function(e){N=e}},yDomain:{get:function(){return P},set:function(e){P=e}},pointDomain:{get:function(){return F},set:function(e){F=e}},xRange:{get:function(){return R},set:function(e){R=e}},yRange:{get:function(){return j},set:function(e){j=e}},pointRange:{get:function(){return B},set:function(e){B=e}},forceX:{get:function(){return x},set:function(e){x=e}},forceY:{get:function(){return k},set:function(e){k=e}},forcePoint:{get:function(){return S},set:function(e){S=e}},interactive:{get:function(){return E},set:function(e){E=e}},pointActive:{get:function(){return T},set:function(e){T=e}},padDataOuter:{get:function(){return C},set:function(e){C=e}},padData:{get:function(){return D},set:function(e){D=e}},clipEdge:{get:function(){return M},set:function(e){M=e}},clipVoronoi:{get:function(){return I},set:function(e){I=e}},clipRadius:{get:function(){return L},set:function(e){L=e}},showVoronoi:{get:function(){return O},set:function(e){O=e}},id:{get:function(){return f},set:function(e){f=e}},interactiveUpdateDelay:{get:function(){return z},set:function(e){z=e}},showLabels:{get:function(){return q},set:function(e){q=e}},pointBorderColor:{get:function(){return p},set:function(e){p=e}},x:{get:function(){return b},set:function(e){b="function"==typeof e?e:function(){return e}}},y:{get:function(){return _},set:function(e){_="function"==typeof e?e:function(){return e}}},pointSize:{get:function(){return w},set:function(e){w="function"==typeof e?e:function(){return e}}},pointShape:{get:function(){return A},set:function(e){A="function"==typeof e?e:function(){return e}}},margin:{get:function(){return c},set:function(e){c.top=void 0!==e.top?e.top:c.top,c.right=void 0!==e.right?e.right:c.right,c.bottom=void 0!==e.bottom?e.bottom:c.bottom,c.left=void 0!==e.left?e.left:c.left}},duration:{get:function(){return U},set:function(e){U=e,$.reset(U)}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t)}},useVoronoi:{get:function(){return H},set:function(e){!1===(H=e)&&(I=!1)}}}),e.utils.initOptions(Q),Q},e.models.scatterChart=function(){"use strict";var t=e.models.scatter(),n=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),r=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),i=e.models.legend(),o=e.models.distribution(),s=e.models.distribution(),a=e.models.tooltip(),l={top:30,right:20,bottom:50,left:75},c=null,u=null,d=null,h=null,p=e.utils.defaultColor(),f=t.xScale(),m=t.yScale(),g=!1,v=!1,y=!0,b=!0,_=!0,w="top",A=!1,x=e.utils.state(),k=null,S=d3.dispatch("stateChange","changeState","renderEnd"),E=null,T=250,D=(d3.transition().duration(T).ease(d3.easeLinear),!1);t.xScale(f).yScale(m),n.tickPadding(10),r.tickPadding(10),o.axis("x"),s.axis("y"),a.headerFormatter(function(e,t){return n.tickFormat()(e,t)}).valueFormatter(function(e,t){return r.tickFormat()(e,t)});var C=e.utils.renderWatch(S,T);function M(w){return C.reset(),C.models(t),b&&C.models(n),_&&C.models(r),g&&C.models(o),v&&C.models(s),w.each(function(w){var E,I=this;h=d3.select(this),e.utils.initSVG(h);var O,L,N=e.utils.availableWidth(u,h,l),P=e.utils.availableHeight(d,h,l);if(M.update=function(){0===T?h.call(M):h.transition().duration(T).call(M)},M.container=this,x.setter((O=w,function(e){void 0!==e.active&&O.forEach(function(t,n){t.disabled=!e.active[n]})}),M.update).getter((L=w,function(){return{active:L.map(function(e){return!e.disabled})}})).update(),x.disabled=w.map(function(e){return!!e.disabled}),!k)for(E in k={},x)x[E]instanceof Array?k[E]=x[E].slice(0):k[E]=x[E];if(!w||!w.length||!w.filter(function(e){return e.values.length}).length)return e.utils.noData(M,h),C.renderEnd("scatter immediate"),M;h.selectAll(".nv-noData").remove(),f=t.xScale(),m=t.yScale(),w.forEach(function(e,t){e.seriesIndex=t});var R=h.selectAll("g.nv-wrap.nv-scatterChart").data([w]).enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+t.id()),j=R.append("g");j.select("g"),j.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none");var F=j.append("g").attr("class","nv-x nv-axis");F=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-x");var B=j.append("g").attr("class","nv-y nv-axis");B=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-y");var Y=j.append("g").attr("class","nv-scatterWrap");Y=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-scatterWrap");var V=j.append("g").attr("class","nv-regressionLinesWrap");V=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-regressionLinesWrap");var H=j.append("g").attr("class","nv-distWrap");H=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-distWrap");var U=j.append("g").attr("class","nv-legendWrap");A&&B.attr("transform","translate("+N+",0)"),U=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-legendWrap"),y?(i.width(N),U.datum(w).call(i),c||i.height()===l.top||(l.top=i.height(),P=e.utils.availableHeight(d,h,l)),U.attr("transform","translate(0,"+-l.top+")")):U.selectAll("*").remove(),R.attr("transform","translate("+l.left+","+l.top+")"),t.width(N).height(P).color(w.map(function(e,t){return e.color=e.color||p(e,t),e.color}).filter(function(e,t){return!w[t].disabled})).showLabels(D),Y.datum(w.filter(function(e){return!e.disabled})).call(t),V.attr("clip-path","url(#nv-edge-clip-"+t.id()+")"),V.selectAll(".nv-regLines").data(function(e){return e}).enter().append("g").attr("class","nv-regLines").selectAll(".nv-regLine").data(function(e){return[e]}).enter().append("line").attr("class","nv-regLine").style("stroke-opacity",0).filter(function(e){return e.intercept&&e.slope}).watchTransition(C,"scatterPlusLineChart: regline").attr("x1",f.range()[0]).attr("x2",f.range()[1]).attr("y1",function(e,t){return m(f.domain()[0]*e.slope+e.intercept)}).attr("y2",function(e,t){return m(f.domain()[1]*e.slope+e.intercept)}).style("stroke",function(e,t,n){return p(e,n)}).style("stroke-opacity",function(e,t){return e.disabled||void 0===e.slope||void 0===e.intercept?0:1}),b&&(n.scale(f)._ticks(e.utils.calcTicksX(N/100,w)),n.tickSizeInner(-P),F.attr("transform","translate(0,"+m.range()[0]+")").call(n)),_&&(r.scale(m)._ticks(e.utils.calcTicksY(P/36,w)),r.tickSizeInner(-N),B.call(r)),o.getData(t.x()).scale(f).width(N).color(w.map(function(e,t){return e.color||p(e,t)}).filter(function(e,t){return!w[t].disabled})),H.append("g").attr("class","nv-distributionX").attr("transform","translate(0,"+m.range()[0]+")").datum(w.filter(function(e){return!e.disabled})).call(o).style("opacity",function(){return g?"1":"1e-6"}).watchTransition(C,"scatterPlusLineChart").style("opacity",function(){return g?"1":"1e-6"}),s.getData(t.y()).scale(m).width(P).color(w.map(function(e,t){return e.color||p(e,t)}).filter(function(e,t){return!w[t].disabled})),H.append("g").attr("class","nv-distributionY").attr("transform","translate("+(A?N:-s.size())+",0)").datum(w.filter(function(e){return!e.disabled})).call(s).style("opacity",function(){return v?"1":"1e-6"}).watchTransition(C,"scatterPlusLineChart").style("opacity",function(){return v?"1":"1e-6"}),i.dispatch.on("stateChange",function(e){for(var t in e)x[t]=e[t];S.call("stateChange",I,e),M.update()}),S.on("changeState",function(e){void 0!==e.disabled&&(w.forEach(function(t,n){t.disabled=e.disabled[n]}),x.disabled=e.disabled),M.update()}),t.dispatch.on("elementMouseout.tooltip",function(e){a.hidden(!0),h.select(".nv-chart-"+t.id()+" .nv-series-"+e.seriesIndex+" .nv-distx-"+e.pointIndex).attr("y1",0),h.select(".nv-chart-"+t.id()+" .nv-series-"+e.seriesIndex+" .nv-disty-"+e.pointIndex).attr("x2",s.size())}),t.dispatch.on("elementMouseover.tooltip",function(e){h.select(".nv-series-"+e.seriesIndex+" .nv-distx-"+e.pointIndex).attr("y1",e.relativePos[1]-P),h.select(".nv-series-"+e.seriesIndex+" .nv-disty-"+e.pointIndex).attr("x2",e.relativePos[0]+o.size()),a.data(e).hidden(!1)}),f.copy(),m.copy()}),C.renderEnd("scatter with line immediate"),M}return M.dispatch=S,M.scatter=t,M.legend=i,M.xAxis=n,M.yAxis=r,M.distX=o,M.distY=s,M.tooltip=a,M.options=e.utils.optionsFunc.bind(M),M._options=Object.create({},{width:{get:function(){return u},set:function(e){u=e}},height:{get:function(){return d},set:function(e){d=e}},container:{get:function(){return h},set:function(e){h=e}},showDistX:{get:function(){return g},set:function(e){g=e}},showDistY:{get:function(){return v},set:function(e){v=e}},legendPosition:{get:function(){return w},set:function(e){w=e}},showLegend:{get:function(){return y},set:function(e){y=e}},showXAxis:{get:function(){return b},set:function(e){b=e}},showYAxis:{get:function(){return _},set:function(e){_=e}},defaultState:{get:function(){return k},set:function(e){k=e}},noData:{get:function(){return E},set:function(e){E=e}},duration:{get:function(){return T},set:function(e){T=e,d3.transition().duration(T).ease(d3.easeLinear)}},showLabels:{get:function(){return D},set:function(e){D=e}},margin:{get:function(){return l},set:function(e){void 0!==e.top&&(l.top=e.top,c=e.top),l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},rightAlignYAxis:{get:function(){return A},set:function(e){A=e}},color:{get:function(){return p},set:function(t){p=e.utils.getColor(t),i.color(p),o.color(p),s.color(p)}}}),e.utils.inheritOptions(M,t),e.utils.initOptions(M),M},e.models.sparkline=function(){"use strict";var t,n,r,i,o={top:2,right:0,bottom:2,left:0},s=400,a=32,l=null,c=!0,u=d3.scaleLinear(),d=d3.scaleLinear(),h=function(e){return e.x},p=function(e){return e.y},f=e.utils.getColor(["#000"]),m=!0,g=!0,v=d3.dispatch("renderEnd"),y=e.utils.renderWatch(v);function b(c){return y.reset(),c.each(function(c){var v=s-o.left-o.right,y=a-o.top-o.bottom;l=d3.select(this),e.utils.initSVG(l),u.domain(t||d3.extent(c,h)).range(r||[0,v]),d.domain(n||d3.extent(c,p)).range(i||[y,0]);var b=l.selectAll("g.nv-wrap.nv-sparkline").data([c]),_=b.enter().append("g").attr("class","nvd3 nv-wrap nv-sparkline");_.append("g"),b.select("g"),_.attr("transform","translate("+o.left+","+o.top+")");var w=_.selectAll("path").data(function(e){return[e]});w.exit().remove();var A=w.enter().append("path");A.style("stroke",function(e,t){return e.color||f(e,t)}).attr("d",d3.line().x(function(e,t){return u(h(e,t))}).y(function(e,t){return d(p(e,t))})),A.merge(w);var x=_.selectAll("circle.nv-point").data(function(e){var t=e.map(function(e,t){return p(e,t)});function n(t){if(-1==t)return null;var n=e[t];return n.pointIndex=t,n}var r=n(t.lastIndexOf(d.domain()[1])),i=n(t.indexOf(d.domain()[0])),o=n(t.length-1);return[m?i:null,m?r:null,g?o:null].filter(function(e){return null!=e})});x.exit().remove();var k=x.enter().append("circle");k.attr("cx",function(e,t){return u(h(e,e.pointIndex))}).attr("cy",function(e,t){return d(p(e,e.pointIndex))}).attr("r",2).attr("class",function(e,t){return h(e,e.pointIndex)==u.domain()[1]?"nv-point nv-currentValue":p(e,e.pointIndex)==d.domain()[0]?"nv-point nv-minValue":"nv-point nv-maxValue"}),k.merge(x)}),y.renderEnd("sparkline immediate"),b}return b.options=e.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},xDomain:{get:function(){return t},set:function(e){t=e}},yDomain:{get:function(){return n},set:function(e){n=e}},xRange:{get:function(){return r},set:function(e){r=e}},yRange:{get:function(){return i},set:function(e){i=e}},xScale:{get:function(){return u},set:function(e){u=e}},yScale:{get:function(){return d},set:function(e){d=e}},animate:{get:function(){return c},set:function(e){c=e}},showMinMaxPoints:{get:function(){return m},set:function(e){m=e}},showCurrentPoint:{get:function(){return g},set:function(e){g=e}},x:{get:function(){return h},set:function(e){h="function"==typeof e?e:function(){return e}}},y:{get:function(){return p},set:function(e){p="function"==typeof e?e:function(){return e}}},margin:{get:function(){return o},set:function(e){o.top=void 0!==e.top?e.top:o.top,o.right=void 0!==e.right?e.right:o.right,o.bottom=void 0!==e.bottom?e.bottom:o.bottom,o.left=void 0!==e.left?e.left:o.left}},color:{get:function(){return f},set:function(t){f=e.utils.getColor(t)}}}),b.dispatch=v,e.utils.initOptions(b),b},e.models.sparklinePlus=function(){"use strict";var t,n,r=e.models.sparkline(),i={top:15,right:100,bottom:10,left:50},o=null,s=null,a=[],l=!1,c=d3.format(",r"),u=d3.format(",.2f"),d=!0,h=!0,p=!1,f=null,m=d3.dispatch("renderEnd");d3.transition().duration(250).ease(d3.easeLinear);var g=e.utils.renderWatch(m);function v(f){return g.reset(),g.models(r),f.each(function(f){var m=d3.select(this);e.utils.initSVG(m);var g=e.utils.availableWidth(o,m,i),y=e.utils.availableHeight(s,m,i);if(v.update=function(){m.call(v)},v.container=this,!f||!f.length)return e.utils.noData(v,m),v;m.selectAll(".nv-noData").remove();var b=r.y()(f[f.length-1],f.length-1);t=r.xScale(),n=r.yScale();var _=m.selectAll("g.nv-wrap.nv-sparklineplus").data([f]),w=_.enter().append("g").attr("class","nvd3 nv-wrap nv-sparklineplus"),A=w.append("g");_.select("g");var x=A.append("g").attr("class","nv-sparklineWrap"),k=A.append("g").attr("class","nv-valueWrap"),S=A.append("g").attr("class","nv-hoverArea");if(w.attr("transform","translate("+i.left+","+i.top+")"),w.merge(_),r.width(g).height(y),x.call(r).merge(x),d){var E=k.selectAll(".nv-currentValue").data([b]),T=E.enter().append("text").attr("class","nv-currentValue").attr("dx",p?-8:8).attr("dy",".9em").style("text-anchor",p?"end":"start");T.attr("x",g+(p?i.right:0)).attr("y",h?function(e){return n(e)}:0).style("fill",r.color()(f[f.length-1],f.length-1)).text(u(b)),T.merge(E)}var D=S.append("rect").on("mousemove",function(e){if(!l){var n=d3.pointer(e)[0]-i.left;a=[function(e,t){for(var n=Math.abs(r.x()(e[0],0)-t),i=0,o=0;o<e.length;o++)Math.abs(r.x()(e[o],o)-t)<n&&(n=Math.abs(r.x()(e[o],o)-t),i=o);return i}(f,Math.round(t.invert(n)))],C()}}).on("click",function(){l=!l}).on("mouseout",function(){a=[],C()});function C(){if(!l){var e=S.selectAll(".nv-hoverValue").data(a);e.exit().transition().duration(250).style("stroke-opacity",0).style("fill-opacity",0).remove();var n=e.enter().append("g").attr("class","nv-hoverValue").style("stroke-opacity",0).style("fill-opacity",0);if(e.attr("transform",function(e){return"translate("+t(r.x()(f[e],e))+",0)"}).transition().duration(250).style("stroke-opacity",a.length?1:0).style("fill-opacity",a.length?1:0),!a.length)return void e.merge(e);n.append("line").attr("x1",0).attr("y1",-i.top).attr("x2",0).attr("y2",y),n.append("text").attr("class","nv-xValue").attr("x",-6).attr("y",-i.top).attr("text-anchor","end").attr("dy",".9em"),S.select(".nv-hoverValue .nv-xValue").text(c(r.x()(f[a[0]],a[0]))),n.append("text").attr("class","nv-yValue").attr("x",6).attr("y",-i.top).attr("text-anchor","start").attr("dy",".9em"),S.select(".nv-hoverValue .nv-yValue").text(u(r.y()(f[a[0]],a[0])))}}D.attr("transform",function(e){return"translate("+-i.left+","+-i.top+")"}).attr("width",g+i.left+i.right).attr("height",y+i.top),D.merge(S)}),g.renderEnd("sparklinePlus immediate"),v}return v.dispatch=m,v.sparkline=r,v.options=e.utils.optionsFunc.bind(v),v._options=Object.create({},{width:{get:function(){return o},set:function(e){o=e}},height:{get:function(){return s},set:function(e){s=e}},xTickFormat:{get:function(){return c},set:function(e){c=e}},yTickFormat:{get:function(){return u},set:function(e){u=e}},showLastValue:{get:function(){return d},set:function(e){d=e}},alignValue:{get:function(){return h},set:function(e){h=e}},rightAlignValue:{get:function(){return p},set:function(e){p=e}},noData:{get:function(){return f},set:function(e){f=e}},margin:{get:function(){return i},set:function(e){i.top=void 0!==e.top?e.top:i.top,i.right=void 0!==e.right?e.right:i.right,i.bottom=void 0!==e.bottom?e.bottom:i.bottom,i.left=void 0!==e.left?e.left:i.left}}}),e.utils.inheritOptions(v,r),e.utils.initOptions(v),v},e.models.stackedArea=function(){"use strict";var t,n,r={top:0,right:0,bottom:0,left:0},i=960,o=500,s=e.utils.defaultColor(),a=Math.floor(1e5*Math.random()),l=null,c=function(e){return e.x},u=function(e){return e.y},d=function(e,t){return!isNaN(u(e,t))&&null!==u(e,t)},h="stack",p=d3.stackOffsetNone,f=d3.stackOrderNone,m=getInterpolationType(m),g=!1,v=e.models.scatter(),y=250,b=function(e,t,n){e.display={y:n,y0:t}},_=function(e){return n(e.display.y+e.display.y0)},w=d3.dispatch("areaClick","areaMouseover","areaMouseout","renderEnd","elementClick","elementMouseover","elementMouseout");v.pointSize(2.2).pointDomain([2.2,2.2]);var A=e.utils.renderWatch(w,y);function x(h){return A.reset(),A.models(v),h.each(function(h){var y=i-r.left-r.right,b=o-r.top-r.bottom;l=d3.select(this),e.utils.initSVG(l),t=v.xScale(),n=v.yScale();var k=h;h.forEach(function(e,t){e.seriesIndex=t,e.values=e.values.map(function(e,n){return e.index=n,e.seriesIndex=t,e})});var S=h.filter(function(e){return!e.disabled}),E=[];S[0].values.forEach(function(e){E.push({x:e[0]})}),S.forEach(function(e,t,n){e.display={y:t,y0:n},e.values.forEach(function(t){E[t.index][e.key]=t[1]})});var T=S.map(e=>e.key);h=d3.stack().keys(T).order(f).offset(p).value(function(e,t){return e[t]})(E);var D=[];h.forEach(function(e,t){e.seriesIndex=t,e.x=Array.from(Array(e.length).keys());var n=[];e.map(function(e,r){return n.push({x:r,y:e[1]-e[0],y0:e[0],series:r,seriesIndex:t,index:r,display:{y:e[1]-e[0],y0:e[0]}}),n}),D.push({values:n,key:T[t],seriesIndex:t})}),h=D;var C=l.selectAll("g.nv-wrap.nv-stackedarea").data([h]).enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea");C.attr("transform","translate("+r.left+","+r.top+")");var M=C.append("defs"),I=C.append("g"),O=I.select("g"),L=I.append("g").attr("class","nv-areaWrap");L=l.selectAll("g.nv-wrap.nv-stackedarea").select(".nv-areaWrap");var N=I.append("g").attr("class","nv-scatterWrap");N=l.selectAll("g.nv-wrap.nv-stackedarea").select(".nv-scatterWrap"),0==v.forceY().length&&v.forceY().push(0),v.width(y).height(b).x(c).y(function(e){if(void 0!==e.display)return e.display.y+e.display.y0}).color(D.map(function(e,t){return e.color=e.color||s(e,e.seriesIndex),e.color})),N.datum(D).call(v),M.append("clipPath").attr("id","nv-edge-clip-"+a).append("rect").attr("width",y).attr("height",b),g&&I.attr("clip-path",g?"url(#nv-edge-clip-"+a+")":"");var P=d3.area().defined(d).x(function(e,n){return t(c(e,n))}).y0(function(e){return n(e.display.y0)}).y1(_).curve(getInterpolationType(m)),R=d3.area().defined(d).x(function(e,n){return t(c(e,n))}).y0(function(e){return n(e.display.y0)}).y1(function(e){return n(e.display.y0)}),j=L.selectAll("path.nv-area").data(function(e){return e});j.exit().remove();var F=j.enter().append("path").attr("class",function(e,t){return"nv-area nv-area-"+t}).attr("d",function(e,t){return R(e.values,e.seriesIndex)}).on("mouseover",function(e,t,n){d3.select(this).classed("hover",!0),w.call("areaMouseover",this,{point:t,series:t.key,pos:[e.pageX,e.pageY],seriesIndex:t.seriesIndex})}).on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1),w.call("areaMouseout",this,{point:t,series:t.key,pos:[e.pageX,e.pageY],seriesIndex:t.seriesIndex})}).on("click",function(e,t,n){d3.select(this).classed("hover",!1),w.call("areaClick",this,{point:t,series:t.key,pos:[e.pageX,e.pageY],seriesIndex:t.seriesIndex})});(F=F.merge(j)).style("fill",function(e,t){return e.color||s(e,e.seriesIndex)}).style("stroke",function(e,t,n){return t.color||s(t,t.seriesIndex)}),F.watchTransition(A,"stackedArea path").attr("d",function(e,t){return P(e.values,e.seriesIndex)}),v.dispatch.on("elementMouseover.area",function(e){O.select(".nv-chart-"+a+" .nv-area-"+e.seriesIndex).classed("hover",!0)}),v.dispatch.on("elementMouseout.area",function(e){O.select(".nv-chart-"+a+" .nv-area-"+e.seriesIndex).classed("hover",!1)}),x.d3_stackedOffset_stackPercent=function(e){var t,n,r,i=e.length,o=e[0].length,s=[];for(n=0;n<o;++n){for(t=0,r=0;t<k.length;t++)r+=u(k[t].values[n]);if(r)for(t=0;t<i;t++)e[t][n][1]/=r;else for(t=0;t<i;t++)e[t][n][1]=0}for(n=0;n<o;++n)s[n]=0;return s}}),A.renderEnd("stackedArea immediate"),x}return x.dispatch=w,x.scatter=v,v.dispatch.on("elementClick",function(){w.apply("elementClick",this,arguments)}),v.dispatch.on("elementMouseover",function(){w.apply("elementMouseover",this,arguments)}),v.dispatch.on("elementMouseout",function(){w.apply("elementMouseout",this,arguments)}),x.interpolate=function(e){return arguments.length?(m=e,x):m},x.duration=function(e){return arguments.length?(y=e,A.reset(y),v.duration(y),x):y},x.dispatch=w,x.scatter=v,x.options=e.utils.optionsFunc.bind(x),x._options=Object.create({},{width:{get:function(){return i},set:function(e){i=e}},height:{get:function(){return o},set:function(e){o=e}},defined:{get:function(){return d},set:function(e){d=e}},clipEdge:{get:function(){return g},set:function(e){g=e}},offset:{get:function(){return p},set:function(e){p=e}},order:{get:function(){return f},set:function(e){f=e}},interpolate:{get:function(){return m},set:function(e){m=e}},x:{get:function(){return c},set:function(e){c="function"==typeof e?e:function(){return e}}},y:{get:function(){return u},set:function(e){u="function"==typeof e?e:function(){return e}}},areaY1:{get:function(){return _},set:function(e){_="function"==typeof e?e:function(){return e}}},transformData:{get:function(){return b},set:function(e){b="function"==typeof e?e:function(){return e}}},margin:{get:function(){return r},set:function(e){r.top=void 0!==e.top?e.top:r.top,r.right=void 0!==e.right?e.right:r.right,r.bottom=void 0!==e.bottom?e.bottom:r.bottom,r.left=void 0!==e.left?e.left:r.left}},color:{get:function(){return s},set:function(t){s=e.utils.getColor(t)}},style:{get:function(){return h},set:function(e){switch(h=e){case"stack":x.offset(d3.stackOffsetNone),x.order(d3.stackOrderNone);break;case"stream":x.offset(d3.stackOffsetWiggle),x.order(d3.stackOrderInsideOut);break;case"stream_center":x.offset(d3.stackOffsetSilhouette),x.order(d3.stackOrderNone);break;case"expand":x.offset(d3.stackOffsetExpand),x.order(d3.stackOrderNone);break;case"stack_percent":x.offset(x.d3_stackedOffset_stackPercent),x.order(d3.stackOrderNone)}}},duration:{get:function(){return y},set:function(e){y=e,A.reset(y),v.duration(y)}}}),e.utils.inheritOptions(x,v),e.utils.initOptions(x),x},e.models.stackedAreaChart=function(){"use strict";var t,n,r=e.models.stackedArea(),i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=e.models.legend(),a=e.models.legend(),l=e.interactiveGuideline(),c=e.models.tooltip(),u=e.models.focus(e.models.stackedArea()),d={top:10,right:25,bottom:50,left:60},h=null,p=null,f=null,m=e.utils.defaultColor(),g=!0,v=!0,y="top",b=!0,_=!0,w=!1,A=!1,x=!1,k=!0,S="TOTAL",E=e.utils.state(),T=null,D=null,C=d3.dispatch("stateChange","changeState","renderEnd"),M=250,I=["Stacked","Stream","Expanded"],O={},L=250;d3.transition().duration(L).ease(d3.easeLinear);E.style=r.style(),i.tickPadding(7),c.headerFormatter(function(e,t){return i.tickFormat()(e,t)}).valueFormatter(function(e,t){return o.tickFormat()(e,t)}),l.tooltip.headerFormatter(function(e,t){return i.tickFormat()(e,t)}).valueFormatter(function(e,t){return null==e?"N/A":o.tickFormat()(e,t)});var N=null,P=null;a.updateState(!1);var R=e.utils.renderWatch(C),j=(r.style(),d3.format(".0%"));function F(c){return R.reset(),R.models(r),b&&R.models(i),_&&R.models(o),c.each(function(c){var D,R,B=d3.select(this);e.utils.initSVG(B);var Y,V,H=e.utils.availableWidth(p,B,d),U=e.utils.availableHeight(f,B,d)-(A?u.height():0);if(F.update=function(){B.transition().duration(L).call(F)},F.container=this,E.setter((Y=c,function(e){void 0!==e.style&&e.style,void 0!==e.active&&Y.forEach(function(t,n){t.disabled=!e.active[n]})}),F.update).getter((V=c,function(){return{active:V.map(function(e){return!e.disabled}),style:r.style()}})).update(),E.disabled=c.map(function(e){return!!e.disabled}),!T)for(D in T={},E)E[D]instanceof Array?T[D]=E[D].slice(0):T[D]=E[D];if(!c||!c.length||!c.filter(function(e){return e.values.length}).length)return e.utils.noData(F,B),F;B.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var z=B.selectAll("g.nv-wrap.nv-stackedAreaChart").data([c]).enter().append("g").attr("class","nvd3 nv-wrap nv-stackedAreaChart"),q=z.append("g");z.select("g");var W=q.append("g").attr("class","nv-legendWrap");W=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-legendWrap");var $=q.append("g").attr("class","nv-controlsWrap");$=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-controlsWrap");var G=q.append("g").attr("class","nv-focus"),K=G.append("g").attr("class","nv-background").append("rect"),Z=G.append("g").attr("class","nv-x nv-axis");Z=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-x");var X=G.append("g").attr("class","nv-y nv-axis");X=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-y");var Q=G.append("g").attr("class","nv-stackedWrap");Q=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-stackedWrap");var J=G.append("g").attr("class","nv-interactive");J=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-interactive");var ee=q.append("g").attr("class","nv-focusWrap");if(ee=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-focusWrap"),v){var te=g&&"top"===y?H-M:H;if(s.width(te),W.datum(c).call(s),"bottom"===y){var ne=i.height();d.bottom=Math.max(s.height()+ne,d.bottom);var re=(U=e.utils.availableHeight(f,B,d)-(A?u.height():0))+ne;W.attr("transform","translate(0,"+re+")")}else"top"===y&&(h||d.top==s.height()||(d.top=s.height(),U=e.utils.availableHeight(f,B,d)-(A?u.height():0)),W.attr("transform","translate("+(H-te)+","+-d.top+")"))}else W.selectAll("*").remove();if(z.attr("transform","translate("+d.left+","+d.top+")"),g){var ie=[{key:O.stacked||"Stacked",metaKey:"Stacked",disabled:"stack"!=r.style(),style:"stack"},{key:O.stream||"Stream",metaKey:"Stream",disabled:"stream"!=r.style(),style:"stream"},{key:O.stream_center||"Stream Center",metaKey:"Stream_Center",disabled:"stream_center"!=r.style(),style:"stream_center"},{key:O.expanded||"Expanded",metaKey:"Expanded",disabled:"expand"!=r.style(),style:"expand"},{key:O.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:"stack_percent"!=r.style(),style:"stack_percent"}];M=I.length/3*260,ie=ie.filter(function(e){return-1!==I.indexOf(e.metaKey)}),a.width(M).color(["#444","#444","#444"]),$.datum(ie).call(a);var oe=Math.max(a.height(),v&&"top"===y?s.height():0);d.top!=oe&&(d.top=oe,U=e.utils.availableHeight(f,B,d)-(A?u.height():0)),$.attr("transform","translate(0,"+-d.top+")")}else $.selectAll("*").remove();function se(){b&&Z.attr("transform","translate(0,"+U+")").transition().duration(L).call(i)}function ae(){if(_){if("expand"===r.style()||"stack_percent"===r.style()){var e=o.tickFormat();N&&e===j||(N=e),o.tickFormat(j)}else N&&(o.tickFormat(N),N=null);X.transition().call(o)}}if(w&&X.attr("transform","translate("+H+",0)"),x&&(l.width(H).height(U).margin({left:d.left,top:d.top}).svgContainer(B).xScale(t),J.call(l)),K.attr("width",H).attr("height",U),r.width(H).height(U).color(c.map(function(e,t){return e.color||m(e,t)}).filter(function(e,t){return!c[t].disabled})),Q.datum(c.filter(function(e){return!e.disabled})),b&&(i.scale(t)._ticks(e.utils.calcTicksX(H/100,c)),i.tickSizeInner(-U)),_&&(R=r.offset()===d3.stackOffsetWiggle?0:e.utils.calcTicksY(U/36,c),o.scale(n)._ticks(R),o.tickSizeInner(-H)),A){u.width(H),ee.attr("transform","translate(0,"+(U+d.bottom+u.margin().top)+")").datum(c.filter(function(e){return!e.disabled})).call(u);var le=null==d3.event||null===d3.event.selection?u.xDomain():u.brush.selection();null!==le&&ce(le)}else Q.transition().call(r),se(),ae();function ce(e){Q.datum(c.filter(function(e){return!e.disabled}).map(function(t,n){return{key:t.key,area:t.area,classed:t.classed,values:t.values.filter(function(t,n){return r.x()(t,n)>=e[0]&&r.x()(t,n)<=e[1]}),disableTooltip:t.disableTooltip}})),Q.transition().duration(L).call(r),se(),ae()}r.dispatch.on("areaClick.toggle",function(e){1===c.filter(function(e){return!e.disabled}).length?c.forEach(function(e){e.disabled=!1}):c.forEach(function(t,n){t.disabled=n!=e.seriesIndex}),E.disabled=c.map(function(e){return!!e.disabled}),C.call("stateChange",this,E),F.update()}),s.dispatch.on("stateChange",function(e){for(var t in e)E[t]=e[t];C.call("stateChange",this,e),F.update()}),a.dispatch.on("legendClick",function(e,t,n){t.disabled&&(ie=ie.map(function(e){return e.disabled=!0,e}),t.disabled=!1,r.style(t.style),E.style=r.style(),C.call("stateChange",this,E),F.update())}),l.dispatch.on("elementMousemove",function(t){r.clearHighlights();var n,i,o,s=[],a=0,u=!0,d=!1;if(c.filter(function(e,t){return e.seriesIndex=t,!e.disabled}).forEach(function(l,h){i=e.interactiveBisect(l.values,t.pointXValue,function(e,t){return e[0]});var p=l.values[i],f=F.y()({x:p[0],y:p[1]},i);if(null!=f&&f>0&&(r.highlightPoint(h,i,!0),d=!0),h!==c.length-1||d||r.highlightPoint(h,i,!0),void 0!==p){void 0===n&&(n=p),void 0===o&&(o=F.xScale()(F.x()({x:p[0],y:p[1]},i)));var g="expand"==r.style()?p[1]:F.y()({x:p[0],y:p[1]},i);s.push({key:l.key,value:+g,color:m(l,l.seriesIndex),point:p}),k&&"expand"!=r.style()&&null!=g&&(a+=+g,u=!1)}}),s.reverse(),s.length>2){var h=F.yScale().invert(t.mouseY),p=null;s.forEach(function(e,t){h=Math.abs(h);var n=Math.abs(e.point[0]),r=Math.abs(e.point[1]);h>=n&&h<=r+n&&(p=t)}),null!=p&&(s[p].highlight=!0)}k&&"expand"!=r.style()&&s.length>=2&&!u&&s.push({key:S,value:a,total:!0});var f=F.x()({x:n[0],y:n[1]},i),g=l.tooltip.valueFormatter();"expand"===r.style()||"stack_percent"===r.style()?(P||(P=g),g=d3.format(".1%")):P&&(g=P,P=null),l.tooltip.valueFormatter(g).data({value:f,series:s})(),l.renderGuideLine(o)}),l.dispatch.on("elementMouseout",function(e){r.clearHighlights()}),u.dispatch.on("onBrush",function(e){ce(e)}),C.on("changeState",function(e){void 0!==e.disabled&&c.length===e.disabled.length&&(c.forEach(function(t,n){t.disabled=e.disabled[n]}),E.disabled=e.disabled),void 0!==e.style&&(r.style(e.style),e.style),F.update()})}),R.renderEnd("stacked Area chart immediate"),F}return r.dispatch.on("elementMouseover.tooltip",function(e){e.point.x=r.x()(e.point),e.point.y=r.y()(e.point),c.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){c.hidden(!0)}),F.dispatch=C,F.stacked=r,F.legend=s,F.controls=a,F.xAxis=i,F.x2Axis=u.xAxis,F.yAxis=o,F.y2Axis=u.yAxis,F.interactiveLayer=l,F.tooltip=c,F.focus=u,F.dispatch=C,F.options=e.utils.optionsFunc.bind(F),F._options=Object.create({},{width:{get:function(){return p},set:function(e){p=e}},height:{get:function(){return f},set:function(e){f=e}},showLegend:{get:function(){return v},set:function(e){v=e}},legendPosition:{get:function(){return y},set:function(e){y=e}},showXAxis:{get:function(){return b},set:function(e){b=e}},showYAxis:{get:function(){return _},set:function(e){_=e}},defaultState:{get:function(){return T},set:function(e){T=e}},noData:{get:function(){return D},set:function(e){D=e}},showControls:{get:function(){return g},set:function(e){g=e}},controlLabels:{get:function(){return O},set:function(e){O=e}},controlOptions:{get:function(){return I},set:function(e){I=e}},showTotalInTooltip:{get:function(){return k},set:function(e){k=e}},totalLabel:{get:function(){return S},set:function(e){S=e}},focusEnable:{get:function(){return A},set:function(e){A=e}},focusHeight:{get:function(){return u.height()},set:function(e){u.height(e)}},brushExtent:{get:function(){return u.brushExtent()},set:function(e){u.brushExtent(e)}},margin:{get:function(){return d},set:function(e){void 0!==e.top&&(d.top=e.top,h=e.top),d.right=void 0!==e.right?e.right:d.right,d.bottom=void 0!==e.bottom?e.bottom:d.bottom,d.left=void 0!==e.left?e.left:d.left}},focusMargin:{get:function(){return u.margin},set:function(e){u.margin.top=void 0!==e.top?e.top:u.margin.top,u.margin.right=void 0!==e.right?e.right:u.margin.right,u.margin.bottom=void 0!==e.bottom?e.bottom:u.margin.bottom,u.margin.left=void 0!==e.left?e.left:u.margin.left}},duration:{get:function(){return L},set:function(e){L=e,R.reset(L),d3.transition().duration(L).ease(d3.easeLinear),r.duration(L),i.duration(L),o.duration(L)}},color:{get:function(){return m},set:function(t){m=e.utils.getColor(t),s.color(m),r.color(m),u.color(m)}},x:{get:function(){return r.x()},set:function(e){r.x(e),u.x(e)}},y:{get:function(){return r.y()},set:function(e){r.y(e),u.y(e)}},rightAlignYAxis:{get:function(){return w},set:function(e){w=e}},useInteractiveGuideline:{get:function(){return x},set:function(e){x=!!e,F.interactive(!e),F.useVoronoi(!e),r.scatter.interactive(!e)}}}),e.utils.inheritOptions(F,r),e.utils.initOptions(F),F},e.models.stackedAreaWithFocusChart=function(){return e.models.stackedAreaChart().margin({bottom:30}).focusEnable(!0)},e.models.sunburst=function(){"use strict";var t,n,r,i,o={top:0,right:0,bottom:0,left:0},s=600,a=600,l="count",c={count:function(e){return 1},value:function(e){return e.value||e.size},size:function(e){return e.value||e.size}},u=Math.floor(1e4*Math.random()),d=null,h=e.utils.defaultColor(),p=!1,f=function(e){return"count"===l?e.name+" #"+e.value:e.name+" "+(e.value||e.size)},m=.02,g=function(e,t){return e.name>t.name},v=function(e,t){return void 0!==e.parent?e.name+"-"+e.parent.name+"-"+t:e.name},y=!0,b=500,_=(d3.transition().duration(b).ease(d3.easeLinear),d3.dispatch("chartClick","elementClick","elementDblClick","elementMousemove","elementMouseover","elementMouseout","renderEnd")),w=d3.scaleLinear().range([0,2*Math.PI]),A=d3.scaleSqrt(),x=d3.partition(),k={},S=d3.arc().startAngle(function(e){return Math.max(0,Math.min(2*Math.PI,w(e.x)))}).endAngle(function(e){return Math.max(0,Math.min(2*Math.PI,w(e.x+e.dx)))}).innerRadius(function(e){return Math.max(0,A(e.y))}).outerRadius(function(e){return Math.max(0,A(e.y+e.dy))});function E(e){return T(e)>90?180:0}function T(e){return(Math.max(0,Math.min(2*Math.PI,w(e.x)))+Math.max(0,Math.min(2*Math.PI,w(e.x+e.dx))))/2*(180/Math.PI)-90}function D(e){var t=Math.max(0,Math.min(2*Math.PI,w(e.x)));return Math.max(0,Math.min(2*Math.PI,w(e.x+e.dx)))-t>m}function C(e,n){var r=d3.interpolate(w.domain(),[t.x,t.x+t.dx]),o=d3.interpolate(A.domain(),[t.y,1]),s=d3.interpolate(A.range(),[t.y?20:0,i]);return 0===n?function(){return S(e)}:function(t){return w.domain(r(t)),A.domain(o(t)).range(s(t)),S(e)}}function M(e){var t=d3.interpolate({x:e.x0,dx:e.x1-e.x0,y:e.y0,dy:e.y1-e.y0},e);return function(n){var r=t(n);return e.x0=r.x,e.x1=r.x+r.dx,e.y0=r.y,e.y1=r.y+r.dy,S(r)}}function I(e){var n=d.selectAll("text"),r=d.selectAll("path");n.transition().attr("opacity",0),t=e,r.transition().duration(b).attrTween("d",C).each("end",function(t){t.x>=e.x&&t.x<e.x+e.dx&&t.depth>=e.depth&&d3.select(this.parentNode).select("text").transition().duration(b).text(function(e){return f(e)}).attr("opacity",function(e){return D(e)?1:0}).attr("transform",function(){var n=this.getBBox().width;if(0===t.depth)return"translate("+-n/2*1+",0)";if(t.depth===e.depth)return"translate("+(A(t.y)+5)+",0)";var r=T(t),i=E(t);return 0===i?"rotate("+r+")translate("+(A(t.y)+5)+",0)":"rotate("+r+")translate("+(A(t.y)+n+5)+",0)rotate("+i+")"})})}var O=e.utils.renderWatch(_);function L(t){return O.reset(),t.each(function(t){d=d3.select(this),i=Math.min(n=e.utils.availableWidth(s,d,o),r=e.utils.availableHeight(a,d,o))/2,A.range([0,i]);var m=d.select("g.nvd3.nv-wrap.nv-sunburst");m[0]&&m[0][0]?m.attr("transform","translate("+(n/2+o.left+o.right)+","+(r/2+o.top+o.bottom)+")"):m=d.append("g").attr("class","nvd3 nv-wrap nv-sunburst nv-chart-"+u).attr("transform","translate("+(n/2+o.left+o.right)+","+(r/2+o.top+o.bottom)+")"),d.on("click",function(e,t,n){_.call("chartClick",this,{data:t,index:t.index,pos:e,id:u})}),x(c[l]||c.count);var g=x.nodes(t[0]).reverse();!function(e){e.forEach(function(e){var t,n,r,i=k[v(e)];i?(e.x1=i.x+i.dx,e.x0=i.x,e.y1=i.y+i.dy,e.y0=i.y):(e.x1=e.x+e.dx,e.x0=e.x,e.y1=e.y+e.dy,e.y0=e.y),k[n=v(t=e)]||(k[n]={}),(r=k[n]).dx=t.dx,r.x=t.x,r.dy=t.dy,r.y=t.y})}(g);var C=m.selectAll(".arc-container").data(g,v);C.enter().append("g").attr("class","arc-container").append("path").attr("d",S).style("fill",function(e){return e.color?e.color:h(y?(e.children?e:e.parent).name:e.name)}).style("stroke","#FFF").on("click",function(e,t,n){I(t),_.call("elementClick",this,{data:t,index:t.index})}).on("mouseover",function(e,t,n){var r,i;setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0).style("opacity",.8),_.call("elementMouseover",this,{data:t,color:d3.select(this).style("fill"),percent:(i=Math.max(0,Math.min(2*Math.PI,w((r=t).x))),(Math.max(0,Math.min(2*Math.PI,w(r.x+r.dx)))-i)/(2*Math.PI))})}).on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1).style("opacity",1),_.call("elementMouseout",this,{data:t})}).on("mousemove",function(e,t,n){_.call("elementMousemove",this,{data:t})}),C.each(function(e){d3.select(this).select("path").transition().duration(b).attrTween("d",M)}),p&&(C.selectAll("text").remove(),C.append("text").text(function(e){return f(e)}).transition().duration(b).attr("opacity",function(e){return D(e)?1:0}).attr("transform",function(e){var t=this.getBBox().width;if(0===e.depth)return"rotate(0)translate("+-t/2*1+",0)";var n=T(e),r=E(e);return 0===r?"rotate("+n+")translate("+(A(e.y)+5)+",0)":"rotate("+n+")translate("+(A(e.y)+t+5)+",0)rotate("+r+")"})),I(g[g.length-1]),C.exit().transition().duration(b).attr("opacity",0).each("end",function(e){k[v(e)]=void 0}).remove()}),O.renderEnd("sunburst immediate"),L}return L.dispatch=_,L.options=e.utils.optionsFunc.bind(L),L._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},mode:{get:function(){return l},set:function(e){l=e}},id:{get:function(){return u},set:function(e){u=e}},duration:{get:function(){return b},set:function(e){b=e,d3.transition().duration(b).ease(d3.easeLinear)}},groupColorByParent:{get:function(){return y},set:function(e){y=!!e}},showLabels:{get:function(){return p},set:function(e){p=!!e}},labelFormat:{get:function(){return f},set:function(e){f=e}},labelThreshold:{get:function(){return m},set:function(e){m=e}},sort:{get:function(){return g},set:function(e){g=e}},key:{get:function(){return v},set:function(e){v=e}},margin:{get:function(){return o},set:function(e){o.top=null!=e.top?e.top:o.top,o.right=null!=e.right?e.right:o.right,o.bottom=null!=e.bottom?e.bottom:o.bottom,o.left=null!=e.left?e.left:o.left}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t)}}}),e.utils.initOptions(L),L},e.models.sunburstChart=function(){"use strict";var t=e.models.sunburst(),n=e.models.tooltip(),r={top:30,right:20,bottom:20,left:20},i=e.utils.defaultColor(),o=!1,s=null,a=null,l=250,c=(d3.transition().duration(l).ease(d3.easeLinear),d3.dispatch("stateChange","changeState","renderEnd")),u=e.utils.renderWatch(c);function d(n){return u.reset(),u.models(t),n.each(function(n){var i=d3.select(this);e.utils.initSVG(i);var o=e.utils.availableWidth(null,i,r),s=e.utils.availableHeight(null,i,r);if(d.update=function(){0===l?i.call(d):i.transition().duration(l).call(d)},d.container=i,!n||!n.length)return e.utils.noData(d,i),d;i.selectAll(".nv-noData").remove(),t.width(o).height(s).margin(r),i.call(t)}),u.renderEnd("sunburstChart immediate"),d}return n.duration(0).headerEnabled(!1).valueFormatter(function(e){return e}),t.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:e.data.name,value:e.data.value||e.data.size,color:e.color,percent:e.percent},o||(delete e.percent,delete e.series.percent),n.data(e).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(e){n.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(e){n()}),d.dispatch=c,d.sunburst=t,d.tooltip=n,d.options=e.utils.optionsFunc.bind(d),d._options=Object.create({},{noData:{get:function(){return a},set:function(e){a=e}},defaultState:{get:function(){return s},set:function(e){s=e}},showTooltipPercent:{get:function(){return o},set:function(e){o=e}},color:{get:function(){return i},set:function(e){i=e,t.color(i)}},duration:{get:function(){return l},set:function(e){l=e,u.reset(l),d3.transition().duration(l).ease(d3.easeLinear),t.duration(l)}},margin:{get:function(){return r},set:function(e){r.top=void 0!==e.top?e.top:r.top,r.right=void 0!==e.right?e.right:r.right,r.bottom=void 0!==e.bottom?e.bottom:r.bottom,r.left=void 0!==e.left?e.left:r.left,t.margin(r)}}}),e.utils.inheritOptions(d,t),e.utils.initOptions(d),d},e.version="1.8.13"}(),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=Object.getPrototypeOf,i=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,a=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,h=d.call(Object),p={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,i,o=(n=n||g).createElement("script");if(o.text=e,t)for(r in v)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var _="3.7.1",w=/HTML$/i,A=function(e,t){return new A.fn.init(e,t)};function x(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!f(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}A.fn=A.prototype={jquery:_,constructor:A,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=A.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return A.each(this,e)},map:function(e){return this.pushStack(A.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(A.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},A.extend=A.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||f(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(c&&r&&(A.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||A.isPlainObject(n)?n:{},i=!1,s[t]=A.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},A.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e)||(t=r(e))&&("function"!=typeof(n=u.call(t,"constructor")&&t.constructor)||d.call(n)!==h))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(x(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=A.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(x(Object(e))?A.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!w.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,s=0,a=[];if(x(e))for(r=e.length;s<r;s++)null!=(i=t(e[s],s,n))&&a.push(i);else for(s in e)null!=(i=t(e[s],s,n))&&a.push(i);return o(a)},guid:1,support:p}),"function"==typeof Symbol&&(A.fn[Symbol.iterator]=n[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var S=n.pop,E=n.sort,T=n.splice,D="[\\x20\\t\\r\\n\\f]",C=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");A.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var M=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function I(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}A.escapeSelector=function(e){return(e+"").replace(M,I)};var O=g,L=s;!function(){var t,r,o,s,l,c,d,h,f,m,g=L,v=A.expando,y=0,b=0,_=ee(),w=ee(),x=ee(),M=ee(),I=function(e,t){return e===t&&(l=!0),0},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+D+"*("+P+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+D+"*\\]",j=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",F=new RegExp(D+"+","g"),B=new RegExp("^"+D+"*,"+D+"*"),Y=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),V=new RegExp(D+"|>"),H=new RegExp(j),U=new RegExp("^"+P+"$"),z={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,K=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),Z=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){le()},Q=he(function(e){return!0===e.disabled&&k(e,"fieldset")},{dir:"parentNode",next:"legend"});try{g.apply(n=i.call(O.childNodes),O.childNodes),n[O.childNodes.length].nodeType}catch(t){g={apply:function(e,t){L.apply(e,i.call(t))},call:function(e){L.apply(e,i.call(arguments,1))}}}function J(e,t,n,r){var i,o,s,a,l,u,d,m=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||c,h)){if(11!==y&&(l=$.exec(e)))if(i=l[1]){if(9===y){if(!(s=t.getElementById(i)))return n;if(s.id===i)return g.call(n,s),n}else if(m&&(s=m.getElementById(i))&&J.contains(t,s)&&s.id===i)return g.call(n,s),n}else{if(l[2])return g.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}if(!(M[e+" "]||f&&f.test(e))){if(d=e,m=t,1===y&&(V.test(e)||Y.test(e))){for((m=G.test(e)&&ae(t.parentNode)||t)==t&&p.scope||((a=t.getAttribute("id"))?a=A.escapeSelector(a):t.setAttribute("id",a=v)),o=(u=ue(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+de(u[o]);d=u.join(",")}try{return g.apply(n,m.querySelectorAll(d)),n}catch(t){M(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return ye(e.replace(C,"$1"),t,n,r)}function ee(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function te(e){return e[v]=!0,e}function ne(e){var t=c.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return k(t,"input")&&t.type===e}}function ie(e){return function(t){return(k(t,"input")||k(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Q(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te(function(t){return t=+t,te(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var t,n=e?e.ownerDocument||e:O;return n!=c&&9===n.nodeType&&n.documentElement&&(d=(c=n).documentElement,h=!A.isXMLDoc(c),m=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&O!=c&&(t=c.defaultView)&&t.top!==t&&t.addEventListener("unload",X),p.getById=ne(function(e){return d.appendChild(e).id=A.expando,!c.getElementsByName||!c.getElementsByName(A.expando).length}),p.disconnectedMatch=ne(function(e){return m.call(e,"*")}),p.scope=ne(function(){return c.querySelectorAll(":scope")}),p.cssHas=ne(function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),p.getById?(r.filter.ID=function(e){var t=e.replace(K,Z);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(K,Z);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},r.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},f=[],ne(function(e){var t;d.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+D+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+v+"-]").length||f.push("~="),e.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll(":checked").length||f.push(":checked"),(t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")}),p.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),I=function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===c||e.ownerDocument==O&&J.contains(O,e)?-1:t===c||t.ownerDocument==O&&J.contains(O,t)?1:s?a.call(s,e)-a.call(s,t):0:4&n?-1:1)}),c}for(t in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),h&&!M[t+" "]&&(!f||!f.test(t)))try{var n=m.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){M(t,!0)}return 0<J(t,c,null,[e]).length},J.contains=function(e,t){return(e.ownerDocument||e)!=c&&le(e),A.contains(e,t)},J.attr=function(e,t){(e.ownerDocument||e)!=c&&le(e);var n=r.attrHandle[t.toLowerCase()],i=n&&u.call(r.attrHandle,t.toLowerCase())?n(e,t,!h):void 0;return void 0!==i?i:e.getAttribute(t)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},A.uniqueSort=function(e){var t,n=[],r=0,o=0;if(l=!p.sortStable,s=!p.sortStable&&i.call(e,0),E.call(e,I),l){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)T.call(e,n[r],1)}return s=null,e},A.fn.uniqueSort=function(){return this.pushStack(A.uniqueSort(i.apply(this)))},(r=A.expr={cacheLength:50,createPseudo:te,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(K,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(K,Z),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||J.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&J.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(K,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return k(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=J.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1<i.indexOf(n):"$="===t?n&&i.slice(-n.length)===n:"~="===t?-1<(" "+i.replace(F," ")+" ").indexOf(n):"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,p,f=o!==s?"nextSibling":"previousSibling",m=t.parentNode,g=a&&t.nodeName.toLowerCase(),b=!l&&!a,_=!1;if(m){if(o){for(;f;){for(d=t;d=d[f];)if(a?k(d,g):1===d.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&b){for(_=(h=(c=(u=m[v]||(m[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[f]||(_=h=0)||p.pop();)if(1===d.nodeType&&++_&&d===t){u[e]=[y,h,_];break}}else if(b&&(_=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===_)for(;(d=++h&&d&&d[f]||(_=h=0)||p.pop())&&(!(a?k(d,g):1===d.nodeType)||!++_||(b&&((u=d[v]||(d[v]={}))[e]=[y,_]),d!==t)););return(_-=i)===r||_%r==0&&0<=_/r}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return i[v]?i(t):1<i.length?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,n){for(var r,o=i(e,t),s=o.length;s--;)e[r=a.call(e,o[s])]=!(n[r]=o[s])}):function(e){return i(e,0,n)}):i}},pseudos:{not:te(function(e){var t=[],n=[],r=ve(e.replace(C,"$1"));return r[v]?te(function(e,t,n,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:te(function(e){return function(t){return 0<J(e,t).length}}),contains:te(function(e){return e=e.replace(K,Z),function(t){return-1<(t.textContent||A.text(t)).indexOf(e)}}),lang:te(function(e){return U.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(K,Z).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===function(){try{return c.activeElement}catch(e){}}()&&c.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return k(e,"input")&&!!e.checked||k(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)},input:function(e){return q.test(e.nodeName)},button:function(e){return k(e,"input")&&"button"===e.type||k(e,"button")},text:function(e){var t;return k(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se(function(){return[0]}),last:se(function(e,t){return[t-1]}),eq:se(function(e,t,n){return[n<0?n+t:n]}),even:se(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:se(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:se(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:se(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=re(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ie(t);function ce(){}function ue(e,t){var n,i,o,s,a,l,c,u=w[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=r.preFilter;a;){for(s in n&&!(i=B.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),n=!1,(i=Y.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(C," ")}),a=a.slice(n.length)),r.filter)!(i=z[s].exec(a))||c[s]&&!(i=c[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?J.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function he(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,l){var c,u,d=[y,a];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(u=t[v]||(t[v]={}),i&&k(t,i))t=t[r]||t;else{if((c=u[o])&&c[0]===y&&c[1]===a)return d[2]=c[2];if((u[o]=d)[2]=e(t,n,l))return!0}return!1}}function pe(e){return 1<e.length?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function fe(e,t,n,r,i){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function me(e,t,n,r,i,o){return r&&!r[v]&&(r=me(r)),i&&!i[v]&&(i=me(i,o)),te(function(o,s,l,c){var u,d,h,p,f=[],m=[],v=s.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)J(e,t[r],n);return n}(t||"*",l.nodeType?[l]:l,[]),b=!e||!o&&t?y:fe(y,f,e,l,c);if(n?n(b,p=i||(o?e:v||r)?[]:s,l,c):p=b,r)for(u=fe(p,m),r(u,[],l,c),d=u.length;d--;)(h=u[d])&&(p[m[d]]=!(b[m[d]]=h));if(o){if(i||e){if(i){for(u=[],d=p.length;d--;)(h=p[d])&&u.push(b[d]=h);i(null,p=[],u,c)}for(d=p.length;d--;)(h=p[d])&&-1<(u=i?a.call(o,h):f[d])&&(o[u]=!(s[u]=h))}}else p=fe(p===s?p.splice(v,p.length):p),i?i(null,s,p,c):g.apply(s,p)})}function ge(e){for(var t,n,i,s=e.length,l=r.relative[e[0].type],c=l||r.relative[" "],u=l?1:0,d=he(function(e){return e===t},c,!0),h=he(function(e){return-1<a.call(t,e)},c,!0),p=[function(e,n,r){var i=!l&&(r||n!=o)||((t=n).nodeType?d(e,n,r):h(e,n,r));return t=null,i}];u<s;u++)if(n=r.relative[e[u].type])p=[he(pe(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[v]){for(i=++u;i<s&&!r.relative[e[i].type];i++);return me(1<u&&pe(p),1<u&&de(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(C,"$1"),n,u<i&&ge(e.slice(u,i)),i<s&&ge(e=e.slice(i)),i<s&&de(e))}p.push(n)}return pe(p)}function ve(e,t){var n,i,s,a,l,u,d=[],p=[],f=x[e+" "];if(!f){for(t||(t=ue(e)),n=t.length;n--;)(f=ge(t[n]))[v]?d.push(f):p.push(f);(f=x(e,(i=p,a=0<(s=d).length,l=0<i.length,u=function(e,t,n,u,d){var p,f,m,v=0,b="0",_=e&&[],w=[],x=o,k=e||l&&r.find.TAG("*",d),E=y+=null==x?1:Math.random()||.1,T=k.length;for(d&&(o=t==c||t||d);b!==T&&null!=(p=k[b]);b++){if(l&&p){for(f=0,t||p.ownerDocument==c||(le(p),n=!h);m=i[f++];)if(m(p,t||c,n)){g.call(u,p);break}d&&(y=E)}a&&((p=!m&&p)&&v--,e&&_.push(p))}if(v+=b,a&&b!==v){for(f=0;m=s[f++];)m(_,w,t,n);if(e){if(0<v)for(;b--;)_[b]||w[b]||(w[b]=S.call(u));w=fe(w)}g.apply(u,w),d&&!e&&0<w.length&&1<v+s.length&&A.uniqueSort(u)}return d&&(y=E,o=x),_},a?te(u):u))).selector=e}return f}function ye(e,t,n,i){var o,s,a,l,c,u="function"==typeof e&&e,d=!i&&ue(e=u.selector||e);if(n=n||[],1===d.length){if(2<(s=d[0]=d[0].slice(0)).length&&"ID"===(a=s[0]).type&&9===t.nodeType&&h&&r.relative[s[1].type]){if(!(t=(r.find.ID(a.matches[0].replace(K,Z),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=z.needsContext.test(e)?0:s.length;o--&&(a=s[o],!r.relative[l=a.type]);)if((c=r.find[l])&&(i=c(a.matches[0].replace(K,Z),G.test(s[0].type)&&ae(t.parentNode)||t))){if(s.splice(o,1),!(e=i.length&&de(s)))return g.apply(n,i),n;break}}return(u||ve(e,d))(i,t,!h,n,!t||G.test(e)&&ae(t.parentNode)||t),n}ce.prototype=r.filters=r.pseudos,r.setFilters=new ce,p.sortStable=v.split("").sort(I).join("")===v,le(),p.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(c.createElement("fieldset"))}),A.find=J,A.expr[":"]=A.expr.pseudos,A.unique=A.uniqueSort,J.compile=ve,J.select=ye,J.setDocument=le,J.tokenize=ue,J.escape=A.escapeSelector,J.getText=A.text,J.isXML=A.isXMLDoc,J.selectors=A.expr,J.support=A.support,J.uniqueSort=A.uniqueSort}();var N=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&A(e).is(n))break;r.push(e)}return r},P=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},R=A.expr.match.needsContext,j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){return f(t)?A.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?A.grep(e,function(e){return e===t!==n}):"string"!=typeof t?A.grep(e,function(e){return-1<a.call(t,e)!==n}):A.filter(t,e,n)}A.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?A.find.matchesSelector(r,e)?[r]:[]:A.find.matches(e,A.grep(t,function(e){return 1===e.nodeType}))},A.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(A(e).filter(function(){for(t=0;t<r;t++)if(A.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)A.find(e,i[t],n);return 1<r?A.uniqueSort(n):n},filter:function(e){return this.pushStack(F(this,e||[],!1))},not:function(e){return this.pushStack(F(this,e||[],!0))},is:function(e){return!!F(this,"string"==typeof e&&R.test(e)?A(e):e||[],!1).length}});var B,Y=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(A.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||B,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Y.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),j.test(r[1])&&A.isPlainObject(t))for(r in t)f(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=g.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==n.ready?n.ready(e):e(A):A.makeArray(e,this)}).prototype=A.fn,B=A(g);var V=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function U(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}A.fn.extend({has:function(e){var t=A(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(A.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&A(e);if(!R.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&A.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?A.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?a.call(A(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),A.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return N(e,"parentNode")},parentsUntil:function(e,t,n){return N(e,"parentNode",n)},next:function(e){return U(e,"nextSibling")},prev:function(e){return U(e,"previousSibling")},nextAll:function(e){return N(e,"nextSibling")},prevAll:function(e){return N(e,"previousSibling")},nextUntil:function(e,t,n){return N(e,"nextSibling",n)},prevUntil:function(e,t,n){return N(e,"previousSibling",n)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),A.merge([],e.childNodes))}},function(e,t){A.fn[e]=function(n,r){var i=A.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=A.filter(r,i)),1<this.length&&(H[e]||A.uniqueSort(i),V.test(e)&&i.reverse()),this.pushStack(i)}});var z=/[^\x20\t\r\n\f]+/g;function q(e){return e}function W(e){throw e}function $(e,t,n,r){var i;try{e&&f(i=e.promise)?i.call(e).done(t).fail(n):e&&f(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}A.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},A.each(t.match(z)||[],function(e,t){n[t]=!0}),n):A.extend({},e);var r,i,o,s,a=[],l=[],c=-1,u=function(){for(s=s||e.once,o=r=!0;l.length;c=-1)for(i=l.shift();++c<a.length;)!1===a[c].apply(i[0],i[1])&&e.stopOnFalse&&(c=a.length,i=!1);e.memory||(i=!1),r=!1,s&&(a=i?[]:"")},d={add:function(){return a&&(i&&!r&&(c=a.length-1,l.push(i)),function t(n){A.each(n,function(n,r){f(r)?e.unique&&d.has(r)||a.push(r):r&&r.length&&"string"!==b(r)&&t(r)})}(arguments),i&&!r&&u()),this},remove:function(){return A.each(arguments,function(e,t){for(var n;-1<(n=A.inArray(t,a,n));)a.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<A.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=i="",this},disabled:function(){return!a},lock:function(){return s=l=[],i||r||(a=i=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),r||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},A.extend({Deferred:function(t){var n=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return A.Deferred(function(t){A.each(n,function(n,r){var i=f(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function s(t,n,r,i){return function(){var a=this,l=arguments,c=function(){var e,c;if(!(t<o)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,f(c)?i?c.call(e,s(o,n,q,i),s(o,n,W,i)):(o++,c.call(e,s(o,n,q,i),s(o,n,W,i),s(o,n,q,n.notifyWith))):(r!==q&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},u=i?c:function(){try{c()}catch(e){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(e,u.error),o<=t+1&&(r!==W&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?u():(A.Deferred.getErrorHook?u.error=A.Deferred.getErrorHook():A.Deferred.getStackHook&&(u.error=A.Deferred.getStackHook()),e.setTimeout(u))}}return A.Deferred(function(e){n[0][3].add(s(0,e,f(i)?i:q,e.notifyWith)),n[1][3].add(s(0,e,f(t)?t:q)),n[2][3].add(s(0,e,f(r)?r:W))}).promise()},promise:function(e){return null!=e?A.extend(e,i):i}},o={};return A.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=i.call(arguments),s=A.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=1<arguments.length?i.call(arguments):n,--t||s.resolveWith(r,o)}};if(t<=1&&($(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||f(o[n]&&o[n].then)))return s.then();for(;n--;)$(o[n],a(n),s.reject);return s.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&G.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},A.readyException=function(t){e.setTimeout(function(){throw t})};var K=A.Deferred();function Z(){g.removeEventListener("DOMContentLoaded",Z),e.removeEventListener("load",Z),A.ready()}A.fn.ready=function(e){return K.then(e).catch(function(e){A.readyException(e)}),this},A.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--A.readyWait:A.isReady)||(A.isReady=!0)!==e&&0<--A.readyWait||K.resolveWith(g,[A])}}),A.ready.then=K.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(A.ready):(g.addEventListener("DOMContentLoaded",Z),e.addEventListener("load",Z));var X=function(e,t,n,r,i,o,s){var a=0,l=e.length,c=null==n;if("object"===b(n))for(a in i=!0,n)X(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,f(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(A(e),n)})),t))for(;a<l;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):l?t(e[0],n):o},Q=/^-ms-/,J=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(Q,"ms-").replace(J,ee)}var ne=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function re(){this.expando=A.expando+re.uid++}re.uid=1,re.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ne(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[te(t)]=n;else for(r in t)i[te(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][te(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(te):(t=te(t))in r?[t]:t.match(z)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||A.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!A.isEmptyObject(t)}};var ie=new re,oe=new re,se=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;function le(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:se.test(i)?JSON.parse(i):i)}catch(e){}oe.set(e,t,n)}else n=void 0;return n}A.extend({hasData:function(e){return oe.hasData(e)||ie.hasData(e)},data:function(e,t,n){return oe.access(e,t,n)},removeData:function(e,t){oe.remove(e,t)},_data:function(e,t,n){return ie.access(e,t,n)},_removeData:function(e,t){ie.remove(e,t)}}),A.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=oe.get(o),1===o.nodeType&&!ie.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=te(r.slice(5)),le(o,r,i[r]));ie.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){oe.set(this,e)}):X(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=oe.get(o,e))||void 0!==(n=le(o,e))?n:void 0;this.each(function(){oe.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){oe.remove(this,e)})}}),A.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ie.get(e,t),n&&(!r||Array.isArray(n)?r=ie.access(e,t,A.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=A.queue(e,t),r=n.length,i=n.shift(),o=A._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){A.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ie.get(e,n)||ie.access(e,n,{empty:A.Callbacks("once memory").add(function(){ie.remove(e,[t+"queue",n])})})}}),A.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?A.queue(this[0],e):void 0===t?this:this.each(function(){var n=A.queue(this,e,t);A._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&A.dequeue(this,e)})},dequeue:function(e){return this.each(function(){A.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=A.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=ie.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var ce=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ue=new RegExp("^(?:([+-])=|)("+ce+")([a-z%]*)$","i"),de=["Top","Right","Bottom","Left"],he=g.documentElement,pe=function(e){return A.contains(e.ownerDocument,e)},fe={composed:!0};he.getRootNode&&(pe=function(e){return A.contains(e.ownerDocument,e)||e.getRootNode(fe)===e.ownerDocument});var me=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&pe(e)&&"none"===A.css(e,"display")};function ge(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return A.css(e,t,"")},l=a(),c=n&&n[3]||(A.cssNumber[t]?"":"px"),u=e.nodeType&&(A.cssNumber[t]||"px"!==c&&+l)&&ue.exec(A.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)A.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,A.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var ve={};function ye(e,t){for(var n,r,i,o,s,a,l,c=[],u=0,d=e.length;u<d;u++)(r=e[u]).style&&(n=r.style.display,t?("none"===n&&(c[u]=ie.get(r,"display")||null,c[u]||(r.style.display="")),""===r.style.display&&me(r)&&(c[u]=(l=s=o=void 0,s=(i=r).ownerDocument,a=i.nodeName,(l=ve[a])||(o=s.body.appendChild(s.createElement(a)),l=A.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),ve[a]=l)))):"none"!==n&&(c[u]="none",ie.set(r,"display",n)));for(u=0;u<d;u++)null!=c[u]&&(e[u].style.display=c[u]);return e}A.fn.extend({show:function(){return ye(this,!0)},hide:function(){return ye(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){me(this)?A(this).show():A(this).hide()})}});var be,_e,we=/^(?:checkbox|radio)$/i,Ae=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,xe=/^$|^module$|\/(?:java|ecma)script/i;be=g.createDocumentFragment().appendChild(g.createElement("div")),(_e=g.createElement("input")).setAttribute("type","radio"),_e.setAttribute("checked","checked"),_e.setAttribute("name","t"),be.appendChild(_e),p.checkClone=be.cloneNode(!0).cloneNode(!0).lastChild.checked,be.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue,be.innerHTML="<option></option>",p.option=!!be.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?A.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)ie.set(e[n],"globalEval",!t||ie.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,p.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function De(e,t,n,r,i){for(var o,s,a,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===b(o))A.merge(h,o.nodeType?[o]:o);else if(Te.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(Ae.exec(o)||["",""])[1].toLowerCase(),l=ke[a]||ke._default,s.innerHTML=l[1]+A.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;A.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(r&&-1<A.inArray(o,r))i&&i.push(o);else if(c=pe(o),s=Se(d.appendChild(o),"script"),c&&Ee(s),n)for(u=0;o=s[u++];)xe.test(o.type||"")&&n.push(o);return d}var Ce=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Ie(){return!1}function Oe(e,t,n,r,i,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Oe(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ie;else if(!i)return e;return 1===o&&(s=i,(i=function(e){return A().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=A.guid++)),e.each(function(){A.event.add(this,t,i,r,n)})}function Le(e,t,n){n?(ie.set(e,t,!1),A.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ie.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(A.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=i.call(arguments),ie.set(this,t,r),this[t](),n=ie.get(this,t),ie.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(ie.set(this,t,A.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===ie.get(e,t)&&A.event.add(e,t,Me)}A.event={global:{},add:function(e,t,n,r,i){var o,s,a,l,c,u,d,h,p,f,m,g=ie.get(e);if(ne(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&A.find.matchesSelector(he,i),n.guid||(n.guid=A.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==A&&A.event.triggered!==t.type?A.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)p=m=(a=Ce.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=A.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=A.event.special[p]||{},u=A.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&A.expr.match.needsContext.test(i),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,u):h.push(u),A.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,l,c,u,d,h,p,f,m,g=ie.hasData(e)&&ie.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(z)||[""]).length;c--;)if(p=m=(a=Ce.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=A.event.special[p]||{},h=l[p=(r?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!i&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||A.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)A.event.remove(e,p+t[c],n,r,!0);A.isEmptyObject(l)&&ie.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=new Array(arguments.length),l=A.event.fix(e),c=(ie.get(this,"events")||Object.create(null))[l.type]||[],u=A.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=A.event.handlers.call(this,l,c),t=0;(i=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((A.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?-1<A(i,this).index(c):A.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(A.Event.prototype,e,{enumerable:!0,configurable:!0,get:f(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[A.expando]?e:new A.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&k(t,"input")&&Le(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&k(t,"input")&&Le(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&k(t,"input")&&ie.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},A.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},A.Event=function(e,t){if(!(this instanceof A.Event))return new A.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Ie,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&A.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},A.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(g.documentMode){var n=ie.get(this,"handle"),r=A.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else A.event.simulate(t,e.target,A.event.fix(e))}A.event.special[e]={setup:function(){var r;if(Le(this,e,!0),!g.documentMode)return!1;(r=ie.get(this,t))||this.addEventListener(t,n),ie.set(this,t,(r||0)+1)},trigger:function(){return Le(this,e),!0},teardown:function(){var e;if(!g.documentMode)return!1;(e=ie.get(this,t)-1)?ie.set(this,t,e):(this.removeEventListener(t,n),ie.remove(this,t))},_default:function(t){return ie.get(t.target,e)},delegateType:t},A.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=g.documentMode?this:r,o=ie.get(i,t);o||(g.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),ie.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=g.documentMode?this:r,o=ie.get(i,t)-1;o?ie.set(i,t,o):(g.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),ie.remove(i,t))}}}),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){A.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||A.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),A.fn.extend({on:function(e,t,n,r){return Oe(this,e,t,n,r)},one:function(e,t,n,r){return Oe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,A(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ie),this.each(function(){A.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function je(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&A(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Be(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ye(e,t){var n,r,i,o,s,a;if(1===t.nodeType){if(ie.hasData(e)&&(a=ie.get(e).events))for(i in ie.remove(t,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)A.event.add(t,i,a[i][n]);oe.hasData(e)&&(o=oe.access(e),s=A.extend({},o),oe.set(t,s))}}function Ve(e,t,n,r){t=o(t);var i,s,a,l,c,u,d=0,h=e.length,m=h-1,g=t[0],v=f(g);if(v||1<h&&"string"==typeof g&&!p.checkClone&&Pe.test(g))return e.each(function(i){var o=e.eq(i);v&&(t[0]=g.call(this,i,o.html())),Ve(o,t,n,r)});if(h&&(s=(i=De(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(l=(a=A.map(Se(i,"script"),Fe)).length;d<h;d++)c=i,d!==m&&(c=A.clone(c,!0,!0),l&&A.merge(a,Se(c,"script"))),n.call(e[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,A.map(a,Be),d=0;d<l;d++)c=a[d],xe.test(c.type||"")&&!ie.access(c,"globalEval")&&A.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?A._evalUrl&&!c.noModule&&A._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Re,""),c,u))}return e}function He(e,t,n){for(var r,i=t?A.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||A.cleanData(Se(r)),r.parentNode&&(n&&pe(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}A.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,s,a,l,c,u=e.cloneNode(!0),d=pe(e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||A.isXMLDoc(e)))for(s=Se(u),r=0,i=(o=Se(e)).length;r<i;r++)a=o[r],"input"===(c=(l=s[r]).nodeName.toLowerCase())&&we.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(n)for(o=o||Se(e),s=s||Se(u),r=0,i=o.length;r<i;r++)Ye(o[r],s[r]);else Ye(e,u);return 0<(s=Se(u,"script")).length&&Ee(s,!d&&Se(e,"script")),u},cleanData:function(e){for(var t,n,r,i=A.event.special,o=0;void 0!==(n=e[o]);o++)if(ne(n)){if(t=n[ie.expando]){if(t.events)for(r in t.events)i[r]?A.event.remove(n,r):A.removeEvent(n,r,t.handle);n[ie.expando]=void 0}n[oe.expando]&&(n[oe.expando]=void 0)}}}),A.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return X(this,function(e){return void 0===e?A.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ve(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return Ve(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(A.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return A.clone(this,e,t)})},html:function(e){return X(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ke[(Ae.exec(e)||["",""])[1].toLowerCase()]){e=A.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(A.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,function(t){var n=this.parentNode;A.inArray(this,e)<0&&(A.cleanData(Se(this)),n&&n.replaceChild(t,this))},e)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){A.fn[e]=function(e){for(var n,r=[],i=A(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),A(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Ue=new RegExp("^("+ce+")(?!px)[a-z%]+$","i"),ze=/^--/,qe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},We=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},$e=new RegExp(de.join("|"),"i");function Ge(e,t,n){var r,i,o,s,a=ze.test(t),l=e.style;return(n=n||qe(e))&&(s=n.getPropertyValue(t)||n[t],a&&s&&(s=s.replace(C,"$1")||void 0),""!==s||pe(e)||(s=A.style(e,t)),!p.pixelBoxStyles()&&Ue.test(s)&&$e.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==s?s+"":s}function Ke(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",he.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);r="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",s=36===n(t.right),i=36===n(t.width),u.style.position="absolute",o=12===n(u.offsetWidth/3),he.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,s,a,l,c=g.createElement("div"),u=g.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===u.style.backgroundClip,A.extend(p,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,i;return null==a&&(t=g.createElement("table"),n=g.createElement("tr"),r=g.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",he.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,he.removeChild(t)),a}}))}();var Ze=["Webkit","Moz","ms"],Xe=g.createElement("div").style,Qe={};function Je(e){return A.cssProps[e]||Qe[e]||(e in Xe?e:Qe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ze.length;n--;)if((e=Ze[n]+t)in Xe)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=ue.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var s="width"===t?1:0,a=0,l=0,c=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=A.css(e,n+de[s],!0,i)),r?("content"===n&&(l-=A.css(e,"padding"+de[s],!0,i)),"margin"!==n&&(l-=A.css(e,"border"+de[s]+"Width",!0,i))):(l+=A.css(e,"padding"+de[s],!0,i),"padding"!==n?l+=A.css(e,"border"+de[s]+"Width",!0,i):a+=A.css(e,"border"+de[s]+"Width",!0,i));return!r&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l+c}function ot(e,t,n){var r=qe(e),i=(!p.boxSizingReliable()||n)&&"border-box"===A.css(e,"boxSizing",!1,r),o=i,s=Ge(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(s)){if(!n)return s;s="auto"}return(!p.boxSizingReliable()&&i||!p.reliableTrDimensions()&&k(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===A.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===A.css(e,"boxSizing",!1,r),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+it(e,t,n||(i?"border":"content"),o,r,s)+"px"}function st(e,t,n,r,i){return new st.prototype.init(e,t,n,r,i)}A.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=te(t),l=ze.test(t),c=e.style;if(l||(t=Je(a)),s=A.cssHooks[t]||A.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];"string"==(o=typeof n)&&(i=ue.exec(n))&&i[1]&&(n=ge(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(A.cssNumber[a]?"":"px")),p.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=te(t);return ze.test(t)||(t=Je(a)),(s=A.cssHooks[t]||A.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),A.each(["height","width"],function(e,t){A.cssHooks[t]={get:function(e,n,r){if(n)return!et.test(A.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,r):We(e,tt,function(){return ot(e,t,r)})},set:function(e,n,r){var i,o=qe(e),s=!p.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===A.css(e,"boxSizing",!1,o),l=r?it(e,t,r,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-it(e,t,"border",!1,o)-.5)),l&&(i=ue.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=A.css(e,t)),rt(0,n,l)}}}),A.cssHooks.marginLeft=Ke(p.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),A.each({margin:"",padding:"",border:"Width"},function(e,t){A.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+de[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(A.cssHooks[e+t].set=rt)}),A.fn.extend({css:function(e,t){return X(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=qe(e),i=t.length;s<i;s++)o[t[s]]=A.css(e,t[s],!1,r);return o}return void 0!==n?A.style(e,t,n):A.css(e,t)},e,t,1<arguments.length)}}),((A.Tween=st).prototype={constructor:st,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||A.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(A.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=A.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):st.propHooks._default.set(this),this}}).init.prototype=st.prototype,(st.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=A.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){A.fx.step[e.prop]?A.fx.step[e.prop](e):1!==e.elem.nodeType||!A.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:A.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},A.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},A.fx=st.prototype.init,A.fx.step={};var at,lt,ct,ut,dt=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;function pt(){lt&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(pt):e.setTimeout(pt,A.fx.interval),A.fx.tick())}function ft(){return e.setTimeout(function(){at=void 0}),at=Date.now()}function mt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=de[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function gt(e,t,n){for(var r,i=(vt.tweeners[t]||[]).concat(vt.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function vt(e,t,n){var r,i,o=0,s=vt.prefilters.length,a=A.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=at||ft(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(r);return a.notifyWith(e,[c,r,n]),r<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:A.extend({},t),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||ft(),duration:n.duration,tweens:[],createTween:function(t,n){var r=A.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=te(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=A.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);o<s;o++)if(r=vt.prefilters[o].call(c,e,u,c.opts))return f(r.stop)&&(A._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return A.map(u,gt,c),f(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),A.fx.timer(A.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}A.Animation=A.extend(vt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ge(n.elem,e,ue.exec(t),n),n}]},tweener:function(e,t){f(e)?(t=e,e=["*"]):e=e.match(z);for(var n,r=0,i=e.length;r<i;r++)n=e[r],vt.tweeners[n]=vt.tweeners[n]||[],vt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&me(e),g=ie.get(e,"fxshow");for(r in n.queue||(null==(s=A._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,A.queue(e,"fx").length||s.empty.fire()})})),t)if(i=t[r],dt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||A.style(e,r)}if((l=!A.isEmptyObject(t))||!A.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=ie.get(e,"display")),"none"===(u=A.css(e,"display"))&&(c?u=c:(ye([e],!0),c=e.style.display||c,u=A.css(e,"display"),ye([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===A.css(e,"float")&&(l||(h.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=ie.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&ye([e],!0),h.done(function(){for(r in m||ye([e]),ie.remove(e,"fxshow"),p)A.style(e,r,p[r])})),l=gt(m?g[r]:0,r,h),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?vt.prefilters.unshift(e):vt.prefilters.push(e)}}),A.speed=function(e,t,n){var r=e&&"object"==typeof e?A.extend({},e):{complete:n||!n&&t||f(e)&&e,duration:e,easing:n&&t||t&&!f(t)&&t};return A.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in A.fx.speeds?r.duration=A.fx.speeds[r.duration]:r.duration=A.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){f(r.old)&&r.old.call(this),r.queue&&A.dequeue(this,r.queue)},r},A.fn.extend({fadeTo:function(e,t,n,r){return this.filter(me).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=A.isEmptyObject(e),o=A.speed(t,n,r),s=function(){var t=vt(this,A.extend({},e),o);(i||ie.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=A.timers,s=ie.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&ht.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||A.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=ie.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=A.timers,s=r?r.length:0;for(n.finish=!0,A.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),A.each(["toggle","show","hide"],function(e,t){var n=A.fn[t];A.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(mt(t,!0),e,r,i)}}),A.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){A.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),A.timers=[],A.fx.tick=function(){var e,t=0,n=A.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||A.fx.stop(),at=void 0},A.fx.timer=function(e){A.timers.push(e),A.fx.start()},A.fx.interval=13,A.fx.start=function(){lt||(lt=!0,pt())},A.fx.stop=function(){lt=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(t,n){return t=A.fx&&A.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},ct=g.createElement("input"),ut=g.createElement("select").appendChild(g.createElement("option")),ct.type="checkbox",p.checkOn=""!==ct.value,p.optSelected=ut.selected,(ct=g.createElement("input")).value="t",ct.type="radio",p.radioValue="t"===ct.value;var yt,bt=A.expr.attrHandle;A.fn.extend({attr:function(e,t){return X(this,A.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){A.removeAttr(this,e)})}}),A.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?A.prop(e,t,n):(1===o&&A.isXMLDoc(e)||(i=A.attrHooks[t.toLowerCase()]||(A.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void A.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=A.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(z);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),yt={set:function(e,t,n){return!1===t?A.removeAttr(e,n):e.setAttribute(n,n),n}},A.each(A.expr.match.bool.source.match(/\w+/g),function(e,t){var n=bt[t]||A.find.attr;bt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=bt[s],bt[s]=i,i=null!=n(e,t,r)?s:null,bt[s]=o),i}});var _t=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function At(e){return(e.match(z)||[]).join(" ")}function xt(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}A.fn.extend({prop:function(e,t){return X(this,A.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[A.propFix[e]||e]})}}),A.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&A.isXMLDoc(e)||(t=A.propFix[t]||t,i=A.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=A.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(A.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){A.propFix[this.toLowerCase()]=this}),A.fn.extend({addClass:function(e){var t,n,r,i,o,s;return f(e)?this.each(function(t){A(this).addClass(e.call(this,t,xt(this)))}):(t=kt(e)).length?this.each(function(){if(r=xt(this),n=1===this.nodeType&&" "+At(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");s=At(n),r!==s&&this.setAttribute("class",s)}}):this},removeClass:function(e){var t,n,r,i,o,s;return f(e)?this.each(function(t){A(this).removeClass(e.call(this,t,xt(this)))}):arguments.length?(t=kt(e)).length?this.each(function(){if(r=xt(this),n=1===this.nodeType&&" "+At(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];-1<n.indexOf(" "+i+" ");)n=n.replace(" "+i+" "," ");s=At(n),r!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,s=typeof e,a="string"===s||Array.isArray(e);return f(e)?this.each(function(n){A(this).toggleClass(e.call(this,n,xt(this),t),t)}):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each(function(){if(a)for(o=A(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==s||((r=xt(this))&&ie.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":ie.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+At(xt(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;A.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=f(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,A(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=A.map(i,function(e){return null==e?"":e+""})),(t=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=A.valHooks[i.type]||A.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(St,""):null==n?"":n:void 0}}),A.extend({valHooks:{option:{get:function(e){var t=A.find.attr(e,"value");return null!=t?t:At(A.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:i.length;for(r=o<0?l:s?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=A(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=A.makeArray(t),s=i.length;s--;)((r=i[s]).selected=-1<A.inArray(A.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<A.inArray(A(e).val(),t)}},p.checkOn||(A.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=e.location,Tt={guid:Date.now()},Dt=/\?/;A.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||A.error("Invalid XML: "+(r?A.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var Ct=/^(?:focusinfocus|focusoutblur)$/,Mt=function(e){e.stopPropagation()};A.extend(A.event,{trigger:function(t,n,r,i){var o,s,a,l,c,d,h,p,v=[r||g],y=u.call(t,"type")?t.type:t,b=u.call(t,"namespace")?t.namespace.split("."):[];if(s=p=a=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!Ct.test(y+A.event.triggered)&&(-1<y.indexOf(".")&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[A.expando]?t:new A.Event(y,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:A.makeArray(n,[t]),h=A.event.special[y]||{},i||!h.trigger||!1!==h.trigger.apply(r,n))){if(!i&&!h.noBubble&&!m(r)){for(l=h.delegateType||y,Ct.test(l+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),a=s;a===(r.ownerDocument||g)&&v.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=v[o++])&&!t.isPropagationStopped();)p=s,t.type=1<o?l:h.bindType||y,(d=(ie.get(s,"events")||Object.create(null))[t.type]&&ie.get(s,"handle"))&&d.apply(s,n),(d=c&&s[c])&&d.apply&&ne(s)&&(t.result=d.apply(s,n),!1===t.result&&t.preventDefault());return t.type=y,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(v.pop(),n)||!ne(r)||c&&f(r[y])&&!m(r)&&((a=r[c])&&(r[c]=null),A.event.triggered=y,t.isPropagationStopped()&&p.addEventListener(y,Mt),r[y](),t.isPropagationStopped()&&p.removeEventListener(y,Mt),A.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=A.extend(new A.Event,n,{type:e,isSimulated:!0});A.event.trigger(r,null,t)}}),A.fn.extend({trigger:function(e,t){return this.each(function(){A.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return A.event.trigger(e,t,n,!0)}});var It=/\[\]$/,Ot=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Pt(e,t,n,r){var i;if(Array.isArray(t))A.each(t,function(t,i){n||It.test(e)?r(e,i):Pt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==b(t))r(e,t);else for(i in t)Pt(e+"["+i+"]",t[i],n,r)}A.param=function(e,t){var n,r=[],i=function(e,t){var n=f(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!A.isPlainObject(e))A.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=A.prop(this,"elements");return e?A.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!A(this).is(":disabled")&&Nt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=A(this).val();return null==n?null:Array.isArray(n)?A.map(n,function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}}):{name:t.name,value:n.replace(Ot,"\r\n")}}).get()}});var Rt=/%20/g,jt=/#.*$/,Ft=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Yt=/^(?:GET|HEAD)$/,Vt=/^\/\//,Ht={},Ut={},zt="*/".concat("*"),qt=g.createElement("a");function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(z)||[];if(f(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $t(e,t,n,r){var i={},o=e===Ut;function s(a){var l;return i[a]=!0,A.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}return s(t.dataTypes[0])||!i["*"]&&s("*")}function Gt(e,t){var n,r,i=A.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&A.extend(!0,e,r),e}qt.href=Et.href,A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,A.ajaxSettings),t):Gt(A.ajaxSettings,e)},ajaxPrefilter:Wt(Ht),ajaxTransport:Wt(Ut),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,o,s,a,l,c,u,d,h,p=A.ajaxSetup({},n),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?A(f):A.event,v=A.Deferred(),y=A.Callbacks("once memory"),b=p.statusCode||{},_={},w={},x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Bt.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),S(0,t),this}};if(v.promise(k),p.url=((t||p.url||Et.href)+"").replace(Vt,Et.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(z)||[""],null==p.crossDomain){l=g.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=qt.protocol+"//"+qt.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=A.param(p.data,p.traditional)),$t(Ht,p,n,k),c)return k;for(d in(u=A.event&&p.global)&&0==A.active++&&A.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Yt.test(p.type),i=p.url.replace(jt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Rt,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Dt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Ft,"$1"),h=(Dt.test(i)?"&":"?")+"_="+Tt.guid+++h),p.url=i+h),p.ifModified&&(A.lastModified[i]&&k.setRequestHeader("If-Modified-Since",A.lastModified[i]),A.etag[i]&&k.setRequestHeader("If-None-Match",A.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+zt+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,k,p)||c))return k.abort();if(x="abort",y.add(p.complete),k.done(p.success),k.fail(p.error),r=$t(Ut,p,n,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,p]),c)return k;p.async&&0<p.timeout&&(a=e.setTimeout(function(){k.abort("timeout")},p.timeout));try{c=!1,r.send(_,S)}catch(t){if(c)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,n,s,l){var d,h,g,_,w,x=n;c||(c=!0,a&&e.clearTimeout(a),r=void 0,o=l||"",k.readyState=0<t?4:0,d=200<=t&&t<300||304===t,s&&(_=function(e,t,n){for(var r,i,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,k,s)),!d&&-1<A.inArray("script",p.dataTypes)&&A.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(e,t,n,r){var i,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(i in c)if((a=i.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,_,k,d),d?(p.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(A.lastModified[i]=w),(w=k.getResponseHeader("etag"))&&(A.etag[i]=w)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=_.state,h=_.data,d=!(g=_.error))):(g=x,!t&&x||(x="error",t<0&&(t=0))),k.status=t,k.statusText=(n||x)+"",d?v.resolveWith(f,[h,x,k]):v.rejectWith(f,[k,x,g]),k.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,p,d?h:g]),y.fireWith(f,[k,x]),u&&(m.trigger("ajaxComplete",[k,p]),--A.active||A.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return A.get(e,t,n,"json")},getScript:function(e,t){return A.get(e,void 0,t,"script")}}),A.each(["get","post"],function(e,t){A[t]=function(e,n,r,i){return f(n)&&(i=i||r,r=n,n=void 0),A.ajax(A.extend({url:e,type:t,dataType:i,data:n,success:r},A.isPlainObject(e)&&e))}}),A.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),A._evalUrl=function(e,t,n){return A.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){A.globalEval(e,t,n)}})},A.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=A(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return f(e)?this.each(function(t){A(this).wrapInner(e.call(this,t))}):this.each(function(){var t=A(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=f(e);return this.each(function(n){A(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){A(this).replaceWith(this.childNodes)}),this}}),A.expr.pseudos.hidden=function(e){return!A.expr.pseudos.visible(e)},A.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Zt=A.ajaxSettings.xhr();p.cors=!!Zt&&"withCredentials"in Zt,p.ajax=Zt=!!Zt,A.ajaxTransport(function(t){var n,r;if(p.cors||Zt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Kt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(i){if(n)throw i}},abort:function(){n&&n()}}}),A.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return A.globalEval(e),e}}}),A.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),A.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=A("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}});var Xt,Qt=[],Jt=/(=)\?(?=&|$)|\?\?/;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||A.expando+"_"+Tt.guid++;return this[e]=!0,e}}),A.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(Jt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Jt,"$1"+i):!1!==t.jsonp&&(t.url+=(Dt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||A.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?A(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Qt.push(i)),s&&f(o)&&o(s[0]),s=o=void 0}),"script"}),p.createHTMLDocument=((Xt=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),A.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(p.createHTMLDocument?((r=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(r)):t=g),o=!n&&[],(i=j.exec(e))?[t.createElement(i[1])]:(i=De([e],t,o),o&&o.length&&A(o).remove(),A.merge([],i.childNodes)));var r,i,o},A.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return-1<a&&(r=At(e.slice(a)),e=e.slice(0,a)),f(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<s.length&&A.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?A("<div>").append(A.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},A.expr.pseudos.animated=function(e){return A.grep(A.timers,function(t){return e===t.elem}).length},A.offset={setOffset:function(e,t,n){var r,i,o,s,a,l,c=A.css(e,"position"),u=A(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=A.css(e,"top"),l=A.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(s=(r=u.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),f(t)&&(t=t.call(e,n,A.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):u.css(d)}},A.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){A.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===A.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===A.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=A(e).offset()).top+=A.css(e,"borderTopWidth",!0),i.left+=A.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-A.css(r,"marginTop",!0),left:t.left-i.left-A.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===A.css(e,"position");)e=e.offsetParent;return e||he})}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;A.fn[e]=function(r){return X(this,function(e,r,i){var o;if(m(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),A.each(["top","left"],function(e,t){A.cssHooks[t]=Ke(p.pixelPosition,function(e,n){if(n)return n=Ge(e,t),Ue.test(n)?A(e).position()[t]+"px":n})}),A.each({Height:"height",Width:"width"},function(e,t){A.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){A.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return X(this,function(t,n,i){var o;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?A.css(t,n,a):A.style(t,n,i,a)},t,s?i:void 0,s)}})}),A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){A.fn[t]=function(e){return this.on(t,e)}}),A.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){A.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;A.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),f(e))return r=i.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(i.call(arguments)))}).guid=e.guid=e.guid||A.guid++,o},A.holdReady=function(e){e?A.readyWait++:A.ready(!0)},A.isArray=Array.isArray,A.parseJSON=JSON.parse,A.nodeName=k,A.isFunction=f,A.isWindow=m,A.camelCase=te,A.type=b,A.now=Date.now,A.isNumeric=function(e){var t=A.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},A.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return A});var tn=e.jQuery,nn=e.$;return A.noConflict=function(t){return e.$===A&&(e.$=nn),t&&e.jQuery===A&&(e.jQuery=tn),A},void 0===t&&(e.jQuery=e.$=A),A});
|
|
562
|
+
function(e,t){"use strict";"object"==typeof module&&module.exports?module.exports=t(require("moment")):"function"==typeof define&&define.amd?define(["moment"],t):t(e.moment)}(this,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},r={},i={},o={},s={};e&&"string"==typeof e.version||C("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=e.version.split("."),l=+a[0],c=+a[1];function u(e){return e>96?e-87:e>64?e-29:e-48}function d(e){var t=0,n=e.split("."),r=n[0],i=n[1]||"",o=1,s=0,a=1;for(45===e.charCodeAt(0)&&(t=1,a=-1);t<r.length;t++)s=60*s+u(r.charCodeAt(t));for(t=0;t<i.length;t++)o/=60,s+=u(i.charCodeAt(t))*o;return s*a}function h(e){for(var t=0;t<e.length;t++)e[t]=d(e[t])}function p(e,t){var n,r=[];for(n=0;n<t.length;n++)r[n]=e[t[n]];return r}function f(e){var t=e.split("|"),n=t[2].split(" "),r=t[3].split(""),i=t[4].split(" ");return h(n),h(r),h(i),function(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}(i,r.length),{name:t[0],abbrs:p(t[1].split(" "),r),offsets:p(n,r),untils:i,population:0|t[5]}}function m(e){e&&this._set(f(e))}function g(e,t){this.name=e,this.zones=t}function v(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=t.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function y(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function b(e,t){for(var n,r;r=6e4*((t.at-e.at)/12e4|0);)(n=new v(new Date(e.at+r))).offset===e.offset?e=n:t=n;return e}function _(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function w(e,t){var n,r;for(h(t),n=0;n<t.length;n++)r=t[n],s[r]=s[r]||{},s[r][e]=!0}function A(e){var t,n,r,i,a=e.length,l={},c=[],u={};for(t=0;t<a;t++)if(r=e[t].offset,!u.hasOwnProperty(r)){for(n in i=s[r]||{})i.hasOwnProperty(n)&&(l[n]=!0);u[r]=!0}for(t in l)l.hasOwnProperty(t)&&c.push(o[t]);return c}function x(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=o[k(e)];if(t)return t;C("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,r,i,s=function(){var e,t,n,r,i=(new Date).getFullYear()-2,o=new v(new Date(i,0,1)),s=o.offset,a=[o];for(r=1;r<48;r++)(n=new Date(i,r,1).getTimezoneOffset())!==s&&(e=b(o,t=new v(new Date(i,r,1))),a.push(e),a.push(new v(new Date(e.at+6e4))),o=t,s=n);for(r=0;r<4;r++)a.push(new v(new Date(i+r,0,1))),a.push(new v(new Date(i+r,6,1)));return a}(),a=s.length,l=A(s),c=[];for(r=0;r<l.length;r++){for(n=new y(E(l[r]),a),i=0;i<a;i++)n.scoreOffsetAt(s[i]);c.push(n)}return c.sort(_),c.length>0?c[0].zone.name:void 0}function k(e){return(e||"").toLowerCase().replace(/\//g,"_")}function S(e){var t,r,i,s;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)s=k(r=(i=e[t].split("|"))[0]),n[s]=e[t],o[s]=r,w(s,i[2].split(" "))}function E(e,t){e=k(e);var i,s=n[e];return s instanceof m?s:"string"==typeof s?(s=new m(s),n[e]=s,s):r[e]&&t!==E&&(i=E(r[e],E))?((s=n[e]=new m)._set(i),s.name=o[e],s):null}function T(e){var t,n,i,s;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)i=k((n=e[t].split("|"))[0]),s=k(n[1]),r[i]=s,o[i]=n[0],r[s]=i,o[s]=n[1]}function D(e){var t="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||t)}function C(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function M(t){var n,r=Array.prototype.slice.call(arguments,0,-1),i=arguments[arguments.length-1],o=e.utc.apply(null,r);return!e.isMoment(t)&&D(o)&&(n=E(i))&&o.add(n.parse(o),"minutes"),o.tz(i),o}(l<2||2===l&&c<6)&&C("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),m.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t;if((t=function(e,t){var n,r=t.length;if(e<t[0])return 0;if(r>1&&t[r-1]===1/0&&e>=t[r-2])return r-1;if(e>=t[r-1])return-1;for(var i=0,o=r-1;o-i>1;)t[n=Math.floor((i+o)/2)]<=e?i=n:o=n;return o}(+e,this.untils))>=0)return t},countries:function(){var e=this.name;return Object.keys(i).filter(function(t){return-1!==i[t].zones.indexOf(e)})},parse:function(e){var t,n,r,i,o=+e,s=this.offsets,a=this.untils,l=a.length-1;for(i=0;i<l;i++)if(t=s[i],n=s[i+1],r=s[i?i-1:i],t<n&&M.moveAmbiguousForward?t=n:t>r&&M.moveInvalidForward&&(t=r),o<a[i]-6e4*t)return s[i];return s[l]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return C("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},y.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},M.version="0.6.0",M.dataVersion="",M._zones=n,M._links=r,M._names=o,M._countries=i,M.add=S,M.link=T,M.load=function(e){S(e.zones),T(e.links),function(e){var t,n,r,o;if(e&&e.length)for(t=0;t<e.length;t++)n=(o=e[t].split("|"))[0].toUpperCase(),r=o[1].split(" "),i[n]=new g(n,r)}(e.countries),M.dataVersion=e.version},M.zone=E,M.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,C("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!E(t)},M.guess=function(e){return t&&!e||(t=x()),t},M.names=function(){var e,t=[];for(e in o)o.hasOwnProperty(e)&&(n[e]||n[r[e]])&&o[e]&&t.push(o[e]);return t.sort()},M.Zone=m,M.unpack=f,M.unpackBase60=d,M.needsOffset=D,M.moveInvalidForward=!0,M.moveAmbiguousForward=!1,M.countries=function(){return Object.keys(i)},M.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=i[n]||null))return null;var r=e.zones.sort();return t?r.map(function(e){return{name:e,offset:E(e).utcOffset(new Date)}}):r};var I,O=e.fn;function L(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function N(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=M,e.defaultZone=null,e.updateOffset=function(t,n){var r,i=e.defaultZone;if(void 0===t._z&&(i&&D(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(i.parse(t),"minutes")),t._z=i),t._z)if(r=t._z.utcOffset(t),Math.abs(r)<16&&(r/=60),void 0!==t.utcOffset){var o=t._z;t.utcOffset(-r,n),t._z=o}else t.zone(r,n)},O.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=E(t),this._z?e.updateOffset(this,n):C("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},O.zoneName=L(O.zoneName),O.zoneAbbr=L(O.zoneAbbr),O.utc=N(O.utc),O.local=N(O.local),O.utcOffset=(I=O.utcOffset,function(){return arguments.length>0&&(this._z=null),I.apply(this,arguments)}),e.tz.setDefault=function(t){return(l<2||2===l&&c<9)&&C("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?E(t):null,e};var P=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(P)?(P.push("_z"),P.push("_a")):P&&(P._z=null),e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t(require("@xmldom/xmldom").DOMParser):e.X2JS=t()}(this,function(e){"use strict";return function(t){(t=t||{}).arrayAccessForm=t.arrayAccessForm||"none",t.emptyNodeForm=t.emptyNodeForm||"text",t.jsAttributeFilter=t.jsAttributeFilter,t.jsAttributeConverter=t.jsAttributeConverter,t.attributeConverters=t.attributeConverters||[],t.datetimeAccessFormPaths=t.datetimeAccessFormPaths||[],t.arrayAccessFormPaths=t.arrayAccessFormPaths||[],t.xmldomOptions=t.xmldomOptions||{},void 0===t.enableToStringFunc&&(t.enableToStringFunc=!0),void 0===t.skipEmptyTextNodesForObj&&(t.skipEmptyTextNodesForObj=!0),void 0===t.stripWhitespaces&&(t.stripWhitespaces=!0),void 0===t.useDoubleQuotes&&(t.useDoubleQuotes=!0),void 0===t.ignoreRoot&&(t.ignoreRoot=!1),void 0===t.escapeMode&&(t.escapeMode=!0),void 0===t.attributePrefix&&(t.attributePrefix="_"),void 0===t.selfClosingElements&&(t.selfClosingElements=!0),void 0===t.keepCData&&(t.keepCData=!1),void 0===t.keepText&&(t.keepText=!1),void 0===t.jsDateUTC&&(t.jsDateUTC=!1),function(){function e(e){var t=String(e);return 1===t.length&&(t="0"+t),t}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|^\n+|(\s|\n)+$/g,"")}),"function"!=typeof Date.prototype.toISOString&&(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}();var n=1,r=3,i=4,o=8,s=9;function a(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!==t||(t=e.nodeName),t}function l(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function c(e,n,r){if("property"===t.arrayAccessForm)e[n]instanceof Array?e[n+"_asArray"]=e[n]:e[n+"_asArray"]=[e[n]];if(!(e[n]instanceof Array)&&t.arrayAccessFormPaths.length>0){for(var i=!1,o=0;o<t.arrayAccessFormPaths.length;o++){var s=t.arrayAccessFormPaths[o];if("string"==typeof s){if(s===r){i=!0;break}}else if(s instanceof RegExp){if(s.test(r)){i=!0;break}}else if("function"==typeof s&&s(n,r)){i=!0;break}}i&&(e[n]=[e[n]])}}function u(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),r=t[5].split(".");if(n.setHours(t[3],t[4],r[0]),r.length>1&&n.setMilliseconds(r[1]),t[6]&&t[7]){var i=60*t[6]+Number(t[7]);i=0+("-"===(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*i:i),n.setMinutes(n.getMinutes()-i-n.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function d(e,n){for(var r={__cnt:0},i=e.childNodes,s=0;s<i.length;s++){var l=i.item(s),d=a(l);l.nodeType!==o&&(r.__cnt++,null==r[d]?(r[d]=h(l,n+"."+d),c(r,d,n+"."+d)):(r[d]instanceof Array||(r[d]=[r[d]],c(r,d,n+"."+d)),r[d][r[d].length]=h(l,n+"."+d)))}for(var p=0;p<e.attributes.length;p++){var f=e.attributes.item(p);r.__cnt++;for(var m=f.value,g=0;g<t.attributeConverters.length;g++){var v=t.attributeConverters[g];v.test.call(null,f.name,f.value)&&(m=v.convert.call(null,f.name,f.value))}r[t.attributePrefix+f.name]=m}var y=e.prefix;return y&&(r.__cnt++,r.__prefix=y),r["#text"]&&(r.__text=r["#text"],r.__text instanceof Array&&(r.__text=r.__text.join("\n")),t.escapeMode&&(r.__text=r.__text.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")),t.stripWhitespaces&&(r.__text=r.__text.trim()),delete r["#text"],"property"===t.arrayAccessForm&&delete r["#text_asArray"],r.__text=function(e,n,r){if(t.datetimeAccessFormPaths.length>0)for(var i=r.split(".#")[0],o=0;o<t.datetimeAccessFormPaths.length;o++){var s=t.datetimeAccessFormPaths[o];if("string"==typeof s){if(s===i)return u(e)}else if(s instanceof RegExp){if(s.test(i))return u(e)}else if("function"==typeof s&&s(i))return u(e)}return e}(r.__text,0,n+".#text")),r.hasOwnProperty("#cdata-section")&&(r.__cdata=r["#cdata-section"],delete r["#cdata-section"],"property"===t.arrayAccessForm&&delete r["#cdata-section_asArray"]),1===r.__cnt&&r.__text&&!t.keepText?r=r.__text:0===r.__cnt&&"text"===t.emptyNodeForm?r="":r.__cnt>1&&void 0!==r.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""===r.__text||""===r.__text.trim())&&delete r.__text,delete r.__cnt,t.keepCData||r.hasOwnProperty("__text")||!r.hasOwnProperty("__cdata")||1!==Object.keys(r).length?(t.enableToStringFunc&&(r.__text||r.__cdata)&&(r.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),r):r.__cdata?r.__cdata:""}function h(e,o){return e.nodeType===s?function(e){for(var r={},i=e.childNodes,o=0;o<i.length;o++){var s=i.item(o);if(s.nodeType===n){var l=a(s);t.ignoreRoot?r=h(s,l):r[l]=h(s,l)}}return r}(e):e.nodeType===n?d(e,o):e.nodeType===r||e.nodeType===i?e.nodeValue:null}function p(e,n,r,i){var o="<"+(e&&e.__prefix?e.__prefix+":":"")+n;if(r)for(var s=0;s<r.length;s++){var a=r[s],c=e[a];t.escapeMode&&(c=l(c)),o+=" "+a.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?o+='"'+c+'"':o+="'"+c+"'"}return o+=i?" />":">"}function f(e,t){return"</"+(e&&e.__prefix?e.__prefix+":":"")+t+">"}function m(e,n){return"property"===t.arrayAccessForm&&(r=n.toString(),i="_asArray",-1!==r.indexOf(i,r.length-i.length))||0===n.toString().indexOf(t.attributePrefix)||0===n.toString().indexOf("__")||e[n]instanceof Function;var r,i}function g(e){var t=0;if(e instanceof Object)for(var n in e)m(e,n)||t++;return t}function v(e){var n=[];if(e instanceof Object)for(var r in e)-1===r.toString().indexOf("__")&&0===r.toString().indexOf(t.attributePrefix)&&n.push(r);return n}function y(e){var n="";return e instanceof Object?n+=function(e){var n="";return e.__cdata&&(n+="<![CDATA["+e.__cdata+"]]>"),(e.__text||"number"==typeof e.__text||"boolean"==typeof e.__text)&&(t.escapeMode?n+=l(e.__text):n+=e.__text),n}(e):null!==e&&(t.escapeMode?n+=l(e):n+=e),n}function b(e,n,r){var i="";if(t.jsAttributeFilter&&t.jsAttributeFilter.call(null,n,e))return i;if(t.jsAttributeConverter&&(e=t.jsAttributeConverter.call(null,n,e)),null!=e&&""!==e||!t.selfClosingElements)if("object"==typeof e)if("[object Array]"===Object.prototype.toString.call(e))i+=function(e,t,n){var r="";if(0===e.length)r+=p(e,t,n,!0);else for(var i=0;i<e.length;i++)r+=b(e[i],t,v(e[i]));return r}(e,n,r);else if(e instanceof Date)i+=p(e,n,r,!1),i+=t.jsDateUTC?e.toUTCString():e.toISOString(),i+=f(e,n);else{g(e)>0||"number"==typeof e.__text||"boolean"==typeof e.__text||e.__text||e.__cdata?(i+=p(e,n,r,!1),i+=_(e),i+=f(e,n)):t.selfClosingElements?i+=p(e,n,r,!0):(i+=p(e,n,r,!1),i+=f(e,n))}else i+=p(e,n,r,!1),i+=y(e),i+=f(e,n);else i+=p(e,n,r,!0);return i}function _(e){var t="";if(g(e)>0)for(var n in e)if(!m(e,n)){var r=e[n];t+=b(r,n,v(r))}return t+=y(e)}function w(n){if(void 0===n)return null;if("string"!=typeof n)return null;var r=null,i=null;if(e)i=(r=new e(t.xmldomOptions)).parseFromString(n,"text/xml");else if(window&&window.DOMParser){r=new window.DOMParser;var o=null;if(!(window.ActiveXObject||"ActiveXObject"in window)&&document.all&&!document.addEventListener)try{o=r.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(e){o=null}try{i=r.parseFromString(n,"text/xml"),null!==o&&i.getElementsByTagNameNS(o,"parsererror").length>0&&(i=null)}catch(e){i=null}}else 0===n.indexOf("<?")&&(n=n.substr(n.indexOf("?>")+2)),(i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(n);return i}this.asArray=function(e){return null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?u(e):e},this.xml2dom=function(e){return w(e)},this.dom2js=function(e){return h(e,null)},this.js2dom=function(e){return w(this.js2xml(e))},this.xml2js=function(e){var t=w(e);return null!=t?this.dom2js(t):null},this.js2xml=function(e){return _(e)},this.getVersion=function(){return"3.4.4"}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).d3=e.d3||{})}(this,function(e){"use strict";function t(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function n(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function r(e){let r,o,s;function a(e,t,n=0,i=e.length){if(n<i){if(0!==r(t,t))return i;do{const r=n+i>>>1;o(e[r],t)<0?n=r+1:i=r}while(n<i)}return n}return 2!==e.length?(r=t,o=(n,r)=>t(e(n),r),s=(t,n)=>e(t)-n):(r=e===t||e===n?e:i,o=e,s=e),{left:a,center:function(e,t,n=0,r=e.length){const i=a(e,t,n,r-1);return i>n&&s(e[i-1],t)>-s(e[i],t)?i-1:i},right:function(e,t,n=0,i=e.length){if(n<i){if(0!==r(t,t))return i;do{const r=n+i>>>1;o(e[r],t)<=0?n=r+1:i=r}while(n<i)}return n}}}function i(){return 0}function o(e){return null===e?NaN:+e}const s=r(t),a=s.right,l=s.left,c=r(o).center;var u=a;const d=p(g),h=p(function(e){const t=g(e);return(e,n,r,i,o)=>{t(e,n,0+(r<<=2),0+(i<<=2),o<<=2),t(e,n,r+1,i+1,o),t(e,n,r+2,i+2,o),t(e,n,r+3,i+3,o)}});function p(e){return function(t,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:s}=t;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((s=Math.floor(void 0!==s?s:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!s||!n&&!r)return t;const a=n&&e(n),l=r&&e(r),c=i.slice();return a&&l?(f(a,c,i,o,s),f(a,i,c,o,s),f(a,c,i,o,s),m(l,i,c,o,s),m(l,c,i,o,s),m(l,i,c,o,s)):a?(f(a,i,c,o,s),f(a,c,i,o,s),f(a,i,c,o,s)):l&&(m(l,i,c,o,s),m(l,c,i,o,s),m(l,i,c,o,s)),t}}function f(e,t,n,r,i){for(let o=0,s=r*i;o<s;)e(t,n,o,o+=r,1)}function m(e,t,n,r,i){for(let o=0,s=r*i;o<r;++o)e(t,n,o,o+s,r)}function g(e){const t=Math.floor(e);if(t===e)return function(e){const t=2*e+1;return(n,r,i,o,s)=>{if(!((o-=s)>=i))return;let a=e*r[i];const l=s*e;for(let e=i,t=i+l;e<t;e+=s)a+=r[Math.min(o,e)];for(let e=i,c=o;e<=c;e+=s)a+=r[Math.min(o,e+l)],n[e]=a/t,a-=r[Math.max(i,e-l)]}}(e);const n=e-t,r=2*e+1;return(e,i,o,s,a)=>{if(!((s-=a)>=o))return;let l=t*i[o];const c=a*t,u=c+a;for(let e=o,t=o+c;e<t;e+=a)l+=i[Math.min(s,e)];for(let t=o,d=s;t<=d;t+=a)l+=i[Math.min(s,t+c)],e[t]=(l+n*(i[Math.max(o,t-u)]+i[Math.min(s,t+u)]))/r,l-=i[Math.max(o,t-c)]}}function v(e,t){let n=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&++n;else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(i=+i)>=i&&++n}return n}function y(e){return 0|e.length}function b(e){return!(e>0)}function _(e){return"object"!=typeof e||"length"in e?e:Array.from(e)}function w(e,t){let n,r=0,i=0,o=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(n=t-i,i+=n/++r,o+=n*(t-i));else{let s=-1;for(let a of e)null!=(a=t(a,++s,e))&&(a=+a)>=a&&(n=a-i,i+=n/++r,o+=n*(a-i))}if(r>1)return o/(r-1)}function A(e,t){const n=w(e,t);return n?Math.sqrt(n):n}function x(e,t){let n,r;if(void 0===t)for(const t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class k{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=t[r],o=e+i,s=Math.abs(e)<Math.abs(i)?e-(o-i):i-(o-e);s&&(t[n++]=s),e=o}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,r,i=this._n,o=0;if(i>0){for(o=e[--i];i>0&&(t=o,n=e[--i],o=t+n,r=n-(o-t),!r););i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=o+n,n==t-o&&(o=t))}return o}}class S extends Map{constructor(e,t=M){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(T(this,e))}has(e){return super.has(T(this,e))}set(e,t){return super.set(D(this,e),t)}delete(e){return super.delete(C(this,e))}}class E extends Set{constructor(e,t=M){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(T(this,e))}add(e){return super.add(D(this,e))}delete(e){return super.delete(C(this,e))}}function T({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function D({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function C({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function M(e){return null!==e&&"object"==typeof e?e.valueOf():e}function I(e){return e}function O(e,...t){return F(e,I,I,t)}function L(e,...t){return F(e,Array.from,I,t)}function N(e,t){for(let n=1,r=t.length;n<r;++n)e=e.flatMap(e=>e.pop().map(([t,n])=>[...e,t,n]));return e}function P(e,t,...n){return F(e,I,t,n)}function R(e,t,...n){return F(e,Array.from,t,n)}function j(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function F(e,t,n,r){return function e(i,o){if(o>=r.length)return n(i);const s=new S,a=r[o++];let l=-1;for(const e of i){const t=a(e,++l,i),n=s.get(t);n?n.push(e):s.set(t,[e])}for(const[t,n]of s)s.set(t,e(n,o));return t(s)}(e,0)}function B(e,t){return Array.from(t,t=>e[t])}function Y(e,...t){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&2!==n.length||t.length>1){const r=Uint32Array.from(e,(e,t)=>t);return t.length>1?(t=t.map(t=>e.map(t)),r.sort((e,n)=>{for(const r of t){const t=H(r[e],r[n]);if(t)return t}})):(n=e.map(n),r.sort((e,t)=>H(n[e],n[t]))),B(e,r)}return e.sort(V(n))}function V(e=t){if(e===t)return H;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}function H(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}var U=Array.prototype.slice;function z(e){return()=>e}const q=Math.sqrt(50),W=Math.sqrt(10),$=Math.sqrt(2);function G(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=q?10:o>=W?5:o>=$?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?G(e,t,2*n):[a,l,c]}function K(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,s]=r?G(t,e,n):G(e,t,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let e=0;e<a;++e)l[e]=(o-e)/-s;else for(let e=0;e<a;++e)l[e]=(o-e)*s;else if(s<0)for(let e=0;e<a;++e)l[e]=(i+e)/-s;else for(let e=0;e<a;++e)l[e]=(i+e)*s;return l}function Z(e,t,n){return G(e=+e,t=+t,n=+n)[2]}function X(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?Z(t,e,n):Z(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Q(e,t,n){let r;for(;;){const i=Z(e,t,n);if(i===r||0===i||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function J(e){return Math.max(1,Math.ceil(Math.log(v(e))/Math.LN2)+1)}function ee(){var e=I,t=x,n=J;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,s,a=r.length,l=new Array(a);for(i=0;i<a;++i)l[i]=e(r[i],i,r);var c=t(l),d=c[0],h=c[1],p=n(l,d,h);if(!Array.isArray(p)){const e=h,n=+p;if(t===x&&([d,h]=Q(d,h,n)),(p=K(d,h,n))[0]<=d&&(s=Z(d,h,n)),p[p.length-1]>=h)if(e>=h&&t===x){const e=Z(d,h,n);isFinite(e)&&(e>0?h=(Math.floor(h/e)+1)*e:e<0&&(h=(Math.ceil(h*-e)+1)/-e))}else p.pop()}for(var f=p.length,m=0,g=f;p[m]<=d;)++m;for(;p[g-1]>h;)--g;(m||g<f)&&(p=p.slice(m,g),f=g-m);var v,y=new Array(f+1);for(i=0;i<=f;++i)(v=y[i]=[]).x0=i>0?p[i-1]:d,v.x1=i<f?p[i]:h;if(isFinite(s)){if(s>0)for(i=0;i<a;++i)null!=(o=l[i])&&d<=o&&o<=h&&y[Math.min(f,Math.floor((o-d)/s))].push(r[i]);else if(s<0)for(i=0;i<a;++i)if(null!=(o=l[i])&&d<=o&&o<=h){const e=Math.floor((d-o)*s);y[Math.min(f,e+(p[e]<=o))].push(r[i])}}else for(i=0;i<a;++i)null!=(o=l[i])&&d<=o&&o<=h&&y[u(p,o,0,f)].push(r[i]);return y}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:z(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:z([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:z(Array.isArray(e)?U.call(e):e),r):n},r}function te(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function ne(e,t){let n,r=-1,i=-1;if(void 0===t)for(const t of e)++i,null!=t&&(n<t||void 0===n&&t>=t)&&(n=t,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}function re(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function ie(e,t){let n,r=-1,i=-1;if(void 0===t)for(const t of e)++i,null!=t&&(n>t||void 0===n&&t>=t)&&(n=t,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}function oe(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=void 0===i?H:V(i);r>n;){if(r-n>600){const o=r-n+1,s=t-n+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);oe(e,t,Math.max(n,Math.floor(t-s*l/o+c)),Math.min(r,Math.floor(t+(o-s)*l/o+c)),i)}const o=e[t];let s=n,a=r;for(se(e,n,t),i(e[r],o)>0&&se(e,n,r);s<a;){for(se(e,s,a),++s,--a;i(e[s],o)<0;)++s;for(;i(e[a],o)>0;)--a}0===i(e[n],o)?se(e,n,a):(++a,se(e,a,r)),a<=t&&(n=a+1),t<=a&&(r=a-1)}return e}function se(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ae(e,n=t){let r,i=!1;if(1===n.length){let o;for(const s of e){const e=n(s);(i?t(e,o)>0:0===t(e,e))&&(r=s,o=e,i=!0)}}else for(const t of e)(i?n(t,r)>0:0===n(t,t))&&(r=t,i=!0);return r}function le(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return re(e);if(t>=1)return te(e);var r,i=(r-1)*t,o=Math.floor(i),s=te(oe(e,o).subarray(0,o+1));return s+(re(e.subarray(o+1))-s)*(i-o)}}function ce(e,t,n=o){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,s=Math.floor(i),a=+n(e[s],s,e);return a+(+n(e[s+1],s+1,e)-a)*(i-s)}}function ue(e,t,n=o){if(!isNaN(t=+t)){if(r=Float64Array.from(e,(t,r)=>o(n(e[r],r,e))),t<=0)return ie(r);if(t>=1)return ne(r);var r,i=Uint32Array.from(e,(e,t)=>t),s=r.length-1,a=Math.floor(s*t);return oe(i,a,0,s,(e,t)=>H(r[e],r[t])),(a=ae(i.subarray(0,a+1),e=>r[e]))>=0?a:-1}}function de(e){return Array.from(function*(e){for(const t of e)yield*t}(e))}function he(e,t){return[e,t]}function pe(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}function fe(e,n=t){if(1===n.length)return ie(e,n);let r,i=-1,o=-1;for(const t of e)++o,(i<0?0===n(t,t):n(t,r)<0)&&(r=t,i=o);return i}var me=ge(Math.random);function ge(e){return function(t,n=0,r=t.length){let i=r-(n=+n);for(;i;){const r=e()*i--|0,o=t[i+n];t[i+n]=t[r+n],t[r+n]=o}return t}}function ve(e){if(!(i=e.length))return[];for(var t=-1,n=re(e,ye),r=new Array(n);++t<n;)for(var i,o=-1,s=r[t]=new Array(i);++o<i;)s[o]=e[o][t];return r}function ye(e){return e.length}function be(e){return e instanceof E?e:new E(e)}function _e(e,t){const n=e[Symbol.iterator](),r=new Set;for(const e of t){const t=we(e);if(r.has(t))continue;let i,o;for(;({value:i,done:o}=n.next());){if(o)return!1;const e=we(i);if(r.add(e),Object.is(t,e))break}}return!0}function we(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Ae(e){return e}var xe=1e-6;function ke(e){return"translate("+e+",0)"}function Se(e){return"translate(0,"+e+")"}function Ee(e){return t=>+e(t)}function Te(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function De(){return!this.__axis}function Ce(e,t){var n=[],r=null,i=null,o=6,s=6,a=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",d=1===e||3===e?ke:Se;function h(h){var p=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,f=null==i?t.tickFormat?t.tickFormat.apply(t,n):Ae:i,m=Math.max(o,0)+a,g=t.range(),v=+g[0]+l,y=+g[g.length-1]+l,b=(t.bandwidth?Te:Ee)(t.copy(),l),_=h.selection?h.selection():h,w=_.selectAll(".domain").data([null]),A=_.selectAll(".tick").data(p,t).order(),x=A.exit(),k=A.enter().append("g").attr("class","tick"),S=A.select("line"),E=A.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),E=E.merge(k.append("text").attr("fill","currentColor").attr(u,c*m).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),h!==_&&(w=w.transition(h),A=A.transition(h),S=S.transition(h),E=E.transition(h),x=x.transition(h).attr("opacity",xe).attr("transform",function(e){return isFinite(e=b(e))?d(e+l):this.getAttribute("transform")}),k.attr("opacity",xe).attr("transform",function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:b(e))+l)})),x.remove(),w.attr("d",4===e||2===e?s?"M"+c*s+","+v+"H"+l+"V"+y+"H"+c*s:"M"+l+","+v+"V"+y:s?"M"+v+","+c*s+"V"+l+"H"+y+"V"+c*s:"M"+v+","+l+"H"+y),A.attr("opacity",1).attr("transform",function(e){return d(b(e)+l)}),S.attr(u+"2",c*o),E.attr(u,c*m).text(f),_.filter(De).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each(function(){this.__axis=b})}return h.scale=function(e){return arguments.length?(t=e,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),h):n.slice()},h.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),h):r&&r.slice()},h.tickFormat=function(e){return arguments.length?(i=e,h):i},h.tickSize=function(e){return arguments.length?(o=s=+e,h):o},h.tickSizeInner=function(e){return arguments.length?(o=+e,h):o},h.tickSizeOuter=function(e){return arguments.length?(s=+e,h):s},h.tickPadding=function(e){return arguments.length?(a=+e,h):a},h.offset=function(e){return arguments.length?(l=+e,h):l},h}var Me={value:()=>{}};function Ie(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Oe(r)}function Oe(e){this._=e}function Le(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function Ne(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Me,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Oe.prototype=Ie.prototype={constructor:Oe,on:function(e,t){var n,r,i=this._,o=(r=i,(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++s<a;)if(n=(e=o[s]).type)i[n]=Ne(i[n],e.name,t);else if(null==t)for(n in i)i[n]=Ne(i[n],e.name,null);return this}for(;++s<a;)if((n=(e=o[s]).type)&&(n=Le(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Oe(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var Pe="http://www.w3.org/1999/xhtml",Re={svg:"http://www.w3.org/2000/svg",xhtml:Pe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function je(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Re.hasOwnProperty(t)?{space:Re[t],local:e}:e}function Fe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Pe&&t.documentElement.namespaceURI===Pe?t.createElement(e):t.createElementNS(n,e)}}function Be(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ye(e){var t=je(e);return(t.local?Be:Fe)(t)}function Ve(){}function He(e){return null==e?Ve:function(){return this.querySelector(e)}}function Ue(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function ze(){return[]}function qe(e){return null==e?ze:function(){return this.querySelectorAll(e)}}function We(e){return function(){return this.matches(e)}}function $e(e){return function(t){return t.matches(e)}}var Ge=Array.prototype.find;function Ke(){return this.firstElementChild}var Ze=Array.prototype.filter;function Xe(){return Array.from(this.children)}function Qe(e){return new Array(e.length)}function Je(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function et(e,t,n,r,i,o){for(var s,a=0,l=t.length,c=o.length;a<c;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new Je(e,o[a]);for(;a<l;++a)(s=t[a])&&(i[a]=s)}function tt(e,t,n,r,i,o,s){var a,l,c,u=new Map,d=t.length,h=o.length,p=new Array(d);for(a=0;a<d;++a)(l=t[a])&&(p[a]=c=s.call(l,l.__data__,a,t)+"",u.has(c)?i[a]=l:u.set(c,l));for(a=0;a<h;++a)c=s.call(e,o[a],a,o)+"",(l=u.get(c))?(r[a]=l,l.__data__=o[a],u.delete(c)):n[a]=new Je(e,o[a]);for(a=0;a<d;++a)(l=t[a])&&u.get(p[a])===l&&(i[a]=l)}function nt(e){return e.__data__}function rt(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function it(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ot(e){return function(){this.removeAttribute(e)}}function st(e){return function(){this.removeAttributeNS(e.space,e.local)}}function at(e,t){return function(){this.setAttribute(e,t)}}function lt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ct(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function ut(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function dt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ht(e){return function(){this.style.removeProperty(e)}}function pt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ft(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function mt(e,t){return e.style.getPropertyValue(t)||dt(e).getComputedStyle(e,null).getPropertyValue(t)}function gt(e){return function(){delete this[e]}}function vt(e,t){return function(){this[e]=t}}function yt(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function bt(e){return e.trim().split(/^|\s+/)}function _t(e){return e.classList||new wt(e)}function wt(e){this._node=e,this._names=bt(e.getAttribute("class")||"")}function At(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function xt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function kt(e){return function(){At(this,e)}}function St(e){return function(){xt(this,e)}}function Et(e,t){return function(){(t.apply(this,arguments)?At:xt)(this,e)}}function Tt(){this.textContent=""}function Dt(e){return function(){this.textContent=e}}function Ct(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Mt(){this.innerHTML=""}function It(e){return function(){this.innerHTML=e}}function Ot(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Lt(){this.nextSibling&&this.parentNode.appendChild(this)}function Nt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Pt(){return null}function Rt(){var e=this.parentNode;e&&e.removeChild(this)}function jt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ft(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Bt(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Yt(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Vt(e,t,n){var r=dt(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Ht(e,t){return function(){return Vt(this,e,t)}}function Ut(e,t){return function(){return Vt(this,e,t.apply(this,arguments))}}Je.prototype={constructor:Je,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},wt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var zt=[null];function qt(e,t){this._groups=e,this._parents=t}function Wt(){return new qt([[document.documentElement]],zt)}function $t(e){return"string"==typeof e?new qt([[document.querySelector(e)]],[document.documentElement]):new qt([[e]],zt)}qt.prototype=Wt.prototype={constructor:qt,select:function(e){"function"!=typeof e&&(e=He(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s,a=t[i],l=a.length,c=r[i]=new Array(l),u=0;u<l;++u)(o=a[u])&&(s=e.call(o,o.__data__,u,a))&&("__data__"in o&&(s.__data__=o.__data__),c[u]=s);return new qt(r,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return Ue(e.apply(this,arguments))}}(e):qe(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var s,a=t[o],l=a.length,c=0;c<l;++c)(s=a[c])&&(r.push(e.call(s,s.__data__,c,a)),i.push(s));return new qt(r,i)},selectChild:function(e){return this.select(null==e?Ke:function(e){return function(){return Ge.call(this.children,e)}}("function"==typeof e?e:$e(e)))},selectChildren:function(e){return this.selectAll(null==e?Xe:function(e){return function(){return Ze.call(this.children,e)}}("function"==typeof e?e:$e(e)))},filter:function(e){"function"!=typeof e&&(e=We(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s=t[i],a=s.length,l=r[i]=[],c=0;c<a;++c)(o=s[c])&&e.call(o,o.__data__,c,s)&&l.push(o);return new qt(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,nt);var n=t?tt:et,r=this._parents,i=this._groups;"function"!=typeof e&&(e=function(e){return function(){return e}}(e));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],h=d.length,p=rt(e.call(u,u&&u.__data__,c,r)),f=p.length,m=a[c]=new Array(f),g=s[c]=new Array(f);n(u,d,m,g,l[c]=new Array(h),p,t);for(var v,y,b=0,_=0;b<f;++b)if(v=m[b]){for(b>=_&&(_=b+1);!(y=g[_])&&++_<f;);v._next=y||null}}return(s=new qt(s,r))._enter=a,s._exit=l,s},enter:function(){return new qt(this._enter||this._groups.map(Qe),this._parents)},exit:function(){return new qt(this._exit||this._groups.map(Qe),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c,u=n[l],d=r[l],h=u.length,p=a[l]=new Array(h),f=0;f<h;++f)(c=u[f]||d[f])&&(p[f]=c);for(;l<i;++l)a[l]=n[l];return new qt(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=it);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s,a=n[o],l=a.length,c=i[o]=new Array(l),u=0;u<l;++u)(s=a[u])&&(c[u]=s);c.sort(t)}return new qt(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],s=0,a=o.length;s<a;++s)(i=o[s])&&e.call(i,i.__data__,s,o);return this},attr:function(e,t){var n=je(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?st:ot:"function"==typeof t?n.local?ut:ct:n.local?lt:at)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?ht:"function"==typeof t?ft:pt)(e,t,null==n?"":n)):mt(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?gt:"function"==typeof t?yt:vt)(e,t)):this.node()[e]},classed:function(e,t){var n=bt(e+"");if(arguments.length<2){for(var r=_t(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?Et:t?kt:St)(n,t))},text:function(e){return arguments.length?this.each(null==e?Tt:("function"==typeof e?Ct:Dt)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Mt:("function"==typeof e?Ot:It)(e)):this.node().innerHTML},raise:function(){return this.each(Lt)},lower:function(){return this.each(Nt)},append:function(e){var t="function"==typeof e?e:Ye(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:Ye(e),r=null==t?Pt:"function"==typeof t?t:He(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Rt)},clone:function(e){return this.select(e?Ft:jt)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),s=o.length;if(!(arguments.length<2)){for(a=t?Yt:Bt,r=0;r<s;++r)this.each(a(o[r],t,n));return this}var a=this.node().__on;if(a)for(var l,c=0,u=a.length;c<u;++c)for(r=0,l=a[c];r<s;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Ut:Ht)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,s=i.length;o<s;++o)(r=i[o])&&(yield r)}};var Gt=0;function Kt(){return new Zt}function Zt(){this._="@"+(++Gt).toString(36)}function Xt(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Qt(e,t){if(e=Xt(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}Zt.prototype=Kt.prototype={constructor:Zt,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};const Jt={passive:!1},en={capture:!0,passive:!1};function tn(e){e.stopImmediatePropagation()}function nn(e){e.preventDefault(),e.stopImmediatePropagation()}function rn(e){var t=e.document.documentElement,n=$t(e).on("dragstart.drag",nn,en);"onselectstart"in t?n.on("selectstart.drag",nn,en):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function on(e,t){var n=e.document.documentElement,r=$t(e).on("dragstart.drag",null);t&&(r.on("click.drag",nn,en),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var sn=e=>()=>e;function an(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}function ln(e){return!e.ctrlKey&&!e.button}function cn(){return this.parentNode}function un(e,t){return null==t?{x:e.x,y:e.y}:t}function dn(){return navigator.maxTouchPoints||"ontouchstart"in this}function hn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fn(){}an.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var mn=.7,gn=1/mn,vn="\\s*([+-]?\\d+)\\s*",yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_n=/^#([0-9a-f]{3,8})$/,wn=new RegExp(`^rgb\\(${vn},${vn},${vn}\\)$`),An=new RegExp(`^rgb\\(${bn},${bn},${bn}\\)$`),xn=new RegExp(`^rgba\\(${vn},${vn},${vn},${yn}\\)$`),kn=new RegExp(`^rgba\\(${bn},${bn},${bn},${yn}\\)$`),Sn=new RegExp(`^hsl\\(${yn},${bn},${bn}\\)$`),En=new RegExp(`^hsla\\(${yn},${bn},${bn},${yn}\\)$`),Tn={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 Dn(){return this.rgb().formatHex()}function Cn(){return this.rgb().formatRgb()}function Mn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_n.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?In(t):3===n?new Pn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?On(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?On(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=wn.exec(e))?new Pn(t[1],t[2],t[3],1):(t=An.exec(e))?new Pn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xn.exec(e))?On(t[1],t[2],t[3],t[4]):(t=kn.exec(e))?On(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Sn.exec(e))?Vn(t[1],t[2]/100,t[3]/100,1):(t=En.exec(e))?Vn(t[1],t[2]/100,t[3]/100,t[4]):Tn.hasOwnProperty(e)?In(Tn[e]):"transparent"===e?new Pn(NaN,NaN,NaN,0):null}function In(e){return new Pn(e>>16&255,e>>8&255,255&e,1)}function On(e,t,n,r){return r<=0&&(e=t=n=NaN),new Pn(e,t,n,r)}function Ln(e){return e instanceof fn||(e=Mn(e)),e?new Pn((e=e.rgb()).r,e.g,e.b,e.opacity):new Pn}function Nn(e,t,n,r){return 1===arguments.length?Ln(e):new Pn(e,t,n,null==r?1:r)}function Pn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Rn(){return`#${Yn(this.r)}${Yn(this.g)}${Yn(this.b)}`}function jn(){const e=Fn(this.opacity);return`${1===e?"rgb(":"rgba("}${Bn(this.r)}, ${Bn(this.g)}, ${Bn(this.b)}${1===e?")":`, ${e})`}`}function Fn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Bn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yn(e){return((e=Bn(e))<16?"0":"")+e.toString(16)}function Vn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new zn(e,t,n,r)}function Hn(e){if(e instanceof zn)return new zn(e.h,e.s,e.l,e.opacity);if(e instanceof fn||(e=Mn(e)),!e)return new zn;if(e instanceof zn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n<r):n===o?(r-t)/a+2:(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new zn(s,a,l,e.opacity)}function Un(e,t,n,r){return 1===arguments.length?Hn(e):new zn(e,t,n,null==r?1:r)}function zn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qn(e){return(e=(e||0)%360)<0?e+360:e}function Wn(e){return Math.max(0,Math.min(1,e||0))}function $n(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}hn(fn,Mn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Dn,formatHex:Dn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Hn(this).formatHsl()},formatRgb:Cn,toString:Cn}),hn(Pn,Nn,pn(fn,{brighter(e){return e=null==e?gn:Math.pow(gn,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?mn:Math.pow(mn,e),new Pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pn(Bn(this.r),Bn(this.g),Bn(this.b),Fn(this.opacity))},displayable(){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:Rn,formatHex:Rn,formatHex8:function(){return`#${Yn(this.r)}${Yn(this.g)}${Yn(this.b)}${Yn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:jn,toString:jn})),hn(zn,Un,pn(fn,{brighter(e){return e=null==e?gn:Math.pow(gn,e),new zn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?mn:Math.pow(mn,e),new zn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Pn($n(e>=240?e-240:e+120,i,r),$n(e,i,r),$n(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new zn(qn(this.h),Wn(this.s),Wn(this.l),Fn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Fn(this.opacity);return`${1===e?"hsl(":"hsla("}${qn(this.h)}, ${100*Wn(this.s)}%, ${100*Wn(this.l)}%${1===e?")":`, ${e})`}`}}));const Gn=Math.PI/180,Kn=180/Math.PI,Zn=.96422,Xn=.82521,Qn=4/29,Jn=6/29,er=3*Jn*Jn,tr=Jn*Jn*Jn;function nr(e){if(e instanceof ir)return new ir(e.l,e.a,e.b,e.opacity);if(e instanceof dr)return hr(e);e instanceof Pn||(e=Ln(e));var t,n,r=lr(e.r),i=lr(e.g),o=lr(e.b),s=or((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=s:(t=or((.4360747*r+.3850649*i+.1430804*o)/Zn),n=or((.0139322*r+.0971045*i+.7141733*o)/Xn)),new ir(116*s-16,500*(t-s),200*(s-n),e.opacity)}function rr(e,t,n,r){return 1===arguments.length?nr(e):new ir(e,t,n,null==r?1:r)}function ir(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function or(e){return e>tr?Math.pow(e,1/3):e/er+Qn}function sr(e){return e>Jn?e*e*e:er*(e-Qn)}function ar(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function lr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function cr(e){if(e instanceof dr)return new dr(e.h,e.c,e.l,e.opacity);if(e instanceof ir||(e=nr(e)),0===e.a&&0===e.b)return new dr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Kn;return new dr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ur(e,t,n,r){return 1===arguments.length?cr(e):new dr(e,t,n,null==r?1:r)}function dr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function hr(e){if(isNaN(e.h))return new ir(e.l,0,0,e.opacity);var t=e.h*Gn;return new ir(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}hn(ir,rr,pn(fn,{brighter(e){return new ir(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ir(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Pn(ar(3.1338561*(t=Zn*sr(t))-1.6168667*(e=1*sr(e))-.4906146*(n=Xn*sr(n))),ar(-.9787684*t+1.9161415*e+.033454*n),ar(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),hn(dr,ur,pn(fn,{brighter(e){return new dr(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new dr(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return hr(this).rgb()}}));var pr=-.14861,fr=1.78277,mr=-.29227,gr=-.90649,vr=1.97294,yr=vr*gr,br=vr*fr,_r=fr*mr-gr*pr;function wr(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ar)return new Ar(e.h,e.s,e.l,e.opacity);e instanceof Pn||(e=Ln(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(_r*r+yr*t-br*n)/(_r+yr-br),o=r-i,s=(vr*(n-i)-mr*o)/gr,a=Math.sqrt(s*s+o*o)/(vr*i*(1-i)),l=a?Math.atan2(s,o)*Kn-120:NaN;return new Ar(l<0?l+360:l,a,i,e.opacity)}(e):new Ar(e,t,n,null==r?1:r)}function Ar(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function xr(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}function kr(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return xr((n-r/t)*t,s,i,o,a)}}function Sr(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],s=e[(r+1)%t],a=e[(r+2)%t];return xr((n-r/t)*t,i,o,s,a)}}hn(Ar,wr,pn(fn,{brighter(e){return e=null==e?gn:Math.pow(gn,e),new Ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?mn:Math.pow(mn,e),new Ar(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Gn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Pn(255*(t+n*(pr*r+fr*i)),255*(t+n*(mr*r+gr*i)),255*(t+n*(vr*r)),this.opacity)}}));var Er=e=>()=>e;function Tr(e,t){return function(n){return e+n*t}}function Dr(e,t){var n=t-e;return n?Tr(e,n>180||n<-180?n-360*Math.round(n/360):n):Er(isNaN(e)?t:e)}function Cr(e,t){var n=t-e;return n?Tr(e,n):Er(isNaN(e)?t:e)}var Mr=function e(t){var n=function(e){return 1==(e=+e)?Cr:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Er(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Nn(e)).r,(t=Nn(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),s=Cr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);function Ir(e){return function(t){var n,r,i=t.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=Nn(t[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=e(o),s=e(s),a=e(a),r.opacity=1,function(e){return r.r=o(e),r.g=s(e),r.b=a(e),r+""}}}var Or=Ir(kr),Lr=Ir(Sr);function Nr(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function Pr(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Rr(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=Ur(e[n],t[n]);for(;n<r;++n)s[n]=t[n];return function(e){for(n=0;n<i;++n)s[n]=o[n](e);return s}}function jr(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Fr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Br(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Ur(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Yr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vr=new RegExp(Yr.source,"g");function Hr(e,t){var n,r,i,o=Yr.lastIndex=Vr.lastIndex=0,s=-1,a=[],l=[];for(e+="",t+="";(n=Yr.exec(e))&&(r=Vr.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Fr(n,r)})),o=Vr.lastIndex;return o<t.length&&(i=t.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)a[(n=l[r]).i]=n.x(e);return a.join("")})}function Ur(e,t){var n,r=typeof t;return null==t||"boolean"===r?Er(t):("number"===r?Fr:"string"===r?(n=Mn(t))?(t=n,Mr):Hr:t instanceof Mn?Mr:t instanceof Date?jr:Pr(t)?Nr:Array.isArray(t)?Rr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Br:Fr)(e,t)}function zr(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var qr,Wr=180/Math.PI,$r={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Gr(e,t,n,r,i,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Wr,skewX:Math.atan(l)*Wr,scaleX:s,scaleY:a}}function Kr(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,s){var a=[],l=[];return o=e(o),s=e(s),function(e,r,i,o,s,a){if(e!==i||r!==o){var l=s.push("translate(",null,t,null,n);a.push({i:l-4,x:Fr(e,i)},{i:l-2,x:Fr(r,o)})}else(i||o)&&s.push("translate("+i+t+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,l),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fr(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,s.rotate,a,l),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fr(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,s.skewX,a,l),function(e,t,n,r,o,s){if(e!==n||t!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:Fr(e,n)},{i:a-2,x:Fr(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,l),o=s=null,function(e){for(var t,n=-1,r=l.length;++n<r;)a[(t=l[n]).i]=t.x(e);return a.join("")}}}var Zr=Kr(function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?$r:Gr(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),Xr=Kr(function(e){return null==e?$r:(qr||(qr=document.createElementNS("http://www.w3.org/2000/svg","g")),qr.setAttribute("transform",e),(e=qr.transform.baseVal.consolidate())?Gr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):$r)},", ",")",")");function Qr(e){return((e=Math.exp(e))+1/e)/2}var Jr=function e(t,n,r){function i(e,i){var o,s,a=e[0],l=e[1],c=e[2],u=i[0],d=i[1],h=i[2],p=u-a,f=d-l,m=p*p+f*f;if(m<1e-12)s=Math.log(h/c)/t,o=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*s)]};else{var g=Math.sqrt(m),v=(h*h-c*c+r*m)/(2*c*n*g),y=(h*h-c*c-r*m)/(2*h*n*g),b=Math.log(Math.sqrt(v*v+1)-v),_=Math.log(Math.sqrt(y*y+1)-y);s=(_-b)/t,o=function(e){var r=e*s,i=Qr(b),o=c/(n*g)*(i*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[a+o*p,l+o*f,c*i/Qr(t*r+b)]}}return o.duration=1e3*s*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);function ei(e){return function(t,n){var r=e((t=Un(t)).h,(n=Un(n)).h),i=Cr(t.s,n.s),o=Cr(t.l,n.l),s=Cr(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=s(e),t+""}}}var ti=ei(Dr),ni=ei(Cr);function ri(e){return function(t,n){var r=e((t=ur(t)).h,(n=ur(n)).h),i=Cr(t.c,n.c),o=Cr(t.l,n.l),s=Cr(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=s(e),t+""}}}var ii=ri(Dr),oi=ri(Cr);function si(e){return function t(n){function r(t,r){var i=e((t=wr(t)).h,(r=wr(r)).h),o=Cr(t.s,r.s),s=Cr(t.l,r.l),a=Cr(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=s(Math.pow(e,n)),t.opacity=a(e),t+""}}return n=+n,r.gamma=t,r}(1)}var ai=si(Dr),li=si(Cr);function ci(e,t){void 0===t&&(t=e,e=Ur);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}var ui,di,hi=0,pi=0,fi=0,mi=0,gi=0,vi=0,yi="object"==typeof performance&&performance.now?performance:Date,bi="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function _i(){return gi||(bi(wi),gi=yi.now()+vi)}function wi(){gi=0}function Ai(){this._call=this._time=this._next=null}function xi(e,t,n){var r=new Ai;return r.restart(e,t,n),r}function ki(){_i(),++hi;for(var e,t=ui;t;)(e=gi-t._time)>=0&&t._call.call(void 0,e),t=t._next;--hi}function Si(){gi=(mi=yi.now())+vi,hi=pi=0;try{ki()}finally{hi=0,function(){for(var e,t,n=ui,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:ui=t);di=e,Ti(r)}(),gi=0}}function Ei(){var e=yi.now(),t=e-mi;t>1e3&&(vi-=t,mi=e)}function Ti(e){hi||(pi&&(pi=clearTimeout(pi)),e-gi>24?(e<1/0&&(pi=setTimeout(Si,e-yi.now()-vi)),fi&&(fi=clearInterval(fi))):(fi||(mi=yi.now(),fi=setInterval(Ei,1e3)),hi=1,bi(Si)))}function Di(e,t,n){var r=new Ai;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}Ai.prototype=xi.prototype={constructor:Ai,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?_i():+n)+(null==t?0:+t),this._next||di===this||(di?di._next=this:ui=this,di=this),this._call=e,this._time=n,Ti()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ti())}};var Ci=Ie("start","end","cancel","interrupt"),Mi=[];function Ii(e,t,n,r,i,o){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(l){var c,u,d,h;if(1!==n.state)return a();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return Di(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(Di(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(a),n.state=5,1),o=-1,s=r.length;++o<s;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=xi(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:Ci,tween:Mi,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Oi(e,t){var n=Ni(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Li(e,t){var n=Ni(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Ni(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Pi(e,t){var n,r,i,o=e.__transition,s=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete e.__transition}}function Ri(e,t){var n,r;return function(){var i=Li(this,e),o=i.tween;if(o!==n)for(var s=0,a=(r=n=o).length;s<a;++s)if(r[s].name===t){(r=r.slice()).splice(s,1);break}i.tween=r}}function ji(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Li(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function Fi(e,t,n){var r=e._id;return e.each(function(){var e=Li(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return Ni(e,r).value[t]}}function Bi(e,t){var n;return("number"==typeof t?Fr:t instanceof Mn?Mr:(n=Mn(t))?(t=n,Mr):Hr)(e,t)}function Yi(e){return function(){this.removeAttribute(e)}}function Vi(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Hi(e,t,n){var r,i,o=n+"";return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}}function Ui(e,t,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}function zi(e,t,n){var r,i,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=t(r=s,l));this.removeAttribute(e)}}function qi(e,t,n){var r,i,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=t(r=s,l));this.removeAttributeNS(e.space,e.local)}}function Wi(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function $i(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function Gi(e,t){return function(){Oi(this,e).delay=+t.apply(this,arguments)}}function Ki(e,t){return t=+t,function(){Oi(this,e).delay=t}}function Zi(e,t){return function(){Li(this,e).duration=+t.apply(this,arguments)}}function Xi(e,t){return t=+t,function(){Li(this,e).duration=t}}var Qi=Wt.prototype.constructor;function Ji(e){return function(){this.style.removeProperty(e)}}var eo=0;function to(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function no(e){return Wt().transition(e)}function ro(){return++eo}var io=Wt.prototype;function oo(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function so(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}to.prototype=no.prototype={constructor:to,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=He(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a,l,c=r[s],u=c.length,d=o[s]=new Array(u),h=0;h<u;++h)(a=c[h])&&(l=e.call(a,a.__data__,h,c))&&("__data__"in a&&(l.__data__=a.__data__),d[h]=l,Ii(d[h],t,n,h,d,Ni(a,n)));return new to(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=qe(e));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l,c=r[a],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,p=e.call(l,l.__data__,d,c),f=Ni(l,n),m=0,g=p.length;m<g;++m)(h=p[m])&&Ii(h,t,n,m,p,f);o.push(p),s.push(l)}return new to(o,s,t,n)},selectChild:io.selectChild,selectChildren:io.selectChildren,filter:function(e){"function"!=typeof e&&(e=We(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s=t[i],a=s.length,l=r[i]=[],c=0;c<a;++c)(o=s[c])&&e.call(o,o.__data__,c,s)&&l.push(o);return new to(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l,c=t[a],u=n[a],d=c.length,h=s[a]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;a<r;++a)s[a]=t[a];return new to(s,this._parents,this._name,this._id)},selection:function(){return new Qi(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=ro(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,c=0;c<l;++c)if(s=a[c]){var u=Ni(s,t);Ii(s,e,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new to(r,this._parents,e,n)},call:io.call,nodes:io.nodes,node:io.node,size:io.size,empty:io.empty,each:io.each,on:function(e,t){var n=this._id;return arguments.length<2?Ni(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?Oi:Li;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}(n,e,t))},attr:function(e,t){var n=je(e),r="transform"===n?Xr:Bi;return this.attrTween(e,"function"==typeof t?(n.local?qi:zi)(n,r,Fi(this,"attr."+e,t)):null==t?(n.local?Vi:Yi)(n):(n.local?Ui:Hi)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=je(e);return this.tween(n,(r.local?Wi:$i)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Zr:Bi;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=mt(this,e),s=(this.style.removeProperty(e),mt(this,e));return o===s?null:o===n&&s===r?i:i=t(n=o,r=s)}}(e,r)).on("end.style."+e,Ji(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var s=mt(this,e),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(e),l=a=mt(this,e)),s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a))}}(e,r,Fi(this,"style."+e,t))).each(function(e,t){var n,r,i,o,s="style."+t,a="end."+s;return function(){var l=Li(this,e),c=l.on,u=null==l.value[s]?o||(o=Ji(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(a,i=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var s=mt(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Fi(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=Ni(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?Ri:ji)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Gi:Ki)(t,e)):Ni(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Zi:Xi)(t,e)):Ni(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){Li(this,e).ease=t}}(t,e)):Ni(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;Li(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){0==--i&&o()}};n.each(function(){var n=Li(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t}),0===i&&o()})},[Symbol.iterator]:io[Symbol.iterator]};var ao=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),lo=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),co=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),uo=Math.PI,ho=uo/2;function po(e){return(1-Math.cos(uo*e))/2}function fo(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function mo(e){return((e*=2)<=1?fo(1-e):2-fo(e-1))/2}function go(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var vo=4/11,yo=6/11,bo=8/11,_o=9/11,wo=10/11,Ao=21/22,xo=7.5625;function ko(e){return(e=+e)<vo?xo*e*e:e<bo?xo*(e-=yo)*e+.75:e<wo?xo*(e-=_o)*e+.9375:xo*(e-=Ao)*e+.984375}var So=1.70158,Eo=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(So),To=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(So),Do=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(So),Co=2*Math.PI,Mo=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Co);function i(e){return t*fo(- --e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*Co)},i.period=function(n){return e(t,n)},i}(1,.3),Io=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Co);function i(e){return 1-t*fo(e=+e)*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*Co)},i.period=function(n){return e(t,n)},i}(1,.3),Oo=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Co);function i(e){return((e=2*e-1)<0?t*fo(-e)*Math.sin((r-e)/n):2-t*fo(e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*Co)},i.period=function(n){return e(t,n)},i}(1,.3),Lo={time:null,delay:0,duration:250,ease:so};function No(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}Wt.prototype.interrupt=function(e){return this.each(function(){Pi(this,e)})},Wt.prototype.transition=function(e){var t,n;e instanceof to?(t=e._id,e=e._name):(t=ro(),(n=Lo).time=_i(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,c=0;c<l;++c)(s=a[c])&&Ii(s,e,t,c,a,n||No(s,t));return new to(r,this._parents,e,t)};var Po=[null],Ro=e=>()=>e;function jo(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Fo(e){e.preventDefault(),e.stopImmediatePropagation()}var Bo={name:"drag"},Yo={name:"space"},Vo={name:"handle"},Ho={name:"center"};const{abs:Uo,max:zo,min:qo}=Math;function Wo(e){return[+e[0],+e[1]]}function $o(e){return[Wo(e[0]),Wo(e[1])]}var Go={name:"x",handles:["w","e"].map(ns),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Ko={name:"y",handles:["n","s"].map(ns),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Zo={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(ns),input:function(e){return null==e?null:$o(e)},output:function(e){return e}},Xo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Jo={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},es={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ts={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ns(e){return{type:e}}function rs(e){return!e.ctrlKey&&!e.button}function is(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function os(){return navigator.maxTouchPoints||"ontouchstart"in this}function ss(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function as(e){var t,n=is,r=rs,i=os,o=!0,s=Ie("start","brush","end"),a=6;function l(t){var n=t.property("__brush",m).selectAll(".overlay").data([ns("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Xo.overlay).merge(n).each(function(){var e=ss(this).extent;$t(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])}),t.selectAll(".selection").data([ns("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Xo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,function(e){return e.type});r.exit().remove(),r.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return Xo[e.type]}),t.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",f).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var e=$t(this),t=ss(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-a/2:t[0][0]-a/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-a/2:t[0][1]-a/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+a:a}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+a:a})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(e,t,n){var r=e.__brush.emitter;return!r||n&&r.clean?new d(e,t,n):r}function d(e,t,n){this.that=e,this.args=t,this.state=e.__brush,this.active=0,this.clean=n}function h(n){if((!t||n.touches)&&r.apply(this,arguments)){var i,s,a,l,d,h,p,f,m,g,v,y=this,b=n.target.__data__.type,_="selection"===(o&&n.metaKey?b="overlay":b)?Bo:o&&n.altKey?Ho:Vo,w=e===Ko?null:es[b],A=e===Go?null:ts[b],x=ss(y),k=x.extent,S=x.selection,E=k[0][0],T=k[0][1],D=k[1][0],C=k[1][1],M=0,I=0,O=w&&A&&o&&n.shiftKey,L=Array.from(n.touches||[n],e=>{const t=e.identifier;return(e=Qt(e,y)).point0=e.slice(),e.identifier=t,e});Pi(y);var N=u(y,arguments,!0).beforestart();if("overlay"===b){S&&(m=!0);const t=[L[0],L[1]||L[0]];x.selection=S=[[i=e===Ko?E:qo(t[0][0],t[1][0]),a=e===Go?T:qo(t[0][1],t[1][1])],[d=e===Ko?D:zo(t[0][0],t[1][0]),p=e===Go?C:zo(t[0][1],t[1][1])]],L.length>1&&B(n)}else i=S[0][0],a=S[0][1],d=S[1][0],p=S[1][1];s=i,l=a,h=d,f=p;var P=$t(y).attr("pointer-events","none"),R=P.selectAll(".overlay").attr("cursor",Xo[b]);if(n.touches)N.moved=F,N.ended=Y;else{var j=$t(n.view).on("mousemove.brush",F,!0).on("mouseup.brush",Y,!0);o&&j.on("keydown.brush",function(e){switch(e.keyCode){case 16:O=w&&A;break;case 18:_===Vo&&(w&&(d=h-M*w,i=s+M*w),A&&(p=f-I*A,a=l+I*A),_=Ho,B(e));break;case 32:_!==Vo&&_!==Ho||(w<0?d=h-M:w>0&&(i=s-M),A<0?p=f-I:A>0&&(a=l-I),_=Yo,R.attr("cursor",Xo.selection),B(e));break;default:return}Fo(e)},!0).on("keyup.brush",function(e){switch(e.keyCode){case 16:O&&(g=v=O=!1,B(e));break;case 18:_===Ho&&(w<0?d=h:w>0&&(i=s),A<0?p=f:A>0&&(a=l),_=Vo,B(e));break;case 32:_===Yo&&(e.altKey?(w&&(d=h-M*w,i=s+M*w),A&&(p=f-I*A,a=l+I*A),_=Ho):(w<0?d=h:w>0&&(i=s),A<0?p=f:A>0&&(a=l),_=Vo),R.attr("cursor",Xo[b]),B(e));break;default:return}Fo(e)},!0),rn(n.view)}c.call(y),N.start(n,_.name)}function F(e){for(const t of e.changedTouches||[e])for(const e of L)e.identifier===t.identifier&&(e.cur=Qt(t,y));if(O&&!g&&!v&&1===L.length){const e=L[0];Uo(e.cur[0]-e[0])>Uo(e.cur[1]-e[1])?v=!0:g=!0}for(const e of L)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);m=!0,Fo(e),B(e)}function B(e){const t=L[0],n=t.point0;var r;switch(M=t[0]-n[0],I=t[1]-n[1],_){case Yo:case Bo:w&&(M=zo(E-i,qo(D-d,M)),s=i+M,h=d+M),A&&(I=zo(T-a,qo(C-p,I)),l=a+I,f=p+I);break;case Vo:L[1]?(w&&(s=zo(E,qo(D,L[0][0])),h=zo(E,qo(D,L[1][0])),w=1),A&&(l=zo(T,qo(C,L[0][1])),f=zo(T,qo(C,L[1][1])),A=1)):(w<0?(M=zo(E-i,qo(D-i,M)),s=i+M,h=d):w>0&&(M=zo(E-d,qo(D-d,M)),s=i,h=d+M),A<0?(I=zo(T-a,qo(C-a,I)),l=a+I,f=p):A>0&&(I=zo(T-p,qo(C-p,I)),l=a,f=p+I));break;case Ho:w&&(s=zo(E,qo(D,i-M*w)),h=zo(E,qo(D,d+M*w))),A&&(l=zo(T,qo(C,a-I*A)),f=zo(T,qo(C,p+I*A)))}h<s&&(w*=-1,r=i,i=d,d=r,r=s,s=h,h=r,b in Qo&&R.attr("cursor",Xo[b=Qo[b]])),f<l&&(A*=-1,r=a,a=p,p=r,r=l,l=f,f=r,b in Jo&&R.attr("cursor",Xo[b=Jo[b]])),x.selection&&(S=x.selection),g&&(s=S[0][0],h=S[1][0]),v&&(l=S[0][1],f=S[1][1]),S[0][0]===s&&S[0][1]===l&&S[1][0]===h&&S[1][1]===f||(x.selection=[[s,l],[h,f]],c.call(y),N.brush(e,_.name))}function Y(e){if(function(e){e.stopImmediatePropagation()}(e),e.touches){if(e.touches.length)return;t&&clearTimeout(t),t=setTimeout(function(){t=null},500)}else on(e.view,m),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);P.attr("pointer-events","all"),R.attr("cursor",Xo.overlay),x.selection&&(S=x.selection),function(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}(S)&&(x.selection=null,c.call(y)),N.end(e,_.name)}}function p(e){u(this,arguments).moved(e)}function f(e){u(this,arguments).ended(e)}function m(){var t=this.__brush||{selection:null};return t.extent=$o(n.apply(this,arguments)),t.dim=e,t}return l.move=function(t,n,r){t.tween?t.on("start.brush",function(e){u(this,arguments).beforestart().start(e)}).on("interrupt.brush end.brush",function(e){u(this,arguments).end(e)}).tween("brush",function(){var t=this,r=t.__brush,i=u(t,arguments),o=r.selection,s=e.input("function"==typeof n?n.apply(this,arguments):n,r.extent),a=Ur(o,s);function l(e){r.selection=1===e&&null===s?null:a(e),c.call(t),i.brush()}return null!==o&&null!==s?l:l(1)}):t.each(function(){var t=this,i=arguments,o=t.__brush,s=e.input("function"==typeof n?n.apply(t,i):n,o.extent),a=u(t,i).beforestart();Pi(t),o.selection=null===s?null:s,c.call(t),a.start(r).brush(r).end(r)})},l.clear=function(e,t){l.move(e,null,t)},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(e,t){return this.starting?(this.starting=!1,this.emit("start",e,t)):this.emit("brush",e),this},brush:function(e,t){return this.emit("brush",e,t),this},end:function(e,t){return 0==--this.active&&(delete this.state.emitter,this.emit("end",e,t)),this},emit:function(t,n,r){var i=$t(this.that).datum();s.call(t,this.that,new jo(t,{sourceEvent:n,target:l,selection:e.output(this.state.selection),mode:r,dispatch:s}),i)}},l.extent=function(e){return arguments.length?(n="function"==typeof e?e:Ro($o(e)),l):n},l.filter=function(e){return arguments.length?(r="function"==typeof e?e:Ro(!!e),l):r},l.touchable=function(e){return arguments.length?(i="function"==typeof e?e:Ro(!!e),l):i},l.handleSize=function(e){return arguments.length?(a=+e,l):a},l.keyModifiers=function(e){return arguments.length?(o=!!e,l):o},l.on=function(){var e=s.on.apply(s,arguments);return e===s?l:e},l}var ls=Math.abs,cs=Math.cos,us=Math.sin,ds=Math.PI,hs=ds/2,ps=2*ds,fs=Math.max,ms=1e-12;function gs(e,t){return Array.from({length:t-e},(t,n)=>e+n)}function vs(e,t){var n=0,r=null,i=null,o=null;function s(s){var a,l=s.length,c=new Array(l),u=gs(0,l),d=new Array(l*l),h=new Array(l),p=0;s=Float64Array.from({length:l*l},t?(e,t)=>s[t%l][t/l|0]:(e,t)=>s[t/l|0][t%l]);for(let t=0;t<l;++t){let n=0;for(let r=0;r<l;++r)n+=s[t*l+r]+e*s[r*l+t];p+=c[t]=n}a=(p=fs(0,ps-n*l)/p)?n:ps/l;{let t=0;r&&u.sort((e,t)=>r(c[e],c[t]));for(const n of u){const r=t;if(e){const e=gs(1+~l,l).filter(e=>e<0?s[~e*l+n]:s[n*l+e]);i&&e.sort((e,t)=>i(e<0?-s[~e*l+n]:s[n*l+e],t<0?-s[~t*l+n]:s[n*l+t]));for(const r of e)r<0?(d[~r*l+n]||(d[~r*l+n]={source:null,target:null})).target={index:n,startAngle:t,endAngle:t+=s[~r*l+n]*p,value:s[~r*l+n]}:(d[n*l+r]||(d[n*l+r]={source:null,target:null})).source={index:n,startAngle:t,endAngle:t+=s[n*l+r]*p,value:s[n*l+r]};h[n]={index:n,startAngle:r,endAngle:t,value:c[n]}}else{const e=gs(0,l).filter(e=>s[n*l+e]||s[e*l+n]);i&&e.sort((e,t)=>i(s[n*l+e],s[n*l+t]));for(const r of e){let e;if(n<r?(e=d[n*l+r]||(d[n*l+r]={source:null,target:null}),e.source={index:n,startAngle:t,endAngle:t+=s[n*l+r]*p,value:s[n*l+r]}):(e=d[r*l+n]||(d[r*l+n]={source:null,target:null}),e.target={index:n,startAngle:t,endAngle:t+=s[n*l+r]*p,value:s[n*l+r]},n===r&&(e.source=e.target)),e.source&&e.target&&e.source.value<e.target.value){const t=e.source;e.source=e.target,e.target=t}}h[n]={index:n,startAngle:r,endAngle:t,value:c[n]}}t+=a}}return(d=Object.values(d)).groups=h,o?d.sort(o):d}return s.padAngle=function(e){return arguments.length?(n=fs(0,e),s):n},s.sortGroups=function(e){return arguments.length?(r=e,s):r},s.sortSubgroups=function(e){return arguments.length?(i=e,s):i},s.sortChords=function(e){return arguments.length?(null==e?o=null:(t=e,o=function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)})._=e,s):o&&o._;var t},s}const ys=Math.PI,bs=2*ys,_s=1e-6,ws=bs-_s;function As(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}let xs=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?As:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return As;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,o){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,a=n-e,l=r-t,c=o-e,u=s-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>_s)if(Math.abs(u*a-l*c)>_s&&i){let h=n-o,p=r-s,f=a*a+l*l,m=h*h+p*p,g=Math.sqrt(f),v=Math.sqrt(d),y=i*Math.tan((ys-Math.acos((f+d-m)/(2*g*v)))/2),b=y/v,_=y/g;Math.abs(b-1)>_s&&this._append`L${e+b*c},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*h>c*p)},${this._x1=e+_*a},${this._y1=t+_*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,o){if(e=+e,t=+t,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(r),a=n*Math.sin(r),l=e+s,c=t+a,u=1^o,d=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>_s||Math.abs(this._y1-c)>_s)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%bs+bs),d>ws?this._append`A${n},${n},0,1,${u},${e-s},${t-a}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>_s&&this._append`A${n},${n},0,${+(d>=ys)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function ks(){return new xs}ks.prototype=xs.prototype;var Ss=Array.prototype.slice;function Es(e){return function(){return e}}function Ts(e){return e.source}function Ds(e){return e.target}function Cs(e){return e.radius}function Ms(e){return e.startAngle}function Is(e){return e.endAngle}function Os(){return 0}function Ls(){return 10}function Ns(e){var t=Ts,n=Ds,r=Cs,i=Cs,o=Ms,s=Is,a=Os,l=null;function c(){var c,u=t.apply(this,arguments),d=n.apply(this,arguments),h=a.apply(this,arguments)/2,p=Ss.call(arguments),f=+r.apply(this,(p[0]=u,p)),m=o.apply(this,p)-hs,g=s.apply(this,p)-hs,v=+i.apply(this,(p[0]=d,p)),y=o.apply(this,p)-hs,b=s.apply(this,p)-hs;if(l||(l=c=ks()),h>ms&&(ls(g-m)>2*h+ms?g>m?(m+=h,g-=h):(m-=h,g+=h):m=g=(m+g)/2,ls(b-y)>2*h+ms?b>y?(y+=h,b-=h):(y-=h,b+=h):y=b=(y+b)/2),l.moveTo(f*cs(m),f*us(m)),l.arc(0,0,f,m,g),m!==y||g!==b)if(e){var _=v-+e.apply(this,arguments),w=(y+b)/2;l.quadraticCurveTo(0,0,_*cs(y),_*us(y)),l.lineTo(v*cs(w),v*us(w)),l.lineTo(_*cs(b),_*us(b))}else l.quadraticCurveTo(0,0,v*cs(y),v*us(y)),l.arc(0,0,v,y,b);if(l.quadraticCurveTo(0,0,f*cs(m),f*us(m)),l.closePath(),c)return l=null,c+""||null}return e&&(c.headRadius=function(t){return arguments.length?(e="function"==typeof t?t:Es(+t),c):e}),c.radius=function(e){return arguments.length?(r=i="function"==typeof e?e:Es(+e),c):r},c.sourceRadius=function(e){return arguments.length?(r="function"==typeof e?e:Es(+e),c):r},c.targetRadius=function(e){return arguments.length?(i="function"==typeof e?e:Es(+e),c):i},c.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:Es(+e),c):o},c.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:Es(+e),c):s},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Es(+e),c):a},c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.context=function(e){return arguments.length?(l=null==e?null:e,c):l},c}var Ps=Array.prototype.slice;function Rs(e,t){return e-t}var js=e=>()=>e;function Fs(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=Bs(e,t[r]))return n;return 0}function Bs(e,t){for(var n=t[0],r=t[1],i=-1,o=0,s=e.length,a=s-1;o<s;a=o++){var l=e[o],c=l[0],u=l[1],d=e[a],h=d[0],p=d[1];if(Ys(l,d,t))return 0;u>r!=p>r&&n<(h-c)*(r-u)/(p-u)+c&&(i=-i)}return i}function Ys(e,t,n){var r,i,o,s;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],s=t[r],i<=o&&o<=s||s<=o&&o<=i)}function Vs(){}var Hs=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Us(){var e=1,t=1,n=J,r=a;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Rs);else{const n=x(e,zs);for(t=K(...Q(n[0],n[1],t),t);t[t.length-1]>=n[1];)t.pop();for(;t[1]<n[0];)t.shift()}return t.map(t=>o(e,t))}function o(n,i){const o=null==i?NaN:+i;if(isNaN(o))throw new Error(`invalid value: ${i}`);var a=[],l=[];return function(n,r,i){var o,a,l,c,u,d,h=new Array,p=new Array;for(o=a=-1,c=qs(n[0],r),Hs[c<<1].forEach(f);++o<e-1;)l=c,c=qs(n[o+1],r),Hs[l|c<<1].forEach(f);for(Hs[c|0].forEach(f);++a<t-1;){for(o=-1,c=qs(n[a*e+e],r),u=qs(n[a*e],r),Hs[c<<1|u<<2].forEach(f);++o<e-1;)l=c,c=qs(n[a*e+e+o+1],r),d=u,u=qs(n[a*e+o+1],r),Hs[l|c<<1|u<<2|d<<3].forEach(f);Hs[c|u<<3].forEach(f)}for(o=-1,u=n[a*e]>=r,Hs[u<<2].forEach(f);++o<e-1;)d=u,u=qs(n[a*e+o+1],r),Hs[u<<2|d<<3].forEach(f);function f(e){var t,n,r=[e[0][0]+o,e[0][1]+a],l=[e[1][0]+o,e[1][1]+a],c=s(r),u=s(l);(t=p[c])?(n=h[u])?(delete p[t.end],delete h[n.start],t===n?(t.ring.push(l),i(t.ring)):h[t.start]=p[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete p[t.end],t.ring.push(l),p[t.end=u]=t):(t=h[u])?(n=p[c])?(delete h[t.start],delete p[n.end],t===n?(t.ring.push(l),i(t.ring)):h[n.start]=p[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete h[t.start],t.ring.unshift(r),h[t.start=c]=t):h[c]=p[u]={start:c,end:u,ring:[r,l]}}Hs[u<<3].forEach(f)}(n,o,function(e){r(e,n,o),function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}(e)>0?a.push([e]):l.push(e)}),l.forEach(function(e){for(var t,n=0,r=a.length;n<r;++n)if(-1!==Fs((t=a[n])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:i,coordinates:a}}function s(t){return 2*t[0]+t[1]*(e+1)*4}function a(n,r,i){n.forEach(function(n){var o=n[0],s=n[1],a=0|o,l=0|s,c=Ws(r[l*e+a]);o>0&&o<e&&a===o&&(n[0]=$s(o,Ws(r[l*e+a-1]),c,i)),s>0&&s<t&&l===s&&(n[1]=$s(s,Ws(r[(l-1)*e+a]),c,i))})}return i.contour=o,i.size=function(n){if(!arguments.length)return[e,t];var r=Math.floor(n[0]),o=Math.floor(n[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?js(Ps.call(e)):js(e),i):n},i.smooth=function(e){return arguments.length?(r=e?a:Vs,i):r===a},i}function zs(e){return isFinite(e)?e:NaN}function qs(e,t){return null!=e&&+e>=t}function Ws(e){return null==e||isNaN(e=+e)?-1/0:e}function $s(e,t,n,r){const i=r-t,o=n-t,s=isFinite(i)||isFinite(o)?i/o:Math.sign(i)/Math.sign(o);return isNaN(s)?e:e+s-.5}function Gs(e){return e[0]}function Ks(e){return e[1]}function Zs(){return 1}const Xs=134217729;function Qs(e,t,n,r,i){let o,s,a,l,c=t[0],u=r[0],d=0,h=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++h]);let p=0;if(d<e&&h<n)for(u>c==u>-c?(s=c+o,a=o-(s-c),c=t[++d]):(s=u+o,a=o-(s-u),u=r[++h]),o=s,0!==a&&(i[p++]=a);d<e&&h<n;)u>c==u>-c?(s=o+c,l=s-o,a=o-(s-l)+(c-l),c=t[++d]):(s=o+u,l=s-o,a=o-(s-l)+(u-l),u=r[++h]),o=s,0!==a&&(i[p++]=a);for(;d<e;)s=o+c,l=s-o,a=o-(s-l)+(c-l),c=t[++d],o=s,0!==a&&(i[p++]=a);for(;h<n;)s=o+u,l=s-o,a=o-(s-l)+(u-l),u=r[++h],o=s,0!==a&&(i[p++]=a);return 0===o&&0!==p||(i[p++]=o),p}function Js(e){return new Float64Array(e)}const ea=Js(4),ta=Js(8),na=Js(12),ra=Js(16),ia=Js(4);function oa(e,t,n,r,i,o){const s=(t-o)*(n-i),a=(e-i)*(r-o),l=s-a,c=Math.abs(s+a);return Math.abs(l)>=33306690738754716e-32*c?l:-function(e,t,n,r,i,o,s){let a,l,c,u,d,h,p,f,m,g,v,y,b,_,w,A,x,k;const S=e-i,E=n-i,T=t-o,D=r-o;_=S*D,h=Xs*S,p=h-(h-S),f=S-p,h=Xs*D,m=h-(h-D),g=D-m,w=f*g-(_-p*m-f*m-p*g),A=T*E,h=Xs*T,p=h-(h-T),f=T-p,h=Xs*E,m=h-(h-E),g=E-m,x=f*g-(A-p*m-f*m-p*g),v=w-x,d=w-v,ea[0]=w-(v+d)+(d-x),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-A,d=b-v,ea[1]=b-(v+d)+(d-A),k=y+v,d=k-y,ea[2]=y-(k-d)+(v-d),ea[3]=k;let C=function(e,t){let n=t[0];for(let e=1;e<4;e++)n+=t[e];return n}(0,ea),M=22204460492503146e-32*s;if(C>=M||-C>=M)return C;if(d=e-S,a=e-(S+d)+(d-i),d=n-E,c=n-(E+d)+(d-i),d=t-T,l=t-(T+d)+(d-o),d=r-D,u=r-(D+d)+(d-o),0===a&&0===l&&0===c&&0===u)return C;if(M=11093356479670487e-47*s+33306690738754706e-32*Math.abs(C),C+=S*u+D*a-(T*c+E*l),C>=M||-C>=M)return C;_=a*D,h=Xs*a,p=h-(h-a),f=a-p,h=Xs*D,m=h-(h-D),g=D-m,w=f*g-(_-p*m-f*m-p*g),A=l*E,h=Xs*l,p=h-(h-l),f=l-p,h=Xs*E,m=h-(h-E),g=E-m,x=f*g-(A-p*m-f*m-p*g),v=w-x,d=w-v,ia[0]=w-(v+d)+(d-x),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-A,d=b-v,ia[1]=b-(v+d)+(d-A),k=y+v,d=k-y,ia[2]=y-(k-d)+(v-d),ia[3]=k;const I=Qs(4,ea,4,ia,ta);_=S*u,h=Xs*S,p=h-(h-S),f=S-p,h=Xs*u,m=h-(h-u),g=u-m,w=f*g-(_-p*m-f*m-p*g),A=T*c,h=Xs*T,p=h-(h-T),f=T-p,h=Xs*c,m=h-(h-c),g=c-m,x=f*g-(A-p*m-f*m-p*g),v=w-x,d=w-v,ia[0]=w-(v+d)+(d-x),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-A,d=b-v,ia[1]=b-(v+d)+(d-A),k=y+v,d=k-y,ia[2]=y-(k-d)+(v-d),ia[3]=k;const O=Qs(I,ta,4,ia,na);_=a*u,h=Xs*a,p=h-(h-a),f=a-p,h=Xs*u,m=h-(h-u),g=u-m,w=f*g-(_-p*m-f*m-p*g),A=l*c,h=Xs*l,p=h-(h-l),f=l-p,h=Xs*c,m=h-(h-c),g=c-m,x=f*g-(A-p*m-f*m-p*g),v=w-x,d=w-v,ia[0]=w-(v+d)+(d-x),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-A,d=b-v,ia[1]=b-(v+d)+(d-A),k=y+v,d=k-y,ia[2]=y-(k-d)+(v-d),ia[3]=k;const L=Qs(O,na,4,ia,ra);return ra[L-1]}(e,t,n,r,i,o,c)}const sa=Math.pow(2,-52),aa=new Uint32Array(512);class la{static from(e,t=fa,n=ma){const r=e.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=e[o];i[2*o]=t(r),i[2*o+1]=n(r)}return new la(i)}constructor(e){const t=e.length>>1;if(t>0&&"number"!=typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let s=1/0,a=1/0,l=-1/0,c=-1/0;for(let t=0;t<o;t++){const n=e[2*t],r=e[2*t+1];n<s&&(s=n),r<a&&(a=r),n>l&&(l=n),r>c&&(c=r),this._ids[t]=t}const u=(s+l)/2,d=(a+c)/2;let h,p,f,m=1/0;for(let t=0;t<o;t++){const n=ca(u,d,e[2*t],e[2*t+1]);n<m&&(h=t,m=n)}const g=e[2*h],v=e[2*h+1];m=1/0;for(let t=0;t<o;t++){if(t===h)continue;const n=ca(g,v,e[2*t],e[2*t+1]);n<m&&n>0&&(p=t,m=n)}let y=e[2*p],b=e[2*p+1],_=1/0;for(let t=0;t<o;t++){if(t===h||t===p)continue;const n=da(g,v,y,b,e[2*t],e[2*t+1]);n<_&&(f=t,_=n)}let w=e[2*f],A=e[2*f+1];if(_===1/0){for(let t=0;t<o;t++)this._dists[t]=e[2*t]-e[0]||e[2*t+1]-e[1];ha(this._ids,this._dists,0,o-1);const t=new Uint32Array(o);let n=0;for(let e=0,r=-1/0;e<o;e++){const i=this._ids[e];this._dists[i]>r&&(t[n++]=i,r=this._dists[i])}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(oa(g,v,y,b,w,A)<0){const e=p,t=y,n=b;p=f,y=w,b=A,f=e,w=t,A=n}const x=function(e,t,n,r,i,o){const s=n-e,a=r-t,l=i-e,c=o-t,u=s*s+a*a,d=l*l+c*c,h=.5/(s*c-a*l);return{x:e+(c*u-a*d)*h,y:t+(s*d-l*u)*h}}(g,v,y,b,w,A);this._cx=x.x,this._cy=x.y;for(let t=0;t<o;t++)this._dists[t]=ca(e[2*t],e[2*t+1],x.x,x.y);ha(this._ids,this._dists,0,o-1),this._hullStart=h;let k=3;n[h]=t[f]=p,n[p]=t[h]=f,n[f]=t[p]=h,r[h]=0,r[p]=1,r[f]=2,i.fill(-1),i[this._hashKey(g,v)]=h,i[this._hashKey(y,b)]=p,i[this._hashKey(w,A)]=f,this.trianglesLen=0,this._addTriangle(h,p,f,-1,-1,-1);for(let o,s,a=0;a<this._ids.length;a++){const l=this._ids[a],c=e[2*l],u=e[2*l+1];if(a>0&&Math.abs(c-o)<=sa&&Math.abs(u-s)<=sa)continue;if(o=c,s=u,l===h||l===p||l===f)continue;let d=0;for(let e=0,t=this._hashKey(c,u);e<this._hashSize&&(d=i[(t+e)%this._hashSize],-1===d||d===n[d]);e++);d=t[d];let m,g=d;for(;m=n[g],oa(c,u,e[2*g],e[2*g+1],e[2*m],e[2*m+1])>=0;)if(g=m,g===d){g=-1;break}if(-1===g)continue;let v=this._addTriangle(g,l,n[g],-1,-1,r[g]);r[l]=this._legalize(v+2),r[g]=v,k++;let y=n[g];for(;m=n[y],oa(c,u,e[2*y],e[2*y+1],e[2*m],e[2*m+1])<0;)v=this._addTriangle(y,l,m,r[l],-1,r[y]),r[l]=this._legalize(v+2),n[y]=y,k--,y=m;if(g===d)for(;m=t[g],oa(c,u,e[2*m],e[2*m+1],e[2*g],e[2*g+1])<0;)v=this._addTriangle(m,l,g,-1,r[g],r[m]),this._legalize(v+2),r[m]=v,n[g]=g,k--,g=m;this._hullStart=t[l]=g,n[g]=t[y]=l,n[l]=y,i[this._hashKey(c,u)]=l,i[this._hashKey(e[2*g],e[2*g+1])]=g}this.hull=new Uint32Array(k);for(let e=0,t=this._hullStart;e<k;e++)this.hull[e]=t,t=n[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const s=n[e],a=e-e%3;if(o=a+(e+2)%3,-1===s){if(0===i)break;e=aa[--i];continue}const l=s-s%3,c=a+(e+1)%3,u=l+(s+2)%3,d=t[o],h=t[e],p=t[c],f=t[u];if(ua(r[2*d],r[2*d+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1],r[2*f],r[2*f+1])){t[e]=f,t[s]=d;const r=n[u];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===u){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(s,n[o]),this._link(o,u);const a=l+(s+1)%3;i<aa.length&&(aa[i++]=a)}else{if(0===i)break;e=aa[--i]}}return o}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,o){const s=this.trianglesLen;return this._triangles[s]=e,this._triangles[s+1]=t,this._triangles[s+2]=n,this._link(s,r),this._link(s+1,i),this._link(s+2,o),this.trianglesLen+=3,s}}function ca(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function ua(e,t,n,r,i,o,s,a){const l=e-s,c=t-a,u=n-s,d=r-a,h=i-s,p=o-a,f=u*u+d*d,m=h*h+p*p;return l*(d*m-f*p)-c*(u*m-f*h)+(l*l+c*c)*(u*p-d*h)<0}function da(e,t,n,r,i,o){const s=n-e,a=r-t,l=i-e,c=o-t,u=s*s+a*a,d=l*l+c*c,h=.5/(s*c-a*l),p=(c*u-a*d)*h,f=(s*d-l*u)*h;return p*p+f*f}function ha(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=r}else{let i=n+1,o=r;pa(e,n+r>>1,i),t[e[n]]>t[e[r]]&&pa(e,n,r),t[e[i]]>t[e[r]]&&pa(e,i,r),t[e[n]]>t[e[i]]&&pa(e,n,i);const s=e[i],a=t[s];for(;;){do{i++}while(t[e[i]]<a);do{o--}while(t[e[o]]>a);if(o<i)break;pa(e,i,o)}e[n+1]=e[o],e[o]=s,r-i+1>=o-n?(ha(e,t,i,r),ha(e,t,n,o-1)):(ha(e,t,n,o-1),ha(e,t,i,r))}}function pa(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function fa(e){return e[0]}function ma(e){return e[1]}const ga=1e-6;class va{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>ga||Math.abs(this._y1-i)>ga)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class ya{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class ba{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this;let i,o;const s=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let r,a,l=0,c=0,u=n.length;l<u;l+=3,c+=2){const u=2*n[l],d=2*n[l+1],h=2*n[l+2],p=e[u],f=e[u+1],m=e[d],g=e[d+1],v=e[h],y=e[h+1],b=m-p,_=g-f,w=v-p,A=y-f,x=2*(b*A-_*w);if(Math.abs(x)<1e-9){if(void 0===i){i=o=0;for(const n of t)i+=e[2*n],o+=e[2*n+1];i/=t.length,o/=t.length}const n=1e9*Math.sign((i-p)*A-(o-f)*w);r=(p+v)/2-n*A,a=(f+y)/2+n*w}else{const e=1/x,t=b*b+_*_,n=w*w+A*A;r=p+(A*t-_*n)*e,a=f+(b*n-w*t)*e}s[c]=r,s[c+1]=a}let a,l,c,u=t[t.length-1],d=4*u,h=e[2*u],p=e[2*u+1];r.fill(0);for(let n=0;n<t.length;++n)u=t[n],a=d,l=h,c=p,d=4*u,h=e[2*u],p=e[2*u+1],r[a+2]=r[d]=c-p,r[a+3]=r[d+1]=h-l}render(e){const t=null==e?e=new va:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:s}=this;if(i.length<=1)return null;for(let t=0,r=n.length;t<r;++t){const r=n[t];if(r<t)continue;const i=2*Math.floor(t/3),s=2*Math.floor(r/3),a=o[i],l=o[i+1],c=o[s],u=o[s+1];this._renderSegment(a,l,c,u,e)}let a,l=i[i.length-1];for(let t=0;t<i.length;++t){a=l,l=i[t];const n=2*Math.floor(r[l]/3),c=o[n],u=o[n+1],d=4*a,h=this._project(c,u,s[d+2],s[d+3]);h&&this._renderSegment(c,u,h[0],h[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new va:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const n=null==t?t=new va:void 0,r=this._clip(e);if(null===r||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let e=2;e<i;e+=2)r[e]===r[e-2]&&r[e+1]===r[e-1]||t.lineTo(r[e],r[e+1]);return t.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new ya;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let o;const s=this._regioncode(e,t),a=this._regioncode(n,r);0===s&&0===a?(i.moveTo(e,t),i.lineTo(n,r)):(o=this._clipSegment(e,t,n,r,s,a))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(e,t,n){return(t=+t)==t&&(n=+n)==n&&this.delaunay._step(e,t,n)===e}*neighbors(e){const t=this._clip(e);if(t)for(const n of this.delaunay.neighbors(e)){const e=this._clip(n);if(e)e:for(let r=0,i=t.length;r<i;r+=2)for(let o=0,s=e.length;o<s;o+=2)if(t[r]===e[o]&&t[r+1]===e[o+1]&&t[(r+2)%i]===e[(o+s-2)%s]&&t[(r+3)%i]===e[(o+s-1)%s]){yield n;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[e];if(-1===o)return null;const s=[];let a=o;do{const n=Math.floor(a/3);if(s.push(t[2*n],t[2*n+1]),a=a%3==2?a-2:a+1,i[a]!==e)break;a=r[a]}while(a!==o&&-1!==a);return s}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:n}=this,r=4*e;return this._simplify(n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t))}_clipFinite(e,t){const n=t.length;let r,i,o,s,a=null,l=t[n-2],c=t[n-1],u=this._regioncode(l,c),d=0;for(let h=0;h<n;h+=2)if(r=l,i=c,l=t[h],c=t[h+1],o=u,u=this._regioncode(l,c),0===o&&0===u)s=d,d=0,a?a.push(l,c):a=[l,c];else{let t,n,h,p,f;if(0===o){if(null===(t=this._clipSegment(r,i,l,c,o,u)))continue;[n,h,p,f]=t}else{if(null===(t=this._clipSegment(l,c,r,i,u,o)))continue;[p,f,n,h]=t,s=d,d=this._edgecode(n,h),s&&d&&this._edge(e,s,d,a,a.length),a?a.push(n,h):a=[n,h]}s=d,d=this._edgecode(p,f),s&&d&&this._edge(e,s,d,a,a.length),a?a.push(p,f):a=[p,f]}if(a)s=d,d=this._edgecode(a[0],a[1]),s&&d&&this._edge(e,s,d,a,a.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return a}_clipSegment(e,t,n,r,i,o){const s=i<o;for(s&&([e,t,n,r,i,o]=[n,r,e,t,o,i]);;){if(0===i&&0===o)return s?[n,r,e,t]:[e,t,n,r];if(i&o)return null;let a,l,c=i||o;8&c?(a=e+(n-e)*(this.ymax-t)/(r-t),l=this.ymax):4&c?(a=e+(n-e)*(this.ymin-t)/(r-t),l=this.ymin):2&c?(l=t+(r-t)*(this.xmax-e)/(n-e),a=this.xmax):(l=t+(r-t)*(this.xmin-e)/(n-e),a=this.xmin),i?(e=a,t=l,i=this._regioncode(e,t)):(n=a,r=l,o=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,o){let s,a=Array.from(t);if((s=this._project(a[0],a[1],n,r))&&a.unshift(s[0],s[1]),(s=this._project(a[a.length-2],a[a.length-1],i,o))&&a.push(s[0],s[1]),a=this._clipFinite(e,a))for(let t,n=0,r=a.length,i=this._edgecode(a[r-2],a[r-1]);n<r;n+=2)t=i,i=this._edgecode(a[n],a[n+1]),t&&i&&(n=this._edge(e,t,i,a,n),r=a.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(e,t,n,r,i){for(;t!==n;){let n,o;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,o=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,o=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,o=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(e,n,o)||(r.splice(i,0,n,o),i+=2)}return i}_project(e,t,n,r){let i,o,s,a=1/0;if(r<0){if(t<=this.ymin)return null;(i=(this.ymin-t)/r)<a&&(s=this.ymin,o=e+(a=i)*n)}else if(r>0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)<a&&(s=this.ymax,o=e+(a=i)*n)}if(n>0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)<a&&(o=this.xmax,s=t+(a=i)*r)}else if(n<0){if(e<=this.xmin)return null;(i=(this.xmin-e)/n)<a&&(o=this.xmin,s=t+(a=i)*r)}return[o,s]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t<e.length;t+=2){const n=(t+2)%e.length,r=(t+4)%e.length;(e[t]===e[n]&&e[n]===e[r]||e[t+1]===e[n+1]&&e[n+1]===e[r+1])&&(e.splice(n,2),t-=2)}e.length||(e=null)}return e}}const _a=2*Math.PI,wa=Math.pow;function Aa(e){return e[0]}function xa(e){return e[1]}function ka(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Sa{static from(e,t=Aa,n=xa,r){return new Sa("length"in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let s=0;s<i;++s){const i=e[s];o[2*s]=t.call(r,i,s,e),o[2*s+1]=n.call(r,i,s,e)}return o}(e,t,n,r):Float64Array.from(function*(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}(e,t,n,r)))}constructor(e){this._delaunator=new la(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:n}=e;for(let e=0;e<t.length;e+=3){const r=2*t[e],i=2*t[e+1],o=2*t[e+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},(e,t)=>t).sort((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]);const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let e=0,n=t.length/2;e<n;++e){const n=ka(t[2*e],t[2*e+1],i);t[2*e]=n[0],t[2*e+1]=n[1]}this._delaunator=new la(t)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let e=0,t=n.length;e<t;++e){const t=i[e%3==2?e-2:e+1];-1!==n[e]&&-1!==o[t]||(o[t]=e)}for(let e=0,t=r.length;e<t;++e)s[r[e]]=e;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(e){return new ba(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:s}=this;if(s){const t=s.indexOf(e);return t>0&&(yield s[t-1]),void(t<s.length-1&&(yield s[t+1]))}const a=t[e];if(-1===a)return;let l=a,c=-1;do{if(yield c=o[l],l=l%3==2?l-2:l+1,o[l]!==e)return;if(l=i[l],-1===l){const t=n[(r[e]+1)%n.length];return void(t!==c&&(yield t))}}while(l!==a)}find(e,t,n=0){if((e=+e)!=e||(t=+t)!=t)return-1;const r=n;let i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:s,triangles:a,points:l}=this;if(-1===r[e]||!l.length)return(e+1)%(l.length>>1);let c=e,u=wa(t-l[2*e],2)+wa(n-l[2*e+1],2);const d=r[e];let h=d;do{let r=a[h];const d=wa(t-l[2*r],2)+wa(n-l[2*r+1],2);if(d<u&&(u=d,c=r),h=h%3==2?h-2:h+1,a[h]!==e)break;if(h=s[h],-1===h){if(h=i[(o[e]+1)%i.length],h!==r&&wa(t-l[2*h],2)+wa(n-l[2*h+1],2)<u)return h;break}}while(h!==d);return c}render(e){const t=null==e?e=new va:void 0,{points:n,halfedges:r,triangles:i}=this;for(let t=0,o=r.length;t<o;++t){const o=r[t];if(o<t)continue;const s=2*i[t],a=2*i[o];e.moveTo(n[s],n[s+1]),e.lineTo(n[a],n[a+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t){void 0!==t||e&&"function"==typeof e.moveTo||(t=e,e=null),t=null==t?2:+t;const n=null==e?e=new va:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],o=r[n+1];e.moveTo(i+t,o),e.arc(i,o,t,0,_a)}return n&&n.value()}renderHull(e){const t=null==e?e=new va:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;e.moveTo(r[i],r[i+1]);for(let t=1;t<o;++t){const i=2*n[t];e.lineTo(r[i],r[i+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new ya;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new va:void 0,{points:r,triangles:i}=this,o=2*i[e*=3],s=2*i[e+1],a=2*i[e+2];return t.moveTo(r[o],r[o+1]),t.lineTo(r[s],r[s+1]),t.lineTo(r[a],r[a+1]),t.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new ya;return this.renderTriangle(e,t),t.value()}}var Ea={},Ta={};function Da(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'}).join(",")+"}")}function Ca(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}function Ma(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function Ia(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],o=e.length,s=0,a=0,l=o<=0,c=!1;function u(){if(l)return Ta;if(c)return c=!1,Ea;var t,r,i=s;if(34===e.charCodeAt(i)){for(;s++<o&&34!==e.charCodeAt(s)||34===e.charCodeAt(++s););return(t=s)>=o?l=!0:10===(r=e.charCodeAt(s++))?c=!0:13===r&&(c=!0,10===e.charCodeAt(s)&&++s),e.slice(i+1,t-1).replace(/""/g,'"')}for(;s<o;){if(10===(r=e.charCodeAt(t=s++)))c=!0;else if(13===r)c=!0,10===e.charCodeAt(s)&&++s;else if(r!==n)continue;return e.slice(i,t)}return l=!0,e.slice(i,o)}for(10===e.charCodeAt(o-1)&&--o,13===e.charCodeAt(o-1)&&--o;(r=u())!==Ta;){for(var d=[];r!==Ea&&r!==Ta;)d.push(r),r=u();t&&null==(d=t(d,a++))||i.push(d)}return i}function i(t,n){return t.map(function(t){return n.map(function(e){return s(t[e])}).join(e)})}function o(t){return t.map(s).join(e)}function s(e){return null==e?"":e instanceof Date?function(e){var t,n=e.getUTCHours(),r=e.getUTCMinutes(),i=e.getUTCSeconds(),o=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":((t=e.getUTCFullYear())<0?"-"+Ma(-t,6):t>9999?"+"+Ma(t,6):Ma(t,4))+"-"+Ma(e.getUTCMonth()+1,2)+"-"+Ma(e.getUTCDate(),2)+(o?"T"+Ma(n,2)+":"+Ma(r,2)+":"+Ma(i,2)+"."+Ma(o,3)+"Z":i?"T"+Ma(n,2)+":"+Ma(r,2)+":"+Ma(i,2)+"Z":r||n?"T"+Ma(n,2)+":"+Ma(r,2)+"Z":"")}(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,i,o=r(e,function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=Da(e);return function(r,i){return t(n(r),i,e)}}(e,t):Da(e)});return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=Ca(t)),[n.map(s).join(e)].concat(i(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=Ca(e)),i(e,t).join("\n")},formatRows:function(e){return e.map(o).join("\n")},formatRow:o,formatValue:s}}var Oa=Ia(","),La=Oa.parse,Na=Oa.parseRows,Pa=Oa.format,Ra=Oa.formatBody,ja=Oa.formatRows,Fa=Oa.formatRow,Ba=Oa.formatValue,Ya=Ia("\t"),Va=Ya.parse,Ha=Ya.parseRows,Ua=Ya.format,za=Ya.formatBody,qa=Ya.formatRows,Wa=Ya.formatRow,$a=Ya.formatValue;const Ga=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Ka(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function Za(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function Xa(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function Qa(e,t){return fetch(e,t).then(Xa)}function Ja(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),Qa(t,n).then(function(t){return e(t,r)})}}var el=Ja(La),tl=Ja(Va);function nl(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(204!==e.status&&205!==e.status)return e.json()}function rl(e){return(t,n)=>Qa(t,n).then(t=>(new DOMParser).parseFromString(t,e))}var il=rl("application/xml"),ol=rl("text/html"),sl=rl("image/svg+xml");function al(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,s,a,l,c,u,d,h,p=e._root,f={data:r},m=e._x0,g=e._y0,v=e._x1,y=e._y1;if(!p)return e._root=f,e;for(;p.length;)if((c=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(s=(g+y)/2))?g=s:y=s,i=p,!(p=p[d=u<<1|c]))return i[d]=f,e;if(a=+e._x.call(null,p.data),l=+e._y.call(null,p.data),t===a&&n===l)return f.next=p,i?i[d]=f:e._root=f,e;do{i=i?i[d]=new Array(4):e._root=new Array(4),(c=t>=(o=(m+v)/2))?m=o:v=o,(u=n>=(s=(g+y)/2))?g=s:y=s}while((d=u<<1|c)==(h=(l>=s)<<1|a>=o));return i[h]=p,i[d]=f,e}function ll(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function cl(e){return e[0]}function ul(e){return e[1]}function dl(e,t,n){var r=new hl(null==t?cl:t,null==n?ul:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function hl(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function pl(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var fl=dl.prototype=hl.prototype;function ml(e){return function(){return e}}function gl(e){return 1e-6*(e()-.5)}function vl(e){return e.x+e.vx}function yl(e){return e.y+e.vy}function bl(e){return e.index}function _l(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}fl.copy=function(){var e,t,n=new hl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=pl(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=pl(t));return n},fl.add=function(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return al(this.cover(t,n),t,n,e)},fl.addAll=function(e){var t,n,r,i,o=e.length,s=new Array(o),a=new Array(o),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(s[n]=r,a[n]=i,r<l&&(l=r),r>u&&(u=r),i<c&&(c=i),i>d&&(d=i));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),n=0;n<o;++n)al(this,s[n],a[n],e[n]);return this},fl.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var s,a,l=i-n||1,c=this._root;n>e||e>=i||r>t||t>=o;)switch(a=(t<r)<<1|e<n,(s=new Array(4))[a]=c,c=s,l*=2,a){case 0:i=n+l,o=r+l;break;case 1:n=i-l,o=r+l;break;case 2:i=n+l,r=o-l;break;case 3:n=i-l,r=o-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},fl.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},fl.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},fl.find=function(e,t,n){var r,i,o,s,a,l,c,u=this._x0,d=this._y0,h=this._x1,p=this._y1,f=[],m=this._root;for(m&&f.push(new ll(m,u,d,h,p)),null==n?n=1/0:(u=e-n,d=t-n,h=e+n,p=t+n,n*=n);l=f.pop();)if(!(!(m=l.node)||(i=l.x0)>h||(o=l.y0)>p||(s=l.x1)<u||(a=l.y1)<d))if(m.length){var g=(i+s)/2,v=(o+a)/2;f.push(new ll(m[3],g,v,s,a),new ll(m[2],i,v,g,a),new ll(m[1],g,o,s,v),new ll(m[0],i,o,g,v)),(c=(t>=v)<<1|e>=g)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-c],f[f.length-1-c]=l)}else{var y=e-+this._x.call(null,m.data),b=t-+this._y.call(null,m.data),_=y*y+b*b;if(_<n){var w=Math.sqrt(n=_);u=e-w,d=t-w,h=e+w,p=t+w,r=m.data}}return r},fl.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(s=+this._y.call(null,e)))return this;var t,n,r,i,o,s,a,l,c,u,d,h,p=this._root,f=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=o>=(a=(f+g)/2))?f=a:g=a,(u=s>=(l=(m+v)/2))?m=l:v=l,t=p,!(p=p[d=u<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=i,this)},fl.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},fl.root=function(){return this._root},fl.size=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},fl.visit=function(e){var t,n,r,i,o,s,a=[],l=this._root;for(l&&a.push(new ll(l,this._x0,this._y0,this._x1,this._y1));t=a.pop();)if(!e(l=t.node,r=t.x0,i=t.y0,o=t.x1,s=t.y1)&&l.length){var c=(r+o)/2,u=(i+s)/2;(n=l[3])&&a.push(new ll(n,c,u,o,s)),(n=l[2])&&a.push(new ll(n,r,u,c,s)),(n=l[1])&&a.push(new ll(n,c,i,o,u)),(n=l[0])&&a.push(new ll(n,r,i,c,u))}return this},fl.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new ll(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var o,s=t.x0,a=t.y0,l=t.x1,c=t.y1,u=(s+l)/2,d=(a+c)/2;(o=i[0])&&n.push(new ll(o,s,a,u,d)),(o=i[1])&&n.push(new ll(o,u,a,l,d)),(o=i[2])&&n.push(new ll(o,s,d,u,c)),(o=i[3])&&n.push(new ll(o,u,d,l,c))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},fl.x=function(e){return arguments.length?(this._x=e,this):this._x},fl.y=function(e){return arguments.length?(this._y=e,this):this._y};const wl=4294967296;function Al(e){return e.x}function xl(e){return e.y}var kl=Math.PI*(3-Math.sqrt(5));function Sl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function El(e){return(e=Sl(Math.abs(e)))?e[1]:NaN}var Tl,Dl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cl(e){if(!(t=Dl.exec(e)))throw new Error("invalid format: "+e);var t;return new Ml({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Ml(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Il(e,t){var n=Sl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Cl.prototype=Ml.prototype,Ml.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};var Ol={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Il(100*e,t),r:Il,s:function(e,t){var n=Sl(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Tl=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Sl(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ll(e){return e}var Nl,Pl=Array.prototype.map,Rl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function jl(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Ll:(t=Pl.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(e.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?Ll:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Pl.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"\u2212":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Cl(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,y=e.type;"n"===y?(m=!0,y="g"):Ol[y]||(void 0===g&&(g=12),v=!0,y="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",_="$"===h?o:/[%p]/.test(y)?l:"",w=Ol[y],A=/[defgprs%]/.test(y);function x(e){var i,o,l,h=b,x=_;if("c"===y)x=w(e)+x,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==d&&(k=!1),h=(k?"("===d?d:c:"-"===d||"("===d?"":d)+h,x=("s"===y?Rl[8+Tl/3]:"")+x+(k&&"("===d?")":""),A)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){x=(46===l?s+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}m&&!p&&(e=r(e,1/0));var S=h.length+e.length+x.length,E=S<f?new Array(f-S+1).join(t):"";switch(m&&p&&(e=r(E+e,E.length?f-x.length:1/0),E=""),n){case"<":e=h+e+x+E;break;case"=":e=h+E+e+x;break;case"^":e=E.slice(0,S=E.length>>1)+h+e+x+E.slice(S);break;default:e=E+h+e+x}return a(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),x.toString=function(){return e+""},x}return{format:d,formatPrefix:function(e,t){var n=d(((e=Cl(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(El(t)/3))),i=Math.pow(10,-r),o=Rl[8+r/3];return function(e){return n(i*e)+o}}}}function Fl(t){return Nl=jl(t),e.format=Nl.format,e.formatPrefix=Nl.formatPrefix,Nl}function Bl(e){return Math.max(0,-El(Math.abs(e)))}function Yl(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(El(t)/3)))-El(Math.abs(e)))}function Vl(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,El(t)-El(e))+1}e.format=void 0,e.formatPrefix=void 0,Fl({thousands:",",grouping:[3],currency:["$",""]});var Hl=1e-6,Ul=1e-12,zl=Math.PI,ql=zl/2,Wl=zl/4,$l=2*zl,Gl=180/zl,Kl=zl/180,Zl=Math.abs,Xl=Math.atan,Ql=Math.atan2,Jl=Math.cos,ec=Math.ceil,tc=Math.exp,nc=Math.hypot,rc=Math.log,ic=Math.pow,oc=Math.sin,sc=Math.sign||function(e){return e>0?1:e<0?-1:0},ac=Math.sqrt,lc=Math.tan;function cc(e){return e>1?0:e<-1?zl:Math.acos(e)}function uc(e){return e>1?ql:e<-1?-ql:Math.asin(e)}function dc(e){return(e=oc(e/2))*e}function hc(){}function pc(e,t){e&&mc.hasOwnProperty(e.type)&&mc[e.type](e,t)}var fc={Feature:function(e,t){pc(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)pc(n[r].geometry,t)}},mc={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){gc(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)gc(n[r],t,0)},Polygon:function(e,t){vc(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)vc(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)pc(n[r],t)}};function gc(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function vc(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)gc(e[n],t,1);t.polygonEnd()}function yc(e,t){e&&fc.hasOwnProperty(e.type)?fc[e.type](e,t):pc(e,t)}var bc,_c,wc,Ac,xc,kc,Sc,Ec,Tc,Dc,Cc,Mc,Ic,Oc,Lc,Nc,Pc=new k,Rc=new k,jc={point:hc,lineStart:hc,lineEnd:hc,polygonStart:function(){Pc=new k,jc.lineStart=Fc,jc.lineEnd=Bc},polygonEnd:function(){var e=+Pc;Rc.add(e<0?$l+e:e),this.lineStart=this.lineEnd=this.point=hc},sphere:function(){Rc.add($l)}};function Fc(){jc.point=Yc}function Bc(){Vc(bc,_c)}function Yc(e,t){jc.point=Vc,bc=e,_c=t,wc=e*=Kl,Ac=Jl(t=(t*=Kl)/2+Wl),xc=oc(t)}function Vc(e,t){var n=(e*=Kl)-wc,r=n>=0?1:-1,i=r*n,o=Jl(t=(t*=Kl)/2+Wl),s=oc(t),a=xc*s,l=Ac*o+a*Jl(i),c=a*r*oc(i);Pc.add(Ql(c,l)),wc=e,Ac=o,xc=s}function Hc(e){return[Ql(e[1],e[0]),uc(e[2])]}function Uc(e){var t=e[0],n=e[1],r=Jl(n);return[r*Jl(t),r*oc(t),oc(n)]}function zc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function qc(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Wc(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function $c(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Gc(e){var t=ac(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Kc,Zc,Xc,Qc,Jc,eu,tu,nu,ru,iu,ou,su,au,lu,cu,uu,du={point:hu,lineStart:fu,lineEnd:mu,polygonStart:function(){du.point=gu,du.lineStart=vu,du.lineEnd=yu,Oc=new k,jc.polygonStart()},polygonEnd:function(){jc.polygonEnd(),du.point=hu,du.lineStart=fu,du.lineEnd=mu,Pc<0?(kc=-(Ec=180),Sc=-(Tc=90)):Oc>Hl?Tc=90:Oc<-Hl&&(Sc=-90),Nc[0]=kc,Nc[1]=Ec},sphere:function(){kc=-(Ec=180),Sc=-(Tc=90)}};function hu(e,t){Lc.push(Nc=[kc=e,Ec=e]),t<Sc&&(Sc=t),t>Tc&&(Tc=t)}function pu(e,t){var n=Uc([e*Kl,t*Kl]);if(Ic){var r=qc(Ic,n),i=qc([r[1],-r[0],0],r);Gc(i),i=Hc(i);var o,s=e-Dc,a=s>0?1:-1,l=i[0]*Gl*a,c=Zl(s)>180;c^(a*Dc<l&&l<a*e)?(o=i[1]*Gl)>Tc&&(Tc=o):c^(a*Dc<(l=(l+360)%360-180)&&l<a*e)?(o=-i[1]*Gl)<Sc&&(Sc=o):(t<Sc&&(Sc=t),t>Tc&&(Tc=t)),c?e<Dc?bu(kc,e)>bu(kc,Ec)&&(Ec=e):bu(e,Ec)>bu(kc,Ec)&&(kc=e):Ec>=kc?(e<kc&&(kc=e),e>Ec&&(Ec=e)):e>Dc?bu(kc,e)>bu(kc,Ec)&&(Ec=e):bu(e,Ec)>bu(kc,Ec)&&(kc=e)}else Lc.push(Nc=[kc=e,Ec=e]);t<Sc&&(Sc=t),t>Tc&&(Tc=t),Ic=n,Dc=e}function fu(){du.point=pu}function mu(){Nc[0]=kc,Nc[1]=Ec,du.point=hu,Ic=null}function gu(e,t){if(Ic){var n=e-Dc;Oc.add(Zl(n)>180?n+(n>0?360:-360):n)}else Cc=e,Mc=t;jc.point(e,t),pu(e,t)}function vu(){jc.lineStart()}function yu(){gu(Cc,Mc),jc.lineEnd(),Zl(Oc)>Hl&&(kc=-(Ec=180)),Nc[0]=kc,Nc[1]=Ec,Ic=null}function bu(e,t){return(t-=e)<0?t+360:t}function _u(e,t){return e[0]-t[0]}function wu(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var Au={sphere:hc,point:xu,lineStart:Su,lineEnd:Du,polygonStart:function(){Au.lineStart=Cu,Au.lineEnd=Mu},polygonEnd:function(){Au.lineStart=Su,Au.lineEnd=Du}};function xu(e,t){e*=Kl;var n=Jl(t*=Kl);ku(n*Jl(e),n*oc(e),oc(t))}function ku(e,t,n){++Kc,Xc+=(e-Xc)/Kc,Qc+=(t-Qc)/Kc,Jc+=(n-Jc)/Kc}function Su(){Au.point=Eu}function Eu(e,t){e*=Kl;var n=Jl(t*=Kl);lu=n*Jl(e),cu=n*oc(e),uu=oc(t),Au.point=Tu,ku(lu,cu,uu)}function Tu(e,t){e*=Kl;var n=Jl(t*=Kl),r=n*Jl(e),i=n*oc(e),o=oc(t),s=Ql(ac((s=cu*o-uu*i)*s+(s=uu*r-lu*o)*s+(s=lu*i-cu*r)*s),lu*r+cu*i+uu*o);Zc+=s,eu+=s*(lu+(lu=r)),tu+=s*(cu+(cu=i)),nu+=s*(uu+(uu=o)),ku(lu,cu,uu)}function Du(){Au.point=xu}function Cu(){Au.point=Iu}function Mu(){Ou(su,au),Au.point=xu}function Iu(e,t){su=e,au=t,e*=Kl,t*=Kl,Au.point=Ou;var n=Jl(t);lu=n*Jl(e),cu=n*oc(e),uu=oc(t),ku(lu,cu,uu)}function Ou(e,t){e*=Kl;var n=Jl(t*=Kl),r=n*Jl(e),i=n*oc(e),o=oc(t),s=cu*o-uu*i,a=uu*r-lu*o,l=lu*i-cu*r,c=nc(s,a,l),u=uc(c),d=c&&-u/c;ru.add(d*s),iu.add(d*a),ou.add(d*l),Zc+=u,eu+=u*(lu+(lu=r)),tu+=u*(cu+(cu=i)),nu+=u*(uu+(uu=o)),ku(lu,cu,uu)}function Lu(e){return function(){return e}}function Nu(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function Pu(e,t){return Zl(e)>zl&&(e-=Math.round(e/$l)*$l),[e,t]}function Ru(e,t,n){return(e%=$l)?t||n?Nu(Fu(e),Bu(t,n)):Fu(e):t||n?Bu(t,n):Pu}function ju(e){return function(t,n){return Zl(t+=e)>zl&&(t-=Math.round(t/$l)*$l),[t,n]}}function Fu(e){var t=ju(e);return t.invert=ju(-e),t}function Bu(e,t){var n=Jl(e),r=oc(e),i=Jl(t),o=oc(t);function s(e,t){var s=Jl(t),a=Jl(e)*s,l=oc(e)*s,c=oc(t),u=c*n+a*r;return[Ql(l*i-u*o,a*n-c*r),uc(u*i+l*o)]}return s.invert=function(e,t){var s=Jl(t),a=Jl(e)*s,l=oc(e)*s,c=oc(t),u=c*i-l*o;return[Ql(l*i+c*o,a*n+u*r),uc(u*n-a*r)]},s}function Yu(e){function t(t){return(t=e(t[0]*Kl,t[1]*Kl))[0]*=Gl,t[1]*=Gl,t}return e=Ru(e[0]*Kl,e[1]*Kl,e.length>2?e[2]*Kl:0),t.invert=function(t){return(t=e.invert(t[0]*Kl,t[1]*Kl))[0]*=Gl,t[1]*=Gl,t},t}function Vu(e,t,n,r,i,o){if(n){var s=Jl(t),a=oc(t),l=r*n;null==i?(i=t+r*$l,o=t-l/2):(i=Hu(s,i),o=Hu(s,o),(r>0?i<o:i>o)&&(i+=r*$l));for(var c,u=i;r>0?u>o:u<o;u-=l)c=Hc([s,-a*Jl(u),-a*oc(u)]),e.point(c[0],c[1])}}function Hu(e,t){(t=Uc(t))[0]-=e,Gc(t);var n=cc(-t[1]);return((-t[2]<0?-n:n)+$l-Hl)%$l}function Uu(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:hc,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function zu(e,t){return Zl(e[0]-t[0])<Hl&&Zl(e[1]-t[1])<Hl}function qu(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Wu(e,t,n,r,i){var o,s,a=[],l=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],s=e[t];if(zu(r,s)){if(!r[2]&&!s[2]){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);return void i.lineEnd()}s[0]+=2*Hl}a.push(n=new qu(r,e,null,!0)),l.push(n.o=new qu(r,null,n,!1)),a.push(n=new qu(s,e,null,!1)),l.push(n.o=new qu(s,null,n,!0))}}),a.length){for(l.sort(t),$u(a),$u(l),o=0,s=l.length;o<s;++o)l[o].e=n=!n;for(var c,u,d=a[0];;){for(var h=d,p=!0;h.v;)if((h=h.n)===d)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,s=c.length;o<s;++o)i.point((u=c[o])[0],u[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(c=h.p.z,o=c.length-1;o>=0;--o)i.point((u=c[o])[0],u[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function $u(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function Gu(e){return Zl(e[0])<=zl?e[0]:sc(e[0])*((Zl(e[0])+zl)%$l-zl)}function Ku(e,t){var n=Gu(t),r=t[1],i=oc(r),o=[oc(n),-Jl(n),0],s=0,a=0,l=new k;1===i?r=ql+Hl:-1===i&&(r=-ql-Hl);for(var c=0,u=e.length;c<u;++c)if(h=(d=e[c]).length)for(var d,h,p=d[h-1],f=Gu(p),m=p[1]/2+Wl,g=oc(m),v=Jl(m),y=0;y<h;++y,f=_,g=A,v=x,p=b){var b=d[y],_=Gu(b),w=b[1]/2+Wl,A=oc(w),x=Jl(w),S=_-f,E=S>=0?1:-1,T=E*S,D=T>zl,C=g*A;if(l.add(Ql(C*E*oc(T),v*x+C*Jl(T))),s+=D?S+E*$l:S,D^f>=n^_>=n){var M=qc(Uc(p),Uc(b));Gc(M);var I=qc(o,M);Gc(I);var O=(D^S>=0?-1:1)*uc(I[2]);(r>O||r===O&&(M[0]||M[1]))&&(a+=D^S>=0?1:-1)}}return(s<-Hl||s<Hl&&l<-Ul)^1&a}function Zu(e,t,n,r){return function(i){var o,s,a,l=t(i),c=Uu(),u=t(c),d=!1,h={point:p,lineStart:m,lineEnd:g,polygonStart:function(){h.point=v,h.lineStart=y,h.lineEnd=b,s=[],o=[]},polygonEnd:function(){h.point=p,h.lineStart=m,h.lineEnd=g,s=de(s);var e=Ku(o,r);s.length?(d||(i.polygonStart(),d=!0),Wu(s,Qu,e,n,i)):e&&(d||(i.polygonStart(),d=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),d&&(i.polygonEnd(),d=!1),s=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(t,n){e(t,n)&&i.point(t,n)}function f(e,t){l.point(e,t)}function m(){h.point=f,l.lineStart()}function g(){h.point=p,l.lineEnd()}function v(e,t){a.push([e,t]),u.point(e,t)}function y(){u.lineStart(),a=[]}function b(){v(a[0][0],a[0][1]),u.lineEnd();var e,t,n,r,l=u.clean(),h=c.result(),p=h.length;if(a.pop(),o.push(a),a=null,p)if(1&l){if((t=(n=h[0]).length-1)>0){for(d||(i.polygonStart(),d=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}}else p>1&&2&l&&h.push(h.pop().concat(h.shift())),s.push(h.filter(Xu))}return h}}function Xu(e){return e.length>1}function Qu(e,t){return((e=e.x)[0]<0?e[1]-ql-Hl:ql-e[1])-((t=t.x)[0]<0?t[1]-ql-Hl:ql-t[1])}Pu.invert=Pu;var Ju=Zu(function(){return!0},function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,s){var a=o>0?zl:-zl,l=Zl(o-n);Zl(l-zl)<Hl?(e.point(n,r=(r+s)/2>0?ql:-ql),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),e.point(o,r),t=0):i!==a&&l>=zl&&(Zl(n-i)<Hl&&(n-=i*Hl),Zl(o-a)<Hl&&(o-=a*Hl),r=function(e,t,n,r){var i,o,s=oc(e-n);return Zl(s)>Hl?Xl((oc(t)*(o=Jl(r))*oc(n)-oc(r)*(i=Jl(t))*oc(e))/(i*o*s)):(t+r)/2}(n,r,o,s),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),t=0),e.point(n=o,r=s),i=a},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)i=n*ql,r.point(-zl,i),r.point(0,i),r.point(zl,i),r.point(zl,0),r.point(zl,-i),r.point(0,-i),r.point(-zl,-i),r.point(-zl,0),r.point(-zl,i);else if(Zl(e[0]-t[0])>Hl){var o=e[0]<t[0]?zl:-zl;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])},[-zl,-ql]);function ed(e){var t=Jl(e),n=6*Kl,r=t>0,i=Zl(t)>Hl;function o(e,n){return Jl(e)*Jl(n)>t}function s(e,n,r){var i=[1,0,0],o=qc(Uc(e),Uc(n)),s=zc(o,o),a=o[0],l=s-a*a;if(!l)return!r&&e;var c=t*s/l,u=-t*a/l,d=qc(i,o),h=$c(i,c);Wc(h,$c(o,u));var p=d,f=zc(h,p),m=zc(p,p),g=f*f-m*(zc(h,h)-1);if(!(g<0)){var v=ac(g),y=$c(p,(-f-v)/m);if(Wc(y,h),y=Hc(y),!r)return y;var b,_=e[0],w=n[0],A=e[1],x=n[1];w<_&&(b=_,_=w,w=b);var k=w-_,S=Zl(k-zl)<Hl;if(!S&&x<A&&(b=A,A=x,x=b),S||k<Hl?S?A+x>0^y[1]<(Zl(y[0]-_)<Hl?A:x):A<=y[1]&&y[1]<=x:k>zl^(_<=y[0]&&y[0]<=w)){var E=$c(p,(-f+v)/m);return Wc(E,h),[y,Hc(E)]}}}function a(t,n){var i=r?e:zl-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return Zu(o,function(e){var t,n,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(d,h){var p,f=[d,h],m=o(d,h),g=r?m?0:a(d,h):m?a(d+(d<0?zl:-zl),h):0;if(!t&&(c=l=m)&&e.lineStart(),m!==l&&(!(p=s(t,f))||zu(t,p)||zu(f,p))&&(f[2]=1),m!==l)u=0,m?(e.lineStart(),p=s(f,t),e.point(p[0],p[1])):(p=s(t,f),e.point(p[0],p[1],2),e.lineEnd()),t=p;else if(i&&t&&r^m){var v;g&n||!(v=s(f,t,!0))||(u=0,r?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1],3)))}!m||t&&zu(t,f)||e.point(f[0],f[1]),t=f,l=m,n=g},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}},function(t,r,i,o){Vu(o,e,n,i,t,r)},r?[0,-e]:[-zl,e-zl])}var td,nd,rd,id,od=1e9,sd=-od;function ad(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,a,c){var u=0,d=0;if(null==i||(u=s(i,a))!==(d=s(o,a))||l(i,o)<0^a>0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+a+4)%4)!==d);else c.point(o[0],o[1])}function s(r,i){return Zl(r[0]-e)<Hl?i>0?0:3:Zl(r[0]-n)<Hl?i>0?2:1:Zl(r[1]-t)<Hl?i>0?1:0:i>0?3:2}function a(e,t){return l(e.x,t.x)}function l(e,t){var n=s(e,1),r=s(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){var l,c,u,d,h,p,f,m,g,v,y,b=s,_=Uu(),w={point:A,lineStart:function(){w.point=x,c&&c.push(u=[]),v=!0,g=!1,f=m=NaN},lineEnd:function(){l&&(x(d,h),p&&g&&_.rejoin(),l.push(_.result())),w.point=A,g&&b.lineEnd()},polygonStart:function(){b=_,l=[],c=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=c.length;n<i;++n)for(var o,s,a=c[n],l=1,u=a.length,d=a[0],h=d[0],p=d[1];l<u;++l)o=h,s=p,h=(d=a[l])[0],p=d[1],s<=r?p>r&&(h-o)*(r-s)>(p-s)*(e-o)&&++t:p<=r&&(h-o)*(r-s)<(p-s)*(e-o)&&--t;return t}(),n=y&&t,i=(l=de(l)).length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&Wu(l,a,t,o,s),s.polygonEnd()),b=s,l=c=u=null}};function A(e,t){i(e,t)&&b.point(e,t)}function x(o,s){var a=i(o,s);if(c&&u.push([o,s]),v)d=o,h=s,p=a,v=!1,a&&(b.lineStart(),b.point(o,s));else if(a&&g)b.point(o,s);else{var l=[f=Math.max(sd,Math.min(od,f)),m=Math.max(sd,Math.min(od,m))],_=[o=Math.max(sd,Math.min(od,o)),s=Math.max(sd,Math.min(od,s))];!function(e,t,n,r,i,o){var s,a=e[0],l=e[1],c=0,u=1,d=t[0]-a,h=t[1]-l;if(s=n-a,d||!(s>0)){if(s/=d,d<0){if(s<c)return;s<u&&(u=s)}else if(d>0){if(s>u)return;s>c&&(c=s)}if(s=i-a,d||!(s<0)){if(s/=d,d<0){if(s>u)return;s>c&&(c=s)}else if(d>0){if(s<c)return;s<u&&(u=s)}if(s=r-l,h||!(s>0)){if(s/=h,h<0){if(s<c)return;s<u&&(u=s)}else if(h>0){if(s>u)return;s>c&&(c=s)}if(s=o-l,h||!(s<0)){if(s/=h,h<0){if(s>u)return;s>c&&(c=s)}else if(h>0){if(s<c)return;s<u&&(u=s)}return c>0&&(e[0]=a+c*d,e[1]=l+c*h),u<1&&(t[0]=a+u*d,t[1]=l+u*h),!0}}}}}(l,_,e,t,n,r)?a&&(b.lineStart(),b.point(o,s),y=!1):(g||(b.lineStart(),b.point(l[0],l[1])),b.point(_[0],_[1]),a||b.lineEnd(),y=!1)}f=o,m=s,g=a}return w}}var ld={sphere:hc,point:hc,lineStart:function(){ld.point=ud,ld.lineEnd=cd},lineEnd:hc,polygonStart:hc,polygonEnd:hc};function cd(){ld.point=ld.lineEnd=hc}function ud(e,t){nd=e*=Kl,rd=oc(t*=Kl),id=Jl(t),ld.point=dd}function dd(e,t){e*=Kl;var n=oc(t*=Kl),r=Jl(t),i=Zl(e-nd),o=Jl(i),s=r*oc(i),a=id*n-rd*r*o,l=rd*n+id*r*o;td.add(Ql(ac(s*s+a*a),l)),nd=e,rd=n,id=r}function hd(e){return td=new k,yc(e,ld),+td}var pd=[null,null],fd={type:"LineString",coordinates:pd};function md(e,t){return pd[0]=e,pd[1]=t,hd(fd)}var gd={Feature:function(e,t){return yd(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(yd(n[r].geometry,t))return!0;return!1}},vd={Sphere:function(){return!0},Point:function(e,t){return bd(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(bd(n[r],t))return!0;return!1},LineString:function(e,t){return _d(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(_d(n[r],t))return!0;return!1},Polygon:function(e,t){return wd(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(wd(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(yd(n[r],t))return!0;return!1}};function yd(e,t){return!(!e||!vd.hasOwnProperty(e.type))&&vd[e.type](e,t)}function bd(e,t){return 0===md(e,t)}function _d(e,t){for(var n,r,i,o=0,s=e.length;o<s;o++){if(0===(r=md(e[o],t)))return!0;if(o>0&&(i=md(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<Ul*i)return!0;n=r}return!1}function wd(e,t){return!!Ku(e.map(Ad),xd(t))}function Ad(e){return(e=e.map(xd)).pop(),e}function xd(e){return[e[0]*Kl,e[1]*Kl]}function kd(e,t,n){var r=pe(e,t-Hl,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function Sd(e,t,n){var r=pe(e,t-Hl,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function Ed(){var e,t,n,r,i,o,s,a,l,c,u,d,h=10,p=h,f=90,m=360,g=2.5;function v(){return{type:"MultiLineString",coordinates:y()}}function y(){return pe(ec(r/f)*f,n,f).map(u).concat(pe(ec(a/m)*m,s,m).map(d)).concat(pe(ec(t/h)*h,e,h).filter(function(e){return Zl(e%f)>Hl}).map(l)).concat(pe(ec(o/p)*p,i,p).filter(function(e){return Zl(e%m)>Hl}).map(c))}return v.lines=function(){return y().map(function(e){return{type:"LineString",coordinates:e}})},v.outline=function(){return{type:"Polygon",coordinates:[u(r).concat(d(s).slice(1),u(n).reverse().slice(1),d(a).reverse().slice(1))]}},v.extent=function(e){return arguments.length?v.extentMajor(e).extentMinor(e):v.extentMinor()},v.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],a=+e[0][1],s=+e[1][1],r>n&&(e=r,r=n,n=e),a>s&&(e=a,a=s,s=e),v.precision(g)):[[r,a],[n,s]]},v.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),v.precision(g)):[[t,o],[e,i]]},v.step=function(e){return arguments.length?v.stepMajor(e).stepMinor(e):v.stepMinor()},v.stepMajor=function(e){return arguments.length?(f=+e[0],m=+e[1],v):[f,m]},v.stepMinor=function(e){return arguments.length?(h=+e[0],p=+e[1],v):[h,p]},v.precision=function(h){return arguments.length?(g=+h,l=kd(o,i,90),c=Sd(t,e,g),u=kd(a,s,90),d=Sd(r,n,g),v):g},v.extentMajor([[-180,-90+Hl],[180,90-Hl]]).extentMinor([[-180,-80-Hl],[180,80+Hl]])}var Td,Dd,Cd,Md,Id=e=>e,Od=new k,Ld=new k,Nd={point:hc,lineStart:hc,lineEnd:hc,polygonStart:function(){Nd.lineStart=Pd,Nd.lineEnd=Fd},polygonEnd:function(){Nd.lineStart=Nd.lineEnd=Nd.point=hc,Od.add(Zl(Ld)),Ld=new k},result:function(){var e=Od/2;return Od=new k,e}};function Pd(){Nd.point=Rd}function Rd(e,t){Nd.point=jd,Td=Cd=e,Dd=Md=t}function jd(e,t){Ld.add(Md*e-Cd*t),Cd=e,Md=t}function Fd(){jd(Td,Dd)}var Bd,Yd,Vd,Hd,Ud=Nd,zd=1/0,qd=zd,Wd=-zd,$d=Wd,Gd={point:function(e,t){e<zd&&(zd=e),e>Wd&&(Wd=e),t<qd&&(qd=t),t>$d&&($d=t)},lineStart:hc,lineEnd:hc,polygonStart:hc,polygonEnd:hc,result:function(){var e=[[zd,qd],[Wd,$d]];return Wd=$d=-(qd=zd=1/0),e}},Kd=Gd,Zd=0,Xd=0,Qd=0,Jd=0,eh=0,th=0,nh=0,rh=0,ih=0,oh={point:sh,lineStart:ah,lineEnd:uh,polygonStart:function(){oh.lineStart=dh,oh.lineEnd=hh},polygonEnd:function(){oh.point=sh,oh.lineStart=ah,oh.lineEnd=uh},result:function(){var e=ih?[nh/ih,rh/ih]:th?[Jd/th,eh/th]:Qd?[Zd/Qd,Xd/Qd]:[NaN,NaN];return Zd=Xd=Qd=Jd=eh=th=nh=rh=ih=0,e}};function sh(e,t){Zd+=e,Xd+=t,++Qd}function ah(){oh.point=lh}function lh(e,t){oh.point=ch,sh(Vd=e,Hd=t)}function ch(e,t){var n=e-Vd,r=t-Hd,i=ac(n*n+r*r);Jd+=i*(Vd+e)/2,eh+=i*(Hd+t)/2,th+=i,sh(Vd=e,Hd=t)}function uh(){oh.point=sh}function dh(){oh.point=ph}function hh(){fh(Bd,Yd)}function ph(e,t){oh.point=fh,sh(Bd=Vd=e,Yd=Hd=t)}function fh(e,t){var n=e-Vd,r=t-Hd,i=ac(n*n+r*r);Jd+=i*(Vd+e)/2,eh+=i*(Hd+t)/2,th+=i,nh+=(i=Hd*e-Vd*t)*(Vd+e),rh+=i*(Hd+t),ih+=3*i,sh(Vd=e,Hd=t)}var mh=oh;function gh(e){this._context=e}gh.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,$l)}},result:hc};var vh,yh,bh,_h,wh,Ah=new k,xh={point:hc,lineStart:function(){xh.point=kh},lineEnd:function(){vh&&Sh(yh,bh),xh.point=hc},polygonStart:function(){vh=!0},polygonEnd:function(){vh=null},result:function(){var e=+Ah;return Ah=new k,e}};function kh(e,t){xh.point=Sh,yh=_h=e,bh=wh=t}function Sh(e,t){_h-=e,wh-=t,Ah.add(ac(_h*_h+wh*wh)),_h=e,wh=t}var Eh=xh;let Th,Dh,Ch,Mh;class Ih{constructor(e){this._append=null==e?Oh:function(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return Oh;if(t!==Th){const e=10**t;Th=t,Dh=function(t){let n=1;this._+=t[0];for(const r=t.length;n<r;++n)this._+=Math.round(arguments[n]*e)/e+t[n]}}return Dh}(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==Ch||this._append!==Dh){const e=this._radius,t=this._;this._="",this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,Ch=e,Dh=this._append,Mh=this._,this._=t}this._+=Mh}}result(){const e=this._;return this._="",e.length?e:null}}function Oh(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Lh(e){return function(t){var n=new Nh;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Nh(){}function Ph(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),yc(n,e.stream(Kd)),t(Kd.result()),null!=r&&e.clipExtent(r),e}function Rh(e,t,n){return Ph(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),s=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,a=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([s,a])},n)}function jh(e,t,n){return Rh(e,[[0,0],t],n)}function Fh(e,t,n){return Ph(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,s=-i*n[0][1];e.scale(150*i).translate([o,s])},n)}function Bh(e,t,n){return Ph(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],s=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,s])},n)}Nh.prototype={constructor:Nh,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Yh=Jl(30*Kl);function Vh(e,t){return+t?function(e,t){function n(r,i,o,s,a,l,c,u,d,h,p,f,m,g){var v=c-r,y=u-i,b=v*v+y*y;if(b>4*t&&m--){var _=s+h,w=a+p,A=l+f,x=ac(_*_+w*w+A*A),k=uc(A/=x),S=Zl(Zl(A)-1)<Hl||Zl(o-d)<Hl?(o+d)/2:Ql(w,_),E=e(S,k),T=E[0],D=E[1],C=T-r,M=D-i,I=y*C-v*M;(I*I/b>t||Zl((v*C+y*M)/b-.5)>.3||s*h+a*p+l*f<Yh)&&(n(r,i,o,s,a,l,T,D,S,_/=x,w/=x,A,m,g),g.point(T,D),n(T,D,S,_,w,A,c,u,d,h,p,f,m,g))}}return function(t){var r,i,o,s,a,l,c,u,d,h,p,f,m={point:g,lineStart:v,lineEnd:b,polygonStart:function(){t.polygonStart(),m.lineStart=_},polygonEnd:function(){t.polygonEnd(),m.lineStart=v}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function v(){u=NaN,m.point=y,t.lineStart()}function y(r,i){var o=Uc([r,i]),s=e(r,i);n(u,d,c,h,p,f,u=s[0],d=s[1],c=r,h=o[0],p=o[1],f=o[2],16,t),t.point(u,d)}function b(){m.point=g,t.lineEnd()}function _(){v(),m.point=w,m.lineEnd=A}function w(e,t){y(r=e,t),i=u,o=d,s=h,a=p,l=f,m.point=y}function A(){n(u,d,c,h,p,f,i,o,r,s,a,l,16,t),m.lineEnd=b,b()}return m}}(e,t):function(e){return Lh({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)}var Hh=Lh({point:function(e,t){this.stream.point(e*Kl,t*Kl)}});function Uh(e,t,n,r,i,o){if(!o)return function(e,t,n,r,i){function o(o,s){return[t+e*(o*=r),n-e*(s*=i)]}return o.invert=function(o,s){return[(o-t)/e*r,(n-s)/e*i]},o}(e,t,n,r,i);var s=Jl(o),a=oc(o),l=s*e,c=a*e,u=s/e,d=a/e,h=(a*n-s*t)/e,p=(a*t+s*n)/e;function f(e,o){return[l*(e*=r)-c*(o*=i)+t,n-c*e-l*o]}return f.invert=function(e,t){return[r*(u*e-d*t+h),i*(p-d*e-u*t)]},f}function zh(e){return qh(function(){return e})()}function qh(e){var t,n,r,i,o,s,a,l,c,u,d=150,h=480,p=250,f=0,m=0,g=0,v=0,y=0,b=0,_=1,w=1,A=null,x=Ju,k=null,S=Id,E=.5;function T(e){return l(e[0]*Kl,e[1]*Kl)}function D(e){return(e=l.invert(e[0],e[1]))&&[e[0]*Gl,e[1]*Gl]}function C(){var e=Uh(d,0,0,_,w,b).apply(null,t(f,m)),r=Uh(d,h-e[0],p-e[1],_,w,b);return n=Ru(g,v,y),a=Nu(t,r),l=Nu(n,a),s=Vh(a,E),M()}function M(){return c=u=null,T}return T.stream=function(e){return c&&u===e?c:c=Hh(function(e){return Lh({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}(n)(x(s(S(u=e)))))},T.preclip=function(e){return arguments.length?(x=e,A=void 0,M()):x},T.postclip=function(e){return arguments.length?(S=e,k=r=i=o=null,M()):S},T.clipAngle=function(e){return arguments.length?(x=+e?ed(A=e*Kl):(A=null,Ju),M()):A*Gl},T.clipExtent=function(e){return arguments.length?(S=null==e?(k=r=i=o=null,Id):ad(k=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),M()):null==k?null:[[k,r],[i,o]]},T.scale=function(e){return arguments.length?(d=+e,C()):d},T.translate=function(e){return arguments.length?(h=+e[0],p=+e[1],C()):[h,p]},T.center=function(e){return arguments.length?(f=e[0]%360*Kl,m=e[1]%360*Kl,C()):[f*Gl,m*Gl]},T.rotate=function(e){return arguments.length?(g=e[0]%360*Kl,v=e[1]%360*Kl,y=e.length>2?e[2]%360*Kl:0,C()):[g*Gl,v*Gl,y*Gl]},T.angle=function(e){return arguments.length?(b=e%360*Kl,C()):b*Gl},T.reflectX=function(e){return arguments.length?(_=e?-1:1,C()):_<0},T.reflectY=function(e){return arguments.length?(w=e?-1:1,C()):w<0},T.precision=function(e){return arguments.length?(s=Vh(a,E=e*e),M()):ac(E)},T.fitExtent=function(e,t){return Rh(T,e,t)},T.fitSize=function(e,t){return jh(T,e,t)},T.fitWidth=function(e,t){return Fh(T,e,t)},T.fitHeight=function(e,t){return Bh(T,e,t)},function(){return t=e.apply(this,arguments),T.invert=t.invert&&D,C()}}function Wh(e){var t=0,n=zl/3,r=qh(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Kl,n=e[1]*Kl):[t*Gl,n*Gl]},i}function $h(e,t){var n=oc(e),r=(n+oc(t))/2;if(Zl(r)<Hl)return function(e){var t=Jl(e);function n(e,n){return[e*t,oc(n)/t]}return n.invert=function(e,n){return[e/t,uc(n*t)]},n}(e);var i=1+n*(2*r-n),o=ac(i)/r;function s(e,t){var n=ac(i-2*r*oc(t))/r;return[n*oc(e*=r),o-n*Jl(e)]}return s.invert=function(e,t){var n=o-t,s=Ql(e,Zl(n))*sc(n);return n*r<0&&(s-=zl*sc(e)*sc(n)),[s/r,uc((i-(e*e+n*n)*r*r)/(2*r))]},s}function Gh(){return Wh($h).scale(155.424).center([0,33.6442])}function Kh(){return Gh().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Zh(e){return function(t,n){var r=Jl(t),i=Jl(n),o=e(r*i);return o===1/0?[2,0]:[o*i*oc(t),o*oc(n)]}}function Xh(e){return function(t,n){var r=ac(t*t+n*n),i=e(r),o=oc(i),s=Jl(i);return[Ql(t*o,r*s),uc(r&&n*o/r)]}}var Qh=Zh(function(e){return ac(2/(1+e))});Qh.invert=Xh(function(e){return 2*uc(e/2)});var Jh=Zh(function(e){return(e=cc(e))&&e/oc(e)});function ep(e,t){return[e,rc(lc((ql+t)/2))]}function tp(e){var t,n,r,i=zh(e),o=i.center,s=i.scale,a=i.translate,l=i.clipExtent,c=null;function u(){var o=zl*s(),a=i(Yu(i.rotate()).invert([0,0]));return l(null==c?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:e===ep?[[Math.max(a[0]-o,c),t],[Math.min(a[0]+o,n),r]]:[[c,Math.max(a[1]-o,t)],[n,Math.min(a[1]+o,r)]])}return i.scale=function(e){return arguments.length?(s(e),u()):s()},i.translate=function(e){return arguments.length?(a(e),u()):a()},i.center=function(e){return arguments.length?(o(e),u()):o()},i.clipExtent=function(e){return arguments.length?(null==e?c=t=n=r=null:(c=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),u()):null==c?null:[[c,t],[n,r]]},u()}function np(e){return lc((ql+e)/2)}function rp(e,t){var n=Jl(e),r=e===t?oc(e):rc(n/Jl(t))/rc(np(t)/np(e)),i=n*ic(np(e),r)/r;if(!r)return ep;function o(e,t){i>0?t<-ql+Hl&&(t=-ql+Hl):t>ql-Hl&&(t=ql-Hl);var n=i/ic(np(t),r);return[n*oc(r*e),i-n*Jl(r*e)]}return o.invert=function(e,t){var n=i-t,o=sc(r)*ac(e*e+n*n),s=Ql(e,Zl(n))*sc(n);return n*r<0&&(s-=zl*sc(e)*sc(n)),[s/r,2*Xl(ic(i/o,1/r))-ql]},o}function ip(e,t){return[e,t]}function op(e,t){var n=Jl(e),r=e===t?oc(e):(n-Jl(t))/(t-e),i=n/r+e;if(Zl(r)<Hl)return ip;function o(e,t){var n=i-t,o=r*e;return[n*oc(o),i-n*Jl(o)]}return o.invert=function(e,t){var n=i-t,o=Ql(e,Zl(n))*sc(n);return n*r<0&&(o-=zl*sc(e)*sc(n)),[o/r,i-sc(r)*ac(e*e+n*n)]},o}Jh.invert=Xh(function(e){return e}),ep.invert=function(e,t){return[e,2*Xl(tc(t))-ql]},ip.invert=ip;var sp=1.340264,ap=-.081106,lp=893e-6,cp=.003796,up=ac(3)/2;function dp(e,t){var n=uc(up*oc(t)),r=n*n,i=r*r*r;return[e*Jl(n)/(up*(sp+3*ap*r+i*(7*lp+9*cp*r))),n*(sp+ap*r+i*(lp+cp*r))]}function hp(e,t){var n=Jl(t),r=Jl(e)*n;return[n*oc(e)/r,oc(t)/r]}function pp(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function fp(e,t){return[Jl(t)*oc(e),oc(t)]}function mp(e,t){var n=Jl(t),r=1+Jl(e)*n;return[n*oc(e)/r,oc(t)/r]}function gp(e,t){return[rc(lc((ql+t)/2)),-e]}function vp(e,t){return e.parent===t.parent?1:2}function yp(e,t){return e+t.x}function bp(e,t){return Math.max(e,t.y)}function _p(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function wp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=xp)):void 0===t&&(t=Ap);for(var n,r,i,o,s,a=new Ep(e),l=[a];n=l.pop();)if((i=t(n.data))&&(s=(i=Array.from(i)).length))for(n.children=i,o=s-1;o>=0;--o)l.push(r=i[o]=new Ep(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(Sp)}function Ap(e){return e.children}function xp(e){return Array.isArray(e)?e[1]:null}function kp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Sp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ep(e){this.data=e,this.depth=this.height=0,this.parent=null}function Tp(e){return null==e?null:Dp(e)}function Dp(e){if("function"!=typeof e)throw new Error;return e}function Cp(){return 0}function Mp(e){return function(){return e}}dp.invert=function(e,t){for(var n,r=t,i=r*r,o=i*i*i,s=0;s<12&&(o=(i=(r-=n=(r*(sp+ap*i+o*(lp+cp*i))-t)/(sp+3*ap*i+o*(7*lp+9*cp*i)))*r)*i*i,!(Zl(n)<Ul));++s);return[up*e*(sp+3*ap*i+o*(7*lp+9*cp*i))/Jl(r),uc(oc(r)/up)]},hp.invert=Xh(Xl),pp.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,s=o*o;r-=n=(r*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-t)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(Zl(n)>Hl&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},fp.invert=Xh(uc),mp.invert=Xh(function(e){return 2*Xl(e)}),gp.invert=function(e,t){return[-t,2*Xl(tc(e))-ql]},Ep.prototype=wp.prototype={constructor:Ep,count:function(){return this.eachAfter(_p)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,s=[o],a=[],l=-1;o=s.pop();)if(a.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)s.push(n[r]);for(;o=a.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],s=-1;i=o.pop();)if(e.call(t,i,++s,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return wp(this).eachBefore(kp)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};const Ip=4294967296;function Op(){let e=1;return()=>(e=(1664525*e+1013904223)%Ip)/Ip}function Lp(e,t){for(var n,r,i=0,o=(e=function(e,t){let n,r,i=e.length;for(;i;)r=t()*i--|0,n=e[i],e[i]=e[r],e[r]=n;return e}(Array.from(e),t)).length,s=[];i<o;)n=e[i],r&&Rp(r,n)?++i:(r=Fp(s=Np(s,n)),i=0);return r}function Np(e,t){var n,r;if(jp(t,e))return[t];for(n=0;n<e.length;++n)if(Pp(t,e[n])&&jp(Bp(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(Pp(Bp(e[n],e[r]),t)&&Pp(Bp(e[n],t),e[r])&&Pp(Bp(e[r],t),e[n])&&jp(Yp(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Pp(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function Rp(e,t){var n=e.r-t.r+1e-9*Math.max(e.r,t.r,1),r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function jp(e,t){for(var n=0;n<t.length;++n)if(!Rp(e,t[n]))return!1;return!0}function Fp(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return Bp(e[0],e[1]);case 3:return Yp(e[0],e[1],e[2])}}function Bp(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,s=t.y,a=t.r,l=o-n,c=s-r,u=a-i,d=Math.sqrt(l*l+c*c);return{x:(n+o+l/d*u)/2,y:(r+s+c/d*u)/2,r:(d+i+a)/2}}function Yp(e,t,n){var r=e.x,i=e.y,o=e.r,s=t.x,a=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=r-s,p=r-c,f=i-a,m=i-u,g=l-o,v=d-o,y=r*r+i*i-o*o,b=y-s*s-a*a+l*l,_=y-c*c-u*u+d*d,w=p*f-h*m,A=(f*_-m*b)/(2*w)-r,x=(m*g-f*v)/w,k=(p*b-h*_)/(2*w)-i,S=(h*v-p*g)/w,E=x*x+S*S-1,T=2*(o+A*x+k*S),D=A*A+k*k-o*o,C=-(Math.abs(E)>1e-6?(T+Math.sqrt(T*T-4*E*D))/(2*E):D/T);return{x:r+A+x*C,y:i+k+S*C,r:C}}function Vp(e,t,n){var r,i,o,s,a=e.x-t.x,l=e.y-t.y,c=a*a+l*l;c?(i=t.r+n.r,i*=i,s=e.r+n.r,i>(s*=s)?(r=(c+s-i)/(2*c),o=Math.sqrt(Math.max(0,s/c-r*r)),n.x=e.x-r*a-o*l,n.y=e.y-r*l+o*a):(r=(c+i-s)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=t.x+r*a-o*l,n.y=t.y+r*l+o*a)):(n.x=t.x+n.r,n.y=t.y)}function Hp(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Up(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function zp(e){this._=e,this.next=null,this.previous=null}function qp(e,t){if(!(o=(e=function(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}(e)).length))return 0;var n,r,i,o,s,a,l,c,u,d,h;if((n=e[0]).x=0,n.y=0,!(o>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(o>2))return n.r+r.r;Vp(r,n,i=e[2]),n=new zp(n),r=new zp(r),i=new zp(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;e:for(l=3;l<o;++l){Vp(n._,r._,i=e[l]),i=new zp(i),c=r.next,u=n.previous,d=r._.r,h=n._.r;do{if(d<=h){if(Hp(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue e}d+=c._.r,c=c.next}else{if(Hp(u._,i._)){(n=u).next=r,r.previous=n,--l;continue e}h+=u._.r,u=u.previous}}while(c!==u.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,s=Up(n);(i=i.next)!==r;)(a=Up(i))<s&&(n=i,s=a);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=Lp(n,t),l=0;l<o;++l)(n=e[l]).x-=i.x,n.y-=i.y;return i.r}function Wp(e){return Math.sqrt(e.value)}function $p(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Gp(e,t,n){return function(r){if(i=r.children){var i,o,s,a=i.length,l=e(r)*t||0;if(l)for(o=0;o<a;++o)i[o].r+=l;if(s=qp(i,n),l)for(o=0;o<a;++o)i[o].r-=l;r.r=s+l}}}function Kp(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function Zp(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Xp(e,t,n,r,i){for(var o,s=e.children,a=-1,l=s.length,c=e.value&&(r-t)/e.value;++a<l;)(o=s[a]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}var Qp={depth:-1},Jp={},ef={};function tf(e){return e.id}function nf(e){return e.parentId}function rf(e){let t=e.length;if(t<2)return"";for(;--t>1&&!of(e,t););return e.slice(0,t)}function of(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function sf(e,t){return e.parent===t.parent?1:2}function af(e){var t=e.children;return t?t[0]:e.t}function lf(e){var t=e.children;return t?t[t.length-1]:e.t}function cf(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function uf(e,t,n){return e.a.parent===t.parent?e.a:n}function df(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function hf(e,t,n,r,i){for(var o,s=e.children,a=-1,l=s.length,c=e.value&&(i-n)/e.value;++a<l;)(o=s[a]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}df.prototype=Object.create(Ep.prototype);var pf=(1+Math.sqrt(5))/2;function ff(e,t,n,r,i,o){for(var s,a,l,c,u,d,h,p,f,m,g,v=[],y=t.children,b=0,_=0,w=y.length,A=t.value;b<w;){l=i-n,c=o-r;do{u=y[_++].value}while(!u&&_<w);for(d=h=u,g=u*u*(m=Math.max(c/l,l/c)/(A*e)),f=Math.max(h/g,g/d);_<w;++_){if(u+=a=y[_].value,a<d&&(d=a),a>h&&(h=a),g=u*u*m,(p=Math.max(h/g,g/d))>f){u-=a;break}f=p}v.push(s={value:u,dice:l<c,children:y.slice(b,_)}),s.dice?Xp(s,n,r,i,A?r+=c*u/A:o):hf(s,n,r,A?n+=l*u/A:i,o),A-=u,b=_}return v}var mf=function e(t){function n(e,n,r,i,o){ff(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(pf),gf=function e(t){function n(e,n,r,i,o){if((s=e._squarify)&&s.ratio===t)for(var s,a,l,c,u,d=-1,h=s.length,p=e.value;++d<h;){for(l=(a=s[d]).children,c=a.value=0,u=l.length;c<u;++c)a.value+=l[c].value;a.dice?Xp(a,n,r,i,p?r+=(o-r)*a.value/p:o):hf(a,n,r,p?n+=(i-n)*a.value/p:i,o),p-=a.value}else e._squarify=s=ff(t,e,n,r,i,o),s.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(pf);function vf(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function yf(e,t){return e[0]-t[0]||e[1]-t[1]}function bf(e){const t=e.length,n=[0,1];let r,i=2;for(r=2;r<t;++r){for(;i>1&&vf(e[n[i-2]],e[n[i-1]],e[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}var _f=Math.random,wf=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(_f),Af=function e(t){function n(e,n){return arguments.length<2&&(n=e,e=0),e=Math.floor(e),n=Math.floor(n)-e,function(){return Math.floor(t()*n+e)}}return n.source=e,n}(_f),xf=function e(t){function n(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*t()-1,o=2*t()-1,i=r*r+o*o}while(!i||i>1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(_f),kf=function e(t){var n=xf.source(t);function r(){var e=n.apply(this,arguments);return function(){return Math.exp(e())}}return r.source=e,r}(_f),Sf=function e(t){function n(e){return(e=+e)<=0?()=>0:function(){for(var n=0,r=e;r>1;--r)n+=t();return n+r*t()}}return n.source=e,n}(_f),Ef=function e(t){var n=Sf.source(t);function r(e){if(0==(e=+e))return t;var r=n(e);return function(){return r()/e}}return r.source=e,r}(_f),Tf=function e(t){function n(e){return function(){return-Math.log1p(-t())/e}}return n.source=e,n}(_f),Df=function e(t){function n(e){if((e=+e)<0)throw new RangeError("invalid alpha");return e=1/-e,function(){return Math.pow(1-t(),e)}}return n.source=e,n}(_f),Cf=function e(t){function n(e){if((e=+e)<0||e>1)throw new RangeError("invalid p");return function(){return Math.floor(t()+e)}}return n.source=e,n}(_f),Mf=function e(t){function n(e){if((e=+e)<0||e>1)throw new RangeError("invalid p");return 0===e?()=>1/0:1===e?()=>1:(e=Math.log1p(-e),function(){return 1+Math.floor(Math.log1p(-t())/e)})}return n.source=e,n}(_f),If=function e(t){var n=xf.source(t)();function r(e,r){if((e=+e)<0)throw new RangeError("invalid k");if(0===e)return()=>0;if(r=null==r?1:+r,1===e)return()=>-Math.log1p(-t())*r;var i=(e<1?e+1:e)-1/3,o=1/(3*Math.sqrt(i)),s=e<1?()=>Math.pow(t(),1/e):()=>1;return function(){do{do{var e=n(),a=1+o*e}while(a<=0);a*=a*a;var l=1-t()}while(l>=1-.0331*e*e*e*e&&Math.log(l)>=.5*e*e+i*(1-a+Math.log(a)));return i*a*s()*r}}return r.source=e,r}(_f),Of=function e(t){var n=If.source(t);function r(e,t){var r=n(e),i=n(t);return function(){var e=r();return 0===e?0:e/(e+i())}}return r.source=e,r}(_f),Lf=function e(t){var n=Mf.source(t),r=Of.source(t);function i(e,t){return e=+e,(t=+t)>=1?()=>e:t<=0?()=>0:function(){for(var i=0,o=e,s=t;o*s>16&&o*(1-s)>16;){var a=Math.floor((o+1)*s),l=r(a,o-a+1)();l<=s?(i+=a,o-=a,s=(s-l)/(1-l)):(o=a-1,s/=l)}for(var c=s<.5,u=n(c?s:1-s),d=u(),h=0;d<=o;++h)d+=u();return i+(c?h:o-h)}}return i.source=e,i}(_f),Nf=function e(t){function n(e,n,r){var i;return 0==(e=+e)?i=e=>-Math.log(e):(e=1/e,i=t=>Math.pow(t,e)),n=null==n?0:+n,r=null==r?1:+r,function(){return n+r*i(-Math.log1p(-t()))}}return n.source=e,n}(_f),Pf=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,function(){return e+n*Math.tan(Math.PI*t())}}return n.source=e,n}(_f),Rf=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,function(){var r=t();return e+n*Math.log(r/(1-r))}}return n.source=e,n}(_f),jf=function e(t){var n=If.source(t),r=Lf.source(t);function i(e){return function(){for(var i=0,o=e;o>16;){var s=Math.floor(.875*o),a=n(s)();if(a>o)return i+r(s-1,o/a)();i+=s,o-=a}for(var l=-Math.log1p(-t()),c=0;l<=o;++c)l-=Math.log1p(-t());return i+c}}return i.source=e,i}(_f);const Ff=1/4294967296;function Bf(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Yf(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const Vf=Symbol("implicit");function Hf(){var e=new S,t=[],n=[],r=Vf;function i(i){let o=e.get(i);if(void 0===o){if(r!==Vf)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new S;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Hf(t,n).unknown(r)},Bf.apply(i,arguments),i}function Uf(){var e,t,n=Hf().unknown(void 0),r=n.domain,i=n.range,o=0,s=1,a=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=s<o,h=d?s:o,p=d?o:s;e=(p-h)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*u,t=e*(1-l),a&&(h=Math.round(h),t=Math.round(t));var f=pe(n).map(function(t){return h+e*t});return i(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,s]=e,o=+o,s=+s,d()):[o,s]},n.rangeRound=function(e){return[o,s]=e,o=+o,s=+s,a=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,d()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return Uf(r(),[o,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},Bf.apply(d(),arguments)}function zf(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return zf(t())},e}function qf(e){return+e}var Wf=[0,1];function $f(e){return e}function Gf(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Kf(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=Gf(i,r),o=n(s,o)):(r=Gf(r,i),o=n(o,s)),function(e){return o(r(e))}}function Zf(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=Gf(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(t){var n=u(e,t,1,r)-1;return o[n](i[n](t))}}function Xf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Qf(){var e,t,n,r,i,o,s=Wf,a=Wf,l=Ur,c=$f;function u(){var e=Math.min(s.length,a.length);return c!==$f&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(s[0],s[e-1])),r=e>2?Zf:Kf,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(s.map(e),a,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(a,s.map(e),Fr)))(n)))},d.domain=function(e){return arguments.length?(s=Array.from(e,qf),u()):s.slice()},d.range=function(e){return arguments.length?(a=Array.from(e),u()):a.slice()},d.rangeRound=function(e){return a=Array.from(e),l=zr,u()},d.clamp=function(e){return arguments.length?(c=!!e||$f,u()):c!==$f},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function Jf(){return Qf()($f,$f)}function em(t,n,r,i){var o,s=X(t,n,r);switch((i=Cl(null==i?",f":i)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=i.precision||isNaN(o=Yl(s,a))||(i.precision=o),e.formatPrefix(i,a);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Vl(s,Math.max(Math.abs(t),Math.abs(n))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Bl(s))||(i.precision=o-2*("%"===i.type))}return e.format(i)}function tm(e){var t=e.domain;return e.ticks=function(e){var n=t();return K(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return em(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),s=0,a=o.length-1,l=o[s],c=o[a],u=10;for(c<l&&(i=l,l=c,c=i,i=s,s=a,a=i);u-- >0;){if((i=Z(l,c,n))===r)return o[s]=l,o[a]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function nm(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],s=e[i];return s<o&&(n=r,r=i,i=n,n=o,o=s,s=n),e[r]=t.floor(o),e[i]=t.ceil(s),e}function rm(e){return Math.log(e)}function im(e){return Math.exp(e)}function om(e){return-Math.log(-e)}function sm(e){return-Math.exp(-e)}function am(e){return isFinite(e)?+("1e"+e):e<0?0:e}function lm(e){return(t,n)=>-e(-t,n)}function cm(t){const n=t(rm,im),r=n.domain;let i,o,s=10;function a(){return i=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(s),o=function(e){return 10===e?am:e===Math.E?Math.exp:t=>Math.pow(e,t)}(s),r()[0]<0?(i=lm(i),o=lm(o),t(om,sm)):t(rm,im),n}return n.base=function(e){return arguments.length?(s=+e,a()):s},n.domain=function(e){return arguments.length?(r(e),a()):r()},n.ticks=e=>{const t=r();let n=t[0],a=t[t.length-1];const l=a<n;l&&([n,a]=[a,n]);let c,u,d=i(n),h=i(a);const p=null==e?10:+e;let f=[];if(!(s%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),n>0){for(;d<=h;++d)for(c=1;c<s;++c)if(u=d<0?c/o(-d):c*o(d),!(u<n)){if(u>a)break;f.push(u)}}else for(;d<=h;++d)for(c=s-1;c>=1;--c)if(u=d>0?c/o(-d):c*o(d),!(u<n)){if(u>a)break;f.push(u)}2*f.length<p&&(f=K(n,a,p))}else f=K(d,h,Math.min(h-d,p)).map(o);return l?f.reverse():f},n.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===s?"s":","),"function"!=typeof r&&(s%1||null!=(r=Cl(r)).precision||(r.trim=!0),r=e.format(r)),t===1/0)return r;const a=Math.max(1,s*t/n.ticks().length);return e=>{let t=e/o(Math.round(i(e)));return t*s<s-.5&&(t*=s),t<=a?r(e):""}},n.nice=()=>r(nm(r(),{floor:e=>o(Math.floor(i(e))),ceil:e=>o(Math.ceil(i(e)))})),n}function um(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function dm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function hm(e){var t=1,n=e(um(t),dm(t));return n.constant=function(n){return arguments.length?e(um(t=+n),dm(t)):t},tm(n)}function pm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function mm(e){return e<0?-e*e:e*e}function gm(e){var t=e($f,$f),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e($f,$f):.5===n?e(fm,mm):e(pm(n),pm(1/n)):n},tm(t)}function vm(){var e=gm(Qf());return e.copy=function(){return Xf(e,vm()).exponent(e.exponent())},Bf.apply(e,arguments),e}function ym(e){return Math.sign(e)*e*e}const bm=new Date,_m=new Date;function wm(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;let a;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=n=>wm(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(bm.setTime(+t),_m.setTime(+r),e(bm),e(_m),Math.floor(n(bm,_m))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const Am=wm(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Am.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?wm(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Am:null);const xm=Am.range,km=1e3,Sm=6e4,Em=36e5,Tm=864e5,Dm=6048e5,Cm=31536e6,Mm=wm(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*km)},(e,t)=>(t-e)/km,e=>e.getUTCSeconds()),Im=Mm.range,Om=wm(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*km)},(e,t)=>{e.setTime(+e+t*Sm)},(e,t)=>(t-e)/Sm,e=>e.getMinutes()),Lm=Om.range,Nm=wm(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Sm)},(e,t)=>(t-e)/Sm,e=>e.getUTCMinutes()),Pm=Nm.range,Rm=wm(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*km-e.getMinutes()*Sm)},(e,t)=>{e.setTime(+e+t*Em)},(e,t)=>(t-e)/Em,e=>e.getHours()),jm=Rm.range,Fm=wm(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Em)},(e,t)=>(t-e)/Em,e=>e.getUTCHours()),Bm=Fm.range,Ym=wm(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sm)/Tm,e=>e.getDate()-1),Vm=Ym.range,Hm=wm(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tm,e=>e.getUTCDate()-1),Um=Hm.range,zm=wm(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tm,e=>Math.floor(e/Tm)),qm=zm.range;function Wm(e){return wm(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sm)/Dm)}const $m=Wm(0),Gm=Wm(1),Km=Wm(2),Zm=Wm(3),Xm=Wm(4),Qm=Wm(5),Jm=Wm(6),eg=$m.range,tg=Gm.range,ng=Km.range,rg=Zm.range,ig=Xm.range,og=Qm.range,sg=Jm.range;function ag(e){return wm(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/Dm)}const lg=ag(0),cg=ag(1),ug=ag(2),dg=ag(3),hg=ag(4),pg=ag(5),fg=ag(6),mg=lg.range,gg=cg.range,vg=ug.range,yg=dg.range,bg=hg.range,_g=pg.range,wg=fg.range,Ag=wm(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth()),xg=Ag.range,kg=wm(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth()),Sg=kg.range,Eg=wm(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Eg.every=e=>isFinite(e=Math.floor(e))&&e>0?wm(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null;const Tg=Eg.range,Dg=wm(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Dg.every=e=>isFinite(e=Math.floor(e))&&e>0?wm(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null;const Cg=Dg.range;function Mg(e,t,n,i,o,s){const a=[[Mm,1,km],[Mm,5,5e3],[Mm,15,15e3],[Mm,30,3e4],[s,1,Sm],[s,5,3e5],[s,15,9e5],[s,30,18e5],[o,1,Em],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,Tm],[i,2,1728e5],[n,1,Dm],[t,1,2592e6],[t,3,7776e6],[e,1,Cm]];function l(t,n,i){const o=Math.abs(n-t)/i,s=r(([,,e])=>e).right(a,o);if(s===a.length)return e.every(X(t/Cm,n/Cm,i));if(0===s)return Am.every(Math.max(X(t,n,i),1));const[l,c]=a[o/a[s-1][2]<a[s][2]/o?s-1:s];return l.every(c)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:l(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},l]}const[Ig,Og]=Mg(Dg,kg,lg,zm,Fm,Nm),[Lg,Ng]=Mg(Eg,Ag,$m,Ym,Rm,Om);function Pg(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Rg(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function jg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Fg(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,c=Wg(i),u=$g(i),d=Wg(o),h=$g(o),p=Wg(s),f=$g(s),m=Wg(a),g=$g(a),v=Wg(l),y=$g(l),b={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:fv,e:fv,f:bv,g:Mv,G:Ov,H:mv,I:gv,j:vv,L:yv,m:_v,M:wv,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ty,s:ny,S:Av,u:xv,U:kv,V:Ev,w:Tv,W:Dv,x:null,X:null,y:Cv,Y:Iv,Z:Lv,"%":ey},_={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:Nv,e:Nv,f:Bv,g:Zv,G:Qv,H:Pv,I:Rv,j:jv,L:Fv,m:Yv,M:Vv,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ty,s:ny,S:Hv,u:Uv,U:zv,V:Wv,w:$v,W:Gv,x:null,X:null,y:Kv,Y:Xv,Z:Jv,"%":ey},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:iv,e:iv,f:uv,g:ev,G:Jg,H:sv,I:sv,j:ov,L:cv,m:rv,M:av,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:nv,Q:hv,s:pv,S:lv,u:Kg,U:Zg,V:Xg,w:Gg,W:Qg,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:ev,Y:Jg,Z:tv,"%":dv};function A(e,t){return function(n){var r,i,o,s=[],a=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===e.charCodeAt(a)&&(s.push(e.slice(l,a)),null!=(i=Yg[r=e.charAt(++a)])?r=e.charAt(++a):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),s.push(r),l=a+1);return s.push(e.slice(l,a)),s.join("")}}function x(e,t){return function(n){var r,i,o=jg(1900,void 0,1);if(k(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Rg(jg(o.y,0,1))).getUTCDay(),r=i>4||0===i?cg.ceil(r):cg(r),r=Hm.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Pg(jg(o.y,0,1))).getDay(),r=i>4||0===i?Gm.ceil(r):Gm(r),r=Ym.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Rg(jg(o.y,0,1)).getUTCDay():Pg(jg(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Rg(o)):Pg(o)}}function k(e,t,n,r){for(var i,o,s=0,a=t.length,l=n.length;s<a;){if(r>=l)return-1;if(37===(i=t.charCodeAt(s++))){if(i=t.charAt(s++),!(o=w[i in Yg?t.charAt(s++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=A(n,b),b.X=A(r,b),b.c=A(t,b),_.x=A(n,_),_.X=A(r,_),_.c=A(t,_),{format:function(e){var t=A(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=A(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}var Bg,Yg={"-":"",_:" ",0:"0"},Vg=/^\s*\d+/,Hg=/^%/,Ug=/[\\^$*+?|[\]().{}]/g;function zg(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function qg(e){return e.replace(Ug,"\\$&")}function Wg(e){return new RegExp("^(?:"+e.map(qg).join("|")+")","i")}function $g(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Gg(e,t,n){var r=Vg.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Kg(e,t,n){var r=Vg.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Zg(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Xg(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Qg(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Jg(e,t,n){var r=Vg.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ev(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tv(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function nv(e,t,n){var r=Vg.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rv(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function iv(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ov(e,t,n){var r=Vg.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function sv(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function av(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lv(e,t,n){var r=Vg.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cv(e,t,n){var r=Vg.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function uv(e,t,n){var r=Vg.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dv(e,t,n){var r=Hg.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hv(e,t,n){var r=Vg.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function pv(e,t,n){var r=Vg.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function fv(e,t){return zg(e.getDate(),t,2)}function mv(e,t){return zg(e.getHours(),t,2)}function gv(e,t){return zg(e.getHours()%12||12,t,2)}function vv(e,t){return zg(1+Ym.count(Eg(e),e),t,3)}function yv(e,t){return zg(e.getMilliseconds(),t,3)}function bv(e,t){return yv(e,t)+"000"}function _v(e,t){return zg(e.getMonth()+1,t,2)}function wv(e,t){return zg(e.getMinutes(),t,2)}function Av(e,t){return zg(e.getSeconds(),t,2)}function xv(e){var t=e.getDay();return 0===t?7:t}function kv(e,t){return zg($m.count(Eg(e)-1,e),t,2)}function Sv(e){var t=e.getDay();return t>=4||0===t?Xm(e):Xm.ceil(e)}function Ev(e,t){return e=Sv(e),zg(Xm.count(Eg(e),e)+(4===Eg(e).getDay()),t,2)}function Tv(e){return e.getDay()}function Dv(e,t){return zg(Gm.count(Eg(e)-1,e),t,2)}function Cv(e,t){return zg(e.getFullYear()%100,t,2)}function Mv(e,t){return zg((e=Sv(e)).getFullYear()%100,t,2)}function Iv(e,t){return zg(e.getFullYear()%1e4,t,4)}function Ov(e,t){var n=e.getDay();return zg((e=n>=4||0===n?Xm(e):Xm.ceil(e)).getFullYear()%1e4,t,4)}function Lv(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+zg(t/60|0,"0",2)+zg(t%60,"0",2)}function Nv(e,t){return zg(e.getUTCDate(),t,2)}function Pv(e,t){return zg(e.getUTCHours(),t,2)}function Rv(e,t){return zg(e.getUTCHours()%12||12,t,2)}function jv(e,t){return zg(1+Hm.count(Dg(e),e),t,3)}function Fv(e,t){return zg(e.getUTCMilliseconds(),t,3)}function Bv(e,t){return Fv(e,t)+"000"}function Yv(e,t){return zg(e.getUTCMonth()+1,t,2)}function Vv(e,t){return zg(e.getUTCMinutes(),t,2)}function Hv(e,t){return zg(e.getUTCSeconds(),t,2)}function Uv(e){var t=e.getUTCDay();return 0===t?7:t}function zv(e,t){return zg(lg.count(Dg(e)-1,e),t,2)}function qv(e){var t=e.getUTCDay();return t>=4||0===t?hg(e):hg.ceil(e)}function Wv(e,t){return e=qv(e),zg(hg.count(Dg(e),e)+(4===Dg(e).getUTCDay()),t,2)}function $v(e){return e.getUTCDay()}function Gv(e,t){return zg(cg.count(Dg(e)-1,e),t,2)}function Kv(e,t){return zg(e.getUTCFullYear()%100,t,2)}function Zv(e,t){return zg((e=qv(e)).getUTCFullYear()%100,t,2)}function Xv(e,t){return zg(e.getUTCFullYear()%1e4,t,4)}function Qv(e,t){var n=e.getUTCDay();return zg((e=n>=4||0===n?hg(e):hg.ceil(e)).getUTCFullYear()%1e4,t,4)}function Jv(){return"+0000"}function ey(){return"%"}function ty(e){return+e}function ny(e){return Math.floor(+e/1e3)}function ry(t){return Bg=Fg(t),e.timeFormat=Bg.format,e.timeParse=Bg.parse,e.utcFormat=Bg.utcFormat,e.utcParse=Bg.utcParse,Bg}e.timeFormat=void 0,e.timeParse=void 0,e.utcFormat=void 0,e.utcParse=void 0,ry({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var iy="%Y-%m-%dT%H:%M:%S.%LZ",oy=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat(iy),sy=oy,ay=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse(iy),ly=ay;function cy(e){return new Date(e)}function uy(e){return e instanceof Date?+e:+new Date(+e)}function dy(e,t,n,r,i,o,s,a,l,c){var u=Jf(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),_=c("%Y");function w(e){return(l(e)<e?p:a(e)<e?f:s(e)<e?m:o(e)<e?g:r(e)<e?i(e)<e?v:y:n(e)<e?b:_)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,uy)):h().map(cy)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(nm(n,e)):u},u.copy=function(){return Xf(u,dy(e,t,n,r,i,o,s,a,l,c))},u}function hy(){var e,t,n,r,i,o=0,s=1,a=$f,l=!1;function c(t){return null==t||isNaN(t=+t)?i:a(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,a=e(n,r),c):[a(0),a(1)]}}return c.domain=function(i){return arguments.length?([o,s]=i,e=r(o=+o),t=r(s=+s),n=e===t?0:1/(t-e),c):[o,s]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(a=e,c):a},c.range=u(Ur),c.rangeRound=u(zr),c.unknown=function(e){return arguments.length?(i=e,c):i},function(i){return r=i,e=i(o),t=i(s),n=e===t?0:1/(t-e),c}}function py(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function fy(){var e=gm(hy());return e.copy=function(){return py(e,fy()).exponent(e.exponent())},Yf.apply(e,arguments)}function my(){var e,t,n,r,i,o,s,a=0,l=.5,c=1,u=1,d=$f,h=!1;function p(e){return isNaN(e=+e)?s:(e=.5+((e=+o(e))-t)*(u*e<u*t?r:i),d(h?Math.max(0,Math.min(1,e)):e))}function f(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,d=ci(e,[n,r,i]),p):[d(0),d(.5),d(1)]}}return p.domain=function(s){return arguments.length?([a,l,c]=s,e=o(a=+a),t=o(l=+l),n=o(c=+c),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,p):[a,l,c]},p.clamp=function(e){return arguments.length?(h=!!e,p):h},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=f(Ur),p.rangeRound=f(zr),p.unknown=function(e){return arguments.length?(s=e,p):s},function(s){return o=s,e=s(a),t=s(l),n=s(c),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function gy(){var e=gm(my());return e.copy=function(){return py(e,gy()).exponent(e.exponent())},Yf.apply(e,arguments)}function vy(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}var yy=vy("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),by=vy("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),_y=vy("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),wy=vy("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ay=vy("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),xy=vy("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),ky=vy("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Sy=vy("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Ey=vy("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ty=vy("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Dy=e=>Or(e[e.length-1]),Cy=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(vy),My=Dy(Cy),Iy=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(vy),Oy=Dy(Iy),Ly=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(vy),Ny=Dy(Ly),Py=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(vy),Ry=Dy(Py),jy=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(vy),Fy=Dy(jy),By=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(vy),Yy=Dy(By),Vy=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(vy),Hy=Dy(Vy),Uy=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(vy),zy=Dy(Uy),qy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(vy),Wy=Dy(qy),$y=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(vy),Gy=Dy($y),Ky=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(vy),Zy=Dy(Ky),Xy=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(vy),Qy=Dy(Xy),Jy=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(vy),eb=Dy(Jy),tb=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(vy),nb=Dy(tb),rb=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(vy),ib=Dy(rb),ob=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(vy),sb=Dy(ob),ab=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(vy),lb=Dy(ab),cb=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(vy),ub=Dy(cb),db=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(vy),hb=Dy(db),pb=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(vy),fb=Dy(pb),mb=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(vy),gb=Dy(mb),vb=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(vy),yb=Dy(vb),bb=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(vy),_b=Dy(bb),wb=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(vy),Ab=Dy(wb),xb=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(vy),kb=Dy(xb),Sb=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(vy),Eb=Dy(Sb),Tb=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(vy),Db=Dy(Tb),Cb=li(wr(300,.5,0),wr(-240,.5,1)),Mb=li(wr(-100,.75,.35),wr(80,1.5,.8)),Ib=li(wr(260,.75,.35),wr(80,1.5,.8)),Ob=wr(),Lb=Nn(),Nb=Math.PI/3,Pb=2*Math.PI/3;function Rb(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var jb=Rb(vy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Fb=Rb(vy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Bb=Rb(vy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Yb=Rb(vy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Vb(e){return function(){return e}}const Hb=Math.abs,Ub=Math.atan2,zb=Math.cos,qb=Math.max,Wb=Math.min,$b=Math.sin,Gb=Math.sqrt,Kb=1e-12,Zb=Math.PI,Xb=Zb/2,Qb=2*Zb;function Jb(e){return e>=1?Xb:e<=-1?-Xb:Math.asin(e)}function e_(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new xs(t)}function t_(e){return e.innerRadius}function n_(e){return e.outerRadius}function r_(e){return e.startAngle}function i_(e){return e.endAngle}function o_(e){return e&&e.padAngle}function s_(e,t,n,r,i,o,s){var a=e-n,l=t-r,c=(s?o:-o)/Gb(a*a+l*l),u=c*l,d=-c*a,h=e+u,p=t+d,f=n+u,m=r+d,g=(h+f)/2,v=(p+m)/2,y=f-h,b=m-p,_=y*y+b*b,w=i-o,A=h*m-f*p,x=(b<0?-1:1)*Gb(qb(0,w*w*_-A*A)),k=(A*b-y*x)/_,S=(-A*y-b*x)/_,E=(A*b+y*x)/_,T=(-A*y+b*x)/_,D=k-g,C=S-v,M=E-g,I=T-v;return D*D+C*C>M*M+I*I&&(k=E,S=T),{cx:k,cy:S,x01:-u,y01:-d,x11:k*(i/w-1),y11:S*(i/w-1)}}var a_=Array.prototype.slice;function l_(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function c_(e){this._context=e}function u_(e){return new c_(e)}function d_(e){return e[0]}function h_(e){return e[1]}function p_(e,t){var n=Vb(!0),r=null,i=u_,o=null,s=e_(a);function a(a){var l,c,u,d=(a=l_(a)).length,h=!1;for(null==r&&(o=i(u=s())),l=0;l<=d;++l)!(l<d&&n(c=a[l],l,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(c,l,a),+t(c,l,a));if(u)return o=null,u+""||null}return e="function"==typeof e?e:void 0===e?d_:Vb(e),t="function"==typeof t?t:void 0===t?h_:Vb(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:Vb(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Vb(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:Vb(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a}function f_(e,t,n){var r=null,i=Vb(!0),o=null,s=u_,a=null,l=e_(c);function c(c){var u,d,h,p,f,m=(c=l_(c)).length,g=!1,v=new Array(m),y=new Array(m);for(null==o&&(a=s(f=l())),u=0;u<=m;++u){if(!(u<m&&i(p=c[u],u,c))===g)if(g=!g)d=u,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),h=u-1;h>=d;--h)a.point(v[h],y[h]);a.lineEnd(),a.areaEnd()}g&&(v[u]=+e(p,u,c),y[u]=+t(p,u,c),a.point(r?+r(p,u,c):v[u],n?+n(p,u,c):y[u]))}if(f)return a=null,f+""||null}function u(){return p_().defined(i).curve(s).context(o)}return e="function"==typeof e?e:void 0===e?d_:Vb(+e),t="function"==typeof t?t:Vb(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?h_:Vb(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Vb(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Vb(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Vb(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Vb(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Vb(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Vb(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:Vb(!!e),c):i},c.curve=function(e){return arguments.length?(s=e,null!=o&&(a=s(o)),c):s},c.context=function(e){return arguments.length?(null==e?o=a=null:a=s(o=e),c):o},c}function m_(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function g_(e){return e}c_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var v_=b_(u_);function y_(e){this._curve=e}function b_(e){function t(t){return new y_(e(t))}return t._curve=e,t}function __(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(b_(e)):t()._curve},e}function w_(){return __(p_().curve(v_))}function A_(){var e=f_().curve(v_),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return __(n())},delete e.lineX0,e.lineEndAngle=function(){return __(r())},delete e.lineX1,e.lineInnerRadius=function(){return __(i())},delete e.lineY0,e.lineOuterRadius=function(){return __(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(b_(e)):t()._curve},e}function x_(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}y_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};class k_{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}class S_{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,t){if(e=+e,t=+t,0===this._point)this._point=1;else{const n=x_(this._x0,this._y0),r=x_(this._x0,this._y0=(this._y0+t)/2),i=x_(e,this._y0),o=x_(e,t);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...o)}this._x0=e,this._y0=t}}function E_(e){return new k_(e,!0)}function T_(e){return new k_(e,!1)}function D_(e){return new S_(e)}function C_(e){return e.source}function M_(e){return e.target}function I_(e){let t=C_,n=M_,r=d_,i=h_,o=null,s=null,a=e_(l);function l(){let l;const c=a_.call(arguments),u=t.apply(this,c),d=n.apply(this,c);if(null==o&&(s=e(l=a())),s.lineStart(),c[0]=u,s.point(+r.apply(this,c),+i.apply(this,c)),c[0]=d,s.point(+r.apply(this,c),+i.apply(this,c)),s.lineEnd(),l)return s=null,l+""||null}return l.source=function(e){return arguments.length?(t=e,l):t},l.target=function(e){return arguments.length?(n=e,l):n},l.x=function(e){return arguments.length?(r="function"==typeof e?e:Vb(+e),l):r},l.y=function(e){return arguments.length?(i="function"==typeof e?e:Vb(+e),l):i},l.context=function(t){return arguments.length?(null==t?o=s=null:s=e(o=t),l):o},l}const O_=Gb(3);var L_={draw(e,t){const n=.59436*Gb(t+Wb(t/28,.75)),r=n/2,i=r*O_;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},N_={draw(e,t){const n=Gb(t/Zb);e.moveTo(n,0),e.arc(0,0,n,0,Qb)}},P_={draw(e,t){const n=Gb(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};const R_=Gb(1/3),j_=2*R_;var F_={draw(e,t){const n=Gb(t/j_),r=n*R_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},B_={draw(e,t){const n=.62625*Gb(t);e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},Y_={draw(e,t){const n=.87559*Gb(t-Wb(t/7,2));e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},V_={draw(e,t){const n=Gb(t),r=-n/2;e.rect(r,r,n,n)}},H_={draw(e,t){const n=.4431*Gb(t);e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}};const U_=$b(Zb/10)/$b(7*Zb/10),z_=$b(Qb/10)*U_,q_=-zb(Qb/10)*U_;var W_={draw(e,t){const n=Gb(.8908130915292852*t),r=z_*n,i=q_*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){const o=Qb*t/5,s=zb(o),a=$b(o);e.lineTo(a*n,-s*n),e.lineTo(s*r-a*i,a*r+s*i)}e.closePath()}};const $_=Gb(3);var G_={draw(e,t){const n=-Gb(t/(3*$_));e.moveTo(0,2*n),e.lineTo(-$_*n,-n),e.lineTo($_*n,-n),e.closePath()}};const K_=Gb(3);var Z_={draw(e,t){const n=.6824*Gb(t),r=n/2,i=n*K_/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}};const X_=-.5,Q_=Gb(3)/2,J_=1/Gb(12),ew=3*(J_/2+1);var tw={draw(e,t){const n=Gb(t/ew),r=n/2,i=n*J_,o=r,s=n*J_+n,a=-o,l=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(a,l),e.lineTo(X_*r-Q_*i,Q_*r+X_*i),e.lineTo(X_*o-Q_*s,Q_*o+X_*s),e.lineTo(X_*a-Q_*l,Q_*a+X_*l),e.lineTo(X_*r+Q_*i,X_*i-Q_*r),e.lineTo(X_*o+Q_*s,X_*s-Q_*o),e.lineTo(X_*a+Q_*l,X_*l-Q_*a),e.closePath()}},nw={draw(e,t){const n=.6189*Gb(t-Wb(t/6,1.7));e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}};const rw=[N_,P_,F_,V_,W_,G_,tw],iw=[N_,Y_,nw,Z_,L_,H_,B_];function ow(){}function sw(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function aw(e){this._context=e}function lw(e){this._context=e}function cw(e){this._context=e}function uw(e,t){this._basis=new aw(e),this._beta=t}aw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:sw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:sw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},lw.prototype={areaStart:ow,areaEnd:ow,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:sw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},cw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:sw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},uw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],s=e[n]-i,a=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*s),this._beta*t[l]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var dw=function e(t){function n(e){return 1===t?new aw(e):new uw(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function hw(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function pw(e,t){this._context=e,this._k=(1-t)/6}pw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:hw(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:hw(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var fw=function e(t){function n(e){return new pw(e,t)}return n.tension=function(t){return e(+t)},n}(0);function mw(e,t){this._context=e,this._k=(1-t)/6}mw.prototype={areaStart:ow,areaEnd:ow,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:hw(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var gw=function e(t){function n(e){return new mw(e,t)}return n.tension=function(t){return e(+t)},n}(0);function vw(e,t){this._context=e,this._k=(1-t)/6}vw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:hw(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var yw=function e(t){function n(e){return new vw(e,t)}return n.tension=function(t){return e(+t)},n}(0);function bw(e,t,n){var r=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>Kb){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Kb){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,s,e._x2,e._y2)}function _w(e,t){this._context=e,this._alpha=t}_w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:bw(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ww=function e(t){function n(e){return t?new _w(e,t):new pw(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Aw(e,t){this._context=e,this._alpha=t}Aw.prototype={areaStart:ow,areaEnd:ow,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bw(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var xw=function e(t){function n(e){return t?new Aw(e,t):new mw(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function kw(e,t){this._context=e,this._alpha=t}kw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bw(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Sw=function e(t){function n(e){return t?new kw(e,t):new vw(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ew(e){this._context=e}function Tw(e){return e<0?-1:1}function Dw(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(Tw(o)+Tw(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Cw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Mw(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function Iw(e){this._context=e}function Ow(e){this._context=new Lw(e)}function Lw(e){this._context=e}function Nw(e){this._context=e}function Pw(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Rw(e,t){this._context=e,this._t=t}function jw(e,t){if((i=e.length)>1)for(var n,r,i,o=1,s=e[t[0]],a=s.length;o<i;++o)for(r=s,s=e[t[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Fw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Bw(e,t){return e[t]}function Yw(e){const t=[];return t.key=e,t}function Vw(e){var t=e.map(Hw);return Fw(e).sort(function(e,n){return t[e]-t[n]})}function Hw(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}function Uw(e){var t=e.map(zw);return Fw(e).sort(function(e,n){return t[e]-t[n]})}function zw(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}Ew.prototype={areaStart:ow,areaEnd:ow,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Iw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Mw(this,this._t0,Cw(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Mw(this,Cw(this,n=Dw(this,e,t)),n);break;default:Mw(this,this._t0,n=Dw(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Ow.prototype=Object.create(Iw.prototype)).point=function(e,t){Iw.prototype.point.call(this,t,e)},Lw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Nw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Pw(e),i=Pw(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Rw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var qw=e=>()=>e;function Ww(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function $w(e,t,n){this.k=e,this.x=t,this.y=n}$w.prototype={constructor:$w,scale:function(e){return 1===e?this:new $w(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new $w(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Gw=new $w(1,0,0);function Kw(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Gw;return e.__zoom}function Zw(e){e.stopImmediatePropagation()}function Xw(e){e.preventDefault(),e.stopImmediatePropagation()}function Qw(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Jw(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function eA(){return this.__zoom||Gw}function tA(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function nA(){return navigator.maxTouchPoints||"ontouchstart"in this}function rA(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}Kw.prototype=$w.prototype,e.Adder=k,e.Delaunay=Sa,e.FormatSpecifier=Ml,e.InternMap=S,e.InternSet=E,e.Node=Ep,e.Path=xs,e.Voronoi=ba,e.ZoomTransform=$w,e.active=function(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>1&&n.name===t)return new to([[e]],Po,t,+r);return null},e.arc=function(){var e=t_,t=n_,n=Vb(0),r=null,i=r_,o=i_,s=o_,a=null,l=e_(c);function c(){var c,u,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-Xb,f=o.apply(this,arguments)-Xb,m=Hb(f-p),g=f>p;if(a||(a=c=l()),h<d&&(u=h,h=d,d=u),h>Kb)if(m>Qb-Kb)a.moveTo(h*zb(p),h*$b(p)),a.arc(0,0,h,p,f,!g),d>Kb&&(a.moveTo(d*zb(f),d*$b(f)),a.arc(0,0,d,f,p,g));else{var v,y,b=p,_=f,w=p,A=f,x=m,k=m,S=s.apply(this,arguments)/2,E=S>Kb&&(r?+r.apply(this,arguments):Gb(d*d+h*h)),T=Wb(Hb(h-d)/2,+n.apply(this,arguments)),D=T,C=T;if(E>Kb){var M=Jb(E/d*$b(S)),I=Jb(E/h*$b(S));(x-=2*M)>Kb?(w+=M*=g?1:-1,A-=M):(x=0,w=A=(p+f)/2),(k-=2*I)>Kb?(b+=I*=g?1:-1,_-=I):(k=0,b=_=(p+f)/2)}var O=h*zb(b),L=h*$b(b),N=d*zb(A),P=d*$b(A);if(T>Kb){var R,j=h*zb(_),F=h*$b(_),B=d*zb(w),Y=d*$b(w);if(m<Zb)if(R=function(e,t,n,r,i,o,s,a){var l=n-e,c=r-t,u=s-i,d=a-o,h=d*l-u*c;if(!(h*h<Kb))return[e+(h=(u*(t-o)-d*(e-i))/h)*l,t+h*c]}(O,L,B,Y,j,F,N,P)){var V=O-R[0],H=L-R[1],U=j-R[0],z=F-R[1],q=1/$b(function(e){return e>1?0:e<-1?Zb:Math.acos(e)}((V*U+H*z)/(Gb(V*V+H*H)*Gb(U*U+z*z)))/2),W=Gb(R[0]*R[0]+R[1]*R[1]);D=Wb(T,(d-W)/(q-1)),C=Wb(T,(h-W)/(q+1))}else D=C=0}k>Kb?C>Kb?(v=s_(B,Y,O,L,h,C,g),y=s_(j,F,N,P,h,C,g),a.moveTo(v.cx+v.x01,v.cy+v.y01),C<T?a.arc(v.cx,v.cy,C,Ub(v.y01,v.x01),Ub(y.y01,y.x01),!g):(a.arc(v.cx,v.cy,C,Ub(v.y01,v.x01),Ub(v.y11,v.x11),!g),a.arc(0,0,h,Ub(v.cy+v.y11,v.cx+v.x11),Ub(y.cy+y.y11,y.cx+y.x11),!g),a.arc(y.cx,y.cy,C,Ub(y.y11,y.x11),Ub(y.y01,y.x01),!g))):(a.moveTo(O,L),a.arc(0,0,h,b,_,!g)):a.moveTo(O,L),d>Kb&&x>Kb?D>Kb?(v=s_(N,P,j,F,d,-D,g),y=s_(O,L,B,Y,d,-D,g),a.lineTo(v.cx+v.x01,v.cy+v.y01),D<T?a.arc(v.cx,v.cy,D,Ub(v.y01,v.x01),Ub(y.y01,y.x01),!g):(a.arc(v.cx,v.cy,D,Ub(v.y01,v.x01),Ub(v.y11,v.x11),!g),a.arc(0,0,d,Ub(v.cy+v.y11,v.cx+v.x11),Ub(y.cy+y.y11,y.cx+y.x11),g),a.arc(y.cx,y.cy,D,Ub(y.y11,y.x11),Ub(y.y01,y.x01),!g))):a.arc(0,0,d,A,w,g):a.lineTo(N,P)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Zb/2;return[zb(r)*n,$b(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Vb(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Vb(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Vb(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Vb(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Vb(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Vb(+e),c):o},c.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:Vb(+e),c):s},c.context=function(e){return arguments.length?(a=null==e?null:e,c):a},c},e.area=f_,e.areaRadial=A_,e.ascending=t,e.autoType=function(e){for(var t in e){var n,r,i=e[t].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Ga&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;e[t]=i}return e},e.axisBottom=function(e){return Ce(3,e)},e.axisLeft=function(e){return Ce(4,e)},e.axisRight=function(e){return Ce(2,e)},e.axisTop=function(e){return Ce(1,e)},e.bin=ee,e.bisect=u,e.bisectCenter=c,e.bisectLeft=l,e.bisectRight=a,e.bisector=r,e.blob=function(e,t){return fetch(e,t).then(Ka)},e.blur=function(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let n=e.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!t)return e;const r=g(t),i=e.slice();return r(e,i,0,n,1),r(i,e,0,n,1),r(e,i,0,n,1),e},e.blur2=d,e.blurImage=h,e.brush=function(){return as(Zo)},e.brushSelection=function(e){var t=e.__brush;return t?t.dim.output(t.selection):null},e.brushX=function(){return as(Go)},e.brushY=function(){return as(Ko)},e.buffer=function(e,t){return fetch(e,t).then(Za)},e.chord=function(){return vs(!1,!1)},e.chordDirected=function(){return vs(!0,!1)},e.chordTranspose=function(){return vs(!1,!0)},e.cluster=function(){var e=vp,t=1,n=1,r=!1;function i(i){var o,s=0;i.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(yp,0)/e.length}(n),t.y=function(e){return 1+e.reduce(bp,0)}(n)):(t.x=o?s+=e(t,o):0,t.y=0,o=t)});var a=function(e){for(var t;t=e.children;)e=t[0];return e}(i),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),c=a.x-e(a,l)/2,u=l.x+e(l,a)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},e.color=Mn,e.contourDensity=function(){var e=Gs,t=Ks,n=Zs,r=960,i=500,o=20,s=2,a=3*o,l=r+2*a>>s,c=i+2*a>>s,u=js(20);function h(r){var i=new Float32Array(l*c),u=Math.pow(2,-s),h=-1;for(const o of r){var p=(e(o,++h,r)+a)*u,f=(t(o,h,r)+a)*u,m=+n(o,h,r);if(m&&p>=0&&p<l&&f>=0&&f<c){var g=Math.floor(p),v=Math.floor(f),y=p-g-.5,b=f-v-.5;i[g+v*l]+=(1-y)*(1-b)*m,i[g+1+v*l]+=y*(1-b)*m,i[g+1+(v+1)*l]+=y*b*m,i[g+(v+1)*l]+=(1-y)*b*m}}return d({data:i,width:l,height:c},o*u),i}function p(e){var t=h(e),n=u(t),r=Math.pow(2,2*s);return Array.isArray(n)||(n=K(Number.MIN_VALUE,te(t)/r,n)),Us().size([l,c]).thresholds(n.map(e=>e*r))(t).map((e,t)=>(e.value=+n[t],f(e)))}function f(e){return e.coordinates.forEach(m),e}function m(e){e.forEach(g)}function g(e){e.forEach(v)}function v(e){e[0]=e[0]*Math.pow(2,s)-a,e[1]=e[1]*Math.pow(2,s)-a}function y(){return l=r+2*(a=3*o)>>s,c=i+2*a>>s,p}return p.contours=function(e){var t=h(e),n=Us().size([l,c]),r=Math.pow(2,2*s),i=e=>{e=+e;var i=f(n.contour(t,e*r));return i.value=e,i};return Object.defineProperty(i,"max",{get:()=>te(t)/r}),i},p.x=function(t){return arguments.length?(e="function"==typeof t?t:js(+t),p):e},p.y=function(e){return arguments.length?(t="function"==typeof e?e:js(+e),p):t},p.weight=function(e){return arguments.length?(n="function"==typeof e?e:js(+e),p):n},p.size=function(e){if(!arguments.length)return[r,i];var t=+e[0],n=+e[1];if(!(t>=0&&n>=0))throw new Error("invalid size");return r=t,i=n,y()},p.cellSize=function(e){if(!arguments.length)return 1<<s;if(!((e=+e)>=1))throw new Error("invalid cell size");return s=Math.floor(Math.log(e)/Math.LN2),y()},p.thresholds=function(e){return arguments.length?(u="function"==typeof e?e:Array.isArray(e)?js(Ps.call(e)):js(e),p):u},p.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return o=(Math.sqrt(4*e*e+1)-1)/2,y()},p},e.contours=Us,e.count=v,e.create=function(e){return $t(Ye(e).call(document.documentElement))},e.creator=Ye,e.cross=function(...e){const t="function"==typeof e[e.length-1]&&function(e){return t=>e(...t)}(e.pop()),n=(e=e.map(_)).map(y),r=e.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||n.some(b))return o;for(;;){o.push(i.map((t,n)=>e[n][t]));let s=r;for(;++i[s]===n[s];){if(0===s)return t?o.map(t):o;i[s--]=0}}},e.csv=el,e.csvFormat=Pa,e.csvFormatBody=Ra,e.csvFormatRow=Fa,e.csvFormatRows=ja,e.csvFormatValue=Ba,e.csvParse=La,e.csvParseRows=Na,e.cubehelix=wr,e.cumsum=function(e,t){var n=0,r=0;return Float64Array.from(e,void 0===t?e=>n+=+e||0:i=>n+=+t(i,r++,e)||0)},e.curveBasis=function(e){return new aw(e)},e.curveBasisClosed=function(e){return new lw(e)},e.curveBasisOpen=function(e){return new cw(e)},e.curveBumpX=E_,e.curveBumpY=T_,e.curveBundle=dw,e.curveCardinal=fw,e.curveCardinalClosed=gw,e.curveCardinalOpen=yw,e.curveCatmullRom=ww,e.curveCatmullRomClosed=xw,e.curveCatmullRomOpen=Sw,e.curveLinear=u_,e.curveLinearClosed=function(e){return new Ew(e)},e.curveMonotoneX=function(e){return new Iw(e)},e.curveMonotoneY=function(e){return new Ow(e)},e.curveNatural=function(e){return new Nw(e)},e.curveStep=function(e){return new Rw(e,.5)},e.curveStepAfter=function(e){return new Rw(e,1)},e.curveStepBefore=function(e){return new Rw(e,0)},e.descending=n,e.deviation=A,e.difference=function(e,...t){e=new E(e);for(const n of t)for(const t of n)e.delete(t);return e},e.disjoint=function(e,t){const n=t[Symbol.iterator](),r=new E;for(const t of e){if(r.has(t))return!1;let e,i;for(;({value:e,done:i}=n.next())&&!i;){if(Object.is(t,e))return!1;r.add(e)}}return!0},e.dispatch=Ie,e.drag=function(){var e,t,n,r,i=ln,o=cn,s=un,a=dn,l={},c=Ie("start","drag","end"),u=0,d=0;function h(e){e.on("mousedown.drag",p).filter(a).on("touchstart.drag",g).on("touchmove.drag",v,Jt).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(s,a){if(!r&&i.call(this,s,a)){var l=b(this,o.call(this,s,a),s,a,"mouse");l&&($t(s.view).on("mousemove.drag",f,en).on("mouseup.drag",m,en),rn(s.view),tn(s),n=!1,e=s.clientX,t=s.clientY,l("start",s))}}function f(r){if(nn(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>d}l.mouse("drag",r)}function m(e){$t(e.view).on("mousemove.drag mouseup.drag",null),on(e.view,n),nn(e),l.mouse("end",e)}function g(e,t){if(i.call(this,e,t)){var n,r,s=e.changedTouches,a=o.call(this,e,t),l=s.length;for(n=0;n<l;++n)(r=b(this,a,e,t,s[n].identifier,s[n]))&&(tn(e),r("start",e,s[n]))}}function v(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=l[r[t].identifier])&&(nn(e),n("drag",e,r[t]))}function y(e){var t,n,i=e.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),t=0;t<o;++t)(n=l[i[t].identifier])&&(tn(e),n("end",e,i[t]))}function b(e,t,n,r,i,o){var a,d,p,f=c.copy(),m=Qt(o||n,t);if(null!=(p=s.call(e,new an("beforestart",{sourceEvent:n,target:h,identifier:i,active:u,x:m[0],y:m[1],dx:0,dy:0,dispatch:f}),r)))return a=p.x-m[0]||0,d=p.y-m[1]||0,function n(o,s,c){var g,v=m;switch(o){case"start":l[i]=n,g=u++;break;case"end":delete l[i],--u;case"drag":m=Qt(c||s,t),g=u}f.call(o,e,new an(o,{sourceEvent:s,subject:p,target:h,identifier:i,active:g,x:m[0]+a,y:m[1]+d,dx:m[0]-v[0],dy:m[1]-v[1],dispatch:f}),r)}}return h.filter=function(e){return arguments.length?(i="function"==typeof e?e:sn(!!e),h):i},h.container=function(e){return arguments.length?(o="function"==typeof e?e:sn(e),h):o},h.subject=function(e){return arguments.length?(s="function"==typeof e?e:sn(e),h):s},h.touchable=function(e){return arguments.length?(a="function"==typeof e?e:sn(!!e),h):a},h.on=function(){var e=c.on.apply(c,arguments);return e===c?h:e},h.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,h):Math.sqrt(d)},h},e.dragDisable=rn,e.dragEnable=on,e.dsv=function(e,t,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=Ia(e);return Qa(t,n).then(function(e){return i.parse(e,r)})},e.dsvFormat=Ia,e.easeBack=Do,e.easeBackIn=Eo,e.easeBackInOut=Do,e.easeBackOut=To,e.easeBounce=ko,e.easeBounceIn=function(e){return 1-ko(1-e)},e.easeBounceInOut=function(e){return((e*=2)<=1?1-ko(1-e):ko(e-1)+1)/2},e.easeBounceOut=ko,e.easeCircle=go,e.easeCircleIn=function(e){return 1-Math.sqrt(1-e*e)},e.easeCircleInOut=go,e.easeCircleOut=function(e){return Math.sqrt(1- --e*e)},e.easeCubic=so,e.easeCubicIn=function(e){return e*e*e},e.easeCubicInOut=so,e.easeCubicOut=function(e){return--e*e*e+1},e.easeElastic=Io,e.easeElasticIn=Mo,e.easeElasticInOut=Oo,e.easeElasticOut=Io,e.easeExp=mo,e.easeExpIn=function(e){return fo(1-+e)},e.easeExpInOut=mo,e.easeExpOut=function(e){return 1-fo(e)},e.easeLinear=e=>+e,e.easePoly=co,e.easePolyIn=ao,e.easePolyInOut=co,e.easePolyOut=lo,e.easeQuad=oo,e.easeQuadIn=function(e){return e*e},e.easeQuadInOut=oo,e.easeQuadOut=function(e){return e*(2-e)},e.easeSin=po,e.easeSinIn=function(e){return 1==+e?1:1-Math.cos(e*ho)},e.easeSinInOut=po,e.easeSinOut=function(e){return Math.sin(e*ho)},e.every=function(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0},e.extent=x,e.fcumsum=function(e,t){const n=new k;let r=-1;return Float64Array.from(e,void 0===t?e=>n.add(+e||0):i=>n.add(+t(i,++r,e)||0))},e.filter=function(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of e)t(i,++r,e)&&n.push(i);return n},e.flatGroup=function(e,...t){return N(L(e,...t),t)},e.flatRollup=function(e,t,...n){return N(R(e,t,...n),n)},e.forceCenter=function(e,t){var n,r=1;function i(){var i,o,s=n.length,a=0,l=0;for(i=0;i<s;++i)a+=(o=n[i]).x,l+=o.y;for(a=(a/s-e)*r,l=(l/s-t)*r,i=0;i<s;++i)(o=n[i]).x-=a,o.y-=l}return null==e&&(e=0),null==t&&(t=0),i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i.strength=function(e){return arguments.length?(r=+e,i):r},i},e.forceCollide=function(e){var t,n,r,i=1,o=1;function s(){for(var e,s,l,c,u,d,h,p=t.length,f=0;f<o;++f)for(s=dl(t,vl,yl).visitAfter(a),e=0;e<p;++e)l=t[e],d=n[l.index],h=d*d,c=l.x+l.vx,u=l.y+l.vy,s.visit(m);function m(e,t,n,o,s){var a=e.data,p=e.r,f=d+p;if(!a)return t>c+f||o<c-f||n>u+f||s<u-f;if(a.index>l.index){var m=c-a.x-a.vx,g=u-a.y-a.vy,v=m*m+g*g;v<f*f&&(0===m&&(v+=(m=gl(r))*m),0===g&&(v+=(g=gl(r))*g),v=(f-(v=Math.sqrt(v)))/v*i,l.vx+=(m*=v)*(f=(p*=p)/(h+p)),l.vy+=(g*=v)*f,a.vx-=m*(f=1-f),a.vy-=g*f)}}}function a(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function l(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r<o;++r)i=t[r],n[i.index]=+e(i,r,t)}}return"function"!=typeof e&&(e=ml(null==e?1:+e)),s.initialize=function(e,n){t=e,r=n,l()},s.iterations=function(e){return arguments.length?(o=+e,s):o},s.strength=function(e){return arguments.length?(i=+e,s):i},s.radius=function(t){return arguments.length?(e="function"==typeof t?t:ml(+t),l(),s):e},s},e.forceLink=function(e){var t,n,r,i,o,s,a=bl,l=function(e){return 1/Math.min(i[e.source.index],i[e.target.index])},c=ml(30),u=1;function d(r){for(var i=0,a=e.length;i<u;++i)for(var l,c,d,h,p,f,m,g=0;g<a;++g)c=(l=e[g]).source,h=(d=l.target).x+d.vx-c.x-c.vx||gl(s),p=d.y+d.vy-c.y-c.vy||gl(s),h*=f=((f=Math.sqrt(h*h+p*p))-n[g])/f*r*t[g],p*=f,d.vx-=h*(m=o[g]),d.vy-=p*m,c.vx+=h*(m=1-m),c.vy+=p*m}function h(){if(r){var s,l,c=r.length,u=e.length,d=new Map(r.map((e,t)=>[a(e,t,r),e]));for(s=0,i=new Array(c);s<u;++s)(l=e[s]).index=s,"object"!=typeof l.source&&(l.source=_l(d,l.source)),"object"!=typeof l.target&&(l.target=_l(d,l.target)),i[l.source.index]=(i[l.source.index]||0)+1,i[l.target.index]=(i[l.target.index]||0)+1;for(s=0,o=new Array(u);s<u;++s)l=e[s],o[s]=i[l.source.index]/(i[l.source.index]+i[l.target.index]);t=new Array(u),p(),n=new Array(u),f()}}function p(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+l(e[n],n,e)}function f(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+c(e[t],t,e)}return null==e&&(e=[]),d.initialize=function(e,t){r=e,s=t,h()},d.links=function(t){return arguments.length?(e=t,h(),d):e},d.id=function(e){return arguments.length?(a=e,d):a},d.iterations=function(e){return arguments.length?(u=+e,d):u},d.strength=function(e){return arguments.length?(l="function"==typeof e?e:ml(+e),p(),d):l},d.distance=function(e){return arguments.length?(c="function"==typeof e?e:ml(+e),f(),d):c},d},e.forceManyBody=function(){var e,t,n,r,i,o=ml(-30),s=1,a=1/0,l=.81;function c(n){var i,o=e.length,s=dl(e,Al,xl).visitAfter(d);for(r=n,i=0;i<o;++i)t=e[i],s.visit(h)}function u(){if(e){var t,n,r=e.length;for(i=new Array(r),t=0;t<r;++t)n=e[t],i[n.index]=+o(n,t,e)}}function d(e){var t,n,r,o,s,a=0,l=0;if(e.length){for(r=o=s=0;s<4;++s)(t=e[s])&&(n=Math.abs(t.value))&&(a+=t.value,l+=n,r+=n*t.x,o+=n*t.y);e.x=r/l,e.y=o/l}else{(t=e).x=t.data.x,t.y=t.data.y;do{a+=i[t.data.index]}while(t=t.next)}e.value=a}function h(e,o,c,u){if(!e.value)return!0;var d=e.x-t.x,h=e.y-t.y,p=u-o,f=d*d+h*h;if(p*p/l<f)return f<a&&(0===d&&(f+=(d=gl(n))*d),0===h&&(f+=(h=gl(n))*h),f<s&&(f=Math.sqrt(s*f)),t.vx+=d*e.value*r/f,t.vy+=h*e.value*r/f),!0;if(!(e.length||f>=a)){(e.data!==t||e.next)&&(0===d&&(f+=(d=gl(n))*d),0===h&&(f+=(h=gl(n))*h),f<s&&(f=Math.sqrt(s*f)));do{e.data!==t&&(p=i[e.data.index]*r/f,t.vx+=d*p,t.vy+=h*p)}while(e=e.next)}}return c.initialize=function(t,r){e=t,n=r,u()},c.strength=function(e){return arguments.length?(o="function"==typeof e?e:ml(+e),u(),c):o},c.distanceMin=function(e){return arguments.length?(s=e*e,c):Math.sqrt(s)},c.distanceMax=function(e){return arguments.length?(a=e*e,c):Math.sqrt(a)},c.theta=function(e){return arguments.length?(l=e*e,c):Math.sqrt(l)},c},e.forceRadial=function(e,t,n){var r,i,o,s=ml(.1);function a(e){for(var s=0,a=r.length;s<a;++s){var l=r[s],c=l.x-t||1e-6,u=l.y-n||1e-6,d=Math.sqrt(c*c+u*u),h=(o[s]-d)*i[s]*e/d;l.vx+=c*h,l.vy+=u*h}}function l(){if(r){var t,n=r.length;for(i=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(r[t],t,r),i[t]=isNaN(o[t])?0:+s(r[t],t,r)}}return"function"!=typeof e&&(e=ml(+e)),null==t&&(t=0),null==n&&(n=0),a.initialize=function(e){r=e,l()},a.strength=function(e){return arguments.length?(s="function"==typeof e?e:ml(+e),l(),a):s},a.radius=function(t){return arguments.length?(e="function"==typeof t?t:ml(+t),l(),a):e},a.x=function(e){return arguments.length?(t=+e,a):t},a.y=function(e){return arguments.length?(n=+e,a):n},a},e.forceSimulation=function(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=xi(d),c=Ie("tick","end"),u=function(){let e=1;return()=>(e=(1664525*e+1013904223)%wl)/wl}();function d(){h(),c.call("tick",t),n<r&&(l.stop(),c.call("end",t))}function h(r){var l,c,u=e.length;void 0===r&&(r=1);for(var d=0;d<r;++d)for(n+=(o-n)*i,a.forEach(function(e){e(n)}),l=0;l<u;++l)null==(c=e[l]).fx?c.x+=c.vx*=s:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=s:(c.y=c.fy,c.vy=0);return t}function p(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var i=10*Math.sqrt(.5+n),o=n*kl;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function f(t){return t.initialize&&t.initialize(e,u),t}return null==e&&(e=[]),p(),t={tick:h,restart:function(){return l.restart(d),t},stop:function(){return l.stop(),t},nodes:function(n){return arguments.length?(e=n,p(),a.forEach(f),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(s=1-e,t):1-s},randomSource:function(e){return arguments.length?(u=e,a.forEach(f),t):u},force:function(e,n){return arguments.length>1?(null==n?a.delete(e):a.set(e,f(n)),t):a.get(e)},find:function(t,n,r){var i,o,s,a,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c<u;++c)(s=(i=t-(a=e[c]).x)*i+(o=n-a.y)*o)<r&&(l=a,r=s);return l},on:function(e,n){return arguments.length>1?(c.on(e,n),t):c.on(e)}}},e.forceX=function(e){var t,n,r,i=ml(.1);function o(e){for(var i,o=0,s=t.length;o<s;++o)(i=t[o]).vx+=(r[o]-i.x)*n[o]*e}function s(){if(t){var o,s=t.length;for(n=new Array(s),r=new Array(s),o=0;o<s;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=ml(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:ml(+e),s(),o):i},o.x=function(t){return arguments.length?(e="function"==typeof t?t:ml(+t),s(),o):e},o},e.forceY=function(e){var t,n,r,i=ml(.1);function o(e){for(var i,o=0,s=t.length;o<s;++o)(i=t[o]).vy+=(r[o]-i.y)*n[o]*e}function s(){if(t){var o,s=t.length;for(n=new Array(s),r=new Array(s),o=0;o<s;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=ml(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:ml(+e),s(),o):i},o.y=function(t){return arguments.length?(e="function"==typeof t?t:ml(+t),s(),o):e},o},e.formatDefaultLocale=Fl,e.formatLocale=jl,e.formatSpecifier=Cl,e.fsum=function(e,t){const n=new k;if(void 0===t)for(let t of e)(t=+t)&&n.add(t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n},e.geoAlbers=Kh,e.geoAlbersUsa=function(){var e,t,n,r,i,o,s=Kh(),a=Gh().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=Gh().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(e,t){o=[e,t]}};function u(e){var t=e[0],s=e[1];return o=null,n.point(t,s),o||(r.point(t,s),o)||(i.point(t,s),o)}function d(){return e=t=null,u}return u.invert=function(e){var t=s.scale(),n=s.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:s).invert(e)},u.stream=function(n){return e&&t===n?e:(r=[s.stream(t=n),a.stream(n),l.stream(n)],i=r.length,e={point:function(e,t){for(var n=-1;++n<i;)r[n].point(e,t)},sphere:function(){for(var e=-1;++e<i;)r[e].sphere()},lineStart:function(){for(var e=-1;++e<i;)r[e].lineStart()},lineEnd:function(){for(var e=-1;++e<i;)r[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<i;)r[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<i;)r[e].polygonEnd()}});var r,i},u.precision=function(e){return arguments.length?(s.precision(e),a.precision(e),l.precision(e),d()):s.precision()},u.scale=function(e){return arguments.length?(s.scale(e),a.scale(.35*e),l.scale(e),u.translate(s.translate())):s.scale()},u.translate=function(e){if(!arguments.length)return s.translate();var t=s.scale(),o=+e[0],u=+e[1];return n=s.translate(e).clipExtent([[o-.455*t,u-.238*t],[o+.455*t,u+.238*t]]).stream(c),r=a.translate([o-.307*t,u+.201*t]).clipExtent([[o-.425*t+Hl,u+.12*t+Hl],[o-.214*t-Hl,u+.234*t-Hl]]).stream(c),i=l.translate([o-.205*t,u+.212*t]).clipExtent([[o-.214*t+Hl,u+.166*t+Hl],[o-.115*t-Hl,u+.234*t-Hl]]).stream(c),d()},u.fitExtent=function(e,t){return Rh(u,e,t)},u.fitSize=function(e,t){return jh(u,e,t)},u.fitWidth=function(e,t){return Fh(u,e,t)},u.fitHeight=function(e,t){return Bh(u,e,t)},u.scale(1070)},e.geoArea=function(e){return Rc=new k,yc(e,jc),2*Rc},e.geoAzimuthalEqualArea=function(){return zh(Qh).scale(124.75).clipAngle(179.999)},e.geoAzimuthalEqualAreaRaw=Qh,e.geoAzimuthalEquidistant=function(){return zh(Jh).scale(79.4188).clipAngle(179.999)},e.geoAzimuthalEquidistantRaw=Jh,e.geoBounds=function(e){var t,n,r,i,o,s,a;if(Tc=Ec=-(kc=Sc=1/0),Lc=[],yc(e,du),n=Lc.length){for(Lc.sort(_u),t=1,o=[r=Lc[0]];t<n;++t)wu(r,(i=Lc[t])[0])||wu(r,i[1])?(bu(r[0],i[1])>bu(r[0],r[1])&&(r[1]=i[1]),bu(i[0],r[1])>bu(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(s=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)i=o[t],(a=bu(r[1],i[0]))>s&&(s=a,kc=i[0],Ec=r[1])}return Lc=Nc=null,kc===1/0||Sc===1/0?[[NaN,NaN],[NaN,NaN]]:[[kc,Sc],[Ec,Tc]]},e.geoCentroid=function(e){Kc=Zc=Xc=Qc=Jc=eu=tu=nu=0,ru=new k,iu=new k,ou=new k,yc(e,Au);var t=+ru,n=+iu,r=+ou,i=nc(t,n,r);return i<Ul&&(t=eu,n=tu,r=nu,Zc<Hl&&(t=Xc,n=Qc,r=Jc),(i=nc(t,n,r))<Ul)?[NaN,NaN]:[Ql(n,t)*Gl,uc(r/i)*Gl]},e.geoCircle=function(){var e,t,n=Lu([0,0]),r=Lu(90),i=Lu(6),o={point:function(n,r){e.push(n=t(n,r)),n[0]*=Gl,n[1]*=Gl}};function s(){var s=n.apply(this,arguments),a=r.apply(this,arguments)*Kl,l=i.apply(this,arguments)*Kl;return e=[],t=Ru(-s[0]*Kl,-s[1]*Kl,0).invert,Vu(o,a,l,1),s={type:"Polygon",coordinates:[e]},e=t=null,s}return s.center=function(e){return arguments.length?(n="function"==typeof e?e:Lu([+e[0],+e[1]]),s):n},s.radius=function(e){return arguments.length?(r="function"==typeof e?e:Lu(+e),s):r},s.precision=function(e){return arguments.length?(i="function"==typeof e?e:Lu(+e),s):i},s},e.geoClipAntimeridian=Ju,e.geoClipCircle=ed,e.geoClipExtent=function(){var e,t,n,r=0,i=0,o=960,s=500;return n={stream:function(n){return e&&t===n?e:e=ad(r,i,o,s)(t=n)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],s=+a[1][1],e=t=null,n):[[r,i],[o,s]]}}},e.geoClipRectangle=ad,e.geoConicConformal=function(){return Wh(rp).scale(109.5).parallels([30,30])},e.geoConicConformalRaw=rp,e.geoConicEqualArea=Gh,e.geoConicEqualAreaRaw=$h,e.geoConicEquidistant=function(){return Wh(op).scale(131.154).center([0,13.9389])},e.geoConicEquidistantRaw=op,e.geoContains=function(e,t){return(e&&gd.hasOwnProperty(e.type)?gd[e.type]:yd)(e,t)},e.geoDistance=md,e.geoEqualEarth=function(){return zh(dp).scale(177.158)},e.geoEqualEarthRaw=dp,e.geoEquirectangular=function(){return zh(ip).scale(152.63)},e.geoEquirectangularRaw=ip,e.geoGnomonic=function(){return zh(hp).scale(144.049).clipAngle(60)},e.geoGnomonicRaw=hp,e.geoGraticule=Ed,e.geoGraticule10=function(){return Ed()()},e.geoIdentity=function(){var e,t,n,r,i,o,s,a=1,l=0,c=0,u=1,d=1,h=0,p=null,f=1,m=1,g=Lh({point:function(e,t){var n=b([e,t]);this.stream.point(n[0],n[1])}}),v=Id;function y(){return f=a*u,m=a*d,o=s=null,b}function b(n){var r=n[0]*f,i=n[1]*m;if(h){var o=i*e-r*t;r=r*e+i*t,i=o}return[r+l,i+c]}return b.invert=function(n){var r=n[0]-l,i=n[1]-c;if(h){var o=i*e+r*t;r=r*e-i*t,i=o}return[r/f,i/m]},b.stream=function(e){return o&&s===e?o:o=g(v(s=e))},b.postclip=function(e){return arguments.length?(v=e,p=n=r=i=null,y()):v},b.clipExtent=function(e){return arguments.length?(v=null==e?(p=n=r=i=null,Id):ad(p=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),y()):null==p?null:[[p,n],[r,i]]},b.scale=function(e){return arguments.length?(a=+e,y()):a},b.translate=function(e){return arguments.length?(l=+e[0],c=+e[1],y()):[l,c]},b.angle=function(n){return arguments.length?(t=oc(h=n%360*Kl),e=Jl(h),y()):h*Gl},b.reflectX=function(e){return arguments.length?(u=e?-1:1,y()):u<0},b.reflectY=function(e){return arguments.length?(d=e?-1:1,y()):d<0},b.fitExtent=function(e,t){return Rh(b,e,t)},b.fitSize=function(e,t){return jh(b,e,t)},b.fitWidth=function(e,t){return Fh(b,e,t)},b.fitHeight=function(e,t){return Bh(b,e,t)},b},e.geoInterpolate=function(e,t){var n=e[0]*Kl,r=e[1]*Kl,i=t[0]*Kl,o=t[1]*Kl,s=Jl(r),a=oc(r),l=Jl(o),c=oc(o),u=s*Jl(n),d=s*oc(n),h=l*Jl(i),p=l*oc(i),f=2*uc(ac(dc(o-r)+s*l*dc(i-n))),m=oc(f),g=f?function(e){var t=oc(e*=f)/m,n=oc(f-e)/m,r=n*u+t*h,i=n*d+t*p,o=n*a+t*c;return[Ql(i,r)*Gl,Ql(o,ac(r*r+i*i))*Gl]}:function(){return[n*Gl,r*Gl]};return g.distance=f,g},e.geoLength=hd,e.geoMercator=function(){return tp(ep).scale(961/$l)},e.geoMercatorRaw=ep,e.geoNaturalEarth1=function(){return zh(pp).scale(175.295)},e.geoNaturalEarth1Raw=pp,e.geoOrthographic=function(){return zh(fp).scale(249.5).clipAngle(90+Hl)},e.geoOrthographicRaw=fp,e.geoPath=function(e,t){let n,r,i=3,o=4.5;function s(e){return e&&("function"==typeof o&&r.pointRadius(+o.apply(this,arguments)),yc(e,n(r))),r.result()}return s.area=function(e){return yc(e,n(Ud)),Ud.result()},s.measure=function(e){return yc(e,n(Eh)),Eh.result()},s.bounds=function(e){return yc(e,n(Kd)),Kd.result()},s.centroid=function(e){return yc(e,n(mh)),mh.result()},s.projection=function(t){return arguments.length?(n=null==t?(e=null,Id):(e=t).stream,s):e},s.context=function(e){return arguments.length?(r=null==e?(t=null,new Ih(i)):new gh(t=e),"function"!=typeof o&&r.pointRadius(o),s):t},s.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(r.pointRadius(+e),+e),s):o},s.digits=function(e){if(!arguments.length)return i;if(null==e)i=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);i=t}return null===t&&(r=new Ih(i)),s},s.projection(e).digits(i).context(t)},e.geoProjection=zh,e.geoProjectionMutator=qh,e.geoRotation=Yu,e.geoStereographic=function(){return zh(mp).scale(250).clipAngle(142)},e.geoStereographicRaw=mp,e.geoStream=yc,e.geoTransform=function(e){return{stream:Lh(e)}},e.geoTransverseMercator=function(){var e=tp(gp),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=gp,e.gray=function(e,t){return new ir(e,0,0,null==t?1:t)},e.greatest=ae,e.greatestIndex=function(e,n=t){if(1===n.length)return ne(e,n);let r,i=-1,o=-1;for(const t of e)++o,(i<0?0===n(t,t):n(t,r)>0)&&(r=t,i=o);return i},e.group=O,e.groupSort=function(e,n,r){return(2!==n.length?Y(P(e,n,r),([e,n],[r,i])=>t(n,i)||t(e,r)):Y(O(e,r),([e,r],[i,o])=>n(r,o)||t(e,i))).map(([e])=>e)},e.groups=L,e.hcl=ur,e.hierarchy=wp,e.histogram=ee,e.hsl=Un,e.html=ol,e.image=function(e,t){return new Promise(function(n,r){var i=new Image;for(var o in t)i[o]=t[o];i.onerror=r,i.onload=function(){n(i)},i.src=e})},e.index=function(e,...t){return F(e,I,j,t)},e.indexes=function(e,...t){return F(e,Array.from,j,t)},e.interpolate=Ur,e.interpolateArray=function(e,t){return(Pr(t)?Nr:Rr)(e,t)},e.interpolateBasis=kr,e.interpolateBasisClosed=Sr,e.interpolateBlues=yb,e.interpolateBrBG=My,e.interpolateBuGn=Gy,e.interpolateBuPu=Zy,e.interpolateCividis=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},e.interpolateCool=Ib,e.interpolateCubehelix=ai,e.interpolateCubehelixDefault=Cb,e.interpolateCubehelixLong=li,e.interpolateDate=jr,e.interpolateDiscrete=function(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}},e.interpolateGnBu=Qy,e.interpolateGreens=_b,e.interpolateGreys=Ab,e.interpolateHcl=ii,e.interpolateHclLong=oi,e.interpolateHsl=ti,e.interpolateHslLong=ni,e.interpolateHue=function(e,t){var n=Dr(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}},e.interpolateInferno=Bb,e.interpolateLab=function(e,t){var n=Cr((e=rr(e)).l,(t=rr(t)).l),r=Cr(e.a,t.a),i=Cr(e.b,t.b),o=Cr(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}},e.interpolateMagma=Fb,e.interpolateNumber=Fr,e.interpolateNumberArray=Nr,e.interpolateObject=Br,e.interpolateOrRd=eb,e.interpolateOranges=Db,e.interpolatePRGn=Oy,e.interpolatePiYG=Ny,e.interpolatePlasma=Yb,e.interpolatePuBu=ib,e.interpolatePuBuGn=nb,e.interpolatePuOr=Ry,e.interpolatePuRd=sb,e.interpolatePurples=kb,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ob.h=360*e-100,Ob.s=1.5-1.5*t,Ob.l=.8-.9*t,Ob+""},e.interpolateRdBu=Fy,e.interpolateRdGy=Yy,e.interpolateRdPu=lb,e.interpolateRdYlBu=Hy,e.interpolateRdYlGn=zy,e.interpolateReds=Eb,e.interpolateRgb=Mr,e.interpolateRgbBasis=Or,e.interpolateRgbBasisClosed=Lr,e.interpolateRound=zr,e.interpolateSinebow=function(e){var t;return e=(.5-e)*Math.PI,Lb.r=255*(t=Math.sin(e))*t,Lb.g=255*(t=Math.sin(e+Nb))*t,Lb.b=255*(t=Math.sin(e+Pb))*t,Lb+""},e.interpolateSpectral=Wy,e.interpolateString=Hr,e.interpolateTransformCss=Zr,e.interpolateTransformSvg=Xr,e.interpolateTurbo=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},e.interpolateViridis=jb,e.interpolateWarm=Mb,e.interpolateYlGn=hb,e.interpolateYlGnBu=ub,e.interpolateYlOrBr=fb,e.interpolateYlOrRd=gb,e.interpolateZoom=Jr,e.interrupt=Pi,e.intersection=function(e,...t){e=new E(e),t=t.map(be);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e},e.interval=function(e,t,n){var r=new Ai,i=t;return null==t?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(e,t,n){t=+t,n=null==n?_i():+n,r._restart(function o(s){s+=i,r._restart(o,i+=t,n),e(s)},t,n)},r.restart(e,t,n),r)},e.isoFormat=sy,e.isoParse=ly,e.json=function(e,t){return fetch(e,t).then(nl)},e.lab=rr,e.lch=function(e,t,n,r){return 1===arguments.length?cr(e):new dr(n,t,e,null==r?1:r)},e.least=function(e,n=t){let r,i=!1;if(1===n.length){let o;for(const s of e){const e=n(s);(i?t(e,o)<0:0===t(e,e))&&(r=s,o=e,i=!0)}}else for(const t of e)(i?n(t,r)<0:0===n(t,t))&&(r=t,i=!0);return r},e.leastIndex=fe,e.line=p_,e.lineRadial=w_,e.link=I_,e.linkHorizontal=function(){return I_(E_)},e.linkRadial=function(){const e=I_(D_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.linkVertical=function(){return I_(T_)},e.local=Kt,e.map=function(e,t){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof t)throw new TypeError("mapper is not a function");return Array.from(e,(n,r)=>t(n,r,e))},e.matcher=We,e.max=te,e.maxIndex=ne,e.mean=function(e,t){let n=0,r=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(++n,r+=t);else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n},e.median=function(e,t){return le(e,.5,t)},e.medianIndex=function(e,t){return ue(e,.5,t)},e.merge=de,e.min=re,e.minIndex=ie,e.mode=function(e,t){const n=new S;if(void 0===t)for(let t of e)null!=t&&t>=t&&n.set(t,(n.get(t)||0)+1);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&i>=i&&n.set(i,(n.get(i)||0)+1)}let r,i=0;for(const[e,t]of n)t>i&&(i=t,r=e);return r},e.namespace=je,e.namespaces=Re,e.nice=Q,e.now=_i,e.pack=function(){var e=null,t=1,n=1,r=Cp;function i(i){const o=Op();return i.x=t/2,i.y=n/2,e?i.eachBefore($p(e)).eachAfter(Gp(r,.5,o)).eachBefore(Kp(1)):i.eachBefore($p(Wp)).eachAfter(Gp(Cp,1,o)).eachAfter(Gp(r,i.r/Math.min(t,n),o)).eachBefore(Kp(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=Tp(t),i):e},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"==typeof e?e:Mp(+e),i):r},i},e.packEnclose=function(e){return Lp(e,Op())},e.packSiblings=function(e){return qp(e,Op()),e},e.pairs=function(e,t=he){const n=[];let r,i=!1;for(const o of e)i&&n.push(t(r,o)),r=o,i=!0;return n},e.partition=function(){var e=1,t=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/o,i.eachBefore(function(e,t){return function(r){r.children&&Xp(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var i=r.x0,o=r.y0,s=r.x1-n,a=r.y1-n;s<i&&(i=s=(i+s)/2),a<o&&(o=a=(o+a)/2),r.x0=i,r.y0=o,r.x1=s,r.y1=a}}(t,o)),r&&i.eachBefore(Zp),i}return i.round=function(e){return arguments.length?(r=!!e,i):r},i.size=function(n){return arguments.length?(e=+n[0],t=+n[1],i):[e,t]},i.padding=function(e){return arguments.length?(n=+e,i):n},i},e.path=ks,e.pathRound=function(e=3){return new xs(+e)},e.permute=B,e.pie=function(){var e=g_,t=m_,n=null,r=Vb(0),i=Vb(Qb),o=Vb(0);function s(s){var a,l,c,u,d,h=(s=l_(s)).length,p=0,f=new Array(h),m=new Array(h),g=+r.apply(this,arguments),v=Math.min(Qb,Math.max(-Qb,i.apply(this,arguments)-g)),y=Math.min(Math.abs(v)/h,o.apply(this,arguments)),b=y*(v<0?-1:1);for(a=0;a<h;++a)(d=m[f[a]=a]=+e(s[a],a,s))>0&&(p+=d);for(null!=t?f.sort(function(e,n){return t(m[e],m[n])}):null!=n&&f.sort(function(e,t){return n(s[e],s[t])}),a=0,c=p?(v-h*b)/p:0;a<h;++a,g=u)l=f[a],u=g+((d=m[l])>0?d*c:0)+b,m[l]={data:s[l],index:a,value:d,startAngle:g,endAngle:u,padAngle:y};return m}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:Vb(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Vb(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Vb(+e),s):i},s.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Vb(+e),s):o},s},e.piecewise=ci,e.pointRadial=x_,e.pointer=Qt,e.pointers=function(e,t){return e.target&&(e=Xt(e),void 0===t&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,e=>Qt(e,t))},e.polygonArea=function(e){for(var t,n=-1,r=e.length,i=e[r-1],o=0;++n<r;)t=i,i=e[n],o+=t[1]*i[0]-t[0]*i[1];return o/2},e.polygonCentroid=function(e){for(var t,n,r=-1,i=e.length,o=0,s=0,a=e[i-1],l=0;++r<i;)t=a,a=e[r],l+=n=t[0]*a[1]-a[0]*t[1],o+=(t[0]+a[0])*n,s+=(t[1]+a[1])*n;return[o/(l*=3),s/l]},e.polygonContains=function(e,t){for(var n,r,i=e.length,o=e[i-1],s=t[0],a=t[1],l=o[0],c=o[1],u=!1,d=0;d<i;++d)n=(o=e[d])[0],(r=o[1])>a!=c>a&&s<(l-n)*(a-r)/(c-r)+n&&(u=!u),l=n,c=r;return u},e.polygonHull=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(yf),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=bf(r),s=bf(i),a=s[0]===o[0],l=s[s.length-1]===o[o.length-1],c=[];for(t=o.length-1;t>=0;--t)c.push(e[r[o[t]][2]]);for(t=+a;t<s.length-l;++t)c.push(e[r[s[t]][2]]);return c},e.polygonLength=function(e){for(var t,n,r=-1,i=e.length,o=e[i-1],s=o[0],a=o[1],l=0;++r<i;)t=s,n=a,t-=s=(o=e[r])[0],n-=a=o[1],l+=Math.hypot(t,n);return l},e.precisionFixed=Bl,e.precisionPrefix=Yl,e.precisionRound=Vl,e.quadtree=dl,e.quantile=le,e.quantileIndex=ue,e.quantileSorted=ce,e.quantize=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n},e.quickselect=oe,e.radialArea=A_,e.radialLine=w_,e.randomBates=Ef,e.randomBernoulli=Cf,e.randomBeta=Of,e.randomBinomial=Lf,e.randomCauchy=Pf,e.randomExponential=Tf,e.randomGamma=If,e.randomGeometric=Mf,e.randomInt=Af,e.randomIrwinHall=Sf,e.randomLcg=function(e=Math.random()){let t=0|(0<=e&&e<1?e/Ff:Math.abs(e));return()=>(t=1664525*t+1013904223|0,Ff*(t>>>0))},e.randomLogNormal=kf,e.randomLogistic=Rf,e.randomNormal=xf,e.randomPareto=Df,e.randomPoisson=jf,e.randomUniform=wf,e.randomWeibull=Nf,e.range=pe,e.rank=function(e,n=t){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");let r=Array.from(e);const i=new Float64Array(r.length);2!==n.length&&(r=r.map(n),n=t);const o=(e,t)=>n(r[e],r[t]);let s,a;return(e=Uint32Array.from(r,(e,t)=>t)).sort(n===t?(e,t)=>H(r[e],r[t]):V(o)),e.forEach((e,t)=>{const n=o(e,void 0===s?e:s);n>=0?((void 0===s||n>0)&&(s=e,a=t),i[e]=a):i[e]=NaN}),i},e.reduce=function(e,t,n){if("function"!=typeof t)throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let i,o,s=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++s}for(;({done:i,value:o}=r.next()),!i;)n=t(n,o,++s,e);return n},e.reverse=function(e){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(e).reverse()},e.rgb=Nn,e.ribbon=function(){return Ns()},e.ribbonArrow=function(){return Ns(Ls)},e.rollup=P,e.rollups=R,e.scaleBand=Uf,e.scaleDiverging=function e(){var t=tm(my()($f));return t.copy=function(){return py(t,e())},Yf.apply(t,arguments)},e.scaleDivergingLog=function e(){var t=cm(my()).domain([.1,1,10]);return t.copy=function(){return py(t,e()).base(t.base())},Yf.apply(t,arguments)},e.scaleDivergingPow=gy,e.scaleDivergingSqrt=function(){return gy.apply(null,arguments).exponent(.5)},e.scaleDivergingSymlog=function e(){var t=hm(my());return t.copy=function(){return py(t,e()).constant(t.constant())},Yf.apply(t,arguments)},e.scaleIdentity=function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,qf),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,qf):[0,1],tm(r)},e.scaleImplicit=Vf,e.scaleLinear=function e(){var t=Jf();return t.copy=function(){return Xf(t,e())},Bf.apply(t,arguments),tm(t)},e.scaleLog=function e(){const t=cm(Qf()).domain([1,10]);return t.copy=()=>Xf(t,e()).base(t.base()),Bf.apply(t,arguments),t},e.scaleOrdinal=Hf,e.scalePoint=function(){return zf(Uf.apply(null,arguments).paddingInner(1))},e.scalePow=vm,e.scaleQuantile=function e(){var n,r=[],i=[],o=[];function s(){var e=0,t=Math.max(1,i.length);for(o=new Array(t-1);++e<t;)o[e-1]=ce(r,e/t);return a}function a(e){return null==e||isNaN(e=+e)?n:i[u(o,e)]}return a.invertExtent=function(e){var t=i.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:r[0],t<o.length?o[t]:r[r.length-1]]},a.domain=function(e){if(!arguments.length)return r.slice();r=[];for(let t of e)null==t||isNaN(t=+t)||r.push(t);return r.sort(t),s()},a.range=function(e){return arguments.length?(i=Array.from(e),s()):i.slice()},a.unknown=function(e){return arguments.length?(n=e,a):n},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(r).range(i).unknown(n)},Bf.apply(a,arguments)},e.scaleQuantize=function e(){var t,n=0,r=1,i=1,o=[.5],s=[0,1];function a(e){return null!=e&&e<=e?s[u(o,e,0,i)]:t}function l(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+1);return a}return a.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,l()):[n,r]},a.range=function(e){return arguments.length?(i=(s=Array.from(e)).length-1,l()):s.slice()},a.invertExtent=function(e){var t=s.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return e().domain([n,r]).range(s).unknown(t)},Bf.apply(tm(a),arguments)},e.scaleRadial=function e(){var t,n=Jf(),r=[0,1],i=!1;function o(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(e){return n.invert(ym(e))},o.domain=function(e){return arguments.length?(n.domain(e),o):n.domain()},o.range=function(e){return arguments.length?(n.range((r=Array.from(e,qf)).map(ym)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(n.clamp(e),o):n.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(n.domain(),r).round(i).clamp(n.clamp()).unknown(t)},Bf.apply(o,arguments),tm(o)},e.scaleSequential=function e(){var t=tm(hy()($f));return t.copy=function(){return py(t,e())},Yf.apply(t,arguments)},e.scaleSequentialLog=function e(){var t=cm(hy()).domain([1,10]);return t.copy=function(){return py(t,e()).base(t.base())},Yf.apply(t,arguments)},e.scaleSequentialPow=fy,e.scaleSequentialQuantile=function e(){var n=[],r=$f;function i(e){if(null!=e&&!isNaN(e=+e))return r((u(n,e,1)-1)/(n.length-1))}return i.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(t),i},i.interpolator=function(e){return arguments.length?(r=e,i):r},i.range=function(){return n.map((e,t)=>r(t/(n.length-1)))},i.quantiles=function(e){return Array.from({length:e+1},(t,r)=>le(n,r/e))},i.copy=function(){return e(r).domain(n)},Yf.apply(i,arguments)},e.scaleSequentialSqrt=function(){return fy.apply(null,arguments).exponent(.5)},e.scaleSequentialSymlog=function e(){var t=hm(hy());return t.copy=function(){return py(t,e()).constant(t.constant())},Yf.apply(t,arguments)},e.scaleSqrt=function(){return vm.apply(null,arguments).exponent(.5)},e.scaleSymlog=function e(){var t=hm(Qf());return t.copy=function(){return Xf(t,e()).constant(t.constant())},Bf.apply(t,arguments)},e.scaleThreshold=function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[u(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},Bf.apply(o,arguments)},e.scaleTime=function(){return Bf.apply(dy(Lg,Ng,Eg,Ag,$m,Ym,Rm,Om,Mm,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},e.scaleUtc=function(){return Bf.apply(dy(Ig,Og,Dg,kg,lg,Hm,Fm,Nm,Mm,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},e.scan=function(e,t){const n=fe(e,t);return n<0?void 0:n},e.schemeAccent=by,e.schemeBlues=vb,e.schemeBrBG=Cy,e.schemeBuGn=$y,e.schemeBuPu=Ky,e.schemeCategory10=yy,e.schemeDark2=_y,e.schemeGnBu=Xy,e.schemeGreens=bb,e.schemeGreys=wb,e.schemeOrRd=Jy,e.schemeOranges=Tb,e.schemePRGn=Iy,e.schemePaired=wy,e.schemePastel1=Ay,e.schemePastel2=xy,e.schemePiYG=Ly,e.schemePuBu=rb,e.schemePuBuGn=tb,e.schemePuOr=Py,e.schemePuRd=ob,e.schemePurples=xb,e.schemeRdBu=jy,e.schemeRdGy=By,e.schemeRdPu=ab,e.schemeRdYlBu=Vy,e.schemeRdYlGn=Uy,e.schemeReds=Sb,e.schemeSet1=ky,e.schemeSet2=Sy,e.schemeSet3=Ey,e.schemeSpectral=qy,e.schemeTableau10=Ty,e.schemeYlGn=db,e.schemeYlGnBu=cb,e.schemeYlOrBr=pb,e.schemeYlOrRd=mb,e.select=$t,e.selectAll=function(e){return"string"==typeof e?new qt([document.querySelectorAll(e)],[document.documentElement]):new qt([Ue(e)],zt)},e.selection=Wt,e.selector=He,e.selectorAll=qe,e.shuffle=me,e.shuffler=ge,e.some=function(e,t){if("function"!=typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1},e.sort=Y,e.stack=function(){var e=Vb([]),t=Fw,n=jw,r=Bw;function i(i){var o,s,a=Array.from(e.apply(this,arguments),Yw),l=a.length,c=-1;for(const e of i)for(o=0,++c;o<l;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,s=l_(t(a));o<l;++o)a[s[o]].index=o;return n(a,s),a}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Vb(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Vb(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?Fw:"function"==typeof e?e:Vb(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?jw:e,i):n},i},e.stackOffsetDiverging=function(e,t){if((a=e.length)>0)for(var n,r,i,o,s,a,l=0,c=e[t[0]].length;l<c;++l)for(o=s=0,n=0;n<a;++n)(i=(r=e[t[n]][l])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=s,r[0]=s+=i):(r[0]=0,r[1]=i)},e.stackOffsetExpand=function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,s=e[0].length;o<s;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}jw(e,t)}},e.stackOffsetNone=jw,e.stackOffsetSilhouette=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var s=0,a=0;s<n;++s)a+=e[s][r][1]||0;i[r][1]+=i[r][0]=-a/2}jw(e,t)}},e.stackOffsetWiggle=function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,s=1;s<r;++s){for(var a=0,l=0,c=0;a<i;++a){for(var u=e[t[a]],d=u[s][1]||0,h=(d-(u[s-1][1]||0))/2,p=0;p<a;++p){var f=e[t[p]];h+=(f[s][1]||0)-(f[s-1][1]||0)}l+=d,c+=h*d}n[s-1][1]+=n[s-1][0]=o,l&&(o-=c/l)}n[s-1][1]+=n[s-1][0]=o,jw(e,t)}},e.stackOrderAppearance=Vw,e.stackOrderAscending=Uw,e.stackOrderDescending=function(e){return Uw(e).reverse()},e.stackOrderInsideOut=function(e){var t,n,r=e.length,i=e.map(zw),o=Vw(e),s=0,a=0,l=[],c=[];for(t=0;t<r;++t)n=o[t],s<a?(s+=i[n],l.push(n)):(a+=i[n],c.push(n));return c.reverse().concat(l)},e.stackOrderNone=Fw,e.stackOrderReverse=function(e){return Fw(e).reverse()},e.stratify=function(){var e,t=tf,n=nf;function r(r){var i,o,s,a,l,c,u,d,h=Array.from(r),p=t,f=n,m=new Map;if(null!=e){const t=h.map((t,n)=>function(e){let t=(e=`${e}`).length;return of(e,t-1)&&!of(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r))),n=t.map(rf),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(rf(e)),h.push(ef));p=(e,n)=>t[n],f=(e,t)=>n[t]}for(s=0,i=h.length;s<i;++s)o=h[s],c=h[s]=new Ep(o),null!=(u=p(o,s,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?Jp:c)),null!=(u=f(o,s,r))&&(u+="")&&(c.parent=u);for(s=0;s<i;++s)if(u=(c=h[s]).parent){if(!(l=m.get(u)))throw new Error("missing: "+u);if(l===Jp)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(a)throw new Error("multiple roots");a=c}if(!a)throw new Error("no root");if(null!=e){for(;a.data===ef&&1===a.children.length;)a=a.children[0],--i;for(let e=h.length-1;e>=0&&(c=h[e]).data===ef;--e)c.data=null}if(a.parent=Qp,a.eachBefore(function(e){e.depth=e.parent.depth+1,--i}).eachBefore(Sp),a.parent=null,i>0)throw new Error("cycle");return a}return r.id=function(e){return arguments.length?(t=Tp(e),r):t},r.parentId=function(e){return arguments.length?(n=Tp(e),r):n},r.path=function(t){return arguments.length?(e=Tp(t),r):e},r},e.style=mt,e.subset=function(e,t){return _e(t,e)},e.sum=function(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n},e.superset=_e,e.svg=sl,e.symbol=function(e,t){let n=null,r=e_(i);function i(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return e="function"==typeof e?e:Vb(e||N_),t="function"==typeof t?t:Vb(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:Vb(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:Vb(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i},e.symbolAsterisk=L_,e.symbolCircle=N_,e.symbolCross=P_,e.symbolDiamond=F_,e.symbolDiamond2=B_,e.symbolPlus=Y_,e.symbolSquare=V_,e.symbolSquare2=H_,e.symbolStar=W_,e.symbolTimes=nw,e.symbolTriangle=G_,e.symbolTriangle2=Z_,e.symbolWye=tw,e.symbolX=nw,e.symbols=rw,e.symbolsFill=rw,e.symbolsStroke=iw,e.text=Qa,e.thresholdFreedmanDiaconis=function(e,t,n){const r=v(e),i=le(e,.75)-le(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1},e.thresholdScott=function(e,t,n){const r=v(e),i=A(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1},e.thresholdSturges=J,e.tickFormat=em,e.tickIncrement=Z,e.tickStep=X,e.ticks=K,e.timeDay=Ym,e.timeDays=Vm,e.timeFormatDefaultLocale=ry,e.timeFormatLocale=Fg,e.timeFriday=Qm,e.timeFridays=og,e.timeHour=Rm,e.timeHours=jm,e.timeInterval=wm,e.timeMillisecond=Am,e.timeMilliseconds=xm,e.timeMinute=Om,e.timeMinutes=Lm,e.timeMonday=Gm,e.timeMondays=tg,e.timeMonth=Ag,e.timeMonths=xg,e.timeSaturday=Jm,e.timeSaturdays=sg,e.timeSecond=Mm,e.timeSeconds=Im,e.timeSunday=$m,e.timeSundays=eg,e.timeThursday=Xm,e.timeThursdays=ig,e.timeTickInterval=Ng,e.timeTicks=Lg,e.timeTuesday=Km,e.timeTuesdays=ng,e.timeWednesday=Zm,e.timeWednesdays=rg,e.timeWeek=$m,e.timeWeeks=eg,e.timeYear=Eg,e.timeYears=Tg,e.timeout=Di,e.timer=xi,e.timerFlush=ki,e.transition=no,e.transpose=ve,e.tree=function(){var e=sf,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,s=new df(e,0),a=[s];t=a.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(n=t.children[i]=new df(r[i],i)),n.parent=t;return(s.parent=new df(null,0)).children=[s],s}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(s),r)i.eachBefore(a);else{var c=i,u=i,d=i;i.eachBefore(function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)});var h=c===u?1:e(c,u)/2,p=h-c.x,f=t/(u.x+h+p),m=n/(d.depth||1);i.eachBefore(function(e){e.x=(e.x+p)*f,e.y=e.depth*m})}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,s=t,a=n,l=o.parent.children[0],c=o.m,u=s.m,d=a.m,h=l.m;a=lf(a),o=af(o),a&&o;)l=af(l),(s=lf(s)).a=t,(i=a.z+d-o.z-c+e(a._,o._))>0&&(cf(uf(a,t,r),t,i),c+=i,u+=i),d+=a.m,c+=o.m,h+=l.m,u+=s.m;a&&!lf(s)&&(s.t=a,s.m+=d-u),o&&!af(l)&&(l.t=o,l.m+=c-h,r=t)}return r}(t,i,t.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function a(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},e.treemap=function(){var e=mf,t=!1,n=1,r=1,i=[0],o=Cp,s=Cp,a=Cp,l=Cp,c=Cp;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(Zp),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,h=t.y1-n;d<r&&(r=d=(r+d)/2),h<u&&(u=h=(u+h)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=h,t.children&&(n=i[t.depth+1]=o(t)/2,r+=c(t)-n,u+=s(t)-n,(d-=a(t)-n)<r&&(r=d=(r+d)/2),(h-=l(t)-n)<u&&(u=h=(u+h)/2),e(t,r,u,d,h))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=Dp(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:Mp(+e),u):o},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:Mp(+e),u):s},u.paddingRight=function(e){return arguments.length?(a="function"==typeof e?e:Mp(+e),u):a},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:Mp(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:Mp(+e),u):c},u},e.treemapBinary=function(e,t,n,r,i){var o,s,a=e.children,l=a.length,c=new Array(l+1);for(c[0]=s=o=0;o<l;++o)c[o+1]=s+=a[o].value;!function e(t,n,r,i,o,s,l){if(t>=n-1){var u=a[t];return u.x0=i,u.y0=o,u.x1=s,void(u.y1=l)}for(var d=c[t],h=r/2+d,p=t+1,f=n-1;p<f;){var m=p+f>>>1;c[m]<h?p=m+1:f=m}h-c[p-1]<c[p]-h&&t+1<p&&--p;var g=c[p]-d,v=r-g;if(s-i>l-o){var y=r?(i*v+s*g)/r:s;e(t,p,g,i,o,y,l),e(p,n,v,y,o,s,l)}else{var b=r?(o*v+l*g)/r:l;e(t,p,g,i,o,s,b),e(p,n,v,i,b,s,l)}}(0,l,e.value,t,n,r,i)},e.treemapDice=Xp,e.treemapResquarify=gf,e.treemapSlice=hf,e.treemapSliceDice=function(e,t,n,r,i){(1&e.depth?hf:Xp)(e,t,n,r,i)},e.treemapSquarify=mf,e.tsv=tl,e.tsvFormat=Ua,e.tsvFormatBody=za,e.tsvFormatRow=Wa,e.tsvFormatRows=qa,e.tsvFormatValue=$a,e.tsvParse=Va,e.tsvParseRows=Ha,e.union=function(...e){const t=new E;for(const n of e)for(const e of n)t.add(e);return t},e.unixDay=zm,e.unixDays=qm,e.utcDay=Hm,e.utcDays=Um,e.utcFriday=pg,e.utcFridays=_g,e.utcHour=Fm,e.utcHours=Bm,e.utcMillisecond=Am,e.utcMilliseconds=xm,e.utcMinute=Nm,e.utcMinutes=Pm,e.utcMonday=cg,e.utcMondays=gg,e.utcMonth=kg,e.utcMonths=Sg,e.utcSaturday=fg,e.utcSaturdays=wg,e.utcSecond=Mm,e.utcSeconds=Im,e.utcSunday=lg,e.utcSundays=mg,e.utcThursday=hg,e.utcThursdays=bg,e.utcTickInterval=Og,e.utcTicks=Ig,e.utcTuesday=ug,e.utcTuesdays=vg,e.utcWednesday=dg,e.utcWednesdays=yg,e.utcWeek=lg,e.utcWeeks=mg,e.utcYear=Dg,e.utcYears=Cg,e.variance=w,e.version="7.8.5",e.window=dt,e.xml=il,e.zip=function(){return ve(arguments)},e.zoom=function(){var e,t,n,r=Qw,i=Jw,o=rA,s=tA,a=nA,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=Jr,h=Ie("start","zoom","end"),p=0,f=10;function m(e){e.property("__zoom",eA).on("wheel.zoom",A,{passive:!1}).on("mousedown.zoom",x).on("dblclick.zoom",k).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new $w(t,e.x,e.y)}function v(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new $w(e.k,r,i)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function b(e,t,n,r){e.on("start.zoom",function(){_(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(r).end()}).tween("zoom",function(){var e=this,o=arguments,s=_(e,o).event(r),a=i.apply(e,o),l=null==n?y(a):"function"==typeof n?n.apply(e,o):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),u=e.__zoom,h="function"==typeof t?t.apply(e,o):t,p=d(u.invert(l).concat(c/u.k),h.invert(l).concat(c/h.k));return function(e){if(1===e)e=h;else{var t=p(e),n=c/t[2];e=new $w(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}})}function _(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function A(e,...t){if(r.apply(this,arguments)){var n=_(this,t).event(e),i=this.__zoom,a=Math.max(l[0],Math.min(l[1],i.k*Math.pow(2,s.apply(this,arguments)))),u=Qt(e);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=i.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(i.k===a)return;n.mouse=[u,i.invert(u)],Pi(this),n.start()}Xw(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(v(g(i,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function x(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,s=_(this,t,!0).event(e),a=$t(e.view).on("mousemove.zoom",function(e){if(Xw(e),!s.moved){var t=e.clientX-u,n=e.clientY-d;s.moved=t*t+n*n>p}s.event(e).zoom("mouse",o(v(s.that.__zoom,s.mouse[0]=Qt(e,i),s.mouse[1]),s.extent,c))},!0).on("mouseup.zoom",function(e){a.on("mousemove.zoom mouseup.zoom",null),on(e.view,s.moved),Xw(e),s.event(e).end()},!0),l=Qt(e,i),u=e.clientX,d=e.clientY;rn(e.view),Zw(e),s.mouse=[l,this.__zoom.invert(l)],Pi(this),s.start()}}function k(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,s=Qt(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),d=o(v(g(n,l),s,a),i.apply(this,t),c);Xw(e),u>0?$t(this).transition().duration(u).call(b,d,s,e):$t(this).call(m.transform,d,s,e)}}function S(n,...i){if(r.apply(this,arguments)){var o,s,a,l,c=n.touches,u=c.length,d=_(this,i,n.changedTouches.length===u).event(n);for(Zw(n),s=0;s<u;++s)l=[l=Qt(a=c[s],this),this.__zoom.invert(l),a.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,o=!0,d.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(d.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),Pi(this),d.start())}}function E(e,...t){if(this.__zooming){var n,r,i,s,a=_(this,t).event(e),l=e.changedTouches,u=l.length;for(Xw(e),n=0;n<u;++n)i=Qt(r=l[n],this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var d=a.touch0[0],h=a.touch0[1],p=a.touch1[0],f=a.touch1[1],m=(m=p[0]-d[0])*m+(m=p[1]-d[1])*m,y=(y=f[0]-h[0])*y+(y=f[1]-h[1])*y;r=g(r,Math.sqrt(m/y)),i=[(d[0]+p[0])/2,(d[1]+p[1])/2],s=[(h[0]+f[0])/2,(h[1]+f[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],s=a.touch0[1]}a.zoom("touch",o(v(r,i,s),a.extent,c))}}function T(e,...r){if(this.__zooming){var i,o,s=_(this,r).event(e),a=e.changedTouches,l=a.length;for(Zw(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=a[i],s.touch0&&s.touch0[2]===o.identifier?delete s.touch0:s.touch1&&s.touch1[2]===o.identifier&&delete s.touch1;if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0]);else if(s.end(),2===s.taps&&(o=Qt(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<f)){var c=$t(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return m.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",eA),e!==i?b(e,t,n,r):i.interrupt().each(function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},m.scaleBy=function(e,t,n,r){m.scaleTo(e,function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)},n,r)},m.scaleTo=function(e,t,n,r){m.transform(e,function(){var e=i.apply(this,arguments),r=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(s),l="function"==typeof t?t.apply(this,arguments):t;return o(v(g(r,l),s,a),e,c)},n,r)},m.translateBy=function(e,t,n,r){m.transform(e,function(){return o(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),c)},null,r)},m.translateTo=function(e,t,n,r,s){m.transform(e,function(){var e=i.apply(this,arguments),s=this.__zoom,a=null==r?y(e):"function"==typeof r?r.apply(this,arguments):r;return o(Gw.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)},r,s)},w.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=$t(this.that).datum();h.call(e,this.that,new Ww(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:h}),t)}},m.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:qw(+e),m):s},m.filter=function(e){return arguments.length?(r="function"==typeof e?e:qw(!!e),m):r},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:qw(!!e),m):a},m.extent=function(e){return arguments.length?(i="function"==typeof e?e:qw([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):i},m.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],m):[l[0],l[1]]},m.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(e){return arguments.length?(o=e,m):o},m.duration=function(e){return arguments.length?(u=+e,m):u},m.interpolate=function(e){return arguments.length?(d=e,m):d},m.on=function(){var e=h.on.apply(h,arguments);return e===h?m:e},m.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,m):Math.sqrt(p)},m.tapDistance=function(e){return arguments.length?(f=+e,m):f},m},e.zoomIdentity=Gw,e.zoomTransform=Kw}),function(e){var t="object"==typeof exports&&exports,n="object"==typeof module&&module&&module.exports==t&&module,r="object"==typeof global&&global;r.global!==r&&r.window!==r||(e=r);var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o=/[\x01-\x7F]/g,s=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,a=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,l={"\xad":"shy","\u200c":"zwnj","\u200d":"zwj","\u200e":"lrm","\u2063":"ic","\u2062":"it","\u2061":"af","\u200f":"rlm","\u200b":"ZeroWidthSpace","\u2060":"NoBreak","\u0311":"DownBreve","\u20db":"tdot","\u20dc":"DotDot","\t":"Tab","\n":"NewLine","\u2008":"puncsp","\u205f":"MediumSpace","\u2009":"thinsp","\u200a":"hairsp","\u2004":"emsp13","\u2002":"ensp","\u2005":"emsp14","\u2003":"emsp","\u2007":"numsp","\xa0":"nbsp","\u205f\u200a":"ThickSpace","\u203e":"oline",_:"lowbar","\u2010":"dash","\u2013":"ndash","\u2014":"mdash","\u2015":"horbar",",":"comma",";":"semi","\u204f":"bsemi",":":"colon","\u2a74":"Colone","!":"excl","\xa1":"iexcl","?":"quest","\xbf":"iquest",".":"period","\u2025":"nldr","\u2026":"mldr","\xb7":"middot","'":"apos","\u2018":"lsquo","\u2019":"rsquo","\u201a":"sbquo","\u2039":"lsaquo","\u203a":"rsaquo",'"':"quot","\u201c":"ldquo","\u201d":"rdquo","\u201e":"bdquo","\xab":"laquo","\xbb":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","\u2308":"lceil","\u2309":"rceil","\u230a":"lfloor","\u230b":"rfloor","\u2985":"lopar","\u2986":"ropar","\u298b":"lbrke","\u298c":"rbrke","\u298d":"lbrkslu","\u298e":"rbrksld","\u298f":"lbrksld","\u2990":"rbrkslu","\u2991":"langd","\u2992":"rangd","\u2993":"lparlt","\u2994":"rpargt","\u2995":"gtlPar","\u2996":"ltrPar","\u27e6":"lobrk","\u27e7":"robrk","\u27e8":"lang","\u27e9":"rang","\u27ea":"Lang","\u27eb":"Rang","\u27ec":"loang","\u27ed":"roang","\u2772":"lbbrk","\u2773":"rbbrk","\u2016":"Vert","\xa7":"sect","\xb6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","\u2030":"permil","\u2031":"pertenk","\u2020":"dagger","\u2021":"Dagger","\u2022":"bull","\u2043":"hybull","\u2032":"prime","\u2033":"Prime","\u2034":"tprime","\u2057":"qprime","\u2035":"bprime","\u2041":"caret","`":"grave","\xb4":"acute","\u02dc":"tilde","^":"Hat","\xaf":"macr","\u02d8":"breve","\u02d9":"dot","\xa8":"die","\u02da":"ring","\u02dd":"dblac","\xb8":"cedil","\u02db":"ogon","\u02c6":"circ","\u02c7":"caron","\xb0":"deg","\xa9":"copy","\xae":"reg","\u2117":"copysr","\u2118":"wp","\u211e":"rx","\u2127":"mho","\u2129":"iiota","\u2190":"larr","\u219a":"nlarr","\u2192":"rarr","\u219b":"nrarr","\u2191":"uarr","\u2193":"darr","\u2194":"harr","\u21ae":"nharr","\u2195":"varr","\u2196":"nwarr","\u2197":"nearr","\u2198":"searr","\u2199":"swarr","\u219d":"rarrw","\u219d\u0338":"nrarrw","\u219e":"Larr","\u219f":"Uarr","\u21a0":"Rarr","\u21a1":"Darr","\u21a2":"larrtl","\u21a3":"rarrtl","\u21a4":"mapstoleft","\u21a5":"mapstoup","\u21a6":"map","\u21a7":"mapstodown","\u21a9":"larrhk","\u21aa":"rarrhk","\u21ab":"larrlp","\u21ac":"rarrlp","\u21ad":"harrw","\u21b0":"lsh","\u21b1":"rsh","\u21b2":"ldsh","\u21b3":"rdsh","\u21b5":"crarr","\u21b6":"cularr","\u21b7":"curarr","\u21ba":"olarr","\u21bb":"orarr","\u21bc":"lharu","\u21bd":"lhard","\u21be":"uharr","\u21bf":"uharl","\u21c0":"rharu","\u21c1":"rhard","\u21c2":"dharr","\u21c3":"dharl","\u21c4":"rlarr","\u21c5":"udarr","\u21c6":"lrarr","\u21c7":"llarr","\u21c8":"uuarr","\u21c9":"rrarr","\u21ca":"ddarr","\u21cb":"lrhar","\u21cc":"rlhar","\u21d0":"lArr","\u21cd":"nlArr","\u21d1":"uArr","\u21d2":"rArr","\u21cf":"nrArr","\u21d3":"dArr","\u21d4":"iff","\u21ce":"nhArr","\u21d5":"vArr","\u21d6":"nwArr","\u21d7":"neArr","\u21d8":"seArr","\u21d9":"swArr","\u21da":"lAarr","\u21db":"rAarr","\u21dd":"zigrarr","\u21e4":"larrb","\u21e5":"rarrb","\u21f5":"duarr","\u21fd":"loarr","\u21fe":"roarr","\u21ff":"hoarr","\u2200":"forall","\u2201":"comp","\u2202":"part","\u2202\u0338":"npart","\u2203":"exist","\u2204":"nexist","\u2205":"empty","\u2207":"Del","\u2208":"in","\u2209":"notin","\u220b":"ni","\u220c":"notni","\u03f6":"bepsi","\u220f":"prod","\u2210":"coprod","\u2211":"sum","+":"plus","\xb1":"pm","\xf7":"div","\xd7":"times","<":"lt","\u226e":"nlt","<\u20d2":"nvlt","=":"equals","\u2260":"ne","=\u20e5":"bne","\u2a75":"Equal",">":"gt","\u226f":"ngt",">\u20d2":"nvgt","\xac":"not","|":"vert","\xa6":"brvbar","\u2212":"minus","\u2213":"mp","\u2214":"plusdo","\u2044":"frasl","\u2216":"setmn","\u2217":"lowast","\u2218":"compfn","\u221a":"Sqrt","\u221d":"prop","\u221e":"infin","\u221f":"angrt","\u2220":"ang","\u2220\u20d2":"nang","\u2221":"angmsd","\u2222":"angsph","\u2223":"mid","\u2224":"nmid","\u2225":"par","\u2226":"npar","\u2227":"and","\u2228":"or","\u2229":"cap","\u2229\ufe00":"caps","\u222a":"cup","\u222a\ufe00":"cups","\u222b":"int","\u222c":"Int","\u222d":"tint","\u2a0c":"qint","\u222e":"oint","\u222f":"Conint","\u2230":"Cconint","\u2231":"cwint","\u2232":"cwconint","\u2233":"awconint","\u2234":"there4","\u2235":"becaus","\u2236":"ratio","\u2237":"Colon","\u2238":"minusd","\u223a":"mDDot","\u223b":"homtht","\u223c":"sim","\u2241":"nsim","\u223c\u20d2":"nvsim","\u223d":"bsim","\u223d\u0331":"race","\u223e":"ac","\u223e\u0333":"acE","\u223f":"acd","\u2240":"wr","\u2242":"esim","\u2242\u0338":"nesim","\u2243":"sime","\u2244":"nsime","\u2245":"cong","\u2247":"ncong","\u2246":"simne","\u2248":"ap","\u2249":"nap","\u224a":"ape","\u224b":"apid","\u224b\u0338":"napid","\u224c":"bcong","\u224d":"CupCap","\u226d":"NotCupCap","\u224d\u20d2":"nvap","\u224e":"bump","\u224e\u0338":"nbump","\u224f":"bumpe","\u224f\u0338":"nbumpe","\u2250":"doteq","\u2250\u0338":"nedot","\u2251":"eDot","\u2252":"efDot","\u2253":"erDot","\u2254":"colone","\u2255":"ecolon","\u2256":"ecir","\u2257":"cire","\u2259":"wedgeq","\u225a":"veeeq","\u225c":"trie","\u225f":"equest","\u2261":"equiv","\u2262":"nequiv","\u2261\u20e5":"bnequiv","\u2264":"le","\u2270":"nle","\u2264\u20d2":"nvle","\u2265":"ge","\u2271":"nge","\u2265\u20d2":"nvge","\u2266":"lE","\u2266\u0338":"nlE","\u2267":"gE","\u2267\u0338":"ngE","\u2268\ufe00":"lvnE","\u2268":"lnE","\u2269":"gnE","\u2269\ufe00":"gvnE","\u226a":"ll","\u226a\u0338":"nLtv","\u226a\u20d2":"nLt","\u226b":"gg","\u226b\u0338":"nGtv","\u226b\u20d2":"nGt","\u226c":"twixt","\u2272":"lsim","\u2274":"nlsim","\u2273":"gsim","\u2275":"ngsim","\u2276":"lg","\u2278":"ntlg","\u2277":"gl","\u2279":"ntgl","\u227a":"pr","\u2280":"npr","\u227b":"sc","\u2281":"nsc","\u227c":"prcue","\u22e0":"nprcue","\u227d":"sccue","\u22e1":"nsccue","\u227e":"prsim","\u227f":"scsim","\u227f\u0338":"NotSucceedsTilde","\u2282":"sub","\u2284":"nsub","\u2282\u20d2":"vnsub","\u2283":"sup","\u2285":"nsup","\u2283\u20d2":"vnsup","\u2286":"sube","\u2288":"nsube","\u2287":"supe","\u2289":"nsupe","\u228a\ufe00":"vsubne","\u228a":"subne","\u228b\ufe00":"vsupne","\u228b":"supne","\u228d":"cupdot","\u228e":"uplus","\u228f":"sqsub","\u228f\u0338":"NotSquareSubset","\u2290":"sqsup","\u2290\u0338":"NotSquareSuperset","\u2291":"sqsube","\u22e2":"nsqsube","\u2292":"sqsupe","\u22e3":"nsqsupe","\u2293":"sqcap","\u2293\ufe00":"sqcaps","\u2294":"sqcup","\u2294\ufe00":"sqcups","\u2295":"oplus","\u2296":"ominus","\u2297":"otimes","\u2298":"osol","\u2299":"odot","\u229a":"ocir","\u229b":"oast","\u229d":"odash","\u229e":"plusb","\u229f":"minusb","\u22a0":"timesb","\u22a1":"sdotb","\u22a2":"vdash","\u22ac":"nvdash","\u22a3":"dashv","\u22a4":"top","\u22a5":"bot","\u22a7":"models","\u22a8":"vDash","\u22ad":"nvDash","\u22a9":"Vdash","\u22ae":"nVdash","\u22aa":"Vvdash","\u22ab":"VDash","\u22af":"nVDash","\u22b0":"prurel","\u22b2":"vltri","\u22ea":"nltri","\u22b3":"vrtri","\u22eb":"nrtri","\u22b4":"ltrie","\u22ec":"nltrie","\u22b4\u20d2":"nvltrie","\u22b5":"rtrie","\u22ed":"nrtrie","\u22b5\u20d2":"nvrtrie","\u22b6":"origof","\u22b7":"imof","\u22b8":"mumap","\u22b9":"hercon","\u22ba":"intcal","\u22bb":"veebar","\u22bd":"barvee","\u22be":"angrtvb","\u22bf":"lrtri","\u22c0":"Wedge","\u22c1":"Vee","\u22c2":"xcap","\u22c3":"xcup","\u22c4":"diam","\u22c5":"sdot","\u22c6":"Star","\u22c7":"divonx","\u22c8":"bowtie","\u22c9":"ltimes","\u22ca":"rtimes","\u22cb":"lthree","\u22cc":"rthree","\u22cd":"bsime","\u22ce":"cuvee","\u22cf":"cuwed","\u22d0":"Sub","\u22d1":"Sup","\u22d2":"Cap","\u22d3":"Cup","\u22d4":"fork","\u22d5":"epar","\u22d6":"ltdot","\u22d7":"gtdot","\u22d8":"Ll","\u22d8\u0338":"nLl","\u22d9":"Gg","\u22d9\u0338":"nGg","\u22da\ufe00":"lesg","\u22da":"leg","\u22db":"gel","\u22db\ufe00":"gesl","\u22de":"cuepr","\u22df":"cuesc","\u22e6":"lnsim","\u22e7":"gnsim","\u22e8":"prnsim","\u22e9":"scnsim","\u22ee":"vellip","\u22ef":"ctdot","\u22f0":"utdot","\u22f1":"dtdot","\u22f2":"disin","\u22f3":"isinsv","\u22f4":"isins","\u22f5":"isindot","\u22f5\u0338":"notindot","\u22f6":"notinvc","\u22f7":"notinvb","\u22f9":"isinE","\u22f9\u0338":"notinE","\u22fa":"nisd","\u22fb":"xnis","\u22fc":"nis","\u22fd":"notnivc","\u22fe":"notnivb","\u2305":"barwed","\u2306":"Barwed","\u230c":"drcrop","\u230d":"dlcrop","\u230e":"urcrop","\u230f":"ulcrop","\u2310":"bnot","\u2312":"profline","\u2313":"profsurf","\u2315":"telrec","\u2316":"target","\u231c":"ulcorn","\u231d":"urcorn","\u231e":"dlcorn","\u231f":"drcorn","\u2322":"frown","\u2323":"smile","\u232d":"cylcty","\u232e":"profalar","\u2336":"topbot","\u233d":"ovbar","\u233f":"solbar","\u237c":"angzarr","\u23b0":"lmoust","\u23b1":"rmoust","\u23b4":"tbrk","\u23b5":"bbrk","\u23b6":"bbrktbrk","\u23dc":"OverParenthesis","\u23dd":"UnderParenthesis","\u23de":"OverBrace","\u23df":"UnderBrace","\u23e2":"trpezium","\u23e7":"elinters","\u2423":"blank","\u2500":"boxh","\u2502":"boxv","\u250c":"boxdr","\u2510":"boxdl","\u2514":"boxur","\u2518":"boxul","\u251c":"boxvr","\u2524":"boxvl","\u252c":"boxhd","\u2534":"boxhu","\u253c":"boxvh","\u2550":"boxH","\u2551":"boxV","\u2552":"boxdR","\u2553":"boxDr","\u2554":"boxDR","\u2555":"boxdL","\u2556":"boxDl","\u2557":"boxDL","\u2558":"boxuR","\u2559":"boxUr","\u255a":"boxUR","\u255b":"boxuL","\u255c":"boxUl","\u255d":"boxUL","\u255e":"boxvR","\u255f":"boxVr","\u2560":"boxVR","\u2561":"boxvL","\u2562":"boxVl","\u2563":"boxVL","\u2564":"boxHd","\u2565":"boxhD","\u2566":"boxHD","\u2567":"boxHu","\u2568":"boxhU","\u2569":"boxHU","\u256a":"boxvH","\u256b":"boxVh","\u256c":"boxVH","\u2580":"uhblk","\u2584":"lhblk","\u2588":"block","\u2591":"blk14","\u2592":"blk12","\u2593":"blk34","\u25a1":"squ","\u25aa":"squf","\u25ab":"EmptyVerySmallSquare","\u25ad":"rect","\u25ae":"marker","\u25b1":"fltns","\u25b3":"xutri","\u25b4":"utrif","\u25b5":"utri","\u25b8":"rtrif","\u25b9":"rtri","\u25bd":"xdtri","\u25be":"dtrif","\u25bf":"dtri","\u25c2":"ltrif","\u25c3":"ltri","\u25ca":"loz","\u25cb":"cir","\u25ec":"tridot","\u25ef":"xcirc","\u25f8":"ultri","\u25f9":"urtri","\u25fa":"lltri","\u25fb":"EmptySmallSquare","\u25fc":"FilledSmallSquare","\u2605":"starf","\u2606":"star","\u260e":"phone","\u2640":"female","\u2642":"male","\u2660":"spades","\u2663":"clubs","\u2665":"hearts","\u2666":"diams","\u266a":"sung","\u2713":"check","\u2717":"cross","\u2720":"malt","\u2736":"sext","\u2758":"VerticalSeparator","\u27c8":"bsolhsub","\u27c9":"suphsol","\u27f5":"xlarr","\u27f6":"xrarr","\u27f7":"xharr","\u27f8":"xlArr","\u27f9":"xrArr","\u27fa":"xhArr","\u27fc":"xmap","\u27ff":"dzigrarr","\u2902":"nvlArr","\u2903":"nvrArr","\u2904":"nvHarr","\u2905":"Map","\u290c":"lbarr","\u290d":"rbarr","\u290e":"lBarr","\u290f":"rBarr","\u2910":"RBarr","\u2911":"DDotrahd","\u2912":"UpArrowBar","\u2913":"DownArrowBar","\u2916":"Rarrtl","\u2919":"latail","\u291a":"ratail","\u291b":"lAtail","\u291c":"rAtail","\u291d":"larrfs","\u291e":"rarrfs","\u291f":"larrbfs","\u2920":"rarrbfs","\u2923":"nwarhk","\u2924":"nearhk","\u2925":"searhk","\u2926":"swarhk","\u2927":"nwnear","\u2928":"toea","\u2929":"tosa","\u292a":"swnwar","\u2933":"rarrc","\u2933\u0338":"nrarrc","\u2935":"cudarrr","\u2936":"ldca","\u2937":"rdca","\u2938":"cudarrl","\u2939":"larrpl","\u293c":"curarrm","\u293d":"cularrp","\u2945":"rarrpl","\u2948":"harrcir","\u2949":"Uarrocir","\u294a":"lurdshar","\u294b":"ldrushar","\u294e":"LeftRightVector","\u294f":"RightUpDownVector","\u2950":"DownLeftRightVector","\u2951":"LeftUpDownVector","\u2952":"LeftVectorBar","\u2953":"RightVectorBar","\u2954":"RightUpVectorBar","\u2955":"RightDownVectorBar","\u2956":"DownLeftVectorBar","\u2957":"DownRightVectorBar","\u2958":"LeftUpVectorBar","\u2959":"LeftDownVectorBar","\u295a":"LeftTeeVector","\u295b":"RightTeeVector","\u295c":"RightUpTeeVector","\u295d":"RightDownTeeVector","\u295e":"DownLeftTeeVector","\u295f":"DownRightTeeVector","\u2960":"LeftUpTeeVector","\u2961":"LeftDownTeeVector","\u2962":"lHar","\u2963":"uHar","\u2964":"rHar","\u2965":"dHar","\u2966":"luruhar","\u2967":"ldrdhar","\u2968":"ruluhar","\u2969":"rdldhar","\u296a":"lharul","\u296b":"llhard","\u296c":"rharul","\u296d":"lrhard","\u296e":"udhar","\u296f":"duhar","\u2970":"RoundImplies","\u2971":"erarr","\u2972":"simrarr","\u2973":"larrsim","\u2974":"rarrsim","\u2975":"rarrap","\u2976":"ltlarr","\u2978":"gtrarr","\u2979":"subrarr","\u297b":"suplarr","\u297c":"lfisht","\u297d":"rfisht","\u297e":"ufisht","\u297f":"dfisht","\u299a":"vzigzag","\u299c":"vangrt","\u299d":"angrtvbd","\u29a4":"ange","\u29a5":"range","\u29a6":"dwangle","\u29a7":"uwangle","\u29a8":"angmsdaa","\u29a9":"angmsdab","\u29aa":"angmsdac","\u29ab":"angmsdad","\u29ac":"angmsdae","\u29ad":"angmsdaf","\u29ae":"angmsdag","\u29af":"angmsdah","\u29b0":"bemptyv","\u29b1":"demptyv","\u29b2":"cemptyv","\u29b3":"raemptyv","\u29b4":"laemptyv","\u29b5":"ohbar","\u29b6":"omid","\u29b7":"opar","\u29b9":"operp","\u29bb":"olcross","\u29bc":"odsold","\u29be":"olcir","\u29bf":"ofcir","\u29c0":"olt","\u29c1":"ogt","\u29c2":"cirscir","\u29c3":"cirE","\u29c4":"solb","\u29c5":"bsolb","\u29c9":"boxbox","\u29cd":"trisb","\u29ce":"rtriltri","\u29cf":"LeftTriangleBar","\u29cf\u0338":"NotLeftTriangleBar","\u29d0":"RightTriangleBar","\u29d0\u0338":"NotRightTriangleBar","\u29dc":"iinfin","\u29dd":"infintie","\u29de":"nvinfin","\u29e3":"eparsl","\u29e4":"smeparsl","\u29e5":"eqvparsl","\u29eb":"lozf","\u29f4":"RuleDelayed","\u29f6":"dsol","\u2a00":"xodot","\u2a01":"xoplus","\u2a02":"xotime","\u2a04":"xuplus","\u2a06":"xsqcup","\u2a0d":"fpartint","\u2a10":"cirfnint","\u2a11":"awint","\u2a12":"rppolint","\u2a13":"scpolint","\u2a14":"npolint","\u2a15":"pointint","\u2a16":"quatint","\u2a17":"intlarhk","\u2a22":"pluscir","\u2a23":"plusacir","\u2a24":"simplus","\u2a25":"plusdu","\u2a26":"plussim","\u2a27":"plustwo","\u2a29":"mcomma","\u2a2a":"minusdu","\u2a2d":"loplus","\u2a2e":"roplus","\u2a2f":"Cross","\u2a30":"timesd","\u2a31":"timesbar","\u2a33":"smashp","\u2a34":"lotimes","\u2a35":"rotimes","\u2a36":"otimesas","\u2a37":"Otimes","\u2a38":"odiv","\u2a39":"triplus","\u2a3a":"triminus","\u2a3b":"tritime","\u2a3c":"iprod","\u2a3f":"amalg","\u2a40":"capdot","\u2a42":"ncup","\u2a43":"ncap","\u2a44":"capand","\u2a45":"cupor","\u2a46":"cupcap","\u2a47":"capcup","\u2a48":"cupbrcap","\u2a49":"capbrcup","\u2a4a":"cupcup","\u2a4b":"capcap","\u2a4c":"ccups","\u2a4d":"ccaps","\u2a50":"ccupssm","\u2a53":"And","\u2a54":"Or","\u2a55":"andand","\u2a56":"oror","\u2a57":"orslope","\u2a58":"andslope","\u2a5a":"andv","\u2a5b":"orv","\u2a5c":"andd","\u2a5d":"ord","\u2a5f":"wedbar","\u2a66":"sdote","\u2a6a":"simdot","\u2a6d":"congdot","\u2a6d\u0338":"ncongdot","\u2a6e":"easter","\u2a6f":"apacir","\u2a70":"apE","\u2a70\u0338":"napE","\u2a71":"eplus","\u2a72":"pluse","\u2a73":"Esim","\u2a77":"eDDot","\u2a78":"equivDD","\u2a79":"ltcir","\u2a7a":"gtcir","\u2a7b":"ltquest","\u2a7c":"gtquest","\u2a7d":"les","\u2a7d\u0338":"nles","\u2a7e":"ges","\u2a7e\u0338":"nges","\u2a7f":"lesdot","\u2a80":"gesdot","\u2a81":"lesdoto","\u2a82":"gesdoto","\u2a83":"lesdotor","\u2a84":"gesdotol","\u2a85":"lap","\u2a86":"gap","\u2a87":"lne","\u2a88":"gne","\u2a89":"lnap","\u2a8a":"gnap","\u2a8b":"lEg","\u2a8c":"gEl","\u2a8d":"lsime","\u2a8e":"gsime","\u2a8f":"lsimg","\u2a90":"gsiml","\u2a91":"lgE","\u2a92":"glE","\u2a93":"lesges","\u2a94":"gesles","\u2a95":"els","\u2a96":"egs","\u2a97":"elsdot","\u2a98":"egsdot","\u2a99":"el","\u2a9a":"eg","\u2a9d":"siml","\u2a9e":"simg","\u2a9f":"simlE","\u2aa0":"simgE","\u2aa1":"LessLess","\u2aa1\u0338":"NotNestedLessLess","\u2aa2":"GreaterGreater","\u2aa2\u0338":"NotNestedGreaterGreater","\u2aa4":"glj","\u2aa5":"gla","\u2aa6":"ltcc","\u2aa7":"gtcc","\u2aa8":"lescc","\u2aa9":"gescc","\u2aaa":"smt","\u2aab":"lat","\u2aac":"smte","\u2aac\ufe00":"smtes","\u2aad":"late","\u2aad\ufe00":"lates","\u2aae":"bumpE","\u2aaf":"pre","\u2aaf\u0338":"npre","\u2ab0":"sce","\u2ab0\u0338":"nsce","\u2ab3":"prE","\u2ab4":"scE","\u2ab5":"prnE","\u2ab6":"scnE","\u2ab7":"prap","\u2ab8":"scap","\u2ab9":"prnap","\u2aba":"scnap","\u2abb":"Pr","\u2abc":"Sc","\u2abd":"subdot","\u2abe":"supdot","\u2abf":"subplus","\u2ac0":"supplus","\u2ac1":"submult","\u2ac2":"supmult","\u2ac3":"subedot","\u2ac4":"supedot","\u2ac5":"subE","\u2ac5\u0338":"nsubE","\u2ac6":"supE","\u2ac6\u0338":"nsupE","\u2ac7":"subsim","\u2ac8":"supsim","\u2acb\ufe00":"vsubnE","\u2acb":"subnE","\u2acc\ufe00":"vsupnE","\u2acc":"supnE","\u2acf":"csub","\u2ad0":"csup","\u2ad1":"csube","\u2ad2":"csupe","\u2ad3":"subsup","\u2ad4":"supsub","\u2ad5":"subsub","\u2ad6":"supsup","\u2ad7":"suphsub","\u2ad8":"supdsub","\u2ad9":"forkv","\u2ada":"topfork","\u2adb":"mlcp","\u2ae4":"Dashv","\u2ae6":"Vdashl","\u2ae7":"Barv","\u2ae8":"vBar","\u2ae9":"vBarv","\u2aeb":"Vbar","\u2aec":"Not","\u2aed":"bNot","\u2aee":"rnmid","\u2aef":"cirmid","\u2af0":"midcir","\u2af1":"topcir","\u2af2":"nhpar","\u2af3":"parsim","\u2afd":"parsl","\u2afd\u20e5":"nparsl","\u266d":"flat","\u266e":"natur","\u266f":"sharp","\xa4":"curren","\xa2":"cent",$:"dollar","\xa3":"pound","\xa5":"yen","\u20ac":"euro","\xb9":"sup1","\xbd":"half","\u2153":"frac13","\xbc":"frac14","\u2155":"frac15","\u2159":"frac16","\u215b":"frac18","\xb2":"sup2","\u2154":"frac23","\u2156":"frac25","\xb3":"sup3","\xbe":"frac34","\u2157":"frac35","\u215c":"frac38","\u2158":"frac45","\u215a":"frac56","\u215d":"frac58","\u215e":"frac78","\ud835\udcb6":"ascr","\ud835\udd52":"aopf","\ud835\udd1e":"afr","\ud835\udd38":"Aopf","\ud835\udd04":"Afr","\ud835\udc9c":"Ascr","\xaa":"ordf","\xe1":"aacute","\xc1":"Aacute","\xe0":"agrave","\xc0":"Agrave","\u0103":"abreve","\u0102":"Abreve","\xe2":"acirc","\xc2":"Acirc","\xe5":"aring","\xc5":"angst","\xe4":"auml","\xc4":"Auml","\xe3":"atilde","\xc3":"Atilde","\u0105":"aogon","\u0104":"Aogon","\u0101":"amacr","\u0100":"Amacr","\xe6":"aelig","\xc6":"AElig","\ud835\udcb7":"bscr","\ud835\udd53":"bopf","\ud835\udd1f":"bfr","\ud835\udd39":"Bopf","\u212c":"Bscr","\ud835\udd05":"Bfr","\ud835\udd20":"cfr","\ud835\udcb8":"cscr","\ud835\udd54":"copf","\u212d":"Cfr","\ud835\udc9e":"Cscr","\u2102":"Copf","\u0107":"cacute","\u0106":"Cacute","\u0109":"ccirc","\u0108":"Ccirc","\u010d":"ccaron","\u010c":"Ccaron","\u010b":"cdot","\u010a":"Cdot","\xe7":"ccedil","\xc7":"Ccedil","\u2105":"incare","\ud835\udd21":"dfr","\u2146":"dd","\ud835\udd55":"dopf","\ud835\udcb9":"dscr","\ud835\udc9f":"Dscr","\ud835\udd07":"Dfr","\u2145":"DD","\ud835\udd3b":"Dopf","\u010f":"dcaron","\u010e":"Dcaron","\u0111":"dstrok","\u0110":"Dstrok","\xf0":"eth","\xd0":"ETH","\u2147":"ee","\u212f":"escr","\ud835\udd22":"efr","\ud835\udd56":"eopf","\u2130":"Escr","\ud835\udd08":"Efr","\ud835\udd3c":"Eopf","\xe9":"eacute","\xc9":"Eacute","\xe8":"egrave","\xc8":"Egrave","\xea":"ecirc","\xca":"Ecirc","\u011b":"ecaron","\u011a":"Ecaron","\xeb":"euml","\xcb":"Euml","\u0117":"edot","\u0116":"Edot","\u0119":"eogon","\u0118":"Eogon","\u0113":"emacr","\u0112":"Emacr","\ud835\udd23":"ffr","\ud835\udd57":"fopf","\ud835\udcbb":"fscr","\ud835\udd09":"Ffr","\ud835\udd3d":"Fopf","\u2131":"Fscr","\ufb00":"fflig","\ufb03":"ffilig","\ufb04":"ffllig","\ufb01":"filig",fj:"fjlig","\ufb02":"fllig","\u0192":"fnof","\u210a":"gscr","\ud835\udd58":"gopf","\ud835\udd24":"gfr","\ud835\udca2":"Gscr","\ud835\udd3e":"Gopf","\ud835\udd0a":"Gfr","\u01f5":"gacute","\u011f":"gbreve","\u011e":"Gbreve","\u011d":"gcirc","\u011c":"Gcirc","\u0121":"gdot","\u0120":"Gdot","\u0122":"Gcedil","\ud835\udd25":"hfr","\u210e":"planckh","\ud835\udcbd":"hscr","\ud835\udd59":"hopf","\u210b":"Hscr","\u210c":"Hfr","\u210d":"Hopf","\u0125":"hcirc","\u0124":"Hcirc","\u210f":"hbar","\u0127":"hstrok","\u0126":"Hstrok","\ud835\udd5a":"iopf","\ud835\udd26":"ifr","\ud835\udcbe":"iscr","\u2148":"ii","\ud835\udd40":"Iopf","\u2110":"Iscr","\u2111":"Im","\xed":"iacute","\xcd":"Iacute","\xec":"igrave","\xcc":"Igrave","\xee":"icirc","\xce":"Icirc","\xef":"iuml","\xcf":"Iuml","\u0129":"itilde","\u0128":"Itilde","\u0130":"Idot","\u012f":"iogon","\u012e":"Iogon","\u012b":"imacr","\u012a":"Imacr","\u0133":"ijlig","\u0132":"IJlig","\u0131":"imath","\ud835\udcbf":"jscr","\ud835\udd5b":"jopf","\ud835\udd27":"jfr","\ud835\udca5":"Jscr","\ud835\udd0d":"Jfr","\ud835\udd41":"Jopf","\u0135":"jcirc","\u0134":"Jcirc","\u0237":"jmath","\ud835\udd5c":"kopf","\ud835\udcc0":"kscr","\ud835\udd28":"kfr","\ud835\udca6":"Kscr","\ud835\udd42":"Kopf","\ud835\udd0e":"Kfr","\u0137":"kcedil","\u0136":"Kcedil","\ud835\udd29":"lfr","\ud835\udcc1":"lscr","\u2113":"ell","\ud835\udd5d":"lopf","\u2112":"Lscr","\ud835\udd0f":"Lfr","\ud835\udd43":"Lopf","\u013a":"lacute","\u0139":"Lacute","\u013e":"lcaron","\u013d":"Lcaron","\u013c":"lcedil","\u013b":"Lcedil","\u0142":"lstrok","\u0141":"Lstrok","\u0140":"lmidot","\u013f":"Lmidot","\ud835\udd2a":"mfr","\ud835\udd5e":"mopf","\ud835\udcc2":"mscr","\ud835\udd10":"Mfr","\ud835\udd44":"Mopf","\u2133":"Mscr","\ud835\udd2b":"nfr","\ud835\udd5f":"nopf","\ud835\udcc3":"nscr","\u2115":"Nopf","\ud835\udca9":"Nscr","\ud835\udd11":"Nfr","\u0144":"nacute","\u0143":"Nacute","\u0148":"ncaron","\u0147":"Ncaron","\xf1":"ntilde","\xd1":"Ntilde","\u0146":"ncedil","\u0145":"Ncedil","\u2116":"numero","\u014b":"eng","\u014a":"ENG","\ud835\udd60":"oopf","\ud835\udd2c":"ofr","\u2134":"oscr","\ud835\udcaa":"Oscr","\ud835\udd12":"Ofr","\ud835\udd46":"Oopf","\xba":"ordm","\xf3":"oacute","\xd3":"Oacute","\xf2":"ograve","\xd2":"Ograve","\xf4":"ocirc","\xd4":"Ocirc","\xf6":"ouml","\xd6":"Ouml","\u0151":"odblac","\u0150":"Odblac","\xf5":"otilde","\xd5":"Otilde","\xf8":"oslash","\xd8":"Oslash","\u014d":"omacr","\u014c":"Omacr","\u0153":"oelig","\u0152":"OElig","\ud835\udd2d":"pfr","\ud835\udcc5":"pscr","\ud835\udd61":"popf","\u2119":"Popf","\ud835\udd13":"Pfr","\ud835\udcab":"Pscr","\ud835\udd62":"qopf","\ud835\udd2e":"qfr","\ud835\udcc6":"qscr","\ud835\udcac":"Qscr","\ud835\udd14":"Qfr","\u211a":"Qopf","\u0138":"kgreen","\ud835\udd2f":"rfr","\ud835\udd63":"ropf","\ud835\udcc7":"rscr","\u211b":"Rscr","\u211c":"Re","\u211d":"Ropf","\u0155":"racute","\u0154":"Racute","\u0159":"rcaron","\u0158":"Rcaron","\u0157":"rcedil","\u0156":"Rcedil","\ud835\udd64":"sopf","\ud835\udcc8":"sscr","\ud835\udd30":"sfr","\ud835\udd4a":"Sopf","\ud835\udd16":"Sfr","\ud835\udcae":"Sscr","\u24c8":"oS","\u015b":"sacute","\u015a":"Sacute","\u015d":"scirc","\u015c":"Scirc","\u0161":"scaron","\u0160":"Scaron","\u015f":"scedil","\u015e":"Scedil","\xdf":"szlig","\ud835\udd31":"tfr","\ud835\udcc9":"tscr","\ud835\udd65":"topf","\ud835\udcaf":"Tscr","\ud835\udd17":"Tfr","\ud835\udd4b":"Topf","\u0165":"tcaron","\u0164":"Tcaron","\u0163":"tcedil","\u0162":"Tcedil","\u2122":"trade","\u0167":"tstrok","\u0166":"Tstrok","\ud835\udcca":"uscr","\ud835\udd66":"uopf","\ud835\udd32":"ufr","\ud835\udd4c":"Uopf","\ud835\udd18":"Ufr","\ud835\udcb0":"Uscr","\xfa":"uacute","\xda":"Uacute","\xf9":"ugrave","\xd9":"Ugrave","\u016d":"ubreve","\u016c":"Ubreve","\xfb":"ucirc","\xdb":"Ucirc","\u016f":"uring","\u016e":"Uring","\xfc":"uuml","\xdc":"Uuml","\u0171":"udblac","\u0170":"Udblac","\u0169":"utilde","\u0168":"Utilde","\u0173":"uogon","\u0172":"Uogon","\u016b":"umacr","\u016a":"Umacr","\ud835\udd33":"vfr","\ud835\udd67":"vopf","\ud835\udccb":"vscr","\ud835\udd19":"Vfr","\ud835\udd4d":"Vopf","\ud835\udcb1":"Vscr","\ud835\udd68":"wopf","\ud835\udccc":"wscr","\ud835\udd34":"wfr","\ud835\udcb2":"Wscr","\ud835\udd4e":"Wopf","\ud835\udd1a":"Wfr","\u0175":"wcirc","\u0174":"Wcirc","\ud835\udd35":"xfr","\ud835\udccd":"xscr","\ud835\udd69":"xopf","\ud835\udd4f":"Xopf","\ud835\udd1b":"Xfr","\ud835\udcb3":"Xscr","\ud835\udd36":"yfr","\ud835\udcce":"yscr","\ud835\udd6a":"yopf","\ud835\udcb4":"Yscr","\ud835\udd1c":"Yfr","\ud835\udd50":"Yopf","\xfd":"yacute","\xdd":"Yacute","\u0177":"ycirc","\u0176":"Ycirc","\xff":"yuml","\u0178":"Yuml","\ud835\udccf":"zscr","\ud835\udd37":"zfr","\ud835\udd6b":"zopf","\u2128":"Zfr","\u2124":"Zopf","\ud835\udcb5":"Zscr","\u017a":"zacute","\u0179":"Zacute","\u017e":"zcaron","\u017d":"Zcaron","\u017c":"zdot","\u017b":"Zdot","\u01b5":"imped","\xfe":"thorn","\xde":"THORN","\u0149":"napos","\u03b1":"alpha","\u0391":"Alpha","\u03b2":"beta","\u0392":"Beta","\u03b3":"gamma","\u0393":"Gamma","\u03b4":"delta","\u0394":"Delta","\u03b5":"epsi","\u03f5":"epsiv","\u0395":"Epsilon","\u03dd":"gammad","\u03dc":"Gammad","\u03b6":"zeta","\u0396":"Zeta","\u03b7":"eta","\u0397":"Eta","\u03b8":"theta","\u03d1":"thetav","\u0398":"Theta","\u03b9":"iota","\u0399":"Iota","\u03ba":"kappa","\u03f0":"kappav","\u039a":"Kappa","\u03bb":"lambda","\u039b":"Lambda","\u03bc":"mu","\xb5":"micro","\u039c":"Mu","\u03bd":"nu","\u039d":"Nu","\u03be":"xi","\u039e":"Xi","\u03bf":"omicron","\u039f":"Omicron","\u03c0":"pi","\u03d6":"piv","\u03a0":"Pi","\u03c1":"rho","\u03f1":"rhov","\u03a1":"Rho","\u03c3":"sigma","\u03a3":"Sigma","\u03c2":"sigmaf","\u03c4":"tau","\u03a4":"Tau","\u03c5":"upsi","\u03a5":"Upsilon","\u03d2":"Upsi","\u03c6":"phi","\u03d5":"phiv","\u03a6":"Phi","\u03c7":"chi","\u03a7":"Chi","\u03c8":"psi","\u03a8":"Psi","\u03c9":"omega","\u03a9":"ohm","\u0430":"acy","\u0410":"Acy","\u0431":"bcy","\u0411":"Bcy","\u0432":"vcy","\u0412":"Vcy","\u0433":"gcy","\u0413":"Gcy","\u0453":"gjcy","\u0403":"GJcy","\u0434":"dcy","\u0414":"Dcy","\u0452":"djcy","\u0402":"DJcy","\u0435":"iecy","\u0415":"IEcy","\u0451":"iocy","\u0401":"IOcy","\u0454":"jukcy","\u0404":"Jukcy","\u0436":"zhcy","\u0416":"ZHcy","\u0437":"zcy","\u0417":"Zcy","\u0455":"dscy","\u0405":"DScy","\u0438":"icy","\u0418":"Icy","\u0456":"iukcy","\u0406":"Iukcy","\u0457":"yicy","\u0407":"YIcy","\u0439":"jcy","\u0419":"Jcy","\u0458":"jsercy","\u0408":"Jsercy","\u043a":"kcy","\u041a":"Kcy","\u045c":"kjcy","\u040c":"KJcy","\u043b":"lcy","\u041b":"Lcy","\u0459":"ljcy","\u0409":"LJcy","\u043c":"mcy","\u041c":"Mcy","\u043d":"ncy","\u041d":"Ncy","\u045a":"njcy","\u040a":"NJcy","\u043e":"ocy","\u041e":"Ocy","\u043f":"pcy","\u041f":"Pcy","\u0440":"rcy","\u0420":"Rcy","\u0441":"scy","\u0421":"Scy","\u0442":"tcy","\u0422":"Tcy","\u045b":"tshcy","\u040b":"TSHcy","\u0443":"ucy","\u0423":"Ucy","\u045e":"ubrcy","\u040e":"Ubrcy","\u0444":"fcy","\u0424":"Fcy","\u0445":"khcy","\u0425":"KHcy","\u0446":"tscy","\u0426":"TScy","\u0447":"chcy","\u0427":"CHcy","\u045f":"dzcy","\u040f":"DZcy","\u0448":"shcy","\u0428":"SHcy","\u0449":"shchcy","\u0429":"SHCHcy","\u044a":"hardcy","\u042a":"HARDcy","\u044b":"ycy","\u042b":"Ycy","\u044c":"softcy","\u042c":"SOFTcy","\u044d":"ecy","\u042d":"Ecy","\u044e":"yucy","\u042e":"YUcy","\u044f":"yacy","\u042f":"YAcy","\u2135":"aleph","\u2136":"beth","\u2137":"gimel","\u2138":"daleth"},c=/["&'<>`]/g,u={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},d=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,h=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,f={aacute:"\xe1",Aacute:"\xc1",abreve:"\u0103",Abreve:"\u0102",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",acy:"\u0430",Acy:"\u0410",aelig:"\xe6",AElig:"\xc6",af:"\u2061",afr:"\ud835\udd1e",Afr:"\ud835\udd04",agrave:"\xe0",Agrave:"\xc0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",Alpha:"\u0391",amacr:"\u0101",Amacr:"\u0100",amalg:"\u2a3f",amp:"&",AMP:"&",and:"\u2227",And:"\u2a53",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",aogon:"\u0105",Aogon:"\u0104",aopf:"\ud835\udd52",Aopf:"\ud835\udd38",ap:"\u2248",apacir:"\u2a6f",ape:"\u224a",apE:"\u2a70",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",aring:"\xe5",Aring:"\xc5",ascr:"\ud835\udcb6",Ascr:"\ud835\udc9c",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",bcy:"\u0431",Bcy:"\u0411",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",beta:"\u03b2",Beta:"\u0392",beth:"\u2136",between:"\u226c",bfr:"\ud835\udd1f",Bfr:"\ud835\udd05",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bNot:"\u2aed",bopf:"\ud835\udd53",Bopf:"\ud835\udd39",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxhD:"\u2565",boxHd:"\u2564",boxHD:"\u2566",boxhu:"\u2534",boxhU:"\u2568",boxHu:"\u2567",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpe:"\u224f",bumpE:"\u2aae",bumpeq:"\u224f",Bumpeq:"\u224e",cacute:"\u0107",Cacute:"\u0106",cap:"\u2229",Cap:"\u22d2",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",ccaron:"\u010d",Ccaron:"\u010c",ccedil:"\xe7",Ccedil:"\xc7",ccirc:"\u0109",Ccirc:"\u0108",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",Cdot:"\u010a",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\ud835\udd20",Cfr:"\u212d",chcy:"\u0447",CHcy:"\u0427",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",Chi:"\u03a7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cire:"\u2257",cirE:"\u29c3",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",colone:"\u2254",Colone:"\u2a74",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",cscr:"\ud835\udcb8",Cscr:"\ud835\udc9e",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cup:"\u222a",Cup:"\u22d3",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",dArr:"\u21d3",Darr:"\u21a1",dash:"\u2010",dashv:"\u22a3",Dashv:"\u2ae4",dbkarow:"\u290f",dblac:"\u02dd",dcaron:"\u010f",Dcaron:"\u010e",dcy:"\u0434",Dcy:"\u0414",dd:"\u2146",DD:"\u2145",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",delta:"\u03b4",Delta:"\u0394",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",Dfr:"\ud835\udd07",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",DJcy:"\u0402",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",Dopf:"\ud835\udd3b",dot:"\u02d9",Dot:"\xa8",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",downarrow:"\u2193",Downarrow:"\u21d3",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",Dscr:"\ud835\udc9f",dscy:"\u0455",DScy:"\u0405",dsol:"\u29f6",dstrok:"\u0111",Dstrok:"\u0110",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",dzcy:"\u045f",DZcy:"\u040f",dzigrarr:"\u27ff",eacute:"\xe9",Eacute:"\xc9",easter:"\u2a6e",ecaron:"\u011b",Ecaron:"\u011a",ecir:"\u2256",ecirc:"\xea",Ecirc:"\xca",ecolon:"\u2255",ecy:"\u044d",Ecy:"\u042d",eDDot:"\u2a77",edot:"\u0117",eDot:"\u2251",Edot:"\u0116",ee:"\u2147",efDot:"\u2252",efr:"\ud835\udd22",Efr:"\ud835\udd08",eg:"\u2a9a",egrave:"\xe8",Egrave:"\xc8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",Emacr:"\u0112",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",eng:"\u014b",ENG:"\u014a",ensp:"\u2002",eogon:"\u0119",Eogon:"\u0118",eopf:"\ud835\udd56",Eopf:"\ud835\udd3c",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",Epsilon:"\u0395",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",esim:"\u2242",Esim:"\u2a73",eta:"\u03b7",Eta:"\u0397",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",Fcy:"\u0424",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",Ffr:"\ud835\udd09",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",Fopf:"\ud835\udd3d",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",gamma:"\u03b3",Gamma:"\u0393",gammad:"\u03dd",Gammad:"\u03dc",gap:"\u2a86",gbreve:"\u011f",Gbreve:"\u011e",Gcedil:"\u0122",gcirc:"\u011d",Gcirc:"\u011c",gcy:"\u0433",Gcy:"\u0413",gdot:"\u0121",Gdot:"\u0120",ge:"\u2265",gE:"\u2267",gel:"\u22db",gEl:"\u2a8c",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",Gfr:"\ud835\udd0a",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",gjcy:"\u0453",GJcy:"\u0403",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",gopf:"\ud835\udd58",Gopf:"\ud835\udd3e",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",gscr:"\u210a",Gscr:"\ud835\udca2",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gt:">",Gt:"\u226b",GT:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",hardcy:"\u044a",HARDcy:"\u042a",harr:"\u2194",hArr:"\u21d4",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",hcirc:"\u0125",Hcirc:"\u0124",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",hstrok:"\u0127",Hstrok:"\u0126",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",iacute:"\xed",Iacute:"\xcd",ic:"\u2063",icirc:"\xee",Icirc:"\xce",icy:"\u0438",Icy:"\u0418",Idot:"\u0130",iecy:"\u0435",IEcy:"\u0415",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",igrave:"\xec",Igrave:"\xcc",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",IJlig:"\u0132",Im:"\u2111",imacr:"\u012b",Imacr:"\u012a",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",int:"\u222b",Int:"\u222c",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",iocy:"\u0451",IOcy:"\u0401",iogon:"\u012f",Iogon:"\u012e",iopf:"\ud835\udd5a",Iopf:"\ud835\udd40",iota:"\u03b9",Iota:"\u0399",iprod:"\u2a3c",iquest:"\xbf",iscr:"\ud835\udcbe",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",Itilde:"\u0128",iukcy:"\u0456",Iukcy:"\u0406",iuml:"\xef",Iuml:"\xcf",jcirc:"\u0135",Jcirc:"\u0134",jcy:"\u0439",Jcy:"\u0419",jfr:"\ud835\udd27",Jfr:"\ud835\udd0d",jmath:"\u0237",jopf:"\ud835\udd5b",Jopf:"\ud835\udd41",jscr:"\ud835\udcbf",Jscr:"\ud835\udca5",jsercy:"\u0458",Jsercy:"\u0408",jukcy:"\u0454",Jukcy:"\u0404",kappa:"\u03ba",Kappa:"\u039a",kappav:"\u03f0",kcedil:"\u0137",Kcedil:"\u0136",kcy:"\u043a",Kcy:"\u041a",kfr:"\ud835\udd28",Kfr:"\ud835\udd0e",kgreen:"\u0138",khcy:"\u0445",KHcy:"\u0425",kjcy:"\u045c",KJcy:"\u040c",kopf:"\ud835\udd5c",Kopf:"\ud835\udd42",kscr:"\ud835\udcc0",Kscr:"\ud835\udca6",lAarr:"\u21da",lacute:"\u013a",Lacute:"\u0139",laemptyv:"\u29b4",lagran:"\u2112",lambda:"\u03bb",Lambda:"\u039b",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",Larr:"\u219e",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",latail:"\u2919",lAtail:"\u291b",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",Lcaron:"\u013d",lcedil:"\u013c",Lcedil:"\u013b",lceil:"\u2308",lcub:"{",lcy:"\u043b",Lcy:"\u041b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",leftarrow:"\u2190",Leftarrow:"\u21d0",LeftArrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",Leftrightarrow:"\u21d4",LeftRightArrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",leg:"\u22da",lEg:"\u2a8b",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",lfr:"\ud835\udd29",Lfr:"\ud835\udd0f",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",LJcy:"\u0409",ll:"\u226a",Ll:"\u22d8",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",Lmidot:"\u013f",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",Longleftarrow:"\u27f8",LongLeftArrow:"\u27f5",longleftrightarrow:"\u27f7",Longleftrightarrow:"\u27fa",LongLeftRightArrow:"\u27f7",longmapsto:"\u27fc",longrightarrow:"\u27f6",Longrightarrow:"\u27f9",LongRightArrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",Lopf:"\ud835\udd43",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",lstrok:"\u0142",Lstrok:"\u0141",lt:"<",Lt:"\u226a",LT:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21a6",Map:"\u2905",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",Mcy:"\u041c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",mfr:"\ud835\udd2a",Mfr:"\ud835\udd10",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",mopf:"\ud835\udd5e",Mopf:"\ud835\udd44",mp:"\u2213",mscr:"\ud835\udcc2",Mscr:"\u2133",mstpos:"\u223e",mu:"\u03bc",Mu:"\u039c",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",nacute:"\u0144",Nacute:"\u0143",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",ncaron:"\u0148",Ncaron:"\u0147",ncedil:"\u0146",Ncedil:"\u0145",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",Ncy:"\u041d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",nfr:"\ud835\udd2b",Nfr:"\ud835\udd11",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",ngt:"\u226f",nGt:"\u226b\u20d2",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",njcy:"\u045a",NJcy:"\u040a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nlt:"\u226e",nLt:"\u226a\u20d2",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\ud835\udd5f",Nopf:"\u2115",not:"\xac",Not:"\u2aec",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",nscr:"\ud835\udcc3",Nscr:"\ud835\udca9",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2ac5\u0338",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2ac6\u0338",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",ntilde:"\xf1",Ntilde:"\xd1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",nu:"\u03bd",Nu:"\u039d",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xf3",Oacute:"\xd3",oast:"\u229b",ocir:"\u229a",ocirc:"\xf4",Ocirc:"\xd4",ocy:"\u043e",Ocy:"\u041e",odash:"\u229d",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29bf",ofr:"\ud835\udd2c",Ofr:"\ud835\udd12",ogon:"\u02db",ograve:"\xf2",Ograve:"\xd2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",omacr:"\u014d",Omacr:"\u014c",omega:"\u03c9",Omega:"\u03a9",omicron:"\u03bf",Omicron:"\u039f",omid:"\u29b6",ominus:"\u2296",oopf:"\ud835\udd60",Oopf:"\ud835\udd46",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",or:"\u2228",Or:"\u2a54",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",oscr:"\u2134",Oscr:"\ud835\udcaa",oslash:"\xf8",Oslash:"\xd8",osol:"\u2298",otilde:"\xf5",Otilde:"\xd5",otimes:"\u2297",Otimes:"\u2a37",otimesas:"\u2a36",ouml:"\xf6",Ouml:"\xd6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",pcy:"\u043f",Pcy:"\u041f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",pfr:"\ud835\udd2d",Pfr:"\ud835\udd13",phi:"\u03c6",Phi:"\u03a6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",pi:"\u03c0",Pi:"\u03a0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\xa3",pr:"\u227a",Pr:"\u2abb",prap:"\u2ab7",prcue:"\u227c",pre:"\u2aaf",prE:"\u2ab3",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",pscr:"\ud835\udcc5",Pscr:"\ud835\udcab",psi:"\u03c8",Psi:"\u03a8",puncsp:"\u2008",qfr:"\ud835\udd2e",Qfr:"\ud835\udd14",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",qscr:"\ud835\udcc6",Qscr:"\ud835\udcac",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",racute:"\u0155",Racute:"\u0154",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",Rarr:"\u21a0",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",Rarrtl:"\u2916",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",Rcaron:"\u0158",rcedil:"\u0157",Rcedil:"\u0156",rceil:"\u2309",rcub:"}",rcy:"\u0440",Rcy:"\u0420",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",rho:"\u03c1",Rho:"\u03a1",rhov:"\u03f1",RightAngleBracket:"\u27e9",rightarrow:"\u2192",Rightarrow:"\u21d2",RightArrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",Sacute:"\u015a",sbquo:"\u201a",sc:"\u227b",Sc:"\u2abc",scap:"\u2ab8",scaron:"\u0161",Scaron:"\u0160",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",scedil:"\u015f",Scedil:"\u015e",scirc:"\u015d",Scirc:"\u015c",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",scy:"\u0441",Scy:"\u0421",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\ud835\udd30",Sfr:"\ud835\udd16",sfrown:"\u2322",sharp:"\u266f",shchcy:"\u0449",SHCHcy:"\u0429",shcy:"\u0448",SHcy:"\u0428",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",sigma:"\u03c3",Sigma:"\u03a3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",SOFTcy:"\u042c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",Sopf:"\ud835\udd4a",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",sscr:"\ud835\udcc8",Sscr:"\ud835\udcae",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",star:"\u2606",Star:"\u22c6",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",sube:"\u2286",subE:"\u2ac5",subedot:"\u2ac3",submult:"\u2ac1",subne:"\u228a",subnE:"\u2acb",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup:"\u2283",Sup:"\u22d1",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supe:"\u2287",supE:"\u2ac6",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supne:"\u228b",supnE:"\u2acc",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",tau:"\u03c4",Tau:"\u03a4",tbrk:"\u23b4",tcaron:"\u0165",Tcaron:"\u0164",tcedil:"\u0163",Tcedil:"\u0162",tcy:"\u0442",Tcy:"\u0422",tdot:"\u20db",telrec:"\u2315",tfr:"\ud835\udd31",Tfr:"\ud835\udd17",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",theta:"\u03b8",Theta:"\u0398",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",thorn:"\xfe",THORN:"\xde",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",Topf:"\ud835\udd4b",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",Tscr:"\ud835\udcaf",tscy:"\u0446",TScy:"\u0426",tshcy:"\u045b",TSHcy:"\u040b",tstrok:"\u0167",Tstrok:"\u0166",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",uacute:"\xfa",Uacute:"\xda",uarr:"\u2191",uArr:"\u21d1",Uarr:"\u219f",Uarrocir:"\u2949",ubrcy:"\u045e",Ubrcy:"\u040e",ubreve:"\u016d",Ubreve:"\u016c",ucirc:"\xfb",Ucirc:"\xdb",ucy:"\u0443",Ucy:"\u0423",udarr:"\u21c5",udblac:"\u0171",Udblac:"\u0170",udhar:"\u296e",ufisht:"\u297e",ufr:"\ud835\udd32",Ufr:"\ud835\udd18",ugrave:"\xf9",Ugrave:"\xd9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",Umacr:"\u016a",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",uogon:"\u0173",Uogon:"\u0172",uopf:"\ud835\udd66",Uopf:"\ud835\udd4c",uparrow:"\u2191",Uparrow:"\u21d1",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",Updownarrow:"\u21d5",UpDownArrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",upsilon:"\u03c5",Upsilon:"\u03a5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",Uring:"\u016e",urtri:"\u25f9",uscr:"\ud835\udcca",Uscr:"\ud835\udcb0",utdot:"\u22f0",utilde:"\u0169",Utilde:"\u0168",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",uuml:"\xfc",Uuml:"\xdc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",vcy:"\u0432",Vcy:"\u0412",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",vee:"\u2228",Vee:"\u22c1",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",vfr:"\ud835\udd33",Vfr:"\ud835\udd19",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",vopf:"\ud835\udd67",Vopf:"\ud835\udd4d",vprop:"\u221d",vrtri:"\u22b3",vscr:"\ud835\udccb",Vscr:"\ud835\udcb1",vsubne:"\u228a\ufe00",vsubnE:"\u2acb\ufe00",vsupne:"\u228b\ufe00",vsupnE:"\u2acc\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",wcirc:"\u0175",Wcirc:"\u0174",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",wfr:"\ud835\udd34",Wfr:"\ud835\udd1a",wopf:"\ud835\udd68",Wopf:"\ud835\udd4e",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\ud835\udccc",Wscr:"\ud835\udcb2",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",xfr:"\ud835\udd35",Xfr:"\ud835\udd1b",xharr:"\u27f7",xhArr:"\u27fa",xi:"\u03be",Xi:"\u039e",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",xopf:"\ud835\udd69",Xopf:"\ud835\udd4f",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",xscr:"\ud835\udccd",Xscr:"\ud835\udcb3",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",yacute:"\xfd",Yacute:"\xdd",yacy:"\u044f",YAcy:"\u042f",ycirc:"\u0177",Ycirc:"\u0176",ycy:"\u044b",Ycy:"\u042b",yen:"\xa5",yfr:"\ud835\udd36",Yfr:"\ud835\udd1c",yicy:"\u0457",YIcy:"\u0407",yopf:"\ud835\udd6a",Yopf:"\ud835\udd50",yscr:"\ud835\udcce",Yscr:"\ud835\udcb4",yucy:"\u044e",YUcy:"\u042e",yuml:"\xff",Yuml:"\u0178",zacute:"\u017a",Zacute:"\u0179",zcaron:"\u017e",Zcaron:"\u017d",zcy:"\u0437",Zcy:"\u0417",zdot:"\u017c",Zdot:"\u017b",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",zeta:"\u03b6",Zeta:"\u0396",zfr:"\ud835\udd37",Zfr:"\u2128",zhcy:"\u0436",ZHcy:"\u0416",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",zscr:"\ud835\udccf",Zscr:"\ud835\udcb5",zwj:"\u200d",zwnj:"\u200c"},m={aacute:"\xe1",Aacute:"\xc1",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",aelig:"\xe6",AElig:"\xc6",agrave:"\xe0",Agrave:"\xc0",amp:"&",AMP:"&",aring:"\xe5",Aring:"\xc5",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",brvbar:"\xa6",ccedil:"\xe7",Ccedil:"\xc7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",Eacute:"\xc9",ecirc:"\xea",Ecirc:"\xca",egrave:"\xe8",Egrave:"\xc8",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",iacute:"\xed",Iacute:"\xcd",icirc:"\xee",Icirc:"\xce",iexcl:"\xa1",igrave:"\xec",Igrave:"\xcc",iquest:"\xbf",iuml:"\xef",Iuml:"\xcf",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",Ntilde:"\xd1",oacute:"\xf3",Oacute:"\xd3",ocirc:"\xf4",Ocirc:"\xd4",ograve:"\xf2",Ograve:"\xd2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",Oslash:"\xd8",otilde:"\xf5",Otilde:"\xd5",ouml:"\xf6",Ouml:"\xd6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",THORN:"\xde",times:"\xd7",uacute:"\xfa",Uacute:"\xda",ucirc:"\xfb",Ucirc:"\xdb",ugrave:"\xf9",Ugrave:"\xd9",uml:"\xa8",uuml:"\xfc",Uuml:"\xdc",yacute:"\xfd",Yacute:"\xdd",yen:"\xa5",yuml:"\xff"},g={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"},v=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],y=String.fromCharCode,b={}.hasOwnProperty,_=function(e,t){return b.call(e,t)},w=function(e,t){if(!e)return t;var n,r={};for(n in t)r[n]=_(e,n)?e[n]:t[n];return r},A=function(e,t){var n="";return e>=55296&&e<=57343||e>1114111?(t&&S("character reference outside the permissible Unicode range"),"\ufffd"):_(g,e)?(t&&S("disallowed character reference"),g[e]):(t&&function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]==t)return!0;return!1}(v,e)&&S("disallowed character reference"),e>65535&&(n+=y((e-=65536)>>>10&1023|55296),e=56320|1023&e),n+=y(e))},x=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},k=function(e){return"&#"+e+";"},S=function(e){throw Error("Parse error: "+e)},E=function(e,t){(t=w(t,E.options)).strict&&h.test(e)&&S("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,u=t.allowUnsafeSymbols,d=t.decimal?k:x,p=function(e){return d(e.charCodeAt(0))};return n?(e=e.replace(o,function(e){return r&&_(l,e)?"&"+l[e]+";":p(e)}),r&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),r&&(e=e.replace(a,function(e){return"&"+l[e]+";"}))):r?(u||(e=e.replace(c,function(e){return"&"+l[e]+";"})),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(a,function(e){return"&"+l[e]+";"})):u||(e=e.replace(c,p)),e.replace(i,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return d(1024*(t-55296)+n-56320+65536)}).replace(s,p)};E.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function(e,t){var n=(t=w(t,T.options)).strict;return n&&d.test(e)&&S("malformed character reference"),e.replace(p,function(e,r,i,o,s,a,l,c,u){var d,h,p,g,v,y;return r?f[v=r]:i?(v=i,(y=o)&&t.isAttributeValue?(n&&"="==y&&S("`&` did not start a character reference"),e):(n&&S("named character reference was not terminated by a semicolon"),m[v]+(y||""))):s?(p=s,h=a,n&&!h&&S("character reference was not terminated by a semicolon"),d=parseInt(p,10),A(d,n)):l?(g=l,h=c,n&&!h&&S("character reference was not terminated by a semicolon"),d=parseInt(g,16),A(d,n)):(n&&S("named character reference was not terminated by a semicolon"),e)})};T.options={isAttributeValue:!1,strict:!1};var D={version:"1.2.0",encode:E,decode:T,escape:function(e){return e.replace(c,function(e){return u[e]})},unescape:T};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return D});else if(t&&!t.nodeType)if(n)n.exports=D;else for(var C in D)_(D,C)&&(t[C]=D[C]);else e.he=D}(this),function(){var e={dev:!1};e.tooltip=e.tooltip||{},e.utils=e.utils||{},e.models=e.models||{},e.charts={},e.logs={},e.dom={},"undefined"!=typeof module&&"undefined"!=typeof exports&&"undefined"==typeof d3&&(d3=require("d3")),e.dispatch=d3.dispatch("start","end"),d3.functor=function(e){return"function"==typeof e?e:function(){return e}},d3.rebind=function(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}},Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),e.dev&&(e.dispatch.on("start",function(t){e.logs.startTime=+new Date}),e.dispatch.on("end",function(t){e.logs.endTime=+new Date,e.logs.totalTime=e.logs.endTime-e.logs.startTime,e.log("total",e.logs.totalTime)})),e.log=function(){return e.dev&&window.console&&console.log&&console.log.apply?console.log.apply(console,arguments):e.dev&&window.console&&"function"==typeof console.log&&Function.prototype.bind&&Function.prototype.bind.call(console.log,console).apply(console,arguments),arguments[arguments.length-1]},e.deprecated=function(e,t){console&&console.warn&&console.warn("nvd3 warning: `"+e+"` has been deprecated. ",t||"")},e.render=function(t){t=t||1,e.render.active=!0,e.dispatch.call("start");var n=function(){for(var r,i,o=0;o<t&&(i=e.render.queue[o]);o++)r=i.generate(),typeof i.callback==typeof Function&&i.callback(r);e.render.queue.splice(0,o),e.render.queue.length?setTimeout(n):(e.dispatch.call("end"),e.render.active=!1)};setTimeout(n)},e.render.active=!1,e.render.queue=[],e.addGraph=function(t){typeof arguments[0]==typeof Function&&(t={generate:arguments[0],callback:arguments[1]}),e.render.queue.push(t),e.render.active||e.render()},"undefined"!=typeof module&&"undefined"!=typeof exports&&(module.exports=e),"undefined"!=typeof window&&(window.nv=e),e.dom.write=function(e){return void 0!==window.fastdom?fastdom.mutate(e):e()},e.dom.read=function(e){return void 0!==window.fastdom?fastdom.measure(e):e()};var t={};setCoordinates=function(e,n){t.mouseX=e,t.mouseY=n},getCoordinates=function(e,n){return t},getInterpolationType=function(e){if(!e)return d3.curveLinear;switch(e){case"linear":return d3.curveLinear;case"cardinal":return d3.curveCatmullRom;case"step":return d3.curveStep}},e.interactiveGuideline=function(){"use strict";var t={left:0,top:0},n=null,r=null,i=d3.scaleLinear(),o=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick","elementMouseDown","elementMouseUp"),s=!0,a=null,l=e.models.tooltip(),c=window.ActiveXObject;function u(d){d.each(function(d){var h=d3.select(this),p=n||960,f=r||400;function m(e){var n=e.pageX-this.getBoundingClientRect().left-window.pageXOffset,r=e.pageY-this.getBoundingClientRect().top-window.pageYOffset,s=!0,a=!1;if(c&&(n=e.offsetX,r=e.offsetY,"svg"!==e.target.tagName&&(s=!1),e.target.className.baseVal.match("nv-legend")&&(a=!0)),setCoordinates(e.pageX,e.pageY),s&&(n-=t.left,r-=t.top),"mouseout"===e.type||n<0||r<0||n>p||r>f||void 0===e.target||a){if(c&&e.target&&(void 0===e.target.className||e.target.className.match(l.nvPointerEventsClass)))return;return o.call("elementMouseout",this,{mouseX:n,mouseY:r}),u.renderGuideLine(null),void l.hidden(!0)}l.hidden(!1);var d=void 0;if("function"==typeof i.rangeBands){var h=d3.bisect(i.range(),n)-1;if(!(i.range()[h]+i.rangeBand()>=n))return o.call("elementMouseout",this,{mouseX:n,mouseY:r}),u.renderGuideLine(null),void l.hidden(!0);d=i.domain()[d3.bisect(i.range(),n)-1]}else d=i.invert(n);"mousemove"===e.type&&o.call("elementMousemove",this,{mouseX:n,mouseY:r,pointXValue:d}),"dblclick"===e.type&&o.call("elementDblclick",this,{mouseX:n,mouseY:r,pointXValue:d}),"click"===e.type&&o.call("elementClick",this,{mouseX:n,mouseY:r,pointXValue:d}),"mousedown"===e.type&&o.call("elementMouseDown",this,{mouseX:n,mouseY:r,pointXValue:d}),"mouseup"===e.type&&o.call("elementMouseUp",this,{mouseX:n,mouseY:r,pointXValue:d}),"touchmove"!==e.type||l.hidden(!0)}d3.select(this).selectAll("g.nv-wrap.nv-interactiveLineLayer").data([d]).enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer").append("g").attr("class","nv-interactiveGuideLine"),a&&(a.on("touchmove",m).on("mousemove",m,!0).on("mouseout",m,!0).on("mousedown",m,!0).on("mouseup",m,!0).on("dblclick",m).on("click",m),u.guideLine=null,u.renderGuideLine=function(t){s&&h.select(".nv-interactiveGuideLine").selectAll("line").data(null!=t?[e.utils.NaNtoZero(t)]:[],String).join(e=>e.append("line").attr("class","nv-guideline"),e=>e,e=>e.remove()).attr("x1",function(e){return e}).attr("x2",function(e){return e}).attr("y1",f).attr("y2",0)})})}return l.duration(0).hideDelay(0).hidden(!1),u.dispatch=o,u.tooltip=l,u.margin=function(e){return arguments.length?(t.top=void 0!==e.top?e.top:t.top,t.left=void 0!==e.left?e.left:t.left,u):t},u.width=function(e){return arguments.length?(n=e,u):n},u.height=function(e){return arguments.length?(r=e,u):r},u.xScale=function(e){return arguments.length?(i=e,u):i},u.showGuideLine=function(e){return arguments.length?(s=e,u):s},u.svgContainer=function(e){return arguments.length?(a=e,u):a},u},e.interactiveBisect=function(e,t,n){"use strict";if(!(e instanceof Array))return null;r="function"!=typeof n?function(e){return e.x}:n;var r,i=d3.bisector(function(e,t){return r(e)-t}).left,o=d3.max([0,i(e,t)-1]),s=r(e[o]);if(void 0===s&&(s=o),s===t)return o;var a=d3.min([o+1,e.length-1]),l=r(e[a]);return void 0===l&&(l=a),Math.abs(l-t)>=Math.abs(s-t)?o:a},e.nearestValueIndex=function(e,t,n){"use strict";var r=1/0,i=null;return e.forEach(function(e,o){var s=Math.abs(t-e);null!=e&&s<=r&&s<n&&(r=s,i=o)}),i},e.models.tooltip=function(){"use strict";var t="nvtooltip-"+Math.floor(1e5*Math.random()),n=null,r="w",i=25,o=0,s=null,a=!0,l=200,c=null,u={left:null,top:null},d=!0,h=100,p=(d3.transition().delay(l).duration(0),!0),f="nv-pointer-events-none",m=function(e,t,n){return e},g=function(e){return e},v=function(e,t){return e},y=function(e,t){if(null===e)return"";var n=d3.select(document.createElement("table"));p&&n.selectAll("thead").data([e]).enter().append("thead").append("tr").append("td").attr("colspan",3).append("strong").classed("x-value",!0).html(g(e.value));var r=n.selectAll("tbody").data([e]).enter().append("tbody").selectAll("tr").data(function(e){return e.series}).enter().append("tr").classed("highlight",function(e){return e.highlight});r.append("td").classed("legend-color-guide",!0).append("div").style("background-color",function(e){return e.color}),r.append("td").classed("key",!0).classed("total",function(e){return!!e.total}).html(function(e,t){return v(e.key,t)}),r.append("td").classed("value",!0).html(function(e,t){return m(e.value,t,e)}),r.filter(function(e,t){return void 0!==e.percent}).append("td").classed("percent",!0).html(function(e,t){return"("+d3.format(".0%")(e.percent)+")"}),r.selectAll("td").each(function(e){if(e.highlight){var t=d3.scaleLinear().domain([0,1]).range(["#fff",e.color]);d3.select(this).style("border-bottom-color",t(.6)).style("border-top-color",t(.6))}});var i=n.node().outerHTML;return void 0!==e.footer&&(i+="<div class='footer'>"+e.footer+"</div>"),i},b=function(){var e=getCoordinates(),t={left:e.mouseX,top:e.mouseY};if("none"!=getComputedStyle(document.body).transform){var n=document.body.getBoundingClientRect();t.left-=n.left,t.top-=n.top}return t},_=function(e){var t,n,o,s=c.node()?c.node().offsetHeight:0,a=c.node()?c.node().offsetWidth:0,l=document.documentElement.clientWidth;switch(r){case"e":t=-a-i,n=-s/2,e.left+t<0&&(t=i),(o=e.top+n)<0&&(n-=o);break;case"w":t=i,n=-s/2,e.left+t+a>l&&(t=-a-i),(o=e.top+n)<0&&(n-=o);break;case"n":t=-a/2-5,n=i,(o=e.left+t)<0&&(t-=o),(o=e.left+t+a)>l&&(t-=o-l);break;case"s":t=-a/2,n=-s-i,e.top+n<0&&(n=i),(o=e.left+t)<0&&(t-=o),(o=e.left+t+a)>l&&(t-=o-l);break;case"center":t=-a/2,n=-s/2;break;default:t=0,n=0}return{left:t,top:n}},w=function(){e.dom.read(function(){let e=b(),t=_(e),n=e.left+t.left,r=e.top+t.top;if(a)c.interrupt().transition().delay(l).duration(0).style("opacity",0);else if(c){let e="translate("+u.left+"px, "+u.top+"px)",t="translate("+Math.round(n)+"px, "+Math.round(r)+"px)",i=d3.interpolateString(e,t),o=.1>parseFloat(c.style.opacity),s=d3.transition().duration(o?0:h).ease(d3.easeLinear);c.interrupt().transition(s).styleTween("transform",function(){return i},"important").styleTween("-webkit-transform",function(){return i}).style("-ms-transform",t).style("opacity",1)}u.left=n,u.top=r})};function A(){if(d&&function(t){if(t&&t.series){if(e.utils.isArray(t.series))return!0;if(e.utils.isObject(t.series))return t.series=[t.series],!0}return!1}(n))return e.dom.write(function(){c&&c.node()||((c=d3.select(document.body).selectAll("#"+t).data([1])).enter().append("div").attr("class","nvtooltip "+(s||"xy-tooltip")).attr("id",t).style("top",0).style("left",0).style("opacity",0).style("position","absolute").selectAll("div, table, td, tr").classed(f,!0).classed(f,!0),c.exit().remove());var e=y(n,c.node());e&&c.node()&&(c.node().innerHTML=e),w()}),A}return A.nvPointerEventsClass=f,A.options=e.utils.optionsFunc.bind(A),A._options=Object.create({},{duration:{get:function(){return h},set:function(e){h=e}},gravity:{get:function(){return r},set:function(e){r=e}},distance:{get:function(){return i},set:function(e){i=e}},snapDistance:{get:function(){return o},set:function(e){o=e}},classes:{get:function(){return s},set:function(e){s=e}},enabled:{get:function(){return d},set:function(e){d=e}},hideDelay:{get:function(){return l},set:function(e){l=e,d3.transition().delay(l).duration(0)}},contentGenerator:{get:function(){return y},set:function(e){y=e}},valueFormatter:{get:function(){return m},set:function(e){m=e}},headerFormatter:{get:function(){return g},set:function(e){g=e}},keyFormatter:{get:function(){return v},set:function(e){v=e}},headerEnabled:{get:function(){return p},set:function(e){p=e}},position:{get:function(){return b},set:function(e){b=e}},chartContainer:{get:function(){return document.body},set:function(t){e.deprecated("chartContainer","feature removed after 1.8.3")}},fixedTop:{get:function(){return null},set:function(t){e.deprecated("fixedTop","feature removed after 1.8.1")}},offset:{get:function(){return{left:0,top:0}},set:function(t){e.deprecated("offset","use chart.tooltip.distance() instead")}},hidden:{get:function(){return a},set:function(e){a!=e&&(a=!!e,A())}},data:{get:function(){return n},set:function(e){e.point&&(e.value=e.point.x,e.series=e.series||{},e.series.value=e.point.y,e.series.color=e.point.color||e.series.color),n=e}},node:{get:function(){return c.node()},set:function(e){}},id:{get:function(){return t},set:function(e){}}}),e.utils.initOptions(A),A},e.utils.windowSize=function(){var e={width:640,height:480};return window.innerWidth&&window.innerHeight?(e.width=window.innerWidth,e.height=window.innerHeight,e):"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth?(e.width=document.documentElement.offsetWidth,e.height=document.documentElement.offsetHeight,e):(document.body&&document.body.offsetWidth&&(e.width=document.body.offsetWidth,e.height=document.body.offsetHeight),e)},e.utils.isArray=Array.isArray,e.utils.isObject=function(e){return null!==e&&"object"==typeof e},e.utils.isFunction=function(e){return"function"==typeof e},e.utils.isDate=function(e){return"[object Date]"===toString.call(e)},e.utils.isNumber=function(e){return!isNaN(e)&&"number"==typeof e},e.utils.windowResize=function(t){return window.addEventListener?window.addEventListener("resize",t):e.log("ERROR: Failed to bind to window.resize with: ",t),{callback:t,clear:function(){window.removeEventListener("resize",t)}}},e.utils.getColor=function(t){if(void 0===t||e.utils.isArray(t)&&0===t.length)return e.utils.defaultColor();if(!e.utils.isArray(t))return t;var n=[];if(d3.min(t)===t[0]){n.push(0);for(var r=1;r<t.length-1;r++)n.push(r);n.push(t.length-1)}else{n.push(t.length-1);for(r=t.length-2;r>0;r--)n.push(r);n.push(0)}var i=d3.scaleOrdinal().range(t);return function(e,t){return e.color||i(void 0===t?e:t)}},e.utils.defaultColor=function(){return e.utils.getColor(d3.scaleOrdinal(d3.schemeSet3).range())},e.utils.customTheme=function(t,n,r){n=n||function(e){return e.key};var i=(r=r||d3.scaleOrdinal(d3.schemeAccent).range()).length;return function(o,s){var a=n(o);return e.utils.isFunction(t[a])?t[a]():void 0!==t[a]?t[a]:(i||(i=r.length),r[i-=1])}},e.utils.pjax=function(t,n){var r=function(r){d3.html(r,function(r){var i=d3.select(n).node();i.parentNode.replaceChild(d3.select(r).select(n).node(),i),e.utils.pjax(t,n)})};d3.selectAll(t).on("click",function(e){history.pushState(this.href,this.textContent,this.href),r(this.href),e.preventDefault()}),d3.select(window).on("popstate",function(e){e.state&&r(e.state)})},e.utils.calcApproxTextWidth=function(t){if(e.utils.isFunction(t.style)&&e.utils.isFunction(t.text)){var n=parseInt(t.style("font-size").replace("px",""),10),r=t.text().length;return e.utils.NaNtoZero(r*n*.5)}return 0},e.utils.NaNtoZero=function(t){return!e.utils.isNumber(t)||isNaN(t)||null===t||t===1/0||t===-1/0?0:t},d3.selection.prototype.watchTransition=function(e){var t=[this].concat([].slice.call(arguments,1));return e.transition.apply(e,t)},e.utils.renderWatch=function(t,n){if(!(this instanceof e.utils.renderWatch))return new e.utils.renderWatch(t,n);var r=void 0!==n?n:250,i=[],o=this;this.models=function(e){return(e=[].slice.call(arguments,0)).forEach(function(e){e.__rendered=!1,function(e){e.dispatch.on("renderEnd",function(t){e.__rendered=!0,o.renderEnd("model")})}(e),0>i.indexOf(e)&&i.push(e)}),this},this.reset=function(e){void 0!==e&&(r=e),i=[]},this.transition=function(e,t,n){if(n=(t=arguments.length>1?[].slice.call(arguments,1):[]).length>1?t.pop():void 0!==r?r:250,this.t=d3.transition().duration(n).ease(d3.easeLinear),e.__rendered=!1,0>i.indexOf(e)&&i.push(e),0===n)return e.__rendered=!0,e.delay=function(){return this},e.duration=function(){return this},e;0===e.length||e.filter(function(e,t){return void 0!==e&&!e.length})?e.__rendered=!0:e.__rendered=!1;var s=0;return e.transition(this.t).each(function(){++s}).on("end",function(n,r){0==--s&&(e.__rendered=!0,o.renderEnd.apply(this,t))})},this.renderEnd=function(){i.every(function(e){return e.__rendered})&&(i.forEach(function(e){e.__rendered=!1}),t.apply("renderEnd",this,arguments))}},e.utils.deepExtend=function(t){(arguments.length>1?[].slice.call(arguments,1):[]).forEach(function(n){for(var r in n){var i=e.utils.isArray(t[r]),o=e.utils.isObject(t[r]),s=e.utils.isObject(n[r]);o&&!i&&s?e.utils.deepExtend(t[r],n[r]):t[r]=n[r]}})},e.utils.state=function(){if(!(this instanceof e.utils.state))return new e.utils.state;var t={},n=function(){},r=function(){return{}},i=null;this.dispatch=d3.dispatch("change","set"),this.dispatch.on("set",function(e){n(e,!0)}),this.getter=function(e){return r=e,this},this.setter=function(e,t){return t||(t=function(){}),n=function(n,r){e(n),r&&t()},this},this.init=function(t){i=i||{},e.utils.deepExtend(i,t)};var o=function(){var e=r();if(JSON.stringify(e)===JSON.stringify(t))return!1;for(var n in e)void 0===t[n]&&(t[n]={}),t[n]=e[n];return!0};this.update=function(){i&&(n(i,!1),i=null),o.call(this)&&this.dispatch.call("change",this,t)}},e.utils.optionsFunc=function(t){return t&&new Map(t).each(((t,n)=>{e.utils.isFunction(this[t])&&this[t](n)}).bind(this)),this},e.utils.calcTicksX=function(t,n){for(var r=1,i=0;i<n.length;i+=1){var o=n[i]&&n[i].values?n[i].values.length:0;r=o>r?o:r}return e.log("Requested number of ticks: ",t),e.log("Calculated max values to be: ",r),t=Math.floor(t=(t=t>r?t=r-1:t)<1?1:t),e.log("Calculating tick count as: ",t),t},e.utils.calcTicksY=function(t,n,r){if(!r)return e.utils.calcTicksX(t,n);for(var i=1,o=0;o<n.length;o+=1)for(var s,a=n[o]&&n[o].values?n[o].values:[],l=0;l<a.length;l+=1)i=(s=a[l]&&r(a[l])?r(a[l]):0)>i?s:i;return e.log("Requested number of ticks: ",t),e.log("Calculated max values to be: ",i),t=Math.floor(t=(t=t>i?i-1:t)<1?1:t),e.log("Calculating tick count as: ",t),t},e.utils.initOption=function(e,t){e._calls&&e._calls[t]?e[t]=e._calls[t]:(e[t]=function(n){return arguments.length?(e._overrides[t]=!0,e._options[t]=n,e):e._options[t]},e["_"+t]=function(n){return arguments.length?(e._overrides[t]||(e._options[t]=n),e):e._options[t]})},e.utils.initOptions=function(t){t._overrides=t._overrides||{};var n=Object.getOwnPropertyNames(t._options||{}),r=Object.getOwnPropertyNames(t._calls||{});for(var i in n=n.concat(r))e.utils.initOption(t,n[i])},e.utils.inheritOptionsD3=function(t,n,r){t._d3options=r.concat(t._d3options||[]),t._d3options=(t._d3options||[]).filter(function(e,t,n){return n.indexOf(e)===t}),r.unshift(n),r.unshift(t),e.utils.rebind.apply(this,r)},e.utils.arrayUnique=function(e){return e.sort().filter(function(t,n){return!n||t!=e[n-1]})},e.utils.symbolMap=new Map,e.utils.typeMap=(new Map).set("circle",d3.symbolCircle).set("cross",d3.symbolCross).set("diamond",d3.symbolDiamond).set("square",d3.symbolSquare).set("star",d3.symbolStar).set("triangle-up",d3.symbolTriangle).set("wye",d3.symbolWye),e.utils.symbol=function(){var t,n=64;function r(r,i){var o=t.call(this,r,i),s=n.call(this,r,i);return void 0===e.utils.symbolMap.get(o)?d3.symbol().type(e.utils.typeMap.get(o)).size(s)():e.utils.symbolMap.get(o)(s)}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:function(){return e},r):t},r.size=function(e){return arguments.length?(n="function"==typeof e?e:function(){return e},r):n},r},e.utils.inheritOptions=function(t,n){var r=Object.getOwnPropertyNames(n._options||{}),i=Object.getOwnPropertyNames(n._calls||{}),o=n._inherited||[],s=n._d3options||[],a=r.concat(i).concat(o).concat(s);a.unshift(n),a.unshift(t),e.utils.rebind.apply(this,a),t._inherited=e.utils.arrayUnique(r.concat(i).concat(o).concat(r).concat(t._inherited||[])),t._d3options=e.utils.arrayUnique(s.concat(t._d3options||[]))},e.utils.rebind=function(t,n){for(var r,i=1,o=arguments.length;++i<o;)t[r=arguments[i]]=e.utils.d3_rebind(t,n,n[r]);return t},e.utils.d3_rebind=function(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}},e.utils.initSVG=function(e){e.classed("nvd3-svg",!0)},e.utils.sanitizeHeight=function(e,t){return e||parseInt(t.style("height"),10)||400},e.utils.sanitizeWidth=function(e,t){return e||parseInt(t.style("width"),10)||960},e.utils.availableHeight=function(t,n,r){return Math.max(0,e.utils.sanitizeHeight(t,n)-r.top-r.bottom)},e.utils.availableWidth=function(t,n,r){return Math.max(0,e.utils.sanitizeWidth(t,n)-r.left-r.right)},e.utils.noData=function(t,n){var r=t.options(),i=r.margin(),o=r.noData(),s=e.utils.availableHeight(null,n,i),a=e.utils.availableWidth(null,n,i),l=i.left+a/2,c=i.top+s/2;n.selectAll("g").remove();var u=n.selectAll(".nv-noData").data(null==o?["No Data Available."]:[o]);u.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),u.attr("x",l).attr("y",c).text(function(e){return e})},e.utils.wrapTicks=function(e,t){e.each(function(){for(var e,n=d3.select(this),r=n.text().split(/\s+/).reverse(),i=[],o=0,s=n.attr("y"),a=parseFloat(n.attr("dy")),l=n.text(null).append("tspan").attr("x",0).attr("y",s).attr("dy",a+"em");e=r.pop();)i.push(e),l.text(i.join(" ")),l.node().getComputedTextLength()>t&&(i.pop(),l.text(i.join(" ")),i=[e],l=n.append("tspan").attr("x",0).attr("y",s).attr("dy",1.1*++o+a+"em").text(e))})},e.utils.arrayEquals=function(t,n){if(t===n)return!0;if(!t||!n||t.length!=n.length)return!1;for(var r=0,i=t.length;r<i;r++)if(t[r]instanceof Array&&n[r]instanceof Array){if(!e.arrayEquals(t[r],n[r]))return!1}else if(t[r]!=n[r])return!1;return!0},e.utils.pointIsInArc=function(e,t,n){var r=n.innerRadius()(t),i=n.outerRadius()(t),o=n.startAngle()(t),s=n.endAngle()(t),a=e.x*e.x+e.y*e.y,l=Math.atan2(e.x,-e.y);return l=l<0?l+2*Math.PI:l,r*r<=a&&a<=i*i&&o<=l&&l<=s},e.models.axis=function(t,n){"use strict";var r,i,o=d3.scaleOrdinal(),s={top:0,right:0,bottom:0,left:0},a=75,l=60,c=null,u=!0,d=0,h=!0,p=!1,f=!1,m=null,g=0,v=void 0,y=250,b=d3.dispatch("renderEnd");t.tickFormat(e=>e);var _=e.utils.renderWatch(b,y);function w(l){return _.reset(),l.each(function(l){var y,b,w,A=d3.select(this);e.utils.initSVG(A);var x=A.selectAll("g.nv-wrap.nv-axis").data([l]),k=x.enter().append("g").attr("class","nvd3 nv-wrap nv-axis"),S=(k=k.merge(x)).append("g");S.select("g"),S=k.select("g"),null!==m?t.ticks(m):("top"===n||"bottom"===n)&&t.ticks(Math.abs(o.range()[1]-o.range()[0])/100),S.watchTransition(_,"axis").call(t),r=r||t.scale();var E=t.tickFormat();null==E&&(E=r.tickFormat()),S.attr("fill",""),S.attr("font-size",v),S.attr("font-family","");var T=S.selectAll("text.nv-axislabel").data([c||null]);switch(T.exit().remove(),void 0!==v&&S.selectAll("g").select("text").style("font-size",v),n){case"top":y=g+36;var D=T.enter().append("text").attr("class","nv-axislabel");if(D=A.selectAll("g.nv-wrap.nv-axis").selectAll("text.nv-axislabel"),w=0,1===o.range().length?w=f?2*o.range()[0]+o.bandwidth():0:2===o.range().length?w=f?o.range()[0]+o.range()[1]+o.bandwidth():o.range()[1]:o.range().length>2&&(w=o.range()[o.range().length-1]+(o.range()[1]-o.range()[0])),D.attr("text-anchor","middle").attr("y",-y).attr("x",w/2),u){b=S.enter().append("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" ")).merge(S);var C=(b=A.selectAll("g.nv-wrap.nv-axis").selectAll("g.nv-axisMaxMin").data(o.domain()).join("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" "))).select("text");C.empty()&&b.append("text"),b.exit().remove(),b.attr("transform",function(t,n){return"translate("+e.utils.NaNtoZero(o(t))+",0)"}).select("text").attr("dy","-0.5em").attr("y",-t.tickPadding()).attr("text-anchor","middle").text(function(e,t){var n=(i||E)(e);return(""+n).match("NaN")?"":n}),b.watchTransition(_,"min-max top").attr("transform",function(t,n){return"translate("+e.utils.NaNtoZero(o.range()[n])+",0)"})}break;case"bottom":y=g+36;var M=30,I=0,O=S.selectAll("g").select("text"),L="";if(d%360){O.attr("transform",""),O.each(function(e,t){var n=this.getBoundingClientRect(),r=n.width;I=n.height,r>M&&(M=r)}),L="rotate("+d+" 0,"+(I/2+t.tickPadding())+")";var N=Math.abs(Math.sin(d*Math.PI/180));y=(N?N*M:M)+30,O.attr("transform",L).style("text-anchor",d%360>0?"start":"end")}else p?O.attr("transform",function(e,t){return"translate(0,"+(t%2==0?"0":"12")+")"}):O.attr("transform","translate(0,0)");if(D=T.enter().append("text").attr("class","nv-axislabel"),D=A.selectAll("g.nv-wrap.nv-axis").selectAll("text.nv-axislabel"),w=0,1===o.range().length?w=f?2*o.range()[0]+o.bandwidth():0:2===o.range().length?w=f?o.range()[0]+o.range()[1]+o.bandwidth():o.range()[1]:o.range().length>2&&(w=o.range()[o.range().length-1]+(o.range()[1]-o.range()[0])),D.attr("text-anchor","middle").attr("y",y).attr("x",w/2),u){b=S.enter().append("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" ")).merge(S);C=(b=A.selectAll("g.nv-wrap.nv-axis").selectAll("g.nv-axisMaxMin").data([o.domain()[0],o.domain()[o.domain().length-1]]).join("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" "))).select("text");C.empty()&&b.append("text"),b.exit().remove(),b.attr("transform",function(t,n){return"translate("+e.utils.NaNtoZero(o(t)+(f?o.bandwidth()/2:0))+",0)"}).select("text").attr("dy",".71em").attr("y",t.tickPadding()).attr("transform",L).style("text-anchor",d?d%360>0?"start":"end":"middle").text(function(e,t){var n=(i||E)(e);return(""+n).match("NaN")?"":n}),b.watchTransition(_,"min-max bottom").attr("transform",function(t,n){return"translate("+e.utils.NaNtoZero(o(t)+(f?o.bandwidth()/2:0))+",0)"})}break;case"right":if(D=T.enter().append("text").attr("class","nv-axislabel"),(D=A.selectAll("g.nv-wrap.nv-axis").selectAll("text.nv-axislabel")).style("text-anchor",h?"middle":"begin").attr("transform",h?"rotate(90)":"").attr("y",h?12-Math.max(s.right,a)-(g||0):-10).attr("x",h?d3.max(o.range())/2:t.tickPadding()),u){b=S.enter().append("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" ")).merge(S);C=(b=A.selectAll("g.nv-wrap.nv-axis").selectAll("g.nv-axisMaxMin").data(o.domain()).join("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" "))).select("text");C.empty()&&b.append("text").style("opacity",0),b.exit().remove(),b.attr("transform",function(t,n){return"translate(0,"+e.utils.NaNtoZero(o(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",t.tickPadding()).style("text-anchor","start").text(function(e,t){var n=(i||E)(e);return(""+n).match("NaN")?"":n}),b.watchTransition(_,"min-max right").attr("transform",function(t,n){return"translate(0,"+e.utils.NaNtoZero(o.range()[n])+")"}).select("text").style("opacity",1)}break;case"left":if(D=T.enter().append("text").attr("class","nv-axislabel"),(D=A.selectAll("g.nv-wrap.nv-axis").selectAll("text.nv-axislabel")).style("text-anchor",h?"middle":"end").attr("transform",h?"rotate(-90)":"").attr("y",h?25-Math.max(s.left,a)-(g||0):-10).attr("x",h?-d3.max(o.range())/2:-t.tickPadding()),u){b=S.enter().append("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" ")).merge(S);C=(b=A.selectAll("g.nv-wrap.nv-axis").selectAll("g.nv-axisMaxMin").data(o.domain()).join("g").attr("class",(e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" "))).select("text");C.empty()&&b.append("text").style("opacity",0),b.exit().remove(),b.attr("transform",function(t,n){return"translate(0,"+e.utils.NaNtoZero(r(t))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",-t.tickPadding()).attr("text-anchor","end").text(function(e,t){var n=(i||E)(e);return(""+n).match("NaN")?"":n}),b.watchTransition(_,"min-max right").attr("transform",function(t,n){return"translate(0,"+e.utils.NaNtoZero(o.range()[n])+")"}).select("text").style("opacity",1)}}if(D.text(function(e){return e}),u&&("left"===n||"right"===n)&&(S.selectAll("g").each(function(e,t){d3.select(this).select("text").attr("opacity",1),(o(e)<o.range()[1]+10||o(e)>o.range()[0]-10)&&((e>1e-10||e<-1e-10)&&d3.select(this).attr("opacity",0),d3.select(this).select("text").attr("opacity",0))}),o.domain()[0]==o.domain()[1]&&0==o.domain()[0]&&x.selectAll("g.nv-axisMaxMin").style("opacity",function(e,t){return t?0:1})),u&&("top"===n||"bottom"===n)){var P=[];b.each(function(e,t){try{t?P.push(o(e)-this.getBoundingClientRect().width-4):P.push(o(e)+this.getBoundingClientRect().width+4)}catch(n){t?P.push(o(e)-4):P.push(o(e)+4)}}),S.selectAll("g").each(function(e,t){(o(e)<P[0]||o(e)>P[1])&&(e>1e-10||e<-1e-10?d3.select(this).remove():d3.select(this).select("text").remove())})}S.selectAll(".tick").filter(function(e){return!parseFloat(Math.round(1e5*e)/1e6)&&void 0!==e}).classed("zero",!0),S.selectAll(".tick text").each(function(e){var t=d3.select(this);setTimeout(function(){if(t.node().getComputedTextLength()>120){var e=t.text().substring(0,10)+"...";t.text(e)}},100)}),r=o.copy()}),_.renderEnd("axis immediate"),w}return w.axis=t,w.dispatch=b,w.options=e.utils.optionsFunc.bind(w),w._options=Object.create({},{axisLabelDistance:{get:function(){return g},set:function(e){g=e}},staggerLabels:{get:function(){return p},set:function(e){p=e}},rotateLabels:{get:function(){return d},set:function(e){d=e}},rotateYLabel:{get:function(){return h},set:function(e){h=e}},showMaxMin:{get:function(){return u},set:function(e){u=e}},axisLabel:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return l},set:function(e){l=e}},ticks:{get:function(){return m},set:function(e){m=e}},width:{get:function(){return a},set:function(e){a=e}},fontSize:{get:function(){return v},set:function(e){v=e}},tickFormatMaxMin:{get:function(){return i},set:function(e){i=e}},margin:{get:function(){return s},set:function(e){s.top=void 0!==e.top?e.top:s.top,s.right=void 0!==e.right?e.right:s.right,s.bottom=void 0!==e.bottom?e.bottom:s.bottom,s.left=void 0!==e.left?e.left:s.left}},duration:{get:function(){return y},set:function(e){y=e,_.reset(y)}},scale:{get:function(){return o},set:function(n){o=n,t.scale(o),f="function"==typeof o.rangeBands,e.utils.inheritOptionsD3(w,o,["domain","range"])}}}),e.utils.initOptions(w),e.utils.inheritOptionsD3(w,t,["tickValues","tickSubdivide","tickSizeInner","tickSizeOuter","tickPadding","tickFormat"]),e.utils.inheritOptionsD3(w,o,["domain","range"]),w},e.models.boxPlot=function(){"use strict";var t,n,r,i,o,s,a={top:0,right:0,bottom:0,left:0},l=960,c=500,u=Math.floor(1e4*Math.random()),d=d3.scaleBand(),h=d3.scaleLinear(),p=function(e){return e.label},f=function(e){return e.values.Q1},m=function(e){return e.values.Q2},g=function(e){return e.values.Q3},v=function(e){return e.values.whisker_low},y=function(e){return e.values.whisker_high},b=function(e){return e.color},_=function(e){return e.values.outliers},w=function(e,t,n){return e},A=function(e,t,n){return e},x=function(e,t,n){},k=e.utils.defaultColor(),S=null,E=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),T=250,D=null,C=e.utils.renderWatch(E,T);function M(u){return C.reset(),u.each(function(u){var M=l-a.left-a.right,I=c-a.top-a.bottom;S=d3.select(this),e.utils.initSVG(S),d.domain(r||u.map(function(e,t){return p(e,t)})).range(i||[0,M],.1);var O=[];if(!o){var L=[];u.forEach(function(e,t){var n=f(e),r=g(e),i=v(e),o=y(e),s=_(e);s&&s.forEach(function(e,t){L.push(w(e,t,void 0))}),i&&L.push(i),n&&L.push(n),r&&L.push(r),o&&L.push(o)}),O=[d3.min(L),d3.max(L)]}h.domain(o||O),h.range(s||[I,0]),t=t||d,n=n||h.copy().range([h(0),h(0)]);var N=S.selectAll("g.nv-wrap").data([u]).enter().append("g").attr("class","nvd3 nv-wrap");N.attr("transform","translate("+a.left+","+a.top+")");var P=N.selectAll(".nv-boxplot").data(function(e){return e}),R=P.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);R.attr("class","nv-boxplot").attr("transform",function(e,t,n){return"translate("+(d(p(e,t))+.05*d.bandwidth())+", 0)"}).classed("hover",function(e){return e.hover}),R.watchTransition(C,"nv-boxplot: boxplots").style("stroke-opacity",1).style("fill-opacity",.75).delay(function(e,t){return t*T/u.length}).attr("transform",function(e,t){return"translate("+(d(p(e,t))+.05*d.bandwidth())+", 0)"}),P.exit().remove(),R.each(function(e,t){var n=d3.select(this);[v,y].forEach(function(r){if(void 0!==r(e)&&null!==r(e)){var i=r===v?"low":"high";n.append("line").style("stroke",b(e)||k(e,t)).attr("class","nv-boxplot-whisker nv-boxplot-"+i),n.append("line").style("stroke",b(e)||k(e,t)).attr("class","nv-boxplot-tick nv-boxplot-"+i)}})});var j=function(){return null===D?.9*d.bandwidth():Math.min(75,.9*d.bandwidth())},F=function(){return.45*d.bandwidth()-j()/2},B=function(){return.45*d.bandwidth()+j()/2};[v,y].forEach(function(e){var t=e===v?"low":"high",n=e===v?f:g;R.select("line.nv-boxplot-whisker.nv-boxplot-"+t).watchTransition(C,"nv-boxplot: boxplots").attr("x1",.45*d.bandwidth()).attr("y1",function(t,n){return h(e(t))}).attr("x2",.45*d.bandwidth()).attr("y2",function(e,t){return h(n(e))}),R.select("line.nv-boxplot-tick.nv-boxplot-"+t).watchTransition(C,"nv-boxplot: boxplots").attr("x1",F).attr("y1",function(t,n){return h(e(t))}).attr("x2",B).attr("y2",function(t,n){return h(e(t))})}),[v,y].forEach(function(e){var t=e===v?"low":"high";R.selectAll(".nv-boxplot-"+t).on("mouseover",function(t,n,r,i){setCoordinates(t.pageX,t.pageY),d3.select(this).classed("hover",!0),E.call("elementMouseover",this,{series:{key:e(n),color:b(n)||k(n,i)},e:t})}).on("mouseout",function(t,n,r,i){d3.select(this).classed("hover",!1),E.call("elementMouseout",this,{series:{key:e(n),color:b(n)||k(n,i)},e:t})}).on("mousemove",function(e,t,n){E.call("elementMousemove",this,{e:e})})}),R.append("rect").attr("class","nv-boxplot-box").on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0),E.call("elementMouseover",this,{key:p(t),value:p(t),series:[{key:"Q3",value:g(t),color:b(t)||k(t,n)},{key:"Q2",value:m(t),color:b(t)||k(t,n)},{key:"Q1",value:f(t),color:b(t)||k(t,n)}],data:t,index:t.index,e:e})}).on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1),E.call("elementMouseout",this,{key:p(t),value:p(t),series:[{key:"Q3",value:g(t),color:b(t)||k(t,n)},{key:"Q2",value:m(t),color:b(t)||k(t,n)},{key:"Q1",value:f(t),color:b(t)||k(t,n)}],data:t,index:t.index,e:e})}).on("mousemove",function(e,t,n){E.call("elementMousemove",this,{e:e})}).watchTransition(C,"nv-boxplot: boxes").attr("y",function(e,t){return h(g(e))}).attr("width",j).attr("x",F).attr("height",function(e,t){return Math.abs(h(g(e))-h(f(e)))||1}).style("fill",function(e,t){return b(e)||k(e,t)}).style("stroke",function(e,t){return b(e)||k(e,t)}),R.append("line").attr("class","nv-boxplot-median").watchTransition(C,"nv-boxplot: boxplots line").attr("x1",F).attr("y1",function(e,t){return h(m(e))}).attr("x2",B).attr("y2",function(e,t){return h(m(e))});var Y=R.selectAll(".nv-boxplot-outlier").data(function(e){return _(e)||[]});Y.enter().append("circle").style("fill",function(e,t,n){return x(e,t,n)||k(e,n)}).style("stroke",function(e,t,n){return x(e,t,n)||k(e,n)}).style("z-index",9e3).on("mouseover",function(e,t,n,r){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0),E.call("elementMouseover",this,{series:{key:A(t,n,r),color:x(t,n,r)||k(t,r)},e:e})}).on("mouseout",function(e,t,n,r){d3.select(this).classed("hover",!1),E.call("elementMouseout",this,{series:{key:A(t,n,r),color:x(t,n,r)||k(t,r)},e:e})}).on("mousemove",function(e,t,n){E.call("elementMousemove",this,{e:e})}),Y.attr("class","nv-boxplot-outlier"),Y.watchTransition(C,"nv-boxplot: nv-boxplot-outlier").attr("cx",.45*d.bandwidth()).attr("cy",function(e,t,n){return h(w(e,t,n))}).attr("r","3"),Y.exit().remove(),t=d.copy(),n=h.copy()}),C.renderEnd("nv-boxplot immediate"),M}return M.dispatch=E,M.options=e.utils.optionsFunc.bind(M),M._options=Object.create({},{width:{get:function(){return l},set:function(e){l=e}},height:{get:function(){return c},set:function(e){c=e}},maxBoxWidth:{get:function(){return D},set:function(e){D=e}},x:{get:function(){return p},set:function(e){p=e}},q1:{get:function(){return f},set:function(e){f=e}},q2:{get:function(){return m},set:function(e){m=e}},q3:{get:function(){return g},set:function(e){g=e}},wl:{get:function(){return v},set:function(e){v=e}},wh:{get:function(){return y},set:function(e){y=e}},itemColor:{get:function(){return b},set:function(e){b=e}},outliers:{get:function(){return _},set:function(e){_=e}},outlierValue:{get:function(){return w},set:function(e){w=e}},outlierLabel:{get:function(){return A},set:function(e){A=e}},outlierColor:{get:function(){return x},set:function(e){x=e}},xScale:{get:function(){return d},set:function(e){d=e}},yScale:{get:function(){return h},set:function(e){h=e}},xDomain:{get:function(){return r},set:function(e){r=e}},yDomain:{get:function(){return o},set:function(e){o=e}},xRange:{get:function(){return i},set:function(e){i=e}},yRange:{get:function(){return s},set:function(e){s=e}},id:{get:function(){return u},set:function(e){u=e}},y:{get:function(){return console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead."),{}},set:function(e){console.warn("BoxPlot 'y' chart option is deprecated. Please use model overrides instead.")}},margin:{get:function(){return a},set:function(e){a.top=void 0!==e.top?e.top:a.top,a.right=void 0!==e.right?e.right:a.right,a.bottom=void 0!==e.bottom?e.bottom:a.bottom,a.left=void 0!==e.left?e.left:a.left}},color:{get:function(){return k},set:function(t){k=e.utils.getColor(t)}},duration:{get:function(){return T},set:function(e){T=e,C.reset(T)}}}),e.utils.initOptions(M),M},e.models.boxPlotChart=function(){"use strict";var t,n,r=e.models.boxPlot(),i=e.models.axis(d3.axisBottom(d3.scaleBand()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s={top:15,right:10,bottom:50,left:60},a=null,l=null,c=e.utils.getColor(),u=!0,d=!0,h=!1,p=!1,f=e.models.tooltip(),m="No Data Available.",g=d3.dispatch("beforeUpdate","renderEnd"),v=250;d3.transition().duration(v).ease(d3.easeLinear);i.showMaxMin(!1).scale(),i.tickFormat(function(e){return e}),o.scale(),o.tickFormat(d3.format(",.1f")),f.duration(0);var y=e.utils.renderWatch(g,v);function b(c){return y.reset(),y.models(r),u&&y.models(i),d&&y.models(o),c.each(function(c){var f=d3.select(this);e.utils.initSVG(f);var y=(a||parseInt(f.style("width"))||960)-s.left-s.right,_=(l||parseInt(f.style("height"))||400)-s.top-s.bottom;if(b.update=function(){g.call("beforeUpdate",this),f.transition().duration(v).call(b)},b.container=this,!c||!c.length){var w=f.selectAll(".nv-noData").data([m]);return w.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),w.attr("x",s.left+y/2).attr("y",s.top+_/2).text(function(e){return e}),b}f.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale().clamp(!0);var A=f.selectAll("g.nv-wrap.nv-boxPlotWithAxes").data([c]),x=A.enter().append("g").attr("class","nvd3 nv-wrap nv-boxPlotWithAxes").append("g"),k=x.append("defs");A.select("g");var S=x.append("g").attr("class","nv-x nv-axis");S=f.selectAll("g.nv-wrap.nv-boxPlotWithAxes").select(".nv-x");var E=x.append("g").attr("class","nv-y nv-axis"),T=E.append("g").attr("class","nv-zeroLine").append("line"),D=x.append("g").attr("class","nv-barsWrap");if(x.attr("transform","translate("+s.left+","+s.top+")"),h&&E.attr("transform","translate("+y+",0)"),r.width(y).height(_),D.datum(c.filter(function(e){return!e.disabled})).transition().call(r),k.append("clipPath").attr("id","nv-x-label-clip-"+r.id()).append("rect").attr("width",t.bandwidth()*(p?2:1)).attr("height",16).attr("x",-t.bandwidth()/(p?1:2)),u){i.scale(t)._ticks(e.utils.calcTicksX(y/100,c)),i.tickSizeInner(-_),S.attr("transform","translate(0,"+n.range()[0]+")"),S.call(i);var C=S.select("g.nvd3.nv-wrap.nv-axis").selectAll("g");p&&C.selectAll("text").attr("transform",function(e,t,n){return"translate(0,"+(n%2==0?"5":"17")+")"})}d&&(o.scale(n)._ticks(Math.floor(_/36)),o.tickSizeInner(-y),E.call(o)),T.attr("x1",0).attr("x2",y).attr("y1",n(0)).attr("y2",n(0))}),y.renderEnd("nv-boxplot chart immediate"),b}return r.dispatch.on("elementMouseover.tooltip",function(e){f.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){f.data(e).hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(e){f()}),b.dispatch=g,b.boxplot=r,b.xAxis=i,b.yAxis=o,b.tooltip=f,b.options=e.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return a},set:function(e){a=e}},height:{get:function(){return l},set:function(e){l=e}},staggerLabels:{get:function(){return p},set:function(e){p=e}},showXAxis:{get:function(){return u},set:function(e){u=e}},showYAxis:{get:function(){return d},set:function(e){d=e}},tooltipContent:{get:function(){return f},set:function(e){f=e}},noData:{get:function(){return m},set:function(e){m=e}},margin:{get:function(){return s},set:function(e){s.top=void 0!==e.top?e.top:s.top,s.right=void 0!==e.right?e.right:s.right,s.bottom=void 0!==e.bottom?e.bottom:s.bottom,s.left=void 0!==e.left?e.left:s.left}},duration:{get:function(){return v},set:function(e){v=e,y.reset(v),d3.transition().duration(v).ease(d3.easeLinear),r.duration(v),i.duration(v),o.duration(v)}},color:{get:function(){return c},set:function(t){c=e.utils.getColor(t),r.color(c)}},rightAlignYAxis:{get:function(){return h},set:function(e){h=e,o.orient(e?"right":"left")}}}),e.utils.inheritOptions(b,r),e.utils.initOptions(b),b},e.models.bullet=function(){"use strict";var t={top:0,right:0,bottom:0,left:0},n="left",r=!1,i=function(e){return e.ranges},o=function(e){return e.markers?e.markers:[]},s=function(e){return e.markerLines?e.markerLines:[0]},a=function(e){return e.measures},l=function(e){return e.rangeLabels?e.rangeLabels:[]},c=function(e){return e.markerLabels?e.markerLabels:[]},u=function(e){return e.markerLineLabels?e.markerLineLabels:[]},d=function(e){return e.measureLabels?e.measureLabels:[]},h=[0],p=380,f=30,m=null,g=null,v=e.utils.getColor(["#1f77b4"]),y=d3.dispatch("elementMouseover","elementMouseout","elementMousemove"),b=["Maximum","Mean","Minimum"],_=["Max","Avg","Min"],w=1e3;d3.transition().duration(w).ease(d3.easeLinear);function A(e,t){var n=e.slice();e.sort(function(e,r){var i=n.indexOf(e),o=n.indexOf(r);return d3.descending(t[i],t[o])})}function x(n){return n.each(function(n,g){var w=p-t.left-t.right,x=f-t.top-t.bottom;m=d3.select(this),e.utils.initSVG(m);var k=i.call(this,n,g).slice(),S=o.call(this,n,g).slice(),E=s.call(this,n,g).slice(),T=a.call(this,n,g).slice(),D=l.call(this,n,g).slice(),C=c.call(this,n,g).slice(),M=u.call(this,n,g).slice(),I=d.call(this,n,g).slice();A(D,k),A(C,S),A(M,E),A(I,T),k.sort(d3.descending),S.sort(d3.descending),E.sort(d3.descending),T.sort(d3.descending);var O=d3.scaleLinear().domain(d3.extent(d3.merge([h,k]))).range(r?[w,0]:[0,w]);this.__chart__||d3.scaleLinear().domain([0,1/0]).range(O.range()),this.__chart__=O,d3.min(k),d3.max(k),k[1];for(var L=m.selectAll("g.nv-wrap.nv-bullet").data([n]),N=L.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet").append("g"),P=L.select("g"),R=(g=0,k.length);g<R;g++){var j="nv-range nv-range"+g;g<=2&&(j=j+" nv-range"+_[g]),N.append("rect").attr("class",j)}N.append("rect").attr("class","nv-measure"),L.attr("transform","translate("+t.left+","+t.top+")");var F=function(e){return Math.abs(O(e)-O(0))},B=function(e){return O(e<0?e:0)};for(g=0,R=k.length;g<R;g++){var Y=k[g];P.select("rect.nv-range"+g).datum(Y).attr("height",x).transition().duration(1e3).attr("width",F(Y)).attr("x",B(Y))}P.select("rect.nv-measure").style("fill",v).attr("height",x/3).attr("y",x/3).on("mouseover",function(){y.call("elementMouseover",this,{value:T[0],label:I[0]||"Current",color:d3.select(this).style("fill")})}).on("mousemove",function(){y.call("elementMousemove",this,{value:T[0],label:I[0]||"Current",color:d3.select(this).style("fill")})}).on("mouseout",function(){y.call("elementMouseout",this,{value:T[0],label:I[0]||"Current",color:d3.select(this).style("fill")})}).transition().duration(1e3).attr("width",T<0?O(0)-O(T[0]):O(T[0])-O(0)).attr("x",B(T));var V=x/6,H=S.map(function(e,t){return{value:e,label:C[t]}});N.selectAll("path.nv-markerTriangle").data(H).enter().append("path").attr("class","nv-markerTriangle").attr("d","M0,"+V+"L"+V+","+-V+" "+-V+","+-V+"Z").on("mouseover",function(e){y.call("elementMouseover",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill"),pos:[O(e.value),x/2]})}).on("mousemove",function(e){y.call("elementMousemove",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(e,t){y.call("elementMouseout",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill")})}),P.selectAll("path.nv-markerTriangle").data(H).transition().duration(1e3).attr("transform",function(e){return"translate("+O(e.value)+","+x/2+")"});var U=E.map(function(e,t){return{value:e,label:M[t]}});N.selectAll("line.nv-markerLine").data(U).enter().append("line").attr("cursor","").attr("class","nv-markerLine").attr("x1",function(e){return O(e.value)}).attr("y1","2").attr("x2",function(e){return O(e.value)}).attr("y2",x-2).on("mouseover",function(e){y.call("elementMouseover",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill"),pos:[O(e.value),x/2]})}).on("mousemove",function(e){y.call("elementMousemove",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(e,t){y.call("elementMouseout",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill")})}),P.selectAll("line.nv-markerLine").data(U).transition().duration(1e3).attr("x1",function(e){return O(e.value)}).attr("x2",function(e){return O(e.value)}),L.selectAll(".nv-range").on("mouseover",function(e,t){var n=D[t]||b[t];y.call("elementMouseover",this,{value:e,label:n,color:d3.select(this).style("fill")})}).on("mousemove",function(){y.call("elementMousemove",this,{value:T[0],label:I[0]||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(e,t){var n=D[t]||b[t];y.call("elementMouseout",this,{value:e,label:n,color:d3.select(this).style("fill")})})}),x}return x.dispatch=y,x.options=e.utils.optionsFunc.bind(x),x._options=Object.create({},{ranges:{get:function(){return i},set:function(e){i=e}},markers:{get:function(){return o},set:function(e){o=e}},measures:{get:function(){return a},set:function(e){a=e}},forceX:{get:function(){return h},set:function(e){h=e}},width:{get:function(){return p},set:function(e){p=e}},height:{get:function(){return f},set:function(e){f=e}},tickFormat:{get:function(){return g},set:function(e){g=e}},duration:{get:function(){return w},set:function(e){w=e,d3.transition().duration(w).ease(d3.easeLinear)}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},orient:{get:function(){return n},set:function(e){r="right"==(n=e)||"bottom"==n}},color:{get:function(){return v},set:function(t){v=e.utils.getColor(t)}}}),e.utils.initOptions(x),x},e.models.bulletChart=function(){"use strict";var t=e.models.bullet(),n=e.models.tooltip(),r="left",i=!1,o={top:5,right:40,bottom:20,left:120},s=function(e){return e.ranges},a=function(e){return e.markers?e.markers:[]},l=function(e){return e.measures},c=null,u=55,d=null,h=null,p=null,f=d3.dispatch();function m(n){return n.each(function(r,p){var f=d3.select(this);e.utils.initSVG(f);var g=e.utils.availableWidth(c,f,o),v=u-o.top-o.bottom;if(m.update=function(){m(n)},m.container=this,!r||!s.call(this,r,p))return e.utils.noData(m,f),m;f.selectAll(".nv-noData").remove();var y=s.call(this,r,p).slice().sort(d3.descending),b=a.call(this,r,p).slice().sort(d3.descending),_=l.call(this,r,p).slice().sort(d3.descending),w=f.selectAll("g.nv-wrap.nv-bulletChart").data([r]);w.attr("transform","translate("+o.left+","+o.top+")");var A=w.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart").append("g"),x=w.select("g"),k=A.append("g").attr("class","nv-bulletWrap"),S=A.append("g").attr("class","nv-titles"),E=d3.scaleLinear().domain([0,Math.max(y[0],b[0]||0,_[0])]).range(i?[g,0]:[0,g]),T=this.__chart__||d3.scaleLinear().domain([0,1/0]).range(E.range());this.__chart__=E;var D=S.append("g").attr("text-anchor","end").attr("transform","translate(-6,"+(u-o.top-o.bottom)/2+")");D.append("text").attr("class","nv-title").text(function(e){return e.title}),D.append("text").attr("class","nv-subtitle").attr("dy","1em").text(function(e){return e.subtitle}),t.width(g).height(v),k.transition().call(t);var C=d||E.tickFormat(g/100),M=x.selectAll("g.nv-tick").data(E.ticks(h||g/50),function(e){return this.textContent||C(e)}),I=M.enter().append("g").attr("class","nv-tick").attr("transform",function(e){return"translate("+T(e)+",0)"}).style("opacity",1e-6);I.append("line").attr("y1",v).attr("y2",7*v/6),I.append("text").attr("text-anchor","middle").attr("dy","1em").attr("y",7*v/6).text(C);var O=M.transition().duration(t.duration()).attr("transform",function(e){return"translate("+E(e)+",0)"}).style("opacity",1);O.select("line").attr("y1",v).attr("y2",7*v/6),O.select("text").attr("y",7*v/6),I.transition().duration(t.duration()).attr("transform",function(e){return"translate("+E(e)+",0)"}).style("opacity",1e-6).remove()}),d3.timerFlush(),m}return n.duration(0).headerEnabled(!1),t.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:e.label,value:e.value,color:e.color},n.data(e).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(e){n.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(e){n()}),m.bullet=t,m.dispatch=f,m.tooltip=n,m.options=e.utils.optionsFunc.bind(m),m._options=Object.create({},{ranges:{get:function(){return s},set:function(e){s=e}},markers:{get:function(){return a},set:function(e){a=e}},measures:{get:function(){return l},set:function(e){l=e}},width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},tickFormat:{get:function(){return d},set:function(e){d=e}},ticks:{get:function(){return h},set:function(e){h=e}},noData:{get:function(){return p},set:function(e){p=e}},margin:{get:function(){return o},set:function(e){o.top=void 0!==e.top?e.top:o.top,o.right=void 0!==e.right?e.right:o.right,o.bottom=void 0!==e.bottom?e.bottom:o.bottom,o.left=void 0!==e.left?e.left:o.left}},orient:{get:function(){return r},set:function(e){i="right"==(r=e)||"bottom"==r}}}),e.utils.inheritOptions(m,t),e.utils.initOptions(m),m},e.models.candlestickBar=function(){"use strict";var t,n,r,i,o,s={top:0,right:0,bottom:0,left:0},a=null,l=null,c=Math.floor(1e4*Math.random()),u=d3.scaleLinear(),d=d3.scaleLinear(),h=function(e){return e.x},p=function(e){return e.y},f=function(e){return e.open},m=function(e){return e.close},g=function(e){return e.high},v=function(e){return e.low},y=[],b=[],_=!1,w=!0,A=e.utils.defaultColor(),x=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function S(A){return A.each(function(A){t=d3.select(this);var x=e.utils.availableWidth(a,t,s),S=e.utils.availableHeight(l,t,s);e.utils.initSVG(t);var E=x/A[0].values.length*.45;u.domain(n||d3.extent(A[0].values.map(h).concat(y))),_?u.range(i||[.5*x/A[0].values.length,x*(A[0].values.length-.5)/A[0].values.length]):u.range(i||[5+E/2,x-E/2-5]),d.domain(r||[d3.min(A[0].values.map(v).concat(b)),d3.max(A[0].values.map(g).concat(b))]).range(o||[S,0]),u.domain()[0]===u.domain()[1]&&(u.domain()[0]?u.domain([u.domain()[0]-.01*u.domain()[0],u.domain()[1]+.01*u.domain()[1]]):u.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var T=d3.select(this).selectAll("g.nv-wrap.nv-candlestickBar").data([A[0].values]),D=T.enter().append("g").attr("class","nvd3 nv-wrap nv-candlestickBar");D.attr("transform","translate("+s.left+","+s.top+")");var C=D.append("defs"),M=D.append("g");T.select("g");var I=M.append("g").attr("class","nv-ticks");t.on("click",function(e,t,n){k.call("chartClick",this,{data:t,index:t.index,pos:e,id:c})}),C.append("clipPath").attr("id","nv-chart-clip-path-"+c).append("rect").attr("width",x).attr("height",S),M.attr("clip-path",w?"url(#nv-chart-clip-path-"+c+")":"");var O=I.selectAll(".nv-tick").data(function(e){return e});O.exit().remove();var L=O.enter().append("g");L.attr("class",function(e,t,n){return(f(e,t)>m(e,t)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+t}),L.append("line").attr("class","nv-candlestick-lines").attr("transform",function(e,t){return"translate("+u(h(e,t))+",0)"}).attr("x1",0).attr("y1",function(e,t){return d(g(e,t))}).attr("x2",0).attr("y2",function(e,t){return d(v(e,t))}),L.append("rect").attr("class","nv-candlestick-rects nv-bars").attr("transform",function(e,t){return"translate("+(u(h(e,t))-E/2)+","+(d(p(e,t))-(f(e,t)>m(e,t)?d(m(e,t))-d(f(e,t)):0))+")"}).attr("x",0).attr("y",0).attr("width",E).attr("height",function(e,t){var n=f(e,t),r=m(e,t);return n>r?d(r)-d(n):d(n)-d(r)}),L.select(".nv-candlestick-lines").transition().attr("transform",function(e,t){return"translate("+u(h(e,t))+",0)"}).attr("x1",0).attr("y1",function(e,t){return d(g(e,t))}).attr("x2",0).attr("y2",function(e,t){return d(v(e,t))}),L.select(".nv-candlestick-rects").transition().attr("transform",function(e,t){return"translate("+(u(h(e,t))-E/2)+","+(d(p(e,t))-(f(e,t)>m(e,t)?d(m(e,t))-d(f(e,t)):0))+")"}).attr("x",0).attr("y",0).attr("width",E).attr("height",function(e,t){var n=f(e,t),r=m(e,t);return n>r?d(r)-d(n):d(n)-d(r)})}),S}return S.highlightPoint=function(e,n){S.clearHighlights(),t.select(".nv-candlestickBar .nv-tick-0-"+e).classed("hover",n)},S.clearHighlights=function(){t.select(".nv-candlestickBar .nv-tick.hover").classed("hover",!1)},S.dispatch=k,S.options=e.utils.optionsFunc.bind(S),S._options=Object.create({},{width:{get:function(){return a},set:function(e){a=e}},height:{get:function(){return l},set:function(e){l=e}},xScale:{get:function(){return u},set:function(e){u=e}},yScale:{get:function(){return d},set:function(e){d=e}},xDomain:{get:function(){return n},set:function(e){n=e}},yDomain:{get:function(){return r},set:function(e){r=e}},xRange:{get:function(){return i},set:function(e){i=e}},yRange:{get:function(){return o},set:function(e){o=e}},forceX:{get:function(){return y},set:function(e){y=e}},forceY:{get:function(){return b},set:function(e){b=e}},padData:{get:function(){return _},set:function(e){_=e}},clipEdge:{get:function(){return w},set:function(e){w=e}},id:{get:function(){return c},set:function(e){c=e}},interactive:{get:function(){return x},set:function(e){x=e}},x:{get:function(){return h},set:function(e){h=e}},y:{get:function(){return p},set:function(e){p=e}},open:{get:function(){return f()},set:function(e){f=e}},close:{get:function(){return m()},set:function(e){m=e}},high:{get:function(){return g},set:function(e){g=e}},low:{get:function(){return v},set:function(e){v=e}},margin:{get:function(){return s},set:function(e){s.top=null!=e.top?e.top:s.top,s.right=null!=e.right?e.right:s.right,s.bottom=null!=e.bottom?e.bottom:s.bottom,s.left=null!=e.left?e.left:s.left}},color:{get:function(){return A},set:function(t){A=e.utils.getColor(t)}}}),e.utils.initOptions(S),S},e.models.cumulativeLineChart=function(){"use strict";var t,n,r=e.models.line(),i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=e.models.legend(),a=e.models.legend(),l=e.interactiveGuideline(),c=e.models.tooltip(),u={top:30,right:30,bottom:50,left:60},d=null,h=e.utils.defaultColor(),p=null,f=null,m=!0,g=!0,v=!0,y=!1,b=!0,_=!1,w=!0,A="top",x=r.id(),k=e.utils.state(),S=null,E=null,T=function(e){return e.average},D=d3.dispatch("stateChange","changeState","renderEnd"),C=250,M=(d3.transition().duration(C).ease(d3.easeLinear),!1);k.index=0,k.rescaleY=w,i.tickPadding(7),c.valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),a.updateState(!1);var I,O=d3.scaleLinear(),L={i:0,x:0},N=e.utils.renderWatch(D,C);function P(c){return N.reset(),N.models(r),g&&N.models(i),v&&N.models(o),c.each(function(c){var A,E,N,F=d3.select(this);e.utils.initSVG(F),F.classed("nv-chart-"+x,!0);var B,Y,V=e.utils.availableWidth(p,F,u),H=e.utils.availableHeight(f,F,u);if(P.update=function(){0===C?F.call(P):F.transition().duration(C).call(P)},P.container=this,k.setter((B=c,function(e){void 0!==e.index&&(L.i=e.index),void 0!==e.rescaleY&&(w=e.rescaleY),void 0!==e.active&&B.forEach(function(t,n){t.disabled=!e.active[n]})}),P.update).getter((Y=c,function(){return{active:Y.map(function(e){return!e.disabled}),index:L.i,rescaleY:w}})).update(),k.disabled=c.map(function(e){return!!e.disabled}),!S)for(N in S={},k)k[N]instanceof Array?S[N]=k[N].slice(0):S[N]=k[N];var U=d3.drag().on("start",function(e,t){d3.select(P.container).style("cursor","ew-resize")}).on("drag",function(e,t,n){L.x=e.x,L.i=Math.round(O.invert(L.x)),ue()}).on("end",function(e,t){d3.select(P.container).style("cursor","auto"),k.index=L.i,D.call("stateChange",this,k)});if(!c||!c.length||!c.filter(function(e){return e.values.length}).length)return e.utils.noData(P,F),P;F.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale(),O.domain([0,c[0].values.length-1]).range([0,V]).clamp(!0);A=L.i,E=c,R||(R=r.y()),c=E.map(function(e,t){if(!e.values)return e;var n=e.values[A];if(null==n)return e;var r=R(n,A);return 1e-5>Math.abs(r)&&!M?(e.tempDisabled=!0,e):(e.tempDisabled=!1,e.values=e.values.map(function(e,t){return e.display={y:(R(e,t)-r)/r},e}),e)});void 0===I&&(I=j(c)),w?r.yDomain(null):(r.yDomain(I),r.clipEdge(!0));var z=_?"none":"all",q=F.selectAll("g.nv-wrap.nv-cumulativeLine").data([c]),W=c.filter(function(e){return!e.disabled&&!e.tempDisabled}),$=q.enter().append("g").attr("class","nvd3 nv-wrap nv-cumulativeLine"),G=$.append("g");G.select("g");var K=G.append("g").attr("class","nv-interactive");K=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-interactive");var Z=G.append("g").attr("class","nv-x nv-axis").style("pointer-events","none");Z=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-x");var X=G.append("g").attr("class","nv-y nv-axis");X=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-y");var Q=G.append("g").attr("class","nv-background");Q=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-background");var J=G.append("g").data([W]).attr("class","nv-linesWrap nvd3-svg").style("pointer-events",z),ee=G.append("g").attr("class","nv-avgLinesWrap").style("pointer-events","none");ee=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-avgLinesWrap");var te=G.append("g").attr("class","nv-legendWrap"),ne=G.append("g").attr("class","nv-controlsWrap");if(ne=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-controlsWrap"),te=F.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-legendWrap"),m?(s.width(V),te.datum(c).call(s),d||s.height()===u.top||(u.top=s.height(),H=e.utils.availableHeight(f,F,u)),te.attr("transform","translate(0,"+-u.top+")")):te.selectAll("*").remove(),$.attr("transform","translate("+u.left+","+u.top+")"),b){var re=[{key:"Re-scale y-axis",disabled:!w}];a.width(140).color(["#444","#444","#444"]).rightAlign(!1).margin({top:5,right:0,bottom:5,left:20}),ne.datum(re).attr("transform","translate(0,"+-u.top+")").call(a)}else ne.selectAll("*").remove();y&&X.attr("transform","translate("+V+",0)");var ie=c.filter(function(e){return e.tempDisabled});$.select(".tempDisabled").remove(),ie.length&&$.append("text").attr("class","tempDisabled").attr("x",V/2).attr("y","-.71em").style("text-anchor","end").text(ie.map(function(e){return e.key}).join(", ")+" values cannot be calculated for this time period."),_&&(l.width(V).height(H).margin({left:u.left,top:u.top}).svgContainer(F).xScale(t),K.call(l));var oe=Q.select("rect");oe.empty()&&Q.append("rect"),oe.attr("width",V).attr("height",H),r.y(function(e){return e.display.y}).width(V).height(H).color(c.map(function(e,t){return e.color||h(e,t)}).filter(function(e,t){return!c[t].disabled&&!c[t].tempDisabled})),(J=F.selectAll("g.nv-linesWrap.nvd3-svg").data([W]).merge(J)).call(r),c.forEach(function(e,t){e.seriesIndex=t});var se=c.filter(function(e){return!e.disabled&&!!T(e)}),ae=ee.selectAll("line").data(se,function(e){return e.key}),le=function(e){var t=n(T(e));return t<0?0:t>H?H:t};ae.exit().remove(),ae.enter().append("line").style("stroke-width",2).style("stroke-dasharray","10,10").style("stroke",function(e,t){return r.color()(e,e.seriesIndex)}).attr("x1",0).attr("x2",V).attr("y1",le).attr("y2",le).style("stroke-opacity",function(e){var t=n(T(e));return t<0||t>H?0:1}).attr("x1",0).attr("x2",V).attr("y1",le).attr("y2",le).merge(ae);var ce=J.selectAll(".nv-indexLine").data([L]);function ue(){ce.data([L]);var e=P.duration();P.duration(0),P.update(),P.duration(e)}ce.merge(ce.enter().append("rect").attr("class","nv-indexLine").attr("width",3).attr("x",-2).attr("fill","red").attr("fill-opacity",.5).style("pointer-events","all").call(U)).attr("transform",function(e){return"translate("+O(e.i)+",0)"}).attr("height",H).merge(ce),g&&(i.scale(t)._ticks(e.utils.calcTicksX(V/70,c)),i.tickSizeInner(-H),Z.attr("transform","translate(0,"+n.range()[0]+")"),Z.call(i).merge(q.select(".nv-x.nv-axis"))),v&&(o.scale(n)._ticks(e.utils.calcTicksY(H/36,c)),o.tickSizeInner(-V),X.call(o)),oe.on("click",function(e){L.x=d3.pointer(e)[0],L.i=Math.round(O.invert(L.x)),k.index=L.i,D.call("stateChange",oe,k),ue()}),r.dispatch.on("elementClick",function(e){L.i=e.pointIndex,L.x=O(L.i),k.index=L.i,D.call("stateChange",r,k),ue()}),a.dispatch.on("legendClick",function(e,t,n){t.disabled=!t.disabled,w=!t.disabled,k.rescaleY=w,w||(I=j(c)),D.call("stateChange",this,k),P.update()}),s.dispatch.on("stateChange",function(e){for(var t in e)k[t]=e[t];D.call("stateChange",this,e),P.update()}),l.dispatch.on("elementMousemove",function(t){r.clearHighlights();var n,s,a,u=[];if(c.filter(function(e,t){return e.seriesIndex=t,!(e.disabled||e.tempDisabled)}).forEach(function(i,o){s=e.interactiveBisect(i.values,t.pointXValue,P.x()),r.highlightPoint(o,s,!0);var l=i.values[s];void 0!==l&&(void 0===n&&(n=l),void 0===a&&(a=P.xScale()(P.x()(l,s))),u.push({key:i.key,value:P.y()(l,s),color:h(i,i.seriesIndex)}))}),u.length>2){var d=P.yScale().invert(t.mouseY),p=Math.abs(P.yScale().domain()[0]-P.yScale().domain()[1]),f=e.nearestValueIndex(u.map(function(e){return e.value}),d,.03*p);null!==f&&(u[f].highlight=!0)}var m=i.tickFormat()(P.x()(n,s),s);l.tooltip.valueFormatter(function(e,t){return o.tickFormat()(e)}).data({value:m,series:u})(),l.renderGuideLine(a)}),l.dispatch.on("elementMouseout",function(e){r.clearHighlights()}),D.on("changeState",function(e){void 0!==e.disabled&&(c.forEach(function(t,n){t.disabled=e.disabled[n]}),k.disabled=e.disabled),void 0!==e.index&&(L.i=e.index,L.x=O(L.i),k.index=e.index,ce.data([L])),void 0!==e.rescaleY&&(w=e.rescaleY),P.update()})}),N.renderEnd("cumulativeLineChart immediate"),P}r.dispatch.on("elementMouseover.tooltip",function(e){var t={x:P.x()(e.point),y:P.y()(e.point),color:e.point.color};e.point=t,c.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){c.hidden(!0)});var R=null;function j(e){var t=e.filter(function(e){return!(e.disabled||e.tempDisabled)}).map(function(e,t){return d3.extent(e.values,function(e){return e.display.y})});return[d3.min(t,function(e){return e[0]}),d3.max(t,function(e){return e[1]})]}return P.dispatch=D,P.lines=r,P.legend=s,P.controls=a,P.xAxis=i,P.yAxis=o,P.interactiveLayer=l,P.state=k,P.tooltip=c,P.options=e.utils.optionsFunc.bind(P),P._options=Object.create({},{width:{get:function(){return p},set:function(e){p=e}},height:{get:function(){return f},set:function(e){f=e}},showControls:{get:function(){return b},set:function(e){b=e}},showLegend:{get:function(){return m},set:function(e){m=e}},legendPosition:{get:function(){return A},set:function(e){A=e}},average:{get:function(){return T},set:function(e){T=e}},defaultState:{get:function(){return S},set:function(e){S=e}},noData:{get:function(){return E},set:function(e){E=e}},showXAxis:{get:function(){return g},set:function(e){g=e}},showYAxis:{get:function(){return v},set:function(e){v=e}},noErrorCheck:{get:function(){return M},set:function(e){M=e}},rescaleY:{get:function(){return w},set:function(e){w=e,P.state.rescaleY=e}},margin:{get:function(){return u},set:function(e){void 0!==e.top&&(u.top=e.top,d=e.top),u.right=void 0!==e.right?e.right:u.right,u.bottom=void 0!==e.bottom?e.bottom:u.bottom,u.left=void 0!==e.left?e.left:u.left}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t),s.color(h)}},useInteractiveGuideline:{get:function(){return _},set:function(e){_=e,!0===e&&(P.interactive(!1),P.useVoronoi(!1))}},rightAlignYAxis:{get:function(){return y},set:function(e){y=e}},duration:{get:function(){return C},set:function(e){C=e,r.duration(C),i.duration(C),o.duration(C),N.reset(C),d3.transition().duration(C).ease(d3.easeLinear)}}}),e.utils.inheritOptions(P,r),e.utils.initOptions(P),P},e.models.differenceChart=function(){"use strict";var t=void 0,n=e.models.multiChart(),r=e.models.focus(e.models.line()),i=function(e){return void 0!==e.y0?e.y0:e.y},o=function(e){return e.x},s="x",a=function(e){return e.y};d3.transition().duration(300).ease(d3.easeLinear);var l=null,c=null,u=null,d=null,h={top:30,right:50,bottom:20,left:70},p={top:0,right:0,bottom:0,left:0},f=!0,m=getInterpolationType(m),g=1,v=d3.scaleTime(),y=d3.timeFormat([["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",function(){return!0}]]);function b(o){o.each(function(o){t=d3.select(this);var s=(o||[]).filter(function(e){return!e.disabled});if(!o||!s.length)return e.utils.noData(b,t),b;var a=_(o),f=e.utils.availableHeight(u,t,h)-r.height(),g=e.utils.availableWidth(d,t,h);t.attr("class","nv-differenceChart"),e.utils.initSVG(t),b.container=this,n.margin(h).color(d3.scaleOrdinal(d3.schemeCategory10).range()).y(i).width(d).height(f).interpolate(m).useInteractiveGuideline(!0),n.interactiveLayer.tooltip.valueFormatter(function(e,t,n){if(n.key===c||n.key===l){var r=Math.abs(n.data.y0-n.data.y1);return 0===r?"-":r}return e}),n.stack1.areaY1(function(e){return n.stack1.scatter.yScale()(e.display.y)}),n.stack1.transformData(function(e){e.display={y:e.y1,y0:e.y0}}),n.xAxis.scale(v),n.xAxis.tickFormat(y);var w=a.filter(function(e){return!e.disabled}).map(function(e){return e.values}),A=d3.extent(d3.merge(w),function(e){return e.x});n.xAxis.domain(A).range([0,g]);var x=d3.extent(d3.merge(w),function(e){return i(e)});n.yDomain1(x),n.yAxis1.tickFormat(d3.format(",.1f")),n.yAxis2.tickFormat(d3.format(",.1f")),r.width(g),r.margin(p),r.xScale(v.copy()),r.xAxis.tickFormat(y),r.xAxis.rotateLabels(0);var k=t.append("g").attr("class","nv-focusWrap").style("display","initial").attr("transform","translate("+h.left+", "+(f+r.margin().top)+")").datum(a.filter(function(e){return"line"===e.type})).call(r);return k.datum(a).call(n),r.dispatch.on("brush",function(e){var t=a.map(function(t){var n=-1,r=-1;t.values.some(function(t,i){return-1===n&&t.x>=e[0]&&(n=i),-1===r&&t.x>=e[1]&&(r=i,!0)});for(var i=t.values.slice(n,r),o=0;i.length<2&&o<5;)n-=1,r+=1,i=t.values.slice(n,r),o++;return Object.assign({},t,{values:i})});k.datum(t),n.xAxis.domain(e),n.update()}),b.update=function(){k.selectAll("*").remove(),k.transition().duration(300).call(b)},b})}function _(e){var t=e.slice(0),n=t.every(function(e){return e.processed}),r=t.filter(function(e){return"actual"===e.type}),i=t.filter(function(e){return"expected"===e.type});if(n)return t;if(!r.length||!i.length)return[];var u=i[0].key+" minus "+r[0].key+" (Predicted > Actual)",d=i[0].key+" minus "+r[0].key+" (Predicted < Actual)",h=[{key:l||u,type:"area",values:[],yAxis:1,color:"rgba(44,160,44,.9)",processed:!0,noHighlightSeries:!0},{key:c||d,type:"area",values:[],yAxis:1,color:"rgba(234,39,40,.9)",processed:!0,noHighlightSeries:!0},{key:r[0].key,type:"line",values:[],yAxis:1,color:"#666666",processed:!0,strokeWidth:g}];f&&(h[3]={key:i[0].key,type:"line",values:[],yAxis:1,color:"#aec7e8",processed:!0,strokeWidth:g});var p=r[0].values.reduce(function(e,t,n){return e[o(t)]=a(t),e},{}),m=i[0].values.reduce(function(e,t,n){return e[o(t)]=a(t),e},{});return Object.keys(p).forEach(function(e,t){var n=p[e],r=m[e],i={};i[s]=e;var a=o(i),l=r-n;isNaN(l)?(h[1].values[t]={x:a,y0:n,y1:n},h[0].values[t]={x:a,y0:n,y1:n}):l<0?(h[1].values[t]={x:a,y0:n,y1:r},h[0].values[t]={x:a,y0:n,y1:n}):(h[0].values[t]={x:a,y0:n,y1:r},h[1].values[t]={x:a,y0:n,y1:n}),h[2].values[t]={x:a,y:n},f&&(h[3].values[t]={x:a,y:r})}),h}return b.options=e.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return d},set:function(e){d=e}},height:{get:function(){return u},set:function(e){u=e}},strokeWidth:{get:function(){return g},set:function(e){g=e}},x:{get:function(){return o},set:function(e){o=e}},keyForXValue:{get:function(){return s},set:function(e){s=e}},y:{get:function(){return a},set:function(e){a=e}},xScale:{get:function(){return v},set:function(e){v=e}},keyForActualLessThanPredicted:{get:function(){return l},set:function(e){l=e}},keyForActualGreaterThanPredicted:{get:function(){return c},set:function(e){c=e}},showPredictedLine:{get:function(){return f},set:function(e){f=e}},tickFormat:{get:function(){return y},set:function(e){y=e}},interpolate:{get:function(){return m},set:function(e){m=e}},focusMargin:{get:function(){return p},set:function(e){p.top=void 0!==e.top?e.top:p.top,p.right=void 0!==e.right?e.right:p.right,p.bottom=void 0!==e.bottom?e.bottom:p.bottom,p.left=void 0!==e.left?e.left:p.left}},margin:{get:function(){return h},set:function(e){h.top=void 0!==e.top?e.top:h.top,h.right=void 0!==e.right?e.right:h.right,h.bottom=void 0!==e.bottom?e.bottom:h.bottom,h.left=void 0!==e.left?e.left:h.left}}}),b.xAxis=n.xAxis,b.yAxis=n.yAxis1,b.multiChart=n,b.focus=r,b.processData=_,e.utils.inheritOptions(b,n),e.utils.initOptions(b),b},e.models.discreteBar=function(){"use strict";var t,n,r,i,o,s,a,l={top:0,right:0,bottom:0,left:0},c=960,u=500,d=Math.floor(1e4*Math.random()),h=d3.scaleBand(),p=d3.scaleLinear(),f=function(e){return e.x},m=function(e){return e.y},g=[0],v=e.utils.defaultColor(),y=0,b=!1,_=d3.format(",.2f"),w=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),A="discreteBar",x=250,k=e.utils.renderWatch(w,x);function S(d){return k.reset(),d.each(function(d){var x=c-l.left-l.right,S=u-l.top-l.bottom;r=d3.select(this),e.utils.initSVG(r),d.forEach(function(e,t){e.values.forEach(function(e){e.series=t,e.seriesIndex=t})});var E=i&&o?[]:d.map(function(e){return e.values.map(function(e,t){return{x:f(e,t),y:m(e,t),y0:e.y0}})});h.domain(i||d3.merge(E).map(function(e){return e.x})).range(s||[0,x],.1),p.domain(o||d3.extent(d3.merge(E).map(function(e){return e.y}).concat(g))),b?p.range(a||[S-(p.domain()[0]<0?12:0),p.domain()[1]>0?12:0]):p.range(a||[S,0]),t=t||h,n=n||p.copy().range([p(0),p(0)]);var T=r.selectAll("g.nv-wrap.nv-discretebar").data([d]).enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar");T.attr("transform","translate("+l.left+","+l.top+")");var D=T.append("g");D.select("g");var C=D.append("g").attr("class","nv-groups").selectAll(".nv-group").data(function(e){return e},function(e){return e.key}).enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);C.exit().watchTransition(k,"discreteBar: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),C.attr("class",function(e,t){return"nv-group nv-series-"+t}).classed("hover",function(e){return e.hover}),C.watchTransition(k,"discreteBar: groups").style("stroke-opacity",1).style("fill-opacity",.75);var M=C.selectAll("g.nv-bar").data(function(e){return e.values});M.exit().remove();var I=M.enter().append("g").attr("transform",function(e,t,n){return"translate("+(h(f(e,t))+.05*h.bandwidth())+", "+p(0)+")"}).on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0),w.call("elementMouseover",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1),w.call("elementMouseout",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("mousemove",function(e,t,n){w.call("elementMousemove",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("click",function(e,t,n){w.call("elementClick",this,{data:t,index:t.index,color:d3.select(this).style("fill"),event:e,element:this}),e.stopPropagation()}).on("dblclick",function(e,t,n){w.call("elementDblClick",this,{data:t,index:t.index,color:d3.select(this).style("fill")}),e.stopPropagation()}),O=I.append("rect").attr("height",0).attr("width",.9*h.bandwidth()/d.length);b?I.append("text").attr("text-anchor","middle").text(function(e,t){return _(m(e,t))}).watchTransition(k,"discreteBar: bars text").attr("x",.9*h.bandwidth()/2).attr("y",function(e,t){return 0>m(e,t)?p(m(e,t))-p(0)+12:-4}):O.selectAll("text").remove(),I.attr("class",function(e,t){return 0>m(e,t)?"nv-bar negative":"nv-bar positive"}).style("fill",function(e,t){return e.color||v(e,t)}).style("stroke",function(e,t){return e.color||v(e,t)}).select("rect").attr("rx",y).attr("class",A).watchTransition(k,"discreteBar: bars rect").attr("width",.9*h.bandwidth()/d.length),I.watchTransition(k,"discreteBar: bars").attr("transform",function(e,t){return"translate("+(h(f(e,t))+.05*h.bandwidth())+", "+(0>m(e,t)?p(0):p(0)-p(m(e,t))<1?p(0)-1:p(m(e,t)))+")"}).select("rect").attr("height",function(e,t){return Math.max(Math.abs(p(m(e,t))-p(0)),1)}),t=h.copy(),n=p.copy()}),k.renderEnd("discreteBar immediate"),S}return S.dispatch=w,S.options=e.utils.optionsFunc.bind(S),S._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},forceY:{get:function(){return g},set:function(e){g=e}},showValues:{get:function(){return b},set:function(e){b=e}},cornerRadius:{get:function(){return y},set:function(e){y=e}},x:{get:function(){return f},set:function(e){f=e}},y:{get:function(){return m},set:function(e){m=e}},xScale:{get:function(){return h},set:function(e){h=e}},yScale:{get:function(){return p},set:function(e){p=e}},xDomain:{get:function(){return i},set:function(e){i=e}},yDomain:{get:function(){return o},set:function(e){o=e}},xRange:{get:function(){return s},set:function(e){s=e}},yRange:{get:function(){return a},set:function(e){a=e}},valueFormat:{get:function(){return _},set:function(e){_=e}},id:{get:function(){return d},set:function(e){d=e}},rectClass:{get:function(){return A},set:function(e){A=e}},margin:{get:function(){return l},set:function(e){l.top=void 0!==e.top?e.top:l.top,l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},color:{get:function(){return v},set:function(t){v=e.utils.getColor(t)}},duration:{get:function(){return x},set:function(e){x=e,k.reset(x)}}}),e.utils.initOptions(S),S},e.models.discreteBarChart=function(){"use strict";var t,n,r=e.models.discreteBar(),i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=e.models.legend(),a=e.models.tooltip(),l={top:15,right:10,bottom:50,left:60},c=null,u=null,d=null,h=e.utils.getColor(),p=!1,f=!0,m=!0,g=!1,v=!1,y=!1,b=0,_=null,w=d3.dispatch("beforeUpdate","renderEnd"),A=250;d3.transition().duration(A).ease(d3.easeLinear);i.showMaxMin(!1),i.tickFormat(function(e){return e}),o.tickFormat(d3.format(",.1f")),a.duration(0).headerEnabled(!1).valueFormatter(function(e,t){return o.tickFormat()(e,t)}).keyFormatter(function(e,t){return i.tickFormat()(e,t)});var x=e.utils.renderWatch(w,A);function k(a){return x.reset(),x.models(r),f&&x.models(i),m&&x.models(o),a.each(function(a){var h=d3.select(this),_=this;e.utils.initSVG(h);var x=e.utils.availableWidth(u,h,l),S=e.utils.availableHeight(d,h,l);if(k.update=function(){w.call("beforeUpdate",_),h.transition().duration(A).call(k)},k.container=this,!a||!a.length||!a.filter(function(e){return e.values.length}).length)return e.utils.noData(k,h),k;h.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale().clamp(!0);var E=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([a]).enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g");E.attr("transform","translate("+l.left+","+l.top+")");var T=E.append("defs"),D=E.select("g"),C=E.append("g").attr("class","nv-x nv-axis");C=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").select(".nv-x");var M=E.append("g").attr("class","nv-y nv-axis"),I=M.append("g").attr("class","nv-zeroLine").append("line"),O=E.append("g").attr("class","nv-barsWrap"),L=E.append("g").attr("class","nv-legendWrap");if(L=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").select(".nv-legendWrap"),p?(s.width(x),L.datum(a).call(s),c||s.height()===l.top||(l.top=s.height(),S=e.utils.availableHeight(d,h,l)),L.attr("transform","translate(0,"+-l.top+")")):L.selectAll("*").remove(),g&&M.attr("transform","translate("+x+",0)"),r.width(x).height(S),O.datum(a.filter(function(e){return!e.disabled})).transition().duration(0).call(r),T.append("clipPath").attr("id","nv-x-label-clip-"+r.id()).append("rect").attr("width",t.bandwidth()*(v?2:1)).attr("height",16).attr("x",-t.bandwidth()/(v?1:2)),f){i.scale(t)._ticks(e.utils.calcTicksX(x/100,a)),i.tickSizeInner(-S),C.attr("transform","translate(0,"+(n.range()[0]+(r.showValues()&&n.domain()[0]<0?16:0))+")"),C.call(i);var N=C.select("g.nvd3.nv-wrap.nv-axis").selectAll("g");v&&N.selectAll("text").attr("transform",function(e,t,n){return"translate(0,"+(n%2==0?"5":"17")+")"}),b&&N.selectAll(".tick text").attr("transform","rotate("+b+" 0,0)").style("text-anchor",b>0?"start":"end"),y&&D.selectAll(".tick text").call(e.utils.wrapTicks,k.xAxis.bandwidth())}m&&(o.scale(n)._ticks(e.utils.calcTicksY(S/36,a,r.y())),o.tickSizeInner(-x),M.call(o)),I.attr("x1",0).attr("x2",g?-x:x).attr("y1",n(0)).attr("y2",n(0))}),x.renderEnd("discreteBar chart immediate"),k}return r.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:k.x()(e.data),value:k.y()(e.data),color:e.color},a.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){a.hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(e){a()}),k.dispatch=w,k.discretebar=r,k.legend=s,k.xAxis=i,k.yAxis=o,k.tooltip=a,k.options=e.utils.optionsFunc.bind(k),k._options=Object.create({},{width:{get:function(){return u},set:function(e){u=e}},height:{get:function(){return d},set:function(e){d=e}},showLegend:{get:function(){return p},set:function(e){p=e}},staggerLabels:{get:function(){return v},set:function(e){v=e}},rotateLabels:{get:function(){return b},set:function(e){b=e}},wrapLabels:{get:function(){return y},set:function(e){y=!!e}},showXAxis:{get:function(){return f},set:function(e){f=e}},showYAxis:{get:function(){return m},set:function(e){m=e}},noData:{get:function(){return _},set:function(e){_=e}},margin:{get:function(){return l},set:function(e){void 0!==e.top&&(l.top=e.top,c=e.top),l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},duration:{get:function(){return A},set:function(e){A=e,x.reset(A),d3.transition().duration(A).ease(d3.easeLinear),r.duration(A),i.duration(A),o.duration(A)}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t),r.color(h),s.color(h)}},rightAlignYAxis:{get:function(){return g},set:function(e){g=e,o.orient(e?"right":"left")}}}),e.utils.inheritOptions(k,r),e.utils.initOptions(k),k},e.models.distribution=function(){"use strict";var t,n={top:0,right:0,bottom:0,left:0},r=400,i=8,o="x",s=function(e){return e[o]},a=e.utils.defaultColor(),l=d3.scaleLinear(),c=250,u=d3.dispatch("renderEnd"),d=e.utils.renderWatch(u,c);function h(r){return d.reset(),r.each(function(r){"x"===o?(n.left,n.right):(n.top,n.bottom);var c="x"==o?"y":"x",u=d3.select(this);e.utils.initSVG(u),t=t||l;var h=u.selectAll("g.nv-distribution").data([r]),p=h.enter().append("g").attr("class","nvd3 nv-distribution");p.attr("transform","translate("+n.left+","+n.top+")");var f=p.append("g");h.select("g");var m=f.selectAll("g.nv-dist").data(function(e){return e},function(e){return e.key});m.enter().append("g").attr("class",function(e,t){return"nv-dist nv-series-"+t}).style("stroke",function(e,t){return a(e,t)});var g=m.selectAll("line.nv-dist"+o).data(function(e){return e.values});g.enter().append("line").attr(o+"1",function(e,n){return t(s(e,n))}).attr(o+"2",function(e,n){return t(s(e,n))}),d.transition(m.exit().selectAll("line.nv-dist"+o),"dist exit").attr(o+"1",function(e,t){return l(s(e,t))}).attr(o+"2",function(e,t){return l(s(e,t))}).style("stroke-opacity",0).remove(),g.attr("class",function(e,t){return"nv-dist"+o+" nv-dist"+o+"-"+t}).attr(c+"1",0).attr(c+"2",i),d.transition(g,"dist").attr(o+"1",function(e,t){return l(s(e,t))}).attr(o+"2",function(e,t){return l(s(e,t))}),t=l.copy()}),d.renderEnd("distribution immediate"),h}return h.options=e.utils.optionsFunc.bind(h),h.dispatch=u,h.margin=function(e){return arguments.length?(n.top=void 0!==e.top?e.top:n.top,n.right=void 0!==e.right?e.right:n.right,n.bottom=void 0!==e.bottom?e.bottom:n.bottom,n.left=void 0!==e.left?e.left:n.left,h):n},h.width=function(e){return arguments.length?(r=e,h):r},h.axis=function(e){return arguments.length?(o=e,h):o},h.size=function(e){return arguments.length?(i=e,h):i},h.getData=function(e){return arguments.length?(s="function"==typeof e?e:function(){return e},h):s},h.scale=function(e){return arguments.length?(l=e,h):l},h.color=function(t){return arguments.length?(a=e.utils.getColor(t),h):a},h.duration=function(e){return arguments.length?(c=e,d.reset(c),h):c},h},e.models.distroPlot=function(){"use strict";var t,n,r,i,o,s,a,l={top:0,right:0,bottom:0,left:0},c=960,u=500,d=Math.floor(1e4*Math.random()),h=d3.scaleBand(),p=d3.scaleLinear(),f=function(e){return e.label},m=function(e){return e.value},g=function(e){return e.color},v=function(e){return e.values.q1},y=function(e){return e.values.q2},b=function(e){return e.values.q3},_=function(e){return e.values.mean},w=function(e){return e.values.wl[T]},A=function(e){return e.values.wu[T]},x=function(e){return e.values.min},k=function(e){return e.values.max},S=function(e){return e.values.dev},E=!1,T="iqr",D=!1,C=!1,M=!1,I=!1,O=!0,L=.7,N=!0,P="scott",R=!0,j=50,F=3,B=e.utils.defaultColor(),Y=null,V=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),H=250,U=null;function z(e,t){void 0===t&&(t="scott");var n,r,i=(n=e.sort(d3.ascending),r=(d3.quantile(n,.75)-d3.quantile(n,.25))/1.349,d3.min([d3.deviation(n),r])),o=e.length;return"scott"===t?Math.pow(1.059*i*o,-.2):Math.pow(.9*i*o,-.2)}function q(e){function t(e,t){var n,r,i,o,s=e.map(function(e){return M&&G.add(M(e)),m(e)}).sort(d3.ascending),a=d3.quantile(s,.25),l=d3.quantile(s,.75),c=l-a,u=l+1.5*c,d=a-1.5*c,h={iqr:d3.max([d3.min(s),d3.min(s.filter(function(e){return e>d}))]),minmax:d3.min(s),stddev:d3.mean(s)-d3.deviation(s)},f={iqr:d3.min([d3.max(s),d3.max(s.filter(function(e){return e<u}))]),minmax:d3.max(s),stddev:d3.mean(s)+d3.deviation(s)},g=d3.median(s),v=d3.mean(s),y=[];void 0!==d3.beeswarm?(y=d3.beeswarm().data(e.map(function(e){return m(e)})).radius(F+1).orientation("vertical").side("symmetric").distributeOn(function(e){return p(e)}).arrange()).map(function(n,r){n.key=t,n.object_constancy=e[r].object_constancy,n.isOutlier=n.datum<h.iqr||n.datum>f.iqr,n.isOutlierStdDev=n.datum<h.stddev||n.datum>f.stddev,n.randX=Math.random()*L*(1==Math.floor(2*Math.random())?1:-1)}):s.forEach(function(e,n){y.push({object_constancy:e.object_constancy,datum:e,key:t,isOutlier:e<h.iqr||e>f.iqr,isOutlierStdDev:e<h.stddev||e>f.stddev,randX:Math.random()*L*(1==Math.floor(2*Math.random())?1:-1)})}),isNaN(parseFloat(P))&&(n=-1!=["scott","silverman"].indexOf(P)?z(s,P):z(s));var b=(r=n,i=function(e){return 1>=Math.abs(e/=r)?.75*(1-e*e)/r:0},o=p._ticks(j),function(e){return o.map(function(t){var n=d3.mean(e,function(e){return i(t-e)});return{x:t,y:n}})}),_=R?function(e,t){if(t[0]===t[1])return e;var n=e.reduce(function(e,n){return n.x>=t[0]&&n.x<=t[1]&&e.push(n),e},[]);return t[0]<n[0].x&&n.unshift({x:t[0],y:n[0].y}),t[1]>n[n.length-1].x&&n.push({x:t[1],y:n[n.length-1].y}),n}(b(s),d3.extent(s)):b(s),w=d3.scaleLinear().domain([0,d3.max(_,function(e){return e.y})]).clamp(!0);K.push(w);var A={count:s.length,num_outlier:y.filter(function(e){return e.isOutlier}).length,sum:d3.sum(s),mean:v,q1:a,q2:g,q3:l,wl:h,wu:f,iqr:c,min:d3.min(s),max:d3.max(s),dev:d3.deviation(s),observations:y,key:t,kde:_,notch:1.57*c/Math.sqrt(s.length)};return M&&Z.push({key:t,values:A}),A}if(e.forEach(function(e,t){e.object_constancy=t+"_"+m(e)+"_"+f(e)}),M){G=new Set;var n,r=d3.group().key(function(e){return f(e)}).key(function(e){return M(e)}).rollup(function(e){return t(e,f(e[0]))}).entries(e);G=G.values();for(var i=r.map(function(e){return e.key}),o=[],s=0;s<i.length;s++)for(var a=0;a<G.length;a++)o.push(i[s]+"_"+G[a]);G=o,n=[],r.forEach(function(e){e.values.forEach(function(t){t.key=e.key+"_"+t.key}),n.push.apply(n,e.values)})}else n=d3.group().key(function(e){return f(e)}).rollup(function(e,n){return t(e)}).entries(e);return n}function W(e){return"iqr"==T&&e.isOutlier||"stddev"==T&&e.isOutlierStdDev}var $,G=new Set,K=[],Z=[],X=e.utils.renderWatch(V,H);function Q(d){return X.reset(),d.each(function(d){t=c-l.left-l.right,n=u-l.top-l.bottom,Y=d3.select(this),e.utils.initSVG(Y),p.domain(s||d3.extent(d.map(function(e){return m(e)}))).nice().range(a||[n,0]),void 0===$&&($=q(d)),h.range(o||[0,t],.1).domain(i||M&&!N?G:$.map(function(e){return e.key}));var f=Y.selectAll("g.nv-wrap").data([$]).enter().append("g").attr("class","nvd3 nv-wrap");f.watchTransition(X,"nv-wrap: wrap").attr("transform","translate("+l.left+","+l.top+")");var T,L=f.selectAll(".nv-distroplot-x-group").data(function(e){return e});L.each(function(e,t){d3.select(this).selectAll("line.nv-distroplot-middle").datum(e)}),T=L.enter().append("g").attr("class","nv-distroplot-x-group").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).style("fill",function(e,t){return g(e)||B(e,t)}).style("stroke",function(e,t){return g(e)||B(e,t)}),L.exit().remove();var P=function(){return h.bandwidth()},R=function(){return d3.min([U,.9*P()])},j=function(){return R()/2},H=function(){return j()-R()/2},z=function(){return j()-R()/5},Z=function(){return j()+R()/5};T.attr("transform",function(e){return"translate("+(h(e.key)+.5*(P()-R()))+", 0)"}),L.watchTransition(X,"nv-distroplot-x-group: distroplots").style("stroke-opacity",1).style("fill-opacity",.5).attr("transform",function(e){return"translate("+(h(e.key)+.5*(P()-R()))+", 0)"}),K.map(function(e){e.range([R()/2,0])}),r||(O=!1,E||(E="random")),T.each(function(e,t){var n=d3.select(this);[w,A].forEach(function(e){var t=e===w?"low":"high";n.append("line").style("opacity",function(){return D?"1":"0"}).attr("class","nv-distroplot-whisker nv-distroplot-"+t),n.append("line").style("opacity",function(){return D?"0":"1"}).attr("class","nv-distroplot-tick nv-distroplot-"+t)})}),[w,A].forEach(function(e){var t=e===w?"low":"high",n=e===w?v:b;L.select("line.nv-distroplot-whisker.nv-distroplot-"+t).watchTransition(X,"nv-distroplot-x-group: distroplots").attr("x1",j()).attr("y1",function(t){return p("violin"!=r?e(t):y(t))}).attr("x2",j()).attr("y2",function(e){return p("box"==r?n(e):y(e))}).style("opacity",function(){return D?"0":"1"}),L.select("line.nv-distroplot-tick.nv-distroplot-"+t).watchTransition(X,"nv-distroplot-x-group: distroplots").attr("x1",function(e){return"violin"!=r?z():j()}).attr("y1",function(t,n){return p("violin"!=r?e(t):y(t))}).attr("x2",function(e){return"violin"!=r?Z():j()}).attr("y2",function(t,n){return p("violin"!=r?e(t):y(t))}).style("opacity",function(){return D?"0":"1"})}),[w,A].forEach(function(e){var t=e===w?"low":"high";T.selectAll(".nv-distroplot-"+t).on("mouseover",function(n,r,i,o){setCoordinates(n.pageX,n.pageY),d3.select(this.parentNode).selectAll("line.nv-distroplot-"+t).classed("hover",!0),V.call("elementMouseover",this,{value:"low"==t?"Lower whisker":"Upper whisker",series:{key:e(r).toFixed(2),color:g(r)||B(r,o)},e:n})}).on("mouseout",function(n,r,i,o){d3.select(this.parentNode).selectAll("line.nv-distroplot-"+t).classed("hover",!1),V.call("elementMouseout",this,{value:"low"==t?"Lower whisker":"Upper whisker",series:{key:e(r).toFixed(2),color:g(r)||B(r,o)},e:n})}).on("mousemove",function(e,t){V.call("elementMousemove",this,{e:event})})}),T.each(function(e,t){var n=d3.select(this);["left","right"].forEach(function(e){["line","area"].forEach(function(t){n.append("path").attr("class","nv-distribution-"+t+" nv-distribution-"+e).attr("transform","rotate(90,0,0) translate(0,"+("left"==e?-R():0)+")"+("left"==e?"":" scale(1,-1)"))})}),T.selectAll(".nv-distribution-line").style("fill","none"),T.selectAll(".nv-distribution-area").style("stroke","none").style("opacity",.7)}),L.each(function(e,t){var n,i,o,s,a,l,c,u=d3.select(this),d="box"==r?(n=H(),i=z(),o=j(),s=e,c="mean"==I?_(s):y(s),C?[{x:o,y:p(v(s))},{x:n,y:p(v(s))},{x:n,y:p((a=s,("mean"==I?_(a):y(a))-a.values.notch))},{x:i,y:p(c)},{x:n,y:p((l=s,("mean"==I?_(l):y(l))+l.values.notch))},{x:n,y:p(b(s))},{x:o,y:p(b(s))}]:[{x:o,y:p(v(s))},{x:n,y:p(v(s))},{x:n,y:p(c)},{x:n,y:p(c)},{x:n,y:p(c)},{x:n,y:p(b(s))},{x:o,y:p(b(s))}]):e.values.kde;u.selectAll("path").datum(d);var h=K[t],f="box"==r?d3.curveLinear:d3.curveBasis;"box"==r||"violin"==r?["left","right"].forEach(function(e){L.selectAll(".nv-distribution-line.nv-distribution-"+e).attr("d",d3.line().x(function(e){return"box"==r?e.y:p(e.x)}).y(function(e){return"box"==r?e.x:h(e.y)}).curve(f)).attr("transform","rotate(90,0,0) translate(0,"+("left"==e?-R():0)+")"+("left"==e?"":" scale(1,-1)")).style("opacity",r?"1":"0"),L.selectAll(".nv-distribution-area.nv-distribution-"+e).attr("d",d3.area().x(function(e){return"box"==r?e.y:p(e.x)}).y(function(e){return"box"==r?e.x:h(e.y)}).y0(R()/2).curve(f)).attr("transform","rotate(90,0,0) translate(0,"+("left"==e?-R():0)+")"+("left"==e?"":" scale(1,-1)")).style("opacity",r?"1":"0")}):(L.selectAll(".nv-distribution-area").watchTransition(X,"nv-distribution-area: distroplots").style("opacity",r?"1":"0"),L.selectAll(".nv-distribution-line").watchTransition(X,"nv-distribution-line: distroplots").style("opacity",r?"1":"0"))}),L.selectAll("path").on("mouseover",function(e,t,n,r){setCoordinates(e.pageX,e.pageY),t=d3.select(this.parentNode).datum(),d3.select(this).classed("hover",!0),V.call("elementMouseover",this,{key:t.key,value:"Group "+t.key+" stats",series:[{key:"max",value:k(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q3",value:b(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q2",value:y(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q1",value:v(t).toFixed(2),color:g(t)||B(t,r)},{key:"min",value:x(t).toFixed(2),color:g(t)||B(t,r)},{key:"mean",value:_(t).toFixed(2),color:g(t)||B(t,r)},{key:"std. dev.",value:S(t).toFixed(2),color:g(t)||B(t,r)},{key:"count",value:t.values.count,color:g(t)||B(t,r)},{key:"num. outliers",value:t.values.num_outlier,color:g(t)||B(t,r)}],data:t,index:t.index,e:e})}).on("mouseout",function(e,t,n,r){d3.select(this).classed("hover",!1),t=d3.select(this.parentNode).datum(),V.call("elementMouseout",this,{key:t.key,value:"Group "+t.key+" stats",series:[{key:"max",value:k(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q3",value:b(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q2",value:y(t).toFixed(2),color:g(t)||B(t,r)},{key:"Q1",value:v(t).toFixed(2),color:g(t)||B(t,r)},{key:"min",value:x(t).toFixed(2),color:g(t)||B(t,r)},{key:"mean",value:_(t).toFixed(2),color:g(t)||B(t,r)},{key:"std. dev.",value:S(t).toFixed(2),color:g(t)||B(t,r)},{key:"count",value:t.values.count,color:g(t)||B(t,r)},{key:"num. outliers",value:t.values.num_outlier,color:g(t)||B(t,r)}],data:t,index:t.index,e:e})}).on("mousemove",function(e,t,n){V.call("elementMousemove",this,{e:e})}),T.append("line").attr("class",function(e){return"nv-distroplot-middle"}),L.selectAll("line.nv-distroplot-middle").watchTransition(X,"nv-distroplot-x-group: distroplots line").attr("x1",C?z:"violin"!=r?H:z()).attr("y1",function(e,t,n){return p("mean"==I?_(e):y(e))}).attr("x2",C?Z:"violin"!=r?function(){return j()+R()/2}:Z()).attr("y2",function(e,t){return p("mean"==I?_(e):y(e))}).style("opacity",I?"1":"0"),L.selectAll(".nv-distroplot-middle").on("mouseover",function(e,t,n,r){if(setCoordinates(e.pageX,e.pageY),0!=d3.select(this).style("opacity")){var i=d3.select(this.parentNode).style("fill");d3.select(this).classed("hover",!0),V.call("elementMouseover",this,{value:"mean"==I?"Mean":"Median",series:{key:"mean"==I?_(t).toFixed(2):y(t).toFixed(2),color:i},e:e})}}).on("mouseout",function(e,t,n,r){if(0!=d3.select(this).style("opacity")){d3.select(this).classed("hover",!1);var i=d3.select(this.parentNode).style("fill");V.call("elementMouseout",this,{value:"mean"==I?"Mean":"Median",series:{key:"mean"==I?_(t).toFixed(2):y(t).toFixed(2),color:i},e:e})}}).on("mousemove",function(e,t,n){V.call("elementMousemove",this,{e:e})});var Q=L.selectAll("g.nv-distroplot-observation").data(function(e){return e.values.observations},function(e){return e.object_constancy}),J=Q.enter().append("g").attr("class","nv-distroplot-observation");J.append("circle").style({opacity:0}),J.append("line").style("stroke-width",1).style({stroke:d3.rgb(85,85,85),opacity:0}),Q.exit().remove(),Q.attr("class",function(e){return"nv-distroplot-observation "+(W(e)&&"box"==r?"nv-distroplot-outlier":"nv-distroplot-non-outlier")}),"line"==E?L.selectAll("g.nv-distroplot-observation line").watchTransition(X,"nv-distrolot-x-group: nv-distoplot-observation").attr("x1",z()+R()/4).attr("x2",Z()-R()/4).attr("y1",function(e){return p(e.datum)}).attr("y2",function(e){return p(e.datum)}):(L.selectAll("g.nv-distroplot-observation circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").attr("cy",function(e){return p(e.datum)}).attr("r",F),L.selectAll("g.nv-distroplot-observation circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").attr("cx",function(e){return"swarm"==E?e.x+R()/2:"random"==E?R()/2+e.randX*R()/2:R()/2})),!1!==E&&(O?(L.selectAll(".nv-distroplot-outlier "+("line"==E?"line":"circle")).watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",1),L.selectAll(".nv-distroplot-non-outlier "+("line"==E?"line":"circle")).watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",0)):L.selectAll("line"==E?"line":"circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",1)),L.selectAll(".nv-distroplot-observation"+("line"==E?" circle":" line")).watchTransition(X,"nv-distroplot: nv-distoplot-observation").style("opacity",0),L.selectAll(".nv-distroplot-observation").on("mouseover",function(e,t,n,i){setCoordinates(e.pageX,e.pageY);var o=d3.select(this);if(!O||"box"!=r||W(t)){var s=d3.select(this.parentNode).style("fill");o.classed("hover",!0),V.call("elementMouseover",this,{value:"box"==r&&W(t)?"Outlier":"Observation",series:{key:t.datum.toFixed(2),color:s},e:e})}}).on("mouseout",function(e,t,n,i){var o=d3.select(this),s=d3.select(this.parentNode).style("fill");o.classed("hover",!1),V.call("elementMouseout",this,{value:"box"==r&&W(t)?"Outlier":"Observation",series:{key:t.datum.toFixed(2),color:s},e:e})}).on("mousemove",function(e,t,n){V.call("elementMousemove",this,{e:e})})}),X.renderEnd("nv-distroplot-x-group immediate"),Q}return Q.dispatch=V,Q.options=e.utils.optionsFunc.bind(Q),Q._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},maxBoxWidth:{get:function(){return U},set:function(e){U=e}},x:{get:function(){return f},set:function(e){f=e}},y:{get:function(){return m},set:function(e){m=e}},plotType:{get:function(){return r},set:function(e){r=e}},observationType:{get:function(){return E},set:function(e){E=e}},whiskerDef:{get:function(){return T},set:function(e){T=e}},notchBox:{get:function(){return C},set:function(e){C=e}},hideWhiskers:{get:function(){return D},set:function(e){D=e}},colorGroup:{get:function(){return M},set:function(e){M=e}},centralTendency:{get:function(){return I},set:function(e){I=e}},bandwidth:{get:function(){return P},set:function(e){P=e}},clampViolin:{get:function(){return R},set:function(e){R=e}},resolution:{get:function(){return j},set:function(e){j=e}},xScale:{get:function(){return h},set:function(e){h=e}},yScale:{get:function(){return p},set:function(e){p=e}},showOnlyOutliers:{get:function(){return O},set:function(e){O=e}},jitter:{get:function(){return L},set:function(e){L=e}},squash:{get:function(){return N},set:function(e){N=e}},pointSize:{get:function(){return F},set:function(e){F=e}},xDomain:{get:function(){return i},set:function(e){i=e}},yDomain:{get:function(){return s},set:function(e){s=e}},xRange:{get:function(){return o},set:function(e){o=e}},yRange:{get:function(){return a},set:function(e){a=e}},recalcData:{get:function(){$=q(Y.datum())}},itemColor:{get:function(){return g},set:function(e){g=e}},id:{get:function(){return d},set:function(e){d=e}},margin:{get:function(){return l},set:function(e){l.top=void 0!==e.top?e.top:l.top,l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},color:{get:function(){return B},set:function(t){B=e.utils.getColor(t)}},duration:{get:function(){return H},set:function(e){H=e,X.reset(H)}}}),e.utils.initOptions(Q),Q},e.models.distroPlotChart=function(){"use strict";var t,n,r,i=e.models.distroPlot(),o=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),s=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),a={top:25,right:10,bottom:40,left:60},l=null,c=null,u=e.utils.getColor(),d=!0,h=!0,p=!1,f=!1,m=!1,g=!1,v=e.models.tooltip(),y="No Data Available.",b=d3.dispatch("stateChange","beforeUpdate","renderEnd"),_=500;d3.transition().duration(_).ease(d3.easeLinear);o.showMaxMin(!1).tickFormat(function(e){return e}),s.tickFormat(d3.format(",.1f")),v.duration(0);var w,A,x,k,S,E,T=e.utils.renderWatch(b,_);function D(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0}function C(u){return T.reset(),T.models(i),d&&T.models(o),h&&T.models(s),u.each(function(u){var m=d3.select(this),g=this;e.utils.initSVG(m);var v=(l||parseInt(m.style("width"))||960)-a.left-a.right,M=(c||parseInt(m.style("height"))||400)-a.top-a.bottom;if(void 0===t&&(t=JSON.parse(JSON.stringify(u))),C.update=function(){b.call("beforeUpdate",g);var e,n=i.options();(w!==n.colorGroup()||A!==n.x()||x!==n.y()||S!==n.bandwidth()||k!==n.resolution()||E!==n.clampViolin()||!function(e,t){if(e.length!==t.length)return!1;for(var n=e.length;n--;)if("object_constancy"in e[n]&&delete e[n].object_constancy,"object_constancy"in t[n]&&delete t[n].object_constancy,!D(e[n],t[n]))return!1;return!0}(e=u,t)&&(t=JSON.parse(JSON.stringify(e)),1))&&i.recalcData(),m.transition().duration(_).call(C)},C.container=this,"function"!=typeof d3.beeswarm&&"swarm"==C.options().observationType())return a.left,y='Please include the library https://github.com/Kcnarf/d3-beeswarm to use "swarm".',e.utils.noData(C,m),C;if(!u||!u.length)return e.utils.noData(C,m),C;m.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale().clamp(!0);var I=m.selectAll("g.nv-wrap.nv-distroPlot").data([u]),O=I.enter().append("g").attr("class","nvd3 nv-wrap nv-distroPlot").append("g"),L=O.append("defs"),N=I.select("g");if(O.append("g").attr("class","nv-x nv-axis"),O.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),O.append("g").attr("class","nv-distroWrap"),O.attr("transform","translate("+a.left+","+a.top+")"),N.watchTransition(T,"nv-wrap: wrap").attr("transform","translate("+a.left+","+a.top+")"),p&&N.select(".nv-y.nv-axis").attr("transform","translate("+v+",0)"),i.width(v).height(M),N.select(".nv-distroWrap").datum(u).transition().call(i),L.append("clipPath").attr("id","nv-x-label-clip-"+i.id()).append("rect").attr("width",n.range()*(f?2:1)).attr("height",16).attr("x",-n.range()/(f?1:2)),d){o.scale(n)._ticks(e.utils.calcTicksX(v/100,u)),o.tickSizeInner(-M),N.select(".nv-x.nv-axis").attr("transform","translate(0,"+r.range()[0]+")"),N.select(".nv-x.nv-axis").call(o);var P=N.select(".nv-x.nv-axis").select("g.nvd3.nv-wrap.nv-axis").selectAll("g");f&&P.selectAll("text").attr("transform",function(e,t,n){return"translate(0,"+(n%2==0?"5":"17")+")"})}h&&(s.scale(r)._ticks(Math.floor(M/36)),s.tickSizeInner(-v),N.select(".nv-y.nv-axis").call(s)),N.select(".nv-zeroLine line").attr("x1",0).attr("x2",v).attr("y1",r(0)).attr("y2",r(0)),w=i.options().colorGroup(),A=i.options().x(),x=i.options().y(),S=i.options().bandwidth(),k=i.options().resolution(),E=i.options().clampViolin()}),T.renderEnd("nv-distroplot chart immediate"),C}return a.top,i.dispatch.on("elementMouseover.tooltip",function(e){v.data(e).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(e){v.data(e).hidden(!0)}),i.dispatch.on("elementMousemove.tooltip",function(e){v()}),C.dispatch=b,C.distroplot=i,C.xAxis=o,C.yAxis=s,C.tooltip=v,C.options=e.utils.optionsFunc.bind(C),C._options=Object.create({},{width:{get:function(){return l},set:function(e){l=e}},height:{get:function(){return c},set:function(e){c=e}},staggerLabels:{get:function(){return f},set:function(e){f=e}},showXAxis:{get:function(){return d},set:function(e){d=e}},showYAxis:{get:function(){return h},set:function(e){h=e}},tooltipContent:{get:function(){return v},set:function(e){v=e}},noData:{get:function(){return y},set:function(e){y=e}},defaultState:{get:function(){return defaultState},set:function(e){defaultState=e}},margin:{get:function(){return a},set:function(e){a.top=void 0!==e.top?e.top:a.top,a.right=void 0!==e.right?e.right:a.right,a.bottom=void 0!==e.bottom?e.bottom:a.bottom,a.left=void 0!==e.left?e.left:a.left}},duration:{get:function(){return _},set:function(e){_=e,T.reset(_),d3.transition().duration(_).ease(d3.easeLinear),i.duration(_),o.duration(_),s.duration(_)}},color:{get:function(){return u},set:function(t){u=e.utils.getColor(t),i.color(u)}},rightAlignYAxis:{get:function(){return p},set:function(e){p=e,s.orient(e?"right":"left")}},xLabel:{get:function(){return m},set:function(e){m=e,o.axisLabel(m)}},yLabel:{get:function(){return g},set:function(e){g=e,s.axisLabel(g)}}}),e.utils.inheritOptions(C,i),e.utils.initOptions(C),C},e.models.focus=function(t){"use strict";t=t||e.models.line();var n,r,i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=d3.brush(),a={top:10,right:0,bottom:30,left:0},l=e.utils.defaultColor(),c=null,u=70,d=!0,h=!1,p=!1,f=null,m=250,g=(d3.transition().duration(m).ease(d3.easeLinear),d3.dispatch("brush","onBrush","renderEnd")),v=!0;t.interactive(!1),t.pointActive(function(e){return!1});var y=e.utils.renderWatch(g,m);function b(_){return y.reset(),y.models(t),d&&y.models(i),h&&y.models(o),_.each(function(y){var _=d3.select(this);e.utils.initSVG(_);var w=e.utils.availableWidth(c,_,a),A=u-a.top-a.bottom;b.update=function(){0===m?_.call(b):_.transition().duration(m).call(b)},b.container=this,n=t.xScale(),r=t.yScale();var x=_.selectAll("g.nv-focus").data([y]).enter().append("g").attr("class","nvd3 nv-focus");x.attr("transform","translate("+a.left+","+a.top+")");var k=x.append("g"),S=k.append("g").attr("class","nv-background").append("rect"),E=k.append("g").attr("class","nv-x nv-axis");E=_.selectAll(".nv-focus").select(".nv-x.nv-axis");var T=k.append("g").attr("class","nv-y nv-axis");T=_.selectAll(".nv-focus").select(".nv-x.nv-axis");var D=k.append("g").attr("class","nv-contentWrap");D=_.selectAll(".nv-focus").select(".nv-contentWrap");var C=k.append("g").attr("class","nv-brushBackground");C=_.selectAll(".nv-focus").select(".nv-brushBackground");var M=k.append("g").attr("class","nv-x nv-brush");M=_.selectAll(".nv-focus").select(".nv-x.nv-brush"),p&&T.attr("transform","translate("+w+",0)"),S.attr("width",w).attr("height",A),t.width(w).height(A).color(y.map(function(e,t){return e.color||l(e,t)}).filter(function(e,t){return!y[t].disabled})),D.datum(y.filter(function(e){return!e.disabled})),D.transition().call(t),s.on("brush",function(){N(v)}),s.on("end",function(e){v||g.call("brush",this,null===e.selection?n.domain():s.extent())}),f&&s.extent(f);var I=C.selectAll("g").data([f||s.extent()]),O=I.enter().append("g");O.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",A),O.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",A).merge(k);var L=M.call(s);function N(e){f=s.extent().length?s.extent():null;var t=s.extent().length?s.extent():n.domain();g.call("brush",null,{extent:t,brush:s}),null!=f&&s.extent(f),I.data([null===f?n.domain():f]).each(function(e,t){var r=n(e[0])-n.range()[0],i=w-n(e[1]);d3.select(this).select(".left").attr("width",r<0?0:r),d3.select(this).select(".right").attr("x",n(e[1])).attr("width",i<0?0:i)}),e&&g.call("brush",null,t)}L.selectAll("rect").attr("height",A),L.selectAll(".resize").append("path").attr("d",function(e){var t=+("e"==e),n=t?1:-1,r=A/3;return"M"+.5*n+","+r+"A6,6 0 0 "+t+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+t+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}).merge(k),N(!0),S.attr("width",w).attr("height",A).merge(k),d&&(i.scale(n)._ticks(e.utils.calcTicksX(w/100,y)),i.tickSizeInner(-A),E.attr("transform","translate(0,"+r.range()[0]+")"),E.transition().call(i)),h&&(o.scale(r)._ticks(e.utils.calcTicksY(A/36,y)),o.tickSizeInner(-w),T.call(o)),E.attr("transform","translate(0,"+r.range()[0]+")").merge(k)}),y.renderEnd("focus immediate"),b}return b.dispatch=g,b.content=t,b.brush=s,b.xAxis=i,b.yAxis=o,b.options=e.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},showXAxis:{get:function(){return d},set:function(e){d=e}},showYAxis:{get:function(){return h},set:function(e){h=e}},brushExtent:{get:function(){return f},set:function(e){f=e}},syncBrushing:{get:function(){return v},set:function(e){v=e}},margin:{get:function(){return a},set:function(e){a.top=void 0!==e.top?e.top:a.top,a.right=void 0!==e.right?e.right:a.right,a.bottom=void 0!==e.bottom?e.bottom:a.bottom,a.left=void 0!==e.left?e.left:a.left}},duration:{get:function(){return m},set:function(e){m=e,y.reset(m),d3.transition().duration(m).ease(d3.easeLinear),t.duration(m),i.duration(m),o.duration(m)}},color:{get:function(){return l},set:function(n){l=e.utils.getColor(n),t.color(l)}},interpolate:{get:function(){return t.interpolate()},set:function(e){t.interpolate(e)}},xTickFormat:{get:function(){return i.tickFormat()},set:function(e){i.tickFormat(e)}},yTickFormat:{get:function(){return o.tickFormat()},set:function(e){o.tickFormat(e)}},x:{get:function(){return t.x()},set:function(e){t.x(e)}},y:{get:function(){return t.y()},set:function(e){t.y(e)}},rightAlignYAxis:{get:function(){return p},set:function(e){p=e,o.orient(p?"right":"left")}}}),e.utils.inheritOptions(b,t),e.utils.initOptions(b),b},e.models.forceDirectedGraph=function(){"use strict";var t={top:2,right:0,bottom:2,left:0},n=400,r=32,i=null,o=d3.dispatch("renderEnd"),s=e.utils.getColor(["#000"]),a=e.models.tooltip(),l=null,c=.1,u=.5,d=30,h=-120,p=.1,f=.8,m=.3,g=5,v=function(e){},y=function(e){},b=function(){return 0},_=function(){return 0},w=e.utils.renderWatch(o);function A(o){return w.reset(),o.each(function(o){i=d3.select(this),e.utils.initSVG(i);var l=e.utils.availableWidth(n,i,t),p=e.utils.availableHeight(r,i,t);if(i.attr("width",l).attr("height",p),!o||!o.links||!o.nodes)return e.utils.noData(A,i),A;i.selectAll(".nv-noData").remove(),i.selectAll("*").remove();var f=new Set;o.nodes.forEach(function(e){Object.keys(e).forEach(function(e){f.add(e)})});var b=d3.forceSimulation().nodes(o.nodes).force("link",d3.forceLink(o.links).strength(c).distance(d)).force("center",d3.forceCenter(l/2,p/2)).force("charge",d3.forceManyBody().strength(h)).alphaTarget(m).velocityDecay(u),_=i.selectAll(".link").data(o.links).enter().append("line").attr("class","nv-force-link").style("stroke-width",function(e){return Math.sqrt(e.value)}),w=i.selectAll(".node").data(o.nodes).enter().append("g").attr("class","nv-force-node").call(d3.drag().on("start",function(e,t){e.sourceEvent.stopPropagation(),e.active||b.alphaTarget(m).restart(),t.fx=t.x,t.fy=t.y}).on("drag",function(e,t){t.fx=e.x,t.fy=e.y}).on("end",function(e,t){e.active||b.alphaTarget(m),t.fx=null,t.fy=null}));w.append("circle").attr("r",g).style("fill",function(e){return s(e)}).on("mouseover",function(e){i.select(".nv-series-"+e.seriesIndex+" .nv-distx-"+e.pointIndex).attr("y1",e.py),i.select(".nv-series-"+e.seriesIndex+" .nv-disty-"+e.pointIndex).attr("x2",e.px);var t=s(e);e.series=[],f.forEach(function(n){e.series.push({color:t,key:n,value:e[n]})}),a.data(e).hidden(!1)}).on("mouseout",function(e){a.hidden(!0)}),a.headerFormatter(function(e){return"Node"}),y(_),v(w),b.on("tick",function(){_.attr("x1",function(e){return e.source.x}).attr("y1",function(e){return e.source.y}).attr("x2",function(e){return e.target.x}).attr("y2",function(e){return e.target.y}),w.attr("transform",function(e){return"translate("+e.x+", "+e.y+")"})})}),A}return A.options=e.utils.optionsFunc.bind(A),A._options=Object.create({},{width:{get:function(){return n},set:function(e){n=e}},height:{get:function(){return r},set:function(e){r=e}},linkStrength:{get:function(){return c},set:function(e){c=e}},friction:{get:function(){return u},set:function(e){u=e}},linkDist:{get:function(){return d},set:function(e){d=e}},charge:{get:function(){return h},set:function(e){h=e}},gravity:{get:function(){return p},set:function(e){p=e}},theta:{get:function(){return f},set:function(e){f=e}},alpha:{get:function(){return m},set:function(e){m=e}},radius:{get:function(){return g},set:function(e){g=e}},x:{get:function(){return b},set:function(e){b="function"==typeof e?e:function(){return e}}},y:{get:function(){return _},set:function(e){_="function"==typeof e?e:function(){return e}}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},color:{get:function(){return s},set:function(t){s=e.utils.getColor(t)}},noData:{get:function(){return l},set:function(e){l=e}},nodeExtras:{get:function(){return v},set:function(e){v=e}},linkExtras:{get:function(){return y},set:function(e){y=e}}}),A.dispatch=o,A.tooltip=a,e.utils.initOptions(A),A},e.models.furiousLegend=function(){"use strict";var t={top:5,right:0,bottom:5,left:0},n=400,r=20,i=function(e){return e.key},o=function(e){return e},s=e.utils.getColor(),a=20,l=!0,c=28,u=!0,h=!0,p=!1,f=!1,m=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),g="classic";function v(y){function b(e,t){return"furious"!=g?"#000":f?e.disengaged?s(e,t):"#fff":f?void 0:e.disabled?s(e,t):"#fff"}function _(e,t){return f&&"furious"==g?e.disengaged?"#fff":s(e,t):e.disabled?"#fff":s(e,t)}return y.each(function(v){var y=n-t.left-t.right,w=d3.select(this);e.utils.initSVG(w);var A=w.selectAll("g.nv-legend").data([v]).enter().append("g").attr("class","nvd3 nv-legend");A.attr("transform","translate("+t.left+","+t.top+")");var x=A.append("g").select("g"),k=w.selectAll("g.nv-legend").select("g").selectAll(".nv-series").data(function(e){return"furious"!=g?e:e.filter(function(e){return!!f||!e.disengaged})}),S=k.enter().append("g").attr("class","nv-series");if("classic"==g)R=S.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5).select("circle");else if("furious"==g){var E=S.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3);R=E.select("rect"),E.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)"),k.select(".nv-check-box").each(function(e,t){d3.select(this).selectAll("path").attr("stroke",b(e,t))})}var T=S.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");switch((S=k.merge(S)).on("mouseover",function(e,t,n){m.call("legendMouseover",e,t,n)}).on("mouseout",function(e,t,n){m.call("legendMouseout",e,t,n)}).on("click",function(e,t,n){m.call("legendClick",e,t,n);var r=S.data();h&&("classic"==g?p?(r.forEach(function(e){e.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,r.every(function(e){return e.disabled})&&r.forEach(function(e){e.disabled=!1})):"furious"==g&&(f?(t.disengaged=!t.disengaged,t.userDisabled=null==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled):!f&&(t.disabled=!t.disabled,t.userDisabled=t.disabled,r.filter(function(e){return!e.disengaged}).every(function(e){return e.userDisabled})&&r.forEach(function(e){e.disabled=e.userDisabled=!1}))),m.call("stateChange",this,{disabled:r.map(function(e){return!!e.disabled}),disengaged:r.map(function(e){return!!e.disengaged})}))}).on("dblclick",function(e,t,n){if(("furious"!=g||!f)&&(m.call("legendDblclick",this,e,t,n),h)){var r=S.data();r.forEach(function(e){e.disabled=!0,"furious"==g&&(e.userDisabled=e.disabled)}),t.disabled=!1,"furious"==g&&(t.userDisabled=t.disabled),m.call("stateChange",this,{disabled:r.map(function(e){return!!e.disabled})})}}),S.classed("nv-disabled",function(e){return e.userDisabled}),S.exit().remove(),T.attr("fill",b(d,N)).text(function(e){return o(i(e))}),g){case"furious":j=23;break;case"classic":j=20}if(l){var D=[];S.each(function(t,n){if(o(i(t))&&o(i(t)).length>a){var r,s,l=o(i(t)).substring(0,a);r=d3.select(this).select("text").text(l+"..."),d3.select(this).append("svg:title").text(o(i(t)))}else r=d3.select(this).select("text");try{if((s=r.node().getComputedTextLength())<=0)throw Error()}catch(t){s=e.utils.calcApproxTextWidth(r)}D.push(s+c)});for(var C=0,M=0,I=[];M<y&&C<D.length;)I[C]=D[C],M+=D[C++];for(0===C&&(C=1);M>y&&C>1;){I=[],C--;for(var O=0;O<D.length;O++)D[O]>(I[O%C]||0)&&(I[O%C]=D[O]);M=I.reduce(function(e,t,n,r){return e+t})}for(var L=[],N=0,P=0;N<C;N++)L[N]=P,P+=I[N];S.attr("transform",function(e,t){return"translate("+L[t%C]+","+(5+Math.floor(t/C)*j)+")"}),u?x.attr("transform","translate("+(n-t.right-M)+","+t.top+")"):x.attr("transform","translate(0,"+t.top+")"),r=t.top+t.bottom+Math.ceil(D.length/C)*j}else{var R,j,F,B=5,Y=5,V=0;S.attr("transform",function(e,r){var i=d3.select(this).select("text").node().getComputedTextLength()+c;return F=Y,n<t.left+t.right+F+i&&(Y=F=5,B+=j),(Y+=i)>V&&(V=Y),"translate("+F+","+B+")"}),x.attr("transform","translate("+(n-t.right-V)+","+t.top+")"),r=t.top+t.bottom+B+15}"furious"==g&&R.attr("width",function(e,t){return T[0][t].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),R.style("fill",_).style("stroke",function(e,t){return e.color||s(e,t)})}),v}return v.dispatch=m,v.options=e.utils.optionsFunc.bind(v),v._options=Object.create({},{width:{get:function(){return n},set:function(e){n=e}},height:{get:function(){return r},set:function(e){r=e}},key:{get:function(){return i},set:function(e){i=e}},keyFormatter:{get:function(){return o},set:function(e){o=e}},align:{get:function(){return l},set:function(e){l=e}},rightAlign:{get:function(){return u},set:function(e){u=e}},maxKeyLength:{get:function(){return a},set:function(e){a=e}},padding:{get:function(){return c},set:function(e){c=e}},updateState:{get:function(){return h},set:function(e){h=e}},radioButtonMode:{get:function(){return p},set:function(e){p=e}},expanded:{get:function(){return f},set:function(e){f=e}},vers:{get:function(){return g},set:function(e){g=e}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},color:{get:function(){return s},set:function(t){s=e.utils.getColor(t)}}}),e.utils.initOptions(v),v},e.models.heatMap=function(){"use strict";var t,n,r,i,o,s,a,l,c,u,d,h,p={top:0,right:0,bottom:0,left:0},f=960,m=500,g=Math.floor(1e4*Math.random()),v=d3.scaleBand(),y=d3.scaleBand(),b=!1,_=function(e){return e.x},w=function(e){return e.y},A=function(e){return e.value},x=!0,k=function(e){return"number"==typeof e?e.toFixed(0):e},S=!1,E=2,T=4,D=!1,C=!0,M=e.utils.defaultColor(),I=e.utils.defaultColor(),O="#bcbcbc",L="",N=5,P=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),R=250,j=function(e){return n/3},F=function(e){return r/3},B=!1;function Y(e){var t=d3.median(e),n=e.map(function(e){return Math.abs(e-t)});return d3.median(n)}function V(e){var t=D?ie(e):A(e);return H()&&!isNaN(t)||void 0!==t?b(t):O}function H(){return"number"==typeof K[0]}function U(){d3.selectAll(".cell-hover").classed("cell-hover",!1),d3.selectAll(".no-hover").classed("no-hover",!1),d3.selectAll(".row-hover").classed("row-hover",!1),d3.selectAll(".column-hover").classed("column-hover",!1)}var z=function(e){var t=k(D?ie(e):A(e));return H()&&!isNaN(t)||void 0!==t?t:L};function q(e){return Object.keys(e).sort(function(t,n){return e[t]-e[n]})}function W(e,t){return Object.keys(e).filter(function(n){return e[n]===t})[0]}var $={},G={},K=[],Z=[],X=[],Q=[],J=e.utils.renderWatch(P,R),ee=["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],te=function(e){return e._cellPos},ne=function(e){return te(e).ix},re=function(e){return te(e).iy},ie=function(e){return te(e).norm},oe=function(e){return te(e).idx};function se(g){return J.reset(),g.each(function(g){$={},G={},K=[],Z=[],X=[],Q=[],k=[],O={},L=0,R=0,se=0,g.forEach(function(e){var t,n,r,i=_(e),o=w(e),s=A(e);i in $||($[i]=L,L++,O[i]={},"function"==typeof c&&Z.push(c(e))),o in G||(G[o]=R,R++,O[i][o]={},"function"==typeof u&&X.push(u(e))),-1==K.indexOf(s)&&K.push(s),e._cellPos={idx:se,ix:$[i],iy:G[o]},se++,t=Q,n=te=[i,o],r=JSON.stringify(n),t.some(function(e){return JSON.stringify(e)===r})?-1==k.indexOf(i+o)&&(k.push(i+o),console.warn("The row/column position "+i+"/"+o+" has multiple values; ensure each cell has only a single value.")):(Q.push(te),O[i][o]=e)}),K=K.sort(),ae=[],Object.keys(G).forEach(function(e){Object.keys($).forEach(function(t){var n=O[t][e];if(n)ae.push(n);else{var r={idx:se,ix:$[t],iy:G[e]};se++,ae.push({_cellPos:r})}})}),t=D?function(e){if(-1!=["centerRow","robustCenterRow","centerScaleRow","robustCenterScaleRow","centerColumn","robustCenterColumn","centerScaleColumn","robustCenterScaleColumn","centerAll","robustCenterAll","centerScaleAll","robustCenterScaleAll"].indexOf(D)){Object.keys($),Object.keys(G);var t,n,r=!!D.includes("Scale"),i=D.includes("robust")?"median":"mean",o=D.includes("Row")?"row":D.includes("Column")?"col":null,s=(t=o,n={},e.forEach(function(e,r){"row"==t?(re(e)in n||(n[re(e)]=[]),n[re(e)].push(A(e))):"col"==t?(ne(e)in n||(n[ne(e)]=[]),n[ne(e)].push(A(e))):null==t&&(0 in n||(n[0]=[]),n[0].push(A(e)))}),n),a={},l={};for(var c in s)a[c]="mean"==i?d3.mean(s[c]):d3.median(s[c]),r&&(l[c]="mean"==i?d3.deviation(s[c]):Y(s[c]));e.forEach(function(e,t){if(H()){if("row"==o)var n=re(e);else if("col"==o)n=ne(e);else if(null==o)n=0;var i=A(e)-a[n];e._cellPos.norm=r?i/l[n]:i}else e._cellPos.norm=A(e)})}else D=!1;return e}(ae):ae;var k,O,L,R,te,se,ae,le=f-p.left-p.right,ce=m-p.top-p.bottom;r=le/Object.keys($).length,n=S?r/S:ce/Object.keys(G).length,S&&(ce=n*Object.keys(G).length-p.top-p.bottom),i=d3.select(this),e.utils.initSVG(i),v.domain(o||q($)).range(a||[0,le-T/2]),y.domain(s||q(G)).range(l||[0,ce-T/2]),(b=H()?d3.scaleQuantize():d3.scaleOrdinal()).domain(h||(H()?D?d3.extent(t,function(e){return ie(e)}):d3.extent(K):H()?void 0:K)).range(d||ee);var ue=i.selectAll("g.nv-heatMapWrap").data([t]),de=ue.enter().append("g").attr("class","nvd3 nv-heatMapWrap");de.append("g").attr("class","cellWrap"),ue.watchTransition(J,"nv-wrap: heatMapWrap").attr("transform","translate("+p.left+","+p.top+")"),de.append("g").attr("class","cellGrid").style("opacity",1e-6);var he=de.select(".cellGrid").selectAll(".gridLines.verticalGrid").data(Object.values($).concat([Object.values($).length]));he.enter().append("line").attr("class","gridLines verticalGrid"),he.exit().remove();var pe=de.select(".cellGrid").selectAll(".gridLines.horizontalGrid").data(Object.values(G).concat([Object.values(G).length]));pe.enter().append("line").attr("class","gridLines horizontalGrid"),pe.exit().remove();var fe=de.select(".cellWrap").selectAll(".nv-cell").data(function(e){return e},function(e){return oe(e)});de.append("g").attr("class","xMetaWrap").attr("transform",function(){return"translate(0,"+(-j()-T-N)+")"});var me=de.select(".xMetaWrap").selectAll(".x-meta").data(Z);me.enter().append("rect").attr("class","x-meta meta").attr("width",r-T).attr("height",j()).attr("transform","translate(0,0)").attr("fill",function(e){return M(e)}),de.append("g").attr("class","yMetaWrap").attr("transform",function(e,t){return"translate("+(-F()-T-N)+",0)"});var ge=de.select(".yMetaWrap").selectAll(".y-meta").data(X);ge.enter().append("rect").attr("class","y-meta meta").attr("width",F()).attr("height",n-T).attr("transform",function(e,t){return"translate(0,0)"}).attr("fill",function(e,t){return I(e)}),me.exit().remove(),ge.exit().remove();var ve=fe.enter().append("g").style("opacity",1e-6).attr("transform",function(e){return"translate(0,"+re(e)*n+")"}).attr("data-row",function(e){return re(e)}).attr("data-column",function(e){return ne(e)});ve.append("rect"),ve.append("text").attr("text-anchor","middle").attr("dy",4).attr("class","cell-text"),fe.selectAll("rect").watchTransition(J,"heatMap: rect").attr("width",r-T).attr("height",n-T).attr("rx",E).attr("ry",E).style("stroke",function(e){return V(e)}),fe.attr("class",function(e){return isNaN(A(e))?"nv-cell cell-missing":"nv-cell"}).watchTransition(J,"heatMap: cells").style({opacity:1,fill:function(e){return V(e)}}).attr("transform",function(e){return"translate("+ne(e)*r+","+re(e)*n+")"}).attr("class",function(e){return isNaN(A(e))?"nv-cell cell-missing":"nv-cell"}),fe.exit().remove(),fe.selectAll("text").watchTransition(J,"heatMap: cells text").text(function(e){return z(e)}).attr("x",function(e){return(r-T)/2}).attr("y",function(e){return(n-T)/2}).style("fill",function(e){return function(e){if(!C)return"black";var t=d3.rgb(e);return(299*t.r+587*t.g+114*t.b)/1e3>=128?"#404040":"#EDEDED"}(V(e))}).style("opacity",function(){return x?1:0}),de.selectAll(".verticalGrid").watchTransition(J,"heatMap: gridLines").attr("y1",0).attr("y2",ce-T).attr("x1",function(e){return e*r-T/2}).attr("x2",function(e){return e*r-T/2});var ye=Object.keys(G).length;de.selectAll(".horizontalGrid").watchTransition(J,"heatMap: gridLines").attr("x1",function(e){return 0==e||e==ye?-T:0}).attr("x2",function(e){return 0==e||e==ye?le:le-T}).attr("y1",function(e){return e*n-T/2}).attr("y2",function(e){return e*n-T/2}),de.select(".cellGrid").watchTransition(J,"heatMap: gridLines").style({"stroke-width":T,opacity:function(){return B?1:1e-6}}),de.selectAll(".x-meta"),de.selectAll(".y-meta");var be=de.selectAll(".meta");me.watchTransition(J,"heatMap: xMetaRect").attr("width",r-T).attr("height",j()).attr("transform",function(e,t){return"translate("+t*r+",0)"}),ge.watchTransition(J,"heatMap: yMetaRect").attr("width",F()).attr("height",n-T).attr("transform",function(e,t){return"translate(0,"+t*n+")"}),de.select(".xMetaWrap").watchTransition(J,"heatMap: xMetaWrap").attr("transform",function(e,t){return"translate(0,"+(-j()-T-N)+")"}).style("opacity",function(){return!1!==c?1:0}),de.select(".yMetaWrap").watchTransition(J,"heatMap: yMetaWrap").attr("transform",function(e,t){return"translate("+(-F()-T-N)+",0)"}).style("opacity",function(){return!1!==u?1:0}),fe.on("mouseover",function(e,t){var n=oe(e),r=ne(e),i=re(e);d3.selectAll(".nv-cell").each(function(e){n==oe(e)?(d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1)):(d3.select(this).classed("no-hover",!0),d3.select(this).classed("cell-hover",!1)),r==ne(e)&&(d3.select(this).classed("no-hover",!1),d3.select(this).classed("column-hover",!0)),i==re(e)&&(d3.select(this).classed("no-hover",!1),d3.select(this).classed("row-hover",!0))}),d3.selectAll(".x-meta").each(function(e,t){t==r?(d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1)):(d3.select(this).classed("no-hover",!0),d3.select(this).classed("cell-hover",!1))}),d3.selectAll(".y-meta").each(function(e,t){t==i?(d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1)):(d3.select(this).classed("no-hover",!0),d3.select(this).classed("cell-hover",!1))}),P.call("elementMouseover",this,{value:W($,r)+" & "+W(G,i),series:{value:z(e),color:d3.select(this).select("rect").style("fill")},e:d3.event})}).on("mouseout",function(e,t){d3.select(this).select("rect").node().getBBox();var n=d3.pointer(d3.select(".nv-heatMap").node()),r=n[0],i=n[1];(r+T>=le||i+T>=ce||r<0||i<0)&&(U(),P.call("elementMouseout",this,{e:d3.event}))}).on("mousemove",function(e,t){P.call("elementMousemove",this,{e:d3.event})}),be.on("mouseover",function(e,t){var n=-1!=d3.select(this).attr("class").indexOf("x-meta");d3.selectAll(".nv-cell").each(function(e){n&&t==ne(e)?(d3.select(this).classed("column-hover",!0),d3.select(this).classed("no-hover",!1)):n||t-Z.length!=re(e)?(d3.select(this).classed("no-hover",!0),d3.select(this).classed("column-hover",!1),d3.select(this).classed("row-hover",!1)):(d3.select(this).classed("row-hover",!0),d3.select(this).classed("no-hover",!1)),d3.select(this).classed("cell-hover",!1)}),d3.selectAll(".meta").classed("no-hover",!0),d3.select(this).classed("cell-hover",!0),d3.select(this).classed("no-hover",!1),P.call("elementMouseover",this,{value:n?"Column meta":"Row meta",series:{value:e,color:d3.select(this).style("fill")}})}).on("mouseout",function(e,t){var n=-1!=d3.select(this).attr("class").indexOf("x-meta");d3.select(this).node().getBBox();var r=d3.pointer(d3.select(n?".xMetaWrap":".yMetaWrap").node()),i=r[0],o=r[1];(o<0||i<0||n&&i+T>=le||!n&&o+T>=ce)&&(U(),P.call("elementMouseout",this,{e:d3.event}))}).on("mousemove",function(e,t){P.call("elementMousemove",this,{e:d3.event})})}),J.renderEnd("heatMap immediate"),se}return se.dispatch=P,se.options=e.utils.optionsFunc.bind(se),se._options=Object.create({},{width:{get:function(){return f},set:function(e){f=e}},height:{get:function(){return m},set:function(e){m=e}},showCellValues:{get:function(){return x},set:function(e){x=e}},x:{get:function(){return _},set:function(e){_=e}},y:{get:function(){return w},set:function(e){w=e}},cellValue:{get:function(){return A},set:function(e){A=e}},missingDataColor:{get:function(){return O},set:function(e){O=e}},missingDataLabel:{get:function(){return L},set:function(e){L=e}},xScale:{get:function(){return v},set:function(e){v=e}},yScale:{get:function(){return y},set:function(e){y=e}},colorScale:{get:function(){return b},set:function(e){b=e}},xDomain:{get:function(){return o},set:function(e){o=e}},yDomain:{get:function(){return s},set:function(e){s=e}},xRange:{get:function(){return a},set:function(e){a=e}},yRange:{get:function(){return l},set:function(e){l=e}},colorRange:{get:function(){return d},set:function(e){d=e}},colorDomain:{get:function(){return h},set:function(e){h=e}},xMeta:{get:function(){return c},set:function(e){c=e}},yMeta:{get:function(){return u},set:function(e){u=e}},xMetaColorScale:{get:function(){return color},set:function(t){color=e.utils.getColor(t)}},yMetaColorScale:{get:function(){return color},set:function(t){color=e.utils.getColor(t)}},cellAspectRatio:{get:function(){return S},set:function(e){S=e}},cellRadius:{get:function(){return E},set:function(e){E=e}},cellHeight:{get:function(){return n}},cellWidth:{get:function(){return r}},normalize:{get:function(){return D},set:function(e){D=e}},cellBorderWidth:{get:function(){return T},set:function(e){T=e}},highContrastText:{get:function(){return C},set:function(e){C=e}},cellValueFormat:{get:function(){return k},set:function(e){k=e}},id:{get:function(){return g},set:function(e){g=e}},metaOffset:{get:function(){return N},set:function(e){N=e}},xMetaHeight:{get:function(){return j},set:function(e){j=e}},yMetaWidth:{get:function(){return F},set:function(e){F=e}},showGrid:{get:function(){return B},set:function(e){B=e}},margin:{get:function(){return p},set:function(e){p.top=void 0!==e.top?e.top:p.top,p.right=void 0!==e.right?e.right:p.right,p.bottom=void 0!==e.bottom?e.bottom:p.bottom,p.left=void 0!==e.left?e.left:p.left}},duration:{get:function(){return R},set:function(e){R=e,J.reset(R)}}}),e.utils.initOptions(se),se},e.models.heatMapChart=function(){"use strict";var t,n,r=e.models.heatMap(),i=e.models.legend(),o=(e.models.legend(),e.models.legend(),e.models.tooltip()),s=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),a=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),l={top:20,right:10,bottom:50,left:60},c=null,u=null,d=(e.utils.getColor(),!0),h=!1,p=!0,f=!0,m="left",g="top",v=0,y=null,b=d3.dispatch("beforeUpdate","renderEnd"),_=250;d3.transition().duration(_).ease(d3.easeLinear),s.showMaxMin(!1).tickFormat(function(e){return e}),a.showMaxMin(!1).tickFormat(function(e){return e}),o.duration(0).headerEnabled(!0).keyFormatter(function(e,t){return s.tickFormat()(e,t)});var w=e.utils.renderWatch(b,_);function A(o){return w.reset(),w.models(r),w.models(s),w.models(a),o.each(function(o){var y=d3.select(this);e.utils.initSVG(y);var x=e.utils.availableWidth(c,y,l),k=e.utils.availableHeight(u,y,l);if(A.update=function(){b.call("beforeUpdate",this),y.transition().duration(_).call(A)},A.container=this,!o||!o.length)return e.utils.noData(A,y),A;y.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var S=y.selectAll("g.nv-wrap").data([o]),E=S.enter().append("g");E.attr("transform","translate("+l.left+","+l.top+")");var T=E.attr("class","nvd3 nv-wrap").append("g"),D=S.select("g"),C=T.append("g").attr("class","nv-heatMap"),M=T.append("g").attr("class","nv-legendWrap"),I=T.append("g").attr("class","nv-x nv-axis");I=y.selectAll("g.nv-wrap.nv-heatMap").select(".nv-x");var O=T.append("g").attr("class","nv-y nv-axis");M=y.selectAll("g.nv-wrap").select(".nv-legendWrap"),r.width(x).height(k),C.datum(o.filter(function(e){return!e.disabled})).transition().call(r),r.cellAspectRatio()&&(k=r.cellHeight()*n.domain().length,r.height(k)),s.scale(t)._ticks(e.utils.calcTicksX(x/100,o)),s.tickSizeInner(-k);var L=I;L.call(s).watchTransition(w,"heatMap: axisX").selectAll(".tick").style("opacity",function(){return p?1:0}),L.select("g.nvd3.nv-wrap.nv-axis").selectAll("g").selectAll(".tick text").attr("transform",function(e,t,n){return"translate(0, "+(h?n%2==0?"5":"17":"0")+") rotate("+(0!=v?v:"0")+" 0,0)"}).style("text-anchor",v>0?"start":v<0?"end":"middle");var N=-5;if("function"==typeof r.xMeta()&&(L.selectAll("text").style("text-anchor","middle"),N=-r.xMetaHeight()()/2-r.metaOffset()+3),"bottom"==g){if(L.watchTransition(w,"heatMap: axisX").attr("transform","translate(0,"+(k-N)+")"),!1!==r.xMeta()){var P=k+r.metaOffset()+r.cellBorderWidth();D.select(".xMetaWrap").watchTransition(w,"heatMap: xMetaWrap").attr("transform",function(e,t){return"translate(0,"+P+")"})}}else L.watchTransition(w,"heatMap: axisX").attr("transform","translate(0,"+N+")");a.scale(n)._ticks(e.utils.calcTicksY(k/36,o)),a.tickSizeInner(-x);var R=O;R.call(a).watchTransition(w,"heatMap: axisY").selectAll(".tick").style("opacity",function(){return f?1:0});var j=-5;if("function"==typeof r.yMeta()&&(R.selectAll("text").style("text-anchor","middle"),j=-r.yMetaWidth()()/2-r.metaOffset()),"right"==m){if(R.attr("transform","translate("+(x-j)+",0)"),!1!==r.yMeta()){P=x+r.metaOffset()+r.cellBorderWidth();D.select(".yMetaWrap").watchTransition(w,"heatMap: yMetaWrap").attr("transform",function(e,t){return"translate("+P+",0)"})}}else R.attr("transform","translate("+j+",0)");var F,B=M;i.width(x).color(r.colorScale().range());var Y=("string"==typeof(F=r.colorScale()).domain()[0]?F.domain():F.range().map(function(e){var t=F.invertExtent(e);return null===t[0]&&(t[0]=F.domain()[0]),null===t[1]&&(t[1]=F.domain()[1]),t})).map(function(e){return Array.isArray(e)?{key:e[0].toFixed(1)+" - "+e[1].toFixed(1)}:{key:e}});B.datum(Y).call(i).attr("transform","translate(0,"+("top"==g?k:-30)+")"),B.watchTransition(w,"heatMap: nv-legendWrap").style("opacity",function(){return d?1:0})}),d3.selectAll(".nv-axis").selectAll("line").style("stroke-opacity",0),yAxisAppend.select("path.domain").remove(),w.renderEnd("heatMap chart immediate"),A}return r.dispatch.on("elementMouseover.tooltip",function(e){o.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){o.hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(e){o()}),A.dispatch=b,A.heatMap=r,A.legend=i,A.xAxis=s,A.yAxis=a,A.tooltip=o,A.options=e.utils.optionsFunc.bind(A),A._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},showLegend:{get:function(){return d},set:function(e){d=e}},noData:{get:function(){return y},set:function(e){y=e}},showXAxis:{get:function(){return p},set:function(e){p=e}},showYAxis:{get:function(){return f},set:function(e){f=e}},staggerLabels:{get:function(){return h},set:function(e){h=e}},rotateLabels:{get:function(){return v},set:function(e){v=e}},margin:{get:function(){return l},set:function(e){void 0!==e.top&&(l.top=e.top,e.top),l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},duration:{get:function(){return _},set:function(e){_=e,w.reset(_),r.duration(_),s.duration(_),a.duration(_)}},alignYAxis:{get:function(){return m},set:function(e){m=e}},alignXAxis:{get:function(){return g},set:function(e){g=e}}}),e.utils.inheritOptions(A,r),e.utils.initOptions(A),A},e.models.historicalBar=function(){"use strict";var t,n,r,i,o={top:0,right:0,bottom:0,left:0},s=null,a=null,l=Math.floor(1e4*Math.random()),c=null,u=d3.scaleLinear(),d=d3.scaleLinear(),h=function(e){return e.x},p=function(e){return e.y},f=[],m=[0],g=!1,v=!0,y=e.utils.defaultColor(),b=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),_=!0,w=e.utils.renderWatch(b,0);function A(x){return x.each(function(A){w.reset(),c=d3.select(this);var x=e.utils.availableWidth(s,c,o),k=e.utils.availableHeight(a,c,o);e.utils.initSVG(c),u.domain(t||d3.extent(A[0].values.map(h).concat(f))),g?u.range(r||[.5*x/A[0].values.length,x*(A[0].values.length-.5)/A[0].values.length]):u.range(r||[0,x]),d.domain(n||d3.extent(A[0].values.map(p).concat(m))).range(i||[k,0]),u.domain()[0]===u.domain()[1]&&(u.domain()[0]?u.domain([u.domain()[0]-.01*u.domain()[0],u.domain()[1]+.01*u.domain()[1]]):u.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var S=c.selectAll("g.nv-wrap.nv-historicalBar-"+l).data([A[0].values]).enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+l);S.attr("transform","translate("+o.left+","+o.top+")");var E=S.append("defs"),T=S.append("g"),D=S.select("g"),C=T.append("g").attr("class","nv-bars");c.on("click",function(e,t,n){b.call("chartClick",this,{data:t,index:t.index,pos:e,id:l})}),E.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect").attr("width",x).attr("height",k),D.attr("clip-path",v?"url(#nv-chart-clip-path-"+l+")":"");var M=C.selectAll(".nv-bar").data(function(e){return e},function(e,t){return h(e,t)});M.exit().remove();var I=M.enter().append("rect").attr("x",0).attr("y",function(t,n){return e.utils.NaNtoZero(d(Math.max(0,p(t,n))))}).attr("height",function(t,n){return e.utils.NaNtoZero(Math.abs(d(p(t,n))-d(0)))}).attr("transform",function(e,t){return"translate("+(u(h(e,t))-x/A[0].values.length*.45)+",0)"}).on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),_&&(d3.select(this).classed("hover",!0),b.call("elementMouseover",this,{data:t,index:t.index,color:d3.select(this).style("fill")}))}).on("mouseout",function(e,t,n){_&&(d3.select(this).classed("hover",!1),b.call("elementMouseout",this,{data:t,index:t.index,color:d3.select(this).style("fill")}))}).on("mousemove",function(e,t,n){_&&b.call("elementMousemove",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("click",function(e,t,n){_&&(b.call("elementClick",this,{data:t,index:t.index,color:d3.select(this).style("fill"),event:d3.event,element:this}),e.stopPropagation())}).on("dblclick",function(e,t,n){_&&(b.call("elementDblClick",this,{data:t,index:t.index,color:d3.select(this).style("fill")}),e.stopPropagation())});I.attr("fill",function(e,t){return y(e,t)}).attr("class",function(e,t,n){return(0>p(e,t)?"nv-bar negative":"nv-bar positive")+" nv-bar-0-"+t}).watchTransition(w,"bars").attr("transform",function(e,t){return"translate("+(u(h(e,t))-x/A[0].values.length*.45)+",0)"}).attr("width",x/A[0].values.length*.9),I.watchTransition(w,"bars").attr("y",function(t,n){var r=0>p(t,n)?d(0):d(0)-d(p(t,n))<1?d(0)-1:d(p(t,n));return e.utils.NaNtoZero(r)}).attr("height",function(t,n){return e.utils.NaNtoZero(Math.max(Math.abs(d(p(t,n))-d(0)),1))})}),w.renderEnd("historicalBar immediate"),A}return A.highlightPoint=function(e,t){c.select(".nv-bars .nv-bar-0-"+e).classed("hover",t)},A.clearHighlights=function(){c.select(".nv-bars .nv-bar.hover").classed("hover",!1)},A.dispatch=b,A.options=e.utils.optionsFunc.bind(A),A._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},forceX:{get:function(){return f},set:function(e){f=e}},forceY:{get:function(){return m},set:function(e){m=e}},padData:{get:function(){return g},set:function(e){g=e}},x:{get:function(){return h},set:function(e){h=e}},y:{get:function(){return p},set:function(e){p=e}},xScale:{get:function(){return u},set:function(e){u=e}},yScale:{get:function(){return d},set:function(e){d=e}},xDomain:{get:function(){return t},set:function(e){t=e}},yDomain:{get:function(){return n},set:function(e){n=e}},xRange:{get:function(){return r},set:function(e){r=e}},yRange:{get:function(){return i},set:function(e){i=e}},clipEdge:{get:function(){return v},set:function(e){v=e}},id:{get:function(){return l},set:function(e){l=e}},interactive:{get:function(){return _},set:function(e){_=e}},margin:{get:function(){return o},set:function(e){o.top=void 0!==e.top?e.top:o.top,o.right=void 0!==e.right?e.right:o.right,o.bottom=void 0!==e.bottom?e.bottom:o.bottom,o.left=void 0!==e.left?e.left:o.left}},color:{get:function(){return y},set:function(t){y=e.utils.getColor(t)}}}),e.utils.initOptions(A),A},e.models.historicalBarChart=function(t){"use strict";var n,r,i=t||e.models.historicalBar(),o=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),s=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),a=e.models.legend(),l=e.interactiveGuideline(),c=e.models.tooltip(),u={top:30,right:90,bottom:50,left:90},d=null,h=e.utils.defaultColor(),p=null,f=null,m=!1,g=!0,v=!0,y=!1,b=!1,_={},w=null,A=null,x=d3.dispatch("tooltipHide","stateChange","changeState","renderEnd"),k=250;o.tickPadding(7),c.duration(0).headerEnabled(!1).valueFormatter(function(e,t){return s.tickFormat()(e,t)}).headerFormatter(function(e,t){return o.tickFormat()(e,t)});var S=e.utils.renderWatch(x,0);function E(t){return t.each(function(c){S.reset(),S.models(i),g&&S.models(o),v&&S.models(s);var A,T=d3.select(this);e.utils.initSVG(T);var D=e.utils.availableWidth(p,T,u),C=e.utils.availableHeight(f,T,u);if(E.update=function(){T.transition().duration(k).call(E)},E.container=this,_.disabled=c.map(function(e){return!!e.disabled}),!w)for(A in w={},_)_[A]instanceof Array?w[A]=_[A].slice(0):w[A]=_[A];if(!c||!c.length||!c.filter(function(e){return e.values.length}).length)return e.utils.noData(E,T),E;T.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale();var M=T.selectAll("g.nv-wrap.nv-historicalBarChart").data([c]),I=M.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart"),O=I.append("g");I.select("g");var L=O.append("g").attr("class","nv-x nv-axis");L=T.selectAll("g.nv-wrap.nv-historicalBarChart").select(".nv-x");var N=O.append("g").attr("class","nv-y nv-axis"),P=O.append("g").attr("class","nv-barsWrap"),R=O.append("g").attr("class","nv-legendWrap"),j=O.append("g").attr("class","nv-interactive");R=T.selectAll("g.nv-wrap.nv-historicalBarChart").select(".nv-legendWrap"),m?(a.width(D),R.datum(c).call(a),d||a.height()===u.top||(u.top=a.height(),C=e.utils.availableHeight(f,T,u)),R.attr("transform","translate(0,"+-u.top+")")):R.selectAll("*").remove(),I.attr("transform","translate("+u.left+","+u.top+")"),y&&N.attr("transform","translate("+D+",0)"),b&&(l.width(D).height(C).margin({left:u.left,top:u.top}).svgContainer(T).xScale(n),j.call(l)),i.width(D).height(C).color(c.map(function(e,t){return e.color||h(e,t)}).filter(function(e,t){return!c[t].disabled})),P.datum(c.filter(function(e){return!e.disabled})).transition().call(i),g&&(o.scale(n)._ticks(e.utils.calcTicksX(D/100,c)),o.tickSizeInner(-C),L.attr("transform","translate(0,"+r.range()[0]+")"),L.transition().call(o)),v&&(s.scale(r)._ticks(e.utils.calcTicksY(C/36,c)),s.tickSizeInner(-D),N.transition().call(s)),l.dispatch.on("elementMousemove",function(t){i.clearHighlights();var n,r,a,u=[];c.filter(function(e,t){return e.seriesIndex=t,!e.disabled}).forEach(function(o,s){r=e.interactiveBisect(o.values,t.pointXValue,E.x()),i.highlightPoint(r,!0);var l=o.values[r];void 0!==l&&(void 0===n&&(n=l),void 0===a&&(a=E.xScale()(E.x()(l,r))),u.push({key:o.key,value:E.y()(l,r),color:h(o,o.seriesIndex),data:o.values[r]}))});var d=o.tickFormat()(E.x()(n,r));l.tooltip.valueFormatter(function(e,t){return s.tickFormat()(e)}).data({value:d,index:r,series:u})(),l.renderGuideLine(a)}),l.dispatch.on("elementMouseout",function(e){x.call("tooltipHide",this),i.clearHighlights()}),a.dispatch.on("legendClick",function(e,n,r){n.disabled=!n.disabled,c.filter(function(e){return!e.disabled}).length||c.map(function(e){return e.disabled=!1,M.selectAll(".nv-series").classed("disabled",!1),e}),_.disabled=c.map(function(e){return!!e.disabled}),x.call("stateChange",this,_),t.transition().call(E)}),a.dispatch.on("legendDblclick",function(e){c.forEach(function(e){e.disabled=!0}),e.disabled=!1,_.disabled=c.map(function(e){return!!e.disabled}),x.call("stateChange",this,_),E.update()}),x.on("changeState",function(e){void 0!==e.disabled&&(c.forEach(function(t,n){t.disabled=e.disabled[n]}),_.disabled=e.disabled),E.update()})}),S.renderEnd("historicalBarChart immediate"),E}return i.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:E.x()(e.data),value:E.y()(e.data),color:e.color},c.data(e).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(e){c.hidden(!0)}),i.dispatch.on("elementMousemove.tooltip",function(e){c()}),E.dispatch=x,E.bars=i,E.legend=a,E.xAxis=o,E.yAxis=s,E.interactiveLayer=l,E.tooltip=c,E.options=e.utils.optionsFunc.bind(E),E._options=Object.create({},{width:{get:function(){return p},set:function(e){p=e}},height:{get:function(){return f},set:function(e){f=e}},showLegend:{get:function(){return m},set:function(e){m=e}},showXAxis:{get:function(){return g},set:function(e){g=e}},showYAxis:{get:function(){return v},set:function(e){v=e}},defaultState:{get:function(){return w},set:function(e){w=e}},noData:{get:function(){return A},set:function(e){A=e}},margin:{get:function(){return u},set:function(e){void 0!==e.top&&(u.top=e.top,d=e.top),u.right=void 0!==e.right?e.right:u.right,u.bottom=void 0!==e.bottom?e.bottom:u.bottom,u.left=void 0!==e.left?e.left:u.left}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t),a.color(h),i.color(h)}},duration:{get:function(){return k},set:function(e){k=e,S.reset(k),s.duration(k),o.duration(k)}},rightAlignYAxis:{get:function(){return y},set:function(e){y=e}},useInteractiveGuideline:{get:function(){return b},set:function(e){b=e,!0===e&&E.interactive(!1)}}}),e.utils.inheritOptions(E,i),e.utils.initOptions(E),E},e.models.ohlcBarChart=function(){var t=e.models.historicalBarChart(e.models.ohlcBar());return t.useInteractiveGuideline(!0),t.interactiveLayer.tooltip.contentGenerator(function(e){var n=e.series[0].data;return'<h3 style="color: #'+(n.open<n.close?"2ca02c":"d62728")+'">'+e.value+"</h3><table><tr><td>open:</td><td>"+t.yAxis.tickFormat()(n.open)+"</td></tr><tr><td>close:</td><td>"+t.yAxis.tickFormat()(n.close)+"</td></tr><tr><td>high</td><td>"+t.yAxis.tickFormat()(n.high)+"</td></tr><tr><td>low:</td><td>"+t.yAxis.tickFormat()(n.low)+"</td></tr></table>"}),t},e.models.candlestickBarChart=function(){var t=e.models.historicalBarChart(e.models.candlestickBar());return t.useInteractiveGuideline(!0),t.interactiveLayer.tooltip.contentGenerator(function(e){var n=e.series[0].data;return'<h3 style="color: #'+(n.open<n.close?"2ca02c":"d62728")+'">'+e.value+"</h3><table><tr><td>open:</td><td>"+t.yAxis.tickFormat()(n.open)+"</td></tr><tr><td>close:</td><td>"+t.yAxis.tickFormat()(n.close)+"</td></tr><tr><td>high</td><td>"+t.yAxis.tickFormat()(n.high)+"</td></tr><tr><td>low:</td><td>"+t.yAxis.tickFormat()(n.low)+"</td></tr></table>"}),t},e.models.legend=function(){"use strict";var t={top:5,right:0,bottom:5,left:0},n=400,r=20,i=function(e){return e.key},o=function(e){return e},s=e.utils.getColor(),a=20,l=!0,c=32,u=!0,d=!0,h=!0,p=!1,f=!1,m=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),g="classic";function v(y){function b(e,t){return"furious"!=g?"#000":f?e.disengaged?"#000":"#fff":f?void 0:(e.color||(e.color=s(e,t)),e.disabled?e.color:"#fff")}function _(e,t){return f&&"furious"==g&&e.disengaged?"#eee":e.color||s(e,t)}function w(e,t){return f&&"furious"==g?1:e.disabled?0:1}return y.each(function(s){var v=n-t.left-t.right,y=d3.select(this);e.utils.initSVG(y),y.selectAll("g.nv-legend").remove();var A=y.selectAll("g.nv-legend").data([s]).enter().append("g").attr("class","nvd3 nv-legend");u?A.attr("transform","translate("+-t.right+","+t.top+")"):A.attr("transform","translate("+t.left+","+t.top+")");var x=A.append("g");x.select("g");var k=y.selectAll("g.nv-legend").select("g").selectAll(".nv-series").data(function(e){return"furious"!=g?e:e.filter(function(e){return!!f||!e.disengaged})}),S=k.enter().append("g").attr("class","nv-series");switch(S=k.merge(S),g){case"furious":R=23;break;case"classic":R=20}"classic"==g?(S.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),P=S.select(".nv-legend-symbol")):"furious"==g&&(S.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),P=S.select(".nv-legend-symbol"),S.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)").each(function(e,t){d3.select(this).selectAll("path").attr("stroke",b(e,t))})),S.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var E=S.select("text.nv-legend-text");S.on("mouseover",function(e,t,n){m.call("legendMouseover",S,e,t,n)}).on("mouseout",function(e,t,n){m.call("legendMouseout",S,e,t,n)}).on("click",function(e,t,n){m.call("legendClick",S,e,t,n);var r=S.data();d&&("classic"==g?p?(r.forEach(function(e){e.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,r.every(function(e){return e.disabled})&&r.forEach(function(e){e.disabled=!1})):"furious"==g&&(f?(t.disengaged=!t.disengaged,t.userDisabled=null==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled):!f&&(t.disabled=!t.disabled,t.userDisabled=t.disabled,r.filter(function(e){return!e.disengaged}).every(function(e){return e.userDisabled})&&r.forEach(function(e){e.disabled=e.userDisabled=!1}))),m.call("stateChange",k,{disabled:r.map(function(e){return!!e.disabled}),disengaged:r.map(function(e){return!!e.disengaged})}))}).on("dblclick",function(e,t,n){if(h&&("furious"!=g||!f)&&(m.call("legendDblclick",S,e,t,n),d)){var r=S.data();r.forEach(function(e){e.disabled=!0,"furious"==g&&(e.userDisabled=e.disabled)}),t.disabled=!1,"furious"==g&&(t.userDisabled=t.disabled),m.call("stateChange",S,{disabled:r.map(function(e){return!!e.disabled})})}}),S.classed("nv-disabled",function(e){return e.userDisabled}),S.exit().remove(),E.attr("fill",b).text(function(e){return o(i(e))});var T=0;if(l){var D=[];S.each(function(t,n){if(o(i(t))&&o(i(t)).length>a){var r,s,l=o(i(t)).substring(0,a);r=d3.select(this).select("text").text(l+"..."),d3.select(this).append("svg:title").text(o(i(t)))}else r=d3.select(this).select("text");try{if((s=r.node().getComputedTextLength())<=0)throw Error()}catch(t){s=e.utils.calcApproxTextWidth(r)}D.push(s+c)});var C=0,M=[];for(T=0;T<v&&C<D.length;)M[C]=D[C],T+=D[C++];for(0===C&&(C=1);T>v&&C>1;){M=[],C--;for(var I=0;I<D.length;I++)D[I]>(M[I%C]||0)&&(M[I%C]=D[I]);T=M.reduce(function(e,t,n,r){return e+t})}for(var O=[],L=0,N=0;L<C;L++)O[L]=N,N+=M[L];S.attr("transform",function(e,t){return"translate("+O[t%C]+","+(5+Math.floor(t/C)*R)+")"}),u?x.attr("transform","translate("+(n-t.right-T)+","+t.top+")"):x.attr("transform","translate(0,"+t.top+")"),r=t.top+t.bottom+Math.ceil(D.length/C)*R}else{var P,R,j,F=5,B=5,Y=0;S.attr("transform",function(e,r){var i=d3.select(this).select("text").node().getComputedTextLength()+c;return j=B,n<t.left+t.right+j+i&&(B=j=5,F+=R),(B+=i)>Y&&(Y=B),T<j+Y&&(T=j+Y),"translate("+j+","+F+")"}),x.attr("transform","translate("+(n-t.right-Y)+","+t.top+")"),r=t.top+t.bottom+F+15}"furious"==g&&(P.attr("width",function(e,t){return S.select("text.nv-legend-text").nodes()[t].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),x.insert("rect",":first-child").attr("class","nv-legend-bg").attr("fill","#eee").attr("opacity",0),x.select(".nv-legend-bg").transition().duration(300).attr("x",-R).attr("width",T+R-12).attr("height",r+10).attr("y",-t.top-10).attr("opacity",f?1:0)),P.style("fill",_).style("fill-opacity",w).style("stroke",_)}),v}return v.dispatch=m,v.options=e.utils.optionsFunc.bind(v),v._options=Object.create({},{width:{get:function(){return n},set:function(e){n=e}},height:{get:function(){return r},set:function(e){r=e}},key:{get:function(){return i},set:function(e){i=e}},keyFormatter:{get:function(){return o},set:function(e){o=e}},align:{get:function(){return l},set:function(e){l=e}},maxKeyLength:{get:function(){return a},set:function(e){a=e}},rightAlign:{get:function(){return u},set:function(e){u=e}},padding:{get:function(){return c},set:function(e){c=e}},updateState:{get:function(){return d},set:function(e){d=e}},enableDoubleClick:{get:function(){return h},set:function(e){h=e}},radioButtonMode:{get:function(){return p},set:function(e){p=e}},expanded:{get:function(){return f},set:function(e){f=e}},vers:{get:function(){return g},set:function(e){g=e}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},color:{get:function(){return s},set:function(t){s=e.utils.getColor(t)}}}),e.utils.initOptions(v),v},e.models.line=function(){"use strict";var t,n,r=e.models.scatter(),i={top:0,right:0,bottom:0,left:0},o=960,s=500,a=null,l=e.utils.defaultColor(),c=function(e){return e.x},u=function(e){return e.y},d=function(e,t){return!isNaN(u(e,t))&&null!==u(e,t)},h=function(e){return e.area},p=!1,f=d3.curveLinear,m=(d3.curveBasis,250),g=d3.dispatch("elementClick","elementMouseover","elementMouseout","renderEnd");r.pointSize(16).pointDomain([16,256]);var v,y,b=e.utils.renderWatch(g,m);function _(m){return b.reset(),b.models(r),m.each(function(m){a=d3.select(this);var g=e.utils.availableWidth(o,a,i),_=e.utils.availableHeight(s,a,i);e.utils.initSVG(a),t=r.xScale(),n=r.yScale(),v=v||t,y=y||n;var w=a.selectAll("g.nv-wrap.nv-line").data([m]).enter().append("g").attr("class","nvd3 nv-wrap nv-line").attr("transform","translate("+i.left+","+i.top+")"),A=w.append("defs"),x=w.append("g");x.append("g").attr("class","nv-groups"),x.append("g").attr("class","nv-scatterWrap");var k=a.select(".nv-scatterWrap");r.width(g).height(_),k.call(r),A.append("clipPath").attr("id","nv-edge-clip-"+r.id()).append("rect").attr("width",g).attr("height",_>0?_:0),x.attr("clip-path",p?"url(#nv-edge-clip-"+r.id()+")":""),k.attr("clip-path",p?"url(#nv-edge-clip-"+r.id()+")":"");var S=a.select(".nv-groups").selectAll(".nv-group").data(function(e){return e},function(e){return e.key}),E=S.enter().append("g").style("stroke-opacity",1e-6).style("stroke-width",function(e){return e.strokeWidth||1.5}).style("fill-opacity",1e-6);S.exit().remove(),(E=S.merge(E)).attr("class",function(e,t){return(e.classed||"")+" nv-group nv-series-"+t}).classed("hover",function(e){return e.hover}).style("fill",function(e,t){return l(e,t)}).style("stroke",function(e,t){return l(e,t)}),E.watchTransition(b,"line: groups").style("stroke-opacity",1).style("fill-opacity",function(e){return e.fillOpacity||.5});var T=a.select(".nv-groups").selectAll(".nv-group").selectAll("path.nv-area").data(function(e){return h(e)?[e]:[]}),D=T.enter().append("path").attr("class","nv-area").attr("d",function(t){return d3.area().curve(getInterpolationType(f)).defined(d).x(function(t,n){return e.utils.NaNtoZero(v(c(t,n)))}).y0(function(t,n){return e.utils.NaNtoZero(y(u(t,n)))}).y1(function(e,t){return y(n.domain()[0]<=0?n.domain()[1]>=0?0:n.domain()[1]:n.domain()[0])}).apply(this,[t.values])});S.exit().selectAll("path.nv-area").remove(),(D=T.merge(D)).watchTransition(b,"line: areaPaths").attr("d",function(r){return d3.area().curve(getInterpolationType(f)).defined(d).x(function(n,r){return e.utils.NaNtoZero(t(c(n,r)))}).y0(function(t,r){return e.utils.NaNtoZero(n(u(t,r)))}).y1(function(e,t){return n(n.domain()[0]<=0?n.domain()[1]>=0?0:n.domain()[1]:n.domain()[0])}).apply(this,[r.values])});var C=E.selectAll("path.nv-line").data(function(e){return[e.values]}),M=C.enter().append("path").attr("class","nv-line").attr("d",d3.line().curve(getInterpolationType(f)).defined(d).x(function(t,n){return e.utils.NaNtoZero(v(c(t,n)))}).y(function(t,n){return e.utils.NaNtoZero(y(u(t,n)))}));(M=C.merge(M)).watchTransition(b,"line: linePaths").attr("d",d3.line().curve(getInterpolationType(f)).defined(d).x(function(n,r){return e.utils.NaNtoZero(t(c(n,r)))}).y(function(t,r){return e.utils.NaNtoZero(n(u(t,r)))})),v=t.copy(),y=n.copy()}),b.renderEnd("line immediate"),_}return _.dispatch=g,_.scatter=r,r.dispatch.on("elementClick",function(){g.apply("elementClick",this,arguments)}),r.dispatch.on("elementMouseover",function(){g.apply("elementMouseover",this,arguments)}),r.dispatch.on("elementMouseout",function(){g.apply("elementMouseout",this,arguments)}),_.options=e.utils.optionsFunc.bind(_),_._options=Object.create({},{width:{get:function(){return o},set:function(e){o=e}},height:{get:function(){return s},set:function(e){s=e}},defined:{get:function(){return d},set:function(e){d=e}},interpolate:{get:function(){return f},set:function(e){f=e}},clipEdge:{get:function(){return p},set:function(e){p=e}},margin:{get:function(){return i},set:function(e){i.top=void 0!==e.top?e.top:i.top,i.right=void 0!==e.right?e.right:i.right,i.bottom=void 0!==e.bottom?e.bottom:i.bottom,i.left=void 0!==e.left?e.left:i.left}},duration:{get:function(){return m},set:function(e){m=e,b.reset(m),r.duration(m)}},isArea:{get:function(){return h},set:function(e){h="function"==typeof e?e:function(){return e}}},x:{get:function(){return c},set:function(e){c=e,r.x(e)}},y:{get:function(){return u},set:function(e){u=e,r.y(e)}},color:{get:function(){return l},set:function(t){l=e.utils.getColor(t),r.color(l)}}}),e.utils.inheritOptions(_,r),e.utils.initOptions(_),_},e.models.lineChart=function(){"use strict";var t,n,r=e.models.line(),i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=e.models.legend(),a=e.interactiveGuideline(),l=e.models.tooltip(),c=e.models.focus(e.models.line()),u={top:30,right:20,bottom:50,left:60},d=null,h=e.utils.defaultColor(),p=null,f=null,m=!0,g="top",v=!0,y=!0,b=!1,_=!1,w=!1,A=e.utils.state(),x=null,k=null,S=d3.dispatch("stateChange","changeState","renderEnd"),E=250;d3.transition().duration(E).ease(d3.easeLinear);i.tickPadding(7),r.clipEdge(!0).duration(0),l.valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),a.tooltip.valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)});var T=e.utils.renderWatch(S,E);function D(l){return T.reset(),T.models(r),v&&T.models(i),y&&T.models(o),l.each(function(l){var k,T=d3.select(this);e.utils.initSVG(T);var C,M,I=e.utils.availableWidth(p,T,u),O=e.utils.availableHeight(f,T,u)-(w?c.height():0);if(D.update=function(){0===E?T.call(D):T.transition().duration(E).call(D)},D.container=this,A.setter((C=l,function(e){void 0!==e.active&&C.forEach(function(t,n){t.disabled=!e.active[n]})}),D.update).getter((M=l,function(){return{active:M.map(function(e){return!e.disabled})}})).update(),A.disabled=l.map(function(e){return!!e.disabled}),!x)for(k in x={},A)A[k]instanceof Array?x[k]=A[k].slice(0):x[k]=A[k];if(!l||!l.length||!l.filter(function(e){return e.values.length}).length)return e.utils.noData(D,T),D;T.selectAll(".nv-noData").remove(),c.dispatch.on("brush",function(e){K(e)}),t=r.xScale(),n=r.yScale();var L=l.filter(function(e){return!e.disabled}),N=T.selectAll("g.nv-wrap.nv-lineChart").data([l]).enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart"),P=N.append("g"),R=P,j=P.append("g").attr("class","nv-legendWrap");j=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-legendWrap");var F=P.append("g").attr("class","nv-focus"),B=F.append("g").attr("class","nv-background").append("rect"),Y=F.append("g").attr("class","nv-x nv-axis");Y=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-x");var V=F.append("g").attr("class","nv-y nv-axis");V=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-y");var H=F.append("g").attr("class","nv-linesWrap");H=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-linesWrap");var U=F.append("g").attr("class","nv-interactive");U=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-interactive");var z=P.append("g").attr("class","nv-focusWrap");z=T.selectAll("g.nv-wrap.nv-lineChart").select(".nv-focusWrap"),m?(s.width(I),j.datum(l).call(s),"bottom"===g?(u.bottom=i.height()+s.height(),O=e.utils.availableHeight(f,T,u),j.attr("transform","translate(0,"+(O+i.height())+")")):"top"===g&&(d||s.height()===u.top||(u.top=s.height(),O=e.utils.availableHeight(f,T,u)-(w?c.height():0)),j.attr("transform","translate(0,"+-u.top+")"))):j.selectAll("*").remove(),N.attr("transform","translate("+u.left+","+u.top+")"),b&&V.attr("transform","translate("+I+",0)"),_&&(a.width(I).height(O).margin({left:u.left,top:u.top}).svgContainer(T).xScale(t),U.call(a)),B.attr("width",I).attr("height",O),r.width(I).height(O).color(l.map(function(e,t){return e.color||h(e,t)}).filter(function(e,t){return!l[t].disabled}));var q=T.selectAll("g.nv-linesWrap.nvd3-svg").data([L]);function W(){v&&Y.transition().duration(E).call(i)}function $(){y&&V.transition().duration(E).call(o)}if(q=q.merge(H),v&&(i.scale(t)._ticks(e.utils.calcTicksX(I/100,l)),i.tickSizeInner(-O)),y&&(o.scale(n)._ticks(e.utils.calcTicksY(O/36,l)),o.tickSizeInner(-I)),Y.attr("transform","translate(0,"+O+")"),w){c.width(I),z.style("display",w?"initial":"none").attr("transform","translate(0,"+(O+u.bottom+c.margin().top)+")").call(c);var G=null===c.brush.extent()?c.xDomain():c.brush.extent();null!==G&&G.length&&K(G)}else q.transition().call(r),W(),$();function K(e){R.select(".nv-focus .nv-linesWrap").datum(l.filter(function(e){return!e.disabled}).map(function(t,n){return{key:t.key,area:t.area,classed:t.classed,values:t.values.filter(function(t,n){return r.x()(t,n)>=e[0]&&r.x()(t,n)<=e[1]}),disableTooltip:t.disableTooltip}})).transition().duration(E).call(r),W(),$()}s.dispatch.on("stateChange",function(e){for(var t in e)A[t]=e[t];S.call("stateChange",this,e),D.update()}),a.dispatch.on("elementMousemove",function(n){r.clearHighlights();var i,s,u,d=[];if(l.filter(function(e,t){return e.seriesIndex=t,!e.disabled&&!e.disableTooltip}).forEach(function(o,a){var l=null!=c.brush.extent()?t.domain():c.xScale().domain(),p=o.values.filter(function(e,t){return l[0]<=l[1]?r.x()(e,t)>=l[0]&&r.x()(e,t)<=l[1]:r.x()(e,t)>=l[1]&&r.x()(e,t)<=l[0]});if(p.length>0){var f=p[s=e.interactiveBisect(p,n.pointXValue,r.x())],m=D.y()(f,s);if(null!==m&&r.highlightPoint(a,o.values.indexOf(f),!0),void 0===f)return;void 0===i&&(i=f),void 0===u&&(u=D.xScale()(D.x()(f,s))),d.push({key:o.key,value:m,color:h(o,o.seriesIndex),data:f})}}),d.length>2){var p=D.yScale().invert(n.mouseY),f=Math.abs(D.yScale().domain()[0]-D.yScale().domain()[1]),m=e.nearestValueIndex(d.map(function(e){return e.value}),p,.03*f);null!==m&&(d[m].highlight=!0)}void 0!==s&&(a.tooltip.valueFormatter(a.tooltip.valueFormatter()||function(e,t){return null==e?"N/A":o.tickFormat()(e)}).data({value:D.x()(i,s),index:s,series:d})(),a.renderGuideLine(u))}),a.dispatch.on("elementClick",function(t){var n,i=[];l.filter(function(e,t){return e.seriesIndex=t,!e.disabled}).forEach(function(r){var o=e.interactiveBisect(r.values,t.pointXValue,D.x()),s=r.values[o];if(void 0!==s){void 0===n&&(n=D.xScale()(D.x()(s,o)));var a=D.yScale()(D.y()(s,o));i.push({point:s,pointIndex:o,pos:[n,a],seriesIndex:r.seriesIndex,series:r})}}),r.dispatch.call("elementClick",this,i)}),a.dispatch.on("elementMouseout",function(e){r.clearHighlights()}),S.on("changeState",function(e){void 0!==e.disabled&&l.length===e.disabled.length&&(l.forEach(function(t,n){t.disabled=e.disabled[n]}),A.disabled=e.disabled),D.update()})}),T.renderEnd("lineChart immediate"),D}return r.dispatch.on("elementMouseover.tooltip",function(e){e.series.disableTooltip||l.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){l.hidden(!0)}),D.dispatch=S,D.lines=r,D.legend=s,D.focus=c,D.xAxis=i,D.x2Axis=c.xAxis,D.yAxis=o,D.y2Axis=c.yAxis,D.interactiveLayer=a,D.tooltip=l,D.state=A,D.dispatch=S,D.options=e.utils.optionsFunc.bind(D),D._options=Object.create({},{width:{get:function(){return p},set:function(e){p=e}},height:{get:function(){return f},set:function(e){f=e}},showLegend:{get:function(){return m},set:function(e){m=e}},legendPosition:{get:function(){return g},set:function(e){g=e}},showXAxis:{get:function(){return v},set:function(e){v=e}},showYAxis:{get:function(){return y},set:function(e){y=e}},defaultState:{get:function(){return x},set:function(e){x=e}},noData:{get:function(){return k},set:function(e){k=e}},focusEnable:{get:function(){return w},set:function(e){w=e}},focusHeight:{get:function(){return c.height()},set:function(e){c.height(e)}},focusShowAxisX:{get:function(){return c.showXAxis()},set:function(e){c.showXAxis(e)}},focusShowAxisY:{get:function(){return c.showYAxis()},set:function(e){c.showYAxis(e)}},brushExtent:{get:function(){return c.brushExtent()},set:function(e){c.brushExtent(e)}},focusMargin:{get:function(){return c.margin},set:function(e){void 0!==e.top&&(u.top=e.top,d=e.top),c.margin.right=void 0!==e.right?e.right:c.margin.right,c.margin.bottom=void 0!==e.bottom?e.bottom:c.margin.bottom,c.margin.left=void 0!==e.left?e.left:c.margin.left}},margin:{get:function(){return u},set:function(e){u.top=void 0!==e.top?e.top:u.top,u.right=void 0!==e.right?e.right:u.right,u.bottom=void 0!==e.bottom?e.bottom:u.bottom,u.left=void 0!==e.left?e.left:u.left}},duration:{get:function(){return E},set:function(e){E=e,T.reset(E),d3.transition().duration(E).ease(d3.easeLinear),r.duration(E),c.duration(E),i.duration(E),o.duration(E)}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t),s.color(h),r.color(h),c.color(h)}},interpolate:{get:function(){return r.interpolate()},set:function(e){r.interpolate(e),c.interpolate(e)}},xTickFormat:{get:function(){return i.tickFormat()},set:function(e){i.tickFormat(e),c.xTickFormat(e)}},yTickFormat:{get:function(){return o.tickFormat()},set:function(e){o.tickFormat(e),c.yTickFormat(e)}},x:{get:function(){return r.x()},set:function(e){r.x(e),c.x(e)}},y:{get:function(){return r.y()},set:function(e){r.y(e),c.y(e)}},rightAlignYAxis:{get:function(){return b},set:function(e){b=e,o.orient(b?"right":"left")}},useInteractiveGuideline:{get:function(){return _},set:function(e){(_=e)&&(r.interactive(!1),r.useVoronoi(!1))}}}),e.utils.inheritOptions(D,r),e.utils.initOptions(D),D},e.models.lineWithFocusChart=function(){return e.models.lineChart().margin({bottom:30}).focusEnable(!0)},e.models.linePlusBarChart=function(){"use strict";var t,n,r,i,o,s,a=e.models.line(),l=e.models.line(),c=e.models.historicalBar(),u=e.models.historicalBar(),d=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),h=e.models.axis(d3.axisTop(d3.scaleLinear()),"top"),p=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),f=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),m=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),g=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),v=e.models.legend(),y=d3.brush(),b=e.models.tooltip(),_={top:30,right:30,bottom:30,left:60},w=null,A={top:0,right:30,bottom:20,left:60},x=null,k=null,S=function(e){return e.x},E=function(e){return e.y},T=e.utils.defaultColor(),D=!0,C=!0,M=!1,I=!0,O=50,L=null,N=null,P=d3.dispatch("brush","stateChange","changeState"),R=0,j=(d3.transition().duration(R).ease(d3.easeLinear),e.utils.state()),F=null,B=" (left axis)",Y=" (right axis)",V=!1;a.clipEdge(!0),l.interactive(!1),l.pointActive(function(e){return!1}),d.tickPadding(5),h.tickPadding(5),b.headerEnabled(!0).headerFormatter(function(e,t){return d.tickFormat()(e,t)});var H=function(e){return e.every(function(e){return e.disabled})};function U(b){return b.each(function(b){var N,z=d3.select(this);e.utils.initSVG(z);var q,W,$=e.utils.availableWidth(x,z,_),G=e.utils.availableHeight(k,z,_)-(C?O:0),K=O-A.top-A.bottom;if(U.update=function(){z.transition().duration(R).call(U)},U.container=this,j.setter((q=b,function(e){void 0!==e.active&&q.forEach(function(t,n){t.disabled=!e.active[n]})}),U.update).getter((W=b,function(){return{active:W.map(function(e){return!e.disabled})}})).update(),j.disabled=b.map(function(e){return!!e.disabled}),!F)for(N in F={},j)j[N]instanceof Array?F[N]=j[N].slice(0):F[N]=j[N];if(!b||!b.length||!b.filter(function(e){return e.values.length}).length)return e.utils.noData(U,z),U;z.selectAll(".nv-noData").remove();var Z=b.filter(function(e){return!e.disabled&&e.bar}),X=b.filter(function(e){return!e.bar});t=Z.length&&!V?c.xScale():a.xScale(),n=h.scale(),r=V?a.yScale():c.yScale(),i=V?c.yScale():a.yScale(),o=V?l.yScale():u.yScale(),s=V?u.yScale():l.yScale();var Q=b.filter(function(e){return!e.disabled&&(V?!e.bar:e.bar)}).map(function(e){return e.values.map(function(e,t){return{x:S(e,t),y:E(e,t)}})}),J=b.filter(function(e){return!e.disabled&&(V?e.bar:!e.bar)}).map(function(e){return e.values.map(function(e,t){return{x:S(e,t),y:E(e,t)}})});t.range([0,$]),n.domain(d3.extent(d3.merge(Q.concat(J)),function(e){return e.x})).range([0,$]);var ee=z.selectAll("g.nv-wrap.nv-linePlusBar").data([b]).enter().append("g").attr("class","nvd3 nv-wrap nv-linePlusBar"),te=ee.append("g"),ne=te.select("g"),re=te.append("g").attr("class","nv-legendWrap");re=z.selectAll("g.nv-wrap.nv-linePlusBar").select(".nv-legendWrap");var ie=te.append("g").attr("class","nv-focus"),oe=ie.append("g").attr("class","nv-x nv-axis");oe=z.selectAll("g.nv-wrap.nv-linePlusBar").select(".nv-x");var se=ie.append("g").attr("class","nv-y1 nv-axis"),ae=ie.append("g").attr("class","nv-y2 nv-axis"),le=ie.append("g").attr("class","nv-barsWrap"),ce=ie.append("g").attr("class","nv-linesWrap"),ue=te.append("g").attr("class","nv-context"),de=ue.append("g").attr("class","nv-x nv-axis"),he=ue.append("g").attr("class","nv-y1 nv-axis"),pe=ue.append("g").attr("class","nv-y2 nv-axis"),fe=ue.append("g").attr("class","nv-barsWrap"),me=ue.append("g").attr("class","nv-linesWrap"),ge=ue.append("g").attr("class","nv-brushBackground"),ve=ue.append("g").attr("class","nv-x nv-brush");if(D){var ye=v.align()?$/2:$,be=v.align()?ye:0;v.width(ye),re.datum(b.map(function(e){return e.originalKey=void 0===e.originalKey?e.key:e.originalKey,e.key=V?e.originalKey+(e.bar?Y:B):e.originalKey+(e.bar?B:Y),e})).call(v),w||v.height()===_.top||(_.top=v.height(),G=e.utils.availableHeight(k,z,_)-O),re.attr("transform","translate("+be+","+-_.top+")")}else re.selectAll("*").remove();ee.attr("transform","translate("+_.left+","+_.top+")"),ue.style("display",C?"initial":"none"),u.width($).height(K).color(b.map(function(e,t){return e.color||T(e,t)}).filter(function(e,t){return!b[t].disabled&&b[t].bar})),l.width($).height(K).color(b.map(function(e,t){return e.color||T(e,t)}).filter(function(e,t){return!b[t].disabled&&!b[t].bar}));var _e=fe.datum(Z.length?Z:[{values:[]}]),we=me.datum(H(X)?[{values:[]}]:X.filter(function(e){return!e.disabled}));ue.attr("transform","translate(0,"+(G+_.bottom+A.top)+")"),_e.transition().call(u),we.transition().call(l),I&&(h._ticks(e.utils.calcTicksX($/100,b)),h.tickSizeInner(-K),oe.attr("transform","translate(0,"+o.range()[0]+")"),oe.transition().call(h)),M&&(m.scale(o)._ticks(K/36),m.tickSizeInner(-$),g.scale(s)._ticks(K/36),g.tickSizeInner(Z.length?0:-$),ne.select(".nv-context .nv-y3.nv-axis").style("opacity",Z.length?1:0).attr("transform","translate(0,"+n.range()[0]+")"),pe.style("opacity",X.length?1:0).attr("transform","translate("+n.range()[1]+",0)"),he.transition().call(m),pe.transition().call(g)),y.on("brush",Se),L&&y.extent(L);var Ae=ge.selectAll("g").data([L||y.extent()]),xe=Ae.enter().append("g");xe.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",K),xe.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",K);var ke=ve.call(y);function Se(o){L=null===o?null:o.selection;var s,l=null===o?t.domain():o.selection;P.call("brush",this,{extent:l,brush:y}),null!==(s=o)&&y.extent(L),Ae.data([null===s?n.domain():L]).each(function(e,t){var r=n(e[0])-n.range()[0],i=n.range()[1]-n(e[1]);d3.select(this).select(".left").attr("width",r<0?0:r),d3.select(this).select(".right").attr("x",n(e[1])).attr("width",i<0?0:i)}),c.width($).height(G).color(b.map(function(e,t){return e.color||T(e,t)}).filter(function(e,t){return!b[t].disabled&&b[t].bar})),a.width($).height(G).color(b.map(function(e,t){return e.color||T(e,t)}).filter(function(e,t){return!b[t].disabled&&!b[t].bar}));var u=le.datum(Z.length?Z.map(function(e,t){return{key:e.key,values:e.values.filter(function(e,t){return c.x()(e,t)>=l[0]&&c.x()(e,t)<=l[1]})}}):[{values:[]}]),h=ce.datum(H(X)?[{values:[]}]:X.filter(function(e){return!e.disabled}).map(function(e,t){return{area:e.area,fillOpacity:e.fillOpacity,strokeWidth:e.strokeWidth,key:e.key,values:e.values.filter(function(e,t){return a.x()(e,t)>=l[0]&&a.x()(e,t)<=l[1]})}}));t=Z.length&&!V?c.xScale():a.xScale(),d.scale(t)._ticks(e.utils.calcTicksX($/100,b)),d.tickSizeInner(-G),d.domain([Math.ceil(l[0]),Math.floor(l[1])]),oe.transition().duration(R).call(d),u.transition().duration(R).call(c),h.transition().duration(R).call(a),de.attr("transform","translate(0,"+r.range()[0]+")"),p.scale(r)._ticks(e.utils.calcTicksY(G/36,b)),p.tickSizeInner(-$),f.scale(i)._ticks(e.utils.calcTicksY(G/36,b)),V?f.tickSizeInner(X.length?0:-$,0):f.tickSizeInner(Z.length?0:-$);var m=Z.length?1:0,g=X.length&&!H(X)?1:0,v=V?g:m,_=V?m:g;se.style("opacity",v),ae.style("opacity",_).attr("transform","translate("+t.range()[1]+",0)"),se.transition().duration(R).call(p),ae.transition().duration(R).call(f)}ke.selectAll("rect").attr("height",K),ke.selectAll(".resize").append("path").attr("d",function(e){var t=+("e"==e),n=t?1:-1,r=K/3;return"M"+.5*n+","+r+"A6,6 0 0 "+t+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+t+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}),v.dispatch.on("stateChange",function(e){for(var t in e)j[t]=e[t];P.call("stateChange",this,e),U.update()}),P.on("changeState",function(e){void 0!==e.disabled&&(b.forEach(function(t,n){t.disabled=e.disabled[n]}),j.disabled=e.disabled),U.update()}),Se(event)}),U}return a.dispatch.on("elementMouseover.tooltip",function(e){b.duration(100).valueFormatter(function(e,t){return(V?{main:p,focus:m}:{main:f,focus:g}).main.tickFormat()(e,t)}).data(e).hidden(!1)}),a.dispatch.on("elementMouseout.tooltip",function(e){b.hidden(!0)}),c.dispatch.on("elementMouseover.tooltip",function(e){e.value=U.x()(e.data),e.series={value:U.y()(e.data),color:e.color},b.duration(0).valueFormatter(function(e,t){return(V?{main:f,focus:g}:{main:p,focus:m}).main.tickFormat()(e,t)}).data(e).hidden(!1)}),c.dispatch.on("elementMouseout.tooltip",function(e){b.hidden(!0)}),c.dispatch.on("elementMousemove.tooltip",function(e){b()}),U.dispatch=P,U.legend=v,U.lines=a,U.lines2=l,U.bars=c,U.bars2=u,U.xAxis=d,U.x2Axis=h,U.y1Axis=p,U.y2Axis=f,U.y3Axis=m,U.y4Axis=g,U.tooltip=b,U.options=e.utils.optionsFunc.bind(U),U._options=Object.create({},{width:{get:function(){return x},set:function(e){x=e}},height:{get:function(){return k},set:function(e){k=e}},showLegend:{get:function(){return D},set:function(e){D=e}},brushExtent:{get:function(){return L},set:function(e){L=e}},noData:{get:function(){return N},set:function(e){N=e}},focusEnable:{get:function(){return C},set:function(e){C=e}},focusHeight:{get:function(){return O},set:function(e){O=e}},focusShowAxisX:{get:function(){return I},set:function(e){I=e}},focusShowAxisY:{get:function(){return M},set:function(e){M=e}},legendLeftAxisHint:{get:function(){return B},set:function(e){B=e}},legendRightAxisHint:{get:function(){return Y},set:function(e){Y=e}},margin:{get:function(){return _},set:function(e){void 0!==e.top&&(_.top=e.top,w=e.top),_.right=void 0!==e.right?e.right:_.right,_.bottom=void 0!==e.bottom?e.bottom:_.bottom,_.left=void 0!==e.left?e.left:_.left}},focusMargin:{get:function(){return A},set:function(e){A.top=void 0!==e.top?e.top:A.top,A.right=void 0!==e.right?e.right:A.right,A.bottom=void 0!==e.bottom?e.bottom:A.bottom,A.left=void 0!==e.left?e.left:A.left}},duration:{get:function(){return R},set:function(e){R=e}},color:{get:function(){return T},set:function(t){T=e.utils.getColor(t),v.color(T)}},x:{get:function(){return S},set:function(e){S=e,a.x(e),l.x(e),c.x(e),u.x(e)}},y:{get:function(){return E},set:function(e){E=e,a.y(e),l.y(e),c.y(e),u.y(e)}},switchYAxisOrder:{get:function(){return V},set:function(e){if(V!==e){var t=p;p=f,f=t;var n=m;m=g,g=n}V=e}}}),e.utils.inheritOptions(U,a),e.utils.initOptions(U),U},e.models.multiBar=function(){"use strict";var t,n,r,i,o,s,a,l={top:0,right:0,bottom:0,left:0},c=960,u=500,d=d3.scaleBand(),h=d3.scaleLinear(),p=Math.floor(1e4*Math.random()),f=null,m=function(e){return e.x},g=function(e){return e.y},v=[0],y=!0,b=!1,_=d3.stackOffsetNone,w=e.utils.defaultColor(),A=!1,x=null,k=500,S=.1,E=.75,T=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),D=e.utils.renderWatch(T,k),C=0;function M(I){return D.reset(),I.each(function(M){var I=c-l.left-l.right,O=u-l.top-l.bottom;f=d3.select(this),e.utils.initSVG(f);var L=0;if(A&&M.length&&(A=[{values:M[0].values.map(function(e){return{x:e.x,y:0,series:M[e.seriesIndex],size:.01}})}]),b){var N=M;M.forEach(function(e,t){e.seriesIndex=t,e.values=e.values.map(function(e,n){return e.index=n,e.seriesIndex=t,e})});var P=[];M[0].values.forEach(function(e){P.push({x:e.x})}),M.forEach(function(e,t,n){e.display={y:t,y0:n},e.values.forEach(function(t){P[t.index][e.key]=t.y})});var R=M.map(e=>e.key),j=d3.stack().keys(R).offset(_).value(function(e,t){return e[t]})(!P.length&&A?A:P),F=[];j.forEach(function(e,t){e.seriesIndex=t;var n=[];e.map(function(e,r){return n.push({x:e.data&&e.data.x?e.data.x:r,y:e[1]-e[0],y0:e[0],index:r,series:t,seriesIndex:t,display:{y:e[1]-e[0],y0:e[0]}}),n}),F.push({key:R[t],nonStackable:N[t].nonStackable,values:n})}),F.forEach(function(e,t){e.nonStackable?(M[t].nonStackableSeries=L++,F[t]=M[t]):t>0&&F[t-1].nonStackable&&F[t].values.map(function(e,n){e.y0-=F[t-1].values[n].y,e.y1=e.y0+e.y})}),M=F}M.forEach(function(e,t){e.values.forEach(function(n){n.series=t,n.seriesIndex=t,n.key=e.key})}),b&&M.length>0&&M[0].values.map(function(e,t){var n=0,r=0;M.map(function(e,i){if(!M[i].nonStackable){var o=e.values[t];o.size=Math.abs(o.y),o.y<0?(o.y1=r,r-=o.size):(o.y1=o.size+n,n+=o.size)}})});var B=n&&r?[]:M.map(function(e,t){return e.values.map(function(e,n){return{x:m(e,n),y:g(e,n),y0:e.y0,y1:e.y1,idx:t}})});d.domain(n||d3.merge(B).map(function(e){return e.x})).range(i||[0,I]).paddingInner(S).paddingOuter(S),h.domain(r||d3.extent(d3.merge(B).map(function(e){var t=e.y;return b&&!M[e.idx].nonStackable&&(t=e.y>0?e.y1:e.y1+e.y),t}).concat(v))).range(o||[O,0]),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]-.01*d.domain()[0],d.domain()[1]+.01*d.domain()[1]]):d.domain([-1,1])),h.domain()[0]===h.domain()[1]&&(h.domain()[0]?h.domain([h.domain()[0]+.01*h.domain()[0],h.domain()[1]-.01*h.domain()[1]]):h.domain([-1,1])),s=s||d,a=a||h;var Y=f.selectAll("g.nv-wrap.nv-multibar").data([M]).enter().append("g").attr("class","nvd3 nv-wrap nv-multibar");Y.attr("transform","translate("+l.left+","+l.top+")");var V=Y.append("defs"),H=Y.append("g");H.select("g"),H.append("g").attr("class","nv-groups"),V.append("clipPath").attr("id","nv-edge-clip-"+p).append("rect").attr("width",I).attr("height",O),H.attr("clip-path",y?"url(#nv-edge-clip-"+p+")":"");var U=f.select(".nv-groups").selectAll(".nv-group").data(function(e){return e},function(e,t){return t});U.exit().remove();var z=U.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);z=U.merge(z);var q=D.transition(z.exit().selectAll("rect.nv-bar"),"multibarExit",Math.min(100,k)).attr("y",function(e,t,n){var r=a(0)||0;return b&&M[e.seriesIndex]&&!M[e.seriesIndex].nonStackable&&(r=a(e.y0)),r}).attr("height",0).remove();q.delay&&q.delay(function(e,t){return t*(k/(C+1))-t}),z.attr("class",function(e,t){return"nv-group nv-series-"+t}).classed("hover",function(e){return e.hover}).style("fill",function(e,t){return w(e,t)}).style("stroke",function(e,t){return w(e,t)}),z.style("stroke-opacity",1).style("fill-opacity",E);var W=f.select(".nv-groups").selectAll(".nv-group").selectAll("rect.nv-bar").data(function(e,t){return A&&!M.length?A.values:M[t]?M[t].values:[]});W.exit().remove();var $=W.enter().append("rect").attr("class",function(e,t){return 0>g(e,t)?"nv-bar negative":"nv-bar positive"}).attr("x",function(e,t,n){return b&&!M[e.seriesIndex].nonStackable?0:e.seriesIndex*d.bandwidth()/M.length}).attr("y",function(e,t,n){return a(b&&!M[e.seriesIndex].nonStackable?e.y0:0)||0}).attr("height",0).attr("width",function(e,t,n){return d.bandwidth()/(b&&!M[e.seriesIndex].nonStackable?1:M.length)}).attr("transform",function(e,t){return"translate("+d(m(e,t))+",0)"});($=W.merge($)).style("fill",function(e,t,n){return w(e,e.seriesIndex,t)}).style("stroke",function(e,t,n){return w(e,e.seriesIndex,t)}).on("mouseover",function(e,t,n,r){d3.select(this).classed("hover",!0),setCoordinates(e.pageX,e.pageY),T.call("elementMouseover",this,{data:t,index:t.index,series:M[t.seriesIndex],color:d3.select(this).style("fill")})}).on("mouseout",function(e,t,n,r){d3.select(this).classed("hover",!1),T.call("elementMouseout",this,{data:t,index:t.index,series:M[t.seriesIndex],color:d3.select(this).style("fill")})}).on("mousemove",function(e,t,n,r){T.call("elementMousemove",this,{data:t,index:t.index,series:M[t.seriesIndex],color:d3.select(this).style("fill")})}).on("click",function(e,t,n,r){T.call("elementClick",this,{data:t,index:t.index,series:M[t.seriesIndex],color:d3.select(this).style("fill"),event:e,element:this}),e.stopPropagation()}).on("dblclick",function(e,t,n,r){T.call("elementDblClick",this,{data:t,index:t,index:index,series:M[t.seriesIndex],color:d3.select(this).style("fill")}),e.stopPropagation()}),$.attr("class",function(e,t){return 0>g(e,t)?"nv-bar negative":"nv-bar positive"}).attr("transform",function(e,t){return"translate("+d(m(e,t))+",0)"}),x&&(t||(t=M.map(function(){return!0})),$.style("fill",function(e,n,r){return d3.rgb(x(e,n)).darker(t.map(function(e,t){return t}).filter(function(e,n){return!t[n]})[e.seriesIndex]).toString()}).style("stroke",function(e,n,r){return d3.rgb(x(e,n)).darker(t.map(function(e,t){return t}).filter(function(e,n){return!t[n]})[e.seriesIndex]).toString()}));var G=$.watchTransition(D,"multibar",Math.min(250,k)).delay(function(e,t){return t*k/M[0].values.length});b?G.attr("y",function(e,t,n){return M[e.seriesIndex].nonStackable?0>g(e,t)?h(0):h(0)-h(g(e,t))<-1?h(0)-1:h(g(e,t))||0:h(e.y1)}).attr("height",function(e,t,n){return M[e.seriesIndex].nonStackable?Math.max(Math.abs(h(g(e,t))-h(0)),0)||0:Math.max(Math.abs(h(e.y+e.y0)-h(e.y0)),0)}).attr("x",function(e,t,n){var r=0;return M[e.seriesIndex].nonStackable&&(r=e.seriesIndex*d.bandwidth()/M.length,M.length!==L&&(r=M[e.seriesIndex].nonStackableSeries*d.bandwidth()/(2*L))),r}).attr("width",function(e,t,n){if(!M[e.seriesIndex].nonStackable)return d.bandwidth();var r=d.bandwidth()/L;return M.length!==L&&(r=d.bandwidth()/(2*L)),r}):G.attr("x",function(e,t){return e.seriesIndex*d.bandwidth()/M.length}).attr("width",d.bandwidth()/M.length).attr("y",function(e,t){return 0>g(e,t)?h(0):h(0)-h(g(e,t))<1?h(0)-1:h(g(e,t))||0}).attr("height",function(e,t){return Math.max(Math.abs(h(g(e,t))-h(0)),1)||0}),s=d.copy(),a=h.copy(),M[0]&&M[0].values&&(C=M[0].values.length)}),D.renderEnd("multibar immediate"),M}return M.dispatch=T,M.options=e.utils.optionsFunc.bind(M),M._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},x:{get:function(){return m},set:function(e){m=e}},y:{get:function(){return g},set:function(e){g=e}},xScale:{get:function(){return d},set:function(e){d=e}},yScale:{get:function(){return h},set:function(e){h=e}},xDomain:{get:function(){return n},set:function(e){n=e}},yDomain:{get:function(){return r},set:function(e){r=e}},xRange:{get:function(){return i},set:function(e){i=e}},yRange:{get:function(){return o},set:function(e){o=e}},forceY:{get:function(){return v},set:function(e){v=e}},stacked:{get:function(){return b},set:function(e){b=e}},stackOffset:{get:function(){return _},set:function(e){_=e}},clipEdge:{get:function(){return y},set:function(e){y=e}},disabled:{get:function(){return t},set:function(e){t=e}},id:{get:function(){return p},set:function(e){p=e}},hideable:{get:function(){return A},set:function(e){A=e}},groupSpacing:{get:function(){return S},set:function(e){S=e}},fillOpacity:{get:function(){return E},set:function(e){E=e}},margin:{get:function(){return l},set:function(e){l.top=void 0!==e.top?e.top:l.top,l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},duration:{get:function(){return k},set:function(e){k=e,D.reset(k)}},color:{get:function(){return w},set:function(t){w=e.utils.getColor(t)}},barColor:{get:function(){return x},set:function(t){x=t?e.utils.getColor(t):null}}}),e.utils.initOptions(M),M},e.models.multiBarChart=function(){"use strict";var t,n,r=e.models.multiBar(),i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=e.interactiveGuideline(),a=e.models.legend(),l=e.models.legend(),c=e.models.tooltip(),u={top:30,right:20,bottom:50,left:60},d=null,h=null,p=null,f=e.utils.defaultColor(),m=!0,g={},v=!0,y=null,b=!0,_=!0,w=!1,A=!0,x=!1,k=!1,S=0,E=e.utils.state(),T=null,D=null,C=d3.dispatch("stateChange","changeState","renderEnd"),M=function(){return m?180:0},I=250,O=(d3.transition().duration(I).ease(d3.easeLinear),!1);E.stacked=!1,r.stacked(!1),i.tickPadding(7),i.showMaxMin(!1).tickFormat(function(e){return e}),o.tickFormat(d3.format(",.1f")),c.duration(0).valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),s.tooltip.valueFormatter(function(e,t){return null==e?"N/A":o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),s.tooltip.valueFormatter(function(e,t){return null==e?"N/A":o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),s.tooltip.duration(0).valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),l.updateState(!1);var L=e.utils.renderWatch(C),N=!1;function P(D){return L.reset(),L.models(r),b&&L.models(i),_&&L.models(o),D.each(function(D){var L,R=d3.select(this);e.utils.initSVG(R);var j,F,B=e.utils.availableWidth(h,R,u),Y=e.utils.availableHeight(p,R,u);if(P.update=function(){0===I?R.call(P):R.transition().duration(I).call(P)},P.container=this,E.setter((j=D,function(e){void 0!==e.stacked&&(N=e.stacked),void 0!==e.active&&j.forEach(function(t,n){t.disabled=!e.active[n]})}),P.update).getter((F=D,function(){return{active:F.map(function(e){return!e.disabled}),stacked:N}})).update(),E.disabled=D.map(function(e){return!!e.disabled}),!T)for(L in T={},E)E[L]instanceof Array?T[L]=E[L].slice(0):T[L]=E[L];if(!D||!D.length||!D.filter(function(e){return e.values.length}).length)return e.utils.noData(P,R),P;R.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var V=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([D]).enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend"),H=V.append("g");H.select("g");var U=H.append("g").attr("class","nv-x nv-axis");U=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-x");var z=H.append("g").attr("class","nv-y nv-axis");z=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-y");var q=H.append("g").attr("class","nv-barsWrap");q=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-barsWrap");var W=H.append("g").attr("class","nv-legendWrap");W=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-legendWrap");var $=H.append("g").attr("class","nv-controlsWrap");$=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-controlsWrap");var G=H.append("g").attr("class","nv-interactive");if(G=R.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-interactive"),v?"bottom"===y?(a.width(B-u.right),W.datum(D).call(a),u.bottom=i.height()+a.height(),Y=e.utils.availableHeight(p,R,u),W.attr("transform","translate(0,"+(Y+i.height())+")")):(a.width(B-M()),W.datum(D).call(a),d||a.height()===u.top||(u.top=a.height(),Y=e.utils.availableHeight(p,R,u)),W.attr("transform","translate("+M()+","+-u.top+")")):W.selectAll("*").remove(),V.attr("transform","translate("+u.left+","+u.top+")"),m){var K=[{key:g.grouped||"Grouped",disabled:r.stacked()},{key:g.stacked||"Stacked",disabled:!r.stacked()}];l.width(M()).color(["#444","#444","#444"]),$.datum(K).attr("transform","translate(0,"+-u.top+")").call(l)}else $.selectAll("*").remove();w&&z.attr("transform","translate("+B+",0)"),r.disabled(D.map(function(e){return e.disabled})).width(B).height(Y).color(D.map(function(e,t){return e.color||f(e,t)}).filter(function(e,t){return!D[t].disabled}));var Z=R.select(".nv-multiBarWithLegend").selectAll(".nv-barsWrap").data([D.filter(function(e){return!e.disabled})]);if((Z=Z.merge(q)).call(r),b){i.scale(t)._ticks(e.utils.calcTicksX(B/100,D)),i.tickSizeInner(-Y),U.attr("transform","translate(0,"+n.range()[0]+")"),U.call(i);var X=U.select("g.nvd3.nv-wrap.nv-axis").selectAll("g");if(X.selectAll("line, text").style("opacity",1),x){var Q=function(e,t){return"translate("+e+","+t+")"};X.selectAll("text").attr("transform",function(e,t,n){return Q(0,n%2==0?5:17)});var J=d3.selectAll(".nv-x.nv-axis .nv-wrap g g text").nodes().length;X.selectAll(".nv-x.nv-axis .nv-axisMaxMin text").attr("transform",function(e,t){return Q(0,0===t||J%2!=0?17:5)})}k&&H.selectAll(".tick text").call(e.utils.wrapTicks,P.xScale().bandwidth()),A&&X.filter(function(e,t){return t%Math.ceil(D[0].values.length/(B/100))!=0}).selectAll("text, line").style("opacity",0),S&&X.selectAll(".tick text").attr("transform","rotate("+S+" 0,0)").style("text-anchor",S>0?"start":"end"),U.selectAll("g.nv-axisMaxMin text").style("opacity",1)}_&&(o.scale(n)._ticks(e.utils.calcTicksY(Y/36,D)),o.tickSizeInner(-B),z.call(o)),O&&(s.width(B).height(Y).margin({left:u.left,top:u.top}).svgContainer(R).xScale(t),G.call(s)),a.dispatch.on("stateChange",function(e){for(var t in e)E[t]=e[t];C.call("stateChange",this,e),P.update()}),l.dispatch.on("legendClick",function(e,t,n){if(t.disabled){switch(K=K.map(function(e){return e.disabled=!0,e}),t.disabled=!1,t.key){case"Grouped":case g.grouped:r.stacked(!1);break;case"Stacked":case g.stacked:r.stacked(!0)}E.stacked=r.stacked(),C.call("stateChange",this,E),P.update()}}),C.on("changeState",function(e){void 0!==e.disabled&&(D.forEach(function(t,n){t.disabled=e.disabled[n]}),E.disabled=e.disabled),void 0!==e.stacked&&(r.stacked(e.stacked),E.stacked=e.stacked,N=e.stacked),P.update()}),O?(s.dispatch.on("elementMousemove",function(e){if(null!=e.pointXValue){var n,r,i,o,a=[];D.filter(function(e,t){return e.seriesIndex=t,!e.disabled}).forEach(function(s,l){r=t.domain().indexOf(e.pointXValue);var c=s.values[r];void 0!==c&&(o=c.x,void 0===n&&(n=c),void 0===i&&(i=e.mouseX),a.push({key:s.key,value:P.y()(c,r),color:f(s,s.seriesIndex),data:s.values[r]}))}),s.tooltip.data({value:o,index:r,series:a})(),s.renderGuideLine(i)}}),s.dispatch.on("elementMouseout",function(e){s.tooltip.hidden(!0)})):(r.dispatch.on("elementMouseover.tooltip",function(e){e.value=P.x()(e.data),e.series={key:e.data.key,value:P.y()(e.data),color:e.color},c.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){c.hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(e){c()}))}),L.renderEnd("multibarchart immediate"),P}return P.dispatch=C,P.multibar=r,P.legend=a,P.controls=l,P.xAxis=i,P.yAxis=o,P.state=E,P.tooltip=c,P.interactiveLayer=s,P.options=e.utils.optionsFunc.bind(P),P._options=Object.create({},{width:{get:function(){return h},set:function(e){h=e}},height:{get:function(){return p},set:function(e){p=e}},showLegend:{get:function(){return v},set:function(e){v=e}},legendPosition:{get:function(){return y},set:function(e){y=e}},showControls:{get:function(){return m},set:function(e){m=e}},controlLabels:{get:function(){return g},set:function(e){g=e}},showXAxis:{get:function(){return b},set:function(e){b=e}},showYAxis:{get:function(){return _},set:function(e){_=e}},defaultState:{get:function(){return T},set:function(e){T=e}},noData:{get:function(){return D},set:function(e){D=e}},reduceXTicks:{get:function(){return A},set:function(e){A=e}},rotateLabels:{get:function(){return S},set:function(e){S=e}},staggerLabels:{get:function(){return x},set:function(e){x=e}},wrapLabels:{get:function(){return k},set:function(e){k=!!e}},margin:{get:function(){return u},set:function(e){void 0!==e.top&&(u.top=e.top,d=e.top),u.right=void 0!==e.right?e.right:u.right,u.bottom=void 0!==e.bottom?e.bottom:u.bottom,u.left=void 0!==e.left?e.left:u.left}},duration:{get:function(){return I},set:function(e){I=e,r.duration(I),i.duration(I),o.duration(I),L.reset(I)}},color:{get:function(){return f},set:function(t){f=e.utils.getColor(t),a.color(f)}},rightAlignYAxis:{get:function(){return w},set:function(e){w=e}},useInteractiveGuideline:{get:function(){return O},set:function(e){O=e}},barColor:{get:function(){return r.barColor},set:function(e){r.barColor(e),a.color(function(e,t){return d3.rgb("#ccc").darker(1.5*t).toString()})}}}),e.utils.inheritOptions(P,r),e.utils.initOptions(P),P},e.models.multiBarHorizontal=function(){"use strict";var t,n,r,i,o,s,a,l={top:0,right:0,bottom:0,left:0},c=960,u=500,d=Math.floor(1e4*Math.random()),h=null,p=d3.scaleBand(),f=d3.scaleLinear(),m=function(e){return e.x},g=function(e){return e.y},v=function(e){return e.yErr},y=[0],b=e.utils.defaultColor(),_=null,w=!1,A=!1,x=60,k=.1,S=.75,E=d3.format(",.2f"),T=250,D=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),C=e.utils.renderWatch(D,T);function M(d){return C.reset(),d.each(function(d){var T=c-l.left-l.right,M=u-l.top-l.bottom;if(h=d3.select(this),e.utils.initSVG(h),w){var I=d;d.forEach(function(e,t){e.seriesIndex=t,e.values=e.values.map(function(e,n){return e.index=n,e.series=t,e.seriesIndex=t,e})});var O=[];d[0].values.forEach(function(e){O.push({x:e.x})}),d.forEach(function(e,t,n){e.display={y:t,y0:n},e.values.forEach(function(t){O[t.index][e.key]=t.y})});var L=d.map(e=>e.key);d=d3.stack().keys(L).offset(d3.stackOffsetNone).value(function(e,t){return e[t]})(O);var N=[];d.forEach(function(e,t){e.seriesIndex=t,e.x=Array.from(Array(e.length).keys());var n=[];e.map(function(e,r){return n.push({label:I[t].values[r].label,x:I[t]&&I[t].values&&I[t].values[r]&&I[t].values[r].x?I[t].values[r].x:r,y:e[1]-e[0],y0:e[0],series:t,seriesIndex:t,index:r}),n}),N.push({values:n,key:L[t],seriesIndex:t})}),d=N}d.forEach(function(e,t){e.values.forEach(function(n){n.series=t,n.seriesIndex=t,n.key=e.key})}),w&&d[0].values.map(function(e,t){var n=0,r=0;d.map(function(e){var i=e.values[t];i.size=Math.abs(i.y),i.y<0?(i.y1=r-i.size,r-=i.size):(i.y1=n,n+=i.size)})});var P=i&&o?[]:d.map(function(e){return e.values.map(function(e,t){return{x:m(e,t),y:g(e,t),y0:e.y0,y1:e.y1}})});p.domain(i||d3.merge(P).map(function(e){return e.x})).range(s||[0,M]).paddingInner(k).paddingOuter(k),f.domain(o||d3.extent(d3.merge(P).map(function(e){return w?e.y>0?e.y1+e.y:e.y1:e.y}).concat(y))),A&&!w?f.range(a||[f.domain()[0]<0?x:0,T-(f.domain()[1]>0?x:0)]):f.range(a||[0,T]),t=t||p,n=n||d3.scaleLinear().domain(f.domain()).range([f(0),f(0)]);var R=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([d]).enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal");R.attr("transform","translate("+l.left+","+l.top+")"),R.append("defs");var j=R.append("g");j.select("g"),j.append("g").attr("class","nv-groups");var F=d3.select(this).selectAll("g.nv-groups").selectAll(".nv-group").data(d),B=F.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);F.exit().remove();var Y=F.merge(B);Y.exit().watchTransition(C,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),Y.attr("class",function(e,t){return"nv-group nv-series-"+t}).classed("hover",function(e){return e.hover}).style("fill",function(e,t){return b(e,t)}).style("stroke",function(e,t){return b(e,t)}),Y.watchTransition(C,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",S);var V=Y.selectAll("g.nv-bar").data(function(e){return e.values});V.exit().remove();var H=V.enter().append("g").attr("transform",function(e,t,r){var i=r.indexOf(this);return"translate("+n(w?e.y0:0)+","+(w?0:i*p.bandwidth()/d.length+p(m(e,t)))+")"});(V=V.merge(H)).select("rect").remove(),V.append("rect").attr("width",0).attr("height",p.bandwidth()/(w?1:d.length)),V.on("mouseover",function(e,t,n){d3.select(this).classed("hover",!0),setCoordinates(e.pageX,e.pageY),D.call("elementMouseover",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1),D.call("elementMouseout",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("mouseout",function(e,t,n){D.call("elementMouseout",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("mousemove",function(e,t,n){D.call("elementMousemove",this,{data:t,index:t.index,color:d3.select(this).style("fill")})}).on("click",function(e,t,n){D.call("elementClick",this,{data:t,index:t.index,color:d3.select(this).style("fill"),event:e,element:this}),e.stopPropagation()}).on("dblclick",function(e,t,n){D.call("elementDblClick",this,{data:t,index:t.index,color:d3.select(this).style("fill")}),e.stopPropagation()}),v(d[0],0)&&(H.append("polyline"),V.select("polyline").attr("fill","none").attr("points",function(e,t){var n=v(e,t),r=.8*p.bandwidth()/(2*(w?1:d.length));return[[(n=(n=n.length?n:[-Math.abs(n),Math.abs(n)]).map(function(n){return f(n+(0>g(e,t)?0:g(e,t)))-f(0)}))[0],-r],[n[0],r],[n[0],0],[n[1],0],[n[1],-r],[n[1],r]].map(function(e){return e.join(",")}).join(" ")}).attr("transform",function(e,t){return"translate(0, "+p.bandwidth()/(2*(w?1:d.length))+")"})),H.append("text"),A&&!w?(V.select("text").attr("text-anchor",function(e,t){return 0>g(e,t)?"end":"start"}).attr("y",p.bandwidth()/(2*d.length)).attr("dy",".32em").text(function(e,t){var n=E(g(e,t)).replace(/\.0+%$/,"%"),r=v(e,t);return void 0===r?n:r.length?n+"+"+E(Math.abs(r[1]))+"-"+E(Math.abs(r[0])):n+"\xb1"+E(Math.abs(r))}),V.watchTransition(C,"multibarhorizontal: bars").select("text").attr("x",function(e,t){return 0>g(e,t)?-4:f(g(e,t))-f(0)+4})):V.selectAll("text").text(""),V.selectAll("text.nv-bar-label").text(""),V.attr("class",function(e,t){return 0>g(e,t)?"nv-bar negative":"nv-bar positive"}),_&&(r||(r=d.map(function(){return!0})),V.style("fill",function(e,t,n){return d3.rgb(_(e,t)).darker(r.map(function(e,t){return t}).filter(function(e,t){return!r[t]})[n]).toString()}).style("stroke",function(e,t,n){return d3.rgb(_(e,t)).darker(r.map(function(e,t){return t}).filter(function(e,t){return!r[t]})[n]).toString()})),w?V.watchTransition(C,"multibarhorizontal: bars").attr("transform",function(e,t){return"translate("+f(e.y1)+","+p(m(e,t))+")"}).select("rect").attr("width",function(e,t){return Math.abs(f(g(e,t)+e.y0)-f(e.y0))||0}).attr("height",p.bandwidth()):V.watchTransition(C,"multibarhorizontal: bars").attr("transform",function(e,t){return"translate("+(0>g(e,t)?f(g(e,t)):f(0))+","+(e.series*p.bandwidth()/d.length+p(m(e,t)))+")"}).select("rect").attr("height",p.bandwidth()/d.length).attr("width",function(e,t){return Math.max(Math.abs(f(g(e,t))-f(0)),1)||0}),t=p.copy(),n=f.copy()}),C.renderEnd("multibarHorizontal immediate"),M}return M.dispatch=D,M.options=e.utils.optionsFunc.bind(M),M._options=Object.create({},{width:{get:function(){return c},set:function(e){c=e}},height:{get:function(){return u},set:function(e){u=e}},x:{get:function(){return m},set:function(e){m=e}},y:{get:function(){return g},set:function(e){g=e}},yErr:{get:function(){return v},set:function(e){v=e}},xScale:{get:function(){return p},set:function(e){p=e}},yScale:{get:function(){return f},set:function(e){f=e}},xDomain:{get:function(){return i},set:function(e){i=e}},yDomain:{get:function(){return o},set:function(e){o=e}},xRange:{get:function(){return s},set:function(e){s=e}},yRange:{get:function(){return a},set:function(e){a=e}},forceY:{get:function(){return y},set:function(e){y=e}},stacked:{get:function(){return w},set:function(e){w=e}},showValues:{get:function(){return A},set:function(e){A=e}},disabled:{get:function(){return r},set:function(e){r=e}},id:{get:function(){return d},set:function(e){d=e}},valueFormat:{get:function(){return E},set:function(e){E=e}},valuePadding:{get:function(){return x},set:function(e){x=e}},groupSpacing:{get:function(){return k},set:function(e){k=e}},fillOpacity:{get:function(){return S},set:function(e){S=e}},margin:{get:function(){return l},set:function(e){l.top=void 0!==e.top?e.top:l.top,l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},duration:{get:function(){return T},set:function(e){T=e,C.reset(T)}},color:{get:function(){return b},set:function(t){b=e.utils.getColor(t)}},barColor:{get:function(){return _},set:function(t){_=t?e.utils.getColor(t):null}}}),e.utils.initOptions(M),M},e.models.multiBarHorizontalChart=function(){"use strict";var t,n,r=e.models.multiBarHorizontal(),i=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),o=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),s=e.models.legend().height(30),a=e.models.legend().height(30),l=e.models.tooltip(),c={top:30,right:20,bottom:50,left:60},u=null,d=null,h=null,p=e.utils.defaultColor(),f=!0,m="top",g={},v=!0,y="top",b=!0,_=!0,w=!1,A=e.utils.state(),x=null,k=null,S=d3.dispatch("stateChange","changeState","renderEnd"),E=function(){return f?180:0},T=250;A.stacked=!1,r.stacked(w),i.tickPadding(5),i.showMaxMin(!1).tickFormat(function(e){return e}),o.tickFormat(d3.format(",.1f")),l.duration(0).valueFormatter(function(e,t){return o.tickFormat()(e,t)}).headerFormatter(function(e,t){return i.tickFormat()(e,t)}),a.updateState(!1);var D=e.utils.renderWatch(S,T);function C(l){return D.reset(),D.models(r),b&&D.models(i),_&&D.models(o),l.each(function(l){var k,D=d3.select(this);e.utils.initSVG(D);var M,I,O=e.utils.availableWidth(d,D,c),L=e.utils.availableHeight(h,D,c);if(C.update=function(){D.transition().duration(T).call(C)},C.container=this,w=r.stacked(),A.setter((M=l,function(e){void 0!==e.stacked&&(w=e.stacked),void 0!==e.active&&M.forEach(function(t,n){t.disabled=!e.active[n]})}),C.update).getter((I=l,function(){return{active:I.map(function(e){return!e.disabled}),stacked:w}})).update(),A.disabled=l.map(function(e){return!!e.disabled}),!x)for(k in x={},A)A[k]instanceof Array?x[k]=A[k].slice(0):x[k]=A[k];if(!l||!l.length||!l.filter(function(e){return e.values.length}).length)return e.utils.noData(C,D),C;D.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale().clamp(!0);var N=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").data([l]).enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarHorizontalChart"),P=N.append("g");P.select("g");var R=P.append("g").attr("class","nv-x nv-axis");R=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-x");var j=P.append("g").attr("class","nv-y nv-axis"),F=j.append("g").attr("class","nv-zeroLine").append("line");j=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-y"),F=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart.nv-zeroLine").select("line");var B=P.append("g").attr("class","nv-barsWrap");B=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-barsWrap");var Y=P.append("g").attr("class","nv-legendWrap");Y=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-legendWrap");var V=P.append("g").attr("class","nv-controlsWrap");if(B=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-controlsWrap"),v?(s.width(O-E()),Y.datum(l).call(s),"bottom"===y?(c.bottom=i.height()+s.height(),L=e.utils.availableHeight(h,D,c),Y.attr("transform","translate("+E()+","+(L+i.height())+")")):"top"===y&&(u||s.height()===c.top||(c.top=s.height(),L=e.utils.availableHeight(h,D,c)),Y.attr("transform","translate("+E()+","+-c.top+")"))):Y.selectAll("*").remove(),N.attr("transform","translate("+c.left+","+c.top+")"),f){var H=[{key:g.grouped||"Grouped",disabled:r.stacked()},{key:g.stacked||"Stacked",disabled:!r.stacked()}];a.width(E()).color(["#444","#444","#444"]),"bottom"===m?(c.bottom=i.height()+s.height(),L=e.utils.availableHeight(h,D,c),V.datum(H).attr("transform","translate(0,"+(L+i.height())+")").call(a)):"top"===m&&V.datum(H).attr("transform","translate(0,"+-c.top+")").call(a)}else V.selectAll("*").remove();r.disabled(l.map(function(e){return e.disabled})).width(O).height(L).color(l.map(function(e,t){return e.color||p(e,t)}).filter(function(e,t){return!l[t].disabled})),(B=D.select(".nv-multiBarHorizontalChart").selectAll(".nv-barsWrap").data([l.filter(function(e){return!e.disabled})]).merge(B)).transition().call(r),b&&(i.scale(t)._ticks(e.utils.calcTicksY(L/24,l)),i.tickSizeInner(-O),R.call(i),R.select("g.nvd3.nv-wrap.nv-axis").selectAll("g").selectAll("line, text")),_&&(o.scale(n)._ticks(e.utils.calcTicksX(O/100,l)),o.tickSizeInner(-L),j.attr("transform","translate(0,"+L+")"),j.call(o)),F.attr("x1",n(0)).attr("x2",n(0)).attr("y1",0).attr("y2",-L),s.dispatch.on("stateChange",function(e){for(var t in e)A[t]=e[t];S.call("stateChange",this,e),C.update()}),a.dispatch.on("legendClick",function(e,t,n){if(t.disabled){switch(H=H.map(function(e){return e.disabled=!0,e}),t.disabled=!1,t.key){case"Grouped":case g.grouped:r.stacked(!1);break;case"Stacked":case g.stacked:r.stacked(!0)}A.stacked=r.stacked(),S.call("stateChange",this,A),w=r.stacked(),C.update()}}),S.on("changeState",function(e){void 0!==e.disabled&&(l.forEach(function(t,n){t.disabled=e.disabled[n]}),A.disabled=e.disabled),void 0!==e.stacked&&(r.stacked(e.stacked),A.stacked=e.stacked,w=e.stacked),C.update()})}),D.renderEnd("multibar horizontal chart immediate"),C}return r.dispatch.on("elementMouseover.tooltip",function(e){e.value=C.x()(e.data),e.series={key:e.data.key,value:C.y()(e.data),color:e.color},l.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){l.hidden(!0)}),r.dispatch.on("elementMousemove.tooltip",function(e){l()}),C.dispatch=S,C.multibar=r,C.legend=s,C.controls=a,C.xAxis=i,C.yAxis=o,C.state=A,C.tooltip=l,C.options=e.utils.optionsFunc.bind(C),C._options=Object.create({},{width:{get:function(){return d},set:function(e){d=e}},height:{get:function(){return h},set:function(e){h=e}},showLegend:{get:function(){return v},set:function(e){v=e}},legendPosition:{get:function(){return y},set:function(e){y=e}},controlsPosition:{get:function(){return m},set:function(e){m=e}},showControls:{get:function(){return f},set:function(e){f=e}},controlLabels:{get:function(){return g},set:function(e){g=e}},showXAxis:{get:function(){return b},set:function(e){b=e}},showYAxis:{get:function(){return _},set:function(e){_=e}},defaultState:{get:function(){return x},set:function(e){x=e}},noData:{get:function(){return k},set:function(e){k=e}},margin:{get:function(){return c},set:function(e){void 0!==e.top&&(c.top=e.top,u=e.top),c.right=void 0!==e.right?e.right:c.right,c.bottom=void 0!==e.bottom?e.bottom:c.bottom,c.left=void 0!==e.left?e.left:c.left}},duration:{get:function(){return T},set:function(e){T=e,D.reset(T),r.duration(T),i.duration(T),o.duration(T)}},color:{get:function(){return p},set:function(t){p=e.utils.getColor(t),s.color(p)}},barColor:{get:function(){return r.barColor},set:function(e){r.barColor(e),s.color(function(e,t){return d3.rgb("#ccc").darker(1.5*t).toString()})}}}),e.utils.inheritOptions(C,r),e.utils.initOptions(C),C},e.models.multiChart=function(){"use strict";var t,n,r={top:30,right:20,bottom:50,left:60},i=null,o=e.utils.defaultColor(),s=null,a=null,l=!0,c=null,u=function(e){return e.x},d=function(e){return e.y},h=getInterpolationType(h),p=!0,f=e.interactiveGuideline(),m=!1,g=" (right axis)",v=250,y=d3.scaleLinear(),b=d3.scaleLinear(),_=d3.scaleLinear(),w=e.models.line().yScale(b).duration(v),A=e.models.line().yScale(_).duration(v),x=e.models.scatter().yScale(b).duration(v),k=e.models.scatter().yScale(_).duration(v),S=e.models.multiBar().stacked(!1).yScale(b).duration(v),E=e.models.multiBar().stacked(!1).yScale(_).duration(v),T=e.models.stackedArea().yScale(b).duration(v),D=e.models.stackedArea().yScale(_).duration(v),C=e.models.axis(d3.axisBottom(y),"bottom").tickPadding(5).duration(v),M=e.models.axis(d3.axisLeft(b),"left").duration(v),I=e.models.axis(d3.axisRight(_),"right").duration(v),O=e.models.legend().height(30),L=e.models.tooltip(),N=d3.dispatch(),P=[w,A,x,k,S,E,T,D];function R(c){return c.each(function(c){var p=d3.select(this);e.utils.initSVG(p),R.update=function(){p.call(R)},R.container=this;var v=e.utils.availableWidth(s,p,r),j=e.utils.availableHeight(a,p,r),F=c.filter(function(e){return"line"==e.type&&1==e.yAxis}),B=c.filter(function(e){return"line"==e.type&&2==e.yAxis}),Y=c.filter(function(e){return"scatter"==e.type&&1==e.yAxis}),V=c.filter(function(e){return"scatter"==e.type&&2==e.yAxis}),H=c.filter(function(e){return"bar"==e.type&&1==e.yAxis}),U=c.filter(function(e){return"bar"==e.type&&2==e.yAxis}),z=c.filter(function(e){return"area"==e.type&&1==e.yAxis}),q=c.filter(function(e){return"area"==e.type&&2==e.yAxis});if(!c||!c.length||!c.filter(function(e){return e.values.length}).length)return e.utils.noData(R,p),R;p.selectAll(".nv-noData").remove();var W=c.filter(function(e){return!e.disabled&&1==e.yAxis}).map(function(e){return e.values.map(function(e,t){return{x:u(e),y:d(e)}})}),$=c.filter(function(e){return!e.disabled&&2==e.yAxis}).map(function(e){return e.values.map(function(e,t){return{x:u(e),y:d(e)}})});y.domain(d3.extent(d3.merge(W.concat($)),function(e){return e.x})).range([0,v]);var G=p.selectAll("g.wrap.multiChart").data([c]),K=G.enter().append("g").attr("class","wrap nvd3 multiChart"),Z=K.append("g"),X=Z.append("g").attr("class","nv-x nv-axis");X=p.selectAll("g.wrap.multiChart").select(".nv-x");var Q=Z.append("g").attr("class","nv-y1 nv-axis"),J=Z.append("g").attr("class","nv-y2 nv-axis"),ee=Z.append("g").attr("class","stack1Wrap"),te=Z.append("g").attr("class","stack2Wrap"),ne=Z.append("g").attr("class","bars1Wrap"),re=Z.append("g").attr("class","bars2Wrap"),ie=Z.append("g").attr("class","scatters1Wrap"),oe=Z.append("g").attr("class","scatters2Wrap"),se=Z.append("g").attr("class","lines1Wrap"),ae=Z.append("g").attr("class","lines2Wrap"),le=Z.append("g").attr("class","legendWrap"),ce=Z.append("g").attr("class","nv-interactive");le=p.selectAll("g.wrap.nv-multiChart").select(".nv-legendWrap"),G.select("g");var ue=c.map(function(e,t){return c[t].color||o(e,t)});if(l){var de=O.align()?v/2:v,he=O.align()?de:0;O.width(de),O.color(ue),le.datum(c.map(function(e){return e.originalKey=void 0===e.originalKey?e.key:e.originalKey,e.key=e.originalKey+(1==e.yAxis?"":g),e})).call(O),i||O.height()===r.top||(r.top=O.height(),j=e.utils.availableHeight(a,p,r)),le.attr("transform","translate("+he+","+-r.top+")")}else le.selectAll("*").remove();K.attr("transform","translate("+r.left+","+r.top+")"),w.width(v).height(j).interpolate(h).color(ue.filter(function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"line"==c[t].type})),A.width(v).height(j).interpolate(h).color(ue.filter(function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"line"==c[t].type})),x.width(v).height(j).color(ue.filter(function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"scatter"==c[t].type})),k.width(v).height(j).color(ue.filter(function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"scatter"==c[t].type})),S.width(v).height(j).color(ue.filter(function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"bar"==c[t].type})),E.width(v).height(j).color(ue.filter(function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"bar"==c[t].type})),T.width(v).height(j).interpolate(h).color(ue.filter(function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"area"==c[t].type})),D.width(v).height(j).interpolate(h).color(ue.filter(function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"area"==c[t].type})),se.datum(F.filter(function(e){return!e.disabled})),ie.datum(Y.filter(function(e){return!e.disabled})),ne.datum(H.filter(function(e){return!e.disabled})),ee.datum(z.filter(function(e){return!e.disabled})),ae.datum(B.filter(function(e){return!e.disabled})),oe.datum(V.filter(function(e){return!e.disabled})),re.datum(U.filter(function(e){return!e.disabled})),te.datum(q.filter(function(e){return!e.disabled}));var pe=[];if(S.stacked()&&H.length){pe=H.filter(function(e){return!e.disabled}).map(function(e){return e.values});pe.length>0&&(pe=pe.reduce(function(e,t){return e.map(function(e,n){return{x:e.x,y:e.y+t[n].y}})}))}H.length&&pe.push({x:0,y:0});var fe=[];if(E.stacked()&&U.length){fe=U.filter(function(e){return!e.disabled}).map(function(e){return e.values});fe.length>0&&(fe=fe.reduce(function(e,t){return e.map(function(e,n){return{x:e.x,y:e.y+t[n].y}})}))}function me(e){return d3.transpose(e).map(function(e){return e.map(function(e){return e.y})}).map(function(e){return d3.sum(e)})}if(U.length&&fe.push({x:0,y:0}),b.domain(t||d3.extent(d3.merge(W).concat(pe),function(e){return e.y})).range([0,j]),_.domain(n||d3.extent(d3.merge($).concat(fe),function(e){return e.y})).range([0,j]),w.yDomain(b.domain()),x.yDomain(b.domain()),S.stacked()){var ge=b.domain([0,d3.max(me(W))]).range([0,j]);S.yDomain(ge.domain())}else S.yDomain(b.domain());if(T.yDomain(b.domain()),A.yDomain(_.domain()),k.yDomain(_.domain()),E.stacked()){var ve=_.domain([0,d3.max(me($))]).range([0,j]);E.yDomain(ve.domain())}else E.yDomain(_.domain());function ye(e){var t=2===e.series.yAxis?I:M;e.value=e.point.x,e.series={value:e.point.y,color:e.point.color,key:e.series.key},L.duration(0).headerFormatter(function(e,t){return C.tickFormat()(e,t)}).valueFormatter(function(e,n){return t.tickFormat()(e,n)}).data(e).hidden(!1)}function be(e){var t=2===e.series.yAxis?I:M;e.value=e.point.x,e.series={value:e.point.y,color:e.point.color,key:e.series.key},L.duration(100).headerFormatter(function(e,t){return C.tickFormat()(e,t)}).valueFormatter(function(e,n){return t.tickFormat()(e,n)}).data(e).hidden(!1)}function _e(e){var t=2===e.series.yAxis?I:M;e.point.x=T.x()(e.point),e.point.y=T.y()(e.point),L.duration(0).headerFormatter(function(e,t){return C.tickFormat()(e,t)}).valueFormatter(function(e,n){return t.tickFormat()(e,n)}).data(e).hidden(!1)}function we(e){var t=2===e.series.yAxis?I:M;e.value=S.x()(e.data),e.series={value:S.y()(e.data),color:e.color,key:e.data.key},L.duration(0).headerFormatter(function(e,t){return C.tickFormat()(e,t)}).valueFormatter(function(e,n){return t.tickFormat()(e,n)}).data(e).hidden(!1)}function Ae(){for(var e=0,t=P.length;e<t;e++){var n=P[e];try{n.clearHighlights()}catch(e){}}}D.yDomain(_.domain()),z.length&&ee.transition().call(T),q.length&&te.transition().call(D),H.length&&ne.transition().call(S),U.length&&re.transition().call(E),F.length&&se.transition().call(w),B.length&&ae.transition().call(A),Y.length&&ie.transition().call(x),V.length&&oe.transition().call(k),C._ticks(e.utils.calcTicksX(v/100,c)),C.tickSizeInner(-j),X.attr("transform","translate(0,"+j+")"),X.transition().call(C),M._ticks(e.utils.calcTicksY(j/36,c)),M.tickSizeInner(-v),Q.transition().call(M),I._ticks(e.utils.calcTicksY(j/36,c)),I.tickSizeInner(-v),J.transition().call(I),Q.classed("nv-disabled",!W.length).attr("transform","translate("+y.range()[0]+",0)"),J.classed("nv-disabled",!$.length).attr("transform","translate("+y.range()[1]+",0)"),O.dispatch.on("stateChange",function(e){N.call("stateChange",this,e),R.update()}),m&&(f.width(v).height(j).margin({left:r.left,top:r.top}).svgContainer(p).xScale(y),ce.call(f)),m?(f.dispatch.on("elementMousemove",function(t){Ae();var n,r,i,s=[];c.filter(function(e,t){return e.seriesIndex=t,!e.disabled}).forEach(function(a,l){var c=y.domain(),u=a.values.filter(function(e,t){return R.x()(e,t)>=c[0]&&R.x()(e,t)<=c[1]}),d=u[r=e.interactiveBisect(u,t.pointXValue,R.x())],h=R.y()(d,r);null===h||isNaN(h)||a.noHighlightSeries||function(e,t,n){var r={line:{yAxis1:{chart:w,data:F},yAxis2:{chart:A,data:B}},scatter:{yAxis1:{chart:x,data:Y},yAxis2:{chart:k,data:V}},bar:{yAxis1:{chart:S,data:H},yAxis2:{chart:E,data:U}},area:{yAxis1:{chart:T,data:z},yAxis2:{chart:D,data:q}}},i=r[e.type]["yAxis"+e.yAxis].chart,o=r[e.type]["yAxis"+e.yAxis].data.reduce(function(t,n,r){return n.key===e.key?r:t},0);try{i.highlightPoint(o,t,n,void 0)}catch(e){}}(a,r,!0),void 0!==d&&(void 0===n&&(n=d),void 0===i&&(i=y(R.x()(d,r))),s.push({key:a.key,value:h,color:o(a,a.seriesIndex),data:d,yAxis:2==a.yAxis?I:M}))});f.tooltip.headerFormatter(function(e,t){return C.tickFormat()(e,t)}).valueFormatter(f.tooltip.valueFormatter()||function(e,t){var n=s[t].yAxis;return null==e?"N/A":n.tickFormat()(e)}).data({value:R.x()(n,r),index:r,series:s})(),f.renderGuideLine(i)}),f.dispatch.on("elementMouseout",function(e){Ae()})):(w.dispatch.on("elementMouseover.tooltip",ye),A.dispatch.on("elementMouseover.tooltip",ye),w.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),A.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),x.dispatch.on("elementMouseover.tooltip",be),k.dispatch.on("elementMouseover.tooltip",be),x.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),k.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),T.dispatch.on("elementMouseover.tooltip",_e),D.dispatch.on("elementMouseover.tooltip",_e),T.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),D.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),S.dispatch.on("elementMouseover.tooltip",we),E.dispatch.on("elementMouseover.tooltip",we),S.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),E.dispatch.on("elementMouseout.tooltip",function(e){L.hidden(!0)}),S.dispatch.on("elementMousemove.tooltip",function(e){L()}),E.dispatch.on("elementMousemove.tooltip",function(e){L()}))}),R}return R.dispatch=N,R.legend=O,R.lines1=w,R.lines2=A,R.scatters1=x,R.scatters2=k,R.bars1=S,R.bars2=E,R.stack1=T,R.stack2=D,R.xAxis=C,R.yAxis1=M,R.yAxis2=I,R.tooltip=L,R.interactiveLayer=f,R.options=e.utils.optionsFunc.bind(R),R._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},showLegend:{get:function(){return l},set:function(e){l=e}},xScale:{get:function(){return y},set:function(e){y=e,C.scale(y)}},yDomain1:{get:function(){return t},set:function(e){t=e}},yDomain2:{get:function(){return n},set:function(e){n=e}},noData:{get:function(){return c},set:function(e){c=e}},interpolate:{get:function(){return h},set:function(e){h=e}},legendRightAxisHint:{get:function(){return g},set:function(e){g=e}},margin:{get:function(){return r},set:function(e){void 0!==e.top&&(r.top=e.top,i=e.top),r.right=void 0!==e.right?e.right:r.right,r.bottom=void 0!==e.bottom?e.bottom:r.bottom,r.left=void 0!==e.left?e.left:r.left}},color:{get:function(){return o},set:function(t){o=e.utils.getColor(t)}},x:{get:function(){return u},set:function(e){u=e,w.x(e),A.x(e),x.x(e),k.x(e),S.x(e),E.x(e),T.x(e),D.x(e)}},y:{get:function(){return d},set:function(e){d=e,w.y(e),A.y(e),x.y(e),k.y(e),T.y(e),D.y(e),S.y(e),E.y(e)}},useVoronoi:{get:function(){return p},set:function(e){p=e,w.useVoronoi(e),A.useVoronoi(e),T.useVoronoi(e),D.useVoronoi(e)}},useInteractiveGuideline:{get:function(){return m},set:function(e){(m=e)&&(w.interactive(!1),w.useVoronoi(!1),A.interactive(!1),A.useVoronoi(!1),T.interactive(!1),T.useVoronoi(!1),D.interactive(!1),D.useVoronoi(!1),x.interactive(!1),k.interactive(!1))}},duration:{get:function(){return v},set:function(e){v=e,[w,A,T,D,x,k,C,M,I].forEach(function(e){e.duration(v)})}}}),e.utils.initOptions(R),R},e.models.ohlcBar=function(){"use strict";var t,n,r,i,o={top:0,right:0,bottom:0,left:0},s=null,a=null,l=Math.floor(1e4*Math.random()),c=null,u=d3.scaleLinear(),d=d3.scaleLinear(),h=function(e){return e.x},p=function(e){return e.y},f=function(e){return e.open},m=function(e){return e.close},g=function(e){return e.high},v=function(e){return e.low},y=[],b=[],_=!1,w=!0,A=e.utils.defaultColor(),x=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function S(x){return x.each(function(x){c=d3.select(this);var S=e.utils.availableWidth(s,c,o),E=e.utils.availableHeight(a,c,o);e.utils.initSVG(c);var T=S/x[0].values.length*.9;u.domain(t||d3.extent(x[0].values.map(h).concat(y))),_?u.range(r||[.5*S/x[0].values.length,S*(x[0].values.length-.5)/x[0].values.length]):u.range(r||[5+T/2,S-T/2-5]),d.domain(n||[d3.min(x[0].values.map(v).concat(b)),d3.max(x[0].values.map(g).concat(b))]).range(i||[E,0]),u.domain()[0]===u.domain()[1]&&(u.domain()[0]?u.domain([u.domain()[0]-.01*u.domain()[0],u.domain()[1]+.01*u.domain()[1]]):u.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var D=d3.select(this).selectAll("g.nv-wrap.nv-ohlcBar").data([x[0].values]).enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar");D.attr("transform","translate("+o.left+","+o.top+")");var C=D.append("defs"),M=D.append("g");M.select("g");var I=M.append("g").attr("class","nv-ticks");c.on("click",function(e,t,n){k.call("chartClick",this,{data:t,index:t.index,pos:e,id:l})}),C.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect").attr("width",S).attr("height",E),M.attr("clip-path",w?"url(#nv-chart-clip-path-"+l+")":"");var O=I.selectAll(".nv-tick").data(function(e){return e});O.exit().remove(),O.enter().append("path").attr("class",function(e,t,n){return(f(e,t)>m(e,t)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+t}).attr("d",function(e,t){return"m0,0l0,"+(d(f(e,t))-d(g(e,t)))+"l"+-T/2+",0l"+T/2+",0l0,"+(d(v(e,t))-d(f(e,t)))+"l0,"+(d(m(e,t))-d(v(e,t)))+"l"+T/2+",0l"+-T/2+",0z"}).attr("transform",function(e,t){return"translate("+u(h(e,t))+","+d(g(e,t))+")"}).attr("fill",function(e,t){return A[0]}).attr("stroke",function(e,t){return A[0]}).attr("x",0).attr("y",function(e,t){return d(Math.max(0,p(e,t)))}).attr("height",function(e,t){return Math.abs(d(p(e,t))-d(0))}),O.attr("class",function(e,t,n){return(f(e,t)>m(e,t)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+t}),O.transition().duration(0).attr("transform",function(e,t){return"translate("+u(h(e,t))+","+d(g(e,t))+")"}).attr("d",function(e,t){var n=S/x[0].values.length*.9;return"m0,0l0,"+(d(f(e,t))-d(g(e,t)))+"l"+-n/2+",0l"+n/2+",0l0,"+(d(v(e,t))-d(f(e,t)))+"l0,"+(d(m(e,t))-d(v(e,t)))+"l"+n/2+",0l"+-n/2+",0z"})}),S}return S.highlightPoint=function(e,t){S.clearHighlights(),c.select(".nv-ohlcBar .nv-tick-0-"+e).classed("hover",t)},S.clearHighlights=function(){c.select(".nv-ohlcBar .nv-tick.hover").classed("hover",!1)},S.dispatch=k,S.options=e.utils.optionsFunc.bind(S),S._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},xScale:{get:function(){return u},set:function(e){u=e}},yScale:{get:function(){return d},set:function(e){d=e}},xDomain:{get:function(){return t},set:function(e){t=e}},yDomain:{get:function(){return n},set:function(e){n=e}},xRange:{get:function(){return r},set:function(e){r=e}},yRange:{get:function(){return i},set:function(e){i=e}},forceX:{get:function(){return y},set:function(e){y=e}},forceY:{get:function(){return b},set:function(e){b=e}},padData:{get:function(){return _},set:function(e){_=e}},clipEdge:{get:function(){return w},set:function(e){w=e}},id:{get:function(){return l},set:function(e){l=e}},interactive:{get:function(){return x},set:function(e){x=e}},x:{get:function(){return h},set:function(e){h=e}},y:{get:function(){return p},set:function(e){p=e}},open:{get:function(){return f()},set:function(e){f=e}},close:{get:function(){return m()},set:function(e){m=e}},high:{get:function(){return g},set:function(e){g=e}},low:{get:function(){return v},set:function(e){v=e}},margin:{get:function(){return o},set:function(e){o.top=null!=e.top?e.top:o.top,o.right=null!=e.right?e.right:o.right,o.bottom=null!=e.bottom?e.bottom:o.bottom,o.left=null!=e.left?e.left:o.left}},color:{get:function(){return A},set:function(t){A=e.utils.getColor(t)}}}),e.utils.initOptions(S),S},e.models.parallelCoordinates=function(){"use strict";var t,n,r,i={top:30,right:0,bottom:10,left:0},o=null,s=null,a=null,l=null,c=d3.scalePoint(),u={},d="undefined values",h=[],p=[],f=[],m=!0,g=e.utils.defaultColor(),v=[],y=[],b=[],_=[],w=1,A=d3.line(),x=d3.axisLeft(d3.scaleLinear()),k=d3.dispatch("start","brush","end","dimensionsOrder","stateChange","elementClick","elementMouseover","elementMouseout","elementMousemove","renderEnd","activeChanged"),S=e.utils.renderWatch(k);function E(T){return S.reset(),T.each(function(S){var E,T,D=d3.select(this);if(a=e.utils.availableWidth(o,D,i),l=e.utils.availableHeight(s,D,i),e.utils.initSVG(D),void 0===S[0].values){var C=[];S.forEach(function(e){var t={};Object.keys(e).forEach(function(n){"name"!==n&&(t[n]=e[n])}),C.push({key:e.name,values:t})}),S=C}var M=S.map(function(e){return e.values});0===y.length&&(y=S),f=h.sort(function(e,t){return e.currentPosition-t.currentPosition}).map(function(e){return e.key}),p=h.filter(function(e){return!e.disabled}),c.range([0,a],1).domain(p.map(function(e){return e.key}));var I={},O=!1,L=[];f.forEach(function(e){var t=d3.extent(M,function(t){return+t[e]}),n=t[0],r=t[1],i=!1;(isNaN(n)||isNaN(r))&&(i=!0,n=0,r=0),n===r&&(n-=1,r+=1);var o=v.filter(function(t){return t.dimension==e});0!==o.length&&(i?(n=u[e].domain()[0],r=u[e].domain()[1]):!o[0].hasOnlyNaN&&m?(n=n>o[0].extent[0]?o[0].extent[0]:n,r=r<o[0].extent[1]?o[0].extent[1]:r):o[0].hasNaN&&(r=r<o[0].extent[1]?o[0].extent[1]:r,I[e]=u[e].domain()[1],O=!0)),u[e]=d3.scaleLinear().domain([n,r]).range([.9*(l-12),0]),_=[],u[e].brush=d3.brush().on("start",K).on("brush",Z).on("end",X)});var N=D.selectAll("g.nv-wrap.nv-parallelCoordinates").data([S]).enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinates");N.attr("transform","translate("+i.left+","+i.top+")");var P=N.append("g"),R=N.select("g"),j=P.append("g").attr("class","nv-parallelCoordinates background"),F=P.append("g").attr("class","nv-parallelCoordinates foreground"),B=P.append("g").attr("class","nv-parallelCoordinates missingValuesline");A.curve(d3.curveCardinal.tension(w));var Y=d3.drag().on("start",function(e){b[e.key]=this.parentNode.__origin__=c(e.key),n.attr("visibility","hidden")}).on("drag",function(e,n){b[n.key]=Math.min(a,Math.max(0,this.parentNode.__origin__+=e.x)),t.attr("d",$),p.sort(function(e,t){return J(e.key)-J(t.key)}),p.forEach(function(e,t){return e.currentPosition=t}),c.domain(p.map(function(e){return e.key})),r.attr("transform",function(e){return"translate("+J(e.key)+")"})}).on("end",function(e,r){delete this.parentNode.__origin__,delete b[e.key],d3.select(this.parentNode).attr("transform","translate("+c(e.key)+")"),t.attr("d",$),n.attr("d",$).attr("visibility",null),k.call("dimensionsOrder",this,p)}),V=c.range()[1]-c.range()[0];if(V=isNaN(V)?c.range()[0]:V,!isNaN(V)){var H=[0+V/2,l-12,a-V/2,l-12];(E=B.selectAll("line").data([H])).enter().append("line"),E.exit().remove(),E.attr("x1",function(e){return e[0]}).attr("y1",function(e){return e[1]}).attr("x2",function(e){return e[2]}).attr("y2",function(e){return e[3]}),(T=B.selectAll("text").data([d])).append("text").data([d]),T.enter().append("text"),T.exit().remove(),T.attr("y",l).attr("x",a-92-V/2).text(function(e){return e})}(n=j.selectAll("path").data(S)).enter().append("path"),n.exit().remove(),n.attr("d",$),(t=F.selectAll("path").data(S)).enter().append("path"),t.exit().remove(),t.attr("d",$).style("stroke-width",function(e,t){return isNaN(e.strokeWidth)&&(e.strokeWidth=1),e.strokeWidth}).attr("stroke",function(e,t){return e.color||g(e,t)}),t.on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0).style("stroke-width",t.strokeWidth+2+"px").style("stroke-opacity",1),k.call("elementMouseover",this,{label:t.name,color:t.color||g(t,n),values:t.values,dimensions:p})}),t.on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1).style("stroke-width",t.strokeWidth+"px").style("stroke-opacity",.7),k.call("elementMouseout",this,{label:t.name,index:t.index})}),t.on("mousemove",function(e,t){k.call("elementMousemove",this)}),t.on("click",function(e){k.call("elementClick",this,{id:e.id})});var U=(r=R.selectAll(".dimension").data(p)).enter().append("g").attr("class","nv-parallelCoordinates dimension");r.attr("transform",function(e){return"translate("+c(e.key)+",0)"}),U.append("g").attr("class","nv-axis"),U.append("text").attr("class","nv-label").style("cursor","move").attr("dy","-1em").attr("text-anchor","middle").on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),k.call("elementMouseover",this,{label:t.tooltip||t.key,color:t.color})}).on("mouseout",function(e,t){k.call("elementMouseout",this,{label:e.tooltip})}).on("mousemove",function(e,t){k.call("elementMousemove",this)}).call(Y),U.append("g").attr("class","nv-brushBackground"),r.exit().remove(),r.select(".nv-label").text(function(e){return e.key}),G(m);var z=f.filter(function(e){return null!==event.selection}),q=z.map(function(e){return u[e].brush.extent()}),W=y.slice(0);function $(e){return A(p.map(function(t){if(isNaN(e.values[t.key])||isNaN(parseFloat(e.values[t.key]))||O){var n=u[t.key].domain(),r=u[t.key].range(),i=n[0]-(n[1]-n[0])/9;if(0>_.indexOf(t.key)){var o=d3.scaleLinear().domain([i,n[1]]).range([l-12,r[1]]);u[t.key].brush.extent([[o.range()[0],0],[o.range()[1],1]]),_.push(t.key)}if(isNaN(e.values[t.key])||isNaN(parseFloat(e.values[t.key])))return[c(t.key),u[t.key](i)]}return void 0!==E&&(_.length>0||O?(E.style("display","inline"),T.style("display","inline")):(E.style("display","none"),T.style("display","none"))),[c(t.key),u[t.key](e.values[t.key])]}))}function G(e){v.forEach(function(t){var n=u[t.dimension].brush.extent();t.hasOnlyNaN&&(t.extent[1]=(u[t.dimension].domain()[1]-n[0])*(t.extent[1]-t.extent[0])/(I[t.dimension]-t.extent[0])+n[0]),t.hasNaN&&(t.extent[0]=n[0]),e&&u[t.dimension].brush.extent(t.extent)}),r.select(".nv-brushBackground").each(function(e){d3.select(this).call(u[e.key].brush)}).selectAll("rect").attr("x",-8).attr("width",16),Q()}function K(){!1===m&&(m=!0,G(!0))}function Z(e){q=(z=f.filter(function(t){return null!==e.selection})).map(function(e){return u[e].brush.extent()}),v=[],z.forEach(function(e,t){v[t]={dimension:e,extent:q[t],hasNaN:!1,hasOnlyNaN:!1}}),y=[],t.style("display",function(e){var t=z.every(function(t,n){return!(!isNaN(e.values[t])&&!isNaN(parseFloat(e.values[t])))&&q[n][0]==u[t].brush.extent()[1][0]||q[n][0]<=e.values[t]&&e.values[t]<=q[n][1]&&!isNaN(parseFloat(e.values[t]))});return t&&y.push(e),t?null:"none"}),Q(),k.call("brush",this,{filters:v,active:y})}function X(){var e=z.length>0;v.forEach(function(e){e.extent[0]===u[e.dimension].brush.extent()[1]&&_.indexOf(e.dimension)>=0&&(e.hasNaN=!0),e.extent[1]<u[e.dimension].domain()[0]&&(e.hasOnlyNaN=!0)}),k.call("end",y,e)}function Q(){r.select(".nv-axis").each(function(e,t){var n=v.filter(function(t){return t.dimension==e.key});L[e.key]=u[e.key].domain(),0!=n.length&&m&&(L[e.key]=[],n[0].extent[1]>u[e.key].domain()[0]&&(L[e.key]=[n[0].extent[1]]),n[0].extent[0]>=u[e.key].domain()[0]&&L[e.key].push(n[0].extent[0])),d3.select(this).call(x.scale(u[e.key]).tickFormat(e.format).tickValues(L[e.key]))})}function J(e){var t=b[e];return null==t?c(e):t}y=[],t.style("display",function(e){var t=z.every(function(t,n){return!(!isNaN(e.values[t])&&!isNaN(parseFloat(e.values[t])))&&q[n][0]==u[t].brush.extent()[1][0]||q[n][0]<=e.values[t]&&e.values[t]<=q[n][1]&&!isNaN(parseFloat(e.values[t]))});return t&&y.push(e),t?null:"none"}),(v.length>0||!e.utils.arrayEquals(y,W))&&k.call("activeChanged",this,y)}),E}return E.dispatch=k,E.options=e.utils.optionsFunc.bind(E),E._options=Object.create({},{width:{get:function(){return o},set:function(e){o=e}},height:{get:function(){return s},set:function(e){s=e}},dimensionData:{get:function(){return h},set:function(e){h=e}},displayBrush:{get:function(){return m},set:function(e){m=e}},filters:{get:function(){return v},set:function(e){v=e}},active:{get:function(){return y},set:function(e){y=e}},lineTension:{get:function(){return w},set:function(e){w=e}},undefinedValuesLabel:{get:function(){return d},set:function(e){d=e}},dimensions:{get:function(){return h.map(function(e){return e.key})},set:function(t){e.deprecated("dimensions","use dimensionData instead"),0===h.length?t.forEach(function(e){h.push({key:e})}):t.forEach(function(e,t){h[t].key=e})}},dimensionNames:{get:function(){return h.map(function(e){return e.key})},set:function(t){e.deprecated("dimensionNames","use dimensionData instead"),f=[],0===h.length?t.forEach(function(e){h.push({key:e})}):t.forEach(function(e,t){h[t].key=e})}},dimensionFormats:{get:function(){return h.map(function(e){return e.format})},set:function(t){e.deprecated("dimensionFormats","use dimensionData instead"),0===h.length?t.forEach(function(e){h.push({format:e})}):t.forEach(function(e,t){h[t].format=e})}},margin:{get:function(){return i},set:function(e){i.top=void 0!==e.top?e.top:i.top,i.right=void 0!==e.right?e.right:i.right,i.bottom=void 0!==e.bottom?e.bottom:i.bottom,i.left=void 0!==e.left?e.left:i.left}},color:{get:function(){return g},set:function(t){g=e.utils.getColor(t)}}}),e.utils.initOptions(E),E},e.models.parallelCoordinatesChart=function(){"use strict";var t=e.models.parallelCoordinates(),n=e.models.legend(),r=e.models.tooltip();e.models.tooltip();var i={top:0,right:0,bottom:0,left:0},o=null,s=null,a=null,l=!0,c=e.utils.defaultColor(),u=e.utils.state(),d=[],h=!0,p=null,f=null,m="undefined",g=d3.dispatch("dimensionsOrder","end","stateChange","changeState","renderEnd"),v=e.utils.renderWatch(g);function y(r){return v.reset(),v.models(t),r.each(function(r){var c,f=d3.select(this);e.utils.initSVG(f);var m,v,b=this,_=e.utils.availableWidth(s,f,i),w=e.utils.availableHeight(a,f,i);if(y.update=function(){f.call(y)},y.container=this,u.setter((m=d,function(e){void 0!==e.active&&m.forEach(function(t,n){t.disabled=!e.active[n]})}),y.update).getter((v=d,function(){return{active:v.map(function(e){return!e.disabled})}})).update(),u.disabled=d.map(function(e){return!!e.disabled}),(d=d.map(function(e){return e.disabled=!!e.disabled,e})).forEach(function(e,t){e.originalPosition=isNaN(e.originalPosition)?t:e.originalPosition,e.currentPosition=isNaN(e.currentPosition)?t:e.currentPosition}),!p)for(c in p={},u)u[c]instanceof Array?p[c]=u[c].slice(0):p[c]=u[c];if(!r||!r.length)return e.utils.noData(y,f),y;f.selectAll(".nv-noData").remove();var A=f.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").data([r]).enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinatesChart");A.attr("transform","translate("+i.left+","+i.top+")");var x=A.append("g");A.select("g");var k=x.append("g").attr("class","nv-parallelCoordinatesWrap"),S=x.append("g").attr("class","nv-legendWrap");S=f.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").select(".nv-legendWrap"),x.select("rect").attr("width",_).attr("height",w>0?w:0),l?(n.width(_).color(function(e){return"rgb(188,190,192)"}),S.datum(d.sort(function(e,t){return e.originalPosition-t.originalPosition})).call(n),o||n.height()===i.top||(i.top=n.height(),w=e.utils.availableHeight(a,f,i)),S.attr("transform","translate( 0 ,"+-i.top+")")):S.selectAll("*").remove(),t.width(_).height(w).dimensionData(d).displayBrush(h),k.datum(r).transition().duration(0).call(t),t.dispatch.on("end",function(e,t){t?(h=!0,g.call("end",this,e)):h=!1}),n.dispatch.on("stateChange",function(e){for(var t in e)u[t]=e[t];g.call("stateChange",b,e),y.update()}),t.dispatch.on("dimensionsOrder",function(e){d.sort(function(e,t){return e.currentPosition-t.currentPosition});var t=!1;d.forEach(function(e,n){e.currentPosition=n,e.currentPosition!==e.originalPosition&&(t=!0)}),g.call("dimensionsOrder",d,t)}),g.on("changeState",function(e){void 0!==e.disabled&&(d.forEach(function(t,n){t.disabled=e.disabled[n]}),u.disabled=e.disabled),y.update()})}),v.renderEnd("parraleleCoordinateChart immediate"),y}return r.contentGenerator(function(e){var t='<table><thead><tr><td class="legend-color-guide"><div style="background-color:'+e.color+'"></div></td><td><strong>'+e.key+"</strong></td></tr></thead>";return 0!==e.series.length&&(t+='<tbody><tr><td height ="10px"></td></tr>',e.series.forEach(function(e){t=t+'<tr><td class="legend-color-guide"><div style="background-color:'+e.color+'"></div></td><td class="key">'+e.key+'</td><td class="value">'+e.value+"</td></tr>"}),t+="</tbody>"),t+="</table>"}),t.dispatch.on("elementMouseover.tooltip",function(e){var t={key:e.label,color:e.color,series:[]};e.values&&(Object.keys(e.values).forEach(function(n){var r,i=e.dimensions.filter(function(e){return e.key===n})[0];i&&(r=isNaN(e.values[n])||isNaN(parseFloat(e.values[n]))?m:i.format(e.values[n]),t.series.push({idx:i.currentPosition,key:n,value:r,color:i.color}))}),t.series.sort(function(e,t){return e.idx-t.idx})),r.data(t).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(e){r.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(){r()}),y.dispatch=g,y.parallelCoordinates=t,y.legend=n,y.tooltip=r,y.options=e.utils.optionsFunc.bind(y),y._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},showLegend:{get:function(){return l},set:function(e){l=e}},defaultState:{get:function(){return p},set:function(e){p=e}},dimensionData:{get:function(){return d},set:function(e){d=e}},displayBrush:{get:function(){return h},set:function(e){h=e}},noData:{get:function(){return f},set:function(e){f=e}},nanValue:{get:function(){return m},set:function(e){m=e}},margin:{get:function(){return i},set:function(e){void 0!==e.top&&(i.top=e.top,o=e.top),i.right=void 0!==e.right?e.right:i.right,i.bottom=void 0!==e.bottom?e.bottom:i.bottom,i.left=void 0!==e.left?e.left:i.left}},color:{get:function(){return c},set:function(r){c=e.utils.getColor(r),n.color(c),t.color(c)}}}),e.utils.inheritOptions(y,t),e.utils.initOptions(y),y},e.models.pie=function(){"use strict";var t={top:0,right:0,bottom:0,left:0},n=500,r=500,i=function(e){return e.x},o=function(e){return e.y},s=Math.floor(1e4*Math.random()),a=null,l=e.utils.defaultColor(),c=d3.format(",.2f"),u=!0,d=!1,h="key",p=.02,f=!1,m=!1,g=!1,v=!0,y=0,b=!1,_=!1,w=!1,A=!1,x=0,k=.5,S=250,E=(d3.transition().duration(S).ease(d3.easeLinear),d3.transition().duration(70).ease(d3.easeLinear),d3.transition().duration(50).ease(d3.easeLinear),[]),T=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),D=[],C=[],M=e.utils.renderWatch(T);function I(O){return M.reset(),O.each(function(I){var O=n-t.left-t.right,L=r-t.top-t.bottom,N=Math.min(O,L)/2,P=[],R=[];if(a=d3.select(this),0===E.length)for(var j=N-N/10,F=k*N,B=0;B<I.length;B++)P.push(j),R.push(F);else v?(P=E.map(function(e){return(e.outer-e.outer/10)*N}),R=E.map(function(e){return(e.inner-e.inner/10)*N}),k=d3.min(E.map(function(e){return e.inner-e.inner/10}))):(P=E.map(function(e){return e.outer*N}),R=E.map(function(e){return e.inner*N}),k=d3.min(E.map(function(e){return e.inner})));e.utils.initSVG(a);var Y=a.selectAll(".nv-wrap.nv-pie").data([I]),V=Y.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+s);Y=Y.merge(V);var H=V.append("g");Y.select("g");var U=H.append("g").attr("class","nv-pie");U=a.selectAll(".nv-wrap.nv-pie").selectAll(".nv-pie");var z=H.append("g").attr("class","nv-pieLabels");z=a.selectAll(".nv-wrap.nv-pie").selectAll(".nv-pieLabels"),Y.attr("transform","translate("+t.left+","+t.top+")"),U.attr("transform","translate("+O/2+","+L/2+")"),z.attr("transform","translate("+O/2+","+L/2+")"),a.on("click",function(e,t,n){T.call("chartClick",this,{data:t,index:t.index,pos:e,id:s})}),D=[],C=[];for(B=0;B<I.length;B++){var q=d3.arc().outerRadius(P[B]),W=d3.arc().outerRadius(P[B]+5);!1!==_&&(q.startAngle(_),W.startAngle(_)),!1!==A&&(q.endAngle(A),W.endAngle(A)),m&&(q.innerRadius(R[B]),W.innerRadius(R[B])),q.cornerRadius&&x&&(q.cornerRadius(x),W.cornerRadius(x)),D.push(q),C.push(W)}var $=d3.pie().sort(null).value(function(e){return e.disabled?0:o(e)});$.padAngle&&w&&$.padAngle(w),m&&g&&(U.select(".nv-pie-title").empty()&&U.append("text").attr("class","nv-pie-title"),Y.select(".nv-pie-title").style("text-anchor","middle").text(function(e){return g}).style("font-size",Math.min(O,L)*k*2/(g.length+2)+"px").attr("dy","0.35em").attr("transform",function(e,t){return"translate(0, "+y+")"}));var G=a.select(".nv-wrap.nv-pie").selectAll(".nv-pie").selectAll(".nv-slice").data($(I)),K=a.select(".nv-wrap.nv-pie").selectAll(".nv-pieLabels").selectAll(".nv-label").data($(I.filter(function(e){return!e.disabled}))),Z=G.enter().append("g");if(Z.attr("class","nv-slice"),G.exit().remove(),K.exit().remove(),Z.on("mouseover",function(e,t,n){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0),v&&d3.select(this).select("path").transition().duration(70).attr("d",C[t.index]),T.call("elementMouseover",this,{data:t.data,index:t.index,color:d3.select(this).style("fill"),percent:(t.endAngle-t.startAngle)/(2*Math.PI)})}),Z.on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1),v&&d3.select(this).select("path").transition().duration(50).attr("d",D[t.index]),T.call("elementMouseout",this,{data:t.data,index:t.index})}),Z.on("mousemove",function(e,t,n){T.call("elementMousemove",this,{data:t.data,index:t.index})}),Z.on("click",function(e,t,n){T.call("elementClick",this,{data:t.data,index:t.index,color:d3.select(this).style("fill"),event:e,element:this})}),Z.on("dblclick",function(e,t,n){T.call("elementDblClick",this,{data:t.data,index:t.index,color:d3.select(this).style("fill")})}),(Z=G.merge(Z)).attr("fill",function(e,t){return l(e.data,t)}),Z.attr("stroke",function(e,t){return l(e.data,t)}),Z.append("path").each(function(e){this._current=e}),Z.select("path").transition().duration(S).attr("d",function(e,t){return D[t](e)}).attrTween("d",function(e,t){e.endAngle=isNaN(e.endAngle)?0:e.endAngle,e.startAngle=isNaN(e.startAngle)?0:e.startAngle,m||(e.innerRadius=0);var n=d3.interpolate(this._current,e);return this._current=n(0),function(e){return D[t](n(e))}}),u){var X=[];for(B=0;B<I.length;B++)X.push(D[B]),d?m&&(X[B]=d3.arc().outerRadius(D[B].outerRadius()),!1!==_&&X[B].startAngle(_),!1!==A&&X[B].endAngle(A)):m||X[B].innerRadius(0);K.enter().append("g").classed("nv-label",!0);var Q=a.select(".nv-wrap.nv-pie").selectAll(".nv-pieLabels").selectAll(".nv-label").each(function(e,t){var n=d3.select(this);n.attr("transform",function(e,t){if(!b)return e.outerRadius=N+10,e.innerRadius=N+15,"translate("+X[t].centroid(e)+")";e.outerRadius=P[t]+10,e.innerRadius=P[t]+15;var n=(e.startAngle+e.endAngle)/2*(180/Math.PI);return(e.startAngle+e.endAngle)/2<Math.PI?n-=90:n+=90,"translate("+X[t].centroid(e)+") rotate("+n+")"}),n.append("rect"),a.select(".nv-wrap.nv-pie").selectAll(".nv-pieLabels").select("rect").style("stroke","#fff").style("fill","#fff").attr("rx",3).attr("ry",3),n.append("text"),a.select(".nv-wrap.nv-pie").selectAll(".nv-pieLabels").select("text").style("text-anchor",b?(e.startAngle+e.endAngle)/2<Math.PI?"start":"end":"middle").style("fill","#000")}),J={},ee=function(e){return 140*Math.floor(e[0]/140)+","+14*Math.floor(e[1]/14)},te=function(e){return(e.endAngle-e.startAngle)/(2*Math.PI)};Q.watchTransition(M,"pie labels").attr("transform",function(e,t){if(b){e.outerRadius=P[t]+10,e.innerRadius=P[t]+15;var n=(e.startAngle+e.endAngle)/2*(180/Math.PI);return(e.startAngle+e.endAngle)/2<Math.PI?n-=90:n+=90,"translate("+X[t].centroid(e)+") rotate("+n+")"}e.outerRadius=N+10,e.innerRadius=N+15;var r=X[t].centroid(e),i=te(e);return e.value&&i>=p&&(J[ee(r)]&&(r[1]-=14),J[ee(r)]=!0),"translate("+r+")"}),Q.select(".nv-label text").style("text-anchor",function(e,t){return b?(e.startAngle+e.endAngle)/2<Math.PI?"start":"end":"middle"}).text(function(e,t){var n=te(e),r="";if(!e.value||n<p)return"";if("function"==typeof h)r=h(e,t,{key:String(i(e.data)).replace(/\.0+([A-Za-z]*)$/,"$1").replace(/\.([1-9]+)0+([A-Za-z]*)$/,".$1$2"),value:String(o(e.data)).replace(/\.0+([A-Za-z]*)$/,"$1").replace(/\.([1-9]+)0+([A-Za-z]*)$/,".$1$2"),percent:c(n)});else switch(h){case"key":r=c(i(e.data)).replace(/\.0+([A-Za-z]*)$/,"$1").replace(/\.([1-9]+)0+([A-Za-z]*)$/,".$1$2");break;case"value":r=c(o(e.data)).replace(/\.0+([A-Za-z]*)$/,"$1").replace(/\.([1-9]+)0+([A-Za-z]*)$/,".$1$2");break;case"percent":r=d3.format(".0%")(n).replace(/\.0+([A-Za-z]*)$/,"$1").replace(/\.([1-9]+)0+([A-Za-z]*)$/,".$1$2")}return r}),f&&Q.each(function(t,n){if(this.getBBox){var r=this.getBBox(),i=X[n].centroid(t),o={x:i[0]+r.x,y:i[1]+r.y},s={x:o.x+r.width,y:o.y},a={x:o.x,y:o.y+r.height},l={x:o.x+r.width,y:o.y+r.height};t.visible=e.utils.pointIsInArc(o,t,q)&&e.utils.pointIsInArc(s,t,q)&&e.utils.pointIsInArc(a,t,q)&&e.utils.pointIsInArc(l,t,q)}}).style("display",function(e){return e.visible?null:"none"}),Q.merge(K)}}),M.renderEnd("pie immediate"),I}return I.dispatch=T,I.options=e.utils.optionsFunc.bind(I),I._options=Object.create({},{arcsRadius:{get:function(){return E},set:function(e){E=e}},width:{get:function(){return n},set:function(e){n=e}},height:{get:function(){return r},set:function(e){r=e}},showLabels:{get:function(){return u},set:function(e){u=e}},title:{get:function(){return g},set:function(e){g=e}},titleOffset:{get:function(){return y},set:function(e){y=e}},labelThreshold:{get:function(){return p},set:function(e){p=e}},hideOverlapLabels:{get:function(){return f},set:function(e){f=e}},valueFormat:{get:function(){return c},set:function(e){c=e}},x:{get:function(){return i},set:function(e){i=e}},id:{get:function(){return s},set:function(e){s=e}},endAngle:{get:function(){return A},set:function(e){A=e}},startAngle:{get:function(){return _},set:function(e){_=e}},padAngle:{get:function(){return w},set:function(e){w=e}},cornerRadius:{get:function(){return x},set:function(e){x=e}},donutRatio:{get:function(){return k},set:function(e){k=e}},labelsOutside:{get:function(){return d},set:function(e){d=e}},labelSunbeamLayout:{get:function(){return b},set:function(e){b=e}},donut:{get:function(){return m},set:function(e){m=e}},growOnHover:{get:function(){return v},set:function(e){v=e}},pieLabelsOutside:{get:function(){return d},set:function(t){d=t,e.deprecated("pieLabelsOutside","use labelsOutside instead")}},donutLabelsOutside:{get:function(){return d},set:function(t){d=t,e.deprecated("donutLabelsOutside","use labelsOutside instead")}},labelFormat:{get:function(){return c},set:function(t){c=t,e.deprecated("labelFormat","use valueFormat instead")}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},duration:{get:function(){return S},set:function(e){S=e,M.reset(S),d3.transition().duration(S).ease(d3.easeLinear)}},y:{get:function(){return o},set:function(e){o="function"==typeof e?e:function(){return e}}},color:{get:function(){return l},set:function(t){l=e.utils.getColor(t)}},labelType:{get:function(){return h},set:function(e){h=e||"key"}}}),e.utils.initOptions(I),I},e.models.pieChart=function(){"use strict";var t=e.models.pie(),n=e.models.legend(),r=e.models.tooltip(),i={top:30,right:20,bottom:20,left:20},o=null,s=null,a=null,l=!1,c=!0,u="top",d=e.utils.defaultColor(),h=e.utils.state(),p=null,f=null,m=250,g=d3.dispatch("stateChange","changeState","renderEnd");r.duration(0).headerEnabled(!1).valueFormatter(function(e,n){return t.valueFormat()(e,n)});var v=e.utils.renderWatch(g);function y(r){return v.reset(),v.models(t),r.each(function(r){var l,d=d3.select(this);e.utils.initSVG(d);var f,m,v=e.utils.availableWidth(s,d,i),b=e.utils.availableHeight(a,d,i);if(y.update=function(){d.transition().call(y)},y.container=this,h.setter((f=r,function(e){void 0!==e.active&&f.forEach(function(t,n){t.disabled=!e.active[n]})}),y.update).getter((m=r,function(){return{active:m.map(function(e){return!e.disabled})}})).update(),h.disabled=r.map(function(e){return!!e.disabled}),!p)for(l in p={},h)h[l]instanceof Array?p[l]=h[l].slice(0):p[l]=h[l];if(!r||!r.length)return e.utils.noData(y,d),y;d.selectAll(".nv-noData").remove();var _=d.selectAll("g.nv-wrap.nv-pieChart").data([r]).enter().append("g").attr("class","nvd3 nv-wrap nv-pieChart");_.append("g");var w=_.select("g"),A=w.append("g").attr("class","nv-pieWrap");A=d.selectAll("g.nv-wrap.nv-pieChart").select(".nv-pieWrap");var x=w.append("g").attr("class","nv-legendWrap");if(x=d.selectAll("g.nv-wrap.nv-pieChart").select(".nv-legendWrap"),c)if("top"===u)n.width(v).key(t.x()),x.datum(r).call(n),o||n.height()===i.top||(i.top=n.height(),b=e.utils.availableHeight(a,d,i)),x.attr("transform","translate(0,"+-i.top+")");else if("right"===u){var k=e.models.legend().width();v/2<k&&(k=v/2),n.height(b).key(t.x()),n.width(k),v-=n.width(),x.datum(r).call(n).attr("transform","translate("+v+",0)")}else"bottom"===u&&(n.width(v).key(t.x()),x.datum(r).call(n),i.bottom=n.height(),b=e.utils.availableHeight(a,d,i),x.attr("transform","translate(0,"+b+")"));else x.selectAll("*").remove();_.attr("transform","translate("+i.left+","+i.top+")"),t.width(v).height(b);var S=d.select(".nv-pieChart").selectAll(".nv-pieWrap").data([r]);(S=S.merge(A)).transition().call(t),n.dispatch.on("stateChange",function(e){for(var t in e)h[t]=e[t];g.call("stateChange",this,e),y.update()}),g.on("changeState",function(e){void 0!==e.disabled&&(r.forEach(function(t,n){t.disabled=e.disabled[n]}),h.disabled=e.disabled),y.update()})}),v.renderEnd("pieChart immediate"),y}return t.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:y.x()(e.data),value:y.y()(e.data),color:e.color,percent:e.percent},l||(delete e.percent,delete e.series.percent),r.data(e).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(e){r.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(e){r()}),y.legend=n,y.dispatch=g,y.pie=t,y.tooltip=r,y.options=e.utils.optionsFunc.bind(y),y._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},noData:{get:function(){return f},set:function(e){f=e}},showTooltipPercent:{get:function(){return l},set:function(e){l=e}},showLegend:{get:function(){return c},set:function(e){c=e}},legendPosition:{get:function(){return u},set:function(e){u=e}},defaultState:{get:function(){return p},set:function(e){p=e}},color:{get:function(){return d},set:function(e){d=e,n.color(d),t.color(d)}},duration:{get:function(){return m},set:function(e){m=e,v.reset(m),t.duration(m)}},margin:{get:function(){return i},set:function(e){void 0!==e.top&&(i.top=e.top,o=e.top),i.right=void 0!==e.right?e.right:i.right,i.bottom=void 0!==e.bottom?e.bottom:i.bottom,i.left=void 0!==e.left?e.left:i.left}}}),e.utils.inheritOptions(y,t),e.utils.initOptions(y),y},e.models.sankey=function(){"use strict";var t={},n=24,r=8,i=[1,1],o=[],s=[],a=!0,l=function(e){o.forEach(function(e){e.sourceLinks=[],e.targetLinks=[]}),s.forEach(function(e){var t=e.source,n=e.target;"number"==typeof t&&(t=e.source=o[e.source]),"number"==typeof n&&(n=e.target=o[e.target]),t.sourceLinks.push(e),n.targetLinks.push(e)}),o.forEach(function(e){e.value=Math.max(d3.sum(e.sourceLinks,h),d3.sum(e.targetLinks,h))}),function(){for(var e,t,r,s=o,l=0;s.length&&l<o.length;)r=[],s.forEach(function(e){e.x=l,e.dx=n,e.sourceLinks.forEach(function(e){0>r.indexOf(e.target)&&r.push(e.target)})}),s=r,++l;a&&(e=l,o.forEach(function(t){t.sourceLinks.length||(t.x=e-1)})),t=(i[0]-n)/(l-1),o.forEach(function(e){e.x*=t})}(),function(e){var t,n=d3.group().key(function(e){return e.x}).sortKeys(d3.ascending).entries(o).map(function(e){return e.values});t=d3.min(n,function(e){return(i[1]-(e.length-1)*r)/d3.sum(e,h)}),n.forEach(function(e){e.forEach(function(e,n){e.y=n,e.dy=e.value*t})}),s.forEach(function(e){e.dy=e.value*t}),p(),d();for(var a=1;e>0;--e)c(a*=.99),p(),d(),l(a),p(),d();function l(e){function t(e){return(e.source.y+e.sy+e.dy/2)*e.value}n.forEach(function(n,r){n.forEach(function(n){if(n.targetLinks.length){var r=d3.sum(n.targetLinks,t)/d3.sum(n.targetLinks,h);n.y+=(r-u(n))*e}})})}function c(e){function t(e){return(e.target.y+e.ty+e.dy/2)*e.value}n.slice().reverse().forEach(function(n){n.forEach(function(n){if(n.sourceLinks.length){var r=d3.sum(n.sourceLinks,t)/d3.sum(n.sourceLinks,h);n.y+=(r-u(n))*e}})})}function p(){n.forEach(function(e){var t,n,o,s=0,a=e.length;for(e.sort(f),o=0;o<a;++o)(n=s-(t=e[o]).y)>0&&(t.y+=n),s=t.y+t.dy+r;if((n=s-r-i[1])>0)for(s=t.y-=n,o=a-2;o>=0;--o)(n=(t=e[o]).y+t.dy+r-s)>0&&(t.y-=n),s=t.y})}function f(e,t){return e.y-t.y}}(e)},c=function(){var e=.5;function t(t){var n=t.source.x+t.source.dx,r=t.target.x,i=d3.interpolateNumber(n,r),o=i(e),s=i(1-e),a=t.source.y+t.sy+t.dy/2,l=t.target.y+t.ty+t.dy/2;return"M"+n+","+a+"C"+o+","+a+" "+s+","+l+" "+r+","+l}return t.curvature=function(n){return arguments.length?(e=+n,t):e},t},u=function(e){return e.y+e.dy/2};function d(){function e(e,t){return e.source.y-t.source.y}function t(e,t){return e.target.y-t.target.y}o.forEach(function(n){n.sourceLinks.sort(t),n.targetLinks.sort(e)}),o.forEach(function(e){var t=0,n=0;e.sourceLinks.forEach(function(e){e.sy=t,t+=e.dy}),e.targetLinks.forEach(function(e){e.ty=n,n+=e.dy})})}function h(e){return e.value}return t.options=e.utils.optionsFunc.bind(t),t._options=Object.create({},{nodeWidth:{get:function(){return n},set:function(e){n=+e}},nodePadding:{get:function(){return r},set:function(e){r=e}},nodes:{get:function(){return o},set:function(e){o=e}},links:{get:function(){return s},set:function(e){s=e}},size:{get:function(){return i},set:function(e){i=e}},sinksRight:{get:function(){return a},set:function(e){a=e}},layout:{get:function(){l(32)},set:function(e){l(e)}},relayout:{get:function(){d()},set:function(e){}},center:{get:function(){return u()},set:function(e){"function"==typeof e&&(u=e)}},link:{get:function(){return c()},set:function(e){return"function"==typeof e&&(c=e),c()}}}),e.utils.initOptions(t),t},e.models.sankeyChart=function(){"use strict";var t={top:5,right:0,bottom:5,left:0},n=e.models.sankey(),r=600,i=400,o=36,s=40,a="units",l=void 0,c=d3.format(",.0f"),u=function(e){return c(e)+" "+a},d=d3.scaleOrdinal(d3.schemeAccent),h=function(e){return e.source.name+" \u2192 "+e.target.name+"\n"+u(e.value)},p=function(e){return e.color=d(e.name.replace(/ .*/,""))},f=function(e){return d3.rgb(e.color).darker(2)},m=function(e){return e.name+"\n"+u(e.value)},g=function(e,t){e.append("text").attr("x",0).attr("y",0).attr("class","nvd3-sankey-chart-error").attr("text-anchor","middle").text(t)};function v(e){return e.each(function(t){var a={nodes:[{node:1,name:"Test 1"},{node:2,name:"Test 2"},{node:3,name:"Test 3"},{node:4,name:"Test 4"},{node:5,name:"Test 5"},{node:6,name:"Test 6"}],links:[{source:0,target:1,value:2295},{source:0,target:5,value:1199},{source:1,target:2,value:1119},{source:1,target:5,value:1176},{source:2,target:3,value:487},{source:2,target:5,value:632},{source:3,target:4,value:301},{source:3,target:5,value:186}]},c=!1,u=!1;if(("object"==typeof t.nodes&&t.nodes.length)>=0&&("object"==typeof t.links&&t.links.length)>=0&&(c=!0),t.nodes&&t.nodes.length>0&&t.links&&t.links.length>0&&(u=!0),!c)return console.error("NVD3 Sankey chart error:","invalid data format for",t),console.info("Valid data format is: ",a,JSON.stringify(a)),g(e,"Error loading chart, data is invalid"),!1;if(!u)return g(e,"No data available"),!1;var d=e.append("svg").attr("width",r).attr("height",i).append("g").attr("class","nvd3 nv-wrap nv-sankeyChart");n.nodeWidth(o).nodePadding(s).size([r,i]);var v=n.link();n.nodes(t.nodes).links(t.links).layout(32).center(l);var y=d.append("g").selectAll(".link").data(t.links).enter().append("path").attr("class","link").attr("d",v).style("stroke-width",function(e){return Math.max(1,e.dy)}).sort(function(e,t){return t.dy-e.dy});y.append("title").text(h);var b=d.append("g").selectAll(".node").data(t.nodes).enter().append("g").attr("class","node").attr("transform",function(e){return"translate("+e.x+","+e.y+")"}).call(d3.drag().subject(function(e){return e}).on("start",function(){this.parentNode.appendChild(this)}).on("drag",function(e,t){d3.select(this).attr("transform","translate("+t.x+","+(t.y=Math.max(0,Math.min(i-t.dy,e.y)))+")"),n.relayout(),y.attr("d",v)}));b.append("rect").attr("height",function(e){return e.dy}).attr("width",n.nodeWidth()).style("fill",p).style("stroke",f).append("title").text(m),b.append("text").attr("x",-6).attr("y",function(e){return e.dy/2}).attr("dy",".35em").attr("text-anchor","end").attr("transform",null).text(function(e){return e.name}).filter(function(e){return e.x<r/2}).attr("x",6+n.nodeWidth()).attr("text-anchor","start")}),v}return v.options=e.utils.optionsFunc.bind(v),v._options=Object.create({},{units:{get:function(){return a},set:function(e){a=e}},width:{get:function(){return r},set:function(e){r=e}},height:{get:function(){return i},set:function(e){i=e}},format:{get:function(){return u},set:function(e){u=e}},linkTitle:{get:function(){return h},set:function(e){h=e}},nodeWidth:{get:function(){return o},set:function(e){o=e}},nodePadding:{get:function(){return s},set:function(e){s=e}},center:{get:function(){return l},set:function(e){l=e}},margin:{get:function(){return t},set:function(e){t.top=void 0!==e.top?e.top:t.top,t.right=void 0!==e.right?e.right:t.right,t.bottom=void 0!==e.bottom?e.bottom:t.bottom,t.left=void 0!==e.left?e.left:t.left}},nodeStyle:{get:function(){return{}},set:function(e){p=void 0!==e.fillColor?e.fillColor:p,f=void 0!==e.strokeColor?e.strokeColor:f,m=void 0!==e.title?e.title:m}}}),e.utils.initOptions(v),v},e.models.scatter=function(){"use strict";var t,n,r,i,o,s,a,l,c={top:0,right:0,bottom:0,left:0},u=null,d=null,h=e.utils.defaultColor(),p=null,f=Math.floor(1e5*Math.random()),m=null,g=d3.scaleLinear(),v=d3.scaleLinear(),y=d3.scaleLinear(),b=function(e){return e.x},_=function(e){return e.y},w=function(e){return e.size||1},A=function(e){return e.shape||"circle"},x=[],k=[],S=[],E=!0,T=function(e){return!e.notActive},D=!1,C=.1,M=!1,I=!0,O=!1,L=function(){return 25},N=null,P=null,R=null,j=null,F=null,B=null,Y=!1,V=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),H=!0,U=250,z=300,q=!1,W=!1,$=e.utils.renderWatch(V,U),G=[16,256],K={};function Z(e){delete K[e[0].series+":"+e[1]]}function X(e){var t,n,r,i,o,s=K[n=(t=e)[0].series+":"+t[1]]=K[n]||{},a=!1;for(r=1;r<arguments.length;r+=2)i=arguments[r],o=arguments[r+1](e[0],e[1]),s[i]===o&&s.hasOwnProperty(i)||(s[i]=o,a=!0);return a}function Q(U){return $.reset(),U.each(function(U){m=d3.select(this);var K=e.utils.availableWidth(u,m,c),J=e.utils.availableHeight(d,m,c);e.utils.initSVG(m),U.forEach(function(e,t){e.values.forEach(function(e){e.series=t,e.seriesIndex=t})});var ee="function"==typeof Q.yScale().base,te=N&&P&&F?[]:d3.merge(U.map(function(e){return e.values.map(function(e,t){return{x:b(e,t),y:_(e,t),size:w(e,t)}})}));if(g.domain(N||d3.extent(te.map(function(e){return e.x}).concat(x))),D&&U[0]?g.range(R||[(K*C+K)/(2*U[0].values.length),K-K*(1+C)/(2*U[0].values.length)]):g.range(R||[0,K]),ee){var ne=d3.min(te.map(function(e){if(0!==e.y)return e.y}));v.clamp(!0).domain(P||d3.extent(te.map(function(e){return 0!==e.y?e.y:.1*ne}).concat(k))).range(j||[J,0])}else v.domain(P||d3.extent(te.map(function(e){return e.y}).concat(k))).range(j||[J,0]);y.domain(F||d3.extent(te.map(function(e){return e.size}).concat(S))).range(B||G),Y=g.domain()[0]===g.domain()[1]||v.domain()[0]===v.domain()[1],g.domain()[0]===g.domain()[1]&&(g.domain()[0]?g.domain([g.domain()[0]-.01*g.domain()[0],g.domain()[1]+.01*g.domain()[1]]):g.domain([-1,1])),v.domain()[0]===v.domain()[1]&&(v.domain()[0]?v.domain([v.domain()[0]-.01*v.domain()[0],v.domain()[1]+.01*v.domain()[1]]):v.domain([-1,1])),isNaN(g.domain()[0])&&g.domain([-1,1]),isNaN(v.domain()[0])&&v.domain([-1,1]),t=t||g,n=n||v,r=r||y;var re=g(1)!==t(1)||v(1)!==n(1)||y(1)!==r(1);a=a||d;var ie=(s=s||u)!==u||a!==d,oe=(i=i||[])[0]!==g.domain()[0]||i[1]!==g.domain()[1];i=g.domain(),o=o||[],oe=oe||o[0]!==v.domain()[0]||o[1]!==v.domain()[1],o=v.domain();var se=m.selectAll("g.nv-wrap.nv-scatter").data([U]),ae=se.enter().append("g").attr("class","nvd3 nv-wrap nv-scatter nv-chart-"+f);ae.classed("nv-single-point",Y);var le=ae.append("defs"),ce=ae.append("g");ce.append("g").attr("class","nv-groups");var ue=ce.append("g").attr("class","nv-point-paths"),de=ae.append("g").attr("class","nv-point-clips");function he(){if(W=!1,!E)return!1;if(m.selectAll(".nv-point.hover").classed("hover",!1),ue.selectAll("path").remove(),!0===H){var t=d3.merge(U.map(function(t,n){return t.values.map(function(t,r){var i=b(t,r),o=_(t,r);return[e.utils.NaNtoZero(g(i))+1e-4*Math.random(),e.utils.NaNtoZero(v(o))+1e-4*Math.random(),n,r,t]}).filter(function(e,t){return T(e[4],t)})}));if(0==t.length)return!1;t.length<3&&(t.push([g.range()[0]-20,v.range()[0]-20,null,null]),t.push([g.range()[1]+20,v.range()[1]+20,null,null]),t.push([g.range()[0]-20,v.range()[0]+20,null,null]),t.push([g.range()[1]+20,v.range()[1]-20,null,null]));var n=[[-10,-10],[-10,d+10],[u+10,d+10],[u+10,-10]];t=t.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]});for(var r=0;r<t.length-1;)1e-4>Math.abs(t[r][0]-t[r+1][0])&&1e-4>Math.abs(t[r][1]-t[r+1][1])?t.splice(r+1,1):r++;var i=Array.from(d3.Delaunay.from(t,e=>e[0],e=>e[1]).voronoi([n[0][0],n[0][1],n[2][0],n[2][1]]).cellPolygons()).map(function(e,n){return{data:e,series:t[n][2],point:t[n][3]}}),o=ue.selectAll("path").data(i).enter().append("svg:path").attr("d",function(e){return e&&e.data&&0!==e.data.length?"M"+e.data.join(",")+"Z":"M 0 0"}).attr("id",function(e,t){return"nv-path-"+t}).attr("clip-path",function(e,t){return"url(#nv-clip-"+f+"-"+t+")"});O&&o.style("fill",d3.rgb(230,230,230)).style("fill-opacity",.4).style("stroke-opacity",1).style("stroke",d3.rgb(200,200,200)),I&&(de.selectAll("*").remove(),de.selectAll("clipPath").data(t).enter().append("svg:clipPath").attr("id",function(e,t){return"nv-clip-"+f+"-"+t}).append("svg:circle").attr("cx",function(e){return e[0]}).attr("cy",function(e){return e[1]}).attr("r",L));var s=function(e,t,n,r){if(W)return 0;setCoordinates(t.pageX,t.pageY);var i=U[n.seriesIndex||n.series];if(void 0!==i){var o=i.values[n.point];o.color=h(i,n.seriesIndex),o.x=b(o),o.y=_(o);var s=m.node().getBoundingClientRect(),a=window.pageYOffset||document.documentElement.scrollTop,l=window.pageXOffset||document.documentElement.scrollLeft,u={left:g(b(o,n.point))+s.left+l+c.left+10,top:v(_(o,n.point))+s.top+a+c.top+10};V.call(r,this,{point:o,series:i,pos:u,relativePos:[g(b(o,n.point))+c.left,v(_(o,n.point))+c.top],seriesIndex:n.seriesIndex||n.series,pointIndex:n.point,event:d3.event,element:e})}};o.on("click",function(e,t){s(this,e,t,"elementClick")}).on("dblclick",function(e,t){s(this,e,t,"elementDblClick")}).on("mouseover",function(e,t){s(this,e,t,"elementMouseover")}).on("mouseout",function(e,t,n){s(this,e,t,"elementMouseout")})}else m.selectAll(".nv-group").selectAll(".nv-point").on("click",function(e,t){if(W||!U[e[0].series])return 0;var n=U[e[0].series],r=n.values[t];V.call("elementClick",this,{point:r,series:n,pos:[g(b(r,t))+c.left,v(_(r,t))+c.top],relativePos:[g(b(r,t))+c.left,v(_(r,t))+c.top],seriesIndex:e[0].series,pointIndex:t,event:d3.event,element:this})}).on("dblclick",function(e,t){if(W||!U[e[0].series])return 0;var n=U[e[0].series],r=n.values[t];V.call("elementDblClick",this,{point:r,series:n,pos:[g(b(r,t))+c.left,v(_(r,t))+c.top],relativePos:[g(b(r,t))+c.left,v(_(r,t))+c.top],seriesIndex:e[0].series,pointIndex:t})}).on("mouseover",function(e,t){if(W||!U[e[0].series])return 0;var n=U[e[0].series],r=n.values[t];V.call("elementMouseover",this,{point:r,series:n,pos:[g(b(r,t))+c.left,v(_(r,t))+c.top],relativePos:[g(b(r,t))+c.left,v(_(r,t))+c.top],seriesIndex:e[0].series,pointIndex:t,color:h(e[0],t)})}).on("mouseout",function(e,t){if(W||!U[e[0].series])return 0;var n=U[e[0].series],r=n.values[t];V.call("elementMouseout",this,{point:r,series:n,pos:[g(b(r,t))+c.left,v(_(r,t))+c.top],relativePos:[g(b(r,t))+c.left,v(_(r,t))+c.top],seriesIndex:e[0].series,pointIndex:t,color:h(e[0],t)})})}se.attr("transform","translate("+c.left+","+c.top+")"),le.append("clipPath").attr("id","nv-edge-clip-"+f).append("rect").attr("transform","translate( -10, -10)").attr("width",K+20).attr("height",J>0?J+20:0),M&&ce.attr("clip-path",M?"url(#nv-edge-clip-"+f+")":""),W=!0;var pe=m.select("g.nv-groups").selectAll("g.nv-group").data(function(e){return e},function(e){return e.key}),fe=pe.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).attr("class",function(e,t){return(e.classed||"")+" nv-group nv-series-"+t}).classed("nv-noninteractive",!E).classed("hover",function(e){return e.hover});pe.exit().remove();var me=pe.merge(fe);me.watchTransition($,"scatter: groups").style("fill",function(e,t){return h(e,t)}).style("stroke",function(e,t){return e.pointBorderColor||p||h(e,t)}).style("stroke-opacity",1).style("fill-opacity",.5);var ge=me.selectAll("path.nv-point").data(function(e){return e.values.map(function(e,t){return[e,t]}).filter(function(e,t){return T(e[0],t)})}),ve=ge.enter().append("path").attr("class",function(e){return"nv-point nv-point-"+e[1]}).style("fill",function(e){return e.color}).style("stroke",function(e){return e.color}).attr("transform",function(r){return"translate("+e.utils.NaNtoZero(t(b(r[0],r[1])))+","+e.utils.NaNtoZero(n(_(r[0],r[1])))+")"}).attr("d",e.utils.symbol().type(function(e){return A(e[0])}).size(function(e){return y(w(e[0],e[1]))}));ge.exit().each(Z).remove();var ye=ge.merge(ve);if(me.exit().selectAll("path.nv-point").watchTransition($,"scatter exit").attr("transform",function(t){return"translate("+e.utils.NaNtoZero(g(b(t[0],t[1])))+","+e.utils.NaNtoZero(v(_(t[0],t[1])))+")"}).remove(),ye.filter(function(e){return X(e,"x",b,"y",_)||re||ie||oe}).watchTransition($,"scatter points").attr("transform",function(t){return"translate("+e.utils.NaNtoZero(g(b(t[0],t[1])))+","+e.utils.NaNtoZero(v(_(t[0],t[1])))+")"}),ye.filter(function(e){return X(e,"shape",A,"size",w)||re||ie||oe}).watchTransition($,"scatter points").attr("d",e.utils.symbol().type(function(e){return A(e[0])}).size(function(e){return y(w(e[0],e[1]))})),q){var be=me.selectAll(".nv-label").data(function(e){return e.values.map(function(e,t){return[e,t]}).filter(function(e,t){return T(e[0],t)})}),_e=be.enter().append("text").style("fill",function(e,t){return e.color}).style("stroke-opacity",0).style("fill-opacity",1).attr("transform",function(r){return"translate("+(e.utils.NaNtoZero(t(b(r[0],r[1])))+Math.sqrt(y(w(r[0],r[1]))/Math.PI)+2)+","+e.utils.NaNtoZero(n(_(r[0],r[1])))+")"}).text(function(e,t){return e[0].label});be.exit().remove();var we=be.merge(_e);me.exit().selectAll("path.nv-label").watchTransition($,"scatter exit").attr("transform",function(t){return"translate("+(e.utils.NaNtoZero(g(b(t[0],t[1])))+Math.sqrt(y(w(t[0],t[1]))/Math.PI)+2)+","+e.utils.NaNtoZero(v(_(t[0],t[1])))+")"}).remove(),we.each(function(e){d3.select(this).classed("nv-label",!0).classed("nv-label-"+e[1],!1).classed("hover",!1)}),we.watchTransition($,"scatter labels").text(function(e,t){return e[0].label}).attr("transform",function(t){return"translate("+(e.utils.NaNtoZero(g(b(t[0],t[1])))+Math.sqrt(y(w(t[0],t[1]))/Math.PI)+2)+","+e.utils.NaNtoZero(v(_(t[0],t[1])))+")"})}z?(clearTimeout(l),l=setTimeout(he,z)):he(),t=g.copy(),n=v.copy(),r=y.copy(),s=u,a=d}),$.renderEnd("scatter immediate"),Q}return Q.dispatch=V,Q.options=e.utils.optionsFunc.bind(Q),Q._calls=new function(){this.clearHighlights=function(){return e.dom.write(function(){m&&m.selectAll(".nv-point.hover").classed("hover",!1)}),null},this.highlightPoint=function(t,n,r){e.dom.write(function(){m&&m.select(".nv-groups").selectAll(".nv-series-"+t).selectAll(".nv-point-"+n).classed("hover",r)})}},V.on("elementMouseover.point",function(e){E&&Q._calls.highlightPoint(e.seriesIndex,e.pointIndex,!0)}),V.on("elementMouseout.point",function(e){E&&Q._calls.highlightPoint(e.seriesIndex,e.pointIndex,!1)}),Q._options=Object.create({},{width:{get:function(){return u},set:function(e){u=e}},height:{get:function(){return d},set:function(e){d=e}},xScale:{get:function(){return g},set:function(e){g=e}},yScale:{get:function(){return v},set:function(e){v=e}},pointScale:{get:function(){return y},set:function(e){y=e}},xDomain:{get:function(){return N},set:function(e){N=e}},yDomain:{get:function(){return P},set:function(e){P=e}},pointDomain:{get:function(){return F},set:function(e){F=e}},xRange:{get:function(){return R},set:function(e){R=e}},yRange:{get:function(){return j},set:function(e){j=e}},pointRange:{get:function(){return B},set:function(e){B=e}},forceX:{get:function(){return x},set:function(e){x=e}},forceY:{get:function(){return k},set:function(e){k=e}},forcePoint:{get:function(){return S},set:function(e){S=e}},interactive:{get:function(){return E},set:function(e){E=e}},pointActive:{get:function(){return T},set:function(e){T=e}},padDataOuter:{get:function(){return C},set:function(e){C=e}},padData:{get:function(){return D},set:function(e){D=e}},clipEdge:{get:function(){return M},set:function(e){M=e}},clipVoronoi:{get:function(){return I},set:function(e){I=e}},clipRadius:{get:function(){return L},set:function(e){L=e}},showVoronoi:{get:function(){return O},set:function(e){O=e}},id:{get:function(){return f},set:function(e){f=e}},interactiveUpdateDelay:{get:function(){return z},set:function(e){z=e}},showLabels:{get:function(){return q},set:function(e){q=e}},pointBorderColor:{get:function(){return p},set:function(e){p=e}},x:{get:function(){return b},set:function(e){b="function"==typeof e?e:function(){return e}}},y:{get:function(){return _},set:function(e){_="function"==typeof e?e:function(){return e}}},pointSize:{get:function(){return w},set:function(e){w="function"==typeof e?e:function(){return e}}},pointShape:{get:function(){return A},set:function(e){A="function"==typeof e?e:function(){return e}}},margin:{get:function(){return c},set:function(e){c.top=void 0!==e.top?e.top:c.top,c.right=void 0!==e.right?e.right:c.right,c.bottom=void 0!==e.bottom?e.bottom:c.bottom,c.left=void 0!==e.left?e.left:c.left}},duration:{get:function(){return U},set:function(e){U=e,$.reset(U)}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t)}},useVoronoi:{get:function(){return H},set:function(e){!1===(H=e)&&(I=!1)}}}),e.utils.initOptions(Q),Q},e.models.scatterChart=function(){"use strict";var t=e.models.scatter(),n=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),r=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),i=e.models.legend(),o=e.models.distribution(),s=e.models.distribution(),a=e.models.tooltip(),l={top:30,right:20,bottom:50,left:75},c=null,u=null,d=null,h=null,p=e.utils.defaultColor(),f=t.xScale(),m=t.yScale(),g=!1,v=!1,y=!0,b=!0,_=!0,w="top",A=!1,x=e.utils.state(),k=null,S=d3.dispatch("stateChange","changeState","renderEnd"),E=null,T=250,D=(d3.transition().duration(T).ease(d3.easeLinear),!1);t.xScale(f).yScale(m),n.tickPadding(10),r.tickPadding(10),o.axis("x"),s.axis("y"),a.headerFormatter(function(e,t){return n.tickFormat()(e,t)}).valueFormatter(function(e,t){return r.tickFormat()(e,t)});var C=e.utils.renderWatch(S,T);function M(w){return C.reset(),C.models(t),b&&C.models(n),_&&C.models(r),g&&C.models(o),v&&C.models(s),w.each(function(w){var E,I=this;h=d3.select(this),e.utils.initSVG(h);var O,L,N=e.utils.availableWidth(u,h,l),P=e.utils.availableHeight(d,h,l);if(M.update=function(){0===T?h.call(M):h.transition().duration(T).call(M)},M.container=this,x.setter((O=w,function(e){void 0!==e.active&&O.forEach(function(t,n){t.disabled=!e.active[n]})}),M.update).getter((L=w,function(){return{active:L.map(function(e){return!e.disabled})}})).update(),x.disabled=w.map(function(e){return!!e.disabled}),!k)for(E in k={},x)x[E]instanceof Array?k[E]=x[E].slice(0):k[E]=x[E];if(!w||!w.length||!w.filter(function(e){return e.values.length}).length)return e.utils.noData(M,h),C.renderEnd("scatter immediate"),M;h.selectAll(".nv-noData").remove(),f=t.xScale(),m=t.yScale(),w.forEach(function(e,t){e.seriesIndex=t});var R=h.selectAll("g.nv-wrap.nv-scatterChart").data([w]).enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+t.id()),j=R.append("g");j.select("g"),j.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none");var F=j.append("g").attr("class","nv-x nv-axis");F=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-x");var B=j.append("g").attr("class","nv-y nv-axis");B=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-y");var Y=j.append("g").attr("class","nv-scatterWrap");Y=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-scatterWrap");var V=j.append("g").attr("class","nv-regressionLinesWrap");V=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-regressionLinesWrap");var H=j.append("g").attr("class","nv-distWrap");H=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-distWrap");var U=j.append("g").attr("class","nv-legendWrap");A&&B.attr("transform","translate("+N+",0)"),U=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-legendWrap"),y?(i.width(N),U.datum(w).call(i),c||i.height()===l.top||(l.top=i.height(),P=e.utils.availableHeight(d,h,l)),U.attr("transform","translate(0,"+-l.top+")")):U.selectAll("*").remove(),R.attr("transform","translate("+l.left+","+l.top+")"),t.width(N).height(P).color(w.map(function(e,t){return e.color=e.color||p(e,t),e.color}).filter(function(e,t){return!w[t].disabled})).showLabels(D),Y.datum(w.filter(function(e){return!e.disabled})).call(t),V.attr("clip-path","url(#nv-edge-clip-"+t.id()+")"),V.selectAll(".nv-regLines").data(function(e){return e}).enter().append("g").attr("class","nv-regLines").selectAll(".nv-regLine").data(function(e){return[e]}).enter().append("line").attr("class","nv-regLine").style("stroke-opacity",0).filter(function(e){return e.intercept&&e.slope}).watchTransition(C,"scatterPlusLineChart: regline").attr("x1",f.range()[0]).attr("x2",f.range()[1]).attr("y1",function(e,t){return m(f.domain()[0]*e.slope+e.intercept)}).attr("y2",function(e,t){return m(f.domain()[1]*e.slope+e.intercept)}).style("stroke",function(e,t,n){return p(e,n)}).style("stroke-opacity",function(e,t){return e.disabled||void 0===e.slope||void 0===e.intercept?0:1}),b&&(n.scale(f)._ticks(e.utils.calcTicksX(N/100,w)),n.tickSizeInner(-P),F.attr("transform","translate(0,"+m.range()[0]+")").call(n)),_&&(r.scale(m)._ticks(e.utils.calcTicksY(P/36,w)),r.tickSizeInner(-N),B.call(r)),o.getData(t.x()).scale(f).width(N).color(w.map(function(e,t){return e.color||p(e,t)}).filter(function(e,t){return!w[t].disabled})),H.append("g").attr("class","nv-distributionX").attr("transform","translate(0,"+m.range()[0]+")").datum(w.filter(function(e){return!e.disabled})).call(o).style("opacity",function(){return g?"1":"1e-6"}).watchTransition(C,"scatterPlusLineChart").style("opacity",function(){return g?"1":"1e-6"}),s.getData(t.y()).scale(m).width(P).color(w.map(function(e,t){return e.color||p(e,t)}).filter(function(e,t){return!w[t].disabled})),H.append("g").attr("class","nv-distributionY").attr("transform","translate("+(A?N:-s.size())+",0)").datum(w.filter(function(e){return!e.disabled})).call(s).style("opacity",function(){return v?"1":"1e-6"}).watchTransition(C,"scatterPlusLineChart").style("opacity",function(){return v?"1":"1e-6"}),i.dispatch.on("stateChange",function(e){for(var t in e)x[t]=e[t];S.call("stateChange",I,e),M.update()}),S.on("changeState",function(e){void 0!==e.disabled&&(w.forEach(function(t,n){t.disabled=e.disabled[n]}),x.disabled=e.disabled),M.update()}),t.dispatch.on("elementMouseout.tooltip",function(e){a.hidden(!0),h.select(".nv-chart-"+t.id()+" .nv-series-"+e.seriesIndex+" .nv-distx-"+e.pointIndex).attr("y1",0),h.select(".nv-chart-"+t.id()+" .nv-series-"+e.seriesIndex+" .nv-disty-"+e.pointIndex).attr("x2",s.size())}),t.dispatch.on("elementMouseover.tooltip",function(e){h.select(".nv-series-"+e.seriesIndex+" .nv-distx-"+e.pointIndex).attr("y1",e.relativePos[1]-P),h.select(".nv-series-"+e.seriesIndex+" .nv-disty-"+e.pointIndex).attr("x2",e.relativePos[0]+o.size()),a.data(e).hidden(!1)}),f.copy(),m.copy()}),C.renderEnd("scatter with line immediate"),M}return M.dispatch=S,M.scatter=t,M.legend=i,M.xAxis=n,M.yAxis=r,M.distX=o,M.distY=s,M.tooltip=a,M.options=e.utils.optionsFunc.bind(M),M._options=Object.create({},{width:{get:function(){return u},set:function(e){u=e}},height:{get:function(){return d},set:function(e){d=e}},container:{get:function(){return h},set:function(e){h=e}},showDistX:{get:function(){return g},set:function(e){g=e}},showDistY:{get:function(){return v},set:function(e){v=e}},legendPosition:{get:function(){return w},set:function(e){w=e}},showLegend:{get:function(){return y},set:function(e){y=e}},showXAxis:{get:function(){return b},set:function(e){b=e}},showYAxis:{get:function(){return _},set:function(e){_=e}},defaultState:{get:function(){return k},set:function(e){k=e}},noData:{get:function(){return E},set:function(e){E=e}},duration:{get:function(){return T},set:function(e){T=e,d3.transition().duration(T).ease(d3.easeLinear)}},showLabels:{get:function(){return D},set:function(e){D=e}},margin:{get:function(){return l},set:function(e){void 0!==e.top&&(l.top=e.top,c=e.top),l.right=void 0!==e.right?e.right:l.right,l.bottom=void 0!==e.bottom?e.bottom:l.bottom,l.left=void 0!==e.left?e.left:l.left}},rightAlignYAxis:{get:function(){return A},set:function(e){A=e}},color:{get:function(){return p},set:function(t){p=e.utils.getColor(t),i.color(p),o.color(p),s.color(p)}}}),e.utils.inheritOptions(M,t),e.utils.initOptions(M),M},e.models.sparkline=function(){"use strict";var t,n,r,i,o={top:2,right:0,bottom:2,left:0},s=400,a=32,l=null,c=!0,u=d3.scaleLinear(),d=d3.scaleLinear(),h=function(e){return e.x},p=function(e){return e.y},f=e.utils.getColor(["#000"]),m=!0,g=!0,v=d3.dispatch("renderEnd"),y=e.utils.renderWatch(v);function b(c){return y.reset(),c.each(function(c){var v=s-o.left-o.right,y=a-o.top-o.bottom;l=d3.select(this),e.utils.initSVG(l),u.domain(t||d3.extent(c,h)).range(r||[0,v]),d.domain(n||d3.extent(c,p)).range(i||[y,0]);var b=l.selectAll("g.nv-wrap.nv-sparkline").data([c]),_=b.enter().append("g").attr("class","nvd3 nv-wrap nv-sparkline");_.append("g"),b.select("g"),_.attr("transform","translate("+o.left+","+o.top+")");var w=_.selectAll("path").data(function(e){return[e]});w.exit().remove();var A=w.enter().append("path");A.style("stroke",function(e,t){return e.color||f(e,t)}).attr("d",d3.line().x(function(e,t){return u(h(e,t))}).y(function(e,t){return d(p(e,t))})),A.merge(w);var x=_.selectAll("circle.nv-point").data(function(e){var t=e.map(function(e,t){return p(e,t)});function n(t){if(-1==t)return null;var n=e[t];return n.pointIndex=t,n}var r=n(t.lastIndexOf(d.domain()[1])),i=n(t.indexOf(d.domain()[0])),o=n(t.length-1);return[m?i:null,m?r:null,g?o:null].filter(function(e){return null!=e})});x.exit().remove();var k=x.enter().append("circle");k.attr("cx",function(e,t){return u(h(e,e.pointIndex))}).attr("cy",function(e,t){return d(p(e,e.pointIndex))}).attr("r",2).attr("class",function(e,t){return h(e,e.pointIndex)==u.domain()[1]?"nv-point nv-currentValue":p(e,e.pointIndex)==d.domain()[0]?"nv-point nv-minValue":"nv-point nv-maxValue"}),k.merge(x)}),y.renderEnd("sparkline immediate"),b}return b.options=e.utils.optionsFunc.bind(b),b._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},xDomain:{get:function(){return t},set:function(e){t=e}},yDomain:{get:function(){return n},set:function(e){n=e}},xRange:{get:function(){return r},set:function(e){r=e}},yRange:{get:function(){return i},set:function(e){i=e}},xScale:{get:function(){return u},set:function(e){u=e}},yScale:{get:function(){return d},set:function(e){d=e}},animate:{get:function(){return c},set:function(e){c=e}},showMinMaxPoints:{get:function(){return m},set:function(e){m=e}},showCurrentPoint:{get:function(){return g},set:function(e){g=e}},x:{get:function(){return h},set:function(e){h="function"==typeof e?e:function(){return e}}},y:{get:function(){return p},set:function(e){p="function"==typeof e?e:function(){return e}}},margin:{get:function(){return o},set:function(e){o.top=void 0!==e.top?e.top:o.top,o.right=void 0!==e.right?e.right:o.right,o.bottom=void 0!==e.bottom?e.bottom:o.bottom,o.left=void 0!==e.left?e.left:o.left}},color:{get:function(){return f},set:function(t){f=e.utils.getColor(t)}}}),b.dispatch=v,e.utils.initOptions(b),b},e.models.sparklinePlus=function(){"use strict";var t,n,r=e.models.sparkline(),i={top:15,right:100,bottom:10,left:50},o=null,s=null,a=[],l=!1,c=d3.format(",r"),u=d3.format(",.2f"),d=!0,h=!0,p=!1,f=null,m=d3.dispatch("renderEnd");d3.transition().duration(250).ease(d3.easeLinear);var g=e.utils.renderWatch(m);function v(f){return g.reset(),g.models(r),f.each(function(f){var m=d3.select(this);e.utils.initSVG(m);var g=e.utils.availableWidth(o,m,i),y=e.utils.availableHeight(s,m,i);if(v.update=function(){m.call(v)},v.container=this,!f||!f.length)return e.utils.noData(v,m),v;m.selectAll(".nv-noData").remove();var b=r.y()(f[f.length-1],f.length-1);t=r.xScale(),n=r.yScale();var _=m.selectAll("g.nv-wrap.nv-sparklineplus").data([f]),w=_.enter().append("g").attr("class","nvd3 nv-wrap nv-sparklineplus"),A=w.append("g");_.select("g");var x=A.append("g").attr("class","nv-sparklineWrap"),k=A.append("g").attr("class","nv-valueWrap"),S=A.append("g").attr("class","nv-hoverArea");if(w.attr("transform","translate("+i.left+","+i.top+")"),w.merge(_),r.width(g).height(y),x.call(r).merge(x),d){var E=k.selectAll(".nv-currentValue").data([b]),T=E.enter().append("text").attr("class","nv-currentValue").attr("dx",p?-8:8).attr("dy",".9em").style("text-anchor",p?"end":"start");T.attr("x",g+(p?i.right:0)).attr("y",h?function(e){return n(e)}:0).style("fill",r.color()(f[f.length-1],f.length-1)).text(u(b)),T.merge(E)}var D=S.append("rect").on("mousemove",function(e){if(!l){var n=d3.pointer(e)[0]-i.left;a=[function(e,t){for(var n=Math.abs(r.x()(e[0],0)-t),i=0,o=0;o<e.length;o++)Math.abs(r.x()(e[o],o)-t)<n&&(n=Math.abs(r.x()(e[o],o)-t),i=o);return i}(f,Math.round(t.invert(n)))],C()}}).on("click",function(){l=!l}).on("mouseout",function(){a=[],C()});function C(){if(!l){var e=S.selectAll(".nv-hoverValue").data(a);e.exit().transition().duration(250).style("stroke-opacity",0).style("fill-opacity",0).remove();var n=e.enter().append("g").attr("class","nv-hoverValue").style("stroke-opacity",0).style("fill-opacity",0);if(e.attr("transform",function(e){return"translate("+t(r.x()(f[e],e))+",0)"}).transition().duration(250).style("stroke-opacity",a.length?1:0).style("fill-opacity",a.length?1:0),!a.length)return void e.merge(e);n.append("line").attr("x1",0).attr("y1",-i.top).attr("x2",0).attr("y2",y),n.append("text").attr("class","nv-xValue").attr("x",-6).attr("y",-i.top).attr("text-anchor","end").attr("dy",".9em"),S.select(".nv-hoverValue .nv-xValue").text(c(r.x()(f[a[0]],a[0]))),n.append("text").attr("class","nv-yValue").attr("x",6).attr("y",-i.top).attr("text-anchor","start").attr("dy",".9em"),S.select(".nv-hoverValue .nv-yValue").text(u(r.y()(f[a[0]],a[0])))}}D.attr("transform",function(e){return"translate("+-i.left+","+-i.top+")"}).attr("width",g+i.left+i.right).attr("height",y+i.top),D.merge(S)}),g.renderEnd("sparklinePlus immediate"),v}return v.dispatch=m,v.sparkline=r,v.options=e.utils.optionsFunc.bind(v),v._options=Object.create({},{width:{get:function(){return o},set:function(e){o=e}},height:{get:function(){return s},set:function(e){s=e}},xTickFormat:{get:function(){return c},set:function(e){c=e}},yTickFormat:{get:function(){return u},set:function(e){u=e}},showLastValue:{get:function(){return d},set:function(e){d=e}},alignValue:{get:function(){return h},set:function(e){h=e}},rightAlignValue:{get:function(){return p},set:function(e){p=e}},noData:{get:function(){return f},set:function(e){f=e}},margin:{get:function(){return i},set:function(e){i.top=void 0!==e.top?e.top:i.top,i.right=void 0!==e.right?e.right:i.right,i.bottom=void 0!==e.bottom?e.bottom:i.bottom,i.left=void 0!==e.left?e.left:i.left}}}),e.utils.inheritOptions(v,r),e.utils.initOptions(v),v},e.models.stackedArea=function(){"use strict";var t,n,r={top:0,right:0,bottom:0,left:0},i=960,o=500,s=e.utils.defaultColor(),a=Math.floor(1e5*Math.random()),l=null,c=function(e){return e.x},u=function(e){return e.y},d=function(e,t){return!isNaN(u(e,t))&&null!==u(e,t)},h="stack",p=d3.stackOffsetNone,f=d3.stackOrderNone,m=getInterpolationType(m),g=!1,v=e.models.scatter(),y=250,b=function(e,t,n){e.display={y:n,y0:t}},_=function(e){return n(e.display.y+e.display.y0)},w=d3.dispatch("areaClick","areaMouseover","areaMouseout","renderEnd","elementClick","elementMouseover","elementMouseout");v.pointSize(2.2).pointDomain([2.2,2.2]);var A=e.utils.renderWatch(w,y);function x(h){return A.reset(),A.models(v),h.each(function(h){var y=i-r.left-r.right,b=o-r.top-r.bottom;l=d3.select(this),e.utils.initSVG(l),t=v.xScale(),n=v.yScale();var k=h;h.forEach(function(e,t){e.seriesIndex=t,e.values=e.values.map(function(e,n){return e.index=n,e.seriesIndex=t,e})});var S=h.filter(function(e){return!e.disabled}),E=[];S[0].values.forEach(function(e){E.push({x:e[0]})}),S.forEach(function(e,t,n){e.display={y:t,y0:n},e.values.forEach(function(t){E[t.index][e.key]=t[1]})});var T=S.map(e=>e.key);h=d3.stack().keys(T).order(f).offset(p).value(function(e,t){return e[t]})(E);var D=[];h.forEach(function(e,t){e.seriesIndex=t,e.x=Array.from(Array(e.length).keys());var n=[];e.map(function(e,r){return n.push({x:r,y:e[1]-e[0],y0:e[0],series:r,seriesIndex:t,index:r,display:{y:e[1]-e[0],y0:e[0]}}),n}),D.push({values:n,key:T[t],seriesIndex:t})}),h=D;var C=l.selectAll("g.nv-wrap.nv-stackedarea").data([h]).enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea");C.attr("transform","translate("+r.left+","+r.top+")");var M=C.append("defs"),I=C.append("g"),O=I.select("g"),L=I.append("g").attr("class","nv-areaWrap");L=l.selectAll("g.nv-wrap.nv-stackedarea").select(".nv-areaWrap");var N=I.append("g").attr("class","nv-scatterWrap");N=l.selectAll("g.nv-wrap.nv-stackedarea").select(".nv-scatterWrap"),0==v.forceY().length&&v.forceY().push(0),v.width(y).height(b).x(c).y(function(e){if(void 0!==e.display)return e.display.y+e.display.y0}).color(D.map(function(e,t){return e.color=e.color||s(e,e.seriesIndex),e.color})),N.datum(D).call(v),M.append("clipPath").attr("id","nv-edge-clip-"+a).append("rect").attr("width",y).attr("height",b),g&&I.attr("clip-path",g?"url(#nv-edge-clip-"+a+")":"");var P=d3.area().defined(d).x(function(e,n){return t(c(e,n))}).y0(function(e){return n(e.display.y0)}).y1(_).curve(getInterpolationType(m)),R=d3.area().defined(d).x(function(e,n){return t(c(e,n))}).y0(function(e){return n(e.display.y0)}).y1(function(e){return n(e.display.y0)}),j=L.selectAll("path.nv-area").data(function(e){return e});j.exit().remove();var F=j.enter().append("path").attr("class",function(e,t){return"nv-area nv-area-"+t}).attr("d",function(e,t){return R(e.values,e.seriesIndex)}).on("mouseover",function(e,t,n){d3.select(this).classed("hover",!0),w.call("areaMouseover",this,{point:t,series:t.key,pos:[e.pageX,e.pageY],seriesIndex:t.seriesIndex})}).on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1),w.call("areaMouseout",this,{point:t,series:t.key,pos:[e.pageX,e.pageY],seriesIndex:t.seriesIndex})}).on("click",function(e,t,n){d3.select(this).classed("hover",!1),w.call("areaClick",this,{point:t,series:t.key,pos:[e.pageX,e.pageY],seriesIndex:t.seriesIndex})});(F=F.merge(j)).style("fill",function(e,t){return e.color||s(e,e.seriesIndex)}).style("stroke",function(e,t,n){return t.color||s(t,t.seriesIndex)}),F.watchTransition(A,"stackedArea path").attr("d",function(e,t){return P(e.values,e.seriesIndex)}),v.dispatch.on("elementMouseover.area",function(e){O.select(".nv-chart-"+a+" .nv-area-"+e.seriesIndex).classed("hover",!0)}),v.dispatch.on("elementMouseout.area",function(e){O.select(".nv-chart-"+a+" .nv-area-"+e.seriesIndex).classed("hover",!1)}),x.d3_stackedOffset_stackPercent=function(e){var t,n,r,i=e.length,o=e[0].length,s=[];for(n=0;n<o;++n){for(t=0,r=0;t<k.length;t++)r+=u(k[t].values[n]);if(r)for(t=0;t<i;t++)e[t][n][1]/=r;else for(t=0;t<i;t++)e[t][n][1]=0}for(n=0;n<o;++n)s[n]=0;return s}}),A.renderEnd("stackedArea immediate"),x}return x.dispatch=w,x.scatter=v,v.dispatch.on("elementClick",function(){w.apply("elementClick",this,arguments)}),v.dispatch.on("elementMouseover",function(){w.apply("elementMouseover",this,arguments)}),v.dispatch.on("elementMouseout",function(){w.apply("elementMouseout",this,arguments)}),x.interpolate=function(e){return arguments.length?(m=e,x):m},x.duration=function(e){return arguments.length?(y=e,A.reset(y),v.duration(y),x):y},x.dispatch=w,x.scatter=v,x.options=e.utils.optionsFunc.bind(x),x._options=Object.create({},{width:{get:function(){return i},set:function(e){i=e}},height:{get:function(){return o},set:function(e){o=e}},defined:{get:function(){return d},set:function(e){d=e}},clipEdge:{get:function(){return g},set:function(e){g=e}},offset:{get:function(){return p},set:function(e){p=e}},order:{get:function(){return f},set:function(e){f=e}},interpolate:{get:function(){return m},set:function(e){m=e}},x:{get:function(){return c},set:function(e){c="function"==typeof e?e:function(){return e}}},y:{get:function(){return u},set:function(e){u="function"==typeof e?e:function(){return e}}},areaY1:{get:function(){return _},set:function(e){_="function"==typeof e?e:function(){return e}}},transformData:{get:function(){return b},set:function(e){b="function"==typeof e?e:function(){return e}}},margin:{get:function(){return r},set:function(e){r.top=void 0!==e.top?e.top:r.top,r.right=void 0!==e.right?e.right:r.right,r.bottom=void 0!==e.bottom?e.bottom:r.bottom,r.left=void 0!==e.left?e.left:r.left}},color:{get:function(){return s},set:function(t){s=e.utils.getColor(t)}},style:{get:function(){return h},set:function(e){switch(h=e){case"stack":x.offset(d3.stackOffsetNone),x.order(d3.stackOrderNone);break;case"stream":x.offset(d3.stackOffsetWiggle),x.order(d3.stackOrderInsideOut);break;case"stream_center":x.offset(d3.stackOffsetSilhouette),x.order(d3.stackOrderNone);break;case"expand":x.offset(d3.stackOffsetExpand),x.order(d3.stackOrderNone);break;case"stack_percent":x.offset(x.d3_stackedOffset_stackPercent),x.order(d3.stackOrderNone)}}},duration:{get:function(){return y},set:function(e){y=e,A.reset(y),v.duration(y)}}}),e.utils.inheritOptions(x,v),e.utils.initOptions(x),x},e.models.stackedAreaChart=function(){"use strict";var t,n,r=e.models.stackedArea(),i=e.models.axis(d3.axisBottom(d3.scaleLinear()),"bottom"),o=e.models.axis(d3.axisLeft(d3.scaleLinear()),"left"),s=e.models.legend(),a=e.models.legend(),l=e.interactiveGuideline(),c=e.models.tooltip(),u=e.models.focus(e.models.stackedArea()),d={top:10,right:25,bottom:50,left:60},h=null,p=null,f=null,m=e.utils.defaultColor(),g=!0,v=!0,y="top",b=!0,_=!0,w=!1,A=!1,x=!1,k=!0,S="TOTAL",E=e.utils.state(),T=null,D=null,C=d3.dispatch("stateChange","changeState","renderEnd"),M=250,I=["Stacked","Stream","Expanded"],O={},L=250;d3.transition().duration(L).ease(d3.easeLinear);E.style=r.style(),i.tickPadding(7),c.headerFormatter(function(e,t){return i.tickFormat()(e,t)}).valueFormatter(function(e,t){return o.tickFormat()(e,t)}),l.tooltip.headerFormatter(function(e,t){return i.tickFormat()(e,t)}).valueFormatter(function(e,t){return null==e?"N/A":o.tickFormat()(e,t)});var N=null,P=null;a.updateState(!1);var R=e.utils.renderWatch(C),j=(r.style(),d3.format(".0%"));function F(c){return R.reset(),R.models(r),b&&R.models(i),_&&R.models(o),c.each(function(c){var D,R,B=d3.select(this);e.utils.initSVG(B);var Y,V,H=e.utils.availableWidth(p,B,d),U=e.utils.availableHeight(f,B,d)-(A?u.height():0);if(F.update=function(){B.transition().duration(L).call(F)},F.container=this,E.setter((Y=c,function(e){void 0!==e.style&&e.style,void 0!==e.active&&Y.forEach(function(t,n){t.disabled=!e.active[n]})}),F.update).getter((V=c,function(){return{active:V.map(function(e){return!e.disabled}),style:r.style()}})).update(),E.disabled=c.map(function(e){return!!e.disabled}),!T)for(D in T={},E)E[D]instanceof Array?T[D]=E[D].slice(0):T[D]=E[D];if(!c||!c.length||!c.filter(function(e){return e.values.length}).length)return e.utils.noData(F,B),F;B.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var z=B.selectAll("g.nv-wrap.nv-stackedAreaChart").data([c]).enter().append("g").attr("class","nvd3 nv-wrap nv-stackedAreaChart"),q=z.append("g");z.select("g");var W=q.append("g").attr("class","nv-legendWrap");W=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-legendWrap");var $=q.append("g").attr("class","nv-controlsWrap");$=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-controlsWrap");var G=q.append("g").attr("class","nv-focus"),K=G.append("g").attr("class","nv-background").append("rect"),Z=G.append("g").attr("class","nv-x nv-axis");Z=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-x");var X=G.append("g").attr("class","nv-y nv-axis");X=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-y");var Q=G.append("g").attr("class","nv-stackedWrap");Q=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-stackedWrap");var J=G.append("g").attr("class","nv-interactive");J=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-interactive");var ee=q.append("g").attr("class","nv-focusWrap");if(ee=B.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-focusWrap"),v){var te=g&&"top"===y?H-M:H;if(s.width(te),W.datum(c).call(s),"bottom"===y){var ne=i.height();d.bottom=Math.max(s.height()+ne,d.bottom);var re=(U=e.utils.availableHeight(f,B,d)-(A?u.height():0))+ne;W.attr("transform","translate(0,"+re+")")}else"top"===y&&(h||d.top==s.height()||(d.top=s.height(),U=e.utils.availableHeight(f,B,d)-(A?u.height():0)),W.attr("transform","translate("+(H-te)+","+-d.top+")"))}else W.selectAll("*").remove();if(z.attr("transform","translate("+d.left+","+d.top+")"),g){var ie=[{key:O.stacked||"Stacked",metaKey:"Stacked",disabled:"stack"!=r.style(),style:"stack"},{key:O.stream||"Stream",metaKey:"Stream",disabled:"stream"!=r.style(),style:"stream"},{key:O.stream_center||"Stream Center",metaKey:"Stream_Center",disabled:"stream_center"!=r.style(),style:"stream_center"},{key:O.expanded||"Expanded",metaKey:"Expanded",disabled:"expand"!=r.style(),style:"expand"},{key:O.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:"stack_percent"!=r.style(),style:"stack_percent"}];M=I.length/3*260,ie=ie.filter(function(e){return-1!==I.indexOf(e.metaKey)}),a.width(M).color(["#444","#444","#444"]),$.datum(ie).call(a);var oe=Math.max(a.height(),v&&"top"===y?s.height():0);d.top!=oe&&(d.top=oe,U=e.utils.availableHeight(f,B,d)-(A?u.height():0)),$.attr("transform","translate(0,"+-d.top+")")}else $.selectAll("*").remove();function se(){b&&Z.attr("transform","translate(0,"+U+")").transition().duration(L).call(i)}function ae(){if(_){if("expand"===r.style()||"stack_percent"===r.style()){var e=o.tickFormat();N&&e===j||(N=e),o.tickFormat(j)}else N&&(o.tickFormat(N),N=null);X.transition().call(o)}}if(w&&X.attr("transform","translate("+H+",0)"),x&&(l.width(H).height(U).margin({left:d.left,top:d.top}).svgContainer(B).xScale(t),J.call(l)),K.attr("width",H).attr("height",U),r.width(H).height(U).color(c.map(function(e,t){return e.color||m(e,t)}).filter(function(e,t){return!c[t].disabled})),Q.datum(c.filter(function(e){return!e.disabled})),b&&(i.scale(t)._ticks(e.utils.calcTicksX(H/100,c)),i.tickSizeInner(-U)),_&&(R=r.offset()===d3.stackOffsetWiggle?0:e.utils.calcTicksY(U/36,c),o.scale(n)._ticks(R),o.tickSizeInner(-H)),A){u.width(H),ee.attr("transform","translate(0,"+(U+d.bottom+u.margin().top)+")").datum(c.filter(function(e){return!e.disabled})).call(u);var le=null==d3.event||null===d3.event.selection?u.xDomain():u.brush.selection();null!==le&&ce(le)}else Q.transition().call(r),se(),ae();function ce(e){Q.datum(c.filter(function(e){return!e.disabled}).map(function(t,n){return{key:t.key,area:t.area,classed:t.classed,values:t.values.filter(function(t,n){return r.x()(t,n)>=e[0]&&r.x()(t,n)<=e[1]}),disableTooltip:t.disableTooltip}})),Q.transition().duration(L).call(r),se(),ae()}r.dispatch.on("areaClick.toggle",function(e){1===c.filter(function(e){return!e.disabled}).length?c.forEach(function(e){e.disabled=!1}):c.forEach(function(t,n){t.disabled=n!=e.seriesIndex}),E.disabled=c.map(function(e){return!!e.disabled}),C.call("stateChange",this,E),F.update()}),s.dispatch.on("stateChange",function(e){for(var t in e)E[t]=e[t];C.call("stateChange",this,e),F.update()}),a.dispatch.on("legendClick",function(e,t,n){t.disabled&&(ie=ie.map(function(e){return e.disabled=!0,e}),t.disabled=!1,r.style(t.style),E.style=r.style(),C.call("stateChange",this,E),F.update())}),l.dispatch.on("elementMousemove",function(t){r.clearHighlights();var n,i,o,s=[],a=0,u=!0,d=!1;if(c.filter(function(e,t){return e.seriesIndex=t,!e.disabled}).forEach(function(l,h){i=e.interactiveBisect(l.values,t.pointXValue,function(e,t){return e[0]});var p=l.values[i],f=F.y()({x:p[0],y:p[1]},i);if(null!=f&&f>0&&(r.highlightPoint(h,i,!0),d=!0),h!==c.length-1||d||r.highlightPoint(h,i,!0),void 0!==p){void 0===n&&(n=p),void 0===o&&(o=F.xScale()(F.x()({x:p[0],y:p[1]},i)));var g="expand"==r.style()?p[1]:F.y()({x:p[0],y:p[1]},i);s.push({key:l.key,value:+g,color:m(l,l.seriesIndex),point:p}),k&&"expand"!=r.style()&&null!=g&&(a+=+g,u=!1)}}),s.reverse(),s.length>2){var h=F.yScale().invert(t.mouseY),p=null;s.forEach(function(e,t){h=Math.abs(h);var n=Math.abs(e.point[0]),r=Math.abs(e.point[1]);h>=n&&h<=r+n&&(p=t)}),null!=p&&(s[p].highlight=!0)}k&&"expand"!=r.style()&&s.length>=2&&!u&&s.push({key:S,value:a,total:!0});var f=F.x()({x:n[0],y:n[1]},i),g=l.tooltip.valueFormatter();"expand"===r.style()||"stack_percent"===r.style()?(P||(P=g),g=d3.format(".1%")):P&&(g=P,P=null),l.tooltip.valueFormatter(g).data({value:f,series:s})(),l.renderGuideLine(o)}),l.dispatch.on("elementMouseout",function(e){r.clearHighlights()}),u.dispatch.on("onBrush",function(e){ce(e)}),C.on("changeState",function(e){void 0!==e.disabled&&c.length===e.disabled.length&&(c.forEach(function(t,n){t.disabled=e.disabled[n]}),E.disabled=e.disabled),void 0!==e.style&&(r.style(e.style),e.style),F.update()})}),R.renderEnd("stacked Area chart immediate"),F}return r.dispatch.on("elementMouseover.tooltip",function(e){e.point.x=r.x()(e.point),e.point.y=r.y()(e.point),c.data(e).hidden(!1)}),r.dispatch.on("elementMouseout.tooltip",function(e){c.hidden(!0)}),F.dispatch=C,F.stacked=r,F.legend=s,F.controls=a,F.xAxis=i,F.x2Axis=u.xAxis,F.yAxis=o,F.y2Axis=u.yAxis,F.interactiveLayer=l,F.tooltip=c,F.focus=u,F.dispatch=C,F.options=e.utils.optionsFunc.bind(F),F._options=Object.create({},{width:{get:function(){return p},set:function(e){p=e}},height:{get:function(){return f},set:function(e){f=e}},showLegend:{get:function(){return v},set:function(e){v=e}},legendPosition:{get:function(){return y},set:function(e){y=e}},showXAxis:{get:function(){return b},set:function(e){b=e}},showYAxis:{get:function(){return _},set:function(e){_=e}},defaultState:{get:function(){return T},set:function(e){T=e}},noData:{get:function(){return D},set:function(e){D=e}},showControls:{get:function(){return g},set:function(e){g=e}},controlLabels:{get:function(){return O},set:function(e){O=e}},controlOptions:{get:function(){return I},set:function(e){I=e}},showTotalInTooltip:{get:function(){return k},set:function(e){k=e}},totalLabel:{get:function(){return S},set:function(e){S=e}},focusEnable:{get:function(){return A},set:function(e){A=e}},focusHeight:{get:function(){return u.height()},set:function(e){u.height(e)}},brushExtent:{get:function(){return u.brushExtent()},set:function(e){u.brushExtent(e)}},margin:{get:function(){return d},set:function(e){void 0!==e.top&&(d.top=e.top,h=e.top),d.right=void 0!==e.right?e.right:d.right,d.bottom=void 0!==e.bottom?e.bottom:d.bottom,d.left=void 0!==e.left?e.left:d.left}},focusMargin:{get:function(){return u.margin},set:function(e){u.margin.top=void 0!==e.top?e.top:u.margin.top,u.margin.right=void 0!==e.right?e.right:u.margin.right,u.margin.bottom=void 0!==e.bottom?e.bottom:u.margin.bottom,u.margin.left=void 0!==e.left?e.left:u.margin.left}},duration:{get:function(){return L},set:function(e){L=e,R.reset(L),d3.transition().duration(L).ease(d3.easeLinear),r.duration(L),i.duration(L),o.duration(L)}},color:{get:function(){return m},set:function(t){m=e.utils.getColor(t),s.color(m),r.color(m),u.color(m)}},x:{get:function(){return r.x()},set:function(e){r.x(e),u.x(e)}},y:{get:function(){return r.y()},set:function(e){r.y(e),u.y(e)}},rightAlignYAxis:{get:function(){return w},set:function(e){w=e}},useInteractiveGuideline:{get:function(){return x},set:function(e){x=!!e,F.interactive(!e),F.useVoronoi(!e),r.scatter.interactive(!e)}}}),e.utils.inheritOptions(F,r),e.utils.initOptions(F),F},e.models.stackedAreaWithFocusChart=function(){return e.models.stackedAreaChart().margin({bottom:30}).focusEnable(!0)},e.models.sunburst=function(){"use strict";var t,n,r,i,o={top:0,right:0,bottom:0,left:0},s=600,a=600,l="count",c={count:function(e){return 1},value:function(e){return e.value||e.size},size:function(e){return e.value||e.size}},u=Math.floor(1e4*Math.random()),d=null,h=e.utils.defaultColor(),p=!1,f=function(e){return"count"===l?e.name+" #"+e.value:e.name+" "+(e.value||e.size)},m=.02,g=function(e,t){return e.name>t.name},v=function(e,t){return void 0!==e.parent?e.name+"-"+e.parent.name+"-"+t:e.name},y=!0,b=500,_=(d3.transition().duration(b).ease(d3.easeLinear),d3.dispatch("chartClick","elementClick","elementDblClick","elementMousemove","elementMouseover","elementMouseout","renderEnd")),w=d3.scaleLinear().range([0,2*Math.PI]),A=d3.scaleSqrt(),x=d3.partition(),k={},S=d3.arc().startAngle(function(e){return Math.max(0,Math.min(2*Math.PI,w(e.x)))}).endAngle(function(e){return Math.max(0,Math.min(2*Math.PI,w(e.x+e.dx)))}).innerRadius(function(e){return Math.max(0,A(e.y))}).outerRadius(function(e){return Math.max(0,A(e.y+e.dy))});function E(e){return T(e)>90?180:0}function T(e){return(Math.max(0,Math.min(2*Math.PI,w(e.x)))+Math.max(0,Math.min(2*Math.PI,w(e.x+e.dx))))/2*(180/Math.PI)-90}function D(e){var t=Math.max(0,Math.min(2*Math.PI,w(e.x)));return Math.max(0,Math.min(2*Math.PI,w(e.x+e.dx)))-t>m}function C(e,n){var r=d3.interpolate(w.domain(),[t.x,t.x+t.dx]),o=d3.interpolate(A.domain(),[t.y,1]),s=d3.interpolate(A.range(),[t.y?20:0,i]);return 0===n?function(){return S(e)}:function(t){return w.domain(r(t)),A.domain(o(t)).range(s(t)),S(e)}}function M(e){var t=d3.interpolate({x:e.x0,dx:e.x1-e.x0,y:e.y0,dy:e.y1-e.y0},e);return function(n){var r=t(n);return e.x0=r.x,e.x1=r.x+r.dx,e.y0=r.y,e.y1=r.y+r.dy,S(r)}}function I(e){var n=d.selectAll("text"),r=d.selectAll("path");n.transition().attr("opacity",0),t=e,r.transition().duration(b).attrTween("d",C).each("end",function(t){t.x>=e.x&&t.x<e.x+e.dx&&t.depth>=e.depth&&d3.select(this.parentNode).select("text").transition().duration(b).text(function(e){return f(e)}).attr("opacity",function(e){return D(e)?1:0}).attr("transform",function(){var n=this.getBBox().width;if(0===t.depth)return"translate("+-n/2*1+",0)";if(t.depth===e.depth)return"translate("+(A(t.y)+5)+",0)";var r=T(t),i=E(t);return 0===i?"rotate("+r+")translate("+(A(t.y)+5)+",0)":"rotate("+r+")translate("+(A(t.y)+n+5)+",0)rotate("+i+")"})})}var O=e.utils.renderWatch(_);function L(t){return O.reset(),t.each(function(t){d=d3.select(this),i=Math.min(n=e.utils.availableWidth(s,d,o),r=e.utils.availableHeight(a,d,o))/2,A.range([0,i]);var m=d.select("g.nvd3.nv-wrap.nv-sunburst");m[0]&&m[0][0]?m.attr("transform","translate("+(n/2+o.left+o.right)+","+(r/2+o.top+o.bottom)+")"):m=d.append("g").attr("class","nvd3 nv-wrap nv-sunburst nv-chart-"+u).attr("transform","translate("+(n/2+o.left+o.right)+","+(r/2+o.top+o.bottom)+")"),d.on("click",function(e,t,n){_.call("chartClick",this,{data:t,index:t.index,pos:e,id:u})}),x(c[l]||c.count);var g=x.nodes(t[0]).reverse();!function(e){e.forEach(function(e){var t,n,r,i=k[v(e)];i?(e.x1=i.x+i.dx,e.x0=i.x,e.y1=i.y+i.dy,e.y0=i.y):(e.x1=e.x+e.dx,e.x0=e.x,e.y1=e.y+e.dy,e.y0=e.y),k[n=v(t=e)]||(k[n]={}),(r=k[n]).dx=t.dx,r.x=t.x,r.dy=t.dy,r.y=t.y})}(g);var C=m.selectAll(".arc-container").data(g,v);C.enter().append("g").attr("class","arc-container").append("path").attr("d",S).style("fill",function(e){return e.color?e.color:h(y?(e.children?e:e.parent).name:e.name)}).style("stroke","#FFF").on("click",function(e,t,n){I(t),_.call("elementClick",this,{data:t,index:t.index})}).on("mouseover",function(e,t,n){var r,i;setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0).style("opacity",.8),_.call("elementMouseover",this,{data:t,color:d3.select(this).style("fill"),percent:(i=Math.max(0,Math.min(2*Math.PI,w((r=t).x))),(Math.max(0,Math.min(2*Math.PI,w(r.x+r.dx)))-i)/(2*Math.PI))})}).on("mouseout",function(e,t,n){d3.select(this).classed("hover",!1).style("opacity",1),_.call("elementMouseout",this,{data:t})}).on("mousemove",function(e,t,n){_.call("elementMousemove",this,{data:t})}),C.each(function(e){d3.select(this).select("path").transition().duration(b).attrTween("d",M)}),p&&(C.selectAll("text").remove(),C.append("text").text(function(e){return f(e)}).transition().duration(b).attr("opacity",function(e){return D(e)?1:0}).attr("transform",function(e){var t=this.getBBox().width;if(0===e.depth)return"rotate(0)translate("+-t/2*1+",0)";var n=T(e),r=E(e);return 0===r?"rotate("+n+")translate("+(A(e.y)+5)+",0)":"rotate("+n+")translate("+(A(e.y)+t+5)+",0)rotate("+r+")"})),I(g[g.length-1]),C.exit().transition().duration(b).attr("opacity",0).each("end",function(e){k[v(e)]=void 0}).remove()}),O.renderEnd("sunburst immediate"),L}return L.dispatch=_,L.options=e.utils.optionsFunc.bind(L),L._options=Object.create({},{width:{get:function(){return s},set:function(e){s=e}},height:{get:function(){return a},set:function(e){a=e}},mode:{get:function(){return l},set:function(e){l=e}},id:{get:function(){return u},set:function(e){u=e}},duration:{get:function(){return b},set:function(e){b=e,d3.transition().duration(b).ease(d3.easeLinear)}},groupColorByParent:{get:function(){return y},set:function(e){y=!!e}},showLabels:{get:function(){return p},set:function(e){p=!!e}},labelFormat:{get:function(){return f},set:function(e){f=e}},labelThreshold:{get:function(){return m},set:function(e){m=e}},sort:{get:function(){return g},set:function(e){g=e}},key:{get:function(){return v},set:function(e){v=e}},margin:{get:function(){return o},set:function(e){o.top=null!=e.top?e.top:o.top,o.right=null!=e.right?e.right:o.right,o.bottom=null!=e.bottom?e.bottom:o.bottom,o.left=null!=e.left?e.left:o.left}},color:{get:function(){return h},set:function(t){h=e.utils.getColor(t)}}}),e.utils.initOptions(L),L},e.models.sunburstChart=function(){"use strict";var t=e.models.sunburst(),n=e.models.tooltip(),r={top:30,right:20,bottom:20,left:20},i=e.utils.defaultColor(),o=!1,s=null,a=null,l=250,c=(d3.transition().duration(l).ease(d3.easeLinear),d3.dispatch("stateChange","changeState","renderEnd")),u=e.utils.renderWatch(c);function d(n){return u.reset(),u.models(t),n.each(function(n){var i=d3.select(this);e.utils.initSVG(i);var o=e.utils.availableWidth(null,i,r),s=e.utils.availableHeight(null,i,r);if(d.update=function(){0===l?i.call(d):i.transition().duration(l).call(d)},d.container=i,!n||!n.length)return e.utils.noData(d,i),d;i.selectAll(".nv-noData").remove(),t.width(o).height(s).margin(r),i.call(t)}),u.renderEnd("sunburstChart immediate"),d}return n.duration(0).headerEnabled(!1).valueFormatter(function(e){return e}),t.dispatch.on("elementMouseover.tooltip",function(e){e.series={key:e.data.name,value:e.data.value||e.data.size,color:e.color,percent:e.percent},o||(delete e.percent,delete e.series.percent),n.data(e).hidden(!1)}),t.dispatch.on("elementMouseout.tooltip",function(e){n.hidden(!0)}),t.dispatch.on("elementMousemove.tooltip",function(e){n()}),d.dispatch=c,d.sunburst=t,d.tooltip=n,d.options=e.utils.optionsFunc.bind(d),d._options=Object.create({},{noData:{get:function(){return a},set:function(e){a=e}},defaultState:{get:function(){return s},set:function(e){s=e}},showTooltipPercent:{get:function(){return o},set:function(e){o=e}},color:{get:function(){return i},set:function(e){i=e,t.color(i)}},duration:{get:function(){return l},set:function(e){l=e,u.reset(l),d3.transition().duration(l).ease(d3.easeLinear),t.duration(l)}},margin:{get:function(){return r},set:function(e){r.top=void 0!==e.top?e.top:r.top,r.right=void 0!==e.right?e.right:r.right,r.bottom=void 0!==e.bottom?e.bottom:r.bottom,r.left=void 0!==e.left?e.left:r.left,t.margin(r)}}}),e.utils.inheritOptions(d,t),e.utils.initOptions(d),d},e.version="1.8.15"}(),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=Object.getPrototypeOf,i=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,a=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,h=d.call(Object),p={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,i,o=(n=n||g).createElement("script");if(o.text=e,t)for(r in v)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var _="3.7.1",w=/HTML$/i,A=function(e,t){return new A.fn.init(e,t)};function x(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!f(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}A.fn=A.prototype={jquery:_,constructor:A,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=A.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return A.each(this,e)},map:function(e){return this.pushStack(A.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(A.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},A.extend=A.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||f(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(c&&r&&(A.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||A.isPlainObject(n)?n:{},i=!1,s[t]=A.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},A.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e)||(t=r(e))&&("function"!=typeof(n=u.call(t,"constructor")&&t.constructor)||d.call(n)!==h))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(x(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=A.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(x(Object(e))?A.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!w.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,s=0,a=[];if(x(e))for(r=e.length;s<r;s++)null!=(i=t(e[s],s,n))&&a.push(i);else for(s in e)null!=(i=t(e[s],s,n))&&a.push(i);return o(a)},guid:1,support:p}),"function"==typeof Symbol&&(A.fn[Symbol.iterator]=n[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var S=n.pop,E=n.sort,T=n.splice,D="[\\x20\\t\\r\\n\\f]",C=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");A.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var M=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function I(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}A.escapeSelector=function(e){return(e+"").replace(M,I)};var O=g,L=s;!function(){var t,r,o,s,l,c,d,h,f,m,g=L,v=A.expando,y=0,b=0,_=ee(),w=ee(),x=ee(),M=ee(),I=function(e,t){return e===t&&(l=!0),0},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+D+"*("+P+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+D+"*\\]",j=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",F=new RegExp(D+"+","g"),B=new RegExp("^"+D+"*,"+D+"*"),Y=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),V=new RegExp(D+"|>"),H=new RegExp(j),U=new RegExp("^"+P+"$"),z={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,K=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),Z=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){le()},Q=he(function(e){return!0===e.disabled&&k(e,"fieldset")},{dir:"parentNode",next:"legend"});try{g.apply(n=i.call(O.childNodes),O.childNodes),n[O.childNodes.length].nodeType}catch(t){g={apply:function(e,t){L.apply(e,i.call(t))},call:function(e){L.apply(e,i.call(arguments,1))}}}function J(e,t,n,r){var i,o,s,a,l,u,d,m=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||c,h)){if(11!==y&&(l=$.exec(e)))if(i=l[1]){if(9===y){if(!(s=t.getElementById(i)))return n;if(s.id===i)return g.call(n,s),n}else if(m&&(s=m.getElementById(i))&&J.contains(t,s)&&s.id===i)return g.call(n,s),n}else{if(l[2])return g.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}if(!(M[e+" "]||f&&f.test(e))){if(d=e,m=t,1===y&&(V.test(e)||Y.test(e))){for((m=G.test(e)&&ae(t.parentNode)||t)==t&&p.scope||((a=t.getAttribute("id"))?a=A.escapeSelector(a):t.setAttribute("id",a=v)),o=(u=ue(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+de(u[o]);d=u.join(",")}try{return g.apply(n,m.querySelectorAll(d)),n}catch(t){M(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return ye(e.replace(C,"$1"),t,n,r)}function ee(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function te(e){return e[v]=!0,e}function ne(e){var t=c.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return k(t,"input")&&t.type===e}}function ie(e){return function(t){return(k(t,"input")||k(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Q(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te(function(t){return t=+t,te(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var t,n=e?e.ownerDocument||e:O;return n!=c&&9===n.nodeType&&n.documentElement&&(d=(c=n).documentElement,h=!A.isXMLDoc(c),m=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&O!=c&&(t=c.defaultView)&&t.top!==t&&t.addEventListener("unload",X),p.getById=ne(function(e){return d.appendChild(e).id=A.expando,!c.getElementsByName||!c.getElementsByName(A.expando).length}),p.disconnectedMatch=ne(function(e){return m.call(e,"*")}),p.scope=ne(function(){return c.querySelectorAll(":scope")}),p.cssHas=ne(function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),p.getById?(r.filter.ID=function(e){var t=e.replace(K,Z);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(K,Z);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},r.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},f=[],ne(function(e){var t;d.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+D+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+v+"-]").length||f.push("~="),e.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll(":checked").length||f.push(":checked"),(t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")}),p.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),I=function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===c||e.ownerDocument==O&&J.contains(O,e)?-1:t===c||t.ownerDocument==O&&J.contains(O,t)?1:s?a.call(s,e)-a.call(s,t):0:4&n?-1:1)}),c}for(t in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),h&&!M[t+" "]&&(!f||!f.test(t)))try{var n=m.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){M(t,!0)}return 0<J(t,c,null,[e]).length},J.contains=function(e,t){return(e.ownerDocument||e)!=c&&le(e),A.contains(e,t)},J.attr=function(e,t){(e.ownerDocument||e)!=c&&le(e);var n=r.attrHandle[t.toLowerCase()],i=n&&u.call(r.attrHandle,t.toLowerCase())?n(e,t,!h):void 0;return void 0!==i?i:e.getAttribute(t)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},A.uniqueSort=function(e){var t,n=[],r=0,o=0;if(l=!p.sortStable,s=!p.sortStable&&i.call(e,0),E.call(e,I),l){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)T.call(e,n[r],1)}return s=null,e},A.fn.uniqueSort=function(){return this.pushStack(A.uniqueSort(i.apply(this)))},(r=A.expr={cacheLength:50,createPseudo:te,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(K,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(K,Z),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||J.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&J.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(K,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return k(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=J.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1<i.indexOf(n):"$="===t?n&&i.slice(-n.length)===n:"~="===t?-1<(" "+i.replace(F," ")+" ").indexOf(n):"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,p,f=o!==s?"nextSibling":"previousSibling",m=t.parentNode,g=a&&t.nodeName.toLowerCase(),b=!l&&!a,_=!1;if(m){if(o){for(;f;){for(d=t;d=d[f];)if(a?k(d,g):1===d.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&b){for(_=(h=(c=(u=m[v]||(m[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[f]||(_=h=0)||p.pop();)if(1===d.nodeType&&++_&&d===t){u[e]=[y,h,_];break}}else if(b&&(_=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===_)for(;(d=++h&&d&&d[f]||(_=h=0)||p.pop())&&(!(a?k(d,g):1===d.nodeType)||!++_||(b&&((u=d[v]||(d[v]={}))[e]=[y,_]),d!==t)););return(_-=i)===r||_%r==0&&0<=_/r}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return i[v]?i(t):1<i.length?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,n){for(var r,o=i(e,t),s=o.length;s--;)e[r=a.call(e,o[s])]=!(n[r]=o[s])}):function(e){return i(e,0,n)}):i}},pseudos:{not:te(function(e){var t=[],n=[],r=ve(e.replace(C,"$1"));return r[v]?te(function(e,t,n,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:te(function(e){return function(t){return 0<J(e,t).length}}),contains:te(function(e){return e=e.replace(K,Z),function(t){return-1<(t.textContent||A.text(t)).indexOf(e)}}),lang:te(function(e){return U.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(K,Z).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===function(){try{return c.activeElement}catch(e){}}()&&c.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return k(e,"input")&&!!e.checked||k(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)},input:function(e){return q.test(e.nodeName)},button:function(e){return k(e,"input")&&"button"===e.type||k(e,"button")},text:function(e){var t;return k(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se(function(){return[0]}),last:se(function(e,t){return[t-1]}),eq:se(function(e,t,n){return[n<0?n+t:n]}),even:se(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:se(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:se(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:se(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=re(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ie(t);function ce(){}function ue(e,t){var n,i,o,s,a,l,c,u=w[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=r.preFilter;a;){for(s in n&&!(i=B.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),n=!1,(i=Y.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(C," ")}),a=a.slice(n.length)),r.filter)!(i=z[s].exec(a))||c[s]&&!(i=c[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?J.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function he(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,l){var c,u,d=[y,a];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(u=t[v]||(t[v]={}),i&&k(t,i))t=t[r]||t;else{if((c=u[o])&&c[0]===y&&c[1]===a)return d[2]=c[2];if((u[o]=d)[2]=e(t,n,l))return!0}return!1}}function pe(e){return 1<e.length?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function fe(e,t,n,r,i){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function me(e,t,n,r,i,o){return r&&!r[v]&&(r=me(r)),i&&!i[v]&&(i=me(i,o)),te(function(o,s,l,c){var u,d,h,p,f=[],m=[],v=s.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)J(e,t[r],n);return n}(t||"*",l.nodeType?[l]:l,[]),b=!e||!o&&t?y:fe(y,f,e,l,c);if(n?n(b,p=i||(o?e:v||r)?[]:s,l,c):p=b,r)for(u=fe(p,m),r(u,[],l,c),d=u.length;d--;)(h=u[d])&&(p[m[d]]=!(b[m[d]]=h));if(o){if(i||e){if(i){for(u=[],d=p.length;d--;)(h=p[d])&&u.push(b[d]=h);i(null,p=[],u,c)}for(d=p.length;d--;)(h=p[d])&&-1<(u=i?a.call(o,h):f[d])&&(o[u]=!(s[u]=h))}}else p=fe(p===s?p.splice(v,p.length):p),i?i(null,s,p,c):g.apply(s,p)})}function ge(e){for(var t,n,i,s=e.length,l=r.relative[e[0].type],c=l||r.relative[" "],u=l?1:0,d=he(function(e){return e===t},c,!0),h=he(function(e){return-1<a.call(t,e)},c,!0),p=[function(e,n,r){var i=!l&&(r||n!=o)||((t=n).nodeType?d(e,n,r):h(e,n,r));return t=null,i}];u<s;u++)if(n=r.relative[e[u].type])p=[he(pe(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[v]){for(i=++u;i<s&&!r.relative[e[i].type];i++);return me(1<u&&pe(p),1<u&&de(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(C,"$1"),n,u<i&&ge(e.slice(u,i)),i<s&&ge(e=e.slice(i)),i<s&&de(e))}p.push(n)}return pe(p)}function ve(e,t){var n,i,s,a,l,u,d=[],p=[],f=x[e+" "];if(!f){for(t||(t=ue(e)),n=t.length;n--;)(f=ge(t[n]))[v]?d.push(f):p.push(f);(f=x(e,(i=p,a=0<(s=d).length,l=0<i.length,u=function(e,t,n,u,d){var p,f,m,v=0,b="0",_=e&&[],w=[],x=o,k=e||l&&r.find.TAG("*",d),E=y+=null==x?1:Math.random()||.1,T=k.length;for(d&&(o=t==c||t||d);b!==T&&null!=(p=k[b]);b++){if(l&&p){for(f=0,t||p.ownerDocument==c||(le(p),n=!h);m=i[f++];)if(m(p,t||c,n)){g.call(u,p);break}d&&(y=E)}a&&((p=!m&&p)&&v--,e&&_.push(p))}if(v+=b,a&&b!==v){for(f=0;m=s[f++];)m(_,w,t,n);if(e){if(0<v)for(;b--;)_[b]||w[b]||(w[b]=S.call(u));w=fe(w)}g.apply(u,w),d&&!e&&0<w.length&&1<v+s.length&&A.uniqueSort(u)}return d&&(y=E,o=x),_},a?te(u):u))).selector=e}return f}function ye(e,t,n,i){var o,s,a,l,c,u="function"==typeof e&&e,d=!i&&ue(e=u.selector||e);if(n=n||[],1===d.length){if(2<(s=d[0]=d[0].slice(0)).length&&"ID"===(a=s[0]).type&&9===t.nodeType&&h&&r.relative[s[1].type]){if(!(t=(r.find.ID(a.matches[0].replace(K,Z),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=z.needsContext.test(e)?0:s.length;o--&&(a=s[o],!r.relative[l=a.type]);)if((c=r.find[l])&&(i=c(a.matches[0].replace(K,Z),G.test(s[0].type)&&ae(t.parentNode)||t))){if(s.splice(o,1),!(e=i.length&&de(s)))return g.apply(n,i),n;break}}return(u||ve(e,d))(i,t,!h,n,!t||G.test(e)&&ae(t.parentNode)||t),n}ce.prototype=r.filters=r.pseudos,r.setFilters=new ce,p.sortStable=v.split("").sort(I).join("")===v,le(),p.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(c.createElement("fieldset"))}),A.find=J,A.expr[":"]=A.expr.pseudos,A.unique=A.uniqueSort,J.compile=ve,J.select=ye,J.setDocument=le,J.tokenize=ue,J.escape=A.escapeSelector,J.getText=A.text,J.isXML=A.isXMLDoc,J.selectors=A.expr,J.support=A.support,J.uniqueSort=A.uniqueSort}();var N=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&A(e).is(n))break;r.push(e)}return r},P=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},R=A.expr.match.needsContext,j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){return f(t)?A.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?A.grep(e,function(e){return e===t!==n}):"string"!=typeof t?A.grep(e,function(e){return-1<a.call(t,e)!==n}):A.filter(t,e,n)}A.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?A.find.matchesSelector(r,e)?[r]:[]:A.find.matches(e,A.grep(t,function(e){return 1===e.nodeType}))},A.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(A(e).filter(function(){for(t=0;t<r;t++)if(A.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)A.find(e,i[t],n);return 1<r?A.uniqueSort(n):n},filter:function(e){return this.pushStack(F(this,e||[],!1))},not:function(e){return this.pushStack(F(this,e||[],!0))},is:function(e){return!!F(this,"string"==typeof e&&R.test(e)?A(e):e||[],!1).length}});var B,Y=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(A.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||B,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Y.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),j.test(r[1])&&A.isPlainObject(t))for(r in t)f(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=g.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==n.ready?n.ready(e):e(A):A.makeArray(e,this)}).prototype=A.fn,B=A(g);var V=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function U(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}A.fn.extend({has:function(e){var t=A(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(A.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&A(e);if(!R.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&A.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?A.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?a.call(A(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),A.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return N(e,"parentNode")},parentsUntil:function(e,t,n){return N(e,"parentNode",n)},next:function(e){return U(e,"nextSibling")},prev:function(e){return U(e,"previousSibling")},nextAll:function(e){return N(e,"nextSibling")},prevAll:function(e){return N(e,"previousSibling")},nextUntil:function(e,t,n){return N(e,"nextSibling",n)},prevUntil:function(e,t,n){return N(e,"previousSibling",n)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),A.merge([],e.childNodes))}},function(e,t){A.fn[e]=function(n,r){var i=A.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=A.filter(r,i)),1<this.length&&(H[e]||A.uniqueSort(i),V.test(e)&&i.reverse()),this.pushStack(i)}});var z=/[^\x20\t\r\n\f]+/g;function q(e){return e}function W(e){throw e}function $(e,t,n,r){var i;try{e&&f(i=e.promise)?i.call(e).done(t).fail(n):e&&f(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}A.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},A.each(t.match(z)||[],function(e,t){n[t]=!0}),n):A.extend({},e);var r,i,o,s,a=[],l=[],c=-1,u=function(){for(s=s||e.once,o=r=!0;l.length;c=-1)for(i=l.shift();++c<a.length;)!1===a[c].apply(i[0],i[1])&&e.stopOnFalse&&(c=a.length,i=!1);e.memory||(i=!1),r=!1,s&&(a=i?[]:"")},d={add:function(){return a&&(i&&!r&&(c=a.length-1,l.push(i)),function t(n){A.each(n,function(n,r){f(r)?e.unique&&d.has(r)||a.push(r):r&&r.length&&"string"!==b(r)&&t(r)})}(arguments),i&&!r&&u()),this},remove:function(){return A.each(arguments,function(e,t){for(var n;-1<(n=A.inArray(t,a,n));)a.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<A.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=i="",this},disabled:function(){return!a},lock:function(){return s=l=[],i||r||(a=i=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),r||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},A.extend({Deferred:function(t){var n=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return A.Deferred(function(t){A.each(n,function(n,r){var i=f(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function s(t,n,r,i){return function(){var a=this,l=arguments,c=function(){var e,c;if(!(t<o)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,f(c)?i?c.call(e,s(o,n,q,i),s(o,n,W,i)):(o++,c.call(e,s(o,n,q,i),s(o,n,W,i),s(o,n,q,n.notifyWith))):(r!==q&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},u=i?c:function(){try{c()}catch(e){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(e,u.error),o<=t+1&&(r!==W&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?u():(A.Deferred.getErrorHook?u.error=A.Deferred.getErrorHook():A.Deferred.getStackHook&&(u.error=A.Deferred.getStackHook()),e.setTimeout(u))}}return A.Deferred(function(e){n[0][3].add(s(0,e,f(i)?i:q,e.notifyWith)),n[1][3].add(s(0,e,f(t)?t:q)),n[2][3].add(s(0,e,f(r)?r:W))}).promise()},promise:function(e){return null!=e?A.extend(e,i):i}},o={};return A.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=i.call(arguments),s=A.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=1<arguments.length?i.call(arguments):n,--t||s.resolveWith(r,o)}};if(t<=1&&($(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||f(o[n]&&o[n].then)))return s.then();for(;n--;)$(o[n],a(n),s.reject);return s.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&G.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},A.readyException=function(t){e.setTimeout(function(){throw t})};var K=A.Deferred();function Z(){g.removeEventListener("DOMContentLoaded",Z),e.removeEventListener("load",Z),A.ready()}A.fn.ready=function(e){return K.then(e).catch(function(e){A.readyException(e)}),this},A.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--A.readyWait:A.isReady)||(A.isReady=!0)!==e&&0<--A.readyWait||K.resolveWith(g,[A])}}),A.ready.then=K.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(A.ready):(g.addEventListener("DOMContentLoaded",Z),e.addEventListener("load",Z));var X=function(e,t,n,r,i,o,s){var a=0,l=e.length,c=null==n;if("object"===b(n))for(a in i=!0,n)X(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,f(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(A(e),n)})),t))for(;a<l;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):l?t(e[0],n):o},Q=/^-ms-/,J=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(Q,"ms-").replace(J,ee)}var ne=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function re(){this.expando=A.expando+re.uid++}re.uid=1,re.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ne(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[te(t)]=n;else for(r in t)i[te(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][te(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(te):(t=te(t))in r?[t]:t.match(z)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||A.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!A.isEmptyObject(t)}};var ie=new re,oe=new re,se=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;function le(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:se.test(i)?JSON.parse(i):i)}catch(e){}oe.set(e,t,n)}else n=void 0;return n}A.extend({hasData:function(e){return oe.hasData(e)||ie.hasData(e)},data:function(e,t,n){return oe.access(e,t,n)},removeData:function(e,t){oe.remove(e,t)},_data:function(e,t,n){return ie.access(e,t,n)},_removeData:function(e,t){ie.remove(e,t)}}),A.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=oe.get(o),1===o.nodeType&&!ie.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=te(r.slice(5)),le(o,r,i[r]));ie.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){oe.set(this,e)}):X(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=oe.get(o,e))||void 0!==(n=le(o,e))?n:void 0;this.each(function(){oe.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){oe.remove(this,e)})}}),A.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ie.get(e,t),n&&(!r||Array.isArray(n)?r=ie.access(e,t,A.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=A.queue(e,t),r=n.length,i=n.shift(),o=A._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){A.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ie.get(e,n)||ie.access(e,n,{empty:A.Callbacks("once memory").add(function(){ie.remove(e,[t+"queue",n])})})}}),A.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?A.queue(this[0],e):void 0===t?this:this.each(function(){var n=A.queue(this,e,t);A._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&A.dequeue(this,e)})},dequeue:function(e){return this.each(function(){A.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=A.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=ie.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var ce=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ue=new RegExp("^(?:([+-])=|)("+ce+")([a-z%]*)$","i"),de=["Top","Right","Bottom","Left"],he=g.documentElement,pe=function(e){return A.contains(e.ownerDocument,e)},fe={composed:!0};he.getRootNode&&(pe=function(e){return A.contains(e.ownerDocument,e)||e.getRootNode(fe)===e.ownerDocument});var me=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&pe(e)&&"none"===A.css(e,"display")};function ge(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return A.css(e,t,"")},l=a(),c=n&&n[3]||(A.cssNumber[t]?"":"px"),u=e.nodeType&&(A.cssNumber[t]||"px"!==c&&+l)&&ue.exec(A.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)A.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,A.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var ve={};function ye(e,t){for(var n,r,i,o,s,a,l,c=[],u=0,d=e.length;u<d;u++)(r=e[u]).style&&(n=r.style.display,t?("none"===n&&(c[u]=ie.get(r,"display")||null,c[u]||(r.style.display="")),""===r.style.display&&me(r)&&(c[u]=(l=s=o=void 0,s=(i=r).ownerDocument,a=i.nodeName,(l=ve[a])||(o=s.body.appendChild(s.createElement(a)),l=A.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),ve[a]=l)))):"none"!==n&&(c[u]="none",ie.set(r,"display",n)));for(u=0;u<d;u++)null!=c[u]&&(e[u].style.display=c[u]);return e}A.fn.extend({show:function(){return ye(this,!0)},hide:function(){return ye(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){me(this)?A(this).show():A(this).hide()})}});var be,_e,we=/^(?:checkbox|radio)$/i,Ae=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,xe=/^$|^module$|\/(?:java|ecma)script/i;be=g.createDocumentFragment().appendChild(g.createElement("div")),(_e=g.createElement("input")).setAttribute("type","radio"),_e.setAttribute("checked","checked"),_e.setAttribute("name","t"),be.appendChild(_e),p.checkClone=be.cloneNode(!0).cloneNode(!0).lastChild.checked,be.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue,be.innerHTML="<option></option>",p.option=!!be.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?A.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)ie.set(e[n],"globalEval",!t||ie.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,p.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function De(e,t,n,r,i){for(var o,s,a,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===b(o))A.merge(h,o.nodeType?[o]:o);else if(Te.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(Ae.exec(o)||["",""])[1].toLowerCase(),l=ke[a]||ke._default,s.innerHTML=l[1]+A.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;A.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(r&&-1<A.inArray(o,r))i&&i.push(o);else if(c=pe(o),s=Se(d.appendChild(o),"script"),c&&Ee(s),n)for(u=0;o=s[u++];)xe.test(o.type||"")&&n.push(o);return d}var Ce=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Ie(){return!1}function Oe(e,t,n,r,i,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Oe(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ie;else if(!i)return e;return 1===o&&(s=i,(i=function(e){return A().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=A.guid++)),e.each(function(){A.event.add(this,t,i,r,n)})}function Le(e,t,n){n?(ie.set(e,t,!1),A.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ie.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(A.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=i.call(arguments),ie.set(this,t,r),this[t](),n=ie.get(this,t),ie.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(ie.set(this,t,A.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===ie.get(e,t)&&A.event.add(e,t,Me)}A.event={global:{},add:function(e,t,n,r,i){var o,s,a,l,c,u,d,h,p,f,m,g=ie.get(e);if(ne(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&A.find.matchesSelector(he,i),n.guid||(n.guid=A.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==A&&A.event.triggered!==t.type?A.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)p=m=(a=Ce.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=A.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=A.event.special[p]||{},u=A.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&A.expr.match.needsContext.test(i),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,u):h.push(u),A.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,l,c,u,d,h,p,f,m,g=ie.hasData(e)&&ie.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(z)||[""]).length;c--;)if(p=m=(a=Ce.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=A.event.special[p]||{},h=l[p=(r?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!i&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||A.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)A.event.remove(e,p+t[c],n,r,!0);A.isEmptyObject(l)&&ie.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=new Array(arguments.length),l=A.event.fix(e),c=(ie.get(this,"events")||Object.create(null))[l.type]||[],u=A.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=A.event.handlers.call(this,l,c),t=0;(i=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((A.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?-1<A(i,this).index(c):A.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(A.Event.prototype,e,{enumerable:!0,configurable:!0,get:f(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[A.expando]?e:new A.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&k(t,"input")&&Le(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&k(t,"input")&&Le(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&k(t,"input")&&ie.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},A.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},A.Event=function(e,t){if(!(this instanceof A.Event))return new A.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Ie,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&A.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},A.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(g.documentMode){var n=ie.get(this,"handle"),r=A.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else A.event.simulate(t,e.target,A.event.fix(e))}A.event.special[e]={setup:function(){var r;if(Le(this,e,!0),!g.documentMode)return!1;(r=ie.get(this,t))||this.addEventListener(t,n),ie.set(this,t,(r||0)+1)},trigger:function(){return Le(this,e),!0},teardown:function(){var e;if(!g.documentMode)return!1;(e=ie.get(this,t)-1)?ie.set(this,t,e):(this.removeEventListener(t,n),ie.remove(this,t))},_default:function(t){return ie.get(t.target,e)},delegateType:t},A.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=g.documentMode?this:r,o=ie.get(i,t);o||(g.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),ie.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=g.documentMode?this:r,o=ie.get(i,t)-1;o?ie.set(i,t,o):(g.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),ie.remove(i,t))}}}),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){A.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||A.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),A.fn.extend({on:function(e,t,n,r){return Oe(this,e,t,n,r)},one:function(e,t,n,r){return Oe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,A(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ie),this.each(function(){A.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function je(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&A(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Be(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ye(e,t){var n,r,i,o,s,a;if(1===t.nodeType){if(ie.hasData(e)&&(a=ie.get(e).events))for(i in ie.remove(t,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)A.event.add(t,i,a[i][n]);oe.hasData(e)&&(o=oe.access(e),s=A.extend({},o),oe.set(t,s))}}function Ve(e,t,n,r){t=o(t);var i,s,a,l,c,u,d=0,h=e.length,m=h-1,g=t[0],v=f(g);if(v||1<h&&"string"==typeof g&&!p.checkClone&&Pe.test(g))return e.each(function(i){var o=e.eq(i);v&&(t[0]=g.call(this,i,o.html())),Ve(o,t,n,r)});if(h&&(s=(i=De(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(l=(a=A.map(Se(i,"script"),Fe)).length;d<h;d++)c=i,d!==m&&(c=A.clone(c,!0,!0),l&&A.merge(a,Se(c,"script"))),n.call(e[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,A.map(a,Be),d=0;d<l;d++)c=a[d],xe.test(c.type||"")&&!ie.access(c,"globalEval")&&A.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?A._evalUrl&&!c.noModule&&A._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Re,""),c,u))}return e}function He(e,t,n){for(var r,i=t?A.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||A.cleanData(Se(r)),r.parentNode&&(n&&pe(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}A.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,s,a,l,c,u=e.cloneNode(!0),d=pe(e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||A.isXMLDoc(e)))for(s=Se(u),r=0,i=(o=Se(e)).length;r<i;r++)a=o[r],"input"===(c=(l=s[r]).nodeName.toLowerCase())&&we.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(n)for(o=o||Se(e),s=s||Se(u),r=0,i=o.length;r<i;r++)Ye(o[r],s[r]);else Ye(e,u);return 0<(s=Se(u,"script")).length&&Ee(s,!d&&Se(e,"script")),u},cleanData:function(e){for(var t,n,r,i=A.event.special,o=0;void 0!==(n=e[o]);o++)if(ne(n)){if(t=n[ie.expando]){if(t.events)for(r in t.events)i[r]?A.event.remove(n,r):A.removeEvent(n,r,t.handle);n[ie.expando]=void 0}n[oe.expando]&&(n[oe.expando]=void 0)}}}),A.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return X(this,function(e){return void 0===e?A.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ve(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return Ve(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ve(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(A.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return A.clone(this,e,t)})},html:function(e){return X(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ke[(Ae.exec(e)||["",""])[1].toLowerCase()]){e=A.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(A.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,function(t){var n=this.parentNode;A.inArray(this,e)<0&&(A.cleanData(Se(this)),n&&n.replaceChild(t,this))},e)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){A.fn[e]=function(e){for(var n,r=[],i=A(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),A(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Ue=new RegExp("^("+ce+")(?!px)[a-z%]+$","i"),ze=/^--/,qe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},We=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},$e=new RegExp(de.join("|"),"i");function Ge(e,t,n){var r,i,o,s,a=ze.test(t),l=e.style;return(n=n||qe(e))&&(s=n.getPropertyValue(t)||n[t],a&&s&&(s=s.replace(C,"$1")||void 0),""!==s||pe(e)||(s=A.style(e,t)),!p.pixelBoxStyles()&&Ue.test(s)&&$e.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==s?s+"":s}function Ke(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",he.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);r="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",s=36===n(t.right),i=36===n(t.width),u.style.position="absolute",o=12===n(u.offsetWidth/3),he.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,s,a,l,c=g.createElement("div"),u=g.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===u.style.backgroundClip,A.extend(p,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,i;return null==a&&(t=g.createElement("table"),n=g.createElement("tr"),r=g.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",he.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,he.removeChild(t)),a}}))}();var Ze=["Webkit","Moz","ms"],Xe=g.createElement("div").style,Qe={};function Je(e){return A.cssProps[e]||Qe[e]||(e in Xe?e:Qe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ze.length;n--;)if((e=Ze[n]+t)in Xe)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=ue.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var s="width"===t?1:0,a=0,l=0,c=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=A.css(e,n+de[s],!0,i)),r?("content"===n&&(l-=A.css(e,"padding"+de[s],!0,i)),"margin"!==n&&(l-=A.css(e,"border"+de[s]+"Width",!0,i))):(l+=A.css(e,"padding"+de[s],!0,i),"padding"!==n?l+=A.css(e,"border"+de[s]+"Width",!0,i):a+=A.css(e,"border"+de[s]+"Width",!0,i));return!r&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l+c}function ot(e,t,n){var r=qe(e),i=(!p.boxSizingReliable()||n)&&"border-box"===A.css(e,"boxSizing",!1,r),o=i,s=Ge(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(s)){if(!n)return s;s="auto"}return(!p.boxSizingReliable()&&i||!p.reliableTrDimensions()&&k(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===A.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===A.css(e,"boxSizing",!1,r),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+it(e,t,n||(i?"border":"content"),o,r,s)+"px"}function st(e,t,n,r,i){return new st.prototype.init(e,t,n,r,i)}A.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=te(t),l=ze.test(t),c=e.style;if(l||(t=Je(a)),s=A.cssHooks[t]||A.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];"string"==(o=typeof n)&&(i=ue.exec(n))&&i[1]&&(n=ge(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(A.cssNumber[a]?"":"px")),p.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=te(t);return ze.test(t)||(t=Je(a)),(s=A.cssHooks[t]||A.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),A.each(["height","width"],function(e,t){A.cssHooks[t]={get:function(e,n,r){if(n)return!et.test(A.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,r):We(e,tt,function(){return ot(e,t,r)})},set:function(e,n,r){var i,o=qe(e),s=!p.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===A.css(e,"boxSizing",!1,o),l=r?it(e,t,r,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-it(e,t,"border",!1,o)-.5)),l&&(i=ue.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=A.css(e,t)),rt(0,n,l)}}}),A.cssHooks.marginLeft=Ke(p.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),A.each({margin:"",padding:"",border:"Width"},function(e,t){A.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+de[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(A.cssHooks[e+t].set=rt)}),A.fn.extend({css:function(e,t){return X(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=qe(e),i=t.length;s<i;s++)o[t[s]]=A.css(e,t[s],!1,r);return o}return void 0!==n?A.style(e,t,n):A.css(e,t)},e,t,1<arguments.length)}}),((A.Tween=st).prototype={constructor:st,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||A.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(A.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=A.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):st.propHooks._default.set(this),this}}).init.prototype=st.prototype,(st.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=A.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){A.fx.step[e.prop]?A.fx.step[e.prop](e):1!==e.elem.nodeType||!A.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:A.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},A.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},A.fx=st.prototype.init,A.fx.step={};var at,lt,ct,ut,dt=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;function pt(){lt&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(pt):e.setTimeout(pt,A.fx.interval),A.fx.tick())}function ft(){return e.setTimeout(function(){at=void 0}),at=Date.now()}function mt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=de[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function gt(e,t,n){for(var r,i=(vt.tweeners[t]||[]).concat(vt.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function vt(e,t,n){var r,i,o=0,s=vt.prefilters.length,a=A.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=at||ft(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(r);return a.notifyWith(e,[c,r,n]),r<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:A.extend({},t),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||ft(),duration:n.duration,tweens:[],createTween:function(t,n){var r=A.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=te(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=A.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);o<s;o++)if(r=vt.prefilters[o].call(c,e,u,c.opts))return f(r.stop)&&(A._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return A.map(u,gt,c),f(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),A.fx.timer(A.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}A.Animation=A.extend(vt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ge(n.elem,e,ue.exec(t),n),n}]},tweener:function(e,t){f(e)?(t=e,e=["*"]):e=e.match(z);for(var n,r=0,i=e.length;r<i;r++)n=e[r],vt.tweeners[n]=vt.tweeners[n]||[],vt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&me(e),g=ie.get(e,"fxshow");for(r in n.queue||(null==(s=A._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,A.queue(e,"fx").length||s.empty.fire()})})),t)if(i=t[r],dt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||A.style(e,r)}if((l=!A.isEmptyObject(t))||!A.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=ie.get(e,"display")),"none"===(u=A.css(e,"display"))&&(c?u=c:(ye([e],!0),c=e.style.display||c,u=A.css(e,"display"),ye([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===A.css(e,"float")&&(l||(h.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=ie.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&ye([e],!0),h.done(function(){for(r in m||ye([e]),ie.remove(e,"fxshow"),p)A.style(e,r,p[r])})),l=gt(m?g[r]:0,r,h),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?vt.prefilters.unshift(e):vt.prefilters.push(e)}}),A.speed=function(e,t,n){var r=e&&"object"==typeof e?A.extend({},e):{complete:n||!n&&t||f(e)&&e,duration:e,easing:n&&t||t&&!f(t)&&t};return A.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in A.fx.speeds?r.duration=A.fx.speeds[r.duration]:r.duration=A.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){f(r.old)&&r.old.call(this),r.queue&&A.dequeue(this,r.queue)},r},A.fn.extend({fadeTo:function(e,t,n,r){return this.filter(me).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=A.isEmptyObject(e),o=A.speed(t,n,r),s=function(){var t=vt(this,A.extend({},e),o);(i||ie.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=A.timers,s=ie.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&ht.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||A.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=ie.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=A.timers,s=r?r.length:0;for(n.finish=!0,A.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),A.each(["toggle","show","hide"],function(e,t){var n=A.fn[t];A.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(mt(t,!0),e,r,i)}}),A.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){A.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),A.timers=[],A.fx.tick=function(){var e,t=0,n=A.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||A.fx.stop(),at=void 0},A.fx.timer=function(e){A.timers.push(e),A.fx.start()},A.fx.interval=13,A.fx.start=function(){lt||(lt=!0,pt())},A.fx.stop=function(){lt=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(t,n){return t=A.fx&&A.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},ct=g.createElement("input"),ut=g.createElement("select").appendChild(g.createElement("option")),ct.type="checkbox",p.checkOn=""!==ct.value,p.optSelected=ut.selected,(ct=g.createElement("input")).value="t",ct.type="radio",p.radioValue="t"===ct.value;var yt,bt=A.expr.attrHandle;A.fn.extend({attr:function(e,t){return X(this,A.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){A.removeAttr(this,e)})}}),A.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?A.prop(e,t,n):(1===o&&A.isXMLDoc(e)||(i=A.attrHooks[t.toLowerCase()]||(A.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void A.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=A.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(z);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),yt={set:function(e,t,n){return!1===t?A.removeAttr(e,n):e.setAttribute(n,n),n}},A.each(A.expr.match.bool.source.match(/\w+/g),function(e,t){var n=bt[t]||A.find.attr;bt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=bt[s],bt[s]=i,i=null!=n(e,t,r)?s:null,bt[s]=o),i}});var _t=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function At(e){return(e.match(z)||[]).join(" ")}function xt(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}A.fn.extend({prop:function(e,t){return X(this,A.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[A.propFix[e]||e]})}}),A.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&A.isXMLDoc(e)||(t=A.propFix[t]||t,i=A.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=A.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(A.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){A.propFix[this.toLowerCase()]=this}),A.fn.extend({addClass:function(e){var t,n,r,i,o,s;return f(e)?this.each(function(t){A(this).addClass(e.call(this,t,xt(this)))}):(t=kt(e)).length?this.each(function(){if(r=xt(this),n=1===this.nodeType&&" "+At(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");s=At(n),r!==s&&this.setAttribute("class",s)}}):this},removeClass:function(e){var t,n,r,i,o,s;return f(e)?this.each(function(t){A(this).removeClass(e.call(this,t,xt(this)))}):arguments.length?(t=kt(e)).length?this.each(function(){if(r=xt(this),n=1===this.nodeType&&" "+At(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];-1<n.indexOf(" "+i+" ");)n=n.replace(" "+i+" "," ");s=At(n),r!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,s=typeof e,a="string"===s||Array.isArray(e);return f(e)?this.each(function(n){A(this).toggleClass(e.call(this,n,xt(this),t),t)}):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each(function(){if(a)for(o=A(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==s||((r=xt(this))&&ie.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":ie.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+At(xt(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;A.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=f(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,A(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=A.map(i,function(e){return null==e?"":e+""})),(t=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=A.valHooks[i.type]||A.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(St,""):null==n?"":n:void 0}}),A.extend({valHooks:{option:{get:function(e){var t=A.find.attr(e,"value");return null!=t?t:At(A.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:i.length;for(r=o<0?l:s?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=A(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=A.makeArray(t),s=i.length;s--;)((r=i[s]).selected=-1<A.inArray(A.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<A.inArray(A(e).val(),t)}},p.checkOn||(A.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=e.location,Tt={guid:Date.now()},Dt=/\?/;A.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||A.error("Invalid XML: "+(r?A.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var Ct=/^(?:focusinfocus|focusoutblur)$/,Mt=function(e){e.stopPropagation()};A.extend(A.event,{trigger:function(t,n,r,i){var o,s,a,l,c,d,h,p,v=[r||g],y=u.call(t,"type")?t.type:t,b=u.call(t,"namespace")?t.namespace.split("."):[];if(s=p=a=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!Ct.test(y+A.event.triggered)&&(-1<y.indexOf(".")&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[A.expando]?t:new A.Event(y,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:A.makeArray(n,[t]),h=A.event.special[y]||{},i||!h.trigger||!1!==h.trigger.apply(r,n))){if(!i&&!h.noBubble&&!m(r)){for(l=h.delegateType||y,Ct.test(l+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),a=s;a===(r.ownerDocument||g)&&v.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=v[o++])&&!t.isPropagationStopped();)p=s,t.type=1<o?l:h.bindType||y,(d=(ie.get(s,"events")||Object.create(null))[t.type]&&ie.get(s,"handle"))&&d.apply(s,n),(d=c&&s[c])&&d.apply&&ne(s)&&(t.result=d.apply(s,n),!1===t.result&&t.preventDefault());return t.type=y,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(v.pop(),n)||!ne(r)||c&&f(r[y])&&!m(r)&&((a=r[c])&&(r[c]=null),A.event.triggered=y,t.isPropagationStopped()&&p.addEventListener(y,Mt),r[y](),t.isPropagationStopped()&&p.removeEventListener(y,Mt),A.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=A.extend(new A.Event,n,{type:e,isSimulated:!0});A.event.trigger(r,null,t)}}),A.fn.extend({trigger:function(e,t){return this.each(function(){A.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return A.event.trigger(e,t,n,!0)}});var It=/\[\]$/,Ot=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Pt(e,t,n,r){var i;if(Array.isArray(t))A.each(t,function(t,i){n||It.test(e)?r(e,i):Pt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==b(t))r(e,t);else for(i in t)Pt(e+"["+i+"]",t[i],n,r)}A.param=function(e,t){var n,r=[],i=function(e,t){var n=f(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!A.isPlainObject(e))A.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=A.prop(this,"elements");return e?A.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!A(this).is(":disabled")&&Nt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=A(this).val();return null==n?null:Array.isArray(n)?A.map(n,function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}}):{name:t.name,value:n.replace(Ot,"\r\n")}}).get()}});var Rt=/%20/g,jt=/#.*$/,Ft=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Yt=/^(?:GET|HEAD)$/,Vt=/^\/\//,Ht={},Ut={},zt="*/".concat("*"),qt=g.createElement("a");function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(z)||[];if(f(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $t(e,t,n,r){var i={},o=e===Ut;function s(a){var l;return i[a]=!0,A.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}return s(t.dataTypes[0])||!i["*"]&&s("*")}function Gt(e,t){var n,r,i=A.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&A.extend(!0,e,r),e}qt.href=Et.href,A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,A.ajaxSettings),t):Gt(A.ajaxSettings,e)},ajaxPrefilter:Wt(Ht),ajaxTransport:Wt(Ut),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,o,s,a,l,c,u,d,h,p=A.ajaxSetup({},n),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?A(f):A.event,v=A.Deferred(),y=A.Callbacks("once memory"),b=p.statusCode||{},_={},w={},x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Bt.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),S(0,t),this}};if(v.promise(k),p.url=((t||p.url||Et.href)+"").replace(Vt,Et.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(z)||[""],null==p.crossDomain){l=g.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=qt.protocol+"//"+qt.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=A.param(p.data,p.traditional)),$t(Ht,p,n,k),c)return k;for(d in(u=A.event&&p.global)&&0==A.active++&&A.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Yt.test(p.type),i=p.url.replace(jt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Rt,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Dt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Ft,"$1"),h=(Dt.test(i)?"&":"?")+"_="+Tt.guid+++h),p.url=i+h),p.ifModified&&(A.lastModified[i]&&k.setRequestHeader("If-Modified-Since",A.lastModified[i]),A.etag[i]&&k.setRequestHeader("If-None-Match",A.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+zt+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,k,p)||c))return k.abort();if(x="abort",y.add(p.complete),k.done(p.success),k.fail(p.error),r=$t(Ut,p,n,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,p]),c)return k;p.async&&0<p.timeout&&(a=e.setTimeout(function(){k.abort("timeout")},p.timeout));try{c=!1,r.send(_,S)}catch(t){if(c)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,n,s,l){var d,h,g,_,w,x=n;c||(c=!0,a&&e.clearTimeout(a),r=void 0,o=l||"",k.readyState=0<t?4:0,d=200<=t&&t<300||304===t,s&&(_=function(e,t,n){for(var r,i,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,k,s)),!d&&-1<A.inArray("script",p.dataTypes)&&A.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(e,t,n,r){var i,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(i in c)if((a=i.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,_,k,d),d?(p.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(A.lastModified[i]=w),(w=k.getResponseHeader("etag"))&&(A.etag[i]=w)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=_.state,h=_.data,d=!(g=_.error))):(g=x,!t&&x||(x="error",t<0&&(t=0))),k.status=t,k.statusText=(n||x)+"",d?v.resolveWith(f,[h,x,k]):v.rejectWith(f,[k,x,g]),k.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,p,d?h:g]),y.fireWith(f,[k,x]),u&&(m.trigger("ajaxComplete",[k,p]),--A.active||A.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return A.get(e,t,n,"json")},getScript:function(e,t){return A.get(e,void 0,t,"script")}}),A.each(["get","post"],function(e,t){A[t]=function(e,n,r,i){return f(n)&&(i=i||r,r=n,n=void 0),A.ajax(A.extend({url:e,type:t,dataType:i,data:n,success:r},A.isPlainObject(e)&&e))}}),A.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),A._evalUrl=function(e,t,n){return A.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){A.globalEval(e,t,n)}})},A.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=A(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return f(e)?this.each(function(t){A(this).wrapInner(e.call(this,t))}):this.each(function(){var t=A(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=f(e);return this.each(function(n){A(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){A(this).replaceWith(this.childNodes)}),this}}),A.expr.pseudos.hidden=function(e){return!A.expr.pseudos.visible(e)},A.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Zt=A.ajaxSettings.xhr();p.cors=!!Zt&&"withCredentials"in Zt,p.ajax=Zt=!!Zt,A.ajaxTransport(function(t){var n,r;if(p.cors||Zt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Kt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(i){if(n)throw i}},abort:function(){n&&n()}}}),A.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return A.globalEval(e),e}}}),A.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),A.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=A("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}});var Xt,Qt=[],Jt=/(=)\?(?=&|$)|\?\?/;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||A.expando+"_"+Tt.guid++;return this[e]=!0,e}}),A.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(Jt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Jt,"$1"+i):!1!==t.jsonp&&(t.url+=(Dt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||A.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?A(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Qt.push(i)),s&&f(o)&&o(s[0]),s=o=void 0}),"script"}),p.createHTMLDocument=((Xt=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),A.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(p.createHTMLDocument?((r=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(r)):t=g),o=!n&&[],(i=j.exec(e))?[t.createElement(i[1])]:(i=De([e],t,o),o&&o.length&&A(o).remove(),A.merge([],i.childNodes)));var r,i,o},A.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return-1<a&&(r=At(e.slice(a)),e=e.slice(0,a)),f(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<s.length&&A.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?A("<div>").append(A.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},A.expr.pseudos.animated=function(e){return A.grep(A.timers,function(t){return e===t.elem}).length},A.offset={setOffset:function(e,t,n){var r,i,o,s,a,l,c=A.css(e,"position"),u=A(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=A.css(e,"top"),l=A.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(s=(r=u.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),f(t)&&(t=t.call(e,n,A.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):u.css(d)}},A.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){A.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===A.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===A.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=A(e).offset()).top+=A.css(e,"borderTopWidth",!0),i.left+=A.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-A.css(r,"marginTop",!0),left:t.left-i.left-A.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===A.css(e,"position");)e=e.offsetParent;return e||he})}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;A.fn[e]=function(r){return X(this,function(e,r,i){var o;if(m(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),A.each(["top","left"],function(e,t){A.cssHooks[t]=Ke(p.pixelPosition,function(e,n){if(n)return n=Ge(e,t),Ue.test(n)?A(e).position()[t]+"px":n})}),A.each({Height:"height",Width:"width"},function(e,t){A.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){A.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return X(this,function(t,n,i){var o;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?A.css(t,n,a):A.style(t,n,i,a)},t,s?i:void 0,s)}})}),A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){A.fn[t]=function(e){return this.on(t,e)}}),A.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){A.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;A.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),f(e))return r=i.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(i.call(arguments)))}).guid=e.guid=e.guid||A.guid++,o},A.holdReady=function(e){e?A.readyWait++:A.ready(!0)},A.isArray=Array.isArray,A.parseJSON=JSON.parse,A.nodeName=k,A.isFunction=f,A.isWindow=m,A.camelCase=te,A.type=b,A.now=Date.now,A.isNumeric=function(e){var t=A.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},A.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return A});var tn=e.jQuery,nn=e.$;return A.noConflict=function(t){return e.$===A&&(e.$=nn),t&&e.jQuery===A&&(e.jQuery=tn),A},void 0===t&&(e.jQuery=e.$=A),A});
|
|
563
563
|
/*!
|
|
564
564
|
FullCalendar Core v6.1.18
|
|
565
565
|
Docs & License: https://fullcalendar.io
|