@wavemaker/app-runtime-wm-build 12.0.0-next.140494 → 12.0.0-next.140498
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.
- app-runtime-wm-build/package.json +1 -1
- app-runtime-wm-build/wmapp/scripts/wm-libs.js +4 -4
- app-runtime-wm-build/wmapp/scripts/wm-libs.min.js +4 -4
- app-runtime-wm-build/wmapp/scripts/wm-loader.js +1 -1
- app-runtime-wm-build/wmapp/scripts/wm-loader.min.js +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-libs.js +4 -4
- app-runtime-wm-build/wmmobile/scripts/wm-libs.min.js +4 -4
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.js +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +1 -1
|
@@ -740,7 +740,7 @@ n.version="2.29.4",e=Ot,n.fn=Cn,n.min=function(){return Pt("isBefore",[].slice.c
|
|
|
740
740
|
//! Copyright (c) JS Foundation and other contributors
|
|
741
741
|
//! license : MIT
|
|
742
742
|
//! github.com/moment/moment-timezone
|
|
743
|
-
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||M("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 x(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 S(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=o[k(e)];if(t)return t;M("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=x(s),c=[];for(r=0;r<l.length;r++){for(n=new y(T(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 E(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 T(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!==T&&(i=T(r[e],T))?((s=n[e]=new m)._set(i),s.name=o[e],s):null}function C(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 M(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function A(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=T(i))&&o.add(n.parse(o),"minutes"),o.tz(i),o}(l<2||2===l&&c<6)&&M("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&&A.moveAmbiguousForward?t=n:t>r&&A.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 M("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++},A.version="0.5.45",A.dataVersion="",A._zones=n,A._links=r,A._names=o,A._countries=i,A.add=E,A.link=C,A.load=function(e){E(e.zones),C(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),A.dataVersion=e.version},A.zone=T,A.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,M("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!T(t)},A.guess=function(e){return t&&!e||(t=S()),t},A.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()},A.Zone=m,A.unpack=f,A.unpackBase60=d,A.needsOffset=D,A.moveInvalidForward=!0,A.moveAmbiguousForward=!1,A.countries=function(){return Object.keys(i)},A.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:T(e).utcOffset(new Date)}})):r};var I,L=e.fn;function O(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=A,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)},L.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=T(t),this._z?e.updateOffset(this,n):M("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},L.zoneName=O(L.zoneName),L.zoneAbbr=O(L.zoneAbbr),L.utc=N(L.utc),L.local=N(L.local),L.utcOffset=(I=L.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)&&M("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?T(t):null,e};var R=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(R)?(R.push("_z"),R.push("_a")):R&&(R._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={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};function r(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!==t||(t=e.nodeName),t}function i(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function o(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 s(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 a(e,i){for(var a={__cnt:0},c=e.childNodes,u=0;u<c.length;u++){var d=c.item(u),h=r(d);d.nodeType!==n.COMMENT_NODE&&(a.__cnt++,null==a[h]?(a[h]=l(d,i+"."+h),o(a,h,i+"."+h)):(a[h]instanceof Array||(a[h]=[a[h]],o(a,h,i+"."+h)),a[h][a[h].length]=l(d,i+"."+h)))}for(var p=0;p<e.attributes.length;p++){var f=e.attributes.item(p);a.__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))}a[t.attributePrefix+f.name]=m}var y=e.prefix;return y&&(a.__cnt++,a.__prefix=y),a["#text"]&&(a.__text=a["#text"],a.__text instanceof Array&&(a.__text=a.__text.join("\n")),t.escapeMode&&(a.__text=a.__text.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")),t.stripWhitespaces&&(a.__text=a.__text.trim()),delete a["#text"],"property"===t.arrayAccessForm&&delete a["#text_asArray"],a.__text=function(e,n,r){if(t.datetimeAccessFormPaths.length>0)for(var i=r.split(".#")[0],o=0;o<t.datetimeAccessFormPaths.length;o++){var a=t.datetimeAccessFormPaths[o];if("string"==typeof a){if(a===i)return s(e)}else if(a instanceof RegExp){if(a.test(i))return s(e)}else if("function"==typeof a&&a(i))return s(e)}return e}(a.__text,0,i+".#text")),a.hasOwnProperty("#cdata-section")&&(a.__cdata=a["#cdata-section"],delete a["#cdata-section"],"property"===t.arrayAccessForm&&delete a["#cdata-section_asArray"]),1===a.__cnt&&a.__text&&!t.keepText?a=a.__text:0===a.__cnt&&"text"===t.emptyNodeForm?a="":a.__cnt>1&&void 0!==a.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""===a.__text||""===a.__text.trim())&&delete a.__text,delete a.__cnt,t.keepCData||a.hasOwnProperty("__text")||!a.hasOwnProperty("__cdata")||1!==Object.keys(a).length?(t.enableToStringFunc&&(a.__text||a.__cdata)&&(a.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),a):a.__cdata?a.__cdata:""}function l(e,i){return e.nodeType===n.DOCUMENT_NODE?function(e){for(var i={},o=e.childNodes,s=0;s<o.length;s++){var a=o.item(s);if(a.nodeType===n.ELEMENT_NODE){var c=r(a);t.ignoreRoot?i=l(a,c):i[c]=l(a,c)}}return i}(e):e.nodeType===n.ELEMENT_NODE?a(e,i):e.nodeType===n.TEXT_NODE||e.nodeType===n.CDATA_SECTION_NODE?e.nodeValue:null}function c(e,n,r,o){var s="<"+(e&&e.__prefix?e.__prefix+":":"")+n;if(r)for(var a=0;a<r.length;a++){var l=r[a],c=e[l];t.escapeMode&&(c=i(c)),s+=" "+l.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?s+='"'+c+'"':s+="'"+c+"'"}return s+=o?" />":">"}function u(e,t){return"</"+(e&&e.__prefix?e.__prefix+":":"")+t+">"}function d(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 h(e){var t=0;if(e instanceof Object)for(var n in e)d(e,n)||t++;return t}function p(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 f(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+=i(e.__text):n+=e.__text),n}(e):null!==e&&(t.escapeMode?n+=i(e):n+=e),n}function m(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+=c(e,t,n,!0);else for(var i=0;i<e.length;i++)r+=m(e[i],t,p(e[i]));return r}(e,n,r);else if(e instanceof Date)i+=c(e,n,r,!1),i+=t.jsDateUTC?e.toUTCString():e.toISOString(),i+=u(e,n);else{h(e)>0||"number"==typeof e.__text||"boolean"==typeof e.__text||e.__text||e.__cdata?(i+=c(e,n,r,!1),i+=g(e),i+=u(e,n)):t.selfClosingElements?i+=c(e,n,r,!0):(i+=c(e,n,r,!1),i+=u(e,n))}else i+=c(e,n,r,!1),i+=f(e),i+=u(e,n);else i+=c(e,n,r,!0);return i}function g(e){var t="";if(h(e)>0)for(var n in e)if(!d(e,n)){var r=e[n];t+=m(r,n,p(r))}return t+=f(e)}function v(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?s(e):e},this.xml2dom=function(e){return v(e)},this.dom2js=function(e){return l(e,null)},this.js2dom=function(e){return v(this.js2xml(e))},this.xml2js=function(e){var t=v(e);return null!=t?this.dom2js(t):null},this.js2xml=function(e){return g(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 x(e,t){const n=w(e,t);return n?Math.sqrt(n):n}function S(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 E extends Map{constructor(e,t=A){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(C(this,e))}has(e){return super.has(C(this,e))}set(e,t){return super.set(D(this,e),t)}delete(e){return super.delete(M(this,e))}}class T extends Set{constructor(e,t=A){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(C(this,e))}add(e){return super.add(D(this,e))}delete(e){return super.delete(M(this,e))}}function C({_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 M({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function A(e){return null!==e&&"object"==typeof e?e.valueOf():e}function I(e){return e}function L(e,...t){return j(e,I,I,t)}function O(e,...t){return j(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 R(e,t,...n){return j(e,I,t,n)}function P(e,t,...n){return j(e,Array.from,t,n)}function F(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function j(e,t,n,r){return function e(i,o){if(o>=r.length)return n(i);const s=new E,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 Y(e,t){return Array.from(t,(t=>e[t]))}function V(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=B(r[e],r[n]);if(t)return t}}))):(n=e.map(n),r.sort(((e,t)=>B(n[e],n[t])))),Y(e,r)}return e.sort(H(n))}function H(e=t){if(e===t)return B;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 B(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 J(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 Q(e){return Math.max(1,Math.ceil(Math.log(v(e))/Math.LN2)+1)}function ee(){var e=I,t=S,n=Q;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===S&&([d,h]=J(d,h,n)),(p=K(d,h,n))[0]<=d&&(s=Z(d,h,n)),p[p.length-1]>=h)if(e>=h&&t===S){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?B:H(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)=>B(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 T?e:new T(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 xe(e){return e}var Se=1e-6;function ke(e){return"translate("+e+",0)"}function Ee(e){return"translate(0,"+e+")"}function Te(e){return t=>+e(t)}function Ce(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 Me(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:Ee;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):xe:i,m=Math.max(o,0)+a,g=t.range(),v=+g[0]+l,y=+g[g.length-1]+l,b=(t.bandwidth?Ce:Te)(t.copy(),l),_=h.selection?h.selection():h,w=_.selectAll(".domain").data([null]),x=_.selectAll(".tick").data(p,t).order(),S=x.exit(),k=x.enter().append("g").attr("class","tick"),E=x.select("line"),T=x.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(k),E=E.merge(k.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),T=T.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),x=x.transition(h),E=E.transition(h),T=T.transition(h),S=S.transition(h).attr("opacity",Se).attr("transform",(function(e){return isFinite(e=b(e))?d(e+l):this.getAttribute("transform")})),k.attr("opacity",Se).attr("transform",(function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:b(e))+l)}))),S.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),x.attr("opacity",1).attr("transform",(function(e){return d(b(e)+l)})),E.attr(u+"2",c*o),T.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 Ae={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 Le(r)}function Le(e){this._=e}function Oe(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]=Ae,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Le.prototype=Ie.prototype={constructor:Le,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=Oe(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Le(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 Re="http://www.w3.org/1999/xhtml",Pe={svg:"http://www.w3.org/2000/svg",xhtml:Re,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fe(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Pe.hasOwnProperty(t)?{space:Pe[t],local:e}:e}function je(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Re&&t.documentElement.namespaceURI===Re?t.createElement(e):t.createElementNS(n,e)}}function Ye(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ve(e){var t=Fe(e);return(t.local?Ye:je)(t)}function He(){}function Be(e){return null==e?He: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 Je(e){return new Array(e.length)}function Qe(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 Qe(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 Qe(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 xt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function St(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function kt(e){return function(){xt(this,e)}}function Et(e){return function(){St(this,e)}}function Tt(e,t){return function(){(t.apply(this,arguments)?xt:St)(this,e)}}function Ct(){this.textContent=""}function Dt(e){return function(){this.textContent=e}}function Mt(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function At(){this.innerHTML=""}function It(e){return function(){this.innerHTML=e}}function Lt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Ot(){this.nextSibling&&this.parentNode.appendChild(this)}function Nt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Rt(){return null}function Pt(){var e=this.parentNode;e&&e.removeChild(this)}function Ft(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function jt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Yt(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 Vt(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 Ht(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 Bt(e,t){return function(){return Ht(this,e,t)}}function Ut(e,t){return function(){return Ht(this,e,t.apply(this,arguments))}}Qe.prototype={constructor:Qe,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=Be(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(Je),this._parents)},exit:function(){return new qt(this._exit||this._groups.map(Je),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=Fe(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?Tt:t?kt:Et)(n,t))},text:function(e){return arguments.length?this.each(null==e?Ct:("function"==typeof e?Mt:Dt)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?At:("function"==typeof e?Lt:It)(e)):this.node().innerHTML},raise:function(){return this.each(Ot)},lower:function(){return this.each(Nt)},append:function(e){var t="function"==typeof e?e:Ve(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Ve(e),r=null==t?Rt:"function"==typeof t?t:Be(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Pt)},clone:function(e){return this.select(e?jt:Ft)},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?Vt:Yt,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:Bt)(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 Jt(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 Qt={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}\\)$`),xn=new RegExp(`^rgb\\(${bn},${bn},${bn}\\)$`),Sn=new RegExp(`^rgba\\(${vn},${vn},${vn},${yn}\\)$`),kn=new RegExp(`^rgba\\(${bn},${bn},${bn},${yn}\\)$`),En=new RegExp(`^hsl\\(${yn},${bn},${bn}\\)$`),Tn=new RegExp(`^hsla\\(${yn},${bn},${bn},${yn}\\)$`),Cn={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 Mn(){return this.rgb().formatRgb()}function An(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 Rn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ln(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ln(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 Rn(t[1],t[2],t[3],1):(t=xn.exec(e))?new Rn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Sn.exec(e))?Ln(t[1],t[2],t[3],t[4]):(t=kn.exec(e))?Ln(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=En.exec(e))?Hn(t[1],t[2]/100,t[3]/100,1):(t=Tn.exec(e))?Hn(t[1],t[2]/100,t[3]/100,t[4]):Cn.hasOwnProperty(e)?In(Cn[e]):"transparent"===e?new Rn(NaN,NaN,NaN,0):null}function In(e){return new Rn(e>>16&255,e>>8&255,255&e,1)}function Ln(e,t,n,r){return r<=0&&(e=t=n=NaN),new Rn(e,t,n,r)}function On(e){return e instanceof fn||(e=An(e)),e?new Rn((e=e.rgb()).r,e.g,e.b,e.opacity):new Rn}function Nn(e,t,n,r){return 1===arguments.length?On(e):new Rn(e,t,n,null==r?1:r)}function Rn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Pn(){return`#${Vn(this.r)}${Vn(this.g)}${Vn(this.b)}`}function Fn(){const e=jn(this.opacity);return`${1===e?"rgb(":"rgba("}${Yn(this.r)}, ${Yn(this.g)}, ${Yn(this.b)}${1===e?")":`, ${e})`}`}function jn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vn(e){return((e=Yn(e))<16?"0":"")+e.toString(16)}function Hn(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 Bn(e){if(e instanceof zn)return new zn(e.h,e.s,e.l,e.opacity);if(e instanceof fn||(e=An(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?Bn(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,An,{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 Bn(this).formatHsl()},formatRgb:Mn,toString:Mn}),hn(Rn,Nn,pn(fn,{brighter(e){return e=null==e?gn:Math.pow(gn,e),new Rn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?mn:Math.pow(mn,e),new Rn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rn(Yn(this.r),Yn(this.g),Yn(this.b),jn(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:Pn,formatHex:Pn,formatHex8:function(){return`#${Vn(this.r)}${Vn(this.g)}${Vn(this.b)}${Vn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Fn,toString:Fn})),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 Rn($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),jn(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=jn(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=1,Jn=.82521,Qn=4/29,er=6/29,tr=3*er*er,nr=er*er*er;function rr(e){if(e instanceof or)return new or(e.l,e.a,e.b,e.opacity);if(e instanceof hr)return pr(e);e instanceof Rn||(e=On(e));var t,n,r=cr(e.r),i=cr(e.g),o=cr(e.b),s=sr((.2225045*r+.7168786*i+.0606169*o)/Xn);return r===i&&i===o?t=n=s:(t=sr((.4360747*r+.3850649*i+.1430804*o)/Zn),n=sr((.0139322*r+.0971045*i+.7141733*o)/Jn)),new or(116*s-16,500*(t-s),200*(s-n),e.opacity)}function ir(e,t,n,r){return 1===arguments.length?rr(e):new or(e,t,n,null==r?1:r)}function or(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function sr(e){return e>nr?Math.pow(e,1/3):e/tr+Qn}function ar(e){return e>er?e*e*e:tr*(e-Qn)}function lr(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function cr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ur(e){if(e instanceof hr)return new hr(e.h,e.c,e.l,e.opacity);if(e instanceof or||(e=rr(e)),0===e.a&&0===e.b)return new hr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Kn;return new hr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function dr(e,t,n,r){return 1===arguments.length?ur(e):new hr(e,t,n,null==r?1:r)}function hr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function pr(e){if(isNaN(e.h))return new or(e.l,0,0,e.opacity);var t=e.h*Gn;return new or(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}hn(or,ir,pn(fn,{brighter(e){return new or(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new or(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 Rn(lr(3.1338561*(t=Zn*ar(t))-1.6168667*(e=Xn*ar(e))-.4906146*(n=Jn*ar(n))),lr(-.9787684*t+1.9161415*e+.033454*n),lr(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),hn(hr,dr,pn(fn,{brighter(e){return new hr(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new hr(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return pr(this).rgb()}}));var fr=-.14861,mr=1.78277,gr=-.29227,vr=-.90649,yr=1.97294,br=yr*vr,_r=yr*mr,wr=mr*gr-vr*fr;function xr(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Sr)return new Sr(e.h,e.s,e.l,e.opacity);e instanceof Rn||(e=On(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(wr*r+br*t-_r*n)/(wr+br-_r),o=r-i,s=(yr*(n-i)-gr*o)/vr,a=Math.sqrt(s*s+o*o)/(yr*i*(1-i)),l=a?Math.atan2(s,o)*Kn-120:NaN;return new Sr(l<0?l+360:l,a,i,e.opacity)}(e):new Sr(e,t,n,null==r?1:r)}function Sr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function kr(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 Er(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 kr((n-r/t)*t,s,i,o,a)}}function Tr(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 kr((n-r/t)*t,i,o,s,a)}}hn(Sr,xr,pn(fn,{brighter(e){return e=null==e?gn:Math.pow(gn,e),new Sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?mn:Math.pow(mn,e),new Sr(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 Rn(255*(t+n*(fr*r+mr*i)),255*(t+n*(gr*r+vr*i)),255*(t+n*(yr*r)),this.opacity)}}));var Cr=e=>()=>e;function Dr(e,t){return function(n){return e+n*t}}function Mr(e,t){var n=t-e;return n?Dr(e,n>180||n<-180?n-360*Math.round(n/360):n):Cr(isNaN(e)?t:e)}function Ar(e,t){var n=t-e;return n?Dr(e,n):Cr(isNaN(e)?t:e)}var Ir=function e(t){var n=function(e){return 1==(e=+e)?Ar: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):Cr(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=Ar(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 Lr(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=Lr(Er),Nr=Lr(Tr);function Rr(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 Fr(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]=zr(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 Yr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Vr(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]=zr(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Hr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Br=new RegExp(Hr.source,"g");function Ur(e,t){var n,r,i,o=Hr.lastIndex=Br.lastIndex=0,s=-1,a=[],l=[];for(e+="",t+="";(n=Hr.exec(e))&&(r=Br.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:Yr(n,r)})),o=Br.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 zr(e,t){var n,r=typeof t;return null==t||"boolean"===r?Cr(t):("number"===r?Yr:"string"===r?(n=An(t))?(t=n,Ir):Ur:t instanceof An?Ir:t instanceof Date?jr:Pr(t)?Rr:Array.isArray(t)?Fr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Vr:Yr)(e,t)}function qr(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Wr,$r=180/Math.PI,Gr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Kr(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)*$r,skewX:Math.atan(l)*$r,scaleX:s,scaleY:a}}function Zr(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:Yr(e,i)},{i:l-2,x:Yr(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:Yr(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:Yr(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:Yr(e,n)},{i:a-2,x:Yr(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 Xr=Zr((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Gr:Kr(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Jr=Zr((function(e){return null==e?Gr:(Wr||(Wr=document.createElementNS("http://www.w3.org/2000/svg","g")),Wr.setAttribute("transform",e),(e=Wr.transform.baseVal.consolidate())?Kr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Gr)}),", ",")",")");function Qr(e){return((e=Math.exp(e))+1/e)/2}var ei=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 ti(e){return function(t,n){var r=e((t=Un(t)).h,(n=Un(n)).h),i=Ar(t.s,n.s),o=Ar(t.l,n.l),s=Ar(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 ni=ti(Mr),ri=ti(Ar);function ii(e){return function(t,n){var r=e((t=dr(t)).h,(n=dr(n)).h),i=Ar(t.c,n.c),o=Ar(t.l,n.l),s=Ar(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 oi=ii(Mr),si=ii(Ar);function ai(e){return function t(n){function r(t,r){var i=e((t=xr(t)).h,(r=xr(r)).h),o=Ar(t.s,r.s),s=Ar(t.l,r.l),a=Ar(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 li=ai(Mr),ci=ai(Ar);function ui(e,t){void 0===t&&(t=e,e=zr);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 di,hi,pi=0,fi=0,mi=0,gi=1e3,vi=0,yi=0,bi=0,_i="object"==typeof performance&&performance.now?performance:Date,wi="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function xi(){return yi||(wi(Si),yi=_i.now()+bi)}function Si(){yi=0}function ki(){this._call=this._time=this._next=null}function Ei(e,t,n){var r=new ki;return r.restart(e,t,n),r}function Ti(){xi(),++pi;for(var e,t=di;t;)(e=yi-t._time)>=0&&t._call.call(void 0,e),t=t._next;--pi}function Ci(){yi=(vi=_i.now())+bi,pi=fi=0;try{Ti()}finally{pi=0,function(){for(var e,t,n=di,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:di=t);hi=e,Mi(r)}(),yi=0}}function Di(){var e=_i.now(),t=e-vi;t>gi&&(bi-=t,vi=e)}function Mi(e){pi||(fi&&(fi=clearTimeout(fi)),e-yi>24?(e<1/0&&(fi=setTimeout(Ci,e-_i.now()-bi)),mi&&(mi=clearInterval(mi))):(mi||(vi=_i.now(),mi=setInterval(Di,gi)),pi=1,wi(Ci)))}function Ai(e,t,n){var r=new ki;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}ki.prototype=Ei.prototype={constructor:ki,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?xi():+n)+(null==t?0:+t),this._next||hi===this||(hi?hi._next=this:di=this,hi=this),this._call=e,this._time=n,Mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,Mi())}};var Ii=Ie("start","end","cancel","interrupt"),Li=[],Oi=0,Ni=2,Ri=3,Pi=5,Fi=6;function ji(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(h.state===Ri)return Ai(o);4===h.state?(h.state=Fi,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=Fi,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(Ai((function(){n.state===Ri&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))})),n.state=Ni,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Ni){for(n.state=Ri,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=Pi,1),o=-1,s=r.length;++o<s;)r[o].call(e,i);n.state===Pi&&(n.on.call("end",e,e.__data__,n.index,n.group),a())}function a(){for(var r in n.state=Fi,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=Ei((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:Ii,tween:Li,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Oi})}function Yi(e,t){var n=Hi(e,t);if(n.state>Oi)throw new Error("too late; already scheduled");return n}function Vi(e,t){var n=Hi(e,t);if(n.state>Ri)throw new Error("too late; already running");return n}function Hi(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Bi(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>Ni&&n.state<Pi,n.state=Fi,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 Ui(e,t){var n,r;return function(){var i=Vi(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 zi(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Vi(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 qi(e,t,n){var r=e._id;return e.each((function(){var e=Vi(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Hi(e,r).value[t]}}function Wi(e,t){var n;return("number"==typeof t?Yr:t instanceof An?Ir:(n=An(t))?(t=n,Ir):Ur)(e,t)}function $i(e){return function(){this.removeAttribute(e)}}function Gi(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ki(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 Zi(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 Xi(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 Ji(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 Qi(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 eo(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 to(e,t){return function(){Yi(this,e).delay=+t.apply(this,arguments)}}function no(e,t){return t=+t,function(){Yi(this,e).delay=t}}function ro(e,t){return function(){Vi(this,e).duration=+t.apply(this,arguments)}}function io(e,t){return t=+t,function(){Vi(this,e).duration=t}}var oo=Wt.prototype.constructor;function so(e){return function(){this.style.removeProperty(e)}}var ao=0;function lo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function co(e){return Wt().transition(e)}function uo(){return++ao}var ho=Wt.prototype;function po(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function fo(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}lo.prototype=co.prototype={constructor:lo,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Be(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,ji(d[h],t,n,h,d,Hi(a,n)));return new lo(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=Hi(l,n),m=0,g=p.length;m<g;++m)(h=p[m])&&ji(h,t,n,m,p,f);o.push(p),s.push(l)}return new lo(o,s,t,n)},selectChild:ho.selectChild,selectChildren:ho.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 lo(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 lo(s,this._parents,this._name,this._id)},selection:function(){return new oo(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=uo(),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=Hi(s,t);ji(s,e,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new lo(r,this._parents,e,n)},call:ho.call,nodes:ho.nodes,node:ho.node,size:ho.size,empty:ho.empty,each:ho.each,on:function(e,t){var n=this._id;return arguments.length<2?Hi(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)?Yi:Vi;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=Fe(e),r="transform"===n?Jr:Wi;return this.attrTween(e,"function"==typeof t?(n.local?Ji:Xi)(n,r,qi(this,"attr."+e,t)):null==t?(n.local?Gi:$i)(n):(n.local?Zi:Ki)(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=Fe(e);return this.tween(n,(r.local?Qi:eo)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Xr:Wi;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,so(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,qi(this,"style."+e,t))).each(function(e,t){var n,r,i,o,s="style."+t,a="end."+s;return function(){var l=Vi(this,e),c=l.on,u=null==l.value[s]?o||(o=so(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}}(qi(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=Hi(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?Ui:zi)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?to:no)(t,e)):Hi(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?ro:io)(t,e)):Hi(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(){Vi(this,e).ease=t}}(t,e)):Hi(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;Vi(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=Vi(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]:ho[Symbol.iterator]};var mo=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),go=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),vo=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),yo=Math.PI,bo=yo/2;function _o(e){return(1-Math.cos(yo*e))/2}function wo(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function xo(e){return((e*=2)<=1?wo(1-e):2-wo(e-1))/2}function So(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var ko=4/11,Eo=6/11,To=8/11,Co=9/11,Do=10/11,Mo=21/22,Ao=7.5625;function Io(e){return(e=+e)<ko?Ao*e*e:e<To?Ao*(e-=Eo)*e+.75:e<Do?Ao*(e-=Co)*e+.9375:Ao*(e-=Mo)*e+.984375}var Lo=1.70158,Oo=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(Lo),No=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(Lo),Ro=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}(Lo),Po=2*Math.PI,Fo=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Po);function i(e){return t*wo(- --e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*Po)},i.period=function(n){return e(t,n)},i}(1,.3),jo=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Po);function i(e){return 1-t*wo(e=+e)*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*Po)},i.period=function(n){return e(t,n)},i}(1,.3),Yo=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Po);function i(e){return((e=2*e-1)<0?t*wo(-e)*Math.sin((r-e)/n):2-t*wo(e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*Po)},i.period=function(n){return e(t,n)},i}(1,.3),Vo={time:null,delay:0,duration:250,ease:fo};function Ho(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(){Bi(this,e)}))},Wt.prototype.transition=function(e){var t,n;e instanceof lo?(t=e._id,e=e._name):(t=uo(),(n=Vo).time=xi(),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])&&ji(s,e,t,c,a,n||Ho(s,t));return new lo(r,this._parents,e,t)};var Bo=[null],Uo=e=>()=>e;function zo(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 qo(e){e.preventDefault(),e.stopImmediatePropagation()}var Wo={name:"drag"},$o={name:"space"},Go={name:"handle"},Ko={name:"center"};const{abs:Zo,max:Xo,min:Jo}=Math;function Qo(e){return[+e[0],+e[1]]}function es(e){return[Qo(e[0]),Qo(e[1])]}var ts={name:"x",handles:["w","e"].map(cs),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]]}},ns={name:"y",handles:["n","s"].map(cs),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]]}},rs={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(cs),input:function(e){return null==e?null:es(e)},output:function(e){return e}},is={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"},os={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ss={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},as={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ls={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function cs(e){return{type:e}}function us(e){return!e.ctrlKey&&!e.button}function ds(){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 hs(){return navigator.maxTouchPoints||"ontouchstart"in this}function ps(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function fs(e){var t,n=ds,r=us,i=hs,o=!0,s=Ie("start","brush","end"),a=6;function l(t){var n=t.property("__brush",m).selectAll(".overlay").data([cs("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",is.overlay).merge(n).each((function(){var e=ps(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([cs("selection")]).enter().append("rect").attr("class","selection").attr("cursor",is.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 is[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=ps(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)?Wo:o&&n.altKey?Ko:Go,w=e===ns?null:as[b],x=e===ts?null:ls[b],S=ps(y),k=S.extent,E=S.selection,T=k[0][0],C=k[0][1],D=k[1][0],M=k[1][1],A=0,I=0,L=w&&x&&o&&n.shiftKey,O=Array.from(n.touches||[n],(e=>{const t=e.identifier;return(e=Jt(e,y)).point0=e.slice(),e.identifier=t,e}));Bi(y);var N=u(y,arguments,!0).beforestart();if("overlay"===b){E&&(m=!0);const t=[O[0],O[1]||O[0]];S.selection=E=[[i=e===ns?T:Jo(t[0][0],t[1][0]),a=e===ts?C:Jo(t[0][1],t[1][1])],[d=e===ns?D:Xo(t[0][0],t[1][0]),p=e===ts?M:Xo(t[0][1],t[1][1])]],O.length>1&&Y(n)}else i=E[0][0],a=E[0][1],d=E[1][0],p=E[1][1];s=i,l=a,h=d,f=p;var R=$t(y).attr("pointer-events","none"),P=R.selectAll(".overlay").attr("cursor",is[b]);if(n.touches)N.moved=j,N.ended=V;else{var F=$t(n.view).on("mousemove.brush",j,!0).on("mouseup.brush",V,!0);o&&F.on("keydown.brush",(function(e){switch(e.keyCode){case 16:L=w&&x;break;case 18:_===Go&&(w&&(d=h-A*w,i=s+A*w),x&&(p=f-I*x,a=l+I*x),_=Ko,Y(e));break;case 32:_!==Go&&_!==Ko||(w<0?d=h-A:w>0&&(i=s-A),x<0?p=f-I:x>0&&(a=l-I),_=$o,P.attr("cursor",is.selection),Y(e));break;default:return}qo(e)}),!0).on("keyup.brush",(function(e){switch(e.keyCode){case 16:L&&(g=v=L=!1,Y(e));break;case 18:_===Ko&&(w<0?d=h:w>0&&(i=s),x<0?p=f:x>0&&(a=l),_=Go,Y(e));break;case 32:_===$o&&(e.altKey?(w&&(d=h-A*w,i=s+A*w),x&&(p=f-I*x,a=l+I*x),_=Ko):(w<0?d=h:w>0&&(i=s),x<0?p=f:x>0&&(a=l),_=Go),P.attr("cursor",is[b]),Y(e));break;default:return}qo(e)}),!0),rn(n.view)}c.call(y),N.start(n,_.name)}function j(e){for(const t of e.changedTouches||[e])for(const e of O)e.identifier===t.identifier&&(e.cur=Jt(t,y));if(L&&!g&&!v&&1===O.length){const e=O[0];Zo(e.cur[0]-e[0])>Zo(e.cur[1]-e[1])?v=!0:g=!0}for(const e of O)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);m=!0,qo(e),Y(e)}function Y(e){const t=O[0],n=t.point0;var r;switch(A=t[0]-n[0],I=t[1]-n[1],_){case $o:case Wo:w&&(A=Xo(T-i,Jo(D-d,A)),s=i+A,h=d+A),x&&(I=Xo(C-a,Jo(M-p,I)),l=a+I,f=p+I);break;case Go:O[1]?(w&&(s=Xo(T,Jo(D,O[0][0])),h=Xo(T,Jo(D,O[1][0])),w=1),x&&(l=Xo(C,Jo(M,O[0][1])),f=Xo(C,Jo(M,O[1][1])),x=1)):(w<0?(A=Xo(T-i,Jo(D-i,A)),s=i+A,h=d):w>0&&(A=Xo(T-d,Jo(D-d,A)),s=i,h=d+A),x<0?(I=Xo(C-a,Jo(M-a,I)),l=a+I,f=p):x>0&&(I=Xo(C-p,Jo(M-p,I)),l=a,f=p+I));break;case Ko:w&&(s=Xo(T,Jo(D,i-A*w)),h=Xo(T,Jo(D,d+A*w))),x&&(l=Xo(C,Jo(M,a-I*x)),f=Xo(C,Jo(M,p+I*x)))}h<s&&(w*=-1,r=i,i=d,d=r,r=s,s=h,h=r,b in os&&P.attr("cursor",is[b=os[b]])),f<l&&(x*=-1,r=a,a=p,p=r,r=l,l=f,f=r,b in ss&&P.attr("cursor",is[b=ss[b]])),S.selection&&(E=S.selection),g&&(s=E[0][0],h=E[1][0]),v&&(l=E[0][1],f=E[1][1]),E[0][0]===s&&E[0][1]===l&&E[1][0]===h&&E[1][1]===f||(S.selection=[[s,l],[h,f]],c.call(y),N.brush(e,_.name))}function V(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),F.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);R.attr("pointer-events","all"),P.attr("cursor",is.overlay),S.selection&&(E=S.selection),function(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}(E)&&(S.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=es(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=zr(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();Bi(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 zo(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:Uo(es(e)),l):n},l.filter=function(e){return arguments.length?(r="function"==typeof e?e:Uo(!!e),l):r},l.touchable=function(e){return arguments.length?(i="function"==typeof e?e:Uo(!!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 ms=Math.abs,gs=Math.cos,vs=Math.sin,ys=Math.PI,bs=ys/2,_s=2*ys,ws=Math.max,xs=1e-12;function Ss(e,t){return Array.from({length:t-e},((t,n)=>e+n))}function ks(e,t){var n=0,r=null,i=null,o=null;function s(s){var a,l=s.length,c=new Array(l),u=Ss(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=ws(0,_s-n*l)/p)?n:_s/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=Ss(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=Ss(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=ws(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 Es=Math.PI,Ts=2*Es,Cs=1e-6,Ds=Ts-Cs;function Ms(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}let As=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Ms:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ms;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>Cs)if(Math.abs(u*a-l*c)>Cs&&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((Es-Math.acos((f+d-m)/(2*g*v)))/2),b=y/v,_=y/g;Math.abs(b-1)>Cs&&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)>Cs||Math.abs(this._y1-c)>Cs)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Ts+Ts),d>Ds?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>Cs&&this._append`A${n},${n},0,${+(d>=Es)},${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 Is(){return new As}Is.prototype=As.prototype;var Ls=Array.prototype.slice;function Os(e){return function(){return e}}function Ns(e){return e.source}function Rs(e){return e.target}function Ps(e){return e.radius}function Fs(e){return e.startAngle}function js(e){return e.endAngle}function Ys(){return 0}function Vs(){return 10}function Hs(e){var t=Ns,n=Rs,r=Ps,i=Ps,o=Fs,s=js,a=Ys,l=null;function c(){var c,u=t.apply(this,arguments),d=n.apply(this,arguments),h=a.apply(this,arguments)/2,p=Ls.call(arguments),f=+r.apply(this,(p[0]=u,p)),m=o.apply(this,p)-bs,g=s.apply(this,p)-bs,v=+i.apply(this,(p[0]=d,p)),y=o.apply(this,p)-bs,b=s.apply(this,p)-bs;if(l||(l=c=Is()),h>xs&&(ms(g-m)>2*h+xs?g>m?(m+=h,g-=h):(m-=h,g+=h):m=g=(m+g)/2,ms(b-y)>2*h+xs?b>y?(y+=h,b-=h):(y-=h,b+=h):y=b=(y+b)/2),l.moveTo(f*gs(m),f*vs(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,_*gs(y),_*vs(y)),l.lineTo(v*gs(w),v*vs(w)),l.lineTo(_*gs(b),_*vs(b))}else l.quadraticCurveTo(0,0,v*gs(y),v*vs(y)),l.arc(0,0,v,y,b);if(l.quadraticCurveTo(0,0,f*gs(m),f*vs(m)),l.closePath(),c)return l=null,c+""||null}return e&&(c.headRadius=function(t){return arguments.length?(e="function"==typeof t?t:Os(+t),c):e}),c.radius=function(e){return arguments.length?(r=i="function"==typeof e?e:Os(+e),c):r},c.sourceRadius=function(e){return arguments.length?(r="function"==typeof e?e:Os(+e),c):r},c.targetRadius=function(e){return arguments.length?(i="function"==typeof e?e:Os(+e),c):i},c.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:Os(+e),c):o},c.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:Os(+e),c):s},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Os(+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 Bs=Array.prototype.slice;function Us(e,t){return e-t}var zs=e=>()=>e;function qs(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=Ws(e,t[r]))return n;return 0}function Ws(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($s(l,d,t))return 0;u>r!=p>r&&n<(h-c)*(r-u)/(p-u)+c&&(i=-i)}return i}function $s(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 Gs(){}var Ks=[[],[[[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 Zs(){var e=1,t=1,n=Q,r=a;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Us);else{const n=S(e,Xs);for(t=K(...J(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=Js(n[0],r),Ks[c<<1].forEach(f);++o<e-1;)l=c,c=Js(n[o+1],r),Ks[l|c<<1].forEach(f);for(Ks[c|0].forEach(f);++a<t-1;){for(o=-1,c=Js(n[a*e+e],r),u=Js(n[a*e],r),Ks[c<<1|u<<2].forEach(f);++o<e-1;)l=c,c=Js(n[a*e+e+o+1],r),d=u,u=Js(n[a*e+o+1],r),Ks[l|c<<1|u<<2|d<<3].forEach(f);Ks[c|u<<3].forEach(f)}for(o=-1,u=n[a*e]>=r,Ks[u<<2].forEach(f);++o<e-1;)d=u,u=Js(n[a*e+o+1],r),Ks[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]}}Ks[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!==qs((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=Qs(r[l*e+a]);o>0&&o<e&&a===o&&(n[0]=ea(o,Qs(r[l*e+a-1]),c,i)),s>0&&s<t&&l===s&&(n[1]=ea(s,Qs(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)?zs(Bs.call(e)):zs(e),i):n},i.smooth=function(e){return arguments.length?(r=e?a:Gs,i):r===a},i}function Xs(e){return isFinite(e)?e:NaN}function Js(e,t){return null!=e&&+e>=t}function Qs(e){return null==e||isNaN(e=+e)?-1/0:e}function ea(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 ta(e){return e[0]}function na(e){return e[1]}function ra(){return 1}const ia=134217729;function oa(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 sa(e){return new Float64Array(e)}const aa=sa(4),la=sa(8),ca=sa(12),ua=sa(16),da=sa(4);function ha(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,x,S,k;const E=e-i,T=n-i,C=t-o,D=r-o;_=E*D,h=ia*E,p=h-(h-E),f=E-p,h=ia*D,m=h-(h-D),g=D-m,w=f*g-(_-p*m-f*m-p*g),x=C*T,h=ia*C,p=h-(h-C),f=C-p,h=ia*T,m=h-(h-T),g=T-m,S=f*g-(x-p*m-f*m-p*g),v=w-S,d=w-v,aa[0]=w-(v+d)+(d-S),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-x,d=b-v,aa[1]=b-(v+d)+(d-x),k=y+v,d=k-y,aa[2]=y-(k-d)+(v-d),aa[3]=k;let M=function(e,t){let n=t[0];for(let e=1;e<4;e++)n+=t[e];return n}(0,aa),A=22204460492503146e-32*s;if(M>=A||-M>=A)return M;if(d=e-E,a=e-(E+d)+(d-i),d=n-T,c=n-(T+d)+(d-i),d=t-C,l=t-(C+d)+(d-o),d=r-D,u=r-(D+d)+(d-o),0===a&&0===l&&0===c&&0===u)return M;if(A=11093356479670487e-47*s+33306690738754706e-32*Math.abs(M),M+=E*u+D*a-(C*c+T*l),M>=A||-M>=A)return M;_=a*D,h=ia*a,p=h-(h-a),f=a-p,h=ia*D,m=h-(h-D),g=D-m,w=f*g-(_-p*m-f*m-p*g),x=l*T,h=ia*l,p=h-(h-l),f=l-p,h=ia*T,m=h-(h-T),g=T-m,S=f*g-(x-p*m-f*m-p*g),v=w-S,d=w-v,da[0]=w-(v+d)+(d-S),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-x,d=b-v,da[1]=b-(v+d)+(d-x),k=y+v,d=k-y,da[2]=y-(k-d)+(v-d),da[3]=k;const I=oa(4,aa,4,da,la);_=E*u,h=ia*E,p=h-(h-E),f=E-p,h=ia*u,m=h-(h-u),g=u-m,w=f*g-(_-p*m-f*m-p*g),x=C*c,h=ia*C,p=h-(h-C),f=C-p,h=ia*c,m=h-(h-c),g=c-m,S=f*g-(x-p*m-f*m-p*g),v=w-S,d=w-v,da[0]=w-(v+d)+(d-S),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-x,d=b-v,da[1]=b-(v+d)+(d-x),k=y+v,d=k-y,da[2]=y-(k-d)+(v-d),da[3]=k;const L=oa(I,la,4,da,ca);_=a*u,h=ia*a,p=h-(h-a),f=a-p,h=ia*u,m=h-(h-u),g=u-m,w=f*g-(_-p*m-f*m-p*g),x=l*c,h=ia*l,p=h-(h-l),f=l-p,h=ia*c,m=h-(h-c),g=c-m,S=f*g-(x-p*m-f*m-p*g),v=w-S,d=w-v,da[0]=w-(v+d)+(d-S),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-x,d=b-v,da[1]=b-(v+d)+(d-x),k=y+v,d=k-y,da[2]=y-(k-d)+(v-d),da[3]=k;const O=oa(L,ca,4,da,ua);return ua[O-1]}(e,t,n,r,i,o,c)}const pa=Math.pow(2,-52),fa=new Uint32Array(512);class ma{static from(e,t=wa,n=xa){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 ma(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=ga(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=ga(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=ya(g,v,y,b,e[2*t],e[2*t+1]);n<_&&(f=t,_=n)}let w=e[2*f],x=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];ba(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(ha(g,v,y,b,w,x)<0){const e=p,t=y,n=b;p=f,y=w,b=x,f=e,w=t,x=n}const S=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,x);this._cx=S.x,this._cy=S.y;for(let t=0;t<o;t++)this._dists[t]=ga(e[2*t],e[2*t+1],S.x,S.y);ba(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,x)]=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)<=pa&&Math.abs(u-s)<=pa)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],ha(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],ha(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],ha(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=fa[--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(va(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<fa.length&&(fa[i++]=a)}else{if(0===i)break;e=fa[--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 ga(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function va(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 ya(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 ba(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;_a(e,n+r>>1,i),t[e[n]]>t[e[r]]&&_a(e,n,r),t[e[i]]>t[e[r]]&&_a(e,i,r),t[e[n]]>t[e[i]]&&_a(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;_a(e,i,o)}e[n+1]=e[o],e[o]=s,r-i+1>=o-n?(ba(e,t,i,r),ba(e,t,n,o-1)):(ba(e,t,n,o-1),ba(e,t,i,r))}}function _a(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function wa(e){return e[0]}function xa(e){return e[1]}const Sa=1e-6;class ka{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)>Sa||Math.abs(this._y1-i)>Sa)&&(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 Ea{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 Ta{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,x=y-f,S=2*(b*x-_*w);if(Math.abs(S)<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)*x-(o-f)*w);r=(p+v)/2-n*x,a=(f+y)/2+n*w}else{const e=1/S,t=b*b+_*_,n=w*w+x*x;r=p+(x*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 ka: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 ka: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 ka: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 Ea;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 Ca=2*Math.PI,Da=Math.pow;function Ma(e){return e[0]}function Aa(e){return e[1]}function Ia(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class La{static from(e,t=Ma,n=Aa,r){return new La("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 ma(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=Ia(t[2*e],t[2*e+1],i);t[2*e]=n[0],t[2*e+1]=n[1]}this._delaunator=new ma(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 Ta(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=Da(t-l[2*e],2)+Da(n-l[2*e+1],2);const d=r[e];let h=d;do{let r=a[h];const d=Da(t-l[2*r],2)+Da(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&&Da(t-l[2*h],2)+Da(n-l[2*h+1],2)<u)return h;break}}while(h!==d);return c}render(e){const t=null==e?e=new ka: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 ka: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,Ca)}return n&&n.value()}renderHull(e){const t=null==e?e=new ka: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 Ea;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new ka: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 Ea;return this.renderTriangle(e,t),t.value()}}var Oa={},Na={};function Ra(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function Pa(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 Fa(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function ja(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 Na;if(c)return c=!1,Oa;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())!==Na;){for(var d=[];r!==Oa&&r!==Na;)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?"-"+Fa(-t,6):t>9999?"+"+Fa(t,6):Fa(t,4))+"-"+Fa(e.getUTCMonth()+1,2)+"-"+Fa(e.getUTCDate(),2)+(o?"T"+Fa(n,2)+":"+Fa(r,2)+":"+Fa(i,2)+"."+Fa(o,3)+"Z":i?"T"+Fa(n,2)+":"+Fa(r,2)+":"+Fa(i,2)+"Z":r||n?"T"+Fa(n,2)+":"+Fa(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=Ra(e);return function(r,i){return t(n(r),i,e)}}(e,t):Ra(e)}));return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=Pa(t)),[n.map(s).join(e)].concat(i(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=Pa(e)),i(e,t).join("\n")},formatRows:function(e){return e.map(o).join("\n")},formatRow:o,formatValue:s}}var Ya=ja(","),Va=Ya.parse,Ha=Ya.parseRows,Ba=Ya.format,Ua=Ya.formatBody,za=Ya.formatRows,qa=Ya.formatRow,Wa=Ya.formatValue,$a=ja("\t"),Ga=$a.parse,Ka=$a.parseRows,Za=$a.format,Xa=$a.formatBody,Ja=$a.formatRows,Qa=$a.formatRow,el=$a.formatValue;const tl=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function nl(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function rl(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function il(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function ol(e,t){return fetch(e,t).then(il)}function sl(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),ol(t,n).then((function(t){return e(t,r)}))}}var al=sl(Va),ll=sl(Ga);function cl(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(204!==e.status&&205!==e.status)return e.json()}function ul(e){return(t,n)=>ol(t,n).then((t=>(new DOMParser).parseFromString(t,e)))}var dl=ul("application/xml"),hl=ul("text/html"),pl=ul("image/svg+xml");function fl(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 ml(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function gl(e){return e[0]}function vl(e){return e[1]}function yl(e,t,n){var r=new bl(null==t?gl:t,null==n?vl:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function bl(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 _l(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var wl=yl.prototype=bl.prototype;function xl(e){return function(){return e}}function Sl(e){return 1e-6*(e()-.5)}function kl(e){return e.x+e.vx}function El(e){return e.y+e.vy}function Tl(e){return e.index}function Cl(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}wl.copy=function(){var e,t,n=new bl(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=_l(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]=_l(t));return n},wl.add=function(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return fl(this.cover(t,n),t,n,e)},wl.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)fl(this,s[n],a[n],e[n]);return this},wl.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},wl.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},wl.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]]},wl.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 ml(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 ml(m[3],g,v,s,a),new ml(m[2],i,v,g,a),new ml(m[1],g,o,s,v),new ml(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},wl.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)},wl.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},wl.root=function(){return this._root},wl.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},wl.visit=function(e){var t,n,r,i,o,s,a=[],l=this._root;for(l&&a.push(new ml(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 ml(n,c,u,o,s)),(n=l[2])&&a.push(new ml(n,r,u,c,s)),(n=l[1])&&a.push(new ml(n,c,i,o,u)),(n=l[0])&&a.push(new ml(n,r,i,c,u))}return this},wl.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new ml(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 ml(o,s,a,u,d)),(o=i[1])&&n.push(new ml(o,u,a,l,d)),(o=i[2])&&n.push(new ml(o,s,d,u,c)),(o=i[3])&&n.push(new ml(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},wl.x=function(e){return arguments.length?(this._x=e,this):this._x},wl.y=function(e){return arguments.length?(this._y=e,this):this._y};const Dl=4294967296;function Ml(e){return e.x}function Al(e){return e.y}var Il=Math.PI*(3-Math.sqrt(5));function Ll(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 Ol(e){return(e=Ll(Math.abs(e)))?e[1]:NaN}var Nl,Rl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pl(e){if(!(t=Rl.exec(e)))throw new Error("invalid format: "+e);var t;return new Fl({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 Fl(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 jl(e,t){var n=Ll(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")}Pl.prototype=Fl.prototype,Fl.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 Yl={"%":(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)=>jl(100*e,t),r:jl,s:function(e,t){var n=Ll(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Nl=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")+Ll(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Vl(e){return e}var Hl,Bl=Array.prototype.map,Ul=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function zl(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Vl:(t=Bl.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?Vl:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Bl.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=Pl(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"):Yl[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=Yl[y],x=/[defgprs%]/.test(y);function S(e){var i,o,l,h=b,S=_;if("c"===y)S=w(e)+S,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,S=("s"===y?Ul[8+Nl/3]:"")+S+(k&&"("===d?")":""),x)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){S=(46===l?s+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}m&&!p&&(e=r(e,1/0));var E=h.length+e.length+S.length,T=E<f?new Array(f-E+1).join(t):"";switch(m&&p&&(e=r(T+e,T.length?f-S.length:1/0),T=""),n){case"<":e=h+e+S+T;break;case"=":e=h+T+e+S;break;case"^":e=T.slice(0,E=T.length>>1)+h+e+S+T.slice(E);break;default:e=T+h+e+S}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)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=Pl(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ol(t)/3))),i=Math.pow(10,-r),o=Ul[8+r/3];return function(e){return n(i*e)+o}}}}function ql(t){return Hl=zl(t),e.format=Hl.format,e.formatPrefix=Hl.formatPrefix,Hl}function Wl(e){return Math.max(0,-Ol(Math.abs(e)))}function $l(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ol(t)/3)))-Ol(Math.abs(e)))}function Gl(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ol(t)-Ol(e))+1}e.format=void 0,e.formatPrefix=void 0,ql({thousands:",",grouping:[3],currency:["$",""]});var Kl=1e-6,Zl=1e-12,Xl=Math.PI,Jl=Xl/2,Ql=Xl/4,ec=2*Xl,tc=180/Xl,nc=Xl/180,rc=Math.abs,ic=Math.atan,oc=Math.atan2,sc=Math.cos,ac=Math.ceil,lc=Math.exp,cc=Math.hypot,uc=Math.log,dc=Math.pow,hc=Math.sin,pc=Math.sign||function(e){return e>0?1:e<0?-1:0},fc=Math.sqrt,mc=Math.tan;function gc(e){return e>1?0:e<-1?Xl:Math.acos(e)}function vc(e){return e>1?Jl:e<-1?-Jl:Math.asin(e)}function yc(e){return(e=hc(e/2))*e}function bc(){}function _c(e,t){e&&xc.hasOwnProperty(e.type)&&xc[e.type](e,t)}var wc={Feature:function(e,t){_c(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)_c(n[r].geometry,t)}},xc={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){Sc(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Sc(n[r],t,0)},Polygon:function(e,t){kc(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)kc(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)_c(n[r],t)}};function Sc(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 kc(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)Sc(e[n],t,1);t.polygonEnd()}function Ec(e,t){e&&wc.hasOwnProperty(e.type)?wc[e.type](e,t):_c(e,t)}var Tc,Cc,Dc,Mc,Ac,Ic,Lc,Oc,Nc,Rc,Pc,Fc,jc,Yc,Vc,Hc,Bc=new k,Uc=new k,zc={point:bc,lineStart:bc,lineEnd:bc,polygonStart:function(){Bc=new k,zc.lineStart=qc,zc.lineEnd=Wc},polygonEnd:function(){var e=+Bc;Uc.add(e<0?ec+e:e),this.lineStart=this.lineEnd=this.point=bc},sphere:function(){Uc.add(ec)}};function qc(){zc.point=$c}function Wc(){Gc(Tc,Cc)}function $c(e,t){zc.point=Gc,Tc=e,Cc=t,Dc=e*=nc,Mc=sc(t=(t*=nc)/2+Ql),Ac=hc(t)}function Gc(e,t){var n=(e*=nc)-Dc,r=n>=0?1:-1,i=r*n,o=sc(t=(t*=nc)/2+Ql),s=hc(t),a=Ac*s,l=Mc*o+a*sc(i),c=a*r*hc(i);Bc.add(oc(c,l)),Dc=e,Mc=o,Ac=s}function Kc(e){return[oc(e[1],e[0]),vc(e[2])]}function Zc(e){var t=e[0],n=e[1],r=sc(n);return[r*sc(t),r*hc(t),hc(n)]}function Xc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Jc(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 Qc(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function eu(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function tu(e){var t=fc(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var nu,ru,iu,ou,su,au,lu,cu,uu,du,hu,pu,fu,mu,gu,vu,yu={point:bu,lineStart:wu,lineEnd:xu,polygonStart:function(){yu.point=Su,yu.lineStart=ku,yu.lineEnd=Eu,Yc=new k,zc.polygonStart()},polygonEnd:function(){zc.polygonEnd(),yu.point=bu,yu.lineStart=wu,yu.lineEnd=xu,Bc<0?(Ic=-(Oc=180),Lc=-(Nc=90)):Yc>Kl?Nc=90:Yc<-Kl&&(Lc=-90),Hc[0]=Ic,Hc[1]=Oc},sphere:function(){Ic=-(Oc=180),Lc=-(Nc=90)}};function bu(e,t){Vc.push(Hc=[Ic=e,Oc=e]),t<Lc&&(Lc=t),t>Nc&&(Nc=t)}function _u(e,t){var n=Zc([e*nc,t*nc]);if(jc){var r=Jc(jc,n),i=Jc([r[1],-r[0],0],r);tu(i),i=Kc(i);var o,s=e-Rc,a=s>0?1:-1,l=i[0]*tc*a,c=rc(s)>180;c^(a*Rc<l&&l<a*e)?(o=i[1]*tc)>Nc&&(Nc=o):c^(a*Rc<(l=(l+360)%360-180)&&l<a*e)?(o=-i[1]*tc)<Lc&&(Lc=o):(t<Lc&&(Lc=t),t>Nc&&(Nc=t)),c?e<Rc?Tu(Ic,e)>Tu(Ic,Oc)&&(Oc=e):Tu(e,Oc)>Tu(Ic,Oc)&&(Ic=e):Oc>=Ic?(e<Ic&&(Ic=e),e>Oc&&(Oc=e)):e>Rc?Tu(Ic,e)>Tu(Ic,Oc)&&(Oc=e):Tu(e,Oc)>Tu(Ic,Oc)&&(Ic=e)}else Vc.push(Hc=[Ic=e,Oc=e]);t<Lc&&(Lc=t),t>Nc&&(Nc=t),jc=n,Rc=e}function wu(){yu.point=_u}function xu(){Hc[0]=Ic,Hc[1]=Oc,yu.point=bu,jc=null}function Su(e,t){if(jc){var n=e-Rc;Yc.add(rc(n)>180?n+(n>0?360:-360):n)}else Pc=e,Fc=t;zc.point(e,t),_u(e,t)}function ku(){zc.lineStart()}function Eu(){Su(Pc,Fc),zc.lineEnd(),rc(Yc)>Kl&&(Ic=-(Oc=180)),Hc[0]=Ic,Hc[1]=Oc,jc=null}function Tu(e,t){return(t-=e)<0?t+360:t}function Cu(e,t){return e[0]-t[0]}function Du(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var Mu={sphere:bc,point:Au,lineStart:Lu,lineEnd:Ru,polygonStart:function(){Mu.lineStart=Pu,Mu.lineEnd=Fu},polygonEnd:function(){Mu.lineStart=Lu,Mu.lineEnd=Ru}};function Au(e,t){e*=nc;var n=sc(t*=nc);Iu(n*sc(e),n*hc(e),hc(t))}function Iu(e,t,n){++nu,iu+=(e-iu)/nu,ou+=(t-ou)/nu,su+=(n-su)/nu}function Lu(){Mu.point=Ou}function Ou(e,t){e*=nc;var n=sc(t*=nc);mu=n*sc(e),gu=n*hc(e),vu=hc(t),Mu.point=Nu,Iu(mu,gu,vu)}function Nu(e,t){e*=nc;var n=sc(t*=nc),r=n*sc(e),i=n*hc(e),o=hc(t),s=oc(fc((s=gu*o-vu*i)*s+(s=vu*r-mu*o)*s+(s=mu*i-gu*r)*s),mu*r+gu*i+vu*o);ru+=s,au+=s*(mu+(mu=r)),lu+=s*(gu+(gu=i)),cu+=s*(vu+(vu=o)),Iu(mu,gu,vu)}function Ru(){Mu.point=Au}function Pu(){Mu.point=ju}function Fu(){Yu(pu,fu),Mu.point=Au}function ju(e,t){pu=e,fu=t,e*=nc,t*=nc,Mu.point=Yu;var n=sc(t);mu=n*sc(e),gu=n*hc(e),vu=hc(t),Iu(mu,gu,vu)}function Yu(e,t){e*=nc;var n=sc(t*=nc),r=n*sc(e),i=n*hc(e),o=hc(t),s=gu*o-vu*i,a=vu*r-mu*o,l=mu*i-gu*r,c=cc(s,a,l),u=vc(c),d=c&&-u/c;uu.add(d*s),du.add(d*a),hu.add(d*l),ru+=u,au+=u*(mu+(mu=r)),lu+=u*(gu+(gu=i)),cu+=u*(vu+(vu=o)),Iu(mu,gu,vu)}function Vu(e){return function(){return e}}function Hu(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 Bu(e,t){return rc(e)>Xl&&(e-=Math.round(e/ec)*ec),[e,t]}function Uu(e,t,n){return(e%=ec)?t||n?Hu(qu(e),Wu(t,n)):qu(e):t||n?Wu(t,n):Bu}function zu(e){return function(t,n){return rc(t+=e)>Xl&&(t-=Math.round(t/ec)*ec),[t,n]}}function qu(e){var t=zu(e);return t.invert=zu(-e),t}function Wu(e,t){var n=sc(e),r=hc(e),i=sc(t),o=hc(t);function s(e,t){var s=sc(t),a=sc(e)*s,l=hc(e)*s,c=hc(t),u=c*n+a*r;return[oc(l*i-u*o,a*n-c*r),vc(u*i+l*o)]}return s.invert=function(e,t){var s=sc(t),a=sc(e)*s,l=hc(e)*s,c=hc(t),u=c*i-l*o;return[oc(l*i+c*o,a*n+u*r),vc(u*n-a*r)]},s}function $u(e){function t(t){return(t=e(t[0]*nc,t[1]*nc))[0]*=tc,t[1]*=tc,t}return e=Uu(e[0]*nc,e[1]*nc,e.length>2?e[2]*nc:0),t.invert=function(t){return(t=e.invert(t[0]*nc,t[1]*nc))[0]*=tc,t[1]*=tc,t},t}function Gu(e,t,n,r,i,o){if(n){var s=sc(t),a=hc(t),l=r*n;null==i?(i=t+r*ec,o=t-l/2):(i=Ku(s,i),o=Ku(s,o),(r>0?i<o:i>o)&&(i+=r*ec));for(var c,u=i;r>0?u>o:u<o;u-=l)c=Kc([s,-a*sc(u),-a*hc(u)]),e.point(c[0],c[1])}}function Ku(e,t){(t=Zc(t))[0]-=e,tu(t);var n=gc(-t[1]);return((-t[2]<0?-n:n)+ec-Kl)%ec}function Zu(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:bc,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Xu(e,t){return rc(e[0]-t[0])<Kl&&rc(e[1]-t[1])<Kl}function Ju(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 Qu(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(Xu(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*Kl}a.push(n=new Ju(r,e,null,!0)),l.push(n.o=new Ju(r,null,n,!1)),a.push(n=new Ju(s,e,null,!1)),l.push(n.o=new Ju(s,null,n,!0))}})),a.length){for(l.sort(t),ed(a),ed(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 ed(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 td(e){return rc(e[0])<=Xl?e[0]:pc(e[0])*((rc(e[0])+Xl)%ec-Xl)}function nd(e,t){var n=td(t),r=t[1],i=hc(r),o=[hc(n),-sc(n),0],s=0,a=0,l=new k;1===i?r=Jl+Kl:-1===i&&(r=-Jl-Kl);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=td(p),m=p[1]/2+Ql,g=hc(m),v=sc(m),y=0;y<h;++y,f=_,g=x,v=S,p=b){var b=d[y],_=td(b),w=b[1]/2+Ql,x=hc(w),S=sc(w),E=_-f,T=E>=0?1:-1,C=T*E,D=C>Xl,M=g*x;if(l.add(oc(M*T*hc(C),v*S+M*sc(C))),s+=D?E+T*ec:E,D^f>=n^_>=n){var A=Jc(Zc(p),Zc(b));tu(A);var I=Jc(o,A);tu(I);var L=(D^E>=0?-1:1)*vc(I[2]);(r>L||r===L&&(A[0]||A[1]))&&(a+=D^E>=0?1:-1)}}return(s<-Kl||s<Kl&&l<-Zl)^1&a}function rd(e,t,n,r){return function(i){var o,s,a,l=t(i),c=Zu(),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=nd(o,r);s.length?(d||(i.polygonStart(),d=!0),Qu(s,od,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(id))}return h}}function id(e){return e.length>1}function od(e,t){return((e=e.x)[0]<0?e[1]-Jl-Kl:Jl-e[1])-((t=t.x)[0]<0?t[1]-Jl-Kl:Jl-t[1])}Bu.invert=Bu;var sd=rd((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?Xl:-Xl,l=rc(o-n);rc(l-Xl)<Kl?(e.point(n,r=(r+s)/2>0?Jl:-Jl),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),e.point(o,r),t=0):i!==a&&l>=Xl&&(rc(n-i)<Kl&&(n-=i*Kl),rc(o-a)<Kl&&(o-=a*Kl),r=function(e,t,n,r){var i,o,s=hc(e-n);return rc(s)>Kl?ic((hc(t)*(o=sc(r))*hc(n)-hc(r)*(i=sc(t))*hc(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*Jl,r.point(-Xl,i),r.point(0,i),r.point(Xl,i),r.point(Xl,0),r.point(Xl,-i),r.point(0,-i),r.point(-Xl,-i),r.point(-Xl,0),r.point(-Xl,i);else if(rc(e[0]-t[0])>Kl){var o=e[0]<t[0]?Xl:-Xl;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}),[-Xl,-Jl]);function ad(e){var t=sc(e),n=6*nc,r=t>0,i=rc(t)>Kl;function o(e,n){return sc(e)*sc(n)>t}function s(e,n,r){var i=[1,0,0],o=Jc(Zc(e),Zc(n)),s=Xc(o,o),a=o[0],l=s-a*a;if(!l)return!r&&e;var c=t*s/l,u=-t*a/l,d=Jc(i,o),h=eu(i,c);Qc(h,eu(o,u));var p=d,f=Xc(h,p),m=Xc(p,p),g=f*f-m*(Xc(h,h)-1);if(!(g<0)){var v=fc(g),y=eu(p,(-f-v)/m);if(Qc(y,h),y=Kc(y),!r)return y;var b,_=e[0],w=n[0],x=e[1],S=n[1];w<_&&(b=_,_=w,w=b);var k=w-_,E=rc(k-Xl)<Kl;if(!E&&S<x&&(b=x,x=S,S=b),E||k<Kl?E?x+S>0^y[1]<(rc(y[0]-_)<Kl?x:S):x<=y[1]&&y[1]<=S:k>Xl^(_<=y[0]&&y[0]<=w)){var T=eu(p,(-f+v)/m);return Qc(T,h),[y,Kc(T)]}}}function a(t,n){var i=r?e:Xl-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return rd(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?Xl:-Xl),h):0;if(!t&&(c=l=m)&&e.lineStart(),m!==l&&(!(p=s(t,f))||Xu(t,p)||Xu(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&&Xu(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){Gu(o,e,n,i,t,r)}),r?[0,-e]:[-Xl,e-Xl])}var ld,cd,ud,dd,hd=1e9,pd=-hd;function fd(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 rc(r[0]-e)<Kl?i>0?0:3:rc(r[0]-n)<Kl?i>0?2:1:rc(r[1]-t)<Kl?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,_=Zu(),w={point:x,lineStart:function(){w.point=S,c&&c.push(u=[]),v=!0,g=!1,f=m=NaN},lineEnd:function(){l&&(S(d,h),p&&g&&_.rejoin(),l.push(_.result())),w.point=x,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&&Qu(l,a,t,o,s),s.polygonEnd()),b=s,l=c=u=null}};function x(e,t){i(e,t)&&b.point(e,t)}function S(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(pd,Math.min(hd,f)),m=Math.max(pd,Math.min(hd,m))],_=[o=Math.max(pd,Math.min(hd,o)),s=Math.max(pd,Math.min(hd,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 md={sphere:bc,point:bc,lineStart:function(){md.point=vd,md.lineEnd=gd},lineEnd:bc,polygonStart:bc,polygonEnd:bc};function gd(){md.point=md.lineEnd=bc}function vd(e,t){cd=e*=nc,ud=hc(t*=nc),dd=sc(t),md.point=yd}function yd(e,t){e*=nc;var n=hc(t*=nc),r=sc(t),i=rc(e-cd),o=sc(i),s=r*hc(i),a=dd*n-ud*r*o,l=ud*n+dd*r*o;ld.add(oc(fc(s*s+a*a),l)),cd=e,ud=n,dd=r}function bd(e){return ld=new k,Ec(e,md),+ld}var _d=[null,null],wd={type:"LineString",coordinates:_d};function xd(e,t){return _d[0]=e,_d[1]=t,bd(wd)}var Sd={Feature:function(e,t){return Ed(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(Ed(n[r].geometry,t))return!0;return!1}},kd={Sphere:function(){return!0},Point:function(e,t){return Td(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Td(n[r],t))return!0;return!1},LineString:function(e,t){return Cd(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Cd(n[r],t))return!0;return!1},Polygon:function(e,t){return Dd(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Dd(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(Ed(n[r],t))return!0;return!1}};function Ed(e,t){return!(!e||!kd.hasOwnProperty(e.type))&&kd[e.type](e,t)}function Td(e,t){return 0===xd(e,t)}function Cd(e,t){for(var n,r,i,o=0,s=e.length;o<s;o++){if(0===(r=xd(e[o],t)))return!0;if(o>0&&(i=xd(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<Zl*i)return!0;n=r}return!1}function Dd(e,t){return!!nd(e.map(Md),Ad(t))}function Md(e){return(e=e.map(Ad)).pop(),e}function Ad(e){return[e[0]*nc,e[1]*nc]}function Id(e,t,n){var r=pe(e,t-Kl,n).concat(t);return function(e){return r.map((function(t){return[e,t]}))}}function Ld(e,t,n){var r=pe(e,t-Kl,n).concat(t);return function(e){return r.map((function(t){return[t,e]}))}}function Od(){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(ac(r/f)*f,n,f).map(u).concat(pe(ac(a/m)*m,s,m).map(d)).concat(pe(ac(t/h)*h,e,h).filter((function(e){return rc(e%f)>Kl})).map(l)).concat(pe(ac(o/p)*p,i,p).filter((function(e){return rc(e%m)>Kl})).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=Id(o,i,90),c=Ld(t,e,g),u=Id(a,s,90),d=Ld(r,n,g),v):g},v.extentMajor([[-180,-90+Kl],[180,90-Kl]]).extentMinor([[-180,-80-Kl],[180,80+Kl]])}var Nd,Rd,Pd,Fd,jd=e=>e,Yd=new k,Vd=new k,Hd={point:bc,lineStart:bc,lineEnd:bc,polygonStart:function(){Hd.lineStart=Bd,Hd.lineEnd=qd},polygonEnd:function(){Hd.lineStart=Hd.lineEnd=Hd.point=bc,Yd.add(rc(Vd)),Vd=new k},result:function(){var e=Yd/2;return Yd=new k,e}};function Bd(){Hd.point=Ud}function Ud(e,t){Hd.point=zd,Nd=Pd=e,Rd=Fd=t}function zd(e,t){Vd.add(Fd*e-Pd*t),Pd=e,Fd=t}function qd(){zd(Nd,Rd)}var Wd,$d,Gd,Kd,Zd=Hd,Xd=1/0,Jd=Xd,Qd=-Xd,eh=Qd,th={point:function(e,t){e<Xd&&(Xd=e),e>Qd&&(Qd=e),t<Jd&&(Jd=t),t>eh&&(eh=t)},lineStart:bc,lineEnd:bc,polygonStart:bc,polygonEnd:bc,result:function(){var e=[[Xd,Jd],[Qd,eh]];return Qd=eh=-(Jd=Xd=1/0),e}},nh=th,rh=0,ih=0,oh=0,sh=0,ah=0,lh=0,ch=0,uh=0,dh=0,hh={point:ph,lineStart:fh,lineEnd:vh,polygonStart:function(){hh.lineStart=yh,hh.lineEnd=bh},polygonEnd:function(){hh.point=ph,hh.lineStart=fh,hh.lineEnd=vh},result:function(){var e=dh?[ch/dh,uh/dh]:lh?[sh/lh,ah/lh]:oh?[rh/oh,ih/oh]:[NaN,NaN];return rh=ih=oh=sh=ah=lh=ch=uh=dh=0,e}};function ph(e,t){rh+=e,ih+=t,++oh}function fh(){hh.point=mh}function mh(e,t){hh.point=gh,ph(Gd=e,Kd=t)}function gh(e,t){var n=e-Gd,r=t-Kd,i=fc(n*n+r*r);sh+=i*(Gd+e)/2,ah+=i*(Kd+t)/2,lh+=i,ph(Gd=e,Kd=t)}function vh(){hh.point=ph}function yh(){hh.point=_h}function bh(){wh(Wd,$d)}function _h(e,t){hh.point=wh,ph(Wd=Gd=e,$d=Kd=t)}function wh(e,t){var n=e-Gd,r=t-Kd,i=fc(n*n+r*r);sh+=i*(Gd+e)/2,ah+=i*(Kd+t)/2,lh+=i,ch+=(i=Kd*e-Gd*t)*(Gd+e),uh+=i*(Kd+t),dh+=3*i,ph(Gd=e,Kd=t)}var xh=hh;function Sh(e){this._context=e}Sh.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,ec)}},result:bc};var kh,Eh,Th,Ch,Dh,Mh=new k,Ah={point:bc,lineStart:function(){Ah.point=Ih},lineEnd:function(){kh&&Lh(Eh,Th),Ah.point=bc},polygonStart:function(){kh=!0},polygonEnd:function(){kh=null},result:function(){var e=+Mh;return Mh=new k,e}};function Ih(e,t){Ah.point=Lh,Eh=Ch=e,Th=Dh=t}function Lh(e,t){Ch-=e,Dh-=t,Mh.add(fc(Ch*Ch+Dh*Dh)),Ch=e,Dh=t}var Oh=Ah;let Nh,Rh,Ph,Fh;class jh{constructor(e){this._append=null==e?Yh:function(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return Yh;if(t!==Nh){const e=10**t;Nh=t,Rh=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 Rh}(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!==Ph||this._append!==Rh){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`,Ph=e,Rh=this._append,Fh=this._,this._=t}this._+=Fh}}result(){const e=this._;return this._="",e.length?e:null}}function Yh(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Vh(e){return function(t){var n=new Hh;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Hh(){}function Bh(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Ec(n,e.stream(nh)),t(nh.result()),null!=r&&e.clipExtent(r),e}function Uh(e,t,n){return Bh(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 zh(e,t,n){return Uh(e,[[0,0],t],n)}function qh(e,t,n){return Bh(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 Wh(e,t,n){return Bh(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)}Hh.prototype={constructor:Hh,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 $h=16,Gh=sc(30*nc);function Kh(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,x=l+f,S=fc(_*_+w*w+x*x),k=vc(x/=S),E=rc(rc(x)-1)<Kl||rc(o-d)<Kl?(o+d)/2:oc(w,_),T=e(E,k),C=T[0],D=T[1],M=C-r,A=D-i,I=y*M-v*A;(I*I/b>t||rc((v*M+y*A)/b-.5)>.3||s*h+a*p+l*f<Gh)&&(n(r,i,o,s,a,l,C,D,E,_/=S,w/=S,x,m,g),g.point(C,D),n(C,D,E,_,w,x,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=Zc([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],$h,t),t.point(u,d)}function b(){m.point=g,t.lineEnd()}function _(){v(),m.point=w,m.lineEnd=x}function w(e,t){y(r=e,t),i=u,o=d,s=h,a=p,l=f,m.point=y}function x(){n(u,d,c,h,p,f,i,o,r,s,a,l,$h,t),m.lineEnd=b,b()}return m}}(e,t):function(e){return Vh({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)}var Zh=Vh({point:function(e,t){this.stream.point(e*nc,t*nc)}});function Xh(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=sc(o),a=hc(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 Jh(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,x=null,S=sd,k=null,E=jd,T=.5;function C(e){return l(e[0]*nc,e[1]*nc)}function D(e){return(e=l.invert(e[0],e[1]))&&[e[0]*tc,e[1]*tc]}function M(){var e=Xh(d,0,0,_,w,b).apply(null,t(f,m)),r=Xh(d,h-e[0],p-e[1],_,w,b);return n=Uu(g,v,y),a=Hu(t,r),l=Hu(n,a),s=Kh(a,T),A()}function A(){return c=u=null,C}return C.stream=function(e){return c&&u===e?c:c=Zh(function(e){return Vh({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}(n)(S(s(E(u=e)))))},C.preclip=function(e){return arguments.length?(S=e,x=void 0,A()):S},C.postclip=function(e){return arguments.length?(E=e,k=r=i=o=null,A()):E},C.clipAngle=function(e){return arguments.length?(S=+e?ad(x=e*nc):(x=null,sd),A()):x*tc},C.clipExtent=function(e){return arguments.length?(E=null==e?(k=r=i=o=null,jd):fd(k=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),A()):null==k?null:[[k,r],[i,o]]},C.scale=function(e){return arguments.length?(d=+e,M()):d},C.translate=function(e){return arguments.length?(h=+e[0],p=+e[1],M()):[h,p]},C.center=function(e){return arguments.length?(f=e[0]%360*nc,m=e[1]%360*nc,M()):[f*tc,m*tc]},C.rotate=function(e){return arguments.length?(g=e[0]%360*nc,v=e[1]%360*nc,y=e.length>2?e[2]%360*nc:0,M()):[g*tc,v*tc,y*tc]},C.angle=function(e){return arguments.length?(b=e%360*nc,M()):b*tc},C.reflectX=function(e){return arguments.length?(_=e?-1:1,M()):_<0},C.reflectY=function(e){return arguments.length?(w=e?-1:1,M()):w<0},C.precision=function(e){return arguments.length?(s=Kh(a,T=e*e),A()):fc(T)},C.fitExtent=function(e,t){return Uh(C,e,t)},C.fitSize=function(e,t){return zh(C,e,t)},C.fitWidth=function(e,t){return qh(C,e,t)},C.fitHeight=function(e,t){return Wh(C,e,t)},function(){return t=e.apply(this,arguments),C.invert=t.invert&&D,M()}}function ep(e){var t=0,n=Xl/3,r=Qh(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*nc,n=e[1]*nc):[t*tc,n*tc]},i}function tp(e,t){var n=hc(e),r=(n+hc(t))/2;if(rc(r)<Kl)return function(e){var t=sc(e);function n(e,n){return[e*t,hc(n)/t]}return n.invert=function(e,n){return[e/t,vc(n*t)]},n}(e);var i=1+n*(2*r-n),o=fc(i)/r;function s(e,t){var n=fc(i-2*r*hc(t))/r;return[n*hc(e*=r),o-n*sc(e)]}return s.invert=function(e,t){var n=o-t,s=oc(e,rc(n))*pc(n);return n*r<0&&(s-=Xl*pc(e)*pc(n)),[s/r,vc((i-(e*e+n*n)*r*r)/(2*r))]},s}function np(){return ep(tp).scale(155.424).center([0,33.6442])}function rp(){return np().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function ip(e){return function(t,n){var r=sc(t),i=sc(n),o=e(r*i);return o===1/0?[2,0]:[o*i*hc(t),o*hc(n)]}}function op(e){return function(t,n){var r=fc(t*t+n*n),i=e(r),o=hc(i),s=sc(i);return[oc(t*o,r*s),vc(r&&n*o/r)]}}var sp=ip((function(e){return fc(2/(1+e))}));sp.invert=op((function(e){return 2*vc(e/2)}));var ap=ip((function(e){return(e=gc(e))&&e/hc(e)}));function lp(e,t){return[e,uc(mc((Jl+t)/2))]}function cp(e){var t,n,r,i=Jh(e),o=i.center,s=i.scale,a=i.translate,l=i.clipExtent,c=null;function u(){var o=Xl*s(),a=i($u(i.rotate()).invert([0,0]));return l(null==c?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:e===lp?[[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 up(e){return mc((Jl+e)/2)}function dp(e,t){var n=sc(e),r=e===t?hc(e):uc(n/sc(t))/uc(up(t)/up(e)),i=n*dc(up(e),r)/r;if(!r)return lp;function o(e,t){i>0?t<-Jl+Kl&&(t=-Jl+Kl):t>Jl-Kl&&(t=Jl-Kl);var n=i/dc(up(t),r);return[n*hc(r*e),i-n*sc(r*e)]}return o.invert=function(e,t){var n=i-t,o=pc(r)*fc(e*e+n*n),s=oc(e,rc(n))*pc(n);return n*r<0&&(s-=Xl*pc(e)*pc(n)),[s/r,2*ic(dc(i/o,1/r))-Jl]},o}function hp(e,t){return[e,t]}function pp(e,t){var n=sc(e),r=e===t?hc(e):(n-sc(t))/(t-e),i=n/r+e;if(rc(r)<Kl)return hp;function o(e,t){var n=i-t,o=r*e;return[n*hc(o),i-n*sc(o)]}return o.invert=function(e,t){var n=i-t,o=oc(e,rc(n))*pc(n);return n*r<0&&(o-=Xl*pc(e)*pc(n)),[o/r,i-pc(r)*fc(e*e+n*n)]},o}ap.invert=op((function(e){return e})),lp.invert=function(e,t){return[e,2*ic(lc(t))-Jl]},hp.invert=hp;var fp=1.340264,mp=-.081106,gp=893e-6,vp=.003796,yp=fc(3)/2;function bp(e,t){var n=vc(yp*hc(t)),r=n*n,i=r*r*r;return[e*sc(n)/(yp*(fp+3*mp*r+i*(7*gp+9*vp*r))),n*(fp+mp*r+i*(gp+vp*r))]}function _p(e,t){var n=sc(t),r=sc(e)*n;return[n*hc(e)/r,hc(t)/r]}function wp(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 xp(e,t){return[sc(t)*hc(e),hc(t)]}function Sp(e,t){var n=sc(t),r=1+sc(e)*n;return[n*hc(e)/r,hc(t)/r]}function kp(e,t){return[uc(mc((Jl+t)/2)),-e]}function Ep(e,t){return e.parent===t.parent?1:2}function Tp(e,t){return e+t.x}function Cp(e,t){return Math.max(e,t.y)}function Dp(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 Mp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ip)):void 0===t&&(t=Ap);for(var n,r,i,o,s,a=new Np(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 Np(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(Op)}function Ap(e){return e.children}function Ip(e){return Array.isArray(e)?e[1]:null}function Lp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Op(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Np(e){this.data=e,this.depth=this.height=0,this.parent=null}function Rp(e){return null==e?null:Pp(e)}function Pp(e){if("function"!=typeof e)throw new Error;return e}function Fp(){return 0}function jp(e){return function(){return e}}bp.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*(fp+mp*i+o*(gp+vp*i))-t)/(fp+3*mp*i+o*(7*gp+9*vp*i)))*r)*i*i,!(rc(n)<Zl));++s);return[yp*e*(fp+3*mp*i+o*(7*gp+9*vp*i))/sc(r),vc(hc(r)/yp)]},_p.invert=op(ic),wp.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(rc(n)>Kl&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},xp.invert=op(vc),Sp.invert=op((function(e){return 2*ic(e)})),kp.invert=function(e,t){return[-t,2*ic(lc(e))-Jl]},Np.prototype=Mp.prototype={constructor:Np,count:function(){return this.eachAfter(Dp)},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 Mp(this).eachBefore(Lp)},[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 Yp=4294967296;function Vp(){let e=1;return()=>(e=(1664525*e+1013904223)%Yp)/Yp}function Hp(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&&zp(r,n)?++i:(r=Wp(s=Bp(s,n)),i=0);return r}function Bp(e,t){var n,r;if(qp(t,e))return[t];for(n=0;n<e.length;++n)if(Up(t,e[n])&&qp($p(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(Up($p(e[n],e[r]),t)&&Up($p(e[n],t),e[r])&&Up($p(e[r],t),e[n])&&qp(Gp(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Up(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 zp(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 qp(e,t){for(var n=0;n<t.length;++n)if(!zp(e,t[n]))return!1;return!0}function Wp(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return $p(e[0],e[1]);case 3:return Gp(e[0],e[1],e[2])}}function $p(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 Gp(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,x=(f*_-m*b)/(2*w)-r,S=(m*g-f*v)/w,k=(p*b-h*_)/(2*w)-i,E=(h*v-p*g)/w,T=S*S+E*E-1,C=2*(o+x*S+k*E),D=x*x+k*k-o*o,M=-(Math.abs(T)>1e-6?(C+Math.sqrt(C*C-4*T*D))/(2*T):D/C);return{x:r+x+S*M,y:i+k+E*M,r:M}}function Kp(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 Zp(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 Xp(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 Jp(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;Kp(r,n,i=e[2]),n=new Jp(n),r=new Jp(r),i=new Jp(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;e:for(l=3;l<o;++l){Kp(n._,r._,i=e[l]),i=new Jp(i),c=r.next,u=n.previous,d=r._.r,h=n._.r;do{if(d<=h){if(Zp(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue e}d+=c._.r,c=c.next}else{if(Zp(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=Xp(n);(i=i.next)!==r;)(a=Xp(i))<s&&(n=i,s=a);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=Hp(n,t),l=0;l<o;++l)(n=e[l]).x-=i.x,n.y-=i.y;return i.r}function ef(e){return Math.sqrt(e.value)}function tf(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function nf(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 rf(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 of(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 sf(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 af={depth:-1},lf={},cf={};function uf(e){return e.id}function df(e){return e.parentId}function hf(e){let t=e.length;if(t<2)return"";for(;--t>1&&!pf(e,t););return e.slice(0,t)}function pf(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function ff(e,t){return e.parent===t.parent?1:2}function mf(e){var t=e.children;return t?t[0]:e.t}function gf(e){var t=e.children;return t?t[t.length-1]:e.t}function vf(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 yf(e,t,n){return e.a.parent===t.parent?e.a:n}function bf(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 _f(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}bf.prototype=Object.create(Np.prototype);var wf=(1+Math.sqrt(5))/2;function xf(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,x=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)/(x*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?sf(s,n,r,i,x?r+=c*u/x:o):_f(s,n,r,x?n+=l*u/x:i,o),x-=u,b=_}return v}var Sf=function e(t){function n(e,n,r,i,o){xf(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(wf),kf=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?sf(a,n,r,i,p?r+=(o-r)*a.value/p:o):_f(a,n,r,p?n+=(i-n)*a.value/p:i,o),p-=a.value}else e._squarify=s=xf(t,e,n,r,i,o),s.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(wf);function Ef(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Tf(e,t){return e[0]-t[0]||e[1]-t[1]}function Cf(e){const t=e.length,n=[0,1];let r,i=2;for(r=2;r<t;++r){for(;i>1&&Ef(e[n[i-2]],e[n[i-1]],e[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}var Df=Math.random,Mf=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}(Df),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}(Df),If=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}(Df),Lf=function e(t){var n=If.source(t);function r(){var e=n.apply(this,arguments);return function(){return Math.exp(e())}}return r.source=e,r}(Df),Of=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}(Df),Nf=function e(t){var n=Of.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}(Df),Rf=function e(t){function n(e){return function(){return-Math.log1p(-t())/e}}return n.source=e,n}(Df),Pf=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}(Df),Ff=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}(Df),jf=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}(Df),Yf=function e(t){var n=If.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}(Df),Vf=function e(t){var n=Yf.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}(Df),Hf=function e(t){var n=jf.source(t),r=Vf.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}(Df),Bf=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}(Df),Uf=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}(Df),zf=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}(Df),qf=function e(t){var n=Yf.source(t),r=Hf.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}(Df);const Wf=1/4294967296;function $f(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Gf(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 Kf=Symbol("implicit");function Zf(){var e=new E,t=[],n=[],r=Kf;function i(i){let o=e.get(i);if(void 0===o){if(r!==Kf)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 E;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 Zf(t,n).unknown(r)},$f.apply(i,arguments),i}function Xf(){var e,t,n=Zf().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 Xf(r(),[o,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},$f.apply(d(),arguments)}function Jf(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Jf(t())},e}function Qf(e){return+e}var em=[0,1];function tm(e){return e}function nm(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function rm(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=nm(i,r),o=n(s,o)):(r=nm(r,i),o=n(o,s)),function(e){return o(r(e))}}function im(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]=nm(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 om(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sm(){var e,t,n,r,i,o,s=em,a=em,l=zr,c=tm;function u(){var e=Math.min(s.length,a.length);return c!==tm&&(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?im:rm,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),Yr)))(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=qr,u()},d.clamp=function(e){return arguments.length?(c=!!e||tm,u()):c!==tm},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 am(){return sm()(tm,tm)}function lm(t,n,r,i){var o,s=X(t,n,r);switch((i=Pl(null==i?",f":i)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=i.precision||isNaN(o=$l(s,a))||(i.precision=o),e.formatPrefix(i,a);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Gl(s,Math.max(Math.abs(t),Math.abs(n))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Wl(s))||(i.precision=o-2*("%"===i.type))}return e.format(i)}function cm(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 lm(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 um(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 dm(e){return Math.log(e)}function hm(e){return Math.exp(e)}function pm(e){return-Math.log(-e)}function fm(e){return-Math.exp(-e)}function mm(e){return isFinite(e)?+("1e"+e):e<0?0:e}function gm(e){return(t,n)=>-e(-t,n)}function vm(t){const n=t(dm,hm),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?mm:e===Math.E?Math.exp:t=>Math.pow(e,t)}(s),r()[0]<0?(i=gm(i),o=gm(o),t(pm,fm)):t(dm,hm),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=Pl(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(um(r(),{floor:e=>o(Math.floor(i(e))),ceil:e=>o(Math.ceil(i(e)))})),n}function ym(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _m(e){var t=1,n=e(ym(t),bm(t));return n.constant=function(n){return arguments.length?e(ym(t=+n),bm(t)):t},cm(n)}function wm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function xm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Sm(e){return e<0?-e*e:e*e}function km(e){var t=e(tm,tm),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(tm,tm):.5===n?e(xm,Sm):e(wm(n),wm(1/n)):n},cm(t)}function Em(){var e=km(sm());return e.copy=function(){return om(e,Em()).exponent(e.exponent())},$f.apply(e,arguments),e}function Tm(e){return Math.sign(e)*e*e}const Cm=new Date,Dm=new Date;function Mm(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=>Mm((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)=>(Cm.setTime(+t),Dm.setTime(+r),e(Cm),e(Dm),Math.floor(n(Cm,Dm))),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=Mm((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));Am.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Mm((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):Am:null);const Im=Am.range,Lm=1e3,Om=6e4,Nm=36e5,Rm=864e5,Pm=6048e5,Fm=31536e6,jm=Mm((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Lm)}),((e,t)=>(t-e)/Lm),(e=>e.getUTCSeconds())),Ym=jm.range,Vm=Mm((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lm)}),((e,t)=>{e.setTime(+e+t*Om)}),((e,t)=>(t-e)/Om),(e=>e.getMinutes())),Hm=Vm.range,Bm=Mm((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Om)}),((e,t)=>(t-e)/Om),(e=>e.getUTCMinutes())),Um=Bm.range,zm=Mm((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lm-e.getMinutes()*Om)}),((e,t)=>{e.setTime(+e+t*Nm)}),((e,t)=>(t-e)/Nm),(e=>e.getHours())),qm=zm.range,Wm=Mm((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Nm)}),((e,t)=>(t-e)/Nm),(e=>e.getUTCHours())),$m=Wm.range,Gm=Mm((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Om)/Rm),(e=>e.getDate()-1)),Km=Gm.range,Zm=Mm((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Rm),(e=>e.getUTCDate()-1)),Xm=Zm.range,Jm=Mm((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Rm),(e=>Math.floor(e/Rm))),Qm=Jm.range;function eg(e){return Mm((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())*Om)/Pm))}const tg=eg(0),ng=eg(1),rg=eg(2),ig=eg(3),og=eg(4),sg=eg(5),ag=eg(6),lg=tg.range,cg=ng.range,ug=rg.range,dg=ig.range,hg=og.range,pg=sg.range,fg=ag.range;function mg(e){return Mm((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)/Pm))}const gg=mg(0),vg=mg(1),yg=mg(2),bg=mg(3),_g=mg(4),wg=mg(5),xg=mg(6),Sg=gg.range,kg=vg.range,Eg=yg.range,Tg=bg.range,Cg=_g.range,Dg=wg.range,Mg=xg.range,Ag=Mm((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())),Ig=Ag.range,Lg=Mm((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())),Og=Lg.range,Ng=Mm((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()));Ng.every=e=>isFinite(e=Math.floor(e))&&e>0?Mm((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 Rg=Ng.range,Pg=Mm((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()));Pg.every=e=>isFinite(e=Math.floor(e))&&e>0?Mm((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 Fg=Pg.range;function jg(e,t,n,i,o,s){const a=[[jm,1,Lm],[jm,5,5e3],[jm,15,15e3],[jm,30,3e4],[s,1,Om],[s,5,3e5],[s,15,9e5],[s,30,18e5],[o,1,Nm],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,Rm],[i,2,1728e5],[n,1,Pm],[t,1,2592e6],[t,3,7776e6],[e,1,Fm]];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/Fm,n/Fm,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[Yg,Vg]=jg(Pg,Lg,gg,Jm,Wm,Bm),[Hg,Bg]=jg(Ng,Ag,tg,Gm,zm,Vm);function Ug(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 zg(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 qg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Wg(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=ev(i),u=tv(i),d=ev(o),h=tv(o),p=ev(s),f=tv(s),m=ev(a),g=tv(a),v=ev(l),y=tv(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:xv,e:xv,f:Cv,g:jv,G:Vv,H:Sv,I:kv,j:Ev,L:Tv,m:Dv,M:Mv,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:cy,s:uy,S:Av,u:Iv,U:Lv,V:Nv,w:Rv,W:Pv,x:null,X:null,y:Fv,Y:Yv,Z:Hv,"%":ly},_={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:Bv,e:Bv,f:$v,g:iy,G:sy,H:Uv,I:zv,j:qv,L:Wv,m:Gv,M:Kv,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:cy,s:uy,S:Zv,u:Xv,U:Jv,V:ey,w:ty,W:ny,x:null,X:null,y:ry,Y:oy,Z:ay,"%":ly},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:hv,e:hv,f:yv,g:lv,G:av,H:fv,I:fv,j:pv,L:vv,m:dv,M:mv,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:uv,Q:_v,s:wv,S:gv,u:rv,U:iv,V:ov,w:nv,W:sv,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:lv,Y:av,Z:cv,"%":bv};function x(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=Gg[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 S(e,t){return function(n){var r,i,o=qg(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=zg(qg(o.y,0,1))).getUTCDay(),r=i>4||0===i?vg.ceil(r):vg(r),r=Zm.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Ug(qg(o.y,0,1))).getDay(),r=i>4||0===i?ng.ceil(r):ng(r),r=Gm.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?zg(qg(o.y,0,1)).getUTCDay():Ug(qg(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,zg(o)):Ug(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 Gg?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=x(n,b),b.X=x(r,b),b.c=x(t,b),_.x=x(n,_),_.X=x(r,_),_.c=x(t,_),{format:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}var $g,Gg={"-":"",_:" ",0:"0"},Kg=/^\s*\d+/,Zg=/^%/,Xg=/[\\^$*+?|[\]().{}]/g;function Jg(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(Xg,"\\$&")}function ev(e){return new RegExp("^(?:"+e.map(Qg).join("|")+")","i")}function tv(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function nv(e,t,n){var r=Kg.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rv(e,t,n){var r=Kg.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function iv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ov(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function sv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function av(e,t,n){var r=Kg.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function cv(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 uv(e,t,n){var r=Kg.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function dv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function hv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pv(e,t,n){var r=Kg.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function fv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vv(e,t,n){var r=Kg.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function yv(e,t,n){var r=Kg.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function bv(e,t,n){var r=Zg.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _v(e,t,n){var r=Kg.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function wv(e,t,n){var r=Kg.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function xv(e,t){return Jg(e.getDate(),t,2)}function Sv(e,t){return Jg(e.getHours(),t,2)}function kv(e,t){return Jg(e.getHours()%12||12,t,2)}function Ev(e,t){return Jg(1+Gm.count(Ng(e),e),t,3)}function Tv(e,t){return Jg(e.getMilliseconds(),t,3)}function Cv(e,t){return Tv(e,t)+"000"}function Dv(e,t){return Jg(e.getMonth()+1,t,2)}function Mv(e,t){return Jg(e.getMinutes(),t,2)}function Av(e,t){return Jg(e.getSeconds(),t,2)}function Iv(e){var t=e.getDay();return 0===t?7:t}function Lv(e,t){return Jg(tg.count(Ng(e)-1,e),t,2)}function Ov(e){var t=e.getDay();return t>=4||0===t?og(e):og.ceil(e)}function Nv(e,t){return e=Ov(e),Jg(og.count(Ng(e),e)+(4===Ng(e).getDay()),t,2)}function Rv(e){return e.getDay()}function Pv(e,t){return Jg(ng.count(Ng(e)-1,e),t,2)}function Fv(e,t){return Jg(e.getFullYear()%100,t,2)}function jv(e,t){return Jg((e=Ov(e)).getFullYear()%100,t,2)}function Yv(e,t){return Jg(e.getFullYear()%1e4,t,4)}function Vv(e,t){var n=e.getDay();return Jg((e=n>=4||0===n?og(e):og.ceil(e)).getFullYear()%1e4,t,4)}function Hv(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Jg(t/60|0,"0",2)+Jg(t%60,"0",2)}function Bv(e,t){return Jg(e.getUTCDate(),t,2)}function Uv(e,t){return Jg(e.getUTCHours(),t,2)}function zv(e,t){return Jg(e.getUTCHours()%12||12,t,2)}function qv(e,t){return Jg(1+Zm.count(Pg(e),e),t,3)}function Wv(e,t){return Jg(e.getUTCMilliseconds(),t,3)}function $v(e,t){return Wv(e,t)+"000"}function Gv(e,t){return Jg(e.getUTCMonth()+1,t,2)}function Kv(e,t){return Jg(e.getUTCMinutes(),t,2)}function Zv(e,t){return Jg(e.getUTCSeconds(),t,2)}function Xv(e){var t=e.getUTCDay();return 0===t?7:t}function Jv(e,t){return Jg(gg.count(Pg(e)-1,e),t,2)}function Qv(e){var t=e.getUTCDay();return t>=4||0===t?_g(e):_g.ceil(e)}function ey(e,t){return e=Qv(e),Jg(_g.count(Pg(e),e)+(4===Pg(e).getUTCDay()),t,2)}function ty(e){return e.getUTCDay()}function ny(e,t){return Jg(vg.count(Pg(e)-1,e),t,2)}function ry(e,t){return Jg(e.getUTCFullYear()%100,t,2)}function iy(e,t){return Jg((e=Qv(e)).getUTCFullYear()%100,t,2)}function oy(e,t){return Jg(e.getUTCFullYear()%1e4,t,4)}function sy(e,t){var n=e.getUTCDay();return Jg((e=n>=4||0===n?_g(e):_g.ceil(e)).getUTCFullYear()%1e4,t,4)}function ay(){return"+0000"}function ly(){return"%"}function cy(e){return+e}function uy(e){return Math.floor(+e/1e3)}function dy(t){return $g=Wg(t),e.timeFormat=$g.format,e.timeParse=$g.parse,e.utcFormat=$g.utcFormat,e.utcParse=$g.utcParse,$g}e.timeFormat=void 0,e.timeParse=void 0,e.utcFormat=void 0,e.utcParse=void 0,dy({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 hy="%Y-%m-%dT%H:%M:%S.%LZ",py=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat(hy),fy=py,my=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse(hy),gy=my;function vy(e){return new Date(e)}function yy(e){return e instanceof Date?+e:+new Date(+e)}function by(e,t,n,r,i,o,s,a,l,c){var u=am(),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,yy)):h().map(vy)},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(um(n,e)):u},u.copy=function(){return om(u,by(e,t,n,r,i,o,s,a,l,c))},u}function _y(){var e,t,n,r,i,o=0,s=1,a=tm,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(zr),c.rangeRound=u(qr),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 wy(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function xy(){var e=km(_y());return e.copy=function(){return wy(e,xy()).exponent(e.exponent())},Gf.apply(e,arguments)}function Sy(){var e,t,n,r,i,o,s,a=0,l=.5,c=1,u=1,d=tm,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=ui(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(zr),p.rangeRound=f(qr),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 ky(){var e=km(Sy());return e.copy=function(){return wy(e,ky()).exponent(e.exponent())},Gf.apply(e,arguments)}function Ey(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 Ty=Ey("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Cy=Ey("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Dy=Ey("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),My=Ey("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ay=Ey("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Iy=Ey("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Ly=Ey("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Oy=Ey("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Ny=Ey("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ry=Ey("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Py=e=>Or(e[e.length-1]),Fy=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Ey),jy=Py(Fy),Yy=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Ey),Vy=Py(Yy),Hy=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Ey),By=Py(Hy),Uy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Ey),zy=Py(Uy),qy=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Ey),Wy=Py(qy),$y=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Ey),Gy=Py($y),Ky=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Ey),Zy=Py(Ky),Xy=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Ey),Jy=Py(Xy),Qy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Ey),eb=Py(Qy),tb=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Ey),nb=Py(tb),rb=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Ey),ib=Py(rb),ob=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Ey),sb=Py(ob),ab=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Ey),lb=Py(ab),cb=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Ey),ub=Py(cb),db=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Ey),hb=Py(db),pb=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Ey),fb=Py(pb),mb=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Ey),gb=Py(mb),vb=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Ey),yb=Py(vb),bb=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Ey),_b=Py(bb),wb=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Ey),xb=Py(wb),Sb=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Ey),kb=Py(Sb),Eb=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Ey),Tb=Py(Eb),Cb=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Ey),Db=Py(Cb),Mb=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Ey),Ab=Py(Mb),Ib=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Ey),Lb=Py(Ib),Ob=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Ey),Nb=Py(Ob),Rb=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Ey),Pb=Py(Rb),Fb=ci(xr(300,.5,0),xr(-240,.5,1)),jb=ci(xr(-100,.75,.35),xr(80,1.5,.8)),Yb=ci(xr(260,.75,.35),xr(80,1.5,.8)),Vb=xr(),Hb=Nn(),Bb=Math.PI/3,Ub=2*Math.PI/3;function zb(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var qb=zb(Ey("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Wb=zb(Ey("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),$b=zb(Ey("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Gb=zb(Ey("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Kb(e){return function(){return e}}const Zb=Math.abs,Xb=Math.atan2,Jb=Math.cos,Qb=Math.max,e_=Math.min,t_=Math.sin,n_=Math.sqrt,r_=1e-12,i_=Math.PI,o_=i_/2,s_=2*i_;function a_(e){return e>=1?o_:e<=-1?-o_:Math.asin(e)}function l_(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 As(t)}function c_(e){return e.innerRadius}function u_(e){return e.outerRadius}function d_(e){return e.startAngle}function h_(e){return e.endAngle}function p_(e){return e&&e.padAngle}function f_(e,t,n,r,i,o,s){var a=e-n,l=t-r,c=(s?o:-o)/n_(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,x=h*m-f*p,S=(b<0?-1:1)*n_(Qb(0,w*w*_-x*x)),k=(x*b-y*S)/_,E=(-x*y-b*S)/_,T=(x*b+y*S)/_,C=(-x*y+b*S)/_,D=k-g,M=E-v,A=T-g,I=C-v;return D*D+M*M>A*A+I*I&&(k=T,E=C),{cx:k,cy:E,x01:-u,y01:-d,x11:k*(i/w-1),y11:E*(i/w-1)}}var m_=Array.prototype.slice;function g_(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function v_(e){this._context=e}function y_(e){return new v_(e)}function b_(e){return e[0]}function __(e){return e[1]}function w_(e,t){var n=Kb(!0),r=null,i=y_,o=null,s=l_(a);function a(a){var l,c,u,d=(a=g_(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?b_:Kb(e),t="function"==typeof t?t:void 0===t?__:Kb(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:Kb(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Kb(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:Kb(!!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 x_(e,t,n){var r=null,i=Kb(!0),o=null,s=y_,a=null,l=l_(c);function c(c){var u,d,h,p,f,m=(c=g_(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 w_().defined(i).curve(s).context(o)}return e="function"==typeof e?e:void 0===e?b_:Kb(+e),t="function"==typeof t?t:Kb(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?__:Kb(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Kb(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Kb(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Kb(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Kb(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Kb(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Kb(+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:Kb(!!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 S_(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function k_(e){return e}v_.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 E_=C_(y_);function T_(e){this._curve=e}function C_(e){function t(t){return new T_(e(t))}return t._curve=e,t}function D_(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(C_(e)):t()._curve},e}function M_(){return D_(w_().curve(E_))}function A_(){var e=x_().curve(E_),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 D_(n())},delete e.lineX0,e.lineEndAngle=function(){return D_(r())},delete e.lineX1,e.lineInnerRadius=function(){return D_(i())},delete e.lineY0,e.lineOuterRadius=function(){return D_(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(C_(e)):t()._curve},e}function I_(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}T_.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 L_{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 O_{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=I_(this._x0,this._y0),r=I_(this._x0,this._y0=(this._y0+t)/2),i=I_(e,this._y0),o=I_(e,t);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...o)}this._x0=e,this._y0=t}}function N_(e){return new L_(e,!0)}function R_(e){return new L_(e,!1)}function P_(e){return new O_(e)}function F_(e){return e.source}function j_(e){return e.target}function Y_(e){let t=F_,n=j_,r=b_,i=__,o=null,s=null,a=l_(l);function l(){let l;const c=m_.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:Kb(+e),l):r},l.y=function(e){return arguments.length?(i="function"==typeof e?e:Kb(+e),l):i},l.context=function(t){return arguments.length?(null==t?o=s=null:s=e(o=t),l):o},l}const V_=n_(3);var H_={draw(e,t){const n=.59436*n_(t+e_(t/28,.75)),r=n/2,i=r*V_;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},B_={draw(e,t){const n=n_(t/i_);e.moveTo(n,0),e.arc(0,0,n,0,s_)}},U_={draw(e,t){const n=n_(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 z_=n_(1/3),q_=2*z_;var W_={draw(e,t){const n=n_(t/q_),r=n*z_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},$_={draw(e,t){const n=.62625*n_(t);e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},G_={draw(e,t){const n=.87559*n_(t-e_(t/7,2));e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},K_={draw(e,t){const n=n_(t),r=-n/2;e.rect(r,r,n,n)}},Z_={draw(e,t){const n=.4431*n_(t);e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}};const X_=t_(i_/10)/t_(7*i_/10),J_=t_(s_/10)*X_,Q_=-Jb(s_/10)*X_;var ew={draw(e,t){const n=n_(.8908130915292852*t),r=J_*n,i=Q_*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){const o=s_*t/5,s=Jb(o),a=t_(o);e.lineTo(a*n,-s*n),e.lineTo(s*r-a*i,a*r+s*i)}e.closePath()}};const tw=n_(3);var nw={draw(e,t){const n=-n_(t/(3*tw));e.moveTo(0,2*n),e.lineTo(-tw*n,-n),e.lineTo(tw*n,-n),e.closePath()}};const rw=n_(3);var iw={draw(e,t){const n=.6824*n_(t),r=n/2,i=n*rw/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}};const ow=-.5,sw=n_(3)/2,aw=1/n_(12),lw=3*(aw/2+1);var cw={draw(e,t){const n=n_(t/lw),r=n/2,i=n*aw,o=r,s=n*aw+n,a=-o,l=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(a,l),e.lineTo(ow*r-sw*i,sw*r+ow*i),e.lineTo(ow*o-sw*s,sw*o+ow*s),e.lineTo(ow*a-sw*l,sw*a+ow*l),e.lineTo(ow*r+sw*i,ow*i-sw*r),e.lineTo(ow*o+sw*s,ow*s-sw*o),e.lineTo(ow*a+sw*l,ow*l-sw*a),e.closePath()}},uw={draw(e,t){const n=.6189*n_(t-e_(t/6,1.7));e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}};const dw=[B_,U_,W_,K_,ew,nw,cw],hw=[B_,G_,uw,iw,H_,Z_,$_];function pw(){}function fw(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 mw(e){this._context=e}function gw(e){this._context=e}function vw(e){this._context=e}function yw(e,t){this._basis=new mw(e),this._beta=t}mw.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:fw(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:fw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},gw.prototype={areaStart:pw,areaEnd:pw,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:fw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},vw.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:fw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},yw.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 bw=function e(t){function n(e){return 1===t?new mw(e):new yw(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function _w(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 ww(e,t){this._context=e,this._k=(1-t)/6}ww.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:_w(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:_w(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 xw=function e(t){function n(e){return new ww(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Sw(e,t){this._context=e,this._k=(1-t)/6}Sw.prototype={areaStart:pw,areaEnd:pw,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:_w(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 kw=function e(t){function n(e){return new Sw(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ew(e,t){this._context=e,this._k=(1-t)/6}Ew.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:_w(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 Tw=function e(t){function n(e){return new Ew(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Cw(e,t,n){var r=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>r_){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>r_){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 Dw(e,t){this._context=e,this._alpha=t}Dw.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:Cw(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 Mw=function e(t){function n(e){return t?new Dw(e,t):new ww(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:pw,areaEnd:pw,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:Cw(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 Iw=function e(t){function n(e){return t?new Aw(e,t):new Sw(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Lw(e,t){this._context=e,this._alpha=t}Lw.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:Cw(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 Ow=function e(t){function n(e){return t?new Lw(e,t):new Ew(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Nw(e){this._context=e}function Rw(e){return e<0?-1:1}function Pw(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(Rw(o)+Rw(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Fw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function jw(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 Yw(e){this._context=e}function Vw(e){this._context=new Hw(e)}function Hw(e){this._context=e}function Bw(e){this._context=e}function Uw(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 zw(e,t){this._context=e,this._t=t}function qw(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 Ww(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function $w(e,t){return e[t]}function Gw(e){const t=[];return t.key=e,t}function Kw(e){var t=e.map(Zw);return Ww(e).sort((function(e,n){return t[e]-t[n]}))}function Zw(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 Xw(e){var t=e.map(Jw);return Ww(e).sort((function(e,n){return t[e]-t[n]}))}function Jw(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}Nw.prototype={areaStart:pw,areaEnd:pw,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))}},Yw.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:jw(this,this._t0,Fw(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,jw(this,Fw(this,n=Pw(this,e,t)),n);break;default:jw(this,this._t0,n=Pw(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Vw.prototype=Object.create(Yw.prototype)).point=function(e,t){Yw.prototype.point.call(this,t,e)},Hw.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)}},Bw.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=Uw(e),i=Uw(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)}},zw.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 ex(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 tx(e,t,n){this.k=e,this.x=t,this.y=n}tx.prototype={constructor:tx,scale:function(e){return 1===e?this:new tx(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new tx(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 nx=new tx(1,0,0);function rx(e){for(;!e.__zoom;)if(!(e=e.parentNode))return nx;return e.__zoom}function ix(e){e.stopImmediatePropagation()}function ox(e){e.preventDefault(),e.stopImmediatePropagation()}function sx(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function ax(){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 lx(){return this.__zoom||nx}function cx(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ux(){return navigator.maxTouchPoints||"ontouchstart"in this}function dx(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))}rx.prototype=tx.prototype,e.Adder=k,e.Delaunay=La,e.FormatSpecifier=Fl,e.InternMap=E,e.InternSet=T,e.Node=Np,e.Path=As,e.Voronoi=Ta,e.ZoomTransform=tx,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 lo([[e]],Bo,t,+r);return null},e.arc=function(){var e=c_,t=u_,n=Kb(0),r=null,i=d_,o=h_,s=p_,a=null,l=l_(c);function c(){var c,u,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-o_,f=o.apply(this,arguments)-o_,m=Zb(f-p),g=f>p;if(a||(a=c=l()),h<d&&(u=h,h=d,d=u),h>r_)if(m>s_-r_)a.moveTo(h*Jb(p),h*t_(p)),a.arc(0,0,h,p,f,!g),d>r_&&(a.moveTo(d*Jb(f),d*t_(f)),a.arc(0,0,d,f,p,g));else{var v,y,b=p,_=f,w=p,x=f,S=m,k=m,E=s.apply(this,arguments)/2,T=E>r_&&(r?+r.apply(this,arguments):n_(d*d+h*h)),C=e_(Zb(h-d)/2,+n.apply(this,arguments)),D=C,M=C;if(T>r_){var A=a_(T/d*t_(E)),I=a_(T/h*t_(E));(S-=2*A)>r_?(w+=A*=g?1:-1,x-=A):(S=0,w=x=(p+f)/2),(k-=2*I)>r_?(b+=I*=g?1:-1,_-=I):(k=0,b=_=(p+f)/2)}var L=h*Jb(b),O=h*t_(b),N=d*Jb(x),R=d*t_(x);if(C>r_){var P,F=h*Jb(_),j=h*t_(_),Y=d*Jb(w),V=d*t_(w);if(m<i_)if(P=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<r_))return[e+(h=(u*(t-o)-d*(e-i))/h)*l,t+h*c]}(L,O,Y,V,F,j,N,R)){var H=L-P[0],B=O-P[1],U=F-P[0],z=j-P[1],q=1/t_(function(e){return e>1?0:e<-1?i_:Math.acos(e)}((H*U+B*z)/(n_(H*H+B*B)*n_(U*U+z*z)))/2),W=n_(P[0]*P[0]+P[1]*P[1]);D=e_(C,(d-W)/(q-1)),M=e_(C,(h-W)/(q+1))}else D=M=0}k>r_?M>r_?(v=f_(Y,V,L,O,h,M,g),y=f_(F,j,N,R,h,M,g),a.moveTo(v.cx+v.x01,v.cy+v.y01),M<C?a.arc(v.cx,v.cy,M,Xb(v.y01,v.x01),Xb(y.y01,y.x01),!g):(a.arc(v.cx,v.cy,M,Xb(v.y01,v.x01),Xb(v.y11,v.x11),!g),a.arc(0,0,h,Xb(v.cy+v.y11,v.cx+v.x11),Xb(y.cy+y.y11,y.cx+y.x11),!g),a.arc(y.cx,y.cy,M,Xb(y.y11,y.x11),Xb(y.y01,y.x01),!g))):(a.moveTo(L,O),a.arc(0,0,h,b,_,!g)):a.moveTo(L,O),d>r_&&S>r_?D>r_?(v=f_(N,R,F,j,d,-D,g),y=f_(L,O,Y,V,d,-D,g),a.lineTo(v.cx+v.x01,v.cy+v.y01),D<C?a.arc(v.cx,v.cy,D,Xb(v.y01,v.x01),Xb(y.y01,y.x01),!g):(a.arc(v.cx,v.cy,D,Xb(v.y01,v.x01),Xb(v.y11,v.x11),!g),a.arc(0,0,d,Xb(v.cy+v.y11,v.cx+v.x11),Xb(y.cy+y.y11,y.cx+y.x11),g),a.arc(y.cx,y.cy,D,Xb(y.y11,y.x11),Xb(y.y01,y.x01),!g))):a.arc(0,0,d,x,w,g):a.lineTo(N,R)}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-i_/2;return[Jb(r)*n,t_(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Kb(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Kb(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Kb(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Kb(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Kb(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Kb(+e),c):o},c.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:Kb(+e),c):s},c.context=function(e){return arguments.length?(a=null==e?null:e,c):a},c},e.area=x_,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;tl&&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 Me(3,e)},e.axisLeft=function(e){return Me(4,e)},e.axisRight=function(e){return Me(2,e)},e.axisTop=function(e){return Me(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(nl)},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 fs(rs)},e.brushSelection=function(e){var t=e.__brush;return t?t.dim.output(t.selection):null},e.brushX=function(){return fs(ts)},e.brushY=function(){return fs(ns)},e.buffer=function(e,t){return fetch(e,t).then(rl)},e.chord=function(){return ks(!1,!1)},e.chordDirected=function(){return ks(!0,!1)},e.chordTranspose=function(){return ks(!1,!0)},e.cluster=function(){var e=Ep,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(Tp,0)/e.length}(n),t.y=function(e){return 1+e.reduce(Cp,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=An,e.contourDensity=function(){var e=ta,t=na,n=ra,r=960,i=500,o=20,s=2,a=3*o,l=r+2*a>>s,c=i+2*a>>s,u=zs(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)),Zs().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=Zs().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:zs(+t),p):e},p.y=function(e){return arguments.length?(t="function"==typeof e?e:zs(+e),p):t},p.weight=function(e){return arguments.length?(n="function"==typeof e?e:zs(+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)?zs(Bs.call(e)):zs(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=Zs,e.count=v,e.create=function(e){return $t(Ve(e).call(document.documentElement))},e.creator=Ve,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=al,e.csvFormat=Ba,e.csvFormatBody=Ua,e.csvFormatRow=qa,e.csvFormatRows=za,e.csvFormatValue=Wa,e.csvParse=Va,e.csvParseRows=Ha,e.cubehelix=xr,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 mw(e)},e.curveBasisClosed=function(e){return new gw(e)},e.curveBasisOpen=function(e){return new vw(e)},e.curveBumpX=N_,e.curveBumpY=R_,e.curveBundle=bw,e.curveCardinal=xw,e.curveCardinalClosed=kw,e.curveCardinalOpen=Tw,e.curveCatmullRom=Mw,e.curveCatmullRomClosed=Iw,e.curveCatmullRomOpen=Ow,e.curveLinear=y_,e.curveLinearClosed=function(e){return new Nw(e)},e.curveMonotoneX=function(e){return new Yw(e)},e.curveMonotoneY=function(e){return new Vw(e)},e.curveNatural=function(e){return new Bw(e)},e.curveStep=function(e){return new zw(e,.5)},e.curveStepAfter=function(e){return new zw(e,1)},e.curveStepBefore=function(e){return new zw(e,0)},e.descending=n,e.deviation=x,e.difference=function(e,...t){e=new T(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 T;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,Qt).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=Jt(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=Jt(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=ja(e);return ol(t,n).then((function(e){return i.parse(e,r)}))},e.dsvFormat=ja,e.easeBack=Ro,e.easeBackIn=Oo,e.easeBackInOut=Ro,e.easeBackOut=No,e.easeBounce=Io,e.easeBounceIn=function(e){return 1-Io(1-e)},e.easeBounceInOut=function(e){return((e*=2)<=1?1-Io(1-e):Io(e-1)+1)/2},e.easeBounceOut=Io,e.easeCircle=So,e.easeCircleIn=function(e){return 1-Math.sqrt(1-e*e)},e.easeCircleInOut=So,e.easeCircleOut=function(e){return Math.sqrt(1- --e*e)},e.easeCubic=fo,e.easeCubicIn=function(e){return e*e*e},e.easeCubicInOut=fo,e.easeCubicOut=function(e){return--e*e*e+1},e.easeElastic=jo,e.easeElasticIn=Fo,e.easeElasticInOut=Yo,e.easeElasticOut=jo,e.easeExp=xo,e.easeExpIn=function(e){return wo(1-+e)},e.easeExpInOut=xo,e.easeExpOut=function(e){return 1-wo(e)},e.easeLinear=e=>+e,e.easePoly=vo,e.easePolyIn=mo,e.easePolyInOut=vo,e.easePolyOut=go,e.easeQuad=po,e.easeQuadIn=function(e){return e*e},e.easeQuadInOut=po,e.easeQuadOut=function(e){return e*(2-e)},e.easeSin=_o,e.easeSinIn=function(e){return 1==+e?1:1-Math.cos(e*bo)},e.easeSinInOut=_o,e.easeSinOut=function(e){return Math.sin(e*bo)},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=S,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(O(e,...t),t)},e.flatRollup=function(e,t,...n){return N(P(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=yl(t,kl,El).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=Sl(r))*m),0===g&&(v+=(g=Sl(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=xl(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:xl(+t),l(),s):e},s},e.forceLink=function(e){var t,n,r,i,o,s,a=Tl,l=function(e){return 1/Math.min(i[e.source.index],i[e.target.index])},c=xl(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||Sl(s),p=d.y+d.vy-c.y-c.vy||Sl(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=Cl(d,l.source)),"object"!=typeof l.target&&(l.target=Cl(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:xl(+e),p(),d):l},d.distance=function(e){return arguments.length?(c="function"==typeof e?e:xl(+e),f(),d):c},d},e.forceManyBody=function(){var e,t,n,r,i,o=xl(-30),s=1,a=1/0,l=.81;function c(n){var i,o=e.length,s=yl(e,Ml,Al).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=Sl(n))*d),0===h&&(f+=(h=Sl(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=Sl(n))*d),0===h&&(f+=(h=Sl(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:xl(+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=xl(.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=xl(+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:xl(+e),l(),a):s},a.radius=function(t){return arguments.length?(e="function"==typeof t?t:xl(+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=Ei(d),c=Ie("tick","end"),u=function(){let e=1;return()=>(e=(1664525*e+1013904223)%Dl)/Dl}();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*Il;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=xl(.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=xl(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:xl(+e),s(),o):i},o.x=function(t){return arguments.length?(e="function"==typeof t?t:xl(+t),s(),o):e},o},e.forceY=function(e){var t,n,r,i=xl(.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=xl(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:xl(+e),s(),o):i},o.y=function(t){return arguments.length?(e="function"==typeof t?t:xl(+t),s(),o):e},o},e.formatDefaultLocale=ql,e.formatLocale=zl,e.formatSpecifier=Pl,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=rp,e.geoAlbersUsa=function(){var e,t,n,r,i,o,s=rp(),a=np().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=np().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+Kl,u+.12*t+Kl],[o-.214*t-Kl,u+.234*t-Kl]]).stream(c),i=l.translate([o-.205*t,u+.212*t]).clipExtent([[o-.214*t+Kl,u+.166*t+Kl],[o-.115*t-Kl,u+.234*t-Kl]]).stream(c),d()},u.fitExtent=function(e,t){return Uh(u,e,t)},u.fitSize=function(e,t){return zh(u,e,t)},u.fitWidth=function(e,t){return qh(u,e,t)},u.fitHeight=function(e,t){return Wh(u,e,t)},u.scale(1070)},e.geoArea=function(e){return Uc=new k,Ec(e,zc),2*Uc},e.geoAzimuthalEqualArea=function(){return Jh(sp).scale(124.75).clipAngle(179.999)},e.geoAzimuthalEqualAreaRaw=sp,e.geoAzimuthalEquidistant=function(){return Jh(ap).scale(79.4188).clipAngle(179.999)},e.geoAzimuthalEquidistantRaw=ap,e.geoBounds=function(e){var t,n,r,i,o,s,a;if(Nc=Oc=-(Ic=Lc=1/0),Vc=[],Ec(e,yu),n=Vc.length){for(Vc.sort(Cu),t=1,o=[r=Vc[0]];t<n;++t)Du(r,(i=Vc[t])[0])||Du(r,i[1])?(Tu(r[0],i[1])>Tu(r[0],r[1])&&(r[1]=i[1]),Tu(i[0],r[1])>Tu(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=Tu(r[1],i[0]))>s&&(s=a,Ic=i[0],Oc=r[1])}return Vc=Hc=null,Ic===1/0||Lc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ic,Lc],[Oc,Nc]]},e.geoCentroid=function(e){nu=ru=iu=ou=su=au=lu=cu=0,uu=new k,du=new k,hu=new k,Ec(e,Mu);var t=+uu,n=+du,r=+hu,i=cc(t,n,r);return i<Zl&&(t=au,n=lu,r=cu,ru<Kl&&(t=iu,n=ou,r=su),(i=cc(t,n,r))<Zl)?[NaN,NaN]:[oc(n,t)*tc,vc(r/i)*tc]},e.geoCircle=function(){var e,t,n=Vu([0,0]),r=Vu(90),i=Vu(6),o={point:function(n,r){e.push(n=t(n,r)),n[0]*=tc,n[1]*=tc}};function s(){var s=n.apply(this,arguments),a=r.apply(this,arguments)*nc,l=i.apply(this,arguments)*nc;return e=[],t=Uu(-s[0]*nc,-s[1]*nc,0).invert,Gu(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:Vu([+e[0],+e[1]]),s):n},s.radius=function(e){return arguments.length?(r="function"==typeof e?e:Vu(+e),s):r},s.precision=function(e){return arguments.length?(i="function"==typeof e?e:Vu(+e),s):i},s},e.geoClipAntimeridian=sd,e.geoClipCircle=ad,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=fd(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=fd,e.geoConicConformal=function(){return ep(dp).scale(109.5).parallels([30,30])},e.geoConicConformalRaw=dp,e.geoConicEqualArea=np,e.geoConicEqualAreaRaw=tp,e.geoConicEquidistant=function(){return ep(pp).scale(131.154).center([0,13.9389])},e.geoConicEquidistantRaw=pp,e.geoContains=function(e,t){return(e&&Sd.hasOwnProperty(e.type)?Sd[e.type]:Ed)(e,t)},e.geoDistance=xd,e.geoEqualEarth=function(){return Jh(bp).scale(177.158)},e.geoEqualEarthRaw=bp,e.geoEquirectangular=function(){return Jh(hp).scale(152.63)},e.geoEquirectangularRaw=hp,e.geoGnomonic=function(){return Jh(_p).scale(144.049).clipAngle(60)},e.geoGnomonicRaw=_p,e.geoGraticule=Od,e.geoGraticule10=function(){return Od()()},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=Vh({point:function(e,t){var n=b([e,t]);this.stream.point(n[0],n[1])}}),v=jd;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,jd):fd(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=hc(h=n%360*nc),e=sc(h),y()):h*tc},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 Uh(b,e,t)},b.fitSize=function(e,t){return zh(b,e,t)},b.fitWidth=function(e,t){return qh(b,e,t)},b.fitHeight=function(e,t){return Wh(b,e,t)},b},e.geoInterpolate=function(e,t){var n=e[0]*nc,r=e[1]*nc,i=t[0]*nc,o=t[1]*nc,s=sc(r),a=hc(r),l=sc(o),c=hc(o),u=s*sc(n),d=s*hc(n),h=l*sc(i),p=l*hc(i),f=2*vc(fc(yc(o-r)+s*l*yc(i-n))),m=hc(f),g=f?function(e){var t=hc(e*=f)/m,n=hc(f-e)/m,r=n*u+t*h,i=n*d+t*p,o=n*a+t*c;return[oc(i,r)*tc,oc(o,fc(r*r+i*i))*tc]}:function(){return[n*tc,r*tc]};return g.distance=f,g},e.geoLength=bd,e.geoMercator=function(){return cp(lp).scale(961/ec)},e.geoMercatorRaw=lp,e.geoNaturalEarth1=function(){return Jh(wp).scale(175.295)},e.geoNaturalEarth1Raw=wp,e.geoOrthographic=function(){return Jh(xp).scale(249.5).clipAngle(90+Kl)},e.geoOrthographicRaw=xp,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)),Ec(e,n(r))),r.result()}return s.area=function(e){return Ec(e,n(Zd)),Zd.result()},s.measure=function(e){return Ec(e,n(Oh)),Oh.result()},s.bounds=function(e){return Ec(e,n(nh)),nh.result()},s.centroid=function(e){return Ec(e,n(xh)),xh.result()},s.projection=function(t){return arguments.length?(n=null==t?(e=null,jd):(e=t).stream,s):e},s.context=function(e){return arguments.length?(r=null==e?(t=null,new jh(i)):new Sh(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 jh(i)),s},s.projection(e).digits(i).context(t)},e.geoProjection=Jh,e.geoProjectionMutator=Qh,e.geoRotation=$u,e.geoStereographic=function(){return Jh(Sp).scale(250).clipAngle(142)},e.geoStereographicRaw=Sp,e.geoStream=Ec,e.geoTransform=function(e){return{stream:Vh(e)}},e.geoTransverseMercator=function(){var e=cp(kp),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=kp,e.gray=function(e,t){return new or(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=L,e.groupSort=function(e,n,r){return(2!==n.length?V(R(e,n,r),(([e,n],[r,i])=>t(n,i)||t(e,r))):V(L(e,r),(([e,r],[i,o])=>n(r,o)||t(e,i)))).map((([e])=>e))},e.groups=O,e.hcl=dr,e.hierarchy=Mp,e.histogram=ee,e.hsl=Un,e.html=hl,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 j(e,I,F,t)},e.indexes=function(e,...t){return j(e,Array.from,F,t)},e.interpolate=zr,e.interpolateArray=function(e,t){return(Pr(t)?Rr:Fr)(e,t)},e.interpolateBasis=Er,e.interpolateBasisClosed=Tr,e.interpolateBlues=Tb,e.interpolateBrBG=jy,e.interpolateBuGn=nb,e.interpolateBuPu=ib,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=Yb,e.interpolateCubehelix=li,e.interpolateCubehelixDefault=Fb,e.interpolateCubehelixLong=ci,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=sb,e.interpolateGreens=Db,e.interpolateGreys=Ab,e.interpolateHcl=oi,e.interpolateHclLong=si,e.interpolateHsl=ni,e.interpolateHslLong=ri,e.interpolateHue=function(e,t){var n=Mr(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}},e.interpolateInferno=$b,e.interpolateLab=function(e,t){var n=Ar((e=ir(e)).l,(t=ir(t)).l),r=Ar(e.a,t.a),i=Ar(e.b,t.b),o=Ar(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=Wb,e.interpolateNumber=Yr,e.interpolateNumberArray=Rr,e.interpolateObject=Vr,e.interpolateOrRd=lb,e.interpolateOranges=Pb,e.interpolatePRGn=Vy,e.interpolatePiYG=By,e.interpolatePlasma=Gb,e.interpolatePuBu=hb,e.interpolatePuBuGn=ub,e.interpolatePuOr=zy,e.interpolatePuRd=fb,e.interpolatePurples=Lb,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Vb.h=360*e-100,Vb.s=1.5-1.5*t,Vb.l=.8-.9*t,Vb+""},e.interpolateRdBu=Wy,e.interpolateRdGy=Gy,e.interpolateRdPu=gb,e.interpolateRdYlBu=Zy,e.interpolateRdYlGn=Jy,e.interpolateReds=Nb,e.interpolateRgb=Ir,e.interpolateRgbBasis=Or,e.interpolateRgbBasisClosed=Nr,e.interpolateRound=qr,e.interpolateSinebow=function(e){var t;return e=(.5-e)*Math.PI,Hb.r=255*(t=Math.sin(e))*t,Hb.g=255*(t=Math.sin(e+Bb))*t,Hb.b=255*(t=Math.sin(e+Ub))*t,Hb+""},e.interpolateSpectral=eb,e.interpolateString=Ur,e.interpolateTransformCss=Xr,e.interpolateTransformSvg=Jr,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=qb,e.interpolateWarm=jb,e.interpolateYlGn=_b,e.interpolateYlGnBu=yb,e.interpolateYlOrBr=xb,e.interpolateYlOrRd=kb,e.interpolateZoom=ei,e.interrupt=Bi,e.intersection=function(e,...t){e=new T(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 ki,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?xi():+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=fy,e.isoParse=gy,e.json=function(e,t){return fetch(e,t).then(cl)},e.lab=ir,e.lch=function(e,t,n,r){return 1===arguments.length?ur(e):new hr(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=w_,e.lineRadial=M_,e.link=Y_,e.linkHorizontal=function(){return Y_(N_)},e.linkRadial=function(){const e=Y_(P_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.linkVertical=function(){return Y_(R_)},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 E;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=Fe,e.namespaces=Pe,e.nice=J,e.now=xi,e.pack=function(){var e=null,t=1,n=1,r=Fp;function i(i){const o=Vp();return i.x=t/2,i.y=n/2,e?i.eachBefore(tf(e)).eachAfter(nf(r,.5,o)).eachBefore(rf(1)):i.eachBefore(tf(ef)).eachAfter(nf(Fp,1,o)).eachAfter(nf(r,i.r/Math.min(t,n),o)).eachBefore(rf(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=Rp(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:jp(+e),i):r},i},e.packEnclose=function(e){return Hp(e,Vp())},e.packSiblings=function(e){return Qp(e,Vp()),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&&sf(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(of),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=Is,e.pathRound=function(e=3){return new As(+e)},e.permute=Y,e.pie=function(){var e=k_,t=S_,n=null,r=Kb(0),i=Kb(s_),o=Kb(0);function s(s){var a,l,c,u,d,h=(s=g_(s)).length,p=0,f=new Array(h),m=new Array(h),g=+r.apply(this,arguments),v=Math.min(s_,Math.max(-s_,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:Kb(+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:Kb(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Kb(+e),s):i},s.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Kb(+e),s):o},s},e.piecewise=ui,e.pointRadial=I_,e.pointer=Jt,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=>Jt(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(Tf),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=Cf(r),s=Cf(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=Wl,e.precisionPrefix=$l,e.precisionRound=Gl,e.quadtree=yl,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=M_,e.randomBates=Nf,e.randomBernoulli=Ff,e.randomBeta=Vf,e.randomBinomial=Hf,e.randomCauchy=Uf,e.randomExponential=Rf,e.randomGamma=Yf,e.randomGeometric=jf,e.randomInt=Af,e.randomIrwinHall=Of,e.randomLcg=function(e=Math.random()){let t=0|(0<=e&&e<1?e/Wf:Math.abs(e));return()=>(t=1664525*t+1013904223|0,Wf*(t>>>0))},e.randomLogNormal=Lf,e.randomLogistic=zf,e.randomNormal=If,e.randomPareto=Pf,e.randomPoisson=qf,e.randomUniform=Mf,e.randomWeibull=Bf,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)=>B(r[e],r[t]):H(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 Hs()},e.ribbonArrow=function(){return Hs(Vs)},e.rollup=R,e.rollups=P,e.scaleBand=Xf,e.scaleDiverging=function e(){var t=cm(Sy()(tm));return t.copy=function(){return wy(t,e())},Gf.apply(t,arguments)},e.scaleDivergingLog=function e(){var t=vm(Sy()).domain([.1,1,10]);return t.copy=function(){return wy(t,e()).base(t.base())},Gf.apply(t,arguments)},e.scaleDivergingPow=ky,e.scaleDivergingSqrt=function(){return ky.apply(null,arguments).exponent(.5)},e.scaleDivergingSymlog=function e(){var t=_m(Sy());return t.copy=function(){return wy(t,e()).constant(t.constant())},Gf.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],cm(r)},e.scaleImplicit=Kf,e.scaleLinear=function e(){var t=am();return t.copy=function(){return om(t,e())},$f.apply(t,arguments),cm(t)},e.scaleLog=function e(){const t=vm(sm()).domain([1,10]);return t.copy=()=>om(t,e()).base(t.base()),$f.apply(t,arguments),t},e.scaleOrdinal=Zf,e.scalePoint=function(){return Jf(Xf.apply(null,arguments).paddingInner(1))},e.scalePow=Em,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)},$f.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)},$f.apply(cm(a),arguments)},e.scaleRadial=function e(){var t,n=am(),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(Tm(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(Tm)),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)},$f.apply(o,arguments),cm(o)},e.scaleSequential=function e(){var t=cm(_y()(tm));return t.copy=function(){return wy(t,e())},Gf.apply(t,arguments)},e.scaleSequentialLog=function e(){var t=vm(_y()).domain([1,10]);return t.copy=function(){return wy(t,e()).base(t.base())},Gf.apply(t,arguments)},e.scaleSequentialPow=xy,e.scaleSequentialQuantile=function e(){var n=[],r=tm;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)},Gf.apply(i,arguments)},e.scaleSequentialSqrt=function(){return xy.apply(null,arguments).exponent(.5)},e.scaleSequentialSymlog=function e(){var t=_m(_y());return t.copy=function(){return wy(t,e()).constant(t.constant())},Gf.apply(t,arguments)},e.scaleSqrt=function(){return Em.apply(null,arguments).exponent(.5)},e.scaleSymlog=function e(){var t=_m(sm());return t.copy=function(){return om(t,e()).constant(t.constant())},$f.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)},$f.apply(o,arguments)},e.scaleTime=function(){return $f.apply(by(Hg,Bg,Ng,Ag,tg,Gm,zm,Vm,jm,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},e.scaleUtc=function(){return $f.apply(by(Yg,Vg,Pg,Lg,gg,Zm,Wm,Bm,jm,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=Cy,e.schemeBlues=Eb,e.schemeBrBG=Fy,e.schemeBuGn=tb,e.schemeBuPu=rb,e.schemeCategory10=Ty,e.schemeDark2=Dy,e.schemeGnBu=ob,e.schemeGreens=Cb,e.schemeGreys=Mb,e.schemeOrRd=ab,e.schemeOranges=Rb,e.schemePRGn=Yy,e.schemePaired=My,e.schemePastel1=Ay,e.schemePastel2=Iy,e.schemePiYG=Hy,e.schemePuBu=db,e.schemePuBuGn=cb,e.schemePuOr=Uy,e.schemePuRd=pb,e.schemePurples=Ib,e.schemeRdBu=qy,e.schemeRdGy=$y,e.schemeRdPu=mb,e.schemeRdYlBu=Ky,e.schemeRdYlGn=Xy,e.schemeReds=Ob,e.schemeSet1=Ly,e.schemeSet2=Oy,e.schemeSet3=Ny,e.schemeSpectral=Qy,e.schemeTableau10=Ry,e.schemeYlGn=bb,e.schemeYlGnBu=vb,e.schemeYlOrBr=wb,e.schemeYlOrRd=Sb,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=Be,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=V,e.stack=function(){var e=Kb([]),t=Ww,n=qw,r=$w;function i(i){var o,s,a=Array.from(e.apply(this,arguments),Gw),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=g_(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:Kb(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Kb(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?Ww:"function"==typeof e?e:Kb(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?qw: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}qw(e,t)}},e.stackOffsetNone=qw,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}qw(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,qw(e,t)}},e.stackOrderAppearance=Kw,e.stackOrderAscending=Xw,e.stackOrderDescending=function(e){return Xw(e).reverse()},e.stackOrderInsideOut=function(e){var t,n,r=e.length,i=e.map(Jw),o=Kw(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=Ww,e.stackOrderReverse=function(e){return Ww(e).reverse()},e.stratify=function(){var e,t=uf,n=df;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 pf(e,t-1)&&!pf(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(hf),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(hf(e)),h.push(cf));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 Np(o),null!=(u=p(o,s,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?lf: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===lf)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===cf&&1===a.children.length;)a=a.children[0],--i;for(let e=h.length-1;e>=0&&(c=h[e]).data===cf;--e)c.data=null}if(a.parent=af,a.eachBefore((function(e){e.depth=e.parent.depth+1,--i})).eachBefore(Op),a.parent=null,i>0)throw new Error("cycle");return a}return r.id=function(e){return arguments.length?(t=Rp(e),r):t},r.parentId=function(e){return arguments.length?(n=Rp(e),r):n},r.path=function(t){return arguments.length?(e=Rp(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=pl,e.symbol=function(e,t){let n=null,r=l_(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:Kb(e||B_),t="function"==typeof t?t:Kb(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:Kb(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:Kb(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i},e.symbolAsterisk=H_,e.symbolCircle=B_,e.symbolCross=U_,e.symbolDiamond=W_,e.symbolDiamond2=$_,e.symbolPlus=G_,e.symbolSquare=K_,e.symbolSquare2=Z_,e.symbolStar=ew,e.symbolTimes=uw,e.symbolTriangle=nw,e.symbolTriangle2=iw,e.symbolWye=cw,e.symbolX=uw,e.symbols=dw,e.symbolsFill=dw,e.symbolsStroke=hw,e.text=ol,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=x(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1},e.thresholdSturges=Q,e.tickFormat=lm,e.tickIncrement=Z,e.tickStep=X,e.ticks=K,e.timeDay=Gm,e.timeDays=Km,e.timeFormatDefaultLocale=dy,e.timeFormatLocale=Wg,e.timeFriday=sg,e.timeFridays=pg,e.timeHour=zm,e.timeHours=qm,e.timeInterval=Mm,e.timeMillisecond=Am,e.timeMilliseconds=Im,e.timeMinute=Vm,e.timeMinutes=Hm,e.timeMonday=ng,e.timeMondays=cg,e.timeMonth=Ag,e.timeMonths=Ig,e.timeSaturday=ag,e.timeSaturdays=fg,e.timeSecond=jm,e.timeSeconds=Ym,e.timeSunday=tg,e.timeSundays=lg,e.timeThursday=og,e.timeThursdays=hg,e.timeTickInterval=Bg,e.timeTicks=Hg,e.timeTuesday=rg,e.timeTuesdays=ug,e.timeWednesday=ig,e.timeWednesdays=dg,e.timeWeek=tg,e.timeWeeks=lg,e.timeYear=Ng,e.timeYears=Rg,e.timeout=Ai,e.timer=Ei,e.timerFlush=Ti,e.transition=co,e.transpose=ve,e.tree=function(){var e=ff,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,s=new bf(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 bf(r[i],i)),n.parent=t;return(s.parent=new bf(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=gf(a),o=mf(o),a&&o;)l=mf(l),(s=gf(s)).a=t,(i=a.z+d-o.z-c+e(a._,o._))>0&&(vf(yf(a,t,r),t,i),c+=i,u+=i),d+=a.m,c+=o.m,h+=l.m,u+=s.m;a&&!gf(s)&&(s.t=a,s.m+=d-u),o&&!mf(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=Sf,t=!1,n=1,r=1,i=[0],o=Fp,s=Fp,a=Fp,l=Fp,c=Fp;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(of),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=Pp(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:jp(+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:jp(+e),u):s},u.paddingRight=function(e){return arguments.length?(a="function"==typeof e?e:jp(+e),u):a},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:jp(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:jp(+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=sf,e.treemapResquarify=kf,e.treemapSlice=_f,e.treemapSliceDice=function(e,t,n,r,i){(1&e.depth?_f:sf)(e,t,n,r,i)},e.treemapSquarify=Sf,e.tsv=ll,e.tsvFormat=Za,e.tsvFormatBody=Xa,e.tsvFormatRow=Qa,e.tsvFormatRows=Ja,e.tsvFormatValue=el,e.tsvParse=Ga,e.tsvParseRows=Ka,e.union=function(...e){const t=new T;for(const n of e)for(const e of n)t.add(e);return t},e.unixDay=Jm,e.unixDays=Qm,e.utcDay=Zm,e.utcDays=Xm,e.utcFriday=wg,e.utcFridays=Dg,e.utcHour=Wm,e.utcHours=$m,e.utcMillisecond=Am,e.utcMilliseconds=Im,e.utcMinute=Bm,e.utcMinutes=Um,e.utcMonday=vg,e.utcMondays=kg,e.utcMonth=Lg,e.utcMonths=Og,e.utcSaturday=xg,e.utcSaturdays=Mg,e.utcSecond=jm,e.utcSeconds=Ym,e.utcSunday=gg,e.utcSundays=Sg,e.utcThursday=_g,e.utcThursdays=Cg,e.utcTickInterval=Vg,e.utcTicks=Yg,e.utcTuesday=yg,e.utcTuesdays=Eg,e.utcWednesday=bg,e.utcWednesdays=Tg,e.utcWeek=gg,e.utcWeeks=Sg,e.utcYear=Pg,e.utcYears=Fg,e.variance=w,e.version="7.8.5",e.window=dt,e.xml=dl,e.zip=function(){return ve(arguments)},e.zoom=function(){var e,t,n,r=sx,i=ax,o=dx,s=cx,a=ux,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=ei,h=Ie("start","zoom","end"),p=500,f=150,m=0,g=10;function v(e){e.property("__zoom",lx).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",T).filter(a).on("touchstart.zoom",C).on("touchmove.zoom",D).on("touchend.zoom touchcancel.zoom",M).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new tx(t,e.x,e.y)}function b(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 tx(e.k,r,i)}function _(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,t,n,r){e.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,s=x(e,o).event(r),a=i.apply(e,o),l=null==n?_(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 tx(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function x(e,t,n){return!n&&e.__zooming||new S(e,t)}function S(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function k(e,...t){if(r.apply(this,arguments)){var n=x(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=Jt(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)],Bi(this),n.start()}ox(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",o(b(y(i,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function E(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,s=x(this,t,!0).event(e),a=$t(e.view).on("mousemove.zoom",(function(e){if(ox(e),!s.moved){var t=e.clientX-u,n=e.clientY-d;s.moved=t*t+n*n>m}s.event(e).zoom("mouse",o(b(s.that.__zoom,s.mouse[0]=Jt(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),ox(e),s.event(e).end()}),!0),l=Jt(e,i),u=e.clientX,d=e.clientY;rn(e.view),ix(e),s.mouse=[l,this.__zoom.invert(l)],Bi(this),s.start()}}function T(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,s=Jt(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),d=o(b(y(n,l),s,a),i.apply(this,t),c);ox(e),u>0?$t(this).transition().duration(u).call(w,d,s,e):$t(this).call(v.transform,d,s,e)}}function C(n,...i){if(r.apply(this,arguments)){var o,s,a,l,c=n.touches,u=c.length,d=x(this,i,n.changedTouches.length===u).event(n);for(ix(n),s=0;s<u;++s)l=[l=Jt(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}),p)),Bi(this),d.start())}}function D(e,...t){if(this.__zooming){var n,r,i,s,a=x(this,t).event(e),l=e.changedTouches,u=l.length;for(ox(e),n=0;n<u;++n)i=Jt(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,g=(g=f[0]-h[0])*g+(g=f[1]-h[1])*g;r=y(r,Math.sqrt(m/g)),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(b(r,i,s),a.extent,c))}}function M(e,...r){if(this.__zooming){var i,o,s=x(this,r).event(e),a=e.changedTouches,l=a.length;for(ix(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),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=Jt(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<g)){var c=$t(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",lx),e!==i?w(e,t,n,r):i.interrupt().each((function(){x(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,r){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,r)},v.scaleTo=function(e,t,n,r){v.transform(e,(function(){var e=i.apply(this,arguments),r=this.__zoom,s=null==n?_(e):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(s),l="function"==typeof t?t.apply(this,arguments):t;return o(b(y(r,l),s,a),e,c)}),n,r)},v.translateBy=function(e,t,n,r){v.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)},v.translateTo=function(e,t,n,r,s){v.transform(e,(function(){var e=i.apply(this,arguments),s=this.__zoom,a=null==r?_(e):"function"==typeof r?r.apply(this,arguments):r;return o(nx.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)},S.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 ex(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:h}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:Qw(+e),v):s},v.filter=function(e){return arguments.length?(r="function"==typeof e?e:Qw(!!e),v):r},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:Qw(!!e),v):a},v.extent=function(e){return arguments.length?(i="function"==typeof e?e:Qw([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):i},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.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],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(o=e,v):o},v.duration=function(e){return arguments.length?(u=+e,v):u},v.interpolate=function(e){return arguments.length?(d=e,v):d},v.on=function(){var e=h.on.apply(h,arguments);return e===h?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v},e.zoomIdentity=nx,e.zoomTransform=rx})),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},x=function(e,t){var n="";return e>=55296&&e<=57343||e>1114111?(t&&E("character reference outside the permissible Unicode range"),"\ufffd"):_(g,e)?(t&&E("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)&&E("disallowed character reference"),e>65535&&(n+=y((e-=65536)>>>10&1023|55296),e=56320|1023&e),n+=y(e))},S=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},k=function(e){return"&#"+e+";"},E=function(e){throw Error("Parse error: "+e)},T=function(e,t){(t=w(t,T.options)).strict&&h.test(e)&&E("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,u=t.allowUnsafeSymbols,d=t.decimal?k:S,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)};T.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var C=function(e,t){var n=(t=w(t,C.options)).strict;return n&&d.test(e)&&E("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&&E("`&` did not start a character reference"),e):(n&&E("named character reference was not terminated by a semicolon"),m[v]+(y||""))):s?(p=s,h=a,n&&!h&&E("character reference was not terminated by a semicolon"),d=parseInt(p,10),x(d,n)):l?(g=l,h=c,n&&!h&&E("character reference was not terminated by a semicolon"),d=parseInt(g,16),x(d,n)):(n&&E("named character reference was not terminated by a semicolon"),e)}))};C.options={isAttributeValue:!1,strict:!1};var D={version:"1.2.0",encode:T,decode:C,escape:function(e){return e.replace(c,(function(e){return u[e]}))},unescape:C};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 M in D)_(D,M)&&(t[M]=D[M]);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 x(){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()})),x}return x.nvPointerEventsClass=f,x.options=e.utils.optionsFunc.bind(x),x._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,x())}},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(x),x},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],!0;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,x=d3.select(this);e.utils.initSVG(x);var S=x.selectAll("g.nv-wrap.nv-axis").data([l]),k=S.enter().append("g").attr("class","nvd3 nv-wrap nv-axis"),E=(k=k.merge(S)).append("g");E.select("g"),E=k.select("g"),null!==m?t.ticks(m):("top"===n||"bottom"===n)&&t.ticks(Math.abs(o.range()[1]-o.range()[0])/100),E.watchTransition(_,"axis").call(t),r=r||t.scale();var T=t.tickFormat();null==T&&(T=r.tickFormat()),E.attr("fill",""),E.attr("font-size",v),E.attr("font-family","");var C=E.selectAll("text.nv-axislabel").data([c||null]);switch(C.exit().remove(),void 0!==v&&E.selectAll("g").select("text").style("font-size",v),n){case"top":y=g+36;var D=C.enter().append("text").attr("class","nv-axislabel");if(D=x.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=E.enter().append("g").attr("class",((e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" "))).merge(E);var M=(b=x.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");M.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||T)(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 A=30,I=0,L=E.selectAll("g").select("text"),O="";if(d%360){L.attr("transform",""),L.each((function(e,t){var n=this.getBoundingClientRect(),r=n.width;I=n.height,r>A&&(A=r)})),O="rotate("+d+" 0,"+(I/2+t.tickPadding())+")";var N=Math.abs(Math.sin(d*Math.PI/180));y=(N?N*A:A)+30,L.attr("transform",O).style("text-anchor",d%360>0?"start":"end")}else p?L.attr("transform",(function(e,t){return"translate(0,"+(t%2==0?"0":"12")+")"})):L.attr("transform","translate(0,0)");if(D=C.enter().append("text").attr("class","nv-axislabel"),D=x.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=E.enter().append("g").attr("class",((e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" "))).merge(E);M=(b=x.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");M.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",O).style("text-anchor",d?d%360>0?"start":"end":"middle").text((function(e,t){var n=(i||T)(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=C.enter().append("text").attr("class","nv-axislabel"),(D=x.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=E.enter().append("g").attr("class",((e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" "))).merge(E);M=(b=x.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");M.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||T)(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=C.enter().append("text").attr("class","nv-axislabel"),(D=x.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=E.enter().append("g").attr("class",((e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" "))).merge(E);M=(b=x.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");M.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||T)(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)&&(E.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]&&S.selectAll("g.nv-axisMaxMin").style("opacity",(function(e,t){return t?0:1}))),u&&("top"===n||"bottom"===n)){var R=[];b.each((function(e,t){try{t?R.push(o(e)-this.getBoundingClientRect().width-4):R.push(o(e)+this.getBoundingClientRect().width+4)}catch(n){t?R.push(o(e)-4):R.push(o(e)+4)}})),E.selectAll("g").each((function(e,t){(o(e)<R[0]||o(e)>R[1])&&(e>1e-10||e<-1e-10?d3.select(this).remove():d3.select(this).select("text").remove())}))}E.selectAll(".tick").filter((function(e){return!parseFloat(Math.round(1e5*e)/1e6)&&void 0!==e})).classed("zero",!0),E.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},x=function(e,t,n){return e},S=function(e,t,n){},k=e.utils.defaultColor(),E=null,T=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),C=250,D=null,M=e.utils.renderWatch(T,C);function A(u){return M.reset(),u.each((function(u){var A=l-a.left-a.right,I=c-a.top-a.bottom;E=d3.select(this),e.utils.initSVG(E),d.domain(r||u.map((function(e,t){return p(e,t)}))).range(i||[0,A],.1);var L=[];if(!o){var O=[];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){O.push(w(e,t,void 0))})),i&&O.push(i),n&&O.push(n),r&&O.push(r),o&&O.push(o)})),L=[d3.min(O),d3.max(O)]}h.domain(o||L),h.range(s||[I,0]),t=t||d,n=n||h.copy().range([h(0),h(0)]);var N=E.selectAll("g.nv-wrap").data([u]).enter().append("g").attr("class","nvd3 nv-wrap");N.attr("transform","translate("+a.left+","+a.top+")");var R=N.selectAll(".nv-boxplot").data((function(e){return e})),P=R.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);P.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})),P.watchTransition(M,"nv-boxplot: boxplots").style("stroke-opacity",1).style("fill-opacity",.75).delay((function(e,t){return t*C/u.length})).attr("transform",(function(e,t){return"translate("+(d(p(e,t))+.05*d.bandwidth())+", 0)"})),R.exit().remove(),P.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 F=function(){return null===D?.9*d.bandwidth():Math.min(75,.9*d.bandwidth())},j=function(){return.45*d.bandwidth()-F()/2},Y=function(){return.45*d.bandwidth()+F()/2};[v,y].forEach((function(e){var t=e===v?"low":"high",n=e===v?f:g;P.select("line.nv-boxplot-whisker.nv-boxplot-"+t).watchTransition(M,"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))})),P.select("line.nv-boxplot-tick.nv-boxplot-"+t).watchTransition(M,"nv-boxplot: boxplots").attr("x1",j).attr("y1",(function(t,n){return h(e(t))})).attr("x2",Y).attr("y2",(function(t,n){return h(e(t))}))})),[v,y].forEach((function(e){var t=e===v?"low":"high";P.selectAll(".nv-boxplot-"+t).on("mouseover",(function(t,n,r,i){setCoordinates(t.pageX,t.pageY),d3.select(this).classed("hover",!0),T.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),T.call("elementMouseout",this,{series:{key:e(n),color:b(n)||k(n,i)},e:t})})).on("mousemove",(function(e,t,n){T.call("elementMousemove",this,{e:e})}))})),P.append("rect").attr("class","nv-boxplot-box").on("mouseover",(function(e,t,n){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0),T.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),T.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){T.call("elementMousemove",this,{e:e})})).watchTransition(M,"nv-boxplot: boxes").attr("y",(function(e,t){return h(g(e))})).attr("width",F).attr("x",j).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)})),P.append("line").attr("class","nv-boxplot-median").watchTransition(M,"nv-boxplot: boxplots line").attr("x1",j).attr("y1",(function(e,t){return h(m(e))})).attr("x2",Y).attr("y2",(function(e,t){return h(m(e))}));var V=P.selectAll(".nv-boxplot-outlier").data((function(e){return _(e)||[]}));V.enter().append("circle").style("fill",(function(e,t,n){return S(e,t,n)||k(e,n)})).style("stroke",(function(e,t,n){return S(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),T.call("elementMouseover",this,{series:{key:x(t,n,r),color:S(t,n,r)||k(t,r)},e:e})})).on("mouseout",(function(e,t,n,r){d3.select(this).classed("hover",!1),T.call("elementMouseout",this,{series:{key:x(t,n,r),color:S(t,n,r)||k(t,r)},e:e})})).on("mousemove",(function(e,t,n){T.call("elementMousemove",this,{e:e})})),V.attr("class","nv-boxplot-outlier"),V.watchTransition(M,"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"),V.exit().remove(),t=d.copy(),n=h.copy()})),M.renderEnd("nv-boxplot immediate"),A}return A.dispatch=T,A.options=e.utils.optionsFunc.bind(A),A._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 x},set:function(e){x=e}},outlierColor:{get:function(){return S},set:function(e){S=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 C},set:function(e){C=e,M.reset(C)}}}),e.utils.initOptions(A),A},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 x=f.selectAll("g.nv-wrap.nv-boxPlotWithAxes").data([c]),S=x.enter().append("g").attr("class","nvd3 nv-wrap nv-boxPlotWithAxes").append("g"),k=S.append("defs");x.select("g");var E=S.append("g").attr("class","nv-x nv-axis");E=f.selectAll("g.nv-wrap.nv-boxPlotWithAxes").select(".nv-x");var T=S.append("g").attr("class","nv-y nv-axis"),C=T.append("g").attr("class","nv-zeroLine").append("line"),D=S.append("g").attr("class","nv-barsWrap");if(S.attr("transform","translate("+s.left+","+s.top+")"),h&&T.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(-_),E.attr("transform","translate(0,"+n.range()[0]+")"),E.call(i);var M=E.select("g.nvd3.nv-wrap.nv-axis").selectAll("g");p&&M.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),T.call(o)),C.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 x(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 S(n){return n.each((function(n,g){var w=p-t.left-t.right,S=f-t.top-t.bottom;m=d3.select(this),e.utils.initSVG(m);var k=i.call(this,n,g).slice(),E=o.call(this,n,g).slice(),T=s.call(this,n,g).slice(),C=a.call(this,n,g).slice(),D=l.call(this,n,g).slice(),M=c.call(this,n,g).slice(),A=u.call(this,n,g).slice(),I=d.call(this,n,g).slice();x(D,k),x(M,E),x(A,T),x(I,C),k.sort(d3.descending),E.sort(d3.descending),T.sort(d3.descending),C.sort(d3.descending);var L=d3.scaleLinear().domain(d3.extent(d3.merge([h,k]))).range(r?[w,0]:[0,w]);this.__chart__||d3.scaleLinear().domain([0,1/0]).range(L.range()),this.__chart__=L,d3.min(k),d3.max(k),k[1];for(var O=m.selectAll("g.nv-wrap.nv-bullet").data([n]),N=O.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet").append("g"),R=O.select("g"),P=(g=0,k.length);g<P;g++){var F="nv-range nv-range"+g;g<=2&&(F=F+" nv-range"+_[g]),N.append("rect").attr("class",F)}N.append("rect").attr("class","nv-measure"),O.attr("transform","translate("+t.left+","+t.top+")");var j=function(e){return Math.abs(L(e)-L(0))},Y=function(e){return L(e<0?e:0)};for(g=0,P=k.length;g<P;g++){var V=k[g];R.select("rect.nv-range"+g).datum(V).attr("height",S).transition().duration(1e3).attr("width",j(V)).attr("x",Y(V))}R.select("rect.nv-measure").style("fill",v).attr("height",S/3).attr("y",S/3).on("mouseover",(function(){y.call("elementMouseover",this,{value:C[0],label:I[0]||"Current",color:d3.select(this).style("fill")})})).on("mousemove",(function(){y.call("elementMousemove",this,{value:C[0],label:I[0]||"Current",color:d3.select(this).style("fill")})})).on("mouseout",(function(){y.call("elementMouseout",this,{value:C[0],label:I[0]||"Current",color:d3.select(this).style("fill")})})).transition().duration(1e3).attr("width",C<0?L(0)-L(C[0]):L(C[0])-L(0)).attr("x",Y(C));var H=S/6,B=E.map((function(e,t){return{value:e,label:M[t]}}));N.selectAll("path.nv-markerTriangle").data(B).enter().append("path").attr("class","nv-markerTriangle").attr("d","M0,"+H+"L"+H+","+-H+" "+-H+","+-H+"Z").on("mouseover",(function(e){y.call("elementMouseover",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill"),pos:[L(e.value),S/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")})})),R.selectAll("path.nv-markerTriangle").data(B).transition().duration(1e3).attr("transform",(function(e){return"translate("+L(e.value)+","+S/2+")"}));var U=T.map((function(e,t){return{value:e,label:A[t]}}));N.selectAll("line.nv-markerLine").data(U).enter().append("line").attr("cursor","").attr("class","nv-markerLine").attr("x1",(function(e){return L(e.value)})).attr("y1","2").attr("x2",(function(e){return L(e.value)})).attr("y2",S-2).on("mouseover",(function(e){y.call("elementMouseover",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill"),pos:[L(e.value),S/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")})})),R.selectAll("line.nv-markerLine").data(U).transition().duration(1e3).attr("x1",(function(e){return L(e.value)})).attr("x2",(function(e){return L(e.value)})),O.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:C[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")})}))})),S}return S.dispatch=y,S.options=e.utils.optionsFunc.bind(S),S._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(S),S},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 x=w.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart").append("g"),S=w.select("g"),k=x.append("g").attr("class","nv-bulletWrap"),E=x.append("g").attr("class","nv-titles"),T=d3.scaleLinear().domain([0,Math.max(y[0],b[0]||0,_[0])]).range(i?[g,0]:[0,g]),C=this.__chart__||d3.scaleLinear().domain([0,1/0]).range(T.range());this.__chart__=T;var D=E.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 M=d||T.tickFormat(g/100),A=S.selectAll("g.nv-tick").data(T.ticks(h||g/50),(function(e){return this.textContent||M(e)})),I=A.enter().append("g").attr("class","nv-tick").attr("transform",(function(e){return"translate("+C(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(M);var L=A.transition().duration(t.duration()).attr("transform",(function(e){return"translate("+T(e)+",0)"})).style("opacity",1);L.select("line").attr("y1",v).attr("y2",7*v/6),L.select("text").attr("y",7*v/6),I.transition().duration(t.duration()).attr("transform",(function(e){return"translate("+T(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,x=e.utils.defaultColor(),S=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function E(x){return x.each((function(x){t=d3.select(this);var S=e.utils.availableWidth(a,t,s),E=e.utils.availableHeight(l,t,s);e.utils.initSVG(t);var T=S/x[0].values.length*.45;u.domain(n||d3.extent(x[0].values.map(h).concat(y))),_?u.range(i||[.5*S/x[0].values.length,S*(x[0].values.length-.5)/x[0].values.length]):u.range(i||[5+T/2,S-T/2-5]),d.domain(r||[d3.min(x[0].values.map(v).concat(b)),d3.max(x[0].values.map(g).concat(b))]).range(o||[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 C=d3.select(this).selectAll("g.nv-wrap.nv-candlestickBar").data([x[0].values]),D=C.enter().append("g").attr("class","nvd3 nv-wrap nv-candlestickBar");D.attr("transform","translate("+s.left+","+s.top+")");var M=D.append("defs"),A=D.append("g");C.select("g");var I=A.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})})),M.append("clipPath").attr("id","nv-chart-clip-path-"+c).append("rect").attr("width",S).attr("height",E),A.attr("clip-path",w?"url(#nv-chart-clip-path-"+c+")":"");var L=I.selectAll(".nv-tick").data((function(e){return e}));L.exit().remove();var O=L.enter().append("g");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.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))})),O.append("rect").attr("class","nv-candlestick-rects nv-bars").attr("transform",(function(e,t){return"translate("+(u(h(e,t))-T/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",T).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)})),O.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))})),O.select(".nv-candlestick-rects").transition().attr("transform",(function(e,t){return"translate("+(u(h(e,t))-T/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",T).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)}))})),E}return E.highlightPoint=function(e,n){E.clearHighlights(),t.select(".nv-candlestickBar .nv-tick-0-"+e).classed("hover",n)},E.clearHighlights=function(){t.select(".nv-candlestickBar .nv-tick.hover").classed("hover",!1)},E.dispatch=k,E.options=e.utils.optionsFunc.bind(E),E._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 S},set:function(e){S=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 x},set:function(t){x=e.utils.getColor(t)}}}),e.utils.initOptions(E),E},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,x="top",S=r.id(),k=e.utils.state(),E=null,T=null,C=function(e){return e.average},D=d3.dispatch("stateChange","changeState","renderEnd"),M=250,A=(d3.transition().duration(M).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,L=d3.scaleLinear(),O={i:0,x:0},N=e.utils.renderWatch(D,M);function R(c){return N.reset(),N.models(r),g&&N.models(i),v&&N.models(o),c.each((function(c){var x,T,N,j=d3.select(this);e.utils.initSVG(j),j.classed("nv-chart-"+S,!0);var Y,V,H=e.utils.availableWidth(p,j,u),B=e.utils.availableHeight(f,j,u);if(R.update=function(){0===M?j.call(R):j.transition().duration(M).call(R)},R.container=this,k.setter((Y=c,function(e){void 0!==e.index&&(O.i=e.index),void 0!==e.rescaleY&&(w=e.rescaleY),void 0!==e.active&&Y.forEach((function(t,n){t.disabled=!e.active[n]}))}),R.update).getter((V=c,function(){return{active:V.map((function(e){return!e.disabled})),index:O.i,rescaleY:w}})).update(),k.disabled=c.map((function(e){return!!e.disabled})),!E)for(N in E={},k)k[N]instanceof Array?E[N]=k[N].slice(0):E[N]=k[N];var U=d3.drag().on("start",(function(e,t){d3.select(R.container).style("cursor","ew-resize")})).on("drag",(function(e,t,n){O.x=e.x,O.i=Math.round(L.invert(O.x)),ue()})).on("end",(function(e,t){d3.select(R.container).style("cursor","auto"),k.index=O.i,D.call("stateChange",this,k)}));if(!c||!c.length||!c.filter((function(e){return e.values.length})).length)return e.utils.noData(R,j),R;j.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale(),L.domain([0,c[0].values.length-1]).range([0,H]).clamp(!0);x=O.i,T=c,P||(P=r.y()),c=T.map((function(e,t){if(!e.values)return e;var n=e.values[x];if(null==n)return e;var r=P(n,x);return 1e-5>Math.abs(r)&&!A?(e.tempDisabled=!0,e):(e.tempDisabled=!1,e.values=e.values.map((function(e,t){return e.display={y:(P(e,t)-r)/r},e})),e)}));void 0===I&&(I=F(c)),w?r.yDomain(null):(r.yDomain(I),r.clipEdge(!0));var z=_?"none":"all",q=j.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=j.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=j.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-x");var X=G.append("g").attr("class","nv-y nv-axis");X=j.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-y");var J=G.append("g").attr("class","nv-background");J=j.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-background");var Q=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=j.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=j.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-controlsWrap"),te=j.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-legendWrap"),m?(s.width(H),te.datum(c).call(s),d||s.height()===u.top||(u.top=s.height(),B=e.utils.availableHeight(f,j,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("+H+",0)");var ie=c.filter((function(e){return e.tempDisabled}));$.select(".tempDisabled").remove(),ie.length&&$.append("text").attr("class","tempDisabled").attr("x",H/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(H).height(B).margin({left:u.left,top:u.top}).svgContainer(j).xScale(t),K.call(l));var oe=J.select("rect");oe.empty()&&J.append("rect"),oe.attr("width",H).attr("height",B),r.y((function(e){return e.display.y})).width(H).height(B).color(c.map((function(e,t){return e.color||h(e,t)})).filter((function(e,t){return!c[t].disabled&&!c[t].tempDisabled}))),(Q=j.selectAll("g.nv-linesWrap.nvd3-svg").data([W]).merge(Q)).call(r),c.forEach((function(e,t){e.seriesIndex=t}));var se=c.filter((function(e){return!e.disabled&&!!C(e)})),ae=ee.selectAll("line").data(se,(function(e){return e.key})),le=function(e){var t=n(C(e));return t<0?0:t>B?B: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",H).attr("y1",le).attr("y2",le).style("stroke-opacity",(function(e){var t=n(C(e));return t<0||t>B?0:1})).attr("x1",0).attr("x2",H).attr("y1",le).attr("y2",le).merge(ae);var ce=Q.selectAll(".nv-indexLine").data([O]);function ue(){ce.data([O]);var e=R.duration();R.duration(0),R.update(),R.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("+L(e.i)+",0)"})).attr("height",B).merge(ce),g&&(i.scale(t)._ticks(e.utils.calcTicksX(H/70,c)),i.tickSizeInner(-B),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(B/36,c)),o.tickSizeInner(-H),X.call(o)),oe.on("click",(function(e){O.x=d3.pointer(e)[0],O.i=Math.round(L.invert(O.x)),k.index=O.i,D.call("stateChange",oe,k),ue()})),r.dispatch.on("elementClick",(function(e){O.i=e.pointIndex,O.x=L(O.i),k.index=O.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=F(c)),D.call("stateChange",this,k),R.update()})),s.dispatch.on("stateChange",(function(e){for(var t in e)k[t]=e[t];D.call("stateChange",this,e),R.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,R.x()),r.highlightPoint(o,s,!0);var l=i.values[s];void 0!==l&&(void 0===n&&(n=l),void 0===a&&(a=R.xScale()(R.x()(l,s))),u.push({key:i.key,value:R.y()(l,s),color:h(i,i.seriesIndex)}))})),u.length>2){var d=R.yScale().invert(t.mouseY),p=Math.abs(R.yScale().domain()[0]-R.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()(R.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&&(O.i=e.index,O.x=L(O.i),k.index=e.index,ce.data([O])),void 0!==e.rescaleY&&(w=e.rescaleY),R.update()}))})),N.renderEnd("cumulativeLineChart immediate"),R}r.dispatch.on("elementMouseover.tooltip",(function(e){var t={x:R.x()(e.point),y:R.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 P=null;function F(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 R.dispatch=D,R.lines=r,R.legend=s,R.controls=a,R.xAxis=i,R.yAxis=o,R.interactiveLayer=l,R.state=k,R.tooltip=c,R.options=e.utils.optionsFunc.bind(R),R._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 x},set:function(e){x=e}},average:{get:function(){return C},set:function(e){C=e}},defaultState:{get:function(){return E},set:function(e){E=e}},noData:{get:function(){return T},set:function(e){T=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 A},set:function(e){A=e}},rescaleY:{get:function(){return w},set:function(e){w=e,R.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&&(R.interactive(!1),R.useVoronoi(!1))}},rightAlignYAxis:{get:function(){return y},set:function(e){y=e}},duration:{get:function(){return M},set:function(e){M=e,r.duration(M),i.duration(M),o.duration(M),N.reset(M),d3.transition().duration(M).ease(d3.easeLinear)}}}),e.utils.inheritOptions(R,r),e.utils.initOptions(R),R},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})),x=d3.extent(d3.merge(w),(function(e){return e.x}));n.xAxis.domain(x).range([0,g]);var S=d3.extent(d3.merge(w),(function(e){return i(e)}));n.yDomain1(S),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"),x="discreteBar",S=250,k=e.utils.renderWatch(w,S);function E(d){return k.reset(),d.each((function(d){var S=c-l.left-l.right,E=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 T=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(T).map((function(e){return e.x}))).range(s||[0,S],.1),p.domain(o||d3.extent(d3.merge(T).map((function(e){return e.y})).concat(g))),b?p.range(a||[E-(p.domain()[0]<0?12:0),p.domain()[1]>0?12:0]):p.range(a||[E,0]),t=t||h,n=n||p.copy().range([p(0),p(0)]);var C=r.selectAll("g.nv-wrap.nv-discretebar").data([d]).enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar");C.attr("transform","translate("+l.left+","+l.top+")");var D=C.append("g");D.select("g");var M=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);M.exit().watchTransition(k,"discreteBar: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),M.attr("class",(function(e,t){return"nv-group nv-series-"+t})).classed("hover",(function(e){return e.hover})),M.watchTransition(k,"discreteBar: groups").style("stroke-opacity",1).style("fill-opacity",.75);var A=M.selectAll("g.nv-bar").data((function(e){return e.values}));A.exit().remove();var I=A.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()})),L=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})):L.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",x).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"),E}return E.dispatch=w,E.options=e.utils.optionsFunc.bind(E),E._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 x},set:function(e){x=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 S},set:function(e){S=e,k.reset(S)}}}),e.utils.initOptions(E),E},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"),x=250;d3.transition().duration(x).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 S=e.utils.renderWatch(w,x);function k(a){return S.reset(),S.models(r),f&&S.models(i),m&&S.models(o),a.each((function(a){var h=d3.select(this),_=this;e.utils.initSVG(h);var S=e.utils.availableWidth(u,h,l),E=e.utils.availableHeight(d,h,l);if(k.update=function(){w.call("beforeUpdate",_),h.transition().duration(x).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 T=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([a]).enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g");T.attr("transform","translate("+l.left+","+l.top+")");var C=T.append("defs"),D=T.select("g"),M=T.append("g").attr("class","nv-x nv-axis");M=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").select(".nv-x");var A=T.append("g").attr("class","nv-y nv-axis"),I=A.append("g").attr("class","nv-zeroLine").append("line"),L=T.append("g").attr("class","nv-barsWrap"),O=T.append("g").attr("class","nv-legendWrap");if(O=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").select(".nv-legendWrap"),p?(s.width(S),O.datum(a).call(s),c||s.height()===l.top||(l.top=s.height(),E=e.utils.availableHeight(d,h,l)),O.attr("transform","translate(0,"+-l.top+")")):O.selectAll("*").remove(),g&&A.attr("transform","translate("+S+",0)"),r.width(S).height(E),L.datum(a.filter((function(e){return!e.disabled}))).transition().duration(0).call(r),C.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(S/100,a)),i.tickSizeInner(-E),M.attr("transform","translate(0,"+(n.range()[0]+(r.showValues()&&n.domain()[0]<0?16:0))+")"),M.call(i);var N=M.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(E/36,a,r.y())),o.tickSizeInner(-S),A.call(o)),I.attr("x1",0).attr("x2",g?-S:S).attr("y1",n(0)).attr("y2",n(0))})),S.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 x},set:function(e){x=e,S.reset(x),d3.transition().duration(x).ease(d3.easeLinear),r.duration(x),i.duration(x),o.duration(x)}},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[C]},x=function(e){return e.values.wu[C]},S=function(e){return e.values.min},k=function(e){return e.values.max},E=function(e){return e.values.dev},T=!1,C="iqr",D=!1,M=!1,A=!1,I=!1,L=!0,O=.7,N=!0,R="scott",P=!0,F=50,j=3,Y=e.utils.defaultColor(),V=null,H=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),B=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 A&&G.add(A(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(j+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()*O*(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()*O*(1==Math.floor(2*Math.random())?1:-1)})})),isNaN(parseFloat(R))&&(n=-1!=["scott","silverman"].indexOf(R)?z(s,R):z(s));var b=(r=n,i=function(e){return 1>=Math.abs(e/=r)?.75*(1-e*e)/r:0},o=p._ticks(F),function(e){return o.map((function(t){var n=d3.mean(e,(function(e){return i(t-e)}));return{x:t,y:n}}))}),_=P?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 x={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 A&&Z.push({key:t,values:x}),x}if(e.forEach((function(e,t){e.object_constancy=t+"_"+m(e)+"_"+f(e)})),A){G=new Set;var n,r=d3.group().key((function(e){return f(e)})).key((function(e){return A(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"==C&&e.isOutlier||"stddev"==C&&e.isOutlierStdDev}var $,G=new Set,K=[],Z=[],X=e.utils.renderWatch(H,B);function J(d){return X.reset(),d.each((function(d){t=c-l.left-l.right,n=u-l.top-l.bottom,V=d3.select(this),e.utils.initSVG(V),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||A&&!N?G:$.map((function(e){return e.key})));var f=V.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 C,O=f.selectAll(".nv-distroplot-x-group").data((function(e){return e}));O.each((function(e,t){d3.select(this).selectAll("line.nv-distroplot-middle").datum(e)})),C=O.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)||Y(e,t)})).style("stroke",(function(e,t){return g(e)||Y(e,t)})),O.exit().remove();var R=function(){return h.bandwidth()},P=function(){return d3.min([U,.9*R()])},F=function(){return P()/2},B=function(){return F()-P()/2},z=function(){return F()-P()/5},Z=function(){return F()+P()/5};C.attr("transform",(function(e){return"translate("+(h(e.key)+.5*(R()-P()))+", 0)"})),O.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*(R()-P()))+", 0)"})),K.map((function(e){e.range([P()/2,0])})),r||(L=!1,T||(T="random")),C.each((function(e,t){var n=d3.select(this);[w,x].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,x].forEach((function(e){var t=e===w?"low":"high",n=e===w?v:b;O.select("line.nv-distroplot-whisker.nv-distroplot-"+t).watchTransition(X,"nv-distroplot-x-group: distroplots").attr("x1",F()).attr("y1",(function(t){return p("violin"!=r?e(t):y(t))})).attr("x2",F()).attr("y2",(function(e){return p("box"==r?n(e):y(e))})).style("opacity",(function(){return D?"0":"1"})),O.select("line.nv-distroplot-tick.nv-distroplot-"+t).watchTransition(X,"nv-distroplot-x-group: distroplots").attr("x1",(function(e){return"violin"!=r?z():F()})).attr("y1",(function(t,n){return p("violin"!=r?e(t):y(t))})).attr("x2",(function(e){return"violin"!=r?Z():F()})).attr("y2",(function(t,n){return p("violin"!=r?e(t):y(t))})).style("opacity",(function(){return D?"0":"1"}))})),[w,x].forEach((function(e){var t=e===w?"low":"high";C.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),H.call("elementMouseover",this,{value:"low"==t?"Lower whisker":"Upper whisker",series:{key:e(r).toFixed(2),color:g(r)||Y(r,o)},e:n})})).on("mouseout",(function(n,r,i,o){d3.select(this.parentNode).selectAll("line.nv-distroplot-"+t).classed("hover",!1),H.call("elementMouseout",this,{value:"low"==t?"Lower whisker":"Upper whisker",series:{key:e(r).toFixed(2),color:g(r)||Y(r,o)},e:n})})).on("mousemove",(function(e,t){H.call("elementMousemove",this,{e:event})}))})),C.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?-P():0)+")"+("left"==e?"":" scale(1,-1)"))}))})),C.selectAll(".nv-distribution-line").style("fill","none"),C.selectAll(".nv-distribution-area").style("stroke","none").style("opacity",.7)})),O.each((function(e,t){var n,i,o,s,a,l,c,u=d3.select(this),d="box"==r?(n=B(),i=z(),o=F(),s=e,c="mean"==I?_(s):y(s),M?[{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){O.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?-P():0)+")"+("left"==e?"":" scale(1,-1)")).style("opacity",r?"1":"0"),O.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(P()/2).curve(f)).attr("transform","rotate(90,0,0) translate(0,"+("left"==e?-P():0)+")"+("left"==e?"":" scale(1,-1)")).style("opacity",r?"1":"0")})):(O.selectAll(".nv-distribution-area").watchTransition(X,"nv-distribution-area: distroplots").style("opacity",r?"1":"0"),O.selectAll(".nv-distribution-line").watchTransition(X,"nv-distribution-line: distroplots").style("opacity",r?"1":"0"))})),O.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),H.call("elementMouseover",this,{key:t.key,value:"Group "+t.key+" stats",series:[{key:"max",value:k(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q3",value:b(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q2",value:y(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q1",value:v(t).toFixed(2),color:g(t)||Y(t,r)},{key:"min",value:S(t).toFixed(2),color:g(t)||Y(t,r)},{key:"mean",value:_(t).toFixed(2),color:g(t)||Y(t,r)},{key:"std. dev.",value:E(t).toFixed(2),color:g(t)||Y(t,r)},{key:"count",value:t.values.count,color:g(t)||Y(t,r)},{key:"num. outliers",value:t.values.num_outlier,color:g(t)||Y(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(),H.call("elementMouseout",this,{key:t.key,value:"Group "+t.key+" stats",series:[{key:"max",value:k(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q3",value:b(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q2",value:y(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q1",value:v(t).toFixed(2),color:g(t)||Y(t,r)},{key:"min",value:S(t).toFixed(2),color:g(t)||Y(t,r)},{key:"mean",value:_(t).toFixed(2),color:g(t)||Y(t,r)},{key:"std. dev.",value:E(t).toFixed(2),color:g(t)||Y(t,r)},{key:"count",value:t.values.count,color:g(t)||Y(t,r)},{key:"num. outliers",value:t.values.num_outlier,color:g(t)||Y(t,r)}],data:t,index:t.index,e:e})})).on("mousemove",(function(e,t,n){H.call("elementMousemove",this,{e:e})})),C.append("line").attr("class",(function(e){return"nv-distroplot-middle"})),O.selectAll("line.nv-distroplot-middle").watchTransition(X,"nv-distroplot-x-group: distroplots line").attr("x1",M?z:"violin"!=r?B:z()).attr("y1",(function(e,t,n){return p("mean"==I?_(e):y(e))})).attr("x2",M?Z:"violin"!=r?function(){return F()+P()/2}:Z()).attr("y2",(function(e,t){return p("mean"==I?_(e):y(e))})).style("opacity",I?"1":"0"),O.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),H.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");H.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){H.call("elementMousemove",this,{e:e})}));var J=O.selectAll("g.nv-distroplot-observation").data((function(e){return e.values.observations}),(function(e){return e.object_constancy})),Q=J.enter().append("g").attr("class","nv-distroplot-observation");Q.append("circle").style({opacity:0}),Q.append("line").style("stroke-width",1).style({stroke:d3.rgb(85,85,85),opacity:0}),J.exit().remove(),J.attr("class",(function(e){return"nv-distroplot-observation "+(W(e)&&"box"==r?"nv-distroplot-outlier":"nv-distroplot-non-outlier")})),"line"==T?O.selectAll("g.nv-distroplot-observation line").watchTransition(X,"nv-distrolot-x-group: nv-distoplot-observation").attr("x1",z()+P()/4).attr("x2",Z()-P()/4).attr("y1",(function(e){return p(e.datum)})).attr("y2",(function(e){return p(e.datum)})):(O.selectAll("g.nv-distroplot-observation circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").attr("cy",(function(e){return p(e.datum)})).attr("r",j),O.selectAll("g.nv-distroplot-observation circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").attr("cx",(function(e){return"swarm"==T?e.x+P()/2:"random"==T?P()/2+e.randX*P()/2:P()/2}))),!1!==T&&(L?(O.selectAll(".nv-distroplot-outlier "+("line"==T?"line":"circle")).watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",1),O.selectAll(".nv-distroplot-non-outlier "+("line"==T?"line":"circle")).watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",0)):O.selectAll("line"==T?"line":"circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",1)),O.selectAll(".nv-distroplot-observation"+("line"==T?" circle":" line")).watchTransition(X,"nv-distroplot: nv-distoplot-observation").style("opacity",0),O.selectAll(".nv-distroplot-observation").on("mouseover",(function(e,t,n,i){setCoordinates(e.pageX,e.pageY);var o=d3.select(this);if(!L||"box"!=r||W(t)){var s=d3.select(this.parentNode).style("fill");o.classed("hover",!0),H.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),H.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){H.call("elementMousemove",this,{e:e})}))})),X.renderEnd("nv-distroplot-x-group immediate"),J}return J.dispatch=H,J.options=e.utils.optionsFunc.bind(J),J._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 T},set:function(e){T=e}},whiskerDef:{get:function(){return C},set:function(e){C=e}},notchBox:{get:function(){return M},set:function(e){M=e}},hideWhiskers:{get:function(){return D},set:function(e){D=e}},colorGroup:{get:function(){return A},set:function(e){A=e}},centralTendency:{get:function(){return I},set:function(e){I=e}},bandwidth:{get:function(){return R},set:function(e){R=e}},clampViolin:{get:function(){return P},set:function(e){P=e}},resolution:{get:function(){return F},set:function(e){F=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 L},set:function(e){L=e}},jitter:{get:function(){return O},set:function(e){O=e}},squash:{get:function(){return N},set:function(e){N=e}},pointSize:{get:function(){return j},set:function(e){j=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(V.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 Y},set:function(t){Y=e.utils.getColor(t)}},duration:{get:function(){return B},set:function(e){B=e,X.reset(B)}}}),e.utils.initOptions(J),J},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,x,S,k,E,T,C=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 M(u){return C.reset(),C.models(i),d&&C.models(o),h&&C.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,A=(c||parseInt(m.style("height"))||400)-a.top-a.bottom;if(void 0===t&&(t=JSON.parse(JSON.stringify(u))),M.update=function(){b.call("beforeUpdate",g);var e,n=i.options();(w!==n.colorGroup()||x!==n.x()||S!==n.y()||E!==n.bandwidth()||k!==n.resolution()||T!==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(M)},M.container=this,"function"!=typeof d3.beeswarm&&"swarm"==M.options().observationType())return a.left,y='Please include the library https://github.com/Kcnarf/d3-beeswarm to use "swarm".',e.utils.noData(M,m),M;if(!u||!u.length)return e.utils.noData(M,m),M;m.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale().clamp(!0);var I=m.selectAll("g.nv-wrap.nv-distroPlot").data([u]),L=I.enter().append("g").attr("class","nvd3 nv-wrap nv-distroPlot").append("g"),O=L.append("defs"),N=I.select("g");if(L.append("g").attr("class","nv-x nv-axis"),L.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),L.append("g").attr("class","nv-distroWrap"),L.attr("transform","translate("+a.left+","+a.top+")"),N.watchTransition(C,"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(A),N.select(".nv-distroWrap").datum(u).transition().call(i),O.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(-A),N.select(".nv-x.nv-axis").attr("transform","translate(0,"+r.range()[0]+")"),N.select(".nv-x.nv-axis").call(o);var R=N.select(".nv-x.nv-axis").select("g.nvd3.nv-wrap.nv-axis").selectAll("g");f&&R.selectAll("text").attr("transform",(function(e,t,n){return"translate(0,"+(n%2==0?"5":"17")+")"}))}h&&(s.scale(r)._ticks(Math.floor(A/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(),x=i.options().x(),S=i.options().y(),E=i.options().bandwidth(),k=i.options().resolution(),T=i.options().clampViolin()})),C.renderEnd("nv-distroplot chart immediate"),M}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()})),M.dispatch=b,M.distroplot=i,M.xAxis=o,M.yAxis=s,M.tooltip=v,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}},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,C.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(M,i),e.utils.initOptions(M),M},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),x=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 S=_.selectAll("g.nv-focus").data([y]).enter().append("g").attr("class","nvd3 nv-focus");S.attr("transform","translate("+a.left+","+a.top+")");var k=S.append("g"),E=k.append("g").attr("class","nv-background").append("rect"),T=k.append("g").attr("class","nv-x nv-axis");T=_.selectAll(".nv-focus").select(".nv-x.nv-axis");var C=k.append("g").attr("class","nv-y nv-axis");C=_.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 M=k.append("g").attr("class","nv-brushBackground");M=_.selectAll(".nv-focus").select(".nv-brushBackground");var A=k.append("g").attr("class","nv-x nv-brush");A=_.selectAll(".nv-focus").select(".nv-x.nv-brush"),p&&C.attr("transform","translate("+w+",0)"),E.attr("width",w).attr("height",x),t.width(w).height(x).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=M.selectAll("g").data([f||s.extent()]),L=I.enter().append("g");L.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",x),L.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",x).merge(k);var O=A.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)}O.selectAll("rect").attr("height",x),O.selectAll(".resize").append("path").attr("d",(function(e){var t=+("e"==e),n=t?1:-1,r=x/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),E.attr("width",w).attr("height",x).merge(k),d&&(i.scale(n)._ticks(e.utils.calcTicksX(w/100,y)),i.tickSizeInner(-x),T.attr("transform","translate(0,"+r.range()[0]+")"),T.transition().call(i)),h&&(o.scale(r)._ticks(e.utils.calcTicksY(x/36,y)),o.tickSizeInner(-w),C.call(o)),T.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 x(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(x,i),x;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+")"}))}))})),x}return x.options=e.utils.optionsFunc.bind(x),x._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}}}),x.dispatch=o,x.tooltip=a,e.utils.initOptions(x),x},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 x=w.selectAll("g.nv-legend").data([v]).enter().append("g").attr("class","nvd3 nv-legend");x.attr("transform","translate("+t.left+","+t.top+")");var S=x.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}))})),E=k.enter().append("g").attr("class","nv-series");if("classic"==g)P=E.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5).select("circle");else if("furious"==g){var T=E.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3);P=T.select("rect"),T.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 C=E.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");switch((E=k.merge(E)).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=E.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=E.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}))})}})),E.classed("nv-disabled",(function(e){return e.userDisabled})),E.exit().remove(),C.attr("fill",b(d,N)).text((function(e){return o(i(e))})),g){case"furious":F=23;break;case"classic":F=20}if(l){var D=[];E.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 M=0,A=0,I=[];A<y&&M<D.length;)I[M]=D[M],A+=D[M++];for(0===M&&(M=1);A>y&&M>1;){I=[],M--;for(var L=0;L<D.length;L++)D[L]>(I[L%M]||0)&&(I[L%M]=D[L]);A=I.reduce((function(e,t,n,r){return e+t}))}for(var O=[],N=0,R=0;N<M;N++)O[N]=R,R+=I[N];E.attr("transform",(function(e,t){return"translate("+O[t%M]+","+(5+Math.floor(t/M)*F)+")"})),u?S.attr("transform","translate("+(n-t.right-A)+","+t.top+")"):S.attr("transform","translate(0,"+t.top+")"),r=t.top+t.bottom+Math.ceil(D.length/M)*F}else{var P,F,j,Y=5,V=5,H=0;E.attr("transform",(function(e,r){var i=d3.select(this).select("text").node().getComputedTextLength()+c;return j=V,n<t.left+t.right+j+i&&(V=j=5,Y+=F),(V+=i)>H&&(H=V),"translate("+j+","+Y+")"})),S.attr("transform","translate("+(n-t.right-H)+","+t.top+")"),r=t.top+t.bottom+Y+15}"furious"==g&&P.attr("width",(function(e,t){return C[0][t].getComputedTextLength()+27})).attr("height",18).attr("y",-9).attr("x",-15),P.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},x=function(e){return e.value},S=!0,k=function(e){return"number"==typeof e?e.toFixed(0):e},E=!1,T=2,C=4,D=!1,M=!0,A=e.utils.defaultColor(),I=e.utils.defaultColor(),L="#bcbcbc",O="",N=5,R=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),P=250,F=function(e){return n/3},j=function(e){return r/3},Y=!1;function V(e){var t=d3.median(e),n=e.map((function(e){return Math.abs(e-t)}));return d3.median(n)}function H(e){var t=D?ie(e):x(e);return B()&&!isNaN(t)||void 0!==t?b(t):L}function B(){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):x(e));return B()&&!isNaN(t)||void 0!==t?t:O};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=[],J=[],Q=e.utils.renderWatch(R,P),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 Q.reset(),g.each((function(g){$={},G={},K=[],Z=[],X=[],J=[],k=[],L={},O=0,P=0,se=0,g.forEach((function(e){var t,n,r,i=_(e),o=w(e),s=x(e);i in $||($[i]=O,O++,L[i]={},"function"==typeof c&&Z.push(c(e))),o in G||(G[o]=P,P++,L[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=J,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.")):(J.push(te),L[i][o]=e)})),K=K.sort(),ae=[],Object.keys(G).forEach((function(e){Object.keys($).forEach((function(t){var n=L[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(x(e))):"col"==t?(ne(e)in n||(n[ne(e)]=[]),n[ne(e)].push(x(e))):null==t&&(0 in n||(n[0]=[]),n[0].push(x(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]):V(s[c]));e.forEach((function(e,t){if(B()){if("row"==o)var n=re(e);else if("col"==o)n=ne(e);else if(null==o)n=0;var i=x(e)-a[n];e._cellPos.norm=r?i/l[n]:i}else e._cellPos.norm=x(e)}))}else D=!1;return e}(ae):ae;var k,L,O,P,te,se,ae,le=f-p.left-p.right,ce=m-p.top-p.bottom;r=le/Object.keys($).length,n=E?r/E:ce/Object.keys(G).length,E&&(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-C/2]),y.domain(s||q(G)).range(l||[0,ce-C/2]),(b=B()?d3.scaleQuantize():d3.scaleOrdinal()).domain(h||(B()?D?d3.extent(t,(function(e){return ie(e)})):d3.extent(K):B()?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(Q,"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,"+(-F()-C-N)+")"}));var me=de.select(".xMetaWrap").selectAll(".x-meta").data(Z);me.enter().append("rect").attr("class","x-meta meta").attr("width",r-C).attr("height",F()).attr("transform","translate(0,0)").attr("fill",(function(e){return A(e)})),de.append("g").attr("class","yMetaWrap").attr("transform",(function(e,t){return"translate("+(-j()-C-N)+",0)"}));var ge=de.select(".yMetaWrap").selectAll(".y-meta").data(X);ge.enter().append("rect").attr("class","y-meta meta").attr("width",j()).attr("height",n-C).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(Q,"heatMap: rect").attr("width",r-C).attr("height",n-C).attr("rx",T).attr("ry",T).style("stroke",(function(e){return H(e)})),fe.attr("class",(function(e){return isNaN(x(e))?"nv-cell cell-missing":"nv-cell"})).watchTransition(Q,"heatMap: cells").style({opacity:1,fill:function(e){return H(e)}}).attr("transform",(function(e){return"translate("+ne(e)*r+","+re(e)*n+")"})).attr("class",(function(e){return isNaN(x(e))?"nv-cell cell-missing":"nv-cell"})),fe.exit().remove(),fe.selectAll("text").watchTransition(Q,"heatMap: cells text").text((function(e){return z(e)})).attr("x",(function(e){return(r-C)/2})).attr("y",(function(e){return(n-C)/2})).style("fill",(function(e){return function(e){if(!M)return"black";var t=d3.rgb(e);return(299*t.r+587*t.g+114*t.b)/1e3>=128?"#404040":"#EDEDED"}(H(e))})).style("opacity",(function(){return S?1:0})),de.selectAll(".verticalGrid").watchTransition(Q,"heatMap: gridLines").attr("y1",0).attr("y2",ce-C).attr("x1",(function(e){return e*r-C/2})).attr("x2",(function(e){return e*r-C/2}));var ye=Object.keys(G).length;de.selectAll(".horizontalGrid").watchTransition(Q,"heatMap: gridLines").attr("x1",(function(e){return 0==e||e==ye?-C:0})).attr("x2",(function(e){return 0==e||e==ye?le:le-C})).attr("y1",(function(e){return e*n-C/2})).attr("y2",(function(e){return e*n-C/2})),de.select(".cellGrid").watchTransition(Q,"heatMap: gridLines").style({"stroke-width":C,opacity:function(){return Y?1:1e-6}}),de.selectAll(".x-meta"),de.selectAll(".y-meta");var be=de.selectAll(".meta");me.watchTransition(Q,"heatMap: xMetaRect").attr("width",r-C).attr("height",F()).attr("transform",(function(e,t){return"translate("+t*r+",0)"})),ge.watchTransition(Q,"heatMap: yMetaRect").attr("width",j()).attr("height",n-C).attr("transform",(function(e,t){return"translate(0,"+t*n+")"})),de.select(".xMetaWrap").watchTransition(Q,"heatMap: xMetaWrap").attr("transform",(function(e,t){return"translate(0,"+(-F()-C-N)+")"})).style("opacity",(function(){return!1!==c?1:0})),de.select(".yMetaWrap").watchTransition(Q,"heatMap: yMetaWrap").attr("transform",(function(e,t){return"translate("+(-j()-C-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))})),R.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+C>=le||i+C>=ce||r<0||i<0)&&(U(),R.call("elementMouseout",this,{e:d3.event}))})).on("mousemove",(function(e,t){R.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),R.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+C>=le||!n&&o+C>=ce)&&(U(),R.call("elementMouseout",this,{e:d3.event}))})).on("mousemove",(function(e,t){R.call("elementMousemove",this,{e:d3.event})}))})),Q.renderEnd("heatMap immediate"),se}return se.dispatch=R,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 S},set:function(e){S=e}},x:{get:function(){return _},set:function(e){_=e}},y:{get:function(){return w},set:function(e){w=e}},cellValue:{get:function(){return x},set:function(e){x=e}},missingDataColor:{get:function(){return L},set:function(e){L=e}},missingDataLabel:{get:function(){return O},set:function(e){O=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 E},set:function(e){E=e}},cellRadius:{get:function(){return T},set:function(e){T=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 C},set:function(e){C=e}},highContrastText:{get:function(){return M},set:function(e){M=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 F},set:function(e){F=e}},yMetaWidth:{get:function(){return j},set:function(e){j=e}},showGrid:{get:function(){return Y},set:function(e){Y=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 P},set:function(e){P=e,Q.reset(P)}}}),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 x(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 S=e.utils.availableWidth(c,y,l),k=e.utils.availableHeight(u,y,l);if(x.update=function(){b.call("beforeUpdate",this),y.transition().duration(_).call(x)},x.container=this,!o||!o.length)return e.utils.noData(x,y),x;y.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var E=y.selectAll("g.nv-wrap").data([o]),T=E.enter().append("g");T.attr("transform","translate("+l.left+","+l.top+")");var C=T.attr("class","nvd3 nv-wrap").append("g"),D=E.select("g"),M=C.append("g").attr("class","nv-heatMap"),A=C.append("g").attr("class","nv-legendWrap"),I=C.append("g").attr("class","nv-x nv-axis");I=y.selectAll("g.nv-wrap.nv-heatMap").select(".nv-x");var L=C.append("g").attr("class","nv-y nv-axis");A=y.selectAll("g.nv-wrap").select(".nv-legendWrap"),r.width(S).height(k),M.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(S/100,o)),s.tickSizeInner(-k);var O=I;O.call(s).watchTransition(w,"heatMap: axisX").selectAll(".tick").style("opacity",(function(){return p?1:0})),O.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()&&(O.selectAll("text").style("text-anchor","middle"),N=-r.xMetaHeight()()/2-r.metaOffset()+3),"bottom"==g){if(O.watchTransition(w,"heatMap: axisX").attr("transform","translate(0,"+(k-N)+")"),!1!==r.xMeta()){var R=k+r.metaOffset()+r.cellBorderWidth();D.select(".xMetaWrap").watchTransition(w,"heatMap: xMetaWrap").attr("transform",(function(e,t){return"translate(0,"+R+")"}))}}else O.watchTransition(w,"heatMap: axisX").attr("transform","translate(0,"+N+")");a.scale(n)._ticks(e.utils.calcTicksY(k/36,o)),a.tickSizeInner(-S);var P=L;P.call(a).watchTransition(w,"heatMap: axisY").selectAll(".tick").style("opacity",(function(){return f?1:0}));var F=-5;if("function"==typeof r.yMeta()&&(P.selectAll("text").style("text-anchor","middle"),F=-r.yMetaWidth()()/2-r.metaOffset()),"right"==m){if(P.attr("transform","translate("+(S-F)+",0)"),!1!==r.yMeta()){R=S+r.metaOffset()+r.cellBorderWidth();D.select(".yMetaWrap").watchTransition(w,"heatMap: yMetaWrap").attr("transform",(function(e,t){return"translate("+R+",0)"}))}}else P.attr("transform","translate("+F+",0)");var j,Y=A;i.width(S).color(r.colorScale().range());var V=("string"==typeof(j=r.colorScale()).domain()[0]?j.domain():j.range().map((function(e){var t=j.invertExtent(e);return null===t[0]&&(t[0]=j.domain()[0]),null===t[1]&&(t[1]=j.domain()[1]),t}))).map((function(e){return Array.isArray(e)?{key:e[0].toFixed(1)+" - "+e[1].toFixed(1)}:{key:e}}));Y.datum(V).call(i).attr("transform","translate(0,"+("top"==g?k:-30)+")"),Y.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"),x}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()})),x.dispatch=b,x.heatMap=r,x.legend=i,x.xAxis=s,x.yAxis=a,x.tooltip=o,x.options=e.utils.optionsFunc.bind(x),x._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(x,r),e.utils.initOptions(x),x},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 x(S){return S.each((function(x){w.reset(),c=d3.select(this);var S=e.utils.availableWidth(s,c,o),k=e.utils.availableHeight(a,c,o);e.utils.initSVG(c),u.domain(t||d3.extent(x[0].values.map(h).concat(f))),g?u.range(r||[.5*S/x[0].values.length,S*(x[0].values.length-.5)/x[0].values.length]):u.range(r||[0,S]),d.domain(n||d3.extent(x[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 E=c.selectAll("g.nv-wrap.nv-historicalBar-"+l).data([x[0].values]).enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+l);E.attr("transform","translate("+o.left+","+o.top+")");var T=E.append("defs"),C=E.append("g"),D=E.select("g"),M=C.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})})),T.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect").attr("width",S).attr("height",k),D.attr("clip-path",v?"url(#nv-chart-clip-path-"+l+")":"");var A=M.selectAll(".nv-bar").data((function(e){return e}),(function(e,t){return h(e,t)}));A.exit().remove();var I=A.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))-S/x[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))-S/x[0].values.length*.45)+",0)"})).attr("width",S/x[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"),x}return x.highlightPoint=function(e,t){c.select(".nv-bars .nv-bar-0-"+e).classed("hover",t)},x.clearHighlights=function(){c.select(".nv-bars .nv-bar.hover").classed("hover",!1)},x.dispatch=b,x.options=e.utils.optionsFunc.bind(x),x._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(x),x},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,x=null,S=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 E=e.utils.renderWatch(S,0);function T(t){return t.each((function(c){E.reset(),E.models(i),g&&E.models(o),v&&E.models(s);var x,C=d3.select(this);e.utils.initSVG(C);var D=e.utils.availableWidth(p,C,u),M=e.utils.availableHeight(f,C,u);if(T.update=function(){C.transition().duration(k).call(T)},T.container=this,_.disabled=c.map((function(e){return!!e.disabled})),!w)for(x in w={},_)_[x]instanceof Array?w[x]=_[x].slice(0):w[x]=_[x];if(!c||!c.length||!c.filter((function(e){return e.values.length})).length)return e.utils.noData(T,C),T;C.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale();var A=C.selectAll("g.nv-wrap.nv-historicalBarChart").data([c]),I=A.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart"),L=I.append("g");I.select("g");var O=L.append("g").attr("class","nv-x nv-axis");O=C.selectAll("g.nv-wrap.nv-historicalBarChart").select(".nv-x");var N=L.append("g").attr("class","nv-y nv-axis"),R=L.append("g").attr("class","nv-barsWrap"),P=L.append("g").attr("class","nv-legendWrap"),F=L.append("g").attr("class","nv-interactive");P=C.selectAll("g.nv-wrap.nv-historicalBarChart").select(".nv-legendWrap"),m?(a.width(D),P.datum(c).call(a),d||a.height()===u.top||(u.top=a.height(),M=e.utils.availableHeight(f,C,u)),P.attr("transform","translate(0,"+-u.top+")")):P.selectAll("*").remove(),I.attr("transform","translate("+u.left+","+u.top+")"),y&&N.attr("transform","translate("+D+",0)"),b&&(l.width(D).height(M).margin({left:u.left,top:u.top}).svgContainer(C).xScale(n),F.call(l)),i.width(D).height(M).color(c.map((function(e,t){return e.color||h(e,t)})).filter((function(e,t){return!c[t].disabled}))),R.datum(c.filter((function(e){return!e.disabled}))).transition().call(i),g&&(o.scale(n)._ticks(e.utils.calcTicksX(D/100,c)),o.tickSizeInner(-M),O.attr("transform","translate(0,"+r.range()[0]+")"),O.transition().call(o)),v&&(s.scale(r)._ticks(e.utils.calcTicksY(M/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,T.x()),i.highlightPoint(r,!0);var l=o.values[r];void 0!==l&&(void 0===n&&(n=l),void 0===a&&(a=T.xScale()(T.x()(l,r))),u.push({key:o.key,value:T.y()(l,r),color:h(o,o.seriesIndex),data:o.values[r]}))}));var d=o.tickFormat()(T.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){S.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,A.selectAll(".nv-series").classed("disabled",!1),e})),_.disabled=c.map((function(e){return!!e.disabled})),S.call("stateChange",this,_),t.transition().call(T)})),a.dispatch.on("legendDblclick",(function(e){c.forEach((function(e){e.disabled=!0})),e.disabled=!1,_.disabled=c.map((function(e){return!!e.disabled})),S.call("stateChange",this,_),T.update()})),S.on("changeState",(function(e){void 0!==e.disabled&&(c.forEach((function(t,n){t.disabled=e.disabled[n]})),_.disabled=e.disabled),T.update()}))})),E.renderEnd("historicalBarChart immediate"),T}return i.dispatch.on("elementMouseover.tooltip",(function(e){e.series={key:T.x()(e.data),value:T.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()})),T.dispatch=S,T.bars=i,T.legend=a,T.xAxis=o,T.yAxis=s,T.interactiveLayer=l,T.tooltip=c,T.options=e.utils.optionsFunc.bind(T),T._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 x},set:function(e){x=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,E.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&&T.interactive(!1)}}}),e.utils.inheritOptions(T,i),e.utils.initOptions(T),T},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 x=y.selectAll("g.nv-legend").data([s]).enter().append("g").attr("class","nvd3 nv-legend");u?x.attr("transform","translate("+-t.right+","+t.top+")"):x.attr("transform","translate("+t.left+","+t.top+")");var S=x.append("g");S.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}))})),E=k.enter().append("g").attr("class","nv-series");switch(E=k.merge(E),g){case"furious":P=23;break;case"classic":P=20}"classic"==g?(E.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),R=E.select(".nv-legend-symbol")):"furious"==g&&(E.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),R=E.select(".nv-legend-symbol"),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)").each((function(e,t){d3.select(this).selectAll("path").attr("stroke",b(e,t))}))),E.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var T=E.select("text.nv-legend-text");E.on("mouseover",(function(e,t,n){m.call("legendMouseover",E,e,t,n)})).on("mouseout",(function(e,t,n){m.call("legendMouseout",E,e,t,n)})).on("click",(function(e,t,n){m.call("legendClick",E,e,t,n);var r=E.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",E,e,t,n),d)){var r=E.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",E,{disabled:r.map((function(e){return!!e.disabled}))})}})),E.classed("nv-disabled",(function(e){return e.userDisabled})),E.exit().remove(),T.attr("fill",b).text((function(e){return o(i(e))}));var C=0;if(l){var D=[];E.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 M=0,A=[];for(C=0;C<v&&M<D.length;)A[M]=D[M],C+=D[M++];for(0===M&&(M=1);C>v&&M>1;){A=[],M--;for(var I=0;I<D.length;I++)D[I]>(A[I%M]||0)&&(A[I%M]=D[I]);C=A.reduce((function(e,t,n,r){return e+t}))}for(var L=[],O=0,N=0;O<M;O++)L[O]=N,N+=A[O];E.attr("transform",(function(e,t){return"translate("+L[t%M]+","+(5+Math.floor(t/M)*P)+")"})),u?S.attr("transform","translate("+(n-t.right-C)+","+t.top+")"):S.attr("transform","translate(0,"+t.top+")"),r=t.top+t.bottom+Math.ceil(D.length/M)*P}else{var R,P,F,j=5,Y=5,V=0;E.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,j+=P),(Y+=i)>V&&(V=Y),C<F+V&&(C=F+V),"translate("+F+","+j+")"})),S.attr("transform","translate("+(n-t.right-V)+","+t.top+")"),r=t.top+t.bottom+j+15}"furious"==g&&(R.attr("width",(function(e,t){return E.select("text.nv-legend-text").nodes()[t].getComputedTextLength()+27})).attr("height",18).attr("y",-9).attr("x",-15),S.insert("rect",":first-child").attr("class","nv-legend-bg").attr("fill","#eee").attr("opacity",0),S.select(".nv-legend-bg").transition().duration(300).attr("x",-P).attr("width",C+P-12).attr("height",r+10).attr("y",-t.top-10).attr("opacity",f?1:0)),R.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+")"),x=w.append("defs"),S=w.append("g");S.append("g").attr("class","nv-groups"),S.append("g").attr("class","nv-scatterWrap");var k=a.select(".nv-scatterWrap");r.width(g).height(_),k.call(r),x.append("clipPath").attr("id","nv-edge-clip-"+r.id()).append("rect").attr("width",g).attr("height",_>0?_:0),S.attr("clip-path",p?"url(#nv-edge-clip-"+r.id()+")":""),k.attr("clip-path",p?"url(#nv-edge-clip-"+r.id()+")":"");var E=a.select(".nv-groups").selectAll(".nv-group").data((function(e){return e}),(function(e){return e.key})),T=E.enter().append("g").style("stroke-opacity",1e-6).style("stroke-width",(function(e){return e.strokeWidth||1.5})).style("fill-opacity",1e-6);E.exit().remove(),(T=E.merge(T)).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)})),T.watchTransition(b,"line: groups").style("stroke-opacity",1).style("fill-opacity",(function(e){return e.fillOpacity||.5}));var C=a.select(".nv-groups").selectAll(".nv-group").selectAll("path.nv-area").data((function(e){return h(e)?[e]:[]})),D=C.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])}));E.exit().selectAll("path.nv-area").remove(),(D=C.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 M=T.selectAll("path.nv-line").data((function(e){return[e.values]})),A=M.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)))})));(A=M.merge(A)).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,x=e.utils.state(),S=null,k=null,E=d3.dispatch("stateChange","changeState","renderEnd"),T=250;d3.transition().duration(T).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 C=e.utils.renderWatch(E,T);function D(l){return C.reset(),C.models(r),v&&C.models(i),y&&C.models(o),l.each((function(l){var k,C=d3.select(this);e.utils.initSVG(C);var M,A,I=e.utils.availableWidth(p,C,u),L=e.utils.availableHeight(f,C,u)-(w?c.height():0);if(D.update=function(){0===T?C.call(D):C.transition().duration(T).call(D)},D.container=this,x.setter((M=l,function(e){void 0!==e.active&&M.forEach((function(t,n){t.disabled=!e.active[n]}))}),D.update).getter((A=l,function(){return{active:A.map((function(e){return!e.disabled}))}})).update(),x.disabled=l.map((function(e){return!!e.disabled})),!S)for(k in S={},x)x[k]instanceof Array?S[k]=x[k].slice(0):S[k]=x[k];if(!l||!l.length||!l.filter((function(e){return e.values.length})).length)return e.utils.noData(D,C),D;C.selectAll(".nv-noData").remove(),c.dispatch.on("brush",(function(e){K(e)})),t=r.xScale(),n=r.yScale();var O=l.filter((function(e){return!e.disabled})),N=C.selectAll("g.nv-wrap.nv-lineChart").data([l]).enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart"),R=N.append("g"),P=R,F=R.append("g").attr("class","nv-legendWrap");F=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-legendWrap");var j=R.append("g").attr("class","nv-focus"),Y=j.append("g").attr("class","nv-background").append("rect"),V=j.append("g").attr("class","nv-x nv-axis");V=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-x");var H=j.append("g").attr("class","nv-y nv-axis");H=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-y");var B=j.append("g").attr("class","nv-linesWrap");B=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-linesWrap");var U=j.append("g").attr("class","nv-interactive");U=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-interactive");var z=R.append("g").attr("class","nv-focusWrap");z=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-focusWrap"),m?(s.width(I),F.datum(l).call(s),"bottom"===g?(u.bottom=i.height()+s.height(),L=e.utils.availableHeight(f,C,u),F.attr("transform","translate(0,"+(L+i.height())+")")):"top"===g&&(d||s.height()===u.top||(u.top=s.height(),L=e.utils.availableHeight(f,C,u)-(w?c.height():0)),F.attr("transform","translate(0,"+-u.top+")"))):F.selectAll("*").remove(),N.attr("transform","translate("+u.left+","+u.top+")"),b&&H.attr("transform","translate("+I+",0)"),_&&(a.width(I).height(L).margin({left:u.left,top:u.top}).svgContainer(C).xScale(t),U.call(a)),Y.attr("width",I).attr("height",L),r.width(I).height(L).color(l.map((function(e,t){return e.color||h(e,t)})).filter((function(e,t){return!l[t].disabled})));var q=C.selectAll("g.nv-linesWrap.nvd3-svg").data([O]);function W(){v&&V.transition().duration(T).call(i)}function $(){y&&H.transition().duration(T).call(o)}if(q=q.merge(B),v&&(i.scale(t)._ticks(e.utils.calcTicksX(I/100,l)),i.tickSizeInner(-L)),y&&(o.scale(n)._ticks(e.utils.calcTicksY(L/36,l)),o.tickSizeInner(-I)),V.attr("transform","translate(0,"+L+")"),w){c.width(I),z.style("display",w?"initial":"none").attr("transform","translate(0,"+(L+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){P.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(T).call(r),W(),$()}s.dispatch.on("stateChange",(function(e){for(var t in e)x[t]=e[t];E.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()})),E.on("changeState",(function(e){void 0!==e.disabled&&l.length===e.disabled.length&&(l.forEach((function(t,n){t.disabled=e.disabled[n]})),x.disabled=e.disabled),D.update()}))})),C.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=E,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=x,D.dispatch=E,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 S},set:function(e){S=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 T},set:function(e){T=e,C.reset(T),d3.transition().duration(T).ease(d3.easeLinear),r.duration(T),c.duration(T),i.duration(T),o.duration(T)}},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,x={top:0,right:30,bottom:20,left:60},S=null,k=null,E=function(e){return e.x},T=function(e){return e.y},C=e.utils.defaultColor(),D=!0,M=!0,A=!1,I=!0,L=50,O=null,N=null,R=d3.dispatch("brush","stateChange","changeState"),P=0,F=(d3.transition().duration(P).ease(d3.easeLinear),e.utils.state()),j=null,Y=" (left axis)",V=" (right axis)",H=!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 B=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(S,z,_),G=e.utils.availableHeight(k,z,_)-(M?L:0),K=L-x.top-x.bottom;if(U.update=function(){z.transition().duration(P).call(U)},U.container=this,F.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(),F.disabled=b.map((function(e){return!!e.disabled})),!j)for(N in j={},F)F[N]instanceof Array?j[N]=F[N].slice(0):j[N]=F[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&&!H?c.xScale():a.xScale(),n=h.scale(),r=H?a.yScale():c.yScale(),i=H?c.yScale():a.yScale(),o=H?l.yScale():u.yScale(),s=H?u.yScale():l.yScale();var J=b.filter((function(e){return!e.disabled&&(H?!e.bar:e.bar)})).map((function(e){return e.values.map((function(e,t){return{x:E(e,t),y:T(e,t)}}))})),Q=b.filter((function(e){return!e.disabled&&(H?e.bar:!e.bar)})).map((function(e){return e.values.map((function(e,t){return{x:E(e,t),y:T(e,t)}}))}));t.range([0,$]),n.domain(d3.extent(d3.merge(J.concat(Q)),(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=H?e.originalKey+(e.bar?V:Y):e.originalKey+(e.bar?Y:V),e}))).call(v),w||v.height()===_.top||(_.top=v.height(),G=e.utils.availableHeight(k,z,_)-L),re.attr("transform","translate("+be+","+-_.top+")")}else re.selectAll("*").remove();ee.attr("transform","translate("+_.left+","+_.top+")"),ue.style("display",M?"initial":"none"),u.width($).height(K).color(b.map((function(e,t){return e.color||C(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||C(e,t)})).filter((function(e,t){return!b[t].disabled&&!b[t].bar})));var _e=fe.datum(Z.length?Z:[{values:[]}]),we=me.datum(B(X)?[{values:[]}]:X.filter((function(e){return!e.disabled})));ue.attr("transform","translate(0,"+(G+_.bottom+x.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)),A&&(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",Ee),O&&y.extent(O);var xe=ge.selectAll("g").data([O||y.extent()]),Se=xe.enter().append("g");Se.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",K),Se.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",K);var ke=ve.call(y);function Ee(o){O=null===o?null:o.selection;var s,l=null===o?t.domain():o.selection;R.call("brush",this,{extent:l,brush:y}),null!==(s=o)&&y.extent(O),xe.data([null===s?n.domain():O]).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||C(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||C(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(B(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&&!H?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(P).call(d),u.transition().duration(P).call(c),h.transition().duration(P).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)),H?f.tickSizeInner(X.length?0:-$,0):f.tickSizeInner(Z.length?0:-$);var m=Z.length?1:0,g=X.length&&!B(X)?1:0,v=H?g:m,_=H?m:g;se.style("opacity",v),ae.style("opacity",_).attr("transform","translate("+t.range()[1]+",0)"),se.transition().duration(P).call(p),ae.transition().duration(P).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)F[t]=e[t];R.call("stateChange",this,e),U.update()})),R.on("changeState",(function(e){void 0!==e.disabled&&(b.forEach((function(t,n){t.disabled=e.disabled[n]})),F.disabled=e.disabled),U.update()})),Ee(event)})),U}return a.dispatch.on("elementMouseover.tooltip",(function(e){b.duration(100).valueFormatter((function(e,t){return(H?{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(H?{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=R,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 S},set:function(e){S=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 O},set:function(e){O=e}},noData:{get:function(){return N},set:function(e){N=e}},focusEnable:{get:function(){return M},set:function(e){M=e}},focusHeight:{get:function(){return L},set:function(e){L=e}},focusShowAxisX:{get:function(){return I},set:function(e){I=e}},focusShowAxisY:{get:function(){return A},set:function(e){A=e}},legendLeftAxisHint:{get:function(){return Y},set:function(e){Y=e}},legendRightAxisHint:{get:function(){return V},set:function(e){V=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 x},set:function(e){x.top=void 0!==e.top?e.top:x.top,x.right=void 0!==e.right?e.right:x.right,x.bottom=void 0!==e.bottom?e.bottom:x.bottom,x.left=void 0!==e.left?e.left:x.left}},duration:{get:function(){return P},set:function(e){P=e}},color:{get:function(){return C},set:function(t){C=e.utils.getColor(t),v.color(C)}},x:{get:function(){return E},set:function(e){E=e,a.x(e),l.x(e),c.x(e),u.x(e)}},y:{get:function(){return T},set:function(e){T=e,a.y(e),l.y(e),c.y(e),u.y(e)}},switchYAxisOrder:{get:function(){return H},set:function(e){if(H!==e){var t=p;p=f,f=t;var n=m;m=g,g=n}H=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(),x=!1,S=null,k=500,E=.1,T=.75,C=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),D=e.utils.renderWatch(C,k),M=0;function A(I){return D.reset(),I.each((function(A){var I=c-l.left-l.right,L=u-l.top-l.bottom;f=d3.select(this),e.utils.initSVG(f);var O=0;if(x&&A.length&&(x=[{values:A[0].values.map((function(e){return{x:e.x,y:0,series:A[e.seriesIndex],size:.01}}))}]),b){var N=A;A.forEach((function(e,t){e.seriesIndex=t,e.values=e.values.map((function(e,n){return e.index=n,e.seriesIndex=t,e}))}));var R=[];A[0].values.forEach((function(e){R.push({x:e.x})})),A.forEach((function(e,t,n){e.display={y:t,y0:n},e.values.forEach((function(t){R[t.index][e.key]=t.y}))}));var P=A.map((e=>e.key)),F=d3.stack().keys(P).offset(_).value((function(e,t){return e[t]}))(!R.length&&x?x:R),j=[];F.forEach((function(e,t){e.seriesIndex=t;var n=[];e.map((function(e,r){return n.push({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})),j.push({key:P[t],nonStackable:N[t].nonStackable,values:n})})),j.forEach((function(e,t){e.nonStackable?(A[t].nonStackableSeries=O++,j[t]=A[t]):t>0&&j[t-1].nonStackable&&j[t].values.map((function(e,n){e.y0-=j[t-1].values[n].y,e.y1=e.y0+e.y}))})),A=j}A.forEach((function(e,t){e.values.forEach((function(n){n.series=t,n.seriesIndex=t,n.key=e.key}))})),b&&A.length>0&&A[0].values.map((function(e,t){var n=0,r=0;A.map((function(e,i){if(!A[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 Y=n&&r?[]:A.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(Y).map((function(e){return e.x}))).range(i||[0,I]).paddingInner(E).paddingOuter(E),h.domain(r||d3.extent(d3.merge(Y).map((function(e){var t=e.y;return b&&!A[e.idx].nonStackable&&(t=e.y>0?e.y1:e.y1+e.y),t})).concat(v))).range(o||[L,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 V=f.selectAll("g.nv-wrap.nv-multibar").data([A]).enter().append("g").attr("class","nvd3 nv-wrap nv-multibar");V.attr("transform","translate("+l.left+","+l.top+")");var H=V.append("defs"),B=V.append("g");B.select("g"),B.append("g").attr("class","nv-groups"),H.append("clipPath").attr("id","nv-edge-clip-"+p).append("rect").attr("width",I).attr("height",L),B.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&&A[e.seriesIndex]&&!A[e.seriesIndex].nonStackable&&(r=a(e.y0)),r})).attr("height",0).remove();q.delay&&q.delay((function(e,t){return t*(k/(M+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",T);var W=f.select(".nv-groups").selectAll(".nv-group").selectAll("rect.nv-bar").data((function(e,t){return x&&!A.length?x.values:A[t]?A[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&&!A[e.seriesIndex].nonStackable?0:e.seriesIndex*d.bandwidth()/A.length})).attr("y",(function(e,t,n){return a(b&&!A[e.seriesIndex].nonStackable?e.y0:0)||0})).attr("height",0).attr("width",(function(e,t,n){return d.bandwidth()/(b&&!A[e.seriesIndex].nonStackable?1:A.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),C.call("elementMouseover",this,{data:t,index:t.index,series:A[t.seriesIndex],color:d3.select(this).style("fill")})})).on("mouseout",(function(e,t,n,r){d3.select(this).classed("hover",!1),C.call("elementMouseout",this,{data:t,index:t.index,series:A[t.seriesIndex],color:d3.select(this).style("fill")})})).on("mousemove",(function(e,t,n,r){C.call("elementMousemove",this,{data:t,index:t.index,series:A[t.seriesIndex],color:d3.select(this).style("fill")})})).on("click",(function(e,t,n,r){C.call("elementClick",this,{data:t,index:t.index,series:A[t.seriesIndex],color:d3.select(this).style("fill"),event:e,element:this}),e.stopPropagation()})).on("dblclick",(function(e,t,n,r){C.call("elementDblClick",this,{data:t,index:t,index:index,series:A[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)"})),S&&(t||(t=A.map((function(){return!0}))),$.style("fill",(function(e,n,r){return d3.rgb(S(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(S(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/A[0].values.length}));b?G.attr("y",(function(e,t,n){return A[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 A[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 A[e.seriesIndex].nonStackable&&(r=e.seriesIndex*d.bandwidth()/A.length,A.length!==O&&(r=A[e.seriesIndex].nonStackableSeries*d.bandwidth()/(2*O))),r})).attr("width",(function(e,t,n){if(!A[e.seriesIndex].nonStackable)return d.bandwidth();var r=d.bandwidth()/O;return A.length!==O&&(r=d.bandwidth()/(2*O)),r})):G.attr("x",(function(e,t){return e.seriesIndex*d.bandwidth()/A.length})).attr("width",d.bandwidth()/A.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(),A[0]&&A[0].values&&(M=A[0].values.length)})),D.renderEnd("multibar immediate"),A}return A.dispatch=C,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}},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 x},set:function(e){x=e}},groupSpacing:{get:function(){return E},set:function(e){E=e}},fillOpacity:{get:function(){return T},set:function(e){T=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 S},set:function(t){S=t?e.utils.getColor(t):null}}}),e.utils.initOptions(A),A},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,x=!0,S=!1,k=!1,E=0,T=e.utils.state(),C=null,D=null,M=d3.dispatch("stateChange","changeState","renderEnd"),A=function(){return m?180:0},I=250,L=(d3.transition().duration(I).ease(d3.easeLinear),!1);T.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 O=e.utils.renderWatch(M),N=!1;function R(D){return O.reset(),O.models(r),b&&O.models(i),_&&O.models(o),D.each((function(D){var O,P=d3.select(this);e.utils.initSVG(P);var F,j,Y=e.utils.availableWidth(h,P,u),V=e.utils.availableHeight(p,P,u);if(R.update=function(){0===I?P.call(R):P.transition().duration(I).call(R)},R.container=this,T.setter((F=D,function(e){void 0!==e.stacked&&(N=e.stacked),void 0!==e.active&&F.forEach((function(t,n){t.disabled=!e.active[n]}))}),R.update).getter((j=D,function(){return{active:j.map((function(e){return!e.disabled})),stacked:N}})).update(),T.disabled=D.map((function(e){return!!e.disabled})),!C)for(O in C={},T)T[O]instanceof Array?C[O]=T[O].slice(0):C[O]=T[O];if(!D||!D.length||!D.filter((function(e){return e.values.length})).length)return e.utils.noData(R,P),R;P.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var H=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([D]).enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend"),B=H.append("g");B.select("g");var U=B.append("g").attr("class","nv-x nv-axis");U=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-x");var z=B.append("g").attr("class","nv-y nv-axis");z=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-y");var q=B.append("g").attr("class","nv-barsWrap");q=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-barsWrap");var W=B.append("g").attr("class","nv-legendWrap");W=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-legendWrap");var $=B.append("g").attr("class","nv-controlsWrap");$=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-controlsWrap");var G=B.append("g").attr("class","nv-interactive");if(G=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-interactive"),v?"bottom"===y?(a.width(Y-u.right),W.datum(D).call(a),u.bottom=i.height()+a.height(),V=e.utils.availableHeight(p,P,u),W.attr("transform","translate(0,"+(V+i.height())+")")):(a.width(Y-A()),W.datum(D).call(a),d||a.height()===u.top||(u.top=a.height(),V=e.utils.availableHeight(p,P,u)),W.attr("transform","translate("+A()+","+-u.top+")")):W.selectAll("*").remove(),H.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(A()).color(["#444","#444","#444"]),$.datum(K).attr("transform","translate(0,"+-u.top+")").call(l)}else $.selectAll("*").remove();w&&z.attr("transform","translate("+Y+",0)"),r.disabled(D.map((function(e){return e.disabled}))).width(Y).height(V).color(D.map((function(e,t){return e.color||f(e,t)})).filter((function(e,t){return!D[t].disabled})));var Z=P.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(Y/100,D)),i.tickSizeInner(-V),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),S){var J=function(e,t){return"translate("+e+","+t+")"};X.selectAll("text").attr("transform",(function(e,t,n){return J(0,n%2==0?5:17)}));var Q=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 J(0,0===t||Q%2!=0?17:5)}))}k&&B.selectAll(".tick text").call(e.utils.wrapTicks,R.xScale().bandwidth()),x&&X.filter((function(e,t){return t%Math.ceil(D[0].values.length/(Y/100))!=0})).selectAll("text, line").style("opacity",0),E&&X.selectAll(".tick text").attr("transform","rotate("+E+" 0,0)").style("text-anchor",E>0?"start":"end"),U.selectAll("g.nv-axisMaxMin text").style("opacity",1)}_&&(o.scale(n)._ticks(e.utils.calcTicksY(V/36,D)),o.tickSizeInner(-Y),z.call(o)),L&&(s.width(Y).height(V).margin({left:u.left,top:u.top}).svgContainer(P).xScale(t),G.call(s)),a.dispatch.on("stateChange",(function(e){for(var t in e)T[t]=e[t];M.call("stateChange",this,e),R.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)}T.stacked=r.stacked(),M.call("stateChange",this,T),R.update()}})),M.on("changeState",(function(e){void 0!==e.disabled&&(D.forEach((function(t,n){t.disabled=e.disabled[n]})),T.disabled=e.disabled),void 0!==e.stacked&&(r.stacked(e.stacked),T.stacked=e.stacked,N=e.stacked),R.update()})),L?(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:R.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=R.x()(e.data),e.series={key:e.data.key,value:R.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()})))})),O.renderEnd("multibarchart immediate"),R}return R.dispatch=M,R.multibar=r,R.legend=a,R.controls=l,R.xAxis=i,R.yAxis=o,R.state=T,R.tooltip=c,R.interactiveLayer=s,R.options=e.utils.optionsFunc.bind(R),R._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 C},set:function(e){C=e}},noData:{get:function(){return D},set:function(e){D=e}},reduceXTicks:{get:function(){return x},set:function(e){x=e}},rotateLabels:{get:function(){return E},set:function(e){E=e}},staggerLabels:{get:function(){return S},set:function(e){S=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),O.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 L},set:function(e){L=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(R,r),e.utils.initOptions(R),R},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,x=!1,S=60,k=.1,E=.75,T=d3.format(",.2f"),C=250,D=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),M=e.utils.renderWatch(D,C);function A(d){return M.reset(),d.each((function(d){var C=c-l.left-l.right,A=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 L=[];d[0].values.forEach((function(e){L.push({x:e.x})})),d.forEach((function(e,t,n){e.display={y:t,y0:n},e.values.forEach((function(t){L[t.index][e.key]=t.y}))}));var O=d.map((e=>e.key));d=d3.stack().keys(O).offset(d3.stackOffsetNone).value((function(e,t){return e[t]}))(L);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:O[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 R=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(R).map((function(e){return e.x}))).range(s||[0,A]).paddingInner(k).paddingOuter(k),f.domain(o||d3.extent(d3.merge(R).map((function(e){return w?e.y>0?e.y1+e.y:e.y1:e.y})).concat(y))),x&&!w?f.range(a||[f.domain()[0]<0?S:0,C-(f.domain()[1]>0?S:0)]):f.range(a||[0,C]),t=t||p,n=n||d3.scaleLinear().domain(f.domain()).range([f(0),f(0)]);var P=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([d]).enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal");P.attr("transform","translate("+l.left+","+l.top+")"),P.append("defs");var F=P.append("g");F.select("g"),F.append("g").attr("class","nv-groups");var j=d3.select(this).selectAll("g.nv-groups").selectAll(".nv-group").data(d),Y=j.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);j.exit().remove();var V=j.merge(Y);V.exit().watchTransition(M,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),V.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)})),V.watchTransition(M,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",E);var H=V.selectAll("g.nv-bar").data((function(e){return e.values}));H.exit().remove();var B=H.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)))+")"}));(H=H.merge(B)).select("rect").remove(),H.append("rect").attr("width",0).attr("height",p.bandwidth()/(w?1:d.length)),H.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)&&(B.append("polyline"),H.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))+")"}))),B.append("text"),x&&!w?(H.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=T(g(e,t)).replace(/\.0+%$/,"%"),r=v(e,t);return void 0===r?n:r.length?n+"+"+T(Math.abs(r[1]))+"-"+T(Math.abs(r[0])):n+"\xb1"+T(Math.abs(r))})),H.watchTransition(M,"multibarhorizontal: bars").select("text").attr("x",(function(e,t){return 0>g(e,t)?-4:f(g(e,t))-f(0)+4}))):H.selectAll("text").text(""),H.selectAll("text.nv-bar-label").text(""),H.attr("class",(function(e,t){return 0>g(e,t)?"nv-bar negative":"nv-bar positive"})),_&&(r||(r=d.map((function(){return!0}))),H.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?H.watchTransition(M,"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()):H.watchTransition(M,"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()})),M.renderEnd("multibarHorizontal immediate"),A}return A.dispatch=D,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}},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 x},set:function(e){x=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 T},set:function(e){T=e}},valuePadding:{get:function(){return S},set:function(e){S=e}},groupSpacing:{get:function(){return k},set:function(e){k=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 C},set:function(e){C=e,M.reset(C)}},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(A),A},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,x=e.utils.state(),S=null,k=null,E=d3.dispatch("stateChange","changeState","renderEnd"),T=function(){return f?180:0},C=250;x.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(E,C);function M(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 A,I,L=e.utils.availableWidth(d,D,c),O=e.utils.availableHeight(h,D,c);if(M.update=function(){D.transition().duration(C).call(M)},M.container=this,w=r.stacked(),x.setter((A=l,function(e){void 0!==e.stacked&&(w=e.stacked),void 0!==e.active&&A.forEach((function(t,n){t.disabled=!e.active[n]}))}),M.update).getter((I=l,function(){return{active:I.map((function(e){return!e.disabled})),stacked:w}})).update(),x.disabled=l.map((function(e){return!!e.disabled})),!S)for(k in S={},x)x[k]instanceof Array?S[k]=x[k].slice(0):S[k]=x[k];if(!l||!l.length||!l.filter((function(e){return e.values.length})).length)return e.utils.noData(M,D),M;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"),R=N.append("g");R.select("g");var P=R.append("g").attr("class","nv-x nv-axis");P=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-x");var F=R.append("g").attr("class","nv-y nv-axis"),j=F.append("g").attr("class","nv-zeroLine").append("line");F=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-y"),j=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart.nv-zeroLine").select("line");var Y=R.append("g").attr("class","nv-barsWrap");Y=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-barsWrap");var V=R.append("g").attr("class","nv-legendWrap");V=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-legendWrap");var H=R.append("g").attr("class","nv-controlsWrap");if(Y=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-controlsWrap"),v?(s.width(L-T()),V.datum(l).call(s),"bottom"===y?(c.bottom=i.height()+s.height(),O=e.utils.availableHeight(h,D,c),V.attr("transform","translate("+T()+","+(O+i.height())+")")):"top"===y&&(u||s.height()===c.top||(c.top=s.height(),O=e.utils.availableHeight(h,D,c)),V.attr("transform","translate("+T()+","+-c.top+")"))):V.selectAll("*").remove(),N.attr("transform","translate("+c.left+","+c.top+")"),f){var B=[{key:g.grouped||"Grouped",disabled:r.stacked()},{key:g.stacked||"Stacked",disabled:!r.stacked()}];a.width(T()).color(["#444","#444","#444"]),"bottom"===m?(c.bottom=i.height()+s.height(),O=e.utils.availableHeight(h,D,c),H.datum(B).attr("transform","translate(0,"+(O+i.height())+")").call(a)):"top"===m&&H.datum(B).attr("transform","translate(0,"+-c.top+")").call(a)}else H.selectAll("*").remove();r.disabled(l.map((function(e){return e.disabled}))).width(L).height(O).color(l.map((function(e,t){return e.color||p(e,t)})).filter((function(e,t){return!l[t].disabled}))),(Y=D.select(".nv-multiBarHorizontalChart").selectAll(".nv-barsWrap").data([l.filter((function(e){return!e.disabled}))]).merge(Y)).transition().call(r),b&&(i.scale(t)._ticks(e.utils.calcTicksY(O/24,l)),i.tickSizeInner(-L),P.call(i),P.select("g.nvd3.nv-wrap.nv-axis").selectAll("g").selectAll("line, text")),_&&(o.scale(n)._ticks(e.utils.calcTicksX(L/100,l)),o.tickSizeInner(-O),F.attr("transform","translate(0,"+O+")"),F.call(o)),j.attr("x1",n(0)).attr("x2",n(0)).attr("y1",0).attr("y2",-O),s.dispatch.on("stateChange",(function(e){for(var t in e)x[t]=e[t];E.call("stateChange",this,e),M.update()})),a.dispatch.on("legendClick",(function(e,t,n){if(t.disabled){switch(B=B.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)}x.stacked=r.stacked(),E.call("stateChange",this,x),w=r.stacked(),M.update()}})),E.on("changeState",(function(e){void 0!==e.disabled&&(l.forEach((function(t,n){t.disabled=e.disabled[n]})),x.disabled=e.disabled),void 0!==e.stacked&&(r.stacked(e.stacked),x.stacked=e.stacked,w=e.stacked),M.update()}))})),D.renderEnd("multibar horizontal chart immediate"),M}return r.dispatch.on("elementMouseover.tooltip",(function(e){e.value=M.x()(e.data),e.series={key:e.data.key,value:M.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()})),M.dispatch=E,M.multibar=r,M.legend=s,M.controls=a,M.xAxis=i,M.yAxis=o,M.state=x,M.tooltip=l,M.options=e.utils.optionsFunc.bind(M),M._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 S},set:function(e){S=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 C},set:function(e){C=e,D.reset(C),r.duration(C),i.duration(C),o.duration(C)}},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(M,r),e.utils.initOptions(M),M},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),x=e.models.line().yScale(_).duration(v),S=e.models.scatter().yScale(b).duration(v),k=e.models.scatter().yScale(_).duration(v),E=e.models.multiBar().stacked(!1).yScale(b).duration(v),T=e.models.multiBar().stacked(!1).yScale(_).duration(v),C=e.models.stackedArea().yScale(b).duration(v),D=e.models.stackedArea().yScale(_).duration(v),M=e.models.axis(d3.axisBottom(y),"bottom").tickPadding(5).duration(v),A=e.models.axis(d3.axisLeft(b),"left").duration(v),I=e.models.axis(d3.axisRight(_),"right").duration(v),L=e.models.legend().height(30),O=e.models.tooltip(),N=d3.dispatch(),R=[w,x,S,k,E,T,C,D];function P(c){return c.each((function(c){var p=d3.select(this);e.utils.initSVG(p),P.update=function(){p.call(P)},P.container=this;var v=e.utils.availableWidth(s,p,r),F=e.utils.availableHeight(a,p,r),j=c.filter((function(e){return"line"==e.type&&1==e.yAxis})),Y=c.filter((function(e){return"line"==e.type&&2==e.yAxis})),V=c.filter((function(e){return"scatter"==e.type&&1==e.yAxis})),H=c.filter((function(e){return"scatter"==e.type&&2==e.yAxis})),B=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(P,p),P;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 J=Z.append("g").attr("class","nv-y1 nv-axis"),Q=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=L.align()?v/2:v,he=L.align()?de:0;L.width(de),L.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(L),i||L.height()===r.top||(r.top=L.height(),F=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(F).interpolate(h).color(ue.filter((function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"line"==c[t].type}))),x.width(v).height(F).interpolate(h).color(ue.filter((function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"line"==c[t].type}))),S.width(v).height(F).color(ue.filter((function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"scatter"==c[t].type}))),k.width(v).height(F).color(ue.filter((function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"scatter"==c[t].type}))),E.width(v).height(F).color(ue.filter((function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"bar"==c[t].type}))),T.width(v).height(F).color(ue.filter((function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"bar"==c[t].type}))),C.width(v).height(F).interpolate(h).color(ue.filter((function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"area"==c[t].type}))),D.width(v).height(F).interpolate(h).color(ue.filter((function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"area"==c[t].type}))),se.datum(j.filter((function(e){return!e.disabled}))),ie.datum(V.filter((function(e){return!e.disabled}))),ne.datum(B.filter((function(e){return!e.disabled}))),ee.datum(z.filter((function(e){return!e.disabled}))),ae.datum(Y.filter((function(e){return!e.disabled}))),oe.datum(H.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(E.stacked()&&B.length){pe=B.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}}))})))}B.length&&pe.push({x:0,y:0});var fe=[];if(T.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,F]),_.domain(n||d3.extent(d3.merge($).concat(fe),(function(e){return e.y}))).range([0,F]),w.yDomain(b.domain()),S.yDomain(b.domain()),E.stacked()){var ge=b.domain([0,d3.max(me(W))]).range([0,F]);E.yDomain(ge.domain())}else E.yDomain(b.domain());if(C.yDomain(b.domain()),x.yDomain(_.domain()),k.yDomain(_.domain()),T.stacked()){var ve=_.domain([0,d3.max(me($))]).range([0,F]);T.yDomain(ve.domain())}else T.yDomain(_.domain());function ye(e){var t=2===e.series.yAxis?I:A;e.value=e.point.x,e.series={value:e.point.y,color:e.point.color,key:e.series.key},O.duration(0).headerFormatter((function(e,t){return M.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:A;e.value=e.point.x,e.series={value:e.point.y,color:e.point.color,key:e.series.key},O.duration(100).headerFormatter((function(e,t){return M.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:A;e.point.x=C.x()(e.point),e.point.y=C.y()(e.point),O.duration(0).headerFormatter((function(e,t){return M.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:A;e.value=E.x()(e.data),e.series={value:E.y()(e.data),color:e.color,key:e.data.key},O.duration(0).headerFormatter((function(e,t){return M.tickFormat()(e,t)})).valueFormatter((function(e,n){return t.tickFormat()(e,n)})).data(e).hidden(!1)}function xe(){for(var e=0,t=R.length;e<t;e++){var n=R[e];try{n.clearHighlights()}catch(e){}}}D.yDomain(_.domain()),z.length&&ee.transition().call(C),q.length&&te.transition().call(D),B.length&&ne.transition().call(E),U.length&&re.transition().call(T),j.length&&se.transition().call(w),Y.length&&ae.transition().call(x),V.length&&ie.transition().call(S),H.length&&oe.transition().call(k),M._ticks(e.utils.calcTicksX(v/100,c)),M.tickSizeInner(-F),X.attr("transform","translate(0,"+F+")"),X.transition().call(M),A._ticks(e.utils.calcTicksY(F/36,c)),A.tickSizeInner(-v),J.transition().call(A),I._ticks(e.utils.calcTicksY(F/36,c)),I.tickSizeInner(-v),Q.transition().call(I),J.classed("nv-disabled",!W.length).attr("transform","translate("+y.range()[0]+",0)"),Q.classed("nv-disabled",!$.length).attr("transform","translate("+y.range()[1]+",0)"),L.dispatch.on("stateChange",(function(e){N.call("stateChange",this,e),P.update()})),m&&(f.width(v).height(F).margin({left:r.left,top:r.top}).svgContainer(p).xScale(y),ce.call(f)),m?(f.dispatch.on("elementMousemove",(function(t){xe();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 P.x()(e,t)>=c[0]&&P.x()(e,t)<=c[1]})),d=u[r=e.interactiveBisect(u,t.pointXValue,P.x())],h=P.y()(d,r);null===h||isNaN(h)||a.noHighlightSeries||function(e,t,n,r){var i={line:{yAxis1:{chart:w,data:j},yAxis2:{chart:x,data:Y}},scatter:{yAxis1:{chart:S,data:V},yAxis2:{chart:k,data:H}},bar:{yAxis1:{chart:E,data:B},yAxis2:{chart:T,data:U}},area:{yAxis1:{chart:C,data:z},yAxis2:{chart:D,data:q}}},o=i[e.type]["yAxis"+e.yAxis].chart,s=i[e.type]["yAxis"+e.yAxis].data.reduce((function(t,n,r){return n.key===e.key?r:t}),0);try{o.highlightPoint(s,t,n,void 0)}catch(e){}}(a,r,!0),void 0!==d&&(void 0===n&&(n=d),void 0===i&&(i=y(P.x()(d,r))),s.push({key:a.key,value:h,color:o(a,a.seriesIndex),data:d,yAxis:2==a.yAxis?I:A}))}));f.tooltip.headerFormatter((function(e,t){return M.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:P.x()(n,r),index:r,series:s})(),f.renderGuideLine(i)})),f.dispatch.on("elementMouseout",(function(e){xe()}))):(w.dispatch.on("elementMouseover.tooltip",ye),x.dispatch.on("elementMouseover.tooltip",ye),w.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),x.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),S.dispatch.on("elementMouseover.tooltip",be),k.dispatch.on("elementMouseover.tooltip",be),S.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),k.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),C.dispatch.on("elementMouseover.tooltip",_e),D.dispatch.on("elementMouseover.tooltip",_e),C.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),D.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),E.dispatch.on("elementMouseover.tooltip",we),T.dispatch.on("elementMouseover.tooltip",we),E.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),T.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),E.dispatch.on("elementMousemove.tooltip",(function(e){O()})),T.dispatch.on("elementMousemove.tooltip",(function(e){O()})))})),P}return P.dispatch=N,P.legend=L,P.lines1=w,P.lines2=x,P.scatters1=S,P.scatters2=k,P.bars1=E,P.bars2=T,P.stack1=C,P.stack2=D,P.xAxis=M,P.yAxis1=A,P.yAxis2=I,P.tooltip=O,P.interactiveLayer=f,P.options=e.utils.optionsFunc.bind(P),P._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,M.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),x.x(e),S.x(e),k.x(e),E.x(e),T.x(e),C.x(e),D.x(e)}},y:{get:function(){return d},set:function(e){d=e,w.y(e),x.y(e),S.y(e),k.y(e),C.y(e),D.y(e),E.y(e),T.y(e)}},useVoronoi:{get:function(){return p},set:function(e){p=e,w.useVoronoi(e),x.useVoronoi(e),C.useVoronoi(e),D.useVoronoi(e)}},useInteractiveGuideline:{get:function(){return m},set:function(e){(m=e)&&(w.interactive(!1),w.useVoronoi(!1),x.interactive(!1),x.useVoronoi(!1),C.interactive(!1),C.useVoronoi(!1),D.interactive(!1),D.useVoronoi(!1),S.interactive(!1),k.interactive(!1))}},duration:{get:function(){return v},set:function(e){v=e,[w,x,C,D,S,k,M,A,I].forEach((function(e){e.duration(v)}))}}}),e.utils.initOptions(P),P},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,x=e.utils.defaultColor(),S=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function E(S){return S.each((function(S){c=d3.select(this);var E=e.utils.availableWidth(s,c,o),T=e.utils.availableHeight(a,c,o);e.utils.initSVG(c);var C=E/S[0].values.length*.9;u.domain(t||d3.extent(S[0].values.map(h).concat(y))),_?u.range(r||[.5*E/S[0].values.length,E*(S[0].values.length-.5)/S[0].values.length]):u.range(r||[5+C/2,E-C/2-5]),d.domain(n||[d3.min(S[0].values.map(v).concat(b)),d3.max(S[0].values.map(g).concat(b))]).range(i||[T,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([S[0].values]).enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar");D.attr("transform","translate("+o.left+","+o.top+")");var M=D.append("defs"),A=D.append("g");A.select("g");var I=A.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})})),M.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect").attr("width",E).attr("height",T),A.attr("clip-path",w?"url(#nv-chart-clip-path-"+l+")":"");var L=I.selectAll(".nv-tick").data((function(e){return e}));L.exit().remove(),L.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"+-C/2+",0l"+C/2+",0l0,"+(d(v(e,t))-d(f(e,t)))+"l0,"+(d(m(e,t))-d(v(e,t)))+"l"+C/2+",0l"+-C/2+",0z"})).attr("transform",(function(e,t){return"translate("+u(h(e,t))+","+d(g(e,t))+")"})).attr("fill",(function(e,t){return x[0]})).attr("stroke",(function(e,t){return x[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))})),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.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=E/S[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"}))})),E}return E.highlightPoint=function(e,t){E.clearHighlights(),c.select(".nv-ohlcBar .nv-tick-0-"+e).classed("hover",t)},E.clearHighlights=function(){c.select(".nv-ohlcBar .nv-tick.hover").classed("hover",!1)},E.dispatch=k,E.options=e.utils.optionsFunc.bind(E),E._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 S},set:function(e){S=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 x},set:function(t){x=e.utils.getColor(t)}}}),e.utils.initOptions(E),E},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,x=d3.line(),S=d3.axisLeft(d3.scaleLinear()),k=d3.dispatch("start","brush","end","dimensionsOrder","stateChange","elementClick","elementMouseover","elementMouseout","elementMousemove","renderEnd","activeChanged"),E=e.utils.renderWatch(k);function T(C){return E.reset(),C.each((function(E){var T,C,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===E[0].values){var M=[];E.forEach((function(e){var t={};Object.keys(e).forEach((function(n){"name"!==n&&(t[n]=e[n])})),M.push({key:e.name,values:t})})),E=M}var A=E.map((function(e){return e.values}));0===y.length&&(y=E),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={},L=!1,O=[];f.forEach((function(e){var t=d3.extent(A,(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],L=!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([E]).enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinates");N.attr("transform","translate("+i.left+","+i.top+")");var R=N.append("g"),P=N.select("g"),F=R.append("g").attr("class","nv-parallelCoordinates background"),j=R.append("g").attr("class","nv-parallelCoordinates foreground"),Y=R.append("g").attr("class","nv-parallelCoordinates missingValuesline");x.curve(d3.curveCardinal.tension(w));var V=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 Q(e.key)-Q(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("+Q(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)})),H=c.range()[1]-c.range()[0];if(H=isNaN(H)?c.range()[0]:H,!isNaN(H)){var B=[0+H/2,l-12,a-H/2,l-12];(T=Y.selectAll("line").data([B])).enter().append("line"),T.exit().remove(),T.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]})),(C=Y.selectAll("text").data([d])).append("text").data([d]),C.enter().append("text"),C.exit().remove(),C.attr("y",l).attr("x",a-92-H/2).text((function(e){return e}))}(n=F.selectAll("path").data(E)).enter().append("path"),n.exit().remove(),n.attr("d",$),(t=j.selectAll("path").data(E)).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=P.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(V),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 x(p.map((function(t){if(isNaN(e.values[t.key])||isNaN(parseFloat(e.values[t.key]))||L){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!==T&&(_.length>0||L?(T.style("display","inline"),C.style("display","inline")):(T.style("display","none"),C.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),J()}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"})),J(),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 J(){r.select(".nv-axis").each((function(e,t){var n=v.filter((function(t){return t.dimension==e.key}));O[e.key]=u[e.key].domain(),0!=n.length&&m&&(O[e.key]=[],n[0].extent[1]>u[e.key].domain()[0]&&(O[e.key]=[n[0].extent[1]]),n[0].extent[0]>=u[e.key].domain()[0]&&O[e.key].push(n[0].extent[0])),d3.select(this).call(S.scale(u[e.key]).tickFormat(e.format).tickValues(O[e.key]))}))}function Q(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)})),T}return T.dispatch=k,T.options=e.utils.optionsFunc.bind(T),T._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(T),T},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 x=f.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").data([r]).enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinatesChart");x.attr("transform","translate("+i.left+","+i.top+")");var S=x.append("g");x.select("g");var k=S.append("g").attr("class","nv-parallelCoordinatesWrap"),E=S.append("g").attr("class","nv-legendWrap");E=f.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").select(".nv-legendWrap"),S.select("rect").attr("width",_).attr("height",w>0?w:0),l?(n.width(_).color((function(e){return"rgb(188,190,192)"})),E.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)),E.attr("transform","translate( 0 ,"+-i.top+")")):E.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,x=!1,S=0,k=.5,E=250,T=(d3.transition().duration(E).ease(d3.easeLinear),d3.transition().duration(70).ease(d3.easeLinear),d3.transition().duration(50).ease(d3.easeLinear),[]),C=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),D=[],M=[],A=e.utils.renderWatch(C);function I(L){return A.reset(),L.each((function(I){var L=n-t.left-t.right,O=r-t.top-t.bottom,N=Math.min(L,O)/2,R=[],P=[];if(a=d3.select(this),0===T.length)for(var F=N-N/10,j=k*N,Y=0;Y<I.length;Y++)R.push(F),P.push(j);else v?(R=T.map((function(e){return(e.outer-e.outer/10)*N})),P=T.map((function(e){return(e.inner-e.inner/10)*N})),k=d3.min(T.map((function(e){return e.inner-e.inner/10})))):(R=T.map((function(e){return e.outer*N})),P=T.map((function(e){return e.inner*N})),k=d3.min(T.map((function(e){return e.inner}))));e.utils.initSVG(a);var V=a.selectAll(".nv-wrap.nv-pie").data([I]),H=V.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+s);V=V.merge(H);var B=H.append("g");V.select("g");var U=B.append("g").attr("class","nv-pie");U=a.selectAll(".nv-wrap.nv-pie").selectAll(".nv-pie");var z=B.append("g").attr("class","nv-pieLabels");z=a.selectAll(".nv-wrap.nv-pie").selectAll(".nv-pieLabels"),V.attr("transform","translate("+t.left+","+t.top+")"),U.attr("transform","translate("+L/2+","+O/2+")"),z.attr("transform","translate("+L/2+","+O/2+")"),a.on("click",(function(e,t,n){C.call("chartClick",this,{data:t,index:t.index,pos:e,id:s})})),D=[],M=[];for(Y=0;Y<I.length;Y++){var q=d3.arc().outerRadius(R[Y]),W=d3.arc().outerRadius(R[Y]+5);!1!==_&&(q.startAngle(_),W.startAngle(_)),!1!==x&&(q.endAngle(x),W.endAngle(x)),m&&(q.innerRadius(P[Y]),W.innerRadius(P[Y])),q.cornerRadius&&S&&(q.cornerRadius(S),W.cornerRadius(S)),D.push(q),M.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"),V.select(".nv-pie-title").style("text-anchor","middle").text((function(e){return g})).style("font-size",Math.min(L,O)*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",M[t.index]),C.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]),C.call("elementMouseout",this,{data:t.data,index:t.index})})),Z.on("mousemove",(function(e,t,n){C.call("elementMousemove",this,{data:t.data,index:t.index})})),Z.on("click",(function(e,t,n){C.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){C.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(E).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(Y=0;Y<I.length;Y++)X.push(D[Y]),d?m&&(X[Y]=d3.arc().outerRadius(D[Y].outerRadius()),!1!==_&&X[Y].startAngle(_),!1!==x&&X[Y].endAngle(x)):m||X[Y].innerRadius(0);K.enter().append("g").classed("nv-label",!0);var J=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=R[t]+10,e.innerRadius=R[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")})),Q={},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)};J.watchTransition(A,"pie labels").attr("transform",(function(e,t){if(b){e.outerRadius=R[t]+10,e.innerRadius=R[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&&(Q[ee(r)]&&(r[1]-=14),Q[ee(r)]=!0),"translate("+r+")"})),J.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=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&&J.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"})),J.merge(K)}})),A.renderEnd("pie immediate"),I}return I.dispatch=C,I.options=e.utils.optionsFunc.bind(I),I._options=Object.create({},{arcsRadius:{get:function(){return T},set:function(e){T=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 x},set:function(e){x=e}},startAngle:{get:function(){return _},set:function(e){_=e}},padAngle:{get:function(){return w},set:function(e){w=e}},cornerRadius:{get:function(){return S},set:function(e){S=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 E},set:function(e){E=e,A.reset(E),d3.transition().duration(E).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"),x=w.append("g").attr("class","nv-pieWrap");x=d.selectAll("g.nv-wrap.nv-pieChart").select(".nv-pieWrap");var S=w.append("g").attr("class","nv-legendWrap");if(S=d.selectAll("g.nv-wrap.nv-pieChart").select(".nv-legendWrap"),c)if("top"===u)n.width(v).key(t.x()),S.datum(r).call(n),o||n.height()===i.top||(i.top=n.height(),b=e.utils.availableHeight(a,d,i)),S.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(),S.datum(r).call(n).attr("transform","translate("+v+",0)")}else"bottom"===u&&(n.width(v).key(t.x()),S.datum(r).call(n),i.bottom=n.height(),b=e.utils.availableHeight(a,d,i),S.attr("transform","translate(0,"+b+")"));else S.selectAll("*").remove();_.attr("transform","translate("+i.left+","+i.top+")"),t.width(v).height(b);var E=d.select(".nv-pieChart").selectAll(".nv-pieWrap").data([r]);(E=E.merge(x)).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},x=function(e){return e.shape||"circle"},S=[],k=[],E=[],T=!0,C=function(e){return!e.notActive},D=!1,M=.1,A=!1,I=!0,L=!1,O=function(){return 25},N=null,R=null,P=null,F=null,j=null,Y=null,V=!1,H=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),B=!0,U=250,z=300,q=!1,W=!1,$=e.utils.renderWatch(H,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 J(U){return $.reset(),U.each((function(U){m=d3.select(this);var K=e.utils.availableWidth(u,m,c),Q=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 J.yScale().base,te=N&&R&&j?[]: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(S))),D&&U[0]?g.range(P||[(K*M+K)/(2*U[0].values.length),K-K*(1+M)/(2*U[0].values.length)]):g.range(P||[0,K]),ee){var ne=d3.min(te.map((function(e){if(0!==e.y)return e.y})));v.clamp(!0).domain(R||d3.extent(te.map((function(e){return 0!==e.y?e.y:.1*ne})).concat(k))).range(F||[Q,0])}else v.domain(R||d3.extent(te.map((function(e){return e.y})).concat(k))).range(F||[Q,0]);y.domain(j||d3.extent(te.map((function(e){return e.size})).concat(E))).range(Y||G),V=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",V);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,!T)return!1;if(m.selectAll(".nv-point.hover").classed("hover",!1),ue.selectAll("path").remove(),!0===B){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 C(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+")"}));L&&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",O));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};H.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];H.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];H.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];H.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];H.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",Q>0?Q+20:0),A&&ce.attr("clip-path",A?"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",!T).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 C(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 x(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",x,"size",w)||re||ie||oe})).watchTransition($,"scatter points").attr("d",e.utils.symbol().type((function(e){return x(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 C(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"),J}return J.dispatch=H,J.options=e.utils.optionsFunc.bind(J),J._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)}))}},H.on("elementMouseover.point",(function(e){T&&J._calls.highlightPoint(e.seriesIndex,e.pointIndex,!0)})),H.on("elementMouseout.point",(function(e){T&&J._calls.highlightPoint(e.seriesIndex,e.pointIndex,!1)})),J._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 R},set:function(e){R=e}},pointDomain:{get:function(){return j},set:function(e){j=e}},xRange:{get:function(){return P},set:function(e){P=e}},yRange:{get:function(){return F},set:function(e){F=e}},pointRange:{get:function(){return Y},set:function(e){Y=e}},forceX:{get:function(){return S},set:function(e){S=e}},forceY:{get:function(){return k},set:function(e){k=e}},forcePoint:{get:function(){return E},set:function(e){E=e}},interactive:{get:function(){return T},set:function(e){T=e}},pointActive:{get:function(){return C},set:function(e){C=e}},padDataOuter:{get:function(){return M},set:function(e){M=e}},padData:{get:function(){return D},set:function(e){D=e}},clipEdge:{get:function(){return A},set:function(e){A=e}},clipVoronoi:{get:function(){return I},set:function(e){I=e}},clipRadius:{get:function(){return O},set:function(e){O=e}},showVoronoi:{get:function(){return L},set:function(e){L=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 x},set:function(e){x="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 B},set:function(e){!1===(B=e)&&(I=!1)}}}),e.utils.initOptions(J),J},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",x=!1,S=e.utils.state(),k=null,E=d3.dispatch("stateChange","changeState","renderEnd"),T=null,C=250,D=(d3.transition().duration(C).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 M=e.utils.renderWatch(E,C);function A(w){return M.reset(),M.models(t),b&&M.models(n),_&&M.models(r),g&&M.models(o),v&&M.models(s),w.each((function(w){var T,I=this;h=d3.select(this),e.utils.initSVG(h);var L,O,N=e.utils.availableWidth(u,h,l),R=e.utils.availableHeight(d,h,l);if(A.update=function(){0===C?h.call(A):h.transition().duration(C).call(A)},A.container=this,S.setter((L=w,function(e){void 0!==e.active&&L.forEach((function(t,n){t.disabled=!e.active[n]}))}),A.update).getter((O=w,function(){return{active:O.map((function(e){return!e.disabled}))}})).update(),S.disabled=w.map((function(e){return!!e.disabled})),!k)for(T in k={},S)S[T]instanceof Array?k[T]=S[T].slice(0):k[T]=S[T];if(!w||!w.length||!w.filter((function(e){return e.values.length})).length)return e.utils.noData(A,h),M.renderEnd("scatter immediate"),A;h.selectAll(".nv-noData").remove(),f=t.xScale(),m=t.yScale(),w.forEach((function(e,t){e.seriesIndex=t}));var P=h.selectAll("g.nv-wrap.nv-scatterChart").data([w]).enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+t.id()),F=P.append("g");F.select("g"),F.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none");var j=F.append("g").attr("class","nv-x nv-axis");j=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-x");var Y=F.append("g").attr("class","nv-y nv-axis");Y=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-y");var V=F.append("g").attr("class","nv-scatterWrap");V=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-scatterWrap");var H=F.append("g").attr("class","nv-regressionLinesWrap");H=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-regressionLinesWrap");var B=F.append("g").attr("class","nv-distWrap");B=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-distWrap");var U=F.append("g").attr("class","nv-legendWrap");x&&Y.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(),R=e.utils.availableHeight(d,h,l)),U.attr("transform","translate(0,"+-l.top+")")):U.selectAll("*").remove(),P.attr("transform","translate("+l.left+","+l.top+")"),t.width(N).height(R).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),V.datum(w.filter((function(e){return!e.disabled}))).call(t),H.attr("clip-path","url(#nv-edge-clip-"+t.id()+")"),H.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(M,"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(-R),j.attr("transform","translate(0,"+m.range()[0]+")").call(n)),_&&(r.scale(m)._ticks(e.utils.calcTicksY(R/36,w)),r.tickSizeInner(-N),Y.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}))),B.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(M,"scatterPlusLineChart").style("opacity",(function(){return g?"1":"1e-6"})),s.getData(t.y()).scale(m).width(R).color(w.map((function(e,t){return e.color||p(e,t)})).filter((function(e,t){return!w[t].disabled}))),B.append("g").attr("class","nv-distributionY").attr("transform","translate("+(x?N:-s.size())+",0)").datum(w.filter((function(e){return!e.disabled}))).call(s).style("opacity",(function(){return v?"1":"1e-6"})).watchTransition(M,"scatterPlusLineChart").style("opacity",(function(){return v?"1":"1e-6"})),i.dispatch.on("stateChange",(function(e){for(var t in e)S[t]=e[t];E.call("stateChange",I,e),A.update()})),E.on("changeState",(function(e){void 0!==e.disabled&&(w.forEach((function(t,n){t.disabled=e.disabled[n]})),S.disabled=e.disabled),A.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]-R),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()})),M.renderEnd("scatter with line immediate"),A}return A.dispatch=E,A.scatter=t,A.legend=i,A.xAxis=n,A.yAxis=r,A.distX=o,A.distY=s,A.tooltip=a,A.options=e.utils.optionsFunc.bind(A),A._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 T},set:function(e){T=e}},duration:{get:function(){return C},set:function(e){C=e,d3.transition().duration(C).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 x},set:function(e){x=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(A,t),e.utils.initOptions(A),A},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 x=w.enter().append("path");x.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))}))),x.merge(w);var S=_.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}))}));S.exit().remove();var k=S.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(S)})),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"),x=w.append("g");_.select("g");var S=x.append("g").attr("class","nv-sparklineWrap"),k=x.append("g").attr("class","nv-valueWrap"),E=x.append("g").attr("class","nv-hoverArea");if(w.attr("transform","translate("+i.left+","+i.top+")"),w.merge(_),r.width(g).height(y),S.call(r).merge(S),d){var T=k.selectAll(".nv-currentValue").data([b]),C=T.enter().append("text").attr("class","nv-currentValue").attr("dx",p?-8:8).attr("dy",".9em").style("text-anchor",p?"end":"start");C.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)),C.merge(T)}var D=E.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)))],M()}})).on("click",(function(){l=!l})).on("mouseout",(function(){a=[],M()}));function M(){if(!l){var e=E.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"),E.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"),E.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(E)})),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 x=e.utils.renderWatch(w,y);function S(h){return x.reset(),x.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 E=h.filter((function(e){return!e.disabled})),T=[];E[0].values.forEach((function(e){T.push({x:e[0]})})),E.forEach((function(e,t,n){e.display={y:t,y0:n},e.values.forEach((function(t){T[t.index][e.key]=t[1]}))}));var C=E.map((e=>e.key));h=d3.stack().keys(C).order(f).offset(p).value((function(e,t){return e[t]}))(T);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:C[t],seriesIndex:t})})),h=D;var M=l.selectAll("g.nv-wrap.nv-stackedarea").data([h]).enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea");M.attr("transform","translate("+r.left+","+r.top+")");var A=M.append("defs"),I=M.append("g"),L=I.select("g"),O=I.append("g").attr("class","nv-areaWrap");O=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),A.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 R=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)),P=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)})),F=O.selectAll("path.nv-area").data((function(e){return e}));F.exit().remove();var j=F.enter().append("path").attr("class",(function(e,t){return"nv-area nv-area-"+t})).attr("d",(function(e,t){return P(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})}));(j=j.merge(F)).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)})),j.watchTransition(x,"stackedArea path").attr("d",(function(e,t){return R(e.values,e.seriesIndex)})),v.dispatch.on("elementMouseover.area",(function(e){L.select(".nv-chart-"+a+" .nv-area-"+e.seriesIndex).classed("hover",!0)})),v.dispatch.on("elementMouseout.area",(function(e){L.select(".nv-chart-"+a+" .nv-area-"+e.seriesIndex).classed("hover",!1)})),S.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}})),x.renderEnd("stackedArea immediate"),S}return S.dispatch=w,S.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)})),S.interpolate=function(e){return arguments.length?(m=e,S):m},S.duration=function(e){return arguments.length?(y=e,x.reset(y),v.duration(y),S):y},S.dispatch=w,S.scatter=v,S.options=e.utils.optionsFunc.bind(S),S._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":S.offset(d3.stackOffsetNone),S.order(d3.stackOrderNone);break;case"stream":S.offset(d3.stackOffsetWiggle),S.order(d3.stackOrderInsideOut);break;case"stream_center":S.offset(d3.stackOffsetSilhouette),S.order(d3.stackOrderNone);break;case"expand":S.offset(d3.stackOffsetExpand),S.order(d3.stackOrderNone);break;case"stack_percent":S.offset(S.d3_stackedOffset_stackPercent),S.order(d3.stackOrderNone)}}},duration:{get:function(){return y},set:function(e){y=e,x.reset(y),v.duration(y)}}}),e.utils.inheritOptions(S,v),e.utils.initOptions(S),S},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,x=!1,S=!1,k=!0,E="TOTAL",T=e.utils.state(),C=null,D=null,M=d3.dispatch("stateChange","changeState","renderEnd"),A=250,I=["Stacked","Stream","Expanded"],L={},O=250;d3.transition().duration(O).ease(d3.easeLinear);T.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,R=null;a.updateState(!1);var P=e.utils.renderWatch(M),F=(r.style(),d3.format(".0%"));function j(c){return P.reset(),P.models(r),b&&P.models(i),_&&P.models(o),c.each((function(c){var D,P,Y=d3.select(this);e.utils.initSVG(Y);var V,H,B=e.utils.availableWidth(p,Y,d),U=e.utils.availableHeight(f,Y,d)-(x?u.height():0);if(j.update=function(){Y.transition().duration(O).call(j)},j.container=this,T.setter((V=c,function(e){void 0!==e.style&&e.style,void 0!==e.active&&V.forEach((function(t,n){t.disabled=!e.active[n]}))}),j.update).getter((H=c,function(){return{active:H.map((function(e){return!e.disabled})),style:r.style()}})).update(),T.disabled=c.map((function(e){return!!e.disabled})),!C)for(D in C={},T)T[D]instanceof Array?C[D]=T[D].slice(0):C[D]=T[D];if(!c||!c.length||!c.filter((function(e){return e.values.length})).length)return e.utils.noData(j,Y),j;Y.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var z=Y.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=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-legendWrap");var $=q.append("g").attr("class","nv-controlsWrap");$=Y.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=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-x");var X=G.append("g").attr("class","nv-y nv-axis");X=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-y");var J=G.append("g").attr("class","nv-stackedWrap");J=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-stackedWrap");var Q=G.append("g").attr("class","nv-interactive");Q=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-interactive");var ee=q.append("g").attr("class","nv-focusWrap");if(ee=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-focusWrap"),v){var te=g&&"top"===y?B-A:B;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,Y,d)-(x?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,Y,d)-(x?u.height():0)),W.attr("transform","translate("+(B-te)+","+-d.top+")"))}else W.selectAll("*").remove();if(z.attr("transform","translate("+d.left+","+d.top+")"),g){var ie=[{key:L.stacked||"Stacked",metaKey:"Stacked",disabled:"stack"!=r.style(),style:"stack"},{key:L.stream||"Stream",metaKey:"Stream",disabled:"stream"!=r.style(),style:"stream"},{key:L.stream_center||"Stream Center",metaKey:"Stream_Center",disabled:"stream_center"!=r.style(),style:"stream_center"},{key:L.expanded||"Expanded",metaKey:"Expanded",disabled:"expand"!=r.style(),style:"expand"},{key:L.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:"stack_percent"!=r.style(),style:"stack_percent"}];A=I.length/3*260,ie=ie.filter((function(e){return-1!==I.indexOf(e.metaKey)})),a.width(A).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,Y,d)-(x?u.height():0)),$.attr("transform","translate(0,"+-d.top+")")}else $.selectAll("*").remove();function se(){b&&Z.attr("transform","translate(0,"+U+")").transition().duration(O).call(i)}function ae(){if(_){if("expand"===r.style()||"stack_percent"===r.style()){var e=o.tickFormat();N&&e===F||(N=e),o.tickFormat(F)}else N&&(o.tickFormat(N),N=null);X.transition().call(o)}}if(w&&X.attr("transform","translate("+B+",0)"),S&&(l.width(B).height(U).margin({left:d.left,top:d.top}).svgContainer(Y).xScale(t),Q.call(l)),K.attr("width",B).attr("height",U),r.width(B).height(U).color(c.map((function(e,t){return e.color||m(e,t)})).filter((function(e,t){return!c[t].disabled}))),J.datum(c.filter((function(e){return!e.disabled}))),b&&(i.scale(t)._ticks(e.utils.calcTicksX(B/100,c)),i.tickSizeInner(-U)),_&&(P=r.offset()===d3.stackOffsetWiggle?0:e.utils.calcTicksY(U/36,c),o.scale(n)._ticks(P),o.tickSizeInner(-B)),x){u.width(B),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 J.transition().call(r),se(),ae();function ce(e){J.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}}))),J.transition().duration(O).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})),T.disabled=c.map((function(e){return!!e.disabled})),M.call("stateChange",this,T),j.update()})),s.dispatch.on("stateChange",(function(e){for(var t in e)T[t]=e[t];M.call("stateChange",this,e),j.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),T.style=r.style(),M.call("stateChange",this,T),j.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=j.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=j.xScale()(j.x()({x:p[0],y:p[1]},i)));var g="expand"==r.style()?p[1]:j.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=j.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:E,value:a,total:!0});var f=j.x()({x:n[0],y:n[1]},i),g=l.tooltip.valueFormatter();"expand"===r.style()||"stack_percent"===r.style()?(R||(R=g),g=d3.format(".1%")):R&&(g=R,R=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)})),M.on("changeState",(function(e){void 0!==e.disabled&&c.length===e.disabled.length&&(c.forEach((function(t,n){t.disabled=e.disabled[n]})),T.disabled=e.disabled),void 0!==e.style&&(r.style(e.style),e.style),j.update()}))})),P.renderEnd("stacked Area chart immediate"),j}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)})),j.dispatch=M,j.stacked=r,j.legend=s,j.controls=a,j.xAxis=i,j.x2Axis=u.xAxis,j.yAxis=o,j.y2Axis=u.yAxis,j.interactiveLayer=l,j.tooltip=c,j.focus=u,j.dispatch=M,j.options=e.utils.optionsFunc.bind(j),j._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 C},set:function(e){C=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 L},set:function(e){L=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 E},set:function(e){E=e}},focusEnable:{get:function(){return x},set:function(e){x=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 O},set:function(e){O=e,P.reset(O),d3.transition().duration(O).ease(d3.easeLinear),r.duration(O),i.duration(O),o.duration(O)}},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 S},set:function(e){S=!!e,j.interactive(!e),j.useVoronoi(!e),r.scatter.interactive(!e)}}}),e.utils.inheritOptions(j,r),e.utils.initOptions(j),j},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]),x=d3.scaleSqrt(),S=d3.partition(),k={},E=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,x(e.y))})).outerRadius((function(e){return Math.max(0,x(e.y+e.dy))}));function T(e){return C(e)>90?180:0}function C(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 M(e,n){var r=d3.interpolate(w.domain(),[t.x,t.x+t.dx]),o=d3.interpolate(x.domain(),[t.y,1]),s=d3.interpolate(x.range(),[t.y?20:0,i]);return 0===n?function(){return E(e)}:function(t){return w.domain(r(t)),x.domain(o(t)).range(s(t)),E(e)}}function A(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,E(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",M).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("+(x(t.y)+5)+",0)";var r=C(t),i=T(t);return 0===i?"rotate("+r+")translate("+(x(t.y)+5)+",0)":"rotate("+r+")translate("+(x(t.y)+n+5)+",0)rotate("+i+")"}))}))}var L=e.utils.renderWatch(_);function O(t){return L.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,x.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})})),S(c[l]||c.count);var g=S.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 M=m.selectAll(".arc-container").data(g,v);M.enter().append("g").attr("class","arc-container").append("path").attr("d",E).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})})),M.each((function(e){d3.select(this).select("path").transition().duration(b).attrTween("d",A)})),p&&(M.selectAll("text").remove(),M.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=C(e),r=T(e);return 0===r?"rotate("+n+")translate("+(x(e.y)+5)+",0)":"rotate("+n+")translate("+(x(e.y)+t+5)+",0)rotate("+r+")"}))),I(g[g.length-1]),M.exit().transition().duration(b).attr("opacity",0).each("end",(function(e){k[v(e)]=void 0})).remove()})),L.renderEnd("sunburst immediate"),O}return O.dispatch=_,O.options=e.utils.optionsFunc.bind(O),O._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(O),O},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.11"}(),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,x=function(e,t){return new x.fn.init(e,t)};function S(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()}x.fn=x.prototype={jquery:_,constructor:x,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=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.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(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.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},x.extend=x.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&&(x.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||x.isPlainObject(n)?n:{},i=!1,s[t]=x.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},x.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(S(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+=x.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&&(S(Object(e))?x.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(S(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&&(x.fn[Symbol.iterator]=n[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var E=n.pop,T=n.sort,C=n.splice,D="[\\x20\\t\\r\\n\\f]",M=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");x.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 A=/([\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}x.escapeSelector=function(e){return(e+"").replace(A,I)};var L=g,O=s;!function(){var t,r,o,s,l,c,d,h,f,m,g=O,v=x.expando,y=0,b=0,_=ee(),w=ee(),S=ee(),A=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",R="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",P="\\["+D+"*("+R+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+D+"*\\]",F=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",j=new RegExp(D+"+","g"),Y=new RegExp("^"+D+"*,"+D+"*"),V=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),H=new RegExp(D+"|>"),B=new RegExp(F),U=new RegExp("^"+R+"$"),z={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+F),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()},J=he((function(e){return!0===e.disabled&&k(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(n=i.call(L.childNodes),L.childNodes),n[L.childNodes.length].nodeType}catch(t){g={apply:function(e,t){O.apply(e,i.call(t))},call:function(e){O.apply(e,i.call(arguments,1))}}}function Q(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))&&Q.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(!(A[e+" "]||f&&f.test(e))){if(d=e,m=t,1===y&&(H.test(e)||V.test(e))){for((m=G.test(e)&&ae(t.parentNode)||t)==t&&p.scope||((a=t.getAttribute("id"))?a=x.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){A(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return ye(e.replace(M,"$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&&J(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:L;return n!=c&&9===n.nodeType&&n.documentElement&&(d=(c=n).documentElement,h=!x.isXMLDoc(c),m=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&L!=c&&(t=c.defaultView)&&t.top!==t&&t.addEventListener("unload",X),p.getById=ne((function(e){return d.appendChild(e).id=x.expando,!c.getElementsByName||!c.getElementsByName(x.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==L&&Q.contains(L,e)?-1:t===c||t.ownerDocument==L&&Q.contains(L,t)?1:s?a.call(s,e)-a.call(s,t):0:4&n?-1:1)}),c}for(t in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),h&&!A[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){A(t,!0)}return 0<Q(t,c,null,[e]).length},Q.contains=function(e,t){return(e.ownerDocument||e)!=c&&le(e),x.contains(e,t)},Q.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)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],r=0,o=0;if(l=!p.sortStable,s=!p.sortStable&&i.call(e,0),T.call(e,I),l){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)C.call(e,n[r],1)}return s=null,e},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(i.apply(this)))},(r=x.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]||Q.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]&&Q.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&&B.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=Q.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(j," ")+" ").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()]||Q.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(M,"$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<Q(e,t).length}})),contains:te((function(e){return e=e.replace(K,Z),function(t){return-1<(t.textContent||x.text(t)).indexOf(e)}})),lang:te((function(e){return U.test(e||"")||Q.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=Y.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),n=!1,(i=V.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(M," ")}),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?Q.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++)Q(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(M,"$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=S[e+" "];if(!f){for(t||(t=ue(e)),n=t.length;n--;)(f=ge(t[n]))[v]?d.push(f):p.push(f);(f=S(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=[],S=o,k=e||l&&r.find.TAG("*",d),T=y+=null==S?1:Math.random()||.1,C=k.length;for(d&&(o=t==c||t||d);b!==C&&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=T)}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]=E.call(u));w=fe(w)}g.apply(u,w),d&&!e&&0<w.length&&1<v+s.length&&x.uniqueSort(u)}return d&&(y=T,o=S),_},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"))})),x.find=Q,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Q.compile=ve,Q.select=ye,Q.setDocument=le,Q.tokenize=ue,Q.escape=x.escapeSelector,Q.getText=x.text,Q.isXML=x.isXMLDoc,Q.selectors=x.expr,Q.support=x.support,Q.uniqueSort=x.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&&x(e).is(n))break;r.push(e)}return r},R=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},P=x.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return f(t)?x.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?x.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?x.grep(e,(function(e){return-1<a.call(t,e)!==n})):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<r;t++)if(x.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,i[t],n);return 1<r?x.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&P.test(e)?x(e):e||[],!1).length}});var Y,V=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Y,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:V.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 x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),F.test(r[1])&&x.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(x):x.makeArray(e,this)}).prototype=x.fn,Y=x(g);var H=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function U(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&x(e);if(!P.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&&x.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?x.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?a.call(x(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(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.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 R((e.parentNode||{}).firstChild,e)},children:function(e){return R(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),1<this.length&&(B[e]||x.uniqueSort(i),H.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])}}x.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},x.each(t.match(z)||[],(function(e,t){n[t]=!0})),n):x.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){x.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 x.each(arguments,(function(e,t){for(var n;-1<(n=x.inArray(t,a,n));)a.splice(n,1),n<=c&&c--})),this},has:function(e){return e?-1<x.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},x.extend({Deferred:function(t){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.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 x.Deferred((function(t){x.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){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(e,u.error),o<=t+1&&(r!==W&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?u():(x.Deferred.getErrorHook?u.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(u.error=x.Deferred.getStackHook()),e.setTimeout(u))}}return x.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?x.extend(e,i):i}},o={};return x.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=x.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$/;x.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)},x.readyException=function(t){e.setTimeout((function(){throw t}))};var K=x.Deferred();function Z(){g.removeEventListener("DOMContentLoaded",Z),e.removeEventListener("load",Z),x.ready()}x.fn.ready=function(e){return K.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0)!==e&&0<--x.readyWait||K.resolveWith(g,[x])}}),x.ready.then=K.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(x.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(x(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},J=/^-ms-/,Q=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(J,"ms-").replace(Q,ee)}var ne=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function re(){this.expando=x.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||x.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&&!x.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}x.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)}}),x.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)}))}}),x.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,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){x.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:x.Callbacks("once memory").add((function(){ie.remove(e,[t+"queue",n])}))})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each((function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.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 x.contains(e.ownerDocument,e)},fe={composed:!0};he.getRootNode&&(pe=function(e){return x.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"===x.css(e,"display")};function ge(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return x.css(e,t,"")},l=a(),c=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==c&&+l)&&ue.exec(x.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)x.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,x.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=x.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}x.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)?x(this).show():x(this).hide()}))}});var be,_e,we=/^(?:checkbox|radio)$/i,xe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^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 Ee(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)?x.merge([e],n):n}function Te(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 Ce=/<|&#?\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))x.merge(h,o.nodeType?[o]:o);else if(Ce.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(xe.exec(o)||["",""])[1].toLowerCase(),l=ke[a]||ke._default,s.innerHTML=l[1]+x.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;x.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<x.inArray(o,r))i&&i.push(o);else if(c=pe(o),s=Ee(d.appendChild(o),"script"),c&&Te(s),n)for(u=0;o=s[u++];)Se.test(o.type||"")&&n.push(o);return d}var Me=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Ie(){return!1}function Le(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)Le(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 x().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=x.guid++)),e.each((function(){x.event.add(this,t,i,r,n)}))}function Oe(e,t,n){n?(ie.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ie.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(x.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,x.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ae)}})):void 0===ie.get(e,t)&&x.event.add(e,t,Ae)}x.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&&x.find.matchesSelector(he,i),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)p=m=(a=Me.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=x.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=x.event.special[p]||{},u=x.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.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),x.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=Me.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=x.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)||x.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)x.event.remove(e,p+t[c],n,r,!0);x.isEmptyObject(l)&&ie.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=new Array(arguments.length),l=x.event.fix(e),c=(ie.get(this,"events")||Object.create(null))[l.type]||[],u=x.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=x.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=((x.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<x(i,this).index(c):x.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(x.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[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&k(t,"input")&&Oe(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&k(t,"input")&&Oe(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)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae: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&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.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},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(g.documentMode){var n=ie.get(this,"handle"),r=x.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else x.event.simulate(t,e.target,x.event.fix(e))}x.event.special[e]={setup:function(){var r;if(Oe(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 Oe(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},x.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))}}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||x.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),x.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(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(){x.event.remove(this,e,n,t)}))}});var Ne=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fe(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ye(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ve(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++)x.event.add(t,i,a[i][n]);oe.hasData(e)&&(o=oe.access(e),s=x.extend({},o),oe.set(t,s))}}function He(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&&Re.test(g))return e.each((function(i){var o=e.eq(i);v&&(t[0]=g.call(this,i,o.html())),He(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=x.map(Ee(i,"script"),je)).length;d<h;d++)c=i,d!==m&&(c=x.clone(c,!0,!0),l&&x.merge(a,Ee(c,"script"))),n.call(e[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,x.map(a,Ye),d=0;d<l;d++)c=a[d],Se.test(c.type||"")&&!ie.access(c,"globalEval")&&x.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Pe,""),c,u))}return e}function Be(e,t,n){for(var r,i=t?x.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||x.cleanData(Ee(r)),r.parentNode&&(n&&pe(r)&&Te(Ee(r,"script")),r.parentNode.removeChild(r));return e}x.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||x.isXMLDoc(e)))for(s=Ee(u),r=0,i=(o=Ee(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||Ee(e),s=s||Ee(u),r=0,i=o.length;r<i;r++)Ve(o[r],s[r]);else Ve(e,u);return 0<(s=Ee(u,"script")).length&&Te(s,!d&&Ee(e,"script")),u},cleanData:function(e){for(var t,n,r,i=x.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]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[ie.expando]=void 0}n[oe.expando]&&(n[oe.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return X(this,(function(e){return void 0===e?x.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 He(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return He(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return He(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&&(x.cleanData(Ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.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[(xe.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(Ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return He(this,arguments,(function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(Ee(this)),n&&n.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var n,r=[],i=x(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),x(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(M,"$1")||void 0),""!==s||pe(e)||(s=x.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,x.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,Je={};function Qe(e){return x.cssProps[e]||Je[e]||(e in Xe?e:Je[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+=x.css(e,n+de[s],!0,i)),r?("content"===n&&(l-=x.css(e,"padding"+de[s],!0,i)),"margin"!==n&&(l-=x.css(e,"border"+de[s]+"Width",!0,i))):(l+=x.css(e,"padding"+de[s],!0,i),"padding"!==n?l+=x.css(e,"border"+de[s]+"Width",!0,i):a+=x.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"===x.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"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===x.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)}x.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=Qe(a)),s=x.cssHooks[t]||x.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]||(x.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=Qe(a)),(s=x.cssHooks[t]||x.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}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!et.test(x.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"===x.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=x.css(e,t)),rt(0,n,l)}}})),x.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"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.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&&(x.cssHooks[e+t].set=rt)})),x.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]]=x.css(e,t[s],!1,r);return o}return void 0!==n?x.style(e,t,n):x.css(e,t)}),e,t,1<arguments.length)}}),((x.Tween=st).prototype={constructor:st,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.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=x.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=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:x.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)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=st.prototype.init,x.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,x.fx.interval),x.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=x.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:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||ft(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.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=x.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)&&(x._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return x.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),x.fx.timer(x.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.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=x._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--,x.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]||x.style(e,r)}if((l=!x.isEmptyObject(t))||!x.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=x.css(e,"display"))&&(c?u=c:(ye([e],!0),c=e.style.display||c,u=x.css(e,"display"),ye([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.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)x.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)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||f(e)&&e,duration:e,easing:n&&t||t&&!f(t)&&t};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.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&&x.dequeue(this,r.queue)},r},x.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=x.isEmptyObject(e),o=x.speed(t,n,r),s=function(){var t=vt(this,x.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=x.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||x.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=x.timers,s=r?r.length:0;for(n.finish=!0,x.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}))}}),x.each(["toggle","show","hide"],(function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(mt(t,!0),e,r,i)}})),x.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),at=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){lt||(lt=!0,pt())},x.fx.stop=function(){lt=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,n){return t=x.fx&&x.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=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return X(this,x.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?x.prop(e,t,n):(1===o&&x.isXMLDoc(e)||(i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void x.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=x.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?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=bt[t]||x.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 xt(e){return(e.match(z)||[]).join(" ")}function St(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}x.fn.extend({prop:function(e,t){return X(this,x.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(e)||(t=x.propFix[t]||t,i=x.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=x.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||(x.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)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,r,i,o,s;return f(e)?this.each((function(t){x(this).addClass(e.call(this,t,St(this)))})):(t=kt(e)).length?this.each((function(){if(r=St(this),n=1===this.nodeType&&" "+xt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");s=xt(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){x(this).removeClass(e.call(this,t,St(this)))})):arguments.length?(t=kt(e)).length?this.each((function(){if(r=St(this),n=1===this.nodeType&&" "+xt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];-1<n.indexOf(" "+i+" ");)n=n.replace(" "+i+" "," ");s=xt(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){x(this).toggleClass(e.call(this,n,St(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each((function(){if(a)for(o=x(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=St(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<(" "+xt(St(n))+" ").indexOf(t))return!0;return!1}});var Et=/\r/g;x.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,x(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Et,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:xt(x.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=x(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=x.makeArray(t),s=i.length;s--;)((r=i[s]).selected=-1<x.inArray(x.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<x.inArray(x(e).val(),t)}},p.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Tt=e.location,Ct={guid:Date.now()},Dt=/\?/;x.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||x.error("Invalid XML: "+(r?x.map(r.childNodes,(function(e){return e.textContent})).join("\n"):t)),n};var Mt=/^(?:focusinfocus|focusoutblur)$/,At=function(e){e.stopPropagation()};x.extend(x.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&&!Mt.test(y+x.event.triggered)&&(-1<y.indexOf(".")&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[x.expando]?t:new x.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]:x.makeArray(n,[t]),h=x.event.special[y]||{},i||!h.trigger||!1!==h.trigger.apply(r,n))){if(!i&&!h.noBubble&&!m(r)){for(l=h.delegateType||y,Mt.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),x.event.triggered=y,t.isPropagationStopped()&&p.addEventListener(y,At),r[y](),t.isPropagationStopped()&&p.removeEventListener(y,At),x.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}});var It=/\[\]$/,Lt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Rt(e,t,n,r){var i;if(Array.isArray(t))x.each(t,(function(t,i){n||It.test(e)?r(e,i):Rt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==b(t))r(e,t);else for(i in t)Rt(e+"["+i+"]",t[i],n,r)}x.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&&!x.isPlainObject(e))x.each(e,(function(){i(this.name,this.value)}));else for(n in e)Rt(n,e[n],t,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Nt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!we.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:n.replace(Lt,"\r\n")}})).get()}});var Pt=/%20/g,Ft=/#.*$/,jt=/([?&])_=[^&]*/,Yt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Vt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Bt={},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,x.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=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}qt.href=Tt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,x.ajaxSettings),t):Gt(x.ajaxSettings,e)},ajaxPrefilter:Wt(Bt),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=x.ajaxSetup({},n),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?x(f):x.event,v=x.Deferred(),y=x.Callbacks("once memory"),b=p.statusCode||{},_={},w={},S="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Yt.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||S;return r&&r.abort(t),E(0,t),this}};if(v.promise(k),p.url=((t||p.url||Tt.href)+"").replace(Ht,Tt.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=x.param(p.data,p.traditional)),$t(Bt,p,n,k),c)return k;for(d in(u=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Vt.test(p.type),i=p.url.replace(Ft,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pt,"+")):(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(jt,"$1"),h=(Dt.test(i)?"&":"?")+"_="+Ct.guid+++h),p.url=i+h),p.ifModified&&(x.lastModified[i]&&k.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&k.setRequestHeader("If-None-Match",x.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(S="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(_,E)}catch(t){if(c)throw t;E(-1,t)}}else E(-1,"No Transport");function E(t,n,s,l){var d,h,g,_,w,S=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<x.inArray("script",p.dataTypes)&&x.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"))&&(x.lastModified[i]=w),(w=k.getResponseHeader("etag"))&&(x.etag[i]=w)),204===t||"HEAD"===p.type?S="nocontent":304===t?S="notmodified":(S=_.state,h=_.data,d=!(g=_.error))):(g=S,!t&&S||(S="error",t<0&&(t=0))),k.status=t,k.statusText=(n||S)+"",d?v.resolveWith(f,[h,S,k]):v.rejectWith(f,[k,S,g]),k.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,p,d?h:g]),y.fireWith(f,[k,S]),u&&(m.trigger("ajaxComplete",[k,p]),--x.active||x.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,r,i){return f(n)&&(i=i||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:i,data:n,success:r},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=x(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){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Zt=x.ajaxSettings.xhr();p.cors=!!Zt&&"withCredentials"in Zt,p.ajax=Zt=!!Zt,x.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()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.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 x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=x("<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,Jt=[],Qt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||x.expando+"_"+Ct.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(Qt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.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(Qt,"$1"+i):!1!==t.jsonp&&(t.url+=(Dt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||x.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?x(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Jt.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),x.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=F.exec(e))?[t.createElement(i[1])]:(i=De([e],t,o),o&&o.length&&x(o).remove(),x.merge([],i.childNodes)));var r,i,o},x.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return-1<a&&(r=xt(e.slice(a)),e=e.slice(0,a)),f(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<s.length&&x.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,n){var r,i,o,s,a,l,c=x.css(e,"position"),u=x(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=x.css(e,"top"),l=x.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,x.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)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.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"===x.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"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),i.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-x.css(r,"marginTop",!0),left:t.left-i.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||he}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;x.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)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=Ke(p.pixelPosition,(function(e,n){if(n)return n=Ge(e,t),Ue.test(n)?x(e).position()[t]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){x.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?x.css(t,n,a):x.style(t,n,i,a)}),t,s?i:void 0,s)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.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)}}),x.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){x.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;x.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||x.guid++,o},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=k,x.isFunction=f,x.isWindow=m,x.camelCase=te,x.type=b,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return x}));var tn=e.jQuery,nn=e.$;return x.noConflict=function(t){return e.$===x&&(e.$=nn),t&&e.jQuery===x&&(e.jQuery=tn),x},void 0===t&&(e.jQuery=e.$=x),x}));
|
|
743
|
+
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||M("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 x(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 S(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=o[k(e)];if(t)return t;M("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=x(s),c=[];for(r=0;r<l.length;r++){for(n=new y(T(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 E(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 T(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!==T&&(i=T(r[e],T))?((s=n[e]=new m)._set(i),s.name=o[e],s):null}function C(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 M(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function A(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=T(i))&&o.add(n.parse(o),"minutes"),o.tz(i),o}(l<2||2===l&&c<6)&&M("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&&A.moveAmbiguousForward?t=n:t>r&&A.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 M("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++},A.version="0.5.45",A.dataVersion="",A._zones=n,A._links=r,A._names=o,A._countries=i,A.add=E,A.link=C,A.load=function(e){E(e.zones),C(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),A.dataVersion=e.version},A.zone=T,A.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,M("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!T(t)},A.guess=function(e){return t&&!e||(t=S()),t},A.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()},A.Zone=m,A.unpack=f,A.unpackBase60=d,A.needsOffset=D,A.moveInvalidForward=!0,A.moveAmbiguousForward=!1,A.countries=function(){return Object.keys(i)},A.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:T(e).utcOffset(new Date)}})):r};var I,L=e.fn;function O(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=A,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)},L.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=T(t),this._z?e.updateOffset(this,n):M("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},L.zoneName=O(L.zoneName),L.zoneAbbr=O(L.zoneAbbr),L.utc=N(L.utc),L.local=N(L.local),L.utcOffset=(I=L.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)&&M("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?T(t):null,e};var R=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(R)?(R.push("_z"),R.push("_a")):R&&(R._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={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};function r(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!==t||(t=e.nodeName),t}function i(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function o(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 s(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 a(e,i){for(var a={__cnt:0},c=e.childNodes,u=0;u<c.length;u++){var d=c.item(u),h=r(d);d.nodeType!==n.COMMENT_NODE&&(a.__cnt++,null==a[h]?(a[h]=l(d,i+"."+h),o(a,h,i+"."+h)):(a[h]instanceof Array||(a[h]=[a[h]],o(a,h,i+"."+h)),a[h][a[h].length]=l(d,i+"."+h)))}for(var p=0;p<e.attributes.length;p++){var f=e.attributes.item(p);a.__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))}a[t.attributePrefix+f.name]=m}var y=e.prefix;return y&&(a.__cnt++,a.__prefix=y),a["#text"]&&(a.__text=a["#text"],a.__text instanceof Array&&(a.__text=a.__text.join("\n")),t.escapeMode&&(a.__text=a.__text.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")),t.stripWhitespaces&&(a.__text=a.__text.trim()),delete a["#text"],"property"===t.arrayAccessForm&&delete a["#text_asArray"],a.__text=function(e,n,r){if(t.datetimeAccessFormPaths.length>0)for(var i=r.split(".#")[0],o=0;o<t.datetimeAccessFormPaths.length;o++){var a=t.datetimeAccessFormPaths[o];if("string"==typeof a){if(a===i)return s(e)}else if(a instanceof RegExp){if(a.test(i))return s(e)}else if("function"==typeof a&&a(i))return s(e)}return e}(a.__text,0,i+".#text")),a.hasOwnProperty("#cdata-section")&&(a.__cdata=a["#cdata-section"],delete a["#cdata-section"],"property"===t.arrayAccessForm&&delete a["#cdata-section_asArray"]),1===a.__cnt&&a.__text&&!t.keepText?a=a.__text:0===a.__cnt&&"text"===t.emptyNodeForm?a="":a.__cnt>1&&void 0!==a.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""===a.__text||""===a.__text.trim())&&delete a.__text,delete a.__cnt,t.keepCData||a.hasOwnProperty("__text")||!a.hasOwnProperty("__cdata")||1!==Object.keys(a).length?(t.enableToStringFunc&&(a.__text||a.__cdata)&&(a.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),a):a.__cdata?a.__cdata:""}function l(e,i){return e.nodeType===n.DOCUMENT_NODE?function(e){for(var i={},o=e.childNodes,s=0;s<o.length;s++){var a=o.item(s);if(a.nodeType===n.ELEMENT_NODE){var c=r(a);t.ignoreRoot?i=l(a,c):i[c]=l(a,c)}}return i}(e):e.nodeType===n.ELEMENT_NODE?a(e,i):e.nodeType===n.TEXT_NODE||e.nodeType===n.CDATA_SECTION_NODE?e.nodeValue:null}function c(e,n,r,o){var s="<"+(e&&e.__prefix?e.__prefix+":":"")+n;if(r)for(var a=0;a<r.length;a++){var l=r[a],c=e[l];t.escapeMode&&(c=i(c)),s+=" "+l.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?s+='"'+c+'"':s+="'"+c+"'"}return s+=o?" />":">"}function u(e,t){return"</"+(e&&e.__prefix?e.__prefix+":":"")+t+">"}function d(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 h(e){var t=0;if(e instanceof Object)for(var n in e)d(e,n)||t++;return t}function p(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 f(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+=i(e.__text):n+=e.__text),n}(e):null!==e&&(t.escapeMode?n+=i(e):n+=e),n}function m(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+=c(e,t,n,!0);else for(var i=0;i<e.length;i++)r+=m(e[i],t,p(e[i]));return r}(e,n,r);else if(e instanceof Date)i+=c(e,n,r,!1),i+=t.jsDateUTC?e.toUTCString():e.toISOString(),i+=u(e,n);else{h(e)>0||"number"==typeof e.__text||"boolean"==typeof e.__text||e.__text||e.__cdata?(i+=c(e,n,r,!1),i+=g(e),i+=u(e,n)):t.selfClosingElements?i+=c(e,n,r,!0):(i+=c(e,n,r,!1),i+=u(e,n))}else i+=c(e,n,r,!1),i+=f(e),i+=u(e,n);else i+=c(e,n,r,!0);return i}function g(e){var t="";if(h(e)>0)for(var n in e)if(!d(e,n)){var r=e[n];t+=m(r,n,p(r))}return t+=f(e)}function v(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?s(e):e},this.xml2dom=function(e){return v(e)},this.dom2js=function(e){return l(e,null)},this.js2dom=function(e){return v(this.js2xml(e))},this.xml2js=function(e){var t=v(e);return null!=t?this.dom2js(t):null},this.js2xml=function(e){return g(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 x(e,t){const n=w(e,t);return n?Math.sqrt(n):n}function S(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 E extends Map{constructor(e,t=A){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(C(this,e))}has(e){return super.has(C(this,e))}set(e,t){return super.set(D(this,e),t)}delete(e){return super.delete(M(this,e))}}class T extends Set{constructor(e,t=A){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(C(this,e))}add(e){return super.add(D(this,e))}delete(e){return super.delete(M(this,e))}}function C({_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 M({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function A(e){return null!==e&&"object"==typeof e?e.valueOf():e}function I(e){return e}function L(e,...t){return j(e,I,I,t)}function O(e,...t){return j(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 R(e,t,...n){return j(e,I,t,n)}function P(e,t,...n){return j(e,Array.from,t,n)}function F(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function j(e,t,n,r){return function e(i,o){if(o>=r.length)return n(i);const s=new E,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 Y(e,t){return Array.from(t,(t=>e[t]))}function V(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=B(r[e],r[n]);if(t)return t}}))):(n=e.map(n),r.sort(((e,t)=>B(n[e],n[t])))),Y(e,r)}return e.sort(H(n))}function H(e=t){if(e===t)return B;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 B(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 J(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 Q(e){return Math.max(1,Math.ceil(Math.log(v(e))/Math.LN2)+1)}function ee(){var e=I,t=S,n=Q;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===S&&([d,h]=J(d,h,n)),(p=K(d,h,n))[0]<=d&&(s=Z(d,h,n)),p[p.length-1]>=h)if(e>=h&&t===S){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?B:H(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)=>B(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 T?e:new T(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 xe(e){return e}var Se=1e-6;function ke(e){return"translate("+e+",0)"}function Ee(e){return"translate(0,"+e+")"}function Te(e){return t=>+e(t)}function Ce(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 Me(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:Ee;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):xe:i,m=Math.max(o,0)+a,g=t.range(),v=+g[0]+l,y=+g[g.length-1]+l,b=(t.bandwidth?Ce:Te)(t.copy(),l),_=h.selection?h.selection():h,w=_.selectAll(".domain").data([null]),x=_.selectAll(".tick").data(p,t).order(),S=x.exit(),k=x.enter().append("g").attr("class","tick"),E=x.select("line"),T=x.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(k),E=E.merge(k.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),T=T.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),x=x.transition(h),E=E.transition(h),T=T.transition(h),S=S.transition(h).attr("opacity",Se).attr("transform",(function(e){return isFinite(e=b(e))?d(e+l):this.getAttribute("transform")})),k.attr("opacity",Se).attr("transform",(function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:b(e))+l)}))),S.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),x.attr("opacity",1).attr("transform",(function(e){return d(b(e)+l)})),E.attr(u+"2",c*o),T.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 Ae={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 Le(r)}function Le(e){this._=e}function Oe(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]=Ae,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Le.prototype=Ie.prototype={constructor:Le,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=Oe(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Le(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 Re="http://www.w3.org/1999/xhtml",Pe={svg:"http://www.w3.org/2000/svg",xhtml:Re,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fe(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Pe.hasOwnProperty(t)?{space:Pe[t],local:e}:e}function je(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Re&&t.documentElement.namespaceURI===Re?t.createElement(e):t.createElementNS(n,e)}}function Ye(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ve(e){var t=Fe(e);return(t.local?Ye:je)(t)}function He(){}function Be(e){return null==e?He: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 Je(e){return new Array(e.length)}function Qe(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 Qe(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 Qe(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 xt(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function St(e,t){for(var n=_t(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function kt(e){return function(){xt(this,e)}}function Et(e){return function(){St(this,e)}}function Tt(e,t){return function(){(t.apply(this,arguments)?xt:St)(this,e)}}function Ct(){this.textContent=""}function Dt(e){return function(){this.textContent=e}}function Mt(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function At(){this.innerHTML=""}function It(e){return function(){this.innerHTML=e}}function Lt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Ot(){this.nextSibling&&this.parentNode.appendChild(this)}function Nt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Rt(){return null}function Pt(){var e=this.parentNode;e&&e.removeChild(this)}function Ft(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function jt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Yt(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 Vt(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 Ht(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 Bt(e,t){return function(){return Ht(this,e,t)}}function Ut(e,t){return function(){return Ht(this,e,t.apply(this,arguments))}}Qe.prototype={constructor:Qe,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=Be(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(Je),this._parents)},exit:function(){return new qt(this._exit||this._groups.map(Je),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=Fe(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?Tt:t?kt:Et)(n,t))},text:function(e){return arguments.length?this.each(null==e?Ct:("function"==typeof e?Mt:Dt)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?At:("function"==typeof e?Lt:It)(e)):this.node().innerHTML},raise:function(){return this.each(Ot)},lower:function(){return this.each(Nt)},append:function(e){var t="function"==typeof e?e:Ve(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Ve(e),r=null==t?Rt:"function"==typeof t?t:Be(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Pt)},clone:function(e){return this.select(e?jt:Ft)},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?Vt:Yt,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:Bt)(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 Jt(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 Qt={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}\\)$`),xn=new RegExp(`^rgb\\(${bn},${bn},${bn}\\)$`),Sn=new RegExp(`^rgba\\(${vn},${vn},${vn},${yn}\\)$`),kn=new RegExp(`^rgba\\(${bn},${bn},${bn},${yn}\\)$`),En=new RegExp(`^hsl\\(${yn},${bn},${bn}\\)$`),Tn=new RegExp(`^hsla\\(${yn},${bn},${bn},${yn}\\)$`),Cn={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 Mn(){return this.rgb().formatRgb()}function An(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 Rn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ln(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ln(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 Rn(t[1],t[2],t[3],1):(t=xn.exec(e))?new Rn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Sn.exec(e))?Ln(t[1],t[2],t[3],t[4]):(t=kn.exec(e))?Ln(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=En.exec(e))?Hn(t[1],t[2]/100,t[3]/100,1):(t=Tn.exec(e))?Hn(t[1],t[2]/100,t[3]/100,t[4]):Cn.hasOwnProperty(e)?In(Cn[e]):"transparent"===e?new Rn(NaN,NaN,NaN,0):null}function In(e){return new Rn(e>>16&255,e>>8&255,255&e,1)}function Ln(e,t,n,r){return r<=0&&(e=t=n=NaN),new Rn(e,t,n,r)}function On(e){return e instanceof fn||(e=An(e)),e?new Rn((e=e.rgb()).r,e.g,e.b,e.opacity):new Rn}function Nn(e,t,n,r){return 1===arguments.length?On(e):new Rn(e,t,n,null==r?1:r)}function Rn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Pn(){return`#${Vn(this.r)}${Vn(this.g)}${Vn(this.b)}`}function Fn(){const e=jn(this.opacity);return`${1===e?"rgb(":"rgba("}${Yn(this.r)}, ${Yn(this.g)}, ${Yn(this.b)}${1===e?")":`, ${e})`}`}function jn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vn(e){return((e=Yn(e))<16?"0":"")+e.toString(16)}function Hn(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 Bn(e){if(e instanceof zn)return new zn(e.h,e.s,e.l,e.opacity);if(e instanceof fn||(e=An(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?Bn(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,An,{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 Bn(this).formatHsl()},formatRgb:Mn,toString:Mn}),hn(Rn,Nn,pn(fn,{brighter(e){return e=null==e?gn:Math.pow(gn,e),new Rn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?mn:Math.pow(mn,e),new Rn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rn(Yn(this.r),Yn(this.g),Yn(this.b),jn(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:Pn,formatHex:Pn,formatHex8:function(){return`#${Vn(this.r)}${Vn(this.g)}${Vn(this.b)}${Vn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Fn,toString:Fn})),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 Rn($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),jn(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=jn(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=1,Jn=.82521,Qn=4/29,er=6/29,tr=3*er*er,nr=er*er*er;function rr(e){if(e instanceof or)return new or(e.l,e.a,e.b,e.opacity);if(e instanceof hr)return pr(e);e instanceof Rn||(e=On(e));var t,n,r=cr(e.r),i=cr(e.g),o=cr(e.b),s=sr((.2225045*r+.7168786*i+.0606169*o)/Xn);return r===i&&i===o?t=n=s:(t=sr((.4360747*r+.3850649*i+.1430804*o)/Zn),n=sr((.0139322*r+.0971045*i+.7141733*o)/Jn)),new or(116*s-16,500*(t-s),200*(s-n),e.opacity)}function ir(e,t,n,r){return 1===arguments.length?rr(e):new or(e,t,n,null==r?1:r)}function or(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function sr(e){return e>nr?Math.pow(e,1/3):e/tr+Qn}function ar(e){return e>er?e*e*e:tr*(e-Qn)}function lr(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function cr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ur(e){if(e instanceof hr)return new hr(e.h,e.c,e.l,e.opacity);if(e instanceof or||(e=rr(e)),0===e.a&&0===e.b)return new hr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Kn;return new hr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function dr(e,t,n,r){return 1===arguments.length?ur(e):new hr(e,t,n,null==r?1:r)}function hr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function pr(e){if(isNaN(e.h))return new or(e.l,0,0,e.opacity);var t=e.h*Gn;return new or(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}hn(or,ir,pn(fn,{brighter(e){return new or(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new or(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 Rn(lr(3.1338561*(t=Zn*ar(t))-1.6168667*(e=Xn*ar(e))-.4906146*(n=Jn*ar(n))),lr(-.9787684*t+1.9161415*e+.033454*n),lr(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),hn(hr,dr,pn(fn,{brighter(e){return new hr(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new hr(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return pr(this).rgb()}}));var fr=-.14861,mr=1.78277,gr=-.29227,vr=-.90649,yr=1.97294,br=yr*vr,_r=yr*mr,wr=mr*gr-vr*fr;function xr(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Sr)return new Sr(e.h,e.s,e.l,e.opacity);e instanceof Rn||(e=On(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(wr*r+br*t-_r*n)/(wr+br-_r),o=r-i,s=(yr*(n-i)-gr*o)/vr,a=Math.sqrt(s*s+o*o)/(yr*i*(1-i)),l=a?Math.atan2(s,o)*Kn-120:NaN;return new Sr(l<0?l+360:l,a,i,e.opacity)}(e):new Sr(e,t,n,null==r?1:r)}function Sr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function kr(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 Er(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 kr((n-r/t)*t,s,i,o,a)}}function Tr(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 kr((n-r/t)*t,i,o,s,a)}}hn(Sr,xr,pn(fn,{brighter(e){return e=null==e?gn:Math.pow(gn,e),new Sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?mn:Math.pow(mn,e),new Sr(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 Rn(255*(t+n*(fr*r+mr*i)),255*(t+n*(gr*r+vr*i)),255*(t+n*(yr*r)),this.opacity)}}));var Cr=e=>()=>e;function Dr(e,t){return function(n){return e+n*t}}function Mr(e,t){var n=t-e;return n?Dr(e,n>180||n<-180?n-360*Math.round(n/360):n):Cr(isNaN(e)?t:e)}function Ar(e,t){var n=t-e;return n?Dr(e,n):Cr(isNaN(e)?t:e)}var Ir=function e(t){var n=function(e){return 1==(e=+e)?Ar: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):Cr(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=Ar(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 Lr(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=Lr(Er),Nr=Lr(Tr);function Rr(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 Fr(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]=zr(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 Yr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Vr(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]=zr(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Hr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Br=new RegExp(Hr.source,"g");function Ur(e,t){var n,r,i,o=Hr.lastIndex=Br.lastIndex=0,s=-1,a=[],l=[];for(e+="",t+="";(n=Hr.exec(e))&&(r=Br.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:Yr(n,r)})),o=Br.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 zr(e,t){var n,r=typeof t;return null==t||"boolean"===r?Cr(t):("number"===r?Yr:"string"===r?(n=An(t))?(t=n,Ir):Ur:t instanceof An?Ir:t instanceof Date?jr:Pr(t)?Rr:Array.isArray(t)?Fr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Vr:Yr)(e,t)}function qr(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Wr,$r=180/Math.PI,Gr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Kr(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)*$r,skewX:Math.atan(l)*$r,scaleX:s,scaleY:a}}function Zr(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:Yr(e,i)},{i:l-2,x:Yr(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:Yr(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:Yr(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:Yr(e,n)},{i:a-2,x:Yr(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 Xr=Zr((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Gr:Kr(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Jr=Zr((function(e){return null==e?Gr:(Wr||(Wr=document.createElementNS("http://www.w3.org/2000/svg","g")),Wr.setAttribute("transform",e),(e=Wr.transform.baseVal.consolidate())?Kr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Gr)}),", ",")",")");function Qr(e){return((e=Math.exp(e))+1/e)/2}var ei=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 ti(e){return function(t,n){var r=e((t=Un(t)).h,(n=Un(n)).h),i=Ar(t.s,n.s),o=Ar(t.l,n.l),s=Ar(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 ni=ti(Mr),ri=ti(Ar);function ii(e){return function(t,n){var r=e((t=dr(t)).h,(n=dr(n)).h),i=Ar(t.c,n.c),o=Ar(t.l,n.l),s=Ar(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 oi=ii(Mr),si=ii(Ar);function ai(e){return function t(n){function r(t,r){var i=e((t=xr(t)).h,(r=xr(r)).h),o=Ar(t.s,r.s),s=Ar(t.l,r.l),a=Ar(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 li=ai(Mr),ci=ai(Ar);function ui(e,t){void 0===t&&(t=e,e=zr);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 di,hi,pi=0,fi=0,mi=0,gi=1e3,vi=0,yi=0,bi=0,_i="object"==typeof performance&&performance.now?performance:Date,wi="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function xi(){return yi||(wi(Si),yi=_i.now()+bi)}function Si(){yi=0}function ki(){this._call=this._time=this._next=null}function Ei(e,t,n){var r=new ki;return r.restart(e,t,n),r}function Ti(){xi(),++pi;for(var e,t=di;t;)(e=yi-t._time)>=0&&t._call.call(void 0,e),t=t._next;--pi}function Ci(){yi=(vi=_i.now())+bi,pi=fi=0;try{Ti()}finally{pi=0,function(){for(var e,t,n=di,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:di=t);hi=e,Mi(r)}(),yi=0}}function Di(){var e=_i.now(),t=e-vi;t>gi&&(bi-=t,vi=e)}function Mi(e){pi||(fi&&(fi=clearTimeout(fi)),e-yi>24?(e<1/0&&(fi=setTimeout(Ci,e-_i.now()-bi)),mi&&(mi=clearInterval(mi))):(mi||(vi=_i.now(),mi=setInterval(Di,gi)),pi=1,wi(Ci)))}function Ai(e,t,n){var r=new ki;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}ki.prototype=Ei.prototype={constructor:ki,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?xi():+n)+(null==t?0:+t),this._next||hi===this||(hi?hi._next=this:di=this,hi=this),this._call=e,this._time=n,Mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,Mi())}};var Ii=Ie("start","end","cancel","interrupt"),Li=[],Oi=0,Ni=2,Ri=3,Pi=5,Fi=6;function ji(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(h.state===Ri)return Ai(o);4===h.state?(h.state=Fi,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=Fi,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(Ai((function(){n.state===Ri&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))})),n.state=Ni,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Ni){for(n.state=Ri,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=Pi,1),o=-1,s=r.length;++o<s;)r[o].call(e,i);n.state===Pi&&(n.on.call("end",e,e.__data__,n.index,n.group),a())}function a(){for(var r in n.state=Fi,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=Ei((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:Ii,tween:Li,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Oi})}function Yi(e,t){var n=Hi(e,t);if(n.state>Oi)throw new Error("too late; already scheduled");return n}function Vi(e,t){var n=Hi(e,t);if(n.state>Ri)throw new Error("too late; already running");return n}function Hi(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Bi(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>Ni&&n.state<Pi,n.state=Fi,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 Ui(e,t){var n,r;return function(){var i=Vi(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 zi(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Vi(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 qi(e,t,n){var r=e._id;return e.each((function(){var e=Vi(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Hi(e,r).value[t]}}function Wi(e,t){var n;return("number"==typeof t?Yr:t instanceof An?Ir:(n=An(t))?(t=n,Ir):Ur)(e,t)}function $i(e){return function(){this.removeAttribute(e)}}function Gi(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ki(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 Zi(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 Xi(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 Ji(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 Qi(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 eo(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 to(e,t){return function(){Yi(this,e).delay=+t.apply(this,arguments)}}function no(e,t){return t=+t,function(){Yi(this,e).delay=t}}function ro(e,t){return function(){Vi(this,e).duration=+t.apply(this,arguments)}}function io(e,t){return t=+t,function(){Vi(this,e).duration=t}}var oo=Wt.prototype.constructor;function so(e){return function(){this.style.removeProperty(e)}}var ao=0;function lo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function co(e){return Wt().transition(e)}function uo(){return++ao}var ho=Wt.prototype;function po(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function fo(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}lo.prototype=co.prototype={constructor:lo,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Be(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,ji(d[h],t,n,h,d,Hi(a,n)));return new lo(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=Hi(l,n),m=0,g=p.length;m<g;++m)(h=p[m])&&ji(h,t,n,m,p,f);o.push(p),s.push(l)}return new lo(o,s,t,n)},selectChild:ho.selectChild,selectChildren:ho.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 lo(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 lo(s,this._parents,this._name,this._id)},selection:function(){return new oo(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=uo(),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=Hi(s,t);ji(s,e,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new lo(r,this._parents,e,n)},call:ho.call,nodes:ho.nodes,node:ho.node,size:ho.size,empty:ho.empty,each:ho.each,on:function(e,t){var n=this._id;return arguments.length<2?Hi(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)?Yi:Vi;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=Fe(e),r="transform"===n?Jr:Wi;return this.attrTween(e,"function"==typeof t?(n.local?Ji:Xi)(n,r,qi(this,"attr."+e,t)):null==t?(n.local?Gi:$i)(n):(n.local?Zi:Ki)(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=Fe(e);return this.tween(n,(r.local?Qi:eo)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Xr:Wi;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,so(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,qi(this,"style."+e,t))).each(function(e,t){var n,r,i,o,s="style."+t,a="end."+s;return function(){var l=Vi(this,e),c=l.on,u=null==l.value[s]?o||(o=so(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}}(qi(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=Hi(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?Ui:zi)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?to:no)(t,e)):Hi(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?ro:io)(t,e)):Hi(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(){Vi(this,e).ease=t}}(t,e)):Hi(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;Vi(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=Vi(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]:ho[Symbol.iterator]};var mo=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),go=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),vo=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),yo=Math.PI,bo=yo/2;function _o(e){return(1-Math.cos(yo*e))/2}function wo(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function xo(e){return((e*=2)<=1?wo(1-e):2-wo(e-1))/2}function So(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var ko=4/11,Eo=6/11,To=8/11,Co=9/11,Do=10/11,Mo=21/22,Ao=7.5625;function Io(e){return(e=+e)<ko?Ao*e*e:e<To?Ao*(e-=Eo)*e+.75:e<Do?Ao*(e-=Co)*e+.9375:Ao*(e-=Mo)*e+.984375}var Lo=1.70158,Oo=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(Lo),No=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(Lo),Ro=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}(Lo),Po=2*Math.PI,Fo=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Po);function i(e){return t*wo(- --e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*Po)},i.period=function(n){return e(t,n)},i}(1,.3),jo=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Po);function i(e){return 1-t*wo(e=+e)*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*Po)},i.period=function(n){return e(t,n)},i}(1,.3),Yo=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Po);function i(e){return((e=2*e-1)<0?t*wo(-e)*Math.sin((r-e)/n):2-t*wo(e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*Po)},i.period=function(n){return e(t,n)},i}(1,.3),Vo={time:null,delay:0,duration:250,ease:fo};function Ho(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(){Bi(this,e)}))},Wt.prototype.transition=function(e){var t,n;e instanceof lo?(t=e._id,e=e._name):(t=uo(),(n=Vo).time=xi(),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])&&ji(s,e,t,c,a,n||Ho(s,t));return new lo(r,this._parents,e,t)};var Bo=[null],Uo=e=>()=>e;function zo(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 qo(e){e.preventDefault(),e.stopImmediatePropagation()}var Wo={name:"drag"},$o={name:"space"},Go={name:"handle"},Ko={name:"center"};const{abs:Zo,max:Xo,min:Jo}=Math;function Qo(e){return[+e[0],+e[1]]}function es(e){return[Qo(e[0]),Qo(e[1])]}var ts={name:"x",handles:["w","e"].map(cs),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]]}},ns={name:"y",handles:["n","s"].map(cs),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]]}},rs={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(cs),input:function(e){return null==e?null:es(e)},output:function(e){return e}},is={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"},os={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ss={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},as={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ls={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function cs(e){return{type:e}}function us(e){return!e.ctrlKey&&!e.button}function ds(){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 hs(){return navigator.maxTouchPoints||"ontouchstart"in this}function ps(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function fs(e){var t,n=ds,r=us,i=hs,o=!0,s=Ie("start","brush","end"),a=6;function l(t){var n=t.property("__brush",m).selectAll(".overlay").data([cs("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",is.overlay).merge(n).each((function(){var e=ps(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([cs("selection")]).enter().append("rect").attr("class","selection").attr("cursor",is.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 is[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=ps(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)?Wo:o&&n.altKey?Ko:Go,w=e===ns?null:as[b],x=e===ts?null:ls[b],S=ps(y),k=S.extent,E=S.selection,T=k[0][0],C=k[0][1],D=k[1][0],M=k[1][1],A=0,I=0,L=w&&x&&o&&n.shiftKey,O=Array.from(n.touches||[n],(e=>{const t=e.identifier;return(e=Jt(e,y)).point0=e.slice(),e.identifier=t,e}));Bi(y);var N=u(y,arguments,!0).beforestart();if("overlay"===b){E&&(m=!0);const t=[O[0],O[1]||O[0]];S.selection=E=[[i=e===ns?T:Jo(t[0][0],t[1][0]),a=e===ts?C:Jo(t[0][1],t[1][1])],[d=e===ns?D:Xo(t[0][0],t[1][0]),p=e===ts?M:Xo(t[0][1],t[1][1])]],O.length>1&&Y(n)}else i=E[0][0],a=E[0][1],d=E[1][0],p=E[1][1];s=i,l=a,h=d,f=p;var R=$t(y).attr("pointer-events","none"),P=R.selectAll(".overlay").attr("cursor",is[b]);if(n.touches)N.moved=j,N.ended=V;else{var F=$t(n.view).on("mousemove.brush",j,!0).on("mouseup.brush",V,!0);o&&F.on("keydown.brush",(function(e){switch(e.keyCode){case 16:L=w&&x;break;case 18:_===Go&&(w&&(d=h-A*w,i=s+A*w),x&&(p=f-I*x,a=l+I*x),_=Ko,Y(e));break;case 32:_!==Go&&_!==Ko||(w<0?d=h-A:w>0&&(i=s-A),x<0?p=f-I:x>0&&(a=l-I),_=$o,P.attr("cursor",is.selection),Y(e));break;default:return}qo(e)}),!0).on("keyup.brush",(function(e){switch(e.keyCode){case 16:L&&(g=v=L=!1,Y(e));break;case 18:_===Ko&&(w<0?d=h:w>0&&(i=s),x<0?p=f:x>0&&(a=l),_=Go,Y(e));break;case 32:_===$o&&(e.altKey?(w&&(d=h-A*w,i=s+A*w),x&&(p=f-I*x,a=l+I*x),_=Ko):(w<0?d=h:w>0&&(i=s),x<0?p=f:x>0&&(a=l),_=Go),P.attr("cursor",is[b]),Y(e));break;default:return}qo(e)}),!0),rn(n.view)}c.call(y),N.start(n,_.name)}function j(e){for(const t of e.changedTouches||[e])for(const e of O)e.identifier===t.identifier&&(e.cur=Jt(t,y));if(L&&!g&&!v&&1===O.length){const e=O[0];Zo(e.cur[0]-e[0])>Zo(e.cur[1]-e[1])?v=!0:g=!0}for(const e of O)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);m=!0,qo(e),Y(e)}function Y(e){const t=O[0],n=t.point0;var r;switch(A=t[0]-n[0],I=t[1]-n[1],_){case $o:case Wo:w&&(A=Xo(T-i,Jo(D-d,A)),s=i+A,h=d+A),x&&(I=Xo(C-a,Jo(M-p,I)),l=a+I,f=p+I);break;case Go:O[1]?(w&&(s=Xo(T,Jo(D,O[0][0])),h=Xo(T,Jo(D,O[1][0])),w=1),x&&(l=Xo(C,Jo(M,O[0][1])),f=Xo(C,Jo(M,O[1][1])),x=1)):(w<0?(A=Xo(T-i,Jo(D-i,A)),s=i+A,h=d):w>0&&(A=Xo(T-d,Jo(D-d,A)),s=i,h=d+A),x<0?(I=Xo(C-a,Jo(M-a,I)),l=a+I,f=p):x>0&&(I=Xo(C-p,Jo(M-p,I)),l=a,f=p+I));break;case Ko:w&&(s=Xo(T,Jo(D,i-A*w)),h=Xo(T,Jo(D,d+A*w))),x&&(l=Xo(C,Jo(M,a-I*x)),f=Xo(C,Jo(M,p+I*x)))}h<s&&(w*=-1,r=i,i=d,d=r,r=s,s=h,h=r,b in os&&P.attr("cursor",is[b=os[b]])),f<l&&(x*=-1,r=a,a=p,p=r,r=l,l=f,f=r,b in ss&&P.attr("cursor",is[b=ss[b]])),S.selection&&(E=S.selection),g&&(s=E[0][0],h=E[1][0]),v&&(l=E[0][1],f=E[1][1]),E[0][0]===s&&E[0][1]===l&&E[1][0]===h&&E[1][1]===f||(S.selection=[[s,l],[h,f]],c.call(y),N.brush(e,_.name))}function V(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),F.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);R.attr("pointer-events","all"),P.attr("cursor",is.overlay),S.selection&&(E=S.selection),function(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}(E)&&(S.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=es(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=zr(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();Bi(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 zo(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:Uo(es(e)),l):n},l.filter=function(e){return arguments.length?(r="function"==typeof e?e:Uo(!!e),l):r},l.touchable=function(e){return arguments.length?(i="function"==typeof e?e:Uo(!!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 ms=Math.abs,gs=Math.cos,vs=Math.sin,ys=Math.PI,bs=ys/2,_s=2*ys,ws=Math.max,xs=1e-12;function Ss(e,t){return Array.from({length:t-e},((t,n)=>e+n))}function ks(e,t){var n=0,r=null,i=null,o=null;function s(s){var a,l=s.length,c=new Array(l),u=Ss(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=ws(0,_s-n*l)/p)?n:_s/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=Ss(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=Ss(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=ws(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 Es=Math.PI,Ts=2*Es,Cs=1e-6,Ds=Ts-Cs;function Ms(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}let As=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Ms:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ms;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>Cs)if(Math.abs(u*a-l*c)>Cs&&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((Es-Math.acos((f+d-m)/(2*g*v)))/2),b=y/v,_=y/g;Math.abs(b-1)>Cs&&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)>Cs||Math.abs(this._y1-c)>Cs)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Ts+Ts),d>Ds?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>Cs&&this._append`A${n},${n},0,${+(d>=Es)},${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 Is(){return new As}Is.prototype=As.prototype;var Ls=Array.prototype.slice;function Os(e){return function(){return e}}function Ns(e){return e.source}function Rs(e){return e.target}function Ps(e){return e.radius}function Fs(e){return e.startAngle}function js(e){return e.endAngle}function Ys(){return 0}function Vs(){return 10}function Hs(e){var t=Ns,n=Rs,r=Ps,i=Ps,o=Fs,s=js,a=Ys,l=null;function c(){var c,u=t.apply(this,arguments),d=n.apply(this,arguments),h=a.apply(this,arguments)/2,p=Ls.call(arguments),f=+r.apply(this,(p[0]=u,p)),m=o.apply(this,p)-bs,g=s.apply(this,p)-bs,v=+i.apply(this,(p[0]=d,p)),y=o.apply(this,p)-bs,b=s.apply(this,p)-bs;if(l||(l=c=Is()),h>xs&&(ms(g-m)>2*h+xs?g>m?(m+=h,g-=h):(m-=h,g+=h):m=g=(m+g)/2,ms(b-y)>2*h+xs?b>y?(y+=h,b-=h):(y-=h,b+=h):y=b=(y+b)/2),l.moveTo(f*gs(m),f*vs(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,_*gs(y),_*vs(y)),l.lineTo(v*gs(w),v*vs(w)),l.lineTo(_*gs(b),_*vs(b))}else l.quadraticCurveTo(0,0,v*gs(y),v*vs(y)),l.arc(0,0,v,y,b);if(l.quadraticCurveTo(0,0,f*gs(m),f*vs(m)),l.closePath(),c)return l=null,c+""||null}return e&&(c.headRadius=function(t){return arguments.length?(e="function"==typeof t?t:Os(+t),c):e}),c.radius=function(e){return arguments.length?(r=i="function"==typeof e?e:Os(+e),c):r},c.sourceRadius=function(e){return arguments.length?(r="function"==typeof e?e:Os(+e),c):r},c.targetRadius=function(e){return arguments.length?(i="function"==typeof e?e:Os(+e),c):i},c.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:Os(+e),c):o},c.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:Os(+e),c):s},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Os(+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 Bs=Array.prototype.slice;function Us(e,t){return e-t}var zs=e=>()=>e;function qs(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=Ws(e,t[r]))return n;return 0}function Ws(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($s(l,d,t))return 0;u>r!=p>r&&n<(h-c)*(r-u)/(p-u)+c&&(i=-i)}return i}function $s(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 Gs(){}var Ks=[[],[[[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 Zs(){var e=1,t=1,n=Q,r=a;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Us);else{const n=S(e,Xs);for(t=K(...J(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=Js(n[0],r),Ks[c<<1].forEach(f);++o<e-1;)l=c,c=Js(n[o+1],r),Ks[l|c<<1].forEach(f);for(Ks[c|0].forEach(f);++a<t-1;){for(o=-1,c=Js(n[a*e+e],r),u=Js(n[a*e],r),Ks[c<<1|u<<2].forEach(f);++o<e-1;)l=c,c=Js(n[a*e+e+o+1],r),d=u,u=Js(n[a*e+o+1],r),Ks[l|c<<1|u<<2|d<<3].forEach(f);Ks[c|u<<3].forEach(f)}for(o=-1,u=n[a*e]>=r,Ks[u<<2].forEach(f);++o<e-1;)d=u,u=Js(n[a*e+o+1],r),Ks[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]}}Ks[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!==qs((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=Qs(r[l*e+a]);o>0&&o<e&&a===o&&(n[0]=ea(o,Qs(r[l*e+a-1]),c,i)),s>0&&s<t&&l===s&&(n[1]=ea(s,Qs(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)?zs(Bs.call(e)):zs(e),i):n},i.smooth=function(e){return arguments.length?(r=e?a:Gs,i):r===a},i}function Xs(e){return isFinite(e)?e:NaN}function Js(e,t){return null!=e&&+e>=t}function Qs(e){return null==e||isNaN(e=+e)?-1/0:e}function ea(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 ta(e){return e[0]}function na(e){return e[1]}function ra(){return 1}const ia=134217729;function oa(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 sa(e){return new Float64Array(e)}const aa=sa(4),la=sa(8),ca=sa(12),ua=sa(16),da=sa(4);function ha(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,x,S,k;const E=e-i,T=n-i,C=t-o,D=r-o;_=E*D,h=ia*E,p=h-(h-E),f=E-p,h=ia*D,m=h-(h-D),g=D-m,w=f*g-(_-p*m-f*m-p*g),x=C*T,h=ia*C,p=h-(h-C),f=C-p,h=ia*T,m=h-(h-T),g=T-m,S=f*g-(x-p*m-f*m-p*g),v=w-S,d=w-v,aa[0]=w-(v+d)+(d-S),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-x,d=b-v,aa[1]=b-(v+d)+(d-x),k=y+v,d=k-y,aa[2]=y-(k-d)+(v-d),aa[3]=k;let M=function(e,t){let n=t[0];for(let e=1;e<4;e++)n+=t[e];return n}(0,aa),A=22204460492503146e-32*s;if(M>=A||-M>=A)return M;if(d=e-E,a=e-(E+d)+(d-i),d=n-T,c=n-(T+d)+(d-i),d=t-C,l=t-(C+d)+(d-o),d=r-D,u=r-(D+d)+(d-o),0===a&&0===l&&0===c&&0===u)return M;if(A=11093356479670487e-47*s+33306690738754706e-32*Math.abs(M),M+=E*u+D*a-(C*c+T*l),M>=A||-M>=A)return M;_=a*D,h=ia*a,p=h-(h-a),f=a-p,h=ia*D,m=h-(h-D),g=D-m,w=f*g-(_-p*m-f*m-p*g),x=l*T,h=ia*l,p=h-(h-l),f=l-p,h=ia*T,m=h-(h-T),g=T-m,S=f*g-(x-p*m-f*m-p*g),v=w-S,d=w-v,da[0]=w-(v+d)+(d-S),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-x,d=b-v,da[1]=b-(v+d)+(d-x),k=y+v,d=k-y,da[2]=y-(k-d)+(v-d),da[3]=k;const I=oa(4,aa,4,da,la);_=E*u,h=ia*E,p=h-(h-E),f=E-p,h=ia*u,m=h-(h-u),g=u-m,w=f*g-(_-p*m-f*m-p*g),x=C*c,h=ia*C,p=h-(h-C),f=C-p,h=ia*c,m=h-(h-c),g=c-m,S=f*g-(x-p*m-f*m-p*g),v=w-S,d=w-v,da[0]=w-(v+d)+(d-S),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-x,d=b-v,da[1]=b-(v+d)+(d-x),k=y+v,d=k-y,da[2]=y-(k-d)+(v-d),da[3]=k;const L=oa(I,la,4,da,ca);_=a*u,h=ia*a,p=h-(h-a),f=a-p,h=ia*u,m=h-(h-u),g=u-m,w=f*g-(_-p*m-f*m-p*g),x=l*c,h=ia*l,p=h-(h-l),f=l-p,h=ia*c,m=h-(h-c),g=c-m,S=f*g-(x-p*m-f*m-p*g),v=w-S,d=w-v,da[0]=w-(v+d)+(d-S),y=_+v,d=y-_,b=_-(y-d)+(v-d),v=b-x,d=b-v,da[1]=b-(v+d)+(d-x),k=y+v,d=k-y,da[2]=y-(k-d)+(v-d),da[3]=k;const O=oa(L,ca,4,da,ua);return ua[O-1]}(e,t,n,r,i,o,c)}const pa=Math.pow(2,-52),fa=new Uint32Array(512);class ma{static from(e,t=wa,n=xa){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 ma(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=ga(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=ga(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=ya(g,v,y,b,e[2*t],e[2*t+1]);n<_&&(f=t,_=n)}let w=e[2*f],x=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];ba(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(ha(g,v,y,b,w,x)<0){const e=p,t=y,n=b;p=f,y=w,b=x,f=e,w=t,x=n}const S=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,x);this._cx=S.x,this._cy=S.y;for(let t=0;t<o;t++)this._dists[t]=ga(e[2*t],e[2*t+1],S.x,S.y);ba(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,x)]=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)<=pa&&Math.abs(u-s)<=pa)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],ha(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],ha(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],ha(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=fa[--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(va(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<fa.length&&(fa[i++]=a)}else{if(0===i)break;e=fa[--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 ga(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function va(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 ya(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 ba(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;_a(e,n+r>>1,i),t[e[n]]>t[e[r]]&&_a(e,n,r),t[e[i]]>t[e[r]]&&_a(e,i,r),t[e[n]]>t[e[i]]&&_a(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;_a(e,i,o)}e[n+1]=e[o],e[o]=s,r-i+1>=o-n?(ba(e,t,i,r),ba(e,t,n,o-1)):(ba(e,t,n,o-1),ba(e,t,i,r))}}function _a(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function wa(e){return e[0]}function xa(e){return e[1]}const Sa=1e-6;class ka{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)>Sa||Math.abs(this._y1-i)>Sa)&&(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 Ea{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 Ta{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,x=y-f,S=2*(b*x-_*w);if(Math.abs(S)<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)*x-(o-f)*w);r=(p+v)/2-n*x,a=(f+y)/2+n*w}else{const e=1/S,t=b*b+_*_,n=w*w+x*x;r=p+(x*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 ka: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 ka: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 ka: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 Ea;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 Ca=2*Math.PI,Da=Math.pow;function Ma(e){return e[0]}function Aa(e){return e[1]}function Ia(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class La{static from(e,t=Ma,n=Aa,r){return new La("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 ma(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=Ia(t[2*e],t[2*e+1],i);t[2*e]=n[0],t[2*e+1]=n[1]}this._delaunator=new ma(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 Ta(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=Da(t-l[2*e],2)+Da(n-l[2*e+1],2);const d=r[e];let h=d;do{let r=a[h];const d=Da(t-l[2*r],2)+Da(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&&Da(t-l[2*h],2)+Da(n-l[2*h+1],2)<u)return h;break}}while(h!==d);return c}render(e){const t=null==e?e=new ka: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 ka: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,Ca)}return n&&n.value()}renderHull(e){const t=null==e?e=new ka: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 Ea;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new ka: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 Ea;return this.renderTriangle(e,t),t.value()}}var Oa={},Na={};function Ra(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function Pa(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 Fa(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function ja(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 Na;if(c)return c=!1,Oa;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())!==Na;){for(var d=[];r!==Oa&&r!==Na;)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?"-"+Fa(-t,6):t>9999?"+"+Fa(t,6):Fa(t,4))+"-"+Fa(e.getUTCMonth()+1,2)+"-"+Fa(e.getUTCDate(),2)+(o?"T"+Fa(n,2)+":"+Fa(r,2)+":"+Fa(i,2)+"."+Fa(o,3)+"Z":i?"T"+Fa(n,2)+":"+Fa(r,2)+":"+Fa(i,2)+"Z":r||n?"T"+Fa(n,2)+":"+Fa(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=Ra(e);return function(r,i){return t(n(r),i,e)}}(e,t):Ra(e)}));return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=Pa(t)),[n.map(s).join(e)].concat(i(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=Pa(e)),i(e,t).join("\n")},formatRows:function(e){return e.map(o).join("\n")},formatRow:o,formatValue:s}}var Ya=ja(","),Va=Ya.parse,Ha=Ya.parseRows,Ba=Ya.format,Ua=Ya.formatBody,za=Ya.formatRows,qa=Ya.formatRow,Wa=Ya.formatValue,$a=ja("\t"),Ga=$a.parse,Ka=$a.parseRows,Za=$a.format,Xa=$a.formatBody,Ja=$a.formatRows,Qa=$a.formatRow,el=$a.formatValue;const tl=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function nl(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function rl(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function il(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function ol(e,t){return fetch(e,t).then(il)}function sl(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),ol(t,n).then((function(t){return e(t,r)}))}}var al=sl(Va),ll=sl(Ga);function cl(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(204!==e.status&&205!==e.status)return e.json()}function ul(e){return(t,n)=>ol(t,n).then((t=>(new DOMParser).parseFromString(t,e)))}var dl=ul("application/xml"),hl=ul("text/html"),pl=ul("image/svg+xml");function fl(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 ml(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function gl(e){return e[0]}function vl(e){return e[1]}function yl(e,t,n){var r=new bl(null==t?gl:t,null==n?vl:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function bl(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 _l(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var wl=yl.prototype=bl.prototype;function xl(e){return function(){return e}}function Sl(e){return 1e-6*(e()-.5)}function kl(e){return e.x+e.vx}function El(e){return e.y+e.vy}function Tl(e){return e.index}function Cl(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}wl.copy=function(){var e,t,n=new bl(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=_l(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]=_l(t));return n},wl.add=function(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return fl(this.cover(t,n),t,n,e)},wl.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)fl(this,s[n],a[n],e[n]);return this},wl.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},wl.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},wl.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]]},wl.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 ml(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 ml(m[3],g,v,s,a),new ml(m[2],i,v,g,a),new ml(m[1],g,o,s,v),new ml(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},wl.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)},wl.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},wl.root=function(){return this._root},wl.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},wl.visit=function(e){var t,n,r,i,o,s,a=[],l=this._root;for(l&&a.push(new ml(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 ml(n,c,u,o,s)),(n=l[2])&&a.push(new ml(n,r,u,c,s)),(n=l[1])&&a.push(new ml(n,c,i,o,u)),(n=l[0])&&a.push(new ml(n,r,i,c,u))}return this},wl.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new ml(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 ml(o,s,a,u,d)),(o=i[1])&&n.push(new ml(o,u,a,l,d)),(o=i[2])&&n.push(new ml(o,s,d,u,c)),(o=i[3])&&n.push(new ml(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},wl.x=function(e){return arguments.length?(this._x=e,this):this._x},wl.y=function(e){return arguments.length?(this._y=e,this):this._y};const Dl=4294967296;function Ml(e){return e.x}function Al(e){return e.y}var Il=Math.PI*(3-Math.sqrt(5));function Ll(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 Ol(e){return(e=Ll(Math.abs(e)))?e[1]:NaN}var Nl,Rl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pl(e){if(!(t=Rl.exec(e)))throw new Error("invalid format: "+e);var t;return new Fl({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 Fl(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 jl(e,t){var n=Ll(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")}Pl.prototype=Fl.prototype,Fl.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 Yl={"%":(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)=>jl(100*e,t),r:jl,s:function(e,t){var n=Ll(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Nl=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")+Ll(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Vl(e){return e}var Hl,Bl=Array.prototype.map,Ul=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function zl(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Vl:(t=Bl.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?Vl:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Bl.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=Pl(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"):Yl[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=Yl[y],x=/[defgprs%]/.test(y);function S(e){var i,o,l,h=b,S=_;if("c"===y)S=w(e)+S,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,S=("s"===y?Ul[8+Nl/3]:"")+S+(k&&"("===d?")":""),x)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){S=(46===l?s+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}m&&!p&&(e=r(e,1/0));var E=h.length+e.length+S.length,T=E<f?new Array(f-E+1).join(t):"";switch(m&&p&&(e=r(T+e,T.length?f-S.length:1/0),T=""),n){case"<":e=h+e+S+T;break;case"=":e=h+T+e+S;break;case"^":e=T.slice(0,E=T.length>>1)+h+e+S+T.slice(E);break;default:e=T+h+e+S}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)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=Pl(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ol(t)/3))),i=Math.pow(10,-r),o=Ul[8+r/3];return function(e){return n(i*e)+o}}}}function ql(t){return Hl=zl(t),e.format=Hl.format,e.formatPrefix=Hl.formatPrefix,Hl}function Wl(e){return Math.max(0,-Ol(Math.abs(e)))}function $l(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ol(t)/3)))-Ol(Math.abs(e)))}function Gl(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ol(t)-Ol(e))+1}e.format=void 0,e.formatPrefix=void 0,ql({thousands:",",grouping:[3],currency:["$",""]});var Kl=1e-6,Zl=1e-12,Xl=Math.PI,Jl=Xl/2,Ql=Xl/4,ec=2*Xl,tc=180/Xl,nc=Xl/180,rc=Math.abs,ic=Math.atan,oc=Math.atan2,sc=Math.cos,ac=Math.ceil,lc=Math.exp,cc=Math.hypot,uc=Math.log,dc=Math.pow,hc=Math.sin,pc=Math.sign||function(e){return e>0?1:e<0?-1:0},fc=Math.sqrt,mc=Math.tan;function gc(e){return e>1?0:e<-1?Xl:Math.acos(e)}function vc(e){return e>1?Jl:e<-1?-Jl:Math.asin(e)}function yc(e){return(e=hc(e/2))*e}function bc(){}function _c(e,t){e&&xc.hasOwnProperty(e.type)&&xc[e.type](e,t)}var wc={Feature:function(e,t){_c(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)_c(n[r].geometry,t)}},xc={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){Sc(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Sc(n[r],t,0)},Polygon:function(e,t){kc(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)kc(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)_c(n[r],t)}};function Sc(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 kc(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)Sc(e[n],t,1);t.polygonEnd()}function Ec(e,t){e&&wc.hasOwnProperty(e.type)?wc[e.type](e,t):_c(e,t)}var Tc,Cc,Dc,Mc,Ac,Ic,Lc,Oc,Nc,Rc,Pc,Fc,jc,Yc,Vc,Hc,Bc=new k,Uc=new k,zc={point:bc,lineStart:bc,lineEnd:bc,polygonStart:function(){Bc=new k,zc.lineStart=qc,zc.lineEnd=Wc},polygonEnd:function(){var e=+Bc;Uc.add(e<0?ec+e:e),this.lineStart=this.lineEnd=this.point=bc},sphere:function(){Uc.add(ec)}};function qc(){zc.point=$c}function Wc(){Gc(Tc,Cc)}function $c(e,t){zc.point=Gc,Tc=e,Cc=t,Dc=e*=nc,Mc=sc(t=(t*=nc)/2+Ql),Ac=hc(t)}function Gc(e,t){var n=(e*=nc)-Dc,r=n>=0?1:-1,i=r*n,o=sc(t=(t*=nc)/2+Ql),s=hc(t),a=Ac*s,l=Mc*o+a*sc(i),c=a*r*hc(i);Bc.add(oc(c,l)),Dc=e,Mc=o,Ac=s}function Kc(e){return[oc(e[1],e[0]),vc(e[2])]}function Zc(e){var t=e[0],n=e[1],r=sc(n);return[r*sc(t),r*hc(t),hc(n)]}function Xc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Jc(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 Qc(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function eu(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function tu(e){var t=fc(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var nu,ru,iu,ou,su,au,lu,cu,uu,du,hu,pu,fu,mu,gu,vu,yu={point:bu,lineStart:wu,lineEnd:xu,polygonStart:function(){yu.point=Su,yu.lineStart=ku,yu.lineEnd=Eu,Yc=new k,zc.polygonStart()},polygonEnd:function(){zc.polygonEnd(),yu.point=bu,yu.lineStart=wu,yu.lineEnd=xu,Bc<0?(Ic=-(Oc=180),Lc=-(Nc=90)):Yc>Kl?Nc=90:Yc<-Kl&&(Lc=-90),Hc[0]=Ic,Hc[1]=Oc},sphere:function(){Ic=-(Oc=180),Lc=-(Nc=90)}};function bu(e,t){Vc.push(Hc=[Ic=e,Oc=e]),t<Lc&&(Lc=t),t>Nc&&(Nc=t)}function _u(e,t){var n=Zc([e*nc,t*nc]);if(jc){var r=Jc(jc,n),i=Jc([r[1],-r[0],0],r);tu(i),i=Kc(i);var o,s=e-Rc,a=s>0?1:-1,l=i[0]*tc*a,c=rc(s)>180;c^(a*Rc<l&&l<a*e)?(o=i[1]*tc)>Nc&&(Nc=o):c^(a*Rc<(l=(l+360)%360-180)&&l<a*e)?(o=-i[1]*tc)<Lc&&(Lc=o):(t<Lc&&(Lc=t),t>Nc&&(Nc=t)),c?e<Rc?Tu(Ic,e)>Tu(Ic,Oc)&&(Oc=e):Tu(e,Oc)>Tu(Ic,Oc)&&(Ic=e):Oc>=Ic?(e<Ic&&(Ic=e),e>Oc&&(Oc=e)):e>Rc?Tu(Ic,e)>Tu(Ic,Oc)&&(Oc=e):Tu(e,Oc)>Tu(Ic,Oc)&&(Ic=e)}else Vc.push(Hc=[Ic=e,Oc=e]);t<Lc&&(Lc=t),t>Nc&&(Nc=t),jc=n,Rc=e}function wu(){yu.point=_u}function xu(){Hc[0]=Ic,Hc[1]=Oc,yu.point=bu,jc=null}function Su(e,t){if(jc){var n=e-Rc;Yc.add(rc(n)>180?n+(n>0?360:-360):n)}else Pc=e,Fc=t;zc.point(e,t),_u(e,t)}function ku(){zc.lineStart()}function Eu(){Su(Pc,Fc),zc.lineEnd(),rc(Yc)>Kl&&(Ic=-(Oc=180)),Hc[0]=Ic,Hc[1]=Oc,jc=null}function Tu(e,t){return(t-=e)<0?t+360:t}function Cu(e,t){return e[0]-t[0]}function Du(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var Mu={sphere:bc,point:Au,lineStart:Lu,lineEnd:Ru,polygonStart:function(){Mu.lineStart=Pu,Mu.lineEnd=Fu},polygonEnd:function(){Mu.lineStart=Lu,Mu.lineEnd=Ru}};function Au(e,t){e*=nc;var n=sc(t*=nc);Iu(n*sc(e),n*hc(e),hc(t))}function Iu(e,t,n){++nu,iu+=(e-iu)/nu,ou+=(t-ou)/nu,su+=(n-su)/nu}function Lu(){Mu.point=Ou}function Ou(e,t){e*=nc;var n=sc(t*=nc);mu=n*sc(e),gu=n*hc(e),vu=hc(t),Mu.point=Nu,Iu(mu,gu,vu)}function Nu(e,t){e*=nc;var n=sc(t*=nc),r=n*sc(e),i=n*hc(e),o=hc(t),s=oc(fc((s=gu*o-vu*i)*s+(s=vu*r-mu*o)*s+(s=mu*i-gu*r)*s),mu*r+gu*i+vu*o);ru+=s,au+=s*(mu+(mu=r)),lu+=s*(gu+(gu=i)),cu+=s*(vu+(vu=o)),Iu(mu,gu,vu)}function Ru(){Mu.point=Au}function Pu(){Mu.point=ju}function Fu(){Yu(pu,fu),Mu.point=Au}function ju(e,t){pu=e,fu=t,e*=nc,t*=nc,Mu.point=Yu;var n=sc(t);mu=n*sc(e),gu=n*hc(e),vu=hc(t),Iu(mu,gu,vu)}function Yu(e,t){e*=nc;var n=sc(t*=nc),r=n*sc(e),i=n*hc(e),o=hc(t),s=gu*o-vu*i,a=vu*r-mu*o,l=mu*i-gu*r,c=cc(s,a,l),u=vc(c),d=c&&-u/c;uu.add(d*s),du.add(d*a),hu.add(d*l),ru+=u,au+=u*(mu+(mu=r)),lu+=u*(gu+(gu=i)),cu+=u*(vu+(vu=o)),Iu(mu,gu,vu)}function Vu(e){return function(){return e}}function Hu(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 Bu(e,t){return rc(e)>Xl&&(e-=Math.round(e/ec)*ec),[e,t]}function Uu(e,t,n){return(e%=ec)?t||n?Hu(qu(e),Wu(t,n)):qu(e):t||n?Wu(t,n):Bu}function zu(e){return function(t,n){return rc(t+=e)>Xl&&(t-=Math.round(t/ec)*ec),[t,n]}}function qu(e){var t=zu(e);return t.invert=zu(-e),t}function Wu(e,t){var n=sc(e),r=hc(e),i=sc(t),o=hc(t);function s(e,t){var s=sc(t),a=sc(e)*s,l=hc(e)*s,c=hc(t),u=c*n+a*r;return[oc(l*i-u*o,a*n-c*r),vc(u*i+l*o)]}return s.invert=function(e,t){var s=sc(t),a=sc(e)*s,l=hc(e)*s,c=hc(t),u=c*i-l*o;return[oc(l*i+c*o,a*n+u*r),vc(u*n-a*r)]},s}function $u(e){function t(t){return(t=e(t[0]*nc,t[1]*nc))[0]*=tc,t[1]*=tc,t}return e=Uu(e[0]*nc,e[1]*nc,e.length>2?e[2]*nc:0),t.invert=function(t){return(t=e.invert(t[0]*nc,t[1]*nc))[0]*=tc,t[1]*=tc,t},t}function Gu(e,t,n,r,i,o){if(n){var s=sc(t),a=hc(t),l=r*n;null==i?(i=t+r*ec,o=t-l/2):(i=Ku(s,i),o=Ku(s,o),(r>0?i<o:i>o)&&(i+=r*ec));for(var c,u=i;r>0?u>o:u<o;u-=l)c=Kc([s,-a*sc(u),-a*hc(u)]),e.point(c[0],c[1])}}function Ku(e,t){(t=Zc(t))[0]-=e,tu(t);var n=gc(-t[1]);return((-t[2]<0?-n:n)+ec-Kl)%ec}function Zu(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:bc,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Xu(e,t){return rc(e[0]-t[0])<Kl&&rc(e[1]-t[1])<Kl}function Ju(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 Qu(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(Xu(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*Kl}a.push(n=new Ju(r,e,null,!0)),l.push(n.o=new Ju(r,null,n,!1)),a.push(n=new Ju(s,e,null,!1)),l.push(n.o=new Ju(s,null,n,!0))}})),a.length){for(l.sort(t),ed(a),ed(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 ed(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 td(e){return rc(e[0])<=Xl?e[0]:pc(e[0])*((rc(e[0])+Xl)%ec-Xl)}function nd(e,t){var n=td(t),r=t[1],i=hc(r),o=[hc(n),-sc(n),0],s=0,a=0,l=new k;1===i?r=Jl+Kl:-1===i&&(r=-Jl-Kl);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=td(p),m=p[1]/2+Ql,g=hc(m),v=sc(m),y=0;y<h;++y,f=_,g=x,v=S,p=b){var b=d[y],_=td(b),w=b[1]/2+Ql,x=hc(w),S=sc(w),E=_-f,T=E>=0?1:-1,C=T*E,D=C>Xl,M=g*x;if(l.add(oc(M*T*hc(C),v*S+M*sc(C))),s+=D?E+T*ec:E,D^f>=n^_>=n){var A=Jc(Zc(p),Zc(b));tu(A);var I=Jc(o,A);tu(I);var L=(D^E>=0?-1:1)*vc(I[2]);(r>L||r===L&&(A[0]||A[1]))&&(a+=D^E>=0?1:-1)}}return(s<-Kl||s<Kl&&l<-Zl)^1&a}function rd(e,t,n,r){return function(i){var o,s,a,l=t(i),c=Zu(),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=nd(o,r);s.length?(d||(i.polygonStart(),d=!0),Qu(s,od,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(id))}return h}}function id(e){return e.length>1}function od(e,t){return((e=e.x)[0]<0?e[1]-Jl-Kl:Jl-e[1])-((t=t.x)[0]<0?t[1]-Jl-Kl:Jl-t[1])}Bu.invert=Bu;var sd=rd((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?Xl:-Xl,l=rc(o-n);rc(l-Xl)<Kl?(e.point(n,r=(r+s)/2>0?Jl:-Jl),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),e.point(o,r),t=0):i!==a&&l>=Xl&&(rc(n-i)<Kl&&(n-=i*Kl),rc(o-a)<Kl&&(o-=a*Kl),r=function(e,t,n,r){var i,o,s=hc(e-n);return rc(s)>Kl?ic((hc(t)*(o=sc(r))*hc(n)-hc(r)*(i=sc(t))*hc(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*Jl,r.point(-Xl,i),r.point(0,i),r.point(Xl,i),r.point(Xl,0),r.point(Xl,-i),r.point(0,-i),r.point(-Xl,-i),r.point(-Xl,0),r.point(-Xl,i);else if(rc(e[0]-t[0])>Kl){var o=e[0]<t[0]?Xl:-Xl;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}),[-Xl,-Jl]);function ad(e){var t=sc(e),n=6*nc,r=t>0,i=rc(t)>Kl;function o(e,n){return sc(e)*sc(n)>t}function s(e,n,r){var i=[1,0,0],o=Jc(Zc(e),Zc(n)),s=Xc(o,o),a=o[0],l=s-a*a;if(!l)return!r&&e;var c=t*s/l,u=-t*a/l,d=Jc(i,o),h=eu(i,c);Qc(h,eu(o,u));var p=d,f=Xc(h,p),m=Xc(p,p),g=f*f-m*(Xc(h,h)-1);if(!(g<0)){var v=fc(g),y=eu(p,(-f-v)/m);if(Qc(y,h),y=Kc(y),!r)return y;var b,_=e[0],w=n[0],x=e[1],S=n[1];w<_&&(b=_,_=w,w=b);var k=w-_,E=rc(k-Xl)<Kl;if(!E&&S<x&&(b=x,x=S,S=b),E||k<Kl?E?x+S>0^y[1]<(rc(y[0]-_)<Kl?x:S):x<=y[1]&&y[1]<=S:k>Xl^(_<=y[0]&&y[0]<=w)){var T=eu(p,(-f+v)/m);return Qc(T,h),[y,Kc(T)]}}}function a(t,n){var i=r?e:Xl-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return rd(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?Xl:-Xl),h):0;if(!t&&(c=l=m)&&e.lineStart(),m!==l&&(!(p=s(t,f))||Xu(t,p)||Xu(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&&Xu(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){Gu(o,e,n,i,t,r)}),r?[0,-e]:[-Xl,e-Xl])}var ld,cd,ud,dd,hd=1e9,pd=-hd;function fd(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 rc(r[0]-e)<Kl?i>0?0:3:rc(r[0]-n)<Kl?i>0?2:1:rc(r[1]-t)<Kl?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,_=Zu(),w={point:x,lineStart:function(){w.point=S,c&&c.push(u=[]),v=!0,g=!1,f=m=NaN},lineEnd:function(){l&&(S(d,h),p&&g&&_.rejoin(),l.push(_.result())),w.point=x,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&&Qu(l,a,t,o,s),s.polygonEnd()),b=s,l=c=u=null}};function x(e,t){i(e,t)&&b.point(e,t)}function S(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(pd,Math.min(hd,f)),m=Math.max(pd,Math.min(hd,m))],_=[o=Math.max(pd,Math.min(hd,o)),s=Math.max(pd,Math.min(hd,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 md={sphere:bc,point:bc,lineStart:function(){md.point=vd,md.lineEnd=gd},lineEnd:bc,polygonStart:bc,polygonEnd:bc};function gd(){md.point=md.lineEnd=bc}function vd(e,t){cd=e*=nc,ud=hc(t*=nc),dd=sc(t),md.point=yd}function yd(e,t){e*=nc;var n=hc(t*=nc),r=sc(t),i=rc(e-cd),o=sc(i),s=r*hc(i),a=dd*n-ud*r*o,l=ud*n+dd*r*o;ld.add(oc(fc(s*s+a*a),l)),cd=e,ud=n,dd=r}function bd(e){return ld=new k,Ec(e,md),+ld}var _d=[null,null],wd={type:"LineString",coordinates:_d};function xd(e,t){return _d[0]=e,_d[1]=t,bd(wd)}var Sd={Feature:function(e,t){return Ed(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(Ed(n[r].geometry,t))return!0;return!1}},kd={Sphere:function(){return!0},Point:function(e,t){return Td(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Td(n[r],t))return!0;return!1},LineString:function(e,t){return Cd(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Cd(n[r],t))return!0;return!1},Polygon:function(e,t){return Dd(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Dd(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(Ed(n[r],t))return!0;return!1}};function Ed(e,t){return!(!e||!kd.hasOwnProperty(e.type))&&kd[e.type](e,t)}function Td(e,t){return 0===xd(e,t)}function Cd(e,t){for(var n,r,i,o=0,s=e.length;o<s;o++){if(0===(r=xd(e[o],t)))return!0;if(o>0&&(i=xd(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<Zl*i)return!0;n=r}return!1}function Dd(e,t){return!!nd(e.map(Md),Ad(t))}function Md(e){return(e=e.map(Ad)).pop(),e}function Ad(e){return[e[0]*nc,e[1]*nc]}function Id(e,t,n){var r=pe(e,t-Kl,n).concat(t);return function(e){return r.map((function(t){return[e,t]}))}}function Ld(e,t,n){var r=pe(e,t-Kl,n).concat(t);return function(e){return r.map((function(t){return[t,e]}))}}function Od(){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(ac(r/f)*f,n,f).map(u).concat(pe(ac(a/m)*m,s,m).map(d)).concat(pe(ac(t/h)*h,e,h).filter((function(e){return rc(e%f)>Kl})).map(l)).concat(pe(ac(o/p)*p,i,p).filter((function(e){return rc(e%m)>Kl})).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=Id(o,i,90),c=Ld(t,e,g),u=Id(a,s,90),d=Ld(r,n,g),v):g},v.extentMajor([[-180,-90+Kl],[180,90-Kl]]).extentMinor([[-180,-80-Kl],[180,80+Kl]])}var Nd,Rd,Pd,Fd,jd=e=>e,Yd=new k,Vd=new k,Hd={point:bc,lineStart:bc,lineEnd:bc,polygonStart:function(){Hd.lineStart=Bd,Hd.lineEnd=qd},polygonEnd:function(){Hd.lineStart=Hd.lineEnd=Hd.point=bc,Yd.add(rc(Vd)),Vd=new k},result:function(){var e=Yd/2;return Yd=new k,e}};function Bd(){Hd.point=Ud}function Ud(e,t){Hd.point=zd,Nd=Pd=e,Rd=Fd=t}function zd(e,t){Vd.add(Fd*e-Pd*t),Pd=e,Fd=t}function qd(){zd(Nd,Rd)}var Wd,$d,Gd,Kd,Zd=Hd,Xd=1/0,Jd=Xd,Qd=-Xd,eh=Qd,th={point:function(e,t){e<Xd&&(Xd=e),e>Qd&&(Qd=e),t<Jd&&(Jd=t),t>eh&&(eh=t)},lineStart:bc,lineEnd:bc,polygonStart:bc,polygonEnd:bc,result:function(){var e=[[Xd,Jd],[Qd,eh]];return Qd=eh=-(Jd=Xd=1/0),e}},nh=th,rh=0,ih=0,oh=0,sh=0,ah=0,lh=0,ch=0,uh=0,dh=0,hh={point:ph,lineStart:fh,lineEnd:vh,polygonStart:function(){hh.lineStart=yh,hh.lineEnd=bh},polygonEnd:function(){hh.point=ph,hh.lineStart=fh,hh.lineEnd=vh},result:function(){var e=dh?[ch/dh,uh/dh]:lh?[sh/lh,ah/lh]:oh?[rh/oh,ih/oh]:[NaN,NaN];return rh=ih=oh=sh=ah=lh=ch=uh=dh=0,e}};function ph(e,t){rh+=e,ih+=t,++oh}function fh(){hh.point=mh}function mh(e,t){hh.point=gh,ph(Gd=e,Kd=t)}function gh(e,t){var n=e-Gd,r=t-Kd,i=fc(n*n+r*r);sh+=i*(Gd+e)/2,ah+=i*(Kd+t)/2,lh+=i,ph(Gd=e,Kd=t)}function vh(){hh.point=ph}function yh(){hh.point=_h}function bh(){wh(Wd,$d)}function _h(e,t){hh.point=wh,ph(Wd=Gd=e,$d=Kd=t)}function wh(e,t){var n=e-Gd,r=t-Kd,i=fc(n*n+r*r);sh+=i*(Gd+e)/2,ah+=i*(Kd+t)/2,lh+=i,ch+=(i=Kd*e-Gd*t)*(Gd+e),uh+=i*(Kd+t),dh+=3*i,ph(Gd=e,Kd=t)}var xh=hh;function Sh(e){this._context=e}Sh.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,ec)}},result:bc};var kh,Eh,Th,Ch,Dh,Mh=new k,Ah={point:bc,lineStart:function(){Ah.point=Ih},lineEnd:function(){kh&&Lh(Eh,Th),Ah.point=bc},polygonStart:function(){kh=!0},polygonEnd:function(){kh=null},result:function(){var e=+Mh;return Mh=new k,e}};function Ih(e,t){Ah.point=Lh,Eh=Ch=e,Th=Dh=t}function Lh(e,t){Ch-=e,Dh-=t,Mh.add(fc(Ch*Ch+Dh*Dh)),Ch=e,Dh=t}var Oh=Ah;let Nh,Rh,Ph,Fh;class jh{constructor(e){this._append=null==e?Yh:function(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return Yh;if(t!==Nh){const e=10**t;Nh=t,Rh=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 Rh}(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!==Ph||this._append!==Rh){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`,Ph=e,Rh=this._append,Fh=this._,this._=t}this._+=Fh}}result(){const e=this._;return this._="",e.length?e:null}}function Yh(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Vh(e){return function(t){var n=new Hh;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Hh(){}function Bh(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Ec(n,e.stream(nh)),t(nh.result()),null!=r&&e.clipExtent(r),e}function Uh(e,t,n){return Bh(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 zh(e,t,n){return Uh(e,[[0,0],t],n)}function qh(e,t,n){return Bh(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 Wh(e,t,n){return Bh(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)}Hh.prototype={constructor:Hh,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 $h=16,Gh=sc(30*nc);function Kh(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,x=l+f,S=fc(_*_+w*w+x*x),k=vc(x/=S),E=rc(rc(x)-1)<Kl||rc(o-d)<Kl?(o+d)/2:oc(w,_),T=e(E,k),C=T[0],D=T[1],M=C-r,A=D-i,I=y*M-v*A;(I*I/b>t||rc((v*M+y*A)/b-.5)>.3||s*h+a*p+l*f<Gh)&&(n(r,i,o,s,a,l,C,D,E,_/=S,w/=S,x,m,g),g.point(C,D),n(C,D,E,_,w,x,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=Zc([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],$h,t),t.point(u,d)}function b(){m.point=g,t.lineEnd()}function _(){v(),m.point=w,m.lineEnd=x}function w(e,t){y(r=e,t),i=u,o=d,s=h,a=p,l=f,m.point=y}function x(){n(u,d,c,h,p,f,i,o,r,s,a,l,$h,t),m.lineEnd=b,b()}return m}}(e,t):function(e){return Vh({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)}var Zh=Vh({point:function(e,t){this.stream.point(e*nc,t*nc)}});function Xh(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=sc(o),a=hc(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 Jh(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,x=null,S=sd,k=null,E=jd,T=.5;function C(e){return l(e[0]*nc,e[1]*nc)}function D(e){return(e=l.invert(e[0],e[1]))&&[e[0]*tc,e[1]*tc]}function M(){var e=Xh(d,0,0,_,w,b).apply(null,t(f,m)),r=Xh(d,h-e[0],p-e[1],_,w,b);return n=Uu(g,v,y),a=Hu(t,r),l=Hu(n,a),s=Kh(a,T),A()}function A(){return c=u=null,C}return C.stream=function(e){return c&&u===e?c:c=Zh(function(e){return Vh({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}(n)(S(s(E(u=e)))))},C.preclip=function(e){return arguments.length?(S=e,x=void 0,A()):S},C.postclip=function(e){return arguments.length?(E=e,k=r=i=o=null,A()):E},C.clipAngle=function(e){return arguments.length?(S=+e?ad(x=e*nc):(x=null,sd),A()):x*tc},C.clipExtent=function(e){return arguments.length?(E=null==e?(k=r=i=o=null,jd):fd(k=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),A()):null==k?null:[[k,r],[i,o]]},C.scale=function(e){return arguments.length?(d=+e,M()):d},C.translate=function(e){return arguments.length?(h=+e[0],p=+e[1],M()):[h,p]},C.center=function(e){return arguments.length?(f=e[0]%360*nc,m=e[1]%360*nc,M()):[f*tc,m*tc]},C.rotate=function(e){return arguments.length?(g=e[0]%360*nc,v=e[1]%360*nc,y=e.length>2?e[2]%360*nc:0,M()):[g*tc,v*tc,y*tc]},C.angle=function(e){return arguments.length?(b=e%360*nc,M()):b*tc},C.reflectX=function(e){return arguments.length?(_=e?-1:1,M()):_<0},C.reflectY=function(e){return arguments.length?(w=e?-1:1,M()):w<0},C.precision=function(e){return arguments.length?(s=Kh(a,T=e*e),A()):fc(T)},C.fitExtent=function(e,t){return Uh(C,e,t)},C.fitSize=function(e,t){return zh(C,e,t)},C.fitWidth=function(e,t){return qh(C,e,t)},C.fitHeight=function(e,t){return Wh(C,e,t)},function(){return t=e.apply(this,arguments),C.invert=t.invert&&D,M()}}function ep(e){var t=0,n=Xl/3,r=Qh(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*nc,n=e[1]*nc):[t*tc,n*tc]},i}function tp(e,t){var n=hc(e),r=(n+hc(t))/2;if(rc(r)<Kl)return function(e){var t=sc(e);function n(e,n){return[e*t,hc(n)/t]}return n.invert=function(e,n){return[e/t,vc(n*t)]},n}(e);var i=1+n*(2*r-n),o=fc(i)/r;function s(e,t){var n=fc(i-2*r*hc(t))/r;return[n*hc(e*=r),o-n*sc(e)]}return s.invert=function(e,t){var n=o-t,s=oc(e,rc(n))*pc(n);return n*r<0&&(s-=Xl*pc(e)*pc(n)),[s/r,vc((i-(e*e+n*n)*r*r)/(2*r))]},s}function np(){return ep(tp).scale(155.424).center([0,33.6442])}function rp(){return np().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function ip(e){return function(t,n){var r=sc(t),i=sc(n),o=e(r*i);return o===1/0?[2,0]:[o*i*hc(t),o*hc(n)]}}function op(e){return function(t,n){var r=fc(t*t+n*n),i=e(r),o=hc(i),s=sc(i);return[oc(t*o,r*s),vc(r&&n*o/r)]}}var sp=ip((function(e){return fc(2/(1+e))}));sp.invert=op((function(e){return 2*vc(e/2)}));var ap=ip((function(e){return(e=gc(e))&&e/hc(e)}));function lp(e,t){return[e,uc(mc((Jl+t)/2))]}function cp(e){var t,n,r,i=Jh(e),o=i.center,s=i.scale,a=i.translate,l=i.clipExtent,c=null;function u(){var o=Xl*s(),a=i($u(i.rotate()).invert([0,0]));return l(null==c?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:e===lp?[[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 up(e){return mc((Jl+e)/2)}function dp(e,t){var n=sc(e),r=e===t?hc(e):uc(n/sc(t))/uc(up(t)/up(e)),i=n*dc(up(e),r)/r;if(!r)return lp;function o(e,t){i>0?t<-Jl+Kl&&(t=-Jl+Kl):t>Jl-Kl&&(t=Jl-Kl);var n=i/dc(up(t),r);return[n*hc(r*e),i-n*sc(r*e)]}return o.invert=function(e,t){var n=i-t,o=pc(r)*fc(e*e+n*n),s=oc(e,rc(n))*pc(n);return n*r<0&&(s-=Xl*pc(e)*pc(n)),[s/r,2*ic(dc(i/o,1/r))-Jl]},o}function hp(e,t){return[e,t]}function pp(e,t){var n=sc(e),r=e===t?hc(e):(n-sc(t))/(t-e),i=n/r+e;if(rc(r)<Kl)return hp;function o(e,t){var n=i-t,o=r*e;return[n*hc(o),i-n*sc(o)]}return o.invert=function(e,t){var n=i-t,o=oc(e,rc(n))*pc(n);return n*r<0&&(o-=Xl*pc(e)*pc(n)),[o/r,i-pc(r)*fc(e*e+n*n)]},o}ap.invert=op((function(e){return e})),lp.invert=function(e,t){return[e,2*ic(lc(t))-Jl]},hp.invert=hp;var fp=1.340264,mp=-.081106,gp=893e-6,vp=.003796,yp=fc(3)/2;function bp(e,t){var n=vc(yp*hc(t)),r=n*n,i=r*r*r;return[e*sc(n)/(yp*(fp+3*mp*r+i*(7*gp+9*vp*r))),n*(fp+mp*r+i*(gp+vp*r))]}function _p(e,t){var n=sc(t),r=sc(e)*n;return[n*hc(e)/r,hc(t)/r]}function wp(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 xp(e,t){return[sc(t)*hc(e),hc(t)]}function Sp(e,t){var n=sc(t),r=1+sc(e)*n;return[n*hc(e)/r,hc(t)/r]}function kp(e,t){return[uc(mc((Jl+t)/2)),-e]}function Ep(e,t){return e.parent===t.parent?1:2}function Tp(e,t){return e+t.x}function Cp(e,t){return Math.max(e,t.y)}function Dp(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 Mp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ip)):void 0===t&&(t=Ap);for(var n,r,i,o,s,a=new Np(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 Np(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(Op)}function Ap(e){return e.children}function Ip(e){return Array.isArray(e)?e[1]:null}function Lp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Op(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Np(e){this.data=e,this.depth=this.height=0,this.parent=null}function Rp(e){return null==e?null:Pp(e)}function Pp(e){if("function"!=typeof e)throw new Error;return e}function Fp(){return 0}function jp(e){return function(){return e}}bp.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*(fp+mp*i+o*(gp+vp*i))-t)/(fp+3*mp*i+o*(7*gp+9*vp*i)))*r)*i*i,!(rc(n)<Zl));++s);return[yp*e*(fp+3*mp*i+o*(7*gp+9*vp*i))/sc(r),vc(hc(r)/yp)]},_p.invert=op(ic),wp.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(rc(n)>Kl&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},xp.invert=op(vc),Sp.invert=op((function(e){return 2*ic(e)})),kp.invert=function(e,t){return[-t,2*ic(lc(e))-Jl]},Np.prototype=Mp.prototype={constructor:Np,count:function(){return this.eachAfter(Dp)},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 Mp(this).eachBefore(Lp)},[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 Yp=4294967296;function Vp(){let e=1;return()=>(e=(1664525*e+1013904223)%Yp)/Yp}function Hp(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&&zp(r,n)?++i:(r=Wp(s=Bp(s,n)),i=0);return r}function Bp(e,t){var n,r;if(qp(t,e))return[t];for(n=0;n<e.length;++n)if(Up(t,e[n])&&qp($p(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(Up($p(e[n],e[r]),t)&&Up($p(e[n],t),e[r])&&Up($p(e[r],t),e[n])&&qp(Gp(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Up(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 zp(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 qp(e,t){for(var n=0;n<t.length;++n)if(!zp(e,t[n]))return!1;return!0}function Wp(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return $p(e[0],e[1]);case 3:return Gp(e[0],e[1],e[2])}}function $p(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 Gp(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,x=(f*_-m*b)/(2*w)-r,S=(m*g-f*v)/w,k=(p*b-h*_)/(2*w)-i,E=(h*v-p*g)/w,T=S*S+E*E-1,C=2*(o+x*S+k*E),D=x*x+k*k-o*o,M=-(Math.abs(T)>1e-6?(C+Math.sqrt(C*C-4*T*D))/(2*T):D/C);return{x:r+x+S*M,y:i+k+E*M,r:M}}function Kp(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 Zp(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 Xp(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 Jp(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;Kp(r,n,i=e[2]),n=new Jp(n),r=new Jp(r),i=new Jp(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;e:for(l=3;l<o;++l){Kp(n._,r._,i=e[l]),i=new Jp(i),c=r.next,u=n.previous,d=r._.r,h=n._.r;do{if(d<=h){if(Zp(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue e}d+=c._.r,c=c.next}else{if(Zp(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=Xp(n);(i=i.next)!==r;)(a=Xp(i))<s&&(n=i,s=a);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=Hp(n,t),l=0;l<o;++l)(n=e[l]).x-=i.x,n.y-=i.y;return i.r}function ef(e){return Math.sqrt(e.value)}function tf(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function nf(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 rf(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 of(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 sf(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 af={depth:-1},lf={},cf={};function uf(e){return e.id}function df(e){return e.parentId}function hf(e){let t=e.length;if(t<2)return"";for(;--t>1&&!pf(e,t););return e.slice(0,t)}function pf(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function ff(e,t){return e.parent===t.parent?1:2}function mf(e){var t=e.children;return t?t[0]:e.t}function gf(e){var t=e.children;return t?t[t.length-1]:e.t}function vf(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 yf(e,t,n){return e.a.parent===t.parent?e.a:n}function bf(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 _f(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}bf.prototype=Object.create(Np.prototype);var wf=(1+Math.sqrt(5))/2;function xf(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,x=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)/(x*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?sf(s,n,r,i,x?r+=c*u/x:o):_f(s,n,r,x?n+=l*u/x:i,o),x-=u,b=_}return v}var Sf=function e(t){function n(e,n,r,i,o){xf(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(wf),kf=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?sf(a,n,r,i,p?r+=(o-r)*a.value/p:o):_f(a,n,r,p?n+=(i-n)*a.value/p:i,o),p-=a.value}else e._squarify=s=xf(t,e,n,r,i,o),s.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(wf);function Ef(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Tf(e,t){return e[0]-t[0]||e[1]-t[1]}function Cf(e){const t=e.length,n=[0,1];let r,i=2;for(r=2;r<t;++r){for(;i>1&&Ef(e[n[i-2]],e[n[i-1]],e[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}var Df=Math.random,Mf=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}(Df),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}(Df),If=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}(Df),Lf=function e(t){var n=If.source(t);function r(){var e=n.apply(this,arguments);return function(){return Math.exp(e())}}return r.source=e,r}(Df),Of=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}(Df),Nf=function e(t){var n=Of.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}(Df),Rf=function e(t){function n(e){return function(){return-Math.log1p(-t())/e}}return n.source=e,n}(Df),Pf=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}(Df),Ff=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}(Df),jf=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}(Df),Yf=function e(t){var n=If.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}(Df),Vf=function e(t){var n=Yf.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}(Df),Hf=function e(t){var n=jf.source(t),r=Vf.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}(Df),Bf=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}(Df),Uf=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}(Df),zf=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}(Df),qf=function e(t){var n=Yf.source(t),r=Hf.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}(Df);const Wf=1/4294967296;function $f(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Gf(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 Kf=Symbol("implicit");function Zf(){var e=new E,t=[],n=[],r=Kf;function i(i){let o=e.get(i);if(void 0===o){if(r!==Kf)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 E;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 Zf(t,n).unknown(r)},$f.apply(i,arguments),i}function Xf(){var e,t,n=Zf().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 Xf(r(),[o,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},$f.apply(d(),arguments)}function Jf(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Jf(t())},e}function Qf(e){return+e}var em=[0,1];function tm(e){return e}function nm(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function rm(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=nm(i,r),o=n(s,o)):(r=nm(r,i),o=n(o,s)),function(e){return o(r(e))}}function im(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]=nm(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 om(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sm(){var e,t,n,r,i,o,s=em,a=em,l=zr,c=tm;function u(){var e=Math.min(s.length,a.length);return c!==tm&&(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?im:rm,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),Yr)))(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=qr,u()},d.clamp=function(e){return arguments.length?(c=!!e||tm,u()):c!==tm},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 am(){return sm()(tm,tm)}function lm(t,n,r,i){var o,s=X(t,n,r);switch((i=Pl(null==i?",f":i)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=i.precision||isNaN(o=$l(s,a))||(i.precision=o),e.formatPrefix(i,a);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Gl(s,Math.max(Math.abs(t),Math.abs(n))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Wl(s))||(i.precision=o-2*("%"===i.type))}return e.format(i)}function cm(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 lm(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 um(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 dm(e){return Math.log(e)}function hm(e){return Math.exp(e)}function pm(e){return-Math.log(-e)}function fm(e){return-Math.exp(-e)}function mm(e){return isFinite(e)?+("1e"+e):e<0?0:e}function gm(e){return(t,n)=>-e(-t,n)}function vm(t){const n=t(dm,hm),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?mm:e===Math.E?Math.exp:t=>Math.pow(e,t)}(s),r()[0]<0?(i=gm(i),o=gm(o),t(pm,fm)):t(dm,hm),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=Pl(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(um(r(),{floor:e=>o(Math.floor(i(e))),ceil:e=>o(Math.ceil(i(e)))})),n}function ym(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _m(e){var t=1,n=e(ym(t),bm(t));return n.constant=function(n){return arguments.length?e(ym(t=+n),bm(t)):t},cm(n)}function wm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function xm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Sm(e){return e<0?-e*e:e*e}function km(e){var t=e(tm,tm),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(tm,tm):.5===n?e(xm,Sm):e(wm(n),wm(1/n)):n},cm(t)}function Em(){var e=km(sm());return e.copy=function(){return om(e,Em()).exponent(e.exponent())},$f.apply(e,arguments),e}function Tm(e){return Math.sign(e)*e*e}const Cm=new Date,Dm=new Date;function Mm(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=>Mm((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)=>(Cm.setTime(+t),Dm.setTime(+r),e(Cm),e(Dm),Math.floor(n(Cm,Dm))),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=Mm((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));Am.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Mm((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):Am:null);const Im=Am.range,Lm=1e3,Om=6e4,Nm=36e5,Rm=864e5,Pm=6048e5,Fm=31536e6,jm=Mm((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Lm)}),((e,t)=>(t-e)/Lm),(e=>e.getUTCSeconds())),Ym=jm.range,Vm=Mm((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lm)}),((e,t)=>{e.setTime(+e+t*Om)}),((e,t)=>(t-e)/Om),(e=>e.getMinutes())),Hm=Vm.range,Bm=Mm((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Om)}),((e,t)=>(t-e)/Om),(e=>e.getUTCMinutes())),Um=Bm.range,zm=Mm((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Lm-e.getMinutes()*Om)}),((e,t)=>{e.setTime(+e+t*Nm)}),((e,t)=>(t-e)/Nm),(e=>e.getHours())),qm=zm.range,Wm=Mm((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Nm)}),((e,t)=>(t-e)/Nm),(e=>e.getUTCHours())),$m=Wm.range,Gm=Mm((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Om)/Rm),(e=>e.getDate()-1)),Km=Gm.range,Zm=Mm((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Rm),(e=>e.getUTCDate()-1)),Xm=Zm.range,Jm=Mm((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Rm),(e=>Math.floor(e/Rm))),Qm=Jm.range;function eg(e){return Mm((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())*Om)/Pm))}const tg=eg(0),ng=eg(1),rg=eg(2),ig=eg(3),og=eg(4),sg=eg(5),ag=eg(6),lg=tg.range,cg=ng.range,ug=rg.range,dg=ig.range,hg=og.range,pg=sg.range,fg=ag.range;function mg(e){return Mm((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)/Pm))}const gg=mg(0),vg=mg(1),yg=mg(2),bg=mg(3),_g=mg(4),wg=mg(5),xg=mg(6),Sg=gg.range,kg=vg.range,Eg=yg.range,Tg=bg.range,Cg=_g.range,Dg=wg.range,Mg=xg.range,Ag=Mm((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())),Ig=Ag.range,Lg=Mm((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())),Og=Lg.range,Ng=Mm((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()));Ng.every=e=>isFinite(e=Math.floor(e))&&e>0?Mm((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 Rg=Ng.range,Pg=Mm((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()));Pg.every=e=>isFinite(e=Math.floor(e))&&e>0?Mm((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 Fg=Pg.range;function jg(e,t,n,i,o,s){const a=[[jm,1,Lm],[jm,5,5e3],[jm,15,15e3],[jm,30,3e4],[s,1,Om],[s,5,3e5],[s,15,9e5],[s,30,18e5],[o,1,Nm],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,Rm],[i,2,1728e5],[n,1,Pm],[t,1,2592e6],[t,3,7776e6],[e,1,Fm]];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/Fm,n/Fm,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[Yg,Vg]=jg(Pg,Lg,gg,Jm,Wm,Bm),[Hg,Bg]=jg(Ng,Ag,tg,Gm,zm,Vm);function Ug(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 zg(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 qg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Wg(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=ev(i),u=tv(i),d=ev(o),h=tv(o),p=ev(s),f=tv(s),m=ev(a),g=tv(a),v=ev(l),y=tv(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:xv,e:xv,f:Cv,g:jv,G:Vv,H:Sv,I:kv,j:Ev,L:Tv,m:Dv,M:Mv,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:cy,s:uy,S:Av,u:Iv,U:Lv,V:Nv,w:Rv,W:Pv,x:null,X:null,y:Fv,Y:Yv,Z:Hv,"%":ly},_={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:Bv,e:Bv,f:$v,g:iy,G:sy,H:Uv,I:zv,j:qv,L:Wv,m:Gv,M:Kv,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:cy,s:uy,S:Zv,u:Xv,U:Jv,V:ey,w:ty,W:ny,x:null,X:null,y:ry,Y:oy,Z:ay,"%":ly},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:hv,e:hv,f:yv,g:lv,G:av,H:fv,I:fv,j:pv,L:vv,m:dv,M:mv,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:uv,Q:_v,s:wv,S:gv,u:rv,U:iv,V:ov,w:nv,W:sv,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:lv,Y:av,Z:cv,"%":bv};function x(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=Gg[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 S(e,t){return function(n){var r,i,o=qg(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=zg(qg(o.y,0,1))).getUTCDay(),r=i>4||0===i?vg.ceil(r):vg(r),r=Zm.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Ug(qg(o.y,0,1))).getDay(),r=i>4||0===i?ng.ceil(r):ng(r),r=Gm.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?zg(qg(o.y,0,1)).getUTCDay():Ug(qg(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,zg(o)):Ug(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 Gg?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=x(n,b),b.X=x(r,b),b.c=x(t,b),_.x=x(n,_),_.X=x(r,_),_.c=x(t,_),{format:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}var $g,Gg={"-":"",_:" ",0:"0"},Kg=/^\s*\d+/,Zg=/^%/,Xg=/[\\^$*+?|[\]().{}]/g;function Jg(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(Xg,"\\$&")}function ev(e){return new RegExp("^(?:"+e.map(Qg).join("|")+")","i")}function tv(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function nv(e,t,n){var r=Kg.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rv(e,t,n){var r=Kg.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function iv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ov(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function sv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function av(e,t,n){var r=Kg.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function cv(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 uv(e,t,n){var r=Kg.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function dv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function hv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pv(e,t,n){var r=Kg.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function fv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gv(e,t,n){var r=Kg.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vv(e,t,n){var r=Kg.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function yv(e,t,n){var r=Kg.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function bv(e,t,n){var r=Zg.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _v(e,t,n){var r=Kg.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function wv(e,t,n){var r=Kg.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function xv(e,t){return Jg(e.getDate(),t,2)}function Sv(e,t){return Jg(e.getHours(),t,2)}function kv(e,t){return Jg(e.getHours()%12||12,t,2)}function Ev(e,t){return Jg(1+Gm.count(Ng(e),e),t,3)}function Tv(e,t){return Jg(e.getMilliseconds(),t,3)}function Cv(e,t){return Tv(e,t)+"000"}function Dv(e,t){return Jg(e.getMonth()+1,t,2)}function Mv(e,t){return Jg(e.getMinutes(),t,2)}function Av(e,t){return Jg(e.getSeconds(),t,2)}function Iv(e){var t=e.getDay();return 0===t?7:t}function Lv(e,t){return Jg(tg.count(Ng(e)-1,e),t,2)}function Ov(e){var t=e.getDay();return t>=4||0===t?og(e):og.ceil(e)}function Nv(e,t){return e=Ov(e),Jg(og.count(Ng(e),e)+(4===Ng(e).getDay()),t,2)}function Rv(e){return e.getDay()}function Pv(e,t){return Jg(ng.count(Ng(e)-1,e),t,2)}function Fv(e,t){return Jg(e.getFullYear()%100,t,2)}function jv(e,t){return Jg((e=Ov(e)).getFullYear()%100,t,2)}function Yv(e,t){return Jg(e.getFullYear()%1e4,t,4)}function Vv(e,t){var n=e.getDay();return Jg((e=n>=4||0===n?og(e):og.ceil(e)).getFullYear()%1e4,t,4)}function Hv(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Jg(t/60|0,"0",2)+Jg(t%60,"0",2)}function Bv(e,t){return Jg(e.getUTCDate(),t,2)}function Uv(e,t){return Jg(e.getUTCHours(),t,2)}function zv(e,t){return Jg(e.getUTCHours()%12||12,t,2)}function qv(e,t){return Jg(1+Zm.count(Pg(e),e),t,3)}function Wv(e,t){return Jg(e.getUTCMilliseconds(),t,3)}function $v(e,t){return Wv(e,t)+"000"}function Gv(e,t){return Jg(e.getUTCMonth()+1,t,2)}function Kv(e,t){return Jg(e.getUTCMinutes(),t,2)}function Zv(e,t){return Jg(e.getUTCSeconds(),t,2)}function Xv(e){var t=e.getUTCDay();return 0===t?7:t}function Jv(e,t){return Jg(gg.count(Pg(e)-1,e),t,2)}function Qv(e){var t=e.getUTCDay();return t>=4||0===t?_g(e):_g.ceil(e)}function ey(e,t){return e=Qv(e),Jg(_g.count(Pg(e),e)+(4===Pg(e).getUTCDay()),t,2)}function ty(e){return e.getUTCDay()}function ny(e,t){return Jg(vg.count(Pg(e)-1,e),t,2)}function ry(e,t){return Jg(e.getUTCFullYear()%100,t,2)}function iy(e,t){return Jg((e=Qv(e)).getUTCFullYear()%100,t,2)}function oy(e,t){return Jg(e.getUTCFullYear()%1e4,t,4)}function sy(e,t){var n=e.getUTCDay();return Jg((e=n>=4||0===n?_g(e):_g.ceil(e)).getUTCFullYear()%1e4,t,4)}function ay(){return"+0000"}function ly(){return"%"}function cy(e){return+e}function uy(e){return Math.floor(+e/1e3)}function dy(t){return $g=Wg(t),e.timeFormat=$g.format,e.timeParse=$g.parse,e.utcFormat=$g.utcFormat,e.utcParse=$g.utcParse,$g}e.timeFormat=void 0,e.timeParse=void 0,e.utcFormat=void 0,e.utcParse=void 0,dy({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 hy="%Y-%m-%dT%H:%M:%S.%LZ",py=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat(hy),fy=py,my=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse(hy),gy=my;function vy(e){return new Date(e)}function yy(e){return e instanceof Date?+e:+new Date(+e)}function by(e,t,n,r,i,o,s,a,l,c){var u=am(),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,yy)):h().map(vy)},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(um(n,e)):u},u.copy=function(){return om(u,by(e,t,n,r,i,o,s,a,l,c))},u}function _y(){var e,t,n,r,i,o=0,s=1,a=tm,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(zr),c.rangeRound=u(qr),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 wy(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function xy(){var e=km(_y());return e.copy=function(){return wy(e,xy()).exponent(e.exponent())},Gf.apply(e,arguments)}function Sy(){var e,t,n,r,i,o,s,a=0,l=.5,c=1,u=1,d=tm,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=ui(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(zr),p.rangeRound=f(qr),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 ky(){var e=km(Sy());return e.copy=function(){return wy(e,ky()).exponent(e.exponent())},Gf.apply(e,arguments)}function Ey(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 Ty=Ey("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Cy=Ey("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Dy=Ey("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),My=Ey("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ay=Ey("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Iy=Ey("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Ly=Ey("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Oy=Ey("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Ny=Ey("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ry=Ey("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Py=e=>Or(e[e.length-1]),Fy=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Ey),jy=Py(Fy),Yy=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Ey),Vy=Py(Yy),Hy=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Ey),By=Py(Hy),Uy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Ey),zy=Py(Uy),qy=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Ey),Wy=Py(qy),$y=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Ey),Gy=Py($y),Ky=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Ey),Zy=Py(Ky),Xy=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Ey),Jy=Py(Xy),Qy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Ey),eb=Py(Qy),tb=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Ey),nb=Py(tb),rb=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Ey),ib=Py(rb),ob=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Ey),sb=Py(ob),ab=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Ey),lb=Py(ab),cb=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Ey),ub=Py(cb),db=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Ey),hb=Py(db),pb=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Ey),fb=Py(pb),mb=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Ey),gb=Py(mb),vb=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Ey),yb=Py(vb),bb=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Ey),_b=Py(bb),wb=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Ey),xb=Py(wb),Sb=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Ey),kb=Py(Sb),Eb=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Ey),Tb=Py(Eb),Cb=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Ey),Db=Py(Cb),Mb=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Ey),Ab=Py(Mb),Ib=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Ey),Lb=Py(Ib),Ob=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Ey),Nb=Py(Ob),Rb=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Ey),Pb=Py(Rb),Fb=ci(xr(300,.5,0),xr(-240,.5,1)),jb=ci(xr(-100,.75,.35),xr(80,1.5,.8)),Yb=ci(xr(260,.75,.35),xr(80,1.5,.8)),Vb=xr(),Hb=Nn(),Bb=Math.PI/3,Ub=2*Math.PI/3;function zb(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var qb=zb(Ey("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Wb=zb(Ey("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),$b=zb(Ey("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Gb=zb(Ey("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Kb(e){return function(){return e}}const Zb=Math.abs,Xb=Math.atan2,Jb=Math.cos,Qb=Math.max,e_=Math.min,t_=Math.sin,n_=Math.sqrt,r_=1e-12,i_=Math.PI,o_=i_/2,s_=2*i_;function a_(e){return e>=1?o_:e<=-1?-o_:Math.asin(e)}function l_(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 As(t)}function c_(e){return e.innerRadius}function u_(e){return e.outerRadius}function d_(e){return e.startAngle}function h_(e){return e.endAngle}function p_(e){return e&&e.padAngle}function f_(e,t,n,r,i,o,s){var a=e-n,l=t-r,c=(s?o:-o)/n_(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,x=h*m-f*p,S=(b<0?-1:1)*n_(Qb(0,w*w*_-x*x)),k=(x*b-y*S)/_,E=(-x*y-b*S)/_,T=(x*b+y*S)/_,C=(-x*y+b*S)/_,D=k-g,M=E-v,A=T-g,I=C-v;return D*D+M*M>A*A+I*I&&(k=T,E=C),{cx:k,cy:E,x01:-u,y01:-d,x11:k*(i/w-1),y11:E*(i/w-1)}}var m_=Array.prototype.slice;function g_(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function v_(e){this._context=e}function y_(e){return new v_(e)}function b_(e){return e[0]}function __(e){return e[1]}function w_(e,t){var n=Kb(!0),r=null,i=y_,o=null,s=l_(a);function a(a){var l,c,u,d=(a=g_(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?b_:Kb(e),t="function"==typeof t?t:void 0===t?__:Kb(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:Kb(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Kb(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:Kb(!!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 x_(e,t,n){var r=null,i=Kb(!0),o=null,s=y_,a=null,l=l_(c);function c(c){var u,d,h,p,f,m=(c=g_(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 w_().defined(i).curve(s).context(o)}return e="function"==typeof e?e:void 0===e?b_:Kb(+e),t="function"==typeof t?t:Kb(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?__:Kb(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Kb(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Kb(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Kb(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Kb(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Kb(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Kb(+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:Kb(!!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 S_(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function k_(e){return e}v_.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 E_=C_(y_);function T_(e){this._curve=e}function C_(e){function t(t){return new T_(e(t))}return t._curve=e,t}function D_(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(C_(e)):t()._curve},e}function M_(){return D_(w_().curve(E_))}function A_(){var e=x_().curve(E_),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 D_(n())},delete e.lineX0,e.lineEndAngle=function(){return D_(r())},delete e.lineX1,e.lineInnerRadius=function(){return D_(i())},delete e.lineY0,e.lineOuterRadius=function(){return D_(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(C_(e)):t()._curve},e}function I_(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}T_.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 L_{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 O_{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=I_(this._x0,this._y0),r=I_(this._x0,this._y0=(this._y0+t)/2),i=I_(e,this._y0),o=I_(e,t);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...o)}this._x0=e,this._y0=t}}function N_(e){return new L_(e,!0)}function R_(e){return new L_(e,!1)}function P_(e){return new O_(e)}function F_(e){return e.source}function j_(e){return e.target}function Y_(e){let t=F_,n=j_,r=b_,i=__,o=null,s=null,a=l_(l);function l(){let l;const c=m_.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:Kb(+e),l):r},l.y=function(e){return arguments.length?(i="function"==typeof e?e:Kb(+e),l):i},l.context=function(t){return arguments.length?(null==t?o=s=null:s=e(o=t),l):o},l}const V_=n_(3);var H_={draw(e,t){const n=.59436*n_(t+e_(t/28,.75)),r=n/2,i=r*V_;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},B_={draw(e,t){const n=n_(t/i_);e.moveTo(n,0),e.arc(0,0,n,0,s_)}},U_={draw(e,t){const n=n_(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 z_=n_(1/3),q_=2*z_;var W_={draw(e,t){const n=n_(t/q_),r=n*z_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},$_={draw(e,t){const n=.62625*n_(t);e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},G_={draw(e,t){const n=.87559*n_(t-e_(t/7,2));e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},K_={draw(e,t){const n=n_(t),r=-n/2;e.rect(r,r,n,n)}},Z_={draw(e,t){const n=.4431*n_(t);e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}};const X_=t_(i_/10)/t_(7*i_/10),J_=t_(s_/10)*X_,Q_=-Jb(s_/10)*X_;var ew={draw(e,t){const n=n_(.8908130915292852*t),r=J_*n,i=Q_*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){const o=s_*t/5,s=Jb(o),a=t_(o);e.lineTo(a*n,-s*n),e.lineTo(s*r-a*i,a*r+s*i)}e.closePath()}};const tw=n_(3);var nw={draw(e,t){const n=-n_(t/(3*tw));e.moveTo(0,2*n),e.lineTo(-tw*n,-n),e.lineTo(tw*n,-n),e.closePath()}};const rw=n_(3);var iw={draw(e,t){const n=.6824*n_(t),r=n/2,i=n*rw/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}};const ow=-.5,sw=n_(3)/2,aw=1/n_(12),lw=3*(aw/2+1);var cw={draw(e,t){const n=n_(t/lw),r=n/2,i=n*aw,o=r,s=n*aw+n,a=-o,l=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(a,l),e.lineTo(ow*r-sw*i,sw*r+ow*i),e.lineTo(ow*o-sw*s,sw*o+ow*s),e.lineTo(ow*a-sw*l,sw*a+ow*l),e.lineTo(ow*r+sw*i,ow*i-sw*r),e.lineTo(ow*o+sw*s,ow*s-sw*o),e.lineTo(ow*a+sw*l,ow*l-sw*a),e.closePath()}},uw={draw(e,t){const n=.6189*n_(t-e_(t/6,1.7));e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}};const dw=[B_,U_,W_,K_,ew,nw,cw],hw=[B_,G_,uw,iw,H_,Z_,$_];function pw(){}function fw(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 mw(e){this._context=e}function gw(e){this._context=e}function vw(e){this._context=e}function yw(e,t){this._basis=new mw(e),this._beta=t}mw.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:fw(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:fw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},gw.prototype={areaStart:pw,areaEnd:pw,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:fw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},vw.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:fw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},yw.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 bw=function e(t){function n(e){return 1===t?new mw(e):new yw(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function _w(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 ww(e,t){this._context=e,this._k=(1-t)/6}ww.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:_w(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:_w(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 xw=function e(t){function n(e){return new ww(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Sw(e,t){this._context=e,this._k=(1-t)/6}Sw.prototype={areaStart:pw,areaEnd:pw,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:_w(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 kw=function e(t){function n(e){return new Sw(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ew(e,t){this._context=e,this._k=(1-t)/6}Ew.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:_w(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 Tw=function e(t){function n(e){return new Ew(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Cw(e,t,n){var r=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>r_){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>r_){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 Dw(e,t){this._context=e,this._alpha=t}Dw.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:Cw(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 Mw=function e(t){function n(e){return t?new Dw(e,t):new ww(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:pw,areaEnd:pw,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:Cw(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 Iw=function e(t){function n(e){return t?new Aw(e,t):new Sw(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Lw(e,t){this._context=e,this._alpha=t}Lw.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:Cw(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 Ow=function e(t){function n(e){return t?new Lw(e,t):new Ew(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Nw(e){this._context=e}function Rw(e){return e<0?-1:1}function Pw(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(Rw(o)+Rw(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Fw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function jw(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 Yw(e){this._context=e}function Vw(e){this._context=new Hw(e)}function Hw(e){this._context=e}function Bw(e){this._context=e}function Uw(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 zw(e,t){this._context=e,this._t=t}function qw(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 Ww(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function $w(e,t){return e[t]}function Gw(e){const t=[];return t.key=e,t}function Kw(e){var t=e.map(Zw);return Ww(e).sort((function(e,n){return t[e]-t[n]}))}function Zw(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 Xw(e){var t=e.map(Jw);return Ww(e).sort((function(e,n){return t[e]-t[n]}))}function Jw(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}Nw.prototype={areaStart:pw,areaEnd:pw,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))}},Yw.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:jw(this,this._t0,Fw(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,jw(this,Fw(this,n=Pw(this,e,t)),n);break;default:jw(this,this._t0,n=Pw(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Vw.prototype=Object.create(Yw.prototype)).point=function(e,t){Yw.prototype.point.call(this,t,e)},Hw.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)}},Bw.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=Uw(e),i=Uw(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)}},zw.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 ex(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 tx(e,t,n){this.k=e,this.x=t,this.y=n}tx.prototype={constructor:tx,scale:function(e){return 1===e?this:new tx(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new tx(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 nx=new tx(1,0,0);function rx(e){for(;!e.__zoom;)if(!(e=e.parentNode))return nx;return e.__zoom}function ix(e){e.stopImmediatePropagation()}function ox(e){e.preventDefault(),e.stopImmediatePropagation()}function sx(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function ax(){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 lx(){return this.__zoom||nx}function cx(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ux(){return navigator.maxTouchPoints||"ontouchstart"in this}function dx(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))}rx.prototype=tx.prototype,e.Adder=k,e.Delaunay=La,e.FormatSpecifier=Fl,e.InternMap=E,e.InternSet=T,e.Node=Np,e.Path=As,e.Voronoi=Ta,e.ZoomTransform=tx,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 lo([[e]],Bo,t,+r);return null},e.arc=function(){var e=c_,t=u_,n=Kb(0),r=null,i=d_,o=h_,s=p_,a=null,l=l_(c);function c(){var c,u,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-o_,f=o.apply(this,arguments)-o_,m=Zb(f-p),g=f>p;if(a||(a=c=l()),h<d&&(u=h,h=d,d=u),h>r_)if(m>s_-r_)a.moveTo(h*Jb(p),h*t_(p)),a.arc(0,0,h,p,f,!g),d>r_&&(a.moveTo(d*Jb(f),d*t_(f)),a.arc(0,0,d,f,p,g));else{var v,y,b=p,_=f,w=p,x=f,S=m,k=m,E=s.apply(this,arguments)/2,T=E>r_&&(r?+r.apply(this,arguments):n_(d*d+h*h)),C=e_(Zb(h-d)/2,+n.apply(this,arguments)),D=C,M=C;if(T>r_){var A=a_(T/d*t_(E)),I=a_(T/h*t_(E));(S-=2*A)>r_?(w+=A*=g?1:-1,x-=A):(S=0,w=x=(p+f)/2),(k-=2*I)>r_?(b+=I*=g?1:-1,_-=I):(k=0,b=_=(p+f)/2)}var L=h*Jb(b),O=h*t_(b),N=d*Jb(x),R=d*t_(x);if(C>r_){var P,F=h*Jb(_),j=h*t_(_),Y=d*Jb(w),V=d*t_(w);if(m<i_)if(P=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<r_))return[e+(h=(u*(t-o)-d*(e-i))/h)*l,t+h*c]}(L,O,Y,V,F,j,N,R)){var H=L-P[0],B=O-P[1],U=F-P[0],z=j-P[1],q=1/t_(function(e){return e>1?0:e<-1?i_:Math.acos(e)}((H*U+B*z)/(n_(H*H+B*B)*n_(U*U+z*z)))/2),W=n_(P[0]*P[0]+P[1]*P[1]);D=e_(C,(d-W)/(q-1)),M=e_(C,(h-W)/(q+1))}else D=M=0}k>r_?M>r_?(v=f_(Y,V,L,O,h,M,g),y=f_(F,j,N,R,h,M,g),a.moveTo(v.cx+v.x01,v.cy+v.y01),M<C?a.arc(v.cx,v.cy,M,Xb(v.y01,v.x01),Xb(y.y01,y.x01),!g):(a.arc(v.cx,v.cy,M,Xb(v.y01,v.x01),Xb(v.y11,v.x11),!g),a.arc(0,0,h,Xb(v.cy+v.y11,v.cx+v.x11),Xb(y.cy+y.y11,y.cx+y.x11),!g),a.arc(y.cx,y.cy,M,Xb(y.y11,y.x11),Xb(y.y01,y.x01),!g))):(a.moveTo(L,O),a.arc(0,0,h,b,_,!g)):a.moveTo(L,O),d>r_&&S>r_?D>r_?(v=f_(N,R,F,j,d,-D,g),y=f_(L,O,Y,V,d,-D,g),a.lineTo(v.cx+v.x01,v.cy+v.y01),D<C?a.arc(v.cx,v.cy,D,Xb(v.y01,v.x01),Xb(y.y01,y.x01),!g):(a.arc(v.cx,v.cy,D,Xb(v.y01,v.x01),Xb(v.y11,v.x11),!g),a.arc(0,0,d,Xb(v.cy+v.y11,v.cx+v.x11),Xb(y.cy+y.y11,y.cx+y.x11),g),a.arc(y.cx,y.cy,D,Xb(y.y11,y.x11),Xb(y.y01,y.x01),!g))):a.arc(0,0,d,x,w,g):a.lineTo(N,R)}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-i_/2;return[Jb(r)*n,t_(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Kb(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Kb(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Kb(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Kb(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Kb(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Kb(+e),c):o},c.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:Kb(+e),c):s},c.context=function(e){return arguments.length?(a=null==e?null:e,c):a},c},e.area=x_,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;tl&&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 Me(3,e)},e.axisLeft=function(e){return Me(4,e)},e.axisRight=function(e){return Me(2,e)},e.axisTop=function(e){return Me(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(nl)},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 fs(rs)},e.brushSelection=function(e){var t=e.__brush;return t?t.dim.output(t.selection):null},e.brushX=function(){return fs(ts)},e.brushY=function(){return fs(ns)},e.buffer=function(e,t){return fetch(e,t).then(rl)},e.chord=function(){return ks(!1,!1)},e.chordDirected=function(){return ks(!0,!1)},e.chordTranspose=function(){return ks(!1,!0)},e.cluster=function(){var e=Ep,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(Tp,0)/e.length}(n),t.y=function(e){return 1+e.reduce(Cp,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=An,e.contourDensity=function(){var e=ta,t=na,n=ra,r=960,i=500,o=20,s=2,a=3*o,l=r+2*a>>s,c=i+2*a>>s,u=zs(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)),Zs().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=Zs().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:zs(+t),p):e},p.y=function(e){return arguments.length?(t="function"==typeof e?e:zs(+e),p):t},p.weight=function(e){return arguments.length?(n="function"==typeof e?e:zs(+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)?zs(Bs.call(e)):zs(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=Zs,e.count=v,e.create=function(e){return $t(Ve(e).call(document.documentElement))},e.creator=Ve,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=al,e.csvFormat=Ba,e.csvFormatBody=Ua,e.csvFormatRow=qa,e.csvFormatRows=za,e.csvFormatValue=Wa,e.csvParse=Va,e.csvParseRows=Ha,e.cubehelix=xr,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 mw(e)},e.curveBasisClosed=function(e){return new gw(e)},e.curveBasisOpen=function(e){return new vw(e)},e.curveBumpX=N_,e.curveBumpY=R_,e.curveBundle=bw,e.curveCardinal=xw,e.curveCardinalClosed=kw,e.curveCardinalOpen=Tw,e.curveCatmullRom=Mw,e.curveCatmullRomClosed=Iw,e.curveCatmullRomOpen=Ow,e.curveLinear=y_,e.curveLinearClosed=function(e){return new Nw(e)},e.curveMonotoneX=function(e){return new Yw(e)},e.curveMonotoneY=function(e){return new Vw(e)},e.curveNatural=function(e){return new Bw(e)},e.curveStep=function(e){return new zw(e,.5)},e.curveStepAfter=function(e){return new zw(e,1)},e.curveStepBefore=function(e){return new zw(e,0)},e.descending=n,e.deviation=x,e.difference=function(e,...t){e=new T(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 T;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,Qt).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=Jt(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=Jt(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=ja(e);return ol(t,n).then((function(e){return i.parse(e,r)}))},e.dsvFormat=ja,e.easeBack=Ro,e.easeBackIn=Oo,e.easeBackInOut=Ro,e.easeBackOut=No,e.easeBounce=Io,e.easeBounceIn=function(e){return 1-Io(1-e)},e.easeBounceInOut=function(e){return((e*=2)<=1?1-Io(1-e):Io(e-1)+1)/2},e.easeBounceOut=Io,e.easeCircle=So,e.easeCircleIn=function(e){return 1-Math.sqrt(1-e*e)},e.easeCircleInOut=So,e.easeCircleOut=function(e){return Math.sqrt(1- --e*e)},e.easeCubic=fo,e.easeCubicIn=function(e){return e*e*e},e.easeCubicInOut=fo,e.easeCubicOut=function(e){return--e*e*e+1},e.easeElastic=jo,e.easeElasticIn=Fo,e.easeElasticInOut=Yo,e.easeElasticOut=jo,e.easeExp=xo,e.easeExpIn=function(e){return wo(1-+e)},e.easeExpInOut=xo,e.easeExpOut=function(e){return 1-wo(e)},e.easeLinear=e=>+e,e.easePoly=vo,e.easePolyIn=mo,e.easePolyInOut=vo,e.easePolyOut=go,e.easeQuad=po,e.easeQuadIn=function(e){return e*e},e.easeQuadInOut=po,e.easeQuadOut=function(e){return e*(2-e)},e.easeSin=_o,e.easeSinIn=function(e){return 1==+e?1:1-Math.cos(e*bo)},e.easeSinInOut=_o,e.easeSinOut=function(e){return Math.sin(e*bo)},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=S,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(O(e,...t),t)},e.flatRollup=function(e,t,...n){return N(P(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=yl(t,kl,El).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=Sl(r))*m),0===g&&(v+=(g=Sl(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=xl(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:xl(+t),l(),s):e},s},e.forceLink=function(e){var t,n,r,i,o,s,a=Tl,l=function(e){return 1/Math.min(i[e.source.index],i[e.target.index])},c=xl(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||Sl(s),p=d.y+d.vy-c.y-c.vy||Sl(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=Cl(d,l.source)),"object"!=typeof l.target&&(l.target=Cl(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:xl(+e),p(),d):l},d.distance=function(e){return arguments.length?(c="function"==typeof e?e:xl(+e),f(),d):c},d},e.forceManyBody=function(){var e,t,n,r,i,o=xl(-30),s=1,a=1/0,l=.81;function c(n){var i,o=e.length,s=yl(e,Ml,Al).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=Sl(n))*d),0===h&&(f+=(h=Sl(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=Sl(n))*d),0===h&&(f+=(h=Sl(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:xl(+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=xl(.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=xl(+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:xl(+e),l(),a):s},a.radius=function(t){return arguments.length?(e="function"==typeof t?t:xl(+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=Ei(d),c=Ie("tick","end"),u=function(){let e=1;return()=>(e=(1664525*e+1013904223)%Dl)/Dl}();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*Il;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=xl(.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=xl(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:xl(+e),s(),o):i},o.x=function(t){return arguments.length?(e="function"==typeof t?t:xl(+t),s(),o):e},o},e.forceY=function(e){var t,n,r,i=xl(.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=xl(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:xl(+e),s(),o):i},o.y=function(t){return arguments.length?(e="function"==typeof t?t:xl(+t),s(),o):e},o},e.formatDefaultLocale=ql,e.formatLocale=zl,e.formatSpecifier=Pl,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=rp,e.geoAlbersUsa=function(){var e,t,n,r,i,o,s=rp(),a=np().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=np().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+Kl,u+.12*t+Kl],[o-.214*t-Kl,u+.234*t-Kl]]).stream(c),i=l.translate([o-.205*t,u+.212*t]).clipExtent([[o-.214*t+Kl,u+.166*t+Kl],[o-.115*t-Kl,u+.234*t-Kl]]).stream(c),d()},u.fitExtent=function(e,t){return Uh(u,e,t)},u.fitSize=function(e,t){return zh(u,e,t)},u.fitWidth=function(e,t){return qh(u,e,t)},u.fitHeight=function(e,t){return Wh(u,e,t)},u.scale(1070)},e.geoArea=function(e){return Uc=new k,Ec(e,zc),2*Uc},e.geoAzimuthalEqualArea=function(){return Jh(sp).scale(124.75).clipAngle(179.999)},e.geoAzimuthalEqualAreaRaw=sp,e.geoAzimuthalEquidistant=function(){return Jh(ap).scale(79.4188).clipAngle(179.999)},e.geoAzimuthalEquidistantRaw=ap,e.geoBounds=function(e){var t,n,r,i,o,s,a;if(Nc=Oc=-(Ic=Lc=1/0),Vc=[],Ec(e,yu),n=Vc.length){for(Vc.sort(Cu),t=1,o=[r=Vc[0]];t<n;++t)Du(r,(i=Vc[t])[0])||Du(r,i[1])?(Tu(r[0],i[1])>Tu(r[0],r[1])&&(r[1]=i[1]),Tu(i[0],r[1])>Tu(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=Tu(r[1],i[0]))>s&&(s=a,Ic=i[0],Oc=r[1])}return Vc=Hc=null,Ic===1/0||Lc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ic,Lc],[Oc,Nc]]},e.geoCentroid=function(e){nu=ru=iu=ou=su=au=lu=cu=0,uu=new k,du=new k,hu=new k,Ec(e,Mu);var t=+uu,n=+du,r=+hu,i=cc(t,n,r);return i<Zl&&(t=au,n=lu,r=cu,ru<Kl&&(t=iu,n=ou,r=su),(i=cc(t,n,r))<Zl)?[NaN,NaN]:[oc(n,t)*tc,vc(r/i)*tc]},e.geoCircle=function(){var e,t,n=Vu([0,0]),r=Vu(90),i=Vu(6),o={point:function(n,r){e.push(n=t(n,r)),n[0]*=tc,n[1]*=tc}};function s(){var s=n.apply(this,arguments),a=r.apply(this,arguments)*nc,l=i.apply(this,arguments)*nc;return e=[],t=Uu(-s[0]*nc,-s[1]*nc,0).invert,Gu(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:Vu([+e[0],+e[1]]),s):n},s.radius=function(e){return arguments.length?(r="function"==typeof e?e:Vu(+e),s):r},s.precision=function(e){return arguments.length?(i="function"==typeof e?e:Vu(+e),s):i},s},e.geoClipAntimeridian=sd,e.geoClipCircle=ad,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=fd(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=fd,e.geoConicConformal=function(){return ep(dp).scale(109.5).parallels([30,30])},e.geoConicConformalRaw=dp,e.geoConicEqualArea=np,e.geoConicEqualAreaRaw=tp,e.geoConicEquidistant=function(){return ep(pp).scale(131.154).center([0,13.9389])},e.geoConicEquidistantRaw=pp,e.geoContains=function(e,t){return(e&&Sd.hasOwnProperty(e.type)?Sd[e.type]:Ed)(e,t)},e.geoDistance=xd,e.geoEqualEarth=function(){return Jh(bp).scale(177.158)},e.geoEqualEarthRaw=bp,e.geoEquirectangular=function(){return Jh(hp).scale(152.63)},e.geoEquirectangularRaw=hp,e.geoGnomonic=function(){return Jh(_p).scale(144.049).clipAngle(60)},e.geoGnomonicRaw=_p,e.geoGraticule=Od,e.geoGraticule10=function(){return Od()()},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=Vh({point:function(e,t){var n=b([e,t]);this.stream.point(n[0],n[1])}}),v=jd;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,jd):fd(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=hc(h=n%360*nc),e=sc(h),y()):h*tc},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 Uh(b,e,t)},b.fitSize=function(e,t){return zh(b,e,t)},b.fitWidth=function(e,t){return qh(b,e,t)},b.fitHeight=function(e,t){return Wh(b,e,t)},b},e.geoInterpolate=function(e,t){var n=e[0]*nc,r=e[1]*nc,i=t[0]*nc,o=t[1]*nc,s=sc(r),a=hc(r),l=sc(o),c=hc(o),u=s*sc(n),d=s*hc(n),h=l*sc(i),p=l*hc(i),f=2*vc(fc(yc(o-r)+s*l*yc(i-n))),m=hc(f),g=f?function(e){var t=hc(e*=f)/m,n=hc(f-e)/m,r=n*u+t*h,i=n*d+t*p,o=n*a+t*c;return[oc(i,r)*tc,oc(o,fc(r*r+i*i))*tc]}:function(){return[n*tc,r*tc]};return g.distance=f,g},e.geoLength=bd,e.geoMercator=function(){return cp(lp).scale(961/ec)},e.geoMercatorRaw=lp,e.geoNaturalEarth1=function(){return Jh(wp).scale(175.295)},e.geoNaturalEarth1Raw=wp,e.geoOrthographic=function(){return Jh(xp).scale(249.5).clipAngle(90+Kl)},e.geoOrthographicRaw=xp,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)),Ec(e,n(r))),r.result()}return s.area=function(e){return Ec(e,n(Zd)),Zd.result()},s.measure=function(e){return Ec(e,n(Oh)),Oh.result()},s.bounds=function(e){return Ec(e,n(nh)),nh.result()},s.centroid=function(e){return Ec(e,n(xh)),xh.result()},s.projection=function(t){return arguments.length?(n=null==t?(e=null,jd):(e=t).stream,s):e},s.context=function(e){return arguments.length?(r=null==e?(t=null,new jh(i)):new Sh(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 jh(i)),s},s.projection(e).digits(i).context(t)},e.geoProjection=Jh,e.geoProjectionMutator=Qh,e.geoRotation=$u,e.geoStereographic=function(){return Jh(Sp).scale(250).clipAngle(142)},e.geoStereographicRaw=Sp,e.geoStream=Ec,e.geoTransform=function(e){return{stream:Vh(e)}},e.geoTransverseMercator=function(){var e=cp(kp),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=kp,e.gray=function(e,t){return new or(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=L,e.groupSort=function(e,n,r){return(2!==n.length?V(R(e,n,r),(([e,n],[r,i])=>t(n,i)||t(e,r))):V(L(e,r),(([e,r],[i,o])=>n(r,o)||t(e,i)))).map((([e])=>e))},e.groups=O,e.hcl=dr,e.hierarchy=Mp,e.histogram=ee,e.hsl=Un,e.html=hl,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 j(e,I,F,t)},e.indexes=function(e,...t){return j(e,Array.from,F,t)},e.interpolate=zr,e.interpolateArray=function(e,t){return(Pr(t)?Rr:Fr)(e,t)},e.interpolateBasis=Er,e.interpolateBasisClosed=Tr,e.interpolateBlues=Tb,e.interpolateBrBG=jy,e.interpolateBuGn=nb,e.interpolateBuPu=ib,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=Yb,e.interpolateCubehelix=li,e.interpolateCubehelixDefault=Fb,e.interpolateCubehelixLong=ci,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=sb,e.interpolateGreens=Db,e.interpolateGreys=Ab,e.interpolateHcl=oi,e.interpolateHclLong=si,e.interpolateHsl=ni,e.interpolateHslLong=ri,e.interpolateHue=function(e,t){var n=Mr(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}},e.interpolateInferno=$b,e.interpolateLab=function(e,t){var n=Ar((e=ir(e)).l,(t=ir(t)).l),r=Ar(e.a,t.a),i=Ar(e.b,t.b),o=Ar(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=Wb,e.interpolateNumber=Yr,e.interpolateNumberArray=Rr,e.interpolateObject=Vr,e.interpolateOrRd=lb,e.interpolateOranges=Pb,e.interpolatePRGn=Vy,e.interpolatePiYG=By,e.interpolatePlasma=Gb,e.interpolatePuBu=hb,e.interpolatePuBuGn=ub,e.interpolatePuOr=zy,e.interpolatePuRd=fb,e.interpolatePurples=Lb,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Vb.h=360*e-100,Vb.s=1.5-1.5*t,Vb.l=.8-.9*t,Vb+""},e.interpolateRdBu=Wy,e.interpolateRdGy=Gy,e.interpolateRdPu=gb,e.interpolateRdYlBu=Zy,e.interpolateRdYlGn=Jy,e.interpolateReds=Nb,e.interpolateRgb=Ir,e.interpolateRgbBasis=Or,e.interpolateRgbBasisClosed=Nr,e.interpolateRound=qr,e.interpolateSinebow=function(e){var t;return e=(.5-e)*Math.PI,Hb.r=255*(t=Math.sin(e))*t,Hb.g=255*(t=Math.sin(e+Bb))*t,Hb.b=255*(t=Math.sin(e+Ub))*t,Hb+""},e.interpolateSpectral=eb,e.interpolateString=Ur,e.interpolateTransformCss=Xr,e.interpolateTransformSvg=Jr,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=qb,e.interpolateWarm=jb,e.interpolateYlGn=_b,e.interpolateYlGnBu=yb,e.interpolateYlOrBr=xb,e.interpolateYlOrRd=kb,e.interpolateZoom=ei,e.interrupt=Bi,e.intersection=function(e,...t){e=new T(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 ki,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?xi():+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=fy,e.isoParse=gy,e.json=function(e,t){return fetch(e,t).then(cl)},e.lab=ir,e.lch=function(e,t,n,r){return 1===arguments.length?ur(e):new hr(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=w_,e.lineRadial=M_,e.link=Y_,e.linkHorizontal=function(){return Y_(N_)},e.linkRadial=function(){const e=Y_(P_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.linkVertical=function(){return Y_(R_)},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 E;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=Fe,e.namespaces=Pe,e.nice=J,e.now=xi,e.pack=function(){var e=null,t=1,n=1,r=Fp;function i(i){const o=Vp();return i.x=t/2,i.y=n/2,e?i.eachBefore(tf(e)).eachAfter(nf(r,.5,o)).eachBefore(rf(1)):i.eachBefore(tf(ef)).eachAfter(nf(Fp,1,o)).eachAfter(nf(r,i.r/Math.min(t,n),o)).eachBefore(rf(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=Rp(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:jp(+e),i):r},i},e.packEnclose=function(e){return Hp(e,Vp())},e.packSiblings=function(e){return Qp(e,Vp()),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&&sf(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(of),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=Is,e.pathRound=function(e=3){return new As(+e)},e.permute=Y,e.pie=function(){var e=k_,t=S_,n=null,r=Kb(0),i=Kb(s_),o=Kb(0);function s(s){var a,l,c,u,d,h=(s=g_(s)).length,p=0,f=new Array(h),m=new Array(h),g=+r.apply(this,arguments),v=Math.min(s_,Math.max(-s_,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:Kb(+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:Kb(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Kb(+e),s):i},s.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Kb(+e),s):o},s},e.piecewise=ui,e.pointRadial=I_,e.pointer=Jt,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=>Jt(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(Tf),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=Cf(r),s=Cf(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=Wl,e.precisionPrefix=$l,e.precisionRound=Gl,e.quadtree=yl,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=M_,e.randomBates=Nf,e.randomBernoulli=Ff,e.randomBeta=Vf,e.randomBinomial=Hf,e.randomCauchy=Uf,e.randomExponential=Rf,e.randomGamma=Yf,e.randomGeometric=jf,e.randomInt=Af,e.randomIrwinHall=Of,e.randomLcg=function(e=Math.random()){let t=0|(0<=e&&e<1?e/Wf:Math.abs(e));return()=>(t=1664525*t+1013904223|0,Wf*(t>>>0))},e.randomLogNormal=Lf,e.randomLogistic=zf,e.randomNormal=If,e.randomPareto=Pf,e.randomPoisson=qf,e.randomUniform=Mf,e.randomWeibull=Bf,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)=>B(r[e],r[t]):H(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 Hs()},e.ribbonArrow=function(){return Hs(Vs)},e.rollup=R,e.rollups=P,e.scaleBand=Xf,e.scaleDiverging=function e(){var t=cm(Sy()(tm));return t.copy=function(){return wy(t,e())},Gf.apply(t,arguments)},e.scaleDivergingLog=function e(){var t=vm(Sy()).domain([.1,1,10]);return t.copy=function(){return wy(t,e()).base(t.base())},Gf.apply(t,arguments)},e.scaleDivergingPow=ky,e.scaleDivergingSqrt=function(){return ky.apply(null,arguments).exponent(.5)},e.scaleDivergingSymlog=function e(){var t=_m(Sy());return t.copy=function(){return wy(t,e()).constant(t.constant())},Gf.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],cm(r)},e.scaleImplicit=Kf,e.scaleLinear=function e(){var t=am();return t.copy=function(){return om(t,e())},$f.apply(t,arguments),cm(t)},e.scaleLog=function e(){const t=vm(sm()).domain([1,10]);return t.copy=()=>om(t,e()).base(t.base()),$f.apply(t,arguments),t},e.scaleOrdinal=Zf,e.scalePoint=function(){return Jf(Xf.apply(null,arguments).paddingInner(1))},e.scalePow=Em,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)},$f.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)},$f.apply(cm(a),arguments)},e.scaleRadial=function e(){var t,n=am(),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(Tm(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(Tm)),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)},$f.apply(o,arguments),cm(o)},e.scaleSequential=function e(){var t=cm(_y()(tm));return t.copy=function(){return wy(t,e())},Gf.apply(t,arguments)},e.scaleSequentialLog=function e(){var t=vm(_y()).domain([1,10]);return t.copy=function(){return wy(t,e()).base(t.base())},Gf.apply(t,arguments)},e.scaleSequentialPow=xy,e.scaleSequentialQuantile=function e(){var n=[],r=tm;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)},Gf.apply(i,arguments)},e.scaleSequentialSqrt=function(){return xy.apply(null,arguments).exponent(.5)},e.scaleSequentialSymlog=function e(){var t=_m(_y());return t.copy=function(){return wy(t,e()).constant(t.constant())},Gf.apply(t,arguments)},e.scaleSqrt=function(){return Em.apply(null,arguments).exponent(.5)},e.scaleSymlog=function e(){var t=_m(sm());return t.copy=function(){return om(t,e()).constant(t.constant())},$f.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)},$f.apply(o,arguments)},e.scaleTime=function(){return $f.apply(by(Hg,Bg,Ng,Ag,tg,Gm,zm,Vm,jm,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},e.scaleUtc=function(){return $f.apply(by(Yg,Vg,Pg,Lg,gg,Zm,Wm,Bm,jm,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=Cy,e.schemeBlues=Eb,e.schemeBrBG=Fy,e.schemeBuGn=tb,e.schemeBuPu=rb,e.schemeCategory10=Ty,e.schemeDark2=Dy,e.schemeGnBu=ob,e.schemeGreens=Cb,e.schemeGreys=Mb,e.schemeOrRd=ab,e.schemeOranges=Rb,e.schemePRGn=Yy,e.schemePaired=My,e.schemePastel1=Ay,e.schemePastel2=Iy,e.schemePiYG=Hy,e.schemePuBu=db,e.schemePuBuGn=cb,e.schemePuOr=Uy,e.schemePuRd=pb,e.schemePurples=Ib,e.schemeRdBu=qy,e.schemeRdGy=$y,e.schemeRdPu=mb,e.schemeRdYlBu=Ky,e.schemeRdYlGn=Xy,e.schemeReds=Ob,e.schemeSet1=Ly,e.schemeSet2=Oy,e.schemeSet3=Ny,e.schemeSpectral=Qy,e.schemeTableau10=Ry,e.schemeYlGn=bb,e.schemeYlGnBu=vb,e.schemeYlOrBr=wb,e.schemeYlOrRd=Sb,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=Be,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=V,e.stack=function(){var e=Kb([]),t=Ww,n=qw,r=$w;function i(i){var o,s,a=Array.from(e.apply(this,arguments),Gw),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=g_(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:Kb(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Kb(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?Ww:"function"==typeof e?e:Kb(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?qw: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}qw(e,t)}},e.stackOffsetNone=qw,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}qw(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,qw(e,t)}},e.stackOrderAppearance=Kw,e.stackOrderAscending=Xw,e.stackOrderDescending=function(e){return Xw(e).reverse()},e.stackOrderInsideOut=function(e){var t,n,r=e.length,i=e.map(Jw),o=Kw(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=Ww,e.stackOrderReverse=function(e){return Ww(e).reverse()},e.stratify=function(){var e,t=uf,n=df;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 pf(e,t-1)&&!pf(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(hf),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(hf(e)),h.push(cf));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 Np(o),null!=(u=p(o,s,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?lf: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===lf)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===cf&&1===a.children.length;)a=a.children[0],--i;for(let e=h.length-1;e>=0&&(c=h[e]).data===cf;--e)c.data=null}if(a.parent=af,a.eachBefore((function(e){e.depth=e.parent.depth+1,--i})).eachBefore(Op),a.parent=null,i>0)throw new Error("cycle");return a}return r.id=function(e){return arguments.length?(t=Rp(e),r):t},r.parentId=function(e){return arguments.length?(n=Rp(e),r):n},r.path=function(t){return arguments.length?(e=Rp(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=pl,e.symbol=function(e,t){let n=null,r=l_(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:Kb(e||B_),t="function"==typeof t?t:Kb(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:Kb(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:Kb(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i},e.symbolAsterisk=H_,e.symbolCircle=B_,e.symbolCross=U_,e.symbolDiamond=W_,e.symbolDiamond2=$_,e.symbolPlus=G_,e.symbolSquare=K_,e.symbolSquare2=Z_,e.symbolStar=ew,e.symbolTimes=uw,e.symbolTriangle=nw,e.symbolTriangle2=iw,e.symbolWye=cw,e.symbolX=uw,e.symbols=dw,e.symbolsFill=dw,e.symbolsStroke=hw,e.text=ol,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=x(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1},e.thresholdSturges=Q,e.tickFormat=lm,e.tickIncrement=Z,e.tickStep=X,e.ticks=K,e.timeDay=Gm,e.timeDays=Km,e.timeFormatDefaultLocale=dy,e.timeFormatLocale=Wg,e.timeFriday=sg,e.timeFridays=pg,e.timeHour=zm,e.timeHours=qm,e.timeInterval=Mm,e.timeMillisecond=Am,e.timeMilliseconds=Im,e.timeMinute=Vm,e.timeMinutes=Hm,e.timeMonday=ng,e.timeMondays=cg,e.timeMonth=Ag,e.timeMonths=Ig,e.timeSaturday=ag,e.timeSaturdays=fg,e.timeSecond=jm,e.timeSeconds=Ym,e.timeSunday=tg,e.timeSundays=lg,e.timeThursday=og,e.timeThursdays=hg,e.timeTickInterval=Bg,e.timeTicks=Hg,e.timeTuesday=rg,e.timeTuesdays=ug,e.timeWednesday=ig,e.timeWednesdays=dg,e.timeWeek=tg,e.timeWeeks=lg,e.timeYear=Ng,e.timeYears=Rg,e.timeout=Ai,e.timer=Ei,e.timerFlush=Ti,e.transition=co,e.transpose=ve,e.tree=function(){var e=ff,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,s=new bf(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 bf(r[i],i)),n.parent=t;return(s.parent=new bf(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=gf(a),o=mf(o),a&&o;)l=mf(l),(s=gf(s)).a=t,(i=a.z+d-o.z-c+e(a._,o._))>0&&(vf(yf(a,t,r),t,i),c+=i,u+=i),d+=a.m,c+=o.m,h+=l.m,u+=s.m;a&&!gf(s)&&(s.t=a,s.m+=d-u),o&&!mf(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=Sf,t=!1,n=1,r=1,i=[0],o=Fp,s=Fp,a=Fp,l=Fp,c=Fp;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(of),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=Pp(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:jp(+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:jp(+e),u):s},u.paddingRight=function(e){return arguments.length?(a="function"==typeof e?e:jp(+e),u):a},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:jp(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:jp(+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=sf,e.treemapResquarify=kf,e.treemapSlice=_f,e.treemapSliceDice=function(e,t,n,r,i){(1&e.depth?_f:sf)(e,t,n,r,i)},e.treemapSquarify=Sf,e.tsv=ll,e.tsvFormat=Za,e.tsvFormatBody=Xa,e.tsvFormatRow=Qa,e.tsvFormatRows=Ja,e.tsvFormatValue=el,e.tsvParse=Ga,e.tsvParseRows=Ka,e.union=function(...e){const t=new T;for(const n of e)for(const e of n)t.add(e);return t},e.unixDay=Jm,e.unixDays=Qm,e.utcDay=Zm,e.utcDays=Xm,e.utcFriday=wg,e.utcFridays=Dg,e.utcHour=Wm,e.utcHours=$m,e.utcMillisecond=Am,e.utcMilliseconds=Im,e.utcMinute=Bm,e.utcMinutes=Um,e.utcMonday=vg,e.utcMondays=kg,e.utcMonth=Lg,e.utcMonths=Og,e.utcSaturday=xg,e.utcSaturdays=Mg,e.utcSecond=jm,e.utcSeconds=Ym,e.utcSunday=gg,e.utcSundays=Sg,e.utcThursday=_g,e.utcThursdays=Cg,e.utcTickInterval=Vg,e.utcTicks=Yg,e.utcTuesday=yg,e.utcTuesdays=Eg,e.utcWednesday=bg,e.utcWednesdays=Tg,e.utcWeek=gg,e.utcWeeks=Sg,e.utcYear=Pg,e.utcYears=Fg,e.variance=w,e.version="7.8.5",e.window=dt,e.xml=dl,e.zip=function(){return ve(arguments)},e.zoom=function(){var e,t,n,r=sx,i=ax,o=dx,s=cx,a=ux,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=ei,h=Ie("start","zoom","end"),p=500,f=150,m=0,g=10;function v(e){e.property("__zoom",lx).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",T).filter(a).on("touchstart.zoom",C).on("touchmove.zoom",D).on("touchend.zoom touchcancel.zoom",M).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new tx(t,e.x,e.y)}function b(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 tx(e.k,r,i)}function _(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,t,n,r){e.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,o=arguments,s=x(e,o).event(r),a=i.apply(e,o),l=null==n?_(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 tx(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function x(e,t,n){return!n&&e.__zooming||new S(e,t)}function S(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function k(e,...t){if(r.apply(this,arguments)){var n=x(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=Jt(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)],Bi(this),n.start()}ox(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",o(b(y(i,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function E(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,s=x(this,t,!0).event(e),a=$t(e.view).on("mousemove.zoom",(function(e){if(ox(e),!s.moved){var t=e.clientX-u,n=e.clientY-d;s.moved=t*t+n*n>m}s.event(e).zoom("mouse",o(b(s.that.__zoom,s.mouse[0]=Jt(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),ox(e),s.event(e).end()}),!0),l=Jt(e,i),u=e.clientX,d=e.clientY;rn(e.view),ix(e),s.mouse=[l,this.__zoom.invert(l)],Bi(this),s.start()}}function T(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,s=Jt(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),d=o(b(y(n,l),s,a),i.apply(this,t),c);ox(e),u>0?$t(this).transition().duration(u).call(w,d,s,e):$t(this).call(v.transform,d,s,e)}}function C(n,...i){if(r.apply(this,arguments)){var o,s,a,l,c=n.touches,u=c.length,d=x(this,i,n.changedTouches.length===u).event(n);for(ix(n),s=0;s<u;++s)l=[l=Jt(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}),p)),Bi(this),d.start())}}function D(e,...t){if(this.__zooming){var n,r,i,s,a=x(this,t).event(e),l=e.changedTouches,u=l.length;for(ox(e),n=0;n<u;++n)i=Jt(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,g=(g=f[0]-h[0])*g+(g=f[1]-h[1])*g;r=y(r,Math.sqrt(m/g)),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(b(r,i,s),a.extent,c))}}function M(e,...r){if(this.__zooming){var i,o,s=x(this,r).event(e),a=e.changedTouches,l=a.length;for(ix(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),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=Jt(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<g)){var c=$t(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",lx),e!==i?w(e,t,n,r):i.interrupt().each((function(){x(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,r){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,r)},v.scaleTo=function(e,t,n,r){v.transform(e,(function(){var e=i.apply(this,arguments),r=this.__zoom,s=null==n?_(e):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(s),l="function"==typeof t?t.apply(this,arguments):t;return o(b(y(r,l),s,a),e,c)}),n,r)},v.translateBy=function(e,t,n,r){v.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)},v.translateTo=function(e,t,n,r,s){v.transform(e,(function(){var e=i.apply(this,arguments),s=this.__zoom,a=null==r?_(e):"function"==typeof r?r.apply(this,arguments):r;return o(nx.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)},S.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 ex(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:h}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:Qw(+e),v):s},v.filter=function(e){return arguments.length?(r="function"==typeof e?e:Qw(!!e),v):r},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:Qw(!!e),v):a},v.extent=function(e){return arguments.length?(i="function"==typeof e?e:Qw([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):i},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.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],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(o=e,v):o},v.duration=function(e){return arguments.length?(u=+e,v):u},v.interpolate=function(e){return arguments.length?(d=e,v):d},v.on=function(){var e=h.on.apply(h,arguments);return e===h?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v},e.zoomIdentity=nx,e.zoomTransform=rx})),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},x=function(e,t){var n="";return e>=55296&&e<=57343||e>1114111?(t&&E("character reference outside the permissible Unicode range"),"\ufffd"):_(g,e)?(t&&E("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)&&E("disallowed character reference"),e>65535&&(n+=y((e-=65536)>>>10&1023|55296),e=56320|1023&e),n+=y(e))},S=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},k=function(e){return"&#"+e+";"},E=function(e){throw Error("Parse error: "+e)},T=function(e,t){(t=w(t,T.options)).strict&&h.test(e)&&E("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,u=t.allowUnsafeSymbols,d=t.decimal?k:S,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)};T.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var C=function(e,t){var n=(t=w(t,C.options)).strict;return n&&d.test(e)&&E("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&&E("`&` did not start a character reference"),e):(n&&E("named character reference was not terminated by a semicolon"),m[v]+(y||""))):s?(p=s,h=a,n&&!h&&E("character reference was not terminated by a semicolon"),d=parseInt(p,10),x(d,n)):l?(g=l,h=c,n&&!h&&E("character reference was not terminated by a semicolon"),d=parseInt(g,16),x(d,n)):(n&&E("named character reference was not terminated by a semicolon"),e)}))};C.options={isAttributeValue:!1,strict:!1};var D={version:"1.2.0",encode:T,decode:C,escape:function(e){return e.replace(c,(function(e){return u[e]}))},unescape:C};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 M in D)_(D,M)&&(t[M]=D[M]);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 x(){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()})),x}return x.nvPointerEventsClass=f,x.options=e.utils.optionsFunc.bind(x),x._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,x())}},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(x),x},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],!0;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,x=d3.select(this);e.utils.initSVG(x);var S=x.selectAll("g.nv-wrap.nv-axis").data([l]),k=S.enter().append("g").attr("class","nvd3 nv-wrap nv-axis"),E=(k=k.merge(S)).append("g");E.select("g"),E=k.select("g"),null!==m?t.ticks(m):("top"===n||"bottom"===n)&&t.ticks(Math.abs(o.range()[1]-o.range()[0])/100),E.watchTransition(_,"axis").call(t),r=r||t.scale();var T=t.tickFormat();null==T&&(T=r.tickFormat()),E.attr("fill",""),E.attr("font-size",v),E.attr("font-family","");var C=E.selectAll("text.nv-axislabel").data([c||null]);switch(C.exit().remove(),void 0!==v&&E.selectAll("g").select("text").style("font-size",v),n){case"top":y=g+36;var D=C.enter().append("text").attr("class","nv-axislabel");if(D=x.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=E.enter().append("g").attr("class",((e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" "))).merge(E);var M=(b=x.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");M.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||T)(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 A=30,I=0,L=E.selectAll("g").select("text"),O="";if(d%360){L.attr("transform",""),L.each((function(e,t){var n=this.getBoundingClientRect(),r=n.width;I=n.height,r>A&&(A=r)})),O="rotate("+d+" 0,"+(I/2+t.tickPadding())+")";var N=Math.abs(Math.sin(d*Math.PI/180));y=(N?N*A:A)+30,L.attr("transform",O).style("text-anchor",d%360>0?"start":"end")}else p?L.attr("transform",(function(e,t){return"translate(0,"+(t%2==0?"0":"12")+")"})):L.attr("transform","translate(0,0)");if(D=C.enter().append("text").attr("class","nv-axislabel"),D=x.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=E.enter().append("g").attr("class",((e,t)=>["nv-axisMaxMin","nv-axisMaxMin-x",0===t?"nv-axisMin-x":"nv-axisMax-x"].join(" "))).merge(E);M=(b=x.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");M.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",O).style("text-anchor",d?d%360>0?"start":"end":"middle").text((function(e,t){var n=(i||T)(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=C.enter().append("text").attr("class","nv-axislabel"),(D=x.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=E.enter().append("g").attr("class",((e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" "))).merge(E);M=(b=x.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");M.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||T)(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=C.enter().append("text").attr("class","nv-axislabel"),(D=x.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=E.enter().append("g").attr("class",((e,t)=>["nv-axisMaxMin","nv-axisMaxMin-y",0===t?"nv-axisMin-y":"nv-axisMax-y"].join(" "))).merge(E);M=(b=x.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");M.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||T)(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)&&(E.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]&&S.selectAll("g.nv-axisMaxMin").style("opacity",(function(e,t){return t?0:1}))),u&&("top"===n||"bottom"===n)){var R=[];b.each((function(e,t){try{t?R.push(o(e)-this.getBoundingClientRect().width-4):R.push(o(e)+this.getBoundingClientRect().width+4)}catch(n){t?R.push(o(e)-4):R.push(o(e)+4)}})),E.selectAll("g").each((function(e,t){(o(e)<R[0]||o(e)>R[1])&&(e>1e-10||e<-1e-10?d3.select(this).remove():d3.select(this).select("text").remove())}))}E.selectAll(".tick").filter((function(e){return!parseFloat(Math.round(1e5*e)/1e6)&&void 0!==e})).classed("zero",!0),E.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},x=function(e,t,n){return e},S=function(e,t,n){},k=e.utils.defaultColor(),E=null,T=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),C=250,D=null,M=e.utils.renderWatch(T,C);function A(u){return M.reset(),u.each((function(u){var A=l-a.left-a.right,I=c-a.top-a.bottom;E=d3.select(this),e.utils.initSVG(E),d.domain(r||u.map((function(e,t){return p(e,t)}))).range(i||[0,A],.1);var L=[];if(!o){var O=[];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){O.push(w(e,t,void 0))})),i&&O.push(i),n&&O.push(n),r&&O.push(r),o&&O.push(o)})),L=[d3.min(O),d3.max(O)]}h.domain(o||L),h.range(s||[I,0]),t=t||d,n=n||h.copy().range([h(0),h(0)]);var N=E.selectAll("g.nv-wrap").data([u]).enter().append("g").attr("class","nvd3 nv-wrap");N.attr("transform","translate("+a.left+","+a.top+")");var R=N.selectAll(".nv-boxplot").data((function(e){return e})),P=R.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);P.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})),P.watchTransition(M,"nv-boxplot: boxplots").style("stroke-opacity",1).style("fill-opacity",.75).delay((function(e,t){return t*C/u.length})).attr("transform",(function(e,t){return"translate("+(d(p(e,t))+.05*d.bandwidth())+", 0)"})),R.exit().remove(),P.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 F=function(){return null===D?.9*d.bandwidth():Math.min(75,.9*d.bandwidth())},j=function(){return.45*d.bandwidth()-F()/2},Y=function(){return.45*d.bandwidth()+F()/2};[v,y].forEach((function(e){var t=e===v?"low":"high",n=e===v?f:g;P.select("line.nv-boxplot-whisker.nv-boxplot-"+t).watchTransition(M,"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))})),P.select("line.nv-boxplot-tick.nv-boxplot-"+t).watchTransition(M,"nv-boxplot: boxplots").attr("x1",j).attr("y1",(function(t,n){return h(e(t))})).attr("x2",Y).attr("y2",(function(t,n){return h(e(t))}))})),[v,y].forEach((function(e){var t=e===v?"low":"high";P.selectAll(".nv-boxplot-"+t).on("mouseover",(function(t,n,r,i){setCoordinates(t.pageX,t.pageY),d3.select(this).classed("hover",!0),T.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),T.call("elementMouseout",this,{series:{key:e(n),color:b(n)||k(n,i)},e:t})})).on("mousemove",(function(e,t,n){T.call("elementMousemove",this,{e:e})}))})),P.append("rect").attr("class","nv-boxplot-box").on("mouseover",(function(e,t,n){setCoordinates(e.pageX,e.pageY),d3.select(this).classed("hover",!0),T.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),T.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){T.call("elementMousemove",this,{e:e})})).watchTransition(M,"nv-boxplot: boxes").attr("y",(function(e,t){return h(g(e))})).attr("width",F).attr("x",j).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)})),P.append("line").attr("class","nv-boxplot-median").watchTransition(M,"nv-boxplot: boxplots line").attr("x1",j).attr("y1",(function(e,t){return h(m(e))})).attr("x2",Y).attr("y2",(function(e,t){return h(m(e))}));var V=P.selectAll(".nv-boxplot-outlier").data((function(e){return _(e)||[]}));V.enter().append("circle").style("fill",(function(e,t,n){return S(e,t,n)||k(e,n)})).style("stroke",(function(e,t,n){return S(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),T.call("elementMouseover",this,{series:{key:x(t,n,r),color:S(t,n,r)||k(t,r)},e:e})})).on("mouseout",(function(e,t,n,r){d3.select(this).classed("hover",!1),T.call("elementMouseout",this,{series:{key:x(t,n,r),color:S(t,n,r)||k(t,r)},e:e})})).on("mousemove",(function(e,t,n){T.call("elementMousemove",this,{e:e})})),V.attr("class","nv-boxplot-outlier"),V.watchTransition(M,"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"),V.exit().remove(),t=d.copy(),n=h.copy()})),M.renderEnd("nv-boxplot immediate"),A}return A.dispatch=T,A.options=e.utils.optionsFunc.bind(A),A._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 x},set:function(e){x=e}},outlierColor:{get:function(){return S},set:function(e){S=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 C},set:function(e){C=e,M.reset(C)}}}),e.utils.initOptions(A),A},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 x=f.selectAll("g.nv-wrap.nv-boxPlotWithAxes").data([c]),S=x.enter().append("g").attr("class","nvd3 nv-wrap nv-boxPlotWithAxes").append("g"),k=S.append("defs");x.select("g");var E=S.append("g").attr("class","nv-x nv-axis");E=f.selectAll("g.nv-wrap.nv-boxPlotWithAxes").select(".nv-x");var T=S.append("g").attr("class","nv-y nv-axis"),C=T.append("g").attr("class","nv-zeroLine").append("line"),D=S.append("g").attr("class","nv-barsWrap");if(S.attr("transform","translate("+s.left+","+s.top+")"),h&&T.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(-_),E.attr("transform","translate(0,"+n.range()[0]+")"),E.call(i);var M=E.select("g.nvd3.nv-wrap.nv-axis").selectAll("g");p&&M.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),T.call(o)),C.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 x(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 S(n){return n.each((function(n,g){var w=p-t.left-t.right,S=f-t.top-t.bottom;m=d3.select(this),e.utils.initSVG(m);var k=i.call(this,n,g).slice(),E=o.call(this,n,g).slice(),T=s.call(this,n,g).slice(),C=a.call(this,n,g).slice(),D=l.call(this,n,g).slice(),M=c.call(this,n,g).slice(),A=u.call(this,n,g).slice(),I=d.call(this,n,g).slice();x(D,k),x(M,E),x(A,T),x(I,C),k.sort(d3.descending),E.sort(d3.descending),T.sort(d3.descending),C.sort(d3.descending);var L=d3.scaleLinear().domain(d3.extent(d3.merge([h,k]))).range(r?[w,0]:[0,w]);this.__chart__||d3.scaleLinear().domain([0,1/0]).range(L.range()),this.__chart__=L,d3.min(k),d3.max(k),k[1];for(var O=m.selectAll("g.nv-wrap.nv-bullet").data([n]),N=O.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet").append("g"),R=O.select("g"),P=(g=0,k.length);g<P;g++){var F="nv-range nv-range"+g;g<=2&&(F=F+" nv-range"+_[g]),N.append("rect").attr("class",F)}N.append("rect").attr("class","nv-measure"),O.attr("transform","translate("+t.left+","+t.top+")");var j=function(e){return Math.abs(L(e)-L(0))},Y=function(e){return L(e<0?e:0)};for(g=0,P=k.length;g<P;g++){var V=k[g];R.select("rect.nv-range"+g).datum(V).attr("height",S).transition().duration(1e3).attr("width",j(V)).attr("x",Y(V))}R.select("rect.nv-measure").style("fill",v).attr("height",S/3).attr("y",S/3).on("mouseover",(function(){y.call("elementMouseover",this,{value:C[0],label:I[0]||"Current",color:d3.select(this).style("fill")})})).on("mousemove",(function(){y.call("elementMousemove",this,{value:C[0],label:I[0]||"Current",color:d3.select(this).style("fill")})})).on("mouseout",(function(){y.call("elementMouseout",this,{value:C[0],label:I[0]||"Current",color:d3.select(this).style("fill")})})).transition().duration(1e3).attr("width",C<0?L(0)-L(C[0]):L(C[0])-L(0)).attr("x",Y(C));var H=S/6,B=E.map((function(e,t){return{value:e,label:M[t]}}));N.selectAll("path.nv-markerTriangle").data(B).enter().append("path").attr("class","nv-markerTriangle").attr("d","M0,"+H+"L"+H+","+-H+" "+-H+","+-H+"Z").on("mouseover",(function(e){y.call("elementMouseover",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill"),pos:[L(e.value),S/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")})})),R.selectAll("path.nv-markerTriangle").data(B).transition().duration(1e3).attr("transform",(function(e){return"translate("+L(e.value)+","+S/2+")"}));var U=T.map((function(e,t){return{value:e,label:A[t]}}));N.selectAll("line.nv-markerLine").data(U).enter().append("line").attr("cursor","").attr("class","nv-markerLine").attr("x1",(function(e){return L(e.value)})).attr("y1","2").attr("x2",(function(e){return L(e.value)})).attr("y2",S-2).on("mouseover",(function(e){y.call("elementMouseover",this,{value:e.value,label:e.label||"Previous",color:d3.select(this).style("fill"),pos:[L(e.value),S/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")})})),R.selectAll("line.nv-markerLine").data(U).transition().duration(1e3).attr("x1",(function(e){return L(e.value)})).attr("x2",(function(e){return L(e.value)})),O.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:C[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")})}))})),S}return S.dispatch=y,S.options=e.utils.optionsFunc.bind(S),S._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(S),S},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 x=w.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart").append("g"),S=w.select("g"),k=x.append("g").attr("class","nv-bulletWrap"),E=x.append("g").attr("class","nv-titles"),T=d3.scaleLinear().domain([0,Math.max(y[0],b[0]||0,_[0])]).range(i?[g,0]:[0,g]),C=this.__chart__||d3.scaleLinear().domain([0,1/0]).range(T.range());this.__chart__=T;var D=E.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 M=d||T.tickFormat(g/100),A=S.selectAll("g.nv-tick").data(T.ticks(h||g/50),(function(e){return this.textContent||M(e)})),I=A.enter().append("g").attr("class","nv-tick").attr("transform",(function(e){return"translate("+C(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(M);var L=A.transition().duration(t.duration()).attr("transform",(function(e){return"translate("+T(e)+",0)"})).style("opacity",1);L.select("line").attr("y1",v).attr("y2",7*v/6),L.select("text").attr("y",7*v/6),I.transition().duration(t.duration()).attr("transform",(function(e){return"translate("+T(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,x=e.utils.defaultColor(),S=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function E(x){return x.each((function(x){t=d3.select(this);var S=e.utils.availableWidth(a,t,s),E=e.utils.availableHeight(l,t,s);e.utils.initSVG(t);var T=S/x[0].values.length*.45;u.domain(n||d3.extent(x[0].values.map(h).concat(y))),_?u.range(i||[.5*S/x[0].values.length,S*(x[0].values.length-.5)/x[0].values.length]):u.range(i||[5+T/2,S-T/2-5]),d.domain(r||[d3.min(x[0].values.map(v).concat(b)),d3.max(x[0].values.map(g).concat(b))]).range(o||[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 C=d3.select(this).selectAll("g.nv-wrap.nv-candlestickBar").data([x[0].values]),D=C.enter().append("g").attr("class","nvd3 nv-wrap nv-candlestickBar");D.attr("transform","translate("+s.left+","+s.top+")");var M=D.append("defs"),A=D.append("g");C.select("g");var I=A.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})})),M.append("clipPath").attr("id","nv-chart-clip-path-"+c).append("rect").attr("width",S).attr("height",E),A.attr("clip-path",w?"url(#nv-chart-clip-path-"+c+")":"");var L=I.selectAll(".nv-tick").data((function(e){return e}));L.exit().remove();var O=L.enter().append("g");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.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))})),O.append("rect").attr("class","nv-candlestick-rects nv-bars").attr("transform",(function(e,t){return"translate("+(u(h(e,t))-T/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",T).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)})),O.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))})),O.select(".nv-candlestick-rects").transition().attr("transform",(function(e,t){return"translate("+(u(h(e,t))-T/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",T).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)}))})),E}return E.highlightPoint=function(e,n){E.clearHighlights(),t.select(".nv-candlestickBar .nv-tick-0-"+e).classed("hover",n)},E.clearHighlights=function(){t.select(".nv-candlestickBar .nv-tick.hover").classed("hover",!1)},E.dispatch=k,E.options=e.utils.optionsFunc.bind(E),E._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 S},set:function(e){S=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 x},set:function(t){x=e.utils.getColor(t)}}}),e.utils.initOptions(E),E},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,x="top",S=r.id(),k=e.utils.state(),E=null,T=null,C=function(e){return e.average},D=d3.dispatch("stateChange","changeState","renderEnd"),M=250,A=(d3.transition().duration(M).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,L=d3.scaleLinear(),O={i:0,x:0},N=e.utils.renderWatch(D,M);function R(c){return N.reset(),N.models(r),g&&N.models(i),v&&N.models(o),c.each((function(c){var x,T,N,j=d3.select(this);e.utils.initSVG(j),j.classed("nv-chart-"+S,!0);var Y,V,H=e.utils.availableWidth(p,j,u),B=e.utils.availableHeight(f,j,u);if(R.update=function(){0===M?j.call(R):j.transition().duration(M).call(R)},R.container=this,k.setter((Y=c,function(e){void 0!==e.index&&(O.i=e.index),void 0!==e.rescaleY&&(w=e.rescaleY),void 0!==e.active&&Y.forEach((function(t,n){t.disabled=!e.active[n]}))}),R.update).getter((V=c,function(){return{active:V.map((function(e){return!e.disabled})),index:O.i,rescaleY:w}})).update(),k.disabled=c.map((function(e){return!!e.disabled})),!E)for(N in E={},k)k[N]instanceof Array?E[N]=k[N].slice(0):E[N]=k[N];var U=d3.drag().on("start",(function(e,t){d3.select(R.container).style("cursor","ew-resize")})).on("drag",(function(e,t,n){O.x=e.x,O.i=Math.round(L.invert(O.x)),ue()})).on("end",(function(e,t){d3.select(R.container).style("cursor","auto"),k.index=O.i,D.call("stateChange",this,k)}));if(!c||!c.length||!c.filter((function(e){return e.values.length})).length)return e.utils.noData(R,j),R;j.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale(),L.domain([0,c[0].values.length-1]).range([0,H]).clamp(!0);x=O.i,T=c,P||(P=r.y()),c=T.map((function(e,t){if(!e.values)return e;var n=e.values[x];if(null==n)return e;var r=P(n,x);return 1e-5>Math.abs(r)&&!A?(e.tempDisabled=!0,e):(e.tempDisabled=!1,e.values=e.values.map((function(e,t){return e.display={y:(P(e,t)-r)/r},e})),e)}));void 0===I&&(I=F(c)),w?r.yDomain(null):(r.yDomain(I),r.clipEdge(!0));var z=_?"none":"all",q=j.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=j.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=j.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-x");var X=G.append("g").attr("class","nv-y nv-axis");X=j.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-y");var J=G.append("g").attr("class","nv-background");J=j.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-background");var Q=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=j.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=j.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-controlsWrap"),te=j.selectAll("g.nv-wrap.nv-cumulativeLine").select(".nv-legendWrap"),m?(s.width(H),te.datum(c).call(s),d||s.height()===u.top||(u.top=s.height(),B=e.utils.availableHeight(f,j,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("+H+",0)");var ie=c.filter((function(e){return e.tempDisabled}));$.select(".tempDisabled").remove(),ie.length&&$.append("text").attr("class","tempDisabled").attr("x",H/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(H).height(B).margin({left:u.left,top:u.top}).svgContainer(j).xScale(t),K.call(l));var oe=J.select("rect");oe.empty()&&J.append("rect"),oe.attr("width",H).attr("height",B),r.y((function(e){return e.display.y})).width(H).height(B).color(c.map((function(e,t){return e.color||h(e,t)})).filter((function(e,t){return!c[t].disabled&&!c[t].tempDisabled}))),(Q=j.selectAll("g.nv-linesWrap.nvd3-svg").data([W]).merge(Q)).call(r),c.forEach((function(e,t){e.seriesIndex=t}));var se=c.filter((function(e){return!e.disabled&&!!C(e)})),ae=ee.selectAll("line").data(se,(function(e){return e.key})),le=function(e){var t=n(C(e));return t<0?0:t>B?B: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",H).attr("y1",le).attr("y2",le).style("stroke-opacity",(function(e){var t=n(C(e));return t<0||t>B?0:1})).attr("x1",0).attr("x2",H).attr("y1",le).attr("y2",le).merge(ae);var ce=Q.selectAll(".nv-indexLine").data([O]);function ue(){ce.data([O]);var e=R.duration();R.duration(0),R.update(),R.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("+L(e.i)+",0)"})).attr("height",B).merge(ce),g&&(i.scale(t)._ticks(e.utils.calcTicksX(H/70,c)),i.tickSizeInner(-B),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(B/36,c)),o.tickSizeInner(-H),X.call(o)),oe.on("click",(function(e){O.x=d3.pointer(e)[0],O.i=Math.round(L.invert(O.x)),k.index=O.i,D.call("stateChange",oe,k),ue()})),r.dispatch.on("elementClick",(function(e){O.i=e.pointIndex,O.x=L(O.i),k.index=O.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=F(c)),D.call("stateChange",this,k),R.update()})),s.dispatch.on("stateChange",(function(e){for(var t in e)k[t]=e[t];D.call("stateChange",this,e),R.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,R.x()),r.highlightPoint(o,s,!0);var l=i.values[s];void 0!==l&&(void 0===n&&(n=l),void 0===a&&(a=R.xScale()(R.x()(l,s))),u.push({key:i.key,value:R.y()(l,s),color:h(i,i.seriesIndex)}))})),u.length>2){var d=R.yScale().invert(t.mouseY),p=Math.abs(R.yScale().domain()[0]-R.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()(R.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&&(O.i=e.index,O.x=L(O.i),k.index=e.index,ce.data([O])),void 0!==e.rescaleY&&(w=e.rescaleY),R.update()}))})),N.renderEnd("cumulativeLineChart immediate"),R}r.dispatch.on("elementMouseover.tooltip",(function(e){var t={x:R.x()(e.point),y:R.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 P=null;function F(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 R.dispatch=D,R.lines=r,R.legend=s,R.controls=a,R.xAxis=i,R.yAxis=o,R.interactiveLayer=l,R.state=k,R.tooltip=c,R.options=e.utils.optionsFunc.bind(R),R._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 x},set:function(e){x=e}},average:{get:function(){return C},set:function(e){C=e}},defaultState:{get:function(){return E},set:function(e){E=e}},noData:{get:function(){return T},set:function(e){T=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 A},set:function(e){A=e}},rescaleY:{get:function(){return w},set:function(e){w=e,R.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&&(R.interactive(!1),R.useVoronoi(!1))}},rightAlignYAxis:{get:function(){return y},set:function(e){y=e}},duration:{get:function(){return M},set:function(e){M=e,r.duration(M),i.duration(M),o.duration(M),N.reset(M),d3.transition().duration(M).ease(d3.easeLinear)}}}),e.utils.inheritOptions(R,r),e.utils.initOptions(R),R},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})),x=d3.extent(d3.merge(w),(function(e){return e.x}));n.xAxis.domain(x).range([0,g]);var S=d3.extent(d3.merge(w),(function(e){return i(e)}));n.yDomain1(S),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"),x="discreteBar",S=250,k=e.utils.renderWatch(w,S);function E(d){return k.reset(),d.each((function(d){var S=c-l.left-l.right,E=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 T=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(T).map((function(e){return e.x}))).range(s||[0,S],.1),p.domain(o||d3.extent(d3.merge(T).map((function(e){return e.y})).concat(g))),b?p.range(a||[E-(p.domain()[0]<0?12:0),p.domain()[1]>0?12:0]):p.range(a||[E,0]),t=t||h,n=n||p.copy().range([p(0),p(0)]);var C=r.selectAll("g.nv-wrap.nv-discretebar").data([d]).enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar");C.attr("transform","translate("+l.left+","+l.top+")");var D=C.append("g");D.select("g");var M=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);M.exit().watchTransition(k,"discreteBar: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),M.attr("class",(function(e,t){return"nv-group nv-series-"+t})).classed("hover",(function(e){return e.hover})),M.watchTransition(k,"discreteBar: groups").style("stroke-opacity",1).style("fill-opacity",.75);var A=M.selectAll("g.nv-bar").data((function(e){return e.values}));A.exit().remove();var I=A.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()})),L=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})):L.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",x).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"),E}return E.dispatch=w,E.options=e.utils.optionsFunc.bind(E),E._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 x},set:function(e){x=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 S},set:function(e){S=e,k.reset(S)}}}),e.utils.initOptions(E),E},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"),x=250;d3.transition().duration(x).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 S=e.utils.renderWatch(w,x);function k(a){return S.reset(),S.models(r),f&&S.models(i),m&&S.models(o),a.each((function(a){var h=d3.select(this),_=this;e.utils.initSVG(h);var S=e.utils.availableWidth(u,h,l),E=e.utils.availableHeight(d,h,l);if(k.update=function(){w.call("beforeUpdate",_),h.transition().duration(x).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 T=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([a]).enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g");T.attr("transform","translate("+l.left+","+l.top+")");var C=T.append("defs"),D=T.select("g"),M=T.append("g").attr("class","nv-x nv-axis");M=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").select(".nv-x");var A=T.append("g").attr("class","nv-y nv-axis"),I=A.append("g").attr("class","nv-zeroLine").append("line"),L=T.append("g").attr("class","nv-barsWrap"),O=T.append("g").attr("class","nv-legendWrap");if(O=h.selectAll("g.nv-wrap.nv-discreteBarWithAxes").select(".nv-legendWrap"),p?(s.width(S),O.datum(a).call(s),c||s.height()===l.top||(l.top=s.height(),E=e.utils.availableHeight(d,h,l)),O.attr("transform","translate(0,"+-l.top+")")):O.selectAll("*").remove(),g&&A.attr("transform","translate("+S+",0)"),r.width(S).height(E),L.datum(a.filter((function(e){return!e.disabled}))).transition().duration(0).call(r),C.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(S/100,a)),i.tickSizeInner(-E),M.attr("transform","translate(0,"+(n.range()[0]+(r.showValues()&&n.domain()[0]<0?16:0))+")"),M.call(i);var N=M.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(E/36,a,r.y())),o.tickSizeInner(-S),A.call(o)),I.attr("x1",0).attr("x2",g?-S:S).attr("y1",n(0)).attr("y2",n(0))})),S.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 x},set:function(e){x=e,S.reset(x),d3.transition().duration(x).ease(d3.easeLinear),r.duration(x),i.duration(x),o.duration(x)}},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[C]},x=function(e){return e.values.wu[C]},S=function(e){return e.values.min},k=function(e){return e.values.max},E=function(e){return e.values.dev},T=!1,C="iqr",D=!1,M=!1,A=!1,I=!1,L=!0,O=.7,N=!0,R="scott",P=!0,F=50,j=3,Y=e.utils.defaultColor(),V=null,H=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),B=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 A&&G.add(A(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(j+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()*O*(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()*O*(1==Math.floor(2*Math.random())?1:-1)})})),isNaN(parseFloat(R))&&(n=-1!=["scott","silverman"].indexOf(R)?z(s,R):z(s));var b=(r=n,i=function(e){return 1>=Math.abs(e/=r)?.75*(1-e*e)/r:0},o=p._ticks(F),function(e){return o.map((function(t){var n=d3.mean(e,(function(e){return i(t-e)}));return{x:t,y:n}}))}),_=P?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 x={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 A&&Z.push({key:t,values:x}),x}if(e.forEach((function(e,t){e.object_constancy=t+"_"+m(e)+"_"+f(e)})),A){G=new Set;var n,r=d3.group().key((function(e){return f(e)})).key((function(e){return A(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"==C&&e.isOutlier||"stddev"==C&&e.isOutlierStdDev}var $,G=new Set,K=[],Z=[],X=e.utils.renderWatch(H,B);function J(d){return X.reset(),d.each((function(d){t=c-l.left-l.right,n=u-l.top-l.bottom,V=d3.select(this),e.utils.initSVG(V),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||A&&!N?G:$.map((function(e){return e.key})));var f=V.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 C,O=f.selectAll(".nv-distroplot-x-group").data((function(e){return e}));O.each((function(e,t){d3.select(this).selectAll("line.nv-distroplot-middle").datum(e)})),C=O.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)||Y(e,t)})).style("stroke",(function(e,t){return g(e)||Y(e,t)})),O.exit().remove();var R=function(){return h.bandwidth()},P=function(){return d3.min([U,.9*R()])},F=function(){return P()/2},B=function(){return F()-P()/2},z=function(){return F()-P()/5},Z=function(){return F()+P()/5};C.attr("transform",(function(e){return"translate("+(h(e.key)+.5*(R()-P()))+", 0)"})),O.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*(R()-P()))+", 0)"})),K.map((function(e){e.range([P()/2,0])})),r||(L=!1,T||(T="random")),C.each((function(e,t){var n=d3.select(this);[w,x].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,x].forEach((function(e){var t=e===w?"low":"high",n=e===w?v:b;O.select("line.nv-distroplot-whisker.nv-distroplot-"+t).watchTransition(X,"nv-distroplot-x-group: distroplots").attr("x1",F()).attr("y1",(function(t){return p("violin"!=r?e(t):y(t))})).attr("x2",F()).attr("y2",(function(e){return p("box"==r?n(e):y(e))})).style("opacity",(function(){return D?"0":"1"})),O.select("line.nv-distroplot-tick.nv-distroplot-"+t).watchTransition(X,"nv-distroplot-x-group: distroplots").attr("x1",(function(e){return"violin"!=r?z():F()})).attr("y1",(function(t,n){return p("violin"!=r?e(t):y(t))})).attr("x2",(function(e){return"violin"!=r?Z():F()})).attr("y2",(function(t,n){return p("violin"!=r?e(t):y(t))})).style("opacity",(function(){return D?"0":"1"}))})),[w,x].forEach((function(e){var t=e===w?"low":"high";C.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),H.call("elementMouseover",this,{value:"low"==t?"Lower whisker":"Upper whisker",series:{key:e(r).toFixed(2),color:g(r)||Y(r,o)},e:n})})).on("mouseout",(function(n,r,i,o){d3.select(this.parentNode).selectAll("line.nv-distroplot-"+t).classed("hover",!1),H.call("elementMouseout",this,{value:"low"==t?"Lower whisker":"Upper whisker",series:{key:e(r).toFixed(2),color:g(r)||Y(r,o)},e:n})})).on("mousemove",(function(e,t){H.call("elementMousemove",this,{e:event})}))})),C.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?-P():0)+")"+("left"==e?"":" scale(1,-1)"))}))})),C.selectAll(".nv-distribution-line").style("fill","none"),C.selectAll(".nv-distribution-area").style("stroke","none").style("opacity",.7)})),O.each((function(e,t){var n,i,o,s,a,l,c,u=d3.select(this),d="box"==r?(n=B(),i=z(),o=F(),s=e,c="mean"==I?_(s):y(s),M?[{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){O.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?-P():0)+")"+("left"==e?"":" scale(1,-1)")).style("opacity",r?"1":"0"),O.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(P()/2).curve(f)).attr("transform","rotate(90,0,0) translate(0,"+("left"==e?-P():0)+")"+("left"==e?"":" scale(1,-1)")).style("opacity",r?"1":"0")})):(O.selectAll(".nv-distribution-area").watchTransition(X,"nv-distribution-area: distroplots").style("opacity",r?"1":"0"),O.selectAll(".nv-distribution-line").watchTransition(X,"nv-distribution-line: distroplots").style("opacity",r?"1":"0"))})),O.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),H.call("elementMouseover",this,{key:t.key,value:"Group "+t.key+" stats",series:[{key:"max",value:k(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q3",value:b(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q2",value:y(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q1",value:v(t).toFixed(2),color:g(t)||Y(t,r)},{key:"min",value:S(t).toFixed(2),color:g(t)||Y(t,r)},{key:"mean",value:_(t).toFixed(2),color:g(t)||Y(t,r)},{key:"std. dev.",value:E(t).toFixed(2),color:g(t)||Y(t,r)},{key:"count",value:t.values.count,color:g(t)||Y(t,r)},{key:"num. outliers",value:t.values.num_outlier,color:g(t)||Y(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(),H.call("elementMouseout",this,{key:t.key,value:"Group "+t.key+" stats",series:[{key:"max",value:k(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q3",value:b(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q2",value:y(t).toFixed(2),color:g(t)||Y(t,r)},{key:"Q1",value:v(t).toFixed(2),color:g(t)||Y(t,r)},{key:"min",value:S(t).toFixed(2),color:g(t)||Y(t,r)},{key:"mean",value:_(t).toFixed(2),color:g(t)||Y(t,r)},{key:"std. dev.",value:E(t).toFixed(2),color:g(t)||Y(t,r)},{key:"count",value:t.values.count,color:g(t)||Y(t,r)},{key:"num. outliers",value:t.values.num_outlier,color:g(t)||Y(t,r)}],data:t,index:t.index,e:e})})).on("mousemove",(function(e,t,n){H.call("elementMousemove",this,{e:e})})),C.append("line").attr("class",(function(e){return"nv-distroplot-middle"})),O.selectAll("line.nv-distroplot-middle").watchTransition(X,"nv-distroplot-x-group: distroplots line").attr("x1",M?z:"violin"!=r?B:z()).attr("y1",(function(e,t,n){return p("mean"==I?_(e):y(e))})).attr("x2",M?Z:"violin"!=r?function(){return F()+P()/2}:Z()).attr("y2",(function(e,t){return p("mean"==I?_(e):y(e))})).style("opacity",I?"1":"0"),O.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),H.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");H.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){H.call("elementMousemove",this,{e:e})}));var J=O.selectAll("g.nv-distroplot-observation").data((function(e){return e.values.observations}),(function(e){return e.object_constancy})),Q=J.enter().append("g").attr("class","nv-distroplot-observation");Q.append("circle").style({opacity:0}),Q.append("line").style("stroke-width",1).style({stroke:d3.rgb(85,85,85),opacity:0}),J.exit().remove(),J.attr("class",(function(e){return"nv-distroplot-observation "+(W(e)&&"box"==r?"nv-distroplot-outlier":"nv-distroplot-non-outlier")})),"line"==T?O.selectAll("g.nv-distroplot-observation line").watchTransition(X,"nv-distrolot-x-group: nv-distoplot-observation").attr("x1",z()+P()/4).attr("x2",Z()-P()/4).attr("y1",(function(e){return p(e.datum)})).attr("y2",(function(e){return p(e.datum)})):(O.selectAll("g.nv-distroplot-observation circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").attr("cy",(function(e){return p(e.datum)})).attr("r",j),O.selectAll("g.nv-distroplot-observation circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").attr("cx",(function(e){return"swarm"==T?e.x+P()/2:"random"==T?P()/2+e.randX*P()/2:P()/2}))),!1!==T&&(L?(O.selectAll(".nv-distroplot-outlier "+("line"==T?"line":"circle")).watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",1),O.selectAll(".nv-distroplot-non-outlier "+("line"==T?"line":"circle")).watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",0)):O.selectAll("line"==T?"line":"circle").watchTransition(X,"nv-distroplot: nv-distroplot-observation").style("opacity",1)),O.selectAll(".nv-distroplot-observation"+("line"==T?" circle":" line")).watchTransition(X,"nv-distroplot: nv-distoplot-observation").style("opacity",0),O.selectAll(".nv-distroplot-observation").on("mouseover",(function(e,t,n,i){setCoordinates(e.pageX,e.pageY);var o=d3.select(this);if(!L||"box"!=r||W(t)){var s=d3.select(this.parentNode).style("fill");o.classed("hover",!0),H.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),H.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){H.call("elementMousemove",this,{e:e})}))})),X.renderEnd("nv-distroplot-x-group immediate"),J}return J.dispatch=H,J.options=e.utils.optionsFunc.bind(J),J._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 T},set:function(e){T=e}},whiskerDef:{get:function(){return C},set:function(e){C=e}},notchBox:{get:function(){return M},set:function(e){M=e}},hideWhiskers:{get:function(){return D},set:function(e){D=e}},colorGroup:{get:function(){return A},set:function(e){A=e}},centralTendency:{get:function(){return I},set:function(e){I=e}},bandwidth:{get:function(){return R},set:function(e){R=e}},clampViolin:{get:function(){return P},set:function(e){P=e}},resolution:{get:function(){return F},set:function(e){F=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 L},set:function(e){L=e}},jitter:{get:function(){return O},set:function(e){O=e}},squash:{get:function(){return N},set:function(e){N=e}},pointSize:{get:function(){return j},set:function(e){j=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(V.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 Y},set:function(t){Y=e.utils.getColor(t)}},duration:{get:function(){return B},set:function(e){B=e,X.reset(B)}}}),e.utils.initOptions(J),J},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,x,S,k,E,T,C=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 M(u){return C.reset(),C.models(i),d&&C.models(o),h&&C.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,A=(c||parseInt(m.style("height"))||400)-a.top-a.bottom;if(void 0===t&&(t=JSON.parse(JSON.stringify(u))),M.update=function(){b.call("beforeUpdate",g);var e,n=i.options();(w!==n.colorGroup()||x!==n.x()||S!==n.y()||E!==n.bandwidth()||k!==n.resolution()||T!==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(M)},M.container=this,"function"!=typeof d3.beeswarm&&"swarm"==M.options().observationType())return a.left,y='Please include the library https://github.com/Kcnarf/d3-beeswarm to use "swarm".',e.utils.noData(M,m),M;if(!u||!u.length)return e.utils.noData(M,m),M;m.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale().clamp(!0);var I=m.selectAll("g.nv-wrap.nv-distroPlot").data([u]),L=I.enter().append("g").attr("class","nvd3 nv-wrap nv-distroPlot").append("g"),O=L.append("defs"),N=I.select("g");if(L.append("g").attr("class","nv-x nv-axis"),L.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),L.append("g").attr("class","nv-distroWrap"),L.attr("transform","translate("+a.left+","+a.top+")"),N.watchTransition(C,"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(A),N.select(".nv-distroWrap").datum(u).transition().call(i),O.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(-A),N.select(".nv-x.nv-axis").attr("transform","translate(0,"+r.range()[0]+")"),N.select(".nv-x.nv-axis").call(o);var R=N.select(".nv-x.nv-axis").select("g.nvd3.nv-wrap.nv-axis").selectAll("g");f&&R.selectAll("text").attr("transform",(function(e,t,n){return"translate(0,"+(n%2==0?"5":"17")+")"}))}h&&(s.scale(r)._ticks(Math.floor(A/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(),x=i.options().x(),S=i.options().y(),E=i.options().bandwidth(),k=i.options().resolution(),T=i.options().clampViolin()})),C.renderEnd("nv-distroplot chart immediate"),M}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()})),M.dispatch=b,M.distroplot=i,M.xAxis=o,M.yAxis=s,M.tooltip=v,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}},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,C.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(M,i),e.utils.initOptions(M),M},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),x=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 S=_.selectAll("g.nv-focus").data([y]).enter().append("g").attr("class","nvd3 nv-focus");S.attr("transform","translate("+a.left+","+a.top+")");var k=S.append("g"),E=k.append("g").attr("class","nv-background").append("rect"),T=k.append("g").attr("class","nv-x nv-axis");T=_.selectAll(".nv-focus").select(".nv-x.nv-axis");var C=k.append("g").attr("class","nv-y nv-axis");C=_.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 M=k.append("g").attr("class","nv-brushBackground");M=_.selectAll(".nv-focus").select(".nv-brushBackground");var A=k.append("g").attr("class","nv-x nv-brush");A=_.selectAll(".nv-focus").select(".nv-x.nv-brush"),p&&C.attr("transform","translate("+w+",0)"),E.attr("width",w).attr("height",x),t.width(w).height(x).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=M.selectAll("g").data([f||s.extent()]),L=I.enter().append("g");L.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",x),L.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",x).merge(k);var O=A.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)}O.selectAll("rect").attr("height",x),O.selectAll(".resize").append("path").attr("d",(function(e){var t=+("e"==e),n=t?1:-1,r=x/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),E.attr("width",w).attr("height",x).merge(k),d&&(i.scale(n)._ticks(e.utils.calcTicksX(w/100,y)),i.tickSizeInner(-x),T.attr("transform","translate(0,"+r.range()[0]+")"),T.transition().call(i)),h&&(o.scale(r)._ticks(e.utils.calcTicksY(x/36,y)),o.tickSizeInner(-w),C.call(o)),T.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 x(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(x,i),x;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+")"}))}))})),x}return x.options=e.utils.optionsFunc.bind(x),x._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}}}),x.dispatch=o,x.tooltip=a,e.utils.initOptions(x),x},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 x=w.selectAll("g.nv-legend").data([v]).enter().append("g").attr("class","nvd3 nv-legend");x.attr("transform","translate("+t.left+","+t.top+")");var S=x.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}))})),E=k.enter().append("g").attr("class","nv-series");if("classic"==g)P=E.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5).select("circle");else if("furious"==g){var T=E.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3);P=T.select("rect"),T.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 C=E.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");switch((E=k.merge(E)).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=E.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=E.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}))})}})),E.classed("nv-disabled",(function(e){return e.userDisabled})),E.exit().remove(),C.attr("fill",b(d,N)).text((function(e){return o(i(e))})),g){case"furious":F=23;break;case"classic":F=20}if(l){var D=[];E.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 M=0,A=0,I=[];A<y&&M<D.length;)I[M]=D[M],A+=D[M++];for(0===M&&(M=1);A>y&&M>1;){I=[],M--;for(var L=0;L<D.length;L++)D[L]>(I[L%M]||0)&&(I[L%M]=D[L]);A=I.reduce((function(e,t,n,r){return e+t}))}for(var O=[],N=0,R=0;N<M;N++)O[N]=R,R+=I[N];E.attr("transform",(function(e,t){return"translate("+O[t%M]+","+(5+Math.floor(t/M)*F)+")"})),u?S.attr("transform","translate("+(n-t.right-A)+","+t.top+")"):S.attr("transform","translate(0,"+t.top+")"),r=t.top+t.bottom+Math.ceil(D.length/M)*F}else{var P,F,j,Y=5,V=5,H=0;E.attr("transform",(function(e,r){var i=d3.select(this).select("text").node().getComputedTextLength()+c;return j=V,n<t.left+t.right+j+i&&(V=j=5,Y+=F),(V+=i)>H&&(H=V),"translate("+j+","+Y+")"})),S.attr("transform","translate("+(n-t.right-H)+","+t.top+")"),r=t.top+t.bottom+Y+15}"furious"==g&&P.attr("width",(function(e,t){return C[0][t].getComputedTextLength()+27})).attr("height",18).attr("y",-9).attr("x",-15),P.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},x=function(e){return e.value},S=!0,k=function(e){return"number"==typeof e?e.toFixed(0):e},E=!1,T=2,C=4,D=!1,M=!0,A=e.utils.defaultColor(),I=e.utils.defaultColor(),L="#bcbcbc",O="",N=5,R=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),P=250,F=function(e){return n/3},j=function(e){return r/3},Y=!1;function V(e){var t=d3.median(e),n=e.map((function(e){return Math.abs(e-t)}));return d3.median(n)}function H(e){var t=D?ie(e):x(e);return B()&&!isNaN(t)||void 0!==t?b(t):L}function B(){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):x(e));return B()&&!isNaN(t)||void 0!==t?t:O};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=[],J=[],Q=e.utils.renderWatch(R,P),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 Q.reset(),g.each((function(g){$={},G={},K=[],Z=[],X=[],J=[],k=[],L={},O=0,P=0,se=0,g.forEach((function(e){var t,n,r,i=_(e),o=w(e),s=x(e);i in $||($[i]=O,O++,L[i]={},"function"==typeof c&&Z.push(c(e))),o in G||(G[o]=P,P++,L[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=J,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.")):(J.push(te),L[i][o]=e)})),K=K.sort(),ae=[],Object.keys(G).forEach((function(e){Object.keys($).forEach((function(t){var n=L[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(x(e))):"col"==t?(ne(e)in n||(n[ne(e)]=[]),n[ne(e)].push(x(e))):null==t&&(0 in n||(n[0]=[]),n[0].push(x(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]):V(s[c]));e.forEach((function(e,t){if(B()){if("row"==o)var n=re(e);else if("col"==o)n=ne(e);else if(null==o)n=0;var i=x(e)-a[n];e._cellPos.norm=r?i/l[n]:i}else e._cellPos.norm=x(e)}))}else D=!1;return e}(ae):ae;var k,L,O,P,te,se,ae,le=f-p.left-p.right,ce=m-p.top-p.bottom;r=le/Object.keys($).length,n=E?r/E:ce/Object.keys(G).length,E&&(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-C/2]),y.domain(s||q(G)).range(l||[0,ce-C/2]),(b=B()?d3.scaleQuantize():d3.scaleOrdinal()).domain(h||(B()?D?d3.extent(t,(function(e){return ie(e)})):d3.extent(K):B()?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(Q,"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,"+(-F()-C-N)+")"}));var me=de.select(".xMetaWrap").selectAll(".x-meta").data(Z);me.enter().append("rect").attr("class","x-meta meta").attr("width",r-C).attr("height",F()).attr("transform","translate(0,0)").attr("fill",(function(e){return A(e)})),de.append("g").attr("class","yMetaWrap").attr("transform",(function(e,t){return"translate("+(-j()-C-N)+",0)"}));var ge=de.select(".yMetaWrap").selectAll(".y-meta").data(X);ge.enter().append("rect").attr("class","y-meta meta").attr("width",j()).attr("height",n-C).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(Q,"heatMap: rect").attr("width",r-C).attr("height",n-C).attr("rx",T).attr("ry",T).style("stroke",(function(e){return H(e)})),fe.attr("class",(function(e){return isNaN(x(e))?"nv-cell cell-missing":"nv-cell"})).watchTransition(Q,"heatMap: cells").style({opacity:1,fill:function(e){return H(e)}}).attr("transform",(function(e){return"translate("+ne(e)*r+","+re(e)*n+")"})).attr("class",(function(e){return isNaN(x(e))?"nv-cell cell-missing":"nv-cell"})),fe.exit().remove(),fe.selectAll("text").watchTransition(Q,"heatMap: cells text").text((function(e){return z(e)})).attr("x",(function(e){return(r-C)/2})).attr("y",(function(e){return(n-C)/2})).style("fill",(function(e){return function(e){if(!M)return"black";var t=d3.rgb(e);return(299*t.r+587*t.g+114*t.b)/1e3>=128?"#404040":"#EDEDED"}(H(e))})).style("opacity",(function(){return S?1:0})),de.selectAll(".verticalGrid").watchTransition(Q,"heatMap: gridLines").attr("y1",0).attr("y2",ce-C).attr("x1",(function(e){return e*r-C/2})).attr("x2",(function(e){return e*r-C/2}));var ye=Object.keys(G).length;de.selectAll(".horizontalGrid").watchTransition(Q,"heatMap: gridLines").attr("x1",(function(e){return 0==e||e==ye?-C:0})).attr("x2",(function(e){return 0==e||e==ye?le:le-C})).attr("y1",(function(e){return e*n-C/2})).attr("y2",(function(e){return e*n-C/2})),de.select(".cellGrid").watchTransition(Q,"heatMap: gridLines").style({"stroke-width":C,opacity:function(){return Y?1:1e-6}}),de.selectAll(".x-meta"),de.selectAll(".y-meta");var be=de.selectAll(".meta");me.watchTransition(Q,"heatMap: xMetaRect").attr("width",r-C).attr("height",F()).attr("transform",(function(e,t){return"translate("+t*r+",0)"})),ge.watchTransition(Q,"heatMap: yMetaRect").attr("width",j()).attr("height",n-C).attr("transform",(function(e,t){return"translate(0,"+t*n+")"})),de.select(".xMetaWrap").watchTransition(Q,"heatMap: xMetaWrap").attr("transform",(function(e,t){return"translate(0,"+(-F()-C-N)+")"})).style("opacity",(function(){return!1!==c?1:0})),de.select(".yMetaWrap").watchTransition(Q,"heatMap: yMetaWrap").attr("transform",(function(e,t){return"translate("+(-j()-C-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))})),R.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+C>=le||i+C>=ce||r<0||i<0)&&(U(),R.call("elementMouseout",this,{e:d3.event}))})).on("mousemove",(function(e,t){R.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),R.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+C>=le||!n&&o+C>=ce)&&(U(),R.call("elementMouseout",this,{e:d3.event}))})).on("mousemove",(function(e,t){R.call("elementMousemove",this,{e:d3.event})}))})),Q.renderEnd("heatMap immediate"),se}return se.dispatch=R,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 S},set:function(e){S=e}},x:{get:function(){return _},set:function(e){_=e}},y:{get:function(){return w},set:function(e){w=e}},cellValue:{get:function(){return x},set:function(e){x=e}},missingDataColor:{get:function(){return L},set:function(e){L=e}},missingDataLabel:{get:function(){return O},set:function(e){O=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 E},set:function(e){E=e}},cellRadius:{get:function(){return T},set:function(e){T=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 C},set:function(e){C=e}},highContrastText:{get:function(){return M},set:function(e){M=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 F},set:function(e){F=e}},yMetaWidth:{get:function(){return j},set:function(e){j=e}},showGrid:{get:function(){return Y},set:function(e){Y=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 P},set:function(e){P=e,Q.reset(P)}}}),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 x(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 S=e.utils.availableWidth(c,y,l),k=e.utils.availableHeight(u,y,l);if(x.update=function(){b.call("beforeUpdate",this),y.transition().duration(_).call(x)},x.container=this,!o||!o.length)return e.utils.noData(x,y),x;y.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var E=y.selectAll("g.nv-wrap").data([o]),T=E.enter().append("g");T.attr("transform","translate("+l.left+","+l.top+")");var C=T.attr("class","nvd3 nv-wrap").append("g"),D=E.select("g"),M=C.append("g").attr("class","nv-heatMap"),A=C.append("g").attr("class","nv-legendWrap"),I=C.append("g").attr("class","nv-x nv-axis");I=y.selectAll("g.nv-wrap.nv-heatMap").select(".nv-x");var L=C.append("g").attr("class","nv-y nv-axis");A=y.selectAll("g.nv-wrap").select(".nv-legendWrap"),r.width(S).height(k),M.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(S/100,o)),s.tickSizeInner(-k);var O=I;O.call(s).watchTransition(w,"heatMap: axisX").selectAll(".tick").style("opacity",(function(){return p?1:0})),O.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()&&(O.selectAll("text").style("text-anchor","middle"),N=-r.xMetaHeight()()/2-r.metaOffset()+3),"bottom"==g){if(O.watchTransition(w,"heatMap: axisX").attr("transform","translate(0,"+(k-N)+")"),!1!==r.xMeta()){var R=k+r.metaOffset()+r.cellBorderWidth();D.select(".xMetaWrap").watchTransition(w,"heatMap: xMetaWrap").attr("transform",(function(e,t){return"translate(0,"+R+")"}))}}else O.watchTransition(w,"heatMap: axisX").attr("transform","translate(0,"+N+")");a.scale(n)._ticks(e.utils.calcTicksY(k/36,o)),a.tickSizeInner(-S);var P=L;P.call(a).watchTransition(w,"heatMap: axisY").selectAll(".tick").style("opacity",(function(){return f?1:0}));var F=-5;if("function"==typeof r.yMeta()&&(P.selectAll("text").style("text-anchor","middle"),F=-r.yMetaWidth()()/2-r.metaOffset()),"right"==m){if(P.attr("transform","translate("+(S-F)+",0)"),!1!==r.yMeta()){R=S+r.metaOffset()+r.cellBorderWidth();D.select(".yMetaWrap").watchTransition(w,"heatMap: yMetaWrap").attr("transform",(function(e,t){return"translate("+R+",0)"}))}}else P.attr("transform","translate("+F+",0)");var j,Y=A;i.width(S).color(r.colorScale().range());var V=("string"==typeof(j=r.colorScale()).domain()[0]?j.domain():j.range().map((function(e){var t=j.invertExtent(e);return null===t[0]&&(t[0]=j.domain()[0]),null===t[1]&&(t[1]=j.domain()[1]),t}))).map((function(e){return Array.isArray(e)?{key:e[0].toFixed(1)+" - "+e[1].toFixed(1)}:{key:e}}));Y.datum(V).call(i).attr("transform","translate(0,"+("top"==g?k:-30)+")"),Y.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"),x}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()})),x.dispatch=b,x.heatMap=r,x.legend=i,x.xAxis=s,x.yAxis=a,x.tooltip=o,x.options=e.utils.optionsFunc.bind(x),x._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(x,r),e.utils.initOptions(x),x},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 x(S){return S.each((function(x){w.reset(),c=d3.select(this);var S=e.utils.availableWidth(s,c,o),k=e.utils.availableHeight(a,c,o);e.utils.initSVG(c),u.domain(t||d3.extent(x[0].values.map(h).concat(f))),g?u.range(r||[.5*S/x[0].values.length,S*(x[0].values.length-.5)/x[0].values.length]):u.range(r||[0,S]),d.domain(n||d3.extent(x[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 E=c.selectAll("g.nv-wrap.nv-historicalBar-"+l).data([x[0].values]).enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+l);E.attr("transform","translate("+o.left+","+o.top+")");var T=E.append("defs"),C=E.append("g"),D=E.select("g"),M=C.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})})),T.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect").attr("width",S).attr("height",k),D.attr("clip-path",v?"url(#nv-chart-clip-path-"+l+")":"");var A=M.selectAll(".nv-bar").data((function(e){return e}),(function(e,t){return h(e,t)}));A.exit().remove();var I=A.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))-S/x[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))-S/x[0].values.length*.45)+",0)"})).attr("width",S/x[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"),x}return x.highlightPoint=function(e,t){c.select(".nv-bars .nv-bar-0-"+e).classed("hover",t)},x.clearHighlights=function(){c.select(".nv-bars .nv-bar.hover").classed("hover",!1)},x.dispatch=b,x.options=e.utils.optionsFunc.bind(x),x._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(x),x},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,x=null,S=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 E=e.utils.renderWatch(S,0);function T(t){return t.each((function(c){E.reset(),E.models(i),g&&E.models(o),v&&E.models(s);var x,C=d3.select(this);e.utils.initSVG(C);var D=e.utils.availableWidth(p,C,u),M=e.utils.availableHeight(f,C,u);if(T.update=function(){C.transition().duration(k).call(T)},T.container=this,_.disabled=c.map((function(e){return!!e.disabled})),!w)for(x in w={},_)_[x]instanceof Array?w[x]=_[x].slice(0):w[x]=_[x];if(!c||!c.length||!c.filter((function(e){return e.values.length})).length)return e.utils.noData(T,C),T;C.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale();var A=C.selectAll("g.nv-wrap.nv-historicalBarChart").data([c]),I=A.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart"),L=I.append("g");I.select("g");var O=L.append("g").attr("class","nv-x nv-axis");O=C.selectAll("g.nv-wrap.nv-historicalBarChart").select(".nv-x");var N=L.append("g").attr("class","nv-y nv-axis"),R=L.append("g").attr("class","nv-barsWrap"),P=L.append("g").attr("class","nv-legendWrap"),F=L.append("g").attr("class","nv-interactive");P=C.selectAll("g.nv-wrap.nv-historicalBarChart").select(".nv-legendWrap"),m?(a.width(D),P.datum(c).call(a),d||a.height()===u.top||(u.top=a.height(),M=e.utils.availableHeight(f,C,u)),P.attr("transform","translate(0,"+-u.top+")")):P.selectAll("*").remove(),I.attr("transform","translate("+u.left+","+u.top+")"),y&&N.attr("transform","translate("+D+",0)"),b&&(l.width(D).height(M).margin({left:u.left,top:u.top}).svgContainer(C).xScale(n),F.call(l)),i.width(D).height(M).color(c.map((function(e,t){return e.color||h(e,t)})).filter((function(e,t){return!c[t].disabled}))),R.datum(c.filter((function(e){return!e.disabled}))).transition().call(i),g&&(o.scale(n)._ticks(e.utils.calcTicksX(D/100,c)),o.tickSizeInner(-M),O.attr("transform","translate(0,"+r.range()[0]+")"),O.transition().call(o)),v&&(s.scale(r)._ticks(e.utils.calcTicksY(M/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,T.x()),i.highlightPoint(r,!0);var l=o.values[r];void 0!==l&&(void 0===n&&(n=l),void 0===a&&(a=T.xScale()(T.x()(l,r))),u.push({key:o.key,value:T.y()(l,r),color:h(o,o.seriesIndex),data:o.values[r]}))}));var d=o.tickFormat()(T.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){S.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,A.selectAll(".nv-series").classed("disabled",!1),e})),_.disabled=c.map((function(e){return!!e.disabled})),S.call("stateChange",this,_),t.transition().call(T)})),a.dispatch.on("legendDblclick",(function(e){c.forEach((function(e){e.disabled=!0})),e.disabled=!1,_.disabled=c.map((function(e){return!!e.disabled})),S.call("stateChange",this,_),T.update()})),S.on("changeState",(function(e){void 0!==e.disabled&&(c.forEach((function(t,n){t.disabled=e.disabled[n]})),_.disabled=e.disabled),T.update()}))})),E.renderEnd("historicalBarChart immediate"),T}return i.dispatch.on("elementMouseover.tooltip",(function(e){e.series={key:T.x()(e.data),value:T.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()})),T.dispatch=S,T.bars=i,T.legend=a,T.xAxis=o,T.yAxis=s,T.interactiveLayer=l,T.tooltip=c,T.options=e.utils.optionsFunc.bind(T),T._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 x},set:function(e){x=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,E.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&&T.interactive(!1)}}}),e.utils.inheritOptions(T,i),e.utils.initOptions(T),T},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 x=y.selectAll("g.nv-legend").data([s]).enter().append("g").attr("class","nvd3 nv-legend");u?x.attr("transform","translate("+-t.right+","+t.top+")"):x.attr("transform","translate("+t.left+","+t.top+")");var S=x.append("g");S.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}))})),E=k.enter().append("g").attr("class","nv-series");switch(E=k.merge(E),g){case"furious":P=23;break;case"classic":P=20}"classic"==g?(E.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),R=E.select(".nv-legend-symbol")):"furious"==g&&(E.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),R=E.select(".nv-legend-symbol"),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)").each((function(e,t){d3.select(this).selectAll("path").attr("stroke",b(e,t))}))),E.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var T=E.select("text.nv-legend-text");E.on("mouseover",(function(e,t,n){m.call("legendMouseover",E,e,t,n)})).on("mouseout",(function(e,t,n){m.call("legendMouseout",E,e,t,n)})).on("click",(function(e,t,n){m.call("legendClick",E,e,t,n);var r=E.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",E,e,t,n),d)){var r=E.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",E,{disabled:r.map((function(e){return!!e.disabled}))})}})),E.classed("nv-disabled",(function(e){return e.userDisabled})),E.exit().remove(),T.attr("fill",b).text((function(e){return o(i(e))}));var C=0;if(l){var D=[];E.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 M=0,A=[];for(C=0;C<v&&M<D.length;)A[M]=D[M],C+=D[M++];for(0===M&&(M=1);C>v&&M>1;){A=[],M--;for(var I=0;I<D.length;I++)D[I]>(A[I%M]||0)&&(A[I%M]=D[I]);C=A.reduce((function(e,t,n,r){return e+t}))}for(var L=[],O=0,N=0;O<M;O++)L[O]=N,N+=A[O];E.attr("transform",(function(e,t){return"translate("+L[t%M]+","+(5+Math.floor(t/M)*P)+")"})),u?S.attr("transform","translate("+(n-t.right-C)+","+t.top+")"):S.attr("transform","translate(0,"+t.top+")"),r=t.top+t.bottom+Math.ceil(D.length/M)*P}else{var R,P,F,j=5,Y=5,V=0;E.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,j+=P),(Y+=i)>V&&(V=Y),C<F+V&&(C=F+V),"translate("+F+","+j+")"})),S.attr("transform","translate("+(n-t.right-V)+","+t.top+")"),r=t.top+t.bottom+j+15}"furious"==g&&(R.attr("width",(function(e,t){return E.select("text.nv-legend-text").nodes()[t].getComputedTextLength()+27})).attr("height",18).attr("y",-9).attr("x",-15),S.insert("rect",":first-child").attr("class","nv-legend-bg").attr("fill","#eee").attr("opacity",0),S.select(".nv-legend-bg").transition().duration(300).attr("x",-P).attr("width",C+P-12).attr("height",r+10).attr("y",-t.top-10).attr("opacity",f?1:0)),R.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+")"),x=w.append("defs"),S=w.append("g");S.append("g").attr("class","nv-groups"),S.append("g").attr("class","nv-scatterWrap");var k=a.select(".nv-scatterWrap");r.width(g).height(_),k.call(r),x.append("clipPath").attr("id","nv-edge-clip-"+r.id()).append("rect").attr("width",g).attr("height",_>0?_:0),S.attr("clip-path",p?"url(#nv-edge-clip-"+r.id()+")":""),k.attr("clip-path",p?"url(#nv-edge-clip-"+r.id()+")":"");var E=a.select(".nv-groups").selectAll(".nv-group").data((function(e){return e}),(function(e){return e.key})),T=E.enter().append("g").style("stroke-opacity",1e-6).style("stroke-width",(function(e){return e.strokeWidth||1.5})).style("fill-opacity",1e-6);E.exit().remove(),(T=E.merge(T)).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)})),T.watchTransition(b,"line: groups").style("stroke-opacity",1).style("fill-opacity",(function(e){return e.fillOpacity||.5}));var C=a.select(".nv-groups").selectAll(".nv-group").selectAll("path.nv-area").data((function(e){return h(e)?[e]:[]})),D=C.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])}));E.exit().selectAll("path.nv-area").remove(),(D=C.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 M=T.selectAll("path.nv-line").data((function(e){return[e.values]})),A=M.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)))})));(A=M.merge(A)).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,x=e.utils.state(),S=null,k=null,E=d3.dispatch("stateChange","changeState","renderEnd"),T=250;d3.transition().duration(T).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 C=e.utils.renderWatch(E,T);function D(l){return C.reset(),C.models(r),v&&C.models(i),y&&C.models(o),l.each((function(l){var k,C=d3.select(this);e.utils.initSVG(C);var M,A,I=e.utils.availableWidth(p,C,u),L=e.utils.availableHeight(f,C,u)-(w?c.height():0);if(D.update=function(){0===T?C.call(D):C.transition().duration(T).call(D)},D.container=this,x.setter((M=l,function(e){void 0!==e.active&&M.forEach((function(t,n){t.disabled=!e.active[n]}))}),D.update).getter((A=l,function(){return{active:A.map((function(e){return!e.disabled}))}})).update(),x.disabled=l.map((function(e){return!!e.disabled})),!S)for(k in S={},x)x[k]instanceof Array?S[k]=x[k].slice(0):S[k]=x[k];if(!l||!l.length||!l.filter((function(e){return e.values.length})).length)return e.utils.noData(D,C),D;C.selectAll(".nv-noData").remove(),c.dispatch.on("brush",(function(e){K(e)})),t=r.xScale(),n=r.yScale();var O=l.filter((function(e){return!e.disabled})),N=C.selectAll("g.nv-wrap.nv-lineChart").data([l]).enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart"),R=N.append("g"),P=R,F=R.append("g").attr("class","nv-legendWrap");F=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-legendWrap");var j=R.append("g").attr("class","nv-focus"),Y=j.append("g").attr("class","nv-background").append("rect"),V=j.append("g").attr("class","nv-x nv-axis");V=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-x");var H=j.append("g").attr("class","nv-y nv-axis");H=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-y");var B=j.append("g").attr("class","nv-linesWrap");B=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-linesWrap");var U=j.append("g").attr("class","nv-interactive");U=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-interactive");var z=R.append("g").attr("class","nv-focusWrap");z=C.selectAll("g.nv-wrap.nv-lineChart").select(".nv-focusWrap"),m?(s.width(I),F.datum(l).call(s),"bottom"===g?(u.bottom=i.height()+s.height(),L=e.utils.availableHeight(f,C,u),F.attr("transform","translate(0,"+(L+i.height())+")")):"top"===g&&(d||s.height()===u.top||(u.top=s.height(),L=e.utils.availableHeight(f,C,u)-(w?c.height():0)),F.attr("transform","translate(0,"+-u.top+")"))):F.selectAll("*").remove(),N.attr("transform","translate("+u.left+","+u.top+")"),b&&H.attr("transform","translate("+I+",0)"),_&&(a.width(I).height(L).margin({left:u.left,top:u.top}).svgContainer(C).xScale(t),U.call(a)),Y.attr("width",I).attr("height",L),r.width(I).height(L).color(l.map((function(e,t){return e.color||h(e,t)})).filter((function(e,t){return!l[t].disabled})));var q=C.selectAll("g.nv-linesWrap.nvd3-svg").data([O]);function W(){v&&V.transition().duration(T).call(i)}function $(){y&&H.transition().duration(T).call(o)}if(q=q.merge(B),v&&(i.scale(t)._ticks(e.utils.calcTicksX(I/100,l)),i.tickSizeInner(-L)),y&&(o.scale(n)._ticks(e.utils.calcTicksY(L/36,l)),o.tickSizeInner(-I)),V.attr("transform","translate(0,"+L+")"),w){c.width(I),z.style("display",w?"initial":"none").attr("transform","translate(0,"+(L+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){P.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(T).call(r),W(),$()}s.dispatch.on("stateChange",(function(e){for(var t in e)x[t]=e[t];E.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()})),E.on("changeState",(function(e){void 0!==e.disabled&&l.length===e.disabled.length&&(l.forEach((function(t,n){t.disabled=e.disabled[n]})),x.disabled=e.disabled),D.update()}))})),C.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=E,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=x,D.dispatch=E,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 S},set:function(e){S=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 T},set:function(e){T=e,C.reset(T),d3.transition().duration(T).ease(d3.easeLinear),r.duration(T),c.duration(T),i.duration(T),o.duration(T)}},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,x={top:0,right:30,bottom:20,left:60},S=null,k=null,E=function(e){return e.x},T=function(e){return e.y},C=e.utils.defaultColor(),D=!0,M=!0,A=!1,I=!0,L=50,O=null,N=null,R=d3.dispatch("brush","stateChange","changeState"),P=0,F=(d3.transition().duration(P).ease(d3.easeLinear),e.utils.state()),j=null,Y=" (left axis)",V=" (right axis)",H=!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 B=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(S,z,_),G=e.utils.availableHeight(k,z,_)-(M?L:0),K=L-x.top-x.bottom;if(U.update=function(){z.transition().duration(P).call(U)},U.container=this,F.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(),F.disabled=b.map((function(e){return!!e.disabled})),!j)for(N in j={},F)F[N]instanceof Array?j[N]=F[N].slice(0):j[N]=F[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&&!H?c.xScale():a.xScale(),n=h.scale(),r=H?a.yScale():c.yScale(),i=H?c.yScale():a.yScale(),o=H?l.yScale():u.yScale(),s=H?u.yScale():l.yScale();var J=b.filter((function(e){return!e.disabled&&(H?!e.bar:e.bar)})).map((function(e){return e.values.map((function(e,t){return{x:E(e,t),y:T(e,t)}}))})),Q=b.filter((function(e){return!e.disabled&&(H?e.bar:!e.bar)})).map((function(e){return e.values.map((function(e,t){return{x:E(e,t),y:T(e,t)}}))}));t.range([0,$]),n.domain(d3.extent(d3.merge(J.concat(Q)),(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=H?e.originalKey+(e.bar?V:Y):e.originalKey+(e.bar?Y:V),e}))).call(v),w||v.height()===_.top||(_.top=v.height(),G=e.utils.availableHeight(k,z,_)-L),re.attr("transform","translate("+be+","+-_.top+")")}else re.selectAll("*").remove();ee.attr("transform","translate("+_.left+","+_.top+")"),ue.style("display",M?"initial":"none"),u.width($).height(K).color(b.map((function(e,t){return e.color||C(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||C(e,t)})).filter((function(e,t){return!b[t].disabled&&!b[t].bar})));var _e=fe.datum(Z.length?Z:[{values:[]}]),we=me.datum(B(X)?[{values:[]}]:X.filter((function(e){return!e.disabled})));ue.attr("transform","translate(0,"+(G+_.bottom+x.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)),A&&(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",Ee),O&&y.extent(O);var xe=ge.selectAll("g").data([O||y.extent()]),Se=xe.enter().append("g");Se.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",K),Se.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",K);var ke=ve.call(y);function Ee(o){O=null===o?null:o.selection;var s,l=null===o?t.domain():o.selection;R.call("brush",this,{extent:l,brush:y}),null!==(s=o)&&y.extent(O),xe.data([null===s?n.domain():O]).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||C(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||C(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(B(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&&!H?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(P).call(d),u.transition().duration(P).call(c),h.transition().duration(P).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)),H?f.tickSizeInner(X.length?0:-$,0):f.tickSizeInner(Z.length?0:-$);var m=Z.length?1:0,g=X.length&&!B(X)?1:0,v=H?g:m,_=H?m:g;se.style("opacity",v),ae.style("opacity",_).attr("transform","translate("+t.range()[1]+",0)"),se.transition().duration(P).call(p),ae.transition().duration(P).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)F[t]=e[t];R.call("stateChange",this,e),U.update()})),R.on("changeState",(function(e){void 0!==e.disabled&&(b.forEach((function(t,n){t.disabled=e.disabled[n]})),F.disabled=e.disabled),U.update()})),Ee(event)})),U}return a.dispatch.on("elementMouseover.tooltip",(function(e){b.duration(100).valueFormatter((function(e,t){return(H?{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(H?{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=R,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 S},set:function(e){S=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 O},set:function(e){O=e}},noData:{get:function(){return N},set:function(e){N=e}},focusEnable:{get:function(){return M},set:function(e){M=e}},focusHeight:{get:function(){return L},set:function(e){L=e}},focusShowAxisX:{get:function(){return I},set:function(e){I=e}},focusShowAxisY:{get:function(){return A},set:function(e){A=e}},legendLeftAxisHint:{get:function(){return Y},set:function(e){Y=e}},legendRightAxisHint:{get:function(){return V},set:function(e){V=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 x},set:function(e){x.top=void 0!==e.top?e.top:x.top,x.right=void 0!==e.right?e.right:x.right,x.bottom=void 0!==e.bottom?e.bottom:x.bottom,x.left=void 0!==e.left?e.left:x.left}},duration:{get:function(){return P},set:function(e){P=e}},color:{get:function(){return C},set:function(t){C=e.utils.getColor(t),v.color(C)}},x:{get:function(){return E},set:function(e){E=e,a.x(e),l.x(e),c.x(e),u.x(e)}},y:{get:function(){return T},set:function(e){T=e,a.y(e),l.y(e),c.y(e),u.y(e)}},switchYAxisOrder:{get:function(){return H},set:function(e){if(H!==e){var t=p;p=f,f=t;var n=m;m=g,g=n}H=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(),x=!1,S=null,k=500,E=.1,T=.75,C=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),D=e.utils.renderWatch(C,k),M=0;function A(I){return D.reset(),I.each((function(A){var I=c-l.left-l.right,L=u-l.top-l.bottom;f=d3.select(this),e.utils.initSVG(f);var O=0;if(x&&A.length&&(x=[{values:A[0].values.map((function(e){return{x:e.x,y:0,series:A[e.seriesIndex],size:.01}}))}]),b){var N=A;A.forEach((function(e,t){e.seriesIndex=t,e.values=e.values.map((function(e,n){return e.index=n,e.seriesIndex=t,e}))}));var R=[];A[0].values.forEach((function(e){R.push({x:e.x})})),A.forEach((function(e,t,n){e.display={y:t,y0:n},e.values.forEach((function(t){R[t.index][e.key]=t.y}))}));var P=A.map((e=>e.key)),F=d3.stack().keys(P).offset(_).value((function(e,t){return e[t]}))(!R.length&&x?x:R),j=[];F.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})),j.push({key:P[t],nonStackable:N[t].nonStackable,values:n})})),j.forEach((function(e,t){e.nonStackable?(A[t].nonStackableSeries=O++,j[t]=A[t]):t>0&&j[t-1].nonStackable&&j[t].values.map((function(e,n){e.y0-=j[t-1].values[n].y,e.y1=e.y0+e.y}))})),A=j}A.forEach((function(e,t){e.values.forEach((function(n){n.series=t,n.seriesIndex=t,n.key=e.key}))})),b&&A.length>0&&A[0].values.map((function(e,t){var n=0,r=0;A.map((function(e,i){if(!A[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 Y=n&&r?[]:A.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(Y).map((function(e){return e.x}))).range(i||[0,I]).paddingInner(E).paddingOuter(E),h.domain(r||d3.extent(d3.merge(Y).map((function(e){var t=e.y;return b&&!A[e.idx].nonStackable&&(t=e.y>0?e.y1:e.y1+e.y),t})).concat(v))).range(o||[L,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 V=f.selectAll("g.nv-wrap.nv-multibar").data([A]).enter().append("g").attr("class","nvd3 nv-wrap nv-multibar");V.attr("transform","translate("+l.left+","+l.top+")");var H=V.append("defs"),B=V.append("g");B.select("g"),B.append("g").attr("class","nv-groups"),H.append("clipPath").attr("id","nv-edge-clip-"+p).append("rect").attr("width",I).attr("height",L),B.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&&A[e.seriesIndex]&&!A[e.seriesIndex].nonStackable&&(r=a(e.y0)),r})).attr("height",0).remove();q.delay&&q.delay((function(e,t){return t*(k/(M+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",T);var W=f.select(".nv-groups").selectAll(".nv-group").selectAll("rect.nv-bar").data((function(e,t){return x&&!A.length?x.values:A[t]?A[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&&!A[e.seriesIndex].nonStackable?0:e.seriesIndex*d.bandwidth()/A.length})).attr("y",(function(e,t,n){return a(b&&!A[e.seriesIndex].nonStackable?e.y0:0)||0})).attr("height",0).attr("width",(function(e,t,n){return d.bandwidth()/(b&&!A[e.seriesIndex].nonStackable?1:A.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),C.call("elementMouseover",this,{data:t,index:t.index,series:A[t.seriesIndex],color:d3.select(this).style("fill")})})).on("mouseout",(function(e,t,n,r){d3.select(this).classed("hover",!1),C.call("elementMouseout",this,{data:t,index:t.index,series:A[t.seriesIndex],color:d3.select(this).style("fill")})})).on("mousemove",(function(e,t,n,r){C.call("elementMousemove",this,{data:t,index:t.index,series:A[t.seriesIndex],color:d3.select(this).style("fill")})})).on("click",(function(e,t,n,r){C.call("elementClick",this,{data:t,index:t.index,series:A[t.seriesIndex],color:d3.select(this).style("fill"),event:e,element:this}),e.stopPropagation()})).on("dblclick",(function(e,t,n,r){C.call("elementDblClick",this,{data:t,index:t,index:index,series:A[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)"})),S&&(t||(t=A.map((function(){return!0}))),$.style("fill",(function(e,n,r){return d3.rgb(S(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(S(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/A[0].values.length}));b?G.attr("y",(function(e,t,n){return A[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 A[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 A[e.seriesIndex].nonStackable&&(r=e.seriesIndex*d.bandwidth()/A.length,A.length!==O&&(r=A[e.seriesIndex].nonStackableSeries*d.bandwidth()/(2*O))),r})).attr("width",(function(e,t,n){if(!A[e.seriesIndex].nonStackable)return d.bandwidth();var r=d.bandwidth()/O;return A.length!==O&&(r=d.bandwidth()/(2*O)),r})):G.attr("x",(function(e,t){return e.seriesIndex*d.bandwidth()/A.length})).attr("width",d.bandwidth()/A.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(),A[0]&&A[0].values&&(M=A[0].values.length)})),D.renderEnd("multibar immediate"),A}return A.dispatch=C,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}},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 x},set:function(e){x=e}},groupSpacing:{get:function(){return E},set:function(e){E=e}},fillOpacity:{get:function(){return T},set:function(e){T=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 S},set:function(t){S=t?e.utils.getColor(t):null}}}),e.utils.initOptions(A),A},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,x=!0,S=!1,k=!1,E=0,T=e.utils.state(),C=null,D=null,M=d3.dispatch("stateChange","changeState","renderEnd"),A=function(){return m?180:0},I=250,L=(d3.transition().duration(I).ease(d3.easeLinear),!1);T.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 O=e.utils.renderWatch(M),N=!1;function R(D){return O.reset(),O.models(r),b&&O.models(i),_&&O.models(o),D.each((function(D){var O,P=d3.select(this);e.utils.initSVG(P);var F,j,Y=e.utils.availableWidth(h,P,u),V=e.utils.availableHeight(p,P,u);if(R.update=function(){0===I?P.call(R):P.transition().duration(I).call(R)},R.container=this,T.setter((F=D,function(e){void 0!==e.stacked&&(N=e.stacked),void 0!==e.active&&F.forEach((function(t,n){t.disabled=!e.active[n]}))}),R.update).getter((j=D,function(){return{active:j.map((function(e){return!e.disabled})),stacked:N}})).update(),T.disabled=D.map((function(e){return!!e.disabled})),!C)for(O in C={},T)T[O]instanceof Array?C[O]=T[O].slice(0):C[O]=T[O];if(!D||!D.length||!D.filter((function(e){return e.values.length})).length)return e.utils.noData(R,P),R;P.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var H=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([D]).enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend"),B=H.append("g");B.select("g");var U=B.append("g").attr("class","nv-x nv-axis");U=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-x");var z=B.append("g").attr("class","nv-y nv-axis");z=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-y");var q=B.append("g").attr("class","nv-barsWrap");q=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-barsWrap");var W=B.append("g").attr("class","nv-legendWrap");W=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-legendWrap");var $=B.append("g").attr("class","nv-controlsWrap");$=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-controlsWrap");var G=B.append("g").attr("class","nv-interactive");if(G=P.selectAll("g.nv-wrap.nv-multiBarWithLegend").select(".nv-interactive"),v?"bottom"===y?(a.width(Y-u.right),W.datum(D).call(a),u.bottom=i.height()+a.height(),V=e.utils.availableHeight(p,P,u),W.attr("transform","translate(0,"+(V+i.height())+")")):(a.width(Y-A()),W.datum(D).call(a),d||a.height()===u.top||(u.top=a.height(),V=e.utils.availableHeight(p,P,u)),W.attr("transform","translate("+A()+","+-u.top+")")):W.selectAll("*").remove(),H.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(A()).color(["#444","#444","#444"]),$.datum(K).attr("transform","translate(0,"+-u.top+")").call(l)}else $.selectAll("*").remove();w&&z.attr("transform","translate("+Y+",0)"),r.disabled(D.map((function(e){return e.disabled}))).width(Y).height(V).color(D.map((function(e,t){return e.color||f(e,t)})).filter((function(e,t){return!D[t].disabled})));var Z=P.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(Y/100,D)),i.tickSizeInner(-V),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),S){var J=function(e,t){return"translate("+e+","+t+")"};X.selectAll("text").attr("transform",(function(e,t,n){return J(0,n%2==0?5:17)}));var Q=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 J(0,0===t||Q%2!=0?17:5)}))}k&&B.selectAll(".tick text").call(e.utils.wrapTicks,R.xScale().bandwidth()),x&&X.filter((function(e,t){return t%Math.ceil(D[0].values.length/(Y/100))!=0})).selectAll("text, line").style("opacity",0),E&&X.selectAll(".tick text").attr("transform","rotate("+E+" 0,0)").style("text-anchor",E>0?"start":"end"),U.selectAll("g.nv-axisMaxMin text").style("opacity",1)}_&&(o.scale(n)._ticks(e.utils.calcTicksY(V/36,D)),o.tickSizeInner(-Y),z.call(o)),L&&(s.width(Y).height(V).margin({left:u.left,top:u.top}).svgContainer(P).xScale(t),G.call(s)),a.dispatch.on("stateChange",(function(e){for(var t in e)T[t]=e[t];M.call("stateChange",this,e),R.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)}T.stacked=r.stacked(),M.call("stateChange",this,T),R.update()}})),M.on("changeState",(function(e){void 0!==e.disabled&&(D.forEach((function(t,n){t.disabled=e.disabled[n]})),T.disabled=e.disabled),void 0!==e.stacked&&(r.stacked(e.stacked),T.stacked=e.stacked,N=e.stacked),R.update()})),L?(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:R.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=R.x()(e.data),e.series={key:e.data.key,value:R.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()})))})),O.renderEnd("multibarchart immediate"),R}return R.dispatch=M,R.multibar=r,R.legend=a,R.controls=l,R.xAxis=i,R.yAxis=o,R.state=T,R.tooltip=c,R.interactiveLayer=s,R.options=e.utils.optionsFunc.bind(R),R._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 C},set:function(e){C=e}},noData:{get:function(){return D},set:function(e){D=e}},reduceXTicks:{get:function(){return x},set:function(e){x=e}},rotateLabels:{get:function(){return E},set:function(e){E=e}},staggerLabels:{get:function(){return S},set:function(e){S=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),O.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 L},set:function(e){L=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(R,r),e.utils.initOptions(R),R},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,x=!1,S=60,k=.1,E=.75,T=d3.format(",.2f"),C=250,D=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),M=e.utils.renderWatch(D,C);function A(d){return M.reset(),d.each((function(d){var C=c-l.left-l.right,A=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 L=[];d[0].values.forEach((function(e){L.push({x:e.x})})),d.forEach((function(e,t,n){e.display={y:t,y0:n},e.values.forEach((function(t){L[t.index][e.key]=t.y}))}));var O=d.map((e=>e.key));d=d3.stack().keys(O).offset(d3.stackOffsetNone).value((function(e,t){return e[t]}))(L);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:O[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 R=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(R).map((function(e){return e.x}))).range(s||[0,A]).paddingInner(k).paddingOuter(k),f.domain(o||d3.extent(d3.merge(R).map((function(e){return w?e.y>0?e.y1+e.y:e.y1:e.y})).concat(y))),x&&!w?f.range(a||[f.domain()[0]<0?S:0,C-(f.domain()[1]>0?S:0)]):f.range(a||[0,C]),t=t||p,n=n||d3.scaleLinear().domain(f.domain()).range([f(0),f(0)]);var P=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([d]).enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal");P.attr("transform","translate("+l.left+","+l.top+")"),P.append("defs");var F=P.append("g");F.select("g"),F.append("g").attr("class","nv-groups");var j=d3.select(this).selectAll("g.nv-groups").selectAll(".nv-group").data(d),Y=j.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);j.exit().remove();var V=j.merge(Y);V.exit().watchTransition(M,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),V.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)})),V.watchTransition(M,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",E);var H=V.selectAll("g.nv-bar").data((function(e){return e.values}));H.exit().remove();var B=H.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)))+")"}));(H=H.merge(B)).select("rect").remove(),H.append("rect").attr("width",0).attr("height",p.bandwidth()/(w?1:d.length)),H.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)&&(B.append("polyline"),H.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))+")"}))),B.append("text"),x&&!w?(H.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=T(g(e,t)).replace(/\.0+%$/,"%"),r=v(e,t);return void 0===r?n:r.length?n+"+"+T(Math.abs(r[1]))+"-"+T(Math.abs(r[0])):n+"\xb1"+T(Math.abs(r))})),H.watchTransition(M,"multibarhorizontal: bars").select("text").attr("x",(function(e,t){return 0>g(e,t)?-4:f(g(e,t))-f(0)+4}))):H.selectAll("text").text(""),H.selectAll("text.nv-bar-label").text(""),H.attr("class",(function(e,t){return 0>g(e,t)?"nv-bar negative":"nv-bar positive"})),_&&(r||(r=d.map((function(){return!0}))),H.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?H.watchTransition(M,"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()):H.watchTransition(M,"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()})),M.renderEnd("multibarHorizontal immediate"),A}return A.dispatch=D,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}},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 x},set:function(e){x=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 T},set:function(e){T=e}},valuePadding:{get:function(){return S},set:function(e){S=e}},groupSpacing:{get:function(){return k},set:function(e){k=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 C},set:function(e){C=e,M.reset(C)}},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(A),A},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,x=e.utils.state(),S=null,k=null,E=d3.dispatch("stateChange","changeState","renderEnd"),T=function(){return f?180:0},C=250;x.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(E,C);function M(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 A,I,L=e.utils.availableWidth(d,D,c),O=e.utils.availableHeight(h,D,c);if(M.update=function(){D.transition().duration(C).call(M)},M.container=this,w=r.stacked(),x.setter((A=l,function(e){void 0!==e.stacked&&(w=e.stacked),void 0!==e.active&&A.forEach((function(t,n){t.disabled=!e.active[n]}))}),M.update).getter((I=l,function(){return{active:I.map((function(e){return!e.disabled})),stacked:w}})).update(),x.disabled=l.map((function(e){return!!e.disabled})),!S)for(k in S={},x)x[k]instanceof Array?S[k]=x[k].slice(0):S[k]=x[k];if(!l||!l.length||!l.filter((function(e){return e.values.length})).length)return e.utils.noData(M,D),M;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"),R=N.append("g");R.select("g");var P=R.append("g").attr("class","nv-x nv-axis");P=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-x");var F=R.append("g").attr("class","nv-y nv-axis"),j=F.append("g").attr("class","nv-zeroLine").append("line");F=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-y"),j=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart.nv-zeroLine").select("line");var Y=R.append("g").attr("class","nv-barsWrap");Y=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-barsWrap");var V=R.append("g").attr("class","nv-legendWrap");V=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-legendWrap");var H=R.append("g").attr("class","nv-controlsWrap");if(Y=D.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").select(".nv-controlsWrap"),v?(s.width(L-T()),V.datum(l).call(s),"bottom"===y?(c.bottom=i.height()+s.height(),O=e.utils.availableHeight(h,D,c),V.attr("transform","translate("+T()+","+(O+i.height())+")")):"top"===y&&(u||s.height()===c.top||(c.top=s.height(),O=e.utils.availableHeight(h,D,c)),V.attr("transform","translate("+T()+","+-c.top+")"))):V.selectAll("*").remove(),N.attr("transform","translate("+c.left+","+c.top+")"),f){var B=[{key:g.grouped||"Grouped",disabled:r.stacked()},{key:g.stacked||"Stacked",disabled:!r.stacked()}];a.width(T()).color(["#444","#444","#444"]),"bottom"===m?(c.bottom=i.height()+s.height(),O=e.utils.availableHeight(h,D,c),H.datum(B).attr("transform","translate(0,"+(O+i.height())+")").call(a)):"top"===m&&H.datum(B).attr("transform","translate(0,"+-c.top+")").call(a)}else H.selectAll("*").remove();r.disabled(l.map((function(e){return e.disabled}))).width(L).height(O).color(l.map((function(e,t){return e.color||p(e,t)})).filter((function(e,t){return!l[t].disabled}))),(Y=D.select(".nv-multiBarHorizontalChart").selectAll(".nv-barsWrap").data([l.filter((function(e){return!e.disabled}))]).merge(Y)).transition().call(r),b&&(i.scale(t)._ticks(e.utils.calcTicksY(O/24,l)),i.tickSizeInner(-L),P.call(i),P.select("g.nvd3.nv-wrap.nv-axis").selectAll("g").selectAll("line, text")),_&&(o.scale(n)._ticks(e.utils.calcTicksX(L/100,l)),o.tickSizeInner(-O),F.attr("transform","translate(0,"+O+")"),F.call(o)),j.attr("x1",n(0)).attr("x2",n(0)).attr("y1",0).attr("y2",-O),s.dispatch.on("stateChange",(function(e){for(var t in e)x[t]=e[t];E.call("stateChange",this,e),M.update()})),a.dispatch.on("legendClick",(function(e,t,n){if(t.disabled){switch(B=B.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)}x.stacked=r.stacked(),E.call("stateChange",this,x),w=r.stacked(),M.update()}})),E.on("changeState",(function(e){void 0!==e.disabled&&(l.forEach((function(t,n){t.disabled=e.disabled[n]})),x.disabled=e.disabled),void 0!==e.stacked&&(r.stacked(e.stacked),x.stacked=e.stacked,w=e.stacked),M.update()}))})),D.renderEnd("multibar horizontal chart immediate"),M}return r.dispatch.on("elementMouseover.tooltip",(function(e){e.value=M.x()(e.data),e.series={key:e.data.key,value:M.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()})),M.dispatch=E,M.multibar=r,M.legend=s,M.controls=a,M.xAxis=i,M.yAxis=o,M.state=x,M.tooltip=l,M.options=e.utils.optionsFunc.bind(M),M._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 S},set:function(e){S=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 C},set:function(e){C=e,D.reset(C),r.duration(C),i.duration(C),o.duration(C)}},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(M,r),e.utils.initOptions(M),M},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),x=e.models.line().yScale(_).duration(v),S=e.models.scatter().yScale(b).duration(v),k=e.models.scatter().yScale(_).duration(v),E=e.models.multiBar().stacked(!1).yScale(b).duration(v),T=e.models.multiBar().stacked(!1).yScale(_).duration(v),C=e.models.stackedArea().yScale(b).duration(v),D=e.models.stackedArea().yScale(_).duration(v),M=e.models.axis(d3.axisBottom(y),"bottom").tickPadding(5).duration(v),A=e.models.axis(d3.axisLeft(b),"left").duration(v),I=e.models.axis(d3.axisRight(_),"right").duration(v),L=e.models.legend().height(30),O=e.models.tooltip(),N=d3.dispatch(),R=[w,x,S,k,E,T,C,D];function P(c){return c.each((function(c){var p=d3.select(this);e.utils.initSVG(p),P.update=function(){p.call(P)},P.container=this;var v=e.utils.availableWidth(s,p,r),F=e.utils.availableHeight(a,p,r),j=c.filter((function(e){return"line"==e.type&&1==e.yAxis})),Y=c.filter((function(e){return"line"==e.type&&2==e.yAxis})),V=c.filter((function(e){return"scatter"==e.type&&1==e.yAxis})),H=c.filter((function(e){return"scatter"==e.type&&2==e.yAxis})),B=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(P,p),P;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 J=Z.append("g").attr("class","nv-y1 nv-axis"),Q=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=L.align()?v/2:v,he=L.align()?de:0;L.width(de),L.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(L),i||L.height()===r.top||(r.top=L.height(),F=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(F).interpolate(h).color(ue.filter((function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"line"==c[t].type}))),x.width(v).height(F).interpolate(h).color(ue.filter((function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"line"==c[t].type}))),S.width(v).height(F).color(ue.filter((function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"scatter"==c[t].type}))),k.width(v).height(F).color(ue.filter((function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"scatter"==c[t].type}))),E.width(v).height(F).color(ue.filter((function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"bar"==c[t].type}))),T.width(v).height(F).color(ue.filter((function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"bar"==c[t].type}))),C.width(v).height(F).interpolate(h).color(ue.filter((function(e,t){return!c[t].disabled&&1==c[t].yAxis&&"area"==c[t].type}))),D.width(v).height(F).interpolate(h).color(ue.filter((function(e,t){return!c[t].disabled&&2==c[t].yAxis&&"area"==c[t].type}))),se.datum(j.filter((function(e){return!e.disabled}))),ie.datum(V.filter((function(e){return!e.disabled}))),ne.datum(B.filter((function(e){return!e.disabled}))),ee.datum(z.filter((function(e){return!e.disabled}))),ae.datum(Y.filter((function(e){return!e.disabled}))),oe.datum(H.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(E.stacked()&&B.length){pe=B.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}}))})))}B.length&&pe.push({x:0,y:0});var fe=[];if(T.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,F]),_.domain(n||d3.extent(d3.merge($).concat(fe),(function(e){return e.y}))).range([0,F]),w.yDomain(b.domain()),S.yDomain(b.domain()),E.stacked()){var ge=b.domain([0,d3.max(me(W))]).range([0,F]);E.yDomain(ge.domain())}else E.yDomain(b.domain());if(C.yDomain(b.domain()),x.yDomain(_.domain()),k.yDomain(_.domain()),T.stacked()){var ve=_.domain([0,d3.max(me($))]).range([0,F]);T.yDomain(ve.domain())}else T.yDomain(_.domain());function ye(e){var t=2===e.series.yAxis?I:A;e.value=e.point.x,e.series={value:e.point.y,color:e.point.color,key:e.series.key},O.duration(0).headerFormatter((function(e,t){return M.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:A;e.value=e.point.x,e.series={value:e.point.y,color:e.point.color,key:e.series.key},O.duration(100).headerFormatter((function(e,t){return M.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:A;e.point.x=C.x()(e.point),e.point.y=C.y()(e.point),O.duration(0).headerFormatter((function(e,t){return M.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:A;e.value=E.x()(e.data),e.series={value:E.y()(e.data),color:e.color,key:e.data.key},O.duration(0).headerFormatter((function(e,t){return M.tickFormat()(e,t)})).valueFormatter((function(e,n){return t.tickFormat()(e,n)})).data(e).hidden(!1)}function xe(){for(var e=0,t=R.length;e<t;e++){var n=R[e];try{n.clearHighlights()}catch(e){}}}D.yDomain(_.domain()),z.length&&ee.transition().call(C),q.length&&te.transition().call(D),B.length&&ne.transition().call(E),U.length&&re.transition().call(T),j.length&&se.transition().call(w),Y.length&&ae.transition().call(x),V.length&&ie.transition().call(S),H.length&&oe.transition().call(k),M._ticks(e.utils.calcTicksX(v/100,c)),M.tickSizeInner(-F),X.attr("transform","translate(0,"+F+")"),X.transition().call(M),A._ticks(e.utils.calcTicksY(F/36,c)),A.tickSizeInner(-v),J.transition().call(A),I._ticks(e.utils.calcTicksY(F/36,c)),I.tickSizeInner(-v),Q.transition().call(I),J.classed("nv-disabled",!W.length).attr("transform","translate("+y.range()[0]+",0)"),Q.classed("nv-disabled",!$.length).attr("transform","translate("+y.range()[1]+",0)"),L.dispatch.on("stateChange",(function(e){N.call("stateChange",this,e),P.update()})),m&&(f.width(v).height(F).margin({left:r.left,top:r.top}).svgContainer(p).xScale(y),ce.call(f)),m?(f.dispatch.on("elementMousemove",(function(t){xe();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 P.x()(e,t)>=c[0]&&P.x()(e,t)<=c[1]})),d=u[r=e.interactiveBisect(u,t.pointXValue,P.x())],h=P.y()(d,r);null===h||isNaN(h)||a.noHighlightSeries||function(e,t,n,r){var i={line:{yAxis1:{chart:w,data:j},yAxis2:{chart:x,data:Y}},scatter:{yAxis1:{chart:S,data:V},yAxis2:{chart:k,data:H}},bar:{yAxis1:{chart:E,data:B},yAxis2:{chart:T,data:U}},area:{yAxis1:{chart:C,data:z},yAxis2:{chart:D,data:q}}},o=i[e.type]["yAxis"+e.yAxis].chart,s=i[e.type]["yAxis"+e.yAxis].data.reduce((function(t,n,r){return n.key===e.key?r:t}),0);try{o.highlightPoint(s,t,n,void 0)}catch(e){}}(a,r,!0),void 0!==d&&(void 0===n&&(n=d),void 0===i&&(i=y(P.x()(d,r))),s.push({key:a.key,value:h,color:o(a,a.seriesIndex),data:d,yAxis:2==a.yAxis?I:A}))}));f.tooltip.headerFormatter((function(e,t){return M.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:P.x()(n,r),index:r,series:s})(),f.renderGuideLine(i)})),f.dispatch.on("elementMouseout",(function(e){xe()}))):(w.dispatch.on("elementMouseover.tooltip",ye),x.dispatch.on("elementMouseover.tooltip",ye),w.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),x.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),S.dispatch.on("elementMouseover.tooltip",be),k.dispatch.on("elementMouseover.tooltip",be),S.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),k.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),C.dispatch.on("elementMouseover.tooltip",_e),D.dispatch.on("elementMouseover.tooltip",_e),C.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),D.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),E.dispatch.on("elementMouseover.tooltip",we),T.dispatch.on("elementMouseover.tooltip",we),E.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),T.dispatch.on("elementMouseout.tooltip",(function(e){O.hidden(!0)})),E.dispatch.on("elementMousemove.tooltip",(function(e){O()})),T.dispatch.on("elementMousemove.tooltip",(function(e){O()})))})),P}return P.dispatch=N,P.legend=L,P.lines1=w,P.lines2=x,P.scatters1=S,P.scatters2=k,P.bars1=E,P.bars2=T,P.stack1=C,P.stack2=D,P.xAxis=M,P.yAxis1=A,P.yAxis2=I,P.tooltip=O,P.interactiveLayer=f,P.options=e.utils.optionsFunc.bind(P),P._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,M.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),x.x(e),S.x(e),k.x(e),E.x(e),T.x(e),C.x(e),D.x(e)}},y:{get:function(){return d},set:function(e){d=e,w.y(e),x.y(e),S.y(e),k.y(e),C.y(e),D.y(e),E.y(e),T.y(e)}},useVoronoi:{get:function(){return p},set:function(e){p=e,w.useVoronoi(e),x.useVoronoi(e),C.useVoronoi(e),D.useVoronoi(e)}},useInteractiveGuideline:{get:function(){return m},set:function(e){(m=e)&&(w.interactive(!1),w.useVoronoi(!1),x.interactive(!1),x.useVoronoi(!1),C.interactive(!1),C.useVoronoi(!1),D.interactive(!1),D.useVoronoi(!1),S.interactive(!1),k.interactive(!1))}},duration:{get:function(){return v},set:function(e){v=e,[w,x,C,D,S,k,M,A,I].forEach((function(e){e.duration(v)}))}}}),e.utils.initOptions(P),P},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,x=e.utils.defaultColor(),S=!1,k=d3.dispatch("stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");function E(S){return S.each((function(S){c=d3.select(this);var E=e.utils.availableWidth(s,c,o),T=e.utils.availableHeight(a,c,o);e.utils.initSVG(c);var C=E/S[0].values.length*.9;u.domain(t||d3.extent(S[0].values.map(h).concat(y))),_?u.range(r||[.5*E/S[0].values.length,E*(S[0].values.length-.5)/S[0].values.length]):u.range(r||[5+C/2,E-C/2-5]),d.domain(n||[d3.min(S[0].values.map(v).concat(b)),d3.max(S[0].values.map(g).concat(b))]).range(i||[T,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([S[0].values]).enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar");D.attr("transform","translate("+o.left+","+o.top+")");var M=D.append("defs"),A=D.append("g");A.select("g");var I=A.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})})),M.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect").attr("width",E).attr("height",T),A.attr("clip-path",w?"url(#nv-chart-clip-path-"+l+")":"");var L=I.selectAll(".nv-tick").data((function(e){return e}));L.exit().remove(),L.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"+-C/2+",0l"+C/2+",0l0,"+(d(v(e,t))-d(f(e,t)))+"l0,"+(d(m(e,t))-d(v(e,t)))+"l"+C/2+",0l"+-C/2+",0z"})).attr("transform",(function(e,t){return"translate("+u(h(e,t))+","+d(g(e,t))+")"})).attr("fill",(function(e,t){return x[0]})).attr("stroke",(function(e,t){return x[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))})),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.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=E/S[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"}))})),E}return E.highlightPoint=function(e,t){E.clearHighlights(),c.select(".nv-ohlcBar .nv-tick-0-"+e).classed("hover",t)},E.clearHighlights=function(){c.select(".nv-ohlcBar .nv-tick.hover").classed("hover",!1)},E.dispatch=k,E.options=e.utils.optionsFunc.bind(E),E._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 S},set:function(e){S=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 x},set:function(t){x=e.utils.getColor(t)}}}),e.utils.initOptions(E),E},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,x=d3.line(),S=d3.axisLeft(d3.scaleLinear()),k=d3.dispatch("start","brush","end","dimensionsOrder","stateChange","elementClick","elementMouseover","elementMouseout","elementMousemove","renderEnd","activeChanged"),E=e.utils.renderWatch(k);function T(C){return E.reset(),C.each((function(E){var T,C,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===E[0].values){var M=[];E.forEach((function(e){var t={};Object.keys(e).forEach((function(n){"name"!==n&&(t[n]=e[n])})),M.push({key:e.name,values:t})})),E=M}var A=E.map((function(e){return e.values}));0===y.length&&(y=E),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={},L=!1,O=[];f.forEach((function(e){var t=d3.extent(A,(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],L=!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([E]).enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinates");N.attr("transform","translate("+i.left+","+i.top+")");var R=N.append("g"),P=N.select("g"),F=R.append("g").attr("class","nv-parallelCoordinates background"),j=R.append("g").attr("class","nv-parallelCoordinates foreground"),Y=R.append("g").attr("class","nv-parallelCoordinates missingValuesline");x.curve(d3.curveCardinal.tension(w));var V=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 Q(e.key)-Q(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("+Q(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)})),H=c.range()[1]-c.range()[0];if(H=isNaN(H)?c.range()[0]:H,!isNaN(H)){var B=[0+H/2,l-12,a-H/2,l-12];(T=Y.selectAll("line").data([B])).enter().append("line"),T.exit().remove(),T.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]})),(C=Y.selectAll("text").data([d])).append("text").data([d]),C.enter().append("text"),C.exit().remove(),C.attr("y",l).attr("x",a-92-H/2).text((function(e){return e}))}(n=F.selectAll("path").data(E)).enter().append("path"),n.exit().remove(),n.attr("d",$),(t=j.selectAll("path").data(E)).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=P.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(V),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 x(p.map((function(t){if(isNaN(e.values[t.key])||isNaN(parseFloat(e.values[t.key]))||L){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!==T&&(_.length>0||L?(T.style("display","inline"),C.style("display","inline")):(T.style("display","none"),C.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),J()}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"})),J(),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 J(){r.select(".nv-axis").each((function(e,t){var n=v.filter((function(t){return t.dimension==e.key}));O[e.key]=u[e.key].domain(),0!=n.length&&m&&(O[e.key]=[],n[0].extent[1]>u[e.key].domain()[0]&&(O[e.key]=[n[0].extent[1]]),n[0].extent[0]>=u[e.key].domain()[0]&&O[e.key].push(n[0].extent[0])),d3.select(this).call(S.scale(u[e.key]).tickFormat(e.format).tickValues(O[e.key]))}))}function Q(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)})),T}return T.dispatch=k,T.options=e.utils.optionsFunc.bind(T),T._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(T),T},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 x=f.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").data([r]).enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinatesChart");x.attr("transform","translate("+i.left+","+i.top+")");var S=x.append("g");x.select("g");var k=S.append("g").attr("class","nv-parallelCoordinatesWrap"),E=S.append("g").attr("class","nv-legendWrap");E=f.selectAll("g.nv-wrap.nv-parallelCoordinatesChart").select(".nv-legendWrap"),S.select("rect").attr("width",_).attr("height",w>0?w:0),l?(n.width(_).color((function(e){return"rgb(188,190,192)"})),E.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)),E.attr("transform","translate( 0 ,"+-i.top+")")):E.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,x=!1,S=0,k=.5,E=250,T=(d3.transition().duration(E).ease(d3.easeLinear),d3.transition().duration(70).ease(d3.easeLinear),d3.transition().duration(50).ease(d3.easeLinear),[]),C=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),D=[],M=[],A=e.utils.renderWatch(C);function I(L){return A.reset(),L.each((function(I){var L=n-t.left-t.right,O=r-t.top-t.bottom,N=Math.min(L,O)/2,R=[],P=[];if(a=d3.select(this),0===T.length)for(var F=N-N/10,j=k*N,Y=0;Y<I.length;Y++)R.push(F),P.push(j);else v?(R=T.map((function(e){return(e.outer-e.outer/10)*N})),P=T.map((function(e){return(e.inner-e.inner/10)*N})),k=d3.min(T.map((function(e){return e.inner-e.inner/10})))):(R=T.map((function(e){return e.outer*N})),P=T.map((function(e){return e.inner*N})),k=d3.min(T.map((function(e){return e.inner}))));e.utils.initSVG(a);var V=a.selectAll(".nv-wrap.nv-pie").data([I]),H=V.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+s);V=V.merge(H);var B=H.append("g");V.select("g");var U=B.append("g").attr("class","nv-pie");U=a.selectAll(".nv-wrap.nv-pie").selectAll(".nv-pie");var z=B.append("g").attr("class","nv-pieLabels");z=a.selectAll(".nv-wrap.nv-pie").selectAll(".nv-pieLabels"),V.attr("transform","translate("+t.left+","+t.top+")"),U.attr("transform","translate("+L/2+","+O/2+")"),z.attr("transform","translate("+L/2+","+O/2+")"),a.on("click",(function(e,t,n){C.call("chartClick",this,{data:t,index:t.index,pos:e,id:s})})),D=[],M=[];for(Y=0;Y<I.length;Y++){var q=d3.arc().outerRadius(R[Y]),W=d3.arc().outerRadius(R[Y]+5);!1!==_&&(q.startAngle(_),W.startAngle(_)),!1!==x&&(q.endAngle(x),W.endAngle(x)),m&&(q.innerRadius(P[Y]),W.innerRadius(P[Y])),q.cornerRadius&&S&&(q.cornerRadius(S),W.cornerRadius(S)),D.push(q),M.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"),V.select(".nv-pie-title").style("text-anchor","middle").text((function(e){return g})).style("font-size",Math.min(L,O)*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",M[t.index]),C.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]),C.call("elementMouseout",this,{data:t.data,index:t.index})})),Z.on("mousemove",(function(e,t,n){C.call("elementMousemove",this,{data:t.data,index:t.index})})),Z.on("click",(function(e,t,n){C.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){C.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(E).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(Y=0;Y<I.length;Y++)X.push(D[Y]),d?m&&(X[Y]=d3.arc().outerRadius(D[Y].outerRadius()),!1!==_&&X[Y].startAngle(_),!1!==x&&X[Y].endAngle(x)):m||X[Y].innerRadius(0);K.enter().append("g").classed("nv-label",!0);var J=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=R[t]+10,e.innerRadius=R[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")})),Q={},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)};J.watchTransition(A,"pie labels").attr("transform",(function(e,t){if(b){e.outerRadius=R[t]+10,e.innerRadius=R[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&&(Q[ee(r)]&&(r[1]-=14),Q[ee(r)]=!0),"translate("+r+")"})),J.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=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&&J.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"})),J.merge(K)}})),A.renderEnd("pie immediate"),I}return I.dispatch=C,I.options=e.utils.optionsFunc.bind(I),I._options=Object.create({},{arcsRadius:{get:function(){return T},set:function(e){T=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 x},set:function(e){x=e}},startAngle:{get:function(){return _},set:function(e){_=e}},padAngle:{get:function(){return w},set:function(e){w=e}},cornerRadius:{get:function(){return S},set:function(e){S=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 E},set:function(e){E=e,A.reset(E),d3.transition().duration(E).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"),x=w.append("g").attr("class","nv-pieWrap");x=d.selectAll("g.nv-wrap.nv-pieChart").select(".nv-pieWrap");var S=w.append("g").attr("class","nv-legendWrap");if(S=d.selectAll("g.nv-wrap.nv-pieChart").select(".nv-legendWrap"),c)if("top"===u)n.width(v).key(t.x()),S.datum(r).call(n),o||n.height()===i.top||(i.top=n.height(),b=e.utils.availableHeight(a,d,i)),S.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(),S.datum(r).call(n).attr("transform","translate("+v+",0)")}else"bottom"===u&&(n.width(v).key(t.x()),S.datum(r).call(n),i.bottom=n.height(),b=e.utils.availableHeight(a,d,i),S.attr("transform","translate(0,"+b+")"));else S.selectAll("*").remove();_.attr("transform","translate("+i.left+","+i.top+")"),t.width(v).height(b);var E=d.select(".nv-pieChart").selectAll(".nv-pieWrap").data([r]);(E=E.merge(x)).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},x=function(e){return e.shape||"circle"},S=[],k=[],E=[],T=!0,C=function(e){return!e.notActive},D=!1,M=.1,A=!1,I=!0,L=!1,O=function(){return 25},N=null,R=null,P=null,F=null,j=null,Y=null,V=!1,H=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),B=!0,U=250,z=300,q=!1,W=!1,$=e.utils.renderWatch(H,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 J(U){return $.reset(),U.each((function(U){m=d3.select(this);var K=e.utils.availableWidth(u,m,c),Q=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 J.yScale().base,te=N&&R&&j?[]: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(S))),D&&U[0]?g.range(P||[(K*M+K)/(2*U[0].values.length),K-K*(1+M)/(2*U[0].values.length)]):g.range(P||[0,K]),ee){var ne=d3.min(te.map((function(e){if(0!==e.y)return e.y})));v.clamp(!0).domain(R||d3.extent(te.map((function(e){return 0!==e.y?e.y:.1*ne})).concat(k))).range(F||[Q,0])}else v.domain(R||d3.extent(te.map((function(e){return e.y})).concat(k))).range(F||[Q,0]);y.domain(j||d3.extent(te.map((function(e){return e.size})).concat(E))).range(Y||G),V=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",V);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,!T)return!1;if(m.selectAll(".nv-point.hover").classed("hover",!1),ue.selectAll("path").remove(),!0===B){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 C(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+")"}));L&&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",O));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};H.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];H.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];H.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];H.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];H.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",Q>0?Q+20:0),A&&ce.attr("clip-path",A?"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",!T).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 C(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 x(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",x,"size",w)||re||ie||oe})).watchTransition($,"scatter points").attr("d",e.utils.symbol().type((function(e){return x(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 C(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"),J}return J.dispatch=H,J.options=e.utils.optionsFunc.bind(J),J._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)}))}},H.on("elementMouseover.point",(function(e){T&&J._calls.highlightPoint(e.seriesIndex,e.pointIndex,!0)})),H.on("elementMouseout.point",(function(e){T&&J._calls.highlightPoint(e.seriesIndex,e.pointIndex,!1)})),J._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 R},set:function(e){R=e}},pointDomain:{get:function(){return j},set:function(e){j=e}},xRange:{get:function(){return P},set:function(e){P=e}},yRange:{get:function(){return F},set:function(e){F=e}},pointRange:{get:function(){return Y},set:function(e){Y=e}},forceX:{get:function(){return S},set:function(e){S=e}},forceY:{get:function(){return k},set:function(e){k=e}},forcePoint:{get:function(){return E},set:function(e){E=e}},interactive:{get:function(){return T},set:function(e){T=e}},pointActive:{get:function(){return C},set:function(e){C=e}},padDataOuter:{get:function(){return M},set:function(e){M=e}},padData:{get:function(){return D},set:function(e){D=e}},clipEdge:{get:function(){return A},set:function(e){A=e}},clipVoronoi:{get:function(){return I},set:function(e){I=e}},clipRadius:{get:function(){return O},set:function(e){O=e}},showVoronoi:{get:function(){return L},set:function(e){L=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 x},set:function(e){x="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 B},set:function(e){!1===(B=e)&&(I=!1)}}}),e.utils.initOptions(J),J},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",x=!1,S=e.utils.state(),k=null,E=d3.dispatch("stateChange","changeState","renderEnd"),T=null,C=250,D=(d3.transition().duration(C).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 M=e.utils.renderWatch(E,C);function A(w){return M.reset(),M.models(t),b&&M.models(n),_&&M.models(r),g&&M.models(o),v&&M.models(s),w.each((function(w){var T,I=this;h=d3.select(this),e.utils.initSVG(h);var L,O,N=e.utils.availableWidth(u,h,l),R=e.utils.availableHeight(d,h,l);if(A.update=function(){0===C?h.call(A):h.transition().duration(C).call(A)},A.container=this,S.setter((L=w,function(e){void 0!==e.active&&L.forEach((function(t,n){t.disabled=!e.active[n]}))}),A.update).getter((O=w,function(){return{active:O.map((function(e){return!e.disabled}))}})).update(),S.disabled=w.map((function(e){return!!e.disabled})),!k)for(T in k={},S)S[T]instanceof Array?k[T]=S[T].slice(0):k[T]=S[T];if(!w||!w.length||!w.filter((function(e){return e.values.length})).length)return e.utils.noData(A,h),M.renderEnd("scatter immediate"),A;h.selectAll(".nv-noData").remove(),f=t.xScale(),m=t.yScale(),w.forEach((function(e,t){e.seriesIndex=t}));var P=h.selectAll("g.nv-wrap.nv-scatterChart").data([w]).enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+t.id()),F=P.append("g");F.select("g"),F.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none");var j=F.append("g").attr("class","nv-x nv-axis");j=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-x");var Y=F.append("g").attr("class","nv-y nv-axis");Y=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-y");var V=F.append("g").attr("class","nv-scatterWrap");V=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-scatterWrap");var H=F.append("g").attr("class","nv-regressionLinesWrap");H=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-regressionLinesWrap");var B=F.append("g").attr("class","nv-distWrap");B=h.selectAll("g.nv-wrap.nv-scatterChart").select(".nv-distWrap");var U=F.append("g").attr("class","nv-legendWrap");x&&Y.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(),R=e.utils.availableHeight(d,h,l)),U.attr("transform","translate(0,"+-l.top+")")):U.selectAll("*").remove(),P.attr("transform","translate("+l.left+","+l.top+")"),t.width(N).height(R).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),V.datum(w.filter((function(e){return!e.disabled}))).call(t),H.attr("clip-path","url(#nv-edge-clip-"+t.id()+")"),H.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(M,"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(-R),j.attr("transform","translate(0,"+m.range()[0]+")").call(n)),_&&(r.scale(m)._ticks(e.utils.calcTicksY(R/36,w)),r.tickSizeInner(-N),Y.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}))),B.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(M,"scatterPlusLineChart").style("opacity",(function(){return g?"1":"1e-6"})),s.getData(t.y()).scale(m).width(R).color(w.map((function(e,t){return e.color||p(e,t)})).filter((function(e,t){return!w[t].disabled}))),B.append("g").attr("class","nv-distributionY").attr("transform","translate("+(x?N:-s.size())+",0)").datum(w.filter((function(e){return!e.disabled}))).call(s).style("opacity",(function(){return v?"1":"1e-6"})).watchTransition(M,"scatterPlusLineChart").style("opacity",(function(){return v?"1":"1e-6"})),i.dispatch.on("stateChange",(function(e){for(var t in e)S[t]=e[t];E.call("stateChange",I,e),A.update()})),E.on("changeState",(function(e){void 0!==e.disabled&&(w.forEach((function(t,n){t.disabled=e.disabled[n]})),S.disabled=e.disabled),A.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]-R),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()})),M.renderEnd("scatter with line immediate"),A}return A.dispatch=E,A.scatter=t,A.legend=i,A.xAxis=n,A.yAxis=r,A.distX=o,A.distY=s,A.tooltip=a,A.options=e.utils.optionsFunc.bind(A),A._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 T},set:function(e){T=e}},duration:{get:function(){return C},set:function(e){C=e,d3.transition().duration(C).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 x},set:function(e){x=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(A,t),e.utils.initOptions(A),A},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 x=w.enter().append("path");x.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))}))),x.merge(w);var S=_.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}))}));S.exit().remove();var k=S.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(S)})),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"),x=w.append("g");_.select("g");var S=x.append("g").attr("class","nv-sparklineWrap"),k=x.append("g").attr("class","nv-valueWrap"),E=x.append("g").attr("class","nv-hoverArea");if(w.attr("transform","translate("+i.left+","+i.top+")"),w.merge(_),r.width(g).height(y),S.call(r).merge(S),d){var T=k.selectAll(".nv-currentValue").data([b]),C=T.enter().append("text").attr("class","nv-currentValue").attr("dx",p?-8:8).attr("dy",".9em").style("text-anchor",p?"end":"start");C.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)),C.merge(T)}var D=E.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)))],M()}})).on("click",(function(){l=!l})).on("mouseout",(function(){a=[],M()}));function M(){if(!l){var e=E.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"),E.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"),E.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(E)})),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 x=e.utils.renderWatch(w,y);function S(h){return x.reset(),x.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 E=h.filter((function(e){return!e.disabled})),T=[];E[0].values.forEach((function(e){T.push({x:e[0]})})),E.forEach((function(e,t,n){e.display={y:t,y0:n},e.values.forEach((function(t){T[t.index][e.key]=t[1]}))}));var C=E.map((e=>e.key));h=d3.stack().keys(C).order(f).offset(p).value((function(e,t){return e[t]}))(T);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:C[t],seriesIndex:t})})),h=D;var M=l.selectAll("g.nv-wrap.nv-stackedarea").data([h]).enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea");M.attr("transform","translate("+r.left+","+r.top+")");var A=M.append("defs"),I=M.append("g"),L=I.select("g"),O=I.append("g").attr("class","nv-areaWrap");O=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),A.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 R=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)),P=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)})),F=O.selectAll("path.nv-area").data((function(e){return e}));F.exit().remove();var j=F.enter().append("path").attr("class",(function(e,t){return"nv-area nv-area-"+t})).attr("d",(function(e,t){return P(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})}));(j=j.merge(F)).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)})),j.watchTransition(x,"stackedArea path").attr("d",(function(e,t){return R(e.values,e.seriesIndex)})),v.dispatch.on("elementMouseover.area",(function(e){L.select(".nv-chart-"+a+" .nv-area-"+e.seriesIndex).classed("hover",!0)})),v.dispatch.on("elementMouseout.area",(function(e){L.select(".nv-chart-"+a+" .nv-area-"+e.seriesIndex).classed("hover",!1)})),S.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}})),x.renderEnd("stackedArea immediate"),S}return S.dispatch=w,S.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)})),S.interpolate=function(e){return arguments.length?(m=e,S):m},S.duration=function(e){return arguments.length?(y=e,x.reset(y),v.duration(y),S):y},S.dispatch=w,S.scatter=v,S.options=e.utils.optionsFunc.bind(S),S._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":S.offset(d3.stackOffsetNone),S.order(d3.stackOrderNone);break;case"stream":S.offset(d3.stackOffsetWiggle),S.order(d3.stackOrderInsideOut);break;case"stream_center":S.offset(d3.stackOffsetSilhouette),S.order(d3.stackOrderNone);break;case"expand":S.offset(d3.stackOffsetExpand),S.order(d3.stackOrderNone);break;case"stack_percent":S.offset(S.d3_stackedOffset_stackPercent),S.order(d3.stackOrderNone)}}},duration:{get:function(){return y},set:function(e){y=e,x.reset(y),v.duration(y)}}}),e.utils.inheritOptions(S,v),e.utils.initOptions(S),S},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,x=!1,S=!1,k=!0,E="TOTAL",T=e.utils.state(),C=null,D=null,M=d3.dispatch("stateChange","changeState","renderEnd"),A=250,I=["Stacked","Stream","Expanded"],L={},O=250;d3.transition().duration(O).ease(d3.easeLinear);T.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,R=null;a.updateState(!1);var P=e.utils.renderWatch(M),F=(r.style(),d3.format(".0%"));function j(c){return P.reset(),P.models(r),b&&P.models(i),_&&P.models(o),c.each((function(c){var D,P,Y=d3.select(this);e.utils.initSVG(Y);var V,H,B=e.utils.availableWidth(p,Y,d),U=e.utils.availableHeight(f,Y,d)-(x?u.height():0);if(j.update=function(){Y.transition().duration(O).call(j)},j.container=this,T.setter((V=c,function(e){void 0!==e.style&&e.style,void 0!==e.active&&V.forEach((function(t,n){t.disabled=!e.active[n]}))}),j.update).getter((H=c,function(){return{active:H.map((function(e){return!e.disabled})),style:r.style()}})).update(),T.disabled=c.map((function(e){return!!e.disabled})),!C)for(D in C={},T)T[D]instanceof Array?C[D]=T[D].slice(0):C[D]=T[D];if(!c||!c.length||!c.filter((function(e){return e.values.length})).length)return e.utils.noData(j,Y),j;Y.selectAll(".nv-noData").remove(),t=r.xScale(),n=r.yScale();var z=Y.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=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-legendWrap");var $=q.append("g").attr("class","nv-controlsWrap");$=Y.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=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-x");var X=G.append("g").attr("class","nv-y nv-axis");X=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-y");var J=G.append("g").attr("class","nv-stackedWrap");J=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-stackedWrap");var Q=G.append("g").attr("class","nv-interactive");Q=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-interactive");var ee=q.append("g").attr("class","nv-focusWrap");if(ee=Y.selectAll("g.nv-wrap.nv-stackedAreaChart").select(".nv-focusWrap"),v){var te=g&&"top"===y?B-A:B;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,Y,d)-(x?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,Y,d)-(x?u.height():0)),W.attr("transform","translate("+(B-te)+","+-d.top+")"))}else W.selectAll("*").remove();if(z.attr("transform","translate("+d.left+","+d.top+")"),g){var ie=[{key:L.stacked||"Stacked",metaKey:"Stacked",disabled:"stack"!=r.style(),style:"stack"},{key:L.stream||"Stream",metaKey:"Stream",disabled:"stream"!=r.style(),style:"stream"},{key:L.stream_center||"Stream Center",metaKey:"Stream_Center",disabled:"stream_center"!=r.style(),style:"stream_center"},{key:L.expanded||"Expanded",metaKey:"Expanded",disabled:"expand"!=r.style(),style:"expand"},{key:L.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:"stack_percent"!=r.style(),style:"stack_percent"}];A=I.length/3*260,ie=ie.filter((function(e){return-1!==I.indexOf(e.metaKey)})),a.width(A).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,Y,d)-(x?u.height():0)),$.attr("transform","translate(0,"+-d.top+")")}else $.selectAll("*").remove();function se(){b&&Z.attr("transform","translate(0,"+U+")").transition().duration(O).call(i)}function ae(){if(_){if("expand"===r.style()||"stack_percent"===r.style()){var e=o.tickFormat();N&&e===F||(N=e),o.tickFormat(F)}else N&&(o.tickFormat(N),N=null);X.transition().call(o)}}if(w&&X.attr("transform","translate("+B+",0)"),S&&(l.width(B).height(U).margin({left:d.left,top:d.top}).svgContainer(Y).xScale(t),Q.call(l)),K.attr("width",B).attr("height",U),r.width(B).height(U).color(c.map((function(e,t){return e.color||m(e,t)})).filter((function(e,t){return!c[t].disabled}))),J.datum(c.filter((function(e){return!e.disabled}))),b&&(i.scale(t)._ticks(e.utils.calcTicksX(B/100,c)),i.tickSizeInner(-U)),_&&(P=r.offset()===d3.stackOffsetWiggle?0:e.utils.calcTicksY(U/36,c),o.scale(n)._ticks(P),o.tickSizeInner(-B)),x){u.width(B),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 J.transition().call(r),se(),ae();function ce(e){J.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}}))),J.transition().duration(O).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})),T.disabled=c.map((function(e){return!!e.disabled})),M.call("stateChange",this,T),j.update()})),s.dispatch.on("stateChange",(function(e){for(var t in e)T[t]=e[t];M.call("stateChange",this,e),j.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),T.style=r.style(),M.call("stateChange",this,T),j.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=j.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=j.xScale()(j.x()({x:p[0],y:p[1]},i)));var g="expand"==r.style()?p[1]:j.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=j.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:E,value:a,total:!0});var f=j.x()({x:n[0],y:n[1]},i),g=l.tooltip.valueFormatter();"expand"===r.style()||"stack_percent"===r.style()?(R||(R=g),g=d3.format(".1%")):R&&(g=R,R=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)})),M.on("changeState",(function(e){void 0!==e.disabled&&c.length===e.disabled.length&&(c.forEach((function(t,n){t.disabled=e.disabled[n]})),T.disabled=e.disabled),void 0!==e.style&&(r.style(e.style),e.style),j.update()}))})),P.renderEnd("stacked Area chart immediate"),j}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)})),j.dispatch=M,j.stacked=r,j.legend=s,j.controls=a,j.xAxis=i,j.x2Axis=u.xAxis,j.yAxis=o,j.y2Axis=u.yAxis,j.interactiveLayer=l,j.tooltip=c,j.focus=u,j.dispatch=M,j.options=e.utils.optionsFunc.bind(j),j._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 C},set:function(e){C=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 L},set:function(e){L=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 E},set:function(e){E=e}},focusEnable:{get:function(){return x},set:function(e){x=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 O},set:function(e){O=e,P.reset(O),d3.transition().duration(O).ease(d3.easeLinear),r.duration(O),i.duration(O),o.duration(O)}},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 S},set:function(e){S=!!e,j.interactive(!e),j.useVoronoi(!e),r.scatter.interactive(!e)}}}),e.utils.inheritOptions(j,r),e.utils.initOptions(j),j},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]),x=d3.scaleSqrt(),S=d3.partition(),k={},E=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,x(e.y))})).outerRadius((function(e){return Math.max(0,x(e.y+e.dy))}));function T(e){return C(e)>90?180:0}function C(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 M(e,n){var r=d3.interpolate(w.domain(),[t.x,t.x+t.dx]),o=d3.interpolate(x.domain(),[t.y,1]),s=d3.interpolate(x.range(),[t.y?20:0,i]);return 0===n?function(){return E(e)}:function(t){return w.domain(r(t)),x.domain(o(t)).range(s(t)),E(e)}}function A(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,E(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",M).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("+(x(t.y)+5)+",0)";var r=C(t),i=T(t);return 0===i?"rotate("+r+")translate("+(x(t.y)+5)+",0)":"rotate("+r+")translate("+(x(t.y)+n+5)+",0)rotate("+i+")"}))}))}var L=e.utils.renderWatch(_);function O(t){return L.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,x.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})})),S(c[l]||c.count);var g=S.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 M=m.selectAll(".arc-container").data(g,v);M.enter().append("g").attr("class","arc-container").append("path").attr("d",E).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})})),M.each((function(e){d3.select(this).select("path").transition().duration(b).attrTween("d",A)})),p&&(M.selectAll("text").remove(),M.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=C(e),r=T(e);return 0===r?"rotate("+n+")translate("+(x(e.y)+5)+",0)":"rotate("+n+")translate("+(x(e.y)+t+5)+",0)rotate("+r+")"}))),I(g[g.length-1]),M.exit().transition().duration(b).attr("opacity",0).each("end",(function(e){k[v(e)]=void 0})).remove()})),L.renderEnd("sunburst immediate"),O}return O.dispatch=_,O.options=e.utils.optionsFunc.bind(O),O._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(O),O},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.12"}(),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,x=function(e,t){return new x.fn.init(e,t)};function S(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()}x.fn=x.prototype={jquery:_,constructor:x,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=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.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(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.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},x.extend=x.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&&(x.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||x.isPlainObject(n)?n:{},i=!1,s[t]=x.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},x.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(S(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+=x.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&&(S(Object(e))?x.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(S(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&&(x.fn[Symbol.iterator]=n[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var E=n.pop,T=n.sort,C=n.splice,D="[\\x20\\t\\r\\n\\f]",M=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");x.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 A=/([\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}x.escapeSelector=function(e){return(e+"").replace(A,I)};var L=g,O=s;!function(){var t,r,o,s,l,c,d,h,f,m,g=O,v=x.expando,y=0,b=0,_=ee(),w=ee(),S=ee(),A=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",R="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",P="\\["+D+"*("+R+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+D+"*\\]",F=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",j=new RegExp(D+"+","g"),Y=new RegExp("^"+D+"*,"+D+"*"),V=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),H=new RegExp(D+"|>"),B=new RegExp(F),U=new RegExp("^"+R+"$"),z={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+F),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()},J=he((function(e){return!0===e.disabled&&k(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(n=i.call(L.childNodes),L.childNodes),n[L.childNodes.length].nodeType}catch(t){g={apply:function(e,t){O.apply(e,i.call(t))},call:function(e){O.apply(e,i.call(arguments,1))}}}function Q(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))&&Q.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(!(A[e+" "]||f&&f.test(e))){if(d=e,m=t,1===y&&(H.test(e)||V.test(e))){for((m=G.test(e)&&ae(t.parentNode)||t)==t&&p.scope||((a=t.getAttribute("id"))?a=x.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){A(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return ye(e.replace(M,"$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&&J(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:L;return n!=c&&9===n.nodeType&&n.documentElement&&(d=(c=n).documentElement,h=!x.isXMLDoc(c),m=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&L!=c&&(t=c.defaultView)&&t.top!==t&&t.addEventListener("unload",X),p.getById=ne((function(e){return d.appendChild(e).id=x.expando,!c.getElementsByName||!c.getElementsByName(x.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==L&&Q.contains(L,e)?-1:t===c||t.ownerDocument==L&&Q.contains(L,t)?1:s?a.call(s,e)-a.call(s,t):0:4&n?-1:1)}),c}for(t in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),h&&!A[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){A(t,!0)}return 0<Q(t,c,null,[e]).length},Q.contains=function(e,t){return(e.ownerDocument||e)!=c&&le(e),x.contains(e,t)},Q.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)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],r=0,o=0;if(l=!p.sortStable,s=!p.sortStable&&i.call(e,0),T.call(e,I),l){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)C.call(e,n[r],1)}return s=null,e},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(i.apply(this)))},(r=x.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]||Q.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]&&Q.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&&B.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=Q.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(j," ")+" ").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()]||Q.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(M,"$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<Q(e,t).length}})),contains:te((function(e){return e=e.replace(K,Z),function(t){return-1<(t.textContent||x.text(t)).indexOf(e)}})),lang:te((function(e){return U.test(e||"")||Q.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=Y.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),n=!1,(i=V.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(M," ")}),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?Q.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++)Q(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(M,"$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=S[e+" "];if(!f){for(t||(t=ue(e)),n=t.length;n--;)(f=ge(t[n]))[v]?d.push(f):p.push(f);(f=S(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=[],S=o,k=e||l&&r.find.TAG("*",d),T=y+=null==S?1:Math.random()||.1,C=k.length;for(d&&(o=t==c||t||d);b!==C&&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=T)}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]=E.call(u));w=fe(w)}g.apply(u,w),d&&!e&&0<w.length&&1<v+s.length&&x.uniqueSort(u)}return d&&(y=T,o=S),_},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"))})),x.find=Q,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Q.compile=ve,Q.select=ye,Q.setDocument=le,Q.tokenize=ue,Q.escape=x.escapeSelector,Q.getText=x.text,Q.isXML=x.isXMLDoc,Q.selectors=x.expr,Q.support=x.support,Q.uniqueSort=x.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&&x(e).is(n))break;r.push(e)}return r},R=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},P=x.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return f(t)?x.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?x.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?x.grep(e,(function(e){return-1<a.call(t,e)!==n})):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<r;t++)if(x.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,i[t],n);return 1<r?x.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&P.test(e)?x(e):e||[],!1).length}});var Y,V=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Y,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:V.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 x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),F.test(r[1])&&x.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(x):x.makeArray(e,this)}).prototype=x.fn,Y=x(g);var H=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function U(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&x(e);if(!P.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&&x.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?x.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?a.call(x(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(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.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 R((e.parentNode||{}).firstChild,e)},children:function(e){return R(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),1<this.length&&(B[e]||x.uniqueSort(i),H.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])}}x.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},x.each(t.match(z)||[],(function(e,t){n[t]=!0})),n):x.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){x.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 x.each(arguments,(function(e,t){for(var n;-1<(n=x.inArray(t,a,n));)a.splice(n,1),n<=c&&c--})),this},has:function(e){return e?-1<x.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},x.extend({Deferred:function(t){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.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 x.Deferred((function(t){x.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){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(e,u.error),o<=t+1&&(r!==W&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?u():(x.Deferred.getErrorHook?u.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(u.error=x.Deferred.getStackHook()),e.setTimeout(u))}}return x.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?x.extend(e,i):i}},o={};return x.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=x.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$/;x.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)},x.readyException=function(t){e.setTimeout((function(){throw t}))};var K=x.Deferred();function Z(){g.removeEventListener("DOMContentLoaded",Z),e.removeEventListener("load",Z),x.ready()}x.fn.ready=function(e){return K.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0)!==e&&0<--x.readyWait||K.resolveWith(g,[x])}}),x.ready.then=K.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(x.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(x(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},J=/^-ms-/,Q=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(J,"ms-").replace(Q,ee)}var ne=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function re(){this.expando=x.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||x.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&&!x.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}x.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)}}),x.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)}))}}),x.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,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){x.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:x.Callbacks("once memory").add((function(){ie.remove(e,[t+"queue",n])}))})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each((function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.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 x.contains(e.ownerDocument,e)},fe={composed:!0};he.getRootNode&&(pe=function(e){return x.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"===x.css(e,"display")};function ge(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return x.css(e,t,"")},l=a(),c=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==c&&+l)&&ue.exec(x.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)x.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,x.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=x.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}x.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)?x(this).show():x(this).hide()}))}});var be,_e,we=/^(?:checkbox|radio)$/i,xe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^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 Ee(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)?x.merge([e],n):n}function Te(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 Ce=/<|&#?\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))x.merge(h,o.nodeType?[o]:o);else if(Ce.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(xe.exec(o)||["",""])[1].toLowerCase(),l=ke[a]||ke._default,s.innerHTML=l[1]+x.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;x.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<x.inArray(o,r))i&&i.push(o);else if(c=pe(o),s=Ee(d.appendChild(o),"script"),c&&Te(s),n)for(u=0;o=s[u++];)Se.test(o.type||"")&&n.push(o);return d}var Me=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Ie(){return!1}function Le(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)Le(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 x().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=x.guid++)),e.each((function(){x.event.add(this,t,i,r,n)}))}function Oe(e,t,n){n?(ie.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ie.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(x.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,x.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ae)}})):void 0===ie.get(e,t)&&x.event.add(e,t,Ae)}x.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&&x.find.matchesSelector(he,i),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)p=m=(a=Me.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=x.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=x.event.special[p]||{},u=x.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.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),x.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=Me.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=x.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)||x.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)x.event.remove(e,p+t[c],n,r,!0);x.isEmptyObject(l)&&ie.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=new Array(arguments.length),l=x.event.fix(e),c=(ie.get(this,"events")||Object.create(null))[l.type]||[],u=x.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=x.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=((x.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<x(i,this).index(c):x.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(x.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[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&k(t,"input")&&Oe(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&k(t,"input")&&Oe(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)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae: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&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.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},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(g.documentMode){var n=ie.get(this,"handle"),r=x.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else x.event.simulate(t,e.target,x.event.fix(e))}x.event.special[e]={setup:function(){var r;if(Oe(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 Oe(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},x.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))}}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||x.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),x.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(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(){x.event.remove(this,e,n,t)}))}});var Ne=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fe(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ye(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ve(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++)x.event.add(t,i,a[i][n]);oe.hasData(e)&&(o=oe.access(e),s=x.extend({},o),oe.set(t,s))}}function He(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&&Re.test(g))return e.each((function(i){var o=e.eq(i);v&&(t[0]=g.call(this,i,o.html())),He(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=x.map(Ee(i,"script"),je)).length;d<h;d++)c=i,d!==m&&(c=x.clone(c,!0,!0),l&&x.merge(a,Ee(c,"script"))),n.call(e[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,x.map(a,Ye),d=0;d<l;d++)c=a[d],Se.test(c.type||"")&&!ie.access(c,"globalEval")&&x.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Pe,""),c,u))}return e}function Be(e,t,n){for(var r,i=t?x.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||x.cleanData(Ee(r)),r.parentNode&&(n&&pe(r)&&Te(Ee(r,"script")),r.parentNode.removeChild(r));return e}x.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||x.isXMLDoc(e)))for(s=Ee(u),r=0,i=(o=Ee(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||Ee(e),s=s||Ee(u),r=0,i=o.length;r<i;r++)Ve(o[r],s[r]);else Ve(e,u);return 0<(s=Ee(u,"script")).length&&Te(s,!d&&Ee(e,"script")),u},cleanData:function(e){for(var t,n,r,i=x.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]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[ie.expando]=void 0}n[oe.expando]&&(n[oe.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return X(this,(function(e){return void 0===e?x.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 He(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return He(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return He(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&&(x.cleanData(Ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.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[(xe.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(Ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return He(this,arguments,(function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(Ee(this)),n&&n.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var n,r=[],i=x(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),x(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(M,"$1")||void 0),""!==s||pe(e)||(s=x.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,x.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,Je={};function Qe(e){return x.cssProps[e]||Je[e]||(e in Xe?e:Je[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+=x.css(e,n+de[s],!0,i)),r?("content"===n&&(l-=x.css(e,"padding"+de[s],!0,i)),"margin"!==n&&(l-=x.css(e,"border"+de[s]+"Width",!0,i))):(l+=x.css(e,"padding"+de[s],!0,i),"padding"!==n?l+=x.css(e,"border"+de[s]+"Width",!0,i):a+=x.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"===x.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"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===x.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)}x.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=Qe(a)),s=x.cssHooks[t]||x.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]||(x.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=Qe(a)),(s=x.cssHooks[t]||x.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}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!et.test(x.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"===x.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=x.css(e,t)),rt(0,n,l)}}})),x.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"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.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&&(x.cssHooks[e+t].set=rt)})),x.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]]=x.css(e,t[s],!1,r);return o}return void 0!==n?x.style(e,t,n):x.css(e,t)}),e,t,1<arguments.length)}}),((x.Tween=st).prototype={constructor:st,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.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=x.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=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:x.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)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=st.prototype.init,x.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,x.fx.interval),x.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=x.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:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||ft(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.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=x.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)&&(x._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return x.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),x.fx.timer(x.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.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=x._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--,x.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]||x.style(e,r)}if((l=!x.isEmptyObject(t))||!x.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=x.css(e,"display"))&&(c?u=c:(ye([e],!0),c=e.style.display||c,u=x.css(e,"display"),ye([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.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)x.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)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||f(e)&&e,duration:e,easing:n&&t||t&&!f(t)&&t};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.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&&x.dequeue(this,r.queue)},r},x.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=x.isEmptyObject(e),o=x.speed(t,n,r),s=function(){var t=vt(this,x.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=x.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||x.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=x.timers,s=r?r.length:0;for(n.finish=!0,x.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}))}}),x.each(["toggle","show","hide"],(function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(mt(t,!0),e,r,i)}})),x.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),at=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){lt||(lt=!0,pt())},x.fx.stop=function(){lt=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,n){return t=x.fx&&x.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=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return X(this,x.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?x.prop(e,t,n):(1===o&&x.isXMLDoc(e)||(i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void x.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=x.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?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=bt[t]||x.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 xt(e){return(e.match(z)||[]).join(" ")}function St(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}x.fn.extend({prop:function(e,t){return X(this,x.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(e)||(t=x.propFix[t]||t,i=x.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=x.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||(x.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)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,r,i,o,s;return f(e)?this.each((function(t){x(this).addClass(e.call(this,t,St(this)))})):(t=kt(e)).length?this.each((function(){if(r=St(this),n=1===this.nodeType&&" "+xt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");s=xt(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){x(this).removeClass(e.call(this,t,St(this)))})):arguments.length?(t=kt(e)).length?this.each((function(){if(r=St(this),n=1===this.nodeType&&" "+xt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];-1<n.indexOf(" "+i+" ");)n=n.replace(" "+i+" "," ");s=xt(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){x(this).toggleClass(e.call(this,n,St(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=kt(e),this.each((function(){if(a)for(o=x(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=St(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<(" "+xt(St(n))+" ").indexOf(t))return!0;return!1}});var Et=/\r/g;x.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,x(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Et,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:xt(x.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=x(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=x.makeArray(t),s=i.length;s--;)((r=i[s]).selected=-1<x.inArray(x.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<x.inArray(x(e).val(),t)}},p.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Tt=e.location,Ct={guid:Date.now()},Dt=/\?/;x.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||x.error("Invalid XML: "+(r?x.map(r.childNodes,(function(e){return e.textContent})).join("\n"):t)),n};var Mt=/^(?:focusinfocus|focusoutblur)$/,At=function(e){e.stopPropagation()};x.extend(x.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&&!Mt.test(y+x.event.triggered)&&(-1<y.indexOf(".")&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[x.expando]?t:new x.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]:x.makeArray(n,[t]),h=x.event.special[y]||{},i||!h.trigger||!1!==h.trigger.apply(r,n))){if(!i&&!h.noBubble&&!m(r)){for(l=h.delegateType||y,Mt.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),x.event.triggered=y,t.isPropagationStopped()&&p.addEventListener(y,At),r[y](),t.isPropagationStopped()&&p.removeEventListener(y,At),x.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}});var It=/\[\]$/,Lt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Rt(e,t,n,r){var i;if(Array.isArray(t))x.each(t,(function(t,i){n||It.test(e)?r(e,i):Rt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==b(t))r(e,t);else for(i in t)Rt(e+"["+i+"]",t[i],n,r)}x.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&&!x.isPlainObject(e))x.each(e,(function(){i(this.name,this.value)}));else for(n in e)Rt(n,e[n],t,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Nt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!we.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:n.replace(Lt,"\r\n")}})).get()}});var Pt=/%20/g,Ft=/#.*$/,jt=/([?&])_=[^&]*/,Yt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Vt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Bt={},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,x.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=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}qt.href=Tt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,x.ajaxSettings),t):Gt(x.ajaxSettings,e)},ajaxPrefilter:Wt(Bt),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=x.ajaxSetup({},n),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?x(f):x.event,v=x.Deferred(),y=x.Callbacks("once memory"),b=p.statusCode||{},_={},w={},S="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Yt.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||S;return r&&r.abort(t),E(0,t),this}};if(v.promise(k),p.url=((t||p.url||Tt.href)+"").replace(Ht,Tt.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=x.param(p.data,p.traditional)),$t(Bt,p,n,k),c)return k;for(d in(u=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Vt.test(p.type),i=p.url.replace(Ft,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pt,"+")):(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(jt,"$1"),h=(Dt.test(i)?"&":"?")+"_="+Ct.guid+++h),p.url=i+h),p.ifModified&&(x.lastModified[i]&&k.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&k.setRequestHeader("If-None-Match",x.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(S="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(_,E)}catch(t){if(c)throw t;E(-1,t)}}else E(-1,"No Transport");function E(t,n,s,l){var d,h,g,_,w,S=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<x.inArray("script",p.dataTypes)&&x.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"))&&(x.lastModified[i]=w),(w=k.getResponseHeader("etag"))&&(x.etag[i]=w)),204===t||"HEAD"===p.type?S="nocontent":304===t?S="notmodified":(S=_.state,h=_.data,d=!(g=_.error))):(g=S,!t&&S||(S="error",t<0&&(t=0))),k.status=t,k.statusText=(n||S)+"",d?v.resolveWith(f,[h,S,k]):v.rejectWith(f,[k,S,g]),k.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,p,d?h:g]),y.fireWith(f,[k,S]),u&&(m.trigger("ajaxComplete",[k,p]),--x.active||x.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,r,i){return f(n)&&(i=i||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:i,data:n,success:r},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=x(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){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Zt=x.ajaxSettings.xhr();p.cors=!!Zt&&"withCredentials"in Zt,p.ajax=Zt=!!Zt,x.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()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.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 x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=x("<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,Jt=[],Qt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||x.expando+"_"+Ct.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(Qt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.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(Qt,"$1"+i):!1!==t.jsonp&&(t.url+=(Dt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||x.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?x(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Jt.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),x.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=F.exec(e))?[t.createElement(i[1])]:(i=De([e],t,o),o&&o.length&&x(o).remove(),x.merge([],i.childNodes)));var r,i,o},x.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return-1<a&&(r=xt(e.slice(a)),e=e.slice(0,a)),f(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<s.length&&x.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,n){var r,i,o,s,a,l,c=x.css(e,"position"),u=x(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=x.css(e,"top"),l=x.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,x.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)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.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"===x.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"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),i.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-x.css(r,"marginTop",!0),left:t.left-i.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||he}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;x.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)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=Ke(p.pixelPosition,(function(e,n){if(n)return n=Ge(e,t),Ue.test(n)?x(e).position()[t]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){x.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?x.css(t,n,a):x.style(t,n,i,a)}),t,s?i:void 0,s)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.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)}}),x.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){x.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;x.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||x.guid++,o},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=k,x.isFunction=f,x.isWindow=m,x.camelCase=te,x.type=b,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return x}));var tn=e.jQuery,nn=e.$;return x.noConflict=function(t){return e.$===x&&(e.$=nn),t&&e.jQuery===x&&(e.jQuery=tn),x},void 0===t&&(e.jQuery=e.$=x),x}));
|
|
744
744
|
/*!
|
|
745
745
|
FullCalendar v5.3.1
|
|
746
746
|
Docs & License: https://fullcalendar.io/
|
|
@@ -1725,7 +1725,7 @@ i.version="2.30.1",o(Zn),i.fn=co,i.min=er,i.max=tr,i.now=nr,i.utc=m,i.unix=uo,i.
|
|
|
1725
1725
|
/*!**********************************************************!*\
|
|
1726
1726
|
!*** ./src/manager/variable/service-variable.manager.ts ***!
|
|
1727
1727
|
\**********************************************************/
|
|
1728
|
-
(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServiceVariableManager:()=>v});var r,i=n(/*! ../../util/utils */"./src/util/utils.ts"),o=n(/*! ../../util/file-upload.util */"./src/util/file-upload.util.ts"),s=n(/*! ../../util/variable/service-variable.utils */"./src/util/variable/service-variable.utils.ts"),a=n(/*! ../../util/inflight-queue */"./src/util/inflight-queue.ts"),l=n(/*! ./base-variable.manager */"./src/manager/variable/base-variable.manager.ts"),c=n(/*! ../../constants/variables.constants */"./src/constants/variables.constants.ts"),u=n(/*! ../../util/variable/variables.utils */"./src/util/variable/variables.utils.ts"),d=n(/*! ../../util/oAuth.utils */"./src/util/oAuth.utils.ts"),h=n(/*! ../../util/variable/pagination.utils */"./src/util/variable/pagination.utils.ts"),p=n(/*! ../../model/base-variable */"./src/model/base-variable.ts"),f=n(/*! lodash */"./node_modules/lodash/lodash.js"),m=n.n(f),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fileUploadResponse=[],t.fileUploadCount=0,t.totalFilesCount=0,t.successFileUploadCount=0,t.failedFileUploadCount=0,t}return g(t,e),t.prototype.processErrorResponse=function(e,t,n,r,o,s){var l=this.getMethodInfo(e,{},{}),h=m().get(l,"securityDefinitions.0"),f=this.prepareCallbackOptions(r);o||(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ERROR,e,t,f,s),m().get(h,"type")===c.VARIABLE_CONSTANTS.REST_SERVICE.SECURITY_DEFN.OAUTH2&&m().includes([c.VARIABLE_CONSTANTS.HTTP_STATUS_CODE.UNAUTHORIZED,c.VARIABLE_CONSTANTS.HTTP_STATUS_CODE.FORBIDDEN],m().get(r,"status"))&&(0,d.removeAccessToken)(h["x-WM-PROVIDER_ID"]),(0,i.triggerFn)(n,t),e.notify(p.VariableEvents.AFTER_INVOKE,[this,t]),c.CONSTANTS.isStudioMode||(e.canUpdate=!0,a.$queue.process(e),(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.CAN_UPDATE,e,t,f))},t.prototype.processSuccessResponse=function(e,t,n,r,o,s){var l,d,f,g={},v=(0,i.getValidJSON)(e);e=(0,i.isDefined)(v)?v:e&&(0,i.xmlToJson)(e)||e;var y=(0,i.isPageable)(e);if("DataService"===t.serviceType||"JavaService"===t.serviceType){var b=(0,u.decodeData)(e);m().isString(e)&&(e=b)}y?(l=e.content,g=m().omit(e,"content")):l=e,f=this.prepareCallbackOptions(n.xhrObj,{pagination:g,rawData:l}),(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.RESULT,t,e,f),(0,i.triggerFn)(r,e,g),t.transformationColumns&&this.transformData(e,t),l=m().isObject(l)?l:{value:l},d=(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.PREPARE_SETDATA,t,l,f),(0,i.isDefined)(d)&&(l=d);var _=(0,i.getClonedObject)(n.inputFields||t.dataBinding),w=s||this.getMethodInfo(t,_,n),x=h.PaginationUtils.getPaginationInfo(w,t);if(x){var S=h.PaginationUtils.generatePaginationRes(w,x,e,o,n,t);m().isEmpty(S)||h.PaginationUtils.setVariablePagination(t,S,n)}return n.forceRunMode||n.skipDataSetUpdate||(t._paginationConfig||(t.pagination=g),t.dataSet=l,y&&Object.defineProperty(t.dataSet,"content",{get:function(){return t.dataSet}})),t.notify(p.VariableEvents.AFTER_INVOKE,[this,l]),setTimeout((function(){(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.SUCCESS,t,l,f),c.CONSTANTS.isStudioMode||(t.canUpdate=!0,a.$queue.process(t)),(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.CAN_UPDATE,t,l,f)})),{data:t.dataSet,pagination:t.pagination}},t.prototype.uploadFileInFormData=function(e,t,n,r,i,s){var a=this,l=(0,o.upload)(i,e,s.data,{fileParamName:"files",url:s.url});return l.then((function(r){return a.fileUploadCount++,a.successFileUploadCount++,a.fileUploadResponse.push(r[0]),a.totalFilesCount===a.fileUploadCount&&(0===a.failedFileUploadCount?(a.processSuccessResponse(a.fileUploadResponse,e,t,n),a.fileUploadResponse=[],e.onSuccess||u.appManager&&u.appManager.notifyApp(u.appManager.getAppLocale().MESSAGE_FILE_UPLOAD_SUCCESS,"success")):((0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ERROR,e,a.fileUploadResponse),a.fileUploadResponse=[],u.appManager&&u.appManager.notifyApp(u.appManager.getAppLocale().MESSAGE_FILE_UPLOAD_ERROR,"error")),a.fileUploadCount=0,a.successFileUploadCount=0,a.totalFilesCount=0),r}),(function(n){a.fileUploadCount++,a.failedFileUploadCount++,a.fileUploadResponse.push(n);var o=(0,u.getErrMessage)(n,e.httpService.getLocale());return e._progressObservable&&e._progressObservable.next({status:"error",fileName:i.name,errMsg:o}),a.totalFilesCount===a.fileUploadCount&&(a.processErrorResponse(e,o,r,n,t.skipNotification),a.fileUploadResponse=[],a.fileUploadCount=0,a.failedFileUploadCount=0,a.totalFilesCount=0),n}),(function(t){return e._progressObservable&&e._progressObservable.next({progress:t,status:c.VARIABLE_CONSTANTS.EVENT.PROGRESS,fileName:i.name}),(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.PROGRESS,e,t),t})),l},t.prototype.handleAuthError=function(e,t,n,r){var i;return m().get(u.securityService.get(),"authenticated")?i={error:{message:"You're not authorised to access the resource \""+e.service+'".'}}:(i={error:{message:"You're not authenticated to access the resource \""+e.service+'".',skipDefaultNotification:!0}},u.appManager.pushToSessionFailureRequests(e.invoke.bind(e,r,t,n)),u.appManager.handle401()),console.warn(e.name+": "+i.error.message),i},t.prototype.handleRequestMetaError=function(e,t,n,r,i){try{var o=m().get(e,"error.type");switch(o){case c.VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.NO_ACCESSTOKEN:(0,d.performAuthorization)(void 0,e.securityDefnObj[c.VARIABLE_CONSTANTS.REST_SERVICE.OAUTH_PROVIDER_KEY],this.invoke.bind(this,t,i,n,r),null,this.getProviderInfo(t,e.securityDefnObj["x-WM-PROVIDER_ID"])),this.processErrorResponse(t,e.error.message,r,i.xhrObj,!0,!0);break;case c.VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.USER_UNAUTHORISED:e=this.handleAuthError(t,n,r,i),this.processErrorResponse(t,e.error.message,r,i.xhrObj,i.skipNotification,e.error.skipDefaultNotification);break;case c.VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.METADATA_MISSING:case c.VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.CRUD_OPERATION_MISSING:if(e.error.message){e.error.message=e.error.message.replace("$variable",t.name);var s=void 0;s=o===c.VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.METADATA_MISSING?["1. You did not Preview the app after creating a Variable for the imported service.","2. You deleted the imported service this Variable is linked to."]:["1. You haven't chosen an endpoint for "+i.operation+" operation for this Entity."],console.warn(e.error.message+"\n Possible reasons for this:\n "+s.join("\n "))}this.processErrorResponse(t,e.error.message,r,i.xhrObj,i.skipNotification,e.error.skipDefaultNotification);break;default:e.error.message&&(console.warn(e.error.message,t.name),this.processErrorResponse(t,e.error.message,r,i.xhrObj,i.skipNotification,e.error.skipDefaultNotification))}}catch(e){console.error(e)}return e},t.prototype.transformData=function(e,t){e.wmTransformedData=[];var n=t.transformationColumns,r=m().get(e,t.dataField)||[],i=e.wmTransformedData;m().forEach(r,(function(e,t){i[t]={},m().forEach(n,(function(n,r){i[t][n]=e[r]}))}))},t.prototype.getMethodInfo=function(e,t,n){var r;if(m().isEmpty(u.metadataService))r=e.serviceInfo;else{var o=(0,i.getClonedObject)(u.metadataService.getByOperationId(e.operationId,e.getPrefabName()));r=null===o?null:m().get(o,"wmServiceOperationInfo")}if(!r)return r;var s=m().get(r.securityDefinitions,"0"),a=s&&s.type===c.VARIABLE_CONSTANTS.REST_SERVICE.SECURITY_DEFN.OAUTH2;return r.parameters&&r.parameters.forEach((function(r){r.readOnly||(r.sampleValue=t[r.name],-1!==c.VARIABLE_CONSTANTS.PAGINATION_PARAMS.indexOf(r.name)?"size"===r.name?r.sampleValue=n.size||r.sampleValue||parseInt(e.maxResults,10):"page"===r.name?r.sampleValue=n.page||r.sampleValue||1:"sort"===r.name&&(r.sampleValue=(0,u.getEvaluatedOrderBy)(e.orderBy,n.orderBy)||r.sampleValue||""):"access_token"===r.name&&a&&(r.sampleValue=(0,d.getAccessToken)(s[c.VARIABLE_CONSTANTS.REST_SERVICE.OAUTH_PROVIDER_KEY],null)))})),r},t.prototype.getProviderInfo=function(e,t){return(0,i.getClonedObject)(null===u.metadataService||void 0===u.metadataService?void 0:u.metadataService.getByProviderId(t,e.getPrefabName()))},t.prototype.isFileUploadInProgress=function(e){var t=!1;return m().forEach(e,(function(e){m().isArray(e)&&e[0]instanceof File&&m().forEach(e,(function(e){"onProgress"!==e.status||(t=!0)}))})),t},t.prototype.uploadFile=function(e,t,n,r,i,o){var s=this,a=0,l=[],c=[];if(m().forEach(i,(function(e){m().isArray(e)?(e[0]instanceof File&&a++,m().forEach(e,(function(e){(e instanceof File||m().find(m().values(e),(function(e){return e instanceof Blob})))&&(l.push(e),s.totalFilesCount++,a=a||1)}))):e instanceof File&&(a++,s.totalFilesCount++,l.push(e))})),1===a)return i.files.length>1?(m().forEach(l,(function(i){c.push(s.uploadFileInFormData(e,t,n,r,i,o))})),Promise.all(c)):this.uploadFileInFormData(e,t,n,r,l[0],o)},t.prototype._invoke=function(e,t,n,r){var o,l,d=this,h=(0,i.getClonedObject)(t.inputFields||e.dataBinding),p=(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE,e,h,t);if(!1===p)return a.$queue.process(e),void(0,i.triggerFn)(r);m().isObject(p)&&(h=p);var f=this.getMethodInfo(e,h,t),g=s.ServiceVariableUtils.constructRequestParams(e,f,h,t);if(g.error){var v=this.handleRequestMetaError(g,e,n,r,t),y=(m().get(v,"error.message")||"An error occurred while triggering the variable: ")+": "+e.name;return(0,i.triggerFn)(r),a.$queue.process(e),Promise.reject(y)}if(s.ServiceVariableUtils.isFileUploadRequest(e)){var b=this.uploadFile(e,t,n,r,h,g);if(b)return b}return f&&m().isArray(f.produces)&&m().includes(f.produces,c.WS_CONSTANTS.CONTENT_TYPES.OCTET_STREAM)&&e.simulateFileDownload?e.simulateFileDownload(g,e.dataBinding.file||e.name,e.dataBinding.exportType,(function(){(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.SUCCESS,e,null,null,null),a.$queue.process(e),(0,i.triggerFn)(n)}),(function(){(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ERROR,e,null,null,null),a.$queue.process(e),(0,i.triggerFn)(r)}),e.dataBinding):(this.notifyInflight(e,!t.skipToggleState),o=function(r,i){if(r&&r.type||r&&r.status){var o=r.body||r.data,s=d.processSuccessResponse(o,e,m().extend(t,{xhrObj:r}),n,r.headers);d.notifyInflight(e,!1,s),i(r)}},l=function(n,i){var o=(0,u.getErrMessage)(n,e.httpService.getLocale());d.notifyInflight(e,!1),d.processErrorResponse(e,o,r,n,t.skipNotification),i({error:o,details:n})},new Promise((function(t,n){g.responseType="text",e.httpService.sendCall(g,e).then((function(e){o(e,t)})).catch((function(e){(e=e||{}).error=e.error||"{}";var t=(0,i.getValidJSON)(e.error);e.error=(0,i.isDefined)(t)?t:e.error,l(e,n)}))})))},t.prototype.invoke=function(e,t,n,r){return(t=t||{}).inputFields=t.inputFields||(0,i.getClonedObject)(e.dataBinding),a.$queue.submit(e).then(this._invoke.bind(this,e,t,n,r),r)},t.prototype.setPagination=function(e,t){e._paginationConfig=t},t.prototype.download=function(e,t,n,r){t=t||{};var o,a=(0,i.getClonedObject)(e.dataBinding),l=t.data||{},d=this.getMethodInfo(e,a,t);return d.relativePath+="/export",(o=s.ServiceVariableUtils.constructRequestParams(e,d,a)).data=l,o.data.fields=(0,u.formatExportExpression)(l.fields||[]),o.method=t.httpMethod||"POST",o.url=t.url||o.url,m().hasIn(o,"error.message")?((0,i.triggerFn)(r,o.error.message),Promise.reject(o.error.message)):e.httpService.send(o).then((function(t){t&&(0,i.isValidWebURL)(t.body.result)?(window.location.href=t.body.result,(0,i.triggerFn)(n,t)):((0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ERROR,e,t),(0,i.triggerFn)(r,t))}),(function(t,n){(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ERROR,e,t,n),(0,i.triggerFn)(r,t)}))},t.prototype.getInputParms=function(e){var t;return t=m().isEmpty(u.metadataService)?e.serviceInfo:m().get(u.metadataService.getByOperationId(e.operationId,e.getPrefabName()),"wmServiceOperationInfo"),m().get(t,"parameters")},t.prototype.setInput=function(e,t,n,r){return(0,u.setInput)(e.dataBinding,t,n,r)},t.prototype.cancel=function(e,t){a.$queue.requestsQueue.has(e)&&(s.ServiceVariableUtils.isFileUploadRequest(e)?(e.httpService.cancel(e,t),t.status="abort",this.totalFilesCount--,(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ABORT,e,t),this.isFileUploadInProgress(e.dataBinding)||0!==this.totalFilesCount||(a.$queue.process(e),this.notifyInflight(e,!1))):e.httpService.cancel&&(e.httpService.cancel(e),a.$queue.process(e),this.notifyInflight(e,!1)))},t.prototype.defineFirstLastRecord=function(e){e.isList&&(Object.defineProperty(e,"firstRecord",{configurable:!0,get:function(){var t=e.dataSet;return m().head(t&&t.content)||m().head(t)||{}}}),Object.defineProperty(e,"lastRecord",{configurable:!0,get:function(){var t=e.dataSet;return m().last(t&&t.content)||m().last(t)||{}}}))},t.prototype.getQueryParams=function(e,t,n){var r=this.getInputParms(n),i=s.ServiceVariableUtils.excludePaginationParams(r),o={};return m().map(n.dataBinding,(function(e,t){o[t]=e})),m().forEach(e,(function(e){m().includes(i,e)&&(o[e]=t)})),o},t.prototype.searchRecords=function(e,t,n,r){var o=this.getQueryParams(m().split(t.searchKey,","),t.query,e),s={page:t.page,pagesize:t.pagesize,skipDataSetUpdate:!0,skipToggleState:!0,inFlightBehavior:"executeAll",inputFields:o};return t.onBeforeservicecall&&t.onBeforeservicecall(o),this.invoke(e,s,n,r).catch(i.noop)},t}(l.BaseVariableManager)},"./src/model/action/timer-action.ts":
|
|
1728
|
+
(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServiceVariableManager:()=>v});var r,i=n(/*! ../../util/utils */"./src/util/utils.ts"),o=n(/*! ../../util/file-upload.util */"./src/util/file-upload.util.ts"),s=n(/*! ../../util/variable/service-variable.utils */"./src/util/variable/service-variable.utils.ts"),a=n(/*! ../../util/inflight-queue */"./src/util/inflight-queue.ts"),l=n(/*! ./base-variable.manager */"./src/manager/variable/base-variable.manager.ts"),c=n(/*! ../../constants/variables.constants */"./src/constants/variables.constants.ts"),u=n(/*! ../../util/variable/variables.utils */"./src/util/variable/variables.utils.ts"),d=n(/*! ../../util/oAuth.utils */"./src/util/oAuth.utils.ts"),h=n(/*! ../../util/variable/pagination.utils */"./src/util/variable/pagination.utils.ts"),p=n(/*! ../../model/base-variable */"./src/model/base-variable.ts"),f=n(/*! lodash */"./node_modules/lodash/lodash.js"),m=n.n(f),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fileUploadResponse=[],t.fileUploadCount=0,t.totalFilesCount=0,t.successFileUploadCount=0,t.failedFileUploadCount=0,t}return g(t,e),t.prototype.processErrorResponse=function(e,t,n,r,o,s){var l=this.getMethodInfo(e,{},{}),h=m().get(l,"securityDefinitions.0"),f=this.prepareCallbackOptions(r);o||(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ERROR,e,t,f,s),m().get(h,"type")===c.VARIABLE_CONSTANTS.REST_SERVICE.SECURITY_DEFN.OAUTH2&&m().includes([c.VARIABLE_CONSTANTS.HTTP_STATUS_CODE.UNAUTHORIZED,c.VARIABLE_CONSTANTS.HTTP_STATUS_CODE.FORBIDDEN],m().get(r,"status"))&&(0,d.removeAccessToken)(h["x-WM-PROVIDER_ID"]),(0,i.triggerFn)(n,t),e.notify(p.VariableEvents.AFTER_INVOKE,[this,t]),c.CONSTANTS.isStudioMode||(e.canUpdate=!0,a.$queue.process(e),(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.CAN_UPDATE,e,t,f))},t.prototype.processSuccessResponse=function(e,t,n,r,o,s){var l,d,f,g={},v=(0,i.getValidJSON)(e);e=(0,i.isDefined)(v)?v:e&&(0,i.xmlToJson)(e)||e;var y=(0,i.isPageable)(e);if("DataService"===t.serviceType||"JavaService"===t.serviceType){var b=(0,u.decodeData)(e);m().isString(e)&&(e=b)}y?(l=e.content,g=m().omit(e,"content")):l=e,f=this.prepareCallbackOptions(n.xhrObj,{pagination:g,rawData:l}),(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.RESULT,t,e,f),(0,i.triggerFn)(r,e,g),t.transformationColumns&&this.transformData(e,t),l=m().isObject(l)?l:{value:l},d=(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.PREPARE_SETDATA,t,l,f),(0,i.isDefined)(d)&&(l=d);var _=(0,i.getClonedObject)(n.inputFields||t.dataBinding),w=s||this.getMethodInfo(t,_,n),x=h.PaginationUtils.getPaginationInfo(w,t);if(x){var S=h.PaginationUtils.generatePaginationRes(w,x,e,o,n,t);m().isEmpty(S)||h.PaginationUtils.setVariablePagination(t,S,n)}return n.forceRunMode||n.skipDataSetUpdate||(t._paginationConfig||(t.pagination=g),t.dataSet=l,y&&Object.defineProperty(t.dataSet,"content",{get:function(){return t.dataSet}})),t.notify(p.VariableEvents.AFTER_INVOKE,[this,l]),setTimeout((function(){(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.SUCCESS,t,l,f),c.CONSTANTS.isStudioMode||(t.canUpdate=!0,a.$queue.process(t)),(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.CAN_UPDATE,t,l,f)})),{data:t.dataSet,pagination:t.pagination}},t.prototype.uploadFileInFormData=function(e,t,n,r,i,s){var a=this,l=(0,o.upload)(i,e,s.data,{fileParamName:"files",url:s.url});return l.then((function(o){return a.fileUploadCount++,a.successFileUploadCount++,a.fileUploadResponse.push(o[0]),o&&o[0]&&!1===o[0].success&&(e._progressObservable&&e._progressObservable.next({status:"error",fileName:i.name,errMsg:o[0].errorMessage}),a.fileUploadResponse=[],a.processErrorResponse(e,o[0].errorMessage,r,o,t.skipNotification)),a.totalFilesCount===a.fileUploadCount&&!0===o[0].success&&(0===a.failedFileUploadCount?(a.processSuccessResponse(a.fileUploadResponse,e,t,n),a.fileUploadResponse=[],e.onSuccess||u.appManager&&u.appManager.notifyApp(u.appManager.getAppLocale().MESSAGE_FILE_UPLOAD_SUCCESS,"success")):((0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ERROR,e,a.fileUploadResponse),a.fileUploadResponse=[],u.appManager&&u.appManager.notifyApp(u.appManager.getAppLocale().MESSAGE_FILE_UPLOAD_ERROR,"error")),a.fileUploadCount=0,a.successFileUploadCount=0,a.totalFilesCount=0),o}),(function(n){a.fileUploadCount++,a.failedFileUploadCount++,a.fileUploadResponse.push(n);var o=(0,u.getErrMessage)(n,e.httpService.getLocale());return e._progressObservable&&e._progressObservable.next({status:"error",fileName:i.name,errMsg:o}),a.totalFilesCount===a.fileUploadCount&&(a.processErrorResponse(e,o,r,n,t.skipNotification),a.fileUploadResponse=[],a.fileUploadCount=0,a.failedFileUploadCount=0,a.totalFilesCount=0),n}),(function(t){return e._progressObservable&&e._progressObservable.next({progress:t,status:c.VARIABLE_CONSTANTS.EVENT.PROGRESS,fileName:i.name}),(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.PROGRESS,e,t),t})),l},t.prototype.handleAuthError=function(e,t,n,r){var i;return m().get(u.securityService.get(),"authenticated")?i={error:{message:"You're not authorised to access the resource \""+e.service+'".'}}:(i={error:{message:"You're not authenticated to access the resource \""+e.service+'".',skipDefaultNotification:!0}},u.appManager.pushToSessionFailureRequests(e.invoke.bind(e,r,t,n)),u.appManager.handle401()),console.warn(e.name+": "+i.error.message),i},t.prototype.handleRequestMetaError=function(e,t,n,r,i){try{var o=m().get(e,"error.type");switch(o){case c.VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.NO_ACCESSTOKEN:(0,d.performAuthorization)(void 0,e.securityDefnObj[c.VARIABLE_CONSTANTS.REST_SERVICE.OAUTH_PROVIDER_KEY],this.invoke.bind(this,t,i,n,r),null,this.getProviderInfo(t,e.securityDefnObj["x-WM-PROVIDER_ID"])),this.processErrorResponse(t,e.error.message,r,i.xhrObj,!0,!0);break;case c.VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.USER_UNAUTHORISED:e=this.handleAuthError(t,n,r,i),this.processErrorResponse(t,e.error.message,r,i.xhrObj,i.skipNotification,e.error.skipDefaultNotification);break;case c.VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.METADATA_MISSING:case c.VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.CRUD_OPERATION_MISSING:if(e.error.message){e.error.message=e.error.message.replace("$variable",t.name);var s=void 0;s=o===c.VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.METADATA_MISSING?["1. You did not Preview the app after creating a Variable for the imported service.","2. You deleted the imported service this Variable is linked to."]:["1. You haven't chosen an endpoint for "+i.operation+" operation for this Entity."],console.warn(e.error.message+"\n Possible reasons for this:\n "+s.join("\n "))}this.processErrorResponse(t,e.error.message,r,i.xhrObj,i.skipNotification,e.error.skipDefaultNotification);break;default:e.error.message&&(console.warn(e.error.message,t.name),this.processErrorResponse(t,e.error.message,r,i.xhrObj,i.skipNotification,e.error.skipDefaultNotification))}}catch(e){console.error(e)}return e},t.prototype.transformData=function(e,t){e.wmTransformedData=[];var n=t.transformationColumns,r=m().get(e,t.dataField)||[],i=e.wmTransformedData;m().forEach(r,(function(e,t){i[t]={},m().forEach(n,(function(n,r){i[t][n]=e[r]}))}))},t.prototype.getMethodInfo=function(e,t,n){var r;if(m().isEmpty(u.metadataService))r=e.serviceInfo;else{var o=(0,i.getClonedObject)(u.metadataService.getByOperationId(e.operationId,e.getPrefabName()));r=null===o?null:m().get(o,"wmServiceOperationInfo")}if(!r)return r;var s=m().get(r.securityDefinitions,"0"),a=s&&s.type===c.VARIABLE_CONSTANTS.REST_SERVICE.SECURITY_DEFN.OAUTH2;return r.parameters&&r.parameters.forEach((function(r){r.readOnly||(r.sampleValue=t[r.name],-1!==c.VARIABLE_CONSTANTS.PAGINATION_PARAMS.indexOf(r.name)?"size"===r.name?r.sampleValue=n.size||r.sampleValue||parseInt(e.maxResults,10):"page"===r.name?r.sampleValue=n.page||r.sampleValue||1:"sort"===r.name&&(r.sampleValue=(0,u.getEvaluatedOrderBy)(e.orderBy,n.orderBy)||r.sampleValue||""):"access_token"===r.name&&a&&(r.sampleValue=(0,d.getAccessToken)(s[c.VARIABLE_CONSTANTS.REST_SERVICE.OAUTH_PROVIDER_KEY],null)))})),r},t.prototype.getProviderInfo=function(e,t){return(0,i.getClonedObject)(null===u.metadataService||void 0===u.metadataService?void 0:u.metadataService.getByProviderId(t,e.getPrefabName()))},t.prototype.isFileUploadInProgress=function(e){var t=!1;return m().forEach(e,(function(e){m().isArray(e)&&e[0]instanceof File&&m().forEach(e,(function(e){"onProgress"!==e.status||(t=!0)}))})),t},t.prototype.uploadFile=function(e,t,n,r,i,o){var s=this,a=0,l=[],c=[];if(m().forEach(i,(function(e){m().isArray(e)?(e[0]instanceof File&&a++,m().forEach(e,(function(e){(e instanceof File||m().find(m().values(e),(function(e){return e instanceof Blob})))&&(l.push(e),s.totalFilesCount++,a=a||1)}))):e instanceof File&&(a++,s.totalFilesCount++,l.push(e))})),1===a)return i.files.length>1?(m().forEach(l,(function(i){c.push(s.uploadFileInFormData(e,t,n,r,i,o))})),Promise.all(c)):this.uploadFileInFormData(e,t,n,r,l[0],o)},t.prototype._invoke=function(e,t,n,r){var o,l,d=this,h=(0,i.getClonedObject)(t.inputFields||e.dataBinding),p=(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE,e,h,t);if(!1===p)return a.$queue.process(e),void(0,i.triggerFn)(r);m().isObject(p)&&(h=p);var f=this.getMethodInfo(e,h,t),g=s.ServiceVariableUtils.constructRequestParams(e,f,h,t);if(g.error){var v=this.handleRequestMetaError(g,e,n,r,t),y=(m().get(v,"error.message")||"An error occurred while triggering the variable: ")+": "+e.name;return(0,i.triggerFn)(r),a.$queue.process(e),Promise.reject(y)}if(s.ServiceVariableUtils.isFileUploadRequest(e)){var b=this.uploadFile(e,t,n,r,h,g);if(b)return b}return f&&m().isArray(f.produces)&&m().includes(f.produces,c.WS_CONSTANTS.CONTENT_TYPES.OCTET_STREAM)&&e.simulateFileDownload?e.simulateFileDownload(g,e.dataBinding.file||e.name,e.dataBinding.exportType,(function(){(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.SUCCESS,e,null,null,null),a.$queue.process(e),(0,i.triggerFn)(n)}),(function(){(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ERROR,e,null,null,null),a.$queue.process(e),(0,i.triggerFn)(r)}),e.dataBinding):(this.notifyInflight(e,!t.skipToggleState),o=function(r,i){if(r&&r.type||r&&r.status){var o=r.body||r.data,s=d.processSuccessResponse(o,e,m().extend(t,{xhrObj:r}),n,r.headers);d.notifyInflight(e,!1,s),i(r)}},l=function(n,i){var o=(0,u.getErrMessage)(n,e.httpService.getLocale());d.notifyInflight(e,!1),d.processErrorResponse(e,o,r,n,t.skipNotification),i({error:o,details:n})},new Promise((function(t,n){g.responseType="text",e.httpService.sendCall(g,e).then((function(e){o(e,t)})).catch((function(e){(e=e||{}).error=e.error||"{}";var t=(0,i.getValidJSON)(e.error);e.error=(0,i.isDefined)(t)?t:e.error,l(e,n)}))})))},t.prototype.invoke=function(e,t,n,r){return(t=t||{}).inputFields=t.inputFields||(0,i.getClonedObject)(e.dataBinding),a.$queue.submit(e).then(this._invoke.bind(this,e,t,n,r),r)},t.prototype.setPagination=function(e,t){e._paginationConfig=t},t.prototype.download=function(e,t,n,r){t=t||{};var o,a=(0,i.getClonedObject)(e.dataBinding),l=t.data||{},d=this.getMethodInfo(e,a,t);return d.relativePath+="/export",(o=s.ServiceVariableUtils.constructRequestParams(e,d,a)).data=l,o.data.fields=(0,u.formatExportExpression)(l.fields||[]),o.method=t.httpMethod||"POST",o.url=t.url||o.url,m().hasIn(o,"error.message")?((0,i.triggerFn)(r,o.error.message),Promise.reject(o.error.message)):e.httpService.send(o).then((function(t){t&&(0,i.isValidWebURL)(t.body.result)?(window.location.href=t.body.result,(0,i.triggerFn)(n,t)):((0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ERROR,e,t),(0,i.triggerFn)(r,t))}),(function(t,n){(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ERROR,e,t,n),(0,i.triggerFn)(r,t)}))},t.prototype.getInputParms=function(e){var t;return t=m().isEmpty(u.metadataService)?e.serviceInfo:m().get(u.metadataService.getByOperationId(e.operationId,e.getPrefabName()),"wmServiceOperationInfo"),m().get(t,"parameters")},t.prototype.setInput=function(e,t,n,r){return(0,u.setInput)(e.dataBinding,t,n,r)},t.prototype.cancel=function(e,t){a.$queue.requestsQueue.has(e)&&(s.ServiceVariableUtils.isFileUploadRequest(e)?(e.httpService.cancel(e,t),t.status="abort",this.totalFilesCount--,(0,u.initiateCallback)(c.VARIABLE_CONSTANTS.EVENT.ABORT,e,t),this.isFileUploadInProgress(e.dataBinding)||0!==this.totalFilesCount||(a.$queue.process(e),this.notifyInflight(e,!1))):e.httpService.cancel&&(e.httpService.cancel(e),a.$queue.process(e),this.notifyInflight(e,!1)))},t.prototype.defineFirstLastRecord=function(e){e.isList&&(Object.defineProperty(e,"firstRecord",{configurable:!0,get:function(){var t=e.dataSet;return m().head(t&&t.content)||m().head(t)||{}}}),Object.defineProperty(e,"lastRecord",{configurable:!0,get:function(){var t=e.dataSet;return m().last(t&&t.content)||m().last(t)||{}}}))},t.prototype.getQueryParams=function(e,t,n){var r=this.getInputParms(n),i=s.ServiceVariableUtils.excludePaginationParams(r),o={};return m().map(n.dataBinding,(function(e,t){o[t]=e})),m().forEach(e,(function(e){m().includes(i,e)&&(o[e]=t)})),o},t.prototype.searchRecords=function(e,t,n,r){var o=this.getQueryParams(m().split(t.searchKey,","),t.query,e),s={page:t.page,pagesize:t.pagesize,skipDataSetUpdate:!0,skipToggleState:!0,inFlightBehavior:"executeAll",inputFields:o};return t.onBeforeservicecall&&t.onBeforeservicecall(o),this.invoke(e,s,n,r).catch(i.noop)},t}(l.BaseVariableManager)},"./src/model/action/timer-action.ts":
|
|
1729
1729
|
/*!******************************************!*\
|
|
1730
1730
|
!*** ./src/model/action/timer-action.ts ***!
|
|
1731
1731
|
\******************************************/
|
|
@@ -1737,7 +1737,7 @@ i.version="2.30.1",o(Zn),i.fn=co,i.min=er,i.max=tr,i.now=nr,i.utc=m,i.unix=uo,i.
|
|
|
1737
1737
|
/*!************************************!*\
|
|
1738
1738
|
!*** ./src/model/base-variable.ts ***!
|
|
1739
1739
|
\************************************/
|
|
1740
|
-
(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseVariable:()=>d,VariableEvents:()=>r});var r,i=n(/*! ../types/types */"./src/types/types.ts"),o=n(/*! ../util/dataset-util */"./src/util/dataset-util.ts"),s=n(/*! ../util/variable/variables.utils */"./src/util/variable/variables.utils.ts"),a=n(/*! ../util/utils */"./src/util/utils.ts"),l=n(/*! ../types/event-notifier */"./src/types/event-notifier.ts"),c=n(/*! lodash */"./node_modules/lodash/lodash.js"),u=n.n(c);!function(e){e.BEFORE_INVOKE="beforeInvoke",e.AFTER_INVOKE="afterInvoke"}(r||(r={}));var d=function(){function e(){this.isMuted=!1,this.eventNotifier=new l.DefaultEventNotifier}return e.prototype.notify=function(e,t){this.eventNotifier.notify(e,t)},e.prototype.subscribe=function(e,t){return this.eventNotifier.subscribe(e,t)},e.prototype.execute=function(e,t){var n;switch(e){case i.DataSource.Operation.GET_NAME:n=this.name;break;case i.DataSource.Operation.GET_UNIQUE_IDENTIFIER:n=this._id;break;case i.DataSource.Operation.GET_CONTEXT_IDENTIFIER:n=this._context;break;case i.DataSource.Operation.ADD_ITEM:n=this.addItem(t.item,u().omit(t,"item"));break;case i.DataSource.Operation.SET_ITEM:n=this.setItem(t.prevItem,t.item,u().omit(t,"prevItem","item"));break;case i.DataSource.Operation.REMOVE_ITEM:n=this.removeItem(t.item,u().omit(t,"item"))}return n},e.prototype.invokeOnParamChange=function(e,t,n){if(e){var r=null==e?void 0:e.target,i=(0,s.getTarget)(this)
|
|
1740
|
+
(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseVariable:()=>d,VariableEvents:()=>r});var r,i=n(/*! ../types/types */"./src/types/types.ts"),o=n(/*! ../util/dataset-util */"./src/util/dataset-util.ts"),s=n(/*! ../util/variable/variables.utils */"./src/util/variable/variables.utils.ts"),a=n(/*! ../util/utils */"./src/util/utils.ts"),l=n(/*! ../types/event-notifier */"./src/types/event-notifier.ts"),c=n(/*! lodash */"./node_modules/lodash/lodash.js"),u=n.n(c);!function(e){e.BEFORE_INVOKE="beforeInvoke",e.AFTER_INVOKE="afterInvoke"}(r||(r={}));var d=function(){function e(){this.isMuted=!1,this.eventNotifier=new l.DefaultEventNotifier}return e.prototype.notify=function(e,t){this.eventNotifier.notify(e,t)},e.prototype.subscribe=function(e,t){return this.eventNotifier.subscribe(e,t)},e.prototype.execute=function(e,t){var n;switch(e){case i.DataSource.Operation.GET_NAME:n=this.name;break;case i.DataSource.Operation.GET_UNIQUE_IDENTIFIER:n=this._id;break;case i.DataSource.Operation.GET_CONTEXT_IDENTIFIER:n=this._context;break;case i.DataSource.Operation.ADD_ITEM:n=this.addItem(t.item,u().omit(t,"item"));break;case i.DataSource.Operation.SET_ITEM:n=this.setItem(t.prevItem,t.item,u().omit(t,"prevItem","item"));break;case i.DataSource.Operation.REMOVE_ITEM:n=this.removeItem(t.item,u().omit(t,"item"))}return n},e.prototype.invokeOnParamChange=function(e,t,n){if(e){var r=null==e?void 0:e.target,i=(0,s.getTarget)(this),o=(0,s.getTargetObj)(e,i,this),l=(0,s.getTargetNodeKey)(r);if((t!==n||!u().isUndefined(t))&&(!u().isUndefined(t)||u().isUndefined(n)&&u().isUndefined(o[l])))return u().includes(["blob","file"],e.type)||(t=(0,a.getClonedObject)(t)),(0,s.setValueToNode)(r,e,i,this,t),s.internalBoundNodeMap.has(this)||s.internalBoundNodeMap.set(this,{}),u().set(s.internalBoundNodeMap.get(this),[this.name,i,r],t),u().isObject(t)&&(0,s.updateInternalNodes)(r,i,this),Promise.resolve(this)}},e.prototype.getData=function(){return this.dataSet},e.prototype.setData=function(e){return o.default.isValidDataset(e,this.isList)&&(this.dataSet=e),this.dataSet},e.prototype.getValue=function(e,t){return o.default.getValue(this.dataSet,e,t,this.isList)},e.prototype.setValue=function(e,t){return o.default.setValue(this.dataSet,e,t,this.isList)},e.prototype.getItem=function(e){return o.default.getItem(this.dataSet,e,this.isList)},e.prototype.setItem=function(e,t,n){return n=this.getChildDetails(n),o.default.setItem(this.dataSet,e,t,n)},e.prototype.getChildDetails=function(e){var t,n,r=this.isList;if(e&&e.path){n=e.path;var i=void 0;r?(t=e.parentIndex||0,i=u().get(this.dataSet[t],e.path)):i=u().get(this.dataSet,e.path),r=!i||!!u().isArray(i)}return{path:n,isList:r,parentIndex:t}},e.prototype.addItem=function(e,t){var n;return u().isNumber(t)&&(n=t),u().isObject(t)&&(n=t.index),t=this.getChildDetails(t),o.default.addItem(this.dataSet,e,n,t)},e.prototype.removeItem=function(e,t){var n,r;return t&&(u().isBoolean(t)&&(n=t),u().isObject(t)&&(n=t.exactMatch,this.isList&&(r=t.parentIndex||0))),o.default.removeItem(this.dataSet,e,{exactMatch:n,path:u().get(t,"path"),parentIndex:r})},e.prototype.clearData=function(){return this.dataSet=o.default.getValidDataset(this.isList),this.dataSet},e.prototype.getCount=function(){return o.default.getCount(this.dataSet,this.isList)},e.prototype.getPrefabName=function(){var e=this._context&&(this._context.prefabname||this._context.prefabName);return"__self__"!==e&&e},e.prototype.mute=function(){this.isMuted=!0},e.prototype.unmute=function(){this.isMuted=!1},e.prototype.destroy=function(){},e}()},"./src/model/crud-create.ts":
|
|
1741
1741
|
/*!**********************************!*\
|
|
1742
1742
|
!*** ./src/model/crud-create.ts ***!
|
|
1743
1743
|
\**********************************/
|
|
@@ -1833,7 +1833,7 @@ i.version="2.30.1",o(Zn),i.fn=co,i.min=er,i.max=tr,i.now=nr,i.utc=m,i.unix=uo,i.
|
|
|
1833
1833
|
/*!**********************************************!*\
|
|
1834
1834
|
!*** ./src/util/variable/variables.utils.ts ***!
|
|
1835
1835
|
\**********************************************/
|
|
1836
|
-
(e,t,n)=>{"use strict";n.r(t),n.d(t,{appManager:()=>r,debounceVariableCall:()=>E,decodeData:()=>A,dialogService:()=>d,formatDate:()=>V,formatExportExpression:()=>C,getBlob:()=>D,getErrMessage:()=>B,getEvaluatedOrderBy:()=>L,getTarget:()=>P,getTargetNodeKey:()=>N,getTargetObj:()=>O,httpService:()=>i,initiateCallback:()=>j,internalBoundNodeMap:()=>_,isFileUploadSupported:()=>T,metadataService:()=>o,navigationService:()=>s,oauthService:()=>c,routerService:()=>a,securityService:()=>u,setInput:()=>M,setValueToNode:()=>R,toasterService:()=>l,updateInternalNodes:()=>F,wmSetDependency:()=>k});var r,i,o,s,a,l,c,u,d,h=n(/*! ../utils */"./src/util/utils.ts"),p=n(/*! ../../constants/variables.constants */"./src/constants/variables.constants.ts"),f=n(/*! moment */"./node_modules/moment/moment.js"),m=n.n(f),g=n(/*! lodash */"./node_modules/lodash/lodash.js"),v=n.n(g),y=n(/*! he */"./node_modules/he/he.js"),b=n.n(y),_=new Map,w=new Map,x=/^\[("|')[\w\W]*(\1)\]$/,S=function(e,t){var n,r,i=v().noop;w.has(e)&&(i=w.get(e).cancel),i(),n=v().debounce((function(){(r=e[t]())instanceof Promise&&r.catch(v().noop)}),100),w.set(e,n),n()},k=function(e,t){switch(e){case"appManager":r=t;break;case"http":i=t;break;case"metadata":o=t;break;case"navigationService":s=t;break;case"router":a=t;break;case"toaster":l=t;break;case"oAuth":c=t;break;case"security":u=t;break;case"dialog":d=t}},E=S,T=function(){return window.File&&window.FileReader&&window.FileList&&window.Blob},C=function(e){return v().forEach(e,(function(e){e.expression&&(e.expression="${"+e.expression+"}")})),e},D=function(e,t){if(e instanceof Blob)return e;var n=(0,h.getValidJSON)(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},M=function(e,t,n,r){e=e||{};var i,o,s={};if(v().isObject(r))switch(r.type){case"file":n=D(n,r.contentType);break;case"number":n=v().isNumber(n)?n:parseInt(n,10)}return v().isObject(t)?s=t:t.indexOf(".")>-1?(o=(i=t.split(".")).pop(),e=(0,h.findValueOf)(e,i.join("."),!0),s[t=o]=n):s[t]=n,v().forEach(s,(function(t,n){e[n]=t})),e},A=function(e){if(!e)return e;if(v().isArray(e))v().forEach(e,(function(e){v().isString(e)?e=I(e):v().isObject(e)&&v().forEach(e,(function(t,n){t&&v().isString(t)?e[n]=I(t):v().isObject(t)&&A(t)}))}));else if(v().isObject(e))v().forEach(e,(function(t,n){t&&v().isString(t)?e[n]=I(t):v().isObject(t)&&A(t)}));else if(v().isString(e))return e=I(e)};function I(e){return b().unescape(e)}var L=function(e,t){var n,r;return!t||v().isEmpty(t)?e:e?(e=v().split(e,","),t=v().split(t,","),n=v().map(t,(function(e){return v().split(v().trim(e)," ")[0]})),v().remove(e,(function(e){return v().includes(n,v().split(v().trim(e)," ")[0])})),r=e.length?","+v().join(e,","):"",v().join(t,",")+r):t},O=function(e,t,n){var r,i=e.target,o=n[t];return x.test(i)?r=o:(i=i.substr(0,i.lastIndexOf(".")),r=e.target===t?n:i?(0,h.findValueOf)(o,i,!0):o),r},N=function(e){return x.test(e)?e.replace(/^(\[["'])|(["']\])$/g,""):e.split(".").pop()},R=function(e,t,n,r,i,o){var s=N(e),a=O(t,n,r);a&&(a[s]=i),function(e,t,n,r,i){switch(r.category){case p.VARIABLE_CONSTANTS.CATEGORY.LIVE:"read"===r.operation?("dataBinding"===e?v().forEach(t,(function(e,t){r.filterFields[t]={value:e}})):r.filterFields[e]={value:t,type:n},r.autoUpdate&&!v().isUndefined(t)&&v().isFunction(r.listRecords)&&!i&&S(r,"listRecords")):("dataBinding"===e?r.inputFields=t:r.inputFields[e]=t,r.autoUpdate&&!v().isUndefined(t)&&v().isFunction(r[r.operation+"Record"])&&!i&&S(r,r.operation+"Record"));break;case p.VARIABLE_CONSTANTS.CATEGORY.CRUD:"list"===r.operationType&&r.autoUpdate&&!v().isUndefined(t)&&v().isFunction(r.invoke)&&!i&&S(r,"invoke");break;case p.VARIABLE_CONSTANTS.CATEGORY.SERVICE:case p.VARIABLE_CONSTANTS.CATEGORY.LOGIN:r.autoUpdate&&!v().isUndefined(t)&&v().isFunction(r.invoke)&&!i&&S(r,"invoke");break;case p.VARIABLE_CONSTANTS.CATEGORY.DEVICE:r[e]=t,r.autoUpdate&&!v().isUndefined(t)&&v().isFunction(r.invoke)&&!i&&S(r,"invoke")}}(s,i,t.type,r,o)},P=function(e){var t;switch(e.category){case p.VARIABLE_CONSTANTS.CATEGORY.MODEL:t="dataSet";break;case p.VARIABLE_CONSTANTS.CATEGORY.LIVE:t="read"===e.operation?"filterFields":"inputFields";break;default:t="dataBinding"}return t},F=function(e,t,n){var r,i=v().keys(v().get(_.get(n),[n.name,t])),o=N(e);(r=v().filter(i,(function(e){return e!==o&&v().includes(e,o)||(o===t||"dataBinding"===o)&&e!==o}))).length&&v().forEach(r,(function(e){R(e,{target:e},t,n,v().get(_.get(n),[n.name,t,e]))}))},j=function(e,t,n,r,i){if(!t._skipInitiateCallback){var o,s=t[e],a=t._context;e!==p.VARIABLE_CONSTANTS.EVENT.ERROR||i||s||(o=a.Actions[p.VARIABLE_CONSTANTS.DEFAULT_VAR.NOTIFICATION])&&(n=o.getMessage()||n,n=v().isString(n)?n:"An error has occured. Please check the app logs.",o.invoke({message:n},void 0,void 0));var l=t[e]||h.noop;return e===p.VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE?"wm.LiveVariable"===t.category&&"read"===t.operation?l(t._context,{variable:t,dataFilter:n,options:r}):l(t._context,{variable:t,inputData:n,options:r}):l(t._context,{variable:t,data:n,options:r})}},Y=function(e,t,n){var r;return v().isDate(e)?r=e.getTime():(isNaN(e)||(e=parseInt(e,10)),r=e&&m()(e).valueOf()),isNaN(r)&&t!==h.DataType.TIME||t===h.DataType.TIMESTAMP?r:(t!==h.DataType.TIME||r||(r=m()((new Date).toDateString()+" "+e).valueOf()),e&&n.format(r,function(e){return h.DEFAULT_FORMATS[v().toUpper(e)]}(t)))},V=function(e,t,n){return v().includes(t,".")&&(t=v().toLower((0,h.extractType)(t))),v().isArray(e)?v().map(e,(function(e){return Y(e,t,n)})):Y(e,t,n)},H=function(e){return e.message?(0,h.replace)(e.message,e.parameters,!0):e.parameters&&e.parameters[0]||""},B=function(e,t){var n={404:t.MESSAGE_404_ERROR||"Requested resource not found",401:t.MESSAGE_401_ERROR||"Requested resource requires authentication",403:t.LABEL_FORBIDDEN_MESSAGE||"The requested resource access/action is forbidden."}[e.status],r=e.error||e.data;return n=(r=(0,h.getValidJSON)(r)||r)&&r.errors?function(e){var t="";return e&&e.error&&e.error.length&&e.error.forEach((function(e,n){t+=H(e)+(n>0?"\n":"")})),t}(r.errors)||n||"Service Call Failed":n||"Service Call Failed"}},"./node_modules/x2js/x2js.js":
|
|
1836
|
+
(e,t,n)=>{"use strict";n.r(t),n.d(t,{appManager:()=>r,debounceVariableCall:()=>E,decodeData:()=>A,dialogService:()=>d,formatDate:()=>V,formatExportExpression:()=>C,getBlob:()=>D,getErrMessage:()=>B,getEvaluatedOrderBy:()=>L,getTarget:()=>P,getTargetNodeKey:()=>N,getTargetObj:()=>O,httpService:()=>i,initiateCallback:()=>j,internalBoundNodeMap:()=>_,isFileUploadSupported:()=>T,metadataService:()=>o,navigationService:()=>s,oauthService:()=>c,routerService:()=>a,securityService:()=>u,setInput:()=>M,setValueToNode:()=>R,toasterService:()=>l,updateInternalNodes:()=>F,wmSetDependency:()=>k});var r,i,o,s,a,l,c,u,d,h=n(/*! ../utils */"./src/util/utils.ts"),p=n(/*! ../../constants/variables.constants */"./src/constants/variables.constants.ts"),f=n(/*! moment */"./node_modules/moment/moment.js"),m=n.n(f),g=n(/*! lodash */"./node_modules/lodash/lodash.js"),v=n.n(g),y=n(/*! he */"./node_modules/he/he.js"),b=n.n(y),_=new Map,w=new Map,x=/^\[("|')[\w\W]*(\1)\]$/,S=function(e,t){var n,r,i=v().noop;w.has(e)&&(i=w.get(e).cancel),i(),n=v().debounce((function(){(r=e[t]())instanceof Promise&&r.catch(v().noop)}),100),w.set(e,n),n()},k=function(e,t){switch(e){case"appManager":r=t;break;case"http":i=t;break;case"metadata":o=t;break;case"navigationService":s=t;break;case"router":a=t;break;case"toaster":l=t;break;case"oAuth":c=t;break;case"security":u=t;break;case"dialog":d=t}},E=S,T=function(){return window.File&&window.FileReader&&window.FileList&&window.Blob},C=function(e){return v().forEach(e,(function(e){e.expression&&(e.expression="${"+e.expression+"}")})),e},D=function(e,t){if(e instanceof Blob)return e;var n=(0,h.getValidJSON)(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},M=function(e,t,n,r){e=e||{};var i,o,s={};if(v().isObject(r))switch(r.type){case"file":n=D(n,r.contentType);break;case"number":n=v().isNumber(n)?n:parseInt(n,10)}return v().isObject(t)?s=t:t.indexOf(".")>-1?(o=(i=t.split(".")).pop(),e=(0,h.findValueOf)(e,i.join("."),!0),s[t=o]=n):s[t]=n,v().forEach(s,(function(t,n){e[n]=t})),e},A=function(e){if(!e)return e;if(v().isArray(e))v().forEach(e,(function(e){v().isString(e)?e=I(e):v().isObject(e)&&v().forEach(e,(function(t,n){t&&v().isString(t)?e[n]=I(t):v().isObject(t)&&A(t)}))}));else if(v().isObject(e))v().forEach(e,(function(t,n){t&&v().isString(t)?e[n]=I(t):v().isObject(t)&&A(t)}));else if(v().isString(e))return e=I(e)};function I(e){return b().unescape(e)}var L=function(e,t){var n,r;return!t||v().isEmpty(t)?e:e?(e=v().split(e,","),t=v().split(t,","),n=v().map(t,(function(e){return v().split(v().trim(e)," ")[0]})),v().remove(e,(function(e){return v().includes(n,v().split(v().trim(e)," ")[0])})),r=e.length?","+v().join(e,","):"",v().join(t,",")+r):t},O=function(e,t,n){var r,i=e.target,o=n[t];return x.test(i)?r=o:(i=i.substr(0,i.lastIndexOf(".")),r=e.target===t?n:i?(0,h.findValueOf)(o,i,!0):o),r},N=function(e){return x.test(e)?e.replace(/^(\[["'])|(["']\])$/g,""):e.split(".").pop()},R=function(e,t,n,r,i,o){var s=N(e),a=O(t,n,r);i=v().isUndefined(i)?t.value:i,a&&(a[s]=i),function(e,t,n,r,i){switch(r.category){case p.VARIABLE_CONSTANTS.CATEGORY.LIVE:"read"===r.operation?("dataBinding"===e?v().forEach(t,(function(e,t){r.filterFields[t]={value:e}})):r.filterFields[e]={value:t,type:n},r.autoUpdate&&!v().isUndefined(t)&&v().isFunction(r.listRecords)&&!i&&S(r,"listRecords")):("dataBinding"===e?r.inputFields=t:r.inputFields[e]=t,r.autoUpdate&&!v().isUndefined(t)&&v().isFunction(r[r.operation+"Record"])&&!i&&S(r,r.operation+"Record"));break;case p.VARIABLE_CONSTANTS.CATEGORY.CRUD:"list"===r.operationType&&r.autoUpdate&&!v().isUndefined(t)&&v().isFunction(r.invoke)&&!i&&S(r,"invoke");break;case p.VARIABLE_CONSTANTS.CATEGORY.SERVICE:case p.VARIABLE_CONSTANTS.CATEGORY.LOGIN:r.autoUpdate&&!v().isUndefined(t)&&v().isFunction(r.invoke)&&!i&&S(r,"invoke");break;case p.VARIABLE_CONSTANTS.CATEGORY.DEVICE:r[e]=t,r.autoUpdate&&!v().isUndefined(t)&&v().isFunction(r.invoke)&&!i&&S(r,"invoke")}}(s,i,t.type,r,o)},P=function(e){var t;switch(e.category){case p.VARIABLE_CONSTANTS.CATEGORY.MODEL:t="dataSet";break;case p.VARIABLE_CONSTANTS.CATEGORY.LIVE:t="read"===e.operation?"filterFields":"inputFields";break;default:t="dataBinding"}return t},F=function(e,t,n){var r,i=v().keys(v().get(_.get(n),[n.name,t])),o=N(e);(r=v().filter(i,(function(e){return e!==o&&v().includes(e,o)||(o===t||"dataBinding"===o)&&e!==o}))).length&&v().forEach(r,(function(e){R(e,{target:e},t,n,v().get(_.get(n),[n.name,t,e]))}))},j=function(e,t,n,r,i){if(!t._skipInitiateCallback){var o,s=t[e],a=t._context;e!==p.VARIABLE_CONSTANTS.EVENT.ERROR||i||s||(o=a.Actions[p.VARIABLE_CONSTANTS.DEFAULT_VAR.NOTIFICATION])&&(n=o.getMessage()||n,n=v().isString(n)?n:"An error has occured. Please check the app logs.",o.invoke({message:n},void 0,void 0));var l=t[e]||h.noop;return e===p.VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE?"wm.LiveVariable"===t.category&&"read"===t.operation?l(t._context,{variable:t,dataFilter:n,options:r}):l(t._context,{variable:t,inputData:n,options:r}):l(t._context,{variable:t,data:n,options:r})}},Y=function(e,t,n){var r;return v().isDate(e)?r=e.getTime():(isNaN(e)||(e=parseInt(e,10)),r=e&&m()(e).valueOf()),isNaN(r)&&t!==h.DataType.TIME||t===h.DataType.TIMESTAMP?r:(t!==h.DataType.TIME||r||(r=m()((new Date).toDateString()+" "+e).valueOf()),e&&n.format(r,function(e){return h.DEFAULT_FORMATS[v().toUpper(e)]}(t)))},V=function(e,t,n){return v().includes(t,".")&&(t=v().toLower((0,h.extractType)(t))),v().isArray(e)?v().map(e,(function(e){return Y(e,t,n)})):Y(e,t,n)},H=function(e){return e.message?(0,h.replace)(e.message,e.parameters,!0):e.parameters&&e.parameters[0]||""},B=function(e,t){var n={404:t.MESSAGE_404_ERROR||"Requested resource not found",401:t.MESSAGE_401_ERROR||"Requested resource requires authentication",403:t.LABEL_FORBIDDEN_MESSAGE||"The requested resource access/action is forbidden."}[e.status],r=e.error||e.data;return n=(r=(0,h.getValidJSON)(r)||r)&&r.errors?function(e){var t="";return e&&e.error&&e.error.length&&e.error.forEach((function(e,n){t+=H(e)+(n>0?"\n":"")})),t}(r.errors)||n||"Service Call Failed":n||"Service Call Failed"}},"./node_modules/x2js/x2js.js":
|
|
1837
1837
|
/*!***********************************!*\
|
|
1838
1838
|
!*** ./node_modules/x2js/x2js.js ***!
|
|
1839
1839
|
\***********************************/
|