@sap/ux-specification 1.100.8 → 1.100.9

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see runDocu-min.js.LICENSE.txt */
2
- (()=>{var t={291:function(t,n){var e;!function(n,e){"use strict";"object"==typeof t.exports?t.exports=n.document?e(n,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(n)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,u=o.slice,c=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},s=o.push,f=o.indexOf,l={},h=l.toString,d=l.hasOwnProperty,p=d.toString,g=p.call(Object),y={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},m=function(t){return null!=t&&t===t.window},b=r.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,n,e){var r,i,o=(e=e||b).createElement("script");if(o.text=t,n)for(r in _)(i=n[r]||n.getAttribute&&n.getAttribute(r))&&o.setAttribute(r,i);e.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[h.call(t)]||"object":typeof t}var M="3.6.0",T=function(t,n){return new T.fn.init(t,n)};function A(t){var n=!!t&&"length"in t&&t.length,e=w(t);return!v(t)&&!m(t)&&("array"===e||0===n||"number"==typeof n&&n>0&&n-1 in t)}T.fn=T.prototype={jquery:M,constructor:T,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var n=T.merge(this.constructor(),t);return n.prevObject=this,n},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(n,e){return t.call(n,e,n)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,n){return(n+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,n){return n%2})))},eq:function(t){var n=this.length,e=+t+(t<0?n:0);return this.pushStack(e>=0&&e<n?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var t,n,e,r,i,o,a=arguments[0]||{},u=1,c=arguments.length,s=!1;for("boolean"==typeof a&&(s=a,a=arguments[u]||{},u++),"object"==typeof a||v(a)||(a={}),u===c&&(a=this,u--);u<c;u++)if(null!=(t=arguments[u]))for(n in t)r=t[n],"__proto__"!==n&&a!==r&&(s&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(e=a[n],o=i&&!Array.isArray(e)?[]:i||T.isPlainObject(e)?e:{},i=!1,a[n]=T.extend(s,o,r)):void 0!==r&&(a[n]=r));return a},T.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var n,e;return!(!t||"[object Object]"!==h.call(t)||(n=a(t))&&("function"!=typeof(e=d.call(n,"constructor")&&n.constructor)||p.call(e)!==g))},isEmptyObject:function(t){var n;for(n in t)return!1;return!0},globalEval:function(t,n,e){x(t,{nonce:n&&n.nonce},e)},each:function(t,n){var e,r=0;if(A(t))for(e=t.length;r<e&&!1!==n.call(t[r],r,t[r]);r++);else for(r in t)if(!1===n.call(t[r],r,t[r]))break;return t},makeArray:function(t,n){var e=n||[];return null!=t&&(A(Object(t))?T.merge(e,"string"==typeof t?[t]:t):s.call(e,t)),e},inArray:function(t,n,e){return null==n?-1:f.call(n,t,e)},merge:function(t,n){for(var e=+n.length,r=0,i=t.length;r<e;r++)t[i++]=n[r];return t.length=i,t},grep:function(t,n,e){for(var r=[],i=0,o=t.length,a=!e;i<o;i++)!n(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,n,e){var r,i,o=0,a=[];if(A(t))for(r=t.length;o<r;o++)null!=(i=n(t[o],o,e))&&a.push(i);else for(o in t)null!=(i=n(t[o],o,e))&&a.push(i);return c(a)},guid:1,support:y}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,n){l["[object "+n+"]"]=n.toLowerCase()}));var S=function(t){var n,e,r,i,o,a,u,c,s,f,l,h,d,p,g,y,v,m,b,_="sizzle"+1*new Date,x=t.document,w=0,M=0,T=ct(),A=ct(),S=ct(),E=ct(),k=function(t,n){return t===n&&(l=!0),0},N={}.hasOwnProperty,C=[],D=C.pop,P=C.push,q=C.push,j=C.slice,L=function(t,n){for(var e=0,r=t.length;e<r;e++)if(t[e]===n)return e;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\[[\\x20\\t\\r\\n\\f]*("+z+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+R+"*\\]",H=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",F=new RegExp(R+"+","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),Y=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(R+"|>"),$=new RegExp(H),X=new RegExp("^"+z+"$"),V={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,nt=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),et=function(t,n){var e="0x"+t.slice(1)-65536;return n||(e<0?String.fromCharCode(e+65536):String.fromCharCode(e>>10|55296,1023&e|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,n){return n?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=_t((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{q.apply(C=j.call(x.childNodes),x.childNodes),C[x.childNodes.length].nodeType}catch(t){q={apply:C.length?function(t,n){P.apply(t,j.call(n))}:function(t,n){for(var e=t.length,r=0;t[e++]=n[r++];);t.length=e-1}}}function ut(t,n,r,i){var o,u,s,f,l,p,v,m=n&&n.ownerDocument,x=n?n.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return r;if(!i&&(h(n),n=n||d,g)){if(11!==x&&(l=J.exec(t)))if(o=l[1]){if(9===x){if(!(s=n.getElementById(o)))return r;if(s.id===o)return r.push(s),r}else if(m&&(s=m.getElementById(o))&&b(n,s)&&s.id===o)return r.push(s),r}else{if(l[2])return q.apply(r,n.getElementsByTagName(t)),r;if((o=l[3])&&e.getElementsByClassName&&n.getElementsByClassName)return q.apply(r,n.getElementsByClassName(o)),r}if(e.qsa&&!E[t+" "]&&(!y||!y.test(t))&&(1!==x||"object"!==n.nodeName.toLowerCase())){if(v=t,m=n,1===x&&(W.test(t)||Y.test(t))){for((m=tt.test(t)&&vt(n.parentNode)||n)===n&&e.scope||((f=n.getAttribute("id"))?f=f.replace(rt,it):n.setAttribute("id",f=_)),u=(p=a(t)).length;u--;)p[u]=(f?"#"+f:":scope")+" "+bt(p[u]);v=p.join(",")}try{return q.apply(r,m.querySelectorAll(v)),r}catch(n){E(t,!0)}finally{f===_&&n.removeAttribute("id")}}}return c(t.replace(B,"$1"),n,r,i)}function ct(){var t=[];return function n(e,i){return t.push(e+" ")>r.cacheLength&&delete n[t.shift()],n[e+" "]=i}}function st(t){return t[_]=!0,t}function ft(t){var n=d.createElement("fieldset");try{return!!t(n)}catch(t){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function lt(t,n){for(var e=t.split("|"),i=e.length;i--;)r.attrHandle[e[i]]=n}function ht(t,n){var e=n&&t,r=e&&1===t.nodeType&&1===n.nodeType&&t.sourceIndex-n.sourceIndex;if(r)return r;if(e)for(;e=e.nextSibling;)if(e===n)return-1;return t?1:-1}function dt(t){return function(n){return"input"===n.nodeName.toLowerCase()&&n.type===t}}function pt(t){return function(n){var e=n.nodeName.toLowerCase();return("input"===e||"button"===e)&&n.type===t}}function gt(t){return function(n){return"form"in n?n.parentNode&&!1===n.disabled?"label"in n?"label"in n.parentNode?n.parentNode.disabled===t:n.disabled===t:n.isDisabled===t||n.isDisabled!==!t&&at(n)===t:n.disabled===t:"label"in n&&n.disabled===t}}function yt(t){return st((function(n){return n=+n,st((function(e,r){for(var i,o=t([],e.length,n),a=o.length;a--;)e[i=o[a]]&&(e[i]=!(r[i]=e[i]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(n in e=ut.support={},o=ut.isXML=function(t){var n=t&&t.namespaceURI,e=t&&(t.ownerDocument||t).documentElement;return!G.test(n||e&&e.nodeName||"HTML")},h=ut.setDocument=function(t){var n,i,a=t?t.ownerDocument||t:x;return a!=d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,g=!o(d),x!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),e.scope=ft((function(t){return p.appendChild(t).appendChild(d.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),e.attributes=ft((function(t){return t.className="i",!t.getAttribute("className")})),e.getElementsByTagName=ft((function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length})),e.getElementsByClassName=K.test(d.getElementsByClassName),e.getById=ft((function(t){return p.appendChild(t).id=_,!d.getElementsByName||!d.getElementsByName(_).length})),e.getById?(r.filter.ID=function(t){var n=t.replace(nt,et);return function(t){return t.getAttribute("id")===n}},r.find.ID=function(t,n){if(void 0!==n.getElementById&&g){var e=n.getElementById(t);return e?[e]:[]}}):(r.filter.ID=function(t){var n=t.replace(nt,et);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},r.find.ID=function(t,n){if(void 0!==n.getElementById&&g){var e,r,i,o=n.getElementById(t);if(o){if((e=o.getAttributeNode("id"))&&e.value===t)return[o];for(i=n.getElementsByName(t),r=0;o=i[r++];)if((e=o.getAttributeNode("id"))&&e.value===t)return[o]}return[]}}),r.find.TAG=e.getElementsByTagName?function(t,n){return void 0!==n.getElementsByTagName?n.getElementsByTagName(t):e.qsa?n.querySelectorAll(t):void 0}:function(t,n){var e,r=[],i=0,o=n.getElementsByTagName(t);if("*"===t){for(;e=o[i++];)1===e.nodeType&&r.push(e);return r}return o},r.find.CLASS=e.getElementsByClassName&&function(t,n){if(void 0!==n.getElementsByClassName&&g)return n.getElementsByClassName(t)},v=[],y=[],(e.qsa=K.test(d.querySelectorAll))&&(ft((function(t){var n;p.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||y.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+O+")"),t.querySelectorAll("[id~="+_+"-]").length||y.push("~="),(n=d.createElement("input")).setAttribute("name",""),t.appendChild(n),t.querySelectorAll("[name='']").length||y.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||y.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||y.push(".#.+[+~]"),t.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")})),ft((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var n=d.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&y.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),y.push(",.*:")}))),(e.matchesSelector=K.test(m=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ft((function(t){e.disconnectedMatch=m.call(t,"*"),m.call(t,"[s!='']:x"),v.push("!=",H)})),y=y.length&&new RegExp(y.join("|")),v=v.length&&new RegExp(v.join("|")),n=K.test(p.compareDocumentPosition),b=n||K.test(p.contains)?function(t,n){var e=9===t.nodeType?t.documentElement:t,r=n&&n.parentNode;return t===r||!(!r||1!==r.nodeType||!(e.contains?e.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,n){if(n)for(;n=n.parentNode;)if(n===t)return!0;return!1},k=n?function(t,n){if(t===n)return l=!0,0;var r=!t.compareDocumentPosition-!n.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(n.ownerDocument||n)?t.compareDocumentPosition(n):1)||!e.sortDetached&&n.compareDocumentPosition(t)===r?t==d||t.ownerDocument==x&&b(x,t)?-1:n==d||n.ownerDocument==x&&b(x,n)?1:f?L(f,t)-L(f,n):0:4&r?-1:1)}:function(t,n){if(t===n)return l=!0,0;var e,r=0,i=t.parentNode,o=n.parentNode,a=[t],u=[n];if(!i||!o)return t==d?-1:n==d?1:i?-1:o?1:f?L(f,t)-L(f,n):0;if(i===o)return ht(t,n);for(e=t;e=e.parentNode;)a.unshift(e);for(e=n;e=e.parentNode;)u.unshift(e);for(;a[r]===u[r];)r++;return r?ht(a[r],u[r]):a[r]==x?-1:u[r]==x?1:0},d):d},ut.matches=function(t,n){return ut(t,null,null,n)},ut.matchesSelector=function(t,n){if(h(t),e.matchesSelector&&g&&!E[n+" "]&&(!v||!v.test(n))&&(!y||!y.test(n)))try{var r=m.call(t,n);if(r||e.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){E(n,!0)}return ut(n,d,null,[t]).length>0},ut.contains=function(t,n){return(t.ownerDocument||t)!=d&&h(t),b(t,n)},ut.attr=function(t,n){(t.ownerDocument||t)!=d&&h(t);var i=r.attrHandle[n.toLowerCase()],o=i&&N.call(r.attrHandle,n.toLowerCase())?i(t,n,!g):void 0;return void 0!==o?o:e.attributes||!g?t.getAttribute(n):(o=t.getAttributeNode(n))&&o.specified?o.value:null},ut.escape=function(t){return(t+"").replace(rt,it)},ut.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ut.uniqueSort=function(t){var n,r=[],i=0,o=0;if(l=!e.detectDuplicates,f=!e.sortStable&&t.slice(0),t.sort(k),l){for(;n=t[o++];)n===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return f=null,t},i=ut.getText=function(t){var n,e="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)e+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;n=t[r++];)e+=i(n);return e},r=ut.selectors={cacheLength:50,createPseudo:st,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,et),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,et),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ut.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ut.error(t[0]),t},PSEUDO:function(t){var n,e=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":e&&$.test(e)&&(n=a(e,!0))&&(n=e.indexOf(")",e.length-n)-e.length)&&(t[0]=t[0].slice(0,n),t[2]=e.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var n=t.replace(nt,et).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===n}},CLASS:function(t){var n=T[t+" "];return n||(n=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+R+"|$)"))&&T(t,(function(t){return n.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,n,e){return function(r){var i=ut.attr(r,t);return null==i?"!="===n:!n||(i+="","="===n?i===e:"!="===n?i!==e:"^="===n?e&&0===i.indexOf(e):"*="===n?e&&i.indexOf(e)>-1:"$="===n?e&&i.slice(-e.length)===e:"~="===n?(" "+i.replace(F," ")+" ").indexOf(e)>-1:"|="===n&&(i===e||i.slice(0,e.length+1)===e+"-"))}},CHILD:function(t,n,e,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===n;return 1===r&&0===i?function(t){return!!t.parentNode}:function(n,e,c){var s,f,l,h,d,p,g=o!==a?"nextSibling":"previousSibling",y=n.parentNode,v=u&&n.nodeName.toLowerCase(),m=!c&&!u,b=!1;if(y){if(o){for(;g;){for(h=n;h=h[g];)if(u?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?y.firstChild:y.lastChild],a&&m){for(b=(d=(s=(f=(l=(h=y)[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]||[])[0]===w&&s[1])&&s[2],h=d&&y.childNodes[d];h=++d&&h&&h[g]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===n){f[t]=[w,d,b];break}}else if(m&&(b=d=(s=(f=(l=(h=n)[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]||[])[0]===w&&s[1]),!1===b)for(;(h=++d&&h&&h[g]||(b=d=0)||p.pop())&&((u?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(m&&((f=(l=h[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]=[w,b]),h!==n)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,n){var e,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ut.error("unsupported pseudo: "+t);return i[_]?i(n):i.length>1?(e=[t,t,"",n],r.setFilters.hasOwnProperty(t.toLowerCase())?st((function(t,e){for(var r,o=i(t,n),a=o.length;a--;)t[r=L(t,o[a])]=!(e[r]=o[a])})):function(t){return i(t,0,e)}):i}},pseudos:{not:st((function(t){var n=[],e=[],r=u(t.replace(B,"$1"));return r[_]?st((function(t,n,e,i){for(var o,a=r(t,null,i,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(n[u]=o))})):function(t,i,o){return n[0]=t,r(n,null,o,e),n[0]=null,!e.pop()}})),has:st((function(t){return function(n){return ut(t,n).length>0}})),contains:st((function(t){return t=t.replace(nt,et),function(n){return(n.textContent||i(n)).indexOf(t)>-1}})),lang:st((function(t){return X.test(t||"")||ut.error("unsupported lang: "+t),t=t.replace(nt,et).toLowerCase(),function(n){var e;do{if(e=g?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return(e=e.toLowerCase())===t||0===e.indexOf(t+"-")}while((n=n.parentNode)&&1===n.nodeType);return!1}})),target:function(n){var e=t.location&&t.location.hash;return e&&e.slice(1)===n.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&!!t.checked||"option"===n&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&"button"===t.type||"button"===n},text:function(t){var n;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(n=t.getAttribute("type"))||"text"===n.toLowerCase())},first:yt((function(){return[0]})),last:yt((function(t,n){return[n-1]})),eq:yt((function(t,n,e){return[e<0?e+n:e]})),even:yt((function(t,n){for(var e=0;e<n;e+=2)t.push(e);return t})),odd:yt((function(t,n){for(var e=1;e<n;e+=2)t.push(e);return t})),lt:yt((function(t,n,e){for(var r=e<0?e+n:e>n?n:e;--r>=0;)t.push(r);return t})),gt:yt((function(t,n,e){for(var r=e<0?e+n:e;++r<n;)t.push(r);return t}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[n]=dt(n);for(n in{submit:!0,reset:!0})r.pseudos[n]=pt(n);function mt(){}function bt(t){for(var n=0,e=t.length,r="";n<e;n++)r+=t[n].value;return r}function _t(t,n,e){var r=n.dir,i=n.next,o=i||r,a=e&&"parentNode"===o,u=M++;return n.first?function(n,e,i){for(;n=n[r];)if(1===n.nodeType||a)return t(n,e,i);return!1}:function(n,e,c){var s,f,l,h=[w,u];if(c){for(;n=n[r];)if((1===n.nodeType||a)&&t(n,e,c))return!0}else for(;n=n[r];)if(1===n.nodeType||a)if(f=(l=n[_]||(n[_]={}))[n.uniqueID]||(l[n.uniqueID]={}),i&&i===n.nodeName.toLowerCase())n=n[r]||n;else{if((s=f[o])&&s[0]===w&&s[1]===u)return h[2]=s[2];if(f[o]=h,h[2]=t(n,e,c))return!0}return!1}}function xt(t){return t.length>1?function(n,e,r){for(var i=t.length;i--;)if(!t[i](n,e,r))return!1;return!0}:t[0]}function wt(t,n,e,r,i){for(var o,a=[],u=0,c=t.length,s=null!=n;u<c;u++)(o=t[u])&&(e&&!e(o,r,i)||(a.push(o),s&&n.push(u)));return a}function Mt(t,n,e,r,i,o){return r&&!r[_]&&(r=Mt(r)),i&&!i[_]&&(i=Mt(i,o)),st((function(o,a,u,c){var s,f,l,h=[],d=[],p=a.length,g=o||function(t,n,e){for(var r=0,i=n.length;r<i;r++)ut(t,n[r],e);return e}(n||"*",u.nodeType?[u]:u,[]),y=!t||!o&&n?g:wt(g,h,t,u,c),v=e?i||(o?t:p||r)?[]:a:y;if(e&&e(y,v,u,c),r)for(s=wt(v,d),r(s,[],u,c),f=s.length;f--;)(l=s[f])&&(v[d[f]]=!(y[d[f]]=l));if(o){if(i||t){if(i){for(s=[],f=v.length;f--;)(l=v[f])&&s.push(y[f]=l);i(null,v=[],s,c)}for(f=v.length;f--;)(l=v[f])&&(s=i?L(o,l):h[f])>-1&&(o[s]=!(a[s]=l))}}else v=wt(v===a?v.splice(p,v.length):v),i?i(null,a,v,c):q.apply(a,v)}))}function Tt(t){for(var n,e,i,o=t.length,a=r.relative[t[0].type],u=a||r.relative[" "],c=a?1:0,f=_t((function(t){return t===n}),u,!0),l=_t((function(t){return L(n,t)>-1}),u,!0),h=[function(t,e,r){var i=!a&&(r||e!==s)||((n=e).nodeType?f(t,e,r):l(t,e,r));return n=null,i}];c<o;c++)if(e=r.relative[t[c].type])h=[_t(xt(h),e)];else{if((e=r.filter[t[c].type].apply(null,t[c].matches))[_]){for(i=++c;i<o&&!r.relative[t[i].type];i++);return Mt(c>1&&xt(h),c>1&&bt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(B,"$1"),e,c<i&&Tt(t.slice(c,i)),i<o&&Tt(t=t.slice(i)),i<o&&bt(t))}h.push(e)}return xt(h)}return mt.prototype=r.filters=r.pseudos,r.setFilters=new mt,a=ut.tokenize=function(t,n){var e,i,o,a,u,c,s,f=A[t+" "];if(f)return n?0:f.slice(0);for(u=t,c=[],s=r.preFilter;u;){for(a in e&&!(i=U.exec(u))||(i&&(u=u.slice(i[0].length)||u),c.push(o=[])),e=!1,(i=Y.exec(u))&&(e=i.shift(),o.push({value:e,type:i[0].replace(B," ")}),u=u.slice(e.length)),r.filter)!(i=V[a].exec(u))||s[a]&&!(i=s[a](i))||(e=i.shift(),o.push({value:e,type:a,matches:i}),u=u.slice(e.length));if(!e)break}return n?u.length:u?ut.error(t):A(t,c).slice(0)},u=ut.compile=function(t,n){var e,i=[],o=[],u=S[t+" "];if(!u){for(n||(n=a(t)),e=n.length;e--;)(u=Tt(n[e]))[_]?i.push(u):o.push(u);u=S(t,function(t,n){var e=n.length>0,i=t.length>0,o=function(o,a,u,c,f){var l,p,y,v=0,m="0",b=o&&[],_=[],x=s,M=o||i&&r.find.TAG("*",f),T=w+=null==x?1:Math.random()||.1,A=M.length;for(f&&(s=a==d||a||f);m!==A&&null!=(l=M[m]);m++){if(i&&l){for(p=0,a||l.ownerDocument==d||(h(l),u=!g);y=t[p++];)if(y(l,a||d,u)){c.push(l);break}f&&(w=T)}e&&((l=!y&&l)&&v--,o&&b.push(l))}if(v+=m,e&&m!==v){for(p=0;y=n[p++];)y(b,_,a,u);if(o){if(v>0)for(;m--;)b[m]||_[m]||(_[m]=D.call(c));_=wt(_)}q.apply(c,_),f&&!o&&_.length>0&&v+n.length>1&&ut.uniqueSort(c)}return f&&(w=T,s=x),b};return e?st(o):o}(o,i)),u.selector=t}return u},c=ut.select=function(t,n,e,i){var o,c,s,f,l,h="function"==typeof t&&t,d=!i&&a(t=h.selector||t);if(e=e||[],1===d.length){if((c=d[0]=d[0].slice(0)).length>2&&"ID"===(s=c[0]).type&&9===n.nodeType&&g&&r.relative[c[1].type]){if(!(n=(r.find.ID(s.matches[0].replace(nt,et),n)||[])[0]))return e;h&&(n=n.parentNode),t=t.slice(c.shift().value.length)}for(o=V.needsContext.test(t)?0:c.length;o--&&(s=c[o],!r.relative[f=s.type]);)if((l=r.find[f])&&(i=l(s.matches[0].replace(nt,et),tt.test(c[0].type)&&vt(n.parentNode)||n))){if(c.splice(o,1),!(t=i.length&&bt(c)))return q.apply(e,i),e;break}}return(h||u(t,d))(i,n,!g,e,!n||tt.test(t)&&vt(n.parentNode)||n),e},e.sortStable=_.split("").sort(k).join("")===_,e.detectDuplicates=!!l,h(),e.sortDetached=ft((function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))})),ft((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||lt("type|href|height|width",(function(t,n,e){if(!e)return t.getAttribute(n,"type"===n.toLowerCase()?1:2)})),e.attributes&&ft((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||lt("value",(function(t,n,e){if(!e&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ft((function(t){return null==t.getAttribute("disabled")}))||lt(O,(function(t,n,e){var r;if(!e)return!0===t[n]?n.toLowerCase():(r=t.getAttributeNode(n))&&r.specified?r.value:null})),ut}(r);T.find=S,T.expr=S.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=S.uniqueSort,T.text=S.getText,T.isXMLDoc=S.isXML,T.contains=S.contains,T.escapeSelector=S.escape;var E=function(t,n,e){for(var r=[],i=void 0!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&T(t).is(e))break;r.push(t)}return r},k=function(t,n){for(var e=[];t;t=t.nextSibling)1===t.nodeType&&t!==n&&e.push(t);return e},N=T.expr.match.needsContext;function C(t,n){return t.nodeName&&t.nodeName.toLowerCase()===n.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(t,n,e){return v(n)?T.grep(t,(function(t,r){return!!n.call(t,r,t)!==e})):n.nodeType?T.grep(t,(function(t){return t===n!==e})):"string"!=typeof n?T.grep(t,(function(t){return f.call(n,t)>-1!==e})):T.filter(n,t,e)}T.filter=function(t,n,e){var r=n[0];return e&&(t=":not("+t+")"),1===n.length&&1===r.nodeType?T.find.matchesSelector(r,t)?[r]:[]:T.find.matches(t,T.grep(n,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var n,e,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(n=0;n<r;n++)if(T.contains(i[n],this))return!0})));for(e=this.pushStack([]),n=0;n<r;n++)T.find(t,i[n],e);return r>1?T.uniqueSort(e):e},filter:function(t){return this.pushStack(P(this,t||[],!1))},not:function(t){return this.pushStack(P(this,t||[],!0))},is:function(t){return!!P(this,"string"==typeof t&&N.test(t)?T(t):t||[],!1).length}});var q,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,n,e){var r,i;if(!t)return this;if(e=e||q,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:j.exec(t))||!r[1]&&n)return!n||n.jquery?(n||e).find(t):this.constructor(n).find(t);if(r[1]){if(n=n instanceof T?n[0]:n,T.merge(this,T.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:b,!0)),D.test(r[1])&&T.isPlainObject(n))for(r in n)v(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==e.ready?e.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,q=T(b);var L=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function R(t,n){for(;(t=t[n])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var n=T(t,this),e=n.length;return this.filter((function(){for(var t=0;t<e;t++)if(T.contains(this,n[t]))return!0}))},closest:function(t,n){var e,r=0,i=this.length,o=[],a="string"!=typeof t&&T(t);if(!N.test(t))for(;r<i;r++)for(e=this[r];e&&e!==n;e=e.parentNode)if(e.nodeType<11&&(a?a.index(e)>-1:1===e.nodeType&&T.find.matchesSelector(e,t))){o.push(e);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?f.call(T(t),this[0]):f.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,n))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var n=t.parentNode;return n&&11!==n.nodeType?n:null},parents:function(t){return E(t,"parentNode")},parentsUntil:function(t,n,e){return E(t,"parentNode",e)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return E(t,"nextSibling")},prevAll:function(t){return E(t,"previousSibling")},nextUntil:function(t,n,e){return E(t,"nextSibling",e)},prevUntil:function(t,n,e){return E(t,"previousSibling",e)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,n){T.fn[t]=function(e,r){var i=T.map(this,n,e);return"Until"!==t.slice(-5)&&(r=e),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(O[t]||T.uniqueSort(i),L.test(t)&&i.reverse()),this.pushStack(i)}}));var z=/[^\x20\t\r\n\f]+/g;function I(t){return t}function H(t){throw t}function F(t,n,e,r){var i;try{t&&v(i=t.promise)?i.call(t).done(n).fail(e):t&&v(i=t.then)?i.call(t,n,e):n.apply(void 0,[t].slice(r))}catch(t){e.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var n={};return T.each(t.match(z)||[],(function(t,e){n[e]=!0})),n}(t):T.extend({},t);var n,e,r,i,o=[],a=[],u=-1,c=function(){for(i=i||t.once,r=n=!0;a.length;u=-1)for(e=a.shift();++u<o.length;)!1===o[u].apply(e[0],e[1])&&t.stopOnFalse&&(u=o.length,e=!1);t.memory||(e=!1),n=!1,i&&(o=e?[]:"")},s={add:function(){return o&&(e&&!n&&(u=o.length-1,a.push(e)),function n(e){T.each(e,(function(e,r){v(r)?t.unique&&s.has(r)||o.push(r):r&&r.length&&"string"!==w(r)&&n(r)}))}(arguments),e&&!n&&c()),this},remove:function(){return T.each(arguments,(function(t,n){for(var e;(e=T.inArray(n,o,e))>-1;)o.splice(e,1),e<=u&&u--})),this},has:function(t){return t?T.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=e="",this},disabled:function(){return!o},lock:function(){return i=a=[],e||n||(o=e=""),this},locked:function(){return!!i},fireWith:function(t,e){return i||(e=[t,(e=e||[]).slice?e.slice():e],a.push(e),n||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!r}};return s},T.extend({Deferred:function(t){var n=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],e="pending",i={state:function(){return e},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(e){T.each(n,(function(n,r){var i=v(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,e,i){var o=0;function a(t,n,e,i){return function(){var u=this,c=arguments,s=function(){var r,s;if(!(t<o)){if((r=e.apply(u,c))===n.promise())throw new TypeError("Thenable self-resolution");s=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(s)?i?s.call(r,a(o,n,I,i),a(o,n,H,i)):(o++,s.call(r,a(o,n,I,i),a(o,n,H,i),a(o,n,I,n.notifyWith))):(e!==I&&(u=void 0,c=[r]),(i||n.resolveWith)(u,c))}},f=i?s:function(){try{s()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,f.stackTrace),t+1>=o&&(e!==H&&(u=void 0,c=[r]),n.rejectWith(u,c))}};t?f():(T.Deferred.getStackHook&&(f.stackTrace=T.Deferred.getStackHook()),r.setTimeout(f))}}return T.Deferred((function(r){n[0][3].add(a(0,r,v(i)?i:I,r.notifyWith)),n[1][3].add(a(0,r,v(t)?t:I)),n[2][3].add(a(0,r,v(e)?e:H))})).promise()},promise:function(t){return null!=t?T.extend(t,i):i}},o={};return T.each(n,(function(t,r){var a=r[2],u=r[5];i[r[1]]=a.add,u&&a.add((function(){e=u}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var n=arguments.length,e=n,r=Array(e),i=u.call(arguments),o=T.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=arguments.length>1?u.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(F(t,o.done(a(e)).resolve,o.reject,!n),"pending"===o.state()||v(i[e]&&i[e].then)))return o.then();for(;e--;)F(i[e],a(e),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,n){r.console&&r.console.warn&&t&&B.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},T.readyException=function(t){r.setTimeout((function(){throw t}))};var U=T.Deferred();function Y(){b.removeEventListener("DOMContentLoaded",Y),r.removeEventListener("load",Y),T.ready()}T.fn.ready=function(t){return U.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||U.resolveWith(b,[T]))}}),T.ready.then=U.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",Y),r.addEventListener("load",Y));var W=function(t,n,e,r,i,o,a){var u=0,c=t.length,s=null==e;if("object"===w(e))for(u in i=!0,e)W(t,n,u,e[u],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),s&&(a?(n.call(t,r),n=null):(s=n,n=function(t,n,e){return s.call(T(t),e)})),n))for(;u<c;u++)n(t[u],e,a?r:r.call(t[u],u,n(t[u],e)));return i?t:s?n.call(t):c?n(t[0],e):o},$=/^-ms-/,X=/-([a-z])/g;function V(t,n){return n.toUpperCase()}function G(t){return t.replace($,"ms-").replace(X,V)}var Z=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Q(){this.expando=T.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(t){var n=t[this.expando];return n||(n={},Z(t)&&(t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,configurable:!0}))),n},set:function(t,n,e){var r,i=this.cache(t);if("string"==typeof n)i[G(n)]=e;else for(r in n)i[G(r)]=n[r];return i},get:function(t,n){return void 0===n?this.cache(t):t[this.expando]&&t[this.expando][G(n)]},access:function(t,n,e){return void 0===n||n&&"string"==typeof n&&void 0===e?this.get(t,n):(this.set(t,n,e),void 0!==e?e:n)},remove:function(t,n){var e,r=t[this.expando];if(void 0!==r){if(void 0!==n){e=(n=Array.isArray(n)?n.map(G):(n=G(n))in r?[n]:n.match(z)||[]).length;for(;e--;)delete r[n[e]]}(void 0===n||T.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var n=t[this.expando];return void 0!==n&&!T.isEmptyObject(n)}};var K=new Q,J=new Q,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nt=/[A-Z]/g;function et(t,n,e){var r;if(void 0===e&&1===t.nodeType)if(r="data-"+n.replace(nt,"-$&").toLowerCase(),"string"==typeof(e=t.getAttribute(r))){try{e=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(e)}catch(t){}J.set(t,n,e)}else e=void 0;return e}T.extend({hasData:function(t){return J.hasData(t)||K.hasData(t)},data:function(t,n,e){return J.access(t,n,e)},removeData:function(t,n){J.remove(t,n)},_data:function(t,n,e){return K.access(t,n,e)},_removeData:function(t,n){K.remove(t,n)}}),T.fn.extend({data:function(t,n){var e,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=J.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(r=a[e].name).indexOf("data-")&&(r=G(r.slice(5)),et(o,r,i[r]));K.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){J.set(this,t)})):W(this,(function(n){var e;if(o&&void 0===n)return void 0!==(e=J.get(o,t))||void 0!==(e=et(o,t))?e:void 0;this.each((function(){J.set(this,t,n)}))}),null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){J.remove(this,t)}))}}),T.extend({queue:function(t,n,e){var r;if(t)return n=(n||"fx")+"queue",r=K.get(t,n),e&&(!r||Array.isArray(e)?r=K.access(t,n,T.makeArray(e)):r.push(e)),r||[]},dequeue:function(t,n){n=n||"fx";var e=T.queue(t,n),r=e.length,i=e.shift(),o=T._queueHooks(t,n);"inprogress"===i&&(i=e.shift(),r--),i&&("fx"===n&&e.unshift("inprogress"),delete o.stop,i.call(t,(function(){T.dequeue(t,n)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,n){var e=n+"queueHooks";return K.get(t,e)||K.access(t,e,{empty:T.Callbacks("once memory").add((function(){K.remove(t,[n+"queue",e])}))})}}),T.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?T.queue(this[0],t):void 0===n?this:this.each((function(){var e=T.queue(this,t,n);T._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var e,r=1,i=T.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(n=t,t=void 0),t=t||"fx";a--;)(e=K.get(o[a],t+"queueHooks"))&&e.empty&&(r++,e.empty.add(u));return u(),i.promise(n)}});var rt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+rt+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],at=b.documentElement,ut=function(t){return T.contains(t.ownerDocument,t)},ct={composed:!0};at.getRootNode&&(ut=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(ct)===t.ownerDocument});var st=function(t,n){return"none"===(t=n||t).style.display||""===t.style.display&&ut(t)&&"none"===T.css(t,"display")};function ft(t,n,e,r){var i,o,a=20,u=r?function(){return r.cur()}:function(){return T.css(t,n,"")},c=u(),s=e&&e[3]||(T.cssNumber[n]?"":"px"),f=t.nodeType&&(T.cssNumber[n]||"px"!==s&&+c)&&it.exec(T.css(t,n));if(f&&f[3]!==s){for(c/=2,s=s||f[3],f=+c||1;a--;)T.style(t,n,f+s),(1-o)*(1-(o=u()/c||.5))<=0&&(a=0),f/=o;f*=2,T.style(t,n,f+s),e=e||[]}return e&&(f=+f||+c||0,i=e[1]?f+(e[1]+1)*e[2]:+e[2],r&&(r.unit=s,r.start=f,r.end=i)),i}var lt={};function ht(t){var n,e=t.ownerDocument,r=t.nodeName,i=lt[r];return i||(n=e.body.appendChild(e.createElement(r)),i=T.css(n,"display"),n.parentNode.removeChild(n),"none"===i&&(i="block"),lt[r]=i,i)}function dt(t,n){for(var e,r,i=[],o=0,a=t.length;o<a;o++)(r=t[o]).style&&(e=r.style.display,n?("none"===e&&(i[o]=K.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&st(r)&&(i[o]=ht(r))):"none"!==e&&(i[o]="none",K.set(r,"display",e)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}T.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){st(this)?T(this).show():T(this).hide()}))}});var pt,gt,yt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i;pt=b.createDocumentFragment().appendChild(b.createElement("div")),(gt=b.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),pt.appendChild(gt),y.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,pt.innerHTML="<option></option>",y.option=!!pt.lastChild;var bt={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 _t(t,n){var e;return e=void 0!==t.getElementsByTagName?t.getElementsByTagName(n||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(n||"*"):[],void 0===n||n&&C(t,n)?T.merge([t],e):e}function xt(t,n){for(var e=0,r=t.length;e<r;e++)K.set(t[e],"globalEval",!n||K.get(n[e],"globalEval"))}bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,y.option||(bt.optgroup=bt.option=[1,"<select multiple='multiple'>","</select>"]);var wt=/<|&#?\w+;/;function Mt(t,n,e,r,i){for(var o,a,u,c,s,f,l=n.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===w(o))T.merge(h,o.nodeType?[o]:o);else if(wt.test(o)){for(a=a||l.appendChild(n.createElement("div")),u=(vt.exec(o)||["",""])[1].toLowerCase(),c=bt[u]||bt._default,a.innerHTML=c[1]+T.htmlPrefilter(o)+c[2],f=c[0];f--;)a=a.lastChild;T.merge(h,a.childNodes),(a=l.firstChild).textContent=""}else h.push(n.createTextNode(o));for(l.textContent="",d=0;o=h[d++];)if(r&&T.inArray(o,r)>-1)i&&i.push(o);else if(s=ut(o),a=_t(l.appendChild(o),"script"),s&&xt(a),e)for(f=0;o=a[f++];)mt.test(o.type||"")&&e.push(o);return l}var Tt=/^([^.]*)(?:\.(.+)|)/;function At(){return!0}function St(){return!1}function Et(t,n){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===n)}function kt(t,n,e,r,i,o){var a,u;if("object"==typeof n){for(u in"string"!=typeof e&&(r=r||e,e=void 0),n)kt(t,u,e,r,n[u],o);return t}if(null==r&&null==i?(i=e,r=e=void 0):null==i&&("string"==typeof e?(i=r,r=void 0):(i=r,r=e,e=void 0)),!1===i)i=St;else if(!i)return t;return 1===o&&(a=i,i=function(t){return T().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=T.guid++)),t.each((function(){T.event.add(this,n,i,r,e)}))}function Nt(t,n,e){e?(K.set(t,n,!1),T.event.add(t,n,{namespace:!1,handler:function(t){var r,i,o=K.get(this,n);if(1&t.isTrigger&&this[n]){if(o.length)(T.event.special[n]||{}).delegateType&&t.stopPropagation();else if(o=u.call(arguments),K.set(this,n,o),r=e(this,n),this[n](),o!==(i=K.get(this,n))||r?K.set(this,n,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(K.set(this,n,{value:T.event.trigger(T.extend(o[0],T.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,n)&&T.event.add(t,n,At)}T.event={global:{},add:function(t,n,e,r,i){var o,a,u,c,s,f,l,h,d,p,g,y=K.get(t);if(Z(t))for(e.handler&&(e=(o=e).handler,i=o.selector),i&&T.find.matchesSelector(at,i),e.guid||(e.guid=T.guid++),(c=y.events)||(c=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(n){return void 0!==T&&T.event.triggered!==n.type?T.event.dispatch.apply(t,arguments):void 0}),s=(n=(n||"").match(z)||[""]).length;s--;)d=g=(u=Tt.exec(n[s])||[])[1],p=(u[2]||"").split(".").sort(),d&&(l=T.event.special[d]||{},d=(i?l.delegateType:l.bindType)||d,l=T.event.special[d]||{},f=T.extend({type:d,origType:g,data:r,handler:e,guid:e.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=c[d])||((h=c[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,a)),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=e.guid)),i?h.splice(h.delegateCount++,0,f):h.push(f),T.event.global[d]=!0)},remove:function(t,n,e,r,i){var o,a,u,c,s,f,l,h,d,p,g,y=K.hasData(t)&&K.get(t);if(y&&(c=y.events)){for(s=(n=(n||"").match(z)||[""]).length;s--;)if(d=g=(u=Tt.exec(n[s])||[])[1],p=(u[2]||"").split(".").sort(),d){for(l=T.event.special[d]||{},h=c[d=(r?l.delegateType:l.bindType)||d]||[],u=u[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)f=h[o],!i&&g!==f.origType||e&&e.guid!==f.guid||u&&!u.test(f.namespace)||r&&r!==f.selector&&("**"!==r||!f.selector)||(h.splice(o,1),f.selector&&h.delegateCount--,l.remove&&l.remove.call(t,f));a&&!h.length&&(l.teardown&&!1!==l.teardown.call(t,p,y.handle)||T.removeEvent(t,d,y.handle),delete c[d])}else for(d in c)T.event.remove(t,d+n[s],e,r,!0);T.isEmptyObject(c)&&K.remove(t,"handle events")}},dispatch:function(t){var n,e,r,i,o,a,u=new Array(arguments.length),c=T.event.fix(t),s=(K.get(this,"events")||Object.create(null))[c.type]||[],f=T.event.special[c.type]||{};for(u[0]=c,n=1;n<arguments.length;n++)u[n]=arguments[n];if(c.delegateTarget=this,!f.preDispatch||!1!==f.preDispatch.call(this,c)){for(a=T.event.handlers.call(this,c,s),n=0;(i=a[n++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,e=0;(o=i.handlers[e++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,c),c.result}},handlers:function(t,n){var e,r,i,o,a,u=[],c=n.delegateCount,s=t.target;if(c&&s.nodeType&&!("click"===t.type&&t.button>=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&("click"!==t.type||!0!==s.disabled)){for(o=[],a={},e=0;e<c;e++)void 0===a[i=(r=n[e]).selector+" "]&&(a[i]=r.needsContext?T(i,this).index(s)>-1:T.find(i,this,null,[s]).length),a[i]&&o.push(r);o.length&&u.push({elem:s,handlers:o})}return s=this,c<n.length&&u.push({elem:s,handlers:n.slice(c)}),u},addProp:function(t,n){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(n){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var n=this||t;return yt.test(n.type)&&n.click&&C(n,"input")&&Nt(n,"click",At),!1},trigger:function(t){var n=this||t;return yt.test(n.type)&&n.click&&C(n,"input")&&Nt(n,"click"),!0},_default:function(t){var n=t.target;return yt.test(n.type)&&n.click&&C(n,"input")&&K.get(n,"click")||C(n,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,n,e){t.removeEventListener&&t.removeEventListener(n,e)},T.Event=function(t,n){if(!(this instanceof T.Event))return new T.Event(t,n);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?At:St,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,n&&T.extend(this,n),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=At,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=At,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=At,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.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},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,n){T.event.special[t]={setup:function(){return Nt(this,t,Et),!1},trigger:function(){return Nt(this,t),!0},_default:function(){return!0},delegateType:n}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,n){T.event.special[t]={delegateType:n,bindType:n,handle:function(t){var e,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||T.contains(r,i))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=n),e}}})),T.fn.extend({on:function(t,n,e,r){return kt(this,t,n,e,r)},one:function(t,n,e,r){return kt(this,t,n,e,r,1)},off:function(t,n,e){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,T(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,n,t[i]);return this}return!1!==n&&"function"!=typeof n||(e=n,n=void 0),!1===e&&(e=St),this.each((function(){T.event.remove(this,t,e,n)}))}});var Ct=/<script|<style|<link/i,Dt=/checked\s*(?:[^=]|=\s*.checked.)/i,Pt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qt(t,n){return C(t,"table")&&C(11!==n.nodeType?n:n.firstChild,"tr")&&T(t).children("tbody")[0]||t}function jt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Lt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ot(t,n){var e,r,i,o,a,u;if(1===n.nodeType){if(K.hasData(t)&&(u=K.get(t).events))for(i in K.remove(n,"handle events"),u)for(e=0,r=u[i].length;e<r;e++)T.event.add(n,i,u[i][e]);J.hasData(t)&&(o=J.access(t),a=T.extend({},o),J.set(n,a))}}function Rt(t,n){var e=n.nodeName.toLowerCase();"input"===e&&yt.test(t.type)?n.checked=t.checked:"input"!==e&&"textarea"!==e||(n.defaultValue=t.defaultValue)}function zt(t,n,e,r){n=c(n);var i,o,a,u,s,f,l=0,h=t.length,d=h-1,p=n[0],g=v(p);if(g||h>1&&"string"==typeof p&&!y.checkClone&&Dt.test(p))return t.each((function(i){var o=t.eq(i);g&&(n[0]=p.call(this,i,o.html())),zt(o,n,e,r)}));if(h&&(o=(i=Mt(n,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(a=T.map(_t(i,"script"),jt)).length;l<h;l++)s=i,l!==d&&(s=T.clone(s,!0,!0),u&&T.merge(a,_t(s,"script"))),e.call(t[l],s,l);if(u)for(f=a[a.length-1].ownerDocument,T.map(a,Lt),l=0;l<u;l++)s=a[l],mt.test(s.type||"")&&!K.access(s,"globalEval")&&T.contains(f,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?T._evalUrl&&!s.noModule&&T._evalUrl(s.src,{nonce:s.nonce||s.getAttribute("nonce")},f):x(s.textContent.replace(Pt,""),s,f))}return t}function It(t,n,e){for(var r,i=n?T.filter(n,t):t,o=0;null!=(r=i[o]);o++)e||1!==r.nodeType||T.cleanData(_t(r)),r.parentNode&&(e&&ut(r)&&xt(_t(r,"script")),r.parentNode.removeChild(r));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,n,e){var r,i,o,a,u=t.cloneNode(!0),c=ut(t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(a=_t(u),r=0,i=(o=_t(t)).length;r<i;r++)Rt(o[r],a[r]);if(n)if(e)for(o=o||_t(t),a=a||_t(u),r=0,i=o.length;r<i;r++)Ot(o[r],a[r]);else Ot(t,u);return(a=_t(u,"script")).length>0&&xt(a,!c&&_t(t,"script")),u},cleanData:function(t){for(var n,e,r,i=T.event.special,o=0;void 0!==(e=t[o]);o++)if(Z(e)){if(n=e[K.expando]){if(n.events)for(r in n.events)i[r]?T.event.remove(e,r):T.removeEvent(e,r,n.handle);e[K.expando]=void 0}e[J.expando]&&(e[J.expando]=void 0)}}}),T.fn.extend({detach:function(t){return It(this,t,!0)},remove:function(t){return It(this,t)},text:function(t){return W(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qt(this,t).appendChild(t)}))},prepend:function(){return zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=qt(this,t);n.insertBefore(t,n.firstChild)}}))},before:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,n=0;null!=(t=this[n]);n++)1===t.nodeType&&(T.cleanData(_t(t,!1)),t.textContent="");return this},clone:function(t,n){return t=null!=t&&t,n=null==n?t:n,this.map((function(){return T.clone(this,t,n)}))},html:function(t){return W(this,(function(t){var n=this[0]||{},e=0,r=this.length;if(void 0===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!Ct.test(t)&&!bt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;e<r;e++)1===(n=this[e]||{}).nodeType&&(T.cleanData(_t(n,!1)),n.innerHTML=t);n=0}catch(t){}}n&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return zt(this,arguments,(function(n){var e=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(_t(this)),e&&e.replaceChild(n,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,n){T.fn[t]=function(t){for(var e,r=[],i=T(t),o=i.length-1,a=0;a<=o;a++)e=a===o?this:this.clone(!0),T(i[a])[n](e),s.apply(r,e.get());return this.pushStack(r)}}));var Ht=new RegExp("^("+rt+")(?!px)[a-z%]+$","i"),Ft=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=r),n.getComputedStyle(t)},Bt=function(t,n,e){var r,i,o={};for(i in n)o[i]=t.style[i],t.style[i]=n[i];for(i in r=e.call(t),n)t.style[i]=o[i];return r},Ut=new RegExp(ot.join("|"),"i");function Yt(t,n,e){var r,i,o,a,u=t.style;return(e=e||Ft(t))&&(""!==(a=e.getPropertyValue(n)||e[n])||ut(t)||(a=T.style(t,n)),!y.pixelBoxStyles()&&Ht.test(a)&&Ut.test(n)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=e.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Wt(t,n){return{get:function(){if(!t())return(this.get=n).apply(this,arguments);delete this.get}}}!function(){function t(){if(f){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",f.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",at.appendChild(s).appendChild(f);var t=r.getComputedStyle(f);e="1%"!==t.top,c=12===n(t.marginLeft),f.style.right="60%",a=36===n(t.right),i=36===n(t.width),f.style.position="absolute",o=12===n(f.offsetWidth/3),at.removeChild(s),f=null}}function n(t){return Math.round(parseFloat(t))}var e,i,o,a,u,c,s=b.createElement("div"),f=b.createElement("div");f.style&&(f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===f.style.backgroundClip,T.extend(y,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),e},reliableMarginLeft:function(){return t(),c},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,e,i;return null==u&&(t=b.createElement("table"),n=b.createElement("tr"),e=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",e.style.height="9px",e.style.display="block",at.appendChild(t).appendChild(n).appendChild(e),i=r.getComputedStyle(n),u=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,at.removeChild(t)),u}}))}();var $t=["Webkit","Moz","ms"],Xt=b.createElement("div").style,Vt={};function Gt(t){return T.cssProps[t]||Vt[t]||(t in Xt?t:Vt[t]=function(t){for(var n=t[0].toUpperCase()+t.slice(1),e=$t.length;e--;)if((t=$t[e]+n)in Xt)return t}(t)||t)}var Zt=/^(none|table(?!-c[ea]).+)/,Qt=/^--/,Kt={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:"0",fontWeight:"400"};function tn(t,n,e){var r=it.exec(n);return r?Math.max(0,r[2]-(e||0))+(r[3]||"px"):n}function nn(t,n,e,r,i,o){var a="width"===n?1:0,u=0,c=0;if(e===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===e&&(c+=T.css(t,e+ot[a],!0,i)),r?("content"===e&&(c-=T.css(t,"padding"+ot[a],!0,i)),"margin"!==e&&(c-=T.css(t,"border"+ot[a]+"Width",!0,i))):(c+=T.css(t,"padding"+ot[a],!0,i),"padding"!==e?c+=T.css(t,"border"+ot[a]+"Width",!0,i):u+=T.css(t,"border"+ot[a]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(t["offset"+n[0].toUpperCase()+n.slice(1)]-o-c-u-.5))||0),c}function en(t,n,e){var r=Ft(t),i=(!y.boxSizingReliable()||e)&&"border-box"===T.css(t,"boxSizing",!1,r),o=i,a=Yt(t,n,r),u="offset"+n[0].toUpperCase()+n.slice(1);if(Ht.test(a)){if(!e)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&C(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===T.css(t,"boxSizing",!1,r),(o=u in t)&&(a=t[u])),(a=parseFloat(a)||0)+nn(t,n,e||(i?"border":"content"),o,r,a)+"px"}function rn(t,n,e,r,i){return new rn.prototype.init(t,n,e,r,i)}T.extend({cssHooks:{opacity:{get:function(t,n){if(n){var e=Yt(t,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,n,e,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=G(n),c=Qt.test(n),s=t.style;if(c||(n=Gt(u)),a=T.cssHooks[n]||T.cssHooks[u],void 0===e)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:s[n];"string"==(o=typeof e)&&(i=it.exec(e))&&i[1]&&(e=ft(t,n,i),o="number"),null!=e&&e==e&&("number"!==o||c||(e+=i&&i[3]||(T.cssNumber[u]?"":"px")),y.clearCloneStyle||""!==e||0!==n.indexOf("background")||(s[n]="inherit"),a&&"set"in a&&void 0===(e=a.set(t,e,r))||(c?s.setProperty(n,e):s[n]=e))}},css:function(t,n,e,r){var i,o,a,u=G(n);return Qt.test(n)||(n=Gt(u)),(a=T.cssHooks[n]||T.cssHooks[u])&&"get"in a&&(i=a.get(t,!0,e)),void 0===i&&(i=Yt(t,n,r)),"normal"===i&&n in Jt&&(i=Jt[n]),""===e||e?(o=parseFloat(i),!0===e||isFinite(o)?o||0:i):i}}),T.each(["height","width"],(function(t,n){T.cssHooks[n]={get:function(t,e,r){if(e)return!Zt.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?en(t,n,r):Bt(t,Kt,(function(){return en(t,n,r)}))},set:function(t,e,r){var i,o=Ft(t),a=!y.scrollboxSize()&&"absolute"===o.position,u=(a||r)&&"border-box"===T.css(t,"boxSizing",!1,o),c=r?nn(t,n,r,u,o):0;return u&&a&&(c-=Math.ceil(t["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(o[n])-nn(t,n,"border",!1,o)-.5)),c&&(i=it.exec(e))&&"px"!==(i[3]||"px")&&(t.style[n]=e,e=T.css(t,n)),tn(0,e,c)}}})),T.cssHooks.marginLeft=Wt(y.reliableMarginLeft,(function(t,n){if(n)return(parseFloat(Yt(t,"marginLeft"))||t.getBoundingClientRect().left-Bt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,n){T.cssHooks[t+n]={expand:function(e){for(var r=0,i={},o="string"==typeof e?e.split(" "):[e];r<4;r++)i[t+ot[r]+n]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(T.cssHooks[t+n].set=tn)})),T.fn.extend({css:function(t,n){return W(this,(function(t,n,e){var r,i,o={},a=0;if(Array.isArray(n)){for(r=Ft(t),i=n.length;a<i;a++)o[n[a]]=T.css(t,n[a],!1,r);return o}return void 0!==e?T.style(t,n,e):T.css(t,n)}),t,n,arguments.length>1)}}),T.Tween=rn,rn.prototype={constructor:rn,init:function(t,n,e,r,i,o){this.elem=t,this.prop=e,this.easing=i||T.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[e]?"":"px")},cur:function(){var t=rn.propHooks[this.prop];return t&&t.get?t.get(this):rn.propHooks._default.get(this)},run:function(t){var n,e=rn.propHooks[this.prop];return this.options.duration?this.pos=n=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=n=t,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):rn.propHooks._default.set(this),this}},rn.prototype.init.prototype=rn.prototype,rn.propHooks={_default:{get:function(t){var n;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(n=T.css(t.elem,t.prop,""))&&"auto"!==n?n:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[Gt(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},rn.propHooks.scrollTop=rn.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=rn.prototype.init,T.fx.step={};var on,an,un=/^(?:toggle|show|hide)$/,cn=/queueHooks$/;function sn(){an&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(sn):r.setTimeout(sn,T.fx.interval),T.fx.tick())}function fn(){return r.setTimeout((function(){on=void 0})),on=Date.now()}function ln(t,n){var e,r=0,i={height:t};for(n=n?1:0;r<4;r+=2-n)i["margin"+(e=ot[r])]=i["padding"+e]=t;return n&&(i.opacity=i.width=t),i}function hn(t,n,e){for(var r,i=(dn.tweeners[n]||[]).concat(dn.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(e,n,t))return r}function dn(t,n,e){var r,i,o=0,a=dn.prefilters.length,u=T.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var n=on||fn(),e=Math.max(0,s.startTime+s.duration-n),r=1-(e/s.duration||0),o=0,a=s.tweens.length;o<a;o++)s.tweens[o].run(r);return u.notifyWith(t,[s,r,e]),r<1&&a?e:(a||u.notifyWith(t,[s,1,0]),u.resolveWith(t,[s]),!1)},s=u.promise({elem:t,props:T.extend({},n),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},e),originalProperties:n,originalOptions:e,startTime:on||fn(),duration:e.duration,tweens:[],createTween:function(n,e){var r=T.Tween(t,s.opts,n,e,s.opts.specialEasing[n]||s.opts.easing);return s.tweens.push(r),r},stop:function(n){var e=0,r=n?s.tweens.length:0;if(i)return this;for(i=!0;e<r;e++)s.tweens[e].run(1);return n?(u.notifyWith(t,[s,1,0]),u.resolveWith(t,[s,n])):u.rejectWith(t,[s,n]),this}}),f=s.props;for(function(t,n){var e,r,i,o,a;for(e in t)if(i=n[r=G(e)],o=t[e],Array.isArray(o)&&(i=o[1],o=t[e]=o[0]),e!==r&&(t[r]=o,delete t[e]),(a=T.cssHooks[r])&&"expand"in a)for(e in o=a.expand(o),delete t[r],o)e in t||(t[e]=o[e],n[e]=i);else n[r]=i}(f,s.opts.specialEasing);o<a;o++)if(r=dn.prefilters[o].call(s,t,f,s.opts))return v(r.stop)&&(T._queueHooks(s.elem,s.opts.queue).stop=r.stop.bind(r)),r;return T.map(f,hn,s),v(s.opts.start)&&s.opts.start.call(t,s),s.progress(s.opts.progress).done(s.opts.done,s.opts.complete).fail(s.opts.fail).always(s.opts.always),T.fx.timer(T.extend(c,{elem:t,anim:s,queue:s.opts.queue})),s}T.Animation=T.extend(dn,{tweeners:{"*":[function(t,n){var e=this.createTween(t,n);return ft(e.elem,t,it.exec(n),e),e}]},tweener:function(t,n){v(t)?(n=t,t=["*"]):t=t.match(z);for(var e,r=0,i=t.length;r<i;r++)e=t[r],dn.tweeners[e]=dn.tweeners[e]||[],dn.tweeners[e].unshift(n)},prefilters:[function(t,n,e){var r,i,o,a,u,c,s,f,l="width"in n||"height"in n,h=this,d={},p=t.style,g=t.nodeType&&st(t),y=K.get(t,"fxshow");for(r in e.queue||(null==(a=T._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,T.queue(t,"fx").length||a.empty.fire()}))}))),n)if(i=n[r],un.test(i)){if(delete n[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!y||void 0===y[r])continue;g=!0}d[r]=y&&y[r]||T.style(t,r)}if((c=!T.isEmptyObject(n))||!T.isEmptyObject(d))for(r in l&&1===t.nodeType&&(e.overflow=[p.overflow,p.overflowX,p.overflowY],null==(s=y&&y.display)&&(s=K.get(t,"display")),"none"===(f=T.css(t,"display"))&&(s?f=s:(dt([t],!0),s=t.style.display||s,f=T.css(t,"display"),dt([t]))),("inline"===f||"inline-block"===f&&null!=s)&&"none"===T.css(t,"float")&&(c||(h.done((function(){p.display=s})),null==s&&(f=p.display,s="none"===f?"":f)),p.display="inline-block")),e.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=e.overflow[0],p.overflowX=e.overflow[1],p.overflowY=e.overflow[2]}))),c=!1,d)c||(y?"hidden"in y&&(g=y.hidden):y=K.access(t,"fxshow",{display:s}),o&&(y.hidden=!g),g&&dt([t],!0),h.done((function(){for(r in g||dt([t]),K.remove(t,"fxshow"),d)T.style(t,r,d[r])}))),c=hn(g?y[r]:0,r,h),r in y||(y[r]=c.start,g&&(c.end=c.start,c.start=0))}],prefilter:function(t,n){n?dn.prefilters.unshift(t):dn.prefilters.push(t)}}),T.speed=function(t,n,e){var r=t&&"object"==typeof t?T.extend({},t):{complete:e||!e&&n||v(t)&&t,duration:t,easing:e&&n||n&&!v(n)&&n};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(t,n,e,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:n},t,e,r)},animate:function(t,n,e,r){var i=T.isEmptyObject(t),o=T.speed(n,e,r),a=function(){var n=dn(this,T.extend({},t),o);(i||K.get(this,"finish"))&&n.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,n,e){var r=function(t){var n=t.stop;delete t.stop,n(e)};return"string"!=typeof t&&(e=n,n=t,t=void 0),n&&this.queue(t||"fx",[]),this.each((function(){var n=!0,i=null!=t&&t+"queueHooks",o=T.timers,a=K.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&cn.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(e),n=!1,o.splice(i,1));!n&&e||T.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var n,e=K.get(this),r=e[t+"queue"],i=e[t+"queueHooks"],o=T.timers,a=r?r.length:0;for(e.finish=!0,T.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),n=o.length;n--;)o[n].elem===this&&o[n].queue===t&&(o[n].anim.stop(!0),o.splice(n,1));for(n=0;n<a;n++)r[n]&&r[n].finish&&r[n].finish.call(this);delete e.finish}))}}),T.each(["toggle","show","hide"],(function(t,n){var e=T.fn[n];T.fn[n]=function(t,r,i){return null==t||"boolean"==typeof t?e.apply(this,arguments):this.animate(ln(n,!0),t,r,i)}})),T.each({slideDown:ln("show"),slideUp:ln("hide"),slideToggle:ln("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,n){T.fn[t]=function(t,e,r){return this.animate(n,t,e,r)}})),T.timers=[],T.fx.tick=function(){var t,n=0,e=T.timers;for(on=Date.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||T.fx.stop(),on=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){an||(an=!0,sn())},T.fx.stop=function(){an=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,n){return t=T.fx&&T.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,e){var i=r.setTimeout(n,t);e.stop=function(){r.clearTimeout(i)}}))},function(){var t=b.createElement("input"),n=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",y.checkOn=""!==t.value,y.optSelected=n.selected,(t=b.createElement("input")).value="t",t.type="radio",y.radioValue="t"===t.value}();var pn,gn=T.expr.attrHandle;T.fn.extend({attr:function(t,n){return W(this,T.attr,t,n,arguments.length>1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,n,e):(1===o&&T.isXMLDoc(t)||(i=T.attrHooks[n.toLowerCase()]||(T.expr.match.bool.test(n)?pn:void 0)),void 0!==e?null===e?void T.removeAttr(t,n):i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:(t.setAttribute(n,e+""),e):i&&"get"in i&&null!==(r=i.get(t,n))?r:null==(r=T.find.attr(t,n))?void 0:r)},attrHooks:{type:{set:function(t,n){if(!y.radioValue&&"radio"===n&&C(t,"input")){var e=t.value;return t.setAttribute("type",n),e&&(t.value=e),n}}}},removeAttr:function(t,n){var e,r=0,i=n&&n.match(z);if(i&&1===t.nodeType)for(;e=i[r++];)t.removeAttribute(e)}}),pn={set:function(t,n,e){return!1===n?T.removeAttr(t,e):t.setAttribute(e,e),e}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,n){var e=gn[n]||T.find.attr;gn[n]=function(t,n,r){var i,o,a=n.toLowerCase();return r||(o=gn[a],gn[a]=i,i=null!=e(t,n,r)?a:null,gn[a]=o),i}}));var yn=/^(?:input|select|textarea|button)$/i,vn=/^(?:a|area)$/i;function mn(t){return(t.match(z)||[]).join(" ")}function bn(t){return t.getAttribute&&t.getAttribute("class")||""}function _n(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(z)||[]}T.fn.extend({prop:function(t,n){return W(this,T.prop,t,n,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(n=T.propFix[n]||n,i=T.propHooks[n]),void 0!==e?i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:t[n]=e:i&&"get"in i&&null!==(r=i.get(t,n))?r:t[n]},propHooks:{tabIndex:{get:function(t){var n=T.find.attr(t,"tabindex");return n?parseInt(n,10):yn.test(t.nodeName)||vn.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(T.propHooks.selected={get:function(t){var n=t.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(t){var n=t.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var n,e,r,i,o,a,u,c=0;if(v(t))return this.each((function(n){T(this).addClass(t.call(this,n,bn(this)))}));if((n=_n(t)).length)for(;e=this[c++];)if(i=bn(e),r=1===e.nodeType&&" "+mn(i)+" "){for(a=0;o=n[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(u=mn(r))&&e.setAttribute("class",u)}return this},removeClass:function(t){var n,e,r,i,o,a,u,c=0;if(v(t))return this.each((function(n){T(this).removeClass(t.call(this,n,bn(this)))}));if(!arguments.length)return this.attr("class","");if((n=_n(t)).length)for(;e=this[c++];)if(i=bn(e),r=1===e.nodeType&&" "+mn(i)+" "){for(a=0;o=n[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(u=mn(r))&&e.setAttribute("class",u)}return this},toggleClass:function(t,n){var e=typeof t,r="string"===e||Array.isArray(t);return"boolean"==typeof n&&r?n?this.addClass(t):this.removeClass(t):v(t)?this.each((function(e){T(this).toggleClass(t.call(this,e,bn(this),n),n)})):this.each((function(){var n,i,o,a;if(r)for(i=0,o=T(this),a=_n(t);n=a[i++];)o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==t&&"boolean"!==e||((n=bn(this))&&K.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":K.get(this,"__className__")||""))}))},hasClass:function(t){var n,e,r=0;for(n=" "+t+" ";e=this[r++];)if(1===e.nodeType&&(" "+mn(bn(e))+" ").indexOf(n)>-1)return!0;return!1}});var xn=/\r/g;T.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=v(t),this.each((function(e){var i;1===this.nodeType&&(null==(i=r?t.call(this,e,T(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(t){return null==t?"":t+""}))),(n=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,i,"value")||(this.value=i))}))):i?(n=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:"string"==typeof(e=i.value)?e.replace(xn,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(t){var n=T.find.attr(t,"value");return null!=n?n:mn(T.text(t))}},select:{get:function(t){var n,e,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((e=i[r]).selected||r===o)&&!e.disabled&&(!e.parentNode.disabled||!C(e.parentNode,"optgroup"))){if(n=T(e).val(),a)return n;u.push(n)}return u},set:function(t,n){for(var e,r,i=t.options,o=T.makeArray(n),a=i.length;a--;)((r=i[a]).selected=T.inArray(T.valHooks.option.get(r),o)>-1)&&(e=!0);return e||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,n){if(Array.isArray(n))return t.checked=T.inArray(T(t).val(),n)>-1}},y.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),y.focusin="onfocusin"in r;var wn=/^(?:focusinfocus|focusoutblur)$/,Mn=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,n,e,i){var o,a,u,c,s,f,l,h,p=[e||b],g=d.call(t,"type")?t.type:t,y=d.call(t,"namespace")?t.namespace.split("."):[];if(a=h=u=e=e||b,3!==e.nodeType&&8!==e.nodeType&&!wn.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(y=g.split("."),g=y.shift(),y.sort()),s=g.indexOf(":")<0&&"on"+g,(t=t[T.expando]?t:new T.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),n=null==n?[t]:T.makeArray(n,[t]),l=T.event.special[g]||{},i||!l.trigger||!1!==l.trigger.apply(e,n))){if(!i&&!l.noBubble&&!m(e)){for(c=l.delegateType||g,wn.test(c+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),u=a;u===(e.ownerDocument||b)&&p.push(u.defaultView||u.parentWindow||r)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?c:l.bindType||g,(f=(K.get(a,"events")||Object.create(null))[t.type]&&K.get(a,"handle"))&&f.apply(a,n),(f=s&&a[s])&&f.apply&&Z(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||l._default&&!1!==l._default.apply(p.pop(),n)||!Z(e)||s&&v(e[g])&&!m(e)&&((u=e[s])&&(e[s]=null),T.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Mn),e[g](),t.isPropagationStopped()&&h.removeEventListener(g,Mn),T.event.triggered=void 0,u&&(e[s]=u)),t.result}},simulate:function(t,n,e){var r=T.extend(new T.Event,e,{type:t,isSimulated:!0});T.event.trigger(r,null,n)}}),T.fn.extend({trigger:function(t,n){return this.each((function(){T.event.trigger(t,n,this)}))},triggerHandler:function(t,n){var e=this[0];if(e)return T.event.trigger(t,n,e,!0)}}),y.focusin||T.each({focus:"focusin",blur:"focusout"},(function(t,n){var e=function(t){T.event.simulate(n,t.target,T.event.fix(t))};T.event.special[n]={setup:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,n);i||r.addEventListener(t,e,!0),K.access(r,n,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,n)-1;i?K.access(r,n,i):(r.removeEventListener(t,e,!0),K.remove(r,n))}}}));var Tn=r.location,An={guid:Date.now()},Sn=/\?/;T.parseXML=function(t){var n,e;if(!t||"string"!=typeof t)return null;try{n=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return e=n&&n.getElementsByTagName("parsererror")[0],n&&!e||T.error("Invalid XML: "+(e?T.map(e.childNodes,(function(t){return t.textContent})).join("\n"):t)),n};var En=/\[\]$/,kn=/\r?\n/g,Nn=/^(?:submit|button|image|reset|file)$/i,Cn=/^(?:input|select|textarea|keygen)/i;function Dn(t,n,e,r){var i;if(Array.isArray(n))T.each(n,(function(n,i){e||En.test(t)?r(t,i):Dn(t+"["+("object"==typeof i&&null!=i?n:"")+"]",i,e,r)}));else if(e||"object"!==w(n))r(t,n);else for(i in n)Dn(t+"["+i+"]",n[i],e,r)}T.param=function(t,n){var e,r=[],i=function(t,n){var e=v(n)?n():n;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){i(this.name,this.value)}));else for(e in t)Dn(e,t[e],n,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Cn.test(this.nodeName)&&!Nn.test(t)&&(this.checked||!yt.test(t))})).map((function(t,n){var e=T(this).val();return null==e?null:Array.isArray(e)?T.map(e,(function(t){return{name:n.name,value:t.replace(kn,"\r\n")}})):{name:n.name,value:e.replace(kn,"\r\n")}})).get()}});var Pn=/%20/g,qn=/#.*$/,jn=/([?&])_=[^&]*/,Ln=/^(.*?):[ \t]*([^\r\n]*)$/gm,On=/^(?:GET|HEAD)$/,Rn=/^\/\//,zn={},In={},Hn="*/".concat("*"),Fn=b.createElement("a");function Bn(t){return function(n,e){"string"!=typeof n&&(e=n,n="*");var r,i=0,o=n.toLowerCase().match(z)||[];if(v(e))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(e)):(t[r]=t[r]||[]).push(e)}}function Un(t,n,e,r){var i={},o=t===In;function a(u){var c;return i[u]=!0,T.each(t[u]||[],(function(t,u){var s=u(n,e,r);return"string"!=typeof s||o||i[s]?o?!(c=s):void 0:(n.dataTypes.unshift(s),a(s),!1)})),c}return a(n.dataTypes[0])||!i["*"]&&a("*")}function Yn(t,n){var e,r,i=T.ajaxSettings.flatOptions||{};for(e in n)void 0!==n[e]&&((i[e]?t:r||(r={}))[e]=n[e]);return r&&T.extend(!0,t,r),t}Fn.href=Tn.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tn.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hn,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":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,n){return n?Yn(Yn(t,T.ajaxSettings),n):Yn(T.ajaxSettings,t)},ajaxPrefilter:Bn(zn),ajaxTransport:Bn(In),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var e,i,o,a,u,c,s,f,l,h,d=T.ajaxSetup({},n),p=d.context||d,g=d.context&&(p.nodeType||p.jquery)?T(p):T.event,y=T.Deferred(),v=T.Callbacks("once memory"),m=d.statusCode||{},_={},x={},w="canceled",M={readyState:0,getResponseHeader:function(t){var n;if(s){if(!a)for(a={};n=Ln.exec(o);)a[n[1].toLowerCase()+" "]=(a[n[1].toLowerCase()+" "]||[]).concat(n[2]);n=a[t.toLowerCase()+" "]}return null==n?null:n.join(", ")},getAllResponseHeaders:function(){return s?o:null},setRequestHeader:function(t,n){return null==s&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,_[t]=n),this},overrideMimeType:function(t){return null==s&&(d.mimeType=t),this},statusCode:function(t){var n;if(t)if(s)M.always(t[M.status]);else for(n in t)m[n]=[m[n],t[n]];return this},abort:function(t){var n=t||w;return e&&e.abort(n),A(0,n),this}};if(y.promise(M),d.url=((t||d.url||Tn.href)+"").replace(Rn,Tn.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(z)||[""],null==d.crossDomain){c=b.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Fn.protocol+"//"+Fn.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=T.param(d.data,d.traditional)),Un(zn,d,n,M),s)return M;for(l in(f=T.event&&d.global)&&0==T.active++&&T.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!On.test(d.type),i=d.url.replace(qn,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Pn,"+")):(h=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Sn.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(jn,"$1"),h=(Sn.test(i)?"&":"?")+"_="+An.guid+++h),d.url=i+h),d.ifModified&&(T.lastModified[i]&&M.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&M.setRequestHeader("If-None-Match",T.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&M.setRequestHeader("Content-Type",d.contentType),M.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Hn+"; q=0.01":""):d.accepts["*"]),d.headers)M.setRequestHeader(l,d.headers[l]);if(d.beforeSend&&(!1===d.beforeSend.call(p,M,d)||s))return M.abort();if(w="abort",v.add(d.complete),M.done(d.success),M.fail(d.error),e=Un(In,d,n,M)){if(M.readyState=1,f&&g.trigger("ajaxSend",[M,d]),s)return M;d.async&&d.timeout>0&&(u=r.setTimeout((function(){M.abort("timeout")}),d.timeout));try{s=!1,e.send(_,A)}catch(t){if(s)throw t;A(-1,t)}}else A(-1,"No Transport");function A(t,n,a,c){var l,h,b,_,x,w=n;s||(s=!0,u&&r.clearTimeout(u),e=void 0,o=c||"",M.readyState=t>0?4:0,l=t>=200&&t<300||304===t,a&&(_=function(t,n,e){for(var r,i,o,a,u=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){c.unshift(i);break}if(c[0]in e)o=c[0];else{for(i in e){if(!c[0]||t.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),e[o]}(d,M,a)),!l&&T.inArray("script",d.dataTypes)>-1&&T.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),_=function(t,n,e,r){var i,o,a,u,c,s={},f=t.dataTypes.slice();if(f[1])for(a in t.converters)s[a.toLowerCase()]=t.converters[a];for(o=f.shift();o;)if(t.responseFields[o]&&(e[t.responseFields[o]]=n),!c&&r&&t.dataFilter&&(n=t.dataFilter(n,t.dataType)),c=o,o=f.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=s[c+" "+o]||s["* "+o]))for(i in s)if((u=i.split(" "))[1]===o&&(a=s[c+" "+u[0]]||s["* "+u[0]])){!0===a?a=s[i]:!0!==s[i]&&(o=u[0],f.unshift(u[1]));break}if(!0!==a)if(a&&t.throws)n=a(n);else try{n=a(n)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+c+" to "+o}}}return{state:"success",data:n}}(d,_,M,l),l?(d.ifModified&&((x=M.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=x),(x=M.getResponseHeader("etag"))&&(T.etag[i]=x)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=_.state,h=_.data,l=!(b=_.error))):(b=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(n||w)+"",l?y.resolveWith(p,[h,w,M]):y.rejectWith(p,[M,w,b]),M.statusCode(m),m=void 0,f&&g.trigger(l?"ajaxSuccess":"ajaxError",[M,d,l?h:b]),v.fireWith(p,[M,w]),f&&(g.trigger("ajaxComplete",[M,d]),--T.active||T.event.trigger("ajaxStop")))}return M},getJSON:function(t,n,e){return T.get(t,n,e,"json")},getScript:function(t,n){return T.get(t,void 0,n,"script")}}),T.each(["get","post"],(function(t,n){T[n]=function(t,e,r,i){return v(e)&&(i=i||r,r=e,e=void 0),T.ajax(T.extend({url:t,type:n,dataType:i,data:e,success:r},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var n;for(n in t.headers)"content-type"===n.toLowerCase()&&(t.contentType=t.headers[n]||"")})),T._evalUrl=function(t,n,e){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,n,e)}})},T.fn.extend({wrapAll:function(t){var n;return this[0]&&(v(t)&&(t=t.call(this[0])),n=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(n){T(this).wrapInner(t.call(this,n))})):this.each((function(){var n=T(this),e=n.contents();e.length?e.wrapAll(t):n.append(t)}))},wrap:function(t){var n=v(t);return this.each((function(e){T(this).wrapAll(n?t.call(this,e):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Wn={0:200,1223:204},$n=T.ajaxSettings.xhr();y.cors=!!$n&&"withCredentials"in $n,y.ajax=$n=!!$n,T.ajaxTransport((function(t){var n,e;if(y.cors||$n&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];for(a in t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)u.setRequestHeader(a,i[a]);n=function(t){return function(){n&&(n=e=u.onload=u.onerror=u.onabort=u.ontimeout=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!=typeof u.status?o(0,"error"):o(u.status,u.statusText):o(Wn[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=n(),e=u.onerror=u.ontimeout=n("error"),void 0!==u.onabort?u.onabort=e:u.onreadystatechange=function(){4===u.readyState&&r.setTimeout((function(){n&&e()}))},n=n("abort");try{u.send(t.hasContent&&t.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var n,e;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){n=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",e=function(t){n.remove(),e=null,t&&i("error"===t.type?404:200,t.type)}),b.head.appendChild(n[0])},abort:function(){e&&e()}}}));var Xn,Vn=[],Gn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Vn.pop()||T.expando+"_"+An.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",(function(t,n,e){var i,o,a,u=!1!==t.jsonp&&(Gn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gn.test(t.data)&&"data");if(u||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(Gn,"$1"+i):!1!==t.jsonp&&(t.url+=(Sn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||T.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},e.always((function(){void 0===o?T(r).removeProp(i):r[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Vn.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),y.createHTMLDocument=((Xn=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xn.childNodes.length),T.parseHTML=function(t,n,e){return"string"!=typeof t?[]:("boolean"==typeof n&&(e=n,n=!1),n||(y.createHTMLDocument?((r=(n=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,n.head.appendChild(r)):n=b),o=!e&&[],(i=D.exec(t))?[n.createElement(i[1])]:(i=Mt([t],n,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(t,n,e){var r,i,o,a=this,u=t.indexOf(" ");return u>-1&&(r=mn(t.slice(u)),t=t.slice(0,u)),v(n)?(e=n,n=void 0):n&&"object"==typeof n&&(i="POST"),a.length>0&&T.ajax({url:t,type:i||"GET",dataType:"html",data:n}).done((function(t){o=arguments,a.html(r?T("<div>").append(T.parseHTML(t)).find(r):t)})).always(e&&function(t,n){a.each((function(){e.apply(this,o||[t.responseText,n,t])}))}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,(function(n){return t===n.elem})).length},T.offset={setOffset:function(t,n,e){var r,i,o,a,u,c,s=T.css(t,"position"),f=T(t),l={};"static"===s&&(t.style.position="relative"),u=f.offset(),o=T.css(t,"top"),c=T.css(t,"left"),("absolute"===s||"fixed"===s)&&(o+c).indexOf("auto")>-1?(a=(r=f.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),v(n)&&(n=n.call(t,e,T.extend({},u))),null!=n.top&&(l.top=n.top-u.top+a),null!=n.left&&(l.left=n.left-u.left+i),"using"in n?n.using.call(t,l):f.css(l)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(n){T.offset.setOffset(this,t,n)}));var n,e,r=this[0];return r?r.getClientRects().length?(n=r.getBoundingClientRect(),e=r.ownerDocument.defaultView,{top:n.top+e.pageYOffset,left:n.left+e.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,n,e,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))n=r.getBoundingClientRect();else{for(n=this.offset(),e=r.ownerDocument,t=r.offsetParent||e.documentElement;t&&(t===e.body||t===e.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),i.left+=T.css(t,"borderLeftWidth",!0))}return{top:n.top-i.top-T.css(r,"marginTop",!0),left:n.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||at}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,n){var e="pageYOffset"===n;T.fn[t]=function(r){return W(this,(function(t,r,i){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[n]:t[r];o?o.scrollTo(e?o.pageXOffset:i,e?i:o.pageYOffset):t[r]=i}),t,r,arguments.length)}})),T.each(["top","left"],(function(t,n){T.cssHooks[n]=Wt(y.pixelPosition,(function(t,e){if(e)return e=Yt(t,n),Ht.test(e)?T(t).position()[n]+"px":e}))})),T.each({Height:"height",Width:"width"},(function(t,n){T.each({padding:"inner"+t,content:n,"":"outer"+t},(function(e,r){T.fn[r]=function(i,o){var a=arguments.length&&(e||"boolean"!=typeof i),u=e||(!0===i||!0===o?"margin":"border");return W(this,(function(n,e,i){var o;return m(n)?0===r.indexOf("outer")?n["inner"+t]:n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?T.css(n,e,u):T.style(n,e,i,u)}),n,a?i:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,n){T.fn[n]=function(t){return this.on(n,t)}})),T.fn.extend({bind:function(t,n,e){return this.on(t,null,n,e)},unbind:function(t,n){return this.off(t,null,n)},delegate:function(t,n,e,r){return this.on(n,t,e,r)},undelegate:function(t,n,e){return 1===arguments.length?this.off(t,"**"):this.off(n,t||"**",e)},hover:function(t,n){return this.mouseenter(t).mouseleave(n||t)}}),T.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(t,n){T.fn[n]=function(t,e){return arguments.length>0?this.on(n,null,t,e):this.trigger(n)}}));var Zn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(t,n){var e,r,i;if("string"==typeof n&&(e=t[n],n=t,t=e),v(t))return r=u.call(arguments,2),i=function(){return t.apply(n||this,r.concat(u.call(arguments)))},i.guid=t.guid=t.guid||T.guid++,i},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=v,T.isWindow=m,T.camelCase=G,T.type=w,T.now=Date.now,T.isNumeric=function(t){var n=T.type(t);return("number"===n||"string"===n)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(Zn,"")},void 0===(e=function(){return T}.apply(n,[]))||(t.exports=e);var Qn=r.jQuery,Kn=r.$;return T.noConflict=function(t){return r.$===T&&(r.$=Kn),t&&r.jQuery===T&&(r.jQuery=Qn),T},void 0===i&&(r.jQuery=r.$=T),T}))},80:function(t,n,e){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});const o=r(e(734)),a=i(e(291));let u,c;c=document.body.clientWidth,u=document.body.clientHeight;const s=450,f=a.default("#resetTree"),l=a.default("#expandTree");let h=0,d=0,p=o.tree().size([u,c]);const g=o.hierarchy(treeData,(function(t){return t.children}));g.x0=u/2,g.y0=0;const y=o.select("body").append("div").style("opacity",1e-6).attr("class","tooltip");function v(){y.style("opacity",1e-6),y.style("display","none")}const m=o.zoom().scaleExtent([.3,3]).on("zoom",(function(t){_.attr("transform",t.transform),v()})),b=o.select("svg#tree-container").attr("width",c).attr("height",u).call(m),_=b.append("g").attr("id","svg-group").attr("transform","translate(0,0)");function x(t){t.each((function(t){return t.bbox=this.getBBox(),t.bbox}))}function w(t){return t.split(/(?=[A-Z])/).map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")}function M(t){t.children&&(t._children=t.children,t._children.forEach(M),t.children=null)}function T(t){if(t._children&&(t.children=t._children,t._children=null),t.children){const n=t.children.length;for(let e=0;e<n;e++)t.children[e].name&&T(t.children[e])}}function A(t){t._children&&(t.children=t._children,t._children=null);const n=t.children?t.children:t._children;n&&n.forEach(A)}function S(t,n,e){if(!t)return;n(t);const r=e(t);if(r){const t=r.length;for(let i=0;i<t;i++)S(r[i],n,e)}}function E(t,n){const e=n||2,r=o.zoomTransform(b.node());let i=-t.y0,a=-t.x0;i=i*r.k+c/e,a=a*r.k+u/2,o.select("svg#tree-container").transition().duration(s).call(m.transform,o.zoomIdentity.translate(i,a).scale(r.k))}function k(t){let n,e=0;return t.source.id&&(n=o.select("#n-"+t.source.id).node()),n&&(e=n.getBBox().width),"M"+(t.source.y+e+20)+","+t.source.x+"H"+(t.target.y-15)+"V"+t.target.x+"h15"}function N(t,n){const e=n||[],r=t.parent;if(r){const n=r.children||r._children;return e.unshift(n.indexOf(t)),N(r,e)}return e}function C(t){const n=[1];!function t(e,r){r.children&&r.children.length>0&&(n.length<=e+1&&n.push(0),n[e+1]+=r.children.length,r.children.forEach((function(n){t(e+1,n)})))}(0,g);const e=40*o.max(n);p=p.size([e,c]);const r=p(g),i=r.descendants(),a=r.links();i.forEach((function(t){t.y=t.depth*(5*d)}));const u=_.selectAll("g.node").data(i,(function(t){return t.id||(t.id=++h)})),f=u.enter().append("g").attr("class","node").attr("id",(function(t){return"n-"+t.id})).attr("transform",(function(){return"translate("+t.y0+","+t.x0+")"}));f.append("text").attr("class","node-text").attr("dy",".35em").attr("x",10).attr("text-anchor","start").attr("text-decoration",(function(t){return t.data.description?"underline":"none"})).attr("cursor",(function(t){return t.data.description?"pointer":"default"})).text((function(t){return w(t.data.name)})).on("click",(function(t,n){!function(t,n){n.data.description||n.data.type?(y.transition().duration(300).style("opacity",1).style("display","flex"),y.html(function(t){const n='<div class="tip_prop">'+t.data.name+" </div>",e='<div class="tip_desc">'+t.data.description+"</div>",r='<div class="tip_type">'+t.data.type+"</div>",i='<div class="tip_enums">'+t.data.type.replaceAll("|"," | ")+"</div>",o='<div class="tip_control">'+t.data.control+"</div>";let a='<div id="b1"><svg id="close-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M3.71313 3L3.00699 3.7049L6.79636 7.497L3 11.2941L3.70714 12L7.5025 8.20391L11.2939 11.996L12 11.2901L8.20863 7.497L11.994 3.71089L11.2869 3.00499L7.5025 6.7901L3.71313 3Z"\n fill="#C5C5C5"\n />\n </g>\n </svg></div>';return a+=n,t.data.description&&(a+=e),t.data.type&&(a+='<div class="tip_type-container">',t.data.type.includes("|")?a+=i:a+=r),t.data.artifact&&(a+='<div class="tip_type">'+w(t.data.artifact)+"</div>"),t.data.control&&(a+=o),t.data.type&&(a+="</div>"),a}(n)),o.select("#b1").on("click",(function(){v()}))):n.data.type||v();const e=b.node().getBoundingClientRect().width-420,r=b.node().getBoundingClientRect().height-220;t.pageX>e&&t.pageY>r?y.style("top",t.pageY-20+"px").style("left",t.pageX-20+"px").style("transform","translate(-100%, -100%)"):t.pageX>e&&!(t.pageY>r)?y.style("top",t.pageY+20+"px").style("left",t.pageX-20+"px").style("transform","translate(-100%, 0)"):!(t.pageX>e)&&t.pageY>r?y.style("top",t.pageY-20+"px").style("left",t.pageX+20+"px").style("transform","translate(0, -100%)"):y.style("top",t.pageY+20+"px").style("left",t.pageX+20+"px").style("transform","translate(0, 0)")}(t,n)})).call(x);const l=f.filter((function(t){if(t.data.children.length>0)return t.data.children}));l.append("text").attr("class","node-child-text").attr("x",(function(t){return t.bbox.x+t.bbox.width+20})).attr("dy",".35em").text((function(t){return t.data.children.length})).call(x),l.insert("rect","text").attr("class","node-child").attr("x",(function(t){return t.bbox.x-7})).attr("y",(function(t){return t.bbox.y-1})).attr("width",(function(t){return t.bbox.width+14})).attr("height",(function(t){return t.bbox.height+2})).attr("ry","8"),l.append("text").attr("class","node-circle-text").attr("x",(function(t){return t.bbox.x+t.bbox.width+15})).attr("dy",".35em").text("+").on("click",D).call(x),l.insert("circle","text").attr("class","node-circle").attr("r",(function(t){return t.bbox.height/2})).attr("cx",(function(t){return t.bbox.x+t.bbox.width/2})).attr("cy",(function(t){return t.bbox.y+t.bbox.height/2})).on("click",D);const m=f.merge(u);m.transition().duration(s).attr("transform",(function(t){return"translate("+t.y+","+t.x+")"})),m.select("rect").style("fill",(function(t){return t._children?"var(--vscode-foreground)":"var(--vscode-editor-background)"})).style("stroke",(function(t){return t._children?"none":"var( --vscode-editorWidget-border)"})).style("stroke-width",(function(t){return t._children?"none":"1px solid"})),m.select("circle").style("fill",(function(t){return t._children?"var(--vscode-button-background)":"var(--vscode-button-secondaryBackground)"})),m.select(".node-child-text").style("fill",(function(t){return t._children?"var( --vscode-editor-background)":"var(--vscode-foreground)"})),m.select(".node-circle-text").text((function(t){return t._children?"+":"−"})),m.selectAll("text").style("fill-opacity",1);const M=u.exit().transition().duration(s).attr("transform",(function(){return"translate("+t.y+","+t.x+")"})).remove();M.select("circle").attr("r",1e-6).style("fill-opacity",1e-6),M.selectAll("rect").attr("x",1e-6).style("fill-opacity",1e-6),M.selectAll("text").style("fill-opacity",1e-6);const T=_.selectAll("path.link").data(a,(function(t){return t.target.id}));T.enter().insert("path","g").attr("class","link").attr("d",(function(){const n={x:t.x0,y:t.y0};return k({source:n,target:n})})).merge(T).transition().duration(s).attr("d",k),T.exit().transition().duration(s).attr("d",(function(){const n={x:t.x,y:t.y};return k({source:n,target:n})})).remove(),i.forEach((function(t){t.x0=t.x,t.y0=t.y}))}function D(t,n){t.defaultPrevented||(C(n=function(t){return t.children?M(t):t._children&&T(t),t}(n)),E(n,2),v())}S(treeData,(function(t){d=Math.max(t.name.length+25,d)}),(function(t){return t.children&&t.children.length>0?t.children:null})),g.children.forEach(M),C(g),E(g,2.5),function(){const t=[];S(g,(function(n){n&&t.push(n.data.name+"|"+N(n,[]).join("-"))}),(function(t){return t.children||t._children})),t.splice(t.indexOf(g.data.name+"|"),1),t.sort(),function(t){const n=a.default("ul#search-result"),e=a.default("#search-input");a.default.each(t,(function(t,e){const r=e.split("|");a.default("<li/>").attr("data-path",r[1]).text(w(r[0])).appendTo(n)})),e.on("keyup",(function(){let t=a.default(this).val();var e;t=t.toUpperCase(),t.length>0?(e=t,a.default("#search-result li").each((function(){a.default(this).text().toUpperCase().indexOf(e)>=0?a.default(this).show():a.default(this).hide()})),n.show()):n.hide()})),n.hide(),a.default("#search-result li").on("click",(function(t){const n=function(t){let n=g;for(let e=0;e<t.length;e++)n._children&&T(n),n=n.children[t[e]];return C(g),E(n,2),n}(a.default(t.target).attr("data-path").split("-"));!function(t){let n=4;const e=a.default("#n-"+t.id+" text");for(;n--;)e.fadeTo(350,0).fadeTo(350,1)}(n)}))}(t)}(),a.default("#n-1").append(floorPlanIcon),o.select("#floorPlan-icon").attr("y",-7).attr("x",-15),f.on("click",(function(){g.children.forEach(M),C(g),E(g,2.5)})),l.on("click",(function(){A(g),C(g),E(g,5)})),o.select(window).on("resize",(function(){c=a.default(window).width(),u=a.default(window).height(),b.attr("width",c),b.attr("height",u),E(g,5)}))},734:(t,n,e)=>{"use strict";function r(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function i(t){let n=t,e=t,i=t;function o(t,n,r=0,o=t.length){if(r<o){if(0!==e(n,n))return o;do{const e=r+o>>>1;i(t[e],n)<0?r=e+1:o=e}while(r<o)}return r}return 1===t.length&&(n=(n,e)=>t(n)-e,e=r,i=(n,e)=>r(t(n),e)),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,r=0,o=t.length){if(r<o){if(0!==e(n,n))return o;do{const e=r+o>>>1;i(t[e],n)<=0?r=e+1:o=e}while(r<o)}return r}}}function o(t){return null===t?NaN:+t}e.r(n),e.d(n,{Adder:()=>x,Delaunay:()=>Du,FormatSpecifier:()=>js,InternMap:()=>T,InternSet:()=>A,Node:()=>tg,Voronoi:()=>Au,ZoomTransform:()=>nA,active:()=>Ki,arc:()=>Xw,area:()=>nM,areaRadial:()=>fM,ascending:()=>r,autoType:()=>uc,axisBottom:()=>en,axisLeft:()=>rn,axisRight:()=>nn,axisTop:()=>tn,bin:()=>it,bisect:()=>f,bisectCenter:()=>s,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>i,blob:()=>Fc,brush:()=>Co,brushSelection:()=>Eo,brushX:()=>ko,brushY:()=>No,buffer:()=>Uc,chord:()=>Bo,chordDirected:()=>Yo,chordTranspose:()=>Uo,cluster:()=>Xp,color:()=>Ke,contourDensity:()=>eu,contours:()=>Za,count:()=>l,create:()=>_w,creator:()=>he,cross:()=>g,csv:()=>Vc,csvFormat:()=>Vu,csvFormatBody:()=>Gu,csvFormatRow:()=>Qu,csvFormatRows:()=>Zu,csvFormatValue:()=>Ku,csvParse:()=>$u,csvParseRows:()=>Xu,cubehelix:()=>Ha,cumsum:()=>y,curveBasis:()=>UM,curveBasisClosed:()=>WM,curveBasisOpen:()=>XM,curveBumpX:()=>GM,curveBumpY:()=>ZM,curveBundle:()=>KM,curveCardinal:()=>nT,curveCardinalClosed:()=>rT,curveCardinalOpen:()=>oT,curveCatmullRom:()=>cT,curveCatmullRomClosed:()=>fT,curveCatmullRomOpen:()=>hT,curveLinear:()=>Qw,curveLinearClosed:()=>pT,curveMonotoneX:()=>wT,curveMonotoneY:()=>MT,curveNatural:()=>ST,curveStep:()=>kT,curveStepAfter:()=>CT,curveStepBefore:()=>NT,descending:()=>v,deviation:()=>b,difference:()=>It,disjoint:()=>Ht,dispatch:()=>ln,drag:()=>zu,dragDisable:()=>Pe,dragEnable:()=>qe,dsv:()=>Xc,dsvFormat:()=>Yu,easeBack:()=>Lc,easeBackIn:()=>qc,easeBackInOut:()=>Lc,easeBackOut:()=>jc,easeBounce:()=>Cc,easeBounceIn:()=>Nc,easeBounceInOut:()=>Dc,easeBounceOut:()=>Cc,easeCircle:()=>Ec,easeCircleIn:()=>Ac,easeCircleInOut:()=>Ec,easeCircleOut:()=>Sc,easeCubic:()=>Vi,easeCubicIn:()=>$i,easeCubicInOut:()=>Vi,easeCubicOut:()=>Xi,easeElastic:()=>zc,easeElasticIn:()=>Rc,easeElasticInOut:()=>Ic,easeElasticOut:()=>zc,easeExp:()=>Tc,easeExpIn:()=>wc,easeExpInOut:()=>Tc,easeExpOut:()=>Mc,easeLinear:()=>sc,easePoly:()=>gc,easePolyIn:()=>dc,easePolyInOut:()=>gc,easePolyOut:()=>pc,easeQuad:()=>hc,easeQuadIn:()=>fc,easeQuadInOut:()=>hc,easeQuadOut:()=>lc,easeSin:()=>_c,easeSinIn:()=>mc,easeSinInOut:()=>_c,easeSinOut:()=>bc,every:()=>qt,extent:()=>_,fcumsum:()=>M,filter:()=>Lt,flatGroup:()=>j,flatRollup:()=>L,forceCenter:()=>rs,forceCollide:()=>ys,forceLink:()=>bs,forceManyBody:()=>As,forceRadial:()=>Ss,forceSimulation:()=>Ts,forceX:()=>Es,forceY:()=>ks,format:()=>Is,formatDefaultLocale:()=>Ys,formatLocale:()=>Us,formatPrefix:()=>Hs,formatSpecifier:()=>qs,fsum:()=>w,geoAlbers:()=>cp,geoAlbersUsa:()=>sp,geoArea:()=>Gf,geoAzimuthalEqualArea:()=>dp,geoAzimuthalEqualAreaRaw:()=>hp,geoAzimuthalEquidistant:()=>gp,geoAzimuthalEquidistantRaw:()=>pp,geoBounds:()=>Cl,geoCentroid:()=>Bl,geoCircle:()=>Jl,geoClipAntimeridian:()=>fh,geoClipCircle:()=>lh,geoClipExtent:()=>bh,geoClipRectangle:()=>mh,geoConicConformal:()=>xp,geoConicConformalRaw:()=>_p,geoConicEqualArea:()=>up,geoConicEqualAreaRaw:()=>ap,geoConicEquidistant:()=>Ap,geoConicEquidistantRaw:()=>Tp,geoContains:()=>Oh,geoDistance:()=>Eh,geoEqualEarth:()=>Pp,geoEqualEarthRaw:()=>Dp,geoEquirectangular:()=>Mp,geoEquirectangularRaw:()=>wp,geoGnomonic:()=>jp,geoGnomonicRaw:()=>qp,geoGraticule:()=>Ih,geoGraticule10:()=>Hh,geoIdentity:()=>Lp,geoInterpolate:()=>Fh,geoLength:()=>Th,geoMercator:()=>vp,geoMercatorRaw:()=>yp,geoNaturalEarth1:()=>Rp,geoNaturalEarth1Raw:()=>Op,geoOrthographic:()=>Ip,geoOrthographicRaw:()=>zp,geoPath:()=>Yd,geoProjection:()=>rp,geoProjectionMutator:()=>ip,geoRotation:()=>Zl,geoStereographic:()=>Fp,geoStereographicRaw:()=>Hp,geoStream:()=>Af,geoTransform:()=>Wd,geoTransverseMercator:()=>Up,geoTransverseMercatorRaw:()=>Bp,gray:()=>ba,greatest:()=>Tt,greatestIndex:()=>At,group:()=>D,groupSort:()=>$,groups:()=>P,hcl:()=>ka,hierarchy:()=>Gp,histogram:()=>it,hsl:()=>sr,html:()=>ns,image:()=>Zc,index:()=>z,indexes:()=>I,interpolate:()=>qr,interpolateArray:()=>Ar,interpolateBasis:()=>dr,interpolateBasisClosed:()=>pr,interpolateBlues:()=>Xx,interpolateBrBG:()=>ox,interpolateBuGn:()=>Mx,interpolateBuPu:()=>Ax,interpolateCividis:()=>iw,interpolateCool:()=>uw,interpolateCubehelix:()=>ay,interpolateCubehelixDefault:()=>ow,interpolateCubehelixLong:()=>uy,interpolateDate:()=>Er,interpolateDiscrete:()=>Xg,interpolateGnBu:()=>Ex,interpolateGreens:()=>Gx,interpolateGreys:()=>Qx,interpolateHcl:()=>ry,interpolateHclLong:()=>iy,interpolateHsl:()=>Jg,interpolateHslLong:()=>ty,interpolateHue:()=>Vg,interpolateInferno:()=>mw,interpolateLab:()=>ny,interpolateMagma:()=>vw,interpolateNumber:()=>kr,interpolateNumberArray:()=>Mr,interpolateObject:()=>Nr,interpolateOrRd:()=>Nx,interpolateOranges:()=>rw,interpolatePRGn:()=>ux,interpolatePiYG:()=>sx,interpolatePlasma:()=>bw,interpolatePuBu:()=>qx,interpolatePuBuGn:()=>Dx,interpolatePuOr:()=>lx,interpolatePuRd:()=>Lx,interpolatePurples:()=>Jx,interpolateRainbow:()=>sw,interpolateRdBu:()=>dx,interpolateRdGy:()=>gx,interpolateRdPu:()=>Rx,interpolateRdYlBu:()=>vx,interpolateRdYlGn:()=>bx,interpolateReds:()=>nw,interpolateRgb:()=>br,interpolateRgbBasis:()=>xr,interpolateRgbBasisClosed:()=>wr,interpolateRound:()=>Gg,interpolateSinebow:()=>dw,interpolateSpectral:()=>xx,interpolateString:()=>Pr,interpolateTransformCss:()=>di,interpolateTransformSvg:()=>pi,interpolateTurbo:()=>pw,interpolateViridis:()=>yw,interpolateWarm:()=>aw,interpolateYlGn:()=>Fx,interpolateYlGnBu:()=>Ix,interpolateYlOrBr:()=>Ux,interpolateYlOrRd:()=>Wx,interpolateZoom:()=>Qg,interrupt:()=>ui,intersection:()=>Bt,interval:()=>KT,isoFormat:()=>GT,isoParse:()=>QT,json:()=>Kc,lab:()=>_a,lch:()=>Ea,least:()=>wt,leastIndex:()=>Mt,line:()=>tM,lineRadial:()=>sM,linkHorizontal:()=>mM,linkRadial:()=>_M,linkVertical:()=>bM,local:()=>ww,map:()=>Ot,matcher:()=>vn,max:()=>ot,maxIndex:()=>dt,mean:()=>pt,median:()=>gt,merge:()=>yt,min:()=>at,minIndex:()=>vt,mode:()=>mt,namespace:()=>qn,namespaces:()=>Pn,nice:()=>et,now:()=>$r,pack:()=>_g,packEnclose:()=>ng,packSiblings:()=>pg,pairs:()=>bt,partition:()=>Sg,path:()=>Ko,permute:()=>B,pie:()=>iM,piecewise:()=>cy,pointRadial:()=>lM,pointer:()=>Lr,pointers:()=>Tw,polygonArea:()=>fy,polygonCentroid:()=>ly,polygonContains:()=>gy,polygonHull:()=>py,polygonLength:()=>yy,precisionFixed:()=>Ws,precisionPrefix:()=>$s,precisionRound:()=>Xs,quadtree:()=>cs,quantile:()=>st,quantileSorted:()=>ft,quantize:()=>sy,quickselect:()=>ut,radialArea:()=>fM,radialLine:()=>sM,randomBates:()=>My,randomBernoulli:()=>Sy,randomBeta:()=>Ny,randomBinomial:()=>Cy,randomCauchy:()=>Py,randomExponential:()=>Ty,randomGamma:()=>ky,randomGeometric:()=>Ey,randomInt:()=>by,randomIrwinHall:()=>wy,randomLcg:()=>Oy,randomLogNormal:()=>xy,randomLogistic:()=>qy,randomNormal:()=>_y,randomPareto:()=>Ay,randomPoisson:()=>jy,randomUniform:()=>my,randomWeibull:()=>Dy,range:()=>xt,reduce:()=>Rt,reverse:()=>zt,rgb:()=>er,ribbon:()=>sa,ribbonArrow:()=>fa,rollup:()=>O,rollups:()=>R,scaleBand:()=>Fy,scaleDiverging:()=>F_,scaleDivergingLog:()=>B_,scaleDivergingPow:()=>Y_,scaleDivergingSqrt:()=>W_,scaleDivergingSymlog:()=>U_,scaleIdentity:()=>ev,scaleImplicit:()=>Iy,scaleLinear:()=>nv,scaleLog:()=>lv,scaleOrdinal:()=>Hy,scalePoint:()=>Uy,scalePow:()=>_v,scaleQuantile:()=>Av,scaleQuantize:()=>Sv,scaleRadial:()=>Tv,scaleSequential:()=>j_,scaleSequentialLog:()=>L_,scaleSequentialPow:()=>R_,scaleSequentialQuantile:()=>I_,scaleSequentialSqrt:()=>z_,scaleSequentialSymlog:()=>O_,scaleSqrt:()=>xv,scaleSymlog:()=>gv,scaleThreshold:()=>Ev,scaleTime:()=>C_,scaleUtc:()=>D_,scan:()=>St,schemeAccent:()=>V_,schemeBlues:()=>$x,schemeBrBG:()=>ix,schemeBuGn:()=>wx,schemeBuPu:()=>Tx,schemeCategory10:()=>X_,schemeDark2:()=>G_,schemeGnBu:()=>Sx,schemeGreens:()=>Vx,schemeGreys:()=>Zx,schemeOrRd:()=>kx,schemeOranges:()=>ew,schemePRGn:()=>ax,schemePaired:()=>Z_,schemePastel1:()=>Q_,schemePastel2:()=>K_,schemePiYG:()=>cx,schemePuBu:()=>Px,schemePuBuGn:()=>Cx,schemePuOr:()=>fx,schemePuRd:()=>jx,schemePurples:()=>Kx,schemeRdBu:()=>hx,schemeRdGy:()=>px,schemeRdPu:()=>Ox,schemeRdYlBu:()=>yx,schemeRdYlGn:()=>mx,schemeReds:()=>tw,schemeSet1:()=>J_,schemeSet2:()=>tx,schemeSet3:()=>nx,schemeSpectral:()=>_x,schemeTableau10:()=>ex,schemeYlGn:()=>Hx,schemeYlGnBu:()=>zx,schemeYlOrBr:()=>Bx,schemeYlOrRd:()=>Yx,select:()=>Ee,selectAll:()=>Aw,selection:()=>Se,selector:()=>dn,selectorAll:()=>yn,shuffle:()=>Et,shuffler:()=>kt,some:()=>jt,sort:()=>U,stack:()=>LT,stackOffsetDiverging:()=>RT,stackOffsetExpand:()=>OT,stackOffsetNone:()=>DT,stackOffsetSilhouette:()=>zT,stackOffsetWiggle:()=>IT,stackOrderAppearance:()=>HT,stackOrderAscending:()=>BT,stackOrderDescending:()=>YT,stackOrderInsideOut:()=>WT,stackOrderNone:()=>PT,stackOrderReverse:()=>$T,stratify:()=>Dg,style:()=>Yn,subset:()=>Yt,sum:()=>Nt,superset:()=>Ut,svg:()=>es,symbol:()=>IM,symbolCircle:()=>xM,symbolCross:()=>wM,symbolDiamond:()=>AM,symbolSquare:()=>CM,symbolStar:()=>NM,symbolTriangle:()=>PM,symbolWye:()=>RM,symbols:()=>zM,text:()=>Wc,thresholdFreedmanDiaconis:()=>lt,thresholdScott:()=>ht,thresholdSturges:()=>rt,tickFormat:()=>Jy,tickIncrement:()=>tt,tickStep:()=>nt,ticks:()=>J,timeDay:()=>Zv,timeDays:()=>Qv,timeFormat:()=>ob,timeFormatDefaultLocale:()=>S_,timeFormatLocale:()=>rb,timeFriday:()=>im,timeFridays:()=>lm,timeHour:()=>Xv,timeHours:()=>Vv,timeInterval:()=>Ov,timeMillisecond:()=>zv,timeMilliseconds:()=>Iv,timeMinute:()=>Yv,timeMinutes:()=>Wv,timeMonday:()=>tm,timeMondays:()=>um,timeMonth:()=>pm,timeMonths:()=>gm,timeParse:()=>ab,timeSaturday:()=>om,timeSaturdays:()=>hm,timeSecond:()=>Fv,timeSeconds:()=>Bv,timeSunday:()=>Jv,timeSundays:()=>am,timeThursday:()=>rm,timeThursdays:()=>fm,timeTickInterval:()=>Jm,timeTicks:()=>Km,timeTuesday:()=>nm,timeTuesdays:()=>cm,timeWednesday:()=>em,timeWednesdays:()=>sm,timeWeek:()=>Jv,timeWeeks:()=>am,timeYear:()=>vm,timeYears:()=>mm,timeout:()=>ti,timer:()=>Gr,timerFlush:()=>Zr,transition:()=>Ui,transpose:()=>Ct,tree:()=>zg,treemap:()=>Ug,treemapBinary:()=>Yg,treemapDice:()=>Ag,treemapResquarify:()=>$g,treemapSlice:()=>Ig,treemapSliceDice:()=>Wg,treemapSquarify:()=>Bg,tsv:()=>Gc,tsvFormat:()=>ec,tsvFormatBody:()=>rc,tsvFormatRow:()=>oc,tsvFormatRows:()=>ic,tsvFormatValue:()=>ac,tsvParse:()=>tc,tsvParseRows:()=>nc,union:()=>Wt,utcDay:()=>Sm,utcDays:()=>Em,utcFormat:()=>ub,utcFriday:()=>jm,utcFridays:()=>Fm,utcHour:()=>Mm,utcHours:()=>Tm,utcMillisecond:()=>zv,utcMilliseconds:()=>Iv,utcMinute:()=>_m,utcMinutes:()=>xm,utcMonday:()=>Cm,utcMondays:()=>Rm,utcMonth:()=>Ym,utcMonths:()=>Wm,utcParse:()=>cb,utcSaturday:()=>Lm,utcSaturdays:()=>Bm,utcSecond:()=>Fv,utcSeconds:()=>Bv,utcSunday:()=>Nm,utcSundays:()=>Om,utcThursday:()=>qm,utcThursdays:()=>Hm,utcTickInterval:()=>Qm,utcTicks:()=>Zm,utcTuesday:()=>Dm,utcTuesdays:()=>zm,utcWednesday:()=>Pm,utcWednesdays:()=>Im,utcWeek:()=>Nm,utcWeeks:()=>Om,utcYear:()=>Xm,utcYears:()=>Vm,variance:()=>m,window:()=>Hn,xml:()=>ts,zip:()=>Pt,zoom:()=>hA,zoomIdentity:()=>eA,zoomTransform:()=>rA});const a=i(r),u=a.right,c=a.left,s=i(o).center,f=u;function l(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function h(t){return 0|t.length}function d(t){return!(t>0)}function p(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function g(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),e=(t=t.map(p)).map(h),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||e.some(d))return o;for(;;){o.push(i.map(((n,e)=>t[e][n])));let a=r;for(;++i[a]===e[a];){if(0===a)return n?o.map(n):o;i[a--]=0}}}function y(t,n){var e=0,r=0;return Float64Array.from(t,void 0===n?t=>e+=+t||0:i=>e+=+n(i,r++,t)||0)}function v(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function m(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i))}if(r>1)return o/(r-1)}function b(t,n){const e=m(t,n);return e?Math.sqrt(e):e}function _(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}class x{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(n[e++]=a),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}function w(t,n){const e=new x;if(void 0===n)for(let n of t)(n=+n)&&e.add(n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&e.add(i)}return+e}function M(t,n){const e=new x;let r=-1;return Float64Array.from(t,void 0===n?t=>e.add(+t||0):i=>e.add(+n(i,++r,t)||0))}class T extends Map{constructor(t,n=N){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(S(this,t))}has(t){return super.has(S(this,t))}set(t,n){return super.set(E(this,t),n)}delete(t){return super.delete(k(this,t))}}class A extends Set{constructor(t,n=N){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(S(this,t))}add(t){return super.add(E(this,t))}delete(t){return super.delete(k(this,t))}}function S({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function E({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function k({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(e),t.delete(r)),e}function N(t){return null!==t&&"object"==typeof t?t.valueOf():t}function C(t){return t}function D(t,...n){return F(t,C,C,n)}function P(t,...n){return F(t,Array.from,C,n)}function q(t,n){for(let e=1,r=n.length;e<r;++e)t=t.flatMap((t=>t.pop().map((([n,e])=>[...t,n,e]))));return t}function j(t,...n){return q(P(t,...n),n)}function L(t,n,...e){return q(R(t,n,...e),e)}function O(t,n,...e){return F(t,C,n,e)}function R(t,n,...e){return F(t,Array.from,n,e)}function z(t,...n){return F(t,C,H,n)}function I(t,...n){return F(t,Array.from,H,n)}function H(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function F(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new T,u=r[o++];let c=-1;for(const t of i){const n=u(t,++c,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}function B(t,n){return Array.from(n,(n=>t[n]))}function U(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e]=n;if(e&&1===e.length||n.length>1){const r=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),r.sort(((t,e)=>{for(const r of n){const n=W(r[t],r[e]);if(n)return n}}))):(e=t.map(e),r.sort(((t,n)=>W(e[t],e[n])))),B(t,r)}return t.sort(void 0===e?W:Y(e))}function Y(t){if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function W(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function $(t,n,e){return(1===n.length?U(O(t,n,e),(([t,n],[e,i])=>r(n,i)||r(t,e))):U(D(t,e),(([t,e],[i,o])=>n(e,o)||r(t,i)))).map((([t])=>t))}var X=Array.prototype,V=X.slice;function G(t){return()=>t}X.map;var Z=Math.sqrt(50),Q=Math.sqrt(10),K=Math.sqrt(2);function J(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=tt(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)/a}return r&&o.reverse(),o}function tt(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Z?10:o>=Q?5:o>=K?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Z?10:o>=Q?5:o>=K?2:1)}function nt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Z?i*=10:o>=Q?i*=5:o>=K&&(i*=2),n<t?-i:i}function et(t,n,e){let r;for(;;){const i=tt(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}function rt(t){return Math.ceil(Math.log(l(t))/Math.LN2)+1}function it(){var t=C,n=_,e=rt;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,u=new Array(a);for(i=0;i<a;++i)u[i]=t(r[i],i,r);var c=n(u),s=c[0],l=c[1],h=e(u,s,l);if(!Array.isArray(h)){const t=l,e=+h;if(n===_&&([s,l]=et(s,l,e)),(h=J(s,l,e))[h.length-1]>=l)if(t>=l&&n===_){const t=tt(s,l,e);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}for(var d=h.length;h[0]<=s;)h.shift(),--d;for(;h[d-1]>l;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:s,p.x1=i<d?h[i]:l;for(i=0;i<a;++i)null!=(o=u[i])&&s<=o&&o<=l&&g[f(h,o,0,d)].push(r[i]);return g}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:G(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:G([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?G(V.call(t)):G(t),r):e},r}function ot(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function at(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function ut(t,n,e=0,r=t.length-1,i){for(i=void 0===i?W:Y(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,u=Math.log(o),c=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*c*(o-c)/o)*(a-o/2<0?-1:1);ut(t,n,Math.max(e,Math.floor(n-a*c/o+s)),Math.min(r,Math.floor(n+(o-a)*c/o+s)),i)}const o=t[n];let a=e,u=r;for(ct(t,e,n),i(t[r],o)>0&&ct(t,e,r);a<u;){for(ct(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[e],o)?ct(t,e,u):(++u,ct(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function ct(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function st(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return at(t);if(n>=1)return ot(t);var r,i=(r-1)*n,o=Math.floor(i),a=ot(ut(t,o).subarray(0,o+1));return a+(at(t.subarray(o+1))-a)*(i-o)}}function ft(t,n,e=o){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,a=Math.floor(i),u=+e(t[a],a,t);return u+(+e(t[a+1],a+1,t)-u)*(i-a)}}function lt(t,n,e){return Math.ceil((e-n)/(2*(st(t,.75)-st(t,.25))*Math.pow(l(t),-1/3)))}function ht(t,n,e){return Math.ceil((e-n)/(3.5*b(t)*Math.pow(l(t),-1/3)))}function dt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e<n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e<o||void 0===e&&o>=o)&&(e=o,r=i);return r}function pt(t,n){let e=0,r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++e,r+=n);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(o=+o)>=o&&(++e,r+=o)}if(e)return r/e}function gt(t,n){return st(t,.5,n)}function yt(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function vt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e>n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);return r}function mt(t,n){const e=new T;if(void 0===n)for(let n of t)null!=n&&n>=n&&e.set(n,(e.get(n)||0)+1);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&i>=i&&e.set(i,(e.get(i)||0)+1)}let r,i=0;for(const[t,n]of e)n>i&&(i=n,r=t);return r}function bt(t,n=_t){const e=[];let r,i=!1;for(const o of t)i&&e.push(n(r,o)),r=o,i=!0;return e}function _t(t,n){return[t,n]}function xt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function wt(t,n=r){let e,i=!1;if(1===n.length){let o;for(const a of t){const t=n(a);(i?r(t,o)<0:0===r(t,t))&&(e=a,o=t,i=!0)}}else for(const r of t)(i?n(r,e)<0:0===n(r,r))&&(e=r,i=!0);return e}function Mt(t,n=r){if(1===n.length)return vt(t,n);let e,i=-1,o=-1;for(const r of t)++o,(i<0?0===n(r,r):n(r,e)<0)&&(e=r,i=o);return i}function Tt(t,n=r){let e,i=!1;if(1===n.length){let o;for(const a of t){const t=n(a);(i?r(t,o)>0:0===r(t,t))&&(e=a,o=t,i=!0)}}else for(const r of t)(i?n(r,e)>0:0===n(r,r))&&(e=r,i=!0);return e}function At(t,n=r){if(1===n.length)return dt(t,n);let e,i=-1,o=-1;for(const r of t)++o,(i<0?0===n(r,r):n(r,e)>0)&&(e=r,i=o);return i}function St(t,n){const e=Mt(t,n);return e<0?void 0:e}const Et=kt(Math.random);function kt(t){return function(n,e=0,r=n.length){let i=r-(e=+e);for(;i;){const r=t()*i--|0,o=n[i+e];n[i+e]=n[r+e],n[r+e]=o}return n}}function Nt(t,n){let e=0;if(void 0===n)for(let n of t)(n=+n)&&(e+=n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e}function Ct(t){if(!(i=t.length))return[];for(var n=-1,e=at(t,Dt),r=new Array(e);++n<e;)for(var i,o=-1,a=r[n]=new Array(i);++o<i;)a[o]=t[o][n];return r}function Dt(t){return t.length}function Pt(){return Ct(arguments)}function qt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(!n(r,++e,t))return!1;return!0}function jt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(n(r,++e,t))return!0;return!1}function Lt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");const e=[];let r=-1;for(const i of t)n(i,++r,t)&&e.push(i);return e}function Ot(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,((e,r)=>n(e,r,t)))}function Rt(t,n,e){if("function"!=typeof n)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:e}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)e=n(e,o,++a,t);return e}function zt(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function It(t,...n){t=new Set(t);for(const e of n)for(const n of e)t.delete(n);return t}function Ht(t,n){const e=n[Symbol.iterator](),r=new Set;for(const n of t){if(r.has(n))return!1;let t,i;for(;({value:t,done:i}=e.next())&&!i;){if(Object.is(n,t))return!1;r.add(t)}}return!0}function Ft(t){return t instanceof Set?t:new Set(t)}function Bt(t,...n){t=new Set(t),n=n.map(Ft);t:for(const e of t)for(const r of n)if(!r.has(e)){t.delete(e);continue t}return t}function Ut(t,n){const e=t[Symbol.iterator](),r=new Set;for(const t of n){if(r.has(t))continue;let n,i;for(;({value:n,done:i}=e.next());){if(i)return!1;if(r.add(n),Object.is(t,n))break}}return!0}function Yt(t,n){return Ut(n,t)}function Wt(...t){const n=new Set;for(const e of t)for(const t of e)n.add(t);return n}function $t(t){return t}var Xt=1e-6;function Vt(t){return"translate("+t+",0)"}function Gt(t){return"translate(0,"+t+")"}function Zt(t){return n=>+t(n)}function Qt(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function Kt(){return!this.__axis}function Jt(t,n){var e=[],r=null,i=null,o=6,a=6,u=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,s=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",l=1===t||3===t?Vt:Gt;function h(h){var d=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,p=null==i?n.tickFormat?n.tickFormat.apply(n,e):$t:i,g=Math.max(o,0)+u,y=n.range(),v=+y[0]+c,m=+y[y.length-1]+c,b=(n.bandwidth?Qt:Zt)(n.copy(),c),_=h.selection?h.selection():h,x=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(d,n).order(),M=w.exit(),T=w.enter().append("g").attr("class","tick"),A=w.select("line"),S=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(T),A=A.merge(T.append("line").attr("stroke","currentColor").attr(f+"2",s*o)),S=S.merge(T.append("text").attr("fill","currentColor").attr(f,s*g).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==_&&(x=x.transition(h),w=w.transition(h),A=A.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",Xt).attr("transform",(function(t){return isFinite(t=b(t))?l(t+c):this.getAttribute("transform")})),T.attr("opacity",Xt).attr("transform",(function(t){var n=this.parentNode.__axis;return l((n&&isFinite(n=n(t))?n:b(t))+c)}))),M.remove(),x.attr("d",4===t||2===t?a?"M"+s*a+","+v+"H"+c+"V"+m+"H"+s*a:"M"+c+","+v+"V"+m:a?"M"+v+","+s*a+"V"+c+"H"+m+"V"+s*a:"M"+v+","+c+"H"+m),w.attr("opacity",1).attr("transform",(function(t){return l(b(t)+c)})),A.attr(f+"2",s*o),S.attr(f,s*g).text(p),_.filter(Kt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),_.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return e=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(e=null==t?[]:Array.from(t),h):e.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(c=+t,h):c},h}function tn(t){return Jt(1,t)}function nn(t){return Jt(2,t)}function en(t){return Jt(3,t)}function rn(t){return Jt(4,t)}var on={value:()=>{}};function an(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new un(r)}function un(t){this._=t}function cn(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function sn(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function fn(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=on,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}un.prototype=an.prototype={constructor:un,on:function(t,n){var e,r=this._,i=cn(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<a;)if(e=(t=i[o]).type)r[e]=fn(r[e],t.name,n);else if(null==n)for(e in r)r[e]=fn(r[e],t.name,null);return this}for(;++o<a;)if((e=(t=i[o]).type)&&(e=sn(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new un(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};const ln=an;function hn(){}function dn(t){return null==t?hn:function(){return this.querySelector(t)}}function pn(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function gn(){return[]}function yn(t){return null==t?gn:function(){return this.querySelectorAll(t)}}function vn(t){return function(){return this.matches(t)}}function mn(t){return function(n){return n.matches(t)}}var bn=Array.prototype.find;function _n(){return this.firstElementChild}var xn=Array.prototype.filter;function wn(){return Array.from(this.children)}function Mn(t){return new Array(t.length)}function Tn(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function An(t){return function(){return t}}function Sn(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;u<s;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new Tn(t,o[u]);for(;u<c;++u)(a=n[u])&&(i[u]=a)}function En(t,n,e,r,i,o,a){var u,c,s,f=new Map,l=n.length,h=o.length,d=new Array(l);for(u=0;u<l;++u)(c=n[u])&&(d[u]=s=a.call(c,c.__data__,u,n)+"",f.has(s)?i[u]=c:f.set(s,c));for(u=0;u<h;++u)s=a.call(t,o[u],u,o)+"",(c=f.get(s))?(r[u]=c,c.__data__=o[u],f.delete(s)):e[u]=new Tn(t,o[u]);for(u=0;u<l;++u)(c=n[u])&&f.get(d[u])===c&&(i[u]=c)}function kn(t){return t.__data__}function Nn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Cn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Tn.prototype={constructor:Tn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Dn="http://www.w3.org/1999/xhtml";const Pn={svg:"http://www.w3.org/2000/svg",xhtml:Dn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qn(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Pn.hasOwnProperty(n)?{space:Pn[n],local:t}:t}function jn(t){return function(){this.removeAttribute(t)}}function Ln(t){return function(){this.removeAttributeNS(t.space,t.local)}}function On(t,n){return function(){this.setAttribute(t,n)}}function Rn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function zn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function In(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Hn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Fn(t){return function(){this.style.removeProperty(t)}}function Bn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Un(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Yn(t,n){return t.style.getPropertyValue(n)||Hn(t).getComputedStyle(t,null).getPropertyValue(n)}function Wn(t){return function(){delete this[t]}}function $n(t,n){return function(){this[t]=n}}function Xn(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Vn(t){return t.trim().split(/^|\s+/)}function Gn(t){return t.classList||new Zn(t)}function Zn(t){this._node=t,this._names=Vn(t.getAttribute("class")||"")}function Qn(t,n){for(var e=Gn(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Kn(t,n){for(var e=Gn(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Jn(t){return function(){Qn(this,t)}}function te(t){return function(){Kn(this,t)}}function ne(t,n){return function(){(n.apply(this,arguments)?Qn:Kn)(this,t)}}function ee(){this.textContent=""}function re(t){return function(){this.textContent=t}}function ie(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function oe(){this.innerHTML=""}function ae(t){return function(){this.innerHTML=t}}function ue(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ce(){this.nextSibling&&this.parentNode.appendChild(this)}function se(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fe(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Dn&&n.documentElement.namespaceURI===Dn?n.createElement(t):n.createElementNS(e,t)}}function le(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function he(t){var n=qn(t);return(n.local?le:fe)(n)}function de(){return null}function pe(){var t=this.parentNode;t&&t.removeChild(this)}function ge(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ye(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ve(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function me(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function be(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function _e(t,n,e){var r=Hn(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function xe(t,n){return function(){return _e(this,t,n)}}function we(t,n){return function(){return _e(this,t,n.apply(this,arguments))}}Zn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Me=[null];function Te(t,n){this._groups=t,this._parents=n}function Ae(){return new Te([[document.documentElement]],Me)}Te.prototype=Ae.prototype={constructor:Te,select:function(t){"function"!=typeof t&&(t=dn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],c=u.length,s=r[i]=new Array(c),f=0;f<c;++f)(o=u[f])&&(a=t.call(o,o.__data__,f,u))&&("__data__"in o&&(a.__data__=o.__data__),s[f]=a);return new Te(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return pn(t.apply(this,arguments))}}(t):yn(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(t.call(a,a.__data__,s,u)),i.push(a));return new Te(r,i)},selectChild:function(t){return this.select(null==t?_n:function(t){return function(){return bn.call(this.children,t)}}("function"==typeof t?t:mn(t)))},selectChildren:function(t){return this.selectAll(null==t?wn:function(t){return function(){return xn.call(this.children,t)}}("function"==typeof t?t:mn(t)))},filter:function(t){"function"!=typeof t&&(t=vn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new Te(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,kn);var e=n?En:Sn,r=this._parents,i=this._groups;"function"!=typeof t&&(t=An(t));for(var o=i.length,a=new Array(o),u=new Array(o),c=new Array(o),s=0;s<o;++s){var f=r[s],l=i[s],h=l.length,d=Nn(t.call(f,f&&f.__data__,s,r)),p=d.length,g=u[s]=new Array(p),y=a[s]=new Array(p),v=c[s]=new Array(h);e(f,l,g,y,v,d,n);for(var m,b,_=0,x=0;_<p;++_)if(m=g[_]){for(_>=x&&(x=_+1);!(b=y[x])&&++x<p;);m._next=b||null}}return(a=new Te(a,r))._enter=u,a._exit=c,a},enter:function(){return new Te(this._enter||this._groups.map(Mn),this._parents)},exit:function(){return new Te(this._exit||this._groups.map(Mn),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=n&&(i=n(i))&&(i=i.selection()),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,a=Math.min(i,o),u=new Array(i),c=0;c<a;++c)for(var s,f=e[c],l=r[c],h=f.length,d=u[c]=new Array(h),p=0;p<h;++p)(s=f[p]||l[p])&&(d[p]=s);for(;c<i;++c)u[c]=e[c];return new Te(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Cn);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],c=u.length,s=i[o]=new Array(c),f=0;f<c;++f)(a=u[f])&&(s[f]=a);s.sort(n)}return new Te(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,n){var e=qn(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?Ln:jn:"function"==typeof n?e.local?In:zn:e.local?Rn:On)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?Fn:"function"==typeof n?Un:Bn)(t,n,null==e?"":e)):Yn(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Wn:"function"==typeof n?Xn:$n)(t,n)):this.node()[t]},classed:function(t,n){var e=Vn(t+"");if(arguments.length<2){for(var r=Gn(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ne:n?Jn:te)(e,n))},text:function(t){return arguments.length?this.each(null==t?ee:("function"==typeof t?ie:re)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?oe:("function"==typeof t?ue:ae)(t)):this.node().innerHTML},raise:function(){return this.each(ce)},lower:function(){return this.each(se)},append:function(t){var n="function"==typeof t?t:he(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:he(t),r=null==n?de:"function"==typeof n?n:dn(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(pe)},clone:function(t){return this.select(t?ye:ge)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=ve(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?be:me,r=0;r<a;++r)this.each(u(o[r],n,e));return this}var u=this.node().__on;if(u)for(var c,s=0,f=u.length;s<f;++s)for(r=0,c=u[s];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?we:xe)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const Se=Ae;function Ee(t){return"string"==typeof t?new Te([[document.querySelector(t)]],[document.documentElement]):new Te([[t]],Me)}const ke={passive:!1},Ne={capture:!0,passive:!1};function Ce(t){t.stopImmediatePropagation()}function De(t){t.preventDefault(),t.stopImmediatePropagation()}function Pe(t){var n=t.document.documentElement,e=Ee(t).on("dragstart.drag",De,Ne);"onselectstart"in n?e.on("selectstart.drag",De,Ne):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function qe(t,n){var e=t.document.documentElement,r=Ee(t).on("dragstart.drag",null);n&&(r.on("click.drag",De,Ne),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function je(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Le(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Oe(){}var Re=.7,ze=1/Re,Ie="\\s*([+-]?\\d+)\\s*",He="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Be=/^#([0-9a-f]{3,8})$/,Ue=new RegExp("^rgb\\("+[Ie,Ie,Ie]+"\\)$"),Ye=new RegExp("^rgb\\("+[Fe,Fe,Fe]+"\\)$"),We=new RegExp("^rgba\\("+[Ie,Ie,Ie,He]+"\\)$"),$e=new RegExp("^rgba\\("+[Fe,Fe,Fe,He]+"\\)$"),Xe=new RegExp("^hsl\\("+[He,Fe,Fe]+"\\)$"),Ve=new RegExp("^hsla\\("+[He,Fe,Fe,He]+"\\)$"),Ge={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 Ze(){return this.rgb().formatHex()}function Qe(){return this.rgb().formatRgb()}function Ke(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Be.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Je(n):3===e?new rr(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?tr(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?tr(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Ue.exec(t))?new rr(n[1],n[2],n[3],1):(n=Ye.exec(t))?new rr(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=We.exec(t))?tr(n[1],n[2],n[3],n[4]):(n=$e.exec(t))?tr(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Xe.exec(t))?ur(n[1],n[2]/100,n[3]/100,1):(n=Ve.exec(t))?ur(n[1],n[2]/100,n[3]/100,n[4]):Ge.hasOwnProperty(t)?Je(Ge[t]):"transparent"===t?new rr(NaN,NaN,NaN,0):null}function Je(t){return new rr(t>>16&255,t>>8&255,255&t,1)}function tr(t,n,e,r){return r<=0&&(t=n=e=NaN),new rr(t,n,e,r)}function nr(t){return t instanceof Oe||(t=Ke(t)),t?new rr((t=t.rgb()).r,t.g,t.b,t.opacity):new rr}function er(t,n,e,r){return 1===arguments.length?nr(t):new rr(t,n,e,null==r?1:r)}function rr(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ir(){return"#"+ar(this.r)+ar(this.g)+ar(this.b)}function or(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ar(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ur(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new fr(t,n,e,r)}function cr(t){if(t instanceof fr)return new fr(t.h,t.s,t.l,t.opacity);if(t instanceof Oe||(t=Ke(t)),!t)return new fr;if(t instanceof fr)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e<r):e===o?(r-n)/u+2:(n-e)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new fr(a,u,c,t.opacity)}function sr(t,n,e,r){return 1===arguments.length?cr(t):new fr(t,n,e,null==r?1:r)}function fr(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function lr(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function hr(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function dr(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<n-1?t[r+2]:2*o-i;return hr((e-r/n)*n,a,i,o,u)}}function pr(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return hr((e-r/n)*n,i,o,a,u)}}je(Oe,Ke,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ze,formatHex:Ze,formatHsl:function(){return cr(this).formatHsl()},formatRgb:Qe,toString:Qe}),je(rr,er,Le(Oe,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new rr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Re:Math.pow(Re,t),new rr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ir,formatHex:ir,formatRgb:or,toString:or})),je(fr,sr,Le(Oe,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new fr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Re:Math.pow(Re,t),new fr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new rr(lr(t>=240?t-240:t+120,i,r),lr(t,i,r),lr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const gr=t=>()=>t;function yr(t,n){return function(e){return t+e*n}}function vr(t,n){var e=n-t;return e?yr(t,e>180||e<-180?e-360*Math.round(e/360):e):gr(isNaN(t)?n:t)}function mr(t,n){var e=n-t;return e?yr(t,e):gr(isNaN(t)?n:t)}const br=function t(n){var e=function(t){return 1==(t=+t)?mr:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):gr(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=er(t)).r,(n=er(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=mr(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function _r(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e<i;++e)r=er(n[e]),o[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}var xr=_r(dr),wr=_r(pr);function Mr(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}function Tr(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ar(t,n){return(Tr(n)?Mr:Sr)(t,n)}function Sr(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(e=0;e<i;++e)o[e]=qr(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}}function Er(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function kr(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Nr(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=qr(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}var Cr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Dr=new RegExp(Cr.source,"g");function Pr(t,n){var e,r,i,o=Cr.lastIndex=Dr.lastIndex=0,a=-1,u=[],c=[];for(t+="",n+="";(e=Cr.exec(t))&&(r=Dr.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:kr(e,r)})),o=Dr.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)u[(e=c[r]).i]=e.x(t);return u.join("")})}function qr(t,n){var e,r=typeof n;return null==n||"boolean"===r?gr(n):("number"===r?kr:"string"===r?(e=Ke(n))?(n=e,br):Pr:n instanceof Ke?br:n instanceof Date?Er:Tr(n)?Mr:Array.isArray(n)?Sr:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Nr:kr)(t,n)}function jr(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Lr(t,n){if(t=jr(t),void 0===n&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(n.getScreenCTM().inverse())).x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}var Or,Rr,zr=0,Ir=0,Hr=0,Fr=0,Br=0,Ur=0,Yr="object"==typeof performance&&performance.now?performance:Date,Wr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $r(){return Br||(Wr(Xr),Br=Yr.now()+Ur)}function Xr(){Br=0}function Vr(){this._call=this._time=this._next=null}function Gr(t,n,e){var r=new Vr;return r.restart(t,n,e),r}function Zr(){$r(),++zr;for(var t,n=Or;n;)(t=Br-n._time)>=0&&n._call.call(void 0,t),n=n._next;--zr}function Qr(){Br=(Fr=Yr.now())+Ur,zr=Ir=0;try{Zr()}finally{zr=0,function(){for(var t,n,e=Or,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Or=n);Rr=t,Jr(r)}(),Br=0}}function Kr(){var t=Yr.now(),n=t-Fr;n>1e3&&(Ur-=n,Fr=t)}function Jr(t){zr||(Ir&&(Ir=clearTimeout(Ir)),t-Br>24?(t<1/0&&(Ir=setTimeout(Qr,t-Yr.now()-Ur)),Hr&&(Hr=clearInterval(Hr))):(Hr||(Fr=Yr.now(),Hr=setInterval(Kr,1e3)),zr=1,Wr(Qr)))}function ti(t,n,e){var r=new Vr;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}Vr.prototype=Gr.prototype={constructor:Vr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?$r():+e)+(null==n?0:+n),this._next||Rr===this||(Rr?Rr._next=this:Or=this,Rr=this),this._call=t,this._time=e,Jr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jr())}};var ni=ln("start","end","cancel","interrupt"),ei=[];function ri(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var s,f,l,h;if(1!==e.state)return u();for(s in i)if((h=i[s]).name===e.name){if(3===h.state)return ti(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[s])}if(ti((function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(c))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(l=e.tween.length),s=0,f=-1;s<l;++s)(h=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(r[++f]=h);r.length=f+1}}function a(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(u),e.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Gr((function(t){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:ni,tween:ei,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ii(t,n){var e=ai(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function oi(t,n){var e=ai(t,n);if(e.state>3)throw new Error("too late; already running");return e}function ai(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function ui(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}}var ci,si=180/Math.PI,fi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function li(t,n,e,r,i,o){var a,u,c;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,c/=u),t*r<n*e&&(t=-t,n=-n,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*si,skewX:Math.atan(c)*si,scaleX:a,scaleY:u}}function hi(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],c=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var c=a.push("translate(",null,n,null,e);u.push({i:c-4,x:kr(t,i)},{i:c-2,x:kr(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}(o.translateX,o.translateY,a.translateX,a.translateY,u,c),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:kr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:kr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:kr(t,e)},{i:u-2,x:kr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e<r;)u[(n=c[e]).i]=n.x(t);return u.join("")}}}var di=hi((function(t){const n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?fi:li(n.a,n.b,n.c,n.d,n.e,n.f)}),"px, ","px)","deg)"),pi=hi((function(t){return null==t?fi:(ci||(ci=document.createElementNS("http://www.w3.org/2000/svg","g")),ci.setAttribute("transform",t),(t=ci.transform.baseVal.consolidate())?li((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):fi)}),", ",")",")");function gi(t,n){var e,r;return function(){var i=oi(this,t),o=i.tween;if(o!==e)for(var a=0,u=(r=e=o).length;a<u;++a)if(r[a].name===n){(r=r.slice()).splice(a,1);break}i.tween=r}}function yi(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=oi(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},c=0,s=i.length;c<s;++c)if(i[c].name===n){i[c]=u;break}c===s&&i.push(u)}o.tween=i}}function vi(t,n,e){var r=t._id;return t.each((function(){var t=oi(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return ai(t,r).value[n]}}function mi(t,n){var e;return("number"==typeof n?kr:n instanceof Ke?br:(e=Ke(n))?(n=e,br):Pr)(t,n)}function bi(t){return function(){this.removeAttribute(t)}}function _i(t){return function(){this.removeAttributeNS(t.space,t.local)}}function xi(t,n,e){var r,i,o=e+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=n(r=a,e)}}function wi(t,n,e){var r,i,o=e+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=n(r=a,e)}}function Mi(t,n,e){var r,i,o;return function(){var a,u,c=e(this);if(null!=c)return(a=this.getAttribute(t))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=n(r=a,c));this.removeAttribute(t)}}function Ti(t,n,e){var r,i,o;return function(){var a,u,c=e(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=n(r=a,c));this.removeAttributeNS(t.space,t.local)}}function Ai(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Si(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function Ei(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Si(t,i)),e}return i._value=n,i}function ki(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Ai(t,i)),e}return i._value=n,i}function Ni(t,n){return function(){ii(this,t).delay=+n.apply(this,arguments)}}function Ci(t,n){return n=+n,function(){ii(this,t).delay=n}}function Di(t,n){return function(){oi(this,t).duration=+n.apply(this,arguments)}}function Pi(t,n){return n=+n,function(){oi(this,t).duration=n}}function qi(t,n){if("function"!=typeof n)throw new Error;return function(){oi(this,t).ease=n}}function ji(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?ii:oi;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}var Li=Se.prototype.constructor;function Oi(t){return function(){this.style.removeProperty(t)}}function Ri(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function zi(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&Ri(t,o,e)),r}return o._value=n,o}function Ii(t){return function(n){this.textContent=t.call(this,n)}}function Hi(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&Ii(r)),n}return r._value=t,r}var Fi=0;function Bi(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Ui(t){return Se().transition(t)}function Yi(){return++Fi}var Wi=Se.prototype;function $i(t){return t*t*t}function Xi(t){return--t*t*t+1}function Vi(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Bi.prototype=Ui.prototype={constructor:Bi,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=dn(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,c,s=r[a],f=s.length,l=o[a]=new Array(f),h=0;h<f;++h)(u=s[h])&&(c=t.call(u,u.__data__,h,s))&&("__data__"in u&&(c.__data__=u.__data__),l[h]=c,ri(l[h],n,e,h,l,ai(u,e)));return new Bi(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=yn(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c,s=r[u],f=s.length,l=0;l<f;++l)if(c=s[l]){for(var h,d=t.call(c,c.__data__,l,s),p=ai(c,e),g=0,y=d.length;g<y;++g)(h=d[g])&&ri(h,n,e,g,d,p);o.push(d),a.push(c)}return new Bi(o,a,n,e)},selectChild:Wi.selectChild,selectChildren:Wi.selectChildren,filter:function(t){"function"!=typeof t&&(t=vn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new Bi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=n[u],f=e[u],l=s.length,h=a[u]=new Array(l),d=0;d<l;++d)(c=s[d]||f[d])&&(h[d]=c);for(;u<r;++u)a[u]=n[u];return new Bi(a,this._parents,this._name,this._id)},selection:function(){return new Li(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Yi(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)if(a=u[s]){var f=ai(a,n);ri(a,t,e,s,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Bi(r,this._parents,t,e)},call:Wi.call,nodes:Wi.nodes,node:Wi.node,size:Wi.size,empty:Wi.empty,each:Wi.each,on:function(t,n){var e=this._id;return arguments.length<2?ai(this.node(),e).on.on(t):this.each(ji(e,t,n))},attr:function(t,n){var e=qn(t),r="transform"===e?pi:mi;return this.attrTween(t,"function"==typeof n?(e.local?Ti:Mi)(e,r,vi(this,"attr."+t,n)):null==n?(e.local?_i:bi)(e):(e.local?wi:xi)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=qn(t);return this.tween(e,(r.local?Ei:ki)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?di:mi;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=Yn(this,t),a=(this.style.removeProperty(t),Yn(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,Oi(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var a=Yn(this,t),u=e(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=Yn(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u))}}(t,r,vi(this,"style."+t,n))).each(function(t,n){var e,r,i,o,a="style."+n,u="end."+a;return function(){var c=oi(this,t),s=c.on,f=null==c.value[a]?o||(o=Oi(n)):void 0;s===e&&i===f||(r=(e=s).copy()).on(u,i=f),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var a=Yn(this,t);return a===o?null:a===r?i:i=n(r=a,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,zi(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(vi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,Hi(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=ai(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?gi:yi)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Ni:Ci)(n,t)):ai(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Di:Pi)(n,t)):ai(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(qi(n,t)):ai(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!=typeof e)throw new Error;oi(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,a){var u={value:a},c={value:function(){0==--i&&o()}};e.each((function(){var e=oi(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(u),n._.interrupt.push(u),n._.end.push(c)),e.on=n})),0===i&&o()}))},[Symbol.iterator]:Wi[Symbol.iterator]};var Gi={time:null,delay:0,duration:250,ease:Vi};function Zi(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}Se.prototype.interrupt=function(t){return this.each((function(){ui(this,t)}))},Se.prototype.transition=function(t){var n,e;t instanceof Bi?(n=t._id,t=t._name):(n=Yi(),(e=Gi).time=$r(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)(a=u[s])&&ri(a,t,n,s,u,e||Zi(a,n));return new Bi(r,this._parents,t,n)};var Qi=[null];function Ki(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new Bi([[t]],Qi,n,+r);return null}const Ji=t=>()=>t;function to(t,{sourceEvent:n,target:e,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function no(t){t.stopImmediatePropagation()}function eo(t){t.preventDefault(),t.stopImmediatePropagation()}var ro={name:"drag"},io={name:"space"},oo={name:"handle"},ao={name:"center"};const{abs:uo,max:co,min:so}=Math;function fo(t){return[+t[0],+t[1]]}function lo(t){return[fo(t[0]),fo(t[1])]}var ho={name:"x",handles:["w","e"].map(xo),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},po={name:"y",handles:["n","s"].map(xo),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},go={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(xo),input:function(t){return null==t?null:lo(t)},output:function(t){return t}},yo={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"},vo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},mo={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},bo={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},_o={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function xo(t){return{type:t}}function wo(t){return!t.ctrlKey&&!t.button}function Mo(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function To(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ao(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function So(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Eo(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function ko(){return Do(ho)}function No(){return Do(po)}function Co(){return Do(go)}function Do(t){var n,e=Mo,r=wo,i=To,o=!0,a=ln("start","brush","end"),u=6;function c(n){var e=n.property("__brush",g).selectAll(".overlay").data([xo("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",yo.overlay).merge(e).each((function(){var t=Ao(this).extent;Ee(this).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])})),n.selectAll(".selection").data([xo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",yo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return yo[t.type]})),n.each(s).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function s(){var t=Ee(this),n=Ao(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-u/2:n[0][0]-u/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-u/2:n[0][1]-u/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+u:u})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+u:u}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function f(t,n,e){var r=t.__brush.emitter;return!r||e&&r.clean?new l(t,n,e):r}function l(t,n,e){this.that=t,this.args=n,this.state=t.__brush,this.active=0,this.clean=e}function h(e){if((!n||e.touches)&&r.apply(this,arguments)){var i,a,u,c,l,h,d,p,g,y,v,m=this,b=e.target.__data__.type,_="selection"===(o&&e.metaKey?b="overlay":b)?ro:o&&e.altKey?ao:oo,x=t===po?null:bo[b],w=t===ho?null:_o[b],M=Ao(m),T=M.extent,A=M.selection,S=T[0][0],E=T[0][1],k=T[1][0],N=T[1][1],C=0,D=0,P=x&&w&&o&&e.shiftKey,q=Array.from(e.touches||[e],(t=>{const n=t.identifier;return(t=Lr(t,m)).point0=t.slice(),t.identifier=n,t}));ui(m);var j=f(m,arguments,!0).beforestart();if("overlay"===b){A&&(g=!0);const n=[q[0],q[1]||q[0]];M.selection=A=[[i=t===po?S:so(n[0][0],n[1][0]),u=t===ho?E:so(n[0][1],n[1][1])],[l=t===po?k:co(n[0][0],n[1][0]),d=t===ho?N:co(n[0][1],n[1][1])]],q.length>1&&I(e)}else i=A[0][0],u=A[0][1],l=A[1][0],d=A[1][1];a=i,c=u,h=l,p=d;var L=Ee(m).attr("pointer-events","none"),O=L.selectAll(".overlay").attr("cursor",yo[b]);if(e.touches)j.moved=z,j.ended=H;else{var R=Ee(e.view).on("mousemove.brush",z,!0).on("mouseup.brush",H,!0);o&&R.on("keydown.brush",F,!0).on("keyup.brush",B,!0),Pe(e.view)}s.call(m),j.start(e,_.name)}function z(t){for(const n of t.changedTouches||[t])for(const t of q)t.identifier===n.identifier&&(t.cur=Lr(n,m));if(P&&!y&&!v&&1===q.length){const t=q[0];uo(t.cur[0]-t[0])>uo(t.cur[1]-t[1])?v=!0:y=!0}for(const t of q)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,eo(t),I(t)}function I(t){const n=q[0],e=n.point0;var r;switch(C=n[0]-e[0],D=n[1]-e[1],_){case io:case ro:x&&(C=co(S-i,so(k-l,C)),a=i+C,h=l+C),w&&(D=co(E-u,so(N-d,D)),c=u+D,p=d+D);break;case oo:q[1]?(x&&(a=co(S,so(k,q[0][0])),h=co(S,so(k,q[1][0])),x=1),w&&(c=co(E,so(N,q[0][1])),p=co(E,so(N,q[1][1])),w=1)):(x<0?(C=co(S-i,so(k-i,C)),a=i+C,h=l):x>0&&(C=co(S-l,so(k-l,C)),a=i,h=l+C),w<0?(D=co(E-u,so(N-u,D)),c=u+D,p=d):w>0&&(D=co(E-d,so(N-d,D)),c=u,p=d+D));break;case ao:x&&(a=co(S,so(k,i-C*x)),h=co(S,so(k,l+C*x))),w&&(c=co(E,so(N,u-D*w)),p=co(E,so(N,d+D*w)))}h<a&&(x*=-1,r=i,i=l,l=r,r=a,a=h,h=r,b in vo&&O.attr("cursor",yo[b=vo[b]])),p<c&&(w*=-1,r=u,u=d,d=r,r=c,c=p,p=r,b in mo&&O.attr("cursor",yo[b=mo[b]])),M.selection&&(A=M.selection),y&&(a=A[0][0],h=A[1][0]),v&&(c=A[0][1],p=A[1][1]),A[0][0]===a&&A[0][1]===c&&A[1][0]===h&&A[1][1]===p||(M.selection=[[a,c],[h,p]],s.call(m),j.brush(t,_.name))}function H(t){if(no(t),t.touches){if(t.touches.length)return;n&&clearTimeout(n),n=setTimeout((function(){n=null}),500)}else qe(t.view,g),R.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);L.attr("pointer-events","all"),O.attr("cursor",yo.overlay),M.selection&&(A=M.selection),So(A)&&(M.selection=null,s.call(m)),j.end(t,_.name)}function F(t){switch(t.keyCode){case 16:P=x&&w;break;case 18:_===oo&&(x&&(l=h-C*x,i=a+C*x),w&&(d=p-D*w,u=c+D*w),_=ao,I(t));break;case 32:_!==oo&&_!==ao||(x<0?l=h-C:x>0&&(i=a-C),w<0?d=p-D:w>0&&(u=c-D),_=io,O.attr("cursor",yo.selection),I(t));break;default:return}eo(t)}function B(t){switch(t.keyCode){case 16:P&&(y=v=P=!1,I(t));break;case 18:_===ao&&(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),_=oo,I(t));break;case 32:_===io&&(t.altKey?(x&&(l=h-C*x,i=a+C*x),w&&(d=p-D*w,u=c+D*w),_=ao):(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),_=oo),O.attr("cursor",yo[b]),I(t));break;default:return}eo(t)}}function d(t){f(this,arguments).moved(t)}function p(t){f(this,arguments).ended(t)}function g(){var n=this.__brush||{selection:null};return n.extent=lo(e.apply(this,arguments)),n.dim=t,n}return c.move=function(n,e,r){n.tween?n.on("start.brush",(function(t){f(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){f(this,arguments).end(t)})).tween("brush",(function(){var n=this,r=n.__brush,i=f(n,arguments),o=r.selection,a=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),u=qr(o,a);function c(t){r.selection=1===t&&null===a?null:u(t),s.call(n),i.brush()}return null!==o&&null!==a?c:c(1)})):n.each((function(){var n=this,i=arguments,o=n.__brush,a=t.input("function"==typeof e?e.apply(n,i):e,o.extent),u=f(n,i).beforestart();ui(n),o.selection=null===a?null:a,s.call(n),u.start(r).brush(r).end(r)}))},c.clear=function(t,n){c.move(t,null,n)},l.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,n){return this.starting?(this.starting=!1,this.emit("start",t,n)):this.emit("brush",t),this},brush:function(t,n){return this.emit("brush",t,n),this},end:function(t,n){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,n)),this},emit:function(n,e,r){var i=Ee(this.that).datum();a.call(n,this.that,new to(n,{sourceEvent:e,target:c,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},c.extent=function(t){return arguments.length?(e="function"==typeof t?t:Ji(lo(t)),c):e},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Ji(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Ji(!!t),c):i},c.handleSize=function(t){return arguments.length?(u=+t,c):u},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=a.on.apply(a,arguments);return t===a?c:t},c}var Po=Math.abs,qo=Math.cos,jo=Math.sin,Lo=Math.PI,Oo=Lo/2,Ro=2*Lo,zo=Math.max,Io=1e-12;function Ho(t,n){return Array.from({length:n-t},((n,e)=>t+e))}function Fo(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function Bo(){return Wo(!1,!1)}function Uo(){return Wo(!1,!0)}function Yo(){return Wo(!0,!1)}function Wo(t,n){var e=0,r=null,i=null,o=null;function a(a){var u,c=a.length,s=new Array(c),f=Ho(0,c),l=new Array(c*c),h=new Array(c),d=0;a=Float64Array.from({length:c*c},n?(t,n)=>a[n%c][n/c|0]:(t,n)=>a[n/c|0][n%c]);for(let n=0;n<c;++n){let e=0;for(let r=0;r<c;++r)e+=a[n*c+r]+t*a[r*c+n];d+=s[n]=e}u=(d=zo(0,Ro-e*c)/d)?e:Ro/c;{let n=0;r&&f.sort(((t,n)=>r(s[t],s[n])));for(const e of f){const r=n;if(t){const t=Ho(1+~c,c).filter((t=>t<0?a[~t*c+e]:a[e*c+t]));i&&t.sort(((t,n)=>i(t<0?-a[~t*c+e]:a[e*c+t],n<0?-a[~n*c+e]:a[e*c+n])));for(const r of t)r<0?(l[~r*c+e]||(l[~r*c+e]={source:null,target:null})).target={index:e,startAngle:n,endAngle:n+=a[~r*c+e]*d,value:a[~r*c+e]}:(l[e*c+r]||(l[e*c+r]={source:null,target:null})).source={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]};h[e]={index:e,startAngle:r,endAngle:n,value:s[e]}}else{const t=Ho(0,c).filter((t=>a[e*c+t]||a[t*c+e]));i&&t.sort(((t,n)=>i(a[e*c+t],a[e*c+n])));for(const r of t){let t;if(e<r?(t=l[e*c+r]||(l[e*c+r]={source:null,target:null}),t.source={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]}):(t=l[r*c+e]||(l[r*c+e]={source:null,target:null}),t.target={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]},e===r&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const n=t.source;t.source=t.target,t.target=n}}h[e]={index:e,startAngle:r,endAngle:n,value:s[e]}}n+=u}}return(l=Object.values(l)).groups=h,o?l.sort(o):l}return a.padAngle=function(t){return arguments.length?(e=zo(0,t),a):e},a.sortGroups=function(t){return arguments.length?(r=t,a):r},a.sortSubgroups=function(t){return arguments.length?(i=t,a):i},a.sortChords=function(t){return arguments.length?(null==t?o=null:(o=Fo(t))._=t,a):o&&o._},a}const $o=Math.PI,Xo=2*$o,Vo=1e-6,Go=Xo-Vo;function Zo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Qo(){return new Zo}Zo.prototype=Qo.prototype={constructor:Zo,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,u=e-t,c=r-n,s=o-t,f=a-n,l=s*s+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>Vo)if(Math.abs(f*u-c*s)>Vo&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,y=Math.sqrt(p),v=Math.sqrt(l),m=i*Math.tan(($o-Math.acos((p+l-g)/(2*y*v)))/2),b=m/v,_=m/y;Math.abs(b-1)>Vo&&(this._+="L"+(t+b*s)+","+(n+b*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>s*d)+","+(this._x1=t+_*u)+","+(this._y1=n+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,s=n+u,f=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>Vo||Math.abs(this._y1-s)>Vo)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%Xo+Xo),l>Go?this._+="A"+e+","+e+",0,1,"+f+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):l>Vo&&(this._+="A"+e+","+e+",0,"+ +(l>=$o)+","+f+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const Ko=Qo;var Jo=Array.prototype.slice;function ta(t){return function(){return t}}function na(t){return t.source}function ea(t){return t.target}function ra(t){return t.radius}function ia(t){return t.startAngle}function oa(t){return t.endAngle}function aa(){return 0}function ua(){return 10}function ca(t){var n=na,e=ea,r=ra,i=ra,o=ia,a=oa,u=aa,c=null;function s(){var s,f=n.apply(this,arguments),l=e.apply(this,arguments),h=u.apply(this,arguments)/2,d=Jo.call(arguments),p=+r.apply(this,(d[0]=f,d)),g=o.apply(this,d)-Oo,y=a.apply(this,d)-Oo,v=+i.apply(this,(d[0]=l,d)),m=o.apply(this,d)-Oo,b=a.apply(this,d)-Oo;if(c||(c=s=Ko()),h>Io&&(Po(y-g)>2*h+Io?y>g?(g+=h,y-=h):(g-=h,y+=h):g=y=(g+y)/2,Po(b-m)>2*h+Io?b>m?(m+=h,b-=h):(m-=h,b+=h):m=b=(m+b)/2),c.moveTo(p*qo(g),p*jo(g)),c.arc(0,0,p,g,y),g!==m||y!==b)if(t){var _=+t.apply(this,arguments),x=v-_,w=(m+b)/2;c.quadraticCurveTo(0,0,x*qo(m),x*jo(m)),c.lineTo(v*qo(w),v*jo(w)),c.lineTo(x*qo(b),x*jo(b))}else c.quadraticCurveTo(0,0,v*qo(m),v*jo(m)),c.arc(0,0,v,m,b);if(c.quadraticCurveTo(0,0,p*qo(g),p*jo(g)),c.closePath(),s)return c=null,s+""||null}return t&&(s.headRadius=function(n){return arguments.length?(t="function"==typeof n?n:ta(+n),s):t}),s.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:ta(+t),s):r},s.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:ta(+t),s):r},s.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:ta(+t),s):i},s.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:ta(+t),s):o},s.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:ta(+t),s):a},s.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:ta(+t),s):u},s.source=function(t){return arguments.length?(n=t,s):n},s.target=function(t){return arguments.length?(e=t,s):e},s.context=function(t){return arguments.length?(c=null==t?null:t,s):c},s}function sa(){return ca()}function fa(){return ca(ua)}const la=Math.PI/180,ha=180/Math.PI,da=.96422,pa=.82521,ga=4/29,ya=6/29,va=3*ya*ya;function ma(t){if(t instanceof xa)return new xa(t.l,t.a,t.b,t.opacity);if(t instanceof Na)return Ca(t);t instanceof rr||(t=nr(t));var n,e,r=Aa(t.r),i=Aa(t.g),o=Aa(t.b),a=wa((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?n=e=a:(n=wa((.4360747*r+.3850649*i+.1430804*o)/da),e=wa((.0139322*r+.0971045*i+.7141733*o)/pa)),new xa(116*a-16,500*(n-a),200*(a-e),t.opacity)}function ba(t,n){return new xa(t,0,0,null==n?1:n)}function _a(t,n,e,r){return 1===arguments.length?ma(t):new xa(t,n,e,null==r?1:r)}function xa(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function wa(t){return t>.008856451679035631?Math.pow(t,1/3):t/va+ga}function Ma(t){return t>ya?t*t*t:va*(t-ga)}function Ta(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Aa(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Sa(t){if(t instanceof Na)return new Na(t.h,t.c,t.l,t.opacity);if(t instanceof xa||(t=ma(t)),0===t.a&&0===t.b)return new Na(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*ha;return new Na(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ea(t,n,e,r){return 1===arguments.length?Sa(t):new Na(e,n,t,null==r?1:r)}function ka(t,n,e,r){return 1===arguments.length?Sa(t):new Na(t,n,e,null==r?1:r)}function Na(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Ca(t){if(isNaN(t.h))return new xa(t.l,0,0,t.opacity);var n=t.h*la;return new xa(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}je(xa,_a,Le(Oe,{brighter:function(t){return new xa(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new xa(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new rr(Ta(3.1338561*(n=da*Ma(n))-1.6168667*(t=1*Ma(t))-.4906146*(e=pa*Ma(e))),Ta(-.9787684*n+1.9161415*t+.033454*e),Ta(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),je(Na,ka,Le(Oe,{brighter:function(t){return new Na(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Na(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ca(this).rgb()}}));var Da=-.14861,Pa=1.78277,qa=-.29227,ja=-.90649,La=1.97294,Oa=La*ja,Ra=La*Pa,za=Pa*qa-ja*Da;function Ia(t){if(t instanceof Fa)return new Fa(t.h,t.s,t.l,t.opacity);t instanceof rr||(t=nr(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(za*r+Oa*n-Ra*e)/(za+Oa-Ra),o=r-i,a=(La*(e-i)-qa*o)/ja,u=Math.sqrt(a*a+o*o)/(La*i*(1-i)),c=u?Math.atan2(a,o)*ha-120:NaN;return new Fa(c<0?c+360:c,u,i,t.opacity)}function Ha(t,n,e,r){return 1===arguments.length?Ia(t):new Fa(t,n,e,null==r?1:r)}function Fa(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}je(Fa,Ha,Le(Oe,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new Fa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Re:Math.pow(Re,t),new Fa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*la,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new rr(255*(n+e*(Da*r+Pa*i)),255*(n+e*(qa*r+ja*i)),255*(n+e*(La*r)),this.opacity)}}));var Ba=Array.prototype.slice;function Ua(t,n){return t-n}const Ya=t=>()=>t;function Wa(t,n){for(var e,r=-1,i=n.length;++r<i;)if(e=$a(t,n[r]))return e;return 0}function $a(t,n){for(var e=n[0],r=n[1],i=-1,o=0,a=t.length,u=a-1;o<a;u=o++){var c=t[o],s=c[0],f=c[1],l=t[u],h=l[0],d=l[1];if(Xa(c,l,n))return 0;f>r!=d>r&&e<(h-s)*(r-f)/(d-f)+s&&(i=-i)}return i}function Xa(t,n,e){var r,i,o,a;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],a=n[r],i<=o&&o<=a||a<=o&&o<=i)}function Va(){}var Ga=[[],[[[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 Za(){var t=1,n=1,e=rt,r=u;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(Ua);else{const e=_(t),r=nt(e[0],e[1],n);n=J(Math.floor(e[0]/r)*r,Math.floor(e[1]/r-1)*r,n)}return n.map((n=>o(t,n)))}function o(e,i){var o=[],u=[];return function(e,r,i){var o,u,c,s,f,l,h=new Array,d=new Array;for(o=u=-1,s=e[0]>=r,Ga[s<<1].forEach(p);++o<t-1;)c=s,s=e[o+1]>=r,Ga[c|s<<1].forEach(p);for(Ga[s<<0].forEach(p);++u<n-1;){for(o=-1,s=e[u*t+t]>=r,f=e[u*t]>=r,Ga[s<<1|f<<2].forEach(p);++o<t-1;)c=s,s=e[u*t+t+o+1]>=r,l=f,f=e[u*t+o+1]>=r,Ga[c|s<<1|f<<2|l<<3].forEach(p);Ga[s|f<<3].forEach(p)}for(o=-1,f=e[u*t]>=r,Ga[f<<2].forEach(p);++o<t-1;)l=f,f=e[u*t+o+1]>=r,Ga[f<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+o,t[0][1]+u],c=[t[1][0]+o,t[1][1]+u],s=a(r),f=a(c);(n=d[s])?(e=h[f])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(c),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(c),d[n.end=f]=n):(n=h[f])?(e=d[s])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(c),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=s]=n):h[s]=d[f]={start:s,end:f,ring:[r,c]}}Ga[f<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r}(t)>0?o.push([t]):u.push(t)})),u.forEach((function(t){for(var n,e=0,r=o.length;e<r;++e)if(-1!==Wa((n=o[e])[0],t))return void n.push(t)})),{type:"MultiPolygon",value:i,coordinates:o}}function a(n){return 2*n[0]+n[1]*(t+1)*4}function u(e,r,i){e.forEach((function(e){var o,a=e[0],u=e[1],c=0|a,s=0|u,f=r[s*t+c];a>0&&a<t&&c===a&&(o=r[s*t+c-1],e[0]=a+(i-o)/(f-o)-.5),u>0&&u<n&&s===u&&(o=r[(s-1)*t+c],e[1]=u+(i-o)/(f-o)-.5)}))}return i.contour=o,i.size=function(e){if(!arguments.length)return[t,n];var r=Math.floor(e[0]),o=Math.floor(e[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return t=r,n=o,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Ya(Ba.call(t)):Ya(t),i):e},i.smooth=function(t){return arguments.length?(r=t?u:Va,i):r===u},i}function Qa(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a<i;++a)for(var u=0,c=0;u<r+e;++u)u<r&&(c+=t.data[u+a*r]),u>=e&&(u>=o&&(c-=t.data[u-o+a*r]),n.data[u-e+a*r]=c/Math.min(u+1,r-1+o-u,o))}function Ka(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a<r;++a)for(var u=0,c=0;u<i+e;++u)u<i&&(c+=t.data[a+u*r]),u>=e&&(u>=o&&(c-=t.data[a+(u-o)*r]),n.data[a+(u-e)*r]=c/Math.min(u+1,i-1+o-u,o))}function Ja(t){return t[0]}function tu(t){return t[1]}function nu(){return 1}function eu(){var t=Ja,n=tu,e=nu,r=960,i=500,o=20,a=2,u=3*o,c=r+2*u>>a,s=i+2*u>>a,f=Ya(20);function l(r){var i=new Float32Array(c*s),l=new Float32Array(c*s),d=Math.pow(2,-a);r.forEach((function(r,o,a){var f=(t(r,o,a)+u)*d,l=(n(r,o,a)+u)*d,h=+e(r,o,a);if(f>=0&&f<c&&l>=0&&l<s){var p=Math.floor(f),g=Math.floor(l),y=f-p-.5,v=l-g-.5;i[p+g*c]+=(1-y)*(1-v)*h,i[p+1+g*c]+=y*(1-v)*h,i[p+1+(g+1)*c]+=y*v*h,i[p+(g+1)*c]+=(1-y)*v*h}})),Qa({width:c,height:s,data:i},{width:c,height:s,data:l},o>>a),Ka({width:c,height:s,data:l},{width:c,height:s,data:i},o>>a),Qa({width:c,height:s,data:i},{width:c,height:s,data:l},o>>a),Ka({width:c,height:s,data:l},{width:c,height:s,data:i},o>>a),Qa({width:c,height:s,data:i},{width:c,height:s,data:l},o>>a),Ka({width:c,height:s,data:l},{width:c,height:s,data:i},o>>a);var p=f(i);if(!Array.isArray(p)){var g=ot(i);p=nt(0,g,p),(p=xt(0,Math.floor(g/p)*p,p)).shift()}return Za().thresholds(p).size([c,s])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*a),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,a)-u,t[1]=t[1]*Math.pow(2,a)-u}function y(){return c=r+2*(u=3*o)>>a,s=i+2*u>>a,l}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:Ya(+n),l):t},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Ya(+t),l):n},l.weight=function(t){return arguments.length?(e="function"==typeof t?t:Ya(+t),l):e},l.size=function(t){if(!arguments.length)return[r,i];var n=+t[0],e=+t[1];if(!(n>=0&&e>=0))throw new Error("invalid size");return r=n,i=e,y()},l.cellSize=function(t){if(!arguments.length)return 1<<a;if(!((t=+t)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),y()},l.thresholds=function(t){return arguments.length?(f="function"==typeof t?t:Array.isArray(t)?Ya(Ba.call(t)):Ya(t),l):f},l.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*t*t+1)-1)/2),y()},l}const ru=134217729;function iu(t,n,e,r,i){let o,a,u,c,s=n[0],f=r[0],l=0,h=0;f>s==f>-s?(o=s,s=n[++l]):(o=f,f=r[++h]);let d=0;if(l<t&&h<e)for(f>s==f>-s?(a=s+o,u=o-(a-s),s=n[++l]):(a=f+o,u=o-(a-f),f=r[++h]),o=a,0!==u&&(i[d++]=u);l<t&&h<e;)f>s==f>-s?(a=o+s,c=a-o,u=o-(a-c)+(s-c),s=n[++l]):(a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h]),o=a,0!==u&&(i[d++]=u);for(;l<t;)a=o+s,c=a-o,u=o-(a-c)+(s-c),s=n[++l],o=a,0!==u&&(i[d++]=u);for(;h<e;)a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h],o=a,0!==u&&(i[d++]=u);return 0===o&&0!==d||(i[d++]=o),d}function ou(t){return new Float64Array(t)}const au=ou(4),uu=ou(8),cu=ou(12),su=ou(16),fu=ou(4);function lu(t,n,e,r,i,o){const a=(n-o)*(e-i),u=(t-i)*(r-o),c=a-u;if(0===a||0===u||a>0!=u>0)return c;const s=Math.abs(a+u);return Math.abs(c)>=33306690738754716e-32*s?c:-function(t,n,e,r,i,o,a){let u,c,s,f,l,h,d,p,g,y,v,m,b,_,x,w,M,T;const A=t-i,S=e-i,E=n-o,k=r-o;_=A*k,h=ru*A,d=h-(h-A),p=A-d,h=ru*k,g=h-(h-k),y=k-g,x=p*y-(_-d*g-p*g-d*y),w=E*S,h=ru*E,d=h-(h-E),p=E-d,h=ru*S,g=h-(h-S),y=S-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,au[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,au[1]=b-(v+l)+(l-w),T=m+v,l=T-m,au[2]=m-(T-l)+(v-l),au[3]=T;let N=function(t,n){let e=n[0];for(let t=1;t<4;t++)e+=n[t];return e}(0,au),C=22204460492503146e-32*a;if(N>=C||-N>=C)return N;if(l=t-A,u=t-(A+l)+(l-i),l=e-S,s=e-(S+l)+(l-i),l=n-E,c=n-(E+l)+(l-o),l=r-k,f=r-(k+l)+(l-o),0===u&&0===c&&0===s&&0===f)return N;if(C=11093356479670487e-47*a+33306690738754706e-32*Math.abs(N),N+=A*f+k*u-(E*s+S*c),N>=C||-N>=C)return N;_=u*k,h=ru*u,d=h-(h-u),p=u-d,h=ru*k,g=h-(h-k),y=k-g,x=p*y-(_-d*g-p*g-d*y),w=c*S,h=ru*c,d=h-(h-c),p=c-d,h=ru*S,g=h-(h-S),y=S-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,fu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,fu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,fu[2]=m-(T-l)+(v-l),fu[3]=T;const D=iu(4,au,4,fu,uu);_=A*f,h=ru*A,d=h-(h-A),p=A-d,h=ru*f,g=h-(h-f),y=f-g,x=p*y-(_-d*g-p*g-d*y),w=E*s,h=ru*E,d=h-(h-E),p=E-d,h=ru*s,g=h-(h-s),y=s-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,fu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,fu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,fu[2]=m-(T-l)+(v-l),fu[3]=T;const P=iu(D,uu,4,fu,cu);_=u*f,h=ru*u,d=h-(h-u),p=u-d,h=ru*f,g=h-(h-f),y=f-g,x=p*y-(_-d*g-p*g-d*y),w=c*s,h=ru*c,d=h-(h-c),p=c-d,h=ru*s,g=h-(h-s),y=s-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,fu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,fu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,fu[2]=m-(T-l)+(v-l),fu[3]=T;const q=iu(P,cu,4,fu,su);return su[q-1]}(t,n,e,r,i,o,s)}ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(8),ou(8),ou(8),ou(4),ou(8),ou(8),ou(8),ou(12),ou(192),ou(192),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(8),ou(4),ou(4),ou(4),ou(8),ou(16),ou(16),ou(16),ou(32),ou(32),ou(48),ou(64),ou(1152),ou(1152),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(4),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(24),ou(1152),ou(1152),ou(1152),ou(1152),ou(1152),ou(2304),ou(2304),ou(3456),ou(5760),ou(8),ou(8),ou(8),ou(16),ou(24),ou(48),ou(48),ou(96),ou(192),ou(384),ou(384),ou(384),ou(768),ou(96),ou(96),ou(96),ou(1152);const hu=Math.pow(2,-52),du=new Uint32Array(512);class pu{static from(t,n=_u,e=xu){const r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=t[o];i[2*o]=n(r),i[2*o+1]=e(r)}return new pu(i)}constructor(t){const n=t.length>>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:e,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let a=1/0,u=1/0,c=-1/0,s=-1/0;for(let n=0;n<o;n++){const e=t[2*n],r=t[2*n+1];e<a&&(a=e),r<u&&(u=r),e>c&&(c=e),r>s&&(s=r),this._ids[n]=n}const f=(a+c)/2,l=(u+s)/2;let h,d,p,g=1/0;for(let n=0;n<o;n++){const e=gu(f,l,t[2*n],t[2*n+1]);e<g&&(h=n,g=e)}const y=t[2*h],v=t[2*h+1];g=1/0;for(let n=0;n<o;n++){if(n===h)continue;const e=gu(y,v,t[2*n],t[2*n+1]);e<g&&e>0&&(d=n,g=e)}let m=t[2*d],b=t[2*d+1],_=1/0;for(let n=0;n<o;n++){if(n===h||n===d)continue;const e=vu(y,v,m,b,t[2*n],t[2*n+1]);e<_&&(p=n,_=e)}let x=t[2*p],w=t[2*p+1];if(_===1/0){for(let n=0;n<o;n++)this._dists[n]=t[2*n]-t[0]||t[2*n+1]-t[1];mu(this._ids,this._dists,0,o-1);const n=new Uint32Array(o);let e=0;for(let t=0,r=-1/0;t<o;t++){const i=this._ids[t];this._dists[i]>r&&(n[e++]=i,r=this._dists[i])}return this.hull=n.subarray(0,e),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(lu(y,v,m,b,x,w)<0){const t=d,n=m,e=b;d=p,m=x,b=w,p=t,x=n,w=e}const M=function(t,n,e,r,i,o){const a=e-t,u=r-n,c=i-t,s=o-n,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c);return{x:t+(s*f-u*l)*h,y:n+(a*l-c*f)*h}}(y,v,m,b,x,w);this._cx=M.x,this._cy=M.y;for(let n=0;n<o;n++)this._dists[n]=gu(t[2*n],t[2*n+1],M.x,M.y);mu(this._ids,this._dists,0,o-1),this._hullStart=h;let T=3;e[h]=n[p]=d,e[d]=n[h]=p,e[p]=n[d]=h,r[h]=0,r[d]=1,r[p]=2,i.fill(-1),i[this._hashKey(y,v)]=h,i[this._hashKey(m,b)]=d,i[this._hashKey(x,w)]=p,this.trianglesLen=0,this._addTriangle(h,d,p,-1,-1,-1);for(let o,a,u=0;u<this._ids.length;u++){const c=this._ids[u],s=t[2*c],f=t[2*c+1];if(u>0&&Math.abs(s-o)<=hu&&Math.abs(f-a)<=hu)continue;if(o=s,a=f,c===h||c===d||c===p)continue;let l=0;for(let t=0,n=this._hashKey(s,f);t<this._hashSize&&(l=i[(n+t)%this._hashSize],-1===l||l===e[l]);t++);l=n[l];let g,y=l;for(;g=e[y],lu(s,f,t[2*y],t[2*y+1],t[2*g],t[2*g+1])>=0;)if(y=g,y===l){y=-1;break}if(-1===y)continue;let v=this._addTriangle(y,c,e[y],-1,-1,r[y]);r[c]=this._legalize(v+2),r[y]=v,T++;let m=e[y];for(;g=e[m],lu(s,f,t[2*m],t[2*m+1],t[2*g],t[2*g+1])<0;)v=this._addTriangle(m,c,g,r[c],-1,r[m]),r[c]=this._legalize(v+2),e[m]=m,T--,m=g;if(y===l)for(;g=n[y],lu(s,f,t[2*g],t[2*g+1],t[2*y],t[2*y+1])<0;)v=this._addTriangle(g,c,y,-1,r[y],r[g]),this._legalize(v+2),r[g]=v,e[y]=y,T--,y=g;this._hullStart=n[c]=y,e[y]=n[m]=c,e[c]=m,i[this._hashKey(s,f)]=c,i[this._hashKey(t[2*y],t[2*y+1])]=y}this.hull=new Uint32Array(T);for(let t=0,n=this._hullStart;t<T;t++)this.hull[t]=n,n=e[n];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(function(t,n){const e=t/(Math.abs(t)+Math.abs(n));return(n>0?3-e:1+e)/4}(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:e,coords:r}=this;let i=0,o=0;for(;;){const a=e[t],u=t-t%3;if(o=u+(t+2)%3,-1===a){if(0===i)break;t=du[--i];continue}const c=a-a%3,s=u+(t+1)%3,f=c+(a+2)%3,l=n[o],h=n[t],d=n[s],p=n[f];if(yu(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){n[t]=p,n[a]=l;const r=e[f];if(-1===r){let n=this._hullStart;do{if(this._hullTri[n]===f){this._hullTri[n]=t;break}n=this._hullPrev[n]}while(n!==this._hullStart)}this._link(t,r),this._link(a,e[o]),this._link(o,f);const u=c+(a+1)%3;i<du.length&&(du[i++]=u)}else{if(0===i)break;t=du[--i]}}return o}_link(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)}_addTriangle(t,n,e,r,i,o){const a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=n,this._triangles[a+2]=e,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function gu(t,n,e,r){const i=t-e,o=n-r;return i*i+o*o}function yu(t,n,e,r,i,o,a,u){const c=t-a,s=n-u,f=e-a,l=r-u,h=i-a,d=o-u,p=f*f+l*l,g=h*h+d*d;return c*(l*g-p*d)-s*(f*g-p*h)+(c*c+s*s)*(f*d-l*h)<0}function vu(t,n,e,r,i,o){const a=e-t,u=r-n,c=i-t,s=o-n,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c),d=(s*f-u*l)*h,p=(a*l-c*f)*h;return d*d+p*p}function mu(t,n,e,r){if(r-e<=20)for(let i=e+1;i<=r;i++){const r=t[i],o=n[r];let a=i-1;for(;a>=e&&n[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=e+1,o=r;bu(t,e+r>>1,i),n[t[e]]>n[t[r]]&&bu(t,e,r),n[t[i]]>n[t[r]]&&bu(t,i,r),n[t[e]]>n[t[i]]&&bu(t,e,i);const a=t[i],u=n[a];for(;;){do{i++}while(n[t[i]]<u);do{o--}while(n[t[o]]>u);if(o<i)break;bu(t,i,o)}t[e+1]=t[o],t[o]=a,r-i+1>=o-e?(mu(t,n,i,r),mu(t,n,e,o-1)):(mu(t,n,e,o-1),mu(t,n,i,r))}}function bu(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function _u(t){return t[0]}function xu(t){return t[1]}const wu=1e-6;class Mu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,e){const r=(t=+t)+(e=+e),i=n=+n;if(e<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>wu||Math.abs(this._y1-i)>wu)&&(this._+="L"+r+","+i),e&&(this._+=`A${e},${e},0,1,1,${t-e},${n}A${e},${e},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,n,e,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+e}v${+r}h${-e}Z`}value(){return this._||null}}class Tu{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Au{constructor(t,[n,e,r,i]=[0,0,960,500]){if(!((r=+r)>=(n=+n)&&(i=+i)>=(e=+e)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=n,this.ymax=i,this.ymin=e,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:e},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,e.length/3*2);for(let n,r,o=0,a=0,u=e.length;o<u;o+=3,a+=2){const u=2*e[o],c=2*e[o+1],s=2*e[o+2],f=t[u],l=t[u+1],h=t[c],d=t[c+1],p=t[s],g=t[s+1],y=h-f,v=d-l,m=p-f,b=g-l,_=2*(y*b-v*m);if(Math.abs(_)<1e-9){let i=1e9;const o=2*e[0];i*=Math.sign((t[o]-f)*b-(t[o+1]-l)*m),n=(f+p)/2-i*b,r=(l+g)/2+i*m}else{const t=1/_,e=y*y+v*v,i=m*m+b*b;n=f+(b*e-v*i)*t,r=l+(y*i-m*e)*t}i[a]=n,i[a+1]=r}let o,a,u,c=n[n.length-1],s=4*c,f=t[2*c],l=t[2*c+1];r.fill(0);for(let e=0;e<n.length;++e)c=n[e],o=s,a=f,u=l,s=4*c,f=t[2*c],l=t[2*c+1],r[o+2]=r[s]=u-l,r[o+3]=r[s+1]=f-a}render(t){const n=null==t?t=new Mu:void 0,{delaunay:{halfedges:e,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(r<n)continue;const i=2*Math.floor(n/3),a=2*Math.floor(r/3),u=o[i],c=o[i+1],s=o[a],f=o[a+1];this._renderSegment(u,c,s,f,t)}let u,c=i[i.length-1];for(let n=0;n<i.length;++n){u=c,c=i[n];const e=2*Math.floor(r[c]/3),s=o[e],f=o[e+1],l=4*u,h=this._project(s,f,a[l+2],a[l+3]);h&&this._renderSegment(s,f,h[0],h[1],t)}return n&&n.value()}renderBounds(t){const n=null==t?t=new Mu:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const e=null==n?n=new Mu:void 0,r=this._clip(t);if(null===r||!r.length)return;n.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 t=2;t<i;t+=2)r[t]===r[t-2]&&r[t+1]===r[t-1]||n.lineTo(r[t],r[t+1]);return n.closePath(),e&&e.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,e=t.length/2;n<e;++n){const t=this.cellPolygon(n);t&&(t.index=n,yield t)}}cellPolygon(t){const n=new Tu;return this.renderCell(t,n),n.value()}_renderSegment(t,n,e,r,i){let o;const a=this._regioncode(t,n),u=this._regioncode(e,r);0===a&&0===u?(i.moveTo(t,n),i.lineTo(e,r)):(o=this._clipSegment(t,n,e,r,a,u))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,n,e){return(n=+n)==n&&(e=+e)==e&&this.delaunay._step(t,n,e)===t}*neighbors(t){const n=this._clip(t);if(n)for(const e of this.delaunay.neighbors(t)){const t=this._clip(e);if(t)t:for(let r=0,i=n.length;r<i;r+=2)for(let o=0,a=t.length;o<a;o+=2)if(n[r]==t[o]&&n[r+1]==t[o+1]&&n[(r+2)%i]==t[(o+a-2)%a]&&n[(r+3)%i]==t[(o+a-1)%a]){yield e;break t}}}_cell(t){const{circumcenters:n,delaunay:{inedges:e,halfedges:r,triangles:i}}=this,o=e[t];if(-1===o)return null;const a=[];let u=o;do{const e=Math.floor(u/3);if(a.push(n[2*e],n[2*e+1]),u=u%3==2?u-2:u+1,i[u]!==t)break;u=r[u]}while(u!==o&&-1!==u);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(null===n)return null;const{vectors:e}=this,r=4*t;return e[r]||e[r+1]?this._clipInfinite(t,n,e[r],e[r+1],e[r+2],e[r+3]):this._clipFinite(t,n)}_clipFinite(t,n){const e=n.length;let r,i,o,a,u=null,c=n[e-2],s=n[e-1],f=this._regioncode(c,s),l=0;for(let h=0;h<e;h+=2)if(r=c,i=s,c=n[h],s=n[h+1],o=f,f=this._regioncode(c,s),0===o&&0===f)a=l,l=0,u?u.push(c,s):u=[c,s];else{let n,e,h,d,p;if(0===o){if(null===(n=this._clipSegment(r,i,c,s,o,f)))continue;[e,h,d,p]=n}else{if(null===(n=this._clipSegment(c,s,r,i,f,o)))continue;[d,p,e,h]=n,a=l,l=this._edgecode(e,h),a&&l&&this._edge(t,a,l,u,u.length),u?u.push(e,h):u=[e,h]}a=l,l=this._edgecode(d,p),a&&l&&this._edge(t,a,l,u,u.length),u?u.push(d,p):u=[d,p]}if(u)a=l,l=this._edgecode(u[0],u[1]),a&&l&&this._edge(t,a,l,u,u.length);else if(this.contains(t,(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 u}_clipSegment(t,n,e,r,i,o){for(;;){if(0===i&&0===o)return[t,n,e,r];if(i&o)return null;let a,u,c=i||o;8&c?(a=t+(e-t)*(this.ymax-n)/(r-n),u=this.ymax):4&c?(a=t+(e-t)*(this.ymin-n)/(r-n),u=this.ymin):2&c?(u=n+(r-n)*(this.xmax-t)/(e-t),a=this.xmax):(u=n+(r-n)*(this.xmin-t)/(e-t),a=this.xmin),i?(t=a,n=u,i=this._regioncode(t,n)):(e=a,r=u,o=this._regioncode(e,r))}}_clipInfinite(t,n,e,r,i,o){let a,u=Array.from(n);if((a=this._project(u[0],u[1],e,r))&&u.unshift(a[0],a[1]),(a=this._project(u[u.length-2],u[u.length-1],i,o))&&u.push(a[0],a[1]),u=this._clipFinite(t,u))for(let n,e=0,r=u.length,i=this._edgecode(u[r-2],u[r-1]);e<r;e+=2)n=i,i=this._edgecode(u[e],u[e+1]),n&&i&&(e=this._edge(t,n,i,u,e),r=u.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(u=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return u}_edge(t,n,e,r,i){for(;n!==e;){let e,o;switch(n){case 5:n=4;continue;case 4:n=6,e=this.xmax,o=this.ymin;break;case 6:n=2;continue;case 2:n=10,e=this.xmax,o=this.ymax;break;case 10:n=8;continue;case 8:n=9,e=this.xmin,o=this.ymax;break;case 9:n=1;continue;case 1:n=5,e=this.xmin,o=this.ymin}r[i]===e&&r[i+1]===o||!this.contains(t,e,o)||(r.splice(i,0,e,o),i+=2)}if(r.length>4)for(let t=0;t<r.length;t+=2){const n=(t+2)%r.length,e=(t+4)%r.length;(r[t]===r[n]&&r[n]===r[e]||r[t+1]===r[n+1]&&r[n+1]===r[e+1])&&(r.splice(n,2),t-=2)}return i}_project(t,n,e,r){let i,o,a,u=1/0;if(r<0){if(n<=this.ymin)return null;(i=(this.ymin-n)/r)<u&&(a=this.ymin,o=t+(u=i)*e)}else if(r>0){if(n>=this.ymax)return null;(i=(this.ymax-n)/r)<u&&(a=this.ymax,o=t+(u=i)*e)}if(e>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/e)<u&&(o=this.xmax,a=n+(u=i)*r)}else if(e<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/e)<u&&(o=this.xmin,a=n+(u=i)*r)}return[o,a]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}}const Su=2*Math.PI,Eu=Math.pow;function ku(t){return t[0]}function Nu(t){return t[1]}function Cu(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}class Du{static from(t,n=ku,e=Nu,r){return new Du("length"in t?function(t,n,e,r){const i=t.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=t[a];o[2*a]=n.call(r,i,a,t),o[2*a+1]=e.call(r,i,a,t)}return o}(t,n,e,r):Float64Array.from(function*(t,n,e,r){let i=0;for(const o of t)yield n.call(r,o,i,t),yield e.call(r,o,i,t),++i}(t,n,e,r)))}constructor(t){this._delaunator=new pu(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:n,coords:e}=t;for(let t=0;t<n.length;t+=3){const r=2*n[t],i=2*n[t+1],o=2*n[t+2];if((e[o]-e[r])*(e[i+1]-e[r+1])-(e[i]-e[r])*(e[o+1]-e[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},((t,n)=>n)).sort(((t,e)=>n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]));const t=this.collinear[0],e=this.collinear[this.collinear.length-1],r=[n[2*t],n[2*t+1],n[2*e],n[2*e+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,e=n.length/2;t<e;++t){const e=Cu(n[2*t],n[2*t+1],i);n[2*t]=e[0],n[2*t+1]=e[1]}this._delaunator=new pu(n)}else delete this.collinear;const e=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let t=0,n=e.length;t<n;++t){const n=i[t%3==2?t-2:t+1];-1!==e[t]&&-1!==o[n]||(o[n]=t)}for(let t=0,n=r.length;t<n;++t)a[r[t]]=t;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(t){return new Au(this,t)}*neighbors(t){const{inedges:n,hull:e,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const n=a.indexOf(t);return n>0&&(yield a[n-1]),void(n<a.length-1&&(yield a[n+1]))}const u=n[t];if(-1===u)return;let c=u,s=-1;do{if(yield s=o[c],c=c%3==2?c-2:c+1,o[c]!==t)return;if(c=i[c],-1===c){const n=e[(r[t]+1)%e.length];return void(n!==s&&(yield n))}}while(c!==u)}find(t,n,e=0){if((t=+t)!=t||(n=+n)!=n)return-1;const r=e;let i;for(;(i=this._step(e,t,n))>=0&&i!==e&&i!==r;)e=i;return i}_step(t,n,e){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:u,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let s=t,f=Eu(n-c[2*t],2)+Eu(e-c[2*t+1],2);const l=r[t];let h=l;do{let r=u[h];const l=Eu(n-c[2*r],2)+Eu(e-c[2*r+1],2);if(l<f&&(f=l,s=r),h=h%3==2?h-2:h+1,u[h]!==t)break;if(h=a[h],-1===h){if(h=i[(o[t]+1)%i.length],h!==r&&Eu(n-c[2*h],2)+Eu(e-c[2*h+1],2)<f)return h;break}}while(h!==l);return s}render(t){const n=null==t?t=new Mu:void 0,{points:e,halfedges:r,triangles:i}=this;for(let n=0,o=r.length;n<o;++n){const o=r[n];if(o<n)continue;const a=2*i[n],u=2*i[o];t.moveTo(e[a],e[a+1]),t.lineTo(e[u],e[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){void 0!==n||t&&"function"==typeof t.moveTo||(n=t,t=null),n=null==n?2:+n;const e=null==t?t=new Mu:void 0,{points:r}=this;for(let e=0,i=r.length;e<i;e+=2){const i=r[e],o=r[e+1];t.moveTo(i+n,o),t.arc(i,o,n,0,Su)}return e&&e.value()}renderHull(t){const n=null==t?t=new Mu:void 0,{hull:e,points:r}=this,i=2*e[0],o=e.length;t.moveTo(r[i],r[i+1]);for(let n=1;n<o;++n){const i=2*e[n];t.lineTo(r[i],r[i+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new Tu;return this.renderHull(t),t.value()}renderTriangle(t,n){const e=null==n?n=new Mu:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],a=2*i[t+1],u=2*i[t+2];return n.moveTo(r[o],r[o+1]),n.lineTo(r[a],r[a+1]),n.lineTo(r[u],r[u+1]),n.closePath(),e&&e.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,e=t.length/3;n<e;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new Tu;return this.renderTriangle(t,n),n.value()}}const Pu=t=>()=>t;function qu(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:a,y:u,dx:c,dy:s,dispatch:f}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:f}})}function ju(t){return!t.ctrlKey&&!t.button}function Lu(){return this.parentNode}function Ou(t,n){return null==n?{x:t.x,y:t.y}:n}function Ru(){return navigator.maxTouchPoints||"ontouchstart"in this}function zu(){var t,n,e,r,i=ju,o=Lu,a=Ou,u=Ru,c={},s=ln("start","drag","end"),f=0,l=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",y).on("touchmove.drag",v,ke).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var c=b(this,o.call(this,a,u),a,u,"mouse");c&&(Ee(a.view).on("mousemove.drag",p,Ne).on("mouseup.drag",g,Ne),Pe(a.view),Ce(a),e=!1,t=a.clientX,n=a.clientY,c("start",a))}}function p(r){if(De(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>l}c.mouse("drag",r)}function g(t){Ee(t.view).on("mousemove.drag mouseup.drag",null),qe(t.view,e),De(t),c.mouse("end",t)}function y(t,n){if(i.call(this,t,n)){var e,r,a=t.changedTouches,u=o.call(this,t,n),c=a.length;for(e=0;e<c;++e)(r=b(this,u,t,n,a[e].identifier,a[e]))&&(Ce(t),r("start",t,a[e]))}}function v(t){var n,e,r=t.changedTouches,i=r.length;for(n=0;n<i;++n)(e=c[r[n].identifier])&&(De(t),e("drag",t,r[n]))}function m(t){var n,e,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),n=0;n<o;++n)(e=c[i[n].identifier])&&(Ce(t),e("end",t,i[n]))}function b(t,n,e,r,i,o){var u,l,d,p=s.copy(),g=Lr(o||e,n);if(null!=(d=a.call(t,new qu("beforestart",{sourceEvent:e,target:h,identifier:i,active:f,x:g[0],y:g[1],dx:0,dy:0,dispatch:p}),r)))return u=d.x-g[0]||0,l=d.y-g[1]||0,function e(o,a,s){var y,v=g;switch(o){case"start":c[i]=e,y=f++;break;case"end":delete c[i],--f;case"drag":g=Lr(s||a,n),y=f}p.call(o,t,new qu(o,{sourceEvent:a,subject:d,target:h,identifier:i,active:y,x:g[0]+u,y:g[1]+l,dx:g[0]-v[0],dy:g[1]-v[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:Pu(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:Pu(t),h):o},h.subject=function(t){return arguments.length?(a="function"==typeof t?t:Pu(t),h):a},h.touchable=function(t){return arguments.length?(u="function"==typeof t?t:Pu(!!t),h):u},h.on=function(){var t=s.on.apply(s,arguments);return t===s?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h}qu.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Iu={},Hu={};function Fu(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function Bu(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}function Uu(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function Yu(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,a=0,u=0,c=o<=0,s=!1;function f(){if(c)return Hu;if(s)return s=!1,Iu;var n,r,i=a;if(34===t.charCodeAt(i)){for(;a++<o&&34!==t.charCodeAt(a)||34===t.charCodeAt(++a););return(n=a)>=o?c=!0:10===(r=t.charCodeAt(a++))?s=!0:13===r&&(s=!0,10===t.charCodeAt(a)&&++a),t.slice(i+1,n-1).replace(/""/g,'"')}for(;a<o;){if(10===(r=t.charCodeAt(n=a++)))s=!0;else if(13===r)s=!0,10===t.charCodeAt(a)&&++a;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(r=f())!==Hu;){for(var l=[];r!==Iu&&r!==Hu;)l.push(r),r=f();n&&null==(l=n(l,u++))||i.push(l)}return i}function i(n,e){return n.map((function(n){return e.map((function(t){return a(n[t])})).join(t)}))}function o(n){return n.map(a).join(t)}function a(t){return null==t?"":t instanceof Date?function(t){var n=t.getUTCHours(),e=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+Uu(-t,6):t>9999?"+"+Uu(t,6):Uu(t,4)}(t.getUTCFullYear())+"-"+Uu(t.getUTCMonth()+1,2)+"-"+Uu(t.getUTCDate(),2)+(i?"T"+Uu(n,2)+":"+Uu(e,2)+":"+Uu(r,2)+"."+Uu(i,3)+"Z":r?"T"+Uu(n,2)+":"+Uu(e,2)+":"+Uu(r,2)+"Z":e||n?"T"+Uu(n,2)+":"+Uu(e,2)+"Z":"")}(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,o=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=Fu(t);return function(r,i){return n(e(r),i,t)}}(t,n):Fu(t)}));return o.columns=i||[],o},parseRows:r,format:function(n,e){return null==e&&(e=Bu(n)),[e.map(a).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=Bu(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}}var Wu=Yu(","),$u=Wu.parse,Xu=Wu.parseRows,Vu=Wu.format,Gu=Wu.formatBody,Zu=Wu.formatRows,Qu=Wu.formatRow,Ku=Wu.formatValue,Ju=Yu("\t"),tc=Ju.parse,nc=Ju.parseRows,ec=Ju.format,rc=Ju.formatBody,ic=Ju.formatRows,oc=Ju.formatRow,ac=Ju.formatValue;function uc(t){for(var n in t){var e,r,i=t[n].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(e=+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;cc&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=e;else i=null;t[n]=i}return t}const cc=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),sc=t=>+t;function fc(t){return t*t}function lc(t){return t*(2-t)}function hc(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var dc=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),pc=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),gc=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),yc=Math.PI,vc=yc/2;function mc(t){return 1==+t?1:1-Math.cos(t*vc)}function bc(t){return Math.sin(t*vc)}function _c(t){return(1-Math.cos(yc*t))/2}function xc(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function wc(t){return xc(1-+t)}function Mc(t){return 1-xc(t)}function Tc(t){return((t*=2)<=1?xc(1-t):2-xc(t-1))/2}function Ac(t){return 1-Math.sqrt(1-t*t)}function Sc(t){return Math.sqrt(1- --t*t)}function Ec(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var kc=7.5625;function Nc(t){return 1-Cc(1-t)}function Cc(t){return(t=+t)<.36363636363636365?kc*t*t:t<.7272727272727273?kc*(t-=.5454545454545454)*t+.75:t<.9090909090909091?kc*(t-=.8181818181818182)*t+.9375:kc*(t-=.9545454545454546)*t+.984375}function Dc(t){return((t*=2)<=1?1-Cc(1-t):Cc(t-1)+1)/2}var Pc=1.70158,qc=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(Pc),jc=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(Pc),Lc=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(Pc),Oc=2*Math.PI,Rc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Oc);function i(t){return n*xc(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Oc)},i.period=function(e){return t(n,e)},i}(1,.3),zc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Oc);function i(t){return 1-n*xc(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Oc)},i.period=function(e){return t(n,e)},i}(1,.3),Ic=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Oc);function i(t){return((t=2*t-1)<0?n*xc(-t)*Math.sin((r-t)/e):2-n*xc(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Oc)},i.period=function(e){return t(n,e)},i}(1,.3);function Hc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function Fc(t,n){return fetch(t,n).then(Hc)}function Bc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Uc(t,n){return fetch(t,n).then(Bc)}function Yc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Wc(t,n){return fetch(t,n).then(Yc)}function $c(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),Wc(n,e).then((function(n){return t(n,r)}))}}function Xc(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=Yu(t);return Wc(n,e).then((function(t){return i.parse(t,r)}))}var Vc=$c($u),Gc=$c(tc);function Zc(t,n){return new Promise((function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t}))}function Qc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Kc(t,n){return fetch(t,n).then(Qc)}function Jc(t){return(n,e)=>Wc(n,e).then((n=>(new DOMParser).parseFromString(n,t)))}const ts=Jc("application/xml");var ns=Jc("text/html"),es=Jc("image/svg+xml");function rs(t,n){var e,r=1;function i(){var i,o,a=e.length,u=0,c=0;for(i=0;i<a;++i)u+=(o=e[i]).x,c+=o.y;for(u=(u/a-t)*r,c=(c/a-n)*r,i=0;i<a;++i)(o=e[i]).x-=u,o.y-=c}return null==t&&(t=0),null==n&&(n=0),i.initialize=function(t){e=t},i.x=function(n){return arguments.length?(t=+n,i):t},i.y=function(t){return arguments.length?(n=+t,i):n},i.strength=function(t){return arguments.length?(r=+t,i):r},i}function is(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,a,u,c,s,f,l,h,d=t._root,p={data:r},g=t._x0,y=t._y0,v=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((s=n>=(o=(g+v)/2))?g=o:v=o,(f=e>=(a=(y+m)/2))?y=a:m=a,i=d,!(d=d[l=f<<1|s]))return i[l]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(s=n>=(o=(g+v)/2))?g=o:v=o,(f=e>=(a=(y+m)/2))?y=a:m=a}while((l=f<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[l]=p,t}function os(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function as(t){return t[0]}function us(t){return t[1]}function cs(t,n,e){var r=new ss(null==n?as:n,null==e?us:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function ss(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function fs(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var ls=cs.prototype=ss.prototype;function hs(t){return function(){return t}}function ds(t){return 1e-6*(t()-.5)}function ps(t){return t.x+t.vx}function gs(t){return t.y+t.vy}function ys(t){var n,e,r,i=1,o=1;function a(){for(var t,a,c,s,f,l,h,d=n.length,p=0;p<o;++p)for(a=cs(n,ps,gs).visitAfter(u),t=0;t<d;++t)c=n[t],l=e[c.index],h=l*l,s=c.x+c.vx,f=c.y+c.vy,a.visit(g);function g(t,n,e,o,a){var u=t.data,d=t.r,p=l+d;if(!u)return n>s+p||o<s-p||e>f+p||a<f-p;if(u.index>c.index){var g=s-u.x-u.vx,y=f-u.y-u.vy,v=g*g+y*y;v<p*p&&(0===g&&(v+=(g=ds(r))*g),0===y&&(v+=(y=ds(r))*y),v=(p-(v=Math.sqrt(v)))/v*i,c.vx+=(g*=v)*(p=(d*=d)/(h+d)),c.vy+=(y*=v)*p,u.vx-=g*(p=1-p),u.vy-=y*p)}}}function u(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function c(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r<o;++r)i=n[r],e[i.index]=+t(i,r,n)}}return"function"!=typeof t&&(t=hs(null==t?1:+t)),a.initialize=function(t,e){n=t,r=e,c()},a.iterations=function(t){return arguments.length?(o=+t,a):o},a.strength=function(t){return arguments.length?(i=+t,a):i},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),c(),a):t},a}function vs(t){return t.index}function ms(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}function bs(t){var n,e,r,i,o,a,u=vs,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},s=hs(30),f=1;function l(r){for(var i=0,u=t.length;i<f;++i)for(var c,s,l,h,d,p,g,y=0;y<u;++y)s=(c=t[y]).source,h=(l=c.target).x+l.vx-s.x-s.vx||ds(a),d=l.y+l.vy-s.y-s.vy||ds(a),h*=p=((p=Math.sqrt(h*h+d*d))-e[y])/p*r*n[y],d*=p,l.vx-=h*(g=o[y]),l.vy-=d*g,s.vx+=h*(g=1-g),s.vy+=d*g}function h(){if(r){var a,c,s=r.length,f=t.length,l=new Map(r.map(((t,n)=>[u(t,n,r),t])));for(a=0,i=new Array(s);a<f;++a)(c=t[a]).index=a,"object"!=typeof c.source&&(c.source=ms(l,c.source)),"object"!=typeof c.target&&(c.target=ms(l,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(a=0,o=new Array(f);a<f;++a)c=t[a],o[a]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);n=new Array(f),d(),e=new Array(f),p()}}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+c(t[e],e,t)}function p(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+s(t[n],n,t)}return null==t&&(t=[]),l.initialize=function(t,n){r=t,a=n,h()},l.links=function(n){return arguments.length?(t=n,h(),l):t},l.id=function(t){return arguments.length?(u=t,l):u},l.iterations=function(t){return arguments.length?(f=+t,l):f},l.strength=function(t){return arguments.length?(c="function"==typeof t?t:hs(+t),d(),l):c},l.distance=function(t){return arguments.length?(s="function"==typeof t?t:hs(+t),p(),l):s},l}ls.copy=function(){var t,n,e=new ss(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=fs(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=fs(n));return e},ls.add=function(t){const n=+this._x.call(null,t),e=+this._y.call(null,t);return is(this.cover(n,e),n,e,t)},ls.addAll=function(t){var n,e,r,i,o=t.length,a=new Array(o),u=new Array(o),c=1/0,s=1/0,f=-1/0,l=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(a[e]=r,u[e]=i,r<c&&(c=r),r>f&&(f=r),i<s&&(s=i),i>l&&(l=i));if(c>f||s>l)return this;for(this.cover(c,s).cover(f,l),e=0;e<o;++e)is(this,a[e],u[e],t[e]);return this},ls.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var a,u,c=i-e||1,s=this._root;e>t||t>=i||r>n||n>=o;)switch(u=(n<r)<<1|t<e,(a=new Array(4))[u]=s,s=a,c*=2,u){case 0:i=e+c,o=r+c;break;case 1:e=i-c,o=r+c;break;case 2:i=e+c,r=o-c;break;case 3:e=i-c,r=o-c}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},ls.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},ls.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ls.find=function(t,n,e){var r,i,o,a,u,c,s,f=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new os(g,f,l,h,d)),null==e?e=1/0:(f=t-e,l=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)<f||(u=c.y1)<l))if(g.length){var y=(i+a)/2,v=(o+u)/2;p.push(new os(g[3],y,v,a,u),new os(g[2],i,v,y,u),new os(g[1],y,o,a,v),new os(g[0],i,o,y,v)),(s=(n>=v)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var m=t-+this._x.call(null,g.data),b=n-+this._y.call(null,g.data),_=m*m+b*b;if(_<e){var x=Math.sqrt(e=_);f=t-x,l=n-x,h=t+x,d=n+x,r=g.data}}return r},ls.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var n,e,r,i,o,a,u,c,s,f,l,h,d=this._root,p=this._x0,g=this._y0,y=this._x1,v=this._y1;if(!d)return this;if(d.length)for(;;){if((s=o>=(u=(p+y)/2))?p=u:y=u,(f=a>=(c=(g+v)/2))?g=c:v=c,n=d,!(d=d[l=f<<1|s]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},ls.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},ls.root=function(){return this._root},ls.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},ls.visit=function(t){var n,e,r,i,o,a,u=[],c=this._root;for(c&&u.push(new os(c,this._x0,this._y0,this._x1,this._y1));n=u.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,o=n.x1,a=n.y1)&&c.length){var s=(r+o)/2,f=(i+a)/2;(e=c[3])&&u.push(new os(e,s,f,o,a)),(e=c[2])&&u.push(new os(e,r,f,s,a)),(e=c[1])&&u.push(new os(e,s,i,o,f)),(e=c[0])&&u.push(new os(e,r,i,s,f))}return this},ls.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new os(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,a=n.x0,u=n.y0,c=n.x1,s=n.y1,f=(a+c)/2,l=(u+s)/2;(o=i[0])&&e.push(new os(o,a,u,f,l)),(o=i[1])&&e.push(new os(o,f,u,c,l)),(o=i[2])&&e.push(new os(o,a,l,f,s)),(o=i[3])&&e.push(new os(o,f,l,c,s))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},ls.x=function(t){return arguments.length?(this._x=t,this):this._x},ls.y=function(t){return arguments.length?(this._y=t,this):this._y};const _s=4294967296;function xs(t){return t.x}function ws(t){return t.y}var Ms=Math.PI*(3-Math.sqrt(5));function Ts(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=new Map,c=Gr(l),s=ln("tick","end"),f=function(){let t=1;return()=>(t=(1664525*t+1013904223)%_s)/_s}();function l(){h(),s.call("tick",n),e<r&&(c.stop(),s.call("end",n))}function h(r){var c,s,f=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(e+=(o-e)*i,u.forEach((function(t){t(e)})),c=0;c<f;++c)null==(s=t[c]).fx?s.x+=s.vx*=a:(s.x=s.fx,s.vx=0),null==s.fy?s.y+=s.vy*=a:(s.y=s.fy,s.vy=0);return n}function d(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=10*Math.sqrt(.5+e),o=e*Ms;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function p(n){return n.initialize&&n.initialize(t,f),n}return null==t&&(t=[]),d(),n={tick:h,restart:function(){return c.restart(l),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,d(),u.forEach(p),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(a=1-t,n):1-a},randomSource:function(t){return arguments.length?(f=t,u.forEach(p),n):f},force:function(t,e){return arguments.length>1?(null==e?u.delete(t):u.set(t,p(e)),n):u.get(t)},find:function(n,e,r){var i,o,a,u,c,s=0,f=t.length;for(null==r?r=1/0:r*=r,s=0;s<f;++s)(a=(i=n-(u=t[s]).x)*i+(o=e-u.y)*o)<r&&(c=u,r=a);return c},on:function(t,e){return arguments.length>1?(s.on(t,e),n):s.on(t)}}}function As(){var t,n,e,r,i,o=hs(-30),a=1,u=1/0,c=.81;function s(e){var i,o=t.length,a=cs(t,xs,ws).visitAfter(l);for(r=e,i=0;i<o;++i)n=t[i],a.visit(h)}function f(){if(t){var n,e,r=t.length;for(i=new Array(r),n=0;n<r;++n)e=t[n],i[e.index]=+o(e,n,t)}}function l(t){var n,e,r,o,a,u=0,c=0;if(t.length){for(r=o=a=0;a<4;++a)(n=t[a])&&(e=Math.abs(n.value))&&(u+=n.value,c+=e,r+=e*n.x,o+=e*n.y);t.x=r/c,t.y=o/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{u+=i[n.data.index]}while(n=n.next)}t.value=u}function h(t,o,s,f){if(!t.value)return!0;var l=t.x-n.x,h=t.y-n.y,d=f-o,p=l*l+h*h;if(d*d/c<p)return p<u&&(0===l&&(p+=(l=ds(e))*l),0===h&&(p+=(h=ds(e))*h),p<a&&(p=Math.sqrt(a*p)),n.vx+=l*t.value*r/p,n.vy+=h*t.value*r/p),!0;if(!(t.length||p>=u)){(t.data!==n||t.next)&&(0===l&&(p+=(l=ds(e))*l),0===h&&(p+=(h=ds(e))*h),p<a&&(p=Math.sqrt(a*p)));do{t.data!==n&&(d=i[t.data.index]*r/p,n.vx+=l*d,n.vy+=h*d)}while(t=t.next)}}return s.initialize=function(n,r){t=n,e=r,f()},s.strength=function(t){return arguments.length?(o="function"==typeof t?t:hs(+t),f(),s):o},s.distanceMin=function(t){return arguments.length?(a=t*t,s):Math.sqrt(a)},s.distanceMax=function(t){return arguments.length?(u=t*t,s):Math.sqrt(u)},s.theta=function(t){return arguments.length?(c=t*t,s):Math.sqrt(c)},s}function Ss(t,n,e){var r,i,o,a=hs(.1);function u(t){for(var a=0,u=r.length;a<u;++a){var c=r[a],s=c.x-n||1e-6,f=c.y-e||1e-6,l=Math.sqrt(s*s+f*f),h=(o[a]-l)*i[a]*t/l;c.vx+=s*h,c.vy+=f*h}}function c(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)o[n]=+t(r[n],n,r),i[n]=isNaN(o[n])?0:+a(r[n],n,r)}}return"function"!=typeof t&&(t=hs(+t)),null==n&&(n=0),null==e&&(e=0),u.initialize=function(t){r=t,c()},u.strength=function(t){return arguments.length?(a="function"==typeof t?t:hs(+t),c(),u):a},u.radius=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),c(),u):t},u.x=function(t){return arguments.length?(n=+t,u):n},u.y=function(t){return arguments.length?(e=+t,u):e},u}function Es(t){var n,e,r,i=hs(.1);function o(t){for(var i,o=0,a=n.length;o<a;++o)(i=n[o]).vx+=(r[o]-i.x)*e[o]*t}function a(){if(n){var o,a=n.length;for(e=new Array(a),r=new Array(a),o=0;o<a;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=hs(null==t?0:+t)),o.initialize=function(t){n=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:hs(+t),a(),o):i},o.x=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),a(),o):t},o}function ks(t){var n,e,r,i=hs(.1);function o(t){for(var i,o=0,a=n.length;o<a;++o)(i=n[o]).vy+=(r[o]-i.y)*e[o]*t}function a(){if(n){var o,a=n.length;for(e=new Array(a),r=new Array(a),o=0;o<a;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=hs(null==t?0:+t)),o.initialize=function(t){n=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:hs(+t),a(),o):i},o.y=function(n){return arguments.length?(t="function"==typeof n?n:hs(+n),a(),o):t},o}function Ns(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Cs(t){return(t=Ns(Math.abs(t)))?t[1]:NaN}var Ds,Ps=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qs(t){if(!(n=Ps.exec(t)))throw new Error("invalid format: "+t);var n;return new js({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function js(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ls(t,n){var e=Ns(t,n);if(!e)return t+"";var r=e[0],i=e[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")}qs.prototype=js.prototype,js.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Os={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ls(100*t,n),r:Ls,s:function(t,n){var e=Ns(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Ds=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ns(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Rs(t){return t}var zs,Is,Hs,Fs=Array.prototype.map,Bs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Us(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Rs:(n=Fs.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Rs:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Fs.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=qs(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(g=!0,m="g"):Os[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===h?o:/[%p]/.test(m)?c:"",x=Os[m],w=/[defgprs%]/.test(m);function M(t){var i,o,c,h=b,M=_;if("c"===m)M=x(t)+M,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:x(Math.abs(t),y),v&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),T&&0==+t&&"+"!==l&&(T=!1),h=(T?"("===l?l:s:"-"===l||"("===l?"":l)+h,M=("s"===m?Bs[8+Ds/3]:"")+M+(T&&"("===l?")":""),w)for(i=-1,o=t.length;++i<o;)if(48>(c=t.charCodeAt(i))||c>57){M=(46===c?a+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var A=h.length+t.length+M.length,S=A<p?new Array(p-A+1).join(n):"";switch(g&&d&&(t=r(S+t,S.length?p-M.length:1/0),S=""),e){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,A=S.length>>1)+h+t+M+S.slice(A);break;default:t=S+h+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=qs(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Cs(n)/3))),i=Math.pow(10,-r),o=Bs[8+r/3];return function(t){return e(i*t)+o}}}}function Ys(t){return zs=Us(t),Is=zs.format,Hs=zs.formatPrefix,zs}function Ws(t){return Math.max(0,-Cs(Math.abs(t)))}function $s(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Cs(n)/3)))-Cs(Math.abs(t)))}function Xs(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Cs(n)-Cs(t))+1}Ys({thousands:",",grouping:[3],currency:["$",""]});var Vs=1e-6,Gs=1e-12,Zs=Math.PI,Qs=Zs/2,Ks=Zs/4,Js=2*Zs,tf=180/Zs,nf=Zs/180,ef=Math.abs,rf=Math.atan,of=Math.atan2,af=Math.cos,uf=Math.ceil,cf=Math.exp,sf=(Math.floor,Math.hypot),ff=Math.log,lf=Math.pow,hf=Math.sin,df=Math.sign||function(t){return t>0?1:t<0?-1:0},pf=Math.sqrt,gf=Math.tan;function yf(t){return t>1?0:t<-1?Zs:Math.acos(t)}function vf(t){return t>1?Qs:t<-1?-Qs:Math.asin(t)}function mf(t){return(t=hf(t/2))*t}function bf(){}function _f(t,n){t&&wf.hasOwnProperty(t.type)&&wf[t.type](t,n)}var xf={Feature:function(t,n){_f(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)_f(e[r].geometry,n)}},wf={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Mf(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Mf(e[r],n,0)},Polygon:function(t,n){Tf(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Tf(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)_f(e[r],n)}};function Mf(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function Tf(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Mf(t[e],n,1);n.polygonEnd()}function Af(t,n){t&&xf.hasOwnProperty(t.type)?xf[t.type](t,n):_f(t,n)}var Sf,Ef,kf,Nf,Cf,Df,Pf,qf,jf,Lf,Of,Rf,zf,If,Hf,Ff,Bf=new x,Uf=new x,Yf={point:bf,lineStart:bf,lineEnd:bf,polygonStart:function(){Bf=new x,Yf.lineStart=Wf,Yf.lineEnd=$f},polygonEnd:function(){var t=+Bf;Uf.add(t<0?Js+t:t),this.lineStart=this.lineEnd=this.point=bf},sphere:function(){Uf.add(Js)}};function Wf(){Yf.point=Xf}function $f(){Vf(Sf,Ef)}function Xf(t,n){Yf.point=Vf,Sf=t,Ef=n,kf=t*=nf,Nf=af(n=(n*=nf)/2+Ks),Cf=hf(n)}function Vf(t,n){var e=(t*=nf)-kf,r=e>=0?1:-1,i=r*e,o=af(n=(n*=nf)/2+Ks),a=hf(n),u=Cf*a,c=Nf*o+u*af(i),s=u*r*hf(i);Bf.add(of(s,c)),kf=t,Nf=o,Cf=a}function Gf(t){return Uf=new x,Af(t,Yf),2*Uf}function Zf(t){return[of(t[1],t[0]),vf(t[2])]}function Qf(t){var n=t[0],e=t[1],r=af(e);return[r*af(n),r*hf(n),hf(e)]}function Kf(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Jf(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function tl(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function nl(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function el(t){var n=pf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var rl,il,ol,al,ul,cl,sl,fl,ll,hl,dl,pl,gl,yl,vl,ml,bl={point:_l,lineStart:wl,lineEnd:Ml,polygonStart:function(){bl.point=Tl,bl.lineStart=Al,bl.lineEnd=Sl,If=new x,Yf.polygonStart()},polygonEnd:function(){Yf.polygonEnd(),bl.point=_l,bl.lineStart=wl,bl.lineEnd=Ml,Bf<0?(Df=-(qf=180),Pf=-(jf=90)):If>Vs?jf=90:If<-1e-6&&(Pf=-90),Ff[0]=Df,Ff[1]=qf},sphere:function(){Df=-(qf=180),Pf=-(jf=90)}};function _l(t,n){Hf.push(Ff=[Df=t,qf=t]),n<Pf&&(Pf=n),n>jf&&(jf=n)}function xl(t,n){var e=Qf([t*nf,n*nf]);if(zf){var r=Jf(zf,e),i=Jf([r[1],-r[0],0],r);el(i),i=Zf(i);var o,a=t-Lf,u=a>0?1:-1,c=i[0]*tf*u,s=ef(a)>180;s^(u*Lf<c&&c<u*t)?(o=i[1]*tf)>jf&&(jf=o):s^(u*Lf<(c=(c+360)%360-180)&&c<u*t)?(o=-i[1]*tf)<Pf&&(Pf=o):(n<Pf&&(Pf=n),n>jf&&(jf=n)),s?t<Lf?El(Df,t)>El(Df,qf)&&(qf=t):El(t,qf)>El(Df,qf)&&(Df=t):qf>=Df?(t<Df&&(Df=t),t>qf&&(qf=t)):t>Lf?El(Df,t)>El(Df,qf)&&(qf=t):El(t,qf)>El(Df,qf)&&(Df=t)}else Hf.push(Ff=[Df=t,qf=t]);n<Pf&&(Pf=n),n>jf&&(jf=n),zf=e,Lf=t}function wl(){bl.point=xl}function Ml(){Ff[0]=Df,Ff[1]=qf,bl.point=_l,zf=null}function Tl(t,n){if(zf){var e=t-Lf;If.add(ef(e)>180?e+(e>0?360:-360):e)}else Of=t,Rf=n;Yf.point(t,n),xl(t,n)}function Al(){Yf.lineStart()}function Sl(){Tl(Of,Rf),Yf.lineEnd(),ef(If)>Vs&&(Df=-(qf=180)),Ff[0]=Df,Ff[1]=qf,zf=null}function El(t,n){return(n-=t)<0?n+360:n}function kl(t,n){return t[0]-n[0]}function Nl(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function Cl(t){var n,e,r,i,o,a,u;if(jf=qf=-(Df=Pf=1/0),Hf=[],Af(t,bl),e=Hf.length){for(Hf.sort(kl),n=1,o=[r=Hf[0]];n<e;++n)Nl(r,(i=Hf[n])[0])||Nl(r,i[1])?(El(r[0],i[1])>El(r[0],r[1])&&(r[1]=i[1]),El(i[0],r[1])>El(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=El(r[1],i[0]))>a&&(a=u,Df=i[0],qf=r[1])}return Hf=Ff=null,Df===1/0||Pf===1/0?[[NaN,NaN],[NaN,NaN]]:[[Df,Pf],[qf,jf]]}var Dl={sphere:bf,point:Pl,lineStart:jl,lineEnd:Rl,polygonStart:function(){Dl.lineStart=zl,Dl.lineEnd=Il},polygonEnd:function(){Dl.lineStart=jl,Dl.lineEnd=Rl}};function Pl(t,n){t*=nf;var e=af(n*=nf);ql(e*af(t),e*hf(t),hf(n))}function ql(t,n,e){++rl,ol+=(t-ol)/rl,al+=(n-al)/rl,ul+=(e-ul)/rl}function jl(){Dl.point=Ll}function Ll(t,n){t*=nf;var e=af(n*=nf);yl=e*af(t),vl=e*hf(t),ml=hf(n),Dl.point=Ol,ql(yl,vl,ml)}function Ol(t,n){t*=nf;var e=af(n*=nf),r=e*af(t),i=e*hf(t),o=hf(n),a=of(pf((a=vl*o-ml*i)*a+(a=ml*r-yl*o)*a+(a=yl*i-vl*r)*a),yl*r+vl*i+ml*o);il+=a,cl+=a*(yl+(yl=r)),sl+=a*(vl+(vl=i)),fl+=a*(ml+(ml=o)),ql(yl,vl,ml)}function Rl(){Dl.point=Pl}function zl(){Dl.point=Hl}function Il(){Fl(pl,gl),Dl.point=Pl}function Hl(t,n){pl=t,gl=n,t*=nf,n*=nf,Dl.point=Fl;var e=af(n);yl=e*af(t),vl=e*hf(t),ml=hf(n),ql(yl,vl,ml)}function Fl(t,n){t*=nf;var e=af(n*=nf),r=e*af(t),i=e*hf(t),o=hf(n),a=vl*o-ml*i,u=ml*r-yl*o,c=yl*i-vl*r,s=sf(a,u,c),f=vf(s),l=s&&-f/s;ll.add(l*a),hl.add(l*u),dl.add(l*c),il+=f,cl+=f*(yl+(yl=r)),sl+=f*(vl+(vl=i)),fl+=f*(ml+(ml=o)),ql(yl,vl,ml)}function Bl(t){rl=il=ol=al=ul=cl=sl=fl=0,ll=new x,hl=new x,dl=new x,Af(t,Dl);var n=+ll,e=+hl,r=+dl,i=sf(n,e,r);return i<Gs&&(n=cl,e=sl,r=fl,il<Vs&&(n=ol,e=al,r=ul),(i=sf(n,e,r))<Gs)?[NaN,NaN]:[of(e,n)*tf,vf(r/i)*tf]}function Ul(t){return function(){return t}}function Yl(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e}function Wl(t,n){return[ef(t)>Zs?t+Math.round(-t/Js)*Js:t,n]}function $l(t,n,e){return(t%=Js)?n||e?Yl(Vl(t),Gl(n,e)):Vl(t):n||e?Gl(n,e):Wl}function Xl(t){return function(n,e){return[(n+=t)>Zs?n-Js:n<-Zs?n+Js:n,e]}}function Vl(t){var n=Xl(t);return n.invert=Xl(-t),n}function Gl(t,n){var e=af(t),r=hf(t),i=af(n),o=hf(n);function a(t,n){var a=af(n),u=af(t)*a,c=hf(t)*a,s=hf(n),f=s*e+u*r;return[of(c*i-f*o,u*e-s*r),vf(f*i+c*o)]}return a.invert=function(t,n){var a=af(n),u=af(t)*a,c=hf(t)*a,s=hf(n),f=s*i-c*o;return[of(c*i+s*o,u*e+f*r),vf(f*e-u*r)]},a}function Zl(t){function n(n){return(n=t(n[0]*nf,n[1]*nf))[0]*=tf,n[1]*=tf,n}return t=$l(t[0]*nf,t[1]*nf,t.length>2?t[2]*nf:0),n.invert=function(n){return(n=t.invert(n[0]*nf,n[1]*nf))[0]*=tf,n[1]*=tf,n},n}function Ql(t,n,e,r,i,o){if(e){var a=af(n),u=hf(n),c=r*e;null==i?(i=n+r*Js,o=n-c/2):(i=Kl(a,i),o=Kl(a,o),(r>0?i<o:i>o)&&(i+=r*Js));for(var s,f=i;r>0?f>o:f<o;f-=c)s=Zf([a,-u*af(f),-u*hf(f)]),t.point(s[0],s[1])}}function Kl(t,n){(n=Qf(n))[0]-=t,el(n);var e=yf(-n[1]);return((-n[2]<0?-e:e)+Js-Vs)%Js}function Jl(){var t,n,e=Ul([0,0]),r=Ul(90),i=Ul(6),o={point:function(e,r){t.push(e=n(e,r)),e[0]*=tf,e[1]*=tf}};function a(){var a=e.apply(this,arguments),u=r.apply(this,arguments)*nf,c=i.apply(this,arguments)*nf;return t=[],n=$l(-a[0]*nf,-a[1]*nf,0).invert,Ql(o,u,c,1),a={type:"Polygon",coordinates:[t]},t=n=null,a}return a.center=function(t){return arguments.length?(e="function"==typeof t?t:Ul([+t[0],+t[1]]),a):e},a.radius=function(t){return arguments.length?(r="function"==typeof t?t:Ul(+t),a):r},a.precision=function(t){return arguments.length?(i="function"==typeof t?t:Ul(+t),a):i},a}function th(){var t,n=[];return{point:function(n,e,r){t.push([n,e,r])},lineStart:function(){n.push(t=[])},lineEnd:bf,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function nh(t,n){return ef(t[0]-n[0])<Vs&&ef(t[1]-n[1])<Vs}function eh(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function rh(t,n,e,r,i){var o,a,u=[],c=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],a=t[n];if(nh(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}a[0]+=2e-6}u.push(e=new eh(r,t,null,!0)),c.push(e.o=new eh(r,null,e,!1)),u.push(e=new eh(a,t,null,!1)),c.push(e.o=new eh(a,null,e,!0))}})),u.length){for(c.sort(n),ih(u),ih(c),o=0,a=c.length;o<a;++o)c[o].e=e=!e;for(var s,f,l=u[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=s.length;o<a;++o)i.point((f=s[o])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(s=h.p.z,o=s.length-1;o>=0;--o)i.point((f=s[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function ih(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function oh(t){return ef(t[0])<=Zs?t[0]:df(t[0])*((ef(t[0])+Zs)%Js-Zs)}function ah(t,n){var e=oh(n),r=n[1],i=hf(r),o=[hf(e),-af(e),0],a=0,u=0,c=new x;1===i?r=Qs+Vs:-1===i&&(r=-Qs-Vs);for(var s=0,f=t.length;s<f;++s)if(h=(l=t[s]).length)for(var l,h,d=l[h-1],p=oh(d),g=d[1]/2+Ks,y=hf(g),v=af(g),m=0;m<h;++m,p=_,y=M,v=T,d=b){var b=l[m],_=oh(b),w=b[1]/2+Ks,M=hf(w),T=af(w),A=_-p,S=A>=0?1:-1,E=S*A,k=E>Zs,N=y*M;if(c.add(of(N*S*hf(E),v*T+N*af(E))),a+=k?A+S*Js:A,k^p>=e^_>=e){var C=Jf(Qf(d),Qf(b));el(C);var D=Jf(o,C);el(D);var P=(k^A>=0?-1:1)*vf(D[2]);(r>P||r===P&&(C[0]||C[1]))&&(u+=k^A>=0?1:-1)}}return(a<-1e-6||a<Vs&&c<-1e-12)^1&u}function uh(t,n,e,r){return function(i){var o,a,u,c=n(i),s=th(),f=n(s),l=!1,h={point:d,lineStart:g,lineEnd:y,polygonStart:function(){h.point=v,h.lineStart=m,h.lineEnd=b,a=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=g,h.lineEnd=y,a=yt(a);var t=ah(o,r);a.length?(l||(i.polygonStart(),l=!0),rh(a,sh,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function g(){h.point=p,c.lineStart()}function y(){h.point=d,c.lineEnd()}function v(t,n){u.push([t,n]),f.point(t,n)}function m(){f.lineStart(),u=[]}function b(){v(u[0][0],u[0][1]),f.lineEnd();var t,n,e,r,c=f.clean(),h=s.result(),d=h.length;if(u.pop(),o.push(u),u=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(ch))}return h}}function ch(t){return t.length>1}function sh(t,n){return((t=t.x)[0]<0?t[1]-Qs-Vs:Qs-t[1])-((n=n.x)[0]<0?n[1]-Qs-Vs:Qs-n[1])}Wl.invert=Wl;const fh=uh((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?Zs:-Zs,c=ef(o-e);ef(c-Zs)<Vs?(t.point(e,r=(r+a)/2>0?Qs:-Qs),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&c>=Zs&&(ef(e-i)<Vs&&(e-=i*Vs),ef(o-u)<Vs&&(o-=u*Vs),r=function(t,n,e,r){var i,o,a=hf(t-e);return ef(a)>Vs?rf((hf(n)*(o=af(r))*hf(e)-hf(r)*(i=af(n))*hf(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*Qs,r.point(-Zs,i),r.point(0,i),r.point(Zs,i),r.point(Zs,0),r.point(Zs,-i),r.point(0,-i),r.point(-Zs,-i),r.point(-Zs,0),r.point(-Zs,i);else if(ef(t[0]-n[0])>Vs){var o=t[0]<n[0]?Zs:-Zs;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}),[-Zs,-Qs]);function lh(t){var n=af(t),e=6*nf,r=n>0,i=ef(n)>Vs;function o(t,e){return af(t)*af(e)>n}function a(t,e,r){var i=[1,0,0],o=Jf(Qf(t),Qf(e)),a=Kf(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var s=n*a/c,f=-n*u/c,l=Jf(i,o),h=nl(i,s);tl(h,nl(o,f));var d=l,p=Kf(h,d),g=Kf(d,d),y=p*p-g*(Kf(h,h)-1);if(!(y<0)){var v=pf(y),m=nl(d,(-p-v)/g);if(tl(m,h),m=Zf(m),!r)return m;var b,_=t[0],x=e[0],w=t[1],M=e[1];x<_&&(b=_,_=x,x=b);var T=x-_,A=ef(T-Zs)<Vs;if(!A&&M<w&&(b=w,w=M,M=b),A||T<Vs?A?w+M>0^m[1]<(ef(m[0]-_)<Vs?w:M):w<=m[1]&&m[1]<=M:T>Zs^(_<=m[0]&&m[0]<=x)){var S=nl(d,(-p+v)/g);return tl(S,h),[m,Zf(S)]}}}function u(n,e){var i=r?t:Zs-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return uh(o,(function(t){var n,e,c,s,f;return{lineStart:function(){s=c=!1,f=1},point:function(l,h){var d,p=[l,h],g=o(l,h),y=r?g?0:u(l,h):g?u(l+(l<0?Zs:-Zs),h):0;if(!n&&(s=c=g)&&t.lineStart(),g!==c&&(!(d=a(n,p))||nh(n,d)||nh(p,d))&&(p[2]=1),g!==c)f=0,g?(t.lineStart(),d=a(p,n),t.point(d[0],d[1])):(d=a(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^g){var v;y&e||!(v=a(p,n,!0))||(f=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1],3)))}!g||n&&nh(n,p)||t.point(p[0],p[1]),n=p,c=g,e=y},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return f|(s&&c)<<1}}}),(function(n,r,i,o){Ql(o,t,e,i,n,r)}),r?[0,-t]:[-Zs,t-Zs])}var hh,dh,ph,gh,yh=1e9,vh=-yh;function mh(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,s){var f=0,l=0;if(null==i||(f=a(i,u))!==(l=a(o,u))||c(i,o)<0^u>0)do{s.point(0===f||3===f?t:e,f>1?r:n)}while((f=(f+u+4)%4)!==l);else s.point(o[0],o[1])}function a(r,i){return ef(r[0]-t)<Vs?i>0?0:3:ef(r[0]-e)<Vs?i>0?2:1:ef(r[1]-n)<Vs?i>0?1:0:i>0?3:2}function u(t,n){return c(t.x,n.x)}function c(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var c,s,f,l,h,d,p,g,y,v,m,b=a,_=th(),x={point:w,lineStart:function(){x.point=M,s&&s.push(f=[]),v=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(M(l,h),d&&y&&_.rejoin(),c.push(_.result())),x.point=w,y&&b.lineEnd()},polygonStart:function(){b=_,c=[],s=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=s.length;e<i;++e)for(var o,a,u=s[e],c=1,f=u.length,l=u[0],h=l[0],d=l[1];c<f;++c)o=h,a=d,h=(l=u[c])[0],d=l[1],a<=r?d>r&&(h-o)*(r-a)>(d-a)*(t-o)&&++n:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--n;return n}(),e=m&&n,i=(c=yt(c)).length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&rh(c,u,n,o,a),a.polygonEnd()),b=a,c=s=f=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(o,a){var u=i(o,a);if(s&&f.push([o,a]),v)l=o,h=a,d=u,v=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&y)b.point(o,a);else{var c=[p=Math.max(vh,Math.min(yh,p)),g=Math.max(vh,Math.min(yh,g))],_=[o=Math.max(vh,Math.min(yh,o)),a=Math.max(vh,Math.min(yh,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],s=0,f=1,l=n[0]-u,h=n[1]-c;if(a=e-u,l||!(a>0)){if(a/=l,l<0){if(a<s)return;a<f&&(f=a)}else if(l>0){if(a>f)return;a>s&&(s=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(a>f)return;a>s&&(s=a)}else if(l>0){if(a<s)return;a<f&&(f=a)}if(a=r-c,h||!(a>0)){if(a/=h,h<0){if(a<s)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>s&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>s&&(s=a)}else if(h>0){if(a<s)return;a<f&&(f=a)}return s>0&&(t[0]=u+s*l,t[1]=c+s*h),f<1&&(n[0]=u+f*l,n[1]=c+f*h),!0}}}}}(c,_,t,n,e,r)?u&&(b.lineStart(),b.point(o,a),m=!1):(y||(b.lineStart(),b.point(c[0],c[1])),b.point(_[0],_[1]),u||b.lineEnd(),m=!1)}p=o,g=a,y=u}return x}}function bh(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=mh(r,i,o,a)(n=e)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=n=null,e):[[r,i],[o,a]]}}}var _h={sphere:bf,point:bf,lineStart:function(){_h.point=wh,_h.lineEnd=xh},lineEnd:bf,polygonStart:bf,polygonEnd:bf};function xh(){_h.point=_h.lineEnd=bf}function wh(t,n){dh=t*=nf,ph=hf(n*=nf),gh=af(n),_h.point=Mh}function Mh(t,n){t*=nf;var e=hf(n*=nf),r=af(n),i=ef(t-dh),o=af(i),a=r*hf(i),u=gh*e-ph*r*o,c=ph*e+gh*r*o;hh.add(of(pf(a*a+u*u),c)),dh=t,ph=e,gh=r}function Th(t){return hh=new x,Af(t,_h),+hh}var Ah=[null,null],Sh={type:"LineString",coordinates:Ah};function Eh(t,n){return Ah[0]=t,Ah[1]=n,Th(Sh)}var kh={Feature:function(t,n){return Ch(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(Ch(e[r].geometry,n))return!0;return!1}},Nh={Sphere:function(){return!0},Point:function(t,n){return Dh(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Dh(e[r],n))return!0;return!1},LineString:function(t,n){return Ph(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Ph(e[r],n))return!0;return!1},Polygon:function(t,n){return qh(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(qh(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(Ch(e[r],n))return!0;return!1}};function Ch(t,n){return!(!t||!Nh.hasOwnProperty(t.type))&&Nh[t.type](t,n)}function Dh(t,n){return 0===Eh(t,n)}function Ph(t,n){for(var e,r,i,o=0,a=t.length;o<a;o++){if(0===(r=Eh(t[o],n)))return!0;if(o>0&&(i=Eh(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<Gs*i)return!0;e=r}return!1}function qh(t,n){return!!ah(t.map(jh),Lh(n))}function jh(t){return(t=t.map(Lh)).pop(),t}function Lh(t){return[t[0]*nf,t[1]*nf]}function Oh(t,n){return(t&&kh.hasOwnProperty(t.type)?kh[t.type]:Ch)(t,n)}function Rh(t,n,e){var r=xt(t,n-Vs,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function zh(t,n,e){var r=xt(t,n-Vs,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function Ih(){var t,n,e,r,i,o,a,u,c,s,f,l,h=10,d=h,p=90,g=360,y=2.5;function v(){return{type:"MultiLineString",coordinates:m()}}function m(){return xt(uf(r/p)*p,e,p).map(f).concat(xt(uf(u/g)*g,a,g).map(l)).concat(xt(uf(n/h)*h,t,h).filter((function(t){return ef(t%p)>Vs})).map(c)).concat(xt(uf(o/d)*d,i,d).filter((function(t){return ef(t%g)>Vs})).map(s))}return v.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},v.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(l(a).slice(1),f(e).reverse().slice(1),l(u).reverse().slice(1))]}},v.extent=function(t){return arguments.length?v.extentMajor(t).extentMinor(t):v.extentMinor()},v.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],u=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),u>a&&(t=u,u=a,a=t),v.precision(y)):[[r,u],[e,a]]},v.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),v.precision(y)):[[n,o],[t,i]]},v.step=function(t){return arguments.length?v.stepMajor(t).stepMinor(t):v.stepMinor()},v.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],v):[p,g]},v.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],v):[h,d]},v.precision=function(h){return arguments.length?(y=+h,c=Rh(o,i,90),s=zh(n,t,y),f=Rh(u,a,90),l=zh(r,e,y),v):y},v.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Hh(){return Ih()()}function Fh(t,n){var e=t[0]*nf,r=t[1]*nf,i=n[0]*nf,o=n[1]*nf,a=af(r),u=hf(r),c=af(o),s=hf(o),f=a*af(e),l=a*hf(e),h=c*af(i),d=c*hf(i),p=2*vf(pf(mf(o-r)+a*c*mf(i-e))),g=hf(p),y=p?function(t){var n=hf(t*=p)/g,e=hf(p-t)/g,r=e*f+n*h,i=e*l+n*d,o=e*u+n*s;return[of(i,r)*tf,of(o,pf(r*r+i*i))*tf]}:function(){return[e*tf,r*tf]};return y.distance=p,y}const Bh=t=>t;var Uh,Yh,Wh,$h,Xh=new x,Vh=new x,Gh={point:bf,lineStart:bf,lineEnd:bf,polygonStart:function(){Gh.lineStart=Zh,Gh.lineEnd=Jh},polygonEnd:function(){Gh.lineStart=Gh.lineEnd=Gh.point=bf,Xh.add(ef(Vh)),Vh=new x},result:function(){var t=Xh/2;return Xh=new x,t}};function Zh(){Gh.point=Qh}function Qh(t,n){Gh.point=Kh,Uh=Wh=t,Yh=$h=n}function Kh(t,n){Vh.add($h*t-Wh*n),Wh=t,$h=n}function Jh(){Kh(Uh,Yh)}const td=Gh;var nd=1/0,ed=nd,rd=-nd,id=rd,od={point:function(t,n){t<nd&&(nd=t),t>rd&&(rd=t),n<ed&&(ed=n),n>id&&(id=n)},lineStart:bf,lineEnd:bf,polygonStart:bf,polygonEnd:bf,result:function(){var t=[[nd,ed],[rd,id]];return rd=id=-(ed=nd=1/0),t}};const ad=od;var ud,cd,sd,fd,ld=0,hd=0,dd=0,pd=0,gd=0,yd=0,vd=0,md=0,bd=0,_d={point:xd,lineStart:wd,lineEnd:Ad,polygonStart:function(){_d.lineStart=Sd,_d.lineEnd=Ed},polygonEnd:function(){_d.point=xd,_d.lineStart=wd,_d.lineEnd=Ad},result:function(){var t=bd?[vd/bd,md/bd]:yd?[pd/yd,gd/yd]:dd?[ld/dd,hd/dd]:[NaN,NaN];return ld=hd=dd=pd=gd=yd=vd=md=bd=0,t}};function xd(t,n){ld+=t,hd+=n,++dd}function wd(){_d.point=Md}function Md(t,n){_d.point=Td,xd(sd=t,fd=n)}function Td(t,n){var e=t-sd,r=n-fd,i=pf(e*e+r*r);pd+=i*(sd+t)/2,gd+=i*(fd+n)/2,yd+=i,xd(sd=t,fd=n)}function Ad(){_d.point=xd}function Sd(){_d.point=kd}function Ed(){Nd(ud,cd)}function kd(t,n){_d.point=Nd,xd(ud=sd=t,cd=fd=n)}function Nd(t,n){var e=t-sd,r=n-fd,i=pf(e*e+r*r);pd+=i*(sd+t)/2,gd+=i*(fd+n)/2,yd+=i,vd+=(i=fd*t-sd*n)*(sd+t),md+=i*(fd+n),bd+=3*i,xd(sd=t,fd=n)}const Cd=_d;function Dd(t){this._context=t}Dd.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,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(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Js)}},result:bf};var Pd,qd,jd,Ld,Od,Rd=new x,zd={point:bf,lineStart:function(){zd.point=Id},lineEnd:function(){Pd&&Hd(qd,jd),zd.point=bf},polygonStart:function(){Pd=!0},polygonEnd:function(){Pd=null},result:function(){var t=+Rd;return Rd=new x,t}};function Id(t,n){zd.point=Hd,qd=Ld=t,jd=Od=n}function Hd(t,n){Ld-=t,Od-=n,Rd.add(pf(Ld*Ld+Od*Od)),Ld=t,Od=n}const Fd=zd;function Bd(){this._string=[]}function Ud(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Yd(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Af(t,e(r))),r.result()}return o.area=function(t){return Af(t,e(td)),td.result()},o.measure=function(t){return Af(t,e(Fd)),Fd.result()},o.bounds=function(t){return Af(t,e(ad)),ad.result()},o.centroid=function(t){return Af(t,e(Cd)),Cd.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,Bh):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new Bd):new Dd(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)}function Wd(t){return{stream:$d(t)}}function $d(t){return function(n){var e=new Xd;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Xd(){}function Vd(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Af(e,t.stream(ad)),n(ad.result()),null!=r&&t.clipExtent(r),t}function Gd(t,n,e){return Vd(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),a=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,u=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([a,u])}),e)}function Zd(t,n,e){return Gd(t,[[0,0],n],e)}function Qd(t,n,e){return Vd(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,a=-i*e[0][1];t.scale(150*i).translate([o,a])}),e)}function Kd(t,n,e){return Vd(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],a=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,a])}),e)}Bd.prototype={_radius:4.5,_circle:Ud(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Ud(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Xd.prototype={constructor:Xd,point:function(t,n){this.stream.point(t,n)},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 Jd=af(30*nf);function tp(t,n){return+n?function(t,n){function e(r,i,o,a,u,c,s,f,l,h,d,p,g,y){var v=s-r,m=f-i,b=v*v+m*m;if(b>4*n&&g--){var _=a+h,x=u+d,w=c+p,M=pf(_*_+x*x+w*w),T=vf(w/=M),A=ef(ef(w)-1)<Vs||ef(o-l)<Vs?(o+l)/2:of(x,_),S=t(A,T),E=S[0],k=S[1],N=E-r,C=k-i,D=m*N-v*C;(D*D/b>n||ef((v*N+m*C)/b-.5)>.3||a*h+u*d+c*p<Jd)&&(e(r,i,o,a,u,c,E,k,A,_/=M,x/=M,w,g,y),y.point(E,k),e(E,k,A,_,x,w,s,f,l,h,d,p,g,y))}}return function(n){var r,i,o,a,u,c,s,f,l,h,d,p,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){n.polygonStart(),g.lineStart=_},polygonEnd:function(){n.polygonEnd(),g.lineStart=v}};function y(e,r){e=t(e,r),n.point(e[0],e[1])}function v(){f=NaN,g.point=m,n.lineStart()}function m(r,i){var o=Qf([r,i]),a=t(r,i);e(f,l,s,h,d,p,f=a[0],l=a[1],s=r,h=o[0],d=o[1],p=o[2],16,n),n.point(f,l)}function b(){g.point=y,n.lineEnd()}function _(){v(),g.point=x,g.lineEnd=w}function x(t,n){m(r=t,n),i=f,o=l,a=h,u=d,c=p,g.point=m}function w(){e(f,l,s,h,d,p,i,o,r,a,u,c,16,n),g.lineEnd=b,b()}return g}}(t,n):function(t){return $d({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)}var np=$d({point:function(t,n){this.stream.point(t*nf,n*nf)}});function ep(t,n,e,r,i,o){if(!o)return function(t,n,e,r,i){function o(o,a){return[n+t*(o*=r),e-t*(a*=i)]}return o.invert=function(o,a){return[(o-n)/t*r,(e-a)/t*i]},o}(t,n,e,r,i);var a=af(o),u=hf(o),c=a*t,s=u*t,f=a/t,l=u/t,h=(u*e-a*n)/t,d=(u*n+a*e)/t;function p(t,o){return[c*(t*=r)-s*(o*=i)+n,e-s*t-c*o]}return p.invert=function(t,n){return[r*(f*t-l*n+h),i*(d-l*t-f*n)]},p}function rp(t){return ip((function(){return t}))()}function ip(t){var n,e,r,i,o,a,u,c,s,f,l=150,h=480,d=250,p=0,g=0,y=0,v=0,m=0,b=0,_=1,x=1,w=null,M=fh,T=null,A=Bh,S=.5;function E(t){return c(t[0]*nf,t[1]*nf)}function k(t){return(t=c.invert(t[0],t[1]))&&[t[0]*tf,t[1]*tf]}function N(){var t=ep(l,0,0,_,x,b).apply(null,n(p,g)),r=ep(l,h-t[0],d-t[1],_,x,b);return e=$l(y,v,m),u=Yl(n,r),c=Yl(e,u),a=tp(u,S),C()}function C(){return s=f=null,E}return E.stream=function(t){return s&&f===t?s:s=np(function(t){return $d({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}(e)(M(a(A(f=t)))))},E.preclip=function(t){return arguments.length?(M=t,w=void 0,C()):M},E.postclip=function(t){return arguments.length?(A=t,T=r=i=o=null,C()):A},E.clipAngle=function(t){return arguments.length?(M=+t?lh(w=t*nf):(w=null,fh),C()):w*tf},E.clipExtent=function(t){return arguments.length?(A=null==t?(T=r=i=o=null,Bh):mh(T=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),C()):null==T?null:[[T,r],[i,o]]},E.scale=function(t){return arguments.length?(l=+t,N()):l},E.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],N()):[h,d]},E.center=function(t){return arguments.length?(p=t[0]%360*nf,g=t[1]%360*nf,N()):[p*tf,g*tf]},E.rotate=function(t){return arguments.length?(y=t[0]%360*nf,v=t[1]%360*nf,m=t.length>2?t[2]%360*nf:0,N()):[y*tf,v*tf,m*tf]},E.angle=function(t){return arguments.length?(b=t%360*nf,N()):b*tf},E.reflectX=function(t){return arguments.length?(_=t?-1:1,N()):_<0},E.reflectY=function(t){return arguments.length?(x=t?-1:1,N()):x<0},E.precision=function(t){return arguments.length?(a=tp(u,S=t*t),C()):pf(S)},E.fitExtent=function(t,n){return Gd(E,t,n)},E.fitSize=function(t,n){return Zd(E,t,n)},E.fitWidth=function(t,n){return Qd(E,t,n)},E.fitHeight=function(t,n){return Kd(E,t,n)},function(){return n=t.apply(this,arguments),E.invert=n.invert&&k,N()}}function op(t){var n=0,e=Zs/3,r=ip(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*nf,e=t[1]*nf):[n*tf,e*tf]},i}function ap(t,n){var e=hf(t),r=(e+hf(n))/2;if(ef(r)<Vs)return function(t){var n=af(t);function e(t,e){return[t*n,hf(e)/n]}return e.invert=function(t,e){return[t/n,vf(e*n)]},e}(t);var i=1+e*(2*r-e),o=pf(i)/r;function a(t,n){var e=pf(i-2*r*hf(n))/r;return[e*hf(t*=r),o-e*af(t)]}return a.invert=function(t,n){var e=o-n,a=of(t,ef(e))*df(e);return e*r<0&&(a-=Zs*df(t)*df(e)),[a/r,vf((i-(t*t+e*e)*r*r)/(2*r))]},a}function up(){return op(ap).scale(155.424).center([0,33.6442])}function cp(){return up().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function sp(){var t,n,e,r,i,o,a=cp(),u=up().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=up().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){o=[t,n]}};function f(t){var n=t[0],a=t[1];return o=null,e.point(n,a),o||(r.point(n,a),o)||(i.point(n,a),o)}function l(){return t=n=null,f}return f.invert=function(t){var n=a.scale(),e=a.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},f.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),u.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e<i;)r[e].point(t,n)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},f.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),c.precision(t),l()):a.precision()},f.scale=function(t){return arguments.length?(a.scale(t),u.scale(.35*t),c.scale(t),f.translate(a.translate())):a.scale()},f.translate=function(t){if(!arguments.length)return a.translate();var n=a.scale(),o=+t[0],f=+t[1];return e=a.translate(t).clipExtent([[o-.455*n,f-.238*n],[o+.455*n,f+.238*n]]).stream(s),r=u.translate([o-.307*n,f+.201*n]).clipExtent([[o-.425*n+Vs,f+.12*n+Vs],[o-.214*n-Vs,f+.234*n-Vs]]).stream(s),i=c.translate([o-.205*n,f+.212*n]).clipExtent([[o-.214*n+Vs,f+.166*n+Vs],[o-.115*n-Vs,f+.234*n-Vs]]).stream(s),l()},f.fitExtent=function(t,n){return Gd(f,t,n)},f.fitSize=function(t,n){return Zd(f,t,n)},f.fitWidth=function(t,n){return Qd(f,t,n)},f.fitHeight=function(t,n){return Kd(f,t,n)},f.scale(1070)}function fp(t){return function(n,e){var r=af(n),i=af(e),o=t(r*i);return o===1/0?[2,0]:[o*i*hf(n),o*hf(e)]}}function lp(t){return function(n,e){var r=pf(n*n+e*e),i=t(r),o=hf(i),a=af(i);return[of(n*o,r*a),vf(r&&e*o/r)]}}var hp=fp((function(t){return pf(2/(1+t))}));function dp(){return rp(hp).scale(124.75).clipAngle(179.999)}hp.invert=lp((function(t){return 2*vf(t/2)}));var pp=fp((function(t){return(t=yf(t))&&t/hf(t)}));function gp(){return rp(pp).scale(79.4188).clipAngle(179.999)}function yp(t,n){return[t,ff(gf((Qs+n)/2))]}function vp(){return mp(yp).scale(961/Js)}function mp(t){var n,e,r,i=rp(t),o=i.center,a=i.scale,u=i.translate,c=i.clipExtent,s=null;function f(){var o=Zs*a(),u=i(Zl(i.rotate()).invert([0,0]));return c(null==s?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:t===yp?[[Math.max(u[0]-o,s),n],[Math.min(u[0]+o,e),r]]:[[s,Math.max(u[1]-o,n)],[e,Math.min(u[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),f()):a()},i.translate=function(t){return arguments.length?(u(t),f()):u()},i.center=function(t){return arguments.length?(o(t),f()):o()},i.clipExtent=function(t){return arguments.length?(null==t?s=n=e=r=null:(s=+t[0][0],n=+t[0][1],e=+t[1][0],r=+t[1][1]),f()):null==s?null:[[s,n],[e,r]]},f()}function bp(t){return gf((Qs+t)/2)}function _p(t,n){var e=af(t),r=t===n?hf(t):ff(e/af(n))/ff(bp(n)/bp(t)),i=e*lf(bp(t),r)/r;if(!r)return yp;function o(t,n){i>0?n<-Qs+Vs&&(n=-Qs+Vs):n>Qs-Vs&&(n=Qs-Vs);var e=i/lf(bp(n),r);return[e*hf(r*t),i-e*af(r*t)]}return o.invert=function(t,n){var e=i-n,o=df(r)*pf(t*t+e*e),a=of(t,ef(e))*df(e);return e*r<0&&(a-=Zs*df(t)*df(e)),[a/r,2*rf(lf(i/o,1/r))-Qs]},o}function xp(){return op(_p).scale(109.5).parallels([30,30])}function wp(t,n){return[t,n]}function Mp(){return rp(wp).scale(152.63)}function Tp(t,n){var e=af(t),r=t===n?hf(t):(e-af(n))/(n-t),i=e/r+t;if(ef(r)<Vs)return wp;function o(t,n){var e=i-n,o=r*t;return[e*hf(o),i-e*af(o)]}return o.invert=function(t,n){var e=i-n,o=of(t,ef(e))*df(e);return e*r<0&&(o-=Zs*df(t)*df(e)),[o/r,i-df(r)*pf(t*t+e*e)]},o}function Ap(){return op(Tp).scale(131.154).center([0,13.9389])}pp.invert=lp((function(t){return t})),yp.invert=function(t,n){return[t,2*rf(cf(n))-Qs]},wp.invert=wp;var Sp=1.340264,Ep=-.081106,kp=893e-6,Np=.003796,Cp=pf(3)/2;function Dp(t,n){var e=vf(Cp*hf(n)),r=e*e,i=r*r*r;return[t*af(e)/(Cp*(Sp+3*Ep*r+i*(7*kp+9*Np*r))),e*(Sp+Ep*r+i*(kp+Np*r))]}function Pp(){return rp(Dp).scale(177.158)}function qp(t,n){var e=af(n),r=af(t)*e;return[e*hf(t)/r,hf(n)/r]}function jp(){return rp(qp).scale(144.049).clipAngle(60)}function Lp(){var t,n,e,r,i,o,a,u=1,c=0,s=0,f=1,l=1,h=0,d=null,p=1,g=1,y=$d({point:function(t,n){var e=b([t,n]);this.stream.point(e[0],e[1])}}),v=Bh;function m(){return p=u*f,g=u*l,o=a=null,b}function b(e){var r=e[0]*p,i=e[1]*g;if(h){var o=i*t-r*n;r=r*t+i*n,i=o}return[r+c,i+s]}return b.invert=function(e){var r=e[0]-c,i=e[1]-s;if(h){var o=i*t+r*n;r=r*t-i*n,i=o}return[r/p,i/g]},b.stream=function(t){return o&&a===t?o:o=y(v(a=t))},b.postclip=function(t){return arguments.length?(v=t,d=e=r=i=null,m()):v},b.clipExtent=function(t){return arguments.length?(v=null==t?(d=e=r=i=null,Bh):mh(d=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),m()):null==d?null:[[d,e],[r,i]]},b.scale=function(t){return arguments.length?(u=+t,m()):u},b.translate=function(t){return arguments.length?(c=+t[0],s=+t[1],m()):[c,s]},b.angle=function(e){return arguments.length?(n=hf(h=e%360*nf),t=af(h),m()):h*tf},b.reflectX=function(t){return arguments.length?(f=t?-1:1,m()):f<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,m()):l<0},b.fitExtent=function(t,n){return Gd(b,t,n)},b.fitSize=function(t,n){return Zd(b,t,n)},b.fitWidth=function(t,n){return Qd(b,t,n)},b.fitHeight=function(t,n){return Kd(b,t,n)},b}function Op(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}function Rp(){return rp(Op).scale(175.295)}function zp(t,n){return[af(n)*hf(t),hf(n)]}function Ip(){return rp(zp).scale(249.5).clipAngle(90.000001)}function Hp(t,n){var e=af(n),r=1+af(t)*e;return[e*hf(t)/r,hf(n)/r]}function Fp(){return rp(Hp).scale(250).clipAngle(142)}function Bp(t,n){return[ff(gf((Qs+n)/2)),-t]}function Up(){var t=mp(Bp),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}function Yp(t,n){return t.parent===n.parent?1:2}function Wp(t,n){return t+n.x}function $p(t,n){return Math.max(t,n.y)}function Xp(){var t=Yp,n=1,e=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(Wp,0)/t.length}(e),n.y=function(t){return 1+t.reduce($p,0)}(e)):(n.x=o?a+=t(n,o):0,n.y=0,o=n)}));var u=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),s=u.x-t(u,c)/2,f=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-s)/(f-s)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Vp(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Gp(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Qp)):void 0===n&&(n=Zp);for(var e,r,i,o,a,u=new tg(t),c=[u];e=c.pop();)if((i=n(e.data))&&(a=(i=Array.from(i)).length))for(e.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new tg(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(Jp)}function Zp(t){return t.children}function Qp(t){return Array.isArray(t)?t[1]:null}function Kp(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Jp(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function tg(t){this.data=t,this.depth=this.height=0,this.parent=null}function ng(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Array.from(t))).length,o=[];r<i;)n=t[r],e&&ig(e,n)?++r:(e=ag(o=eg(o,n)),r=0);return e}function eg(t,n){var e,r;if(og(n,t))return[n];for(e=0;e<t.length;++e)if(rg(n,t[e])&&og(ug(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(rg(ug(t[e],t[r]),n)&&rg(ug(t[e],n),t[r])&&rg(ug(t[r],n),t[e])&&og(cg(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function rg(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function ig(t,n){var e=t.r-n.r+1e-9*Math.max(t.r,n.r,1),r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function og(t,n){for(var e=0;e<n.length;++e)if(!ig(t,n[e]))return!1;return!0}function ag(t){switch(t.length){case 1:return{x:(n=t[0]).x,y:n.y,r:n.r};case 2:return ug(t[0],t[1]);case 3:return cg(t[0],t[1],t[2])}var n}function ug(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,a=n.y,u=n.r,c=o-e,s=a-r,f=u-i,l=Math.sqrt(c*c+s*s);return{x:(e+o+c/l*f)/2,y:(r+a+s/l*f)/2,r:(l+i+u)/2}}function cg(t,n,e){var r=t.x,i=t.y,o=t.r,a=n.x,u=n.y,c=n.r,s=e.x,f=e.y,l=e.r,h=r-a,d=r-s,p=i-u,g=i-f,y=c-o,v=l-o,m=r*r+i*i-o*o,b=m-a*a-u*u+c*c,_=m-s*s-f*f+l*l,x=d*p-h*g,w=(p*_-g*b)/(2*x)-r,M=(g*y-p*v)/x,T=(d*b-h*_)/(2*x)-i,A=(h*v-d*y)/x,S=M*M+A*A-1,E=2*(o+w*M+T*A),k=w*w+T*T-o*o,N=-(S?(E+Math.sqrt(E*E-4*S*k))/(2*S):k/E);return{x:r+w+M*N,y:i+T+A*N,r:N}}function sg(t,n,e){var r,i,o,a,u=t.x-n.x,c=t.y-n.y,s=u*u+c*c;s?(i=n.r+e.r,i*=i,a=t.r+e.r,i>(a*=a)?(r=(s+a-i)/(2*s),o=Math.sqrt(Math.max(0,a/s-r*r)),e.x=t.x-r*u-o*c,e.y=t.y-r*c+o*u):(r=(s+i-a)/(2*s),o=Math.sqrt(Math.max(0,i/s-r*r)),e.x=n.x+r*u-o*c,e.y=n.y+r*c+o*u)):(e.x=n.x+e.r,e.y=n.y)}function fg(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function lg(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function hg(t){this._=t,this.next=null,this.previous=null}function dg(t){if(!(o=(n=t,t="object"==typeof n&&"length"in n?n:Array.from(n)).length))return 0;var n,e,r,i,o,a,u,c,s,f,l,h;if((e=t[0]).x=0,e.y=0,!(o>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(o>2))return e.r+r.r;sg(r,e,i=t[2]),e=new hg(e),r=new hg(r),i=new hg(i),e.next=i.previous=r,r.next=e.previous=i,i.next=r.previous=e;t:for(c=3;c<o;++c){sg(e._,r._,i=t[c]),i=new hg(i),s=r.next,f=e.previous,l=r._.r,h=e._.r;do{if(l<=h){if(fg(s._,i._)){r=s,e.next=r,r.previous=e,--c;continue t}l+=s._.r,s=s.next}else{if(fg(f._,i._)){(e=f).next=r,r.previous=e,--c;continue t}h+=f._.r,f=f.previous}}while(s!==f.next);for(i.previous=e,i.next=r,e.next=r.previous=r=i,a=lg(e);(i=i.next)!==r;)(u=lg(i))<a&&(e=i,a=u);r=e.next}for(e=[r._],i=r;(i=i.next)!==r;)e.push(i._);for(i=ng(e),c=0;c<o;++c)(e=t[c]).x-=i.x,e.y-=i.y;return i.r}function pg(t){return dg(t),t}function gg(t){return null==t?null:yg(t)}function yg(t){if("function"!=typeof t)throw new Error;return t}function vg(){return 0}function mg(t){return function(){return t}}function bg(t){return Math.sqrt(t.value)}function _g(){var t=null,n=1,e=1,r=vg;function i(i){return i.x=n/2,i.y=e/2,t?i.eachBefore(xg(t)).eachAfter(wg(r,.5)).eachBefore(Mg(1)):i.eachBefore(xg(bg)).eachAfter(wg(vg,1)).eachAfter(wg(r,i.r/Math.min(n,e))).eachBefore(Mg(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=gg(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:mg(+t),i):r},i}function xg(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function wg(t,n){return function(e){if(r=e.children){var r,i,o,a=r.length,u=t(e)*n||0;if(u)for(i=0;i<a;++i)r[i].r+=u;if(o=dg(r),u)for(i=0;i<a;++i)r[i].r-=u;e.r=o+u}}}function Mg(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}function Tg(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ag(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(r-n)/t.value;++u<c;)(o=a[u]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*s}function Sg(){var t=1,n=1,e=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/o,i.eachBefore(function(t,n){return function(r){r.children&&Ag(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,a=r.x1-e,u=r.y1-e;a<i&&(i=a=(i+a)/2),u<o&&(o=u=(o+u)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=u}}(n,o)),r&&i.eachBefore(Tg),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i}Dp.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=e=(r*(Sp+Ep*i+o*(kp+Np*i))-n)/(Sp+3*Ep*i+o*(7*kp+9*Np*i)))*r)*i*i,!(ef(e)<Gs));++a);return[Cp*t*(Sp+3*Ep*i+o*(7*kp+9*Np*i))/af(r),vf(hf(r)/Cp)]},qp.invert=lp(rf),Op.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,a=o*o;r-=e=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-n)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(ef(e)>Vs&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},zp.invert=lp(vf),Hp.invert=lp((function(t){return 2*rf(t)})),Bp.invert=function(t,n){return[-n,2*rf(cf(t))-Qs]},tg.prototype=Gp.prototype={constructor:tg,count:function(){return this.eachAfter(Vp)},each:function(t,n){let e=-1;for(const r of this)t.call(n,r,++e,this);return this},eachAfter:function(t,n){for(var e,r,i,o=this,a=[o],u=[],c=-1;o=a.pop();)if(u.push(o),e=o.children)for(r=0,i=e.length;r<i;++r)a.push(e[r]);for(;o=u.pop();)t.call(n,o,++c,this);return this},eachBefore:function(t,n){for(var e,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(n,i,++a,this),e=i.children)for(r=e.length-1;r>=0;--r)o.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Gp(this).eachBefore(Kp)},[Symbol.iterator]:function*(){var t,n,e,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e])}while(o.length)}};var Eg={depth:-1},kg={};function Ng(t){return t.id}function Cg(t){return t.parentId}function Dg(){var t=Ng,n=Cg;function e(e){var r,i,o,a,u,c,s,f=Array.from(e),l=f.length,h=new Map;for(i=0;i<l;++i)r=f[i],u=f[i]=new tg(r),null!=(c=t(r,i,e))&&(c+="")&&(s=u.id=c,h.set(s,h.has(s)?kg:u)),null!=(c=n(r,i,e))&&(c+="")&&(u.parent=c);for(i=0;i<l;++i)if(c=(u=f[i]).parent){if(!(a=h.get(c)))throw new Error("missing: "+c);if(a===kg)throw new Error("ambiguous: "+c);a.children?a.children.push(u):a.children=[u],u.parent=a}else{if(o)throw new Error("multiple roots");o=u}if(!o)throw new Error("no root");if(o.parent=Eg,o.eachBefore((function(t){t.depth=t.parent.depth+1,--l})).eachBefore(Jp),o.parent=null,l>0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=yg(n),e):t},e.parentId=function(t){return arguments.length?(n=yg(t),e):n},e}function Pg(t,n){return t.parent===n.parent?1:2}function qg(t){var n=t.children;return n?n[0]:t.t}function jg(t){var n=t.children;return n?n[n.length-1]:t.t}function Lg(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Og(t,n,e){return t.a.parent===n.parent?t.a:e}function Rg(t,n){this._=t,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=n}function zg(){var t=Pg,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,a=new Rg(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new Rg(r[i],i)),e.parent=n;return(a.parent=new Rg(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var s=i,f=i,l=i;i.eachBefore((function(t){t.x<s.x&&(s=t),t.x>f.x&&(f=t),t.depth>l.depth&&(l=t)}));var h=s===f?1:t(s,f)/2,d=h-s.x,p=n/(f.x+h+d),g=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,a=n,u=e,c=o.parent.children[0],s=o.m,f=a.m,l=u.m,h=c.m;u=jg(u),o=qg(o),u&&o;)c=qg(c),(a=jg(a)).a=n,(i=u.z+l-o.z-s+t(u._,o._))>0&&(Lg(Og(u,n,r),n,i),s+=i,f+=i),l+=u.m,s+=o.m,h+=c.m,f+=a.m;u&&!jg(a)&&(a.t=u,a.m+=l-f),o&&!qg(c)&&(c.t=o,c.m+=s-h,r=n)}return r}(n,i,n.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Ig(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(i-e)/t.value;++u<c;)(o=a[u]).x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*s}Rg.prototype=Object.create(tg.prototype);var Hg=(1+Math.sqrt(5))/2;function Fg(t,n,e,r,i,o){for(var a,u,c,s,f,l,h,d,p,g,y,v=[],m=n.children,b=0,_=0,x=m.length,w=n.value;b<x;){c=i-e,s=o-r;do{f=m[_++].value}while(!f&&_<x);for(l=h=f,y=f*f*(g=Math.max(s/c,c/s)/(w*t)),p=Math.max(h/y,y/l);_<x;++_){if(f+=u=m[_].value,u<l&&(l=u),u>h&&(h=u),y=f*f*g,(d=Math.max(h/y,y/l))>p){f-=u;break}p=d}v.push(a={value:f,dice:c<s,children:m.slice(b,_)}),a.dice?Ag(a,e,r,i,w?r+=s*f/w:o):Ig(a,e,r,w?e+=c*f/w:i,o),w-=f,b=_}return v}const Bg=function t(n){function e(t,e,r,i,o){Fg(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Hg);function Ug(){var t=Bg,n=!1,e=1,r=1,i=[0],o=vg,a=vg,u=vg,c=vg,s=vg;function f(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(Tg),t}function l(n){var e=i[n.depth],r=n.x0+e,f=n.y0+e,l=n.x1-e,h=n.y1-e;l<r&&(r=l=(r+l)/2),h<f&&(f=h=(f+h)/2),n.x0=r,n.y0=f,n.x1=l,n.y1=h,n.children&&(e=i[n.depth+1]=o(n)/2,r+=s(n)-e,f+=a(n)-e,(l-=u(n)-e)<r&&(r=l=(r+l)/2),(h-=c(n)-e)<f&&(f=h=(f+h)/2),t(n,r,f,l,h))}return f.round=function(t){return arguments.length?(n=!!t,f):n},f.size=function(t){return arguments.length?(e=+t[0],r=+t[1],f):[e,r]},f.tile=function(n){return arguments.length?(t=yg(n),f):t},f.padding=function(t){return arguments.length?f.paddingInner(t).paddingOuter(t):f.paddingInner()},f.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:mg(+t),f):o},f.paddingOuter=function(t){return arguments.length?f.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):f.paddingTop()},f.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:mg(+t),f):a},f.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:mg(+t),f):u},f.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:mg(+t),f):c},f.paddingLeft=function(t){return arguments.length?(s="function"==typeof t?t:mg(+t),f):s},f}function Yg(t,n,e,r,i){var o,a,u=t.children,c=u.length,s=new Array(c+1);for(s[0]=a=o=0;o<c;++o)s[o+1]=a+=u[o].value;!function t(n,e,r,i,o,a,c){if(n>=e-1){var f=u[n];return f.x0=i,f.y0=o,f.x1=a,void(f.y1=c)}for(var l=s[n],h=r/2+l,d=n+1,p=e-1;d<p;){var g=d+p>>>1;s[g]<h?d=g+1:p=g}h-s[d-1]<s[d]-h&&n+1<d&&--d;var y=s[d]-l,v=r-y;if(a-i>c-o){var m=r?(i*v+a*y)/r:a;t(n,d,y,i,o,m,c),t(d,e,v,m,o,a,c)}else{var b=r?(o*v+c*y)/r:c;t(n,d,y,i,o,a,b),t(d,e,v,i,b,a,c)}}(0,c,t.value,n,e,r,i)}function Wg(t,n,e,r,i){(1&t.depth?Ig:Ag)(t,n,e,r,i)}const $g=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,c,s,f,l=-1,h=a.length,d=t.value;++l<h;){for(c=(u=a[l]).children,s=u.value=0,f=c.length;s<f;++s)u.value+=c[s].value;u.dice?Ag(u,e,r,i,d?r+=(o-r)*u.value/d:o):Ig(u,e,r,d?e+=(i-e)*u.value/d:i,o),d-=u.value}else t._squarify=a=Fg(n,t,e,r,i,o),a.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Hg);function Xg(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function Vg(t,n){var e=vr(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}}function Gg(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Zg(t){return((t=Math.exp(t))+1/t)/2}const Qg=function t(n,e,r){function i(t,i){var o,a,u=t[0],c=t[1],s=t[2],f=i[0],l=i[1],h=i[2],d=f-u,p=l-c,g=d*d+p*p;if(g<1e-12)a=Math.log(h/s)/n,o=function(t){return[u+t*d,c+t*p,s*Math.exp(n*t*a)]};else{var y=Math.sqrt(g),v=(h*h-s*s+r*g)/(2*s*e*y),m=(h*h-s*s-r*g)/(2*h*e*y),b=Math.log(Math.sqrt(v*v+1)-v),_=Math.log(Math.sqrt(m*m+1)-m);a=(_-b)/n,o=function(t){var r,i=t*a,o=Zg(b),f=s/(e*y)*(o*(r=n*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[u+f*d,c+f*p,s*o/Zg(n*i+b)]}}return o.duration=1e3*a*n/Math.SQRT2,o}return i.rho=function(n){var e=Math.max(.001,+n),r=e*e;return t(e,r,r*r)},i}(Math.SQRT2,2,4);function Kg(t){return function(n,e){var r=t((n=sr(n)).h,(e=sr(e)).h),i=mr(n.s,e.s),o=mr(n.l,e.l),a=mr(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=a(t),n+""}}}const Jg=Kg(vr);var ty=Kg(mr);function ny(t,n){var e=mr((t=_a(t)).l,(n=_a(n)).l),r=mr(t.a,n.a),i=mr(t.b,n.b),o=mr(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function ey(t){return function(n,e){var r=t((n=ka(n)).h,(e=ka(e)).h),i=mr(n.c,e.c),o=mr(n.l,e.l),a=mr(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=a(t),n+""}}}const ry=ey(vr);var iy=ey(mr);function oy(t){return function n(e){function r(n,r){var i=t((n=Ha(n)).h,(r=Ha(r)).h),o=mr(n.s,r.s),a=mr(n.l,r.l),u=mr(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=a(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}const ay=oy(vr);var uy=oy(mr);function cy(t,n){void 0===n&&(n=t,t=qr);for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}function sy(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e}function fy(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2}function ly(t){for(var n,e,r=-1,i=t.length,o=0,a=0,u=t[i-1],c=0;++r<i;)n=u,u=t[r],c+=e=n[0]*u[1]-u[0]*n[1],o+=(n[0]+u[0])*e,a+=(n[1]+u[1])*e;return[o/(c*=3),a/c]}function hy(t,n){return t[0]-n[0]||t[1]-n[1]}function dy(t){const n=t.length,e=[0,1];let r,i=2;for(r=2;r<n;++r){for(;i>1&&(o=t[e[i-2]],a=t[e[i-1]],u=t[r],(a[0]-o[0])*(u[1]-o[1])-(a[1]-o[1])*(u[0]-o[0])<=0);)--i;e[i++]=r}var o,a,u;return e.slice(0,i)}function py(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(hy),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=dy(r),a=dy(i),u=a[0]===o[0],c=a[a.length-1]===o[o.length-1],s=[];for(n=o.length-1;n>=0;--n)s.push(t[r[o[n]][2]]);for(n=+u;n<a.length-c;++n)s.push(t[r[a[n]][2]]);return s}function gy(t,n){for(var e,r,i=t.length,o=t[i-1],a=n[0],u=n[1],c=o[0],s=o[1],f=!1,l=0;l<i;++l)e=(o=t[l])[0],(r=o[1])>u!=s>u&&a<(c-e)*(u-r)/(s-r)+e&&(f=!f),c=e,s=r;return f}function yy(t){for(var n,e,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r<i;)n=a,e=u,n-=a=(o=t[r])[0],e-=u=o[1],c+=Math.hypot(n,e);return c}const vy=Math.random,my=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(vy),by=function t(n){function e(t,e){return arguments.length<2&&(e=t,t=0),t=Math.floor(t),e=Math.floor(e)-t,function(){return Math.floor(n()*e+t)}}return e.source=t,e}(vy),_y=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(vy),xy=function t(n){var e=_y.source(n);function r(){var t=e.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(vy),wy=function t(n){function e(t){return(t=+t)<=0?()=>0:function(){for(var e=0,r=t;r>1;--r)e+=n();return e+r*n()}}return e.source=t,e}(vy),My=function t(n){var e=wy.source(n);function r(t){if(0==(t=+t))return n;var r=e(t);return function(){return r()/t}}return r.source=t,r}(vy),Ty=function t(n){function e(t){return function(){return-Math.log1p(-n())/t}}return e.source=t,e}(vy),Ay=function t(n){function e(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-n(),t)}}return e.source=t,e}(vy),Sy=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+t)}}return e.source=t,e}(vy),Ey=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-n())/t)})}return e.source=t,e}(vy),ky=function t(n){var e=_y.source(n)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-n())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),a=t<1?()=>Math.pow(n(),1/t):()=>1;return function(){do{do{var t=e(),u=1+o*t}while(u<=0);u*=u*u;var c=1-n()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-u+Math.log(u)));return i*u*a()*r}}return r.source=t,r}(vy),Ny=function t(n){var e=ky.source(n);function r(t,n){var r=e(t),i=e(n);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(vy),Cy=function t(n){var e=Ey.source(n),r=Ny.source(n);function i(t,n){return t=+t,(n=+n)>=1?()=>t:n<=0?()=>0:function(){for(var i=0,o=t,a=n;o*a>16&&o*(1-a)>16;){var u=Math.floor((o+1)*a),c=r(u,o-u+1)();c<=a?(i+=u,o-=u,a=(a-c)/(1-c)):(o=u-1,a/=c)}for(var s=a<.5,f=e(s?a:1-a),l=f(),h=0;l<=o;++h)l+=f();return i+(s?h:o-h)}}return i.source=t,i}(vy),Dy=function t(n){function e(t,e,r){var i;return 0==(t=+t)?i=t=>-Math.log(t):(t=1/t,i=n=>Math.pow(n,t)),e=null==e?0:+e,r=null==r?1:+r,function(){return e+r*i(-Math.log1p(-n()))}}return e.source=t,e}(vy),Py=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){return t+e*Math.tan(Math.PI*n())}}return e.source=t,e}(vy),qy=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){var r=n();return t+e*Math.log(r/(1-r))}}return e.source=t,e}(vy),jy=function t(n){var e=ky.source(n),r=Cy.source(n);function i(t){return function(){for(var i=0,o=t;o>16;){var a=Math.floor(.875*o),u=e(a)();if(u>o)return i+r(a-1,o/u)();i+=a,o-=u}for(var c=-Math.log1p(-n()),s=0;c<=o;++s)c-=Math.log1p(-n());return i+s}}return i.source=t,i}(vy),Ly=1/4294967296;function Oy(t=Math.random()){let n=0|(0<=t&&t<1?t/Ly:Math.abs(t));return()=>(n=1664525*n+1013904223|0,Ly*(n>>>0))}function Ry(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function zy(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}const Iy=Symbol("implicit");function Hy(){var t=new T,n=[],e=[],r=Iy;function i(i){let o=t.get(i);if(void 0===o){if(r!==Iy)return r;t.set(i,o=n.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new T;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Hy(n,e).unknown(r)},Ry.apply(i,arguments),i}function Fy(){var t,n,e=Hy().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,u=!1,c=0,s=0,f=.5;function l(){var e=r().length,l=a<o,h=l?a:o,d=l?o:a;t=(d-h)/Math.max(1,e-c+2*s),u&&(t=Math.floor(t)),h+=(d-h-t*(e-c))*f,n=t*(1-c),u&&(h=Math.round(h),n=Math.round(n));var p=xt(e).map((function(n){return h+t*n}));return i(l?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),l()):r()},e.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,l()):[o,a]},e.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,l()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,l()):u},e.padding=function(t){return arguments.length?(c=Math.min(1,s=+t),l()):c},e.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),l()):c},e.paddingOuter=function(t){return arguments.length?(s=+t,l()):s},e.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),l()):f},e.copy=function(){return Fy(r(),[o,a]).round(u).paddingInner(c).paddingOuter(s).align(f)},Ry.apply(l(),arguments)}function By(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return By(n())},t}function Uy(){return By(Fy.apply(null,arguments).paddingInner(1))}function Yy(t){return+t}var Wy=[0,1];function $y(t){return t}function Xy(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Vy(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=Xy(i,r),o=e(a,o)):(r=Xy(r,i),o=e(o,a)),function(t){return o(r(t))}}function Gy(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)i[a]=Xy(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=f(t,n,1,r)-1;return o[e](i[e](n))}}function Zy(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Qy(){var t,n,e,r,i,o,a=Wy,u=Wy,c=qr,s=$y;function f(){var t,n,e,c=Math.min(a.length,u.length);return s!==$y&&(t=a[0],n=a[c-1],t>n&&(e=t,t=n,n=e),s=function(e){return Math.max(t,Math.min(n,e))}),r=c>2?Gy:Vy,i=o=null,l}function l(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),u,c)))(t(s(n)))}return l.invert=function(e){return s(n((o||(o=r(u,a.map(t),kr)))(e)))},l.domain=function(t){return arguments.length?(a=Array.from(t,Yy),f()):a.slice()},l.range=function(t){return arguments.length?(u=Array.from(t),f()):u.slice()},l.rangeRound=function(t){return u=Array.from(t),c=Gg,f()},l.clamp=function(t){return arguments.length?(s=!!t||$y,f()):s!==$y},l.interpolate=function(t){return arguments.length?(c=t,f()):c},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,f()}}function Ky(){return Qy()($y,$y)}function Jy(t,n,e,r){var i,o=nt(t,n,e);switch((r=qs(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=$s(o,a))||(r.precision=i),Hs(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Xs(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Ws(o))||(r.precision=i-2*("%"===r.type))}return Is(r)}function tv(t){var n=t.domain;return t.ticks=function(t){var e=n();return J(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Jy(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),a=0,u=o.length-1,c=o[a],s=o[u],f=10;for(s<c&&(i=c,c=s,s=i,i=a,a=u,u=i);f-- >0;){if((i=tt(c,s,e))===r)return o[a]=c,o[u]=s,n(o);if(i>0)c=Math.floor(c/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,s=Math.floor(s*i)/i}r=i}return t},t}function nv(){var t=Ky();return t.copy=function(){return Zy(t,nv())},Ry.apply(t,arguments),tv(t)}function ev(t){var n;function e(t){return null==t||isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,Yy),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return ev(t).unknown(n)},t=arguments.length?Array.from(t,Yy):[0,1],tv(e)}function rv(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t}function iv(t){return Math.log(t)}function ov(t){return Math.exp(t)}function av(t){return-Math.log(-t)}function uv(t){return-Math.exp(-t)}function cv(t){return isFinite(t)?+("1e"+t):t<0?0:t}function sv(t){return function(n){return-t(-n)}}function fv(t){var n,e,r=t(iv,ov),i=r.domain,o=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}(o),e=function(t){return 10===t?cv:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}(o),i()[0]<0?(n=sv(n),e=sv(e),t(av,uv)):t(iv,ov),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r,a=i(),u=a[0],c=a[a.length-1];(r=c<u)&&(h=u,u=c,c=h);var s,f,l,h=n(u),d=n(c),p=null==t?10:+t,g=[];if(!(o%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),u>0){for(;h<=d;++h)for(f=1,s=e(h);f<o;++f)if(!((l=s*f)<u)){if(l>c)break;g.push(l)}}else for(;h<=d;++h)for(f=o-1,s=e(h);f>=1;--f)if(!((l=s*f)<u)){if(l>c)break;g.push(l)}2*g.length<p&&(g=J(u,c,p))}else g=J(h,d,Math.min(d-h,p)).map(e);return r?g.reverse():g},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=Is(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/e(Math.round(n(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(rv(i(),{floor:function(t){return e(Math.floor(n(t)))},ceil:function(t){return e(Math.ceil(n(t)))}}))},r}function lv(){var t=fv(Qy()).domain([1,10]);return t.copy=function(){return Zy(t,lv()).base(t.base())},Ry.apply(t,arguments),t}function hv(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function dv(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function pv(t){var n=1,e=t(hv(n),dv(n));return e.constant=function(e){return arguments.length?t(hv(n=+e),dv(n)):n},tv(e)}function gv(){var t=pv(Qy());return t.copy=function(){return Zy(t,gv()).constant(t.constant())},Ry.apply(t,arguments)}function yv(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function vv(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function mv(t){return t<0?-t*t:t*t}function bv(t){var n=t($y,$y),e=1;function r(){return 1===e?t($y,$y):.5===e?t(vv,mv):t(yv(e),yv(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},tv(n)}function _v(){var t=bv(Qy());return t.copy=function(){return Zy(t,_v()).exponent(t.exponent())},Ry.apply(t,arguments),t}function xv(){return _v.apply(null,arguments).exponent(.5)}function wv(t){return Math.sign(t)*t*t}function Mv(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Tv(){var t,n=Ky(),e=[0,1],r=!1;function i(e){var i=Mv(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(wv(t))},i.domain=function(t){return arguments.length?(n.domain(t),i):n.domain()},i.range=function(t){return arguments.length?(n.range((e=Array.from(t,Yy)).map(wv)),i):e.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(n.clamp(t),i):n.clamp()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Tv(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},Ry.apply(i,arguments),tv(i)}function Av(){var t,n=[],e=[],i=[];function o(){var t=0,r=Math.max(1,e.length);for(i=new Array(r-1);++t<r;)i[t-1]=ft(n,t/r);return a}function a(n){return null==n||isNaN(n=+n)?t:e[f(i,n)]}return a.invertExtent=function(t){var r=e.indexOf(t);return r<0?[NaN,NaN]:[r>0?i[r-1]:n[0],r<i.length?i[r]:n[n.length-1]]},a.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(r),o()},a.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},a.unknown=function(n){return arguments.length?(t=n,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return Av().domain(n).range(e).unknown(t)},Ry.apply(a,arguments)}function Sv(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[f(i,n,0,r)]:t}function u(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,u()):[n,e]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,u()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[n,i[0]]:a>=r?[i[r-1],e]:[i[a-1],i[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Sv().domain([n,e]).range(o).unknown(t)},Ry.apply(tv(a),arguments)}function Ev(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[f(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Ev().domain(n).range(e).unknown(t)},Ry.apply(i,arguments)}const kv=1e3,Nv=6e4,Cv=36e5,Dv=864e5,Pv=6048e5,qv=31536e6;var jv=new Date,Lv=new Date;function Ov(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var a,u=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a<e&&e<r);return u},i.filter=function(e){return Ov((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return jv.setTime(+n),Lv.setTime(+r),t(jv),t(Lv),Math.floor(e(jv,Lv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Rv=Ov((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Rv.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ov((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Rv:null};const zv=Rv;var Iv=Rv.range,Hv=Ov((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*kv)}),(function(t,n){return(n-t)/kv}),(function(t){return t.getUTCSeconds()}));const Fv=Hv;var Bv=Hv.range,Uv=Ov((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*kv)}),(function(t,n){t.setTime(+t+n*Nv)}),(function(t,n){return(n-t)/Nv}),(function(t){return t.getMinutes()}));const Yv=Uv;var Wv=Uv.range,$v=Ov((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*kv-t.getMinutes()*Nv)}),(function(t,n){t.setTime(+t+n*Cv)}),(function(t,n){return(n-t)/Cv}),(function(t){return t.getHours()}));const Xv=$v;var Vv=$v.range,Gv=Ov((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nv)/Dv),(t=>t.getDate()-1));const Zv=Gv;var Qv=Gv.range;function Kv(t){return Ov((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nv)/Pv}))}var Jv=Kv(0),tm=Kv(1),nm=Kv(2),em=Kv(3),rm=Kv(4),im=Kv(5),om=Kv(6),am=Jv.range,um=tm.range,cm=nm.range,sm=em.range,fm=rm.range,lm=im.range,hm=om.range,dm=Ov((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const pm=dm;var gm=dm.range,ym=Ov((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ym.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ov((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const vm=ym;var mm=ym.range,bm=Ov((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Nv)}),(function(t,n){return(n-t)/Nv}),(function(t){return t.getUTCMinutes()}));const _m=bm;var xm=bm.range,wm=Ov((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Cv)}),(function(t,n){return(n-t)/Cv}),(function(t){return t.getUTCHours()}));const Mm=wm;var Tm=wm.range,Am=Ov((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Dv}),(function(t){return t.getUTCDate()-1}));const Sm=Am;var Em=Am.range;function km(t){return Ov((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Pv}))}var Nm=km(0),Cm=km(1),Dm=km(2),Pm=km(3),qm=km(4),jm=km(5),Lm=km(6),Om=Nm.range,Rm=Cm.range,zm=Dm.range,Im=Pm.range,Hm=qm.range,Fm=jm.range,Bm=Lm.range,Um=Ov((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Ym=Um;var Wm=Um.range,$m=Ov((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));$m.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ov((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const Xm=$m;var Vm=$m.range;function Gm(t,n,e,r,o,a){const u=[[Fv,1,kv],[Fv,5,5e3],[Fv,15,15e3],[Fv,30,3e4],[a,1,Nv],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,Cv],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Dv],[r,2,1728e5],[e,1,Pv],[n,1,2592e6],[n,3,7776e6],[t,1,qv]];function c(n,e,r){const o=Math.abs(e-n)/r,a=i((([,,t])=>t)).right(u,o);if(a===u.length)return t.every(nt(n/qv,e/qv,r));if(0===a)return zv.every(Math.max(nt(n,e,r),1));const[c,s]=u[o/u[a-1][2]<u[a][2]/o?a-1:a];return c.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:c(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},c]}const[Zm,Qm]=Gm(Xm,Ym,Nm,Sm,Mm,_m),[Km,Jm]=Gm(vm,pm,Jv,Zv,Xv,Yv);function tb(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function nb(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function eb(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function rb(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=gb(i),f=yb(i),l=gb(o),h=yb(o),d=gb(a),p=yb(a),g=gb(u),y=yb(u),v=gb(c),m=yb(c),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Rb,e:Rb,f:Bb,g:Jb,G:n_,H:zb,I:Ib,j:Hb,L:Fb,m:Ub,M:Yb,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:T_,s:A_,S:Wb,u:$b,U:Xb,V:Gb,w:Zb,W:Qb,x:null,X:null,y:Kb,Y:t_,Z:e_,"%":M_},_={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:r_,e:r_,f:c_,g:b_,G:x_,H:i_,I:o_,j:a_,L:u_,m:s_,M:f_,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:T_,s:A_,S:l_,u:h_,U:d_,V:g_,w:y_,W:v_,x:null,X:null,y:m_,Y:__,Z:w_,"%":M_},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=m.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return T(t,n,e,r)},d:Eb,e:Eb,f:qb,g:Mb,G:wb,H:Nb,I:Nb,j:kb,L:Pb,m:Sb,M:Cb,p:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=f.get(r[0].toLowerCase()),e+r[0].length):-1},q:Ab,Q:Lb,s:Ob,S:Db,u:mb,U:bb,V:_b,w:vb,W:xb,x:function(t,n,r){return T(t,e,n,r)},X:function(t,n,e){return T(t,r,n,e)},y:Mb,Y:wb,Z:Tb,"%":jb};function w(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++u<s;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(i=sb[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function M(t,n){return function(e){var r,i,o=eb(1900,void 0,1);if(T(o,t,e+="",0)!=e.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(n&&!("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=nb(eb(o.y,0,1))).getUTCDay(),r=i>4||0===i?Cm.ceil(r):Cm(r),r=Sm.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=tb(eb(o.y,0,1))).getDay(),r=i>4||0===i?tm.ceil(r):tm(r),r=Zv.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?nb(eb(o.y,0,1)).getUTCDay():tb(eb(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,nb(o)):tb(o)}}function T(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a<u;){if(r>=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=x[i in sb?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),_.x=w(e,_),_.X=w(r,_),_.c=w(n,_),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",_);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var ib,ob,ab,ub,cb,sb={"-":"",_:" ",0:"0"},fb=/^\s*\d+/,lb=/^%/,hb=/[\\^$*+?|[\]().{}]/g;function db(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function pb(t){return t.replace(hb,"\\$&")}function gb(t){return new RegExp("^(?:"+t.map(pb).join("|")+")","i")}function yb(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function vb(t,n,e){var r=fb.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function mb(t,n,e){var r=fb.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function bb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function _b(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function xb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function wb(t,n,e){var r=fb.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Mb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Tb(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Ab(t,n,e){var r=fb.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Sb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Eb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function kb(t,n,e){var r=fb.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Nb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Cb(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Db(t,n,e){var r=fb.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Pb(t,n,e){var r=fb.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function qb(t,n,e){var r=fb.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function jb(t,n,e){var r=lb.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Lb(t,n,e){var r=fb.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Ob(t,n,e){var r=fb.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Rb(t,n){return db(t.getDate(),n,2)}function zb(t,n){return db(t.getHours(),n,2)}function Ib(t,n){return db(t.getHours()%12||12,n,2)}function Hb(t,n){return db(1+Zv.count(vm(t),t),n,3)}function Fb(t,n){return db(t.getMilliseconds(),n,3)}function Bb(t,n){return Fb(t,n)+"000"}function Ub(t,n){return db(t.getMonth()+1,n,2)}function Yb(t,n){return db(t.getMinutes(),n,2)}function Wb(t,n){return db(t.getSeconds(),n,2)}function $b(t){var n=t.getDay();return 0===n?7:n}function Xb(t,n){return db(Jv.count(vm(t)-1,t),n,2)}function Vb(t){var n=t.getDay();return n>=4||0===n?rm(t):rm.ceil(t)}function Gb(t,n){return t=Vb(t),db(rm.count(vm(t),t)+(4===vm(t).getDay()),n,2)}function Zb(t){return t.getDay()}function Qb(t,n){return db(tm.count(vm(t)-1,t),n,2)}function Kb(t,n){return db(t.getFullYear()%100,n,2)}function Jb(t,n){return db((t=Vb(t)).getFullYear()%100,n,2)}function t_(t,n){return db(t.getFullYear()%1e4,n,4)}function n_(t,n){var e=t.getDay();return db((t=e>=4||0===e?rm(t):rm.ceil(t)).getFullYear()%1e4,n,4)}function e_(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+db(n/60|0,"0",2)+db(n%60,"0",2)}function r_(t,n){return db(t.getUTCDate(),n,2)}function i_(t,n){return db(t.getUTCHours(),n,2)}function o_(t,n){return db(t.getUTCHours()%12||12,n,2)}function a_(t,n){return db(1+Sm.count(Xm(t),t),n,3)}function u_(t,n){return db(t.getUTCMilliseconds(),n,3)}function c_(t,n){return u_(t,n)+"000"}function s_(t,n){return db(t.getUTCMonth()+1,n,2)}function f_(t,n){return db(t.getUTCMinutes(),n,2)}function l_(t,n){return db(t.getUTCSeconds(),n,2)}function h_(t){var n=t.getUTCDay();return 0===n?7:n}function d_(t,n){return db(Nm.count(Xm(t)-1,t),n,2)}function p_(t){var n=t.getUTCDay();return n>=4||0===n?qm(t):qm.ceil(t)}function g_(t,n){return t=p_(t),db(qm.count(Xm(t),t)+(4===Xm(t).getUTCDay()),n,2)}function y_(t){return t.getUTCDay()}function v_(t,n){return db(Cm.count(Xm(t)-1,t),n,2)}function m_(t,n){return db(t.getUTCFullYear()%100,n,2)}function b_(t,n){return db((t=p_(t)).getUTCFullYear()%100,n,2)}function __(t,n){return db(t.getUTCFullYear()%1e4,n,4)}function x_(t,n){var e=t.getUTCDay();return db((t=e>=4||0===e?qm(t):qm.ceil(t)).getUTCFullYear()%1e4,n,4)}function w_(){return"+0000"}function M_(){return"%"}function T_(t){return+t}function A_(t){return Math.floor(+t/1e3)}function S_(t){return ib=rb(t),ob=ib.format,ab=ib.parse,ub=ib.utcFormat,cb=ib.utcParse,ib}function E_(t){return new Date(t)}function k_(t){return t instanceof Date?+t:+new Date(+t)}function N_(t,n,e,r,i,o,a,u,c,s){var f=Ky(),l=f.invert,h=f.domain,d=s(".%L"),p=s(":%S"),g=s("%I:%M"),y=s("%I %p"),v=s("%a %d"),m=s("%b %d"),b=s("%B"),_=s("%Y");function x(t){return(c(t)<t?d:u(t)<t?p:a(t)<t?g:o(t)<t?y:r(t)<t?i(t)<t?v:m:e(t)<t?b:_)(t)}return f.invert=function(t){return new Date(l(t))},f.domain=function(t){return arguments.length?h(Array.from(t,k_)):h().map(E_)},f.ticks=function(n){var e=h();return t(e[0],e[e.length-1],null==n?10:n)},f.tickFormat=function(t,n){return null==n?x:s(n)},f.nice=function(t){var e=h();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?h(rv(e,t)):f},f.copy=function(){return Zy(f,N_(t,n,e,r,i,o,a,u,c,s))},f}function C_(){return Ry.apply(N_(Km,Jm,vm,pm,Jv,Zv,Xv,Yv,Fv,ob).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function D_(){return Ry.apply(N_(Zm,Qm,Xm,Ym,Nm,Sm,Mm,_m,Fv,ub).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function P_(){var t,n,e,r,i,o=0,a=1,u=$y,c=!1;function s(n){return null==n||isNaN(n=+n)?i:u(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}function f(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),s):[u(0),u(1)]}}return s.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),s):[o,a]},s.clamp=function(t){return arguments.length?(c=!!t,s):c},s.interpolator=function(t){return arguments.length?(u=t,s):u},s.range=f(qr),s.rangeRound=f(Gg),s.unknown=function(t){return arguments.length?(i=t,s):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),s}}function q_(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function j_(){var t=tv(P_()($y));return t.copy=function(){return q_(t,j_())},zy.apply(t,arguments)}function L_(){var t=fv(P_()).domain([1,10]);return t.copy=function(){return q_(t,L_()).base(t.base())},zy.apply(t,arguments)}function O_(){var t=pv(P_());return t.copy=function(){return q_(t,O_()).constant(t.constant())},zy.apply(t,arguments)}function R_(){var t=bv(P_());return t.copy=function(){return q_(t,R_()).exponent(t.exponent())},zy.apply(t,arguments)}function z_(){return R_.apply(null,arguments).exponent(.5)}function I_(){var t=[],n=$y;function e(e){if(null!=e&&!isNaN(e=+e))return n((f(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(r),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},e.quantiles=function(n){return Array.from({length:n+1},((e,r)=>st(t,r/n)))},e.copy=function(){return I_(n).domain(t)},zy.apply(e,arguments)}function H_(){var t,n,e,r,i,o,a,u=0,c=.5,s=1,f=1,l=$y,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(f*t<f*n?r:i),l(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,l=cy(t,[e,r,i]),d):[l(0),l(.5),l(1)]}}return d.domain=function(a){return arguments.length?([u,c,s]=a,t=o(u=+u),n=o(c=+c),e=o(s=+s),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),f=n<t?-1:1,d):[u,c,s]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(l=t,d):l},d.range=p(qr),d.rangeRound=p(Gg),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(u),n=a(c),e=a(s),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),f=n<t?-1:1,d}}function F_(){var t=tv(H_()($y));return t.copy=function(){return q_(t,F_())},zy.apply(t,arguments)}function B_(){var t=fv(H_()).domain([.1,1,10]);return t.copy=function(){return q_(t,B_()).base(t.base())},zy.apply(t,arguments)}function U_(){var t=pv(H_());return t.copy=function(){return q_(t,U_()).constant(t.constant())},zy.apply(t,arguments)}function Y_(){var t=bv(H_());return t.copy=function(){return q_(t,Y_()).exponent(t.exponent())},zy.apply(t,arguments)}function W_(){return Y_.apply(null,arguments).exponent(.5)}function $_(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e}S_({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"]});const X_=$_("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),V_=$_("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),G_=$_("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Z_=$_("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Q_=$_("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),K_=$_("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),J_=$_("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),tx=$_("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),nx=$_("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),ex=$_("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),rx=t=>xr(t[t.length-1]);var ix=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($_);const ox=rx(ix);var ax=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($_);const ux=rx(ax);var cx=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($_);const sx=rx(cx);var fx=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($_);const lx=rx(fx);var hx=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($_);const dx=rx(hx);var px=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($_);const gx=rx(px);var yx=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($_);const vx=rx(yx);var mx=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($_);const bx=rx(mx);var _x=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($_);const xx=rx(_x);var wx=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($_);const Mx=rx(wx);var Tx=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($_);const Ax=rx(Tx);var Sx=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($_);const Ex=rx(Sx);var kx=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($_);const Nx=rx(kx);var Cx=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($_);const Dx=rx(Cx);var Px=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($_);const qx=rx(Px);var jx=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($_);const Lx=rx(jx);var Ox=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($_);const Rx=rx(Ox);var zx=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($_);const Ix=rx(zx);var Hx=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($_);const Fx=rx(Hx);var Bx=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($_);const Ux=rx(Bx);var Yx=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($_);const Wx=rx(Yx);var $x=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($_);const Xx=rx($x);var Vx=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($_);const Gx=rx(Vx);var Zx=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($_);const Qx=rx(Zx);var Kx=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($_);const Jx=rx(Kx);var tw=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($_);const nw=rx(tw);var ew=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($_);const rw=rx(ew);function iw(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const ow=uy(Ha(300,.5,0),Ha(-240,.5,1));var aw=uy(Ha(-100,.75,.35),Ha(80,1.5,.8)),uw=uy(Ha(260,.75,.35),Ha(80,1.5,.8)),cw=Ha();function sw(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return cw.h=360*t-100,cw.s=1.5-1.5*n,cw.l=.8-.9*n,cw+""}var fw=er(),lw=Math.PI/3,hw=2*Math.PI/3;function dw(t){var n;return t=(.5-t)*Math.PI,fw.r=255*(n=Math.sin(t))*n,fw.g=255*(n=Math.sin(t+lw))*n,fw.b=255*(n=Math.sin(t+hw))*n,fw+""}function pw(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function gw(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}const yw=gw($_("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var vw=gw($_("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),mw=gw($_("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),bw=gw($_("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function _w(t){return Ee(he(t).call(document.documentElement))}var xw=0;function ww(){return new Mw}function Mw(){this._="@"+(++xw).toString(36)}function Tw(t,n){return t.target&&(t=jr(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,(t=>Lr(t,n)))}function Aw(t){return"string"==typeof t?new Te([document.querySelectorAll(t)],[document.documentElement]):new Te([pn(t)],Me)}function Sw(t){return function(){return t}}Mw.prototype=ww.prototype={constructor:Mw,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Ew=Math.abs,kw=Math.atan2,Nw=Math.cos,Cw=Math.max,Dw=Math.min,Pw=Math.sin,qw=Math.sqrt,jw=1e-12,Lw=Math.PI,Ow=Lw/2,Rw=2*Lw;function zw(t){return t>1?0:t<-1?Lw:Math.acos(t)}function Iw(t){return t>=1?Ow:t<=-1?-Ow:Math.asin(t)}function Hw(t){return t.innerRadius}function Fw(t){return t.outerRadius}function Bw(t){return t.startAngle}function Uw(t){return t.endAngle}function Yw(t){return t&&t.padAngle}function Ww(t,n,e,r,i,o,a,u){var c=e-t,s=r-n,f=a-i,l=u-o,h=l*c-f*s;if(!(h*h<jw))return[t+(h=(f*(n-o)-l*(t-i))/h)*c,n+h*s]}function $w(t,n,e,r,i,o,a){var u=t-e,c=n-r,s=(a?o:-o)/qw(u*u+c*c),f=s*c,l=-s*u,h=t+f,d=n+l,p=e+f,g=r+l,y=(h+p)/2,v=(d+g)/2,m=p-h,b=g-d,_=m*m+b*b,x=i-o,w=h*g-p*d,M=(b<0?-1:1)*qw(Cw(0,x*x*_-w*w)),T=(w*b-m*M)/_,A=(-w*m-b*M)/_,S=(w*b+m*M)/_,E=(-w*m+b*M)/_,k=T-y,N=A-v,C=S-y,D=E-v;return k*k+N*N>C*C+D*D&&(T=S,A=E),{cx:T,cy:A,x01:-f,y01:-l,x11:T*(i/x-1),y11:A*(i/x-1)}}function Xw(){var t=Hw,n=Fw,e=Sw(0),r=null,i=Bw,o=Uw,a=Yw,u=null;function c(){var c,s,f=+t.apply(this,arguments),l=+n.apply(this,arguments),h=i.apply(this,arguments)-Ow,d=o.apply(this,arguments)-Ow,p=Ew(d-h),g=d>h;if(u||(u=c=Ko()),l<f&&(s=l,l=f,f=s),l>jw)if(p>Rw-jw)u.moveTo(l*Nw(h),l*Pw(h)),u.arc(0,0,l,h,d,!g),f>jw&&(u.moveTo(f*Nw(d),f*Pw(d)),u.arc(0,0,f,d,h,g));else{var y,v,m=h,b=d,_=h,x=d,w=p,M=p,T=a.apply(this,arguments)/2,A=T>jw&&(r?+r.apply(this,arguments):qw(f*f+l*l)),S=Dw(Ew(l-f)/2,+e.apply(this,arguments)),E=S,k=S;if(A>jw){var N=Iw(A/f*Pw(T)),C=Iw(A/l*Pw(T));(w-=2*N)>jw?(_+=N*=g?1:-1,x-=N):(w=0,_=x=(h+d)/2),(M-=2*C)>jw?(m+=C*=g?1:-1,b-=C):(M=0,m=b=(h+d)/2)}var D=l*Nw(m),P=l*Pw(m),q=f*Nw(x),j=f*Pw(x);if(S>jw){var L,O=l*Nw(b),R=l*Pw(b),z=f*Nw(_),I=f*Pw(_);if(p<Lw&&(L=Ww(D,P,z,I,O,R,q,j))){var H=D-L[0],F=P-L[1],B=O-L[0],U=R-L[1],Y=1/Pw(zw((H*B+F*U)/(qw(H*H+F*F)*qw(B*B+U*U)))/2),W=qw(L[0]*L[0]+L[1]*L[1]);E=Dw(S,(f-W)/(Y-1)),k=Dw(S,(l-W)/(Y+1))}}M>jw?k>jw?(y=$w(z,I,D,P,l,k,g),v=$w(O,R,q,j,l,k,g),u.moveTo(y.cx+y.x01,y.cy+y.y01),k<S?u.arc(y.cx,y.cy,k,kw(y.y01,y.x01),kw(v.y01,v.x01),!g):(u.arc(y.cx,y.cy,k,kw(y.y01,y.x01),kw(y.y11,y.x11),!g),u.arc(0,0,l,kw(y.cy+y.y11,y.cx+y.x11),kw(v.cy+v.y11,v.cx+v.x11),!g),u.arc(v.cx,v.cy,k,kw(v.y11,v.x11),kw(v.y01,v.x01),!g))):(u.moveTo(D,P),u.arc(0,0,l,m,b,!g)):u.moveTo(D,P),f>jw&&w>jw?E>jw?(y=$w(q,j,O,R,f,-E,g),v=$w(D,P,z,I,f,-E,g),u.lineTo(y.cx+y.x01,y.cy+y.y01),E<S?u.arc(y.cx,y.cy,E,kw(y.y01,y.x01),kw(v.y01,v.x01),!g):(u.arc(y.cx,y.cy,E,kw(y.y01,y.x01),kw(y.y11,y.x11),!g),u.arc(0,0,f,kw(y.cy+y.y11,y.cx+y.x11),kw(v.cy+v.y11,v.cx+v.x11),g),u.arc(v.cx,v.cy,E,kw(v.y11,v.x11),kw(v.y01,v.x01),!g))):u.arc(0,0,f,x,_,g):u.lineTo(q,j)}else u.moveTo(0,0);if(u.closePath(),c)return u=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Lw/2;return[Nw(r)*e,Pw(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Sw(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Sw(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Sw(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Sw(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Sw(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Sw(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Sw(+t),c):a},c.context=function(t){return arguments.length?(u=null==t?null:t,c):u},c}var Vw=Array.prototype.slice;function Gw(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Zw(t){this._context=t}function Qw(t){return new Zw(t)}function Kw(t){return t[0]}function Jw(t){return t[1]}function tM(t,n){var e=Sw(!0),r=null,i=Qw,o=null;function a(a){var u,c,s,f=(a=Gw(a)).length,l=!1;for(null==r&&(o=i(s=Ko())),u=0;u<=f;++u)!(u<f&&e(c=a[u],u,a))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(c,u,a),+n(c,u,a));if(s)return o=null,s+""||null}return t="function"==typeof t?t:void 0===t?Kw:Sw(t),n="function"==typeof n?n:void 0===n?Jw:Sw(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:Sw(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:Sw(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:Sw(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function nM(t,n,e){var r=null,i=Sw(!0),o=null,a=Qw,u=null;function c(c){var s,f,l,h,d,p=(c=Gw(c)).length,g=!1,y=new Array(p),v=new Array(p);for(null==o&&(u=a(d=Ko())),s=0;s<=p;++s){if(!(s<p&&i(h=c[s],s,c))===g)if(g=!g)f=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),l=s-1;l>=f;--l)u.point(y[l],v[l]);u.lineEnd(),u.areaEnd()}g&&(y[s]=+t(h,s,c),v[s]=+n(h,s,c),u.point(r?+r(h,s,c):y[s],e?+e(h,s,c):v[s]))}if(d)return u=null,d+""||null}function s(){return tM().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Kw:Sw(+t),n="function"==typeof n?n:Sw(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?Jw:Sw(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:Sw(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:Sw(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Sw(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:Sw(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:Sw(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Sw(+t),c):e},c.lineX0=c.lineY0=function(){return s().x(t).y(n)},c.lineY1=function(){return s().x(t).y(e)},c.lineX1=function(){return s().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Sw(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c}function eM(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function rM(t){return t}function iM(){var t=rM,n=eM,e=null,r=Sw(0),i=Sw(Rw),o=Sw(0);function a(a){var u,c,s,f,l,h=(a=Gw(a)).length,d=0,p=new Array(h),g=new Array(h),y=+r.apply(this,arguments),v=Math.min(Rw,Math.max(-Rw,i.apply(this,arguments)-y)),m=Math.min(Math.abs(v)/h,o.apply(this,arguments)),b=m*(v<0?-1:1);for(u=0;u<h;++u)(l=g[p[u]=u]=+t(a[u],u,a))>0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),u=0,s=d?(v-h*b)/d:0;u<h;++u,y=f)c=p[u],f=y+((l=g[c])>0?l*s:0)+b,g[c]={data:a[c],index:u,value:l,startAngle:y,endAngle:f,padAngle:m};return g}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:Sw(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Sw(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Sw(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Sw(+t),a):o},a}Zw.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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var oM=uM(Qw);function aM(t){this._curve=t}function uM(t){function n(n){return new aM(t(n))}return n._curve=t,n}function cM(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(uM(t)):n()._curve},t}function sM(){return cM(tM().curve(oM))}function fM(){var t=nM().curve(oM),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return cM(e())},delete t.lineX0,t.lineEndAngle=function(){return cM(r())},delete t.lineX1,t.lineInnerRadius=function(){return cM(i())},delete t.lineY0,t.lineOuterRadius=function(){return cM(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(uM(t)):n()._curve},t}function lM(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}function hM(t){return t.source}function dM(t){return t.target}function pM(t){var n=hM,e=dM,r=Kw,i=Jw,o=null;function a(){var a,u=Vw.call(arguments),c=n.apply(this,u),s=e.apply(this,u);if(o||(o=a=Ko()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=s,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(n=t,a):n},a.target=function(t){return arguments.length?(e=t,a):e},a.x=function(t){return arguments.length?(r="function"==typeof t?t:Sw(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:Sw(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function gM(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function yM(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function vM(t,n,e,r,i){var o=lM(n,e),a=lM(n,e=(e+i)/2),u=lM(r,e),c=lM(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function mM(){return pM(gM)}function bM(){return pM(yM)}function _M(){var t=pM(vM);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}aM.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};const xM={draw:function(t,n){var e=Math.sqrt(n/Lw);t.moveTo(e,0),t.arc(0,0,e,0,Rw)}},wM={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};var MM=Math.sqrt(1/3),TM=2*MM;const AM={draw:function(t,n){var e=Math.sqrt(n/TM),r=e*MM;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}};var SM=Math.sin(Lw/10)/Math.sin(7*Lw/10),EM=Math.sin(Rw/10)*SM,kM=-Math.cos(Rw/10)*SM;const NM={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=EM*e,i=kM*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=Rw*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*e,-u*e),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},CM={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}};var DM=Math.sqrt(3);const PM={draw:function(t,n){var e=-Math.sqrt(n/(3*DM));t.moveTo(0,2*e),t.lineTo(-DM*e,-e),t.lineTo(DM*e,-e),t.closePath()}};var qM=-.5,jM=Math.sqrt(3)/2,LM=1/Math.sqrt(12),OM=3*(LM/2+1);const RM={draw:function(t,n){var e=Math.sqrt(n/OM),r=e/2,i=e*LM,o=r,a=e*LM+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(qM*r-jM*i,jM*r+qM*i),t.lineTo(qM*o-jM*a,jM*o+qM*a),t.lineTo(qM*u-jM*c,jM*u+qM*c),t.lineTo(qM*r+jM*i,qM*i-jM*r),t.lineTo(qM*o+jM*a,qM*a-jM*o),t.lineTo(qM*u+jM*c,qM*c-jM*u),t.closePath()}};var zM=[xM,wM,AM,CM,NM,PM,RM];function IM(t,n){var e=null;function r(){var r;if(e||(e=r=Ko()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:Sw(t||xM),n="function"==typeof n?n:Sw(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:Sw(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:Sw(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function HM(){}function FM(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function BM(t){this._context=t}function UM(t){return new BM(t)}function YM(t){this._context=t}function WM(t){return new YM(t)}function $M(t){this._context=t}function XM(t){return new $M(t)}BM.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:FM(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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:FM(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},YM.prototype={areaStart:HM,areaEnd:HM,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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:FM(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},$M.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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:FM(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};class VM{constructor(t,n){this._context=t,this._x=n}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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}function GM(t){return new VM(t,!0)}function ZM(t){return new VM(t,!1)}function QM(t,n){this._basis=new BM(t),this._beta=n}QM.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const KM=function t(n){function e(t){return 1===n?new BM(t):new QM(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function JM(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function tT(t,n){this._context=t,this._k=(1-n)/6}tT.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:JM(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:JM(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const nT=function t(n){function e(t){return new tT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function eT(t,n){this._context=t,this._k=(1-n)/6}eT.prototype={areaStart:HM,areaEnd:HM,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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:JM(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const rT=function t(n){function e(t){return new eT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function iT(t,n){this._context=t,this._k=(1-n)/6}iT.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(t,n){switch(t=+t,n=+n,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:JM(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const oT=function t(n){function e(t){return new iT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function aT(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>jw){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>jw){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/f,a=(a*s+t._y1*t._l23_2a-e*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function uT(t,n){this._context=t,this._alpha=n}uT.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(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:aT(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const cT=function t(n){function e(t){return n?new uT(t,n):new tT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function sT(t,n){this._context=t,this._alpha=n}sT.prototype={areaStart:HM,areaEnd:HM,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(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:aT(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const fT=function t(n){function e(t){return n?new sT(t,n):new eT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function lT(t,n){this._context=t,this._alpha=n}lT.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(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+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:aT(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const hT=function t(n){function e(t){return n?new lT(t,n):new iT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function dT(t){this._context=t}function pT(t){return new dT(t)}function gT(t){return t<0?-1:1}function yT(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(gT(o)+gT(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function vT(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function mT(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function bT(t){this._context=t}function _T(t){this._context=new xT(t)}function xT(t){this._context=t}function wT(t){return new bT(t)}function MT(t){return new _T(t)}function TT(t){this._context=t}function AT(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function ST(t){return new TT(t)}function ET(t,n){this._context=t,this._t=n}function kT(t){return new ET(t,.5)}function NT(t){return new ET(t,0)}function CT(t){return new ET(t,1)}function DT(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],u=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<u;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function PT(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function qT(t,n){return t[n]}function jT(t){const n=[];return n.key=t,n}function LT(){var t=Sw([]),n=PT,e=DT,r=qT;function i(i){var o,a,u=Array.from(t.apply(this,arguments),jT),c=u.length,s=-1;for(const t of i)for(o=0,++s;o<c;++o)(u[o][s]=[0,+r(t,u[o].key,s,i)]).data=t;for(o=0,a=Gw(n(u));o<c;++o)u[a[o]].index=o;return e(u,a),u}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:Sw(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Sw(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?PT:"function"==typeof t?t:Sw(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?DT:t,i):e},i}function OT(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}DT(t,n)}}function RT(t,n){if((u=t.length)>0)for(var e,r,i,o,a,u,c=0,s=t[n[0]].length;c<s;++c)for(o=a=0,e=0;e<u;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function zT(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<e;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}DT(t,n)}}function IT(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var u=0,c=0,s=0;u<i;++u){for(var f=t[n[u]],l=f[a][1]||0,h=(l-(f[a-1][1]||0))/2,d=0;d<u;++d){var p=t[n[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}c+=l,s+=h*l}e[a-1][1]+=e[a-1][0]=o,c&&(o-=s/c)}e[a-1][1]+=e[a-1][0]=o,DT(t,n)}}function HT(t){var n=t.map(FT);return PT(t).sort((function(t,e){return n[t]-n[e]}))}function FT(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function BT(t){var n=t.map(UT);return PT(t).sort((function(t,e){return n[t]-n[e]}))}function UT(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function YT(t){return BT(t).reverse()}function WT(t){var n,e,r=t.length,i=t.map(UT),o=HT(t),a=0,u=0,c=[],s=[];for(n=0;n<r;++n)e=o[n],a<u?(a+=i[e],c.push(e)):(u+=i[e],s.push(e));return s.reverse().concat(c)}function $T(t){return PT(t).reverse()}dT.prototype={areaStart:HM,areaEnd:HM,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},bT.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:mT(this,this._t0,vT(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,mT(this,vT(this,e=yT(this,t,n)),e);break;default:mT(this,this._t0,e=yT(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(_T.prototype=Object.create(bT.prototype)).point=function(t,n){bT.prototype.point.call(this,n,t)},xT.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},TT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=AT(t),i=AT(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},ET.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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var XT="%Y-%m-%dT%H:%M:%S.%LZ",VT=Date.prototype.toISOString?function(t){return t.toISOString()}:ub(XT);const GT=VT;var ZT=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:cb(XT);const QT=ZT;function KT(t,n,e){var r=new Vr,i=n;return null==n?(r.restart(t,n,e),r):(r._restart=r.restart,r.restart=function(t,n,e){n=+n,e=null==e?$r():+e,r._restart((function o(a){a+=i,r._restart(o,i+=n,e),t(a)}),n,e)},r.restart(t,n,e),r)}const JT=t=>()=>t;function tA(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function nA(t,n,e){this.k=t,this.x=n,this.y=e}nA.prototype={constructor:nA,scale:function(t){return 1===t?this:new nA(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new nA(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eA=new nA(1,0,0);function rA(t){for(;!t.__zoom;)if(!(t=t.parentNode))return eA;return t.__zoom}function iA(t){t.stopImmediatePropagation()}function oA(t){t.preventDefault(),t.stopImmediatePropagation()}function aA(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function uA(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function cA(){return this.__zoom||eA}function sA(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function fA(){return navigator.maxTouchPoints||"ontouchstart"in this}function lA(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function hA(){var t,n,e,r=aA,i=uA,o=lA,a=sA,u=fA,c=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],f=250,l=Qg,h=ln("start","zoom","end"),d=500,p=0,g=10;function y(t){t.property("__zoom",cA).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",A).filter(u).on("touchstart.zoom",S).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,n){return(n=Math.max(c[0],Math.min(c[1],n)))===t.k?t:new nA(n,t.x,t.y)}function m(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new nA(t.k,r,i)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,n,e,r){t.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 t=this,o=arguments,a=x(t,o).event(r),u=i.apply(t,o),c=null==e?b(u):"function"==typeof e?e.apply(t,o):e,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),f=t.__zoom,h="function"==typeof n?n.apply(t,o):n,d=l(f.invert(c).concat(s/f.k),h.invert(c).concat(s/h.k));return function(t){if(1===t)t=h;else{var n=d(t),e=s/n[2];t=new nA(e,c[0]-n[0]*e,c[1]-n[1]*e)}a.zoom(null,t)}}))}function x(t,n,e){return!e&&t.__zooming||new w(t,n)}function w(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function M(t,...n){if(r.apply(this,arguments)){var e=x(this,n).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),f=Lr(t);if(e.wheel)e.mouse[0][0]===f[0]&&e.mouse[0][1]===f[1]||(e.mouse[1]=i.invert(e.mouse[0]=f)),clearTimeout(e.wheel);else{if(i.k===u)return;e.mouse=[f,i.invert(f)],ui(this),e.start()}oA(t),e.wheel=setTimeout(l,150),e.zoom("mouse",o(m(v(i,u),e.mouse[0],e.mouse[1]),e.extent,s))}function l(){e.wheel=null,e.end()}}function T(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,a=x(this,n,!0).event(t),u=Ee(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",d,!0),c=Lr(t,i),f=t.clientX,l=t.clientY;Pe(t.view),iA(t),a.mouse=[c,this.__zoom.invert(c)],ui(this),a.start()}function h(t){if(oA(t),!a.moved){var n=t.clientX-f,e=t.clientY-l;a.moved=n*n+e*e>p}a.event(t).zoom("mouse",o(m(a.that.__zoom,a.mouse[0]=Lr(t,i),a.mouse[1]),a.extent,s))}function d(t){u.on("mousemove.zoom mouseup.zoom",null),qe(t.view,a.moved),oA(t),a.event(t).end()}}function A(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,a=Lr(t.changedTouches?t.changedTouches[0]:t,this),u=e.invert(a),c=e.k*(t.shiftKey?.5:2),l=o(m(v(e,c),a,u),i.apply(this,n),s);oA(t),f>0?Ee(this).transition().duration(f).call(_,l,a,t):Ee(this).call(y.transform,l,a,t)}}function S(e,...i){if(r.apply(this,arguments)){var o,a,u,c,s=e.touches,f=s.length,l=x(this,i,e.changedTouches.length===f).event(e);for(iA(e),a=0;a<f;++a)c=[c=Lr(u=s[a],this),this.__zoom.invert(c),u.identifier],l.touch0?l.touch1||l.touch0[2]===c[2]||(l.touch1=c,l.taps=0):(l.touch0=c,o=!0,l.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(l.taps<2&&(n=c[0],t=setTimeout((function(){t=null}),d)),ui(this),l.start())}}function E(t,...n){if(this.__zooming){var e,r,i,a,u=x(this,n).event(t),c=t.changedTouches,f=c.length;for(oA(t),e=0;e<f;++e)i=Lr(r=c[e],this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var l=u.touch0[0],h=u.touch0[1],d=u.touch1[0],p=u.touch1[1],g=(g=d[0]-l[0])*g+(g=d[1]-l[1])*g,y=(y=p[0]-h[0])*y+(y=p[1]-h[1])*y;r=v(r,Math.sqrt(g/y)),i=[(l[0]+d[0])/2,(l[1]+d[1])/2],a=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],a=u.touch0[1]}u.zoom("touch",o(m(r,i,a),u.extent,s))}}function k(t,...r){if(this.__zooming){var i,o,a=x(this,r).event(t),u=t.changedTouches,c=u.length;for(iA(t),e&&clearTimeout(e),e=setTimeout((function(){e=null}),d),i=0;i<c;++i)o=u[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=Lr(o,this),Math.hypot(n[0]-o[0],n[1]-o[1])<g)){var s=Ee(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return y.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",cA),t!==i?_(t,n,e,r):i.interrupt().each((function(){x(this,arguments).event(r).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()}))},y.scaleBy=function(t,n,e,r){y.scaleTo(t,(function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e}),e,r)},y.scaleTo=function(t,n,e,r){y.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==e?b(t):"function"==typeof e?e.apply(this,arguments):e,u=r.invert(a),c="function"==typeof n?n.apply(this,arguments):n;return o(m(v(r,c),a,u),t,s)}),e,r)},y.translateBy=function(t,n,e,r){y.transform(t,(function(){return o(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),i.apply(this,arguments),s)}),null,r)},y.translateTo=function(t,n,e,r,a){y.transform(t,(function(){var t=i.apply(this,arguments),a=this.__zoom,u=null==r?b(t):"function"==typeof r?r.apply(this,arguments):r;return o(eA.translate(u[0],u[1]).scale(a.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,s)}),r,a)},w.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var n=Ee(this.that).datum();h.call(t,this.that,new tA(t,{sourceEvent:this.sourceEvent,target:y,type:t,transform:this.that.__zoom,dispatch:h}),n)}},y.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:JT(+t),y):a},y.filter=function(t){return arguments.length?(r="function"==typeof t?t:JT(!!t),y):r},y.touchable=function(t){return arguments.length?(u="function"==typeof t?t:JT(!!t),y):u},y.extent=function(t){return arguments.length?(i="function"==typeof t?t:JT([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),y):i},y.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],y):[c[0],c[1]]},y.translateExtent=function(t){return arguments.length?(s[0][0]=+t[0][0],s[1][0]=+t[1][0],s[0][1]=+t[0][1],s[1][1]=+t[1][1],y):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},y.constrain=function(t){return arguments.length?(o=t,y):o},y.duration=function(t){return arguments.length?(f=+t,y):f},y.interpolate=function(t){return arguments.length?(l=t,y):l},y.on=function(){var t=h.on.apply(h,arguments);return t===h?y:t},y.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,y):Math.sqrt(p)},y.tapDistance=function(t){return arguments.length?(g=+t,y):g},y}rA.prototype=nA.prototype}},n={};function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={exports:{}};return t[r].call(o.exports,o,o.exports,e),o.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e(80)})();
2
+ (()=>{var t={291:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,u=o.slice,c=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},s=o.push,f=o.indexOf,l={},h=l.toString,d=l.hasOwnProperty,p=d.toString,g=p.call(Object),y={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},m=function(t){return null!=t&&t===t.window},b=r.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var r,i,o=(n=n||b).createElement("script");if(o.text=t,e)for(r in _)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[h.call(t)]||"object":typeof t}var M="3.6.3",T=function(t,e){return new T.fn.init(t,e)};function A(t){var e=!!t&&"length"in t&&t.length,n=w(t);return!v(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}T.fn=T.prototype={jquery:M,constructor:T,length:0,toArray:function(){return u.call(this)},get:function(t){return null==t?u.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},u=1,c=arguments.length,s=!1;for("boolean"==typeof a&&(s=a,a=arguments[u]||{},u++),"object"==typeof a||v(a)||(a={}),u===c&&(a=this,u--);u<c;u++)if(null!=(t=arguments[u]))for(e in t)r=t[e],"__proto__"!==e&&a!==r&&(s&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[e],o=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,a[e]=T.extend(s,o,r)):void 0!==r&&(a[e]=r));return a},T.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t)||(e=a(t))&&("function"!=typeof(n=d.call(e,"constructor")&&e.constructor)||p.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(A(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(A(Object(t))?T.merge(n,"string"==typeof t?[t]:t):s.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:f.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,a=[];if(A(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&a.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&a.push(i);return c(a)},guid:1,support:y}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){l["[object "+e+"]"]=e.toLowerCase()}));var S=function(t){var e,n,r,i,o,a,u,c,s,f,l,h,d,p,g,y,v,m,b,_="sizzle"+1*new Date,x=t.document,w=0,M=0,T=ct(),A=ct(),S=ct(),E=ct(),k=function(t,e){return t===e&&(l=!0),0},N={}.hasOwnProperty,C=[],D=C.pop,P=C.push,j=C.push,q=C.slice,L=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",$="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+R+"*("+$+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+$+"))|)"+R+"*\\]",I=":("+$+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",H=new RegExp(R+"+","g"),F=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),B=new RegExp("^"+R+"*,"+R+"*"),U=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),Y=new RegExp(R+"|>"),W=new RegExp(I),X=new RegExp("^"+$+"$"),V={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=_t((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(C=q.call(x.childNodes),x.childNodes),C[x.childNodes.length].nodeType}catch(t){j={apply:C.length?function(t,e){P.apply(t,q.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function ut(t,e,r,i){var o,u,s,f,l,p,v,m=e&&e.ownerDocument,x=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return r;if(!i&&(h(e),e=e||d,g)){if(11!==x&&(l=J.exec(t)))if(o=l[1]){if(9===x){if(!(s=e.getElementById(o)))return r;if(s.id===o)return r.push(s),r}else if(m&&(s=m.getElementById(o))&&b(e,s)&&s.id===o)return r.push(s),r}else{if(l[2])return j.apply(r,e.getElementsByTagName(t)),r;if((o=l[3])&&n.getElementsByClassName&&e.getElementsByClassName)return j.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!E[t+" "]&&(!y||!y.test(t))&&(1!==x||"object"!==e.nodeName.toLowerCase())){if(v=t,m=e,1===x&&(Y.test(t)||U.test(t))){for((m=tt.test(t)&&vt(e.parentNode)||e)===e&&n.scope||((f=e.getAttribute("id"))?f=f.replace(rt,it):e.setAttribute("id",f=_)),u=(p=a(t)).length;u--;)p[u]=(f?"#"+f:":scope")+" "+bt(p[u]);v=p.join(",")}try{if(n.cssSupportsSelector&&!CSS.supports("selector(:is("+v+"))"))throw new Error;return j.apply(r,m.querySelectorAll(v)),r}catch(e){E(t,!0)}finally{f===_&&e.removeAttribute("id")}}}return c(t.replace(F,"$1"),e,r,i)}function ct(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function st(t){return t[_]=!0,t}function ft(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function ht(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function yt(t){return st((function(e){return e=+e,st((function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=ut.support={},o=ut.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!G.test(e||n&&n.nodeName||"HTML")},h=ut.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:x;return a!=d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,g=!o(d),x!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=ft((function(t){return p.appendChild(t).appendChild(d.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.cssSupportsSelector=ft((function(){return CSS.supports("selector(*)")&&d.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),n.attributes=ft((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ft((function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ft((function(t){return p.appendChild(t).id=_,!d.getElementsByName||!d.getElementsByName(_).length})),n.getById?(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],y=[],(n.qsa=K.test(d.querySelectorAll))&&(ft((function(t){var e;p.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||y.push("\\["+R+"*(?:value|"+O+")"),t.querySelectorAll("[id~="+_+"-]").length||y.push("~="),(e=d.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||y.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||y.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||y.push(".#.+[+~]"),t.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")})),ft((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&y.push("name"+R+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),y.push(",.*:")}))),(n.matchesSelector=K.test(m=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ft((function(t){n.disconnectedMatch=m.call(t,"*"),m.call(t,"[s!='']:x"),v.push("!=",I)})),n.cssSupportsSelector||y.push(":has"),y=y.length&&new RegExp(y.join("|")),v=v.length&&new RegExp(v.join("|")),e=K.test(p.compareDocumentPosition),b=e||K.test(p.contains)?function(t,e){var n=9===t.nodeType&&t.documentElement||t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},k=e?function(t,e){if(t===e)return l=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==d||t.ownerDocument==x&&b(x,t)?-1:e==d||e.ownerDocument==x&&b(x,e)?1:f?L(f,t)-L(f,e):0:4&r?-1:1)}:function(t,e){if(t===e)return l=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],u=[e];if(!i||!o)return t==d?-1:e==d?1:i?-1:o?1:f?L(f,t)-L(f,e):0;if(i===o)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?ht(a[r],u[r]):a[r]==x?-1:u[r]==x?1:0},d):d},ut.matches=function(t,e){return ut(t,null,null,e)},ut.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&g&&!E[e+" "]&&(!v||!v.test(e))&&(!y||!y.test(e)))try{var r=m.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){E(e,!0)}return ut(e,d,null,[t]).length>0},ut.contains=function(t,e){return(t.ownerDocument||t)!=d&&h(t),b(t,e)},ut.attr=function(t,e){(t.ownerDocument||t)!=d&&h(t);var i=r.attrHandle[e.toLowerCase()],o=i&&N.call(r.attrHandle,e.toLowerCase())?i(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ut.escape=function(t){return(t+"").replace(rt,it)},ut.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ut.uniqueSort=function(t){var e,r=[],i=0,o=0;if(l=!n.detectDuplicates,f=!n.sortStable&&t.slice(0),t.sort(k),l){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return f=null,t},i=ut.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},r=ut.selectors={cacheLength:50,createPseudo:st,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ut.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ut.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=T[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&T(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=ut.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,c){var s,f,l,h,d,p,g=o!==a?"nextSibling":"previousSibling",y=e.parentNode,v=u&&e.nodeName.toLowerCase(),m=!c&&!u,b=!1;if(y){if(o){for(;g;){for(h=e;h=h[g];)if(u?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?y.firstChild:y.lastChild],a&&m){for(b=(d=(s=(f=(l=(h=y)[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]||[])[0]===w&&s[1])&&s[2],h=d&&y.childNodes[d];h=++d&&h&&h[g]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){f[t]=[w,d,b];break}}else if(m&&(b=d=(s=(f=(l=(h=e)[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]||[])[0]===w&&s[1]),!1===b)for(;(h=++d&&h&&h[g]||(b=d=0)||p.pop())&&((u?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(m&&((f=(l=h[_]||(h[_]={}))[h.uniqueID]||(l[h.uniqueID]={}))[t]=[w,b]),h!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ut.error("unsupported pseudo: "+t);return i[_]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?st((function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=L(t,o[a])]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:st((function(t){var e=[],n=[],r=u(t.replace(F,"$1"));return r[_]?st((function(t,e,n,i){for(var o,a=r(t,null,i,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(e[u]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:st((function(t){return function(e){return ut(t,e).length>0}})),contains:st((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:st((function(t){return X.test(t||"")||ut.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:yt((function(){return[0]})),last:yt((function(t,e){return[e-1]})),eq:yt((function(t,e,n){return[n<0?n+e:n]})),even:yt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:yt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:yt((function(t,e,n){for(var r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:yt((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=dt(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=pt(e);function mt(){}function bt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function _t(t,e,n){var r=e.dir,i=e.next,o=i||r,a=n&&"parentNode"===o,u=M++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||a)return t(e,n,i);return!1}:function(e,n,c){var s,f,l,h=[w,u];if(c){for(;e=e[r];)if((1===e.nodeType||a)&&t(e,n,c))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(f=(l=e[_]||(e[_]={}))[e.uniqueID]||(l[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((s=f[o])&&s[0]===w&&s[1]===u)return h[2]=s[2];if(f[o]=h,h[2]=t(e,n,c))return!0}return!1}}function xt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function wt(t,e,n,r,i){for(var o,a=[],u=0,c=t.length,s=null!=e;u<c;u++)(o=t[u])&&(n&&!n(o,r,i)||(a.push(o),s&&e.push(u)));return a}function Mt(t,e,n,r,i,o){return r&&!r[_]&&(r=Mt(r)),i&&!i[_]&&(i=Mt(i,o)),st((function(o,a,u,c){var s,f,l,h=[],d=[],p=a.length,g=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)ut(t,e[r],n);return n}(e||"*",u.nodeType?[u]:u,[]),y=!t||!o&&e?g:wt(g,h,t,u,c),v=n?i||(o?t:p||r)?[]:a:y;if(n&&n(y,v,u,c),r)for(s=wt(v,d),r(s,[],u,c),f=s.length;f--;)(l=s[f])&&(v[d[f]]=!(y[d[f]]=l));if(o){if(i||t){if(i){for(s=[],f=v.length;f--;)(l=v[f])&&s.push(y[f]=l);i(null,v=[],s,c)}for(f=v.length;f--;)(l=v[f])&&(s=i?L(o,l):h[f])>-1&&(o[s]=!(a[s]=l))}}else v=wt(v===a?v.splice(p,v.length):v),i?i(null,a,v,c):j.apply(a,v)}))}function Tt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],u=a||r.relative[" "],c=a?1:0,f=_t((function(t){return t===e}),u,!0),l=_t((function(t){return L(e,t)>-1}),u,!0),h=[function(t,n,r){var i=!a&&(r||n!==s)||((e=n).nodeType?f(t,n,r):l(t,n,r));return e=null,i}];c<o;c++)if(n=r.relative[t[c].type])h=[_t(xt(h),n)];else{if((n=r.filter[t[c].type].apply(null,t[c].matches))[_]){for(i=++c;i<o&&!r.relative[t[i].type];i++);return Mt(c>1&&xt(h),c>1&&bt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(F,"$1"),n,c<i&&Tt(t.slice(c,i)),i<o&&Tt(t=t.slice(i)),i<o&&bt(t))}h.push(n)}return xt(h)}return mt.prototype=r.filters=r.pseudos,r.setFilters=new mt,a=ut.tokenize=function(t,e){var n,i,o,a,u,c,s,f=A[t+" "];if(f)return e?0:f.slice(0);for(u=t,c=[],s=r.preFilter;u;){for(a in n&&!(i=B.exec(u))||(i&&(u=u.slice(i[0].length)||u),c.push(o=[])),n=!1,(i=U.exec(u))&&(n=i.shift(),o.push({value:n,type:i[0].replace(F," ")}),u=u.slice(n.length)),r.filter)!(i=V[a].exec(u))||s[a]&&!(i=s[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),u=u.slice(n.length));if(!n)break}return e?u.length:u?ut.error(t):A(t,c).slice(0)},u=ut.compile=function(t,e){var n,i=[],o=[],u=S[t+" "];if(!u){for(e||(e=a(t)),n=e.length;n--;)(u=Tt(e[n]))[_]?i.push(u):o.push(u);u=S(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,u,c,f){var l,p,y,v=0,m="0",b=o&&[],_=[],x=s,M=o||i&&r.find.TAG("*",f),T=w+=null==x?1:Math.random()||.1,A=M.length;for(f&&(s=a==d||a||f);m!==A&&null!=(l=M[m]);m++){if(i&&l){for(p=0,a||l.ownerDocument==d||(h(l),u=!g);y=t[p++];)if(y(l,a||d,u)){c.push(l);break}f&&(w=T)}n&&((l=!y&&l)&&v--,o&&b.push(l))}if(v+=m,n&&m!==v){for(p=0;y=e[p++];)y(b,_,a,u);if(o){if(v>0)for(;m--;)b[m]||_[m]||(_[m]=D.call(c));_=wt(_)}j.apply(c,_),f&&!o&&_.length>0&&v+e.length>1&&ut.uniqueSort(c)}return f&&(w=T,s=x),b};return n?st(o):o}(o,i)),u.selector=t}return u},c=ut.select=function(t,e,n,i){var o,c,s,f,l,h="function"==typeof t&&t,d=!i&&a(t=h.selector||t);if(n=n||[],1===d.length){if((c=d[0]=d[0].slice(0)).length>2&&"ID"===(s=c[0]).type&&9===e.nodeType&&g&&r.relative[c[1].type]){if(!(e=(r.find.ID(s.matches[0].replace(et,nt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(o=V.needsContext.test(t)?0:c.length;o--&&(s=c[o],!r.relative[f=s.type]);)if((l=r.find[f])&&(i=l(s.matches[0].replace(et,nt),tt.test(c[0].type)&&vt(e.parentNode)||e))){if(c.splice(o,1),!(t=i.length&&bt(c)))return j.apply(n,i),n;break}}return(h||u(t,d))(i,e,!g,n,!e||tt.test(t)&&vt(e.parentNode)||e),n},n.sortStable=_.split("").sort(k).join("")===_,n.detectDuplicates=!!l,h(),n.sortDetached=ft((function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))})),ft((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||lt("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ft((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||lt("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ft((function(t){return null==t.getAttribute("disabled")}))||lt(O,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),ut}(r);T.find=S,T.expr=S.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=S.uniqueSort,T.text=S.getText,T.isXMLDoc=S.isXML,T.contains=S.contains,T.escapeSelector=S.escape;var E=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&T(t).is(n))break;r.push(t)}return r},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},N=T.expr.match.needsContext;function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(t,e,n){return v(e)?T.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?T.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?T.grep(t,(function(t){return f.call(e,t)>-1!==n})):T.filter(e,t,n)}T.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?T.find.matchesSelector(r,t)?[r]:[]:T.find.matches(t,T.grep(e,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(e=0;e<r;e++)if(T.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)T.find(t,i[e],n);return r>1?T.uniqueSort(n):n},filter:function(t){return this.pushStack(P(this,t||[],!1))},not:function(t){return this.pushStack(P(this,t||[],!0))},is:function(t){return!!P(this,"string"==typeof t&&N.test(t)?T(t):t||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||j,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:q.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),D.test(r[1])&&T.isPlainObject(e))for(r in e)v(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,j=T(b);var L=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function R(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,o=[],a="string"!=typeof t&&T(t);if(!N.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?f.call(T(t),this[0]):f.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return E(t,"parentNode")},parentsUntil:function(t,e,n){return E(t,"parentNode",n)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return E(t,"nextSibling")},prevAll:function(t){return E(t,"previousSibling")},nextUntil:function(t,e,n){return E(t,"nextSibling",n)},prevUntil:function(t,e,n){return E(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,e){T.fn[t]=function(n,r){var i=T.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(O[t]||T.uniqueSort(i),L.test(t)&&i.reverse()),this.pushStack(i)}}));var $=/[^\x20\t\r\n\f]+/g;function z(t){return t}function I(t){throw t}function H(t,e,n,r){var i;try{t&&v(i=t.promise)?i.call(t).done(e).fail(n):t&&v(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match($)||[],(function(t,n){e[n]=!0})),e}(t):T.extend({},t);var e,n,r,i,o=[],a=[],u=-1,c=function(){for(i=i||t.once,r=e=!0;a.length;u=-1)for(n=a.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&t.stopOnFalse&&(u=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},s={add:function(){return o&&(n&&!e&&(u=o.length-1,a.push(n)),function e(n){T.each(n,(function(n,r){v(r)?t.unique&&s.has(r)||o.push(r):r&&r.length&&"string"!==w(r)&&e(r)}))}(arguments),n&&!e&&c()),this},remove:function(){return T.each(arguments,(function(t,e){for(var n;(n=T.inArray(e,o,n))>-1;)o.splice(n,1),n<=u&&u--})),this},has:function(t){return t?T.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!r}};return s},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(n){T.each(e,(function(e,r){var i=v(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var o=0;function a(t,e,n,i){return function(){var u=this,c=arguments,s=function(){var r,s;if(!(t<o)){if((r=n.apply(u,c))===e.promise())throw new TypeError("Thenable self-resolution");s=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(s)?i?s.call(r,a(o,e,z,i),a(o,e,I,i)):(o++,s.call(r,a(o,e,z,i),a(o,e,I,i),a(o,e,z,e.notifyWith))):(n!==z&&(u=void 0,c=[r]),(i||e.resolveWith)(u,c))}},f=i?s:function(){try{s()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,f.stackTrace),t+1>=o&&(n!==I&&(u=void 0,c=[r]),e.rejectWith(u,c))}};t?f():(T.Deferred.getStackHook&&(f.stackTrace=T.Deferred.getStackHook()),r.setTimeout(f))}}return T.Deferred((function(r){e[0][3].add(a(0,r,v(i)?i:z,r.notifyWith)),e[1][3].add(a(0,r,v(t)?t:z)),e[2][3].add(a(0,r,v(n)?n:I))})).promise()},promise:function(t){return null!=t?T.extend(t,i):i}},o={};return T.each(e,(function(t,r){var a=r[2],u=r[5];i[r[1]]=a.add,u&&a.add((function(){n=u}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=u.call(arguments),o=T.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?u.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(H(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)H(i[n],a(n),o.reject);return o.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&F.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){r.setTimeout((function(){throw t}))};var B=T.Deferred();function U(){b.removeEventListener("DOMContentLoaded",U),r.removeEventListener("load",U),T.ready()}T.fn.ready=function(t){return B.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||B.resolveWith(b,[T]))}}),T.ready.then=B.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",U),r.addEventListener("load",U));var Y=function(t,e,n,r,i,o,a){var u=0,c=t.length,s=null==n;if("object"===w(n))for(u in i=!0,n)Y(t,e,u,n[u],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),s&&(a?(e.call(t,r),e=null):(s=e,e=function(t,e,n){return s.call(T(t),n)})),e))for(;u<c;u++)e(t[u],n,a?r:r.call(t[u],u,e(t[u],n)));return i?t:s?e.call(t):c?e(t[0],n):o},W=/^-ms-/,X=/-([a-z])/g;function V(t,e){return e.toUpperCase()}function G(t){return t.replace(W,"ms-").replace(X,V)}var Z=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Q(){this.expando=T.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Z(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[G(e)]=n;else for(r in e)i[G(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][G(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(G):(e=G(e))in r?[e]:e.match($)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||T.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var K=new Q,J=new Q,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function nt(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(n)}catch(t){}J.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return J.hasData(t)||K.hasData(t)},data:function(t,e,n){return J.access(t,e,n)},removeData:function(t,e){J.remove(t,e)},_data:function(t,e,n){return K.access(t,e,n)},_removeData:function(t,e){K.remove(t,e)}}),T.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=J.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=G(r.slice(5)),nt(o,r,i[r]));K.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){J.set(this,t)})):Y(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=J.get(o,t))||void 0!==(n=nt(o,t))?n:void 0;this.each((function(){J.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){J.remove(this,t)}))}}),T.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=K.get(t,e),n&&(!r||Array.isArray(n)?r=K.access(t,e,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),r=n.length,i=n.shift(),o=T._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){T.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return K.get(t,n)||K.access(t,n,{empty:T.Callbacks("once memory").add((function(){K.remove(t,[e+"queue",n])}))})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?T.queue(this[0],t):void 0===e?this:this.each((function(){var n=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=T.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=K.get(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(e)}});var rt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+rt+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],at=b.documentElement,ut=function(t){return T.contains(t.ownerDocument,t)},ct={composed:!0};at.getRootNode&&(ut=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(ct)===t.ownerDocument});var st=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ut(t)&&"none"===T.css(t,"display")};function ft(t,e,n,r){var i,o,a=20,u=r?function(){return r.cur()}:function(){return T.css(t,e,"")},c=u(),s=n&&n[3]||(T.cssNumber[e]?"":"px"),f=t.nodeType&&(T.cssNumber[e]||"px"!==s&&+c)&&it.exec(T.css(t,e));if(f&&f[3]!==s){for(c/=2,s=s||f[3],f=+c||1;a--;)T.style(t,e,f+s),(1-o)*(1-(o=u()/c||.5))<=0&&(a=0),f/=o;f*=2,T.style(t,e,f+s),n=n||[]}return n&&(f=+f||+c||0,i=n[1]?f+(n[1]+1)*n[2]:+n[2],r&&(r.unit=s,r.start=f,r.end=i)),i}var lt={};function ht(t){var e,n=t.ownerDocument,r=t.nodeName,i=lt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=T.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),lt[r]=i,i)}function dt(t,e){for(var n,r,i=[],o=0,a=t.length;o<a;o++)(r=t[o]).style&&(n=r.style.display,e?("none"===n&&(i[o]=K.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&st(r)&&(i[o]=ht(r))):"none"!==n&&(i[o]="none",K.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}T.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){st(this)?T(this).show():T(this).hide()}))}});var pt,gt,yt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i;pt=b.createDocumentFragment().appendChild(b.createElement("div")),(gt=b.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),pt.appendChild(gt),y.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,pt.innerHTML="<option></option>",y.option=!!pt.lastChild;var bt={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 _t(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?T.merge([t],n):n}function xt(t,e){for(var n=0,r=t.length;n<r;n++)K.set(t[n],"globalEval",!e||K.get(e[n],"globalEval"))}bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,y.option||(bt.optgroup=bt.option=[1,"<select multiple='multiple'>","</select>"]);var wt=/<|&#?\w+;/;function Mt(t,e,n,r,i){for(var o,a,u,c,s,f,l=e.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===w(o))T.merge(h,o.nodeType?[o]:o);else if(wt.test(o)){for(a=a||l.appendChild(e.createElement("div")),u=(vt.exec(o)||["",""])[1].toLowerCase(),c=bt[u]||bt._default,a.innerHTML=c[1]+T.htmlPrefilter(o)+c[2],f=c[0];f--;)a=a.lastChild;T.merge(h,a.childNodes),(a=l.firstChild).textContent=""}else h.push(e.createTextNode(o));for(l.textContent="",d=0;o=h[d++];)if(r&&T.inArray(o,r)>-1)i&&i.push(o);else if(s=ut(o),a=_t(l.appendChild(o),"script"),s&&xt(a),n)for(f=0;o=a[f++];)mt.test(o.type||"")&&n.push(o);return l}var Tt=/^([^.]*)(?:\.(.+)|)/;function At(){return!0}function St(){return!1}function Et(t,e){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===e)}function kt(t,e,n,r,i,o){var a,u;if("object"==typeof e){for(u in"string"!=typeof n&&(r=r||n,n=void 0),e)kt(t,u,n,r,e[u],o);return t}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=St;else if(!i)return t;return 1===o&&(a=i,i=function(t){return T().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=T.guid++)),t.each((function(){T.event.add(this,e,i,r,n)}))}function Nt(t,e,n){n?(K.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=K.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=u.call(arguments),K.set(this,e,o),r=n(this,e),this[e](),o!==(i=K.get(this,e))||r?K.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(K.set(this,e,{value:T.event.trigger(T.extend(o[0],T.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,e)&&T.event.add(t,e,At)}T.event={global:{},add:function(t,e,n,r,i){var o,a,u,c,s,f,l,h,d,p,g,y=K.get(t);if(Z(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&T.find.matchesSelector(at,i),n.guid||(n.guid=T.guid++),(c=y.events)||(c=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),s=(e=(e||"").match($)||[""]).length;s--;)d=g=(u=Tt.exec(e[s])||[])[1],p=(u[2]||"").split(".").sort(),d&&(l=T.event.special[d]||{},d=(i?l.delegateType:l.bindType)||d,l=T.event.special[d]||{},f=T.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=c[d])||((h=c[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,a)),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,f):h.push(f),T.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,a,u,c,s,f,l,h,d,p,g,y=K.hasData(t)&&K.get(t);if(y&&(c=y.events)){for(s=(e=(e||"").match($)||[""]).length;s--;)if(d=g=(u=Tt.exec(e[s])||[])[1],p=(u[2]||"").split(".").sort(),d){for(l=T.event.special[d]||{},h=c[d=(r?l.delegateType:l.bindType)||d]||[],u=u[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)f=h[o],!i&&g!==f.origType||n&&n.guid!==f.guid||u&&!u.test(f.namespace)||r&&r!==f.selector&&("**"!==r||!f.selector)||(h.splice(o,1),f.selector&&h.delegateCount--,l.remove&&l.remove.call(t,f));a&&!h.length&&(l.teardown&&!1!==l.teardown.call(t,p,y.handle)||T.removeEvent(t,d,y.handle),delete c[d])}else for(d in c)T.event.remove(t,d+e[s],n,r,!0);T.isEmptyObject(c)&&K.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,u=new Array(arguments.length),c=T.event.fix(t),s=(K.get(this,"events")||Object.create(null))[c.type]||[],f=T.event.special[c.type]||{};for(u[0]=c,e=1;e<arguments.length;e++)u[e]=arguments[e];if(c.delegateTarget=this,!f.preDispatch||!1!==f.preDispatch.call(this,c)){for(a=T.event.handlers.call(this,c,s),e=0;(i=a[e++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,c),c.result}},handlers:function(t,e){var n,r,i,o,a,u=[],c=e.delegateCount,s=t.target;if(c&&s.nodeType&&!("click"===t.type&&t.button>=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&("click"!==t.type||!0!==s.disabled)){for(o=[],a={},n=0;n<c;n++)void 0===a[i=(r=e[n]).selector+" "]&&(a[i]=r.needsContext?T(i,this).index(s)>-1:T.find(i,this,null,[s]).length),a[i]&&o.push(r);o.length&&u.push({elem:s,handlers:o})}return s=this,c<e.length&&u.push({elem:s,handlers:e.slice(c)}),u},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return yt.test(e.type)&&e.click&&C(e,"input")&&Nt(e,"click",At),!1},trigger:function(t){var e=this||t;return yt.test(e.type)&&e.click&&C(e,"input")&&Nt(e,"click"),!0},_default:function(t){var e=t.target;return yt.test(e.type)&&e.click&&C(e,"input")&&K.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?At:St,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=At,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=At,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=At,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.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},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,e){T.event.special[t]={setup:function(){return Nt(this,t,Et),!1},trigger:function(){return Nt(this,t),!0},_default:function(e){return K.get(e.target,t)},delegateType:e}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||T.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}})),T.fn.extend({on:function(t,e,n,r){return kt(this,t,e,n,r)},one:function(t,e,n,r){return kt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,T(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=St),this.each((function(){T.event.remove(this,t,n,e)}))}});var Ct=/<script|<style|<link/i,Dt=/checked\s*(?:[^=]|=\s*.checked.)/i,Pt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function jt(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Lt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ot(t,e){var n,r,i,o,a,u;if(1===e.nodeType){if(K.hasData(t)&&(u=K.get(t).events))for(i in K.remove(e,"handle events"),u)for(n=0,r=u[i].length;n<r;n++)T.event.add(e,i,u[i][n]);J.hasData(t)&&(o=J.access(t),a=T.extend({},o),J.set(e,a))}}function Rt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&yt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function $t(t,e,n,r){e=c(e);var i,o,a,u,s,f,l=0,h=t.length,d=h-1,p=e[0],g=v(p);if(g||h>1&&"string"==typeof p&&!y.checkClone&&Dt.test(p))return t.each((function(i){var o=t.eq(i);g&&(e[0]=p.call(this,i,o.html())),$t(o,e,n,r)}));if(h&&(o=(i=Mt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(a=T.map(_t(i,"script"),qt)).length;l<h;l++)s=i,l!==d&&(s=T.clone(s,!0,!0),u&&T.merge(a,_t(s,"script"))),n.call(t[l],s,l);if(u)for(f=a[a.length-1].ownerDocument,T.map(a,Lt),l=0;l<u;l++)s=a[l],mt.test(s.type||"")&&!K.access(s,"globalEval")&&T.contains(f,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?T._evalUrl&&!s.noModule&&T._evalUrl(s.src,{nonce:s.nonce||s.getAttribute("nonce")},f):x(s.textContent.replace(Pt,""),s,f))}return t}function zt(t,e,n){for(var r,i=e?T.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||T.cleanData(_t(r)),r.parentNode&&(n&&ut(r)&&xt(_t(r,"script")),r.parentNode.removeChild(r));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,a,u=t.cloneNode(!0),c=ut(t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(a=_t(u),r=0,i=(o=_t(t)).length;r<i;r++)Rt(o[r],a[r]);if(e)if(n)for(o=o||_t(t),a=a||_t(u),r=0,i=o.length;r<i;r++)Ot(o[r],a[r]);else Ot(t,u);return(a=_t(u,"script")).length>0&&xt(a,!c&&_t(t,"script")),u},cleanData:function(t){for(var e,n,r,i=T.event.special,o=0;void 0!==(n=t[o]);o++)if(Z(n)){if(e=n[K.expando]){if(e.events)for(r in e.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,e.handle);n[K.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),T.fn.extend({detach:function(t){return zt(this,t,!0)},remove:function(t){return zt(this,t)},text:function(t){return Y(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return $t(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||jt(this,t).appendChild(t)}))},prepend:function(){return $t(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=jt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return $t(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return $t(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(_t(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return T.clone(this,t,e)}))},html:function(t){return Y(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ct.test(t)&&!bt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(_t(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return $t(this,arguments,(function(e){var n=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(_t(this)),n&&n.replaceChild(e,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){T.fn[t]=function(t){for(var n,r=[],i=T(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),T(i[a])[e](n),s.apply(r,n.get());return this.pushStack(r)}}));var It=new RegExp("^("+rt+")(?!px)[a-z%]+$","i"),Ht=/^--/,Ft=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=r),e.getComputedStyle(t)},Bt=function(t,e,n){var r,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=o[i];return r},Ut=new RegExp(ot.join("|"),"i"),Yt="[\\x20\\t\\r\\n\\f]",Wt=new RegExp("^"+Yt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Yt+"+$","g");function Xt(t,e,n){var r,i,o,a,u=Ht.test(e),c=t.style;return(n=n||Ft(t))&&(a=n.getPropertyValue(e)||n[e],u&&a&&(a=a.replace(Wt,"$1")||void 0),""!==a||ut(t)||(a=T.style(t,e)),!y.pixelBoxStyles()&&It.test(a)&&Ut.test(e)&&(r=c.width,i=c.minWidth,o=c.maxWidth,c.minWidth=c.maxWidth=c.width=a,a=n.width,c.width=r,c.minWidth=i,c.maxWidth=o)),void 0!==a?a+"":a}function Vt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(f){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",f.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",at.appendChild(s).appendChild(f);var t=r.getComputedStyle(f);n="1%"!==t.top,c=12===e(t.marginLeft),f.style.right="60%",a=36===e(t.right),i=36===e(t.width),f.style.position="absolute",o=12===e(f.offsetWidth/3),at.removeChild(s),f=null}}function e(t){return Math.round(parseFloat(t))}var n,i,o,a,u,c,s=b.createElement("div"),f=b.createElement("div");f.style&&(f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===f.style.backgroundClip,T.extend(y,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),c},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,i;return null==u&&(t=b.createElement("table"),e=b.createElement("tr"),n=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",at.appendChild(t).appendChild(e).appendChild(n),i=r.getComputedStyle(e),u=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,at.removeChild(t)),u}}))}();var Gt=["Webkit","Moz","ms"],Zt=b.createElement("div").style,Qt={};function Kt(t){return T.cssProps[t]||Qt[t]||(t in Zt?t:Qt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Gt.length;n--;)if((t=Gt[n]+e)in Zt)return t}(t)||t)}var Jt=/^(none|table(?!-c[ea]).+)/,te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"};function ne(t,e,n){var r=it.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function re(t,e,n,r,i,o){var a="width"===e?1:0,u=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=T.css(t,n+ot[a],!0,i)),r?("content"===n&&(c-=T.css(t,"padding"+ot[a],!0,i)),"margin"!==n&&(c-=T.css(t,"border"+ot[a]+"Width",!0,i))):(c+=T.css(t,"padding"+ot[a],!0,i),"padding"!==n?c+=T.css(t,"border"+ot[a]+"Width",!0,i):u+=T.css(t,"border"+ot[a]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-c-u-.5))||0),c}function ie(t,e,n){var r=Ft(t),i=(!y.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,r),o=i,a=Xt(t,e,r),u="offset"+e[0].toUpperCase()+e.slice(1);if(It.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&C(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===T.css(t,"boxSizing",!1,r),(o=u in t)&&(a=t[u])),(a=parseFloat(a)||0)+re(t,e,n||(i?"border":"content"),o,r,a)+"px"}function oe(t,e,n,r,i){return new oe.prototype.init(t,e,n,r,i)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Xt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=G(e),c=Ht.test(e),s=t.style;if(c||(e=Kt(u)),a=T.cssHooks[e]||T.cssHooks[u],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:s[e];"string"==(o=typeof n)&&(i=it.exec(n))&&i[1]&&(n=ft(t,e,i),o="number"),null!=n&&n==n&&("number"!==o||c||(n+=i&&i[3]||(T.cssNumber[u]?"":"px")),y.clearCloneStyle||""!==n||0!==e.indexOf("background")||(s[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(c?s.setProperty(e,n):s[e]=n))}},css:function(t,e,n,r){var i,o,a,u=G(e);return Ht.test(e)||(e=Kt(u)),(a=T.cssHooks[e]||T.cssHooks[u])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Xt(t,e,r)),"normal"===i&&e in ee&&(i=ee[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),T.each(["height","width"],(function(t,e){T.cssHooks[e]={get:function(t,n,r){if(n)return!Jt.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ie(t,e,r):Bt(t,te,(function(){return ie(t,e,r)}))},set:function(t,n,r){var i,o=Ft(t),a=!y.scrollboxSize()&&"absolute"===o.position,u=(a||r)&&"border-box"===T.css(t,"boxSizing",!1,o),c=r?re(t,e,r,u,o):0;return u&&a&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-re(t,e,"border",!1,o)-.5)),c&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),ne(0,n,c)}}})),T.cssHooks.marginLeft=Vt(y.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Xt(t,"marginLeft"))||t.getBoundingClientRect().left-Bt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,e){T.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+ot[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(T.cssHooks[t+e].set=ne)})),T.fn.extend({css:function(t,e){return Y(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Ft(t),i=e.length;a<i;a++)o[e[a]]=T.css(t,e[a],!1,r);return o}return void 0!==n?T.style(t,e,n):T.css(t,e)}),t,e,arguments.length>1)}}),T.Tween=oe,oe.prototype={constructor:oe,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var t=oe.propHooks[this.prop];return t&&t.get?t.get(this):oe.propHooks._default.get(this)},run:function(t){var e,n=oe.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):oe.propHooks._default.set(this),this}},oe.prototype.init.prototype=oe.prototype,oe.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},oe.propHooks.scrollTop=oe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=oe.prototype.init,T.fx.step={};var ae,ue,ce=/^(?:toggle|show|hide)$/,se=/queueHooks$/;function fe(){ue&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(fe):r.setTimeout(fe,T.fx.interval),T.fx.tick())}function le(){return r.setTimeout((function(){ae=void 0})),ae=Date.now()}function he(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=ot[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function de(t,e,n){for(var r,i=(pe.tweeners[e]||[]).concat(pe.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function pe(t,e,n){var r,i,o=0,a=pe.prefilters.length,u=T.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var e=ae||le(),n=Math.max(0,s.startTime+s.duration-e),r=1-(n/s.duration||0),o=0,a=s.tweens.length;o<a;o++)s.tweens[o].run(r);return u.notifyWith(t,[s,r,n]),r<1&&a?n:(a||u.notifyWith(t,[s,1,0]),u.resolveWith(t,[s]),!1)},s=u.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:e,originalOptions:n,startTime:ae||le(),duration:n.duration,tweens:[],createTween:function(e,n){var r=T.Tween(t,s.opts,e,n,s.opts.specialEasing[e]||s.opts.easing);return s.tweens.push(r),r},stop:function(e){var n=0,r=e?s.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)s.tweens[n].run(1);return e?(u.notifyWith(t,[s,1,0]),u.resolveWith(t,[s,e])):u.rejectWith(t,[s,e]),this}}),f=s.props;for(function(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=G(n)],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=T.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(f,s.opts.specialEasing);o<a;o++)if(r=pe.prefilters[o].call(s,t,f,s.opts))return v(r.stop)&&(T._queueHooks(s.elem,s.opts.queue).stop=r.stop.bind(r)),r;return T.map(f,de,s),v(s.opts.start)&&s.opts.start.call(t,s),s.progress(s.opts.progress).done(s.opts.done,s.opts.complete).fail(s.opts.fail).always(s.opts.always),T.fx.timer(T.extend(c,{elem:t,anim:s,queue:s.opts.queue})),s}T.Animation=T.extend(pe,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ft(n.elem,t,it.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match($);for(var n,r=0,i=t.length;r<i;r++)n=t[r],pe.tweeners[n]=pe.tweeners[n]||[],pe.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,o,a,u,c,s,f,l="width"in e||"height"in e,h=this,d={},p=t.style,g=t.nodeType&&st(t),y=K.get(t,"fxshow");for(r in n.queue||(null==(a=T._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,T.queue(t,"fx").length||a.empty.fire()}))}))),e)if(i=e[r],ce.test(i)){if(delete e[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!y||void 0===y[r])continue;g=!0}d[r]=y&&y[r]||T.style(t,r)}if((c=!T.isEmptyObject(e))||!T.isEmptyObject(d))for(r in l&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(s=y&&y.display)&&(s=K.get(t,"display")),"none"===(f=T.css(t,"display"))&&(s?f=s:(dt([t],!0),s=t.style.display||s,f=T.css(t,"display"),dt([t]))),("inline"===f||"inline-block"===f&&null!=s)&&"none"===T.css(t,"float")&&(c||(h.done((function(){p.display=s})),null==s&&(f=p.display,s="none"===f?"":f)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),c=!1,d)c||(y?"hidden"in y&&(g=y.hidden):y=K.access(t,"fxshow",{display:s}),o&&(y.hidden=!g),g&&dt([t],!0),h.done((function(){for(r in g||dt([t]),K.remove(t,"fxshow"),d)T.style(t,r,d[r])}))),c=de(g?y[r]:0,r,h),r in y||(y[r]=c.start,g&&(c.end=c.start,c.start=0))}],prefilter:function(t,e){e?pe.prefilters.unshift(t):pe.prefilters.push(t)}}),T.speed=function(t,e,n){var r=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(t,e,n,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=T.isEmptyObject(t),o=T.speed(e,n,r),a=function(){var e=pe(this,T.extend({},t),o);(i||K.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",o=T.timers,a=K.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&se.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||T.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=K.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=T.timers,a=r?r.length:0;for(n.finish=!0,T.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(t,e){var n=T.fn[e];T.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(he(e,!0),t,r,i)}})),T.each({slideDown:he("show"),slideUp:he("hide"),slideToggle:he("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){T.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(ae=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),ae=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ue||(ue=!0,fe())},T.fx.stop=function(){ue=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var i=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(i)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",y.checkOn=""!==t.value,y.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",y.radioValue="t"===t.value}();var ge,ye=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return Y(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,e,n):(1===o&&T.isXMLDoc(t)||(i=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?ge:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=T.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&C(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match($);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),ge={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ye[e]||T.find.attr;ye[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=ye[a],ye[a]=i,i=null!=n(t,e,r)?a:null,ye[a]=o),i}}));var ve=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function be(t){return(t.match($)||[]).join(" ")}function _e(t){return t.getAttribute&&t.getAttribute("class")||""}function xe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match($)||[]}T.fn.extend({prop:function(t,e){return Y(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(e=T.propFix[e]||e,i=T.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):ve.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each((function(e){T(this).addClass(t.call(this,e,_e(this)))})):(e=xe(t)).length?this.each((function(){if(r=_e(this),n=1===this.nodeType&&" "+be(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=be(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each((function(e){T(this).removeClass(t.call(this,e,_e(this)))})):arguments.length?(e=xe(t)).length?this.each((function(){if(r=_e(this),n=1===this.nodeType&&" "+be(r)+" "){for(o=0;o<e.length;o++)for(i=e[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=be(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,o,a=typeof t,u="string"===a||Array.isArray(t);return v(t)?this.each((function(n){T(this).toggleClass(t.call(this,n,_e(this),e),e)})):"boolean"==typeof e&&u?e?this.addClass(t):this.removeClass(t):(n=xe(t),this.each((function(){if(u)for(o=T(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=_e(this))&&K.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":K.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+be(_e(n))+" ").indexOf(e)>-1)return!0;return!1}});var we=/\r/g;T.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=v(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,T(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(t){return null==t?"":t+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(we,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:be(T.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,u=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=T(n).val(),a)return e;u.push(e)}return u},set:function(t,e){for(var n,r,i=t.options,o=T.makeArray(e),a=i.length;a--;)((r=i[a]).selected=T.inArray(T.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},y.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),y.focusin="onfocusin"in r;var Me=/^(?:focusinfocus|focusoutblur)$/,Te=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,n,i){var o,a,u,c,s,f,l,h,p=[n||b],g=d.call(t,"type")?t.type:t,y=d.call(t,"namespace")?t.namespace.split("."):[];if(a=h=u=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Me.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(y=g.split("."),g=y.shift(),y.sort()),s=g.indexOf(":")<0&&"on"+g,(t=t[T.expando]?t:new T.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),l=T.event.special[g]||{},i||!l.trigger||!1!==l.trigger.apply(n,e))){if(!i&&!l.noBubble&&!m(n)){for(c=l.delegateType||g,Me.test(c+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),u=a;u===(n.ownerDocument||b)&&p.push(u.defaultView||u.parentWindow||r)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?c:l.bindType||g,(f=(K.get(a,"events")||Object.create(null))[t.type]&&K.get(a,"handle"))&&f.apply(a,e),(f=s&&a[s])&&f.apply&&Z(a)&&(t.result=f.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||l._default&&!1!==l._default.apply(p.pop(),e)||!Z(n)||s&&v(n[g])&&!m(n)&&((u=n[s])&&(n[s]=null),T.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Te),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Te),T.event.triggered=void 0,u&&(n[s]=u)),t.result}},simulate:function(t,e,n){var r=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(r,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each((function(){T.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}}),y.focusin||T.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){T.event.simulate(e,t.target,T.event.fix(t))};T.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,e);i||r.addEventListener(t,n,!0),K.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,e)-1;i?K.access(r,e,i):(r.removeEventListener(t,n,!0),K.remove(r,e))}}}));var Ae=r.location,Se={guid:Date.now()},Ee=/\?/;T.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var ke=/\[\]$/,Ne=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,De=/^(?:input|select|textarea|keygen)/i;function Pe(t,e,n,r){var i;if(Array.isArray(e))T.each(e,(function(e,i){n||ke.test(t)?r(t,i):Pe(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==w(e))r(t,e);else for(i in e)Pe(t+"["+i+"]",e[i],n,r)}T.param=function(t,e){var n,r=[],i=function(t,e){var n=v(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){i(this.name,this.value)}));else for(n in t)Pe(n,t[n],e,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&De.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!yt.test(t))})).map((function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(t){return{name:e.name,value:t.replace(Ne,"\r\n")}})):{name:e.name,value:n.replace(Ne,"\r\n")}})).get()}});var je=/%20/g,qe=/#.*$/,Le=/([?&])_=[^&]*/,Oe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Re=/^(?:GET|HEAD)$/,$e=/^\/\//,ze={},Ie={},He="*/".concat("*"),Fe=b.createElement("a");function Be(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match($)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Ue(t,e,n,r){var i={},o=t===Ie;function a(u){var c;return i[u]=!0,T.each(t[u]||[],(function(t,u){var s=u(e,n,r);return"string"!=typeof s||o||i[s]?o?!(c=s):void 0:(e.dataTypes.unshift(s),a(s),!1)})),c}return a(e.dataTypes[0])||!i["*"]&&a("*")}function Ye(t,e){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&T.extend(!0,t,r),t}Fe.href=Ae.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ae.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ae.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":He,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":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ye(Ye(t,T.ajaxSettings),e):Ye(T.ajaxSettings,t)},ajaxPrefilter:Be(ze),ajaxTransport:Be(Ie),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,o,a,u,c,s,f,l,h,d=T.ajaxSetup({},e),p=d.context||d,g=d.context&&(p.nodeType||p.jquery)?T(p):T.event,y=T.Deferred(),v=T.Callbacks("once memory"),m=d.statusCode||{},_={},x={},w="canceled",M={readyState:0,getResponseHeader:function(t){var e;if(s){if(!a)for(a={};e=Oe.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return s?o:null},setRequestHeader:function(t,e){return null==s&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==s&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(s)M.always(t[M.status]);else for(e in t)m[e]=[m[e],t[e]];return this},abort:function(t){var e=t||w;return n&&n.abort(e),A(0,e),this}};if(y.promise(M),d.url=((t||d.url||Ae.href)+"").replace($e,Ae.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match($)||[""],null==d.crossDomain){c=b.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Fe.protocol+"//"+Fe.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=T.param(d.data,d.traditional)),Ue(ze,d,e,M),s)return M;for(l in(f=T.event&&d.global)&&0==T.active++&&T.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Re.test(d.type),i=d.url.replace(qe,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(je,"+")):(h=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Ee.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Le,"$1"),h=(Ee.test(i)?"&":"?")+"_="+Se.guid+++h),d.url=i+h),d.ifModified&&(T.lastModified[i]&&M.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&M.setRequestHeader("If-None-Match",T.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&M.setRequestHeader("Content-Type",d.contentType),M.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+He+"; q=0.01":""):d.accepts["*"]),d.headers)M.setRequestHeader(l,d.headers[l]);if(d.beforeSend&&(!1===d.beforeSend.call(p,M,d)||s))return M.abort();if(w="abort",v.add(d.complete),M.done(d.success),M.fail(d.error),n=Ue(Ie,d,e,M)){if(M.readyState=1,f&&g.trigger("ajaxSend",[M,d]),s)return M;d.async&&d.timeout>0&&(u=r.setTimeout((function(){M.abort("timeout")}),d.timeout));try{s=!1,n.send(_,A)}catch(t){if(s)throw t;A(-1,t)}}else A(-1,"No Transport");function A(t,e,a,c){var l,h,b,_,x,w=e;s||(s=!0,u&&r.clearTimeout(u),n=void 0,o=c||"",M.readyState=t>0?4:0,l=t>=200&&t<300||304===t,a&&(_=function(t,e,n){for(var r,i,o,a,u=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||t.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(d,M,a)),!l&&T.inArray("script",d.dataTypes)>-1&&T.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),_=function(t,e,n,r){var i,o,a,u,c,s={},f=t.dataTypes.slice();if(f[1])for(a in t.converters)s[a.toLowerCase()]=t.converters[a];for(o=f.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!c&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),c=o,o=f.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=s[c+" "+o]||s["* "+o]))for(i in s)if((u=i.split(" "))[1]===o&&(a=s[c+" "+u[0]]||s["* "+u[0]])){!0===a?a=s[i]:!0!==s[i]&&(o=u[0],f.unshift(u[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+c+" to "+o}}}return{state:"success",data:e}}(d,_,M,l),l?(d.ifModified&&((x=M.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=x),(x=M.getResponseHeader("etag"))&&(T.etag[i]=x)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=_.state,h=_.data,l=!(b=_.error))):(b=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(e||w)+"",l?y.resolveWith(p,[h,w,M]):y.rejectWith(p,[M,w,b]),M.statusCode(m),m=void 0,f&&g.trigger(l?"ajaxSuccess":"ajaxError",[M,d,l?h:b]),v.fireWith(p,[M,w]),f&&(g.trigger("ajaxComplete",[M,d]),--T.active||T.event.trigger("ajaxStop")))}return M},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],(function(t,e){T[e]=function(t,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:t,type:e,dataType:i,data:n,success:r},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){T(this).wrapInner(t.call(this,e))})):this.each((function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){T(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var We={0:200,1223:204},Xe=T.ajaxSettings.xhr();y.cors=!!Xe&&"withCredentials"in Xe,y.ajax=Xe=!!Xe,T.ajaxTransport((function(t){var e,n;if(y.cors||Xe&&!t.crossDomain)return{send:function(i,o){var a,u=t.xhr();if(u.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)u[a]=t.xhrFields[a];for(a in t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)u.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=n=u.onload=u.onerror=u.onabort=u.ontimeout=u.onreadystatechange=null,"abort"===t?u.abort():"error"===t?"number"!=typeof u.status?o(0,"error"):o(u.status,u.statusText):o(We[u.status]||u.status,u.statusText,"text"!==(u.responseType||"text")||"string"!=typeof u.responseText?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=e(),n=u.onerror=u.ontimeout=e("error"),void 0!==u.onabort?u.onabort=n:u.onreadystatechange=function(){4===u.readyState&&r.setTimeout((function(){e&&n()}))},e=e("abort");try{u.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Ve,Ge=[],Ze=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ge.pop()||T.expando+"_"+Se.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",(function(t,e,n){var i,o,a,u=!1!==t.jsonp&&(Ze.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(t.data)&&"data");if(u||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(Ze,"$1"+i):!1!==t.jsonp&&(t.url+=(Ee.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||T.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){void 0===o?T(r).removeProp(i):r[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ge.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),y.createHTMLDocument=((Ve=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ve.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(y.createHTMLDocument?((r=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(r)):e=b),o=!n&&[],(i=D.exec(t))?[e.createElement(i[1])]:(i=Mt([t],e,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(t,e,n){var r,i,o,a=this,u=t.indexOf(" ");return u>-1&&(r=be(t.slice(u)),t=t.slice(0,u)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&T.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(r?T("<div>").append(T.parseHTML(t)).find(r):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,(function(e){return t===e.elem})).length},T.offset={setOffset:function(t,e,n){var r,i,o,a,u,c,s=T.css(t,"position"),f=T(t),l={};"static"===s&&(t.style.position="relative"),u=f.offset(),o=T.css(t,"top"),c=T.css(t,"left"),("absolute"===s||"fixed"===s)&&(o+c).indexOf("auto")>-1?(a=(r=f.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),v(e)&&(e=e.call(t,n,T.extend({},u))),null!=e.top&&(l.top=e.top-u.top+a),null!=e.left&&(l.left=e.left-u.left+i),"using"in e?e.using.call(t,l):f.css(l)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){T.offset.setOffset(this,t,e)}));var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),i.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-T.css(r,"marginTop",!0),left:e.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||at}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;T.fn[t]=function(r){return Y(this,(function(t,r,i){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i}),t,r,arguments.length)}})),T.each(["top","left"],(function(t,e){T.cssHooks[e]=Vt(y.pixelPosition,(function(t,n){if(n)return n=Xt(t,e),It.test(n)?T(t).position()[e]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){T.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),u=n||(!0===i||!0===o?"margin":"border");return Y(this,(function(e,n,i){var o;return m(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?T.css(e,n,u):T.style(e,n,i,u)}),e,a?i:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){T.fn[e]=function(t){return this.on(e,t)}})),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),T.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(t,e){T.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Qe=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return r=u.call(arguments,2),i=function(){return t.apply(e||this,r.concat(u.call(arguments)))},i.guid=t.guid=t.guid||T.guid++,i},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=v,T.isWindow=m,T.camelCase=G,T.type=w,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(Qe,"$1")},void 0===(n=function(){return T}.apply(e,[]))||(t.exports=n);var Ke=r.jQuery,Je=r.$;return T.noConflict=function(t){return r.$===T&&(r.$=Je),t&&r.jQuery===T&&(r.jQuery=Ke),T},void 0===i&&(r.jQuery=r.$=T),T}))},80:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const u=o(n(563)),c=a(n(291));let s,f;f=document.body.clientWidth,s=document.body.clientHeight;const l=450,h=c.default("#resetTree"),d=c.default("#expandTree");let p=0,g=0,y=u.tree().size([s,f]);const v=u.hierarchy(treeData,(function(t){return t.children}));v.x0=s/2,v.y0=0;const m=u.select("body").append("div").style("opacity",1e-6).attr("class","tooltip");function b(){m.style("opacity",1e-6),m.style("display","none")}const _=u.zoom().scaleExtent([.3,3]).on("zoom",(function(t){w.attr("transform",t.transform),b()})),x=u.select("svg#tree-container").attr("width",f).attr("height",s).call(_),w=x.append("g").attr("id","svg-group").attr("transform","translate(0,0)");function M(t){t.each((function(t){return t.bbox=this.getBBox(),t.bbox}))}function T(t){return t.split(/(?=[A-Z])/).map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")}const A=function(t){const e='<div class="tip_prop">'+t.data.name+" </div>",n='<div class="tip_desc">'+t.data.description+"</div>",r='<div class="tip_type">'+t.data.type+"</div>",i='<div class="tip_enums">'+t.data.type.replaceAll("|"," | ")+"</div>",o='<div class="tip_control">'+t.data.control+"</div>";let a='<div id="b1"><svg id="close-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M3.71313 3L3.00699 3.7049L6.79636 7.497L3 11.2941L3.70714 12L7.5025 8.20391L11.2939 11.996L12 11.2901L8.20863 7.497L11.994 3.71089L11.2869 3.00499L7.5025 6.7901L3.71313 3Z"\n fill="#C5C5C5"\n />\n </g>\n </svg></div>';return a+=e,t.data.description&&(a+=n),t.data.type&&(a+='<div class="tip_type-container">',t.data.type.includes("|")?a+=i:a+=r),t.data.artifact&&(a+='<div class="tip_type">'+T(t.data.artifact)+"</div>"),t.data.control&&(a+=o),t.data.type&&(a+="</div>"),a};function S(t){t.children&&(t._children=t.children,t._children.forEach(S),t.children=null)}function E(t){if(t._children&&(t.children=t._children,t._children=null),t.children){const e=t.children.length;for(let n=0;n<e;n++)t.children[n].name&&E(t.children[n])}}function k(t){t._children&&(t.children=t._children,t._children=null);const e=t.children?t.children:t._children;e&&e.forEach(k)}function N(t,e,n){if(!t)return;e(t);const r=n(t);if(r){const t=r.length;for(let i=0;i<t;i++)N(r[i],e,n)}}function C(t,e){const n=e||2,r=u.zoomTransform(x.node());let i=-t.y0,o=-t.x0;i=i*r.k+f/n,o=o*r.k+s/2,u.select("svg#tree-container").transition().duration(l).call(_.transform,u.zoomIdentity.translate(i,o).scale(r.k))}function D(t){let e,n=0;return t.source.id&&(e=u.select("#n-"+t.source.id).node()),e&&(n=e.getBBox().width),"M"+(t.source.y+n+20)+","+t.source.x+"H"+(t.target.y-15)+"V"+t.target.x+"h15"}function P(t,e){const n=e||[],r=t.parent;if(r){const e=r.children||r._children;return n.unshift(e.indexOf(t)),P(r,n)}return n}function j(t){const e=[1];!function t(n,r){r.children&&r.children.length>0&&(e.length<=n+1&&e.push(0),e[n+1]+=r.children.length,r.children.forEach((function(e){t(n+1,e)})))}(0,v);const n=40*u.max(e);y=y.size([n,f]);const r=y(v),i=r.descendants(),o=r.links();i.forEach((function(t){t.y=t.depth*(5*g)}));const a=w.selectAll("g.node").data(i,(function(t){return t.id||(t.id=++p)})),c=a.enter().append("g").attr("class","node").attr("id",(function(t){return"n-"+t.id})).attr("transform",(function(){return"translate("+t.y0+","+t.x0+")"}));c.append("text").attr("class","node-text").attr("dy",".35em").attr("x",10).attr("text-anchor","start").attr("text-decoration",(function(t){return t.data.description?"underline":"none"})).attr("cursor",(function(t){return t.data.description?"pointer":"default"})).text((function(t){return T(t.data.name)})).on("click",(function(t,e){!function(t,e){e.data.description||e.data.type?(m.transition().duration(300).style("opacity",1).style("display","flex"),m.html(A(e)),u.select("#b1").on("click",(function(){b()}))):e.data.type||b();const n=x.node().getBoundingClientRect().width-420,r=x.node().getBoundingClientRect().height-220;t.pageX>n&&t.pageY>r?m.style("top",t.pageY-20+"px").style("left",t.pageX-20+"px").style("transform","translate(-100%, -100%)"):t.pageX>n&&!(t.pageY>r)?m.style("top",t.pageY+20+"px").style("left",t.pageX-20+"px").style("transform","translate(-100%, 0)"):!(t.pageX>n)&&t.pageY>r?m.style("top",t.pageY-20+"px").style("left",t.pageX+20+"px").style("transform","translate(0, -100%)"):m.style("top",t.pageY+20+"px").style("left",t.pageX+20+"px").style("transform","translate(0, 0)")}(t,e)})).call(M);const s=c.filter((function(t){if(t.data.children.length>0)return t.data.children}));s.append("text").attr("class","node-child-text").attr("x",(function(t){return t.bbox.x+t.bbox.width+20})).attr("dy",".35em").text((function(t){return t.data.children.length})).call(M),s.insert("rect","text").attr("class","node-child").attr("x",(function(t){return t.bbox.x-7})).attr("y",(function(t){return t.bbox.y-1})).attr("width",(function(t){return t.bbox.width+14})).attr("height",(function(t){return t.bbox.height+2})).attr("ry","8"),s.append("text").attr("class","node-circle-text").attr("x",(function(t){return t.bbox.x+t.bbox.width+15})).attr("dy",".35em").text("+").on("click",q).call(M),s.insert("circle","text").attr("class","node-circle").attr("r",(function(t){return t.bbox.height/2})).attr("cx",(function(t){return t.bbox.x+t.bbox.width/2})).attr("cy",(function(t){return t.bbox.y+t.bbox.height/2})).on("click",q);const h=c.merge(a);h.transition().duration(l).attr("transform",(function(t){return"translate("+t.y+","+t.x+")"})),h.select("rect").style("fill",(function(t){return t._children?"var(--vscode-foreground)":"var(--vscode-editor-background)"})).style("stroke",(function(t){return t._children?"none":"var( --vscode-editorWidget-border)"})).style("stroke-width",(function(t){return t._children?"none":"1px solid"})),h.select("circle").style("fill",(function(t){return t._children?"var(--vscode-button-background)":"var(--vscode-button-secondaryBackground)"})),h.select(".node-child-text").style("fill",(function(t){return t._children?"var( --vscode-editor-background)":"var(--vscode-foreground)"})),h.select(".node-circle-text").text((function(t){return t._children?"+":"−"})),h.selectAll("text").style("fill-opacity",1);const d=a.exit().transition().duration(l).attr("transform",(function(){return"translate("+t.y+","+t.x+")"})).remove();d.select("circle").attr("r",1e-6).style("fill-opacity",1e-6),d.selectAll("rect").attr("x",1e-6).style("fill-opacity",1e-6),d.selectAll("text").style("fill-opacity",1e-6);const _=w.selectAll("path.link").data(o,(function(t){return t.target.id}));_.enter().insert("path","g").attr("class","link").attr("d",(function(){const e={x:t.x0,y:t.y0};return D({source:e,target:e})})).merge(_).transition().duration(l).attr("d",D),_.exit().transition().duration(l).attr("d",(function(){const e={x:t.x,y:t.y};return D({source:e,target:e})})).remove(),i.forEach((function(t){t.x0=t.x,t.y0=t.y}))}function q(t,e){t.defaultPrevented||(j(e=function(t){return t.children?S(t):t._children&&E(t),t}(e)),C(e,2),b())}N(treeData,(function(t){g=Math.max(t.name.length+25,g)}),(function(t){return t.children&&t.children.length>0?t.children:null})),v.children.forEach(S),j(v),C(v,2.5),function(){const t=[];N(v,(function(e){e&&t.push(e.data.name+"|"+P(e,[]).join("-"))}),(function(t){return t.children||t._children})),t.splice(t.indexOf(v.data.name+"|"),1),t.sort(),function(t){const e=c.default("ul#search-result"),n=c.default("#search-input");c.default.each(t,(function(t,n){const r=n.split("|");c.default("<li/>").attr("data-path",r[1]).text(T(r[0])).appendTo(e)})),n.on("keyup",(function(){let t=c.default(this).val();var n;t=t.toUpperCase(),t.length>0?(n=t,c.default("#search-result li").each((function(){c.default(this).text().toUpperCase().indexOf(n)>=0?c.default(this).show():c.default(this).hide()})),e.show()):e.hide()})),e.hide(),c.default("#search-result li").on("click",(function(t){const e=function(t){let e=v;for(let n=0;n<t.length;n++)e._children&&E(e),e=e.children[t[n]];return j(v),C(e,2),e}(c.default(t.target).attr("data-path").split("-"));!function(t){let e=4;const n=c.default("#n-"+t.id+" text");for(;e--;)n.fadeTo(350,0).fadeTo(350,1)}(e)}))}(t)}(),c.default("#n-1").append(floorPlanIcon),u.select("#floorPlan-icon").attr("y",-7).attr("x",-15),h.on("click",(function(){v.children.forEach(S),j(v),C(v,2.5)})),d.on("click",(function(){k(v),j(v),C(v,5)})),u.select(window).on("resize",(function(){f=c.default(window).width(),s=c.default(window).height(),x.attr("width",f),x.attr("height",s),C(v,5)}))},563:(t,e,n)=>{"use strict";function r(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function i(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function o(t){let e,n,o;function u(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=r,n=(e,n)=>r(t(e),n),o=(e,n)=>t(e)-n):(e=t===r||t===i?t:a,n=t,o=t),{left:u,center:function(t,e,n=0,r=t.length){const i=u(t,e,n,r-1);return i>n&&o(t[i-1],e)>-o(t[i],e)?i-1:i},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function a(){return 0}function u(t){return null===t?NaN:+t}function*c(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}n.r(e),n.d(e,{Adder:()=>C,Delaunay:()=>Ju,FormatSpecifier:()=>mf,InternMap:()=>j,InternSet:()=>q,Node:()=>Fg,Path:()=>da,Voronoi:()=>Xu,ZoomTransform:()=>QA,active:()=>mo,arc:()=>LM,area:()=>BM,areaRadial:()=>KM,ascending:()=>r,autoType:()=>Pc,axisBottom:()=>_e,axisLeft:()=>xe,axisRight:()=>be,axisTop:()=>me,bin:()=>pt,bisect:()=>d,bisectCenter:()=>h,bisectLeft:()=>l,bisectRight:()=>f,bisector:()=>o,blob:()=>xs,blur:()=>p,blur2:()=>g,blurImage:()=>y,brush:()=>Xo,brushSelection:()=>Uo,brushX:()=>Yo,brushY:()=>Wo,buffer:()=>Ms,chord:()=>ia,chordDirected:()=>aa,chordTranspose:()=>oa,cluster:()=>Lg,color:()=>dr,contourDensity:()=>_u,contours:()=>pu,count:()=>x,create:()=>sM,creator:()=>kn,cross:()=>A,csv:()=>ks,csvFormat:()=>bc,csvFormatBody:()=>_c,csvFormatRow:()=>wc,csvFormatRows:()=>xc,csvFormatValue:()=>Mc,csvParse:()=>vc,csvParseRows:()=>mc,cubehelix:()=>iu,cumsum:()=>S,curveBasis:()=>FT,curveBasisClosed:()=>UT,curveBasisOpen:()=>WT,curveBumpX:()=>nT,curveBumpY:()=>rT,curveBundle:()=>VT,curveCardinal:()=>QT,curveCardinalClosed:()=>JT,curveCardinalOpen:()=>eA,curveCatmullRom:()=>iA,curveCatmullRomClosed:()=>aA,curveCatmullRomOpen:()=>cA,curveLinear:()=>zM,curveLinearClosed:()=>fA,curveMonotoneX:()=>mA,curveMonotoneY:()=>bA,curveNatural:()=>wA,curveStep:()=>TA,curveStepAfter:()=>SA,curveStepBefore:()=>AA,descending:()=>i,deviation:()=>k,difference:()=>Kt,disjoint:()=>Jt,dispatch:()=>Ee,drag:()=>ac,dragDisable:()=>Xn,dragEnable:()=>Vn,dsv:()=>Es,dsvFormat:()=>gc,easeBack:()=>gs,easeBackIn:()=>ds,easeBackInOut:()=>gs,easeBackOut:()=>ps,easeBounce:()=>fs,easeBounceIn:()=>ss,easeBounceInOut:()=>ls,easeBounceOut:()=>fs,easeCircle:()=>Kc,easeCircleIn:()=>Zc,easeCircleInOut:()=>Kc,easeCircleOut:()=>Qc,easeCubic:()=>po,easeCubicIn:()=>lo,easeCubicInOut:()=>po,easeCubicOut:()=>ho,easeElastic:()=>ms,easeElasticIn:()=>vs,easeElasticInOut:()=>bs,easeElasticOut:()=>ms,easeExp:()=>Gc,easeExpIn:()=>Xc,easeExpInOut:()=>Gc,easeExpOut:()=>Vc,easeLinear:()=>qc,easePoly:()=>Ic,easePolyIn:()=>$c,easePolyInOut:()=>Ic,easePolyOut:()=>zc,easeQuad:()=>Rc,easeQuadIn:()=>Lc,easeQuadInOut:()=>Rc,easeQuadOut:()=>Oc,easeSin:()=>Yc,easeSinIn:()=>Bc,easeSinInOut:()=>Yc,easeSinOut:()=>Uc,every:()=>Wt,extent:()=>N,fcumsum:()=>P,filter:()=>Vt,flatGroup:()=>B,flatRollup:()=>U,forceCenter:()=>Rs,forceCollide:()=>Zs,forceLink:()=>Js,forceManyBody:()=>sf,forceRadial:()=>ff,forceSimulation:()=>cf,forceX:()=>lf,forceY:()=>hf,format:()=>Mf,formatDefaultLocale:()=>kf,formatLocale:()=>Ef,formatPrefix:()=>Tf,formatSpecifier:()=>vf,fsum:()=>D,geoAlbers:()=>Zp,geoAlbersUsa:()=>Qp,geoArea:()=>Pl,geoAzimuthalEqualArea:()=>eg,geoAzimuthalEqualAreaRaw:()=>tg,geoAzimuthalEquidistant:()=>rg,geoAzimuthalEquidistantRaw:()=>ng,geoBounds:()=>dh,geoCentroid:()=>Ah,geoCircle:()=>Oh,geoClipAntimeridian:()=>Xh,geoClipCircle:()=>Vh,geoClipExtent:()=>nd,geoClipRectangle:()=>ed,geoConicConformal:()=>sg,geoConicConformalRaw:()=>cg,geoConicEqualArea:()=>Gp,geoConicEqualAreaRaw:()=>Vp,geoConicEquidistant:()=>dg,geoConicEquidistantRaw:()=>hg,geoContains:()=>bd,geoDistance:()=>fd,geoEqualEarth:()=>_g,geoEqualEarthRaw:()=>bg,geoEquirectangular:()=>lg,geoEquirectangularRaw:()=>fg,geoGnomonic:()=>wg,geoGnomonicRaw:()=>xg,geoGraticule:()=>wd,geoGraticule10:()=>Md,geoIdentity:()=>Mg,geoInterpolate:()=>Td,geoLength:()=>ud,geoMercator:()=>og,geoMercatorRaw:()=>ig,geoNaturalEarth1:()=>Ag,geoNaturalEarth1Raw:()=>Tg,geoOrthographic:()=>Eg,geoOrthographicRaw:()=>Sg,geoPath:()=>Dp,geoProjection:()=>Yp,geoProjectionMutator:()=>Wp,geoRotation:()=>jh,geoStereographic:()=>Ng,geoStereographicRaw:()=>kg,geoStream:()=>cl,geoTransform:()=>Pp,geoTransverseMercator:()=>Dg,geoTransverseMercatorRaw:()=>Cg,gray:()=>$a,greatest:()=>xt,greatestIndex:()=>$t,group:()=>I,groupSort:()=>et,groups:()=>H,hcl:()=>Xa,hierarchy:()=>Rg,histogram:()=>pt,hsl:()=>Sr,html:()=>Ls,image:()=>Cs,index:()=>X,indexes:()=>V,interpolate:()=>Kr,interpolateArray:()=>Ur,interpolateBasis:()=>Pr,interpolateBasisClosed:()=>jr,interpolateBlues:()=>Ow,interpolateBrBG:()=>Vx,interpolateBuGn:()=>hw,interpolateBuPu:()=>pw,interpolateCividis:()=>Xw,interpolateCool:()=>Zw,interpolateCubehelix:()=>nv,interpolateCubehelixDefault:()=>Vw,interpolateCubehelixLong:()=>rv,interpolateDate:()=>Wr,interpolateDiscrete:()=>By,interpolateGnBu:()=>yw,interpolateGreens:()=>$w,interpolateGreys:()=>Iw,interpolateHcl:()=>Jy,interpolateHclLong:()=>tv,interpolateHsl:()=>Gy,interpolateHslLong:()=>Zy,interpolateHue:()=>Uy,interpolateInferno:()=>uM,interpolateLab:()=>Qy,interpolateMagma:()=>aM,interpolateNumber:()=>Xr,interpolateNumberArray:()=>Fr,interpolateObject:()=>Vr,interpolateOrRd:()=>mw,interpolateOranges:()=>Ww,interpolatePRGn:()=>Zx,interpolatePiYG:()=>Kx,interpolatePlasma:()=>cM,interpolatePuBu:()=>ww,interpolatePuBuGn:()=>_w,interpolatePuOr:()=>tw,interpolatePuRd:()=>Tw,interpolatePurples:()=>Fw,interpolateRainbow:()=>Kw,interpolateRdBu:()=>nw,interpolateRdGy:()=>iw,interpolateRdPu:()=>Sw,interpolateRdYlBu:()=>aw,interpolateRdYlGn:()=>cw,interpolateReds:()=>Uw,interpolateRgb:()=>$r,interpolateRgbBasis:()=>Ir,interpolateRgbBasisClosed:()=>Hr,interpolateRound:()=>Yy,interpolateSinebow:()=>nM,interpolateSpectral:()=>fw,interpolateString:()=>Qr,interpolateTransformCss:()=>Ii,interpolateTransformSvg:()=>Hi,interpolateTurbo:()=>rM,interpolateViridis:()=>oM,interpolateWarm:()=>Gw,interpolateYlGn:()=>Cw,interpolateYlGnBu:()=>kw,interpolateYlOrBr:()=>Pw,interpolateYlOrRd:()=>qw,interpolateZoom:()=>Xy,interrupt:()=>qi,intersection:()=>te,interval:()=>VA,isoFormat:()=>YA,isoParse:()=>XA,json:()=>Ps,lab:()=>za,lch:()=>Wa,least:()=>Ot,leastIndex:()=>Rt,line:()=>FM,lineRadial:()=>QM,link:()=>uT,linkHorizontal:()=>cT,linkRadial:()=>fT,linkVertical:()=>sT,local:()=>lM,map:()=>Gt,matcher:()=>je,max:()=>gt,maxIndex:()=>yt,mean:()=>Et,median:()=>kt,medianIndex:()=>Nt,merge:()=>Ct,min:()=>vt,minIndex:()=>mt,mode:()=>Dt,namespace:()=>Ve,namespaces:()=>Xe,nice:()=>ht,now:()=>hi,pack:()=>dy,packEnclose:()=>Qg,packSiblings:()=>ly,pairs:()=>Pt,partition:()=>by,path:()=>pa,pathRound:()=>ga,permute:()=>Q,pie:()=>WM,piecewise:()=>iv,pointRadial:()=>JM,pointer:()=>ti,pointers:()=>dM,polygonArea:()=>av,polygonCentroid:()=>uv,polygonContains:()=>hv,polygonHull:()=>lv,polygonLength:()=>dv,precisionFixed:()=>Nf,precisionPrefix:()=>Cf,precisionRound:()=>Df,quadtree:()=>Fs,quantile:()=>wt,quantileIndex:()=>Tt,quantileSorted:()=>Mt,quantize:()=>ov,quickselect:()=>bt,radialArea:()=>KM,radialLine:()=>QM,randomBates:()=>_v,randomBernoulli:()=>Mv,randomBeta:()=>Sv,randomBinomial:()=>Ev,randomCauchy:()=>Nv,randomExponential:()=>xv,randomGamma:()=>Av,randomGeometric:()=>Tv,randomInt:()=>yv,randomIrwinHall:()=>bv,randomLcg:()=>Lv,randomLogNormal:()=>mv,randomLogistic:()=>Cv,randomNormal:()=>vv,randomPareto:()=>wv,randomPoisson:()=>Dv,randomUniform:()=>gv,randomWeibull:()=>kv,range:()=>qt,rank:()=>Lt,reduce:()=>Zt,reverse:()=>Qt,rgb:()=>vr,ribbon:()=>Sa,ribbonArrow:()=>Ea,rollup:()=>Y,rollups:()=>W,scaleBand:()=>Iv,scaleDiverging:()=>Cx,scaleDivergingLog:()=>Dx,scaleDivergingPow:()=>jx,scaleDivergingSqrt:()=>qx,scaleDivergingSymlog:()=>Px,scaleIdentity:()=>em,scaleImplicit:()=>$v,scaleLinear:()=>tm,scaleLog:()=>fm,scaleOrdinal:()=>zv,scalePoint:()=>Fv,scalePow:()=>bm,scaleQuantile:()=>Mm,scaleQuantize:()=>Tm,scaleRadial:()=>wm,scaleSequential:()=>Mx,scaleSequentialLog:()=>Tx,scaleSequentialPow:()=>Sx,scaleSequentialQuantile:()=>kx,scaleSequentialSqrt:()=>Ex,scaleSequentialSymlog:()=>Ax,scaleSqrt:()=>_m,scaleSymlog:()=>pm,scaleThreshold:()=>Am,scaleTime:()=>bx,scaleUtc:()=>_x,scan:()=>zt,schemeAccent:()=>Rx,schemeBlues:()=>Lw,schemeBrBG:()=>Xx,schemeBuGn:()=>lw,schemeBuPu:()=>dw,schemeCategory10:()=>Ox,schemeDark2:()=>$x,schemeGnBu:()=>gw,schemeGreens:()=>Rw,schemeGreys:()=>zw,schemeOrRd:()=>vw,schemeOranges:()=>Yw,schemePRGn:()=>Gx,schemePaired:()=>zx,schemePastel1:()=>Ix,schemePastel2:()=>Hx,schemePiYG:()=>Qx,schemePuBu:()=>xw,schemePuBuGn:()=>bw,schemePuOr:()=>Jx,schemePuRd:()=>Mw,schemePurples:()=>Hw,schemeRdBu:()=>ew,schemeRdGy:()=>rw,schemeRdPu:()=>Aw,schemeRdYlBu:()=>ow,schemeRdYlGn:()=>uw,schemeReds:()=>Bw,schemeSet1:()=>Fx,schemeSet2:()=>Bx,schemeSet3:()=>Ux,schemeSpectral:()=>sw,schemeTableau10:()=>Yx,schemeYlGn:()=>Nw,schemeYlGnBu:()=>Ew,schemeYlOrBr:()=>Dw,schemeYlOrRd:()=>jw,select:()=>Fn,selectAll:()=>pM,selection:()=>Hn,selector:()=>Ne,selectorAll:()=>Pe,shuffle:()=>It,shuffler:()=>Ht,some:()=>Xt,sort:()=>K,stack:()=>DA,stackOffsetDiverging:()=>jA,stackOffsetExpand:()=>PA,stackOffsetNone:()=>EA,stackOffsetSilhouette:()=>qA,stackOffsetWiggle:()=>LA,stackOrderAppearance:()=>OA,stackOrderAscending:()=>$A,stackOrderDescending:()=>IA,stackOrderInsideOut:()=>HA,stackOrderNone:()=>kA,stackOrderReverse:()=>FA,stratify:()=>Ay,style:()=>an,subset:()=>ie,sum:()=>Ft,superset:()=>ne,svg:()=>Os,symbol:()=>$T,symbolAsterisk:()=>hT,symbolCircle:()=>dT,symbolCross:()=>pT,symbolDiamond:()=>vT,symbolDiamond2:()=>mT,symbolPlus:()=>bT,symbolSquare:()=>_T,symbolSquare2:()=>xT,symbolStar:()=>AT,symbolTimes:()=>LT,symbolTriangle:()=>ET,symbolTriangle2:()=>NT,symbolWye:()=>qT,symbolX:()=>LT,symbols:()=>OT,symbolsFill:()=>OT,symbolsStroke:()=>RT,text:()=>As,thresholdFreedmanDiaconis:()=>At,thresholdScott:()=>St,thresholdSturges:()=>dt,tickFormat:()=>Kv,tickIncrement:()=>ft,tickStep:()=>lt,ticks:()=>st,timeDay:()=>Vm,timeDays:()=>Gm,timeFormat:()=>Vb,timeFormatDefaultLocale:()=>gx,timeFormatLocale:()=>Wb,timeFriday:()=>ab,timeFridays:()=>db,timeHour:()=>Um,timeHours:()=>Ym,timeInterval:()=>Lm,timeMillisecond:()=>Om,timeMilliseconds:()=>Rm,timeMinute:()=>Im,timeMinutes:()=>Hm,timeMonday:()=>nb,timeMondays:()=>sb,timeMonth:()=>Cb,timeMonths:()=>Db,timeParse:()=>Gb,timeSaturday:()=>ub,timeSaturdays:()=>pb,timeSecond:()=>$m,timeSeconds:()=>zm,timeSunday:()=>eb,timeSundays:()=>cb,timeThursday:()=>ob,timeThursdays:()=>hb,timeTickInterval:()=>Fb,timeTicks:()=>Hb,timeTuesday:()=>rb,timeTuesdays:()=>fb,timeWednesday:()=>ib,timeWednesdays:()=>lb,timeWeek:()=>eb,timeWeeks:()=>cb,timeYear:()=>qb,timeYears:()=>Lb,timeout:()=>_i,timer:()=>gi,timerFlush:()=>yi,transition:()=>co,transpose:()=>Bt,tree:()=>qy,treemap:()=>zy,treemapBinary:()=>Iy,treemapDice:()=>my,treemapResquarify:()=>Fy,treemapSlice:()=>Ly,treemapSliceDice:()=>Hy,treemapSquarify:()=>$y,tsv:()=>Ns,tsvFormat:()=>Ec,tsvFormatBody:()=>kc,tsvFormatRow:()=>Cc,tsvFormatRows:()=>Nc,tsvFormatValue:()=>Dc,tsvParse:()=>Ac,tsvParseRows:()=>Sc,union:()=>oe,unixDay:()=>Km,unixDays:()=>Jm,utcDay:()=>Zm,utcDays:()=>Qm,utcFormat:()=>Zb,utcFriday:()=>xb,utcFridays:()=>kb,utcHour:()=>Wm,utcHours:()=>Xm,utcMillisecond:()=>Om,utcMilliseconds:()=>Rm,utcMinute:()=>Fm,utcMinutes:()=>Bm,utcMonday:()=>vb,utcMondays:()=>Tb,utcMonth:()=>Pb,utcMonths:()=>jb,utcParse:()=>Qb,utcSaturday:()=>wb,utcSaturdays:()=>Nb,utcSecond:()=>$m,utcSeconds:()=>zm,utcSunday:()=>yb,utcSundays:()=>Mb,utcThursday:()=>_b,utcThursdays:()=>Eb,utcTickInterval:()=>Ib,utcTicks:()=>zb,utcTuesday:()=>mb,utcTuesdays:()=>Ab,utcWednesday:()=>bb,utcWednesdays:()=>Sb,utcWeek:()=>yb,utcWeeks:()=>Mb,utcYear:()=>Ob,utcYears:()=>Rb,variance:()=>E,window:()=>en,xml:()=>qs,zip:()=>Yt,zoom:()=>cS,zoomIdentity:()=>KA,zoomTransform:()=>JA});const s=o(r),f=s.right,l=s.left,h=o(u).center,d=f;function p(t,e){if(!((e=+e)>=0))throw new RangeError("invalid r");let n=t.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!e)return t;const r=_(e),i=t.slice();return r(t,i,0,n,1),r(i,t,0,n,1),r(t,i,0,n,1),t}const g=v(_),y=v((function(t){const e=_(t);return(t,n,r,i,o)=>{e(t,n,0+(r<<=2),0+(i<<=2),o<<=2),e(t,n,r+1,i+1,o),e(t,n,r+2,i+2,o),e(t,n,r+3,i+3,o)}}));function v(t){return function(e,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:a}=e;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!n&&!r)return e;const u=n&&t(n),c=r&&t(r),s=i.slice();return u&&c?(m(u,s,i,o,a),m(u,i,s,o,a),m(u,s,i,o,a),b(c,i,s,o,a),b(c,s,i,o,a),b(c,i,s,o,a)):u?(m(u,i,s,o,a),m(u,s,i,o,a),m(u,i,s,o,a)):c&&(b(c,i,s,o,a),b(c,s,i,o,a),b(c,i,s,o,a)),e}}function m(t,e,n,r,i){for(let o=0,a=r*i;o<a;)t(e,n,o,o+=r,1)}function b(t,e,n,r,i){for(let o=0,a=r*i;o<r;++o)t(e,n,o,o+a,r)}function _(t){const e=Math.floor(t);if(e===t)return function(t){const e=2*t+1;return(n,r,i,o,a)=>{if(!((o-=a)>=i))return;let u=t*r[i];const c=a*t;for(let t=i,e=i+c;t<e;t+=a)u+=r[Math.min(o,t)];for(let t=i,s=o;t<=s;t+=a)u+=r[Math.min(o,t+c)],n[t]=u/e,u-=r[Math.max(i,t-c)]}}(t);const n=t-e,r=2*t+1;return(t,i,o,a,u)=>{if(!((a-=u)>=o))return;let c=e*i[o];const s=u*e,f=s+u;for(let t=o,e=o+s;t<e;t+=u)c+=i[Math.min(a,t)];for(let e=o,l=a;e<=l;e+=u)c+=i[Math.min(a,e+s)],t[e]=(c+n*(i[Math.max(o,e-f)]+i[Math.min(a,e+f)]))/r,c-=i[Math.max(o,e-s)]}}function x(t,e){let n=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}function w(t){return 0|t.length}function M(t){return!(t>0)}function T(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function A(...t){const e="function"==typeof t[t.length-1]&&function(t){return e=>t(...e)}(t.pop()),n=(t=t.map(T)).map(w),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||n.some(M))return o;for(;;){o.push(i.map(((e,n)=>t[n][e])));let a=r;for(;++i[a]===n[a];){if(0===a)return e?o.map(e):o;i[a--]=0}}}function S(t,e){var n=0,r=0;return Float64Array.from(t,void 0===e?t=>n+=+t||0:i=>n+=+e(i,r++,t)||0)}function E(t,e){let n,r=0,i=0,o=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-i,i+=n/++r,o+=n*(e-i));else{let a=-1;for(let u of t)null!=(u=e(u,++a,t))&&(u=+u)>=u&&(n=u-i,i+=n/++r,o+=n*(u-i))}if(r>1)return o/(r-1)}function k(t,e){const n=E(t,e);return n?Math.sqrt(n):n}function N(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class C{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=e[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(e=o,n=t[--i],o=e+n,r=n-(o-e),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(n=2*r,e=o+n,n==e-o&&(o=e))}return o}}function D(t,e){const n=new C;if(void 0===e)for(let e of t)(e=+e)&&n.add(e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&n.add(i)}return+n}function P(t,e){const n=new C;let r=-1;return Float64Array.from(t,void 0===e?t=>n.add(+t||0):i=>n.add(+e(i,++r,t)||0))}class j extends Map{constructor(t,e=$){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(L(this,t))}has(t){return super.has(L(this,t))}set(t,e){return super.set(O(this,t),e)}delete(t){return super.delete(R(this,t))}}class q extends Set{constructor(t,e=$){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(L(this,t))}add(t){return super.add(O(this,t))}delete(t){return super.delete(R(this,t))}}function L({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function O({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function R({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function $(t){return null!==t&&"object"==typeof t?t.valueOf():t}function z(t){return t}function I(t,...e){return Z(t,z,z,e)}function H(t,...e){return Z(t,Array.from,z,e)}function F(t,e){for(let n=1,r=e.length;n<r;++n)t=t.flatMap((t=>t.pop().map((([e,n])=>[...t,e,n]))));return t}function B(t,...e){return F(H(t,...e),e)}function U(t,e,...n){return F(W(t,e,...n),n)}function Y(t,e,...n){return Z(t,z,e,n)}function W(t,e,...n){return Z(t,Array.from,e,n)}function X(t,...e){return Z(t,z,G,e)}function V(t,...e){return Z(t,Array.from,G,e)}function G(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function Z(t,e,n,r){return function t(i,o){if(o>=r.length)return n(i);const a=new j,u=r[o++];let c=-1;for(const t of i){const e=u(t,++c,i),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[e,n]of a)a.set(e,t(n,o));return e(a)}(t,0)}function Q(t,e){return Array.from(e,(e=>t[e]))}function K(t,...e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&2!==n.length||e.length>1){const r=Uint32Array.from(t,((t,e)=>e));return e.length>1?(e=e.map((e=>t.map(e))),r.sort(((t,n)=>{for(const r of e){const e=tt(r[t],r[n]);if(e)return e}}))):(n=t.map(n),r.sort(((t,e)=>tt(n[t],n[e])))),Q(t,r)}return t.sort(J(n))}function J(t=r){if(t===r)return tt;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}function tt(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function et(t,e,n){return(2!==e.length?K(Y(t,e,n),(([t,e],[n,i])=>r(e,i)||r(t,n))):K(I(t,n),(([t,n],[i,o])=>e(n,o)||r(t,i)))).map((([t])=>t))}var nt=Array.prototype,rt=nt.slice;function it(t){return()=>t}nt.map;const ot=Math.sqrt(50),at=Math.sqrt(10),ut=Math.sqrt(2);function ct(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=ot?10:o>=at?5:o>=ut?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/a,u=Math.round(t*s),c=Math.round(e*s),u/s<t&&++u,c/s>e&&--c,s=-s):(s=Math.pow(10,i)*a,u=Math.round(t/s),c=Math.round(e/s),u*s<t&&++u,c*s>e&&--c),c<u&&.5<=n&&n<2?ct(t,e,2*n):[u,c,s]}function st(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[i,o,a]=r?ct(e,t,n):ct(t,e,n);if(!(o>=i))return[];const u=o-i+1,c=new Array(u);if(r)if(a<0)for(let t=0;t<u;++t)c[t]=(o-t)/-a;else for(let t=0;t<u;++t)c[t]=(o-t)*a;else if(a<0)for(let t=0;t<u;++t)c[t]=(i+t)/-a;else for(let t=0;t<u;++t)c[t]=(i+t)*a;return c}function ft(t,e,n){return ct(t=+t,e=+e,n=+n)[2]}function lt(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?ft(e,t,n):ft(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function ht(t,e,n){let r;for(;;){const i=ft(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function dt(t){return Math.max(1,Math.ceil(Math.log(x(t))/Math.LN2)+1)}function pt(){var t=z,e=N,n=dt;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,u=r.length,c=new Array(u);for(i=0;i<u;++i)c[i]=t(r[i],i,r);var s=e(c),f=s[0],l=s[1],h=n(c,f,l);if(!Array.isArray(h)){const t=l,n=+h;if(e===N&&([f,l]=ht(f,l,n)),(h=st(f,l,n))[0]<=f&&(a=ft(f,l,n)),h[h.length-1]>=l)if(t>=l&&e===N){const t=ft(f,l,n);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}for(var p=h.length,g=0,y=p;h[g]<=f;)++g;for(;h[y-1]>l;)--y;(g||y<p)&&(h=h.slice(g,y),p=y-g);var v,m=new Array(p+1);for(i=0;i<=p;++i)(v=m[i]=[]).x0=i>0?h[i-1]:f,v.x1=i<p?h[i]:l;if(isFinite(a)){if(a>0)for(i=0;i<u;++i)null!=(o=c[i])&&f<=o&&o<=l&&m[Math.min(p,Math.floor((o-f)/a))].push(r[i]);else if(a<0)for(i=0;i<u;++i)if(null!=(o=c[i])&&f<=o&&o<=l){const t=Math.floor((f-o)*a);m[Math.min(p,t+(h[t]<=o))].push(r[i])}}else for(i=0;i<u;++i)null!=(o=c[i])&&f<=o&&o<=l&&m[d(h,o,0,p)].push(r[i]);return m}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:it(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:it([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:it(Array.isArray(t)?rt.call(t):t),r):n},r}function gt(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function yt(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n<e||void 0===n&&e>=e)&&(n=e,r=i);else for(let o of t)null!=(o=e(o,++i,t))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}function vt(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function mt(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let o of t)null!=(o=e(o,++i,t))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}function bt(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=void 0===i?tt:J(i);r>n;){if(r-n>600){const o=r-n+1,a=e-n+1,u=Math.log(o),c=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*c*(o-c)/o)*(a-o/2<0?-1:1);bt(t,e,Math.max(n,Math.floor(e-a*c/o+s)),Math.min(r,Math.floor(e+(o-a)*c/o+s)),i)}const o=t[e];let a=n,u=r;for(_t(t,n,e),i(t[r],o)>0&&_t(t,n,r);a<u;){for(_t(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[n],o)?_t(t,n,u):(++u,_t(t,u,r)),u<=e&&(n=u+1),e<=u&&(r=u-1)}return t}function _t(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function xt(t,e=r){let n,i=!1;if(1===e.length){let o;for(const a of t){const t=e(a);(i?r(t,o)>0:0===r(t,t))&&(n=a,o=t,i=!0)}}else for(const r of t)(i?e(r,n)>0:0===e(r,r))&&(n=r,i=!0);return n}function wt(t,e,n){if((r=(t=Float64Array.from(c(t,n))).length)&&!isNaN(e=+e)){if(e<=0||r<2)return vt(t);if(e>=1)return gt(t);var r,i=(r-1)*e,o=Math.floor(i),a=gt(bt(t,o).subarray(0,o+1));return a+(vt(t.subarray(o+1))-a)*(i-o)}}function Mt(t,e,n=u){if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function Tt(t,e,n){if((r=(t=Float64Array.from(c(t,n))).length)&&!isNaN(e=+e)){if(e<=0||r<2)return mt(t);if(e>=1)return yt(t);var r,i=Math.floor((r-1)*e),o=bt(Uint32Array.from(t,((t,e)=>e)),i,0,r-1,((e,n)=>tt(t[e],t[n])));return xt(o.subarray(0,i+1),(e=>t[e]))}}function At(t,e,n){const r=x(t),i=wt(t,.75)-wt(t,.25);return r&&i?Math.ceil((n-e)/(2*i*Math.pow(r,-1/3))):1}function St(t,e,n){const r=x(t),i=k(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}function Et(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,r+=e);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function kt(t,e){return wt(t,.5,e)}function Nt(t,e){return Tt(t,.5,e)}function Ct(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}function Dt(t,e){const n=new j;if(void 0===e)for(let e of t)null!=e&&e>=e&&n.set(e,(n.get(e)||0)+1);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&i>=i&&n.set(i,(n.get(i)||0)+1)}let r,i=0;for(const[t,e]of n)e>i&&(i=e,r=t);return r}function Pt(t,e=jt){const n=[];let r,i=!1;for(const o of t)i&&n.push(e(r,o)),r=o,i=!0;return n}function jt(t,e){return[t,e]}function qt(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}function Lt(t,e=r){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");let n=Array.from(t);const i=new Float64Array(n.length);2!==e.length&&(n=n.map(e),e=r);const o=(t,r)=>e(n[t],n[r]);let a,u;return(t=Uint32Array.from(n,((t,e)=>e))).sort(e===r?(t,e)=>tt(n[t],n[e]):J(o)),t.forEach(((t,e)=>{const n=o(t,void 0===a?t:a);n>=0?((void 0===a||n>0)&&(a=t,u=e),i[t]=u):i[t]=NaN})),i}function Ot(t,e=r){let n,i=!1;if(1===e.length){let o;for(const a of t){const t=e(a);(i?r(t,o)<0:0===r(t,t))&&(n=a,o=t,i=!0)}}else for(const r of t)(i?e(r,n)<0:0===e(r,r))&&(n=r,i=!0);return n}function Rt(t,e=r){if(1===e.length)return mt(t,e);let n,i=-1,o=-1;for(const r of t)++o,(i<0?0===e(r,r):e(r,n)<0)&&(n=r,i=o);return i}function $t(t,e=r){if(1===e.length)return yt(t,e);let n,i=-1,o=-1;for(const r of t)++o,(i<0?0===e(r,r):e(r,n)>0)&&(n=r,i=o);return i}function zt(t,e){const n=Rt(t,e);return n<0?void 0:n}const It=Ht(Math.random);function Ht(t){return function(e,n=0,r=e.length){let i=r-(n=+n);for(;i;){const r=t()*i--|0,o=e[i+n];e[i+n]=e[r+n],e[r+n]=o}return e}}function Ft(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Bt(t){if(!(i=t.length))return[];for(var e=-1,n=vt(t,Ut),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r}function Ut(t){return t.length}function Yt(){return Bt(arguments)}function Wt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(!e(r,++n,t))return!1;return!0}function Xt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(e(r,++n,t))return!0;return!1}function Vt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of t)e(i,++r,t)&&n.push(i);return n}function Gt(t,e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof e)throw new TypeError("mapper is not a function");return Array.from(t,((n,r)=>e(n,r,t)))}function Zt(t,e,n){if("function"!=typeof e)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)n=e(n,o,++a,t);return n}function Qt(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Kt(t,...e){t=new q(t);for(const n of e)for(const e of n)t.delete(e);return t}function Jt(t,e){const n=e[Symbol.iterator](),r=new q;for(const e of t){if(r.has(e))return!1;let t,i;for(;({value:t,done:i}=n.next())&&!i;){if(Object.is(e,t))return!1;r.add(t)}}return!0}function te(t,...e){t=new q(t),e=e.map(ee);t:for(const n of t)for(const r of e)if(!r.has(n)){t.delete(n);continue t}return t}function ee(t){return t instanceof q?t:new q(t)}function ne(t,e){const n=t[Symbol.iterator](),r=new Set;for(const t of e){const e=re(t);if(r.has(e))continue;let i,o;for(;({value:i,done:o}=n.next());){if(o)return!1;const t=re(i);if(r.add(t),Object.is(e,t))break}}return!0}function re(t){return null!==t&&"object"==typeof t?t.valueOf():t}function ie(t,e){return ne(e,t)}function oe(...t){const e=new q;for(const n of t)for(const t of n)e.add(t);return e}function ae(t){return t}var ue=1,ce=2,se=3,fe=4,le=1e-6;function he(t){return"translate("+t+",0)"}function de(t){return"translate(0,"+t+")"}function pe(t){return e=>+t(e)}function ge(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function ye(){return!this.__axis}function ve(t,e){var n=[],r=null,i=null,o=6,a=6,u=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,s=t===ue||t===fe?-1:1,f=t===fe||t===ce?"x":"y",l=t===ue||t===se?he:de;function h(h){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):ae:i,g=Math.max(o,0)+u,y=e.range(),v=+y[0]+c,m=+y[y.length-1]+c,b=(e.bandwidth?ge:pe)(e.copy(),c),_=h.selection?h.selection():h,x=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(d,e).order(),M=w.exit(),T=w.enter().append("g").attr("class","tick"),A=w.select("line"),S=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(T),A=A.merge(T.append("line").attr("stroke","currentColor").attr(f+"2",s*o)),S=S.merge(T.append("text").attr("fill","currentColor").attr(f,s*g).attr("dy",t===ue?"0em":t===se?"0.71em":"0.32em")),h!==_&&(x=x.transition(h),w=w.transition(h),A=A.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",le).attr("transform",(function(t){return isFinite(t=b(t))?l(t+c):this.getAttribute("transform")})),T.attr("opacity",le).attr("transform",(function(t){var e=this.parentNode.__axis;return l((e&&isFinite(e=e(t))?e:b(t))+c)}))),M.remove(),x.attr("d",t===fe||t===ce?a?"M"+s*a+","+v+"H"+c+"V"+m+"H"+s*a:"M"+c+","+v+"V"+m:a?"M"+v+","+s*a+"V"+c+"H"+m+"V"+s*a:"M"+v+","+c+"H"+m),w.attr("opacity",1).attr("transform",(function(t){return l(b(t)+c)})),A.attr(f+"2",s*o),S.attr(f,s*g).text(p),_.filter(ye).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ce?"start":t===fe?"end":"middle"),_.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(c=+t,h):c},h}function me(t){return ve(ue,t)}function be(t){return ve(ce,t)}function _e(t){return ve(se,t)}function xe(t){return ve(fe,t)}var we={value:()=>{}};function Me(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Te(r)}function Te(t){this._=t}function Ae(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Se(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=we,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Te.prototype=Me.prototype={constructor:Te,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<u;)if(n=(t=o[a]).type)i[n]=Se(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Se(i[n],t.name,null);return this}for(;++a<u;)if((n=(t=o[a]).type)&&(n=Ae(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Te(t)},call:function(t,e){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(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};const Ee=Me;function ke(){}function Ne(t){return null==t?ke:function(){return this.querySelector(t)}}function Ce(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function De(){return[]}function Pe(t){return null==t?De:function(){return this.querySelectorAll(t)}}function je(t){return function(){return this.matches(t)}}function qe(t){return function(e){return e.matches(t)}}var Le=Array.prototype.find;function Oe(){return this.firstElementChild}var Re=Array.prototype.filter;function $e(){return Array.from(this.children)}function ze(t){return new Array(t.length)}function Ie(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function He(t,e,n,r,i,o){for(var a,u=0,c=e.length,s=o.length;u<s;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new Ie(t,o[u]);for(;u<c;++u)(a=e[u])&&(i[u]=a)}function Fe(t,e,n,r,i,o,a){var u,c,s,f=new Map,l=e.length,h=o.length,d=new Array(l);for(u=0;u<l;++u)(c=e[u])&&(d[u]=s=a.call(c,c.__data__,u,e)+"",f.has(s)?i[u]=c:f.set(s,c));for(u=0;u<h;++u)s=a.call(t,o[u],u,o)+"",(c=f.get(s))?(r[u]=c,c.__data__=o[u],f.delete(s)):n[u]=new Ie(t,o[u]);for(u=0;u<l;++u)(c=e[u])&&f.get(d[u])===c&&(i[u]=c)}function Be(t){return t.__data__}function Ue(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Ye(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Ie.prototype={constructor:Ie,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var We="http://www.w3.org/1999/xhtml";const Xe={svg:"http://www.w3.org/2000/svg",xhtml:We,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ve(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Xe.hasOwnProperty(e)?{space:Xe[e],local:t}:t}function Ge(t){return function(){this.removeAttribute(t)}}function Ze(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Qe(t,e){return function(){this.setAttribute(t,e)}}function Ke(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Je(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function tn(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function en(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function nn(t){return function(){this.style.removeProperty(t)}}function rn(t,e,n){return function(){this.style.setProperty(t,e,n)}}function on(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function an(t,e){return t.style.getPropertyValue(e)||en(t).getComputedStyle(t,null).getPropertyValue(e)}function un(t){return function(){delete this[t]}}function cn(t,e){return function(){this[t]=e}}function sn(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function fn(t){return t.trim().split(/^|\s+/)}function ln(t){return t.classList||new hn(t)}function hn(t){this._node=t,this._names=fn(t.getAttribute("class")||"")}function dn(t,e){for(var n=ln(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function pn(t,e){for(var n=ln(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function gn(t){return function(){dn(this,t)}}function yn(t){return function(){pn(this,t)}}function vn(t,e){return function(){(e.apply(this,arguments)?dn:pn)(this,t)}}function mn(){this.textContent=""}function bn(t){return function(){this.textContent=t}}function _n(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function xn(){this.innerHTML=""}function wn(t){return function(){this.innerHTML=t}}function Mn(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Tn(){this.nextSibling&&this.parentNode.appendChild(this)}function An(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Sn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===We&&e.documentElement.namespaceURI===We?e.createElement(t):e.createElementNS(n,t)}}function En(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function kn(t){var e=Ve(t);return(e.local?En:Sn)(e)}function Nn(){return null}function Cn(){var t=this.parentNode;t&&t.removeChild(this)}function Dn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Pn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function jn(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function qn(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Ln(t,e,n){var r=en(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function On(t,e){return function(){return Ln(this,t,e)}}function Rn(t,e){return function(){return Ln(this,t,e.apply(this,arguments))}}hn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var $n=[null];function zn(t,e){this._groups=t,this._parents=e}function In(){return new zn([[document.documentElement]],$n)}zn.prototype=In.prototype={constructor:zn,select:function(t){"function"!=typeof t&&(t=Ne(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,u=e[i],c=u.length,s=r[i]=new Array(c),f=0;f<c;++f)(o=u[f])&&(a=t.call(o,o.__data__,f,u))&&("__data__"in o&&(a.__data__=o.__data__),s[f]=a);return new zn(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return Ce(t.apply(this,arguments))}}(t):Pe(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,u=e[o],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(t.call(a,a.__data__,s,u)),i.push(a));return new zn(r,i)},selectChild:function(t){return this.select(null==t?Oe:function(t){return function(){return Le.call(this.children,t)}}("function"==typeof t?t:qe(t)))},selectChildren:function(t){return this.selectAll(null==t?$e:function(t){return function(){return Re.call(this.children,t)}}("function"==typeof t?t:qe(t)))},filter:function(t){"function"!=typeof t&&(t=je(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new zn(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Be);var n,r=e?Fe:He,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,u=new Array(a),c=new Array(a),s=new Array(a),f=0;f<a;++f){var l=i[f],h=o[f],d=h.length,p=Ue(t.call(l,l&&l.__data__,f,i)),g=p.length,y=c[f]=new Array(g),v=u[f]=new Array(g);r(l,h,y,v,s[f]=new Array(d),p,e);for(var m,b,_=0,x=0;_<g;++_)if(m=y[_]){for(_>=x&&(x=_+1);!(b=v[x])&&++x<g;);m._next=b||null}}return(u=new zn(u,i))._enter=c,u._exit=s,u},enter:function(){return new zn(this._enter||this._groups.map(ze),this._parents)},exit:function(){return new zn(this._exit||this._groups.map(ze),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),u=new Array(i),c=0;c<a;++c)for(var s,f=n[c],l=r[c],h=f.length,d=u[c]=new Array(h),p=0;p<h;++p)(s=f[p]||l[p])&&(d[p]=s);for(;c<i;++c)u[c]=n[c];return new zn(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ye);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,u=n[o],c=u.length,s=i[o]=new Array(c),f=0;f<c;++f)(a=u[f])&&(s[f]=a);s.sort(e)}return new zn(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=Ve(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Ze:Ge:"function"==typeof e?n.local?tn:Je:n.local?Ke:Qe)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?nn:"function"==typeof e?on:rn)(t,e,null==n?"":n)):an(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?un:"function"==typeof e?sn:cn)(t,e)):this.node()[t]},classed:function(t,e){var n=fn(t+"");if(arguments.length<2){for(var r=ln(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?vn:e?gn:yn)(n,e))},text:function(t){return arguments.length?this.each(null==t?mn:("function"==typeof t?_n:bn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?xn:("function"==typeof t?Mn:wn)(t)):this.node().innerHTML},raise:function(){return this.each(Tn)},lower:function(){return this.each(An)},append:function(t){var e="function"==typeof t?t:kn(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:kn(t),r=null==e?Nn:"function"==typeof e?e:Ne(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Cn)},clone:function(t){return this.select(t?Pn:Dn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?qn:jn,r=0;r<a;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var c,s=0,f=u.length;s<f;++s)for(r=0,c=u[s];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?Rn:On)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const Hn=In;function Fn(t){return"string"==typeof t?new zn([[document.querySelector(t)]],[document.documentElement]):new zn([[t]],$n)}const Bn={passive:!1},Un={capture:!0,passive:!1};function Yn(t){t.stopImmediatePropagation()}function Wn(t){t.preventDefault(),t.stopImmediatePropagation()}function Xn(t){var e=t.document.documentElement,n=Fn(t).on("dragstart.drag",Wn,Un);"onselectstart"in e?n.on("selectstart.drag",Wn,Un):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Vn(t,e){var n=t.document.documentElement,r=Fn(t).on("dragstart.drag",null);e&&(r.on("click.drag",Wn,Un),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Gn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Zn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Qn(){}var Kn=.7,Jn=1/Kn,tr="\\s*([+-]?\\d+)\\s*",er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rr=/^#([0-9a-f]{3,8})$/,ir=new RegExp(`^rgb\\(${tr},${tr},${tr}\\)$`),or=new RegExp(`^rgb\\(${nr},${nr},${nr}\\)$`),ar=new RegExp(`^rgba\\(${tr},${tr},${tr},${er}\\)$`),ur=new RegExp(`^rgba\\(${nr},${nr},${nr},${er}\\)$`),cr=new RegExp(`^hsl\\(${er},${nr},${nr}\\)$`),sr=new RegExp(`^hsla\\(${er},${nr},${nr},${er}\\)$`),fr={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 lr(){return this.rgb().formatHex()}function hr(){return this.rgb().formatRgb()}function dr(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=rr.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?pr(e):3===n?new mr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?gr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?gr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ir.exec(t))?new mr(e[1],e[2],e[3],1):(e=or.exec(t))?new mr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ar.exec(t))?gr(e[1],e[2],e[3],e[4]):(e=ur.exec(t))?gr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cr.exec(t))?Tr(e[1],e[2]/100,e[3]/100,1):(e=sr.exec(t))?Tr(e[1],e[2]/100,e[3]/100,e[4]):fr.hasOwnProperty(t)?pr(fr[t]):"transparent"===t?new mr(NaN,NaN,NaN,0):null}function pr(t){return new mr(t>>16&255,t>>8&255,255&t,1)}function gr(t,e,n,r){return r<=0&&(t=e=n=NaN),new mr(t,e,n,r)}function yr(t){return t instanceof Qn||(t=dr(t)),t?new mr((t=t.rgb()).r,t.g,t.b,t.opacity):new mr}function vr(t,e,n,r){return 1===arguments.length?yr(t):new mr(t,e,n,null==r?1:r)}function mr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function br(){return`#${Mr(this.r)}${Mr(this.g)}${Mr(this.b)}`}function _r(){const t=xr(this.opacity);return`${1===t?"rgb(":"rgba("}${wr(this.r)}, ${wr(this.g)}, ${wr(this.b)}${1===t?")":`, ${t})`}`}function xr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function wr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Mr(t){return((t=wr(t))<16?"0":"")+t.toString(16)}function Tr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Er(t,e,n,r)}function Ar(t){if(t instanceof Er)return new Er(t.h,t.s,t.l,t.opacity);if(t instanceof Qn||(t=dr(t)),!t)return new Er;if(t instanceof Er)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new Er(a,u,c,t.opacity)}function Sr(t,e,n,r){return 1===arguments.length?Ar(t):new Er(t,e,n,null==r?1:r)}function Er(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function kr(t){return(t=(t||0)%360)<0?t+360:t}function Nr(t){return Math.max(0,Math.min(1,t||0))}function Cr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Dr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function Pr(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return Dr((n-r/e)*e,a,i,o,u)}}function jr(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return Dr((n-r/e)*e,i,o,a,u)}}Gn(Qn,dr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:lr,formatHex:lr,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ar(this).formatHsl()},formatRgb:hr,toString:hr}),Gn(mr,vr,Zn(Qn,{brighter(t){return t=null==t?Jn:Math.pow(Jn,t),new mr(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Kn:Math.pow(Kn,t),new mr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new mr(wr(this.r),wr(this.g),wr(this.b),xr(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:br,formatHex:br,formatHex8:function(){return`#${Mr(this.r)}${Mr(this.g)}${Mr(this.b)}${Mr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_r,toString:_r})),Gn(Er,Sr,Zn(Qn,{brighter(t){return t=null==t?Jn:Math.pow(Jn,t),new Er(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Kn:Math.pow(Kn,t),new Er(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new mr(Cr(t>=240?t-240:t+120,i,r),Cr(t,i,r),Cr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Er(kr(this.h),Nr(this.s),Nr(this.l),xr(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 t=xr(this.opacity);return`${1===t?"hsl(":"hsla("}${kr(this.h)}, ${100*Nr(this.s)}%, ${100*Nr(this.l)}%${1===t?")":`, ${t})`}`}}));const qr=t=>()=>t;function Lr(t,e){return function(n){return t+n*e}}function Or(t,e){var n=e-t;return n?Lr(t,n>180||n<-180?n-360*Math.round(n/360):n):qr(isNaN(t)?e:t)}function Rr(t,e){var n=e-t;return n?Lr(t,n):qr(isNaN(t)?e:t)}const $r=function t(e){var n=function(t){return 1==(t=+t)?Rr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):qr(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=vr(t)).r,(e=vr(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Rr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function zr(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=vr(e[n]),o[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}var Ir=zr(Pr),Hr=zr(jr);function Fr(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Br(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ur(t,e){return(Br(e)?Fr:Yr)(t,e)}function Yr(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Kr(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Wr(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Xr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Vr(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Kr(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Gr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zr=new RegExp(Gr.source,"g");function Qr(t,e){var n,r,i,o=Gr.lastIndex=Zr.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(n=Gr.exec(t))&&(r=Zr.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Xr(n,r)})),o=Zr.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)u[(n=c[r]).i]=n.x(t);return u.join("")})}function Kr(t,e){var n,r=typeof e;return null==e||"boolean"===r?qr(e):("number"===r?Xr:"string"===r?(n=dr(e))?(e=n,$r):Qr:e instanceof dr?$r:e instanceof Date?Wr:Br(e)?Fr:Array.isArray(e)?Yr:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Vr:Xr)(t,e)}function Jr(t){let e;for(;e=t.sourceEvent;)t=e;return t}function ti(t,e){if(t=Jr(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var ei,ni,ri=0,ii=0,oi=0,ai=1e3,ui=0,ci=0,si=0,fi="object"==typeof performance&&performance.now?performance:Date,li="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function hi(){return ci||(li(di),ci=fi.now()+si)}function di(){ci=0}function pi(){this._call=this._time=this._next=null}function gi(t,e,n){var r=new pi;return r.restart(t,e,n),r}function yi(){hi(),++ri;for(var t,e=ei;e;)(t=ci-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ri}function vi(){ci=(ui=fi.now())+si,ri=ii=0;try{yi()}finally{ri=0,function(){for(var t,e,n=ei,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ei=e);ni=t,bi(r)}(),ci=0}}function mi(){var t=fi.now(),e=t-ui;e>ai&&(si-=e,ui=t)}function bi(t){ri||(ii&&(ii=clearTimeout(ii)),t-ci>24?(t<1/0&&(ii=setTimeout(vi,t-fi.now()-si)),oi&&(oi=clearInterval(oi))):(oi||(ui=fi.now(),oi=setInterval(mi,ai)),ri=1,li(vi)))}function _i(t,e,n){var r=new pi;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}pi.prototype=gi.prototype={constructor:pi,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?hi():+n)+(null==e?0:+e),this._next||ni===this||(ni?ni._next=this:ei=this,ni=this),this._call=t,this._time=n,bi()},stop:function(){this._call&&(this._call=null,this._time=1/0,bi())}};var xi=Ee("start","end","cancel","interrupt"),wi=[],Mi=0,Ti=1,Ai=2,Si=3,Ei=4,ki=5,Ni=6;function Ci(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(c){var s,f,l,h;if(n.state!==Ti)return u();for(s in i)if((h=i[s]).name===n.name){if(h.state===Si)return _i(o);h.state===Ei?(h.state=Ni,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<e&&(h.state=Ni,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[s])}if(_i((function(){n.state===Si&&(n.state=Ei,n.timer.restart(a,n.delay,n.time),a(c))})),n.state=Ai,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ai){for(n.state=Si,r=new Array(l=n.tween.length),s=0,f=-1;s<l;++s)(h=n.tween[s].value.call(t,t.__data__,n.index,n.group))&&(r[++f]=h);r.length=f+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=ki,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);n.state===ki&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=Ni,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=gi((function(t){n.state=Ti,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:xi,tween:wi,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Mi})}function Di(t,e){var n=ji(t,e);if(n.state>Mi)throw new Error("too late; already scheduled");return n}function Pi(t,e){var n=ji(t,e);if(n.state>Si)throw new Error("too late; already running");return n}function ji(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function qi(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>Ai&&n.state<ki,n.state=Ni,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var Li,Oi=180/Math.PI,Ri={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $i(t,e,n,r,i,o){var a,u,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Oi,skewX:Math.atan(c)*Oi,scaleX:a,scaleY:u}}function zi(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],c=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var c=a.push("translate(",null,e,null,n);u.push({i:c-4,x:Xr(t,i)},{i:c-2,x:Xr(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,u,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Xr(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Xr(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Xr(t,n)},{i:u-2,x:Xr(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n<r;)u[(e=c[n]).i]=e.x(t);return u.join("")}}}var Ii=zi((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ri:$i(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Hi=zi((function(t){return null==t?Ri:(Li||(Li=document.createElementNS("http://www.w3.org/2000/svg","g")),Li.setAttribute("transform",t),(t=Li.transform.baseVal.consolidate())?$i((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ri)}),", ",")",")");function Fi(t,e){var n,r;return function(){var i=Pi(this,t),o=i.tween;if(o!==n)for(var a=0,u=(r=n=o).length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function Bi(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Pi(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},c=0,s=i.length;c<s;++c)if(i[c].name===e){i[c]=u;break}c===s&&i.push(u)}o.tween=i}}function Ui(t,e,n){var r=t._id;return t.each((function(){var t=Pi(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return ji(t,r).value[e]}}function Yi(t,e){var n;return("number"==typeof e?Xr:e instanceof dr?$r:(n=dr(e))?(e=n,$r):Qr)(t,e)}function Wi(t){return function(){this.removeAttribute(t)}}function Xi(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Vi(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function Gi(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function Zi(t,e,n){var r,i,o;return function(){var a,u,c=n(this);if(null!=c)return(a=this.getAttribute(t))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,c));this.removeAttribute(t)}}function Qi(t,e,n){var r,i,o;return function(){var a,u,c=n(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,c));this.removeAttributeNS(t.space,t.local)}}function Ki(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Ji(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function to(t,e){return function(){Di(this,t).delay=+e.apply(this,arguments)}}function eo(t,e){return e=+e,function(){Di(this,t).delay=e}}function no(t,e){return function(){Pi(this,t).duration=+e.apply(this,arguments)}}function ro(t,e){return e=+e,function(){Pi(this,t).duration=e}}var io=Hn.prototype.constructor;function oo(t){return function(){this.style.removeProperty(t)}}var ao=0;function uo(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function co(t){return Hn().transition(t)}function so(){return++ao}var fo=Hn.prototype;function lo(t){return t*t*t}function ho(t){return--t*t*t+1}function po(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}uo.prototype=co.prototype={constructor:uo,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ne(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,c,s=r[a],f=s.length,l=o[a]=new Array(f),h=0;h<f;++h)(u=s[h])&&(c=t.call(u,u.__data__,h,s))&&("__data__"in u&&(c.__data__=u.__data__),l[h]=c,Ci(l[h],e,n,h,l,ji(u,n)));return new uo(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Pe(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c,s=r[u],f=s.length,l=0;l<f;++l)if(c=s[l]){for(var h,d=t.call(c,c.__data__,l,s),p=ji(c,n),g=0,y=d.length;g<y;++g)(h=d[g])&&Ci(h,e,n,g,d,p);o.push(d),a.push(c)}return new uo(o,a,e,n)},selectChild:fo.selectChild,selectChildren:fo.selectChildren,filter:function(t){"function"!=typeof t&&(t=je(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new uo(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=e[u],f=n[u],l=s.length,h=a[u]=new Array(l),d=0;d<l;++d)(c=s[d]||f[d])&&(h[d]=c);for(;u<r;++u)a[u]=e[u];return new uo(a,this._parents,this._name,this._id)},selection:function(){return new io(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=so(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)if(a=u[s]){var f=ji(a,e);Ci(a,t,n,s,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new uo(r,this._parents,t,n)},call:fo.call,nodes:fo.nodes,node:fo.node,size:fo.size,empty:fo.empty,each:fo.each,on:function(t,e){var n=this._id;return arguments.length<2?ji(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Di:Pi;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=Ve(t),r="transform"===n?Hi:Yi;return this.attrTween(t,"function"==typeof e?(n.local?Qi:Zi)(n,r,Ui(this,"attr."+t,e)):null==e?(n.local?Xi:Wi)(n):(n.local?Gi:Vi)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Ve(t);return this.tween(n,(r.local?Ki:Ji)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Ii:Yi;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=an(this,t),a=(this.style.removeProperty(t),an(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,oo(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=an(this,t),u=n(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=an(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,u))}}(t,r,Ui(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,u="end."+a;return function(){var c=Pi(this,t),s=c.on,f=null==c.value[a]?o||(o=oo(e)):void 0;s===n&&i===f||(r=(n=s).copy()).on(u,i=f),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=an(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ui(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ji(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?Fi:Bi)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?to:eo)(e,t)):ji(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?no:ro)(e,t)):ji(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Pi(this,t).ease=e}}(e,t)):ji(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Pi(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var u={value:a},c={value:function(){0==--i&&o()}};n.each((function(){var n=Pi(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(c)),n.on=e})),0===i&&o()}))},[Symbol.iterator]:fo[Symbol.iterator]};var go={time:null,delay:0,duration:250,ease:po};function yo(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}Hn.prototype.interrupt=function(t){return this.each((function(){qi(this,t)}))},Hn.prototype.transition=function(t){var e,n;t instanceof uo?(e=t._id,t=t._name):(e=so(),(n=go).time=hi(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)(a=u[s])&&Ci(a,t,e,s,u,n||yo(a,e));return new uo(r,this._parents,t,e)};var vo=[null];function mo(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>Ti&&n.name===e)return new uo([[t]],vo,e,+r);return null}const bo=t=>()=>t;function _o(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,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 xo(t){t.preventDefault(),t.stopImmediatePropagation()}var wo={name:"drag"},Mo={name:"space"},To={name:"handle"},Ao={name:"center"};const{abs:So,max:Eo,min:ko}=Math;function No(t){return[+t[0],+t[1]]}function Co(t){return[No(t[0]),No(t[1])]}var Do={name:"x",handles:["w","e"].map(zo),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Po={name:"y",handles:["n","s"].map(zo),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},jo={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(zo),input:function(t){return null==t?null:Co(t)},output:function(t){return t}},qo={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"},Lo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Oo={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Ro={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},$o={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function zo(t){return{type:t}}function Io(t){return!t.ctrlKey&&!t.button}function Ho(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Fo(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bo(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Uo(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Yo(){return Vo(Do)}function Wo(){return Vo(Po)}function Xo(){return Vo(jo)}function Vo(t){var e,n=Ho,r=Io,i=Fo,o=!0,a=Ee("start","brush","end"),u=6;function c(e){var n=e.property("__brush",g).selectAll(".overlay").data([zo("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",qo.overlay).merge(n).each((function(){var t=Bo(this).extent;Fn(this).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(".selection").data([zo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",qo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return qo[t.type]})),e.each(s).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function s(){var t=Fn(this),e=Bo(this).selection;e?(t.selectAll(".selection").style("display",null).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(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-u/2:e[0][0]-u/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-u/2:e[0][1]-u/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+u:u})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+u:u}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function f(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new l(t,e,n):r}function l(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,u,c,l,h,d,p,g,y,v,m=this,b=n.target.__data__.type,_="selection"===(o&&n.metaKey?b="overlay":b)?wo:o&&n.altKey?Ao:To,x=t===Po?null:Ro[b],w=t===Do?null:$o[b],M=Bo(m),T=M.extent,A=M.selection,S=T[0][0],E=T[0][1],k=T[1][0],N=T[1][1],C=0,D=0,P=x&&w&&o&&n.shiftKey,j=Array.from(n.touches||[n],(t=>{const e=t.identifier;return(t=ti(t,m)).point0=t.slice(),t.identifier=e,t}));qi(m);var q=f(m,arguments,!0).beforestart();if("overlay"===b){A&&(g=!0);const e=[j[0],j[1]||j[0]];M.selection=A=[[i=t===Po?S:ko(e[0][0],e[1][0]),u=t===Do?E:ko(e[0][1],e[1][1])],[l=t===Po?k:Eo(e[0][0],e[1][0]),d=t===Do?N:Eo(e[0][1],e[1][1])]],j.length>1&&z(n)}else i=A[0][0],u=A[0][1],l=A[1][0],d=A[1][1];a=i,c=u,h=l,p=d;var L=Fn(m).attr("pointer-events","none"),O=L.selectAll(".overlay").attr("cursor",qo[b]);if(n.touches)q.moved=$,q.ended=I;else{var R=Fn(n.view).on("mousemove.brush",$,!0).on("mouseup.brush",I,!0);o&&R.on("keydown.brush",(function(t){switch(t.keyCode){case 16:P=x&&w;break;case 18:_===To&&(x&&(l=h-C*x,i=a+C*x),w&&(d=p-D*w,u=c+D*w),_=Ao,z(t));break;case 32:_!==To&&_!==Ao||(x<0?l=h-C:x>0&&(i=a-C),w<0?d=p-D:w>0&&(u=c-D),_=Mo,O.attr("cursor",qo.selection),z(t));break;default:return}xo(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:P&&(y=v=P=!1,z(t));break;case 18:_===Ao&&(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),_=To,z(t));break;case 32:_===Mo&&(t.altKey?(x&&(l=h-C*x,i=a+C*x),w&&(d=p-D*w,u=c+D*w),_=Ao):(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),_=To),O.attr("cursor",qo[b]),z(t));break;default:return}xo(t)}),!0),Xn(n.view)}s.call(m),q.start(n,_.name)}function $(t){for(const e of t.changedTouches||[t])for(const t of j)t.identifier===e.identifier&&(t.cur=ti(e,m));if(P&&!y&&!v&&1===j.length){const t=j[0];So(t.cur[0]-t[0])>So(t.cur[1]-t[1])?v=!0:y=!0}for(const t of j)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,xo(t),z(t)}function z(t){const e=j[0],n=e.point0;var r;switch(C=e[0]-n[0],D=e[1]-n[1],_){case Mo:case wo:x&&(C=Eo(S-i,ko(k-l,C)),a=i+C,h=l+C),w&&(D=Eo(E-u,ko(N-d,D)),c=u+D,p=d+D);break;case To:j[1]?(x&&(a=Eo(S,ko(k,j[0][0])),h=Eo(S,ko(k,j[1][0])),x=1),w&&(c=Eo(E,ko(N,j[0][1])),p=Eo(E,ko(N,j[1][1])),w=1)):(x<0?(C=Eo(S-i,ko(k-i,C)),a=i+C,h=l):x>0&&(C=Eo(S-l,ko(k-l,C)),a=i,h=l+C),w<0?(D=Eo(E-u,ko(N-u,D)),c=u+D,p=d):w>0&&(D=Eo(E-d,ko(N-d,D)),c=u,p=d+D));break;case Ao:x&&(a=Eo(S,ko(k,i-C*x)),h=Eo(S,ko(k,l+C*x))),w&&(c=Eo(E,ko(N,u-D*w)),p=Eo(E,ko(N,d+D*w)))}h<a&&(x*=-1,r=i,i=l,l=r,r=a,a=h,h=r,b in Lo&&O.attr("cursor",qo[b=Lo[b]])),p<c&&(w*=-1,r=u,u=d,d=r,r=c,c=p,p=r,b in Oo&&O.attr("cursor",qo[b=Oo[b]])),M.selection&&(A=M.selection),y&&(a=A[0][0],h=A[1][0]),v&&(c=A[0][1],p=A[1][1]),A[0][0]===a&&A[0][1]===c&&A[1][0]===h&&A[1][1]===p||(M.selection=[[a,c],[h,p]],s.call(m),q.brush(t,_.name))}function I(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Vn(t.view,g),R.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);L.attr("pointer-events","all"),O.attr("cursor",qo.overlay),M.selection&&(A=M.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(A)&&(M.selection=null,s.call(m)),q.end(t,_.name)}}function d(t){f(this,arguments).moved(t)}function p(t){f(this,arguments).ended(t)}function g(){var e=this.__brush||{selection:null};return e.extent=Co(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){f(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){f(this,arguments).end(t)})).tween("brush",(function(){var e=this,r=e.__brush,i=f(e,arguments),o=r.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),u=Kr(o,a);function c(t){r.selection=1===t&&null===a?null:u(t),s.call(e),i.brush()}return null!==o&&null!==a?c:c(1)})):e.each((function(){var e=this,i=arguments,o=e.__brush,a=t.input("function"==typeof n?n.apply(e,i):n,o.extent),u=f(e,i).beforestart();qi(e),o.selection=null===a?null:a,s.call(e),u.start(r).brush(r).end(r)}))},c.clear=function(t,e){c.move(t,null,e)},l.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=Fn(this.that).datum();a.call(e,this.that,new _o(e,{sourceEvent:n,target:c,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:bo(Co(t)),c):n},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:bo(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:bo(!!t),c):i},c.handleSize=function(t){return arguments.length?(u=+t,c):u},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=a.on.apply(a,arguments);return t===a?c:t},c}var Go=Math.abs,Zo=Math.cos,Qo=Math.sin,Ko=Math.PI,Jo=Ko/2,ta=2*Ko,ea=Math.max,na=1e-12;function ra(t,e){return Array.from({length:e-t},((e,n)=>t+n))}function ia(){return ua(!1,!1)}function oa(){return ua(!1,!0)}function aa(){return ua(!0,!1)}function ua(t,e){var n=0,r=null,i=null,o=null;function a(a){var u,c=a.length,s=new Array(c),f=ra(0,c),l=new Array(c*c),h=new Array(c),d=0;a=Float64Array.from({length:c*c},e?(t,e)=>a[e%c][e/c|0]:(t,e)=>a[e/c|0][e%c]);for(let e=0;e<c;++e){let n=0;for(let r=0;r<c;++r)n+=a[e*c+r]+t*a[r*c+e];d+=s[e]=n}u=(d=ea(0,ta-n*c)/d)?n:ta/c;{let e=0;r&&f.sort(((t,e)=>r(s[t],s[e])));for(const n of f){const r=e;if(t){const t=ra(1+~c,c).filter((t=>t<0?a[~t*c+n]:a[n*c+t]));i&&t.sort(((t,e)=>i(t<0?-a[~t*c+n]:a[n*c+t],e<0?-a[~e*c+n]:a[n*c+e])));for(const r of t)r<0?(l[~r*c+n]||(l[~r*c+n]={source:null,target:null})).target={index:n,startAngle:e,endAngle:e+=a[~r*c+n]*d,value:a[~r*c+n]}:(l[n*c+r]||(l[n*c+r]={source:null,target:null})).source={index:n,startAngle:e,endAngle:e+=a[n*c+r]*d,value:a[n*c+r]};h[n]={index:n,startAngle:r,endAngle:e,value:s[n]}}else{const t=ra(0,c).filter((t=>a[n*c+t]||a[t*c+n]));i&&t.sort(((t,e)=>i(a[n*c+t],a[n*c+e])));for(const r of t){let t;if(n<r?(t=l[n*c+r]||(l[n*c+r]={source:null,target:null}),t.source={index:n,startAngle:e,endAngle:e+=a[n*c+r]*d,value:a[n*c+r]}):(t=l[r*c+n]||(l[r*c+n]={source:null,target:null}),t.target={index:n,startAngle:e,endAngle:e+=a[n*c+r]*d,value:a[n*c+r]},n===r&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const e=t.source;t.source=t.target,t.target=e}}h[n]={index:n,startAngle:r,endAngle:e,value:s[n]}}e+=u}}return(l=Object.values(l)).groups=h,o?l.sort(o):l}return a.padAngle=function(t){return arguments.length?(n=ea(0,t),a):n},a.sortGroups=function(t){return arguments.length?(r=t,a):r},a.sortSubgroups=function(t){return arguments.length?(i=t,a):i},a.sortChords=function(t){return arguments.length?(null==t?o=null:(e=t,o=function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)})._=t,a):o&&o._;var e},a}const ca=Math.PI,sa=2*ca,fa=1e-6,la=sa-fa;function ha(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class da{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?ha:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ha;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,u=n-t,c=r-e,s=o-t,f=a-e,l=s*s+f*f;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(l>fa)if(Math.abs(f*u-c*s)>fa&&i){let h=n-o,d=r-a,p=u*u+c*c,g=h*h+d*d,y=Math.sqrt(p),v=Math.sqrt(l),m=i*Math.tan((ca-Math.acos((p+l-g)/(2*y*v)))/2),b=m/v,_=m/y;Math.abs(b-1)>fa&&this._append`L${t+b*s},${e+b*f}`,this._append`A${i},${i},0,0,${+(f*h>s*d)},${this._x1=t+_*u},${this._y1=e+_*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),u=n*Math.sin(r),c=t+a,s=e+u,f=1^o,l=o?r-i:i-r;null===this._x1?this._append`M${c},${s}`:(Math.abs(this._x1-c)>fa||Math.abs(this._y1-s)>fa)&&this._append`L${c},${s}`,n&&(l<0&&(l=l%sa+sa),l>la?this._append`A${n},${n},0,1,${f},${t-a},${e-u}A${n},${n},0,1,${f},${this._x1=c},${this._y1=s}`:l>fa&&this._append`A${n},${n},0,${+(l>=ca)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function pa(){return new da}function ga(t=3){return new da(+t)}pa.prototype=da.prototype;var ya=Array.prototype.slice;function va(t){return function(){return t}}function ma(t){return t.source}function ba(t){return t.target}function _a(t){return t.radius}function xa(t){return t.startAngle}function wa(t){return t.endAngle}function Ma(){return 0}function Ta(){return 10}function Aa(t){var e=ma,n=ba,r=_a,i=_a,o=xa,a=wa,u=Ma,c=null;function s(){var s,f=e.apply(this,arguments),l=n.apply(this,arguments),h=u.apply(this,arguments)/2,d=ya.call(arguments),p=+r.apply(this,(d[0]=f,d)),g=o.apply(this,d)-Jo,y=a.apply(this,d)-Jo,v=+i.apply(this,(d[0]=l,d)),m=o.apply(this,d)-Jo,b=a.apply(this,d)-Jo;if(c||(c=s=pa()),h>na&&(Go(y-g)>2*h+na?y>g?(g+=h,y-=h):(g-=h,y+=h):g=y=(g+y)/2,Go(b-m)>2*h+na?b>m?(m+=h,b-=h):(m-=h,b+=h):m=b=(m+b)/2),c.moveTo(p*Zo(g),p*Qo(g)),c.arc(0,0,p,g,y),g!==m||y!==b)if(t){var _=v-+t.apply(this,arguments),x=(m+b)/2;c.quadraticCurveTo(0,0,_*Zo(m),_*Qo(m)),c.lineTo(v*Zo(x),v*Qo(x)),c.lineTo(_*Zo(b),_*Qo(b))}else c.quadraticCurveTo(0,0,v*Zo(m),v*Qo(m)),c.arc(0,0,v,m,b);if(c.quadraticCurveTo(0,0,p*Zo(g),p*Qo(g)),c.closePath(),s)return c=null,s+""||null}return t&&(s.headRadius=function(e){return arguments.length?(t="function"==typeof e?e:va(+e),s):t}),s.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:va(+t),s):r},s.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:va(+t),s):r},s.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:va(+t),s):i},s.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:va(+t),s):o},s.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:va(+t),s):a},s.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:va(+t),s):u},s.source=function(t){return arguments.length?(e=t,s):e},s.target=function(t){return arguments.length?(n=t,s):n},s.context=function(t){return arguments.length?(c=null==t?null:t,s):c},s}function Sa(){return Aa()}function Ea(){return Aa(Ta)}const ka=Math.PI/180,Na=180/Math.PI,Ca=.96422,Da=1,Pa=.82521,ja=4/29,qa=6/29,La=3*qa*qa,Oa=qa*qa*qa;function Ra(t){if(t instanceof Ia)return new Ia(t.l,t.a,t.b,t.opacity);if(t instanceof Va)return Ga(t);t instanceof mr||(t=yr(t));var e,n,r=Ua(t.r),i=Ua(t.g),o=Ua(t.b),a=Ha((.2225045*r+.7168786*i+.0606169*o)/Da);return r===i&&i===o?e=n=a:(e=Ha((.4360747*r+.3850649*i+.1430804*o)/Ca),n=Ha((.0139322*r+.0971045*i+.7141733*o)/Pa)),new Ia(116*a-16,500*(e-a),200*(a-n),t.opacity)}function $a(t,e){return new Ia(t,0,0,null==e?1:e)}function za(t,e,n,r){return 1===arguments.length?Ra(t):new Ia(t,e,n,null==r?1:r)}function Ia(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Ha(t){return t>Oa?Math.pow(t,1/3):t/La+ja}function Fa(t){return t>qa?t*t*t:La*(t-ja)}function Ba(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ua(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ya(t){if(t instanceof Va)return new Va(t.h,t.c,t.l,t.opacity);if(t instanceof Ia||(t=Ra(t)),0===t.a&&0===t.b)return new Va(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Na;return new Va(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Wa(t,e,n,r){return 1===arguments.length?Ya(t):new Va(n,e,t,null==r?1:r)}function Xa(t,e,n,r){return 1===arguments.length?Ya(t):new Va(t,e,n,null==r?1:r)}function Va(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Ga(t){if(isNaN(t.h))return new Ia(t.l,0,0,t.opacity);var e=t.h*ka;return new Ia(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Gn(Ia,za,Zn(Qn,{brighter(t){return new Ia(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Ia(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new mr(Ba(3.1338561*(e=Ca*Fa(e))-1.6168667*(t=Da*Fa(t))-.4906146*(n=Pa*Fa(n))),Ba(-.9787684*e+1.9161415*t+.033454*n),Ba(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Gn(Va,Xa,Zn(Qn,{brighter(t){return new Va(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new Va(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return Ga(this).rgb()}}));var Za=-.14861,Qa=1.78277,Ka=-.29227,Ja=-.90649,tu=1.97294,eu=tu*Ja,nu=tu*Qa,ru=Qa*Ka-Ja*Za;function iu(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof ou)return new ou(t.h,t.s,t.l,t.opacity);t instanceof mr||(t=yr(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(ru*r+eu*e-nu*n)/(ru+eu-nu),o=r-i,a=(tu*(n-i)-Ka*o)/Ja,u=Math.sqrt(a*a+o*o)/(tu*i*(1-i)),c=u?Math.atan2(a,o)*Na-120:NaN;return new ou(c<0?c+360:c,u,i,t.opacity)}(t):new ou(t,e,n,null==r?1:r)}function ou(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Gn(ou,iu,Zn(Qn,{brighter(t){return t=null==t?Jn:Math.pow(Jn,t),new ou(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Kn:Math.pow(Kn,t),new ou(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*ka,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new mr(255*(e+n*(Za*r+Qa*i)),255*(e+n*(Ka*r+Ja*i)),255*(e+n*(tu*r)),this.opacity)}}));var au=Array.prototype.slice;function uu(t,e){return t-e}const cu=t=>()=>t;function su(t,e){for(var n,r=-1,i=e.length;++r<i;)if(n=fu(t,e[r]))return n;return 0}function fu(t,e){for(var n=e[0],r=e[1],i=-1,o=0,a=t.length,u=a-1;o<a;u=o++){var c=t[o],s=c[0],f=c[1],l=t[u],h=l[0],d=l[1];if(lu(c,l,e))return 0;f>r!=d>r&&n<(h-s)*(r-f)/(d-f)+s&&(i=-i)}return i}function lu(t,e,n){var r,i,o,a;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],o=n[r],a=e[r],i<=o&&o<=a||a<=o&&o<=i)}function hu(){}var du=[[],[[[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 pu(){var t=1,e=1,n=dt,r=u;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(uu);else{const n=N(t),r=lt(n[0],n[1],e);e=st(Math.floor(n[0]/r)*r,Math.floor(n[1]/r-1)*r,e)}return e.map((e=>o(t,e)))}function o(n,i){var o=[],u=[];return function(n,r,i){var o,u,c,s,f,l,h=new Array,d=new Array;for(o=u=-1,s=n[0]>=r,du[s<<1].forEach(p);++o<t-1;)c=s,s=n[o+1]>=r,du[c|s<<1].forEach(p);for(du[s<<0].forEach(p);++u<e-1;){for(o=-1,s=n[u*t+t]>=r,f=n[u*t]>=r,du[s<<1|f<<2].forEach(p);++o<t-1;)c=s,s=n[u*t+t+o+1]>=r,l=f,f=n[u*t+o+1]>=r,du[c|s<<1|f<<2|l<<3].forEach(p);du[s|f<<3].forEach(p)}for(o=-1,f=n[u*t]>=r,du[f<<2].forEach(p);++o<t-1;)l=f,f=n[u*t+o+1]>=r,du[f<<2|l<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+o,t[0][1]+u],c=[t[1][0]+o,t[1][1]+u],s=a(r),f=a(c);(e=d[s])?(n=h[f])?(delete d[e.end],delete h[n.start],e===n?(e.ring.push(c),i(e.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(c),d[e.end=f]=e):(e=h[f])?(n=d[s])?(delete h[e.start],delete d[n.end],e===n?(e.ring.push(c),i(e.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete h[e.start],e.ring.unshift(r),h[e.start=s]=e):h[s]=d[f]={start:s,end:f,ring:[r,c]}}du[f<<3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}(t)>0?o.push([t]):u.push(t)})),u.forEach((function(t){for(var e,n=0,r=o.length;n<r;++n)if(-1!==su((e=o[n])[0],t))return void e.push(t)})),{type:"MultiPolygon",value:i,coordinates:o}}function a(e){return 2*e[0]+e[1]*(t+1)*4}function u(n,r,i){n.forEach((function(n){var o,a=n[0],u=n[1],c=0|a,s=0|u,f=r[s*t+c];a>0&&a<t&&c===a&&(o=r[s*t+c-1],n[0]=a+(i-o)/(f-o)-.5),u>0&&u<e&&s===u&&(o=r[(s-1)*t+c],n[1]=u+(i-o)/(f-o)-.5)}))}return i.contour=o,i.size=function(n){if(!arguments.length)return[t,e];var r=Math.floor(n[0]),o=Math.floor(n[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return t=r,e=o,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?cu(au.call(t)):cu(t),i):n},i.smooth=function(t){return arguments.length?(r=t?u:hu,i):r===u},i}function gu(t,e,n){for(var r=t.width,i=t.height,o=1+(n<<1),a=0;a<i;++a)for(var u=0,c=0;u<r+n;++u)u<r&&(c+=t.data[u+a*r]),u>=n&&(u>=o&&(c-=t.data[u-o+a*r]),e.data[u-n+a*r]=c/Math.min(u+1,r-1+o-u,o))}function yu(t,e,n){for(var r=t.width,i=t.height,o=1+(n<<1),a=0;a<r;++a)for(var u=0,c=0;u<i+n;++u)u<i&&(c+=t.data[a+u*r]),u>=n&&(u>=o&&(c-=t.data[a+(u-o)*r]),e.data[a+(u-n)*r]=c/Math.min(u+1,i-1+o-u,o))}function vu(t){return t[0]}function mu(t){return t[1]}function bu(){return 1}function _u(){var t=vu,e=mu,n=bu,r=960,i=500,o=20,a=2,u=3*o,c=r+2*u>>a,s=i+2*u>>a,f=cu(20);function l(r){var i=new Float32Array(c*s),f=new Float32Array(c*s),l=Math.pow(2,-a);return r.forEach((function(r,o,a){var f=(t(r,o,a)+u)*l,h=(e(r,o,a)+u)*l,d=+n(r,o,a);if(f>=0&&f<c&&h>=0&&h<s){var p=Math.floor(f),g=Math.floor(h),y=f-p-.5,v=h-g-.5;i[p+g*c]+=(1-y)*(1-v)*d,i[p+1+g*c]+=y*(1-v)*d,i[p+1+(g+1)*c]+=y*v*d,i[p+(g+1)*c]+=(1-y)*v*d}})),gu({width:c,height:s,data:i},{width:c,height:s,data:f},o>>a),yu({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a),gu({width:c,height:s,data:i},{width:c,height:s,data:f},o>>a),yu({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a),gu({width:c,height:s,data:i},{width:c,height:s,data:f},o>>a),yu({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a),i}function h(t){var e=l(t),n=f(e),r=Math.pow(2,2*a);return Array.isArray(n)||(n=st(Number.MIN_VALUE,gt(e)/r,n)),pu().size([c,s]).thresholds(n.map((t=>t*r)))(e).map(((t,e)=>(t.value=+n[e],d(t))))}function d(t){return t.coordinates.forEach(p),t}function p(t){t.forEach(g)}function g(t){t.forEach(y)}function y(t){t[0]=t[0]*Math.pow(2,a)-u,t[1]=t[1]*Math.pow(2,a)-u}function v(){return c=r+2*(u=3*o)>>a,s=i+2*u>>a,h}return h.contours=function(t){var e=l(t),n=pu().size([c,s]),r=Math.pow(2,2*a),i=t=>{t=+t;var i=d(n.contour(e,t*r));return i.value=t,i};return Object.defineProperty(i,"max",{get:()=>gt(e)/r}),i},h.x=function(e){return arguments.length?(t="function"==typeof e?e:cu(+e),h):t},h.y=function(t){return arguments.length?(e="function"==typeof t?t:cu(+t),h):e},h.weight=function(t){return arguments.length?(n="function"==typeof t?t:cu(+t),h):n},h.size=function(t){if(!arguments.length)return[r,i];var e=+t[0],n=+t[1];if(!(e>=0&&n>=0))throw new Error("invalid size");return r=e,i=n,v()},h.cellSize=function(t){if(!arguments.length)return 1<<a;if(!((t=+t)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),v()},h.thresholds=function(t){return arguments.length?(f="function"==typeof t?t:Array.isArray(t)?cu(au.call(t)):cu(t),h):f},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*t*t+1)-1)/2),v()},h}const xu=134217729,wu=33306690738754706e-32;function Mu(t,e,n,r,i){let o,a,u,c,s=e[0],f=r[0],l=0,h=0;f>s==f>-s?(o=s,s=e[++l]):(o=f,f=r[++h]);let d=0;if(l<t&&h<n)for(f>s==f>-s?(a=s+o,u=o-(a-s),s=e[++l]):(a=f+o,u=o-(a-f),f=r[++h]),o=a,0!==u&&(i[d++]=u);l<t&&h<n;)f>s==f>-s?(a=o+s,c=a-o,u=o-(a-c)+(s-c),s=e[++l]):(a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h]),o=a,0!==u&&(i[d++]=u);for(;l<t;)a=o+s,c=a-o,u=o-(a-c)+(s-c),s=e[++l],o=a,0!==u&&(i[d++]=u);for(;h<n;)a=o+f,c=a-o,u=o-(a-c)+(f-c),f=r[++h],o=a,0!==u&&(i[d++]=u);return 0===o&&0!==d||(i[d++]=o),d}function Tu(t){return new Float64Array(t)}const Au=33306690738754716e-32,Su=22204460492503146e-32,Eu=11093356479670487e-47,ku=Tu(4),Nu=Tu(8),Cu=Tu(12),Du=Tu(16),Pu=Tu(4);function ju(t,e,n,r,i,o){const a=(e-o)*(n-i),u=(t-i)*(r-o),c=a-u;if(0===a||0===u||a>0!=u>0)return c;const s=Math.abs(a+u);return Math.abs(c)>=Au*s?c:-function(t,e,n,r,i,o,a){let u,c,s,f,l,h,d,p,g,y,v,m,b,_,x,w,M,T;const A=t-i,S=n-i,E=e-o,k=r-o;_=A*k,h=xu*A,d=h-(h-A),p=A-d,h=xu*k,g=h-(h-k),y=k-g,x=p*y-(_-d*g-p*g-d*y),w=E*S,h=xu*E,d=h-(h-E),p=E-d,h=xu*S,g=h-(h-S),y=S-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,ku[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,ku[1]=b-(v+l)+(l-w),T=m+v,l=T-m,ku[2]=m-(T-l)+(v-l),ku[3]=T;let N=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,ku),C=Su*a;if(N>=C||-N>=C)return N;if(l=t-A,u=t-(A+l)+(l-i),l=n-S,s=n-(S+l)+(l-i),l=e-E,c=e-(E+l)+(l-o),l=r-k,f=r-(k+l)+(l-o),0===u&&0===c&&0===s&&0===f)return N;if(C=Eu*a+wu*Math.abs(N),N+=A*f+k*u-(E*s+S*c),N>=C||-N>=C)return N;_=u*k,h=xu*u,d=h-(h-u),p=u-d,h=xu*k,g=h-(h-k),y=k-g,x=p*y-(_-d*g-p*g-d*y),w=c*S,h=xu*c,d=h-(h-c),p=c-d,h=xu*S,g=h-(h-S),y=S-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,Pu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,Pu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,Pu[2]=m-(T-l)+(v-l),Pu[3]=T;const D=Mu(4,ku,4,Pu,Nu);_=A*f,h=xu*A,d=h-(h-A),p=A-d,h=xu*f,g=h-(h-f),y=f-g,x=p*y-(_-d*g-p*g-d*y),w=E*s,h=xu*E,d=h-(h-E),p=E-d,h=xu*s,g=h-(h-s),y=s-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,Pu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,Pu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,Pu[2]=m-(T-l)+(v-l),Pu[3]=T;const P=Mu(D,Nu,4,Pu,Cu);_=u*f,h=xu*u,d=h-(h-u),p=u-d,h=xu*f,g=h-(h-f),y=f-g,x=p*y-(_-d*g-p*g-d*y),w=c*s,h=xu*c,d=h-(h-c),p=c-d,h=xu*s,g=h-(h-s),y=s-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,Pu[0]=x-(v+l)+(l-M),m=_+v,l=m-_,b=_-(m-l)+(v-l),v=b-w,l=b-v,Pu[1]=b-(v+l)+(l-w),T=m+v,l=T-m,Pu[2]=m-(T-l)+(v-l),Pu[3]=T;const j=Mu(P,Cu,4,Pu,Du);return Du[j-1]}(t,e,n,r,i,o,s)}Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(8),Tu(8),Tu(8),Tu(4),Tu(8),Tu(8),Tu(8),Tu(12),Tu(192),Tu(192),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(8),Tu(8),Tu(8),Tu(8),Tu(8),Tu(8),Tu(8),Tu(8),Tu(8),Tu(4),Tu(4),Tu(4),Tu(8),Tu(16),Tu(16),Tu(16),Tu(32),Tu(32),Tu(48),Tu(64),Tu(1152),Tu(1152),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(4),Tu(24),Tu(24),Tu(24),Tu(24),Tu(24),Tu(24),Tu(24),Tu(24),Tu(24),Tu(24),Tu(1152),Tu(1152),Tu(1152),Tu(1152),Tu(1152),Tu(2304),Tu(2304),Tu(3456),Tu(5760),Tu(8),Tu(8),Tu(8),Tu(16),Tu(24),Tu(48),Tu(48),Tu(96),Tu(192),Tu(384),Tu(384),Tu(384),Tu(768),Tu(96),Tu(96),Tu(96),Tu(1152);const qu=Math.pow(2,-52),Lu=new Uint32Array(512);class Ou{static from(t,e=Fu,n=Bu){const r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=t[o];i[2*o]=e(r),i[2*o+1]=n(r)}return new Ou(i)}constructor(t){const e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let a=1/0,u=1/0,c=-1/0,s=-1/0;for(let e=0;e<o;e++){const n=t[2*e],r=t[2*e+1];n<a&&(a=n),r<u&&(u=r),n>c&&(c=n),r>s&&(s=r),this._ids[e]=e}const f=(a+c)/2,l=(u+s)/2;let h,d,p,g=1/0;for(let e=0;e<o;e++){const n=Ru(f,l,t[2*e],t[2*e+1]);n<g&&(h=e,g=n)}const y=t[2*h],v=t[2*h+1];g=1/0;for(let e=0;e<o;e++){if(e===h)continue;const n=Ru(y,v,t[2*e],t[2*e+1]);n<g&&n>0&&(d=e,g=n)}let m=t[2*d],b=t[2*d+1],_=1/0;for(let e=0;e<o;e++){if(e===h||e===d)continue;const n=zu(y,v,m,b,t[2*e],t[2*e+1]);n<_&&(p=e,_=n)}let x=t[2*p],w=t[2*p+1];if(_===1/0){for(let e=0;e<o;e++)this._dists[e]=t[2*e]-t[0]||t[2*e+1]-t[1];Iu(this._ids,this._dists,0,o-1);const e=new Uint32Array(o);let n=0;for(let t=0,r=-1/0;t<o;t++){const i=this._ids[t];this._dists[i]>r&&(e[n++]=i,r=this._dists[i])}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(ju(y,v,m,b,x,w)<0){const t=d,e=m,n=b;d=p,m=x,b=w,p=t,x=e,w=n}const M=function(t,e,n,r,i,o){const a=n-t,u=r-e,c=i-t,s=o-e,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c);return{x:t+(s*f-u*l)*h,y:e+(a*l-c*f)*h}}(y,v,m,b,x,w);this._cx=M.x,this._cy=M.y;for(let e=0;e<o;e++)this._dists[e]=Ru(t[2*e],t[2*e+1],M.x,M.y);Iu(this._ids,this._dists,0,o-1),this._hullStart=h;let T=3;n[h]=e[p]=d,n[d]=e[h]=p,n[p]=e[d]=h,r[h]=0,r[d]=1,r[p]=2,i.fill(-1),i[this._hashKey(y,v)]=h,i[this._hashKey(m,b)]=d,i[this._hashKey(x,w)]=p,this.trianglesLen=0,this._addTriangle(h,d,p,-1,-1,-1);for(let o,a,u=0;u<this._ids.length;u++){const c=this._ids[u],s=t[2*c],f=t[2*c+1];if(u>0&&Math.abs(s-o)<=qu&&Math.abs(f-a)<=qu)continue;if(o=s,a=f,c===h||c===d||c===p)continue;let l=0;for(let t=0,e=this._hashKey(s,f);t<this._hashSize&&(l=i[(e+t)%this._hashSize],-1===l||l===n[l]);t++);l=e[l];let g,y=l;for(;g=n[y],ju(s,f,t[2*y],t[2*y+1],t[2*g],t[2*g+1])>=0;)if(y=g,y===l){y=-1;break}if(-1===y)continue;let v=this._addTriangle(y,c,n[y],-1,-1,r[y]);r[c]=this._legalize(v+2),r[y]=v,T++;let m=n[y];for(;g=n[m],ju(s,f,t[2*m],t[2*m+1],t[2*g],t[2*g+1])<0;)v=this._addTriangle(m,c,g,r[c],-1,r[m]),r[c]=this._legalize(v+2),n[m]=m,T--,m=g;if(y===l)for(;g=e[y],ju(s,f,t[2*g],t[2*g+1],t[2*y],t[2*y+1])<0;)v=this._addTriangle(g,c,y,-1,r[y],r[g]),this._legalize(v+2),r[g]=v,n[y]=y,T--,y=g;this._hullStart=e[c]=y,n[y]=e[m]=c,n[c]=m,i[this._hashKey(s,f)]=c,i[this._hashKey(t[2*y],t[2*y+1])]=y}this.hull=new Uint32Array(T);for(let t=0,e=this._hullStart;t<T;t++)this.hull[t]=e,e=n[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){const n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:e,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[t],u=t-t%3;if(o=u+(t+2)%3,-1===a){if(0===i)break;t=Lu[--i];continue}const c=a-a%3,s=u+(t+1)%3,f=c+(a+2)%3,l=e[o],h=e[t],d=e[s],p=e[f];if($u(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){e[t]=p,e[a]=l;const r=n[f];if(-1===r){let e=this._hullStart;do{if(this._hullTri[e]===f){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,r),this._link(a,n[o]),this._link(o,f);const u=c+(a+1)%3;i<Lu.length&&(Lu[i++]=u)}else{if(0===i)break;t=Lu[--i]}}return o}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,r,i,o){const a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function Ru(t,e,n,r){const i=t-n,o=e-r;return i*i+o*o}function $u(t,e,n,r,i,o,a,u){const c=t-a,s=e-u,f=n-a,l=r-u,h=i-a,d=o-u,p=f*f+l*l,g=h*h+d*d;return c*(l*g-p*d)-s*(f*g-p*h)+(c*c+s*s)*(f*d-l*h)<0}function zu(t,e,n,r,i,o){const a=n-t,u=r-e,c=i-t,s=o-e,f=a*a+u*u,l=c*c+s*s,h=.5/(a*s-u*c),d=(s*f-u*l)*h,p=(a*l-c*f)*h;return d*d+p*p}function Iu(t,e,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=t[i],o=e[r];let a=i-1;for(;a>=n&&e[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=n+1,o=r;Hu(t,n+r>>1,i),e[t[n]]>e[t[r]]&&Hu(t,n,r),e[t[i]]>e[t[r]]&&Hu(t,i,r),e[t[n]]>e[t[i]]&&Hu(t,n,i);const a=t[i],u=e[a];for(;;){do{i++}while(e[t[i]]<u);do{o--}while(e[t[o]]>u);if(o<i)break;Hu(t,i,o)}t[n+1]=t[o],t[o]=a,r-i+1>=o-n?(Iu(t,e,i,r),Iu(t,e,n,o-1)):(Iu(t,e,n,o-1),Iu(t,e,i,r))}}function Hu(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Fu(t){return t[0]}function Bu(t){return t[1]}const Uu=1e-6;class Yu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){const r=(t=+t)+(n=+n),i=e=+e;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>Uu||Math.abs(this._y1-i)>Uu)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,e,n,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class Wu{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class Xu{constructor(t,[e,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(e=+e)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=e,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let e,r,o=0,a=0,u=n.length;o<u;o+=3,a+=2){const u=2*n[o],c=2*n[o+1],s=2*n[o+2],f=t[u],l=t[u+1],h=t[c],d=t[c+1],p=t[s],g=t[s+1],y=h-f,v=d-l,m=p-f,b=g-l,_=2*(y*b-v*m);if(Math.abs(_)<1e-9){let i=1e9;const o=2*n[0];i*=Math.sign((t[o]-f)*b-(t[o+1]-l)*m),e=(f+p)/2-i*b,r=(l+g)/2+i*m}else{const t=1/_,n=y*y+v*v,i=m*m+b*b;e=f+(b*n-v*i)*t,r=l+(y*i-m*n)*t}i[a]=e,i[a+1]=r}let o,a,u,c=e[e.length-1],s=4*c,f=t[2*c],l=t[2*c+1];r.fill(0);for(let n=0;n<e.length;++n)c=e[n],o=s,a=f,u=l,s=4*c,f=t[2*c],l=t[2*c+1],r[o+2]=r[s]=u-l,r[o+3]=r[s+1]=f-a}render(t){const e=null==t?t=new Yu:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let e=0,r=n.length;e<r;++e){const r=n[e];if(r<e)continue;const i=2*Math.floor(e/3),a=2*Math.floor(r/3),u=o[i],c=o[i+1],s=o[a],f=o[a+1];this._renderSegment(u,c,s,f,t)}let u,c=i[i.length-1];for(let e=0;e<i.length;++e){u=c,c=i[e];const n=2*Math.floor(r[c]/3),s=o[n],f=o[n+1],l=4*u,h=this._project(s,f,a[l+2],a[l+3]);h&&this._renderSegment(s,f,h[0],h[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new Yu:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new Yu:void 0,r=this._clip(t);if(null===r||!r.length)return;e.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 t=2;t<i;t+=2)r[t]===r[t-2]&&r[t+1]===r[t-1]||e.lineTo(r[t],r[t+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new Wu;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,r,i){let o;const a=this._regioncode(t,e),u=this._regioncode(n,r);0===a&&0===u?(i.moveTo(t,e),i.lineTo(n,r)):(o=this._clipSegment(t,e,n,r,a,u))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,e,n){return(e=+e)==e&&(n=+n)==n&&this.delaunay._step(t,e,n)===t}*neighbors(t){const e=this._clip(t);if(e)for(const n of this.delaunay.neighbors(t)){const t=this._clip(n);if(t)t:for(let r=0,i=e.length;r<i;r+=2)for(let o=0,a=t.length;o<a;o+=2)if(e[r]==t[o]&&e[r+1]==t[o+1]&&e[(r+2)%i]==t[(o+a-2)%a]&&e[(r+3)%i]==t[(o+a-1)%a]){yield n;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[t];if(-1===o)return null;const a=[];let u=o;do{const n=Math.floor(u/3);if(a.push(e[2*n],e[2*n+1]),u=u%3==2?u-2:u+1,i[u]!==t)break;u=r[u]}while(u!==o&&-1!==u);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const e=this._cell(t);if(null===e)return null;const{vectors:n}=this,r=4*t;return n[r]||n[r+1]?this._clipInfinite(t,e,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(t,e)}_clipFinite(t,e){const n=e.length;let r,i,o,a,u=null,c=e[n-2],s=e[n-1],f=this._regioncode(c,s),l=0;for(let h=0;h<n;h+=2)if(r=c,i=s,c=e[h],s=e[h+1],o=f,f=this._regioncode(c,s),0===o&&0===f)a=l,l=0,u?u.push(c,s):u=[c,s];else{let e,n,h,d,p;if(0===o){if(null===(e=this._clipSegment(r,i,c,s,o,f)))continue;[n,h,d,p]=e}else{if(null===(e=this._clipSegment(c,s,r,i,f,o)))continue;[d,p,n,h]=e,a=l,l=this._edgecode(n,h),a&&l&&this._edge(t,a,l,u,u.length),u?u.push(n,h):u=[n,h]}a=l,l=this._edgecode(d,p),a&&l&&this._edge(t,a,l,u,u.length),u?u.push(d,p):u=[d,p]}if(u)a=l,l=this._edgecode(u[0],u[1]),a&&l&&this._edge(t,a,l,u,u.length);else if(this.contains(t,(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 u}_clipSegment(t,e,n,r,i,o){for(;;){if(0===i&&0===o)return[t,e,n,r];if(i&o)return null;let a,u,c=i||o;8&c?(a=t+(n-t)*(this.ymax-e)/(r-e),u=this.ymax):4&c?(a=t+(n-t)*(this.ymin-e)/(r-e),u=this.ymin):2&c?(u=e+(r-e)*(this.xmax-t)/(n-t),a=this.xmax):(u=e+(r-e)*(this.xmin-t)/(n-t),a=this.xmin),i?(t=a,e=u,i=this._regioncode(t,e)):(n=a,r=u,o=this._regioncode(n,r))}}_clipInfinite(t,e,n,r,i,o){let a,u=Array.from(e);if((a=this._project(u[0],u[1],n,r))&&u.unshift(a[0],a[1]),(a=this._project(u[u.length-2],u[u.length-1],i,o))&&u.push(a[0],a[1]),u=this._clipFinite(t,u))for(let e,n=0,r=u.length,i=this._edgecode(u[r-2],u[r-1]);n<r;n+=2)e=i,i=this._edgecode(u[n],u[n+1]),e&&i&&(n=this._edge(t,e,i,u,n),r=u.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(u=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return u}_edge(t,e,n,r,i){for(;e!==n;){let n,o;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,o=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,o=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,o=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(t,n,o)||(r.splice(i,0,n,o),i+=2)}if(r.length>4)for(let t=0;t<r.length;t+=2){const e=(t+2)%r.length,n=(t+4)%r.length;(r[t]===r[e]&&r[e]===r[n]||r[t+1]===r[e+1]&&r[e+1]===r[n+1])&&(r.splice(e,2),t-=2)}return i}_project(t,e,n,r){let i,o,a,u=1/0;if(r<0){if(e<=this.ymin)return null;(i=(this.ymin-e)/r)<u&&(a=this.ymin,o=t+(u=i)*n)}else if(r>0){if(e>=this.ymax)return null;(i=(this.ymax-e)/r)<u&&(a=this.ymax,o=t+(u=i)*n)}if(n>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/n)<u&&(o=this.xmax,a=e+(u=i)*r)}else if(n<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/n)<u&&(o=this.xmin,a=e+(u=i)*r)}return[o,a]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}}const Vu=2*Math.PI,Gu=Math.pow;function Zu(t){return t[0]}function Qu(t){return t[1]}function Ku(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class Ju{static from(t,e=Zu,n=Qu,r){return new Ju("length"in t?function(t,e,n,r){const i=t.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=t[a];o[2*a]=e.call(r,i,a,t),o[2*a+1]=n.call(r,i,a,t)}return o}(t,e,n,r):Float64Array.from(function*(t,e,n,r){let i=0;for(const o of t)yield e.call(r,o,i,t),yield n.call(r,o,i,t),++i}(t,e,n,r)))}constructor(t){this._delaunator=new Ou(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:e,coords:n}=t;for(let t=0;t<e.length;t+=3){const r=2*e[t],i=2*e[t+1],o=2*e[t+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}(t)){this.collinear=Int32Array.from({length:e.length/2},((t,e)=>e)).sort(((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]));const t=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,n=e.length/2;t<n;++t){const n=Ku(e[2*t],e[2*t+1],i);e[2*t]=n[0],e[2*t+1]=n[1]}this._delaunator=new Ou(e)}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),a=this._hullIndex.fill(-1);for(let t=0,e=n.length;t<e;++t){const e=i[t%3==2?t-2:t+1];-1!==n[t]&&-1!==o[e]||(o[e]=t)}for(let t=0,e=r.length;t<e;++t)a[r[t]]=t;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(t){return new Xu(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const e=a.indexOf(t);return e>0&&(yield a[e-1]),void(e<a.length-1&&(yield a[e+1]))}const u=e[t];if(-1===u)return;let c=u,s=-1;do{if(yield s=o[c],c=c%3==2?c-2:c+1,o[c]!==t)return;if(c=i[c],-1===c){const e=n[(r[t]+1)%n.length];return void(e!==s&&(yield e))}}while(c!==u)}find(t,e,n=0){if((t=+t)!=t||(e=+e)!=e)return-1;const r=n;let i;for(;(i=this._step(n,t,e))>=0&&i!==n&&i!==r;)n=i;return i}_step(t,e,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:u,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let s=t,f=Gu(e-c[2*t],2)+Gu(n-c[2*t+1],2);const l=r[t];let h=l;do{let r=u[h];const l=Gu(e-c[2*r],2)+Gu(n-c[2*r+1],2);if(l<f&&(f=l,s=r),h=h%3==2?h-2:h+1,u[h]!==t)break;if(h=a[h],-1===h){if(h=i[(o[t]+1)%i.length],h!==r&&Gu(e-c[2*h],2)+Gu(n-c[2*h+1],2)<f)return h;break}}while(h!==l);return s}render(t){const e=null==t?t=new Yu:void 0,{points:n,halfedges:r,triangles:i}=this;for(let e=0,o=r.length;e<o;++e){const o=r[e];if(o<e)continue;const a=2*i[e],u=2*i[o];t.moveTo(n[a],n[a+1]),t.lineTo(n[u],n[u+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"==typeof t.moveTo||(e=t,t=null),e=null==e?2:+e;const n=null==t?t=new Yu:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],o=r[n+1];t.moveTo(i+e,o),t.arc(i,o,e,0,Vu)}return n&&n.value()}renderHull(t){const e=null==t?t=new Yu:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;t.moveTo(r[i],r[i+1]);for(let e=1;e<o;++e){const i=2*n[e];t.lineTo(r[i],r[i+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new Wu;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new Yu:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],a=2*i[t+1],u=2*i[t+2];return e.moveTo(r[o],r[o+1]),e.lineTo(r[a],r[a+1]),e.lineTo(r[u],r[u+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new Wu;return this.renderTriangle(t,e),e.value()}}const tc=t=>()=>t;function ec(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:u,dx:c,dy:s,dispatch:f}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,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:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:f}})}function nc(t){return!t.ctrlKey&&!t.button}function rc(){return this.parentNode}function ic(t,e){return null==e?{x:t.x,y:t.y}:e}function oc(){return navigator.maxTouchPoints||"ontouchstart"in this}function ac(){var t,e,n,r,i=nc,o=rc,a=ic,u=oc,c={},s=Ee("start","drag","end"),f=0,l=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",y).on("touchmove.drag",v,Bn).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var c=b(this,o.call(this,a,u),a,u,"mouse");c&&(Fn(a.view).on("mousemove.drag",p,Un).on("mouseup.drag",g,Un),Xn(a.view),Yn(a),n=!1,t=a.clientX,e=a.clientY,c("start",a))}}function p(r){if(Wn(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>l}c.mouse("drag",r)}function g(t){Fn(t.view).on("mousemove.drag mouseup.drag",null),Vn(t.view,n),Wn(t),c.mouse("end",t)}function y(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,u=o.call(this,t,e),c=a.length;for(n=0;n<c;++n)(r=b(this,u,t,e,a[n].identifier,a[n]))&&(Yn(t),r("start",t,a[n]))}}function v(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=c[r[e].identifier])&&(Wn(t),n("drag",t,r[e]))}function m(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<o;++e)(n=c[i[e].identifier])&&(Yn(t),n("end",t,i[e]))}function b(t,e,n,r,i,o){var u,l,d,p=s.copy(),g=ti(o||n,e);if(null!=(d=a.call(t,new ec("beforestart",{sourceEvent:n,target:h,identifier:i,active:f,x:g[0],y:g[1],dx:0,dy:0,dispatch:p}),r)))return u=d.x-g[0]||0,l=d.y-g[1]||0,function n(o,a,s){var y,v=g;switch(o){case"start":c[i]=n,y=f++;break;case"end":delete c[i],--f;case"drag":g=ti(s||a,e),y=f}p.call(o,t,new ec(o,{sourceEvent:a,subject:d,target:h,identifier:i,active:y,x:g[0]+u,y:g[1]+l,dx:g[0]-v[0],dy:g[1]-v[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:tc(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:tc(t),h):o},h.subject=function(t){return arguments.length?(a="function"==typeof t?t:tc(t),h):a},h.touchable=function(t){return arguments.length?(u="function"==typeof t?t:tc(!!t),h):u},h.on=function(){var t=s.on.apply(s,arguments);return t===s?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h}ec.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var uc={},cc={},sc=34,fc=10,lc=13;function hc(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function dc(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function pc(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function gc(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],o=t.length,a=0,u=0,c=o<=0,s=!1;function f(){if(c)return cc;if(s)return s=!1,uc;var e,r,i=a;if(t.charCodeAt(i)===sc){for(;a++<o&&t.charCodeAt(a)!==sc||t.charCodeAt(++a)===sc;);return(e=a)>=o?c=!0:(r=t.charCodeAt(a++))===fc?s=!0:r===lc&&(s=!0,t.charCodeAt(a)===fc&&++a),t.slice(i+1,e-1).replace(/""/g,'"')}for(;a<o;){if((r=t.charCodeAt(e=a++))===fc)s=!0;else if(r===lc)s=!0,t.charCodeAt(a)===fc&&++a;else if(r!==n)continue;return t.slice(i,e)}return c=!0,t.slice(i,o)}for(t.charCodeAt(o-1)===fc&&--o,t.charCodeAt(o-1)===lc&&--o;(r=f())!==cc;){for(var l=[];r!==uc&&r!==cc;)l.push(r),r=f();e&&null==(l=e(l,u++))||i.push(l)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return a(e[t])})).join(t)}))}function o(e){return e.map(a).join(t)}function a(t){return null==t?"":t instanceof Date?function(t){var e,n=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+pc(-e,6):e>9999?"+"+pc(e,6):pc(e,4))+"-"+pc(t.getUTCMonth()+1,2)+"-"+pc(t.getUTCDate(),2)+(o?"T"+pc(n,2)+":"+pc(r,2)+":"+pc(i,2)+"."+pc(o,3)+"Z":i?"T"+pc(n,2)+":"+pc(r,2)+":"+pc(i,2)+"Z":r||n?"T"+pc(n,2)+":"+pc(r,2)+"Z":"")}(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,o=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=hc(t);return function(r,i){return e(n(r),i,t)}}(t,e):hc(t)}));return o.columns=i||[],o},parseRows:r,format:function(e,n){return null==n&&(n=dc(e)),[n.map(a).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=dc(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}}var yc=gc(","),vc=yc.parse,mc=yc.parseRows,bc=yc.format,_c=yc.formatBody,xc=yc.formatRows,wc=yc.formatRow,Mc=yc.formatValue,Tc=gc("\t"),Ac=Tc.parse,Sc=Tc.parseRows,Ec=Tc.format,kc=Tc.formatBody,Nc=Tc.formatRows,Cc=Tc.formatRow,Dc=Tc.formatValue;function Pc(t){for(var e in t){var n,r,i=t[e].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;jc&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}const jc=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),qc=t=>+t;function Lc(t){return t*t}function Oc(t){return t*(2-t)}function Rc(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var $c=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),zc=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Ic=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Hc=Math.PI,Fc=Hc/2;function Bc(t){return 1==+t?1:1-Math.cos(t*Fc)}function Uc(t){return Math.sin(t*Fc)}function Yc(t){return(1-Math.cos(Hc*t))/2}function Wc(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Xc(t){return Wc(1-+t)}function Vc(t){return 1-Wc(t)}function Gc(t){return((t*=2)<=1?Wc(1-t):2-Wc(t-1))/2}function Zc(t){return 1-Math.sqrt(1-t*t)}function Qc(t){return Math.sqrt(1- --t*t)}function Kc(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Jc=4/11,ts=6/11,es=8/11,ns=3/4,rs=9/11,is=10/11,os=15/16,as=21/22,us=63/64,cs=1/Jc/Jc;function ss(t){return 1-fs(1-t)}function fs(t){return(t=+t)<Jc?cs*t*t:t<es?cs*(t-=ts)*t+ns:t<is?cs*(t-=rs)*t+os:cs*(t-=as)*t+us}function ls(t){return((t*=2)<=1?1-fs(1-t):fs(t-1)+1)/2}var hs=1.70158,ds=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(hs),ps=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(hs),gs=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(hs),ys=2*Math.PI,vs=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=ys);function i(t){return e*Wc(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*ys)},i.period=function(n){return t(e,n)},i}(1,.3),ms=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=ys);function i(t){return 1-e*Wc(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*ys)},i.period=function(n){return t(e,n)},i}(1,.3),bs=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=ys);function i(t){return((t=2*t-1)<0?e*Wc(-t)*Math.sin((r-t)/n):2-e*Wc(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*ys)},i.period=function(n){return t(e,n)},i}(1,.3);function _s(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function xs(t,e){return fetch(t,e).then(_s)}function ws(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Ms(t,e){return fetch(t,e).then(ws)}function Ts(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function As(t,e){return fetch(t,e).then(Ts)}function Ss(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),As(e,n).then((function(e){return t(e,r)}))}}function Es(t,e,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=gc(t);return As(e,n).then((function(t){return i.parse(t,r)}))}var ks=Ss(vc),Ns=Ss(Ac);function Cs(t,e){return new Promise((function(n,r){var i=new Image;for(var o in e)i[o]=e[o];i.onerror=r,i.onload=function(){n(i)},i.src=t}))}function Ds(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Ps(t,e){return fetch(t,e).then(Ds)}function js(t){return(e,n)=>As(e,n).then((e=>(new DOMParser).parseFromString(e,t)))}const qs=js("application/xml");var Ls=js("text/html"),Os=js("image/svg+xml");function Rs(t,e){var n,r=1;function i(){var i,o,a=n.length,u=0,c=0;for(i=0;i<a;++i)u+=(o=n[i]).x,c+=o.y;for(u=(u/a-t)*r,c=(c/a-e)*r,i=0;i<a;++i)(o=n[i]).x-=u,o.y-=c}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i}function $s(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,u,c,s,f,l,h,d=t._root,p={data:r},g=t._x0,y=t._y0,v=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((s=e>=(o=(g+v)/2))?g=o:v=o,(f=n>=(a=(y+m)/2))?y=a:m=a,i=d,!(d=d[l=f<<1|s]))return i[l]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===u&&n===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(s=e>=(o=(g+v)/2))?g=o:v=o,(f=n>=(a=(y+m)/2))?y=a:m=a}while((l=f<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[l]=p,t}function zs(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Is(t){return t[0]}function Hs(t){return t[1]}function Fs(t,e,n){var r=new Bs(null==e?Is:e,null==n?Hs:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Bs(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Us(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Ys=Fs.prototype=Bs.prototype;function Ws(t){return function(){return t}}function Xs(t){return 1e-6*(t()-.5)}function Vs(t){return t.x+t.vx}function Gs(t){return t.y+t.vy}function Zs(t){var e,n,r,i=1,o=1;function a(){for(var t,a,c,s,f,l,h,d=e.length,p=0;p<o;++p)for(a=Fs(e,Vs,Gs).visitAfter(u),t=0;t<d;++t)c=e[t],l=n[c.index],h=l*l,s=c.x+c.vx,f=c.y+c.vy,a.visit(g);function g(t,e,n,o,a){var u=t.data,d=t.r,p=l+d;if(!u)return e>s+p||o<s-p||n>f+p||a<f-p;if(u.index>c.index){var g=s-u.x-u.vx,y=f-u.y-u.vy,v=g*g+y*y;v<p*p&&(0===g&&(v+=(g=Xs(r))*g),0===y&&(v+=(y=Xs(r))*y),v=(p-(v=Math.sqrt(v)))/v*i,c.vx+=(g*=v)*(p=(d*=d)/(h+d)),c.vy+=(y*=v)*p,u.vx-=g*(p=1-p),u.vy-=y*p)}}}function u(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function c(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!=typeof t&&(t=Ws(null==t?1:+t)),a.initialize=function(t,n){e=t,r=n,c()},a.iterations=function(t){return arguments.length?(o=+t,a):o},a.strength=function(t){return arguments.length?(i=+t,a):i},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:Ws(+e),c(),a):t},a}function Qs(t){return t.index}function Ks(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function Js(t){var e,n,r,i,o,a,u=Qs,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},s=Ws(30),f=1;function l(r){for(var i=0,u=t.length;i<f;++i)for(var c,s,l,h,d,p,g,y=0;y<u;++y)s=(c=t[y]).source,h=(l=c.target).x+l.vx-s.x-s.vx||Xs(a),d=l.y+l.vy-s.y-s.vy||Xs(a),h*=p=((p=Math.sqrt(h*h+d*d))-n[y])/p*r*e[y],d*=p,l.vx-=h*(g=o[y]),l.vy-=d*g,s.vx+=h*(g=1-g),s.vy+=d*g}function h(){if(r){var a,c,s=r.length,f=t.length,l=new Map(r.map(((t,e)=>[u(t,e,r),t])));for(a=0,i=new Array(s);a<f;++a)(c=t[a]).index=a,"object"!=typeof c.source&&(c.source=Ks(l,c.source)),"object"!=typeof c.target&&(c.target=Ks(l,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(a=0,o=new Array(f);a<f;++a)c=t[a],o[a]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);e=new Array(f),d(),n=new Array(f),p()}}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}function p(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+s(t[e],e,t)}return null==t&&(t=[]),l.initialize=function(t,e){r=t,a=e,h()},l.links=function(e){return arguments.length?(t=e,h(),l):t},l.id=function(t){return arguments.length?(u=t,l):u},l.iterations=function(t){return arguments.length?(f=+t,l):f},l.strength=function(t){return arguments.length?(c="function"==typeof t?t:Ws(+t),d(),l):c},l.distance=function(t){return arguments.length?(s="function"==typeof t?t:Ws(+t),p(),l):s},l}Ys.copy=function(){var t,e,n=new Bs(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=Us(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=Us(e));return n},Ys.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return $s(this.cover(e,n),e,n,t)},Ys.addAll=function(t){var e,n,r,i,o=t.length,a=new Array(o),u=new Array(o),c=1/0,s=1/0,f=-1/0,l=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(a[n]=r,u[n]=i,r<c&&(c=r),r>f&&(f=r),i<s&&(s=i),i>l&&(l=i));if(c>f||s>l)return this;for(this.cover(c,s).cover(f,l),n=0;n<o;++n)$s(this,a[n],u[n],t[n]);return this},Ys.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var a,u,c=i-n||1,s=this._root;n>t||t>=i||r>e||e>=o;)switch(u=(e<r)<<1|t<n,(a=new Array(4))[u]=s,s=a,c*=2,u){case 0:i=n+c,o=r+c;break;case 1:n=i-c,o=r+c;break;case 2:i=n+c,r=o-c;break;case 3:n=i-c,r=o-c}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},Ys.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Ys.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Ys.find=function(t,e,n){var r,i,o,a,u,c,s,f=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new zs(g,f,l,h,d)),null==n?n=1/0:(f=t-n,l=e-n,h=t+n,d=e+n,n*=n);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)<f||(u=c.y1)<l))if(g.length){var y=(i+a)/2,v=(o+u)/2;p.push(new zs(g[3],y,v,a,u),new zs(g[2],i,v,y,u),new zs(g[1],y,o,a,v),new zs(g[0],i,o,y,v)),(s=(e>=v)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var m=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),_=m*m+b*b;if(_<n){var x=Math.sqrt(n=_);f=t-x,l=e-x,h=t+x,d=e+x,r=g.data}}return r},Ys.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,u,c,s,f,l,h,d=this._root,p=this._x0,g=this._y0,y=this._x1,v=this._y1;if(!d)return this;if(d.length)for(;;){if((s=o>=(u=(p+y)/2))?p=u:y=u,(f=a>=(c=(g+v)/2))?g=c:v=c,e=d,!(d=d[l=f<<1|s]))return this;if(!d.length)break;(e[l+1&3]||e[l+2&3]||e[l+3&3])&&(n=e,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[l]=i:delete e[l],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},Ys.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Ys.root=function(){return this._root},Ys.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Ys.visit=function(t){var e,n,r,i,o,a,u=[],c=this._root;for(c&&u.push(new zs(c,this._x0,this._y0,this._x1,this._y1));e=u.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,o=e.x1,a=e.y1)&&c.length){var s=(r+o)/2,f=(i+a)/2;(n=c[3])&&u.push(new zs(n,s,f,o,a)),(n=c[2])&&u.push(new zs(n,r,f,s,a)),(n=c[1])&&u.push(new zs(n,s,i,o,f)),(n=c[0])&&u.push(new zs(n,r,i,s,f))}return this},Ys.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new zs(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,a=e.x0,u=e.y0,c=e.x1,s=e.y1,f=(a+c)/2,l=(u+s)/2;(o=i[0])&&n.push(new zs(o,a,u,f,l)),(o=i[1])&&n.push(new zs(o,f,u,c,l)),(o=i[2])&&n.push(new zs(o,a,l,f,s)),(o=i[3])&&n.push(new zs(o,f,l,c,s))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Ys.x=function(t){return arguments.length?(this._x=t,this):this._x},Ys.y=function(t){return arguments.length?(this._y=t,this):this._y};const tf=1664525,ef=1013904223,nf=4294967296;function rf(t){return t.x}function of(t){return t.y}var af=10,uf=Math.PI*(3-Math.sqrt(5));function cf(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=new Map,c=gi(l),s=Ee("tick","end"),f=function(){let t=1;return()=>(t=(tf*t+ef)%nf)/nf}();function l(){h(),s.call("tick",e),n<r&&(c.stop(),s.call("end",e))}function h(r){var c,s,f=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(n+=(o-n)*i,u.forEach((function(t){t(n)})),c=0;c<f;++c)null==(s=t[c]).fx?s.x+=s.vx*=a:(s.x=s.fx,s.vx=0),null==s.fy?s.y+=s.vy*=a:(s.y=s.fy,s.vy=0);return e}function d(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=af*Math.sqrt(.5+n),o=n*uf;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function p(e){return e.initialize&&e.initialize(t,f),e}return null==t&&(t=[]),d(),e={tick:h,restart:function(){return c.restart(l),e},stop:function(){return c.stop(),e},nodes:function(n){return arguments.length?(t=n,d(),u.forEach(p),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(a=1-t,e):1-a},randomSource:function(t){return arguments.length?(f=t,u.forEach(p),e):f},force:function(t,n){return arguments.length>1?(null==n?u.delete(t):u.set(t,p(n)),e):u.get(t)},find:function(e,n,r){var i,o,a,u,c,s=0,f=t.length;for(null==r?r=1/0:r*=r,s=0;s<f;++s)(a=(i=e-(u=t[s]).x)*i+(o=n-u.y)*o)<r&&(c=u,r=a);return c},on:function(t,n){return arguments.length>1?(s.on(t,n),e):s.on(t)}}}function sf(){var t,e,n,r,i,o=Ws(-30),a=1,u=1/0,c=.81;function s(n){var i,o=t.length,a=Fs(t,rf,of).visitAfter(l);for(r=n,i=0;i<o;++i)e=t[i],a.visit(h)}function f(){if(t){var e,n,r=t.length;for(i=new Array(r),e=0;e<r;++e)n=t[e],i[n.index]=+o(n,e,t)}}function l(t){var e,n,r,o,a,u=0,c=0;if(t.length){for(r=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(u+=e.value,c+=n,r+=n*e.x,o+=n*e.y);t.x=r/c,t.y=o/c}else{(e=t).x=e.data.x,e.y=e.data.y;do{u+=i[e.data.index]}while(e=e.next)}t.value=u}function h(t,o,s,f){if(!t.value)return!0;var l=t.x-e.x,h=t.y-e.y,d=f-o,p=l*l+h*h;if(d*d/c<p)return p<u&&(0===l&&(p+=(l=Xs(n))*l),0===h&&(p+=(h=Xs(n))*h),p<a&&(p=Math.sqrt(a*p)),e.vx+=l*t.value*r/p,e.vy+=h*t.value*r/p),!0;if(!(t.length||p>=u)){(t.data!==e||t.next)&&(0===l&&(p+=(l=Xs(n))*l),0===h&&(p+=(h=Xs(n))*h),p<a&&(p=Math.sqrt(a*p)));do{t.data!==e&&(d=i[t.data.index]*r/p,e.vx+=l*d,e.vy+=h*d)}while(t=t.next)}}return s.initialize=function(e,r){t=e,n=r,f()},s.strength=function(t){return arguments.length?(o="function"==typeof t?t:Ws(+t),f(),s):o},s.distanceMin=function(t){return arguments.length?(a=t*t,s):Math.sqrt(a)},s.distanceMax=function(t){return arguments.length?(u=t*t,s):Math.sqrt(u)},s.theta=function(t){return arguments.length?(c=t*t,s):Math.sqrt(c)},s}function ff(t,e,n){var r,i,o,a=Ws(.1);function u(t){for(var a=0,u=r.length;a<u;++a){var c=r[a],s=c.x-e||1e-6,f=c.y-n||1e-6,l=Math.sqrt(s*s+f*f),h=(o[a]-l)*i[a]*t/l;c.vx+=s*h,c.vy+=f*h}}function c(){if(r){var e,n=r.length;for(i=new Array(n),o=new Array(n),e=0;e<n;++e)o[e]=+t(r[e],e,r),i[e]=isNaN(o[e])?0:+a(r[e],e,r)}}return"function"!=typeof t&&(t=Ws(+t)),null==e&&(e=0),null==n&&(n=0),u.initialize=function(t){r=t,c()},u.strength=function(t){return arguments.length?(a="function"==typeof t?t:Ws(+t),c(),u):a},u.radius=function(e){return arguments.length?(t="function"==typeof e?e:Ws(+e),c(),u):t},u.x=function(t){return arguments.length?(e=+t,u):e},u.y=function(t){return arguments.length?(n=+t,u):n},u}function lf(t){var e,n,r,i=Ws(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vx+=(r[o]-i.x)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=Ws(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:Ws(+t),a(),o):i},o.x=function(e){return arguments.length?(t="function"==typeof e?e:Ws(+e),a(),o):t},o}function hf(t){var e,n,r,i=Ws(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vy+=(r[o]-i.y)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=Ws(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:Ws(+t),a(),o):i},o.y=function(e){return arguments.length?(t="function"==typeof e?e:Ws(+e),a(),o):t},o}function df(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function pf(t){return(t=df(Math.abs(t)))?t[1]:NaN}var gf,yf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vf(t){if(!(e=yf.exec(t)))throw new Error("invalid format: "+t);var e;return new mf({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function mf(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function bf(t,e){var n=df(t,e);if(!n)return t+"";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")}vf.prototype=mf.prototype,mf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const _f={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>bf(100*t,e),r:bf,s:function(t,e){var n=df(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(gf=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+df(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function xf(t){return t}var wf,Mf,Tf,Af=Array.prototype.map,Sf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ef(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?xf:(e=Af.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?xf:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Af.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function l(t){var e=(t=vf(t)).fill,n=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(g=!0,m="g"):_f[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===h?o:/[%p]/.test(m)?c:"",x=_f[m],w=/[defgprs%]/.test(m);function M(t){var i,o,c,h=b,M=_;if("c"===m)M=x(t)+M,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:x(Math.abs(t),y),v&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),T&&0==+t&&"+"!==l&&(T=!1),h=(T?"("===l?l:s:"-"===l||"("===l?"":l)+h,M=("s"===m?Sf[8+gf/3]:"")+M+(T&&"("===l?")":""),w)for(i=-1,o=t.length;++i<o;)if(48>(c=t.charCodeAt(i))||c>57){M=(46===c?a+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var A=h.length+t.length+M.length,S=A<p?new Array(p-A+1).join(e):"";switch(g&&d&&(t=r(S+t,S.length?p-M.length:1/0),S=""),n){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,A=S.length>>1)+h+t+M+S.slice(A);break;default:t=S+h+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,e){var n=l(((t=vf(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(pf(e)/3))),i=Math.pow(10,-r),o=Sf[8+r/3];return function(t){return n(i*t)+o}}}}function kf(t){return wf=Ef(t),Mf=wf.format,Tf=wf.formatPrefix,wf}function Nf(t){return Math.max(0,-pf(Math.abs(t)))}function Cf(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pf(e)/3)))-pf(Math.abs(t)))}function Df(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,pf(e)-pf(t))+1}kf({thousands:",",grouping:[3],currency:["$",""]});var Pf=1e-6,jf=1e-12,qf=Math.PI,Lf=qf/2,Of=qf/4,Rf=2*qf,$f=180/qf,zf=qf/180,If=Math.abs,Hf=Math.atan,Ff=Math.atan2,Bf=Math.cos,Uf=Math.ceil,Yf=Math.exp,Wf=(Math.floor,Math.hypot),Xf=Math.log,Vf=Math.pow,Gf=Math.sin,Zf=Math.sign||function(t){return t>0?1:t<0?-1:0},Qf=Math.sqrt,Kf=Math.tan;function Jf(t){return t>1?0:t<-1?qf:Math.acos(t)}function tl(t){return t>1?Lf:t<-1?-Lf:Math.asin(t)}function el(t){return(t=Gf(t/2))*t}function nl(){}function rl(t,e){t&&ol.hasOwnProperty(t.type)&&ol[t.type](t,e)}var il={Feature:function(t,e){rl(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)rl(n[r].geometry,e)}},ol={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){al(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)al(n[r],e,0)},Polygon:function(t,e){ul(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)ul(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)rl(n[r],e)}};function al(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function ul(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)al(t[n],e,1);e.polygonEnd()}function cl(t,e){t&&il.hasOwnProperty(t.type)?il[t.type](t,e):rl(t,e)}var sl,fl,ll,hl,dl,pl,gl,yl,vl,ml,bl,_l,xl,wl,Ml,Tl,Al=new C,Sl=new C,El={point:nl,lineStart:nl,lineEnd:nl,polygonStart:function(){Al=new C,El.lineStart=kl,El.lineEnd=Nl},polygonEnd:function(){var t=+Al;Sl.add(t<0?Rf+t:t),this.lineStart=this.lineEnd=this.point=nl},sphere:function(){Sl.add(Rf)}};function kl(){El.point=Cl}function Nl(){Dl(sl,fl)}function Cl(t,e){El.point=Dl,sl=t,fl=e,ll=t*=zf,hl=Bf(e=(e*=zf)/2+Of),dl=Gf(e)}function Dl(t,e){var n=(t*=zf)-ll,r=n>=0?1:-1,i=r*n,o=Bf(e=(e*=zf)/2+Of),a=Gf(e),u=dl*a,c=hl*o+u*Bf(i),s=u*r*Gf(i);Al.add(Ff(s,c)),ll=t,hl=o,dl=a}function Pl(t){return Sl=new C,cl(t,El),2*Sl}function jl(t){return[Ff(t[1],t[0]),tl(t[2])]}function ql(t){var e=t[0],n=t[1],r=Bf(n);return[r*Bf(e),r*Gf(e),Gf(n)]}function Ll(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Ol(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Rl(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function $l(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function zl(t){var e=Qf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var Il,Hl,Fl,Bl,Ul,Yl,Wl,Xl,Vl,Gl,Zl,Ql,Kl,Jl,th,eh,nh={point:rh,lineStart:oh,lineEnd:ah,polygonStart:function(){nh.point=uh,nh.lineStart=ch,nh.lineEnd=sh,wl=new C,El.polygonStart()},polygonEnd:function(){El.polygonEnd(),nh.point=rh,nh.lineStart=oh,nh.lineEnd=ah,Al<0?(pl=-(yl=180),gl=-(vl=90)):wl>Pf?vl=90:wl<-Pf&&(gl=-90),Tl[0]=pl,Tl[1]=yl},sphere:function(){pl=-(yl=180),gl=-(vl=90)}};function rh(t,e){Ml.push(Tl=[pl=t,yl=t]),e<gl&&(gl=e),e>vl&&(vl=e)}function ih(t,e){var n=ql([t*zf,e*zf]);if(xl){var r=Ol(xl,n),i=Ol([r[1],-r[0],0],r);zl(i),i=jl(i);var o,a=t-ml,u=a>0?1:-1,c=i[0]*$f*u,s=If(a)>180;s^(u*ml<c&&c<u*t)?(o=i[1]*$f)>vl&&(vl=o):s^(u*ml<(c=(c+360)%360-180)&&c<u*t)?(o=-i[1]*$f)<gl&&(gl=o):(e<gl&&(gl=e),e>vl&&(vl=e)),s?t<ml?fh(pl,t)>fh(pl,yl)&&(yl=t):fh(t,yl)>fh(pl,yl)&&(pl=t):yl>=pl?(t<pl&&(pl=t),t>yl&&(yl=t)):t>ml?fh(pl,t)>fh(pl,yl)&&(yl=t):fh(t,yl)>fh(pl,yl)&&(pl=t)}else Ml.push(Tl=[pl=t,yl=t]);e<gl&&(gl=e),e>vl&&(vl=e),xl=n,ml=t}function oh(){nh.point=ih}function ah(){Tl[0]=pl,Tl[1]=yl,nh.point=rh,xl=null}function uh(t,e){if(xl){var n=t-ml;wl.add(If(n)>180?n+(n>0?360:-360):n)}else bl=t,_l=e;El.point(t,e),ih(t,e)}function ch(){El.lineStart()}function sh(){uh(bl,_l),El.lineEnd(),If(wl)>Pf&&(pl=-(yl=180)),Tl[0]=pl,Tl[1]=yl,xl=null}function fh(t,e){return(e-=t)<0?e+360:e}function lh(t,e){return t[0]-e[0]}function hh(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function dh(t){var e,n,r,i,o,a,u;if(vl=yl=-(pl=gl=1/0),Ml=[],cl(t,nh),n=Ml.length){for(Ml.sort(lh),e=1,o=[r=Ml[0]];e<n;++e)hh(r,(i=Ml[e])[0])||hh(r,i[1])?(fh(r[0],i[1])>fh(r[0],r[1])&&(r[1]=i[1]),fh(i[0],r[1])>fh(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(u=fh(r[1],i[0]))>a&&(a=u,pl=i[0],yl=r[1])}return Ml=Tl=null,pl===1/0||gl===1/0?[[NaN,NaN],[NaN,NaN]]:[[pl,gl],[yl,vl]]}var ph={sphere:nl,point:gh,lineStart:vh,lineEnd:_h,polygonStart:function(){ph.lineStart=xh,ph.lineEnd=wh},polygonEnd:function(){ph.lineStart=vh,ph.lineEnd=_h}};function gh(t,e){t*=zf;var n=Bf(e*=zf);yh(n*Bf(t),n*Gf(t),Gf(e))}function yh(t,e,n){++Il,Fl+=(t-Fl)/Il,Bl+=(e-Bl)/Il,Ul+=(n-Ul)/Il}function vh(){ph.point=mh}function mh(t,e){t*=zf;var n=Bf(e*=zf);Jl=n*Bf(t),th=n*Gf(t),eh=Gf(e),ph.point=bh,yh(Jl,th,eh)}function bh(t,e){t*=zf;var n=Bf(e*=zf),r=n*Bf(t),i=n*Gf(t),o=Gf(e),a=Ff(Qf((a=th*o-eh*i)*a+(a=eh*r-Jl*o)*a+(a=Jl*i-th*r)*a),Jl*r+th*i+eh*o);Hl+=a,Yl+=a*(Jl+(Jl=r)),Wl+=a*(th+(th=i)),Xl+=a*(eh+(eh=o)),yh(Jl,th,eh)}function _h(){ph.point=gh}function xh(){ph.point=Mh}function wh(){Th(Ql,Kl),ph.point=gh}function Mh(t,e){Ql=t,Kl=e,t*=zf,e*=zf,ph.point=Th;var n=Bf(e);Jl=n*Bf(t),th=n*Gf(t),eh=Gf(e),yh(Jl,th,eh)}function Th(t,e){t*=zf;var n=Bf(e*=zf),r=n*Bf(t),i=n*Gf(t),o=Gf(e),a=th*o-eh*i,u=eh*r-Jl*o,c=Jl*i-th*r,s=Wf(a,u,c),f=tl(s),l=s&&-f/s;Vl.add(l*a),Gl.add(l*u),Zl.add(l*c),Hl+=f,Yl+=f*(Jl+(Jl=r)),Wl+=f*(th+(th=i)),Xl+=f*(eh+(eh=o)),yh(Jl,th,eh)}function Ah(t){Il=Hl=Fl=Bl=Ul=Yl=Wl=Xl=0,Vl=new C,Gl=new C,Zl=new C,cl(t,ph);var e=+Vl,n=+Gl,r=+Zl,i=Wf(e,n,r);return i<jf&&(e=Yl,n=Wl,r=Xl,Hl<Pf&&(e=Fl,n=Bl,r=Ul),(i=Wf(e,n,r))<jf)?[NaN,NaN]:[Ff(n,e)*$f,tl(r/i)*$f]}function Sh(t){return function(){return t}}function Eh(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function kh(t,e){return If(t)>qf&&(t-=Math.round(t/Rf)*Rf),[t,e]}function Nh(t,e,n){return(t%=Rf)?e||n?Eh(Dh(t),Ph(e,n)):Dh(t):e||n?Ph(e,n):kh}function Ch(t){return function(e,n){return If(e+=t)>qf&&(e-=Math.round(e/Rf)*Rf),[e,n]}}function Dh(t){var e=Ch(t);return e.invert=Ch(-t),e}function Ph(t,e){var n=Bf(t),r=Gf(t),i=Bf(e),o=Gf(e);function a(t,e){var a=Bf(e),u=Bf(t)*a,c=Gf(t)*a,s=Gf(e),f=s*n+u*r;return[Ff(c*i-f*o,u*n-s*r),tl(f*i+c*o)]}return a.invert=function(t,e){var a=Bf(e),u=Bf(t)*a,c=Gf(t)*a,s=Gf(e),f=s*i-c*o;return[Ff(c*i+s*o,u*n+f*r),tl(f*n-u*r)]},a}function jh(t){function e(e){return(e=t(e[0]*zf,e[1]*zf))[0]*=$f,e[1]*=$f,e}return t=Nh(t[0]*zf,t[1]*zf,t.length>2?t[2]*zf:0),e.invert=function(e){return(e=t.invert(e[0]*zf,e[1]*zf))[0]*=$f,e[1]*=$f,e},e}function qh(t,e,n,r,i,o){if(n){var a=Bf(e),u=Gf(e),c=r*n;null==i?(i=e+r*Rf,o=e-c/2):(i=Lh(a,i),o=Lh(a,o),(r>0?i<o:i>o)&&(i+=r*Rf));for(var s,f=i;r>0?f>o:f<o;f-=c)s=jl([a,-u*Bf(f),-u*Gf(f)]),t.point(s[0],s[1])}}function Lh(t,e){(e=ql(e))[0]-=t,zl(e);var n=Jf(-e[1]);return((-e[2]<0?-n:n)+Rf-Pf)%Rf}function Oh(){var t,e,n=Sh([0,0]),r=Sh(90),i=Sh(6),o={point:function(n,r){t.push(n=e(n,r)),n[0]*=$f,n[1]*=$f}};function a(){var a=n.apply(this,arguments),u=r.apply(this,arguments)*zf,c=i.apply(this,arguments)*zf;return t=[],e=Nh(-a[0]*zf,-a[1]*zf,0).invert,qh(o,u,c,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return a.center=function(t){return arguments.length?(n="function"==typeof t?t:Sh([+t[0],+t[1]]),a):n},a.radius=function(t){return arguments.length?(r="function"==typeof t?t:Sh(+t),a):r},a.precision=function(t){return arguments.length?(i="function"==typeof t?t:Sh(+t),a):i},a}function Rh(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:nl,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function $h(t,e){return If(t[0]-e[0])<Pf&&If(t[1]-e[1])<Pf}function zh(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Ih(t,e,n,r,i){var o,a,u=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if($h(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}a[0]+=2*Pf}u.push(n=new zh(r,t,null,!0)),c.push(n.o=new zh(r,null,n,!1)),u.push(n=new zh(a,t,null,!1)),c.push(n.o=new zh(a,null,n,!0))}})),u.length){for(c.sort(e),Hh(u),Hh(c),o=0,a=c.length;o<a;++o)c[o].e=n=!n;for(var s,f,l=u[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=s.length;o<a;++o)i.point((f=s[o])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(s=h.p.z,o=s.length-1;o>=0;--o)i.point((f=s[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function Hh(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function Fh(t){return If(t[0])<=qf?t[0]:Zf(t[0])*((If(t[0])+qf)%Rf-qf)}function Bh(t,e){var n=Fh(e),r=e[1],i=Gf(r),o=[Gf(n),-Bf(n),0],a=0,u=0,c=new C;1===i?r=Lf+Pf:-1===i&&(r=-Lf-Pf);for(var s=0,f=t.length;s<f;++s)if(h=(l=t[s]).length)for(var l,h,d=l[h-1],p=Fh(d),g=d[1]/2+Of,y=Gf(g),v=Bf(g),m=0;m<h;++m,p=_,y=w,v=M,d=b){var b=l[m],_=Fh(b),x=b[1]/2+Of,w=Gf(x),M=Bf(x),T=_-p,A=T>=0?1:-1,S=A*T,E=S>qf,k=y*w;if(c.add(Ff(k*A*Gf(S),v*M+k*Bf(S))),a+=E?T+A*Rf:T,E^p>=n^_>=n){var N=Ol(ql(d),ql(b));zl(N);var D=Ol(o,N);zl(D);var P=(E^T>=0?-1:1)*tl(D[2]);(r>P||r===P&&(N[0]||N[1]))&&(u+=E^T>=0?1:-1)}}return(a<-Pf||a<Pf&&c<-jf)^1&u}function Uh(t,e,n,r){return function(i){var o,a,u,c=e(i),s=Rh(),f=e(s),l=!1,h={point:d,lineStart:g,lineEnd:y,polygonStart:function(){h.point=v,h.lineStart=m,h.lineEnd=b,a=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=g,h.lineEnd=y,a=Ct(a);var t=Bh(o,r);a.length?(l||(i.polygonStart(),l=!0),Ih(a,Wh,t,n,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(e,n){t(e,n)&&i.point(e,n)}function p(t,e){c.point(t,e)}function g(){h.point=p,c.lineStart()}function y(){h.point=d,c.lineEnd()}function v(t,e){u.push([t,e]),f.point(t,e)}function m(){f.lineStart(),u=[]}function b(){v(u[0][0],u[0][1]),f.lineEnd();var t,e,n,r,c=f.clean(),h=s.result(),d=h.length;if(u.pop(),o.push(u),u=null,d)if(1&c){if((e=(n=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(Yh))}return h}}function Yh(t){return t.length>1}function Wh(t,e){return((t=t.x)[0]<0?t[1]-Lf-Pf:Lf-t[1])-((e=e.x)[0]<0?e[1]-Lf-Pf:Lf-e[1])}kh.invert=kh;const Xh=Uh((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?qf:-qf,c=If(o-n);If(c-qf)<Pf?(t.point(n,r=(r+a)/2>0?Lf:-Lf),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):i!==u&&c>=qf&&(If(n-i)<Pf&&(n-=i*Pf),If(o-u)<Pf&&(o-=u*Pf),r=function(t,e,n,r){var i,o,a=Gf(t-n);return If(a)>Pf?Hf((Gf(e)*(o=Bf(r))*Gf(n)-Gf(r)*(i=Bf(e))*Gf(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=a),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Lf,r.point(-qf,i),r.point(0,i),r.point(qf,i),r.point(qf,0),r.point(qf,-i),r.point(0,-i),r.point(-qf,-i),r.point(-qf,0),r.point(-qf,i);else if(If(t[0]-e[0])>Pf){var o=t[0]<e[0]?qf:-qf;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}),[-qf,-Lf]);function Vh(t){var e=Bf(t),n=6*zf,r=e>0,i=If(e)>Pf;function o(t,n){return Bf(t)*Bf(n)>e}function a(t,n,r){var i=[1,0,0],o=Ol(ql(t),ql(n)),a=Ll(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var s=e*a/c,f=-e*u/c,l=Ol(i,o),h=$l(i,s);Rl(h,$l(o,f));var d=l,p=Ll(h,d),g=Ll(d,d),y=p*p-g*(Ll(h,h)-1);if(!(y<0)){var v=Qf(y),m=$l(d,(-p-v)/g);if(Rl(m,h),m=jl(m),!r)return m;var b,_=t[0],x=n[0],w=t[1],M=n[1];x<_&&(b=_,_=x,x=b);var T=x-_,A=If(T-qf)<Pf;if(!A&&M<w&&(b=w,w=M,M=b),A||T<Pf?A?w+M>0^m[1]<(If(m[0]-_)<Pf?w:M):w<=m[1]&&m[1]<=M:T>qf^(_<=m[0]&&m[0]<=x)){var S=$l(d,(-p+v)/g);return Rl(S,h),[m,jl(S)]}}}function u(e,n){var i=r?t:qf-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return Uh(o,(function(t){var e,n,c,s,f;return{lineStart:function(){s=c=!1,f=1},point:function(l,h){var d,p=[l,h],g=o(l,h),y=r?g?0:u(l,h):g?u(l+(l<0?qf:-qf),h):0;if(!e&&(s=c=g)&&t.lineStart(),g!==c&&(!(d=a(e,p))||$h(e,d)||$h(p,d))&&(p[2]=1),g!==c)f=0,g?(t.lineStart(),d=a(p,e),t.point(d[0],d[1])):(d=a(e,p),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&r^g){var v;y&n||!(v=a(p,e,!0))||(f=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1],3)))}!g||e&&$h(e,p)||t.point(p[0],p[1]),e=p,c=g,n=y},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return f|(s&&c)<<1}}}),(function(e,r,i,o){qh(o,t,n,i,e,r)}),r?[0,-t]:[-qf,t-qf])}var Gh,Zh,Qh,Kh,Jh=1e9,td=-Jh;function ed(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,u,s){var f=0,l=0;if(null==i||(f=a(i,u))!==(l=a(o,u))||c(i,o)<0^u>0)do{s.point(0===f||3===f?t:n,f>1?r:e)}while((f=(f+u+4)%4)!==l);else s.point(o[0],o[1])}function a(r,i){return If(r[0]-t)<Pf?i>0?0:3:If(r[0]-n)<Pf?i>0?2:1:If(r[1]-e)<Pf?i>0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var c,s,f,l,h,d,p,g,y,v,m,b=a,_=Rh(),x={point:w,lineStart:function(){x.point=M,s&&s.push(f=[]),v=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(M(l,h),d&&y&&_.rejoin(),c.push(_.result())),x.point=w,y&&b.lineEnd()},polygonStart:function(){b=_,c=[],s=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=s.length;n<i;++n)for(var o,a,u=s[n],c=1,f=u.length,l=u[0],h=l[0],d=l[1];c<f;++c)o=h,a=d,h=(l=u[c])[0],d=l[1],a<=r?d>r&&(h-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=m&&e,i=(c=Ct(c)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&Ih(c,u,e,o,a),a.polygonEnd()),b=a,c=s=f=null}};function w(t,e){i(t,e)&&b.point(t,e)}function M(o,a){var u=i(o,a);if(s&&f.push([o,a]),v)l=o,h=a,d=u,v=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&y)b.point(o,a);else{var c=[p=Math.max(td,Math.min(Jh,p)),g=Math.max(td,Math.min(Jh,g))],_=[o=Math.max(td,Math.min(Jh,o)),a=Math.max(td,Math.min(Jh,a))];!function(t,e,n,r,i,o){var a,u=t[0],c=t[1],s=0,f=1,l=e[0]-u,h=e[1]-c;if(a=n-u,l||!(a>0)){if(a/=l,l<0){if(a<s)return;a<f&&(f=a)}else if(l>0){if(a>f)return;a>s&&(s=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(a>f)return;a>s&&(s=a)}else if(l>0){if(a<s)return;a<f&&(f=a)}if(a=r-c,h||!(a>0)){if(a/=h,h<0){if(a<s)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>s&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>s&&(s=a)}else if(h>0){if(a<s)return;a<f&&(f=a)}return s>0&&(t[0]=u+s*l,t[1]=c+s*h),f<1&&(e[0]=u+f*l,e[1]=c+f*h),!0}}}}}(c,_,t,e,n,r)?u&&(b.lineStart(),b.point(o,a),m=!1):(y||(b.lineStart(),b.point(c[0],c[1])),b.point(_[0],_[1]),u||b.lineEnd(),m=!1)}p=o,g=a,y=u}return x}}function nd(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=ed(r,i,o,a)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=e=null,n):[[r,i],[o,a]]}}}var rd={sphere:nl,point:nl,lineStart:function(){rd.point=od,rd.lineEnd=id},lineEnd:nl,polygonStart:nl,polygonEnd:nl};function id(){rd.point=rd.lineEnd=nl}function od(t,e){Zh=t*=zf,Qh=Gf(e*=zf),Kh=Bf(e),rd.point=ad}function ad(t,e){t*=zf;var n=Gf(e*=zf),r=Bf(e),i=If(t-Zh),o=Bf(i),a=r*Gf(i),u=Kh*n-Qh*r*o,c=Qh*n+Kh*r*o;Gh.add(Ff(Qf(a*a+u*u),c)),Zh=t,Qh=n,Kh=r}function ud(t){return Gh=new C,cl(t,rd),+Gh}var cd=[null,null],sd={type:"LineString",coordinates:cd};function fd(t,e){return cd[0]=t,cd[1]=e,ud(sd)}var ld={Feature:function(t,e){return dd(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(dd(n[r].geometry,e))return!0;return!1}},hd={Sphere:function(){return!0},Point:function(t,e){return pd(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(pd(n[r],e))return!0;return!1},LineString:function(t,e){return gd(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(gd(n[r],e))return!0;return!1},Polygon:function(t,e){return yd(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(yd(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(dd(n[r],e))return!0;return!1}};function dd(t,e){return!(!t||!hd.hasOwnProperty(t.type))&&hd[t.type](t,e)}function pd(t,e){return 0===fd(t,e)}function gd(t,e){for(var n,r,i,o=0,a=t.length;o<a;o++){if(0===(r=fd(t[o],e)))return!0;if(o>0&&(i=fd(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<jf*i)return!0;n=r}return!1}function yd(t,e){return!!Bh(t.map(vd),md(e))}function vd(t){return(t=t.map(md)).pop(),t}function md(t){return[t[0]*zf,t[1]*zf]}function bd(t,e){return(t&&ld.hasOwnProperty(t.type)?ld[t.type]:dd)(t,e)}function _d(t,e,n){var r=qt(t,e-Pf,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function xd(t,e,n){var r=qt(t,e-Pf,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function wd(){var t,e,n,r,i,o,a,u,c,s,f,l,h=10,d=h,p=90,g=360,y=2.5;function v(){return{type:"MultiLineString",coordinates:m()}}function m(){return qt(Uf(r/p)*p,n,p).map(f).concat(qt(Uf(u/g)*g,a,g).map(l)).concat(qt(Uf(e/h)*h,t,h).filter((function(t){return If(t%p)>Pf})).map(c)).concat(qt(Uf(o/d)*d,i,d).filter((function(t){return If(t%g)>Pf})).map(s))}return v.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},v.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(l(a).slice(1),f(n).reverse().slice(1),l(u).reverse().slice(1))]}},v.extent=function(t){return arguments.length?v.extentMajor(t).extentMinor(t):v.extentMinor()},v.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),u>a&&(t=u,u=a,a=t),v.precision(y)):[[r,u],[n,a]]},v.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),v.precision(y)):[[e,o],[t,i]]},v.step=function(t){return arguments.length?v.stepMajor(t).stepMinor(t):v.stepMinor()},v.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],v):[p,g]},v.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],v):[h,d]},v.precision=function(h){return arguments.length?(y=+h,c=_d(o,i,90),s=xd(e,t,y),f=_d(u,a,90),l=xd(r,n,y),v):y},v.extentMajor([[-180,-90+Pf],[180,90-Pf]]).extentMinor([[-180,-80-Pf],[180,80+Pf]])}function Md(){return wd()()}function Td(t,e){var n=t[0]*zf,r=t[1]*zf,i=e[0]*zf,o=e[1]*zf,a=Bf(r),u=Gf(r),c=Bf(o),s=Gf(o),f=a*Bf(n),l=a*Gf(n),h=c*Bf(i),d=c*Gf(i),p=2*tl(Qf(el(o-r)+a*c*el(i-n))),g=Gf(p),y=p?function(t){var e=Gf(t*=p)/g,n=Gf(p-t)/g,r=n*f+e*h,i=n*l+e*d,o=n*u+e*s;return[Ff(i,r)*$f,Ff(o,Qf(r*r+i*i))*$f]}:function(){return[n*$f,r*$f]};return y.distance=p,y}const Ad=t=>t;var Sd,Ed,kd,Nd,Cd=new C,Dd=new C,Pd={point:nl,lineStart:nl,lineEnd:nl,polygonStart:function(){Pd.lineStart=jd,Pd.lineEnd=Od},polygonEnd:function(){Pd.lineStart=Pd.lineEnd=Pd.point=nl,Cd.add(If(Dd)),Dd=new C},result:function(){var t=Cd/2;return Cd=new C,t}};function jd(){Pd.point=qd}function qd(t,e){Pd.point=Ld,Sd=kd=t,Ed=Nd=e}function Ld(t,e){Dd.add(Nd*t-kd*e),kd=t,Nd=e}function Od(){Ld(Sd,Ed)}const Rd=Pd;var $d=1/0,zd=$d,Id=-$d,Hd=Id,Fd={point:function(t,e){t<$d&&($d=t),t>Id&&(Id=t),e<zd&&(zd=e),e>Hd&&(Hd=e)},lineStart:nl,lineEnd:nl,polygonStart:nl,polygonEnd:nl,result:function(){var t=[[$d,zd],[Id,Hd]];return Id=Hd=-(zd=$d=1/0),t}};const Bd=Fd;var Ud,Yd,Wd,Xd,Vd=0,Gd=0,Zd=0,Qd=0,Kd=0,Jd=0,tp=0,ep=0,np=0,rp={point:ip,lineStart:op,lineEnd:cp,polygonStart:function(){rp.lineStart=sp,rp.lineEnd=fp},polygonEnd:function(){rp.point=ip,rp.lineStart=op,rp.lineEnd=cp},result:function(){var t=np?[tp/np,ep/np]:Jd?[Qd/Jd,Kd/Jd]:Zd?[Vd/Zd,Gd/Zd]:[NaN,NaN];return Vd=Gd=Zd=Qd=Kd=Jd=tp=ep=np=0,t}};function ip(t,e){Vd+=t,Gd+=e,++Zd}function op(){rp.point=ap}function ap(t,e){rp.point=up,ip(Wd=t,Xd=e)}function up(t,e){var n=t-Wd,r=e-Xd,i=Qf(n*n+r*r);Qd+=i*(Wd+t)/2,Kd+=i*(Xd+e)/2,Jd+=i,ip(Wd=t,Xd=e)}function cp(){rp.point=ip}function sp(){rp.point=lp}function fp(){hp(Ud,Yd)}function lp(t,e){rp.point=hp,ip(Ud=Wd=t,Yd=Xd=e)}function hp(t,e){var n=t-Wd,r=e-Xd,i=Qf(n*n+r*r);Qd+=i*(Wd+t)/2,Kd+=i*(Xd+e)/2,Jd+=i,tp+=(i=Xd*t-Wd*e)*(Wd+t),ep+=i*(Xd+e),np+=3*i,ip(Wd=t,Xd=e)}const dp=rp;function pp(t){this._context=t}pp.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,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(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Rf)}},result:nl};var gp,yp,vp,mp,bp,_p=new C,xp={point:nl,lineStart:function(){xp.point=wp},lineEnd:function(){gp&&Mp(yp,vp),xp.point=nl},polygonStart:function(){gp=!0},polygonEnd:function(){gp=null},result:function(){var t=+_p;return _p=new C,t}};function wp(t,e){xp.point=Mp,yp=mp=t,vp=bp=e}function Mp(t,e){mp-=t,bp-=e,_p.add(Qf(mp*mp+bp*bp)),mp=t,bp=e}const Tp=xp;let Ap,Sp,Ep,kp;class Np{constructor(t){this._append=null==t?Cp:function(t){const e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return Cp;if(e!==Ap){const t=10**e;Ap=e,Sp=function(e){let n=1;this._+=e[0];for(const r=e.length;n<r;++n)this._+=Math.round(arguments[n]*t)/t+e[n]}}return Sp}(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(t,e){switch(this._point){case 0:this._append`M${t},${e}`,this._point=1;break;case 1:this._append`L${t},${e}`;break;default:if(this._append`M${t},${e}`,this._radius!==Ep||this._append!==Sp){const t=this._radius,e=this._;this._="",this._append`m0,${t}a${t},${t} 0 1,1 0,${-2*t}a${t},${t} 0 1,1 0,${2*t}z`,Ep=t,Sp=this._append,kp=this._,this._=e}this._+=kp}}result(){const t=this._;return this._="",t.length?t:null}}function Cp(t){let e=1;this._+=t[0];for(const n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Dp(t,e){let n,r,i=3,o=4.5;function a(t){return t&&("function"==typeof o&&r.pointRadius(+o.apply(this,arguments)),cl(t,n(r))),r.result()}return a.area=function(t){return cl(t,n(Rd)),Rd.result()},a.measure=function(t){return cl(t,n(Tp)),Tp.result()},a.bounds=function(t){return cl(t,n(Bd)),Bd.result()},a.centroid=function(t){return cl(t,n(dp)),dp.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,Ad):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new Np(i)):new pp(e=t),"function"!=typeof o&&r.pointRadius(o),a):e},a.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(r.pointRadius(+t),+t),a):o},a.digits=function(t){if(!arguments.length)return i;if(null==t)i=null;else{const e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);i=e}return null===e&&(r=new Np(i)),a},a.projection(t).digits(i).context(e)}function Pp(t){return{stream:jp(t)}}function jp(t){return function(e){var n=new qp;for(var r in t)n[r]=t[r];return n.stream=e,n}}function qp(){}function Lp(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),cl(n,t.stream(Bd)),e(Bd.result()),null!=r&&t.clipExtent(r),t}function Op(t,e,n){return Lp(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,u])}),n)}function Rp(t,e,n){return Op(t,[[0,0],e],n)}function $p(t,e,n){return Lp(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function zp(t,e,n){return Lp(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}qp.prototype={constructor:qp,point:function(t,e){this.stream.point(t,e)},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 Ip=16,Hp=Bf(30*zf);function Fp(t,e){return+e?function(t,e){function n(r,i,o,a,u,c,s,f,l,h,d,p,g,y){var v=s-r,m=f-i,b=v*v+m*m;if(b>4*e&&g--){var _=a+h,x=u+d,w=c+p,M=Qf(_*_+x*x+w*w),T=tl(w/=M),A=If(If(w)-1)<Pf||If(o-l)<Pf?(o+l)/2:Ff(x,_),S=t(A,T),E=S[0],k=S[1],N=E-r,C=k-i,D=m*N-v*C;(D*D/b>e||If((v*N+m*C)/b-.5)>.3||a*h+u*d+c*p<Hp)&&(n(r,i,o,a,u,c,E,k,A,_/=M,x/=M,w,g,y),y.point(E,k),n(E,k,A,_,x,w,s,f,l,h,d,p,g,y))}}return function(e){var r,i,o,a,u,c,s,f,l,h,d,p,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=_},polygonEnd:function(){e.polygonEnd(),g.lineStart=v}};function y(n,r){n=t(n,r),e.point(n[0],n[1])}function v(){f=NaN,g.point=m,e.lineStart()}function m(r,i){var o=ql([r,i]),a=t(r,i);n(f,l,s,h,d,p,f=a[0],l=a[1],s=r,h=o[0],d=o[1],p=o[2],Ip,e),e.point(f,l)}function b(){g.point=y,e.lineEnd()}function _(){v(),g.point=x,g.lineEnd=w}function x(t,e){m(r=t,e),i=f,o=l,a=h,u=d,c=p,g.point=m}function w(){n(f,l,s,h,d,p,i,o,r,a,u,c,Ip,e),g.lineEnd=b,b()}return g}}(t,e):function(t){return jp({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var Bp=jp({point:function(t,e){this.stream.point(t*zf,e*zf)}});function Up(t,e,n,r,i,o){if(!o)return function(t,e,n,r,i){function o(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return o.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},o}(t,e,n,r,i);var a=Bf(o),u=Gf(o),c=a*t,s=u*t,f=a/t,l=u/t,h=(u*n-a*e)/t,d=(u*e+a*n)/t;function p(t,o){return[c*(t*=r)-s*(o*=i)+e,n-s*t-c*o]}return p.invert=function(t,e){return[r*(f*t-l*e+h),i*(d-l*t-f*e)]},p}function Yp(t){return Wp((function(){return t}))()}function Wp(t){var e,n,r,i,o,a,u,c,s,f,l=150,h=480,d=250,p=0,g=0,y=0,v=0,m=0,b=0,_=1,x=1,w=null,M=Xh,T=null,A=Ad,S=.5;function E(t){return c(t[0]*zf,t[1]*zf)}function k(t){return(t=c.invert(t[0],t[1]))&&[t[0]*$f,t[1]*$f]}function N(){var t=Up(l,0,0,_,x,b).apply(null,e(p,g)),r=Up(l,h-t[0],d-t[1],_,x,b);return n=Nh(y,v,m),u=Eh(e,r),c=Eh(n,u),a=Fp(u,S),C()}function C(){return s=f=null,E}return E.stream=function(t){return s&&f===t?s:s=Bp(function(t){return jp({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(M(a(A(f=t)))))},E.preclip=function(t){return arguments.length?(M=t,w=void 0,C()):M},E.postclip=function(t){return arguments.length?(A=t,T=r=i=o=null,C()):A},E.clipAngle=function(t){return arguments.length?(M=+t?Vh(w=t*zf):(w=null,Xh),C()):w*$f},E.clipExtent=function(t){return arguments.length?(A=null==t?(T=r=i=o=null,Ad):ed(T=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),C()):null==T?null:[[T,r],[i,o]]},E.scale=function(t){return arguments.length?(l=+t,N()):l},E.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],N()):[h,d]},E.center=function(t){return arguments.length?(p=t[0]%360*zf,g=t[1]%360*zf,N()):[p*$f,g*$f]},E.rotate=function(t){return arguments.length?(y=t[0]%360*zf,v=t[1]%360*zf,m=t.length>2?t[2]%360*zf:0,N()):[y*$f,v*$f,m*$f]},E.angle=function(t){return arguments.length?(b=t%360*zf,N()):b*$f},E.reflectX=function(t){return arguments.length?(_=t?-1:1,N()):_<0},E.reflectY=function(t){return arguments.length?(x=t?-1:1,N()):x<0},E.precision=function(t){return arguments.length?(a=Fp(u,S=t*t),C()):Qf(S)},E.fitExtent=function(t,e){return Op(E,t,e)},E.fitSize=function(t,e){return Rp(E,t,e)},E.fitWidth=function(t,e){return $p(E,t,e)},E.fitHeight=function(t,e){return zp(E,t,e)},function(){return e=t.apply(this,arguments),E.invert=e.invert&&k,N()}}function Xp(t){var e=0,n=qf/3,r=Wp(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*zf,n=t[1]*zf):[e*$f,n*$f]},i}function Vp(t,e){var n=Gf(t),r=(n+Gf(e))/2;if(If(r)<Pf)return function(t){var e=Bf(t);function n(t,n){return[t*e,Gf(n)/e]}return n.invert=function(t,n){return[t/e,tl(n*e)]},n}(t);var i=1+n*(2*r-n),o=Qf(i)/r;function a(t,e){var n=Qf(i-2*r*Gf(e))/r;return[n*Gf(t*=r),o-n*Bf(t)]}return a.invert=function(t,e){var n=o-e,a=Ff(t,If(n))*Zf(n);return n*r<0&&(a-=qf*Zf(t)*Zf(n)),[a/r,tl((i-(t*t+n*n)*r*r)/(2*r))]},a}function Gp(){return Xp(Vp).scale(155.424).center([0,33.6442])}function Zp(){return Gp().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Qp(){var t,e,n,r,i,o,a=Zp(),u=Gp().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Gp().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,e){o=[t,e]}};function f(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function l(){return t=e=null,f}return f.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},f.stream=function(n){return t&&e===n?t:(r=[a.stream(e=n),u.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},f.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),c.precision(t),l()):a.precision()},f.scale=function(t){return arguments.length?(a.scale(t),u.scale(.35*t),c.scale(t),f.translate(a.translate())):a.scale()},f.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],f=+t[1];return n=a.translate(t).clipExtent([[o-.455*e,f-.238*e],[o+.455*e,f+.238*e]]).stream(s),r=u.translate([o-.307*e,f+.201*e]).clipExtent([[o-.425*e+Pf,f+.12*e+Pf],[o-.214*e-Pf,f+.234*e-Pf]]).stream(s),i=c.translate([o-.205*e,f+.212*e]).clipExtent([[o-.214*e+Pf,f+.166*e+Pf],[o-.115*e-Pf,f+.234*e-Pf]]).stream(s),l()},f.fitExtent=function(t,e){return Op(f,t,e)},f.fitSize=function(t,e){return Rp(f,t,e)},f.fitWidth=function(t,e){return $p(f,t,e)},f.fitHeight=function(t,e){return zp(f,t,e)},f.scale(1070)}function Kp(t){return function(e,n){var r=Bf(e),i=Bf(n),o=t(r*i);return o===1/0?[2,0]:[o*i*Gf(e),o*Gf(n)]}}function Jp(t){return function(e,n){var r=Qf(e*e+n*n),i=t(r),o=Gf(i),a=Bf(i);return[Ff(e*o,r*a),tl(r&&n*o/r)]}}var tg=Kp((function(t){return Qf(2/(1+t))}));function eg(){return Yp(tg).scale(124.75).clipAngle(179.999)}tg.invert=Jp((function(t){return 2*tl(t/2)}));var ng=Kp((function(t){return(t=Jf(t))&&t/Gf(t)}));function rg(){return Yp(ng).scale(79.4188).clipAngle(179.999)}function ig(t,e){return[t,Xf(Kf((Lf+e)/2))]}function og(){return ag(ig).scale(961/Rf)}function ag(t){var e,n,r,i=Yp(t),o=i.center,a=i.scale,u=i.translate,c=i.clipExtent,s=null;function f(){var o=qf*a(),u=i(jh(i.rotate()).invert([0,0]));return c(null==s?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:t===ig?[[Math.max(u[0]-o,s),e],[Math.min(u[0]+o,n),r]]:[[s,Math.max(u[1]-o,e)],[n,Math.min(u[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),f()):a()},i.translate=function(t){return arguments.length?(u(t),f()):u()},i.center=function(t){return arguments.length?(o(t),f()):o()},i.clipExtent=function(t){return arguments.length?(null==t?s=e=n=r=null:(s=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),f()):null==s?null:[[s,e],[n,r]]},f()}function ug(t){return Kf((Lf+t)/2)}function cg(t,e){var n=Bf(t),r=t===e?Gf(t):Xf(n/Bf(e))/Xf(ug(e)/ug(t)),i=n*Vf(ug(t),r)/r;if(!r)return ig;function o(t,e){i>0?e<-Lf+Pf&&(e=-Lf+Pf):e>Lf-Pf&&(e=Lf-Pf);var n=i/Vf(ug(e),r);return[n*Gf(r*t),i-n*Bf(r*t)]}return o.invert=function(t,e){var n=i-e,o=Zf(r)*Qf(t*t+n*n),a=Ff(t,If(n))*Zf(n);return n*r<0&&(a-=qf*Zf(t)*Zf(n)),[a/r,2*Hf(Vf(i/o,1/r))-Lf]},o}function sg(){return Xp(cg).scale(109.5).parallels([30,30])}function fg(t,e){return[t,e]}function lg(){return Yp(fg).scale(152.63)}function hg(t,e){var n=Bf(t),r=t===e?Gf(t):(n-Bf(e))/(e-t),i=n/r+t;if(If(r)<Pf)return fg;function o(t,e){var n=i-e,o=r*t;return[n*Gf(o),i-n*Bf(o)]}return o.invert=function(t,e){var n=i-e,o=Ff(t,If(n))*Zf(n);return n*r<0&&(o-=qf*Zf(t)*Zf(n)),[o/r,i-Zf(r)*Qf(t*t+n*n)]},o}function dg(){return Xp(hg).scale(131.154).center([0,13.9389])}ng.invert=Jp((function(t){return t})),ig.invert=function(t,e){return[t,2*Hf(Yf(e))-Lf]},fg.invert=fg;var pg=1.340264,gg=-.081106,yg=893e-6,vg=.003796,mg=Qf(3)/2;function bg(t,e){var n=tl(mg*Gf(e)),r=n*n,i=r*r*r;return[t*Bf(n)/(mg*(pg+3*gg*r+i*(7*yg+9*vg*r))),n*(pg+gg*r+i*(yg+vg*r))]}function _g(){return Yp(bg).scale(177.158)}function xg(t,e){var n=Bf(e),r=Bf(t)*n;return[n*Gf(t)/r,Gf(e)/r]}function wg(){return Yp(xg).scale(144.049).clipAngle(60)}function Mg(){var t,e,n,r,i,o,a,u=1,c=0,s=0,f=1,l=1,h=0,d=null,p=1,g=1,y=jp({point:function(t,e){var n=b([t,e]);this.stream.point(n[0],n[1])}}),v=Ad;function m(){return p=u*f,g=u*l,o=a=null,b}function b(n){var r=n[0]*p,i=n[1]*g;if(h){var o=i*t-r*e;r=r*t+i*e,i=o}return[r+c,i+s]}return b.invert=function(n){var r=n[0]-c,i=n[1]-s;if(h){var o=i*t+r*e;r=r*t-i*e,i=o}return[r/p,i/g]},b.stream=function(t){return o&&a===t?o:o=y(v(a=t))},b.postclip=function(t){return arguments.length?(v=t,d=n=r=i=null,m()):v},b.clipExtent=function(t){return arguments.length?(v=null==t?(d=n=r=i=null,Ad):ed(d=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),m()):null==d?null:[[d,n],[r,i]]},b.scale=function(t){return arguments.length?(u=+t,m()):u},b.translate=function(t){return arguments.length?(c=+t[0],s=+t[1],m()):[c,s]},b.angle=function(n){return arguments.length?(e=Gf(h=n%360*zf),t=Bf(h),m()):h*$f},b.reflectX=function(t){return arguments.length?(f=t?-1:1,m()):f<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,m()):l<0},b.fitExtent=function(t,e){return Op(b,t,e)},b.fitSize=function(t,e){return Rp(b,t,e)},b.fitWidth=function(t,e){return $p(b,t,e)},b.fitHeight=function(t,e){return zp(b,t,e)},b}function Tg(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function Ag(){return Yp(Tg).scale(175.295)}function Sg(t,e){return[Bf(e)*Gf(t),Gf(e)]}function Eg(){return Yp(Sg).scale(249.5).clipAngle(90+Pf)}function kg(t,e){var n=Bf(e),r=1+Bf(t)*n;return[n*Gf(t)/r,Gf(e)/r]}function Ng(){return Yp(kg).scale(250).clipAngle(142)}function Cg(t,e){return[Xf(Kf((Lf+e)/2)),-t]}function Dg(){var t=ag(Cg),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function Pg(t,e){return t.parent===e.parent?1:2}function jg(t,e){return t+e.x}function qg(t,e){return Math.max(t,e.y)}function Lg(){var t=Pg,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(jg,0)/t.length}(n),e.y=function(t){return 1+t.reduce(qg,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),s=u.x-t(u,c)/2,f=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-s)/(f-s)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Og(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Rg(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=zg)):void 0===e&&(e=$g);for(var n,r,i,o,a,u=new Fg(t),c=[u];n=c.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new Fg(i[o])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(Hg)}function $g(t){return t.children}function zg(t){return Array.isArray(t)?t[1]:null}function Ig(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Hg(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Fg(t){this.data=t,this.depth=this.height=0,this.parent=null}function Bg(t){return null==t?null:Ug(t)}function Ug(t){if("function"!=typeof t)throw new Error;return t}function Yg(){return 0}function Wg(t){return function(){return t}}bg.invert=function(t,e){for(var n,r=e,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(pg+gg*i+o*(yg+vg*i))-e)/(pg+3*gg*i+o*(7*yg+9*vg*i)))*r)*i*i,!(If(n)<jf));++a);return[mg*t*(pg+3*gg*i+o*(7*yg+9*vg*i))/Bf(r),tl(Gf(r)/mg)]},xg.invert=Jp(Hf),Tg.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(If(n)>Pf&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},Sg.invert=Jp(tl),kg.invert=Jp((function(t){return 2*Hf(t)})),Cg.invert=function(t,e){return[-e,2*Hf(Yf(t))-Lf]},Fg.prototype=Rg.prototype={constructor:Fg,count:function(){return this.eachAfter(Og)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],u=[],c=-1;o=a.pop();)if(u.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=u.pop();)t.call(e,o,++c,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Rg(this).eachBefore(Ig)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}};const Xg=1664525,Vg=1013904223,Gg=4294967296;function Zg(){let t=1;return()=>(t=(Xg*t+Vg)%Gg)/Gg}function Qg(t){return Kg(t,Zg())}function Kg(t,e){for(var n,r,i=0,o=(t=function(t,e){let n,r,i=t.length;for(;i;)r=e()*i--|0,n=t[i],t[i]=t[r],t[r]=n;return t}(Array.from(t),e)).length,a=[];i<o;)n=t[i],r&&ey(r,n)?++i:(r=ry(a=Jg(a,n)),i=0);return r}function Jg(t,e){var n,r;if(ny(e,t))return[e];for(n=0;n<t.length;++n)if(ty(e,t[n])&&ny(iy(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(ty(iy(t[n],t[r]),e)&&ty(iy(t[n],e),t[r])&&ty(iy(t[r],e),t[n])&&ny(oy(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function ty(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function ey(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function ny(t,e){for(var n=0;n<e.length;++n)if(!ey(t,e[n]))return!1;return!0}function ry(t){switch(t.length){case 1:return function(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return iy(t[0],t[1]);case 3:return oy(t[0],t[1],t[2])}}function iy(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,u=e.r,c=o-n,s=a-r,f=u-i,l=Math.sqrt(c*c+s*s);return{x:(n+o+c/l*f)/2,y:(r+a+s/l*f)/2,r:(l+i+u)/2}}function oy(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,u=e.y,c=e.r,s=n.x,f=n.y,l=n.r,h=r-a,d=r-s,p=i-u,g=i-f,y=c-o,v=l-o,m=r*r+i*i-o*o,b=m-a*a-u*u+c*c,_=m-s*s-f*f+l*l,x=d*p-h*g,w=(p*_-g*b)/(2*x)-r,M=(g*y-p*v)/x,T=(d*b-h*_)/(2*x)-i,A=(h*v-d*y)/x,S=M*M+A*A-1,E=2*(o+w*M+T*A),k=w*w+T*T-o*o,N=-(Math.abs(S)>1e-6?(E+Math.sqrt(E*E-4*S*k))/(2*S):k/E);return{x:r+w+M*N,y:i+T+A*N,r:N}}function ay(t,e,n){var r,i,o,a,u=t.x-e.x,c=t.y-e.y,s=u*u+c*c;s?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(s+a-i)/(2*s),o=Math.sqrt(Math.max(0,a/s-r*r)),n.x=t.x-r*u-o*c,n.y=t.y-r*c+o*u):(r=(s+i-a)/(2*s),o=Math.sqrt(Math.max(0,i/s-r*r)),n.x=e.x+r*u-o*c,n.y=e.y+r*c+o*u)):(n.x=e.x+n.r,n.y=e.y)}function uy(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function cy(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function sy(t){this._=t,this.next=null,this.previous=null}function fy(t,e){if(!(a=(n=t,t="object"==typeof n&&"length"in n?n:Array.from(n)).length))return 0;var n,r,i,o,a,u,c,s,f,l,h,d;if((r=t[0]).x=0,r.y=0,!(a>1))return r.r;if(i=t[1],r.x=-i.r,i.x=r.r,i.y=0,!(a>2))return r.r+i.r;ay(i,r,o=t[2]),r=new sy(r),i=new sy(i),o=new sy(o),r.next=o.previous=i,i.next=r.previous=o,o.next=i.previous=r;t:for(s=3;s<a;++s){ay(r._,i._,o=t[s]),o=new sy(o),f=i.next,l=r.previous,h=i._.r,d=r._.r;do{if(h<=d){if(uy(f._,o._)){i=f,r.next=i,i.previous=r,--s;continue t}h+=f._.r,f=f.next}else{if(uy(l._,o._)){(r=l).next=i,i.previous=r,--s;continue t}d+=l._.r,l=l.previous}}while(f!==l.next);for(o.previous=r,o.next=i,r.next=i.previous=i=o,u=cy(r);(o=o.next)!==i;)(c=cy(o))<u&&(r=o,u=c);i=r.next}for(r=[i._],o=i;(o=o.next)!==i;)r.push(o._);for(o=Kg(r,e),s=0;s<a;++s)(r=t[s]).x-=o.x,r.y-=o.y;return o.r}function ly(t){return fy(t,Zg()),t}function hy(t){return Math.sqrt(t.value)}function dy(){var t=null,e=1,n=1,r=Yg;function i(i){const o=Zg();return i.x=e/2,i.y=n/2,t?i.eachBefore(py(t)).eachAfter(gy(r,.5,o)).eachBefore(yy(1)):i.eachBefore(py(hy)).eachAfter(gy(Yg,1,o)).eachAfter(gy(r,i.r/Math.min(e,n),o)).eachBefore(yy(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=Bg(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:Wg(+t),i):r},i}function py(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function gy(t,e,n){return function(r){if(i=r.children){var i,o,a,u=i.length,c=t(r)*e||0;if(c)for(o=0;o<u;++o)i[o].r+=c;if(a=fy(i,n),c)for(o=0;o<u;++o)i[o].r-=c;r.r=a+c}}}function yy(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function vy(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function my(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(r-e)/t.value;++u<c;)(o=a[u]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*s}function by(){var t=1,e=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/o,i.eachBefore(function(t,e){return function(r){r.children&&my(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,u=r.y1-n;a<i&&(i=a=(i+a)/2),u<o&&(o=u=(o+u)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=u}}(e,o)),r&&i.eachBefore(vy),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i}var _y={depth:-1},xy={},wy={};function My(t){return t.id}function Ty(t){return t.parentId}function Ay(){var t,e=My,n=Ty;function r(r){var i,o,a,u,c,s,f,l,h=Array.from(r),d=e,p=n,g=new Map;if(null!=t){const e=h.map(((e,n)=>function(t){let e=(t=`${t}`).length;return Ey(t,e-1)&&!Ey(t,e-2)&&(t=t.slice(0,-1)),"/"===t[0]?t:`/${t}`}(t(e,n,r)))),n=e.map(Sy),i=new Set(e).add("");for(const t of n)i.has(t)||(i.add(t),e.push(t),n.push(Sy(t)),h.push(wy));d=(t,n)=>e[n],p=(t,e)=>n[e]}for(a=0,i=h.length;a<i;++a)o=h[a],s=h[a]=new Fg(o),null!=(f=d(o,a,r))&&(f+="")&&(l=s.id=f,g.set(l,g.has(l)?xy:s)),null!=(f=p(o,a,r))&&(f+="")&&(s.parent=f);for(a=0;a<i;++a)if(f=(s=h[a]).parent){if(!(c=g.get(f)))throw new Error("missing: "+f);if(c===xy)throw new Error("ambiguous: "+f);c.children?c.children.push(s):c.children=[s],s.parent=c}else{if(u)throw new Error("multiple roots");u=s}if(!u)throw new Error("no root");if(null!=t){for(;u.data===wy&&1===u.children.length;)u=u.children[0],--i;for(let t=h.length-1;t>=0&&(s=h[t]).data===wy;--t)s.data=null}if(u.parent=_y,u.eachBefore((function(t){t.depth=t.parent.depth+1,--i})).eachBefore(Hg),u.parent=null,i>0)throw new Error("cycle");return u}return r.id=function(t){return arguments.length?(e=Bg(t),r):e},r.parentId=function(t){return arguments.length?(n=Bg(t),r):n},r.path=function(e){return arguments.length?(t=Bg(e),r):t},r}function Sy(t){let e=t.length;if(e<2)return"";for(;--e>1&&!Ey(t,e););return t.slice(0,e)}function Ey(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if(0==(1&n))return!0}return!1}function ky(t,e){return t.parent===e.parent?1:2}function Ny(t){var e=t.children;return e?e[0]:t.t}function Cy(t){var e=t.children;return e?e[e.length-1]:t.t}function Dy(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Py(t,e,n){return t.a.parent===e.parent?t.a:n}function jy(t,e){this._=t,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=e}function qy(){var t=ky,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,o,a=new jy(t,0),u=[a];e=u.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(n=e.children[i]=new jy(r[i],i)),n.parent=e;return(a.parent=new jy(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var s=i,f=i,l=i;i.eachBefore((function(t){t.x<s.x&&(s=t),t.x>f.x&&(f=t),t.depth>l.depth&&(l=t)}));var h=s===f?1:t(s,f)/2,d=h-s.x,p=e/(f.x+h+d),g=n/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,u=n,c=o.parent.children[0],s=o.m,f=a.m,l=u.m,h=c.m;u=Cy(u),o=Ny(o),u&&o;)c=Ny(c),(a=Cy(a)).a=e,(i=u.z+l-o.z-s+t(u._,o._))>0&&(Dy(Py(u,e,r),e,i),s+=i,f+=i),l+=u.m,s+=o.m,h+=c.m,f+=a.m;u&&!Cy(a)&&(a.t=u,a.m+=l-f),o&&!Ny(c)&&(c.t=o,c.m+=s-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Ly(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(i-n)/t.value;++u<c;)(o=a[u]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*s}jy.prototype=Object.create(Fg.prototype);var Oy=(1+Math.sqrt(5))/2;function Ry(t,e,n,r,i,o){for(var a,u,c,s,f,l,h,d,p,g,y,v=[],m=e.children,b=0,_=0,x=m.length,w=e.value;b<x;){c=i-n,s=o-r;do{f=m[_++].value}while(!f&&_<x);for(l=h=f,y=f*f*(g=Math.max(s/c,c/s)/(w*t)),p=Math.max(h/y,y/l);_<x;++_){if(f+=u=m[_].value,u<l&&(l=u),u>h&&(h=u),y=f*f*g,(d=Math.max(h/y,y/l))>p){f-=u;break}p=d}v.push(a={value:f,dice:c<s,children:m.slice(b,_)}),a.dice?my(a,n,r,i,w?r+=s*f/w:o):Ly(a,n,r,w?n+=c*f/w:i,o),w-=f,b=_}return v}const $y=function t(e){function n(t,n,r,i,o){Ry(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Oy);function zy(){var t=$y,e=!1,n=1,r=1,i=[0],o=Yg,a=Yg,u=Yg,c=Yg,s=Yg;function f(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(l),i=[0],e&&t.eachBefore(vy),t}function l(e){var n=i[e.depth],r=e.x0+n,f=e.y0+n,l=e.x1-n,h=e.y1-n;l<r&&(r=l=(r+l)/2),h<f&&(f=h=(f+h)/2),e.x0=r,e.y0=f,e.x1=l,e.y1=h,e.children&&(n=i[e.depth+1]=o(e)/2,r+=s(e)-n,f+=a(e)-n,(l-=u(e)-n)<r&&(r=l=(r+l)/2),(h-=c(e)-n)<f&&(f=h=(f+h)/2),t(e,r,f,l,h))}return f.round=function(t){return arguments.length?(e=!!t,f):e},f.size=function(t){return arguments.length?(n=+t[0],r=+t[1],f):[n,r]},f.tile=function(e){return arguments.length?(t=Ug(e),f):t},f.padding=function(t){return arguments.length?f.paddingInner(t).paddingOuter(t):f.paddingInner()},f.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:Wg(+t),f):o},f.paddingOuter=function(t){return arguments.length?f.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):f.paddingTop()},f.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:Wg(+t),f):a},f.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:Wg(+t),f):u},f.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:Wg(+t),f):c},f.paddingLeft=function(t){return arguments.length?(s="function"==typeof t?t:Wg(+t),f):s},f}function Iy(t,e,n,r,i){var o,a,u=t.children,c=u.length,s=new Array(c+1);for(s[0]=a=o=0;o<c;++o)s[o+1]=a+=u[o].value;!function t(e,n,r,i,o,a,c){if(e>=n-1){var f=u[e];return f.x0=i,f.y0=o,f.x1=a,void(f.y1=c)}for(var l=s[e],h=r/2+l,d=e+1,p=n-1;d<p;){var g=d+p>>>1;s[g]<h?d=g+1:p=g}h-s[d-1]<s[d]-h&&e+1<d&&--d;var y=s[d]-l,v=r-y;if(a-i>c-o){var m=r?(i*v+a*y)/r:a;t(e,d,y,i,o,m,c),t(d,n,v,m,o,a,c)}else{var b=r?(o*v+c*y)/r:c;t(e,d,y,i,o,a,b),t(d,n,v,i,b,a,c)}}(0,c,t.value,e,n,r,i)}function Hy(t,e,n,r,i){(1&t.depth?Ly:my)(t,e,n,r,i)}const Fy=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,u,c,s,f,l=-1,h=a.length,d=t.value;++l<h;){for(c=(u=a[l]).children,s=u.value=0,f=c.length;s<f;++s)u.value+=c[s].value;u.dice?my(u,n,r,i,d?r+=(o-r)*u.value/d:o):Ly(u,n,r,d?n+=(i-n)*u.value/d:i,o),d-=u.value}else t._squarify=a=Ry(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Oy);function By(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function Uy(t,e){var n=Or(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}function Yy(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Wy(t){return((t=Math.exp(t))+1/t)/2}const Xy=function t(e,n,r){function i(t,i){var o,a,u=t[0],c=t[1],s=t[2],f=i[0],l=i[1],h=i[2],d=f-u,p=l-c,g=d*d+p*p;if(g<1e-12)a=Math.log(h/s)/e,o=function(t){return[u+t*d,c+t*p,s*Math.exp(e*t*a)]};else{var y=Math.sqrt(g),v=(h*h-s*s+r*g)/(2*s*n*y),m=(h*h-s*s-r*g)/(2*h*n*y),b=Math.log(Math.sqrt(v*v+1)-v),_=Math.log(Math.sqrt(m*m+1)-m);a=(_-b)/e,o=function(t){var r,i=t*a,o=Wy(b),f=s/(n*y)*(o*(r=e*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[u+f*d,c+f*p,s*o/Wy(e*i+b)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4);function Vy(t){return function(e,n){var r=t((e=Sr(e)).h,(n=Sr(n)).h),i=Rr(e.s,n.s),o=Rr(e.l,n.l),a=Rr(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}const Gy=Vy(Or);var Zy=Vy(Rr);function Qy(t,e){var n=Rr((t=za(t)).l,(e=za(e)).l),r=Rr(t.a,e.a),i=Rr(t.b,e.b),o=Rr(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=o(e),t+""}}function Ky(t){return function(e,n){var r=t((e=Xa(e)).h,(n=Xa(n)).h),i=Rr(e.c,n.c),o=Rr(e.l,n.l),a=Rr(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}const Jy=Ky(Or);var tv=Ky(Rr);function ev(t){return function e(n){function r(e,r){var i=t((e=iu(e)).h,(r=iu(r)).h),o=Rr(e.s,r.s),a=Rr(e.l,r.l),u=Rr(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}const nv=ev(Or);var rv=ev(Rr);function iv(t,e){void 0===e&&(e=t,t=Kr);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}function ov(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}function av(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[1]*i[0]-e[0]*i[1];return o/2}function uv(t){for(var e,n,r=-1,i=t.length,o=0,a=0,u=t[i-1],c=0;++r<i;)e=u,u=t[r],c+=n=e[0]*u[1]-u[0]*e[1],o+=(e[0]+u[0])*n,a+=(e[1]+u[1])*n;return[o/(c*=3),a/c]}function cv(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function sv(t,e){return t[0]-e[0]||t[1]-e[1]}function fv(t){const e=t.length,n=[0,1];let r,i=2;for(r=2;r<e;++r){for(;i>1&&cv(t[n[i-2]],t[n[i-1]],t[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}function lv(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e)r[e]=[+t[e][0],+t[e][1],e];for(r.sort(sv),e=0;e<n;++e)i[e]=[r[e][0],-r[e][1]];var o=fv(r),a=fv(i),u=a[0]===o[0],c=a[a.length-1]===o[o.length-1],s=[];for(e=o.length-1;e>=0;--e)s.push(t[r[o[e]][2]]);for(e=+u;e<a.length-c;++e)s.push(t[r[a[e]][2]]);return s}function hv(t,e){for(var n,r,i=t.length,o=t[i-1],a=e[0],u=e[1],c=o[0],s=o[1],f=!1,l=0;l<i;++l)n=(o=t[l])[0],(r=o[1])>u!=s>u&&a<(c-n)*(u-r)/(s-r)+n&&(f=!f),c=n,s=r;return f}function dv(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r<i;)e=a,n=u,e-=a=(o=t[r])[0],n-=u=o[1],c+=Math.hypot(e,n);return c}const pv=Math.random,gv=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(pv),yv=function t(e){function n(t,n){return arguments.length<2&&(n=t,t=0),t=Math.floor(t),n=Math.floor(n)-t,function(){return Math.floor(e()*n+t)}}return n.source=t,n}(pv),vv=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*e()-1,o=2*e()-1,i=r*r+o*o}while(!i||i>1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(pv),mv=function t(e){var n=vv.source(e);function r(){var t=n.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(pv),bv=function t(e){function n(t){return(t=+t)<=0?()=>0:function(){for(var n=0,r=t;r>1;--r)n+=e();return n+r*e()}}return n.source=t,n}(pv),_v=function t(e){var n=bv.source(e);function r(t){if(0==(t=+t))return e;var r=n(t);return function(){return r()/t}}return r.source=t,r}(pv),xv=function t(e){function n(t){return function(){return-Math.log1p(-e())/t}}return n.source=t,n}(pv),wv=function t(e){function n(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-e(),t)}}return n.source=t,n}(pv),Mv=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+t)}}return n.source=t,n}(pv),Tv=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-e())/t)})}return n.source=t,n}(pv),Av=function t(e){var n=vv.source(e)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-e())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),a=t<1?()=>Math.pow(e(),1/t):()=>1;return function(){do{do{var t=n(),u=1+o*t}while(u<=0);u*=u*u;var c=1-e()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-u+Math.log(u)));return i*u*a()*r}}return r.source=t,r}(pv),Sv=function t(e){var n=Av.source(e);function r(t,e){var r=n(t),i=n(e);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(pv),Ev=function t(e){var n=Tv.source(e),r=Sv.source(e);function i(t,e){return t=+t,(e=+e)>=1?()=>t:e<=0?()=>0:function(){for(var i=0,o=t,a=e;o*a>16&&o*(1-a)>16;){var u=Math.floor((o+1)*a),c=r(u,o-u+1)();c<=a?(i+=u,o-=u,a=(a-c)/(1-c)):(o=u-1,a/=c)}for(var s=a<.5,f=n(s?a:1-a),l=f(),h=0;l<=o;++h)l+=f();return i+(s?h:o-h)}}return i.source=t,i}(pv),kv=function t(e){function n(t,n,r){var i;return 0==(t=+t)?i=t=>-Math.log(t):(t=1/t,i=e=>Math.pow(e,t)),n=null==n?0:+n,r=null==r?1:+r,function(){return n+r*i(-Math.log1p(-e()))}}return n.source=t,n}(pv),Nv=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){return t+n*Math.tan(Math.PI*e())}}return n.source=t,n}(pv),Cv=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){var r=e();return t+n*Math.log(r/(1-r))}}return n.source=t,n}(pv),Dv=function t(e){var n=Av.source(e),r=Ev.source(e);function i(t){return function(){for(var i=0,o=t;o>16;){var a=Math.floor(.875*o),u=n(a)();if(u>o)return i+r(a-1,o/u)();i+=a,o-=u}for(var c=-Math.log1p(-e()),s=0;c<=o;++s)c-=Math.log1p(-e());return i+s}}return i.source=t,i}(pv),Pv=1664525,jv=1013904223,qv=1/4294967296;function Lv(t=Math.random()){let e=0|(0<=t&&t<1?t/qv:Math.abs(t));return()=>(e=Pv*e+jv|0,qv*(e>>>0))}function Ov(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Rv(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const $v=Symbol("implicit");function zv(){var t=new j,e=[],n=[],r=$v;function i(i){let o=t.get(i);if(void 0===o){if(r!==$v)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new j;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return zv(e,n).unknown(r)},Ov.apply(i,arguments),i}function Iv(){var t,e,n=zv().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,u=!1,c=0,s=0,f=.5;function l(){var n=r().length,l=a<o,h=l?a:o,d=l?o:a;t=(d-h)/Math.max(1,n-c+2*s),u&&(t=Math.floor(t)),h+=(d-h-t*(n-c))*f,e=t*(1-c),u&&(h=Math.round(h),e=Math.round(e));var p=qt(n).map((function(e){return h+t*e}));return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,l()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,l()):u},n.padding=function(t){return arguments.length?(c=Math.min(1,s=+t),l()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),l()):c},n.paddingOuter=function(t){return arguments.length?(s=+t,l()):s},n.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),l()):f},n.copy=function(){return Iv(r(),[o,a]).round(u).paddingInner(c).paddingOuter(s).align(f)},Ov.apply(l(),arguments)}function Hv(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Hv(e())},t}function Fv(){return Hv(Iv.apply(null,arguments).paddingInner(1))}function Bv(t){return+t}var Uv=[0,1];function Yv(t){return t}function Wv(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Xv(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Wv(i,r),o=n(a,o)):(r=Wv(r,i),o=n(o,a)),function(t){return o(r(t))}}function Vv(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Wv(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=d(t,e,1,r)-1;return o[n](i[n](e))}}function Gv(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Zv(){var t,e,n,r,i,o,a=Uv,u=Uv,c=Kr,s=Yv;function f(){var t=Math.min(a.length,u.length);return s!==Yv&&(s=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?Vv:Xv,i=o=null,l}function l(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),u,c)))(t(s(e)))}return l.invert=function(n){return s(e((o||(o=r(u,a.map(t),Xr)))(n)))},l.domain=function(t){return arguments.length?(a=Array.from(t,Bv),f()):a.slice()},l.range=function(t){return arguments.length?(u=Array.from(t),f()):u.slice()},l.rangeRound=function(t){return u=Array.from(t),c=Yy,f()},l.clamp=function(t){return arguments.length?(s=!!t||Yv,f()):s!==Yv},l.interpolate=function(t){return arguments.length?(c=t,f()):c},l.unknown=function(t){return arguments.length?(n=t,l):n},function(n,r){return t=n,e=r,f()}}function Qv(){return Zv()(Yv,Yv)}function Kv(t,e,n,r){var i,o=lt(t,e,n);switch((r=vf(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Cf(o,a))||(r.precision=i),Tf(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Df(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Nf(o))||(r.precision=i-2*("%"===r.type))}return Mf(r)}function Jv(t){var e=t.domain;return t.ticks=function(t){var n=e();return st(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Kv(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,u=o.length-1,c=o[a],s=o[u],f=10;for(s<c&&(i=c,c=s,s=i,i=a,a=u,u=i);f-- >0;){if((i=ft(c,s,n))===r)return o[a]=c,o[u]=s,e(o);if(i>0)c=Math.floor(c/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,s=Math.floor(s*i)/i}r=i}return t},t}function tm(){var t=Qv();return t.copy=function(){return Gv(t,tm())},Ov.apply(t,arguments),Jv(t)}function em(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,Bv),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return em(t).unknown(e)},t=arguments.length?Array.from(t,Bv):[0,1],Jv(n)}function nm(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function rm(t){return Math.log(t)}function im(t){return Math.exp(t)}function om(t){return-Math.log(-t)}function am(t){return-Math.exp(-t)}function um(t){return isFinite(t)?+("1e"+t):t<0?0:t}function cm(t){return(e,n)=>-t(-e,n)}function sm(t){const e=t(rm,im),n=e.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(o),i=function(t){return 10===t?um:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),n()[0]<0?(r=cm(r),i=cm(i),t(om,am)):t(rm,im),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let s,f,l=r(a),h=r(u);const d=null==t?10:+t;let p=[];if(!(o%1)&&h-l<d){if(l=Math.floor(l),h=Math.ceil(h),a>0){for(;l<=h;++l)for(s=1;s<o;++s)if(f=l<0?s/i(-l):s*i(l),!(f<a)){if(f>u)break;p.push(f)}}else for(;l<=h;++l)for(s=o-1;s>=1;--s)if(f=l>0?s/i(-l):s*i(l),!(f<a)){if(f>u)break;p.push(f)}2*p.length<d&&(p=st(a,u,d))}else p=st(l,h,Math.min(h-l,d)).map(i);return c?p.reverse():p},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=vf(n)).precision||(n.trim=!0),n=Mf(n)),t===1/0)return n;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(r(t)));return e*o<o-.5&&(e*=o),e<=a?n(t):""}},e.nice=()=>n(nm(n(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),e}function fm(){const t=sm(Zv()).domain([1,10]);return t.copy=()=>Gv(t,fm()).base(t.base()),Ov.apply(t,arguments),t}function lm(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function hm(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function dm(t){var e=1,n=t(lm(e),hm(e));return n.constant=function(n){return arguments.length?t(lm(e=+n),hm(e)):e},Jv(n)}function pm(){var t=dm(Zv());return t.copy=function(){return Gv(t,pm()).constant(t.constant())},Ov.apply(t,arguments)}function gm(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function ym(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function vm(t){return t<0?-t*t:t*t}function mm(t){var e=t(Yv,Yv),n=1;return e.exponent=function(e){return arguments.length?1==(n=+e)?t(Yv,Yv):.5===n?t(ym,vm):t(gm(n),gm(1/n)):n},Jv(e)}function bm(){var t=mm(Zv());return t.copy=function(){return Gv(t,bm()).exponent(t.exponent())},Ov.apply(t,arguments),t}function _m(){return bm.apply(null,arguments).exponent(.5)}function xm(t){return Math.sign(t)*t*t}function wm(){var t,e=Qv(),n=[0,1],r=!1;function i(n){var i=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(n));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return e.invert(xm(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((n=Array.from(t,Bv)).map(xm)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return wm(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},Ov.apply(i,arguments),Jv(i)}function Mm(){var t,e=[],n=[],i=[];function o(){var t=0,r=Math.max(1,n.length);for(i=new Array(r-1);++t<r;)i[t-1]=Mt(e,t/r);return a}function a(e){return null==e||isNaN(e=+e)?t:n[d(i,e)]}return a.invertExtent=function(t){var r=n.indexOf(t);return r<0?[NaN,NaN]:[r>0?i[r-1]:e[0],r<i.length?i[r]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(r),o()},a.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return Mm().domain(e).range(n).unknown(t)},Ov.apply(a,arguments)}function Tm(){var t,e=0,n=1,r=1,i=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[d(i,e,0,r)]:t}function u(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,u()):[e,n]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,u()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Tm().domain([e,n]).range(o).unknown(t)},Ov.apply(Jv(a),arguments)}function Am(){var t,e=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[d(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Am().domain(e).range(n).unknown(t)},Ov.apply(i,arguments)}const Sm=1e3,Em=60*Sm,km=60*Em,Nm=24*km,Cm=7*Nm,Dm=30*Nm,Pm=365*Nm,jm=new Date,qm=new Date;function Lm(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let u;do{a.push(u=new Date(+n)),e(n,o),t(n)}while(u<n&&n<r);return a},i.filter=n=>Lm((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(jm.setTime(+e),qm.setTime(+r),t(jm),t(qm),Math.floor(n(jm,qm))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Om=Lm((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Om.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Lm((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):Om:null);const Rm=Om.range,$m=Lm((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Sm)}),((t,e)=>(e-t)/Sm),(t=>t.getUTCSeconds())),zm=$m.range,Im=Lm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Sm)}),((t,e)=>{t.setTime(+t+e*Em)}),((t,e)=>(e-t)/Em),(t=>t.getMinutes())),Hm=Im.range,Fm=Lm((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Em)}),((t,e)=>(e-t)/Em),(t=>t.getUTCMinutes())),Bm=Fm.range,Um=Lm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Sm-t.getMinutes()*Em)}),((t,e)=>{t.setTime(+t+e*km)}),((t,e)=>(e-t)/km),(t=>t.getHours())),Ym=Um.range,Wm=Lm((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*km)}),((t,e)=>(e-t)/km),(t=>t.getUTCHours())),Xm=Wm.range,Vm=Lm((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Em)/Nm),(t=>t.getDate()-1)),Gm=Vm.range,Zm=Lm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Nm),(t=>t.getUTCDate()-1)),Qm=Zm.range,Km=Lm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Nm),(t=>Math.floor(t/Nm))),Jm=Km.range;function tb(t){return Lm((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Em)/Cm))}const eb=tb(0),nb=tb(1),rb=tb(2),ib=tb(3),ob=tb(4),ab=tb(5),ub=tb(6),cb=eb.range,sb=nb.range,fb=rb.range,lb=ib.range,hb=ob.range,db=ab.range,pb=ub.range;function gb(t){return Lm((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Cm))}const yb=gb(0),vb=gb(1),mb=gb(2),bb=gb(3),_b=gb(4),xb=gb(5),wb=gb(6),Mb=yb.range,Tb=vb.range,Ab=mb.range,Sb=bb.range,Eb=_b.range,kb=xb.range,Nb=wb.range,Cb=Lm((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth())),Db=Cb.range,Pb=Lm((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth())),jb=Pb.range,qb=Lm((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));qb.every=t=>isFinite(t=Math.floor(t))&&t>0?Lm((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null;const Lb=qb.range,Ob=Lm((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));Ob.every=t=>isFinite(t=Math.floor(t))&&t>0?Lm((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null;const Rb=Ob.range;function $b(t,e,n,r,i,a){const u=[[$m,1,Sm],[$m,5,5*Sm],[$m,15,15*Sm],[$m,30,30*Sm],[a,1,Em],[a,5,5*Em],[a,15,15*Em],[a,30,30*Em],[i,1,km],[i,3,3*km],[i,6,6*km],[i,12,12*km],[r,1,Nm],[r,2,2*Nm],[n,1,Cm],[e,1,Dm],[e,3,3*Dm],[t,1,Pm]];function c(e,n,r){const i=Math.abs(n-e)/r,a=o((([,,t])=>t)).right(u,i);if(a===u.length)return t.every(lt(e/Pm,n/Pm,r));if(0===a)return Om.every(Math.max(lt(e,n,r),1));const[c,s]=u[i/u[a-1][2]<u[a][2]/i?a-1:a];return c.every(s)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:c(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},c]}const[zb,Ib]=$b(Ob,Pb,yb,Km,Wm,Fm),[Hb,Fb]=$b(qb,Cb,eb,Vm,Um,Im);function Bb(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ub(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yb(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Wb(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=i_(i),f=o_(i),l=i_(o),h=o_(o),d=i_(a),p=o_(a),g=i_(u),y=o_(u),v=i_(c),m=o_(c),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:S_,e:S_,f:D_,g:F_,G:U_,H:E_,I:k_,j:N_,L:C_,m:P_,M:j_,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:dx,s:px,S:q_,u:L_,U:O_,V:$_,w:z_,W:I_,x:null,X:null,y:H_,Y:B_,Z:Y_,"%":hx},_={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:W_,e:W_,f:Q_,g:cx,G:fx,H:X_,I:V_,j:G_,L:Z_,m:K_,M:J_,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:dx,s:px,S:tx,u:ex,U:nx,V:ix,w:ox,W:ax,x:null,X:null,y:ux,Y:sx,Z:lx,"%":hx},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return T(t,e,n,r)},d:y_,e:y_,f:w_,g:h_,G:l_,H:m_,I:m_,j:v_,L:x_,m:g_,M:b_,p:function(t,e,n){var r=s.exec(e.slice(n));return r?(t.p=f.get(r[0].toLowerCase()),n+r[0].length):-1},q:p_,Q:T_,s:A_,S:__,u:u_,U:c_,V:s_,w:a_,W:f_,x:function(t,e,r){return T(t,n,e,r)},X:function(t,e,n){return T(t,r,e,n)},y:h_,Y:l_,Z:d_,"%":M_};function w(t,e){return function(n){var r,i,o,a=[],u=-1,c=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++u<s;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(i=Kb[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function M(t,e){return function(n){var r,i,o=Yb(1900,void 0,1);if(T(o,t,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(e&&!("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=Ub(Yb(o.y,0,1))).getUTCDay(),r=i>4||0===i?vb.ceil(r):vb(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=Bb(Yb(o.y,0,1))).getDay(),r=i>4||0===i?nb.ceil(r):nb(r),r=Vm.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?Ub(Yb(o.y,0,1)).getUTCDay():Bb(Yb(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,Ub(o)):Bb(o)}}function T(t,e,n,r){for(var i,o,a=0,u=e.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in Kb?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=M(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=M(t+="",!0);return e.toString=function(){return t},e}}}var Xb,Vb,Gb,Zb,Qb,Kb={"-":"",_:" ",0:"0"},Jb=/^\s*\d+/,t_=/^%/,e_=/[\\^$*+?|[\]().{}]/g;function n_(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function r_(t){return t.replace(e_,"\\$&")}function i_(t){return new RegExp("^(?:"+t.map(r_).join("|")+")","i")}function o_(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function a_(t,e,n){var r=Jb.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function u_(t,e,n){var r=Jb.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function c_(t,e,n){var r=Jb.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function s_(t,e,n){var r=Jb.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function f_(t,e,n){var r=Jb.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function l_(t,e,n){var r=Jb.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function h_(t,e,n){var r=Jb.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function d_(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function p_(t,e,n){var r=Jb.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function g_(t,e,n){var r=Jb.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function y_(t,e,n){var r=Jb.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function v_(t,e,n){var r=Jb.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function m_(t,e,n){var r=Jb.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function b_(t,e,n){var r=Jb.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function __(t,e,n){var r=Jb.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function x_(t,e,n){var r=Jb.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function w_(t,e,n){var r=Jb.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function M_(t,e,n){var r=t_.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function T_(t,e,n){var r=Jb.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function A_(t,e,n){var r=Jb.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function S_(t,e){return n_(t.getDate(),e,2)}function E_(t,e){return n_(t.getHours(),e,2)}function k_(t,e){return n_(t.getHours()%12||12,e,2)}function N_(t,e){return n_(1+Vm.count(qb(t),t),e,3)}function C_(t,e){return n_(t.getMilliseconds(),e,3)}function D_(t,e){return C_(t,e)+"000"}function P_(t,e){return n_(t.getMonth()+1,e,2)}function j_(t,e){return n_(t.getMinutes(),e,2)}function q_(t,e){return n_(t.getSeconds(),e,2)}function L_(t){var e=t.getDay();return 0===e?7:e}function O_(t,e){return n_(eb.count(qb(t)-1,t),e,2)}function R_(t){var e=t.getDay();return e>=4||0===e?ob(t):ob.ceil(t)}function $_(t,e){return t=R_(t),n_(ob.count(qb(t),t)+(4===qb(t).getDay()),e,2)}function z_(t){return t.getDay()}function I_(t,e){return n_(nb.count(qb(t)-1,t),e,2)}function H_(t,e){return n_(t.getFullYear()%100,e,2)}function F_(t,e){return n_((t=R_(t)).getFullYear()%100,e,2)}function B_(t,e){return n_(t.getFullYear()%1e4,e,4)}function U_(t,e){var n=t.getDay();return n_((t=n>=4||0===n?ob(t):ob.ceil(t)).getFullYear()%1e4,e,4)}function Y_(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+n_(e/60|0,"0",2)+n_(e%60,"0",2)}function W_(t,e){return n_(t.getUTCDate(),e,2)}function X_(t,e){return n_(t.getUTCHours(),e,2)}function V_(t,e){return n_(t.getUTCHours()%12||12,e,2)}function G_(t,e){return n_(1+Zm.count(Ob(t),t),e,3)}function Z_(t,e){return n_(t.getUTCMilliseconds(),e,3)}function Q_(t,e){return Z_(t,e)+"000"}function K_(t,e){return n_(t.getUTCMonth()+1,e,2)}function J_(t,e){return n_(t.getUTCMinutes(),e,2)}function tx(t,e){return n_(t.getUTCSeconds(),e,2)}function ex(t){var e=t.getUTCDay();return 0===e?7:e}function nx(t,e){return n_(yb.count(Ob(t)-1,t),e,2)}function rx(t){var e=t.getUTCDay();return e>=4||0===e?_b(t):_b.ceil(t)}function ix(t,e){return t=rx(t),n_(_b.count(Ob(t),t)+(4===Ob(t).getUTCDay()),e,2)}function ox(t){return t.getUTCDay()}function ax(t,e){return n_(vb.count(Ob(t)-1,t),e,2)}function ux(t,e){return n_(t.getUTCFullYear()%100,e,2)}function cx(t,e){return n_((t=rx(t)).getUTCFullYear()%100,e,2)}function sx(t,e){return n_(t.getUTCFullYear()%1e4,e,4)}function fx(t,e){var n=t.getUTCDay();return n_((t=n>=4||0===n?_b(t):_b.ceil(t)).getUTCFullYear()%1e4,e,4)}function lx(){return"+0000"}function hx(){return"%"}function dx(t){return+t}function px(t){return Math.floor(+t/1e3)}function gx(t){return Xb=Wb(t),Vb=Xb.format,Gb=Xb.parse,Zb=Xb.utcFormat,Qb=Xb.utcParse,Xb}function yx(t){return new Date(t)}function vx(t){return t instanceof Date?+t:+new Date(+t)}function mx(t,e,n,r,i,o,a,u,c,s){var f=Qv(),l=f.invert,h=f.domain,d=s(".%L"),p=s(":%S"),g=s("%I:%M"),y=s("%I %p"),v=s("%a %d"),m=s("%b %d"),b=s("%B"),_=s("%Y");function x(t){return(c(t)<t?d:u(t)<t?p:a(t)<t?g:o(t)<t?y:r(t)<t?i(t)<t?v:m:n(t)<t?b:_)(t)}return f.invert=function(t){return new Date(l(t))},f.domain=function(t){return arguments.length?h(Array.from(t,vx)):h().map(yx)},f.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},f.tickFormat=function(t,e){return null==e?x:s(e)},f.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(nm(n,t)):f},f.copy=function(){return Gv(f,mx(t,e,n,r,i,o,a,u,c,s))},f}function bx(){return Ov.apply(mx(Hb,Fb,qb,Cb,eb,Vm,Um,Im,$m,Vb).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function _x(){return Ov.apply(mx(zb,Ib,Ob,Pb,yb,Zm,Wm,Fm,$m,Zb).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function xx(){var t,e,n,r,i,o=0,a=1,u=Yv,c=!1;function s(e){return null==e||isNaN(e=+e)?i:u(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}function f(t){return function(e){var n,r;return arguments.length?([n,r]=e,u=t(n,r),s):[u(0),u(1)]}}return s.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),e=r(a=+a),n=t===e?0:1/(e-t),s):[o,a]},s.clamp=function(t){return arguments.length?(c=!!t,s):c},s.interpolator=function(t){return arguments.length?(u=t,s):u},s.range=f(Kr),s.rangeRound=f(Yy),s.unknown=function(t){return arguments.length?(i=t,s):i},function(i){return r=i,t=i(o),e=i(a),n=t===e?0:1/(e-t),s}}function wx(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Mx(){var t=Jv(xx()(Yv));return t.copy=function(){return wx(t,Mx())},Rv.apply(t,arguments)}function Tx(){var t=sm(xx()).domain([1,10]);return t.copy=function(){return wx(t,Tx()).base(t.base())},Rv.apply(t,arguments)}function Ax(){var t=dm(xx());return t.copy=function(){return wx(t,Ax()).constant(t.constant())},Rv.apply(t,arguments)}function Sx(){var t=mm(xx());return t.copy=function(){return wx(t,Sx()).exponent(t.exponent())},Rv.apply(t,arguments)}function Ex(){return Sx.apply(null,arguments).exponent(.5)}function kx(){var t=[],e=Yv;function n(n){if(null!=n&&!isNaN(n=+n))return e((d(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(r),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>wt(t,r/e)))},n.copy=function(){return kx(e).domain(t)},Rv.apply(n,arguments)}function Nx(){var t,e,n,r,i,o,a,u=0,c=.5,s=1,f=1,l=Yv,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(f*t<f*e?r:i),l(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(e){var n,r,i;return arguments.length?([n,r,i]=e,l=iv(t,[n,r,i]),d):[l(0),l(.5),l(1)]}}return d.domain=function(a){return arguments.length?([u,c,s]=a,t=o(u=+u),e=o(c=+c),n=o(s=+s),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),f=e<t?-1:1,d):[u,c,s]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(l=t,d):l},d.range=p(Kr),d.rangeRound=p(Yy),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(u),e=a(c),n=a(s),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),f=e<t?-1:1,d}}function Cx(){var t=Jv(Nx()(Yv));return t.copy=function(){return wx(t,Cx())},Rv.apply(t,arguments)}function Dx(){var t=sm(Nx()).domain([.1,1,10]);return t.copy=function(){return wx(t,Dx()).base(t.base())},Rv.apply(t,arguments)}function Px(){var t=dm(Nx());return t.copy=function(){return wx(t,Px()).constant(t.constant())},Rv.apply(t,arguments)}function jx(){var t=mm(Nx());return t.copy=function(){return wx(t,jx()).exponent(t.exponent())},Rv.apply(t,arguments)}function qx(){return jx.apply(null,arguments).exponent(.5)}function Lx(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}gx({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"]});const Ox=Lx("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Rx=Lx("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),$x=Lx("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),zx=Lx("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ix=Lx("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Hx=Lx("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Fx=Lx("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Bx=Lx("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Ux=Lx("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Yx=Lx("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Wx=t=>Ir(t[t.length-1]);var Xx=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Lx);const Vx=Wx(Xx);var Gx=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Lx);const Zx=Wx(Gx);var Qx=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Lx);const Kx=Wx(Qx);var Jx=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Lx);const tw=Wx(Jx);var ew=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Lx);const nw=Wx(ew);var rw=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Lx);const iw=Wx(rw);var ow=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Lx);const aw=Wx(ow);var uw=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Lx);const cw=Wx(uw);var sw=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Lx);const fw=Wx(sw);var lw=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Lx);const hw=Wx(lw);var dw=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Lx);const pw=Wx(dw);var gw=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Lx);const yw=Wx(gw);var vw=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Lx);const mw=Wx(vw);var bw=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Lx);const _w=Wx(bw);var xw=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Lx);const ww=Wx(xw);var Mw=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Lx);const Tw=Wx(Mw);var Aw=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Lx);const Sw=Wx(Aw);var Ew=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Lx);const kw=Wx(Ew);var Nw=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Lx);const Cw=Wx(Nw);var Dw=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Lx);const Pw=Wx(Dw);var jw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Lx);const qw=Wx(jw);var Lw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Lx);const Ow=Wx(Lw);var Rw=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Lx);const $w=Wx(Rw);var zw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Lx);const Iw=Wx(zw);var Hw=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Lx);const Fw=Wx(Hw);var Bw=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Lx);const Uw=Wx(Bw);var Yw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Lx);const Ww=Wx(Yw);function Xw(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const Vw=rv(iu(300,.5,0),iu(-240,.5,1));var Gw=rv(iu(-100,.75,.35),iu(80,1.5,.8)),Zw=rv(iu(260,.75,.35),iu(80,1.5,.8)),Qw=iu();function Kw(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return Qw.h=360*t-100,Qw.s=1.5-1.5*e,Qw.l=.8-.9*e,Qw+""}var Jw=vr(),tM=Math.PI/3,eM=2*Math.PI/3;function nM(t){var e;return t=(.5-t)*Math.PI,Jw.r=255*(e=Math.sin(t))*e,Jw.g=255*(e=Math.sin(t+tM))*e,Jw.b=255*(e=Math.sin(t+eM))*e,Jw+""}function rM(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function iM(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const oM=iM(Lx("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var aM=iM(Lx("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),uM=iM(Lx("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),cM=iM(Lx("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function sM(t){return Fn(kn(t).call(document.documentElement))}var fM=0;function lM(){return new hM}function hM(){this._="@"+(++fM).toString(36)}function dM(t,e){return t.target&&(t=Jr(t),void 0===e&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,(t=>ti(t,e)))}function pM(t){return"string"==typeof t?new zn([document.querySelectorAll(t)],[document.documentElement]):new zn([Ce(t)],$n)}function gM(t){return function(){return t}}hM.prototype=lM.prototype={constructor:hM,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};const yM=Math.abs,vM=Math.atan2,mM=Math.cos,bM=Math.max,_M=Math.min,xM=Math.sin,wM=Math.sqrt,MM=1e-12,TM=Math.PI,AM=TM/2,SM=2*TM;function EM(t){return t>=1?AM:t<=-1?-AM:Math.asin(t)}function kM(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new da(e)}function NM(t){return t.innerRadius}function CM(t){return t.outerRadius}function DM(t){return t.startAngle}function PM(t){return t.endAngle}function jM(t){return t&&t.padAngle}function qM(t,e,n,r,i,o,a){var u=t-n,c=e-r,s=(a?o:-o)/wM(u*u+c*c),f=s*c,l=-s*u,h=t+f,d=e+l,p=n+f,g=r+l,y=(h+p)/2,v=(d+g)/2,m=p-h,b=g-d,_=m*m+b*b,x=i-o,w=h*g-p*d,M=(b<0?-1:1)*wM(bM(0,x*x*_-w*w)),T=(w*b-m*M)/_,A=(-w*m-b*M)/_,S=(w*b+m*M)/_,E=(-w*m+b*M)/_,k=T-y,N=A-v,C=S-y,D=E-v;return k*k+N*N>C*C+D*D&&(T=S,A=E),{cx:T,cy:A,x01:-f,y01:-l,x11:T*(i/x-1),y11:A*(i/x-1)}}function LM(){var t=NM,e=CM,n=gM(0),r=null,i=DM,o=PM,a=jM,u=null,c=kM(s);function s(){var s,f,l,h=+t.apply(this,arguments),d=+e.apply(this,arguments),p=i.apply(this,arguments)-AM,g=o.apply(this,arguments)-AM,y=yM(g-p),v=g>p;if(u||(u=s=c()),d<h&&(f=d,d=h,h=f),d>MM)if(y>SM-MM)u.moveTo(d*mM(p),d*xM(p)),u.arc(0,0,d,p,g,!v),h>MM&&(u.moveTo(h*mM(g),h*xM(g)),u.arc(0,0,h,g,p,v));else{var m,b,_=p,x=g,w=p,M=g,T=y,A=y,S=a.apply(this,arguments)/2,E=S>MM&&(r?+r.apply(this,arguments):wM(h*h+d*d)),k=_M(yM(d-h)/2,+n.apply(this,arguments)),N=k,C=k;if(E>MM){var D=EM(E/h*xM(S)),P=EM(E/d*xM(S));(T-=2*D)>MM?(w+=D*=v?1:-1,M-=D):(T=0,w=M=(p+g)/2),(A-=2*P)>MM?(_+=P*=v?1:-1,x-=P):(A=0,_=x=(p+g)/2)}var j=d*mM(_),q=d*xM(_),L=h*mM(M),O=h*xM(M);if(k>MM){var R,$=d*mM(x),z=d*xM(x),I=h*mM(w),H=h*xM(w);if(y<TM)if(R=function(t,e,n,r,i,o,a,u){var c=n-t,s=r-e,f=a-i,l=u-o,h=l*c-f*s;if(!(h*h<MM))return[t+(h=(f*(e-o)-l*(t-i))/h)*c,e+h*s]}(j,q,I,H,$,z,L,O)){var F=j-R[0],B=q-R[1],U=$-R[0],Y=z-R[1],W=1/xM(((l=(F*U+B*Y)/(wM(F*F+B*B)*wM(U*U+Y*Y)))>1?0:l<-1?TM:Math.acos(l))/2),X=wM(R[0]*R[0]+R[1]*R[1]);N=_M(k,(h-X)/(W-1)),C=_M(k,(d-X)/(W+1))}else N=C=0}A>MM?C>MM?(m=qM(I,H,j,q,d,C,v),b=qM($,z,L,O,d,C,v),u.moveTo(m.cx+m.x01,m.cy+m.y01),C<k?u.arc(m.cx,m.cy,C,vM(m.y01,m.x01),vM(b.y01,b.x01),!v):(u.arc(m.cx,m.cy,C,vM(m.y01,m.x01),vM(m.y11,m.x11),!v),u.arc(0,0,d,vM(m.cy+m.y11,m.cx+m.x11),vM(b.cy+b.y11,b.cx+b.x11),!v),u.arc(b.cx,b.cy,C,vM(b.y11,b.x11),vM(b.y01,b.x01),!v))):(u.moveTo(j,q),u.arc(0,0,d,_,x,!v)):u.moveTo(j,q),h>MM&&T>MM?N>MM?(m=qM(L,O,$,z,h,-N,v),b=qM(j,q,I,H,h,-N,v),u.lineTo(m.cx+m.x01,m.cy+m.y01),N<k?u.arc(m.cx,m.cy,N,vM(m.y01,m.x01),vM(b.y01,b.x01),!v):(u.arc(m.cx,m.cy,N,vM(m.y01,m.x01),vM(m.y11,m.x11),!v),u.arc(0,0,h,vM(m.cy+m.y11,m.cx+m.x11),vM(b.cy+b.y11,b.cx+b.x11),v),u.arc(b.cx,b.cy,N,vM(b.y11,b.x11),vM(b.y01,b.x01),!v))):u.arc(0,0,h,M,w,v):u.lineTo(L,O)}else u.moveTo(0,0);if(u.closePath(),s)return u=null,s+""||null}return s.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-TM/2;return[mM(r)*n,xM(r)*n]},s.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:gM(+e),s):t},s.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:gM(+t),s):e},s.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:gM(+t),s):n},s.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:gM(+t),s):r},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:gM(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:gM(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:gM(+t),s):a},s.context=function(t){return arguments.length?(u=null==t?null:t,s):u},s}var OM=Array.prototype.slice;function RM(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function $M(t){this._context=t}function zM(t){return new $M(t)}function IM(t){return t[0]}function HM(t){return t[1]}function FM(t,e){var n=gM(!0),r=null,i=zM,o=null,a=kM(u);function u(u){var c,s,f,l=(u=RM(u)).length,h=!1;for(null==r&&(o=i(f=a())),c=0;c<=l;++c)!(c<l&&n(s=u[c],c,u))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(s,c,u),+e(s,c,u));if(f)return o=null,f+""||null}return t="function"==typeof t?t:void 0===t?IM:gM(t),e="function"==typeof e?e:void 0===e?HM:gM(e),u.x=function(e){return arguments.length?(t="function"==typeof e?e:gM(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:gM(+t),u):e},u.defined=function(t){return arguments.length?(n="function"==typeof t?t:gM(!!t),u):n},u.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),u):i},u.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),u):r},u}function BM(t,e,n){var r=null,i=gM(!0),o=null,a=zM,u=null,c=kM(s);function s(s){var f,l,h,d,p,g=(s=RM(s)).length,y=!1,v=new Array(g),m=new Array(g);for(null==o&&(u=a(p=c())),f=0;f<=g;++f){if(!(f<g&&i(d=s[f],f,s))===y)if(y=!y)l=f,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=f-1;h>=l;--h)u.point(v[h],m[h]);u.lineEnd(),u.areaEnd()}y&&(v[f]=+t(d,f,s),m[f]=+e(d,f,s),u.point(r?+r(d,f,s):v[f],n?+n(d,f,s):m[f]))}if(p)return u=null,p+""||null}function f(){return FM().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?IM:gM(+t),e="function"==typeof e?e:gM(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?HM:gM(+n),s.x=function(e){return arguments.length?(t="function"==typeof e?e:gM(+e),r=null,s):t},s.x0=function(e){return arguments.length?(t="function"==typeof e?e:gM(+e),s):t},s.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:gM(+t),s):r},s.y=function(t){return arguments.length?(e="function"==typeof t?t:gM(+t),n=null,s):e},s.y0=function(t){return arguments.length?(e="function"==typeof t?t:gM(+t),s):e},s.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:gM(+t),s):n},s.lineX0=s.lineY0=function(){return f().x(t).y(e)},s.lineY1=function(){return f().x(t).y(n)},s.lineX1=function(){return f().x(r).y(e)},s.defined=function(t){return arguments.length?(i="function"==typeof t?t:gM(!!t),s):i},s.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),s):a},s.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),s):o},s}function UM(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function YM(t){return t}function WM(){var t=YM,e=UM,n=null,r=gM(0),i=gM(SM),o=gM(0);function a(a){var u,c,s,f,l,h=(a=RM(a)).length,d=0,p=new Array(h),g=new Array(h),y=+r.apply(this,arguments),v=Math.min(SM,Math.max(-SM,i.apply(this,arguments)-y)),m=Math.min(Math.abs(v)/h,o.apply(this,arguments)),b=m*(v<0?-1:1);for(u=0;u<h;++u)(l=g[p[u]=u]=+t(a[u],u,a))>0&&(d+=l);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),u=0,s=d?(v-h*b)/d:0;u<h;++u,y=f)c=p[u],f=y+((l=g[c])>0?l*s:0)+b,g[c]={data:a[c],index:u,value:l,startAngle:y,endAngle:f,padAngle:m};return g}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:gM(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:gM(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:gM(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:gM(+t),a):o},a}$M.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var XM=GM(zM);function VM(t){this._curve=t}function GM(t){function e(e){return new VM(t(e))}return e._curve=t,e}function ZM(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(GM(t)):e()._curve},t}function QM(){return ZM(FM().curve(XM))}function KM(){var t=BM().curve(XM),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ZM(n())},delete t.lineX0,t.lineEndAngle=function(){return ZM(r())},delete t.lineX1,t.lineInnerRadius=function(){return ZM(i())},delete t.lineY0,t.lineOuterRadius=function(){return ZM(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(GM(t)):e()._curve},t}function JM(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}VM.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};class tT{constructor(t,e){this._context=t,this._x=e}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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}class eT{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,e){if(t=+t,e=+e,0===this._point)this._point=1;else{const n=JM(this._x0,this._y0),r=JM(this._x0,this._y0=(this._y0+e)/2),i=JM(t,this._y0),o=JM(t,e);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...o)}this._x0=t,this._y0=e}}function nT(t){return new tT(t,!0)}function rT(t){return new tT(t,!1)}function iT(t){return new eT(t)}function oT(t){return t.source}function aT(t){return t.target}function uT(t){let e=oT,n=aT,r=IM,i=HM,o=null,a=null,u=kM(c);function c(){let c;const s=OM.call(arguments),f=e.apply(this,s),l=n.apply(this,s);if(null==o&&(a=t(c=u())),a.lineStart(),s[0]=f,a.point(+r.apply(this,s),+i.apply(this,s)),s[0]=l,a.point(+r.apply(this,s),+i.apply(this,s)),a.lineEnd(),c)return a=null,c+""||null}return c.source=function(t){return arguments.length?(e=t,c):e},c.target=function(t){return arguments.length?(n=t,c):n},c.x=function(t){return arguments.length?(r="function"==typeof t?t:gM(+t),c):r},c.y=function(t){return arguments.length?(i="function"==typeof t?t:gM(+t),c):i},c.context=function(e){return arguments.length?(null==e?o=a=null:a=t(o=e),c):o},c}function cT(){return uT(nT)}function sT(){return uT(rT)}function fT(){const t=uT(iT);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const lT=wM(3),hT={draw(t,e){const n=.59436*wM(e+_M(e/28,.75)),r=n/2,i=r*lT;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},dT={draw(t,e){const n=wM(e/TM);t.moveTo(n,0),t.arc(0,0,n,0,SM)}},pT={draw(t,e){const n=wM(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},gT=wM(1/3),yT=2*gT,vT={draw(t,e){const n=wM(e/yT),r=n*gT;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},mT={draw(t,e){const n=.62625*wM(e);t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}},bT={draw(t,e){const n=.87559*wM(e-_M(e/7,2));t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}},_T={draw(t,e){const n=wM(e),r=-n/2;t.rect(r,r,n,n)}},xT={draw(t,e){const n=.4431*wM(e);t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}},wT=xM(TM/10)/xM(7*TM/10),MT=xM(SM/10)*wT,TT=-mM(SM/10)*wT,AT={draw(t,e){const n=wM(.8908130915292852*e),r=MT*n,i=TT*n;t.moveTo(0,-n),t.lineTo(r,i);for(let e=1;e<5;++e){const o=SM*e/5,a=mM(o),u=xM(o);t.lineTo(u*n,-a*n),t.lineTo(a*r-u*i,u*r+a*i)}t.closePath()}},ST=wM(3),ET={draw(t,e){const n=-wM(e/(3*ST));t.moveTo(0,2*n),t.lineTo(-ST*n,-n),t.lineTo(ST*n,-n),t.closePath()}},kT=wM(3),NT={draw(t,e){const n=.6824*wM(e),r=n/2,i=n*kT/2;t.moveTo(0,-n),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}},CT=-.5,DT=wM(3)/2,PT=1/wM(12),jT=3*(PT/2+1),qT={draw(t,e){const n=wM(e/jT),r=n/2,i=n*PT,o=r,a=n*PT+n,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(CT*r-DT*i,DT*r+CT*i),t.lineTo(CT*o-DT*a,DT*o+CT*a),t.lineTo(CT*u-DT*c,DT*u+CT*c),t.lineTo(CT*r+DT*i,CT*i-DT*r),t.lineTo(CT*o+DT*a,CT*a-DT*o),t.lineTo(CT*u+DT*c,CT*c-DT*u),t.closePath()}},LT={draw(t,e){const n=.6189*wM(e-_M(e/6,1.7));t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}},OT=[dT,pT,vT,_T,AT,ET,qT],RT=[dT,bT,LT,NT,hT,xT,mT];function $T(t,e){let n=null,r=kM(i);function i(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"==typeof t?t:gM(t||dT),e="function"==typeof e?e:gM(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:gM(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:gM(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i}function zT(){}function IT(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function HT(t){this._context=t}function FT(t){return new HT(t)}function BT(t){this._context=t}function UT(t){return new BT(t)}function YT(t){this._context=t}function WT(t){return new YT(t)}function XT(t,e){this._basis=new HT(t),this._beta=e}HT.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:IT(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:IT(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},BT.prototype={areaStart:zT,areaEnd:zT,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:IT(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},YT.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(t,e){switch(t=+t,e=+e,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+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:IT(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},XT.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,u=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*e[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const VT=function t(e){function n(t){return 1===e?new HT(t):new XT(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function GT(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ZT(t,e){this._context=t,this._k=(1-e)/6}ZT.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:GT(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:GT(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const QT=function t(e){function n(t){return new ZT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function KT(t,e){this._context=t,this._k=(1-e)/6}KT.prototype={areaStart:zT,areaEnd:zT,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:GT(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const JT=function t(e){function n(t){return new KT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function tA(t,e){this._context=t,this._k=(1-e)/6}tA.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(t,e){switch(t=+t,e=+e,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:GT(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const eA=function t(e){function n(t){return new tA(t,e)}return n.tension=function(e){return t(+e)},n}(0);function nA(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>MM){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>MM){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-e*t._l12_2a)/f,a=(a*s+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function rA(t,e){this._context=t,this._alpha=e}rA.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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:nA(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const iA=function t(e){function n(t){return e?new rA(t,e):new ZT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function oA(t,e){this._context=t,this._alpha=e}oA.prototype={areaStart:zT,areaEnd:zT,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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:nA(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const aA=function t(e){function n(t){return e?new oA(t,e):new KT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function uA(t,e){this._context=t,this._alpha=e}uA.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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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:nA(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const cA=function t(e){function n(t){return e?new uA(t,e):new tA(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function sA(t){this._context=t}function fA(t){return new sA(t)}function lA(t){return t<0?-1:1}function hA(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(lA(o)+lA(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function dA(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function pA(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function gA(t){this._context=t}function yA(t){this._context=new vA(t)}function vA(t){this._context=t}function mA(t){return new gA(t)}function bA(t){return new yA(t)}function _A(t){this._context=t}function xA(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function wA(t){return new _A(t)}function MA(t,e){this._context=t,this._t=e}function TA(t){return new MA(t,.5)}function AA(t){return new MA(t,0)}function SA(t){return new MA(t,1)}function EA(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function kA(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function NA(t,e){return t[e]}function CA(t){const e=[];return e.key=t,e}function DA(){var t=gM([]),e=kA,n=EA,r=NA;function i(i){var o,a,u=Array.from(t.apply(this,arguments),CA),c=u.length,s=-1;for(const t of i)for(o=0,++s;o<c;++o)(u[o][s]=[0,+r(t,u[o].key,s,i)]).data=t;for(o=0,a=RM(e(u));o<c;++o)u[a[o]].index=o;return n(u,a),u}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:gM(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:gM(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?kA:"function"==typeof t?t:gM(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?EA:t,i):n},i}function PA(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}EA(t,e)}}function jA(t,e){if((u=t.length)>0)for(var n,r,i,o,a,u,c=0,s=t[e[0]].length;c<s;++c)for(o=a=0,n=0;n<u;++n)(i=(r=t[e[n]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function qA(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<n;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}EA(t,e)}}function LA(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var u=0,c=0,s=0;u<i;++u){for(var f=t[e[u]],l=f[a][1]||0,h=(l-(f[a-1][1]||0))/2,d=0;d<u;++d){var p=t[e[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}c+=l,s+=h*l}n[a-1][1]+=n[a-1][0]=o,c&&(o-=s/c)}n[a-1][1]+=n[a-1][0]=o,EA(t,e)}}function OA(t){var e=t.map(RA);return kA(t).sort((function(t,n){return e[t]-e[n]}))}function RA(t){for(var e,n=-1,r=0,i=t.length,o=-1/0;++n<i;)(e=+t[n][1])>o&&(o=e,r=n);return r}function $A(t){var e=t.map(zA);return kA(t).sort((function(t,n){return e[t]-e[n]}))}function zA(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}function IA(t){return $A(t).reverse()}function HA(t){var e,n,r=t.length,i=t.map(zA),o=OA(t),a=0,u=0,c=[],s=[];for(e=0;e<r;++e)n=o[e],a<u?(a+=i[n],c.push(n)):(u+=i[n],s.push(n));return s.reverse().concat(c)}function FA(t){return kA(t).reverse()}sA.prototype={areaStart:zT,areaEnd:zT,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},gA.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:pA(this,this._t0,dA(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,pA(this,dA(this,n=hA(this,t,e)),n);break;default:pA(this,this._t0,n=hA(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(yA.prototype=Object.create(gA.prototype)).point=function(t,e){gA.prototype.point.call(this,e,t)},vA.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},_A.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=xA(t),i=xA(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},MA.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var BA="%Y-%m-%dT%H:%M:%S.%LZ",UA=Date.prototype.toISOString?function(t){return t.toISOString()}:Zb(BA);const YA=UA;var WA=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:Qb(BA);const XA=WA;function VA(t,e,n){var r=new pi,i=e;return null==e?(r.restart(t,e,n),r):(r._restart=r.restart,r.restart=function(t,e,n){e=+e,n=null==n?hi():+n,r._restart((function o(a){a+=i,r._restart(o,i+=e,n),t(a)}),e,n)},r.restart(t,e,n),r)}const GA=t=>()=>t;function ZA(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function QA(t,e,n){this.k=t,this.x=e,this.y=n}QA.prototype={constructor:QA,scale:function(t){return 1===t?this:new QA(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new QA(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var KA=new QA(1,0,0);function JA(t){for(;!t.__zoom;)if(!(t=t.parentNode))return KA;return t.__zoom}function tS(t){t.stopImmediatePropagation()}function eS(t){t.preventDefault(),t.stopImmediatePropagation()}function nS(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function rS(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function iS(){return this.__zoom||KA}function oS(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function aS(){return navigator.maxTouchPoints||"ontouchstart"in this}function uS(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function cS(){var t,e,n,r=nS,i=rS,o=uS,a=oS,u=aS,c=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],f=250,l=Xy,h=Ee("start","zoom","end"),d=500,p=150,g=0,y=10;function v(t){t.property("__zoom",iS).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",S).filter(u).on("touchstart.zoom",E).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",N).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(t,e){return(e=Math.max(c[0],Math.min(c[1],e)))===t.k?t:new QA(e,t.x,t.y)}function b(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new QA(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,r){t.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=w(t,o).event(r),u=i.apply(t,o),c=null==n?_(u):"function"==typeof n?n.apply(t,o):n,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),f=t.__zoom,h="function"==typeof e?e.apply(t,o):e,d=l(f.invert(c).concat(s/f.k),h.invert(c).concat(s/h.k));return function(t){if(1===t)t=h;else{var e=d(t),n=s/e[2];t=new QA(n,c[0]-e[0]*n,c[1]-e[1]*n)}a.zoom(null,t)}}))}function w(t,e,n){return!n&&t.__zooming||new M(t,e)}function M(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function T(t,...e){if(r.apply(this,arguments)){var n=w(this,e).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),f=ti(t);if(n.wheel)n.mouse[0][0]===f[0]&&n.mouse[0][1]===f[1]||(n.mouse[1]=i.invert(n.mouse[0]=f)),clearTimeout(n.wheel);else{if(i.k===u)return;n.mouse=[f,i.invert(f)],qi(this),n.start()}eS(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),p),n.zoom("mouse",o(b(m(i,u),n.mouse[0],n.mouse[1]),n.extent,s))}}function A(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,a=w(this,e,!0).event(t),u=Fn(t.view).on("mousemove.zoom",(function(t){if(eS(t),!a.moved){var e=t.clientX-f,n=t.clientY-l;a.moved=e*e+n*n>g}a.event(t).zoom("mouse",o(b(a.that.__zoom,a.mouse[0]=ti(t,i),a.mouse[1]),a.extent,s))}),!0).on("mouseup.zoom",(function(t){u.on("mousemove.zoom mouseup.zoom",null),Vn(t.view,a.moved),eS(t),a.event(t).end()}),!0),c=ti(t,i),f=t.clientX,l=t.clientY;Xn(t.view),tS(t),a.mouse=[c,this.__zoom.invert(c)],qi(this),a.start()}}function S(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=ti(t.changedTouches?t.changedTouches[0]:t,this),u=n.invert(a),c=n.k*(t.shiftKey?.5:2),l=o(b(m(n,c),a,u),i.apply(this,e),s);eS(t),f>0?Fn(this).transition().duration(f).call(x,l,a,t):Fn(this).call(v.transform,l,a,t)}}function E(n,...i){if(r.apply(this,arguments)){var o,a,u,c,s=n.touches,f=s.length,l=w(this,i,n.changedTouches.length===f).event(n);for(tS(n),a=0;a<f;++a)c=[c=ti(u=s[a],this),this.__zoom.invert(c),u.identifier],l.touch0?l.touch1||l.touch0[2]===c[2]||(l.touch1=c,l.taps=0):(l.touch0=c,o=!0,l.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(l.taps<2&&(e=c[0],t=setTimeout((function(){t=null}),d)),qi(this),l.start())}}function k(t,...e){if(this.__zooming){var n,r,i,a,u=w(this,e).event(t),c=t.changedTouches,f=c.length;for(eS(t),n=0;n<f;++n)i=ti(r=c[n],this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var l=u.touch0[0],h=u.touch0[1],d=u.touch1[0],p=u.touch1[1],g=(g=d[0]-l[0])*g+(g=d[1]-l[1])*g,y=(y=p[0]-h[0])*y+(y=p[1]-h[1])*y;r=m(r,Math.sqrt(g/y)),i=[(l[0]+d[0])/2,(l[1]+d[1])/2],a=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],a=u.touch0[1]}u.zoom("touch",o(b(r,i,a),u.extent,s))}}function N(t,...r){if(this.__zooming){var i,o,a=w(this,r).event(t),u=t.changedTouches,c=u.length;for(tS(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),d),i=0;i<c;++i)o=u[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=ti(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<y)){var s=Fn(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return v.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",iS),t!==i?x(t,e,n,r):i.interrupt().each((function(){w(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,r){v.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,r)},v.scaleTo=function(t,e,n,r){v.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==n?_(t):"function"==typeof n?n.apply(this,arguments):n,u=r.invert(a),c="function"==typeof e?e.apply(this,arguments):e;return o(b(m(r,c),a,u),t,s)}),n,r)},v.translateBy=function(t,e,n,r){v.transform(t,(function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),s)}),null,r)},v.translateTo=function(t,e,n,r,a){v.transform(t,(function(){var t=i.apply(this,arguments),a=this.__zoom,u=null==r?_(t):"function"==typeof r?r.apply(this,arguments):r;return o(KA.translate(u[0],u[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,s)}),r,a)},M.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=Fn(this.that).datum();h.call(t,this.that,new ZA(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:h}),e)}},v.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:GA(+t),v):a},v.filter=function(t){return arguments.length?(r="function"==typeof t?t:GA(!!t),v):r},v.touchable=function(t){return arguments.length?(u="function"==typeof t?t:GA(!!t),v):u},v.extent=function(t){return arguments.length?(i="function"==typeof t?t:GA([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):i},v.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],v):[c[0],c[1]]},v.translateExtent=function(t){return arguments.length?(s[0][0]=+t[0][0],s[1][0]=+t[1][0],s[0][1]=+t[0][1],s[1][1]=+t[1][1],v):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},v.constrain=function(t){return arguments.length?(o=t,v):o},v.duration=function(t){return arguments.length?(f=+t,v):f},v.interpolate=function(t){return arguments.length?(l=t,v):l},v.on=function(){var t=h.on.apply(h,arguments);return t===h?v:t},v.clickDistance=function(t){return arguments.length?(g=(t=+t)*t,v):Math.sqrt(g)},v.tapDistance=function(t){return arguments.length?(y=+t,v):y},v}JA.prototype=QA.prototype}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(80)})();