@fgbg/mdocs 1.3.22 → 1.3.23

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.
Files changed (50) hide show
  1. package/README.md +1 -1
  2. package/agent-skills/changelog/SKILL.md +13 -0
  3. package/agent-skills/getting-started-installation/SKILL.md +8 -2
  4. package/dist/server/agent/Agent/session-manager.js +354 -144
  5. package/dist/server/agent/Agent/session-manager.js.map +1 -1
  6. package/dist/server/agent/Agent/session-manager.queue.test.js +65 -0
  7. package/dist/server/agent/Agent/session-manager.queue.test.js.map +1 -0
  8. package/dist/server/agent/Agent/session-meta-lock.js +73 -0
  9. package/dist/server/agent/Agent/session-meta-lock.js.map +1 -0
  10. package/dist/server/agent/Agent/session-meta-lock.test.js +44 -0
  11. package/dist/server/agent/Agent/session-meta-lock.test.js.map +1 -0
  12. package/dist/server/agent/Agent/session-repair.test.js +40 -0
  13. package/dist/server/agent/Agent/session-repair.test.js.map +1 -0
  14. package/dist/server/cli/main.js +73 -0
  15. package/dist/server/cli/main.js.map +1 -1
  16. package/dist/server/config/index.js +2 -1
  17. package/dist/server/config/index.js.map +1 -1
  18. package/dist/server/main.js +6 -0
  19. package/dist/server/main.js.map +1 -1
  20. package/dist/server/search/embedding-model.js +33 -11
  21. package/dist/server/search/embedding-model.js.map +1 -1
  22. package/dist/web/assets/{AgentChatPanel-BZlAgyrV.js → AgentChatPanel-CXCoVr71.js} +3 -3
  23. package/dist/web/assets/{AgentSkillFormCard-CzJG8FK4.js → AgentSkillFormCard-BokYfssA.js} +1 -1
  24. package/dist/web/assets/{AiWriteWorkbench-DiSDDAee.js → AiWriteWorkbench-BLYRPfhm.js} +1 -1
  25. package/dist/web/assets/{DiagramEditor-NtNY3sZL-DfkpQX3P.js → DiagramEditor-NtNY3sZL-uAUfkpbp.js} +1 -1
  26. package/dist/web/assets/DocumentEditor-C7eEw_Gh.js +1 -0
  27. package/dist/web/assets/HtmlEditor-B8hAvriH.js +1 -0
  28. package/dist/web/assets/{MergeView-CbFSN3Bi.js → MergeView-3RaowcU-.js} +1 -1
  29. package/dist/web/assets/{PlaygroundPage-DuMH_V-7.js → PlaygroundPage-Bc54r4cU.js} +1 -1
  30. package/dist/web/assets/{SettingsPage-C_RMO-5M.js → SettingsPage-hnisLfn5.js} +1 -1
  31. package/dist/web/assets/{Toolbar-D9FcRwg3.js → Toolbar-D0IqMu2I.js} +1 -1
  32. package/dist/web/assets/{VisitorPickerModal-CM13Y6jQ.js → VisitorPickerModal-C31LXFbB.js} +1 -1
  33. package/dist/web/assets/{check-Bf8YbzH7.js → check-CmDfmXpb.js} +1 -1
  34. package/dist/web/assets/{copy-SBghRY2T.js → copy-CeksexKY.js} +1 -1
  35. package/dist/web/assets/{diagram-CgEd0hrk.js → diagram-BF8g9yg4.js} +3 -3
  36. package/dist/web/assets/docPlainCharCount-D3z2Ee8P.js +21 -0
  37. package/dist/web/assets/{editor-CL03se2B.js → editor-DBWWidi3.js} +1 -1
  38. package/dist/web/assets/{index-Cwy87sZC.js → index-3-Dt0Ns3.js} +5 -5
  39. package/dist/web/assets/{meta2d-1-g23JOU.js → meta2d-DP4Vt_ZE.js} +1 -1
  40. package/dist/web/assets/{meta2dEngine-BD2XbzaV-ulfRZEvk.js → meta2dEngine-BD2XbzaV-CFDBvzS1.js} +1 -1
  41. package/dist/web/assets/{motion-Dyy8pB0Q.js → motion-BAXVQJfN.js} +1 -1
  42. package/dist/web/assets/{plus-CEapsZwl.js → plus-Vt2TO_HW.js} +1 -1
  43. package/dist/web/assets/{react-vendor-BuABiQkA.js → react-vendor-BVS1XoFi.js} +1 -1
  44. package/dist/web/assets/{react-BkX5Koku.js → react-zRau5ppr.js} +171 -168
  45. package/dist/web/assets/{ui-ZPt_BNBg.js → ui-CEFkTVnG.js} +200 -181
  46. package/dist/web/index.html +5 -5
  47. package/package.json +2 -2
  48. package/dist/web/assets/DocChrome-QTGER_Af.js +0 -21
  49. package/dist/web/assets/DocumentEditor-DYSRZnJa.js +0 -1
  50. package/dist/web/assets/HtmlEditor-oDPrhq3o.js +0 -1
@@ -1,8 +1,8 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ui-ZPt_BNBg.js","assets/react-vendor-BuABiQkA.js","assets/motion-Dyy8pB0Q.js"])))=>i.map(i=>d[i]);
2
- var Kve=Object.defineProperty;var Zve=(t,e,r)=>e in t?Kve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Tr=(t,e,r)=>Zve(t,typeof e!="symbol"?e+"":e,r);import{f as gi,i as Qve,h as aw,j as Jve,k as IS,l as mA,m as Uq,n as qq,o as Hq,p as Yq,q as Xq,r as e1e,t as t1e,v as jq,x as r1e,y as n1e,z as i1e,A as a1e,B as s1e,C as o1e,D as l1e,E as c1e,F as u1e,G as h1e,H as d1e,I as f1e,J as p1e,K as g1e,L as m1e,M as y1e,N as v1e,O as x1e,P as b1e,Q as T1e,R as C1e,S as w1e,T as Kq,U as yA,V as E1e,W as S1e,X as k1e,Y as _1e,Z as A1e,_ as R1e,$ as bF,a0 as L1e,a1 as I1e,a2 as D1e,a3 as N1e,a4 as M1e}from"./ui-ZPt_BNBg.js";import{_ as Ot,C as Jo,B as dv}from"./react-vendor-BuABiQkA.js";var $I="http://www.w3.org/1999/xhtml";const TF={svg:"http://www.w3.org/2000/svg",xhtml:$I,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function DS(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),TF.hasOwnProperty(e)?{space:TF[e],local:t}:t}function $1e(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===$I&&e.documentElement.namespaceURI===$I?e.createElement(t):e.createElementNS(r,t)}}function O1e(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Zq(t){var e=DS(t);return(e.local?O1e:$1e)(e)}function P1e(){}function jN(t){return t==null?P1e:function(){return this.querySelector(t)}}function B1e(t){typeof t!="function"&&(t=jN(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=new Array(s),l,u,h=0;h<s;++h)(l=a[h])&&(u=t.call(l,l.__data__,h,a))&&("__data__"in l&&(u.__data__=l.__data__),o[h]=u);return new cs(n,this._parents)}function F1e(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function z1e(){return[]}function Qq(t){return t==null?z1e:function(){return this.querySelectorAll(t)}}function G1e(t){return function(){return F1e(t.apply(this,arguments))}}function V1e(t){typeof t=="function"?t=G1e(t):t=Qq(t);for(var e=this._groups,r=e.length,n=[],i=[],a=0;a<r;++a)for(var s=e[a],o=s.length,l,u=0;u<o;++u)(l=s[u])&&(n.push(t.call(l,l.__data__,u,s)),i.push(l));return new cs(n,i)}function Jq(t){return function(){return this.matches(t)}}function eH(t){return function(e){return e.matches(t)}}var W1e=Array.prototype.find;function U1e(t){return function(){return W1e.call(this.children,t)}}function q1e(){return this.firstElementChild}function H1e(t){return this.select(t==null?q1e:U1e(typeof t=="function"?t:eH(t)))}var Y1e=Array.prototype.filter;function X1e(){return Array.from(this.children)}function j1e(t){return function(){return Y1e.call(this.children,t)}}function K1e(t){return this.selectAll(t==null?X1e:j1e(typeof t=="function"?t:eH(t)))}function Z1e(t){typeof t!="function"&&(t=Jq(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=[],l,u=0;u<s;++u)(l=a[u])&&t.call(l,l.__data__,u,a)&&o.push(l);return new cs(n,this._parents)}function tH(t){return new Array(t.length)}function Q1e(){return new cs(this._enter||this._groups.map(tH),this._parents)}function sw(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}sw.prototype={constructor:sw,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)}};function J1e(t){return function(){return t}}function exe(t,e,r,n,i,a){for(var s=0,o,l=e.length,u=a.length;s<u;++s)(o=e[s])?(o.__data__=a[s],n[s]=o):r[s]=new sw(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function txe(t,e,r,n,i,a,s){var o,l,u=new Map,h=e.length,d=a.length,f=new Array(h),p;for(o=0;o<h;++o)(l=e[o])&&(f[o]=p=s.call(l,l.__data__,o,e)+"",u.has(p)?i[o]=l:u.set(p,l));for(o=0;o<d;++o)p=s.call(t,a[o],o,a)+"",(l=u.get(p))?(n[o]=l,l.__data__=a[o],u.delete(p)):r[o]=new sw(t,a[o]);for(o=0;o<h;++o)(l=e[o])&&u.get(f[o])===l&&(i[o]=l)}function rxe(t){return t.__data__}function nxe(t,e){if(!arguments.length)return Array.from(this,rxe);var r=e?txe:exe,n=this._parents,i=this._groups;typeof t!="function"&&(t=J1e(t));for(var a=i.length,s=new Array(a),o=new Array(a),l=new Array(a),u=0;u<a;++u){var h=n[u],d=i[u],f=d.length,p=ixe(t.call(h,h&&h.__data__,u,n)),g=p.length,m=o[u]=new Array(g),y=s[u]=new Array(g),v=l[u]=new Array(f);r(h,d,m,y,v,p,e);for(var T=0,b=0,C,w;T<g;++T)if(C=m[T]){for(T>=b&&(b=T+1);!(w=y[b])&&++b<g;);C._next=w||null}}return s=new cs(s,n),s._enter=o,s._exit=l,s}function ixe(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function axe(){return new cs(this._exit||this._groups.map(tH),this._parents)}function sxe(t,e,r){var n=this.enter(),i=this,a=this.exit();return typeof t=="function"?(n=t(n),n&&(n=n.selection())):n=n.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function oxe(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,a=n.length,s=Math.min(i,a),o=new Array(i),l=0;l<s;++l)for(var u=r[l],h=n[l],d=u.length,f=o[l]=new Array(d),p,g=0;g<d;++g)(p=u[g]||h[g])&&(f[g]=p);for(;l<i;++l)o[l]=r[l];return new cs(o,this._parents)}function lxe(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n=t[e],i=n.length-1,a=n[i],s;--i>=0;)(s=n[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function cxe(t){t||(t=uxe);function e(d,f){return d&&f?t(d.__data__,f.__data__):!d-!f}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var s=r[a],o=s.length,l=i[a]=new Array(o),u,h=0;h<o;++h)(u=s[h])&&(l[h]=u);l.sort(e)}return new cs(i,this._parents).order()}function uxe(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function hxe(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function dxe(){return Array.from(this)}function fxe(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length;i<a;++i){var s=n[i];if(s)return s}return null}function pxe(){let t=0;for(const e of this)++t;return t}function gxe(){return!this.node()}function mxe(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var i=e[r],a=0,s=i.length,o;a<s;++a)(o=i[a])&&t.call(o,o.__data__,a,i);return this}function yxe(t){return function(){this.removeAttribute(t)}}function vxe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function xxe(t,e){return function(){this.setAttribute(t,e)}}function bxe(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Txe(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Cxe(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function wxe(t,e){var r=DS(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((e==null?r.local?vxe:yxe:typeof e=="function"?r.local?Cxe:Txe:r.local?bxe:xxe)(r,e))}function rH(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Exe(t){return function(){this.style.removeProperty(t)}}function Sxe(t,e,r){return function(){this.style.setProperty(t,e,r)}}function kxe(t,e,r){return function(){var n=e.apply(this,arguments);n==null?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}function _xe(t,e,r){return arguments.length>1?this.each((e==null?Exe:typeof e=="function"?kxe:Sxe)(t,e,r??"")):S0(this.node(),t)}function S0(t,e){return t.style.getPropertyValue(e)||rH(t).getComputedStyle(t,null).getPropertyValue(e)}function Axe(t){return function(){delete this[t]}}function Rxe(t,e){return function(){this[t]=e}}function Lxe(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Ixe(t,e){return arguments.length>1?this.each((e==null?Axe:typeof e=="function"?Lxe:Rxe)(t,e)):this.node()[t]}function nH(t){return t.trim().split(/^|\s+/)}function KN(t){return t.classList||new iH(t)}function iH(t){this._node=t,this._names=nH(t.getAttribute("class")||"")}iH.prototype={add:function(t){var e=this._names.indexOf(t);e<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}};function aH(t,e){for(var r=KN(t),n=-1,i=e.length;++n<i;)r.add(e[n])}function sH(t,e){for(var r=KN(t),n=-1,i=e.length;++n<i;)r.remove(e[n])}function Dxe(t){return function(){aH(this,t)}}function Nxe(t){return function(){sH(this,t)}}function Mxe(t,e){return function(){(e.apply(this,arguments)?aH:sH)(this,t)}}function $xe(t,e){var r=nH(t+"");if(arguments.length<2){for(var n=KN(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof e=="function"?Mxe:e?Dxe:Nxe)(r,e))}function Oxe(){this.textContent=""}function Pxe(t){return function(){this.textContent=t}}function Bxe(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Fxe(t){return arguments.length?this.each(t==null?Oxe:(typeof t=="function"?Bxe:Pxe)(t)):this.node().textContent}function zxe(){this.innerHTML=""}function Gxe(t){return function(){this.innerHTML=t}}function Vxe(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Wxe(t){return arguments.length?this.each(t==null?zxe:(typeof t=="function"?Vxe:Gxe)(t)):this.node().innerHTML}function Uxe(){this.nextSibling&&this.parentNode.appendChild(this)}function qxe(){return this.each(Uxe)}function Hxe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yxe(){return this.each(Hxe)}function Xxe(t){var e=typeof t=="function"?t:Zq(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function jxe(){return null}function Kxe(t,e){var r=typeof t=="function"?t:Zq(t),n=e==null?jxe:typeof e=="function"?e:jN(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function Zxe(){var t=this.parentNode;t&&t.removeChild(this)}function Qxe(){return this.each(Zxe)}function Jxe(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ebe(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tbe(t){return this.select(t?ebe:Jxe)}function rbe(t){return arguments.length?this.property("__data__",t):this.node().__data__}function nbe(t){return function(e){t.call(this,e,this.__data__)}}function ibe(t){return t.trim().split(/^|\s+/).map(function(e){var r="",n=e.indexOf(".");return n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function abe(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,a;r<i;++r)a=e[r],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++n]=a;++n?e.length=n:delete this.__on}}}function sbe(t,e,r){return function(){var n=this.__on,i,a=nbe(e);if(n){for(var s=0,o=n.length;s<o;++s)if((i=n[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=e;return}}this.addEventListener(t.type,a,r),i={type:t.type,name:t.name,value:e,listener:a,options:r},n?n.push(i):this.__on=[i]}}function obe(t,e,r){var n=ibe(t+""),i,a=n.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,u=o.length,h;l<u;++l)for(i=0,h=o[l];i<a;++i)if((s=n[i]).type===h.type&&s.name===h.name)return h.value}return}for(o=e?sbe:abe,i=0;i<a;++i)this.each(o(n[i],e,r));return this}function oH(t,e,r){var n=rH(t),i=n.CustomEvent;typeof i=="function"?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function lbe(t,e){return function(){return oH(this,t,e)}}function cbe(t,e){return function(){return oH(this,t,e.apply(this,arguments))}}function ube(t,e){return this.each((typeof e=="function"?cbe:lbe)(t,e))}function*hbe(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length,s;i<a;++i)(s=n[i])&&(yield s)}var lH=[null];function cs(t,e){this._groups=t,this._parents=e}function zb(){return new cs([[document.documentElement]],lH)}function dbe(){return this}cs.prototype=zb.prototype={constructor:cs,select:B1e,selectAll:V1e,selectChild:H1e,selectChildren:K1e,filter:Z1e,data:nxe,enter:Q1e,exit:axe,join:sxe,merge:oxe,selection:dbe,order:lxe,sort:cxe,call:hxe,nodes:dxe,node:fxe,size:pxe,empty:gxe,each:mxe,attr:wxe,style:_xe,property:Ixe,classed:$xe,text:Fxe,html:Wxe,raise:qxe,lower:Yxe,append:Xxe,insert:Kxe,remove:Qxe,clone:tbe,datum:rbe,on:obe,dispatch:ube,[Symbol.iterator]:hbe};function Qe(t){return typeof t=="string"?new cs([[document.querySelector(t)]],[document.documentElement]):new cs([[t]],lH)}function fbe(t){let e;for(;e=t.sourceEvent;)t=e;return t}function kl(t,e){if(t=fbe(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n=n.matrixTransform(e.getScreenCTM().inverse()),[n.x,n.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 pbe={value:()=>{}};function NS(){for(var t=0,e=arguments.length,r={},n;t<e;++t){if(!(n=arguments[t]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new j2(r)}function j2(t){this._=t}function gbe(t,e){return t.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}j2.prototype=NS.prototype={constructor:j2,on:function(t,e){var r=this._,n=gbe(t+"",r),i,a=-1,s=n.length;if(arguments.length<2){for(;++a<s;)if((i=(t=n[a]).type)&&(i=mbe(r[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<s;)if(i=(t=n[a]).type)r[i]=CF(r[i],t.name,e);else if(e==null)for(i in r)r[i]=CF(r[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new j2(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],n=0,i=a.length;n<i;++n)a[n].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}};function mbe(t,e){for(var r=0,n=t.length,i;r<n;++r)if((i=t[r]).name===e)return i.value}function CF(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=pbe,t=t.slice(0,n).concat(t.slice(n+1));break}return r!=null&&t.push({name:e,value:r}),t}const ybe={passive:!1},Rx={capture:!0,passive:!1};function vA(t){t.stopImmediatePropagation()}function Tp(t){t.preventDefault(),t.stopImmediatePropagation()}function cH(t){var e=t.document.documentElement,r=Qe(t).on("dragstart.drag",Tp,Rx);"onselectstart"in e?r.on("selectstart.drag",Tp,Rx):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function uH(t,e){var r=t.document.documentElement,n=Qe(t).on("dragstart.drag",null);e&&(n.on("click.drag",Tp,Rx),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const VT=t=>()=>t;function OI(t,{sourceEvent:e,subject:r,target:n,identifier:i,active:a,x:s,y:o,dx:l,dy:u,dispatch:h}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:o,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:h}})}OI.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function vbe(t){return!t.ctrlKey&&!t.button}function xbe(){return this.parentNode}function bbe(t,e){return e??{x:t.x,y:t.y}}function Tbe(){return navigator.maxTouchPoints||"ontouchstart"in this}function dyt(){var t=vbe,e=xbe,r=bbe,n=Tbe,i={},a=NS("start","drag","end"),s=0,o,l,u,h,d=0;function f(C){C.on("mousedown.drag",p).filter(n).on("touchstart.drag",y).on("touchmove.drag",v,ybe).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(C,w){if(!(h||!t.call(this,C,w))){var S=b(this,e.call(this,C,w),C,w,"mouse");S&&(Qe(C.view).on("mousemove.drag",g,Rx).on("mouseup.drag",m,Rx),cH(C.view),vA(C),u=!1,o=C.clientX,l=C.clientY,S("start",C))}}function g(C){if(Tp(C),!u){var w=C.clientX-o,S=C.clientY-l;u=w*w+S*S>d}i.mouse("drag",C)}function m(C){Qe(C.view).on("mousemove.drag mouseup.drag",null),uH(C.view,u),Tp(C),i.mouse("end",C)}function y(C,w){if(t.call(this,C,w)){var S=C.changedTouches,E=e.call(this,C,w),_=S.length,R,I;for(R=0;R<_;++R)(I=b(this,E,C,w,S[R].identifier,S[R]))&&(vA(C),I("start",C,S[R]))}}function v(C){var w=C.changedTouches,S=w.length,E,_;for(E=0;E<S;++E)(_=i[w[E].identifier])&&(Tp(C),_("drag",C,w[E]))}function T(C){var w=C.changedTouches,S=w.length,E,_;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),E=0;E<S;++E)(_=i[w[E].identifier])&&(vA(C),_("end",C,w[E]))}function b(C,w,S,E,_,R){var I=a.copy(),L=kl(R||S,w),P,$,A;if((A=r.call(C,new OI("beforestart",{sourceEvent:S,target:f,identifier:_,active:s,x:L[0],y:L[1],dx:0,dy:0,dispatch:I}),E))!=null)return P=A.x-L[0]||0,$=A.y-L[1]||0,function D(O,N,M){var B=L,z;switch(O){case"start":i[_]=D,z=s++;break;case"end":delete i[_],--s;case"drag":L=kl(M||N,w),z=s;break}I.call(O,C,new OI(O,{sourceEvent:N,subject:A,target:f,identifier:_,active:z,x:L[0]+P,y:L[1]+$,dx:L[0]-B[0],dy:L[1]-B[1],dispatch:I}),E)}}return f.filter=function(C){return arguments.length?(t=typeof C=="function"?C:VT(!!C),f):t},f.container=function(C){return arguments.length?(e=typeof C=="function"?C:VT(C),f):e},f.subject=function(C){return arguments.length?(r=typeof C=="function"?C:VT(C),f):r},f.touchable=function(C){return arguments.length?(n=typeof C=="function"?C:VT(!!C),f):n},f.on=function(){var C=a.on.apply(a,arguments);return C===a?f:C},f.clickDistance=function(C){return arguments.length?(d=(C=+C)*C,f):Math.sqrt(d)},f}function Gb(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function MS(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Ed(){}var Lx=.7,ow=1/Lx,Cp="\\s*([+-]?\\d+)\\s*",Ix="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Go="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Cbe=/^#([0-9a-f]{3,8})$/,wbe=new RegExp(`^rgb\\(${Cp},${Cp},${Cp}\\)$`),Ebe=new RegExp(`^rgb\\(${Go},${Go},${Go}\\)$`),Sbe=new RegExp(`^rgba\\(${Cp},${Cp},${Cp},${Ix}\\)$`),kbe=new RegExp(`^rgba\\(${Go},${Go},${Go},${Ix}\\)$`),_be=new RegExp(`^hsl\\(${Ix},${Go},${Go}\\)$`),Abe=new RegExp(`^hsla\\(${Ix},${Go},${Go},${Ix}\\)$`),wF={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};Gb(Ed,Jh,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:EF,formatHex:EF,formatHex8:Rbe,formatHsl:Lbe,formatRgb:SF,toString:SF});function EF(){return this.rgb().formatHex()}function Rbe(){return this.rgb().formatHex8()}function Lbe(){return dH(this).formatHsl()}function SF(){return this.rgb().formatRgb()}function Jh(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Cbe.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?kF(e):r===3?new Zi(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?WT(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?WT(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=wbe.exec(t))?new Zi(e[1],e[2],e[3],1):(e=Ebe.exec(t))?new Zi(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Sbe.exec(t))?WT(e[1],e[2],e[3],e[4]):(e=kbe.exec(t))?WT(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=_be.exec(t))?RF(e[1],e[2]/100,e[3]/100,1):(e=Abe.exec(t))?RF(e[1],e[2]/100,e[3]/100,e[4]):wF.hasOwnProperty(t)?kF(wF[t]):t==="transparent"?new Zi(NaN,NaN,NaN,0):null}function kF(t){return new Zi(t>>16&255,t>>8&255,t&255,1)}function WT(t,e,r,n){return n<=0&&(t=e=r=NaN),new Zi(t,e,r,n)}function hH(t){return t instanceof Ed||(t=Jh(t)),t?(t=t.rgb(),new Zi(t.r,t.g,t.b,t.opacity)):new Zi}function PI(t,e,r,n){return arguments.length===1?hH(t):new Zi(t,e,r,n??1)}function Zi(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Gb(Zi,PI,MS(Ed,{brighter(t){return t=t==null?ow:Math.pow(ow,t),new Zi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Lx:Math.pow(Lx,t),new Zi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Zi(qh(this.r),qh(this.g),qh(this.b),lw(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:_F,formatHex:_F,formatHex8:Ibe,formatRgb:AF,toString:AF}));function _F(){return`#${Mh(this.r)}${Mh(this.g)}${Mh(this.b)}`}function Ibe(){return`#${Mh(this.r)}${Mh(this.g)}${Mh(this.b)}${Mh((isNaN(this.opacity)?1:this.opacity)*255)}`}function AF(){const t=lw(this.opacity);return`${t===1?"rgb(":"rgba("}${qh(this.r)}, ${qh(this.g)}, ${qh(this.b)}${t===1?")":`, ${t})`}`}function lw(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function qh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Mh(t){return t=qh(t),(t<16?"0":"")+t.toString(16)}function RF(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new js(t,e,r,n)}function dH(t){if(t instanceof js)return new js(t.h,t.s,t.l,t.opacity);if(t instanceof Ed||(t=Jh(t)),!t)return new js;if(t instanceof js)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),s=NaN,o=a-i,l=(a+i)/2;return o?(e===a?s=(r-n)/o+(r<n)*6:r===a?s=(n-e)/o+2:s=(e-r)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new js(s,o,l,t.opacity)}function Dbe(t,e,r,n){return arguments.length===1?dH(t):new js(t,e,r,n??1)}function js(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Gb(js,Dbe,MS(Ed,{brighter(t){return t=t==null?ow:Math.pow(ow,t),new js(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Lx:Math.pow(Lx,t),new js(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Zi(xA(t>=240?t-240:t+120,i,n),xA(t,i,n),xA(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new js(LF(this.h),UT(this.s),UT(this.l),lw(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=lw(this.opacity);return`${t===1?"hsl(":"hsla("}${LF(this.h)}, ${UT(this.s)*100}%, ${UT(this.l)*100}%${t===1?")":`, ${t})`}`}}));function LF(t){return t=(t||0)%360,t<0?t+360:t}function UT(t){return Math.max(0,Math.min(1,t||0))}function xA(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Nbe=Math.PI/180,Mbe=180/Math.PI,cw=18,fH=.96422,pH=1,gH=.82521,mH=4/29,wp=6/29,yH=3*wp*wp,$be=wp*wp*wp;function vH(t){if(t instanceof Vo)return new Vo(t.l,t.a,t.b,t.opacity);if(t instanceof Nl)return xH(t);t instanceof Zi||(t=hH(t));var e=wA(t.r),r=wA(t.g),n=wA(t.b),i=bA((.2225045*e+.7168786*r+.0606169*n)/pH),a,s;return e===r&&r===n?a=s=i:(a=bA((.4360747*e+.3850649*r+.1430804*n)/fH),s=bA((.0139322*e+.0971045*r+.7141733*n)/gH)),new Vo(116*i-16,500*(a-i),200*(i-s),t.opacity)}function Obe(t,e,r,n){return arguments.length===1?vH(t):new Vo(t,e,r,n??1)}function Vo(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}Gb(Vo,Obe,MS(Ed,{brighter(t){return new Vo(this.l+cw*(t??1),this.a,this.b,this.opacity)},darker(t){return new Vo(this.l-cw*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=fH*TA(e),t=pH*TA(t),r=gH*TA(r),new Zi(CA(3.1338561*e-1.6168667*t-.4906146*r),CA(-.9787684*e+1.9161415*t+.033454*r),CA(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function bA(t){return t>$be?Math.pow(t,1/3):t/yH+mH}function TA(t){return t>wp?t*t*t:yH*(t-mH)}function CA(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function wA(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Pbe(t){if(t instanceof Nl)return new Nl(t.h,t.c,t.l,t.opacity);if(t instanceof Vo||(t=vH(t)),t.a===0&&t.b===0)return new Nl(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Mbe;return new Nl(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function BI(t,e,r,n){return arguments.length===1?Pbe(t):new Nl(t,e,r,n??1)}function Nl(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function xH(t){if(isNaN(t.h))return new Vo(t.l,0,0,t.opacity);var e=t.h*Nbe;return new Vo(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Gb(Nl,BI,MS(Ed,{brighter(t){return new Nl(this.h,this.c,this.l+cw*(t??1),this.opacity)},darker(t){return new Nl(this.h,this.c,this.l-cw*(t??1),this.opacity)},rgb(){return xH(this).rgb()}}));const $S=t=>()=>t;function bH(t,e){return function(r){return t+r*e}}function Bbe(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function Fbe(t,e){var r=e-t;return r?bH(t,r>180||r<-180?r-360*Math.round(r/360):r):$S(isNaN(t)?e:t)}function zbe(t){return(t=+t)==1?J1:function(e,r){return r-e?Bbe(e,r,t):$S(isNaN(e)?r:e)}}function J1(t,e){var r=e-t;return r?bH(t,r):$S(isNaN(t)?e:t)}const uw=function t(e){var r=zbe(e);function n(i,a){var s=r((i=PI(i)).r,(a=PI(a)).r),o=r(i.g,a.g),l=r(i.b,a.b),u=J1(i.opacity,a.opacity);return function(h){return i.r=s(h),i.g=o(h),i.b=l(h),i.opacity=u(h),i+""}}return n.gamma=t,n}(1);function Gbe(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=t[i]*(1-a)+e[i]*a;return n}}function Vbe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Wbe(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s<n;++s)i[s]=ZN(t[s],e[s]);for(;s<r;++s)a[s]=e[s];return function(o){for(s=0;s<n;++s)a[s]=i[s](o);return a}}function Ube(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Us(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function qbe(t,e){var r={},n={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?r[i]=ZN(t[i],e[i]):n[i]=e[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var FI=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,EA=new RegExp(FI.source,"g");function Hbe(t){return function(){return t}}function Ybe(t){return function(e){return t(e)+""}}function TH(t,e){var r=FI.lastIndex=EA.lastIndex=0,n,i,a,s=-1,o=[],l=[];for(t=t+"",e=e+"";(n=FI.exec(t))&&(i=EA.exec(e));)(a=i.index)>r&&(a=e.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:Us(n,i)})),r=EA.lastIndex;return r<e.length&&(a=e.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?Ybe(l[0].x):Hbe(e):(e=l.length,function(u){for(var h=0,d;h<e;++h)o[(d=l[h]).i]=d.x(u);return o.join("")})}function ZN(t,e){var r=typeof e,n;return e==null||r==="boolean"?$S(e):(r==="number"?Us:r==="string"?(n=Jh(e))?(e=n,uw):TH:e instanceof Jh?uw:e instanceof Date?Ube:Vbe(e)?Gbe:Array.isArray(e)?Wbe:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?qbe:Us)(t,e)}function Xbe(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var IF=180/Math.PI,zI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function CH(t,e,r,n,i,a){var s,o,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(o=Math.sqrt(r*r+n*n))&&(r/=o,n/=o,l/=o),t*n<e*r&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*IF,skewX:Math.atan(l)*IF,scaleX:s,scaleY:o}}var qT;function jbe(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?zI:CH(e.a,e.b,e.c,e.d,e.e,e.f)}function Kbe(t){return t==null||(qT||(qT=document.createElementNS("http://www.w3.org/2000/svg","g")),qT.setAttribute("transform",t),!(t=qT.transform.baseVal.consolidate()))?zI:(t=t.matrix,CH(t.a,t.b,t.c,t.d,t.e,t.f))}function wH(t,e,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,h,d,f,p,g){if(u!==d||h!==f){var m=p.push("translate(",null,e,null,r);g.push({i:m-4,x:Us(u,d)},{i:m-2,x:Us(h,f)})}else(d||f)&&p.push("translate("+d+e+f+r)}function s(u,h,d,f){u!==h?(u-h>180?h+=360:h-u>180&&(u+=360),f.push({i:d.push(i(d)+"rotate(",null,n)-2,x:Us(u,h)})):h&&d.push(i(d)+"rotate("+h+n)}function o(u,h,d,f){u!==h?f.push({i:d.push(i(d)+"skewX(",null,n)-2,x:Us(u,h)}):h&&d.push(i(d)+"skewX("+h+n)}function l(u,h,d,f,p,g){if(u!==d||h!==f){var m=p.push(i(p)+"scale(",null,",",null,")");g.push({i:m-4,x:Us(u,d)},{i:m-2,x:Us(h,f)})}else(d!==1||f!==1)&&p.push(i(p)+"scale("+d+","+f+")")}return function(u,h){var d=[],f=[];return u=t(u),h=t(h),a(u.translateX,u.translateY,h.translateX,h.translateY,d,f),s(u.rotate,h.rotate,d,f),o(u.skewX,h.skewX,d,f),l(u.scaleX,u.scaleY,h.scaleX,h.scaleY,d,f),u=h=null,function(p){for(var g=-1,m=f.length,y;++g<m;)d[(y=f[g]).i]=y.x(p);return d.join("")}}}var Zbe=wH(jbe,"px, ","px)","deg)"),Qbe=wH(Kbe,", ",")",")"),Jbe=1e-12;function DF(t){return((t=Math.exp(t))+1/t)/2}function eTe(t){return((t=Math.exp(t))-1/t)/2}function tTe(t){return((t=Math.exp(2*t))-1)/(t+1)}const rTe=function t(e,r,n){function i(a,s){var o=a[0],l=a[1],u=a[2],h=s[0],d=s[1],f=s[2],p=h-o,g=d-l,m=p*p+g*g,y,v;if(m<Jbe)v=Math.log(f/u)/e,y=function(E){return[o+E*p,l+E*g,u*Math.exp(e*E*v)]};else{var T=Math.sqrt(m),b=(f*f-u*u+n*m)/(2*u*r*T),C=(f*f-u*u-n*m)/(2*f*r*T),w=Math.log(Math.sqrt(b*b+1)-b),S=Math.log(Math.sqrt(C*C+1)-C);v=(S-w)/e,y=function(E){var _=E*v,R=DF(w),I=u/(r*T)*(R*tTe(e*_+w)-eTe(w));return[o+I*p,l+I*g,u*R/DF(e*_+w)]}}return y.duration=v*1e3*e/Math.SQRT2,y}return i.rho=function(a){var s=Math.max(.001,+a),o=s*s,l=o*o;return t(s,o,l)},i}(Math.SQRT2,2,4);function nTe(t){return function(e,r){var n=t((e=BI(e)).h,(r=BI(r)).h),i=J1(e.c,r.c),a=J1(e.l,r.l),s=J1(e.opacity,r.opacity);return function(o){return e.h=n(o),e.c=i(o),e.l=a(o),e.opacity=s(o),e+""}}}const iTe=nTe(Fbe);var k0=0,C1=0,zv=0,EH=1e3,hw,w1,dw=0,ed=0,OS=0,Dx=typeof performance=="object"&&performance.now?performance:Date,SH=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function QN(){return ed||(SH(aTe),ed=Dx.now()+OS)}function aTe(){ed=0}function fw(){this._call=this._time=this._next=null}fw.prototype=kH.prototype={constructor:fw,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?QN():+r)+(e==null?0:+e),!this._next&&w1!==this&&(w1?w1._next=this:hw=this,w1=this),this._call=t,this._time=r,GI()},stop:function(){this._call&&(this._call=null,this._time=1/0,GI())}};function kH(t,e,r){var n=new fw;return n.restart(t,e,r),n}function sTe(){QN(),++k0;for(var t=hw,e;t;)(e=ed-t._time)>=0&&t._call.call(void 0,e),t=t._next;--k0}function NF(){ed=(dw=Dx.now())+OS,k0=C1=0;try{sTe()}finally{k0=0,lTe(),ed=0}}function oTe(){var t=Dx.now(),e=t-dw;e>EH&&(OS-=e,dw=t)}function lTe(){for(var t,e=hw,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:hw=r);w1=t,GI(n)}function GI(t){if(!k0){C1&&(C1=clearTimeout(C1));var e=t-ed;e>24?(t<1/0&&(C1=setTimeout(NF,t-Dx.now()-OS)),zv&&(zv=clearInterval(zv))):(zv||(dw=Dx.now(),zv=setInterval(oTe,EH)),k0=1,SH(NF))}}function MF(t,e,r){var n=new fw;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var cTe=NS("start","end","cancel","interrupt"),uTe=[],_H=0,$F=1,VI=2,K2=3,OF=4,WI=5,Z2=6;function PS(t,e,r,n,i,a){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;hTe(t,r,{name:e,index:n,group:i,on:cTe,tween:uTe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:_H})}function JN(t,e){var r=po(t,e);if(r.state>_H)throw new Error("too late; already scheduled");return r}function el(t,e){var r=po(t,e);if(r.state>K2)throw new Error("too late; already running");return r}function po(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function hTe(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=kH(a,0,r.time);function a(u){r.state=$F,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var h,d,f,p;if(r.state!==$F)return l();for(h in n)if(p=n[h],p.name===r.name){if(p.state===K2)return MF(s);p.state===OF?(p.state=Z2,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete n[h]):+h<e&&(p.state=Z2,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete n[h])}if(MF(function(){r.state===K2&&(r.state=OF,r.timer.restart(o,r.delay,r.time),o(u))}),r.state=VI,r.on.call("start",t,t.__data__,r.index,r.group),r.state===VI){for(r.state=K2,i=new Array(f=r.tween.length),h=0,d=-1;h<f;++h)(p=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(i[++d]=p);i.length=d+1}}function o(u){for(var h=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=WI,1),d=-1,f=i.length;++d<f;)i[d].call(t,h);r.state===WI&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){r.state=Z2,r.timer.stop(),delete n[e];for(var u in n)return;delete t.__transition}}function Q2(t,e){var r=t.__transition,n,i,a=!0,s;if(r){e=e==null?null:e+"";for(s in r){if((n=r[s]).name!==e){a=!1;continue}i=n.state>VI&&n.state<WI,n.state=Z2,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[s]}a&&delete t.__transition}}function dTe(t){return this.each(function(){Q2(this,t)})}function fTe(t,e){var r,n;return function(){var i=el(this,t),a=i.tween;if(a!==r){n=r=a;for(var s=0,o=n.length;s<o;++s)if(n[s].name===e){n=n.slice(),n.splice(s,1);break}}i.tween=n}}function pTe(t,e,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=el(this,t),s=a.tween;if(s!==n){i=(n=s).slice();for(var o={name:e,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===e){i[l]=o;break}l===u&&i.push(o)}a.tween=i}}function gTe(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n=po(this.node(),r).tween,i=0,a=n.length,s;i<a;++i)if((s=n[i]).name===t)return s.value;return null}return this.each((e==null?fTe:pTe)(r,t,e))}function eM(t,e,r){var n=t._id;return t.each(function(){var i=el(this,n);(i.value||(i.value={}))[e]=r.apply(this,arguments)}),function(i){return po(i,n).value[e]}}function AH(t,e){var r;return(typeof e=="number"?Us:e instanceof Jh?uw:(r=Jh(e))?(e=r,uw):TH)(t,e)}function mTe(t){return function(){this.removeAttribute(t)}}function yTe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function vTe(t,e,r){var n,i=r+"",a;return function(){var s=this.getAttribute(t);return s===i?null:s===n?a:a=e(n=s,r)}}function xTe(t,e,r){var n,i=r+"",a;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===n?a:a=e(n=s,r)}}function bTe(t,e,r){var n,i,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=o+"",s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o)))}}function TTe(t,e,r){var n,i,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=o+"",s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o)))}}function CTe(t,e){var r=DS(t),n=r==="transform"?Qbe:AH;return this.attrTween(t,typeof e=="function"?(r.local?TTe:bTe)(r,n,eM(this,"attr."+t,e)):e==null?(r.local?yTe:mTe)(r):(r.local?xTe:vTe)(r,n,e))}function wTe(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function ETe(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function STe(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&ETe(t,a)),r}return i._value=e,i}function kTe(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&wTe(t,a)),r}return i._value=e,i}function _Te(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var n=DS(t);return this.tween(r,(n.local?STe:kTe)(n,e))}function ATe(t,e){return function(){JN(this,t).delay=+e.apply(this,arguments)}}function RTe(t,e){return e=+e,function(){JN(this,t).delay=e}}function LTe(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ATe:RTe)(e,t)):po(this.node(),e).delay}function ITe(t,e){return function(){el(this,t).duration=+e.apply(this,arguments)}}function DTe(t,e){return e=+e,function(){el(this,t).duration=e}}function NTe(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ITe:DTe)(e,t)):po(this.node(),e).duration}function MTe(t,e){if(typeof e!="function")throw new Error;return function(){el(this,t).ease=e}}function $Te(t){var e=this._id;return arguments.length?this.each(MTe(e,t)):po(this.node(),e).ease}function OTe(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;el(this,t).ease=r}}function PTe(t){if(typeof t!="function")throw new Error;return this.each(OTe(this._id,t))}function BTe(t){typeof t!="function"&&(t=Jq(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=[],l,u=0;u<s;++u)(l=a[u])&&t.call(l,l.__data__,u,a)&&o.push(l);return new Yl(n,this._parents,this._name,this._id)}function FTe(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),s=new Array(n),o=0;o<a;++o)for(var l=e[o],u=r[o],h=l.length,d=s[o]=new Array(h),f,p=0;p<h;++p)(f=l[p]||u[p])&&(d[p]=f);for(;o<n;++o)s[o]=e[o];return new Yl(s,this._parents,this._name,this._id)}function zTe(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function GTe(t,e,r){var n,i,a=zTe(e)?JN:el;return function(){var s=a(this,t),o=s.on;o!==n&&(i=(n=o).copy()).on(e,r),s.on=i}}function VTe(t,e){var r=this._id;return arguments.length<2?po(this.node(),r).on.on(t):this.each(GTe(r,t,e))}function WTe(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function UTe(){return this.on("end.remove",WTe(this._id))}function qTe(t){var e=this._name,r=this._id;typeof t!="function"&&(t=jN(t));for(var n=this._groups,i=n.length,a=new Array(i),s=0;s<i;++s)for(var o=n[s],l=o.length,u=a[s]=new Array(l),h,d,f=0;f<l;++f)(h=o[f])&&(d=t.call(h,h.__data__,f,o))&&("__data__"in h&&(d.__data__=h.__data__),u[f]=d,PS(u[f],e,r,f,u,po(h,r)));return new Yl(a,this._parents,e,r)}function HTe(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Qq(t));for(var n=this._groups,i=n.length,a=[],s=[],o=0;o<i;++o)for(var l=n[o],u=l.length,h,d=0;d<u;++d)if(h=l[d]){for(var f=t.call(h,h.__data__,d,l),p,g=po(h,r),m=0,y=f.length;m<y;++m)(p=f[m])&&PS(p,e,r,m,f,g);a.push(f),s.push(h)}return new Yl(a,s,e,r)}var YTe=zb.prototype.constructor;function XTe(){return new YTe(this._groups,this._parents)}function jTe(t,e){var r,n,i;return function(){var a=S0(this,t),s=(this.style.removeProperty(t),S0(this,t));return a===s?null:a===r&&s===n?i:i=e(r=a,n=s)}}function RH(t){return function(){this.style.removeProperty(t)}}function KTe(t,e,r){var n,i=r+"",a;return function(){var s=S0(this,t);return s===i?null:s===n?a:a=e(n=s,r)}}function ZTe(t,e,r){var n,i,a;return function(){var s=S0(this,t),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(t),S0(this,t))),s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o))}}function QTe(t,e){var r,n,i,a="style."+e,s="end."+a,o;return function(){var l=el(this,t),u=l.on,h=l.value[a]==null?o||(o=RH(e)):void 0;(u!==r||i!==h)&&(n=(r=u).copy()).on(s,i=h),l.on=n}}function JTe(t,e,r){var n=(t+="")=="transform"?Zbe:AH;return e==null?this.styleTween(t,jTe(t,n)).on("end.style."+t,RH(t)):typeof e=="function"?this.styleTween(t,ZTe(t,n,eM(this,"style."+t,e))).each(QTe(this._id,t)):this.styleTween(t,KTe(t,n,e),r).on("end.style."+t,null)}function e2e(t,e,r){return function(n){this.style.setProperty(t,e.call(this,n),r)}}function t2e(t,e,r){var n,i;function a(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&e2e(t,s,r)),n}return a._value=e,a}function r2e(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,t2e(t,e,r??""))}function n2e(t){return function(){this.textContent=t}}function i2e(t){return function(){var e=t(this);this.textContent=e??""}}function a2e(t){return this.tween("text",typeof t=="function"?i2e(eM(this,"text",t)):n2e(t==null?"":t+""))}function s2e(t){return function(e){this.textContent=t.call(this,e)}}function o2e(t){var e,r;function n(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&s2e(i)),e}return n._value=t,n}function l2e(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,o2e(t))}function c2e(){for(var t=this._name,e=this._id,r=LH(),n=this._groups,i=n.length,a=0;a<i;++a)for(var s=n[a],o=s.length,l,u=0;u<o;++u)if(l=s[u]){var h=po(l,e);PS(l,t,r,u,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Yl(n,this._parents,t,r)}function u2e(){var t,e,r=this,n=r._id,i=r.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--i===0&&a()}};r.each(function(){var u=el(this,n),h=u.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),u.on=e}),i===0&&a()})}var h2e=0;function Yl(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}function LH(){return++h2e}var gl=zb.prototype;Yl.prototype={constructor:Yl,select:qTe,selectAll:HTe,selectChild:gl.selectChild,selectChildren:gl.selectChildren,filter:BTe,merge:FTe,selection:XTe,transition:c2e,call:gl.call,nodes:gl.nodes,node:gl.node,size:gl.size,empty:gl.empty,each:gl.each,on:VTe,attr:CTe,attrTween:_Te,style:JTe,styleTween:r2e,text:a2e,textTween:l2e,remove:UTe,tween:gTe,delay:LTe,duration:NTe,ease:$Te,easeVarying:PTe,end:u2e,[Symbol.iterator]:gl[Symbol.iterator]};function d2e(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var f2e={time:null,delay:0,duration:250,ease:d2e};function p2e(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function g2e(t){var e,r;t instanceof Yl?(e=t._id,t=t._name):(e=LH(),(r=f2e).time=QN(),t=t==null?null:t+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var s=n[a],o=s.length,l,u=0;u<o;++u)(l=s[u])&&PS(l,t,e,u,s,r||p2e(l,e));return new Yl(n,this._parents,t,e)}zb.prototype.interrupt=dTe;zb.prototype.transition=g2e;const HT=t=>()=>t;function m2e(t,{sourceEvent:e,target:r,transform:n,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:i}})}function Ml(t,e,r){this.k=t,this.x=e,this.y=r}Ml.prototype={constructor:Ml,scale:function(t){return t===1?this:new Ml(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ml(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 tM=new Ml(1,0,0);y2e.prototype=Ml.prototype;function y2e(t){for(;!t.__zoom;)if(!(t=t.parentNode))return tM;return t.__zoom}function SA(t){t.stopImmediatePropagation()}function Gv(t){t.preventDefault(),t.stopImmediatePropagation()}function v2e(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function x2e(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.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 PF(){return this.__zoom||tM}function b2e(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function T2e(){return navigator.maxTouchPoints||"ontouchstart"in this}function C2e(t,e,r){var n=t.invertX(e[0][0])-r[0][0],i=t.invertX(e[1][0])-r[1][0],a=t.invertY(e[0][1])-r[0][1],s=t.invertY(e[1][1])-r[1][1];return t.translate(i>n?(n+i)/2:Math.min(0,n)||Math.max(0,i),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function fyt(){var t=v2e,e=x2e,r=C2e,n=b2e,i=T2e,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],o=250,l=rTe,u=NS("start","zoom","end"),h,d,f,p=500,g=150,m=0,y=10;function v(A){A.property("__zoom",PF).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",I).filter(i).on("touchstart.zoom",L).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(A,D,O,N){var M=A.selection?A.selection():A;M.property("__zoom",PF),A!==M?w(A,D,O,N):M.interrupt().each(function(){S(this,arguments).event(N).start().zoom(null,typeof D=="function"?D.apply(this,arguments):D).end()})},v.scaleBy=function(A,D,O,N){v.scaleTo(A,function(){var M=this.__zoom.k,B=typeof D=="function"?D.apply(this,arguments):D;return M*B},O,N)},v.scaleTo=function(A,D,O,N){v.transform(A,function(){var M=e.apply(this,arguments),B=this.__zoom,z=O==null?C(M):typeof O=="function"?O.apply(this,arguments):O,G=B.invert(z),F=typeof D=="function"?D.apply(this,arguments):D;return r(b(T(B,F),z,G),M,s)},O,N)},v.translateBy=function(A,D,O,N){v.transform(A,function(){return r(this.__zoom.translate(typeof D=="function"?D.apply(this,arguments):D,typeof O=="function"?O.apply(this,arguments):O),e.apply(this,arguments),s)},null,N)},v.translateTo=function(A,D,O,N,M){v.transform(A,function(){var B=e.apply(this,arguments),z=this.__zoom,G=N==null?C(B):typeof N=="function"?N.apply(this,arguments):N;return r(tM.translate(G[0],G[1]).scale(z.k).translate(typeof D=="function"?-D.apply(this,arguments):-D,typeof O=="function"?-O.apply(this,arguments):-O),B,s)},N,M)};function T(A,D){return D=Math.max(a[0],Math.min(a[1],D)),D===A.k?A:new Ml(D,A.x,A.y)}function b(A,D,O){var N=D[0]-O[0]*A.k,M=D[1]-O[1]*A.k;return N===A.x&&M===A.y?A:new Ml(A.k,N,M)}function C(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function w(A,D,O,N){A.on("start.zoom",function(){S(this,arguments).event(N).start()}).on("interrupt.zoom end.zoom",function(){S(this,arguments).event(N).end()}).tween("zoom",function(){var M=this,B=arguments,z=S(M,B).event(N),G=e.apply(M,B),F=O==null?C(G):typeof O=="function"?O.apply(M,B):O,V=Math.max(G[1][0]-G[0][0],G[1][1]-G[0][1]),W=M.__zoom,U=typeof D=="function"?D.apply(M,B):D,j=l(W.invert(F).concat(V/W.k),U.invert(F).concat(V/U.k));return function(H){if(H===1)H=U;else{var ne=j(H),Z=V/ne[2];H=new Ml(Z,F[0]-ne[0]*Z,F[1]-ne[1]*Z)}z.zoom(null,H)}})}function S(A,D,O){return!O&&A.__zooming||new E(A,D)}function E(A,D){this.that=A,this.args=D,this.active=0,this.sourceEvent=null,this.extent=e.apply(A,D),this.taps=0}E.prototype={event:function(A){return A&&(this.sourceEvent=A),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(A,D){return this.mouse&&A!=="mouse"&&(this.mouse[1]=D.invert(this.mouse[0])),this.touch0&&A!=="touch"&&(this.touch0[1]=D.invert(this.touch0[0])),this.touch1&&A!=="touch"&&(this.touch1[1]=D.invert(this.touch1[0])),this.that.__zoom=D,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(A){var D=Qe(this.that).datum();u.call(A,this.that,new m2e(A,{sourceEvent:this.sourceEvent,target:v,transform:this.that.__zoom,dispatch:u}),D)}};function _(A,...D){if(!t.apply(this,arguments))return;var O=S(this,D).event(A),N=this.__zoom,M=Math.max(a[0],Math.min(a[1],N.k*Math.pow(2,n.apply(this,arguments)))),B=kl(A);if(O.wheel)(O.mouse[0][0]!==B[0]||O.mouse[0][1]!==B[1])&&(O.mouse[1]=N.invert(O.mouse[0]=B)),clearTimeout(O.wheel);else{if(N.k===M)return;O.mouse=[B,N.invert(B)],Q2(this),O.start()}Gv(A),O.wheel=setTimeout(z,g),O.zoom("mouse",r(b(T(N,M),O.mouse[0],O.mouse[1]),O.extent,s));function z(){O.wheel=null,O.end()}}function R(A,...D){if(f||!t.apply(this,arguments))return;var O=A.currentTarget,N=S(this,D,!0).event(A),M=Qe(A.view).on("mousemove.zoom",F,!0).on("mouseup.zoom",V,!0),B=kl(A,O),z=A.clientX,G=A.clientY;cH(A.view),SA(A),N.mouse=[B,this.__zoom.invert(B)],Q2(this),N.start();function F(W){if(Gv(W),!N.moved){var U=W.clientX-z,j=W.clientY-G;N.moved=U*U+j*j>m}N.event(W).zoom("mouse",r(b(N.that.__zoom,N.mouse[0]=kl(W,O),N.mouse[1]),N.extent,s))}function V(W){M.on("mousemove.zoom mouseup.zoom",null),uH(W.view,N.moved),Gv(W),N.event(W).end()}}function I(A,...D){if(t.apply(this,arguments)){var O=this.__zoom,N=kl(A.changedTouches?A.changedTouches[0]:A,this),M=O.invert(N),B=O.k*(A.shiftKey?.5:2),z=r(b(T(O,B),N,M),e.apply(this,D),s);Gv(A),o>0?Qe(this).transition().duration(o).call(w,z,N,A):Qe(this).call(v.transform,z,N,A)}}function L(A,...D){if(t.apply(this,arguments)){var O=A.touches,N=O.length,M=S(this,D,A.changedTouches.length===N).event(A),B,z,G,F;for(SA(A),z=0;z<N;++z)G=O[z],F=kl(G,this),F=[F,this.__zoom.invert(F),G.identifier],M.touch0?!M.touch1&&M.touch0[2]!==F[2]&&(M.touch1=F,M.taps=0):(M.touch0=F,B=!0,M.taps=1+!!h);h&&(h=clearTimeout(h)),B&&(M.taps<2&&(d=F[0],h=setTimeout(function(){h=null},p)),Q2(this),M.start())}}function P(A,...D){if(this.__zooming){var O=S(this,D).event(A),N=A.changedTouches,M=N.length,B,z,G,F;for(Gv(A),B=0;B<M;++B)z=N[B],G=kl(z,this),O.touch0&&O.touch0[2]===z.identifier?O.touch0[0]=G:O.touch1&&O.touch1[2]===z.identifier&&(O.touch1[0]=G);if(z=O.that.__zoom,O.touch1){var V=O.touch0[0],W=O.touch0[1],U=O.touch1[0],j=O.touch1[1],H=(H=U[0]-V[0])*H+(H=U[1]-V[1])*H,ne=(ne=j[0]-W[0])*ne+(ne=j[1]-W[1])*ne;z=T(z,Math.sqrt(H/ne)),G=[(V[0]+U[0])/2,(V[1]+U[1])/2],F=[(W[0]+j[0])/2,(W[1]+j[1])/2]}else if(O.touch0)G=O.touch0[0],F=O.touch0[1];else return;O.zoom("touch",r(b(z,G,F),O.extent,s))}}function $(A,...D){if(this.__zooming){var O=S(this,D).event(A),N=A.changedTouches,M=N.length,B,z;for(SA(A),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),B=0;B<M;++B)z=N[B],O.touch0&&O.touch0[2]===z.identifier?delete O.touch0:O.touch1&&O.touch1[2]===z.identifier&&delete O.touch1;if(O.touch1&&!O.touch0&&(O.touch0=O.touch1,delete O.touch1),O.touch0)O.touch0[1]=this.__zoom.invert(O.touch0[0]);else if(O.end(),O.taps===2&&(z=kl(z,this),Math.hypot(d[0]-z[0],d[1]-z[1])<y)){var G=Qe(this).on("dblclick.zoom");G&&G.apply(this,arguments)}}}return v.wheelDelta=function(A){return arguments.length?(n=typeof A=="function"?A:HT(+A),v):n},v.filter=function(A){return arguments.length?(t=typeof A=="function"?A:HT(!!A),v):t},v.touchable=function(A){return arguments.length?(i=typeof A=="function"?A:HT(!!A),v):i},v.extent=function(A){return arguments.length?(e=typeof A=="function"?A:HT([[+A[0][0],+A[0][1]],[+A[1][0],+A[1][1]]]),v):e},v.scaleExtent=function(A){return arguments.length?(a[0]=+A[0],a[1]=+A[1],v):[a[0],a[1]]},v.translateExtent=function(A){return arguments.length?(s[0][0]=+A[0][0],s[1][0]=+A[1][0],s[0][1]=+A[0][1],s[1][1]=+A[1][1],v):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},v.constrain=function(A){return arguments.length?(r=A,v):r},v.duration=function(A){return arguments.length?(o=+A,v):o},v.interpolate=function(A){return arguments.length?(l=A,v):l},v.on=function(){var A=u.on.apply(u,arguments);return A===u?v:A},v.clickDistance=function(A){return arguments.length?(m=(A=+A)*A,v):Math.sqrt(m)},v.tapDistance=function(A){return arguments.length?(y=+A,v):y},v}function J2(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function w2e(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rM(t){let e,r,n;t.length!==2?(e=J2,r=(o,l)=>J2(t(o),l),n=(o,l)=>t(o)-l):(e=t===J2||t===w2e?t:E2e,r=t,n=t);function i(o,l,u=0,h=o.length){if(u<h){if(e(l,l)!==0)return h;do{const d=u+h>>>1;r(o[d],l)<0?u=d+1:h=d}while(u<h)}return u}function a(o,l,u=0,h=o.length){if(u<h){if(e(l,l)!==0)return h;do{const d=u+h>>>1;r(o[d],l)<=0?u=d+1:h=d}while(u<h)}return u}function s(o,l,u=0,h=o.length){const d=i(o,l,u,h-1);return d>u&&n(o[d-1],l)>-n(o[d],l)?d-1:d}return{left:i,center:s,right:a}}function E2e(){return 0}function S2e(t){return t===null?NaN:+t}const k2e=rM(J2),_2e=k2e.right;rM(S2e).center;class BF extends Map{constructor(e,r=L2e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(FF(this,e))}has(e){return super.has(FF(this,e))}set(e,r){return super.set(A2e(this,e),r)}delete(e){return super.delete(R2e(this,e))}}function FF({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function A2e({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function R2e({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function L2e(t){return t!==null&&typeof t=="object"?t.valueOf():t}const I2e=Math.sqrt(50),D2e=Math.sqrt(10),N2e=Math.sqrt(2);function pw(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=I2e?10:a>=D2e?5:a>=N2e?2:1;let o,l,u;return i<0?(u=Math.pow(10,-i)/s,o=Math.round(t*u),l=Math.round(e*u),o/u<t&&++o,l/u>e&&--l,u=-u):(u=Math.pow(10,i)*s,o=Math.round(t/u),l=Math.round(e/u),o*u<t&&++o,l*u>e&&--l),l<o&&.5<=r&&r<2?pw(t,e,r*2):[o,l,u]}function M2e(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const n=e<t,[i,a,s]=n?pw(e,t,r):pw(t,e,r);if(!(a>=i))return[];const o=a-i+1,l=new Array(o);if(n)if(s<0)for(let u=0;u<o;++u)l[u]=(a-u)/-s;else for(let u=0;u<o;++u)l[u]=(a-u)*s;else if(s<0)for(let u=0;u<o;++u)l[u]=(i+u)/-s;else for(let u=0;u<o;++u)l[u]=(i+u)*s;return l}function UI(t,e,r){return e=+e,t=+t,r=+r,pw(t,e,r)[2]}function qI(t,e,r){e=+e,t=+t,r=+r;const n=e<t,i=n?UI(e,t,r):UI(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function $2e(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function O2e(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function pyt(t,e){let r,n=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(r>a||r===void 0&&a>=a)&&(r=a,n=i);else for(let a of t)(a=e(a,++i,t))!=null&&(r>a||r===void 0&&a>=a)&&(r=a,n=i);return n}function P2e(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(i);++n<i;)a[n]=t+n*r;return a}function gyt(t,e){let r=0;for(let n of t)(n=+n)&&(r+=n);return r}var IH=typeof global=="object"&&global&&global.Object===Object&&global,B2e=typeof self=="object"&&self&&self.Object===Object&&self,go=IH||B2e||Function("return this")(),Is=go.Symbol,DH=Object.prototype,F2e=DH.hasOwnProperty,z2e=DH.toString,Vv=Is?Is.toStringTag:void 0;function G2e(t){var e=F2e.call(t,Vv),r=t[Vv];try{t[Vv]=void 0;var n=!0}catch{}var i=z2e.call(t);return n&&(e?t[Vv]=r:delete t[Vv]),i}var V2e=Object.prototype,W2e=V2e.toString;function U2e(t){return W2e.call(t)}var q2e="[object Null]",H2e="[object Undefined]",zF=Is?Is.toStringTag:void 0;function Sd(t){return t==null?t===void 0?H2e:q2e:zF&&zF in Object(t)?G2e(t):U2e(t)}function Ho(t){return t!=null&&typeof t=="object"}var Y2e="[object Symbol]";function td(t){return typeof t=="symbol"||Ho(t)&&Sd(t)==Y2e}function Ep(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var jn=Array.isArray,GF=Is?Is.prototype:void 0,VF=GF?GF.toString:void 0;function NH(t){if(typeof t=="string")return t;if(jn(t))return Ep(t,NH)+"";if(td(t))return VF?VF.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var X2e=/\s/;function j2e(t){for(var e=t.length;e--&&X2e.test(t.charAt(e)););return e}var K2e=/^\s+/;function Z2e(t){return t&&t.slice(0,j2e(t)+1).replace(K2e,"")}function Ca(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var WF=NaN,Q2e=/^[-+]0x[0-9a-f]+$/i,J2e=/^0b[01]+$/i,eCe=/^0o[0-7]+$/i,tCe=parseInt;function HI(t){if(typeof t=="number")return t;if(td(t))return WF;if(Ca(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ca(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Z2e(t);var r=J2e.test(t);return r||eCe.test(t)?tCe(t.slice(2),r?2:8):Q2e.test(t)?WF:+t}var UF=1/0,rCe=17976931348623157e292;function eC(t){if(!t)return t===0?t:0;if(t=HI(t),t===UF||t===-UF){var e=t<0?-1:1;return e*rCe}return t===t?t:0}function nCe(t){var e=eC(t),r=e%1;return e===e?r?e-r:e:0}function kd(t){return t}var iCe="[object AsyncFunction]",aCe="[object Function]",sCe="[object GeneratorFunction]",oCe="[object Proxy]";function Nx(t){if(!Ca(t))return!1;var e=Sd(t);return e==aCe||e==sCe||e==iCe||e==oCe}var kA=go["__core-js_shared__"],qF=function(){var t=/[^.]+$/.exec(kA&&kA.keys&&kA.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function lCe(t){return!!qF&&qF in t}var cCe=Function.prototype,uCe=cCe.toString;function _d(t){if(t!=null){try{return uCe.call(t)}catch{}try{return t+""}catch{}}return""}var hCe=/[\\^$.*+?()[\]{}|]/g,dCe=/^\[object .+?Constructor\]$/,fCe=Function.prototype,pCe=Object.prototype,gCe=fCe.toString,mCe=pCe.hasOwnProperty,yCe=RegExp("^"+gCe.call(mCe).replace(hCe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vCe(t){if(!Ca(t)||lCe(t))return!1;var e=Nx(t)?yCe:dCe;return e.test(_d(t))}function xCe(t,e){return t==null?void 0:t[e]}function Ad(t,e){var r=xCe(t,e);return vCe(r)?r:void 0}var YI=Ad(go,"WeakMap"),HF=Object.create,bCe=function(){function t(){}return function(e){if(!Ca(e))return{};if(HF)return HF(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function TCe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function CCe(){}function MH(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var wCe=800,ECe=16,SCe=Date.now;function kCe(t){var e=0,r=0;return function(){var n=SCe(),i=ECe-(n-r);if(r=n,i>0){if(++e>=wCe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function ip(t){return function(){return t}}var gw=function(){try{var t=Ad(Object,"defineProperty");return t({},"",{}),t}catch{}}(),_Ce=gw?function(t,e){return gw(t,"toString",{configurable:!0,enumerable:!1,value:ip(e),writable:!0})}:kd,$H=kCe(_Ce);function OH(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}function PH(t,e,r,n){for(var i=t.length,a=r+-1;++a<i;)if(e(t[a],a,t))return a;return-1}function ACe(t){return t!==t}function RCe(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}function LCe(t,e,r){return e===e?RCe(t,e,r):PH(t,ACe,r)}function ICe(t,e){var r=t==null?0:t.length;return!!r&&LCe(t,e,0)>-1}var DCe=9007199254740991,NCe=/^(?:0|[1-9]\d*)$/;function BS(t,e){var r=typeof t;return e=e??DCe,!!e&&(r=="number"||r!="symbol"&&NCe.test(t))&&t>-1&&t%1==0&&t<e}function FS(t,e,r){e=="__proto__"&&gw?gw(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function fv(t,e){return t===e||t!==t&&e!==e}var MCe=Object.prototype,$Ce=MCe.hasOwnProperty;function zS(t,e,r){var n=t[e];(!($Ce.call(t,e)&&fv(n,r))||r===void 0&&!(e in t))&&FS(t,e,r)}function Vb(t,e,r,n){var i=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var o=e[a],l=void 0;l===void 0&&(l=t[o]),i?FS(r,o,l):zS(r,o,l)}return r}var YF=Math.max;function BH(t,e,r){return e=YF(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,a=YF(n.length-e,0),s=Array(a);++i<a;)s[i]=n[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=n[i];return o[e]=r(s),TCe(t,this,o)}}function GS(t,e){return $H(BH(t,e,kd),t+"")}var OCe=9007199254740991;function nM(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=OCe}function bu(t){return t!=null&&nM(t.length)&&!Nx(t)}function Mx(t,e,r){if(!Ca(r))return!1;var n=typeof e;return(n=="number"?bu(r)&&BS(e,r.length):n=="string"&&e in r)?fv(r[e],t):!1}function PCe(t){return GS(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&Mx(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var o=r[n];o&&t(e,o,n,a)}return e})}var BCe=Object.prototype;function VS(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||BCe;return t===r}function FCe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var zCe="[object Arguments]";function XF(t){return Ho(t)&&Sd(t)==zCe}var FH=Object.prototype,GCe=FH.hasOwnProperty,VCe=FH.propertyIsEnumerable,_0=XF(function(){return arguments}())?XF:function(t){return Ho(t)&&GCe.call(t,"callee")&&!VCe.call(t,"callee")};function WCe(){return!1}var zH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jF=zH&&typeof module=="object"&&module&&!module.nodeType&&module,UCe=jF&&jF.exports===zH,KF=UCe?go.Buffer:void 0,qCe=KF?KF.isBuffer:void 0,A0=qCe||WCe,HCe="[object Arguments]",YCe="[object Array]",XCe="[object Boolean]",jCe="[object Date]",KCe="[object Error]",ZCe="[object Function]",QCe="[object Map]",JCe="[object Number]",ewe="[object Object]",twe="[object RegExp]",rwe="[object Set]",nwe="[object String]",iwe="[object WeakMap]",awe="[object ArrayBuffer]",swe="[object DataView]",owe="[object Float32Array]",lwe="[object Float64Array]",cwe="[object Int8Array]",uwe="[object Int16Array]",hwe="[object Int32Array]",dwe="[object Uint8Array]",fwe="[object Uint8ClampedArray]",pwe="[object Uint16Array]",gwe="[object Uint32Array]",un={};un[owe]=un[lwe]=un[cwe]=un[uwe]=un[hwe]=un[dwe]=un[fwe]=un[pwe]=un[gwe]=!0;un[HCe]=un[YCe]=un[awe]=un[XCe]=un[swe]=un[jCe]=un[KCe]=un[ZCe]=un[QCe]=un[JCe]=un[ewe]=un[twe]=un[rwe]=un[nwe]=un[iwe]=!1;function mwe(t){return Ho(t)&&nM(t.length)&&!!un[Sd(t)]}function WS(t){return function(e){return t(e)}}var GH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ex=GH&&typeof module=="object"&&module&&!module.nodeType&&module,ywe=ex&&ex.exports===GH,_A=ywe&&IH.process,R0=function(){try{var t=ex&&ex.require&&ex.require("util").types;return t||_A&&_A.binding&&_A.binding("util")}catch{}}(),ZF=R0&&R0.isTypedArray,US=ZF?WS(ZF):mwe,vwe=Object.prototype,xwe=vwe.hasOwnProperty;function VH(t,e){var r=jn(t),n=!r&&_0(t),i=!r&&!n&&A0(t),a=!r&&!n&&!i&&US(t),s=r||n||i||a,o=s?FCe(t.length,String):[],l=o.length;for(var u in t)(e||xwe.call(t,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||BS(u,l)))&&o.push(u);return o}function WH(t,e){return function(r){return t(e(r))}}var bwe=WH(Object.keys,Object),Twe=Object.prototype,Cwe=Twe.hasOwnProperty;function UH(t){if(!VS(t))return bwe(t);var e=[];for(var r in Object(t))Cwe.call(t,r)&&r!="constructor"&&e.push(r);return e}function is(t){return bu(t)?VH(t):UH(t)}function wwe(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Ewe=Object.prototype,Swe=Ewe.hasOwnProperty;function kwe(t){if(!Ca(t))return wwe(t);var e=VS(t),r=[];for(var n in t)n=="constructor"&&(e||!Swe.call(t,n))||r.push(n);return r}function Rd(t){return bu(t)?VH(t,!0):kwe(t)}var _we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Awe=/^\w*$/;function iM(t,e){if(jn(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||td(t)?!0:Awe.test(t)||!_we.test(t)||e!=null&&t in Object(e)}var $x=Ad(Object,"create");function Rwe(){this.__data__=$x?$x(null):{},this.size=0}function Lwe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Iwe="__lodash_hash_undefined__",Dwe=Object.prototype,Nwe=Dwe.hasOwnProperty;function Mwe(t){var e=this.__data__;if($x){var r=e[t];return r===Iwe?void 0:r}return Nwe.call(e,t)?e[t]:void 0}var $we=Object.prototype,Owe=$we.hasOwnProperty;function Pwe(t){var e=this.__data__;return $x?e[t]!==void 0:Owe.call(e,t)}var Bwe="__lodash_hash_undefined__";function Fwe(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=$x&&e===void 0?Bwe:e,this}function rd(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}rd.prototype.clear=Rwe;rd.prototype.delete=Lwe;rd.prototype.get=Mwe;rd.prototype.has=Pwe;rd.prototype.set=Fwe;function zwe(){this.__data__=[],this.size=0}function qS(t,e){for(var r=t.length;r--;)if(fv(t[r][0],e))return r;return-1}var Gwe=Array.prototype,Vwe=Gwe.splice;function Wwe(t){var e=this.__data__,r=qS(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Vwe.call(e,r,1),--this.size,!0}function Uwe(t){var e=this.__data__,r=qS(e,t);return r<0?void 0:e[r][1]}function qwe(t){return qS(this.__data__,t)>-1}function Hwe(t,e){var r=this.__data__,n=qS(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function hc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}hc.prototype.clear=zwe;hc.prototype.delete=Wwe;hc.prototype.get=Uwe;hc.prototype.has=qwe;hc.prototype.set=Hwe;var Ox=Ad(go,"Map");function Ywe(){this.size=0,this.__data__={hash:new rd,map:new(Ox||hc),string:new rd}}function Xwe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function HS(t,e){var r=t.__data__;return Xwe(e)?r[typeof e=="string"?"string":"hash"]:r.map}function jwe(t){var e=HS(this,t).delete(t);return this.size-=e?1:0,e}function Kwe(t){return HS(this,t).get(t)}function Zwe(t){return HS(this,t).has(t)}function Qwe(t,e){var r=HS(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function dc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}dc.prototype.clear=Ywe;dc.prototype.delete=jwe;dc.prototype.get=Kwe;dc.prototype.has=Zwe;dc.prototype.set=Qwe;var Jwe="Expected a function";function aM(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Jwe);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=t.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(aM.Cache||dc),r}aM.Cache=dc;var eEe=500;function tEe(t){var e=aM(t,function(n){return r.size===eEe&&r.clear(),n}),r=e.cache;return e}var rEe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nEe=/\\(\\)?/g,iEe=tEe(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(rEe,function(r,n,i,a){e.push(i?a.replace(nEe,"$1"):n||r)}),e});function qH(t){return t==null?"":NH(t)}function YS(t,e){return jn(t)?t:iM(t,e)?[t]:iEe(qH(t))}function Wb(t){if(typeof t=="string"||td(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function XS(t,e){e=YS(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[Wb(e[r++])];return r&&r==n?t:void 0}function aEe(t,e,r){var n=t==null?void 0:XS(t,e);return n===void 0?r:n}function sM(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var QF=Is?Is.isConcatSpreadable:void 0;function sEe(t){return jn(t)||_0(t)||!!(QF&&t&&t[QF])}function oM(t,e,r,n,i){var a=-1,s=t.length;for(r||(r=sEe),i||(i=[]);++a<s;){var o=t[a];r(o)?sM(i,o):n||(i[i.length]=o)}return i}function pv(t){var e=t==null?0:t.length;return e?oM(t):[]}function oEe(t){return $H(BH(t,void 0,pv),t+"")}var lM=WH(Object.getPrototypeOf,Object),lEe="[object Object]",cEe=Function.prototype,uEe=Object.prototype,HH=cEe.toString,hEe=uEe.hasOwnProperty,dEe=HH.call(Object);function fEe(t){if(!Ho(t)||Sd(t)!=lEe)return!1;var e=lM(t);if(e===null)return!0;var r=hEe.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&HH.call(r)==dEe}function pEe(t,e,r,n){var i=-1,a=t==null?0:t.length;for(n&&a&&(r=t[++i]);++i<a;)r=e(r,t[i],i,t);return r}function gEe(){this.__data__=new hc,this.size=0}function mEe(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function yEe(t){return this.__data__.get(t)}function vEe(t){return this.__data__.has(t)}var xEe=200;function bEe(t,e){var r=this.__data__;if(r instanceof hc){var n=r.__data__;if(!Ox||n.length<xEe-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new dc(n)}return r.set(t,e),this.size=r.size,this}function Qs(t){var e=this.__data__=new hc(t);this.size=e.size}Qs.prototype.clear=gEe;Qs.prototype.delete=mEe;Qs.prototype.get=yEe;Qs.prototype.has=vEe;Qs.prototype.set=bEe;function TEe(t,e){return t&&Vb(e,is(e),t)}function CEe(t,e){return t&&Vb(e,Rd(e),t)}var YH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,JF=YH&&typeof module=="object"&&module&&!module.nodeType&&module,wEe=JF&&JF.exports===YH,e8=wEe?go.Buffer:void 0,t8=e8?e8.allocUnsafe:void 0;function XH(t,e){if(e)return t.slice();var r=t.length,n=t8?t8(r):new t.constructor(r);return t.copy(n),n}function jH(t,e){for(var r=-1,n=t==null?0:t.length,i=0,a=[];++r<n;){var s=t[r];e(s,r,t)&&(a[i++]=s)}return a}function KH(){return[]}var EEe=Object.prototype,SEe=EEe.propertyIsEnumerable,r8=Object.getOwnPropertySymbols,cM=r8?function(t){return t==null?[]:(t=Object(t),jH(r8(t),function(e){return SEe.call(t,e)}))}:KH;function kEe(t,e){return Vb(t,cM(t),e)}var _Ee=Object.getOwnPropertySymbols,ZH=_Ee?function(t){for(var e=[];t;)sM(e,cM(t)),t=lM(t);return e}:KH;function AEe(t,e){return Vb(t,ZH(t),e)}function QH(t,e,r){var n=e(t);return jn(t)?n:sM(n,r(t))}function XI(t){return QH(t,is,cM)}function REe(t){return QH(t,Rd,ZH)}var jI=Ad(go,"DataView"),KI=Ad(go,"Promise"),Sp=Ad(go,"Set"),n8="[object Map]",LEe="[object Object]",i8="[object Promise]",a8="[object Set]",s8="[object WeakMap]",o8="[object DataView]",IEe=_d(jI),DEe=_d(Ox),NEe=_d(KI),MEe=_d(Sp),$Ee=_d(YI),Es=Sd;(jI&&Es(new jI(new ArrayBuffer(1)))!=o8||Ox&&Es(new Ox)!=n8||KI&&Es(KI.resolve())!=i8||Sp&&Es(new Sp)!=a8||YI&&Es(new YI)!=s8)&&(Es=function(t){var e=Sd(t),r=e==LEe?t.constructor:void 0,n=r?_d(r):"";if(n)switch(n){case IEe:return o8;case DEe:return n8;case NEe:return i8;case MEe:return a8;case $Ee:return s8}return e});var OEe=Object.prototype,PEe=OEe.hasOwnProperty;function BEe(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&PEe.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var mw=go.Uint8Array;function uM(t){var e=new t.constructor(t.byteLength);return new mw(e).set(new mw(t)),e}function FEe(t,e){var r=e?uM(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var zEe=/\w*$/;function GEe(t){var e=new t.constructor(t.source,zEe.exec(t));return e.lastIndex=t.lastIndex,e}var l8=Is?Is.prototype:void 0,c8=l8?l8.valueOf:void 0;function VEe(t){return c8?Object(c8.call(t)):{}}function JH(t,e){var r=e?uM(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var WEe="[object Boolean]",UEe="[object Date]",qEe="[object Map]",HEe="[object Number]",YEe="[object RegExp]",XEe="[object Set]",jEe="[object String]",KEe="[object Symbol]",ZEe="[object ArrayBuffer]",QEe="[object DataView]",JEe="[object Float32Array]",eSe="[object Float64Array]",tSe="[object Int8Array]",rSe="[object Int16Array]",nSe="[object Int32Array]",iSe="[object Uint8Array]",aSe="[object Uint8ClampedArray]",sSe="[object Uint16Array]",oSe="[object Uint32Array]";function lSe(t,e,r){var n=t.constructor;switch(e){case ZEe:return uM(t);case WEe:case UEe:return new n(+t);case QEe:return FEe(t,r);case JEe:case eSe:case tSe:case rSe:case nSe:case iSe:case aSe:case sSe:case oSe:return JH(t,r);case qEe:return new n;case HEe:case jEe:return new n(t);case YEe:return GEe(t);case XEe:return new n;case KEe:return VEe(t)}}function eY(t){return typeof t.constructor=="function"&&!VS(t)?bCe(lM(t)):{}}var cSe="[object Map]";function uSe(t){return Ho(t)&&Es(t)==cSe}var u8=R0&&R0.isMap,hSe=u8?WS(u8):uSe,dSe="[object Set]";function fSe(t){return Ho(t)&&Es(t)==dSe}var h8=R0&&R0.isSet,pSe=h8?WS(h8):fSe,gSe=1,mSe=2,ySe=4,tY="[object Arguments]",vSe="[object Array]",xSe="[object Boolean]",bSe="[object Date]",TSe="[object Error]",rY="[object Function]",CSe="[object GeneratorFunction]",wSe="[object Map]",ESe="[object Number]",nY="[object Object]",SSe="[object RegExp]",kSe="[object Set]",_Se="[object String]",ASe="[object Symbol]",RSe="[object WeakMap]",LSe="[object ArrayBuffer]",ISe="[object DataView]",DSe="[object Float32Array]",NSe="[object Float64Array]",MSe="[object Int8Array]",$Se="[object Int16Array]",OSe="[object Int32Array]",PSe="[object Uint8Array]",BSe="[object Uint8ClampedArray]",FSe="[object Uint16Array]",zSe="[object Uint32Array]",tn={};tn[tY]=tn[vSe]=tn[LSe]=tn[ISe]=tn[xSe]=tn[bSe]=tn[DSe]=tn[NSe]=tn[MSe]=tn[$Se]=tn[OSe]=tn[wSe]=tn[ESe]=tn[nY]=tn[SSe]=tn[kSe]=tn[_Se]=tn[ASe]=tn[PSe]=tn[BSe]=tn[FSe]=tn[zSe]=!0;tn[TSe]=tn[rY]=tn[RSe]=!1;function tx(t,e,r,n,i,a){var s,o=e&gSe,l=e&mSe,u=e&ySe;if(s!==void 0)return s;if(!Ca(t))return t;var h=jn(t);if(h){if(s=BEe(t),!o)return MH(t,s)}else{var d=Es(t),f=d==rY||d==CSe;if(A0(t))return XH(t,o);if(d==nY||d==tY||f&&!i){if(s=l||f?{}:eY(t),!o)return l?AEe(t,CEe(s,t)):kEe(t,TEe(s,t))}else{if(!tn[d])return i?t:{};s=lSe(t,d,o)}}a||(a=new Qs);var p=a.get(t);if(p)return p;a.set(t,s),pSe(t)?t.forEach(function(y){s.add(tx(y,e,r,y,t,a))}):hSe(t)&&t.forEach(function(y,v){s.set(v,tx(y,e,r,v,t,a))});var g=u?l?REe:XI:l?Rd:is,m=h?void 0:g(t);return OH(m||t,function(y,v){m&&(v=y,y=t[v]),zS(s,v,tx(y,e,r,v,t,a))}),s}var GSe=4;function VSe(t){return tx(t,GSe)}var WSe=1,USe=4;function qSe(t){return tx(t,WSe|USe)}var HSe="__lodash_hash_undefined__";function YSe(t){return this.__data__.set(t,HSe),this}function XSe(t){return this.__data__.has(t)}function Px(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new dc;++e<r;)this.add(t[e])}Px.prototype.add=Px.prototype.push=YSe;Px.prototype.has=XSe;function jSe(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function iY(t,e){return t.has(e)}var KSe=1,ZSe=2;function aY(t,e,r,n,i,a){var s=r&KSe,o=t.length,l=e.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(t),h=a.get(e);if(u&&h)return u==e&&h==t;var d=-1,f=!0,p=r&ZSe?new Px:void 0;for(a.set(t,e),a.set(e,t);++d<o;){var g=t[d],m=e[d];if(n)var y=s?n(m,g,d,e,t,a):n(g,m,d,t,e,a);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!jSe(e,function(v,T){if(!iY(p,T)&&(g===v||i(g,v,r,n,a)))return p.push(T)})){f=!1;break}}else if(!(g===m||i(g,m,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}function QSe(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}function hM(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var JSe=1,eke=2,tke="[object Boolean]",rke="[object Date]",nke="[object Error]",ike="[object Map]",ake="[object Number]",ske="[object RegExp]",oke="[object Set]",lke="[object String]",cke="[object Symbol]",uke="[object ArrayBuffer]",hke="[object DataView]",d8=Is?Is.prototype:void 0,AA=d8?d8.valueOf:void 0;function dke(t,e,r,n,i,a,s){switch(r){case hke:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case uke:return!(t.byteLength!=e.byteLength||!a(new mw(t),new mw(e)));case tke:case rke:case ake:return fv(+t,+e);case nke:return t.name==e.name&&t.message==e.message;case ske:case lke:return t==e+"";case ike:var o=QSe;case oke:var l=n&JSe;if(o||(o=hM),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;n|=eke,s.set(t,e);var h=aY(o(t),o(e),n,i,a,s);return s.delete(t),h;case cke:if(AA)return AA.call(t)==AA.call(e)}return!1}var fke=1,pke=Object.prototype,gke=pke.hasOwnProperty;function mke(t,e,r,n,i,a){var s=r&fke,o=XI(t),l=o.length,u=XI(e),h=u.length;if(l!=h&&!s)return!1;for(var d=l;d--;){var f=o[d];if(!(s?f in e:gke.call(e,f)))return!1}var p=a.get(t),g=a.get(e);if(p&&g)return p==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);for(var y=s;++d<l;){f=o[d];var v=t[f],T=e[f];if(n)var b=s?n(T,v,f,e,t,a):n(v,T,f,t,e,a);if(!(b===void 0?v===T||i(v,T,r,n,a):b)){m=!1;break}y||(y=f=="constructor")}if(m&&!y){var C=t.constructor,w=e.constructor;C!=w&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof w=="function"&&w instanceof w)&&(m=!1)}return a.delete(t),a.delete(e),m}var yke=1,f8="[object Arguments]",p8="[object Array]",YT="[object Object]",vke=Object.prototype,g8=vke.hasOwnProperty;function xke(t,e,r,n,i,a){var s=jn(t),o=jn(e),l=s?p8:Es(t),u=o?p8:Es(e);l=l==f8?YT:l,u=u==f8?YT:u;var h=l==YT,d=u==YT,f=l==u;if(f&&A0(t)){if(!A0(e))return!1;s=!0,h=!1}if(f&&!h)return a||(a=new Qs),s||US(t)?aY(t,e,r,n,i,a):dke(t,e,l,r,n,i,a);if(!(r&yke)){var p=h&&g8.call(t,"__wrapped__"),g=d&&g8.call(e,"__wrapped__");if(p||g){var m=p?t.value():t,y=g?e.value():e;return a||(a=new Qs),i(m,y,r,n,a)}}return f?(a||(a=new Qs),mke(t,e,r,n,i,a)):!1}function dM(t,e,r,n,i){return t===e?!0:t==null||e==null||!Ho(t)&&!Ho(e)?t!==t&&e!==e:xke(t,e,r,n,dM,i)}var bke=1,Tke=2;function Cke(t,e,r,n){var i=r.length,a=i;if(t==null)return!a;for(t=Object(t);i--;){var s=r[i];if(s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<a;){s=r[i];var o=s[0],l=t[o],u=s[1];if(s[2]){if(l===void 0&&!(o in t))return!1}else{var h=new Qs,d;if(!(d===void 0?dM(u,l,bke|Tke,n,h):d))return!1}}return!0}function sY(t){return t===t&&!Ca(t)}function wke(t){for(var e=is(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,sY(i)]}return e}function oY(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}function Eke(t){var e=wke(t);return e.length==1&&e[0][2]?oY(e[0][0],e[0][1]):function(r){return r===t||Cke(r,t,e)}}function Ske(t,e){return t!=null&&e in Object(t)}function lY(t,e,r){e=YS(e,t);for(var n=-1,i=e.length,a=!1;++n<i;){var s=Wb(e[n]);if(!(a=t!=null&&r(t,s)))break;t=t[s]}return a||++n!=i?a:(i=t==null?0:t.length,!!i&&nM(i)&&BS(s,i)&&(jn(t)||_0(t)))}function cY(t,e){return t!=null&&lY(t,e,Ske)}var kke=1,_ke=2;function Ake(t,e){return iM(t)&&sY(e)?oY(Wb(t),e):function(r){var n=aEe(r,t);return n===void 0&&n===e?cY(r,t):dM(e,n,kke|_ke)}}function Rke(t){return function(e){return e==null?void 0:e[t]}}function Lke(t){return function(e){return XS(e,t)}}function Ike(t){return iM(t)?Rke(Wb(t)):Lke(t)}function Tu(t){return typeof t=="function"?t:t==null?kd:typeof t=="object"?jn(t)?Ake(t[0],t[1]):Eke(t):Ike(t)}function Dke(t){return function(e,r,n){for(var i=-1,a=Object(e),s=n(e),o=s.length;o--;){var l=s[++i];if(r(a[l],l,a)===!1)break}return e}}var fM=Dke();function pM(t,e){return t&&fM(t,e,is)}function Nke(t,e){return function(r,n){if(r==null)return r;if(!bu(r))return t(r,n);for(var i=r.length,a=-1,s=Object(r);++a<i&&n(s[a],a,s)!==!1;);return r}}var jS=Nke(pM),RA=function(){return go.Date.now()},Mke="Expected a function",$ke=Math.max,Oke=Math.min;function Pke(t,e,r){var n,i,a,s,o,l,u=0,h=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(Mke);e=HI(e)||0,Ca(r)&&(h=!!r.leading,d="maxWait"in r,a=d?$ke(HI(r.maxWait)||0,e):a,f="trailing"in r?!!r.trailing:f);function p(S){var E=n,_=i;return n=i=void 0,u=S,s=t.apply(_,E),s}function g(S){return u=S,o=setTimeout(v,e),h?p(S):s}function m(S){var E=S-l,_=S-u,R=e-E;return d?Oke(R,a-_):R}function y(S){var E=S-l,_=S-u;return l===void 0||E>=e||E<0||d&&_>=a}function v(){var S=RA();if(y(S))return T(S);o=setTimeout(v,m(S))}function T(S){return o=void 0,f&&n?p(S):(n=i=void 0,s)}function b(){o!==void 0&&clearTimeout(o),u=0,n=l=i=o=void 0}function C(){return o===void 0?s:T(RA())}function w(){var S=RA(),E=y(S);if(n=arguments,i=this,l=S,E){if(o===void 0)return g(l);if(d)return clearTimeout(o),o=setTimeout(v,e),p(l)}return o===void 0&&(o=setTimeout(v,e)),s}return w.cancel=b,w.flush=C,w}var uY=Object.prototype,Bke=uY.hasOwnProperty,Fke=GS(function(t,e){t=Object(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&Mx(e[0],e[1],i)&&(n=1);++r<n;)for(var a=e[r],s=Rd(a),o=-1,l=s.length;++o<l;){var u=s[o],h=t[u];(h===void 0||fv(h,uY[u])&&!Bke.call(t,u))&&(t[u]=a[u])}return t});function ZI(t,e,r){(r!==void 0&&!fv(t[e],r)||r===void 0&&!(e in t))&&FS(t,e,r)}function hY(t){return Ho(t)&&bu(t)}function QI(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function zke(t){return Vb(t,Rd(t))}function Gke(t,e,r,n,i,a,s){var o=QI(t,r),l=QI(e,r),u=s.get(l);if(u){ZI(t,r,u);return}var h=a?a(o,l,r+"",t,e,s):void 0,d=h===void 0;if(d){var f=jn(l),p=!f&&A0(l),g=!f&&!p&&US(l);h=l,f||p||g?jn(o)?h=o:hY(o)?h=MH(o):p?(d=!1,h=XH(l,!0)):g?(d=!1,h=JH(l,!0)):h=[]:fEe(l)||_0(l)?(h=o,_0(o)?h=zke(o):(!Ca(o)||Nx(o))&&(h=eY(l))):d=!1}d&&(s.set(l,h),i(h,l,n,a,s),s.delete(l)),ZI(t,r,h)}function dY(t,e,r,n,i){t!==e&&fM(e,function(a,s){if(i||(i=new Qs),Ca(a))Gke(t,e,s,r,dY,n,i);else{var o=n?n(QI(t,s),a,s+"",t,e,i):void 0;o===void 0&&(o=a),ZI(t,s,o)}},Rd)}function yw(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function gM(t){return typeof t=="function"?t:kd}function ot(t,e){var r=jn(t)?OH:jS;return r(t,gM(e))}function Vke(t,e){var r=[];return jS(t,function(n,i,a){e(n,i,a)&&r.push(n)}),r}function $l(t,e){var r=jn(t)?jH:Vke;return r(t,Tu(e))}function Wke(t){return function(e,r,n){var i=Object(e);if(!bu(e)){var a=Tu(r);e=is(e),r=function(o){return a(i[o],o,i)}}var s=t(e,r,n);return s>-1?i[a?e[s]:s]:void 0}}var Uke=Math.max;function qke(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:nCe(r);return i<0&&(i=Uke(n+i,0)),PH(t,Tu(e),i)}var mM=Wke(qke);function fY(t,e){var r=-1,n=bu(t)?Array(t.length):[];return jS(t,function(i,a,s){n[++r]=e(i,a,s)}),n}function Xn(t,e){var r=jn(t)?Ep:fY;return r(t,Tu(e))}function Hke(t,e){return t==null?t:fM(t,gM(e),Rd)}function Yke(t,e){return t&&pM(t,gM(e))}function Xke(t,e){return t>e}var jke=Object.prototype,Kke=jke.hasOwnProperty;function Zke(t,e){return t!=null&&Kke.call(t,e)}function pY(t,e){return t!=null&&lY(t,e,Zke)}function Qke(t,e){return Ep(e,function(r){return t[r]})}function Wl(t){return t==null?[]:Qke(t,is(t))}var Jke="[object Map]",e_e="[object Set]",t_e=Object.prototype,r_e=t_e.hasOwnProperty;function m8(t){if(t==null)return!0;if(bu(t)&&(jn(t)||typeof t=="string"||typeof t.splice=="function"||A0(t)||US(t)||_0(t)))return!t.length;var e=Es(t);if(e==Jke||e==e_e)return!t.size;if(VS(t))return!UH(t).length;for(var r in t)if(r_e.call(t,r))return!1;return!0}function Bn(t){return t===void 0}function gY(t,e){return t<e}function KS(t,e){var r={};return e=Tu(e),pM(t,function(n,i,a){FS(r,i,e(n,i,a))}),r}function yM(t,e,r){for(var n=-1,i=t.length;++n<i;){var a=t[n],s=e(a);if(s!=null&&(o===void 0?s===s&&!td(s):r(s,o)))var o=s,l=a}return l}function nd(t){return t&&t.length?yM(t,kd,Xke):void 0}var JI=PCe(function(t,e,r){dY(t,e,r)});function Bx(t){return t&&t.length?yM(t,kd,gY):void 0}function vM(t,e){return t&&t.length?yM(t,Tu(e),gY):void 0}function n_e(t,e,r,n){if(!Ca(t))return t;e=YS(e,t);for(var i=-1,a=e.length,s=a-1,o=t;o!=null&&++i<a;){var l=Wb(e[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=s){var h=o[l];u=void 0,u===void 0&&(u=Ca(h)?h:BS(e[i+1])?[]:{})}zS(o,l,u),o=o[l]}return t}function i_e(t,e,r){for(var n=-1,i=e.length,a={};++n<i;){var s=e[n],o=XS(t,s);r(o,s)&&n_e(a,YS(s,t),o)}return a}function a_e(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}function s_e(t,e){if(t!==e){var r=t!==void 0,n=t===null,i=t===t,a=td(t),s=e!==void 0,o=e===null,l=e===e,u=td(e);if(!o&&!u&&!a&&t>e||a&&s&&l&&!o&&!u||n&&s&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&t<e||u&&r&&i&&!n&&!a||o&&r&&i||!s&&i||!l)return-1}return 0}function o_e(t,e,r){for(var n=-1,i=t.criteria,a=e.criteria,s=i.length,o=r.length;++n<s;){var l=s_e(i[n],a[n]);if(l){if(n>=o)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return t.index-e.index}function l_e(t,e,r){e.length?e=Ep(e,function(a){return jn(a)?function(s){return XS(s,a.length===1?a[0]:a)}:a}):e=[kd];var n=-1;e=Ep(e,WS(Tu));var i=fY(t,function(a,s,o){var l=Ep(e,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return a_e(i,function(a,s){return o_e(a,s,r)})}function c_e(t,e){return i_e(t,e,function(r,n){return cY(t,n)})}var vw=oEe(function(t,e){return t==null?{}:c_e(t,e)}),u_e=Math.ceil,h_e=Math.max;function d_e(t,e,r,n){for(var i=-1,a=h_e(u_e((e-t)/(r||1)),0),s=Array(a);a--;)s[++i]=t,t+=r;return s}function f_e(t){return function(e,r,n){return n&&typeof n!="number"&&Mx(e,r,n)&&(r=n=void 0),e=eC(e),r===void 0?(r=e,e=0):r=eC(r),n=n===void 0?e<r?1:-1:eC(n),d_e(e,r,n)}}var L0=f_e();function p_e(t,e,r,n,i){return i(t,function(a,s,o){r=n?(n=!1,a):e(r,a,s,o)}),r}function Ub(t,e,r){var n=jn(t)?pEe:p_e,i=arguments.length<3;return n(t,Tu(e),r,i,jS)}var qb=GS(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Mx(t,e[0],e[1])?e=[]:r>2&&Mx(e[0],e[1],e[2])&&(e=[e[0]]),l_e(t,oM(e),[])}),g_e="Expected a function";function myt(t,e,r){var n=!0,i=!0;if(typeof t!="function")throw new TypeError(g_e);return Ca(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Pke(t,e,{leading:n,maxWait:e,trailing:i})}var m_e=1/0,y_e=Sp&&1/hM(new Sp([,-0]))[1]==m_e?function(t){return new Sp(t)}:CCe,v_e=200;function x_e(t,e,r){var n=-1,i=ICe,a=t.length,s=!0,o=[],l=o;if(a>=v_e){var u=y_e(t);if(u)return hM(u);s=!1,i=iY,l=new Px}else l=o;e:for(;++n<a;){var h=t[n],d=h;if(h=h!==0?h:0,s&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;o.push(h)}else i(l,d,r)||(l!==o&&l.push(d),o.push(h))}return o}var b_e=GS(function(t){return x_e(oM(t,1,hY,!0))}),T_e=0;function xM(t){var e=++T_e;return qH(t)+e}function C_e(t,e,r){for(var n=-1,i=t.length,a=e.length,s={};++n<i;){var o=n<a?e[n]:void 0;r(s,t[n],o)}return s}function w_e(t,e){return C_e(t||[],e||[],zS)}function E_e(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return mY(this.cover(e,r),e,r,t)}function mY(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a=t._root,s={data:n},o=t._x0,l=t._y0,u=t._x1,h=t._y1,d,f,p,g,m,y,v,T;if(!a)return t._root=s,t;for(;a.length;)if((m=e>=(d=(o+u)/2))?o=d:u=d,(y=r>=(f=(l+h)/2))?l=f:h=f,i=a,!(a=a[v=y<<1|m]))return i[v]=s,t;if(p=+t._x.call(null,a.data),g=+t._y.call(null,a.data),e===p&&r===g)return s.next=a,i?i[v]=s:t._root=s,t;do i=i?i[v]=new Array(4):t._root=new Array(4),(m=e>=(d=(o+u)/2))?o=d:u=d,(y=r>=(f=(l+h)/2))?l=f:h=f;while((v=y<<1|m)===(T=(g>=f)<<1|p>=d));return i[T]=a,i[v]=s,t}function S_e(t){var e,r,n=t.length,i,a,s=new Array(n),o=new Array(n),l=1/0,u=1/0,h=-1/0,d=-1/0;for(r=0;r<n;++r)isNaN(i=+this._x.call(null,e=t[r]))||isNaN(a=+this._y.call(null,e))||(s[r]=i,o[r]=a,i<l&&(l=i),i>h&&(h=i),a<u&&(u=a),a>d&&(d=a));if(l>h||u>d)return this;for(this.cover(l,u).cover(h,d),r=0;r<n;++r)mY(this,s[r],o[r],t[r]);return this}function k_e(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var s=i-r||1,o=this._root,l,u;r>t||t>=i||n>e||e>=a;)switch(u=(e<n)<<1|t<r,l=new Array(4),l[u]=o,o=l,s*=2,u){case 0:i=r+s,a=n+s;break;case 1:r=i-s,a=n+s;break;case 2:i=r+s,n=a-s;break;case 3:r=i-s,n=a-s;break}this._root&&this._root.length&&(this._root=o)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this}function __e(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function A_e(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]]}function pa(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function R_e(t,e,r){var n,i=this._x0,a=this._y0,s,o,l,u,h=this._x1,d=this._y1,f=[],p=this._root,g,m;for(p&&f.push(new pa(p,i,a,h,d)),r==null?r=1/0:(i=t-r,a=e-r,h=t+r,d=e+r,r*=r);g=f.pop();)if(!(!(p=g.node)||(s=g.x0)>h||(o=g.y0)>d||(l=g.x1)<i||(u=g.y1)<a))if(p.length){var y=(s+l)/2,v=(o+u)/2;f.push(new pa(p[3],y,v,l,u),new pa(p[2],s,v,y,u),new pa(p[1],y,o,l,v),new pa(p[0],s,o,y,v)),(m=(e>=v)<<1|t>=y)&&(g=f[f.length-1],f[f.length-1]=f[f.length-1-m],f[f.length-1-m]=g)}else{var T=t-+this._x.call(null,p.data),b=e-+this._y.call(null,p.data),C=T*T+b*b;if(C<r){var w=Math.sqrt(r=C);i=t-w,a=e-w,h=t+w,d=e+w,n=p.data}}return n}function L_e(t){if(isNaN(h=+this._x.call(null,t))||isNaN(d=+this._y.call(null,t)))return this;var e,r=this._root,n,i,a,s=this._x0,o=this._y0,l=this._x1,u=this._y1,h,d,f,p,g,m,y,v;if(!r)return this;if(r.length)for(;;){if((g=h>=(f=(s+l)/2))?s=f:l=f,(m=d>=(p=(o+u)/2))?o=p:u=p,e=r,!(r=r[y=m<<1|g]))return this;if(!r.length)break;(e[y+1&3]||e[y+2&3]||e[y+3&3])&&(n=e,v=y)}for(;r.data!==t;)if(i=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,i?(a?i.next=a:delete i.next,this):e?(a?e[y]=a:delete e[y],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(n?n[v]=r:this._root=r),this):(this._root=a,this)}function I_e(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function D_e(){return this._root}function N_e(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function M_e(t){var e=[],r,n=this._root,i,a,s,o,l;for(n&&e.push(new pa(n,this._x0,this._y0,this._x1,this._y1));r=e.pop();)if(!t(n=r.node,a=r.x0,s=r.y0,o=r.x1,l=r.y1)&&n.length){var u=(a+o)/2,h=(s+l)/2;(i=n[3])&&e.push(new pa(i,u,h,o,l)),(i=n[2])&&e.push(new pa(i,a,h,u,l)),(i=n[1])&&e.push(new pa(i,u,s,o,h)),(i=n[0])&&e.push(new pa(i,a,s,u,h))}return this}function $_e(t){var e=[],r=[],n;for(this._root&&e.push(new pa(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var a,s=n.x0,o=n.y0,l=n.x1,u=n.y1,h=(s+l)/2,d=(o+u)/2;(a=i[0])&&e.push(new pa(a,s,o,h,d)),(a=i[1])&&e.push(new pa(a,h,o,l,d)),(a=i[2])&&e.push(new pa(a,s,d,h,u)),(a=i[3])&&e.push(new pa(a,h,d,l,u))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this}function O_e(t){return t[0]}function P_e(t){return arguments.length?(this._x=t,this):this._x}function B_e(t){return t[1]}function F_e(t){return arguments.length?(this._y=t,this):this._y}function z_e(t,e,r){var n=new bM(e??O_e,r??B_e,NaN,NaN,NaN,NaN);return t==null?n:n.addAll(t)}function bM(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function y8(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var Ra=z_e.prototype=bM.prototype;Ra.copy=function(){var t=new bM(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,r,n;if(!e)return t;if(!e.length)return t._root=y8(e),t;for(r=[{source:e,target:t._root=new Array(4)}];e=r.pop();)for(var i=0;i<4;++i)(n=e.source[i])&&(n.length?r.push({source:n,target:e.target[i]=new Array(4)}):e.target[i]=y8(n));return t};Ra.add=E_e;Ra.addAll=S_e;Ra.cover=k_e;Ra.data=__e;Ra.extent=A_e;Ra.find=R_e;Ra.remove=L_e;Ra.removeAll=I_e;Ra.root=D_e;Ra.size=N_e;Ra.visit=M_e;Ra.visitAfter=$_e;Ra.x=P_e;Ra.y=F_e;function ZS(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const v8=Symbol("implicit");function Hh(){var t=new BF,e=[],r=[],n=v8;function i(a){let s=t.get(a);if(s===void 0){if(n!==v8)return n;t.set(a,s=e.push(a)-1)}return r[s%r.length]}return i.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new BF;for(const s of a)t.has(s)||t.set(s,e.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Hh(e,r).unknown(n)},ZS.apply(i,arguments),i}function e3(){var t=Hh().unknown(void 0),e=t.domain,r=t.range,n=0,i=1,a,s,o=!1,l=0,u=0,h=.5;delete t.unknown;function d(){var f=e().length,p=i<n,g=p?i:n,m=p?n:i;a=(m-g)/Math.max(1,f-l+u*2),o&&(a=Math.floor(a)),g+=(m-g-a*(f-l))*h,s=a*(1-l),o&&(g=Math.round(g),s=Math.round(s));var y=P2e(f).map(function(v){return g+a*v});return r(p?y.reverse():y)}return t.domain=function(f){return arguments.length?(e(f),d()):e()},t.range=function(f){return arguments.length?([n,i]=f,n=+n,i=+i,d()):[n,i]},t.rangeRound=function(f){return[n,i]=f,n=+n,i=+i,o=!0,d()},t.bandwidth=function(){return s},t.step=function(){return a},t.round=function(f){return arguments.length?(o=!!f,d()):o},t.padding=function(f){return arguments.length?(l=Math.min(1,u=+f),d()):l},t.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},t.paddingOuter=function(f){return arguments.length?(u=+f,d()):u},t.align=function(f){return arguments.length?(h=Math.max(0,Math.min(1,f)),d()):h},t.copy=function(){return e3(e(),[n,i]).round(o).paddingInner(l).paddingOuter(u).align(h)},ZS.apply(d(),arguments)}function G_e(t){return function(){return t}}function V_e(t){return+t}var x8=[0,1];function ap(t){return t}function t3(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:G_e(isNaN(e)?NaN:.5)}function W_e(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function U_e(t,e,r){var n=t[0],i=t[1],a=e[0],s=e[1];return i<n?(n=t3(i,n),a=r(s,a)):(n=t3(n,i),a=r(a,s)),function(o){return a(n(o))}}function q_e(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),a=new Array(n),s=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<n;)i[s]=t3(t[s],t[s+1]),a[s]=r(e[s],e[s+1]);return function(o){var l=_2e(t,o,1,n)-1;return a[l](i[l](o))}}function yY(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function H_e(){var t=x8,e=x8,r=ZN,n,i,a,s=ap,o,l,u;function h(){var f=Math.min(t.length,e.length);return s!==ap&&(s=W_e(t[0],t[f-1])),o=f>2?q_e:U_e,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=o(t.map(n),e,r)))(n(s(f)))}return d.invert=function(f){return s(i((u||(u=o(e,t.map(n),Us)))(f)))},d.domain=function(f){return arguments.length?(t=Array.from(f,V_e),h()):t.slice()},d.range=function(f){return arguments.length?(e=Array.from(f),h()):e.slice()},d.rangeRound=function(f){return e=Array.from(f),r=Xbe,h()},d.clamp=function(f){return arguments.length?(s=f?!0:ap,h()):s!==ap},d.interpolate=function(f){return arguments.length?(r=f,h()):r},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,p){return n=f,i=p,h()}}function vY(){return H_e()(ap,ap)}function Y_e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function xw(t,e){if(!isFinite(t)||t===0)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function I0(t){return t=xw(Math.abs(t)),t?t[1]:NaN}function X_e(t,e){return function(r,n){for(var i=r.length,a=[],s=0,o=t[0],l=0;i>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),a.push(r.substring(i-=o,i+o)),!((l+=o+1)>n));)o=t[s=(s+1)%t.length];return a.reverse().join(e)}}function j_e(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var K_e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bw(t){if(!(e=K_e.exec(t)))throw new Error("invalid format: "+t);var e;return new TM({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]})}bw.prototype=TM.prototype;function TM(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}TM.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Z_e(t){e:for(var e=t.length,r=1,n=-1,i;r<e;++r)switch(t[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+t[r])break e;n>0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var Tw;function Q_e(t,e){var r=xw(t,e);if(!r)return Tw=void 0,t.toPrecision(e);var n=r[0],i=r[1],a=i-(Tw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+xw(t,Math.max(0,e+a-1))[0]}function b8(t,e){var r=xw(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const T8={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Y_e,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)=>b8(t*100,e),r:b8,s:Q_e,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function C8(t){return t}var w8=Array.prototype.map,E8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function J_e(t){var e=t.grouping===void 0||t.thousands===void 0?C8:X_e(w8.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?C8:j_e(w8.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(d,f){d=bw(d);var p=d.fill,g=d.align,m=d.sign,y=d.symbol,v=d.zero,T=d.width,b=d.comma,C=d.precision,w=d.trim,S=d.type;S==="n"?(b=!0,S="g"):T8[S]||(C===void 0&&(C=12),w=!0,S="g"),(v||p==="0"&&g==="=")&&(v=!0,p="0",g="=");var E=(f&&f.prefix!==void 0?f.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),_=(y==="$"?n:/[%p]/.test(S)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),R=T8[S],I=/[defgprs%]/.test(S);C=C===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function L(P){var $=E,A=_,D,O,N;if(S==="c")A=R(P)+A,P="";else{P=+P;var M=P<0||1/P<0;if(P=isNaN(P)?l:R(Math.abs(P),C),w&&(P=Z_e(P)),M&&+P==0&&m!=="+"&&(M=!1),$=(M?m==="("?m:o:m==="-"||m==="("?"":m)+$,A=(S==="s"&&!isNaN(P)&&Tw!==void 0?E8[8+Tw/3]:"")+A+(M&&m==="("?")":""),I){for(D=-1,O=P.length;++D<O;)if(N=P.charCodeAt(D),48>N||N>57){A=(N===46?i+P.slice(D+1):P.slice(D))+A,P=P.slice(0,D);break}}}b&&!v&&(P=e(P,1/0));var B=$.length+P.length+A.length,z=B<T?new Array(T-B+1).join(p):"";switch(b&&v&&(P=e(z+P,z.length?T-A.length:1/0),z=""),g){case"<":P=$+P+A+z;break;case"=":P=$+z+P+A;break;case"^":P=z.slice(0,B=z.length>>1)+$+P+A+z.slice(B);break;default:P=z+$+P+A;break}return a(P)}return L.toString=function(){return d+""},L}function h(d,f){var p=Math.max(-8,Math.min(8,Math.floor(I0(f)/3)))*3,g=Math.pow(10,-p),m=u((d=bw(d),d.type="f",d),{suffix:E8[8+p/3]});return function(y){return m(g*y)}}return{format:u,formatPrefix:h}}var XT,mh,xY;eAe({thousands:",",grouping:[3],currency:["$",""]});function eAe(t){return XT=J_e(t),mh=XT.format,xY=XT.formatPrefix,XT}function tAe(t){return Math.max(0,-I0(Math.abs(t)))}function rAe(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(I0(e)/3)))*3-I0(Math.abs(t)))}function nAe(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,I0(e)-I0(t))+1}function iAe(t,e,r,n){var i=qI(t,e,r),a;switch(n=bw(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(a=rAe(i,s))&&(n.precision=a),xY(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=nAe(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=tAe(i))&&(n.precision=a-(n.type==="%")*2);break}}return mh(n)}function aAe(t){var e=t.domain;return t.ticks=function(r){var n=e();return M2e(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return iAe(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,a=n.length-1,s=n[i],o=n[a],l,u,h=10;for(o<s&&(u=s,s=o,o=u,u=i,i=a,a=u);h-- >0;){if(u=UI(s,o,r),u===l)return n[i]=s,n[a]=o,e(n);if(u>0)s=Math.floor(s/u)*u,o=Math.ceil(o/u)*u;else if(u<0)s=Math.ceil(s*u)/u,o=Math.floor(o*u)/u;else break;l=u}return t},t}function D0(){var t=vY();return t.copy=function(){return yY(t,D0())},ZS.apply(t,arguments),aAe(t)}function sAe(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],a=t[n],s;return a<i&&(s=r,r=n,n=s,s=i,i=a,a=s),t[r]=e.floor(i),t[n]=e.ceil(a),t}const LA=new Date,IA=new Date;function ai(t,e,r,n){function i(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const s=i(a),o=i.ceil(a);return a-s<o-a?s:o},i.offset=(a,s)=>(e(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,o)=>{const l=[];if(a=i.ceil(a),o=o==null?1:Math.floor(o),!(a<s)||!(o>0))return l;let u;do l.push(u=new Date(+a)),e(a,o),t(a);while(u<a&&a<s);return l},i.filter=a=>ai(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;e(s,-1),!a(s););else for(;--o>=0;)for(;e(s,1),!a(s););}),r&&(i.count=(a,s)=>(LA.setTime(+a),IA.setTime(+s),t(LA),t(IA),Math.floor(r(LA,IA))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const N0=ai(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);N0.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?ai(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):N0);N0.range;const Ol=1e3,_s=Ol*60,Pl=_s*60,Xl=Pl*24,CM=Xl*7,S8=Xl*30,DA=Xl*365,Wc=ai(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Ol)},(t,e)=>(e-t)/Ol,t=>t.getUTCSeconds());Wc.range;const Fx=ai(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ol)},(t,e)=>{t.setTime(+t+e*_s)},(t,e)=>(e-t)/_s,t=>t.getMinutes());Fx.range;const oAe=ai(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*_s)},(t,e)=>(e-t)/_s,t=>t.getUTCMinutes());oAe.range;const zx=ai(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ol-t.getMinutes()*_s)},(t,e)=>{t.setTime(+t+e*Pl)},(t,e)=>(e-t)/Pl,t=>t.getHours());zx.range;const lAe=ai(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Pl)},(t,e)=>(e-t)/Pl,t=>t.getUTCHours());lAe.range;const id=ai(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*_s)/Xl,t=>t.getDate()-1);id.range;const wM=ai(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Xl,t=>t.getUTCDate()-1);wM.range;const cAe=ai(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Xl,t=>Math.floor(t/Xl));cAe.range;function Ld(t){return ai(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*_s)/CM)}const Hb=Ld(0),Gx=Ld(1),bY=Ld(2),TY=Ld(3),ad=Ld(4),CY=Ld(5),wY=Ld(6);Hb.range;Gx.range;bY.range;TY.range;ad.range;CY.range;wY.range;function Id(t){return ai(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/CM)}const EY=Id(0),Cw=Id(1),uAe=Id(2),hAe=Id(3),M0=Id(4),dAe=Id(5),fAe=Id(6);EY.range;Cw.range;uAe.range;hAe.range;M0.range;dAe.range;fAe.range;const Vx=ai(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Vx.range;const pAe=ai(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());pAe.range;const jl=ai(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());jl.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ai(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});jl.range;const sd=ai(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());sd.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ai(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});sd.range;function gAe(t,e,r,n,i,a){const s=[[Wc,1,Ol],[Wc,5,5*Ol],[Wc,15,15*Ol],[Wc,30,30*Ol],[a,1,_s],[a,5,5*_s],[a,15,15*_s],[a,30,30*_s],[i,1,Pl],[i,3,3*Pl],[i,6,6*Pl],[i,12,12*Pl],[n,1,Xl],[n,2,2*Xl],[r,1,CM],[e,1,S8],[e,3,3*S8],[t,1,DA]];function o(u,h,d){const f=h<u;f&&([u,h]=[h,u]);const p=d&&typeof d.range=="function"?d:l(u,h,d),g=p?p.range(u,+h+1):[];return f?g.reverse():g}function l(u,h,d){const f=Math.abs(h-u)/d,p=rM(([,,y])=>y).right(s,f);if(p===s.length)return t.every(qI(u/DA,h/DA,d));if(p===0)return N0.every(Math.max(qI(u,h,d),1));const[g,m]=s[f/s[p-1][2]<s[p][2]/f?p-1:p];return g.every(m)}return[o,l]}const[mAe,yAe]=gAe(jl,Vx,Hb,id,zx,Fx);function NA(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 MA(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 Wv(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function vAe(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,s=t.shortDays,o=t.months,l=t.shortMonths,u=Uv(i),h=qv(i),d=Uv(a),f=qv(a),p=Uv(s),g=qv(s),m=Uv(o),y=qv(o),v=Uv(l),T=qv(l),b={a:N,A:M,b:B,B:z,c:null,d:I8,e:I8,f:GAe,g:ZAe,G:JAe,H:BAe,I:FAe,j:zAe,L:SY,m:VAe,M:WAe,p:G,q:F,Q:M8,s:$8,S:UAe,u:qAe,U:HAe,V:YAe,w:XAe,W:jAe,x:null,X:null,y:KAe,Y:QAe,Z:eRe,"%":N8},C={a:V,A:W,b:U,B:j,c:null,d:D8,e:D8,f:iRe,g:pRe,G:mRe,H:tRe,I:rRe,j:nRe,L:_Y,m:aRe,M:sRe,p:H,q:ne,Q:M8,s:$8,S:oRe,u:lRe,U:cRe,V:uRe,w:hRe,W:dRe,x:null,X:null,y:fRe,Y:gRe,Z:yRe,"%":N8},w={a:I,A:L,b:P,B:$,c:A,d:R8,e:R8,f:MAe,g:A8,G:_8,H:L8,I:L8,j:LAe,L:NAe,m:RAe,M:IAe,p:R,q:AAe,Q:OAe,s:PAe,S:DAe,u:wAe,U:EAe,V:SAe,w:CAe,W:kAe,x:D,X:O,y:A8,Y:_8,Z:_Ae,"%":$Ae};b.x=S(r,b),b.X=S(n,b),b.c=S(e,b),C.x=S(r,C),C.X=S(n,C),C.c=S(e,C);function S(Z,J){return function(re){var Q=[],fe=-1,te=0,Se=Z.length,Re,Ne,le;for(re instanceof Date||(re=new Date(+re));++fe<Se;)Z.charCodeAt(fe)===37&&(Q.push(Z.slice(te,fe)),(Ne=k8[Re=Z.charAt(++fe)])!=null?Re=Z.charAt(++fe):Ne=Re==="e"?" ":"0",(le=J[Re])&&(Re=le(re,Ne)),Q.push(Re),te=fe+1);return Q.push(Z.slice(te,fe)),Q.join("")}}function E(Z,J){return function(re){var Q=Wv(1900,void 0,1),fe=_(Q,Z,re+="",0),te,Se;if(fe!=re.length)return null;if("Q"in Q)return new Date(Q.Q);if("s"in Q)return new Date(Q.s*1e3+("L"in Q?Q.L:0));if(J&&!("Z"in Q)&&(Q.Z=0),"p"in Q&&(Q.H=Q.H%12+Q.p*12),Q.m===void 0&&(Q.m="q"in Q?Q.q:0),"V"in Q){if(Q.V<1||Q.V>53)return null;"w"in Q||(Q.w=1),"Z"in Q?(te=MA(Wv(Q.y,0,1)),Se=te.getUTCDay(),te=Se>4||Se===0?Cw.ceil(te):Cw(te),te=wM.offset(te,(Q.V-1)*7),Q.y=te.getUTCFullYear(),Q.m=te.getUTCMonth(),Q.d=te.getUTCDate()+(Q.w+6)%7):(te=NA(Wv(Q.y,0,1)),Se=te.getDay(),te=Se>4||Se===0?Gx.ceil(te):Gx(te),te=id.offset(te,(Q.V-1)*7),Q.y=te.getFullYear(),Q.m=te.getMonth(),Q.d=te.getDate()+(Q.w+6)%7)}else("W"in Q||"U"in Q)&&("w"in Q||(Q.w="u"in Q?Q.u%7:"W"in Q?1:0),Se="Z"in Q?MA(Wv(Q.y,0,1)).getUTCDay():NA(Wv(Q.y,0,1)).getDay(),Q.m=0,Q.d="W"in Q?(Q.w+6)%7+Q.W*7-(Se+5)%7:Q.w+Q.U*7-(Se+6)%7);return"Z"in Q?(Q.H+=Q.Z/100|0,Q.M+=Q.Z%100,MA(Q)):NA(Q)}}function _(Z,J,re,Q){for(var fe=0,te=J.length,Se=re.length,Re,Ne;fe<te;){if(Q>=Se)return-1;if(Re=J.charCodeAt(fe++),Re===37){if(Re=J.charAt(fe++),Ne=w[Re in k8?J.charAt(fe++):Re],!Ne||(Q=Ne(Z,re,Q))<0)return-1}else if(Re!=re.charCodeAt(Q++))return-1}return Q}function R(Z,J,re){var Q=u.exec(J.slice(re));return Q?(Z.p=h.get(Q[0].toLowerCase()),re+Q[0].length):-1}function I(Z,J,re){var Q=p.exec(J.slice(re));return Q?(Z.w=g.get(Q[0].toLowerCase()),re+Q[0].length):-1}function L(Z,J,re){var Q=d.exec(J.slice(re));return Q?(Z.w=f.get(Q[0].toLowerCase()),re+Q[0].length):-1}function P(Z,J,re){var Q=v.exec(J.slice(re));return Q?(Z.m=T.get(Q[0].toLowerCase()),re+Q[0].length):-1}function $(Z,J,re){var Q=m.exec(J.slice(re));return Q?(Z.m=y.get(Q[0].toLowerCase()),re+Q[0].length):-1}function A(Z,J,re){return _(Z,e,J,re)}function D(Z,J,re){return _(Z,r,J,re)}function O(Z,J,re){return _(Z,n,J,re)}function N(Z){return s[Z.getDay()]}function M(Z){return a[Z.getDay()]}function B(Z){return l[Z.getMonth()]}function z(Z){return o[Z.getMonth()]}function G(Z){return i[+(Z.getHours()>=12)]}function F(Z){return 1+~~(Z.getMonth()/3)}function V(Z){return s[Z.getUTCDay()]}function W(Z){return a[Z.getUTCDay()]}function U(Z){return l[Z.getUTCMonth()]}function j(Z){return o[Z.getUTCMonth()]}function H(Z){return i[+(Z.getUTCHours()>=12)]}function ne(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var J=S(Z+="",b);return J.toString=function(){return Z},J},parse:function(Z){var J=E(Z+="",!1);return J.toString=function(){return Z},J},utcFormat:function(Z){var J=S(Z+="",C);return J.toString=function(){return Z},J},utcParse:function(Z){var J=E(Z+="",!0);return J.toString=function(){return Z},J}}}var k8={"-":"",_:" ",0:"0"},bi=/^\s*\d+/,xAe=/^%/,bAe=/[\\^$*+?|[\]().{}]/g;function Pr(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function TAe(t){return t.replace(bAe,"\\$&")}function Uv(t){return new RegExp("^(?:"+t.map(TAe).join("|")+")","i")}function qv(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function CAe(t,e,r){var n=bi.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function wAe(t,e,r){var n=bi.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function EAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function SAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function kAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function _8(t,e,r){var n=bi.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function A8(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _Ae(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function AAe(t,e,r){var n=bi.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function RAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function R8(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function LAe(t,e,r){var n=bi.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function L8(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function IAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function DAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function NAe(t,e,r){var n=bi.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function MAe(t,e,r){var n=bi.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function $Ae(t,e,r){var n=xAe.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function OAe(t,e,r){var n=bi.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function PAe(t,e,r){var n=bi.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function I8(t,e){return Pr(t.getDate(),e,2)}function BAe(t,e){return Pr(t.getHours(),e,2)}function FAe(t,e){return Pr(t.getHours()%12||12,e,2)}function zAe(t,e){return Pr(1+id.count(jl(t),t),e,3)}function SY(t,e){return Pr(t.getMilliseconds(),e,3)}function GAe(t,e){return SY(t,e)+"000"}function VAe(t,e){return Pr(t.getMonth()+1,e,2)}function WAe(t,e){return Pr(t.getMinutes(),e,2)}function UAe(t,e){return Pr(t.getSeconds(),e,2)}function qAe(t){var e=t.getDay();return e===0?7:e}function HAe(t,e){return Pr(Hb.count(jl(t)-1,t),e,2)}function kY(t){var e=t.getDay();return e>=4||e===0?ad(t):ad.ceil(t)}function YAe(t,e){return t=kY(t),Pr(ad.count(jl(t),t)+(jl(t).getDay()===4),e,2)}function XAe(t){return t.getDay()}function jAe(t,e){return Pr(Gx.count(jl(t)-1,t),e,2)}function KAe(t,e){return Pr(t.getFullYear()%100,e,2)}function ZAe(t,e){return t=kY(t),Pr(t.getFullYear()%100,e,2)}function QAe(t,e){return Pr(t.getFullYear()%1e4,e,4)}function JAe(t,e){var r=t.getDay();return t=r>=4||r===0?ad(t):ad.ceil(t),Pr(t.getFullYear()%1e4,e,4)}function eRe(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Pr(e/60|0,"0",2)+Pr(e%60,"0",2)}function D8(t,e){return Pr(t.getUTCDate(),e,2)}function tRe(t,e){return Pr(t.getUTCHours(),e,2)}function rRe(t,e){return Pr(t.getUTCHours()%12||12,e,2)}function nRe(t,e){return Pr(1+wM.count(sd(t),t),e,3)}function _Y(t,e){return Pr(t.getUTCMilliseconds(),e,3)}function iRe(t,e){return _Y(t,e)+"000"}function aRe(t,e){return Pr(t.getUTCMonth()+1,e,2)}function sRe(t,e){return Pr(t.getUTCMinutes(),e,2)}function oRe(t,e){return Pr(t.getUTCSeconds(),e,2)}function lRe(t){var e=t.getUTCDay();return e===0?7:e}function cRe(t,e){return Pr(EY.count(sd(t)-1,t),e,2)}function AY(t){var e=t.getUTCDay();return e>=4||e===0?M0(t):M0.ceil(t)}function uRe(t,e){return t=AY(t),Pr(M0.count(sd(t),t)+(sd(t).getUTCDay()===4),e,2)}function hRe(t){return t.getUTCDay()}function dRe(t,e){return Pr(Cw.count(sd(t)-1,t),e,2)}function fRe(t,e){return Pr(t.getUTCFullYear()%100,e,2)}function pRe(t,e){return t=AY(t),Pr(t.getUTCFullYear()%100,e,2)}function gRe(t,e){return Pr(t.getUTCFullYear()%1e4,e,4)}function mRe(t,e){var r=t.getUTCDay();return t=r>=4||r===0?M0(t):M0.ceil(t),Pr(t.getUTCFullYear()%1e4,e,4)}function yRe(){return"+0000"}function N8(){return"%"}function M8(t){return+t}function $8(t){return Math.floor(+t/1e3)}var cf,ww;vRe({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"]});function vRe(t){return cf=vAe(t),ww=cf.format,cf.parse,cf.utcFormat,cf.utcParse,cf}function xRe(t){return new Date(t)}function bRe(t){return t instanceof Date?+t:+new Date(+t)}function RY(t,e,r,n,i,a,s,o,l,u){var h=vY(),d=h.invert,f=h.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),T=u("%b %d"),b=u("%B"),C=u("%Y");function w(S){return(l(S)<S?p:o(S)<S?g:s(S)<S?m:a(S)<S?y:n(S)<S?i(S)<S?v:T:r(S)<S?b:C)(S)}return h.invert=function(S){return new Date(d(S))},h.domain=function(S){return arguments.length?f(Array.from(S,bRe)):f().map(xRe)},h.ticks=function(S){var E=f();return t(E[0],E[E.length-1],S??10)},h.tickFormat=function(S,E){return E==null?w:u(E)},h.nice=function(S){var E=f();return(!S||typeof S.range!="function")&&(S=e(E[0],E[E.length-1],S??10)),S?f(sAe(E,S)):h},h.copy=function(){return yY(h,RY(t,e,r,n,i,a,s,o,l,u))},h}function TRe(){return ZS.apply(RY(mAe,yAe,jl,Vx,Hb,id,zx,Fx,Wc,ww).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function EM(t){for(var e=t.length/6|0,r=new Array(e),n=0;n<e;)r[n]="#"+t.slice(n*6,++n*6);return r}const yyt=EM("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),vyt=EM("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),CRe=EM("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var LY=Object.defineProperty,x=(t,e)=>LY(t,"name",{value:e,configurable:!0}),QS=(t,e)=>{for(var r in e)LY(t,r,{get:e[r],enumerable:!0})},ml={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},se={trace:x((...t)=>{},"trace"),debug:x((...t)=>{},"debug"),info:x((...t)=>{},"info"),warn:x((...t)=>{},"warn"),error:x((...t)=>{},"error"),fatal:x((...t)=>{},"fatal")},SM=x(function(t="fatal"){let e=ml.fatal;typeof t=="string"?t.toLowerCase()in ml&&(e=ml[t]):typeof t=="number"&&(e=t),se.trace=()=>{},se.debug=()=>{},se.info=()=>{},se.warn=()=>{},se.error=()=>{},se.fatal=()=>{},e<=ml.fatal&&(se.fatal=console.error?console.error.bind(console,ys("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ys("FATAL"))),e<=ml.error&&(se.error=console.error?console.error.bind(console,ys("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ys("ERROR"))),e<=ml.warn&&(se.warn=console.warn?console.warn.bind(console,ys("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ys("WARN"))),e<=ml.info&&(se.info=console.info?console.info.bind(console,ys("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ys("INFO"))),e<=ml.debug&&(se.debug=console.debug?console.debug.bind(console,ys("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ys("DEBUG"))),e<=ml.trace&&(se.trace=console.debug?console.debug.bind(console,ys("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ys("TRACE")))},"setLogLevel"),ys=x(t=>`%c${gi().format("ss.SSS")} : ${t} : `,"format");const tC={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const i=r<.5?r*(1+e):r+e-r*e,a=2*r-i;switch(n){case"r":return tC.hue2rgb(a,i,t+1/3)*255;case"g":return tC.hue2rgb(a,i,t)*255;case"b":return tC.hue2rgb(a,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const i=Math.max(t,e,r),a=Math.min(t,e,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;const o=i-a,l=s>.5?o/(2-i-a):o/(i+a);if(n==="s")return l*100;switch(i){case t:return((e-r)/o+(e<r?6:0))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return-1}}},wRe={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},ERe={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},ir={channel:tC,lang:wRe,unit:ERe},Ic={};for(let t=0;t<=255;t++)Ic[t]=ir.unit.dec2hex(t);const Yi={ALL:0,RGB:1,HSL:2};let SRe=class{constructor(){this.type=Yi.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Yi.ALL}is(e){return this.type===e}};class kRe{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new SRe}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=Yi.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:i}=e;r===void 0&&(e.h=ir.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=ir.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=ir.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:i}=e;r===void 0&&(e.r=ir.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=ir.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=ir.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(Yi.HSL)&&r!==void 0?r:(this._ensureHSL(),ir.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(Yi.HSL)&&r!==void 0?r:(this._ensureHSL(),ir.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(Yi.HSL)&&r!==void 0?r:(this._ensureHSL(),ir.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(Yi.RGB)&&r!==void 0?r:(this._ensureRGB(),ir.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(Yi.RGB)&&r!==void 0?r:(this._ensureRGB(),ir.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(Yi.RGB)&&r!==void 0?r:(this._ensureRGB(),ir.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Yi.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Yi.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Yi.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Yi.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Yi.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Yi.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const JS=new kRe({r:0,g:0,b:0,a:0},"transparent"),kp={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(kp.re);if(!e)return;const r=e[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,o=s?1:17,l=s?8:4,u=a?0:-1,h=s?255:15;return JS.set({r:(n>>l*(u+3)&h)*o,g:(n>>l*(u+2)&h)*o,b:(n>>l*(u+1)&h)*o,a:a?(n&h)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`#${Ic[Math.round(e)]}${Ic[Math.round(r)]}${Ic[Math.round(n)]}${Ic[Math.round(i*255)]}`:`#${Ic[Math.round(e)]}${Ic[Math.round(r)]}${Ic[Math.round(n)]}`}},$h={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match($h.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return ir.channel.clamp.h(parseFloat(r)*.9);case"rad":return ir.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return ir.channel.clamp.h(parseFloat(r)*360)}}return ir.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match($h.re);if(!r)return;const[,n,i,a,s,o]=r;return JS.set({h:$h._hue2deg(n),s:ir.channel.clamp.s(parseFloat(i)),l:ir.channel.clamp.l(parseFloat(a)),a:s?ir.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${ir.lang.round(e)}, ${ir.lang.round(r)}%, ${ir.lang.round(n)}%, ${i})`:`hsl(${ir.lang.round(e)}, ${ir.lang.round(r)}%, ${ir.lang.round(n)}%)`}},rx={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=rx.colors[t];if(e)return kp.parse(e)},stringify:t=>{const e=kp.stringify(t);for(const r in rx.colors)if(rx.colors[r]===e)return r}},E1={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(E1.re);if(!r)return;const[,n,i,a,s,o,l,u,h]=r;return JS.set({r:ir.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:ir.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:ir.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?ir.channel.clamp.a(h?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${ir.lang.round(e)}, ${ir.lang.round(r)}, ${ir.lang.round(n)}, ${ir.lang.round(i)})`:`rgb(${ir.lang.round(e)}, ${ir.lang.round(r)}, ${ir.lang.round(n)})`}},lo={format:{keyword:rx,hex:kp,rgb:E1,rgba:E1,hsl:$h,hsla:$h},parse:t=>{if(typeof t!="string")return t;const e=kp.parse(t)||E1.parse(t)||$h.parse(t)||rx.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Yi.HSL)||t.data.r===void 0?$h.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?E1.stringify(t):kp.stringify(t)},IY=(t,e)=>{const r=lo.parse(t);for(const n in e)r[n]=ir.channel.clamp[n](e[n]);return lo.stringify(r)},Js=(t,e,r=0,n=1)=>{if(typeof t!="number")return IY(t,{a:e});const i=JS.set({r:ir.channel.clamp.r(t),g:ir.channel.clamp.g(e),b:ir.channel.clamp.b(r),a:ir.channel.clamp.a(n)});return lo.stringify(i)},kM=(t,e)=>ir.lang.round(lo.parse(t)[e]),_Re=t=>{const{r:e,g:r,b:n}=lo.parse(t),i=.2126*ir.channel.toLinear(e)+.7152*ir.channel.toLinear(r)+.0722*ir.channel.toLinear(n);return ir.lang.round(i)},ARe=t=>_Re(t)>=.5,La=t=>!ARe(t),_M=(t,e,r)=>{const n=lo.parse(t),i=n[e],a=ir.channel.clamp[e](i+r);return i!==a&&(n[e]=a),lo.stringify(n)},He=(t,e)=>_M(t,"l",e),Ye=(t,e)=>_M(t,"l",-e),O8=(t,e)=>_M(t,"a",-e),de=(t,e)=>{const r=lo.parse(t),n={};for(const i in e)e[i]&&(n[i]=r[i]+e[i]);return IY(t,n)},RRe=(t,e,r=50)=>{const{r:n,g:i,b:a,a:s}=lo.parse(t),{r:o,g:l,b:u,a:h}=lo.parse(e),d=r/100,f=d*2-1,p=s-h,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,y=1-m,v=n*m+o*y,T=i*m+l*y,b=a*m+u*y,C=s*d+h*(1-d);return Js(v,T,b,C)},Ge=(t,e=100)=>{const r=lo.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,RRe(r,t,e)};/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function P8(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function LRe(t){if(Array.isArray(t))return t}function IRe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(h){u=!0,i=h}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function DRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ui-CEFkTVnG.js","assets/react-vendor-BVS1XoFi.js","assets/motion-BAXVQJfN.js"])))=>i.map(i=>d[i]);
2
+ var Kve=Object.defineProperty;var Zve=(t,e,r)=>e in t?Kve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Tr=(t,e,r)=>Zve(t,typeof e!="symbol"?e+"":e,r);import{f as gi,i as Qve,h as aw,j as Jve,k as IS,l as mA,m as Uq,n as qq,o as Hq,p as Yq,q as Xq,r as e1e,t as t1e,v as jq,x as r1e,y as n1e,z as i1e,A as a1e,B as s1e,C as o1e,D as l1e,E as c1e,F as u1e,G as h1e,H as d1e,I as f1e,J as p1e,K as g1e,L as m1e,M as y1e,N as v1e,O as x1e,P as b1e,Q as T1e,R as C1e,S as w1e,T as Kq,U as yA,V as E1e,W as S1e,X as k1e,Y as _1e,Z as A1e,_ as R1e,$ as bF,a0 as L1e,a1 as I1e,a2 as D1e,a3 as N1e,a4 as M1e}from"./ui-CEFkTVnG.js";import{_ as Ot,C as Jo,B as dv}from"./react-vendor-BVS1XoFi.js";var $I="http://www.w3.org/1999/xhtml";const TF={svg:"http://www.w3.org/2000/svg",xhtml:$I,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function DS(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),TF.hasOwnProperty(e)?{space:TF[e],local:t}:t}function $1e(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===$I&&e.documentElement.namespaceURI===$I?e.createElement(t):e.createElementNS(r,t)}}function O1e(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Zq(t){var e=DS(t);return(e.local?O1e:$1e)(e)}function P1e(){}function jN(t){return t==null?P1e:function(){return this.querySelector(t)}}function B1e(t){typeof t!="function"&&(t=jN(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=new Array(s),l,u,h=0;h<s;++h)(l=a[h])&&(u=t.call(l,l.__data__,h,a))&&("__data__"in l&&(u.__data__=l.__data__),o[h]=u);return new cs(n,this._parents)}function F1e(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function z1e(){return[]}function Qq(t){return t==null?z1e:function(){return this.querySelectorAll(t)}}function G1e(t){return function(){return F1e(t.apply(this,arguments))}}function V1e(t){typeof t=="function"?t=G1e(t):t=Qq(t);for(var e=this._groups,r=e.length,n=[],i=[],a=0;a<r;++a)for(var s=e[a],o=s.length,l,u=0;u<o;++u)(l=s[u])&&(n.push(t.call(l,l.__data__,u,s)),i.push(l));return new cs(n,i)}function Jq(t){return function(){return this.matches(t)}}function eH(t){return function(e){return e.matches(t)}}var W1e=Array.prototype.find;function U1e(t){return function(){return W1e.call(this.children,t)}}function q1e(){return this.firstElementChild}function H1e(t){return this.select(t==null?q1e:U1e(typeof t=="function"?t:eH(t)))}var Y1e=Array.prototype.filter;function X1e(){return Array.from(this.children)}function j1e(t){return function(){return Y1e.call(this.children,t)}}function K1e(t){return this.selectAll(t==null?X1e:j1e(typeof t=="function"?t:eH(t)))}function Z1e(t){typeof t!="function"&&(t=Jq(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=[],l,u=0;u<s;++u)(l=a[u])&&t.call(l,l.__data__,u,a)&&o.push(l);return new cs(n,this._parents)}function tH(t){return new Array(t.length)}function Q1e(){return new cs(this._enter||this._groups.map(tH),this._parents)}function sw(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}sw.prototype={constructor:sw,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)}};function J1e(t){return function(){return t}}function exe(t,e,r,n,i,a){for(var s=0,o,l=e.length,u=a.length;s<u;++s)(o=e[s])?(o.__data__=a[s],n[s]=o):r[s]=new sw(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function txe(t,e,r,n,i,a,s){var o,l,u=new Map,h=e.length,d=a.length,f=new Array(h),p;for(o=0;o<h;++o)(l=e[o])&&(f[o]=p=s.call(l,l.__data__,o,e)+"",u.has(p)?i[o]=l:u.set(p,l));for(o=0;o<d;++o)p=s.call(t,a[o],o,a)+"",(l=u.get(p))?(n[o]=l,l.__data__=a[o],u.delete(p)):r[o]=new sw(t,a[o]);for(o=0;o<h;++o)(l=e[o])&&u.get(f[o])===l&&(i[o]=l)}function rxe(t){return t.__data__}function nxe(t,e){if(!arguments.length)return Array.from(this,rxe);var r=e?txe:exe,n=this._parents,i=this._groups;typeof t!="function"&&(t=J1e(t));for(var a=i.length,s=new Array(a),o=new Array(a),l=new Array(a),u=0;u<a;++u){var h=n[u],d=i[u],f=d.length,p=ixe(t.call(h,h&&h.__data__,u,n)),g=p.length,m=o[u]=new Array(g),y=s[u]=new Array(g),v=l[u]=new Array(f);r(h,d,m,y,v,p,e);for(var T=0,b=0,C,w;T<g;++T)if(C=m[T]){for(T>=b&&(b=T+1);!(w=y[b])&&++b<g;);C._next=w||null}}return s=new cs(s,n),s._enter=o,s._exit=l,s}function ixe(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function axe(){return new cs(this._exit||this._groups.map(tH),this._parents)}function sxe(t,e,r){var n=this.enter(),i=this,a=this.exit();return typeof t=="function"?(n=t(n),n&&(n=n.selection())):n=n.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function oxe(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,a=n.length,s=Math.min(i,a),o=new Array(i),l=0;l<s;++l)for(var u=r[l],h=n[l],d=u.length,f=o[l]=new Array(d),p,g=0;g<d;++g)(p=u[g]||h[g])&&(f[g]=p);for(;l<i;++l)o[l]=r[l];return new cs(o,this._parents)}function lxe(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n=t[e],i=n.length-1,a=n[i],s;--i>=0;)(s=n[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function cxe(t){t||(t=uxe);function e(d,f){return d&&f?t(d.__data__,f.__data__):!d-!f}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var s=r[a],o=s.length,l=i[a]=new Array(o),u,h=0;h<o;++h)(u=s[h])&&(l[h]=u);l.sort(e)}return new cs(i,this._parents).order()}function uxe(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function hxe(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function dxe(){return Array.from(this)}function fxe(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length;i<a;++i){var s=n[i];if(s)return s}return null}function pxe(){let t=0;for(const e of this)++t;return t}function gxe(){return!this.node()}function mxe(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var i=e[r],a=0,s=i.length,o;a<s;++a)(o=i[a])&&t.call(o,o.__data__,a,i);return this}function yxe(t){return function(){this.removeAttribute(t)}}function vxe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function xxe(t,e){return function(){this.setAttribute(t,e)}}function bxe(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Txe(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Cxe(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function wxe(t,e){var r=DS(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((e==null?r.local?vxe:yxe:typeof e=="function"?r.local?Cxe:Txe:r.local?bxe:xxe)(r,e))}function rH(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Exe(t){return function(){this.style.removeProperty(t)}}function Sxe(t,e,r){return function(){this.style.setProperty(t,e,r)}}function kxe(t,e,r){return function(){var n=e.apply(this,arguments);n==null?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}function _xe(t,e,r){return arguments.length>1?this.each((e==null?Exe:typeof e=="function"?kxe:Sxe)(t,e,r??"")):S0(this.node(),t)}function S0(t,e){return t.style.getPropertyValue(e)||rH(t).getComputedStyle(t,null).getPropertyValue(e)}function Axe(t){return function(){delete this[t]}}function Rxe(t,e){return function(){this[t]=e}}function Lxe(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Ixe(t,e){return arguments.length>1?this.each((e==null?Axe:typeof e=="function"?Lxe:Rxe)(t,e)):this.node()[t]}function nH(t){return t.trim().split(/^|\s+/)}function KN(t){return t.classList||new iH(t)}function iH(t){this._node=t,this._names=nH(t.getAttribute("class")||"")}iH.prototype={add:function(t){var e=this._names.indexOf(t);e<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}};function aH(t,e){for(var r=KN(t),n=-1,i=e.length;++n<i;)r.add(e[n])}function sH(t,e){for(var r=KN(t),n=-1,i=e.length;++n<i;)r.remove(e[n])}function Dxe(t){return function(){aH(this,t)}}function Nxe(t){return function(){sH(this,t)}}function Mxe(t,e){return function(){(e.apply(this,arguments)?aH:sH)(this,t)}}function $xe(t,e){var r=nH(t+"");if(arguments.length<2){for(var n=KN(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof e=="function"?Mxe:e?Dxe:Nxe)(r,e))}function Oxe(){this.textContent=""}function Pxe(t){return function(){this.textContent=t}}function Bxe(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Fxe(t){return arguments.length?this.each(t==null?Oxe:(typeof t=="function"?Bxe:Pxe)(t)):this.node().textContent}function zxe(){this.innerHTML=""}function Gxe(t){return function(){this.innerHTML=t}}function Vxe(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Wxe(t){return arguments.length?this.each(t==null?zxe:(typeof t=="function"?Vxe:Gxe)(t)):this.node().innerHTML}function Uxe(){this.nextSibling&&this.parentNode.appendChild(this)}function qxe(){return this.each(Uxe)}function Hxe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yxe(){return this.each(Hxe)}function Xxe(t){var e=typeof t=="function"?t:Zq(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function jxe(){return null}function Kxe(t,e){var r=typeof t=="function"?t:Zq(t),n=e==null?jxe:typeof e=="function"?e:jN(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function Zxe(){var t=this.parentNode;t&&t.removeChild(this)}function Qxe(){return this.each(Zxe)}function Jxe(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ebe(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tbe(t){return this.select(t?ebe:Jxe)}function rbe(t){return arguments.length?this.property("__data__",t):this.node().__data__}function nbe(t){return function(e){t.call(this,e,this.__data__)}}function ibe(t){return t.trim().split(/^|\s+/).map(function(e){var r="",n=e.indexOf(".");return n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function abe(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,a;r<i;++r)a=e[r],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++n]=a;++n?e.length=n:delete this.__on}}}function sbe(t,e,r){return function(){var n=this.__on,i,a=nbe(e);if(n){for(var s=0,o=n.length;s<o;++s)if((i=n[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=e;return}}this.addEventListener(t.type,a,r),i={type:t.type,name:t.name,value:e,listener:a,options:r},n?n.push(i):this.__on=[i]}}function obe(t,e,r){var n=ibe(t+""),i,a=n.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,u=o.length,h;l<u;++l)for(i=0,h=o[l];i<a;++i)if((s=n[i]).type===h.type&&s.name===h.name)return h.value}return}for(o=e?sbe:abe,i=0;i<a;++i)this.each(o(n[i],e,r));return this}function oH(t,e,r){var n=rH(t),i=n.CustomEvent;typeof i=="function"?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function lbe(t,e){return function(){return oH(this,t,e)}}function cbe(t,e){return function(){return oH(this,t,e.apply(this,arguments))}}function ube(t,e){return this.each((typeof e=="function"?cbe:lbe)(t,e))}function*hbe(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length,s;i<a;++i)(s=n[i])&&(yield s)}var lH=[null];function cs(t,e){this._groups=t,this._parents=e}function zb(){return new cs([[document.documentElement]],lH)}function dbe(){return this}cs.prototype=zb.prototype={constructor:cs,select:B1e,selectAll:V1e,selectChild:H1e,selectChildren:K1e,filter:Z1e,data:nxe,enter:Q1e,exit:axe,join:sxe,merge:oxe,selection:dbe,order:lxe,sort:cxe,call:hxe,nodes:dxe,node:fxe,size:pxe,empty:gxe,each:mxe,attr:wxe,style:_xe,property:Ixe,classed:$xe,text:Fxe,html:Wxe,raise:qxe,lower:Yxe,append:Xxe,insert:Kxe,remove:Qxe,clone:tbe,datum:rbe,on:obe,dispatch:ube,[Symbol.iterator]:hbe};function Qe(t){return typeof t=="string"?new cs([[document.querySelector(t)]],[document.documentElement]):new cs([[t]],lH)}function fbe(t){let e;for(;e=t.sourceEvent;)t=e;return t}function kl(t,e){if(t=fbe(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n=n.matrixTransform(e.getScreenCTM().inverse()),[n.x,n.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 pbe={value:()=>{}};function NS(){for(var t=0,e=arguments.length,r={},n;t<e;++t){if(!(n=arguments[t]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new j2(r)}function j2(t){this._=t}function gbe(t,e){return t.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}j2.prototype=NS.prototype={constructor:j2,on:function(t,e){var r=this._,n=gbe(t+"",r),i,a=-1,s=n.length;if(arguments.length<2){for(;++a<s;)if((i=(t=n[a]).type)&&(i=mbe(r[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<s;)if(i=(t=n[a]).type)r[i]=CF(r[i],t.name,e);else if(e==null)for(i in r)r[i]=CF(r[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new j2(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],n=0,i=a.length;n<i;++n)a[n].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}};function mbe(t,e){for(var r=0,n=t.length,i;r<n;++r)if((i=t[r]).name===e)return i.value}function CF(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=pbe,t=t.slice(0,n).concat(t.slice(n+1));break}return r!=null&&t.push({name:e,value:r}),t}const ybe={passive:!1},Rx={capture:!0,passive:!1};function vA(t){t.stopImmediatePropagation()}function Tp(t){t.preventDefault(),t.stopImmediatePropagation()}function cH(t){var e=t.document.documentElement,r=Qe(t).on("dragstart.drag",Tp,Rx);"onselectstart"in e?r.on("selectstart.drag",Tp,Rx):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function uH(t,e){var r=t.document.documentElement,n=Qe(t).on("dragstart.drag",null);e&&(n.on("click.drag",Tp,Rx),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const VT=t=>()=>t;function OI(t,{sourceEvent:e,subject:r,target:n,identifier:i,active:a,x:s,y:o,dx:l,dy:u,dispatch:h}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:o,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:h}})}OI.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function vbe(t){return!t.ctrlKey&&!t.button}function xbe(){return this.parentNode}function bbe(t,e){return e??{x:t.x,y:t.y}}function Tbe(){return navigator.maxTouchPoints||"ontouchstart"in this}function dyt(){var t=vbe,e=xbe,r=bbe,n=Tbe,i={},a=NS("start","drag","end"),s=0,o,l,u,h,d=0;function f(C){C.on("mousedown.drag",p).filter(n).on("touchstart.drag",y).on("touchmove.drag",v,ybe).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(C,w){if(!(h||!t.call(this,C,w))){var S=b(this,e.call(this,C,w),C,w,"mouse");S&&(Qe(C.view).on("mousemove.drag",g,Rx).on("mouseup.drag",m,Rx),cH(C.view),vA(C),u=!1,o=C.clientX,l=C.clientY,S("start",C))}}function g(C){if(Tp(C),!u){var w=C.clientX-o,S=C.clientY-l;u=w*w+S*S>d}i.mouse("drag",C)}function m(C){Qe(C.view).on("mousemove.drag mouseup.drag",null),uH(C.view,u),Tp(C),i.mouse("end",C)}function y(C,w){if(t.call(this,C,w)){var S=C.changedTouches,E=e.call(this,C,w),_=S.length,R,I;for(R=0;R<_;++R)(I=b(this,E,C,w,S[R].identifier,S[R]))&&(vA(C),I("start",C,S[R]))}}function v(C){var w=C.changedTouches,S=w.length,E,_;for(E=0;E<S;++E)(_=i[w[E].identifier])&&(Tp(C),_("drag",C,w[E]))}function T(C){var w=C.changedTouches,S=w.length,E,_;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),E=0;E<S;++E)(_=i[w[E].identifier])&&(vA(C),_("end",C,w[E]))}function b(C,w,S,E,_,R){var I=a.copy(),L=kl(R||S,w),P,$,A;if((A=r.call(C,new OI("beforestart",{sourceEvent:S,target:f,identifier:_,active:s,x:L[0],y:L[1],dx:0,dy:0,dispatch:I}),E))!=null)return P=A.x-L[0]||0,$=A.y-L[1]||0,function D(O,N,M){var B=L,z;switch(O){case"start":i[_]=D,z=s++;break;case"end":delete i[_],--s;case"drag":L=kl(M||N,w),z=s;break}I.call(O,C,new OI(O,{sourceEvent:N,subject:A,target:f,identifier:_,active:z,x:L[0]+P,y:L[1]+$,dx:L[0]-B[0],dy:L[1]-B[1],dispatch:I}),E)}}return f.filter=function(C){return arguments.length?(t=typeof C=="function"?C:VT(!!C),f):t},f.container=function(C){return arguments.length?(e=typeof C=="function"?C:VT(C),f):e},f.subject=function(C){return arguments.length?(r=typeof C=="function"?C:VT(C),f):r},f.touchable=function(C){return arguments.length?(n=typeof C=="function"?C:VT(!!C),f):n},f.on=function(){var C=a.on.apply(a,arguments);return C===a?f:C},f.clickDistance=function(C){return arguments.length?(d=(C=+C)*C,f):Math.sqrt(d)},f}function Gb(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function MS(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Ed(){}var Lx=.7,ow=1/Lx,Cp="\\s*([+-]?\\d+)\\s*",Ix="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Go="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Cbe=/^#([0-9a-f]{3,8})$/,wbe=new RegExp(`^rgb\\(${Cp},${Cp},${Cp}\\)$`),Ebe=new RegExp(`^rgb\\(${Go},${Go},${Go}\\)$`),Sbe=new RegExp(`^rgba\\(${Cp},${Cp},${Cp},${Ix}\\)$`),kbe=new RegExp(`^rgba\\(${Go},${Go},${Go},${Ix}\\)$`),_be=new RegExp(`^hsl\\(${Ix},${Go},${Go}\\)$`),Abe=new RegExp(`^hsla\\(${Ix},${Go},${Go},${Ix}\\)$`),wF={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};Gb(Ed,Jh,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:EF,formatHex:EF,formatHex8:Rbe,formatHsl:Lbe,formatRgb:SF,toString:SF});function EF(){return this.rgb().formatHex()}function Rbe(){return this.rgb().formatHex8()}function Lbe(){return dH(this).formatHsl()}function SF(){return this.rgb().formatRgb()}function Jh(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Cbe.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?kF(e):r===3?new Zi(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?WT(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?WT(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=wbe.exec(t))?new Zi(e[1],e[2],e[3],1):(e=Ebe.exec(t))?new Zi(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Sbe.exec(t))?WT(e[1],e[2],e[3],e[4]):(e=kbe.exec(t))?WT(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=_be.exec(t))?RF(e[1],e[2]/100,e[3]/100,1):(e=Abe.exec(t))?RF(e[1],e[2]/100,e[3]/100,e[4]):wF.hasOwnProperty(t)?kF(wF[t]):t==="transparent"?new Zi(NaN,NaN,NaN,0):null}function kF(t){return new Zi(t>>16&255,t>>8&255,t&255,1)}function WT(t,e,r,n){return n<=0&&(t=e=r=NaN),new Zi(t,e,r,n)}function hH(t){return t instanceof Ed||(t=Jh(t)),t?(t=t.rgb(),new Zi(t.r,t.g,t.b,t.opacity)):new Zi}function PI(t,e,r,n){return arguments.length===1?hH(t):new Zi(t,e,r,n??1)}function Zi(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Gb(Zi,PI,MS(Ed,{brighter(t){return t=t==null?ow:Math.pow(ow,t),new Zi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Lx:Math.pow(Lx,t),new Zi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Zi(qh(this.r),qh(this.g),qh(this.b),lw(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:_F,formatHex:_F,formatHex8:Ibe,formatRgb:AF,toString:AF}));function _F(){return`#${Mh(this.r)}${Mh(this.g)}${Mh(this.b)}`}function Ibe(){return`#${Mh(this.r)}${Mh(this.g)}${Mh(this.b)}${Mh((isNaN(this.opacity)?1:this.opacity)*255)}`}function AF(){const t=lw(this.opacity);return`${t===1?"rgb(":"rgba("}${qh(this.r)}, ${qh(this.g)}, ${qh(this.b)}${t===1?")":`, ${t})`}`}function lw(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function qh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Mh(t){return t=qh(t),(t<16?"0":"")+t.toString(16)}function RF(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new js(t,e,r,n)}function dH(t){if(t instanceof js)return new js(t.h,t.s,t.l,t.opacity);if(t instanceof Ed||(t=Jh(t)),!t)return new js;if(t instanceof js)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),s=NaN,o=a-i,l=(a+i)/2;return o?(e===a?s=(r-n)/o+(r<n)*6:r===a?s=(n-e)/o+2:s=(e-r)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new js(s,o,l,t.opacity)}function Dbe(t,e,r,n){return arguments.length===1?dH(t):new js(t,e,r,n??1)}function js(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Gb(js,Dbe,MS(Ed,{brighter(t){return t=t==null?ow:Math.pow(ow,t),new js(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Lx:Math.pow(Lx,t),new js(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Zi(xA(t>=240?t-240:t+120,i,n),xA(t,i,n),xA(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new js(LF(this.h),UT(this.s),UT(this.l),lw(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=lw(this.opacity);return`${t===1?"hsl(":"hsla("}${LF(this.h)}, ${UT(this.s)*100}%, ${UT(this.l)*100}%${t===1?")":`, ${t})`}`}}));function LF(t){return t=(t||0)%360,t<0?t+360:t}function UT(t){return Math.max(0,Math.min(1,t||0))}function xA(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Nbe=Math.PI/180,Mbe=180/Math.PI,cw=18,fH=.96422,pH=1,gH=.82521,mH=4/29,wp=6/29,yH=3*wp*wp,$be=wp*wp*wp;function vH(t){if(t instanceof Vo)return new Vo(t.l,t.a,t.b,t.opacity);if(t instanceof Nl)return xH(t);t instanceof Zi||(t=hH(t));var e=wA(t.r),r=wA(t.g),n=wA(t.b),i=bA((.2225045*e+.7168786*r+.0606169*n)/pH),a,s;return e===r&&r===n?a=s=i:(a=bA((.4360747*e+.3850649*r+.1430804*n)/fH),s=bA((.0139322*e+.0971045*r+.7141733*n)/gH)),new Vo(116*i-16,500*(a-i),200*(i-s),t.opacity)}function Obe(t,e,r,n){return arguments.length===1?vH(t):new Vo(t,e,r,n??1)}function Vo(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}Gb(Vo,Obe,MS(Ed,{brighter(t){return new Vo(this.l+cw*(t??1),this.a,this.b,this.opacity)},darker(t){return new Vo(this.l-cw*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=fH*TA(e),t=pH*TA(t),r=gH*TA(r),new Zi(CA(3.1338561*e-1.6168667*t-.4906146*r),CA(-.9787684*e+1.9161415*t+.033454*r),CA(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function bA(t){return t>$be?Math.pow(t,1/3):t/yH+mH}function TA(t){return t>wp?t*t*t:yH*(t-mH)}function CA(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function wA(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Pbe(t){if(t instanceof Nl)return new Nl(t.h,t.c,t.l,t.opacity);if(t instanceof Vo||(t=vH(t)),t.a===0&&t.b===0)return new Nl(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Mbe;return new Nl(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function BI(t,e,r,n){return arguments.length===1?Pbe(t):new Nl(t,e,r,n??1)}function Nl(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function xH(t){if(isNaN(t.h))return new Vo(t.l,0,0,t.opacity);var e=t.h*Nbe;return new Vo(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Gb(Nl,BI,MS(Ed,{brighter(t){return new Nl(this.h,this.c,this.l+cw*(t??1),this.opacity)},darker(t){return new Nl(this.h,this.c,this.l-cw*(t??1),this.opacity)},rgb(){return xH(this).rgb()}}));const $S=t=>()=>t;function bH(t,e){return function(r){return t+r*e}}function Bbe(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function Fbe(t,e){var r=e-t;return r?bH(t,r>180||r<-180?r-360*Math.round(r/360):r):$S(isNaN(t)?e:t)}function zbe(t){return(t=+t)==1?J1:function(e,r){return r-e?Bbe(e,r,t):$S(isNaN(e)?r:e)}}function J1(t,e){var r=e-t;return r?bH(t,r):$S(isNaN(t)?e:t)}const uw=function t(e){var r=zbe(e);function n(i,a){var s=r((i=PI(i)).r,(a=PI(a)).r),o=r(i.g,a.g),l=r(i.b,a.b),u=J1(i.opacity,a.opacity);return function(h){return i.r=s(h),i.g=o(h),i.b=l(h),i.opacity=u(h),i+""}}return n.gamma=t,n}(1);function Gbe(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=t[i]*(1-a)+e[i]*a;return n}}function Vbe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Wbe(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s<n;++s)i[s]=ZN(t[s],e[s]);for(;s<r;++s)a[s]=e[s];return function(o){for(s=0;s<n;++s)a[s]=i[s](o);return a}}function Ube(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Us(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function qbe(t,e){var r={},n={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?r[i]=ZN(t[i],e[i]):n[i]=e[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var FI=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,EA=new RegExp(FI.source,"g");function Hbe(t){return function(){return t}}function Ybe(t){return function(e){return t(e)+""}}function TH(t,e){var r=FI.lastIndex=EA.lastIndex=0,n,i,a,s=-1,o=[],l=[];for(t=t+"",e=e+"";(n=FI.exec(t))&&(i=EA.exec(e));)(a=i.index)>r&&(a=e.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:Us(n,i)})),r=EA.lastIndex;return r<e.length&&(a=e.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?Ybe(l[0].x):Hbe(e):(e=l.length,function(u){for(var h=0,d;h<e;++h)o[(d=l[h]).i]=d.x(u);return o.join("")})}function ZN(t,e){var r=typeof e,n;return e==null||r==="boolean"?$S(e):(r==="number"?Us:r==="string"?(n=Jh(e))?(e=n,uw):TH:e instanceof Jh?uw:e instanceof Date?Ube:Vbe(e)?Gbe:Array.isArray(e)?Wbe:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?qbe:Us)(t,e)}function Xbe(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var IF=180/Math.PI,zI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function CH(t,e,r,n,i,a){var s,o,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(o=Math.sqrt(r*r+n*n))&&(r/=o,n/=o,l/=o),t*n<e*r&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*IF,skewX:Math.atan(l)*IF,scaleX:s,scaleY:o}}var qT;function jbe(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?zI:CH(e.a,e.b,e.c,e.d,e.e,e.f)}function Kbe(t){return t==null||(qT||(qT=document.createElementNS("http://www.w3.org/2000/svg","g")),qT.setAttribute("transform",t),!(t=qT.transform.baseVal.consolidate()))?zI:(t=t.matrix,CH(t.a,t.b,t.c,t.d,t.e,t.f))}function wH(t,e,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,h,d,f,p,g){if(u!==d||h!==f){var m=p.push("translate(",null,e,null,r);g.push({i:m-4,x:Us(u,d)},{i:m-2,x:Us(h,f)})}else(d||f)&&p.push("translate("+d+e+f+r)}function s(u,h,d,f){u!==h?(u-h>180?h+=360:h-u>180&&(u+=360),f.push({i:d.push(i(d)+"rotate(",null,n)-2,x:Us(u,h)})):h&&d.push(i(d)+"rotate("+h+n)}function o(u,h,d,f){u!==h?f.push({i:d.push(i(d)+"skewX(",null,n)-2,x:Us(u,h)}):h&&d.push(i(d)+"skewX("+h+n)}function l(u,h,d,f,p,g){if(u!==d||h!==f){var m=p.push(i(p)+"scale(",null,",",null,")");g.push({i:m-4,x:Us(u,d)},{i:m-2,x:Us(h,f)})}else(d!==1||f!==1)&&p.push(i(p)+"scale("+d+","+f+")")}return function(u,h){var d=[],f=[];return u=t(u),h=t(h),a(u.translateX,u.translateY,h.translateX,h.translateY,d,f),s(u.rotate,h.rotate,d,f),o(u.skewX,h.skewX,d,f),l(u.scaleX,u.scaleY,h.scaleX,h.scaleY,d,f),u=h=null,function(p){for(var g=-1,m=f.length,y;++g<m;)d[(y=f[g]).i]=y.x(p);return d.join("")}}}var Zbe=wH(jbe,"px, ","px)","deg)"),Qbe=wH(Kbe,", ",")",")"),Jbe=1e-12;function DF(t){return((t=Math.exp(t))+1/t)/2}function eTe(t){return((t=Math.exp(t))-1/t)/2}function tTe(t){return((t=Math.exp(2*t))-1)/(t+1)}const rTe=function t(e,r,n){function i(a,s){var o=a[0],l=a[1],u=a[2],h=s[0],d=s[1],f=s[2],p=h-o,g=d-l,m=p*p+g*g,y,v;if(m<Jbe)v=Math.log(f/u)/e,y=function(E){return[o+E*p,l+E*g,u*Math.exp(e*E*v)]};else{var T=Math.sqrt(m),b=(f*f-u*u+n*m)/(2*u*r*T),C=(f*f-u*u-n*m)/(2*f*r*T),w=Math.log(Math.sqrt(b*b+1)-b),S=Math.log(Math.sqrt(C*C+1)-C);v=(S-w)/e,y=function(E){var _=E*v,R=DF(w),I=u/(r*T)*(R*tTe(e*_+w)-eTe(w));return[o+I*p,l+I*g,u*R/DF(e*_+w)]}}return y.duration=v*1e3*e/Math.SQRT2,y}return i.rho=function(a){var s=Math.max(.001,+a),o=s*s,l=o*o;return t(s,o,l)},i}(Math.SQRT2,2,4);function nTe(t){return function(e,r){var n=t((e=BI(e)).h,(r=BI(r)).h),i=J1(e.c,r.c),a=J1(e.l,r.l),s=J1(e.opacity,r.opacity);return function(o){return e.h=n(o),e.c=i(o),e.l=a(o),e.opacity=s(o),e+""}}}const iTe=nTe(Fbe);var k0=0,C1=0,zv=0,EH=1e3,hw,w1,dw=0,ed=0,OS=0,Dx=typeof performance=="object"&&performance.now?performance:Date,SH=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function QN(){return ed||(SH(aTe),ed=Dx.now()+OS)}function aTe(){ed=0}function fw(){this._call=this._time=this._next=null}fw.prototype=kH.prototype={constructor:fw,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?QN():+r)+(e==null?0:+e),!this._next&&w1!==this&&(w1?w1._next=this:hw=this,w1=this),this._call=t,this._time=r,GI()},stop:function(){this._call&&(this._call=null,this._time=1/0,GI())}};function kH(t,e,r){var n=new fw;return n.restart(t,e,r),n}function sTe(){QN(),++k0;for(var t=hw,e;t;)(e=ed-t._time)>=0&&t._call.call(void 0,e),t=t._next;--k0}function NF(){ed=(dw=Dx.now())+OS,k0=C1=0;try{sTe()}finally{k0=0,lTe(),ed=0}}function oTe(){var t=Dx.now(),e=t-dw;e>EH&&(OS-=e,dw=t)}function lTe(){for(var t,e=hw,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:hw=r);w1=t,GI(n)}function GI(t){if(!k0){C1&&(C1=clearTimeout(C1));var e=t-ed;e>24?(t<1/0&&(C1=setTimeout(NF,t-Dx.now()-OS)),zv&&(zv=clearInterval(zv))):(zv||(dw=Dx.now(),zv=setInterval(oTe,EH)),k0=1,SH(NF))}}function MF(t,e,r){var n=new fw;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var cTe=NS("start","end","cancel","interrupt"),uTe=[],_H=0,$F=1,VI=2,K2=3,OF=4,WI=5,Z2=6;function PS(t,e,r,n,i,a){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;hTe(t,r,{name:e,index:n,group:i,on:cTe,tween:uTe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:_H})}function JN(t,e){var r=po(t,e);if(r.state>_H)throw new Error("too late; already scheduled");return r}function el(t,e){var r=po(t,e);if(r.state>K2)throw new Error("too late; already running");return r}function po(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function hTe(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=kH(a,0,r.time);function a(u){r.state=$F,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var h,d,f,p;if(r.state!==$F)return l();for(h in n)if(p=n[h],p.name===r.name){if(p.state===K2)return MF(s);p.state===OF?(p.state=Z2,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete n[h]):+h<e&&(p.state=Z2,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete n[h])}if(MF(function(){r.state===K2&&(r.state=OF,r.timer.restart(o,r.delay,r.time),o(u))}),r.state=VI,r.on.call("start",t,t.__data__,r.index,r.group),r.state===VI){for(r.state=K2,i=new Array(f=r.tween.length),h=0,d=-1;h<f;++h)(p=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(i[++d]=p);i.length=d+1}}function o(u){for(var h=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=WI,1),d=-1,f=i.length;++d<f;)i[d].call(t,h);r.state===WI&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){r.state=Z2,r.timer.stop(),delete n[e];for(var u in n)return;delete t.__transition}}function Q2(t,e){var r=t.__transition,n,i,a=!0,s;if(r){e=e==null?null:e+"";for(s in r){if((n=r[s]).name!==e){a=!1;continue}i=n.state>VI&&n.state<WI,n.state=Z2,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[s]}a&&delete t.__transition}}function dTe(t){return this.each(function(){Q2(this,t)})}function fTe(t,e){var r,n;return function(){var i=el(this,t),a=i.tween;if(a!==r){n=r=a;for(var s=0,o=n.length;s<o;++s)if(n[s].name===e){n=n.slice(),n.splice(s,1);break}}i.tween=n}}function pTe(t,e,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=el(this,t),s=a.tween;if(s!==n){i=(n=s).slice();for(var o={name:e,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===e){i[l]=o;break}l===u&&i.push(o)}a.tween=i}}function gTe(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n=po(this.node(),r).tween,i=0,a=n.length,s;i<a;++i)if((s=n[i]).name===t)return s.value;return null}return this.each((e==null?fTe:pTe)(r,t,e))}function eM(t,e,r){var n=t._id;return t.each(function(){var i=el(this,n);(i.value||(i.value={}))[e]=r.apply(this,arguments)}),function(i){return po(i,n).value[e]}}function AH(t,e){var r;return(typeof e=="number"?Us:e instanceof Jh?uw:(r=Jh(e))?(e=r,uw):TH)(t,e)}function mTe(t){return function(){this.removeAttribute(t)}}function yTe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function vTe(t,e,r){var n,i=r+"",a;return function(){var s=this.getAttribute(t);return s===i?null:s===n?a:a=e(n=s,r)}}function xTe(t,e,r){var n,i=r+"",a;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===n?a:a=e(n=s,r)}}function bTe(t,e,r){var n,i,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=o+"",s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o)))}}function TTe(t,e,r){var n,i,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=o+"",s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o)))}}function CTe(t,e){var r=DS(t),n=r==="transform"?Qbe:AH;return this.attrTween(t,typeof e=="function"?(r.local?TTe:bTe)(r,n,eM(this,"attr."+t,e)):e==null?(r.local?yTe:mTe)(r):(r.local?xTe:vTe)(r,n,e))}function wTe(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function ETe(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function STe(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&ETe(t,a)),r}return i._value=e,i}function kTe(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&wTe(t,a)),r}return i._value=e,i}function _Te(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var n=DS(t);return this.tween(r,(n.local?STe:kTe)(n,e))}function ATe(t,e){return function(){JN(this,t).delay=+e.apply(this,arguments)}}function RTe(t,e){return e=+e,function(){JN(this,t).delay=e}}function LTe(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ATe:RTe)(e,t)):po(this.node(),e).delay}function ITe(t,e){return function(){el(this,t).duration=+e.apply(this,arguments)}}function DTe(t,e){return e=+e,function(){el(this,t).duration=e}}function NTe(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ITe:DTe)(e,t)):po(this.node(),e).duration}function MTe(t,e){if(typeof e!="function")throw new Error;return function(){el(this,t).ease=e}}function $Te(t){var e=this._id;return arguments.length?this.each(MTe(e,t)):po(this.node(),e).ease}function OTe(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;el(this,t).ease=r}}function PTe(t){if(typeof t!="function")throw new Error;return this.each(OTe(this._id,t))}function BTe(t){typeof t!="function"&&(t=Jq(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=[],l,u=0;u<s;++u)(l=a[u])&&t.call(l,l.__data__,u,a)&&o.push(l);return new Yl(n,this._parents,this._name,this._id)}function FTe(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),s=new Array(n),o=0;o<a;++o)for(var l=e[o],u=r[o],h=l.length,d=s[o]=new Array(h),f,p=0;p<h;++p)(f=l[p]||u[p])&&(d[p]=f);for(;o<n;++o)s[o]=e[o];return new Yl(s,this._parents,this._name,this._id)}function zTe(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function GTe(t,e,r){var n,i,a=zTe(e)?JN:el;return function(){var s=a(this,t),o=s.on;o!==n&&(i=(n=o).copy()).on(e,r),s.on=i}}function VTe(t,e){var r=this._id;return arguments.length<2?po(this.node(),r).on.on(t):this.each(GTe(r,t,e))}function WTe(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function UTe(){return this.on("end.remove",WTe(this._id))}function qTe(t){var e=this._name,r=this._id;typeof t!="function"&&(t=jN(t));for(var n=this._groups,i=n.length,a=new Array(i),s=0;s<i;++s)for(var o=n[s],l=o.length,u=a[s]=new Array(l),h,d,f=0;f<l;++f)(h=o[f])&&(d=t.call(h,h.__data__,f,o))&&("__data__"in h&&(d.__data__=h.__data__),u[f]=d,PS(u[f],e,r,f,u,po(h,r)));return new Yl(a,this._parents,e,r)}function HTe(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Qq(t));for(var n=this._groups,i=n.length,a=[],s=[],o=0;o<i;++o)for(var l=n[o],u=l.length,h,d=0;d<u;++d)if(h=l[d]){for(var f=t.call(h,h.__data__,d,l),p,g=po(h,r),m=0,y=f.length;m<y;++m)(p=f[m])&&PS(p,e,r,m,f,g);a.push(f),s.push(h)}return new Yl(a,s,e,r)}var YTe=zb.prototype.constructor;function XTe(){return new YTe(this._groups,this._parents)}function jTe(t,e){var r,n,i;return function(){var a=S0(this,t),s=(this.style.removeProperty(t),S0(this,t));return a===s?null:a===r&&s===n?i:i=e(r=a,n=s)}}function RH(t){return function(){this.style.removeProperty(t)}}function KTe(t,e,r){var n,i=r+"",a;return function(){var s=S0(this,t);return s===i?null:s===n?a:a=e(n=s,r)}}function ZTe(t,e,r){var n,i,a;return function(){var s=S0(this,t),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(t),S0(this,t))),s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o))}}function QTe(t,e){var r,n,i,a="style."+e,s="end."+a,o;return function(){var l=el(this,t),u=l.on,h=l.value[a]==null?o||(o=RH(e)):void 0;(u!==r||i!==h)&&(n=(r=u).copy()).on(s,i=h),l.on=n}}function JTe(t,e,r){var n=(t+="")=="transform"?Zbe:AH;return e==null?this.styleTween(t,jTe(t,n)).on("end.style."+t,RH(t)):typeof e=="function"?this.styleTween(t,ZTe(t,n,eM(this,"style."+t,e))).each(QTe(this._id,t)):this.styleTween(t,KTe(t,n,e),r).on("end.style."+t,null)}function e2e(t,e,r){return function(n){this.style.setProperty(t,e.call(this,n),r)}}function t2e(t,e,r){var n,i;function a(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&e2e(t,s,r)),n}return a._value=e,a}function r2e(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,t2e(t,e,r??""))}function n2e(t){return function(){this.textContent=t}}function i2e(t){return function(){var e=t(this);this.textContent=e??""}}function a2e(t){return this.tween("text",typeof t=="function"?i2e(eM(this,"text",t)):n2e(t==null?"":t+""))}function s2e(t){return function(e){this.textContent=t.call(this,e)}}function o2e(t){var e,r;function n(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&s2e(i)),e}return n._value=t,n}function l2e(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,o2e(t))}function c2e(){for(var t=this._name,e=this._id,r=LH(),n=this._groups,i=n.length,a=0;a<i;++a)for(var s=n[a],o=s.length,l,u=0;u<o;++u)if(l=s[u]){var h=po(l,e);PS(l,t,r,u,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Yl(n,this._parents,t,r)}function u2e(){var t,e,r=this,n=r._id,i=r.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--i===0&&a()}};r.each(function(){var u=el(this,n),h=u.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),u.on=e}),i===0&&a()})}var h2e=0;function Yl(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}function LH(){return++h2e}var gl=zb.prototype;Yl.prototype={constructor:Yl,select:qTe,selectAll:HTe,selectChild:gl.selectChild,selectChildren:gl.selectChildren,filter:BTe,merge:FTe,selection:XTe,transition:c2e,call:gl.call,nodes:gl.nodes,node:gl.node,size:gl.size,empty:gl.empty,each:gl.each,on:VTe,attr:CTe,attrTween:_Te,style:JTe,styleTween:r2e,text:a2e,textTween:l2e,remove:UTe,tween:gTe,delay:LTe,duration:NTe,ease:$Te,easeVarying:PTe,end:u2e,[Symbol.iterator]:gl[Symbol.iterator]};function d2e(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var f2e={time:null,delay:0,duration:250,ease:d2e};function p2e(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function g2e(t){var e,r;t instanceof Yl?(e=t._id,t=t._name):(e=LH(),(r=f2e).time=QN(),t=t==null?null:t+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var s=n[a],o=s.length,l,u=0;u<o;++u)(l=s[u])&&PS(l,t,e,u,s,r||p2e(l,e));return new Yl(n,this._parents,t,e)}zb.prototype.interrupt=dTe;zb.prototype.transition=g2e;const HT=t=>()=>t;function m2e(t,{sourceEvent:e,target:r,transform:n,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:i}})}function Ml(t,e,r){this.k=t,this.x=e,this.y=r}Ml.prototype={constructor:Ml,scale:function(t){return t===1?this:new Ml(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ml(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 tM=new Ml(1,0,0);y2e.prototype=Ml.prototype;function y2e(t){for(;!t.__zoom;)if(!(t=t.parentNode))return tM;return t.__zoom}function SA(t){t.stopImmediatePropagation()}function Gv(t){t.preventDefault(),t.stopImmediatePropagation()}function v2e(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function x2e(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.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 PF(){return this.__zoom||tM}function b2e(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function T2e(){return navigator.maxTouchPoints||"ontouchstart"in this}function C2e(t,e,r){var n=t.invertX(e[0][0])-r[0][0],i=t.invertX(e[1][0])-r[1][0],a=t.invertY(e[0][1])-r[0][1],s=t.invertY(e[1][1])-r[1][1];return t.translate(i>n?(n+i)/2:Math.min(0,n)||Math.max(0,i),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function fyt(){var t=v2e,e=x2e,r=C2e,n=b2e,i=T2e,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],o=250,l=rTe,u=NS("start","zoom","end"),h,d,f,p=500,g=150,m=0,y=10;function v(A){A.property("__zoom",PF).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",I).filter(i).on("touchstart.zoom",L).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(A,D,O,N){var M=A.selection?A.selection():A;M.property("__zoom",PF),A!==M?w(A,D,O,N):M.interrupt().each(function(){S(this,arguments).event(N).start().zoom(null,typeof D=="function"?D.apply(this,arguments):D).end()})},v.scaleBy=function(A,D,O,N){v.scaleTo(A,function(){var M=this.__zoom.k,B=typeof D=="function"?D.apply(this,arguments):D;return M*B},O,N)},v.scaleTo=function(A,D,O,N){v.transform(A,function(){var M=e.apply(this,arguments),B=this.__zoom,z=O==null?C(M):typeof O=="function"?O.apply(this,arguments):O,G=B.invert(z),F=typeof D=="function"?D.apply(this,arguments):D;return r(b(T(B,F),z,G),M,s)},O,N)},v.translateBy=function(A,D,O,N){v.transform(A,function(){return r(this.__zoom.translate(typeof D=="function"?D.apply(this,arguments):D,typeof O=="function"?O.apply(this,arguments):O),e.apply(this,arguments),s)},null,N)},v.translateTo=function(A,D,O,N,M){v.transform(A,function(){var B=e.apply(this,arguments),z=this.__zoom,G=N==null?C(B):typeof N=="function"?N.apply(this,arguments):N;return r(tM.translate(G[0],G[1]).scale(z.k).translate(typeof D=="function"?-D.apply(this,arguments):-D,typeof O=="function"?-O.apply(this,arguments):-O),B,s)},N,M)};function T(A,D){return D=Math.max(a[0],Math.min(a[1],D)),D===A.k?A:new Ml(D,A.x,A.y)}function b(A,D,O){var N=D[0]-O[0]*A.k,M=D[1]-O[1]*A.k;return N===A.x&&M===A.y?A:new Ml(A.k,N,M)}function C(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function w(A,D,O,N){A.on("start.zoom",function(){S(this,arguments).event(N).start()}).on("interrupt.zoom end.zoom",function(){S(this,arguments).event(N).end()}).tween("zoom",function(){var M=this,B=arguments,z=S(M,B).event(N),G=e.apply(M,B),F=O==null?C(G):typeof O=="function"?O.apply(M,B):O,V=Math.max(G[1][0]-G[0][0],G[1][1]-G[0][1]),W=M.__zoom,U=typeof D=="function"?D.apply(M,B):D,j=l(W.invert(F).concat(V/W.k),U.invert(F).concat(V/U.k));return function(H){if(H===1)H=U;else{var ne=j(H),Z=V/ne[2];H=new Ml(Z,F[0]-ne[0]*Z,F[1]-ne[1]*Z)}z.zoom(null,H)}})}function S(A,D,O){return!O&&A.__zooming||new E(A,D)}function E(A,D){this.that=A,this.args=D,this.active=0,this.sourceEvent=null,this.extent=e.apply(A,D),this.taps=0}E.prototype={event:function(A){return A&&(this.sourceEvent=A),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(A,D){return this.mouse&&A!=="mouse"&&(this.mouse[1]=D.invert(this.mouse[0])),this.touch0&&A!=="touch"&&(this.touch0[1]=D.invert(this.touch0[0])),this.touch1&&A!=="touch"&&(this.touch1[1]=D.invert(this.touch1[0])),this.that.__zoom=D,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(A){var D=Qe(this.that).datum();u.call(A,this.that,new m2e(A,{sourceEvent:this.sourceEvent,target:v,transform:this.that.__zoom,dispatch:u}),D)}};function _(A,...D){if(!t.apply(this,arguments))return;var O=S(this,D).event(A),N=this.__zoom,M=Math.max(a[0],Math.min(a[1],N.k*Math.pow(2,n.apply(this,arguments)))),B=kl(A);if(O.wheel)(O.mouse[0][0]!==B[0]||O.mouse[0][1]!==B[1])&&(O.mouse[1]=N.invert(O.mouse[0]=B)),clearTimeout(O.wheel);else{if(N.k===M)return;O.mouse=[B,N.invert(B)],Q2(this),O.start()}Gv(A),O.wheel=setTimeout(z,g),O.zoom("mouse",r(b(T(N,M),O.mouse[0],O.mouse[1]),O.extent,s));function z(){O.wheel=null,O.end()}}function R(A,...D){if(f||!t.apply(this,arguments))return;var O=A.currentTarget,N=S(this,D,!0).event(A),M=Qe(A.view).on("mousemove.zoom",F,!0).on("mouseup.zoom",V,!0),B=kl(A,O),z=A.clientX,G=A.clientY;cH(A.view),SA(A),N.mouse=[B,this.__zoom.invert(B)],Q2(this),N.start();function F(W){if(Gv(W),!N.moved){var U=W.clientX-z,j=W.clientY-G;N.moved=U*U+j*j>m}N.event(W).zoom("mouse",r(b(N.that.__zoom,N.mouse[0]=kl(W,O),N.mouse[1]),N.extent,s))}function V(W){M.on("mousemove.zoom mouseup.zoom",null),uH(W.view,N.moved),Gv(W),N.event(W).end()}}function I(A,...D){if(t.apply(this,arguments)){var O=this.__zoom,N=kl(A.changedTouches?A.changedTouches[0]:A,this),M=O.invert(N),B=O.k*(A.shiftKey?.5:2),z=r(b(T(O,B),N,M),e.apply(this,D),s);Gv(A),o>0?Qe(this).transition().duration(o).call(w,z,N,A):Qe(this).call(v.transform,z,N,A)}}function L(A,...D){if(t.apply(this,arguments)){var O=A.touches,N=O.length,M=S(this,D,A.changedTouches.length===N).event(A),B,z,G,F;for(SA(A),z=0;z<N;++z)G=O[z],F=kl(G,this),F=[F,this.__zoom.invert(F),G.identifier],M.touch0?!M.touch1&&M.touch0[2]!==F[2]&&(M.touch1=F,M.taps=0):(M.touch0=F,B=!0,M.taps=1+!!h);h&&(h=clearTimeout(h)),B&&(M.taps<2&&(d=F[0],h=setTimeout(function(){h=null},p)),Q2(this),M.start())}}function P(A,...D){if(this.__zooming){var O=S(this,D).event(A),N=A.changedTouches,M=N.length,B,z,G,F;for(Gv(A),B=0;B<M;++B)z=N[B],G=kl(z,this),O.touch0&&O.touch0[2]===z.identifier?O.touch0[0]=G:O.touch1&&O.touch1[2]===z.identifier&&(O.touch1[0]=G);if(z=O.that.__zoom,O.touch1){var V=O.touch0[0],W=O.touch0[1],U=O.touch1[0],j=O.touch1[1],H=(H=U[0]-V[0])*H+(H=U[1]-V[1])*H,ne=(ne=j[0]-W[0])*ne+(ne=j[1]-W[1])*ne;z=T(z,Math.sqrt(H/ne)),G=[(V[0]+U[0])/2,(V[1]+U[1])/2],F=[(W[0]+j[0])/2,(W[1]+j[1])/2]}else if(O.touch0)G=O.touch0[0],F=O.touch0[1];else return;O.zoom("touch",r(b(z,G,F),O.extent,s))}}function $(A,...D){if(this.__zooming){var O=S(this,D).event(A),N=A.changedTouches,M=N.length,B,z;for(SA(A),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),B=0;B<M;++B)z=N[B],O.touch0&&O.touch0[2]===z.identifier?delete O.touch0:O.touch1&&O.touch1[2]===z.identifier&&delete O.touch1;if(O.touch1&&!O.touch0&&(O.touch0=O.touch1,delete O.touch1),O.touch0)O.touch0[1]=this.__zoom.invert(O.touch0[0]);else if(O.end(),O.taps===2&&(z=kl(z,this),Math.hypot(d[0]-z[0],d[1]-z[1])<y)){var G=Qe(this).on("dblclick.zoom");G&&G.apply(this,arguments)}}}return v.wheelDelta=function(A){return arguments.length?(n=typeof A=="function"?A:HT(+A),v):n},v.filter=function(A){return arguments.length?(t=typeof A=="function"?A:HT(!!A),v):t},v.touchable=function(A){return arguments.length?(i=typeof A=="function"?A:HT(!!A),v):i},v.extent=function(A){return arguments.length?(e=typeof A=="function"?A:HT([[+A[0][0],+A[0][1]],[+A[1][0],+A[1][1]]]),v):e},v.scaleExtent=function(A){return arguments.length?(a[0]=+A[0],a[1]=+A[1],v):[a[0],a[1]]},v.translateExtent=function(A){return arguments.length?(s[0][0]=+A[0][0],s[1][0]=+A[1][0],s[0][1]=+A[0][1],s[1][1]=+A[1][1],v):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},v.constrain=function(A){return arguments.length?(r=A,v):r},v.duration=function(A){return arguments.length?(o=+A,v):o},v.interpolate=function(A){return arguments.length?(l=A,v):l},v.on=function(){var A=u.on.apply(u,arguments);return A===u?v:A},v.clickDistance=function(A){return arguments.length?(m=(A=+A)*A,v):Math.sqrt(m)},v.tapDistance=function(A){return arguments.length?(y=+A,v):y},v}function J2(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function w2e(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rM(t){let e,r,n;t.length!==2?(e=J2,r=(o,l)=>J2(t(o),l),n=(o,l)=>t(o)-l):(e=t===J2||t===w2e?t:E2e,r=t,n=t);function i(o,l,u=0,h=o.length){if(u<h){if(e(l,l)!==0)return h;do{const d=u+h>>>1;r(o[d],l)<0?u=d+1:h=d}while(u<h)}return u}function a(o,l,u=0,h=o.length){if(u<h){if(e(l,l)!==0)return h;do{const d=u+h>>>1;r(o[d],l)<=0?u=d+1:h=d}while(u<h)}return u}function s(o,l,u=0,h=o.length){const d=i(o,l,u,h-1);return d>u&&n(o[d-1],l)>-n(o[d],l)?d-1:d}return{left:i,center:s,right:a}}function E2e(){return 0}function S2e(t){return t===null?NaN:+t}const k2e=rM(J2),_2e=k2e.right;rM(S2e).center;class BF extends Map{constructor(e,r=L2e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(FF(this,e))}has(e){return super.has(FF(this,e))}set(e,r){return super.set(A2e(this,e),r)}delete(e){return super.delete(R2e(this,e))}}function FF({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function A2e({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function R2e({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function L2e(t){return t!==null&&typeof t=="object"?t.valueOf():t}const I2e=Math.sqrt(50),D2e=Math.sqrt(10),N2e=Math.sqrt(2);function pw(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=I2e?10:a>=D2e?5:a>=N2e?2:1;let o,l,u;return i<0?(u=Math.pow(10,-i)/s,o=Math.round(t*u),l=Math.round(e*u),o/u<t&&++o,l/u>e&&--l,u=-u):(u=Math.pow(10,i)*s,o=Math.round(t/u),l=Math.round(e/u),o*u<t&&++o,l*u>e&&--l),l<o&&.5<=r&&r<2?pw(t,e,r*2):[o,l,u]}function M2e(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const n=e<t,[i,a,s]=n?pw(e,t,r):pw(t,e,r);if(!(a>=i))return[];const o=a-i+1,l=new Array(o);if(n)if(s<0)for(let u=0;u<o;++u)l[u]=(a-u)/-s;else for(let u=0;u<o;++u)l[u]=(a-u)*s;else if(s<0)for(let u=0;u<o;++u)l[u]=(i+u)/-s;else for(let u=0;u<o;++u)l[u]=(i+u)*s;return l}function UI(t,e,r){return e=+e,t=+t,r=+r,pw(t,e,r)[2]}function qI(t,e,r){e=+e,t=+t,r=+r;const n=e<t,i=n?UI(e,t,r):UI(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function $2e(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function O2e(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function pyt(t,e){let r,n=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(r>a||r===void 0&&a>=a)&&(r=a,n=i);else for(let a of t)(a=e(a,++i,t))!=null&&(r>a||r===void 0&&a>=a)&&(r=a,n=i);return n}function P2e(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(i);++n<i;)a[n]=t+n*r;return a}function gyt(t,e){let r=0;for(let n of t)(n=+n)&&(r+=n);return r}var IH=typeof global=="object"&&global&&global.Object===Object&&global,B2e=typeof self=="object"&&self&&self.Object===Object&&self,go=IH||B2e||Function("return this")(),Is=go.Symbol,DH=Object.prototype,F2e=DH.hasOwnProperty,z2e=DH.toString,Vv=Is?Is.toStringTag:void 0;function G2e(t){var e=F2e.call(t,Vv),r=t[Vv];try{t[Vv]=void 0;var n=!0}catch{}var i=z2e.call(t);return n&&(e?t[Vv]=r:delete t[Vv]),i}var V2e=Object.prototype,W2e=V2e.toString;function U2e(t){return W2e.call(t)}var q2e="[object Null]",H2e="[object Undefined]",zF=Is?Is.toStringTag:void 0;function Sd(t){return t==null?t===void 0?H2e:q2e:zF&&zF in Object(t)?G2e(t):U2e(t)}function Ho(t){return t!=null&&typeof t=="object"}var Y2e="[object Symbol]";function td(t){return typeof t=="symbol"||Ho(t)&&Sd(t)==Y2e}function Ep(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var jn=Array.isArray,GF=Is?Is.prototype:void 0,VF=GF?GF.toString:void 0;function NH(t){if(typeof t=="string")return t;if(jn(t))return Ep(t,NH)+"";if(td(t))return VF?VF.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var X2e=/\s/;function j2e(t){for(var e=t.length;e--&&X2e.test(t.charAt(e)););return e}var K2e=/^\s+/;function Z2e(t){return t&&t.slice(0,j2e(t)+1).replace(K2e,"")}function Ca(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var WF=NaN,Q2e=/^[-+]0x[0-9a-f]+$/i,J2e=/^0b[01]+$/i,eCe=/^0o[0-7]+$/i,tCe=parseInt;function HI(t){if(typeof t=="number")return t;if(td(t))return WF;if(Ca(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ca(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Z2e(t);var r=J2e.test(t);return r||eCe.test(t)?tCe(t.slice(2),r?2:8):Q2e.test(t)?WF:+t}var UF=1/0,rCe=17976931348623157e292;function eC(t){if(!t)return t===0?t:0;if(t=HI(t),t===UF||t===-UF){var e=t<0?-1:1;return e*rCe}return t===t?t:0}function nCe(t){var e=eC(t),r=e%1;return e===e?r?e-r:e:0}function kd(t){return t}var iCe="[object AsyncFunction]",aCe="[object Function]",sCe="[object GeneratorFunction]",oCe="[object Proxy]";function Nx(t){if(!Ca(t))return!1;var e=Sd(t);return e==aCe||e==sCe||e==iCe||e==oCe}var kA=go["__core-js_shared__"],qF=function(){var t=/[^.]+$/.exec(kA&&kA.keys&&kA.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function lCe(t){return!!qF&&qF in t}var cCe=Function.prototype,uCe=cCe.toString;function _d(t){if(t!=null){try{return uCe.call(t)}catch{}try{return t+""}catch{}}return""}var hCe=/[\\^$.*+?()[\]{}|]/g,dCe=/^\[object .+?Constructor\]$/,fCe=Function.prototype,pCe=Object.prototype,gCe=fCe.toString,mCe=pCe.hasOwnProperty,yCe=RegExp("^"+gCe.call(mCe).replace(hCe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vCe(t){if(!Ca(t)||lCe(t))return!1;var e=Nx(t)?yCe:dCe;return e.test(_d(t))}function xCe(t,e){return t==null?void 0:t[e]}function Ad(t,e){var r=xCe(t,e);return vCe(r)?r:void 0}var YI=Ad(go,"WeakMap"),HF=Object.create,bCe=function(){function t(){}return function(e){if(!Ca(e))return{};if(HF)return HF(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function TCe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function CCe(){}function MH(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var wCe=800,ECe=16,SCe=Date.now;function kCe(t){var e=0,r=0;return function(){var n=SCe(),i=ECe-(n-r);if(r=n,i>0){if(++e>=wCe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function ip(t){return function(){return t}}var gw=function(){try{var t=Ad(Object,"defineProperty");return t({},"",{}),t}catch{}}(),_Ce=gw?function(t,e){return gw(t,"toString",{configurable:!0,enumerable:!1,value:ip(e),writable:!0})}:kd,$H=kCe(_Ce);function OH(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}function PH(t,e,r,n){for(var i=t.length,a=r+-1;++a<i;)if(e(t[a],a,t))return a;return-1}function ACe(t){return t!==t}function RCe(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}function LCe(t,e,r){return e===e?RCe(t,e,r):PH(t,ACe,r)}function ICe(t,e){var r=t==null?0:t.length;return!!r&&LCe(t,e,0)>-1}var DCe=9007199254740991,NCe=/^(?:0|[1-9]\d*)$/;function BS(t,e){var r=typeof t;return e=e??DCe,!!e&&(r=="number"||r!="symbol"&&NCe.test(t))&&t>-1&&t%1==0&&t<e}function FS(t,e,r){e=="__proto__"&&gw?gw(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function fv(t,e){return t===e||t!==t&&e!==e}var MCe=Object.prototype,$Ce=MCe.hasOwnProperty;function zS(t,e,r){var n=t[e];(!($Ce.call(t,e)&&fv(n,r))||r===void 0&&!(e in t))&&FS(t,e,r)}function Vb(t,e,r,n){var i=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var o=e[a],l=void 0;l===void 0&&(l=t[o]),i?FS(r,o,l):zS(r,o,l)}return r}var YF=Math.max;function BH(t,e,r){return e=YF(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,a=YF(n.length-e,0),s=Array(a);++i<a;)s[i]=n[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=n[i];return o[e]=r(s),TCe(t,this,o)}}function GS(t,e){return $H(BH(t,e,kd),t+"")}var OCe=9007199254740991;function nM(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=OCe}function bu(t){return t!=null&&nM(t.length)&&!Nx(t)}function Mx(t,e,r){if(!Ca(r))return!1;var n=typeof e;return(n=="number"?bu(r)&&BS(e,r.length):n=="string"&&e in r)?fv(r[e],t):!1}function PCe(t){return GS(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&Mx(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var o=r[n];o&&t(e,o,n,a)}return e})}var BCe=Object.prototype;function VS(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||BCe;return t===r}function FCe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var zCe="[object Arguments]";function XF(t){return Ho(t)&&Sd(t)==zCe}var FH=Object.prototype,GCe=FH.hasOwnProperty,VCe=FH.propertyIsEnumerable,_0=XF(function(){return arguments}())?XF:function(t){return Ho(t)&&GCe.call(t,"callee")&&!VCe.call(t,"callee")};function WCe(){return!1}var zH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jF=zH&&typeof module=="object"&&module&&!module.nodeType&&module,UCe=jF&&jF.exports===zH,KF=UCe?go.Buffer:void 0,qCe=KF?KF.isBuffer:void 0,A0=qCe||WCe,HCe="[object Arguments]",YCe="[object Array]",XCe="[object Boolean]",jCe="[object Date]",KCe="[object Error]",ZCe="[object Function]",QCe="[object Map]",JCe="[object Number]",ewe="[object Object]",twe="[object RegExp]",rwe="[object Set]",nwe="[object String]",iwe="[object WeakMap]",awe="[object ArrayBuffer]",swe="[object DataView]",owe="[object Float32Array]",lwe="[object Float64Array]",cwe="[object Int8Array]",uwe="[object Int16Array]",hwe="[object Int32Array]",dwe="[object Uint8Array]",fwe="[object Uint8ClampedArray]",pwe="[object Uint16Array]",gwe="[object Uint32Array]",un={};un[owe]=un[lwe]=un[cwe]=un[uwe]=un[hwe]=un[dwe]=un[fwe]=un[pwe]=un[gwe]=!0;un[HCe]=un[YCe]=un[awe]=un[XCe]=un[swe]=un[jCe]=un[KCe]=un[ZCe]=un[QCe]=un[JCe]=un[ewe]=un[twe]=un[rwe]=un[nwe]=un[iwe]=!1;function mwe(t){return Ho(t)&&nM(t.length)&&!!un[Sd(t)]}function WS(t){return function(e){return t(e)}}var GH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ex=GH&&typeof module=="object"&&module&&!module.nodeType&&module,ywe=ex&&ex.exports===GH,_A=ywe&&IH.process,R0=function(){try{var t=ex&&ex.require&&ex.require("util").types;return t||_A&&_A.binding&&_A.binding("util")}catch{}}(),ZF=R0&&R0.isTypedArray,US=ZF?WS(ZF):mwe,vwe=Object.prototype,xwe=vwe.hasOwnProperty;function VH(t,e){var r=jn(t),n=!r&&_0(t),i=!r&&!n&&A0(t),a=!r&&!n&&!i&&US(t),s=r||n||i||a,o=s?FCe(t.length,String):[],l=o.length;for(var u in t)(e||xwe.call(t,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||BS(u,l)))&&o.push(u);return o}function WH(t,e){return function(r){return t(e(r))}}var bwe=WH(Object.keys,Object),Twe=Object.prototype,Cwe=Twe.hasOwnProperty;function UH(t){if(!VS(t))return bwe(t);var e=[];for(var r in Object(t))Cwe.call(t,r)&&r!="constructor"&&e.push(r);return e}function is(t){return bu(t)?VH(t):UH(t)}function wwe(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Ewe=Object.prototype,Swe=Ewe.hasOwnProperty;function kwe(t){if(!Ca(t))return wwe(t);var e=VS(t),r=[];for(var n in t)n=="constructor"&&(e||!Swe.call(t,n))||r.push(n);return r}function Rd(t){return bu(t)?VH(t,!0):kwe(t)}var _we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Awe=/^\w*$/;function iM(t,e){if(jn(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||td(t)?!0:Awe.test(t)||!_we.test(t)||e!=null&&t in Object(e)}var $x=Ad(Object,"create");function Rwe(){this.__data__=$x?$x(null):{},this.size=0}function Lwe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Iwe="__lodash_hash_undefined__",Dwe=Object.prototype,Nwe=Dwe.hasOwnProperty;function Mwe(t){var e=this.__data__;if($x){var r=e[t];return r===Iwe?void 0:r}return Nwe.call(e,t)?e[t]:void 0}var $we=Object.prototype,Owe=$we.hasOwnProperty;function Pwe(t){var e=this.__data__;return $x?e[t]!==void 0:Owe.call(e,t)}var Bwe="__lodash_hash_undefined__";function Fwe(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=$x&&e===void 0?Bwe:e,this}function rd(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}rd.prototype.clear=Rwe;rd.prototype.delete=Lwe;rd.prototype.get=Mwe;rd.prototype.has=Pwe;rd.prototype.set=Fwe;function zwe(){this.__data__=[],this.size=0}function qS(t,e){for(var r=t.length;r--;)if(fv(t[r][0],e))return r;return-1}var Gwe=Array.prototype,Vwe=Gwe.splice;function Wwe(t){var e=this.__data__,r=qS(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Vwe.call(e,r,1),--this.size,!0}function Uwe(t){var e=this.__data__,r=qS(e,t);return r<0?void 0:e[r][1]}function qwe(t){return qS(this.__data__,t)>-1}function Hwe(t,e){var r=this.__data__,n=qS(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function hc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}hc.prototype.clear=zwe;hc.prototype.delete=Wwe;hc.prototype.get=Uwe;hc.prototype.has=qwe;hc.prototype.set=Hwe;var Ox=Ad(go,"Map");function Ywe(){this.size=0,this.__data__={hash:new rd,map:new(Ox||hc),string:new rd}}function Xwe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function HS(t,e){var r=t.__data__;return Xwe(e)?r[typeof e=="string"?"string":"hash"]:r.map}function jwe(t){var e=HS(this,t).delete(t);return this.size-=e?1:0,e}function Kwe(t){return HS(this,t).get(t)}function Zwe(t){return HS(this,t).has(t)}function Qwe(t,e){var r=HS(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function dc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}dc.prototype.clear=Ywe;dc.prototype.delete=jwe;dc.prototype.get=Kwe;dc.prototype.has=Zwe;dc.prototype.set=Qwe;var Jwe="Expected a function";function aM(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Jwe);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=t.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(aM.Cache||dc),r}aM.Cache=dc;var eEe=500;function tEe(t){var e=aM(t,function(n){return r.size===eEe&&r.clear(),n}),r=e.cache;return e}var rEe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nEe=/\\(\\)?/g,iEe=tEe(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(rEe,function(r,n,i,a){e.push(i?a.replace(nEe,"$1"):n||r)}),e});function qH(t){return t==null?"":NH(t)}function YS(t,e){return jn(t)?t:iM(t,e)?[t]:iEe(qH(t))}function Wb(t){if(typeof t=="string"||td(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function XS(t,e){e=YS(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[Wb(e[r++])];return r&&r==n?t:void 0}function aEe(t,e,r){var n=t==null?void 0:XS(t,e);return n===void 0?r:n}function sM(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var QF=Is?Is.isConcatSpreadable:void 0;function sEe(t){return jn(t)||_0(t)||!!(QF&&t&&t[QF])}function oM(t,e,r,n,i){var a=-1,s=t.length;for(r||(r=sEe),i||(i=[]);++a<s;){var o=t[a];r(o)?sM(i,o):n||(i[i.length]=o)}return i}function pv(t){var e=t==null?0:t.length;return e?oM(t):[]}function oEe(t){return $H(BH(t,void 0,pv),t+"")}var lM=WH(Object.getPrototypeOf,Object),lEe="[object Object]",cEe=Function.prototype,uEe=Object.prototype,HH=cEe.toString,hEe=uEe.hasOwnProperty,dEe=HH.call(Object);function fEe(t){if(!Ho(t)||Sd(t)!=lEe)return!1;var e=lM(t);if(e===null)return!0;var r=hEe.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&HH.call(r)==dEe}function pEe(t,e,r,n){var i=-1,a=t==null?0:t.length;for(n&&a&&(r=t[++i]);++i<a;)r=e(r,t[i],i,t);return r}function gEe(){this.__data__=new hc,this.size=0}function mEe(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function yEe(t){return this.__data__.get(t)}function vEe(t){return this.__data__.has(t)}var xEe=200;function bEe(t,e){var r=this.__data__;if(r instanceof hc){var n=r.__data__;if(!Ox||n.length<xEe-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new dc(n)}return r.set(t,e),this.size=r.size,this}function Qs(t){var e=this.__data__=new hc(t);this.size=e.size}Qs.prototype.clear=gEe;Qs.prototype.delete=mEe;Qs.prototype.get=yEe;Qs.prototype.has=vEe;Qs.prototype.set=bEe;function TEe(t,e){return t&&Vb(e,is(e),t)}function CEe(t,e){return t&&Vb(e,Rd(e),t)}var YH=typeof exports=="object"&&exports&&!exports.nodeType&&exports,JF=YH&&typeof module=="object"&&module&&!module.nodeType&&module,wEe=JF&&JF.exports===YH,e8=wEe?go.Buffer:void 0,t8=e8?e8.allocUnsafe:void 0;function XH(t,e){if(e)return t.slice();var r=t.length,n=t8?t8(r):new t.constructor(r);return t.copy(n),n}function jH(t,e){for(var r=-1,n=t==null?0:t.length,i=0,a=[];++r<n;){var s=t[r];e(s,r,t)&&(a[i++]=s)}return a}function KH(){return[]}var EEe=Object.prototype,SEe=EEe.propertyIsEnumerable,r8=Object.getOwnPropertySymbols,cM=r8?function(t){return t==null?[]:(t=Object(t),jH(r8(t),function(e){return SEe.call(t,e)}))}:KH;function kEe(t,e){return Vb(t,cM(t),e)}var _Ee=Object.getOwnPropertySymbols,ZH=_Ee?function(t){for(var e=[];t;)sM(e,cM(t)),t=lM(t);return e}:KH;function AEe(t,e){return Vb(t,ZH(t),e)}function QH(t,e,r){var n=e(t);return jn(t)?n:sM(n,r(t))}function XI(t){return QH(t,is,cM)}function REe(t){return QH(t,Rd,ZH)}var jI=Ad(go,"DataView"),KI=Ad(go,"Promise"),Sp=Ad(go,"Set"),n8="[object Map]",LEe="[object Object]",i8="[object Promise]",a8="[object Set]",s8="[object WeakMap]",o8="[object DataView]",IEe=_d(jI),DEe=_d(Ox),NEe=_d(KI),MEe=_d(Sp),$Ee=_d(YI),Es=Sd;(jI&&Es(new jI(new ArrayBuffer(1)))!=o8||Ox&&Es(new Ox)!=n8||KI&&Es(KI.resolve())!=i8||Sp&&Es(new Sp)!=a8||YI&&Es(new YI)!=s8)&&(Es=function(t){var e=Sd(t),r=e==LEe?t.constructor:void 0,n=r?_d(r):"";if(n)switch(n){case IEe:return o8;case DEe:return n8;case NEe:return i8;case MEe:return a8;case $Ee:return s8}return e});var OEe=Object.prototype,PEe=OEe.hasOwnProperty;function BEe(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&PEe.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var mw=go.Uint8Array;function uM(t){var e=new t.constructor(t.byteLength);return new mw(e).set(new mw(t)),e}function FEe(t,e){var r=e?uM(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var zEe=/\w*$/;function GEe(t){var e=new t.constructor(t.source,zEe.exec(t));return e.lastIndex=t.lastIndex,e}var l8=Is?Is.prototype:void 0,c8=l8?l8.valueOf:void 0;function VEe(t){return c8?Object(c8.call(t)):{}}function JH(t,e){var r=e?uM(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var WEe="[object Boolean]",UEe="[object Date]",qEe="[object Map]",HEe="[object Number]",YEe="[object RegExp]",XEe="[object Set]",jEe="[object String]",KEe="[object Symbol]",ZEe="[object ArrayBuffer]",QEe="[object DataView]",JEe="[object Float32Array]",eSe="[object Float64Array]",tSe="[object Int8Array]",rSe="[object Int16Array]",nSe="[object Int32Array]",iSe="[object Uint8Array]",aSe="[object Uint8ClampedArray]",sSe="[object Uint16Array]",oSe="[object Uint32Array]";function lSe(t,e,r){var n=t.constructor;switch(e){case ZEe:return uM(t);case WEe:case UEe:return new n(+t);case QEe:return FEe(t,r);case JEe:case eSe:case tSe:case rSe:case nSe:case iSe:case aSe:case sSe:case oSe:return JH(t,r);case qEe:return new n;case HEe:case jEe:return new n(t);case YEe:return GEe(t);case XEe:return new n;case KEe:return VEe(t)}}function eY(t){return typeof t.constructor=="function"&&!VS(t)?bCe(lM(t)):{}}var cSe="[object Map]";function uSe(t){return Ho(t)&&Es(t)==cSe}var u8=R0&&R0.isMap,hSe=u8?WS(u8):uSe,dSe="[object Set]";function fSe(t){return Ho(t)&&Es(t)==dSe}var h8=R0&&R0.isSet,pSe=h8?WS(h8):fSe,gSe=1,mSe=2,ySe=4,tY="[object Arguments]",vSe="[object Array]",xSe="[object Boolean]",bSe="[object Date]",TSe="[object Error]",rY="[object Function]",CSe="[object GeneratorFunction]",wSe="[object Map]",ESe="[object Number]",nY="[object Object]",SSe="[object RegExp]",kSe="[object Set]",_Se="[object String]",ASe="[object Symbol]",RSe="[object WeakMap]",LSe="[object ArrayBuffer]",ISe="[object DataView]",DSe="[object Float32Array]",NSe="[object Float64Array]",MSe="[object Int8Array]",$Se="[object Int16Array]",OSe="[object Int32Array]",PSe="[object Uint8Array]",BSe="[object Uint8ClampedArray]",FSe="[object Uint16Array]",zSe="[object Uint32Array]",tn={};tn[tY]=tn[vSe]=tn[LSe]=tn[ISe]=tn[xSe]=tn[bSe]=tn[DSe]=tn[NSe]=tn[MSe]=tn[$Se]=tn[OSe]=tn[wSe]=tn[ESe]=tn[nY]=tn[SSe]=tn[kSe]=tn[_Se]=tn[ASe]=tn[PSe]=tn[BSe]=tn[FSe]=tn[zSe]=!0;tn[TSe]=tn[rY]=tn[RSe]=!1;function tx(t,e,r,n,i,a){var s,o=e&gSe,l=e&mSe,u=e&ySe;if(s!==void 0)return s;if(!Ca(t))return t;var h=jn(t);if(h){if(s=BEe(t),!o)return MH(t,s)}else{var d=Es(t),f=d==rY||d==CSe;if(A0(t))return XH(t,o);if(d==nY||d==tY||f&&!i){if(s=l||f?{}:eY(t),!o)return l?AEe(t,CEe(s,t)):kEe(t,TEe(s,t))}else{if(!tn[d])return i?t:{};s=lSe(t,d,o)}}a||(a=new Qs);var p=a.get(t);if(p)return p;a.set(t,s),pSe(t)?t.forEach(function(y){s.add(tx(y,e,r,y,t,a))}):hSe(t)&&t.forEach(function(y,v){s.set(v,tx(y,e,r,v,t,a))});var g=u?l?REe:XI:l?Rd:is,m=h?void 0:g(t);return OH(m||t,function(y,v){m&&(v=y,y=t[v]),zS(s,v,tx(y,e,r,v,t,a))}),s}var GSe=4;function VSe(t){return tx(t,GSe)}var WSe=1,USe=4;function qSe(t){return tx(t,WSe|USe)}var HSe="__lodash_hash_undefined__";function YSe(t){return this.__data__.set(t,HSe),this}function XSe(t){return this.__data__.has(t)}function Px(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new dc;++e<r;)this.add(t[e])}Px.prototype.add=Px.prototype.push=YSe;Px.prototype.has=XSe;function jSe(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function iY(t,e){return t.has(e)}var KSe=1,ZSe=2;function aY(t,e,r,n,i,a){var s=r&KSe,o=t.length,l=e.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(t),h=a.get(e);if(u&&h)return u==e&&h==t;var d=-1,f=!0,p=r&ZSe?new Px:void 0;for(a.set(t,e),a.set(e,t);++d<o;){var g=t[d],m=e[d];if(n)var y=s?n(m,g,d,e,t,a):n(g,m,d,t,e,a);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!jSe(e,function(v,T){if(!iY(p,T)&&(g===v||i(g,v,r,n,a)))return p.push(T)})){f=!1;break}}else if(!(g===m||i(g,m,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}function QSe(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}function hM(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var JSe=1,eke=2,tke="[object Boolean]",rke="[object Date]",nke="[object Error]",ike="[object Map]",ake="[object Number]",ske="[object RegExp]",oke="[object Set]",lke="[object String]",cke="[object Symbol]",uke="[object ArrayBuffer]",hke="[object DataView]",d8=Is?Is.prototype:void 0,AA=d8?d8.valueOf:void 0;function dke(t,e,r,n,i,a,s){switch(r){case hke:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case uke:return!(t.byteLength!=e.byteLength||!a(new mw(t),new mw(e)));case tke:case rke:case ake:return fv(+t,+e);case nke:return t.name==e.name&&t.message==e.message;case ske:case lke:return t==e+"";case ike:var o=QSe;case oke:var l=n&JSe;if(o||(o=hM),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;n|=eke,s.set(t,e);var h=aY(o(t),o(e),n,i,a,s);return s.delete(t),h;case cke:if(AA)return AA.call(t)==AA.call(e)}return!1}var fke=1,pke=Object.prototype,gke=pke.hasOwnProperty;function mke(t,e,r,n,i,a){var s=r&fke,o=XI(t),l=o.length,u=XI(e),h=u.length;if(l!=h&&!s)return!1;for(var d=l;d--;){var f=o[d];if(!(s?f in e:gke.call(e,f)))return!1}var p=a.get(t),g=a.get(e);if(p&&g)return p==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);for(var y=s;++d<l;){f=o[d];var v=t[f],T=e[f];if(n)var b=s?n(T,v,f,e,t,a):n(v,T,f,t,e,a);if(!(b===void 0?v===T||i(v,T,r,n,a):b)){m=!1;break}y||(y=f=="constructor")}if(m&&!y){var C=t.constructor,w=e.constructor;C!=w&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof w=="function"&&w instanceof w)&&(m=!1)}return a.delete(t),a.delete(e),m}var yke=1,f8="[object Arguments]",p8="[object Array]",YT="[object Object]",vke=Object.prototype,g8=vke.hasOwnProperty;function xke(t,e,r,n,i,a){var s=jn(t),o=jn(e),l=s?p8:Es(t),u=o?p8:Es(e);l=l==f8?YT:l,u=u==f8?YT:u;var h=l==YT,d=u==YT,f=l==u;if(f&&A0(t)){if(!A0(e))return!1;s=!0,h=!1}if(f&&!h)return a||(a=new Qs),s||US(t)?aY(t,e,r,n,i,a):dke(t,e,l,r,n,i,a);if(!(r&yke)){var p=h&&g8.call(t,"__wrapped__"),g=d&&g8.call(e,"__wrapped__");if(p||g){var m=p?t.value():t,y=g?e.value():e;return a||(a=new Qs),i(m,y,r,n,a)}}return f?(a||(a=new Qs),mke(t,e,r,n,i,a)):!1}function dM(t,e,r,n,i){return t===e?!0:t==null||e==null||!Ho(t)&&!Ho(e)?t!==t&&e!==e:xke(t,e,r,n,dM,i)}var bke=1,Tke=2;function Cke(t,e,r,n){var i=r.length,a=i;if(t==null)return!a;for(t=Object(t);i--;){var s=r[i];if(s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<a;){s=r[i];var o=s[0],l=t[o],u=s[1];if(s[2]){if(l===void 0&&!(o in t))return!1}else{var h=new Qs,d;if(!(d===void 0?dM(u,l,bke|Tke,n,h):d))return!1}}return!0}function sY(t){return t===t&&!Ca(t)}function wke(t){for(var e=is(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,sY(i)]}return e}function oY(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}function Eke(t){var e=wke(t);return e.length==1&&e[0][2]?oY(e[0][0],e[0][1]):function(r){return r===t||Cke(r,t,e)}}function Ske(t,e){return t!=null&&e in Object(t)}function lY(t,e,r){e=YS(e,t);for(var n=-1,i=e.length,a=!1;++n<i;){var s=Wb(e[n]);if(!(a=t!=null&&r(t,s)))break;t=t[s]}return a||++n!=i?a:(i=t==null?0:t.length,!!i&&nM(i)&&BS(s,i)&&(jn(t)||_0(t)))}function cY(t,e){return t!=null&&lY(t,e,Ske)}var kke=1,_ke=2;function Ake(t,e){return iM(t)&&sY(e)?oY(Wb(t),e):function(r){var n=aEe(r,t);return n===void 0&&n===e?cY(r,t):dM(e,n,kke|_ke)}}function Rke(t){return function(e){return e==null?void 0:e[t]}}function Lke(t){return function(e){return XS(e,t)}}function Ike(t){return iM(t)?Rke(Wb(t)):Lke(t)}function Tu(t){return typeof t=="function"?t:t==null?kd:typeof t=="object"?jn(t)?Ake(t[0],t[1]):Eke(t):Ike(t)}function Dke(t){return function(e,r,n){for(var i=-1,a=Object(e),s=n(e),o=s.length;o--;){var l=s[++i];if(r(a[l],l,a)===!1)break}return e}}var fM=Dke();function pM(t,e){return t&&fM(t,e,is)}function Nke(t,e){return function(r,n){if(r==null)return r;if(!bu(r))return t(r,n);for(var i=r.length,a=-1,s=Object(r);++a<i&&n(s[a],a,s)!==!1;);return r}}var jS=Nke(pM),RA=function(){return go.Date.now()},Mke="Expected a function",$ke=Math.max,Oke=Math.min;function Pke(t,e,r){var n,i,a,s,o,l,u=0,h=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(Mke);e=HI(e)||0,Ca(r)&&(h=!!r.leading,d="maxWait"in r,a=d?$ke(HI(r.maxWait)||0,e):a,f="trailing"in r?!!r.trailing:f);function p(S){var E=n,_=i;return n=i=void 0,u=S,s=t.apply(_,E),s}function g(S){return u=S,o=setTimeout(v,e),h?p(S):s}function m(S){var E=S-l,_=S-u,R=e-E;return d?Oke(R,a-_):R}function y(S){var E=S-l,_=S-u;return l===void 0||E>=e||E<0||d&&_>=a}function v(){var S=RA();if(y(S))return T(S);o=setTimeout(v,m(S))}function T(S){return o=void 0,f&&n?p(S):(n=i=void 0,s)}function b(){o!==void 0&&clearTimeout(o),u=0,n=l=i=o=void 0}function C(){return o===void 0?s:T(RA())}function w(){var S=RA(),E=y(S);if(n=arguments,i=this,l=S,E){if(o===void 0)return g(l);if(d)return clearTimeout(o),o=setTimeout(v,e),p(l)}return o===void 0&&(o=setTimeout(v,e)),s}return w.cancel=b,w.flush=C,w}var uY=Object.prototype,Bke=uY.hasOwnProperty,Fke=GS(function(t,e){t=Object(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&Mx(e[0],e[1],i)&&(n=1);++r<n;)for(var a=e[r],s=Rd(a),o=-1,l=s.length;++o<l;){var u=s[o],h=t[u];(h===void 0||fv(h,uY[u])&&!Bke.call(t,u))&&(t[u]=a[u])}return t});function ZI(t,e,r){(r!==void 0&&!fv(t[e],r)||r===void 0&&!(e in t))&&FS(t,e,r)}function hY(t){return Ho(t)&&bu(t)}function QI(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function zke(t){return Vb(t,Rd(t))}function Gke(t,e,r,n,i,a,s){var o=QI(t,r),l=QI(e,r),u=s.get(l);if(u){ZI(t,r,u);return}var h=a?a(o,l,r+"",t,e,s):void 0,d=h===void 0;if(d){var f=jn(l),p=!f&&A0(l),g=!f&&!p&&US(l);h=l,f||p||g?jn(o)?h=o:hY(o)?h=MH(o):p?(d=!1,h=XH(l,!0)):g?(d=!1,h=JH(l,!0)):h=[]:fEe(l)||_0(l)?(h=o,_0(o)?h=zke(o):(!Ca(o)||Nx(o))&&(h=eY(l))):d=!1}d&&(s.set(l,h),i(h,l,n,a,s),s.delete(l)),ZI(t,r,h)}function dY(t,e,r,n,i){t!==e&&fM(e,function(a,s){if(i||(i=new Qs),Ca(a))Gke(t,e,s,r,dY,n,i);else{var o=n?n(QI(t,s),a,s+"",t,e,i):void 0;o===void 0&&(o=a),ZI(t,s,o)}},Rd)}function yw(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function gM(t){return typeof t=="function"?t:kd}function ot(t,e){var r=jn(t)?OH:jS;return r(t,gM(e))}function Vke(t,e){var r=[];return jS(t,function(n,i,a){e(n,i,a)&&r.push(n)}),r}function $l(t,e){var r=jn(t)?jH:Vke;return r(t,Tu(e))}function Wke(t){return function(e,r,n){var i=Object(e);if(!bu(e)){var a=Tu(r);e=is(e),r=function(o){return a(i[o],o,i)}}var s=t(e,r,n);return s>-1?i[a?e[s]:s]:void 0}}var Uke=Math.max;function qke(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:nCe(r);return i<0&&(i=Uke(n+i,0)),PH(t,Tu(e),i)}var mM=Wke(qke);function fY(t,e){var r=-1,n=bu(t)?Array(t.length):[];return jS(t,function(i,a,s){n[++r]=e(i,a,s)}),n}function Xn(t,e){var r=jn(t)?Ep:fY;return r(t,Tu(e))}function Hke(t,e){return t==null?t:fM(t,gM(e),Rd)}function Yke(t,e){return t&&pM(t,gM(e))}function Xke(t,e){return t>e}var jke=Object.prototype,Kke=jke.hasOwnProperty;function Zke(t,e){return t!=null&&Kke.call(t,e)}function pY(t,e){return t!=null&&lY(t,e,Zke)}function Qke(t,e){return Ep(e,function(r){return t[r]})}function Wl(t){return t==null?[]:Qke(t,is(t))}var Jke="[object Map]",e_e="[object Set]",t_e=Object.prototype,r_e=t_e.hasOwnProperty;function m8(t){if(t==null)return!0;if(bu(t)&&(jn(t)||typeof t=="string"||typeof t.splice=="function"||A0(t)||US(t)||_0(t)))return!t.length;var e=Es(t);if(e==Jke||e==e_e)return!t.size;if(VS(t))return!UH(t).length;for(var r in t)if(r_e.call(t,r))return!1;return!0}function Bn(t){return t===void 0}function gY(t,e){return t<e}function KS(t,e){var r={};return e=Tu(e),pM(t,function(n,i,a){FS(r,i,e(n,i,a))}),r}function yM(t,e,r){for(var n=-1,i=t.length;++n<i;){var a=t[n],s=e(a);if(s!=null&&(o===void 0?s===s&&!td(s):r(s,o)))var o=s,l=a}return l}function nd(t){return t&&t.length?yM(t,kd,Xke):void 0}var JI=PCe(function(t,e,r){dY(t,e,r)});function Bx(t){return t&&t.length?yM(t,kd,gY):void 0}function vM(t,e){return t&&t.length?yM(t,Tu(e),gY):void 0}function n_e(t,e,r,n){if(!Ca(t))return t;e=YS(e,t);for(var i=-1,a=e.length,s=a-1,o=t;o!=null&&++i<a;){var l=Wb(e[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=s){var h=o[l];u=void 0,u===void 0&&(u=Ca(h)?h:BS(e[i+1])?[]:{})}zS(o,l,u),o=o[l]}return t}function i_e(t,e,r){for(var n=-1,i=e.length,a={};++n<i;){var s=e[n],o=XS(t,s);r(o,s)&&n_e(a,YS(s,t),o)}return a}function a_e(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}function s_e(t,e){if(t!==e){var r=t!==void 0,n=t===null,i=t===t,a=td(t),s=e!==void 0,o=e===null,l=e===e,u=td(e);if(!o&&!u&&!a&&t>e||a&&s&&l&&!o&&!u||n&&s&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&t<e||u&&r&&i&&!n&&!a||o&&r&&i||!s&&i||!l)return-1}return 0}function o_e(t,e,r){for(var n=-1,i=t.criteria,a=e.criteria,s=i.length,o=r.length;++n<s;){var l=s_e(i[n],a[n]);if(l){if(n>=o)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return t.index-e.index}function l_e(t,e,r){e.length?e=Ep(e,function(a){return jn(a)?function(s){return XS(s,a.length===1?a[0]:a)}:a}):e=[kd];var n=-1;e=Ep(e,WS(Tu));var i=fY(t,function(a,s,o){var l=Ep(e,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return a_e(i,function(a,s){return o_e(a,s,r)})}function c_e(t,e){return i_e(t,e,function(r,n){return cY(t,n)})}var vw=oEe(function(t,e){return t==null?{}:c_e(t,e)}),u_e=Math.ceil,h_e=Math.max;function d_e(t,e,r,n){for(var i=-1,a=h_e(u_e((e-t)/(r||1)),0),s=Array(a);a--;)s[++i]=t,t+=r;return s}function f_e(t){return function(e,r,n){return n&&typeof n!="number"&&Mx(e,r,n)&&(r=n=void 0),e=eC(e),r===void 0?(r=e,e=0):r=eC(r),n=n===void 0?e<r?1:-1:eC(n),d_e(e,r,n)}}var L0=f_e();function p_e(t,e,r,n,i){return i(t,function(a,s,o){r=n?(n=!1,a):e(r,a,s,o)}),r}function Ub(t,e,r){var n=jn(t)?pEe:p_e,i=arguments.length<3;return n(t,Tu(e),r,i,jS)}var qb=GS(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Mx(t,e[0],e[1])?e=[]:r>2&&Mx(e[0],e[1],e[2])&&(e=[e[0]]),l_e(t,oM(e),[])}),g_e="Expected a function";function myt(t,e,r){var n=!0,i=!0;if(typeof t!="function")throw new TypeError(g_e);return Ca(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Pke(t,e,{leading:n,maxWait:e,trailing:i})}var m_e=1/0,y_e=Sp&&1/hM(new Sp([,-0]))[1]==m_e?function(t){return new Sp(t)}:CCe,v_e=200;function x_e(t,e,r){var n=-1,i=ICe,a=t.length,s=!0,o=[],l=o;if(a>=v_e){var u=y_e(t);if(u)return hM(u);s=!1,i=iY,l=new Px}else l=o;e:for(;++n<a;){var h=t[n],d=h;if(h=h!==0?h:0,s&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;o.push(h)}else i(l,d,r)||(l!==o&&l.push(d),o.push(h))}return o}var b_e=GS(function(t){return x_e(oM(t,1,hY,!0))}),T_e=0;function xM(t){var e=++T_e;return qH(t)+e}function C_e(t,e,r){for(var n=-1,i=t.length,a=e.length,s={};++n<i;){var o=n<a?e[n]:void 0;r(s,t[n],o)}return s}function w_e(t,e){return C_e(t||[],e||[],zS)}function E_e(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return mY(this.cover(e,r),e,r,t)}function mY(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a=t._root,s={data:n},o=t._x0,l=t._y0,u=t._x1,h=t._y1,d,f,p,g,m,y,v,T;if(!a)return t._root=s,t;for(;a.length;)if((m=e>=(d=(o+u)/2))?o=d:u=d,(y=r>=(f=(l+h)/2))?l=f:h=f,i=a,!(a=a[v=y<<1|m]))return i[v]=s,t;if(p=+t._x.call(null,a.data),g=+t._y.call(null,a.data),e===p&&r===g)return s.next=a,i?i[v]=s:t._root=s,t;do i=i?i[v]=new Array(4):t._root=new Array(4),(m=e>=(d=(o+u)/2))?o=d:u=d,(y=r>=(f=(l+h)/2))?l=f:h=f;while((v=y<<1|m)===(T=(g>=f)<<1|p>=d));return i[T]=a,i[v]=s,t}function S_e(t){var e,r,n=t.length,i,a,s=new Array(n),o=new Array(n),l=1/0,u=1/0,h=-1/0,d=-1/0;for(r=0;r<n;++r)isNaN(i=+this._x.call(null,e=t[r]))||isNaN(a=+this._y.call(null,e))||(s[r]=i,o[r]=a,i<l&&(l=i),i>h&&(h=i),a<u&&(u=a),a>d&&(d=a));if(l>h||u>d)return this;for(this.cover(l,u).cover(h,d),r=0;r<n;++r)mY(this,s[r],o[r],t[r]);return this}function k_e(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var s=i-r||1,o=this._root,l,u;r>t||t>=i||n>e||e>=a;)switch(u=(e<n)<<1|t<r,l=new Array(4),l[u]=o,o=l,s*=2,u){case 0:i=r+s,a=n+s;break;case 1:r=i-s,a=n+s;break;case 2:i=r+s,n=a-s;break;case 3:r=i-s,n=a-s;break}this._root&&this._root.length&&(this._root=o)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this}function __e(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function A_e(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]]}function pa(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function R_e(t,e,r){var n,i=this._x0,a=this._y0,s,o,l,u,h=this._x1,d=this._y1,f=[],p=this._root,g,m;for(p&&f.push(new pa(p,i,a,h,d)),r==null?r=1/0:(i=t-r,a=e-r,h=t+r,d=e+r,r*=r);g=f.pop();)if(!(!(p=g.node)||(s=g.x0)>h||(o=g.y0)>d||(l=g.x1)<i||(u=g.y1)<a))if(p.length){var y=(s+l)/2,v=(o+u)/2;f.push(new pa(p[3],y,v,l,u),new pa(p[2],s,v,y,u),new pa(p[1],y,o,l,v),new pa(p[0],s,o,y,v)),(m=(e>=v)<<1|t>=y)&&(g=f[f.length-1],f[f.length-1]=f[f.length-1-m],f[f.length-1-m]=g)}else{var T=t-+this._x.call(null,p.data),b=e-+this._y.call(null,p.data),C=T*T+b*b;if(C<r){var w=Math.sqrt(r=C);i=t-w,a=e-w,h=t+w,d=e+w,n=p.data}}return n}function L_e(t){if(isNaN(h=+this._x.call(null,t))||isNaN(d=+this._y.call(null,t)))return this;var e,r=this._root,n,i,a,s=this._x0,o=this._y0,l=this._x1,u=this._y1,h,d,f,p,g,m,y,v;if(!r)return this;if(r.length)for(;;){if((g=h>=(f=(s+l)/2))?s=f:l=f,(m=d>=(p=(o+u)/2))?o=p:u=p,e=r,!(r=r[y=m<<1|g]))return this;if(!r.length)break;(e[y+1&3]||e[y+2&3]||e[y+3&3])&&(n=e,v=y)}for(;r.data!==t;)if(i=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,i?(a?i.next=a:delete i.next,this):e?(a?e[y]=a:delete e[y],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(n?n[v]=r:this._root=r),this):(this._root=a,this)}function I_e(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function D_e(){return this._root}function N_e(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function M_e(t){var e=[],r,n=this._root,i,a,s,o,l;for(n&&e.push(new pa(n,this._x0,this._y0,this._x1,this._y1));r=e.pop();)if(!t(n=r.node,a=r.x0,s=r.y0,o=r.x1,l=r.y1)&&n.length){var u=(a+o)/2,h=(s+l)/2;(i=n[3])&&e.push(new pa(i,u,h,o,l)),(i=n[2])&&e.push(new pa(i,a,h,u,l)),(i=n[1])&&e.push(new pa(i,u,s,o,h)),(i=n[0])&&e.push(new pa(i,a,s,u,h))}return this}function $_e(t){var e=[],r=[],n;for(this._root&&e.push(new pa(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var a,s=n.x0,o=n.y0,l=n.x1,u=n.y1,h=(s+l)/2,d=(o+u)/2;(a=i[0])&&e.push(new pa(a,s,o,h,d)),(a=i[1])&&e.push(new pa(a,h,o,l,d)),(a=i[2])&&e.push(new pa(a,s,d,h,u)),(a=i[3])&&e.push(new pa(a,h,d,l,u))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this}function O_e(t){return t[0]}function P_e(t){return arguments.length?(this._x=t,this):this._x}function B_e(t){return t[1]}function F_e(t){return arguments.length?(this._y=t,this):this._y}function z_e(t,e,r){var n=new bM(e??O_e,r??B_e,NaN,NaN,NaN,NaN);return t==null?n:n.addAll(t)}function bM(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function y8(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var Ra=z_e.prototype=bM.prototype;Ra.copy=function(){var t=new bM(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,r,n;if(!e)return t;if(!e.length)return t._root=y8(e),t;for(r=[{source:e,target:t._root=new Array(4)}];e=r.pop();)for(var i=0;i<4;++i)(n=e.source[i])&&(n.length?r.push({source:n,target:e.target[i]=new Array(4)}):e.target[i]=y8(n));return t};Ra.add=E_e;Ra.addAll=S_e;Ra.cover=k_e;Ra.data=__e;Ra.extent=A_e;Ra.find=R_e;Ra.remove=L_e;Ra.removeAll=I_e;Ra.root=D_e;Ra.size=N_e;Ra.visit=M_e;Ra.visitAfter=$_e;Ra.x=P_e;Ra.y=F_e;function ZS(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const v8=Symbol("implicit");function Hh(){var t=new BF,e=[],r=[],n=v8;function i(a){let s=t.get(a);if(s===void 0){if(n!==v8)return n;t.set(a,s=e.push(a)-1)}return r[s%r.length]}return i.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new BF;for(const s of a)t.has(s)||t.set(s,e.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Hh(e,r).unknown(n)},ZS.apply(i,arguments),i}function e3(){var t=Hh().unknown(void 0),e=t.domain,r=t.range,n=0,i=1,a,s,o=!1,l=0,u=0,h=.5;delete t.unknown;function d(){var f=e().length,p=i<n,g=p?i:n,m=p?n:i;a=(m-g)/Math.max(1,f-l+u*2),o&&(a=Math.floor(a)),g+=(m-g-a*(f-l))*h,s=a*(1-l),o&&(g=Math.round(g),s=Math.round(s));var y=P2e(f).map(function(v){return g+a*v});return r(p?y.reverse():y)}return t.domain=function(f){return arguments.length?(e(f),d()):e()},t.range=function(f){return arguments.length?([n,i]=f,n=+n,i=+i,d()):[n,i]},t.rangeRound=function(f){return[n,i]=f,n=+n,i=+i,o=!0,d()},t.bandwidth=function(){return s},t.step=function(){return a},t.round=function(f){return arguments.length?(o=!!f,d()):o},t.padding=function(f){return arguments.length?(l=Math.min(1,u=+f),d()):l},t.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},t.paddingOuter=function(f){return arguments.length?(u=+f,d()):u},t.align=function(f){return arguments.length?(h=Math.max(0,Math.min(1,f)),d()):h},t.copy=function(){return e3(e(),[n,i]).round(o).paddingInner(l).paddingOuter(u).align(h)},ZS.apply(d(),arguments)}function G_e(t){return function(){return t}}function V_e(t){return+t}var x8=[0,1];function ap(t){return t}function t3(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:G_e(isNaN(e)?NaN:.5)}function W_e(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function U_e(t,e,r){var n=t[0],i=t[1],a=e[0],s=e[1];return i<n?(n=t3(i,n),a=r(s,a)):(n=t3(n,i),a=r(a,s)),function(o){return a(n(o))}}function q_e(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),a=new Array(n),s=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<n;)i[s]=t3(t[s],t[s+1]),a[s]=r(e[s],e[s+1]);return function(o){var l=_2e(t,o,1,n)-1;return a[l](i[l](o))}}function yY(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function H_e(){var t=x8,e=x8,r=ZN,n,i,a,s=ap,o,l,u;function h(){var f=Math.min(t.length,e.length);return s!==ap&&(s=W_e(t[0],t[f-1])),o=f>2?q_e:U_e,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=o(t.map(n),e,r)))(n(s(f)))}return d.invert=function(f){return s(i((u||(u=o(e,t.map(n),Us)))(f)))},d.domain=function(f){return arguments.length?(t=Array.from(f,V_e),h()):t.slice()},d.range=function(f){return arguments.length?(e=Array.from(f),h()):e.slice()},d.rangeRound=function(f){return e=Array.from(f),r=Xbe,h()},d.clamp=function(f){return arguments.length?(s=f?!0:ap,h()):s!==ap},d.interpolate=function(f){return arguments.length?(r=f,h()):r},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,p){return n=f,i=p,h()}}function vY(){return H_e()(ap,ap)}function Y_e(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function xw(t,e){if(!isFinite(t)||t===0)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function I0(t){return t=xw(Math.abs(t)),t?t[1]:NaN}function X_e(t,e){return function(r,n){for(var i=r.length,a=[],s=0,o=t[0],l=0;i>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),a.push(r.substring(i-=o,i+o)),!((l+=o+1)>n));)o=t[s=(s+1)%t.length];return a.reverse().join(e)}}function j_e(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var K_e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bw(t){if(!(e=K_e.exec(t)))throw new Error("invalid format: "+t);var e;return new TM({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]})}bw.prototype=TM.prototype;function TM(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}TM.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Z_e(t){e:for(var e=t.length,r=1,n=-1,i;r<e;++r)switch(t[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+t[r])break e;n>0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var Tw;function Q_e(t,e){var r=xw(t,e);if(!r)return Tw=void 0,t.toPrecision(e);var n=r[0],i=r[1],a=i-(Tw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+xw(t,Math.max(0,e+a-1))[0]}function b8(t,e){var r=xw(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const T8={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Y_e,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)=>b8(t*100,e),r:b8,s:Q_e,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function C8(t){return t}var w8=Array.prototype.map,E8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function J_e(t){var e=t.grouping===void 0||t.thousands===void 0?C8:X_e(w8.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?C8:j_e(w8.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(d,f){d=bw(d);var p=d.fill,g=d.align,m=d.sign,y=d.symbol,v=d.zero,T=d.width,b=d.comma,C=d.precision,w=d.trim,S=d.type;S==="n"?(b=!0,S="g"):T8[S]||(C===void 0&&(C=12),w=!0,S="g"),(v||p==="0"&&g==="=")&&(v=!0,p="0",g="=");var E=(f&&f.prefix!==void 0?f.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),_=(y==="$"?n:/[%p]/.test(S)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),R=T8[S],I=/[defgprs%]/.test(S);C=C===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function L(P){var $=E,A=_,D,O,N;if(S==="c")A=R(P)+A,P="";else{P=+P;var M=P<0||1/P<0;if(P=isNaN(P)?l:R(Math.abs(P),C),w&&(P=Z_e(P)),M&&+P==0&&m!=="+"&&(M=!1),$=(M?m==="("?m:o:m==="-"||m==="("?"":m)+$,A=(S==="s"&&!isNaN(P)&&Tw!==void 0?E8[8+Tw/3]:"")+A+(M&&m==="("?")":""),I){for(D=-1,O=P.length;++D<O;)if(N=P.charCodeAt(D),48>N||N>57){A=(N===46?i+P.slice(D+1):P.slice(D))+A,P=P.slice(0,D);break}}}b&&!v&&(P=e(P,1/0));var B=$.length+P.length+A.length,z=B<T?new Array(T-B+1).join(p):"";switch(b&&v&&(P=e(z+P,z.length?T-A.length:1/0),z=""),g){case"<":P=$+P+A+z;break;case"=":P=$+z+P+A;break;case"^":P=z.slice(0,B=z.length>>1)+$+P+A+z.slice(B);break;default:P=z+$+P+A;break}return a(P)}return L.toString=function(){return d+""},L}function h(d,f){var p=Math.max(-8,Math.min(8,Math.floor(I0(f)/3)))*3,g=Math.pow(10,-p),m=u((d=bw(d),d.type="f",d),{suffix:E8[8+p/3]});return function(y){return m(g*y)}}return{format:u,formatPrefix:h}}var XT,mh,xY;eAe({thousands:",",grouping:[3],currency:["$",""]});function eAe(t){return XT=J_e(t),mh=XT.format,xY=XT.formatPrefix,XT}function tAe(t){return Math.max(0,-I0(Math.abs(t)))}function rAe(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(I0(e)/3)))*3-I0(Math.abs(t)))}function nAe(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,I0(e)-I0(t))+1}function iAe(t,e,r,n){var i=qI(t,e,r),a;switch(n=bw(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(a=rAe(i,s))&&(n.precision=a),xY(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=nAe(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=tAe(i))&&(n.precision=a-(n.type==="%")*2);break}}return mh(n)}function aAe(t){var e=t.domain;return t.ticks=function(r){var n=e();return M2e(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return iAe(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,a=n.length-1,s=n[i],o=n[a],l,u,h=10;for(o<s&&(u=s,s=o,o=u,u=i,i=a,a=u);h-- >0;){if(u=UI(s,o,r),u===l)return n[i]=s,n[a]=o,e(n);if(u>0)s=Math.floor(s/u)*u,o=Math.ceil(o/u)*u;else if(u<0)s=Math.ceil(s*u)/u,o=Math.floor(o*u)/u;else break;l=u}return t},t}function D0(){var t=vY();return t.copy=function(){return yY(t,D0())},ZS.apply(t,arguments),aAe(t)}function sAe(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],a=t[n],s;return a<i&&(s=r,r=n,n=s,s=i,i=a,a=s),t[r]=e.floor(i),t[n]=e.ceil(a),t}const LA=new Date,IA=new Date;function ai(t,e,r,n){function i(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const s=i(a),o=i.ceil(a);return a-s<o-a?s:o},i.offset=(a,s)=>(e(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,o)=>{const l=[];if(a=i.ceil(a),o=o==null?1:Math.floor(o),!(a<s)||!(o>0))return l;let u;do l.push(u=new Date(+a)),e(a,o),t(a);while(u<a&&a<s);return l},i.filter=a=>ai(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;e(s,-1),!a(s););else for(;--o>=0;)for(;e(s,1),!a(s););}),r&&(i.count=(a,s)=>(LA.setTime(+a),IA.setTime(+s),t(LA),t(IA),Math.floor(r(LA,IA))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const N0=ai(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);N0.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?ai(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):N0);N0.range;const Ol=1e3,_s=Ol*60,Pl=_s*60,Xl=Pl*24,CM=Xl*7,S8=Xl*30,DA=Xl*365,Wc=ai(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Ol)},(t,e)=>(e-t)/Ol,t=>t.getUTCSeconds());Wc.range;const Fx=ai(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ol)},(t,e)=>{t.setTime(+t+e*_s)},(t,e)=>(e-t)/_s,t=>t.getMinutes());Fx.range;const oAe=ai(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*_s)},(t,e)=>(e-t)/_s,t=>t.getUTCMinutes());oAe.range;const zx=ai(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ol-t.getMinutes()*_s)},(t,e)=>{t.setTime(+t+e*Pl)},(t,e)=>(e-t)/Pl,t=>t.getHours());zx.range;const lAe=ai(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Pl)},(t,e)=>(e-t)/Pl,t=>t.getUTCHours());lAe.range;const id=ai(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*_s)/Xl,t=>t.getDate()-1);id.range;const wM=ai(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Xl,t=>t.getUTCDate()-1);wM.range;const cAe=ai(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Xl,t=>Math.floor(t/Xl));cAe.range;function Ld(t){return ai(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*_s)/CM)}const Hb=Ld(0),Gx=Ld(1),bY=Ld(2),TY=Ld(3),ad=Ld(4),CY=Ld(5),wY=Ld(6);Hb.range;Gx.range;bY.range;TY.range;ad.range;CY.range;wY.range;function Id(t){return ai(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/CM)}const EY=Id(0),Cw=Id(1),uAe=Id(2),hAe=Id(3),M0=Id(4),dAe=Id(5),fAe=Id(6);EY.range;Cw.range;uAe.range;hAe.range;M0.range;dAe.range;fAe.range;const Vx=ai(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Vx.range;const pAe=ai(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());pAe.range;const jl=ai(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());jl.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ai(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});jl.range;const sd=ai(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());sd.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ai(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});sd.range;function gAe(t,e,r,n,i,a){const s=[[Wc,1,Ol],[Wc,5,5*Ol],[Wc,15,15*Ol],[Wc,30,30*Ol],[a,1,_s],[a,5,5*_s],[a,15,15*_s],[a,30,30*_s],[i,1,Pl],[i,3,3*Pl],[i,6,6*Pl],[i,12,12*Pl],[n,1,Xl],[n,2,2*Xl],[r,1,CM],[e,1,S8],[e,3,3*S8],[t,1,DA]];function o(u,h,d){const f=h<u;f&&([u,h]=[h,u]);const p=d&&typeof d.range=="function"?d:l(u,h,d),g=p?p.range(u,+h+1):[];return f?g.reverse():g}function l(u,h,d){const f=Math.abs(h-u)/d,p=rM(([,,y])=>y).right(s,f);if(p===s.length)return t.every(qI(u/DA,h/DA,d));if(p===0)return N0.every(Math.max(qI(u,h,d),1));const[g,m]=s[f/s[p-1][2]<s[p][2]/f?p-1:p];return g.every(m)}return[o,l]}const[mAe,yAe]=gAe(jl,Vx,Hb,id,zx,Fx);function NA(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 MA(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 Wv(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function vAe(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,s=t.shortDays,o=t.months,l=t.shortMonths,u=Uv(i),h=qv(i),d=Uv(a),f=qv(a),p=Uv(s),g=qv(s),m=Uv(o),y=qv(o),v=Uv(l),T=qv(l),b={a:N,A:M,b:B,B:z,c:null,d:I8,e:I8,f:GAe,g:ZAe,G:JAe,H:BAe,I:FAe,j:zAe,L:SY,m:VAe,M:WAe,p:G,q:F,Q:M8,s:$8,S:UAe,u:qAe,U:HAe,V:YAe,w:XAe,W:jAe,x:null,X:null,y:KAe,Y:QAe,Z:eRe,"%":N8},C={a:V,A:W,b:U,B:j,c:null,d:D8,e:D8,f:iRe,g:pRe,G:mRe,H:tRe,I:rRe,j:nRe,L:_Y,m:aRe,M:sRe,p:H,q:ne,Q:M8,s:$8,S:oRe,u:lRe,U:cRe,V:uRe,w:hRe,W:dRe,x:null,X:null,y:fRe,Y:gRe,Z:yRe,"%":N8},w={a:I,A:L,b:P,B:$,c:A,d:R8,e:R8,f:MAe,g:A8,G:_8,H:L8,I:L8,j:LAe,L:NAe,m:RAe,M:IAe,p:R,q:AAe,Q:OAe,s:PAe,S:DAe,u:wAe,U:EAe,V:SAe,w:CAe,W:kAe,x:D,X:O,y:A8,Y:_8,Z:_Ae,"%":$Ae};b.x=S(r,b),b.X=S(n,b),b.c=S(e,b),C.x=S(r,C),C.X=S(n,C),C.c=S(e,C);function S(Z,J){return function(re){var Q=[],fe=-1,te=0,Se=Z.length,Re,Ne,le;for(re instanceof Date||(re=new Date(+re));++fe<Se;)Z.charCodeAt(fe)===37&&(Q.push(Z.slice(te,fe)),(Ne=k8[Re=Z.charAt(++fe)])!=null?Re=Z.charAt(++fe):Ne=Re==="e"?" ":"0",(le=J[Re])&&(Re=le(re,Ne)),Q.push(Re),te=fe+1);return Q.push(Z.slice(te,fe)),Q.join("")}}function E(Z,J){return function(re){var Q=Wv(1900,void 0,1),fe=_(Q,Z,re+="",0),te,Se;if(fe!=re.length)return null;if("Q"in Q)return new Date(Q.Q);if("s"in Q)return new Date(Q.s*1e3+("L"in Q?Q.L:0));if(J&&!("Z"in Q)&&(Q.Z=0),"p"in Q&&(Q.H=Q.H%12+Q.p*12),Q.m===void 0&&(Q.m="q"in Q?Q.q:0),"V"in Q){if(Q.V<1||Q.V>53)return null;"w"in Q||(Q.w=1),"Z"in Q?(te=MA(Wv(Q.y,0,1)),Se=te.getUTCDay(),te=Se>4||Se===0?Cw.ceil(te):Cw(te),te=wM.offset(te,(Q.V-1)*7),Q.y=te.getUTCFullYear(),Q.m=te.getUTCMonth(),Q.d=te.getUTCDate()+(Q.w+6)%7):(te=NA(Wv(Q.y,0,1)),Se=te.getDay(),te=Se>4||Se===0?Gx.ceil(te):Gx(te),te=id.offset(te,(Q.V-1)*7),Q.y=te.getFullYear(),Q.m=te.getMonth(),Q.d=te.getDate()+(Q.w+6)%7)}else("W"in Q||"U"in Q)&&("w"in Q||(Q.w="u"in Q?Q.u%7:"W"in Q?1:0),Se="Z"in Q?MA(Wv(Q.y,0,1)).getUTCDay():NA(Wv(Q.y,0,1)).getDay(),Q.m=0,Q.d="W"in Q?(Q.w+6)%7+Q.W*7-(Se+5)%7:Q.w+Q.U*7-(Se+6)%7);return"Z"in Q?(Q.H+=Q.Z/100|0,Q.M+=Q.Z%100,MA(Q)):NA(Q)}}function _(Z,J,re,Q){for(var fe=0,te=J.length,Se=re.length,Re,Ne;fe<te;){if(Q>=Se)return-1;if(Re=J.charCodeAt(fe++),Re===37){if(Re=J.charAt(fe++),Ne=w[Re in k8?J.charAt(fe++):Re],!Ne||(Q=Ne(Z,re,Q))<0)return-1}else if(Re!=re.charCodeAt(Q++))return-1}return Q}function R(Z,J,re){var Q=u.exec(J.slice(re));return Q?(Z.p=h.get(Q[0].toLowerCase()),re+Q[0].length):-1}function I(Z,J,re){var Q=p.exec(J.slice(re));return Q?(Z.w=g.get(Q[0].toLowerCase()),re+Q[0].length):-1}function L(Z,J,re){var Q=d.exec(J.slice(re));return Q?(Z.w=f.get(Q[0].toLowerCase()),re+Q[0].length):-1}function P(Z,J,re){var Q=v.exec(J.slice(re));return Q?(Z.m=T.get(Q[0].toLowerCase()),re+Q[0].length):-1}function $(Z,J,re){var Q=m.exec(J.slice(re));return Q?(Z.m=y.get(Q[0].toLowerCase()),re+Q[0].length):-1}function A(Z,J,re){return _(Z,e,J,re)}function D(Z,J,re){return _(Z,r,J,re)}function O(Z,J,re){return _(Z,n,J,re)}function N(Z){return s[Z.getDay()]}function M(Z){return a[Z.getDay()]}function B(Z){return l[Z.getMonth()]}function z(Z){return o[Z.getMonth()]}function G(Z){return i[+(Z.getHours()>=12)]}function F(Z){return 1+~~(Z.getMonth()/3)}function V(Z){return s[Z.getUTCDay()]}function W(Z){return a[Z.getUTCDay()]}function U(Z){return l[Z.getUTCMonth()]}function j(Z){return o[Z.getUTCMonth()]}function H(Z){return i[+(Z.getUTCHours()>=12)]}function ne(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var J=S(Z+="",b);return J.toString=function(){return Z},J},parse:function(Z){var J=E(Z+="",!1);return J.toString=function(){return Z},J},utcFormat:function(Z){var J=S(Z+="",C);return J.toString=function(){return Z},J},utcParse:function(Z){var J=E(Z+="",!0);return J.toString=function(){return Z},J}}}var k8={"-":"",_:" ",0:"0"},bi=/^\s*\d+/,xAe=/^%/,bAe=/[\\^$*+?|[\]().{}]/g;function Pr(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function TAe(t){return t.replace(bAe,"\\$&")}function Uv(t){return new RegExp("^(?:"+t.map(TAe).join("|")+")","i")}function qv(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function CAe(t,e,r){var n=bi.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function wAe(t,e,r){var n=bi.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function EAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function SAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function kAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function _8(t,e,r){var n=bi.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function A8(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _Ae(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function AAe(t,e,r){var n=bi.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function RAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function R8(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function LAe(t,e,r){var n=bi.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function L8(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function IAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function DAe(t,e,r){var n=bi.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function NAe(t,e,r){var n=bi.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function MAe(t,e,r){var n=bi.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function $Ae(t,e,r){var n=xAe.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function OAe(t,e,r){var n=bi.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function PAe(t,e,r){var n=bi.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function I8(t,e){return Pr(t.getDate(),e,2)}function BAe(t,e){return Pr(t.getHours(),e,2)}function FAe(t,e){return Pr(t.getHours()%12||12,e,2)}function zAe(t,e){return Pr(1+id.count(jl(t),t),e,3)}function SY(t,e){return Pr(t.getMilliseconds(),e,3)}function GAe(t,e){return SY(t,e)+"000"}function VAe(t,e){return Pr(t.getMonth()+1,e,2)}function WAe(t,e){return Pr(t.getMinutes(),e,2)}function UAe(t,e){return Pr(t.getSeconds(),e,2)}function qAe(t){var e=t.getDay();return e===0?7:e}function HAe(t,e){return Pr(Hb.count(jl(t)-1,t),e,2)}function kY(t){var e=t.getDay();return e>=4||e===0?ad(t):ad.ceil(t)}function YAe(t,e){return t=kY(t),Pr(ad.count(jl(t),t)+(jl(t).getDay()===4),e,2)}function XAe(t){return t.getDay()}function jAe(t,e){return Pr(Gx.count(jl(t)-1,t),e,2)}function KAe(t,e){return Pr(t.getFullYear()%100,e,2)}function ZAe(t,e){return t=kY(t),Pr(t.getFullYear()%100,e,2)}function QAe(t,e){return Pr(t.getFullYear()%1e4,e,4)}function JAe(t,e){var r=t.getDay();return t=r>=4||r===0?ad(t):ad.ceil(t),Pr(t.getFullYear()%1e4,e,4)}function eRe(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Pr(e/60|0,"0",2)+Pr(e%60,"0",2)}function D8(t,e){return Pr(t.getUTCDate(),e,2)}function tRe(t,e){return Pr(t.getUTCHours(),e,2)}function rRe(t,e){return Pr(t.getUTCHours()%12||12,e,2)}function nRe(t,e){return Pr(1+wM.count(sd(t),t),e,3)}function _Y(t,e){return Pr(t.getUTCMilliseconds(),e,3)}function iRe(t,e){return _Y(t,e)+"000"}function aRe(t,e){return Pr(t.getUTCMonth()+1,e,2)}function sRe(t,e){return Pr(t.getUTCMinutes(),e,2)}function oRe(t,e){return Pr(t.getUTCSeconds(),e,2)}function lRe(t){var e=t.getUTCDay();return e===0?7:e}function cRe(t,e){return Pr(EY.count(sd(t)-1,t),e,2)}function AY(t){var e=t.getUTCDay();return e>=4||e===0?M0(t):M0.ceil(t)}function uRe(t,e){return t=AY(t),Pr(M0.count(sd(t),t)+(sd(t).getUTCDay()===4),e,2)}function hRe(t){return t.getUTCDay()}function dRe(t,e){return Pr(Cw.count(sd(t)-1,t),e,2)}function fRe(t,e){return Pr(t.getUTCFullYear()%100,e,2)}function pRe(t,e){return t=AY(t),Pr(t.getUTCFullYear()%100,e,2)}function gRe(t,e){return Pr(t.getUTCFullYear()%1e4,e,4)}function mRe(t,e){var r=t.getUTCDay();return t=r>=4||r===0?M0(t):M0.ceil(t),Pr(t.getUTCFullYear()%1e4,e,4)}function yRe(){return"+0000"}function N8(){return"%"}function M8(t){return+t}function $8(t){return Math.floor(+t/1e3)}var cf,ww;vRe({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"]});function vRe(t){return cf=vAe(t),ww=cf.format,cf.parse,cf.utcFormat,cf.utcParse,cf}function xRe(t){return new Date(t)}function bRe(t){return t instanceof Date?+t:+new Date(+t)}function RY(t,e,r,n,i,a,s,o,l,u){var h=vY(),d=h.invert,f=h.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),T=u("%b %d"),b=u("%B"),C=u("%Y");function w(S){return(l(S)<S?p:o(S)<S?g:s(S)<S?m:a(S)<S?y:n(S)<S?i(S)<S?v:T:r(S)<S?b:C)(S)}return h.invert=function(S){return new Date(d(S))},h.domain=function(S){return arguments.length?f(Array.from(S,bRe)):f().map(xRe)},h.ticks=function(S){var E=f();return t(E[0],E[E.length-1],S??10)},h.tickFormat=function(S,E){return E==null?w:u(E)},h.nice=function(S){var E=f();return(!S||typeof S.range!="function")&&(S=e(E[0],E[E.length-1],S??10)),S?f(sAe(E,S)):h},h.copy=function(){return yY(h,RY(t,e,r,n,i,a,s,o,l,u))},h}function TRe(){return ZS.apply(RY(mAe,yAe,jl,Vx,Hb,id,zx,Fx,Wc,ww).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function EM(t){for(var e=t.length/6|0,r=new Array(e),n=0;n<e;)r[n]="#"+t.slice(n*6,++n*6);return r}const yyt=EM("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),vyt=EM("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),CRe=EM("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var LY=Object.defineProperty,x=(t,e)=>LY(t,"name",{value:e,configurable:!0}),QS=(t,e)=>{for(var r in e)LY(t,r,{get:e[r],enumerable:!0})},ml={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},se={trace:x((...t)=>{},"trace"),debug:x((...t)=>{},"debug"),info:x((...t)=>{},"info"),warn:x((...t)=>{},"warn"),error:x((...t)=>{},"error"),fatal:x((...t)=>{},"fatal")},SM=x(function(t="fatal"){let e=ml.fatal;typeof t=="string"?t.toLowerCase()in ml&&(e=ml[t]):typeof t=="number"&&(e=t),se.trace=()=>{},se.debug=()=>{},se.info=()=>{},se.warn=()=>{},se.error=()=>{},se.fatal=()=>{},e<=ml.fatal&&(se.fatal=console.error?console.error.bind(console,ys("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ys("FATAL"))),e<=ml.error&&(se.error=console.error?console.error.bind(console,ys("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ys("ERROR"))),e<=ml.warn&&(se.warn=console.warn?console.warn.bind(console,ys("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ys("WARN"))),e<=ml.info&&(se.info=console.info?console.info.bind(console,ys("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ys("INFO"))),e<=ml.debug&&(se.debug=console.debug?console.debug.bind(console,ys("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ys("DEBUG"))),e<=ml.trace&&(se.trace=console.debug?console.debug.bind(console,ys("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ys("TRACE")))},"setLogLevel"),ys=x(t=>`%c${gi().format("ss.SSS")} : ${t} : `,"format");const tC={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const i=r<.5?r*(1+e):r+e-r*e,a=2*r-i;switch(n){case"r":return tC.hue2rgb(a,i,t+1/3)*255;case"g":return tC.hue2rgb(a,i,t)*255;case"b":return tC.hue2rgb(a,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const i=Math.max(t,e,r),a=Math.min(t,e,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;const o=i-a,l=s>.5?o/(2-i-a):o/(i+a);if(n==="s")return l*100;switch(i){case t:return((e-r)/o+(e<r?6:0))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return-1}}},wRe={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},ERe={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},ir={channel:tC,lang:wRe,unit:ERe},Ic={};for(let t=0;t<=255;t++)Ic[t]=ir.unit.dec2hex(t);const Yi={ALL:0,RGB:1,HSL:2};let SRe=class{constructor(){this.type=Yi.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Yi.ALL}is(e){return this.type===e}};class kRe{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new SRe}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=Yi.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:i}=e;r===void 0&&(e.h=ir.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=ir.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=ir.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:i}=e;r===void 0&&(e.r=ir.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=ir.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=ir.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(Yi.HSL)&&r!==void 0?r:(this._ensureHSL(),ir.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(Yi.HSL)&&r!==void 0?r:(this._ensureHSL(),ir.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(Yi.HSL)&&r!==void 0?r:(this._ensureHSL(),ir.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(Yi.RGB)&&r!==void 0?r:(this._ensureRGB(),ir.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(Yi.RGB)&&r!==void 0?r:(this._ensureRGB(),ir.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(Yi.RGB)&&r!==void 0?r:(this._ensureRGB(),ir.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Yi.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Yi.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Yi.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Yi.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Yi.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Yi.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const JS=new kRe({r:0,g:0,b:0,a:0},"transparent"),kp={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(kp.re);if(!e)return;const r=e[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,o=s?1:17,l=s?8:4,u=a?0:-1,h=s?255:15;return JS.set({r:(n>>l*(u+3)&h)*o,g:(n>>l*(u+2)&h)*o,b:(n>>l*(u+1)&h)*o,a:a?(n&h)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`#${Ic[Math.round(e)]}${Ic[Math.round(r)]}${Ic[Math.round(n)]}${Ic[Math.round(i*255)]}`:`#${Ic[Math.round(e)]}${Ic[Math.round(r)]}${Ic[Math.round(n)]}`}},$h={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match($h.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return ir.channel.clamp.h(parseFloat(r)*.9);case"rad":return ir.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return ir.channel.clamp.h(parseFloat(r)*360)}}return ir.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match($h.re);if(!r)return;const[,n,i,a,s,o]=r;return JS.set({h:$h._hue2deg(n),s:ir.channel.clamp.s(parseFloat(i)),l:ir.channel.clamp.l(parseFloat(a)),a:s?ir.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${ir.lang.round(e)}, ${ir.lang.round(r)}%, ${ir.lang.round(n)}%, ${i})`:`hsl(${ir.lang.round(e)}, ${ir.lang.round(r)}%, ${ir.lang.round(n)}%)`}},rx={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=rx.colors[t];if(e)return kp.parse(e)},stringify:t=>{const e=kp.stringify(t);for(const r in rx.colors)if(rx.colors[r]===e)return r}},E1={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(E1.re);if(!r)return;const[,n,i,a,s,o,l,u,h]=r;return JS.set({r:ir.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:ir.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:ir.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?ir.channel.clamp.a(h?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${ir.lang.round(e)}, ${ir.lang.round(r)}, ${ir.lang.round(n)}, ${ir.lang.round(i)})`:`rgb(${ir.lang.round(e)}, ${ir.lang.round(r)}, ${ir.lang.round(n)})`}},lo={format:{keyword:rx,hex:kp,rgb:E1,rgba:E1,hsl:$h,hsla:$h},parse:t=>{if(typeof t!="string")return t;const e=kp.parse(t)||E1.parse(t)||$h.parse(t)||rx.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Yi.HSL)||t.data.r===void 0?$h.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?E1.stringify(t):kp.stringify(t)},IY=(t,e)=>{const r=lo.parse(t);for(const n in e)r[n]=ir.channel.clamp[n](e[n]);return lo.stringify(r)},Js=(t,e,r=0,n=1)=>{if(typeof t!="number")return IY(t,{a:e});const i=JS.set({r:ir.channel.clamp.r(t),g:ir.channel.clamp.g(e),b:ir.channel.clamp.b(r),a:ir.channel.clamp.a(n)});return lo.stringify(i)},kM=(t,e)=>ir.lang.round(lo.parse(t)[e]),_Re=t=>{const{r:e,g:r,b:n}=lo.parse(t),i=.2126*ir.channel.toLinear(e)+.7152*ir.channel.toLinear(r)+.0722*ir.channel.toLinear(n);return ir.lang.round(i)},ARe=t=>_Re(t)>=.5,La=t=>!ARe(t),_M=(t,e,r)=>{const n=lo.parse(t),i=n[e],a=ir.channel.clamp[e](i+r);return i!==a&&(n[e]=a),lo.stringify(n)},He=(t,e)=>_M(t,"l",e),Ye=(t,e)=>_M(t,"l",-e),O8=(t,e)=>_M(t,"a",-e),de=(t,e)=>{const r=lo.parse(t),n={};for(const i in e)e[i]&&(n[i]=r[i]+e[i]);return IY(t,n)},RRe=(t,e,r=50)=>{const{r:n,g:i,b:a,a:s}=lo.parse(t),{r:o,g:l,b:u,a:h}=lo.parse(e),d=r/100,f=d*2-1,p=s-h,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,y=1-m,v=n*m+o*y,T=i*m+l*y,b=a*m+u*y,C=s*d+h*(1-d);return Js(v,T,b,C)},Ge=(t,e=100)=>{const r=lo.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,RRe(r,t,e)};/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function P8(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function LRe(t){if(Array.isArray(t))return t}function IRe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(h){u=!0,i=h}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}function DRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NRe(t,e){return LRe(t)||IRe(t,e)||MRe(t,e)||DRe()}function MRe(t,e){if(t){if(typeof t=="string")return P8(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P8(t,e):void 0}}const DY=Object.entries,B8=Object.setPrototypeOf,$Re=Object.isFrozen,ORe=Object.getPrototypeOf,PRe=Object.getOwnPropertyDescriptor;let $i=Object.freeze,zi=Object.seal,Nf=Object.create,NY=typeof Reflect<"u"&&Reflect,r3=NY.apply,n3=NY.construct;$i||($i=function(e){return e});zi||(zi=function(e){return e});r3||(r3=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return e.apply(r,i)});n3||(n3=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new e(...n)});const uf=Kn(Array.prototype.forEach),BRe=Kn(Array.prototype.lastIndexOf),F8=Kn(Array.prototype.pop),hf=Kn(Array.prototype.push),FRe=Kn(Array.prototype.splice),Gc=Array.isArray,S1=Kn(String.prototype.toLowerCase),$A=Kn(String.prototype.toString),z8=Kn(String.prototype.match),Hv=Kn(String.prototype.replace),G8=Kn(String.prototype.indexOf),zRe=Kn(String.prototype.trim),GRe=Kn(Number.prototype.toString),VRe=Kn(Boolean.prototype.toString),V8=typeof BigInt>"u"?null:Kn(BigInt.prototype.toString),W8=typeof Symbol>"u"?null:Kn(Symbol.prototype.toString),ci=Kn(Object.prototype.hasOwnProperty),Yv=Kn(Object.prototype.toString),li=Kn(RegExp.prototype.test),Fu=WRe(TypeError);function Kn(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return r3(t,e,n)}}function WRe(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return n3(t,r)}}function kr(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:S1;if(B8&&B8(t,null),!Gc(e))return t;let n=e.length;for(;n--;){let i=e[n];if(typeof i=="string"){const a=r(i);a!==i&&($Re(e)||(e[n]=a),i=a)}t[i]=!0}return t}function URe(t){for(let e=0;e<t.length;e++)ci(t,e)||(t[e]=null);return t}function Hi(t){const e=Nf(null);for(const n of DY(t)){var r=NRe(n,2);const i=r[0],a=r[1];ci(t,i)&&(Gc(a)?e[i]=URe(a):a&&typeof a=="object"&&a.constructor===Object?e[i]=Hi(a):e[i]=a)}return e}function qRe(t){switch(typeof t){case"string":return t;case"number":return GRe(t);case"boolean":return VRe(t);case"bigint":return V8?V8(t):"0";case"symbol":return W8?W8(t):"Symbol()";case"undefined":return Yv(t);case"function":case"object":{if(t===null)return Yv(t);const e=t,r=Fs(e,"toString");if(typeof r=="function"){const n=r(e);return typeof n=="string"?n:Yv(n)}return Yv(t)}default:return Yv(t)}}function Fs(t,e){for(;t!==null;){const n=PRe(t,e);if(n){if(n.get)return Kn(n.get);if(typeof n.value=="function")return Kn(n.value)}t=ORe(t)}function r(){return null}return r}function HRe(t){try{return li(t,""),!0}catch{return!1}}const U8=$i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),OA=$i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),PA=$i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),YRe=$i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),BA=$i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),XRe=$i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q8=$i(["#text"]),H8=$i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),FA=$i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Y8=$i(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),jT=$i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),jRe=zi(/{{[\w\W]*|^[\w\W]*}}/g),KRe=zi(/<%[\w\W]*|^[\w\W]*%>/g),ZRe=zi(/\${[\w\W]*/g),QRe=zi(/^data-[\-\w.\u00B7-\uFFFF]+$/),JRe=zi(/^aria-[\-\w]+$/),X8=zi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eLe=zi(/^(?:\w+script|data):/i),tLe=zi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rLe=zi(/^html$/i),nLe=zi(/^[a-z][.\w]*(-[.\w]+)+$/i),j8=zi(/<[/\w!]/g),K8=zi(/<[/\w]/g),iLe=zi(/<\/no(script|embed|frames)/i),aLe=zi(/\/>/i),es={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},sLe=function(){return typeof window>"u"?null:window},oLe=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Z8=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},kc=function(e,r,n,i){return ci(e,r)&&Gc(e[r])?kr(i.base?Hi(i.base):{},e[r],i.transform):n};function MY(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sLe();const e=pt=>MY(pt);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==es.document||!t.Element)return e.isSupported=!1,e;let r=t.document;const n=r,i=n.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,s=t.Node,o=t.Element,l=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const h=t.DOMParser,d=t.trustedTypes,f=o.prototype,p=Fs(f,"cloneNode"),g=Fs(f,"remove"),m=Fs(f,"nextSibling"),y=Fs(f,"childNodes"),v=Fs(f,"parentNode"),T=Fs(f,"shadowRoot"),b=Fs(f,"attributes"),C=s&&s.prototype?Fs(s.prototype,"nodeType"):null,w=s&&s.prototype?Fs(s.prototype,"nodeName"):null,S=s&&s.prototype?Fs(s.prototype,"ownerDocument"):null;if(typeof a=="function"){const pt=r.createElement("template");pt.content&&pt.content.ownerDocument&&(r=pt.content.ownerDocument)}let E,_="",R,I=!1,L=0;const P=function(){if(L>0)throw Fu('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},$=function(ke){P(),L++;try{return E.createHTML(ke)}finally{L--}},A=function(ke){P(),L++;try{return E.createScriptURL(ke)}finally{L--}},D=function(){return I||(R=oLe(d,i),I=!0),R},O=r,N=O.implementation,M=O.createNodeIterator,B=O.createDocumentFragment,z=O.getElementsByTagName,G=n.importNode;let F=Z8();e.isSupported=typeof DY=="function"&&typeof v=="function"&&N&&N.createHTMLDocument!==void 0;const V=jRe,W=KRe,U=ZRe,j=QRe,H=JRe,ne=eLe,Z=tLe,J=nLe;let re=X8,Q=null;const fe=kr({},[...U8,...OA,...PA,...BA,...q8]);let te=null;const Se=kr({},[...H8,...FA,...Y8,...jT]);let Re=Object.seal(Nf(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,le=null;const oe=Object.seal(Nf(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let me=!0,he=!0,Me=!1,ge=!0,xe=!1,Oe=!0,ie=!1,ue=!1,ye=null,ee=null,q=!1,X=!1,ae=!1,Y=!1,ce=!0,K=!1;const be="user-content-";let Te=!0,Pe=!1,Ee={},$e=null;const _e=kr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Be=null;const Ie=kr({},["audio","video","img","source","image","track"]);let We=null;const Ae=kr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",we="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let lt=nt,Xe=!1,yt=null;const gt=kr({},[Je,we,nt],$A),Ke=$i(["mi","mo","mn","ms","mtext"]);let pe=kr({},Ke);const dt=$i(["annotation-xml"]);let it=kr({},dt);const et=kr({},["title","style","font","a","script"]);let ct=null;const Vt=["application/xhtml+xml","text/html"],ve="text/html";let Fe=null,Ze=null;const ht=r.createElement("form"),Tt=function(ke){return ke instanceof RegExp||ke instanceof Function},Gt=function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ze&&Ze===ke)return;(!ke||typeof ke!="object")&&(ke={}),ke=Hi(ke),ct=Vt.indexOf(ke.PARSER_MEDIA_TYPE)===-1?ve:ke.PARSER_MEDIA_TYPE,Fe=ct==="application/xhtml+xml"?$A:S1,Q=kc(ke,"ALLOWED_TAGS",fe,{transform:Fe}),te=kc(ke,"ALLOWED_ATTR",Se,{transform:Fe}),yt=kc(ke,"ALLOWED_NAMESPACES",gt,{transform:$A}),We=kc(ke,"ADD_URI_SAFE_ATTR",Ae,{transform:Fe,base:Ae}),Be=kc(ke,"ADD_DATA_URI_TAGS",Ie,{transform:Fe,base:Ie}),$e=kc(ke,"FORBID_CONTENTS",_e,{transform:Fe}),Ne=kc(ke,"FORBID_TAGS",Hi({}),{transform:Fe}),le=kc(ke,"FORBID_ATTR",Hi({}),{transform:Fe}),Ee=ci(ke,"USE_PROFILES")?ke.USE_PROFILES&&typeof ke.USE_PROFILES=="object"?Hi(ke.USE_PROFILES):ke.USE_PROFILES:!1,me=ke.ALLOW_ARIA_ATTR!==!1,he=ke.ALLOW_DATA_ATTR!==!1,Me=ke.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=ke.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=ke.SAFE_FOR_TEMPLATES||!1,Oe=ke.SAFE_FOR_XML!==!1,ie=ke.WHOLE_DOCUMENT||!1,X=ke.RETURN_DOM||!1,ae=ke.RETURN_DOM_FRAGMENT||!1,Y=ke.RETURN_TRUSTED_TYPE||!1,q=ke.FORCE_BODY||!1,ce=ke.SANITIZE_DOM!==!1,K=ke.SANITIZE_NAMED_PROPS||!1,Te=ke.KEEP_CONTENT!==!1,Pe=ke.IN_PLACE||!1,re=HRe(ke.ALLOWED_URI_REGEXP)?ke.ALLOWED_URI_REGEXP:X8,lt=typeof ke.NAMESPACE=="string"?ke.NAMESPACE:nt,pe=ci(ke,"MATHML_TEXT_INTEGRATION_POINTS")&&ke.MATHML_TEXT_INTEGRATION_POINTS&&typeof ke.MATHML_TEXT_INTEGRATION_POINTS=="object"?Hi(ke.MATHML_TEXT_INTEGRATION_POINTS):kr({},Ke),it=ci(ke,"HTML_INTEGRATION_POINTS")&&ke.HTML_INTEGRATION_POINTS&&typeof ke.HTML_INTEGRATION_POINTS=="object"?Hi(ke.HTML_INTEGRATION_POINTS):kr({},dt);const Ve=ci(ke,"CUSTOM_ELEMENT_HANDLING")&&ke.CUSTOM_ELEMENT_HANDLING&&typeof ke.CUSTOM_ELEMENT_HANDLING=="object"?Hi(ke.CUSTOM_ELEMENT_HANDLING):Nf(null);if(Re=Nf(null),ci(Ve,"tagNameCheck")&&Tt(Ve.tagNameCheck)&&(Re.tagNameCheck=Ve.tagNameCheck),ci(Ve,"attributeNameCheck")&&Tt(Ve.attributeNameCheck)&&(Re.attributeNameCheck=Ve.attributeNameCheck),ci(Ve,"allowCustomizedBuiltInElements")&&typeof Ve.allowCustomizedBuiltInElements=="boolean"&&(Re.allowCustomizedBuiltInElements=Ve.allowCustomizedBuiltInElements),zi(Re),xe&&(he=!1),ae&&(X=!0),Ee&&(Q=kr({},q8),te=Nf(null),Ee.html===!0&&(kr(Q,U8),kr(te,H8)),Ee.svg===!0&&(kr(Q,OA),kr(te,FA),kr(te,jT)),Ee.svgFilters===!0&&(kr(Q,PA),kr(te,FA),kr(te,jT)),Ee.mathMl===!0&&(kr(Q,BA),kr(te,Y8),kr(te,jT))),oe.tagCheck=null,oe.attributeCheck=null,ci(ke,"ADD_TAGS")&&(typeof ke.ADD_TAGS=="function"?oe.tagCheck=ke.ADD_TAGS:Gc(ke.ADD_TAGS)&&(Q===fe&&(Q=Hi(Q)),kr(Q,ke.ADD_TAGS,Fe))),ci(ke,"ADD_ATTR")&&(typeof ke.ADD_ATTR=="function"?oe.attributeCheck=ke.ADD_ATTR:Gc(ke.ADD_ATTR)&&(te===Se&&(te=Hi(te)),kr(te,ke.ADD_ATTR,Fe))),ci(ke,"ADD_URI_SAFE_ATTR")&&Gc(ke.ADD_URI_SAFE_ATTR)&&kr(We,ke.ADD_URI_SAFE_ATTR,Fe),ci(ke,"FORBID_CONTENTS")&&Gc(ke.FORBID_CONTENTS)&&($e===_e&&($e=Hi($e)),kr($e,ke.FORBID_CONTENTS,Fe)),ci(ke,"ADD_FORBID_CONTENTS")&&Gc(ke.ADD_FORBID_CONTENTS)&&($e===_e&&($e=Hi($e)),kr($e,ke.ADD_FORBID_CONTENTS,Fe)),Te&&(Q["#text"]=!0),ie&&kr(Q,["html","head","body"]),Q.table&&(kr(Q,["tbody"]),delete Ne.tbody),ke.TRUSTED_TYPES_POLICY){if(typeof ke.TRUSTED_TYPES_POLICY.createHTML!="function")throw Fu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ke.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Fu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const st=E;E=ke.TRUSTED_TYPES_POLICY;try{_=$("")}catch(Et){throw E=st,Et}}else ke.TRUSTED_TYPES_POLICY===null?(E=void 0,_=""):(E===void 0&&(E=D()),E&&typeof _=="string"&&(_=$("")));$i&&$i(ke),Ze=ke},Nt=kr({},[...OA,...PA,...YRe]),Zt=kr({},[...BA,...XRe]),Pt=function(ke,Ve,st){return Ve.namespaceURI===nt?ke==="svg":Ve.namespaceURI===Je?ke==="svg"&&(st==="annotation-xml"||pe[st]):!!Nt[ke]},ar=function(ke,Ve,st){return Ve.namespaceURI===nt?ke==="math":Ve.namespaceURI===we?ke==="math"&&it[st]:!!Zt[ke]},Dt=function(ke,Ve,st){return Ve.namespaceURI===we&&!it[st]||Ve.namespaceURI===Je&&!pe[st]?!1:!Zt[ke]&&(et[ke]||!Nt[ke])},Xt=function(ke){let Ve=v(ke);(!Ve||!Ve.tagName)&&(Ve={namespaceURI:lt,tagName:"template"});const st=S1(ke.tagName),Et=S1(Ve.tagName);return yt[ke.namespaceURI]?ke.namespaceURI===we?Pt(st,Ve,Et):ke.namespaceURI===Je?ar(st,Ve,Et):ke.namespaceURI===nt?Dt(st,Ve,Et):!!(ct==="application/xhtml+xml"&&yt[ke.namespaceURI]):!1},sr=function(ke){hf(e.removed,{element:ke});try{v(ke).removeChild(ke)}catch{if(g(ke),!v(ke))throw Fu("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},qe=function(ke){Wt(ke);const Ve=y(ke);if(Ve){const Et=[];uf(Ve,$t=>{hf(Et,$t)}),uf(Et,$t=>{try{g($t)}catch{}})}const st=b(ke);if(st)for(let Et=st.length-1;Et>=0;--Et){const $t=st[Et],Ut=$t&&$t.name;if(typeof Ut=="string")try{ke.removeAttribute(Ut)}catch{}}},tt=function(ke,Ve){try{hf(e.removed,{attribute:Ve.getAttributeNode(ke),from:Ve})}catch{hf(e.removed,{attribute:null,from:Ve})}if(Ve.removeAttribute(ke),ke==="is")if(X||ae)try{sr(Ve)}catch{}else try{Ve.setAttribute(ke,"")}catch{}},vt=function(ke){const Ve=b(ke);if(Ve)for(let st=Ve.length-1;st>=0;--st){const Et=Ve[st],$t=Et&&Et.name;if(!(typeof $t!="string"||te[Fe($t)]))try{ke.removeAttribute($t)}catch{}}},Wt=function(ke){const Ve=[ke];for(;Ve.length>0;){const st=Ve.pop();(C?C(st):st.nodeType)===es.element&&vt(st);const $t=y(st);if($t)for(let Ut=$t.length-1;Ut>=0;--Ut)Ve.push($t[Ut])}},hr=function(ke){if(!Oe)return;const Ve=[ke];for(;Ve.length>0;){const st=Ve.pop(),Et=C?C(st):st.nodeType;if(Et===es.processingInstruction||Et===es.comment&&li(K8,st.data)){try{g(st)}catch{}continue}if(Et===es.element){const Ut=st,Fr=Fe(w?w(st):st.nodeName);try{Ut.hasAttribute&&Ut.hasAttribute("patchsrc")&&Ut.removeAttribute("patchsrc"),Ut.hasAttribute&&Ut.hasAttribute("for")&&Fr!=="label"&&Fr!=="output"&&Ut.removeAttribute("for")}catch{}}const $t=y(st);if($t)for(let Ut=$t.length-1;Ut>=0;--Ut)Ve.push($t[Ut])}},at=function(ke){let Ve=null,st=null;if(q)ke="<remove></remove>"+ke;else{const Ut=z8(ke,/^[\r\n\t ]+/);st=Ut&&Ut[0]}ct==="application/xhtml+xml"&&lt===nt&&(ke='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ke+"</body></html>");const Et=E?$(ke):ke;if(lt===nt)try{Ve=new h().parseFromString(Et,ct)}catch{}if(!Ve||!Ve.documentElement){Ve=N.createDocument(lt,"template",null);try{Ve.documentElement.innerHTML=Xe?_:Et}catch{}}const $t=Ve.body||Ve.documentElement;return ke&&st&&$t.insertBefore(r.createTextNode(st),$t.childNodes[0]||null),lt===nt?z.call(Ve,ie?"html":"body")[0]:ie?Ve.documentElement:$t},rt=function(ke){const Ve=S?S(ke):ke.ownerDocument;return M.call(Ve||ke,ke,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ft=function(ke){return ke=Hv(ke,V," "),ke=Hv(ke,W," "),ke=Hv(ke,U," "),ke},je=function(ke){var Ve;ke.normalize();const st=S?S(ke):ke.ownerDocument,Et=M.call(st||ke,ke,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let $t=Et.nextNode();for(;$t;)$t.data=ft($t.data),$t=Et.nextNode();const Ut=(Ve=ke.querySelectorAll)===null||Ve===void 0?void 0:Ve.call(ke,"template");Ut&&uf(Ut,Fr=>{Ce(Fr.content)&&je(Fr.content)})},Ct=function(ke){const Ve=w?w(ke):null;return typeof Ve!="string"||Fe(Ve)!=="form"?!1:typeof ke.nodeName!="string"||typeof ke.textContent!="string"||typeof ke.removeChild!="function"||ke.attributes!==b(ke)||typeof ke.removeAttribute!="function"||typeof ke.setAttribute!="function"||typeof ke.namespaceURI!="string"||typeof ke.insertBefore!="function"||typeof ke.hasChildNodes!="function"||ke.nodeType!==C(ke)||ke.childNodes!==y(ke)},Ce=function(ke){if(!C||typeof ke!="object"||ke===null)return!1;try{return C(ke)===es.documentFragment}catch{return!1}},Mr=function(ke){if(!C||typeof ke!="object"||ke===null)return!1;try{return typeof C(ke)=="number"}catch{return!1}};function Le(pt,ke,Ve){pt.length!==0&&uf(pt,st=>{st.call(e,ke,Ve,Ze)})}const cr=function(ke,Ve){return!!(Oe&&ke.hasChildNodes()&&!Mr(ke.firstElementChild)&&li(j8,ke.textContent)&&li(j8,ke.innerHTML)||Oe&&ke.namespaceURI===nt&&Ve==="style"&&Mr(ke.firstElementChild)||ke.nodeType===es.processingInstruction||Oe&&ke.nodeType===es.comment&&li(K8,ke.data))},Ar=function(ke,Ve,st){if(!Ne[Ve]&&ki(Ve)&&(Re.tagNameCheck instanceof RegExp&&li(Re.tagNameCheck,Ve)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(Ve)))return!1;if(Te&&!$e[Ve]){const Et=v(ke),$t=y(ke);if($t&&Et){const Ut=$t.length;for(let Fr=Ut-1;Fr>=0;--Fr){const Yr=ke===st?p($t[Fr],!0):$t[Fr];Et.insertBefore(Yr,m(ke))}}}return sr(ke),!0},Wn=function(ke,Ve,st,Et){return ke.length===0?Ve:Ve===st||Ve===Et?Hi(Ve):Ve},Sr=function(ke,Ve){if(Le(F.beforeSanitizeElements,ke,null),ke!==Ve&&v(ke)===null)return Pe&&Wt(ke),!0;if(Ct(ke))return sr(ke),!0;const st=Fe(w?w(ke):ke.nodeName);if(Q=Wn(F.uponSanitizeElement,Q,fe,ye),Le(F.uponSanitizeElement,ke,{tagName:st,allowedTags:Q}),ke!==Ve&&v(ke)===null)return Pe&&Wt(ke),!0;if(cr(ke,st))return sr(ke),!0;if(Ne[st]||!(oe.tagCheck instanceof Function&&oe.tagCheck(st))&&!Q[st]){const $t=Ar(ke,st,Ve);return $t===!1&&Le(F.afterSanitizeElements,ke,null),$t}if((C?C(ke):ke.nodeType)===es.element&&!Xt(ke)||(st==="noscript"||st==="noembed"||st==="noframes")&&li(iLe,ke.innerHTML))return sr(ke),!0;if(xe&&ke.nodeType===es.text){const $t=ft(ke.textContent);ke.textContent!==$t&&(hf(e.removed,{element:ke.cloneNode()}),ke.textContent=$t)}return Le(F.afterSanitizeElements,ke,null),!1},Gr=function(ke,Ve,st){if(le[Ve]||Oe&&Ve==="patchsrc"||Oe&&Ve==="for"&&ke!=="label"&&ke!=="output"||ce&&(Ve==="id"||Ve==="name")&&(st in r||st in ht))return!1;const Et=te[Ve]||oe.attributeCheck instanceof Function&&oe.attributeCheck(Ve,ke);if(!(he&&li(j,Ve))){if(!(me&&li(H,Ve))){if(Et){if(!We[Ve]){if(!li(re,Hv(st,Z,""))){if(!((Ve==="src"||Ve==="xlink:href"||Ve==="href")&&ke!=="script"&&G8(st,"data:")===0&&Be[ke])){if(!(Me&&!li(ne,Hv(st,Z,"")))){if(st)return!1}}}}}else if(!(ki(ke)&&(Re.tagNameCheck instanceof RegExp&&li(Re.tagNameCheck,ke)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(ke))&&(Re.attributeNameCheck instanceof RegExp&&li(Re.attributeNameCheck,Ve)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(Ve,ke))||Ve==="is"&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&li(Re.tagNameCheck,st)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(st))))return!1}}return!0},br=kr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ki=function(ke){return!br[S1(ke)]&&li(J,ke)},vo=function(ke,Ve,st,Et){if(E&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!st)switch(d.getAttributeType(ke,Ve)){case"TrustedHTML":return $(Et);case"TrustedScriptURL":return A(Et)}return Et},dl=function(ke,Ve,st,Et){try{st?ke.setAttributeNS(st,Ve,Et):ke.setAttribute(Ve,Et),Ct(ke)?sr(ke):F8(e.removed)}catch{tt(Ve,ke)}},Bu=function(ke){Le(F.beforeSanitizeAttributes,ke,null);const Ve=ke.attributes;if(!Ve||Ct(ke))return;te=Wn(F.uponSanitizeAttribute,te,Se,ee);const st={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let Et=Ve.length;const $t=Fe(ke.nodeName);for(;Et--;){const Ut=Ve[Et],Fr=Ut.name,Yr=Ut.namespaceURI,oi=Ut.value,Xr=Fe(Fr),gA=oi;let oa=Fr==="value"?gA:zRe(gA);if(st.attrName=Xr,st.attrValue=oa,st.keepAttr=!0,st.forceKeepAttr=void 0,Le(F.uponSanitizeAttribute,ke,st),oa=st.attrValue,K&&(Xr==="id"||Xr==="name")&&G8(oa,be)!==0&&(tt(Fr,ke),oa=be+oa),Oe&&li(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,oa)){tt(Fr,ke);continue}if(Xr==="attributename"&&z8(oa,"href")){tt(Fr,ke);continue}if(!st.forceKeepAttr){if(!st.keepAttr){tt(Fr,ke);continue}if(!ge&&li(aLe,oa)){tt(Fr,ke);continue}if(xe&&(oa=ft(oa)),!Gr($t,Xr,oa)){tt(Fr,ke);continue}oa=vo($t,Xr,Yr,oa),oa!==gA&&dl(ke,Fr,Yr,oa)}}Le(F.afterSanitizeAttributes,ke,null)},fl=function(ke){let Ve=null;const st=rt(ke);for(Le(F.beforeSanitizeShadowDOM,ke,null);Ve=st.nextNode();)if(Le(F.uponSanitizeShadowNode,Ve,null),Sr(Ve,ke),Bu(Ve),Ce(Ve.content)&&fl(Ve.content),(C?C(Ve):Ve.nodeType)===es.element){const $t=T(Ve);Ce($t)&&(pl($t),fl($t))}Le(F.afterSanitizeShadowDOM,ke,null)},pl=function(ke){const Ve=[{node:ke,shadow:null}];for(;Ve.length>0;){const st=Ve.pop();if(st.shadow){fl(st.shadow);continue}const Et=st.node,Ut=(C?C(Et):Et.nodeType)===es.element,Fr=y(Et);if(Fr)for(let Yr=Fr.length-1;Yr>=0;--Yr)Ve.push({node:Fr[Yr],shadow:null});if(Ut){const Yr=w?w(Et):null;if(typeof Yr=="string"&&Fe(Yr)==="template"){const oi=Et.content;Ce(oi)&&Ve.push({node:oi,shadow:null})}}if(Ut){const Yr=T(Et);Ce(Yr)&&Ve.push({node:null,shadow:Yr},{node:Yr,shadow:null})}}};return e.sanitize=function(pt){let ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ve=null,st=null,Et=null,$t=null;if(Xe=!pt,Xe&&(pt="<!-->"),typeof pt!="string"&&!Mr(pt)&&(pt=qRe(pt),typeof pt!="string"))throw Fu("dirty is not a string, aborting");if(!e.isSupported)return pt;ue?(Q=ye,te=ee):Gt(ke),(F.uponSanitizeElement.length>0||F.uponSanitizeAttribute.length>0)&&(Q=Hi(Q)),F.uponSanitizeAttribute.length>0&&(te=Hi(te)),e.removed=[];const Ut=Pe&&typeof pt!="string"&&Mr(pt);if(Ut){hr(pt);const oi=w?w(pt):pt.nodeName;if(typeof oi=="string"){const Xr=Fe(oi);if(!Q[Xr]||Ne[Xr])throw qe(pt),Fu("root node is forbidden and cannot be sanitized in-place")}if(Ct(pt))throw qe(pt),Fu("root node is clobbered and cannot be sanitized in-place");try{pl(pt)}catch(Xr){throw qe(pt),Xr}}else if(Mr(pt))Ve=at("<!---->"),st=Ve.ownerDocument.importNode(pt,!0),st.nodeType===es.element&&st.nodeName==="BODY"||st.nodeName==="HTML"?Ve=st:Ve.appendChild(st),pl(st);else{if(!X&&!xe&&!ie&&pt.indexOf("<")===-1)return E&&Y?$(pt):pt;if(Ve=at(pt),!Ve)return X?null:Y?_:""}Ve&&q&&sr(Ve.firstChild);const Fr=Ut?pt:Ve;try{const oi=rt(Fr);for(;Et=oi.nextNode();)Sr(Et,Fr),Bu(Et),Ce(Et.content)&&fl(Et.content)}catch(oi){throw Ut&&(qe(pt),uf(e.removed,Xr=>{Xr.element&&Wt(Xr.element)})),oi}if(Ut)return uf(e.removed,oi=>{oi.element&&Wt(oi.element)}),xe&&je(pt),pt;if(X){if(xe&&je(Ve),ae)for($t=B.call(Ve.ownerDocument);Ve.firstChild;)$t.appendChild(Ve.firstChild);else $t=Ve;return(te.shadowroot||te.shadowrootmode)&&($t=G.call(n,$t,!0)),$t}let Yr=ie?Ve.outerHTML:Ve.innerHTML;return ie&&Q["!doctype"]&&Ve.ownerDocument&&Ve.ownerDocument.doctype&&Ve.ownerDocument.doctype.name&&li(rLe,Ve.ownerDocument.doctype.name)&&(Yr="<!DOCTYPE "+Ve.ownerDocument.doctype.name+`>
4
4
  `+Yr),xe&&(Yr=ft(Yr)),E&&Y?$(Yr):Yr},e.setConfig=function(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gt(pt),ue=!0,ye=Q,ee=te},e.clearConfig=function(){Ze=null,ue=!1,ye=null,ee=null,E=R,_=""},e.isValidAttribute=function(pt,ke,Ve){Ze||Gt({});const st=Fe(pt),Et=Fe(ke);return Gr(st,Et,Ve)},e.addHook=function(pt,ke){typeof ke=="function"&&ci(F,pt)&&hf(F[pt],ke)},e.removeHook=function(pt,ke){if(ci(F,pt)){if(ke!==void 0){const Ve=BRe(F[pt],ke);return Ve===-1?void 0:FRe(F[pt],Ve,1)[0]}return F8(F[pt])}},e.removeHooks=function(pt){ci(F,pt)&&(F[pt]=[])},e.removeAllHooks=function(){F=Z8()},e}var Kl=MY(),i3=x((t,e,{depth:r=2}={})=>{const n={depth:r};if(Array.isArray(e)&&!Array.isArray(t))return e.forEach(i=>i3(t,i,n)),t;if(Array.isArray(e)&&Array.isArray(t))return e.forEach(i=>{t.includes(i)||t.push(i)}),t;if(t==null||r<=0)return t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e;if(e!=null&&typeof t=="object"&&typeof e=="object"){const i=t;Object.entries(e).forEach(([a,s])=>{if(typeof s=="object"){if(s===null)return;Object.hasOwn(t,a)||Object.defineProperty(t,a,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),i[a]===void 0&&(i[a]=Array.isArray(s)?[]:{}),typeof i[a]=="object"&&(i[a]=i3(i[a],s,{depth:r-1}))}else typeof i[a]!="object"&&(Object.hasOwn(t,a)?i[a]=s:Object.defineProperty(t,a,{value:s,writable:!0,enumerable:!0,configurable:!0}))})}return t},"assignWithDepth"),Hn=i3,tl="#ffffff",rl="#f2f2f2",nr=x((t,e)=>e?de(t,{s:-40,l:10}):de(t,{s:-40,l:-10}),"mkBorder"),Vp,lLe=(Vp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,n,i,a,s,o,l,u,h,d,f,p,g,m,y,v,T,b,C,w,S,E,_,R,I,L,P,$,A,D,O,N,M,B,z,G,F,V,W,U,j,H,ne,Z,J,re,Q,fe,te;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||nr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||nr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||He(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Ye(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Ye(this.mainBkg,10)):(this.rowOdd=this.rowOdd||He(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||He(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330}),this.darkMode)for(let Se=0;Se<this.THEME_COLOR_LIMIT;Se++)this["cScale"+Se]=Ye(this["cScale"+Se],75);else for(let Se=0;Se<this.THEME_COLOR_LIMIT;Se++)this["cScale"+Se]=Ye(this["cScale"+Se],25);for(let Se=0;Se<this.THEME_COLOR_LIMIT;Se++)this["cScaleInv"+Se]=this["cScaleInv"+Se]||Ge(this["cScale"+Se]);for(let Se=0;Se<this.THEME_COLOR_LIMIT;Se++)this.darkMode?this["cScalePeer"+Se]=this["cScalePeer"+Se]||He(this["cScale"+Se],10):this["cScalePeer"+Se]=this["cScalePeer"+Se]||Ye(this["cScale"+Se],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let Se=0;Se<this.THEME_COLOR_LIMIT;Se++)this["cScaleLabel"+Se]=this["cScaleLabel"+Se]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let Se=0;Se<5;Se++)this["surface"+Se]=this["surface"+Se]||de(this.mainBkg,{h:180,s:-15,l:e*(5+Se*3)}),this["surfacePeer"+Se]=this["surfacePeer"+Se]||de(this.mainBkg,{h:180,s:-15,l:e*(8+Se*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||de(this.primaryColor,{h:64}),this.fillType3=this.fillType3||de(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||de(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||de(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||de(this.primaryColor,{h:128}),this.fillType7=this.fillType7||de(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||de(this.primaryColor,{l:-10}),this.pie5=this.pie5||de(this.secondaryColor,{l:-10}),this.pie6=this.pie6||de(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||de(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||de(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||de(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||de(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||de(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||de(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??de(this.primaryColor,{l:-30}),this.venn2=this.venn2??de(this.secondaryColor,{l:-30}),this.venn3=this.venn3??de(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??de(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??de(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??de(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??de(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??de(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((r=this.cynefin)==null?void 0:r.domainFontSize)||16,itemFontSize:((n=this.cynefin)==null?void 0:n.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((a=this.cynefin)==null?void 0:a.boundaryWidth)||2,cliffColor:((s=this.cynefin)==null?void 0:s.cliffColor)||"#8B0000",cliffWidth:((o=this.cynefin)==null?void 0:o.cliffWidth)||4,arrowColor:((l=this.cynefin)==null?void 0:l.arrowColor)||this.lineColor,arrowWidth:((u=this.cynefin)==null?void 0:u.arrowWidth)||2,complexBg:((h=this.cynefin)==null?void 0:h.complexBg)||"#E8F5E9",complicatedBg:((d=this.cynefin)==null?void 0:d.complicatedBg)||"#E3F2FD",chaoticBg:((f=this.cynefin)==null?void 0:f.chaoticBg)||"#FBE9E7",clearBg:((p=this.cynefin)==null?void 0:p.clearBg)||"#FFF8E1",confusionBg:((g=this.cynefin)==null?void 0:g.confusionBg)||"#F3E5F5",textColor:((m=this.cynefin)==null?void 0:m.textColor)||this.textColor,labelColor:((y=this.cynefin)==null?void 0:y.labelColor)||this.primaryTextColor},this.radar={axisColor:((v=this.radar)==null?void 0:v.axisColor)||this.lineColor,axisStrokeWidth:((T=this.radar)==null?void 0:T.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((C=this.radar)==null?void 0:C.curveOpacity)||.5,curveStrokeWidth:((w=this.radar)==null?void 0:w.curveStrokeWidth)||2,graticuleColor:((S=this.radar)==null?void 0:S.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((E=this.radar)==null?void 0:E.graticuleStrokeWidth)||1,graticuleOpacity:((_=this.radar)==null?void 0:_.graticuleOpacity)||.3,legendBoxSize:((R=this.radar)==null?void 0:R.legendBoxSize)||12,legendFontSize:((I=this.radar)==null?void 0:I.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((L=this.wardley)==null?void 0:L.backgroundColor)||this.background,axisColor:((P=this.wardley)==null?void 0:P.axisColor)||this.lineColor,axisTextColor:(($=this.wardley)==null?void 0:$.axisTextColor)||this.primaryTextColor,gridColor:((A=this.wardley)==null?void 0:A.gridColor)||this.gridColor,componentFill:((D=this.wardley)==null?void 0:D.componentFill)||this.background,componentStroke:((O=this.wardley)==null?void 0:O.componentStroke)||this.lineColor,componentLabelColor:((N=this.wardley)==null?void 0:N.componentLabelColor)||this.primaryTextColor,linkStroke:((M=this.wardley)==null?void 0:M.linkStroke)||this.lineColor,evolutionStroke:((B=this.wardley)==null?void 0:B.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((z=this.wardley)==null?void 0:z.annotationStroke)||this.lineColor,annotationTextColor:((G=this.wardley)==null?void 0:G.annotationTextColor)||this.primaryTextColor,annotationFill:((F=this.wardley)==null?void 0:F.annotationFill)||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||de(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((V=this.xyChart)==null?void 0:V.backgroundColor)||this.background,titleColor:((W=this.xyChart)==null?void 0:W.titleColor)||this.primaryTextColor,dataLabelColor:((U=this.xyChart)==null?void 0:U.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((j=this.xyChart)==null?void 0:j.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((H=this.xyChart)==null?void 0:H.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((ne=this.xyChart)==null?void 0:ne.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((Z=this.xyChart)==null?void 0:Z.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((J=this.xyChart)==null?void 0:J.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((re=this.xyChart)==null?void 0:re.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((Q=this.xyChart)==null?void 0:Q.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((fe=this.xyChart)==null?void 0:fe.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((te=this.xyChart)==null?void 0:te.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||de(this.primaryColor,{h:-30}),this.git4=this.git4||de(this.primaryColor,{h:-60}),this.git5=this.git5||de(this.primaryColor,{h:-90}),this.git6=this.git6||de(this.primaryColor,{h:60}),this.git7=this.git7||de(this.primaryColor,{h:120}),this.darkMode?(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||rl,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(Vp,"Theme"),Vp),cLe=x(t=>{const e=new lLe;return e.calculate(t),e},"getThemeVariables"),Wp,uLe=(Wp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=He(this.primaryColor,16),this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=Ge(this.background),this.secondaryBorderColor=nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.lineColor=Ge(this.background),this.textColor=Ge(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=He(Ge("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Js(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=Ye("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Ye(this.sectionBkgColor,10),this.taskBorderColor=Js(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Js(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||He(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Ye(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var e,r,n,i,a,s,o,l,u,h,d,f,p,g,m,y,v,T,b,C,w,S,E,_,R,I,L,P,$,A,D,O,N,M,B,z,G,F,V,W,U,j,H,ne,Z,J,re,Q,fe;this.secondBkg=He(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=He(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=He(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=Ge(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=de(this.primaryColor,{h:64}),this.fillType3=de(this.secondaryColor,{h:64}),this.fillType4=de(this.primaryColor,{h:-64}),this.fillType5=de(this.secondaryColor,{h:-64}),this.fillType6=de(this.primaryColor,{h:128}),this.fillType7=de(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330});for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScaleInv"+te]=this["cScaleInv"+te]||Ge(this["cScale"+te]);for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScalePeer"+te]=this["cScalePeer"+te]||He(this["cScale"+te],10);for(let te=0;te<5;te++)this["surface"+te]=this["surface"+te]||de(this.mainBkg,{h:30,s:-30,l:-(-10+te*4)}),this["surfacePeer"+te]=this["surfacePeer"+te]||de(this.mainBkg,{h:30,s:-30,l:-(-7+te*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScaleLabel"+te]=this["cScaleLabel"+te]||this.scaleLabelColor;for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["pie"+te]=this["cScale"+te];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let te=0;te<8;te++)this["venn"+(te+1)]=this["venn"+(te+1)]??He(this["cScale"+te],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((e=this.cynefin)==null?void 0:e.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((n=this.cynefin)==null?void 0:n.boundaryColor)||this.lineColor,boundaryWidth:((i=this.cynefin)==null?void 0:i.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#FF6B6B",cliffWidth:((s=this.cynefin)==null?void 0:s.cliffWidth)||4,arrowColor:((o=this.cynefin)==null?void 0:o.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((u=this.cynefin)==null?void 0:u.complexBg)||"#1B5E20",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#0D47A1",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#BF360C",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#F57F17",confusionBg:((p=this.cynefin)==null?void 0:p.confusionBg)||"#4A148C",textColor:((g=this.cynefin)==null?void 0:g.textColor)||this.textColor,labelColor:((m=this.cynefin)==null?void 0:m.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||de(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((y=this.xyChart)==null?void 0:y.backgroundColor)||this.background,titleColor:((v=this.xyChart)==null?void 0:v.titleColor)||this.primaryTextColor,dataLabelColor:((T=this.xyChart)==null?void 0:T.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((b=this.xyChart)==null?void 0:b.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((C=this.xyChart)==null?void 0:C.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((w=this.xyChart)==null?void 0:w.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((S=this.xyChart)==null?void 0:S.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((E=this.xyChart)==null?void 0:E.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((R=this.xyChart)==null?void 0:R.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((I=this.xyChart)==null?void 0:I.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((L=this.xyChart)==null?void 0:L.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((P=this.radar)==null?void 0:P.axisColor)||this.lineColor,axisStrokeWidth:(($=this.radar)==null?void 0:$.axisStrokeWidth)||2,axisLabelFontSize:((A=this.radar)==null?void 0:A.axisLabelFontSize)||12,curveOpacity:((D=this.radar)==null?void 0:D.curveOpacity)||.5,curveStrokeWidth:((O=this.radar)==null?void 0:O.curveStrokeWidth)||2,graticuleColor:((N=this.radar)==null?void 0:N.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((M=this.radar)==null?void 0:M.graticuleStrokeWidth)||1,graticuleOpacity:((B=this.radar)==null?void 0:B.graticuleOpacity)||.3,legendBoxSize:((z=this.radar)==null?void 0:z.legendBoxSize)||12,legendFontSize:((G=this.radar)==null?void 0:G.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:((F=this.wardley)==null?void 0:F.backgroundColor)||this.background,axisColor:((V=this.wardley)==null?void 0:V.axisColor)||this.lineColor,axisTextColor:((W=this.wardley)==null?void 0:W.axisTextColor)||this.primaryTextColor,gridColor:((U=this.wardley)==null?void 0:U.gridColor)||this.gridColor,componentFill:((j=this.wardley)==null?void 0:j.componentFill)||this.mainBkg,componentStroke:((H=this.wardley)==null?void 0:H.componentStroke)||this.lineColor,componentLabelColor:((ne=this.wardley)==null?void 0:ne.componentLabelColor)||this.primaryTextColor,linkStroke:((Z=this.wardley)==null?void 0:Z.linkStroke)||this.lineColor,evolutionStroke:((J=this.wardley)==null?void 0:J.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((re=this.wardley)==null?void 0:re.annotationStroke)||this.lineColor,annotationTextColor:((Q=this.wardley)==null?void 0:Q.annotationTextColor)||this.primaryTextColor,annotationFill:((fe=this.wardley)==null?void 0:fe.annotationFill)||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=He(this.secondaryColor,20),this.git1=He(this.pie2||this.secondaryColor,20),this.git2=He(this.pie3||this.tertiaryColor,20),this.git3=He(this.pie4||de(this.primaryColor,{h:-30}),20),this.git4=He(this.pie5||de(this.primaryColor,{h:-60}),20),this.git5=He(this.pie6||de(this.primaryColor,{h:-90}),10),this.git6=He(this.pie7||de(this.primaryColor,{h:60}),10),this.git7=He(this.pie8||de(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ge(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ge(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||He("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||He("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||He("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||He("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||He(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||He(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||He(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||He(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(Wp,"Theme"),Wp),hLe=x(t=>{const e=new uLe;return e.calculate(t),e},"getThemeVariables"),Up,dLe=(Up=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=de(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.lineColor=Ge(this.background),this.textColor=Ge(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=nr(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Js(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var e,r,n,i,a,s,o,l,u,h,d,f,p,g,m,y,v,T,b,C,w,S,E,_,R,I,L,P,$,A,D,O,N,M,B,z,G,F,V,W,U,j,H,ne,Z,J,re,Q,fe;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ye(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ye(this.tertiaryColor,40);for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScale"+te]=Ye(this["cScale"+te],10),this["cScalePeer"+te]=this["cScalePeer"+te]||Ye(this["cScale"+te],25);for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScaleInv"+te]=this["cScaleInv"+te]||de(this["cScale"+te],{h:180});for(let te=0;te<5;te++)this["surface"+te]=this["surface"+te]||de(this.mainBkg,{h:30,l:-(5+te*5)}),this["surfacePeer"+te]=this["surfacePeer"+te]||de(this.mainBkg,{h:30,l:-(7+te*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Ge(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Ge(this.labelTextColor);for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScaleLabel"+te]=this["cScaleLabel"+te]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||He(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||He(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=de(this.primaryColor,{h:64}),this.fillType3=de(this.secondaryColor,{h:64}),this.fillType4=de(this.primaryColor,{h:-64}),this.fillType5=de(this.secondaryColor,{h:-64}),this.fillType6=de(this.primaryColor,{h:128}),this.fillType7=de(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||de(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||de(this.primaryColor,{l:-10}),this.pie5=this.pie5||de(this.secondaryColor,{l:-30}),this.pie6=this.pie6||de(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||de(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||de(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||de(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||de(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||de(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||de(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??de(this.primaryColor,{l:-30}),this.venn2=this.venn2??de(this.secondaryColor,{l:-30}),this.venn3=this.venn3??de(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??de(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??de(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??de(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??de(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??de(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((e=this.cynefin)==null?void 0:e.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((n=this.cynefin)==null?void 0:n.boundaryColor)||this.lineColor,boundaryWidth:((i=this.cynefin)==null?void 0:i.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B0000",cliffWidth:((s=this.cynefin)==null?void 0:s.cliffWidth)||4,arrowColor:((o=this.cynefin)==null?void 0:o.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((u=this.cynefin)==null?void 0:u.complexBg)||"#E8F5E9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#E3F2FD",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#FBE9E7",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF8E1",confusionBg:((p=this.cynefin)==null?void 0:p.confusionBg)||"#F3E5F5",textColor:((g=this.cynefin)==null?void 0:g.textColor)||this.textColor,labelColor:((m=this.cynefin)==null?void 0:m.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||de(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((y=this.radar)==null?void 0:y.axisColor)||this.lineColor,axisStrokeWidth:((v=this.radar)==null?void 0:v.axisStrokeWidth)||2,axisLabelFontSize:((T=this.radar)==null?void 0:T.axisLabelFontSize)||12,curveOpacity:((b=this.radar)==null?void 0:b.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((R=this.radar)==null?void 0:R.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((I=this.wardley)==null?void 0:I.backgroundColor)||this.background,axisColor:((L=this.wardley)==null?void 0:L.axisColor)||this.lineColor,axisTextColor:((P=this.wardley)==null?void 0:P.axisTextColor)||this.primaryTextColor,gridColor:(($=this.wardley)==null?void 0:$.gridColor)||this.gridColor,componentFill:((A=this.wardley)==null?void 0:A.componentFill)||this.background,componentStroke:((D=this.wardley)==null?void 0:D.componentStroke)||this.lineColor,componentLabelColor:((O=this.wardley)==null?void 0:O.componentLabelColor)||this.primaryTextColor,linkStroke:((N=this.wardley)==null?void 0:N.linkStroke)||this.lineColor,evolutionStroke:((M=this.wardley)==null?void 0:M.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((B=this.wardley)==null?void 0:B.annotationStroke)||this.lineColor,annotationTextColor:((z=this.wardley)==null?void 0:z.annotationTextColor)||this.primaryTextColor,annotationFill:((G=this.wardley)==null?void 0:G.annotationFill)||this.background},this.xyChart={backgroundColor:((F=this.xyChart)==null?void 0:F.backgroundColor)||this.background,titleColor:((V=this.xyChart)==null?void 0:V.titleColor)||this.primaryTextColor,dataLabelColor:((W=this.xyChart)==null?void 0:W.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((U=this.xyChart)==null?void 0:U.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((j=this.xyChart)==null?void 0:j.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((H=this.xyChart)==null?void 0:H.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((ne=this.xyChart)==null?void 0:ne.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((Z=this.xyChart)==null?void 0:Z.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((J=this.xyChart)==null?void 0:J.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((re=this.xyChart)==null?void 0:re.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Q=this.xyChart)==null?void 0:Q.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((fe=this.xyChart)==null?void 0:fe.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||de(this.primaryColor,{h:-30}),this.git4=this.git4||de(this.primaryColor,{h:-60}),this.git5=this.git5||de(this.primaryColor,{h:-90}),this.git6=this.git6||de(this.primaryColor,{h:60}),this.git7=this.git7||de(this.primaryColor,{h:120}),this.darkMode?(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ye(Ge(this.git0),25),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ge(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ge(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||rl}calculate(e){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(Up,"Theme"),Up),fc=x(t=>{const e=new dLe;return e.calculate(t),e},"getThemeVariables"),qp,fLe=(qp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=He("#cde498",10),this.primaryBorderColor=nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.primaryColor),this.lineColor=Ge(this.background),this.textColor=Ge(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var e,r,n,i,a,s,o,l,u,h,d,f,p,g,m,y,v,T,b,C,w,S,E,_,R,I,L,P,$,A,D,O,N,M,B,z,G,F,V,W,U,j,H,ne,Z,J,re,Q,fe;this.actorBorder=Ye(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ye(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ye(this.tertiaryColor,40);for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScale"+te]=Ye(this["cScale"+te],10),this["cScalePeer"+te]=this["cScalePeer"+te]||Ye(this["cScale"+te],25);for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScaleInv"+te]=this["cScaleInv"+te]||de(this["cScale"+te],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScaleLabel"+te]=this["cScaleLabel"+te]||this.scaleLabelColor;for(let te=0;te<5;te++)this["surface"+te]=this["surface"+te]||de(this.mainBkg,{h:30,s:-30,l:-(5+te*5)}),this["surfacePeer"+te]=this["surfacePeer"+te]||de(this.mainBkg,{h:30,s:-30,l:-(8+te*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||He(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||He(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=de(this.primaryColor,{h:64}),this.fillType3=de(this.secondaryColor,{h:64}),this.fillType4=de(this.primaryColor,{h:-64}),this.fillType5=de(this.secondaryColor,{h:-64}),this.fillType6=de(this.primaryColor,{h:128}),this.fillType7=de(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||de(this.primaryColor,{l:-30}),this.pie5=this.pie5||de(this.secondaryColor,{l:-30}),this.pie6=this.pie6||de(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||de(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||de(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||de(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||de(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||de(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||de(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??de(this.primaryColor,{l:-30}),this.venn2=this.venn2??de(this.secondaryColor,{l:-30}),this.venn3=this.venn3??de(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??de(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??de(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??de(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??de(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??de(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((e=this.cynefin)==null?void 0:e.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((n=this.cynefin)==null?void 0:n.boundaryColor)||this.lineColor,boundaryWidth:((i=this.cynefin)==null?void 0:i.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B4513",cliffWidth:((s=this.cynefin)==null?void 0:s.cliffWidth)||4,arrowColor:((o=this.cynefin)==null?void 0:o.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((u=this.cynefin)==null?void 0:u.complexBg)||"#C8E6C9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#DCEDC8",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#FFE0B2",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF9C4",confusionBg:((p=this.cynefin)==null?void 0:p.confusionBg)||"#D7CCC8",textColor:((g=this.cynefin)==null?void 0:g.textColor)||this.textColor,labelColor:((m=this.cynefin)==null?void 0:m.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||de(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((y=this.radar)==null?void 0:y.axisColor)||this.lineColor,axisStrokeWidth:((v=this.radar)==null?void 0:v.axisStrokeWidth)||2,axisLabelFontSize:((T=this.radar)==null?void 0:T.axisLabelFontSize)||12,curveOpacity:((b=this.radar)==null?void 0:b.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((R=this.radar)==null?void 0:R.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((I=this.wardley)==null?void 0:I.backgroundColor)||this.background,axisColor:((L=this.wardley)==null?void 0:L.axisColor)||this.lineColor,axisTextColor:((P=this.wardley)==null?void 0:P.axisTextColor)||this.primaryTextColor,gridColor:(($=this.wardley)==null?void 0:$.gridColor)||this.gridColor,componentFill:((A=this.wardley)==null?void 0:A.componentFill)||this.background,componentStroke:((D=this.wardley)==null?void 0:D.componentStroke)||this.lineColor,componentLabelColor:((O=this.wardley)==null?void 0:O.componentLabelColor)||this.primaryTextColor,linkStroke:((N=this.wardley)==null?void 0:N.linkStroke)||this.lineColor,evolutionStroke:((M=this.wardley)==null?void 0:M.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((B=this.wardley)==null?void 0:B.annotationStroke)||this.lineColor,annotationTextColor:((z=this.wardley)==null?void 0:z.annotationTextColor)||this.primaryTextColor,annotationFill:((G=this.wardley)==null?void 0:G.annotationFill)||this.background},this.xyChart={backgroundColor:((F=this.xyChart)==null?void 0:F.backgroundColor)||this.background,titleColor:((V=this.xyChart)==null?void 0:V.titleColor)||this.primaryTextColor,dataLabelColor:((W=this.xyChart)==null?void 0:W.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((U=this.xyChart)==null?void 0:U.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((j=this.xyChart)==null?void 0:j.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((H=this.xyChart)==null?void 0:H.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((ne=this.xyChart)==null?void 0:ne.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((Z=this.xyChart)==null?void 0:Z.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((J=this.xyChart)==null?void 0:J.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((re=this.xyChart)==null?void 0:re.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Q=this.xyChart)==null?void 0:Q.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((fe=this.xyChart)==null?void 0:fe.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||de(this.primaryColor,{h:-30}),this.git4=this.git4||de(this.primaryColor,{h:-60}),this.git5=this.git5||de(this.primaryColor,{h:-90}),this.git6=this.git6||de(this.primaryColor,{h:60}),this.git7=this.git7||de(this.primaryColor,{h:120}),this.darkMode?(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ge(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ge(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||rl}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(qp,"Theme"),qp),pLe=x(t=>{const e=new fLe;return e.calculate(t),e},"getThemeVariables"),Hp,gLe=(Hp=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=He(this.contrast,55),this.background="#ffffff",this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.lineColor=Ge(this.background),this.textColor=Ge(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||He(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var e,r,n,i,a,s,o,l,u,h,d,f,p,g,m,y,v,T,b,C,w,S,E,_,R,I,L,P,$,A,D,O,N,M,B,z,G,F,V,W,U,j,H,ne,Z,J,re,Q,fe;this.secondBkg=He(this.contrast,55),this.border2=this.contrast,this.actorBorder=He(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScaleInv"+te]=this["cScaleInv"+te]||Ge(this["cScale"+te]);for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this.darkMode?this["cScalePeer"+te]=this["cScalePeer"+te]||He(this["cScale"+te],10):this["cScalePeer"+te]=this["cScalePeer"+te]||Ye(this["cScale"+te],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["cScaleLabel"+te]=this["cScaleLabel"+te]||this.scaleLabelColor;for(let te=0;te<5;te++)this["surface"+te]=this["surface"+te]||de(this.mainBkg,{l:-(5+te*5)}),this["surfacePeer"+te]=this["surfacePeer"+te]||de(this.mainBkg,{l:-(8+te*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=He(this.contrast,30),this.sectionBkgColor2=He(this.contrast,30),this.taskBorderColor=Ye(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=He(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Ye(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=de(this.primaryColor,{h:64}),this.fillType3=de(this.secondaryColor,{h:64}),this.fillType4=de(this.primaryColor,{h:-64}),this.fillType5=de(this.secondaryColor,{h:-64}),this.fillType6=de(this.primaryColor,{h:128}),this.fillType7=de(this.secondaryColor,{h:128});for(let te=0;te<this.THEME_COLOR_LIMIT;te++)this["pie"+te]=this["cScale"+te];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let te=0;te<8;te++)this["venn"+(te+1)]=this["venn"+(te+1)]??this["cScale"+te];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((e=this.cynefin)==null?void 0:e.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((n=this.cynefin)==null?void 0:n.boundaryColor)||this.lineColor,boundaryWidth:((i=this.cynefin)==null?void 0:i.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B0000",cliffWidth:((s=this.cynefin)==null?void 0:s.cliffWidth)||4,arrowColor:((o=this.cynefin)==null?void 0:o.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((u=this.cynefin)==null?void 0:u.complexBg)||"#E8F5E9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#E3F2FD",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#FBE9E7",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF8E1",confusionBg:((p=this.cynefin)==null?void 0:p.confusionBg)||"#F3E5F5",textColor:((g=this.cynefin)==null?void 0:g.textColor)||this.textColor,labelColor:((m=this.cynefin)==null?void 0:m.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||de(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((y=this.xyChart)==null?void 0:y.backgroundColor)||this.background,titleColor:((v=this.xyChart)==null?void 0:v.titleColor)||this.primaryTextColor,dataLabelColor:((T=this.xyChart)==null?void 0:T.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((b=this.xyChart)==null?void 0:b.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((C=this.xyChart)==null?void 0:C.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((w=this.xyChart)==null?void 0:w.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((S=this.xyChart)==null?void 0:S.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((E=this.xyChart)==null?void 0:E.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((R=this.xyChart)==null?void 0:R.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((I=this.xyChart)==null?void 0:I.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((L=this.xyChart)==null?void 0:L.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((P=this.radar)==null?void 0:P.axisColor)||this.lineColor,axisStrokeWidth:(($=this.radar)==null?void 0:$.axisStrokeWidth)||2,axisLabelFontSize:((A=this.radar)==null?void 0:A.axisLabelFontSize)||12,curveOpacity:((D=this.radar)==null?void 0:D.curveOpacity)||.5,curveStrokeWidth:((O=this.radar)==null?void 0:O.curveStrokeWidth)||2,graticuleColor:((N=this.radar)==null?void 0:N.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((M=this.radar)==null?void 0:M.graticuleStrokeWidth)||1,graticuleOpacity:((B=this.radar)==null?void 0:B.graticuleOpacity)||.3,legendBoxSize:((z=this.radar)==null?void 0:z.legendBoxSize)||12,legendFontSize:((G=this.radar)==null?void 0:G.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((F=this.wardley)==null?void 0:F.backgroundColor)||this.background,axisColor:((V=this.wardley)==null?void 0:V.axisColor)||this.lineColor,axisTextColor:((W=this.wardley)==null?void 0:W.axisTextColor)||this.primaryTextColor,gridColor:((U=this.wardley)==null?void 0:U.gridColor)||this.gridColor,componentFill:((j=this.wardley)==null?void 0:j.componentFill)||this.background,componentStroke:((H=this.wardley)==null?void 0:H.componentStroke)||this.lineColor,componentLabelColor:((ne=this.wardley)==null?void 0:ne.componentLabelColor)||this.primaryTextColor,linkStroke:((Z=this.wardley)==null?void 0:Z.linkStroke)||this.lineColor,evolutionStroke:((J=this.wardley)==null?void 0:J.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((re=this.wardley)==null?void 0:re.annotationStroke)||this.lineColor,annotationTextColor:((Q=this.wardley)==null?void 0:Q.annotationTextColor)||this.primaryTextColor,annotationFill:((fe=this.wardley)==null?void 0:fe.annotationFill)||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ye(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||de(this.primaryColor,{h:-30}),this.git4=this.pie5||de(this.primaryColor,{h:-60}),this.git5=this.pie6||de(this.primaryColor,{h:-90}),this.git6=this.pie7||de(this.primaryColor,{h:60}),this.git7=this.pie8||de(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||rl}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(Hp,"Theme"),Hp),mLe=x(t=>{const e=new gLe;return e.calculate(t),e},"getThemeVariables"),Yp,yLe=(Yp=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=nr(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var a,s,o,l,u,h,d,f,p,g,m;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||nr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||nr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const e="#ECECFE",r="#E9E9F1",n=de(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||He(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||e,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||de(e,{h:30}),this.cScale4=this.cScale4||de(e,{h:60}),this.cScale5=this.cScale5||de(e,{h:90}),this.cScale6=this.cScale6||de(e,{h:120}),this.cScale7=this.cScale7||de(e,{h:150}),this.cScale8=this.cScale8||de(e,{h:210,l:150}),this.cScale9=this.cScale9||de(e,{h:270}),this.cScale10=this.cScale10||de(e,{h:300}),this.cScale11=this.cScale11||de(e,{h:330}),this.darkMode)for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=Ye(this["cScale"+y],75);else for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=Ye(this["cScale"+y],25);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||Ge(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||He(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||Ye(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||de(this.mainBkg,{h:180,s:-15,l:i*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||de(this.mainBkg,{h:180,s:-15,l:i*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||de(e,{h:64}),this.fillType3=this.fillType3||de(r,{h:64}),this.fillType4=this.fillType4||de(e,{h:-64}),this.fillType5=this.fillType5||de(r,{h:-64}),this.fillType6=this.fillType6||de(e,{h:128}),this.fillType7=this.fillType7||de(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||de(e,{l:-10}),this.pie5=this.pie5||de(r,{l:-10}),this.pie6=this.pie6||de(n,{l:-10}),this.pie7=this.pie7||de(e,{h:60,l:-10}),this.pie8=this.pie8||de(e,{h:-60,l:-10}),this.pie9=this.pie9||de(e,{h:120,l:0}),this.pie10=this.pie10||de(e,{h:60,l:-20}),this.pie11=this.pie11||de(e,{h:-60,l:-20}),this.pie12=this.pie12||de(e,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||de(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((h=this.xyChart)==null?void 0:h.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||de(e,{h:-30}),this.git4=this.git4||de(e,{h:-60}),this.git5=this.git5||de(e,{h:-90}),this.git6=this.git6||de(e,{h:60}),this.git7=this.git7||de(e,{h:120}),this.darkMode?(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||rl}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(Yp,"Theme"),Yp),vLe=x(t=>{const e=new yLe;return e.calculate(t),e},"getThemeVariables"),Xp,xLe=(Xp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=He(this.primaryColor,16),this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=Ge(this.background),this.secondaryBorderColor=nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=He(Ge("#323D47"),10),this.border1="#ccc",this.border2=Js(255,255,255,.25),this.arrowheadColor=Ge(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,n,i,a,s,o,l,u,h,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||nr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||nr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||He(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=Ye(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=Ye(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||Ge(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||He(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||Ye(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||de(this.mainBkg,{h:180,s:-15,l:e*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||de(this.mainBkg,{h:180,s:-15,l:e*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||de(this.primaryColor,{h:64}),this.fillType3=this.fillType3||de(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||de(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||de(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||de(this.primaryColor,{h:128}),this.fillType7=this.fillType7||de(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||de(this.primaryColor,{l:-10}),this.pie5=this.pie5||de(this.secondaryColor,{l:-10}),this.pie6=this.pie6||de(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||de(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||de(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||de(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||de(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||de(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||de(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||de(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||rl}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(Xp,"Theme"),Xp),bLe=x(t=>{const e=new xLe;return e.calculate(t),e},"getThemeVariables"),jp,TLe=(jp=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=nr("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var a,s,o,l,u,h,d,f,p,g,m;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||nr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||nr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const e="#ECECFE",r="#E9E9F1",n=de(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||He(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=this.mainBkg;if(this.darkMode)for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=Ye(this["cScale"+y],75);else for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=Ye(this["cScale"+y],25);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||Ge(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||He(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||Ye(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||de(this.mainBkg,{h:180,s:-15,l:i*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||de(this.mainBkg,{h:180,s:-15,l:i*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||de(e,{h:64}),this.fillType3=this.fillType3||de(r,{h:64}),this.fillType4=this.fillType4||de(e,{h:-64}),this.fillType5=this.fillType5||de(r,{h:-64}),this.fillType6=this.fillType6||de(e,{h:128}),this.fillType7=this.fillType7||de(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||de(e,{l:-10}),this.pie5=this.pie5||de(r,{l:-10}),this.pie6=this.pie6||de(n,{l:-10}),this.pie7=this.pie7||de(e,{h:60,l:-10}),this.pie8=this.pie8||de(e,{h:-60,l:-10}),this.pie9=this.pie9||de(e,{h:120,l:0}),this.pie10=this.pie10||de(e,{h:60,l:-20}),this.pie11=this.pie11||de(e,{h:-60,l:-20}),this.pie12=this.pie12||de(e,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||de(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((h=this.xyChart)==null?void 0:h.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||de(e,{h:-30}),this.git4=this.git4||de(e,{h:-60}),this.git5=this.git5||de(e,{h:-90}),this.git6=this.git6||de(e,{h:60}),this.git7=this.git7||de(e,{h:120}),this.darkMode?(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||rl}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(jp,"Theme"),jp),CLe=x(t=>{const e=new TLe;return e.calculate(t),e},"getThemeVariables"),Kp,wLe=(Kp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=He(this.primaryColor,16),this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=Ge(this.background),this.secondaryBorderColor=nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=He(Ge("#323D47"),10),this.border1="#ccc",this.border2=Js(255,255,255,.25),this.arrowheadColor=Ge(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,n,i,a,s,o,l,u,h,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||nr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||nr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||He(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||de(this.primaryColor,{h:30}),this.cScale4=this.cScale4||de(this.primaryColor,{h:60}),this.cScale5=this.cScale5||de(this.primaryColor,{h:90}),this.cScale6=this.cScale6||de(this.primaryColor,{h:120}),this.cScale7=this.cScale7||de(this.primaryColor,{h:150}),this.cScale8=this.cScale8||de(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||de(this.primaryColor,{h:270}),this.cScale10=this.cScale10||de(this.primaryColor,{h:300}),this.cScale11=this.cScale11||de(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=Ye(this["cScale"+p],75);else for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=Ye(this["cScale"+p],25);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||Ge(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||He(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||Ye(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=this["cScaleLabel"+p]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||de(this.mainBkg,{h:180,s:-15,l:e*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||de(this.mainBkg,{h:180,s:-15,l:e*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||de(this.primaryColor,{h:64}),this.fillType3=this.fillType3||de(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||de(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||de(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||de(this.primaryColor,{h:128}),this.fillType7=this.fillType7||de(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||de(this.primaryColor,{l:-10}),this.pie5=this.pie5||de(this.secondaryColor,{l:-10}),this.pie6=this.pie6||de(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||de(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||de(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||de(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||de(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||de(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||de(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||de(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||de(this.primaryColor,{h:-30}),this.git4=this.git4||de(this.primaryColor,{h:-60}),this.git5=this.git5||de(this.primaryColor,{h:-90}),this.git6=this.git6||de(this.primaryColor,{h:60}),this.git7=this.git7||de(this.primaryColor,{h:120}),this.darkMode?(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||rl}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(Kp,"Theme"),Kp),ELe=x(t=>{const e=new wLe;return e.calculate(t),e},"getThemeVariables"),Zp,SLe=(Zp=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=nr(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var a,s,o,l,u,h,d,f,p,g,m;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||nr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||nr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const e="#ECECFE",r="#E9E9F1",n=de(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||He(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||Ge(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||He(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||Ye(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||de(this.mainBkg,{h:180,s:-15,l:i*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||de(this.mainBkg,{h:180,s:-15,l:i*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||de(e,{h:64}),this.fillType3=this.fillType3||de(r,{h:64}),this.fillType4=this.fillType4||de(e,{h:-64}),this.fillType5=this.fillType5||de(r,{h:-64}),this.fillType6=this.fillType6||de(e,{h:128}),this.fillType7=this.fillType7||de(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||de(e,{l:-10}),this.pie5=this.pie5||de(r,{l:-10}),this.pie6=this.pie6||de(n,{l:-10}),this.pie7=this.pie7||de(e,{h:60,l:-10}),this.pie8=this.pie8||de(e,{h:-60,l:-10}),this.pie9=this.pie9||de(e,{h:120,l:0}),this.pie10=this.pie10||de(e,{h:60,l:-20}),this.pie11=this.pie11||de(e,{h:-60,l:-20}),this.pie12=this.pie12||de(e,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||e,this.quadrant2Fill=this.quadrant2Fill||de(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((h=this.xyChart)==null?void 0:h.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((p=this.xyChart)==null?void 0:p.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||de(e,{h:-30}),this.git4=this.git4||de(e,{h:-60}),this.git5=this.git5||de(e,{h:-90}),this.git6=this.git6||de(e,{h:60}),this.git7=this.git7||de(e,{h:120}),this.darkMode?(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||rl}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(Zp,"Theme"),Zp),kLe=x(t=>{const e=new SLe;return e.calculate(t),e},"getThemeVariables"),Qp,_Le=(Qp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=He(this.primaryColor,16),this.tertiaryColor=de(this.primaryColor,{h:-160}),this.primaryBorderColor=Ge(this.background),this.secondaryBorderColor=nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=nr(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ge(this.primaryColor),this.secondaryTextColor=Ge(this.secondaryColor),this.tertiaryTextColor=Ge(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=He(Ge("#323D47"),10),this.border1="#ccc",this.border2=Js(255,255,255,.25),this.arrowheadColor=Ge(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,n,i,a,s,o,l,u,h,d,f;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||de(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||de(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||nr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||nr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||nr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||nr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Ge(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ge(this.tertiaryColor),this.lineColor=this.lineColor||Ge(this.background),this.arrowheadColor=this.arrowheadColor||Ge(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ge(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||He(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleInv"+p]=this["cScaleInv"+p]||Ge(this["cScale"+p]);for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this.darkMode?this["cScalePeer"+p]=this["cScalePeer"+p]||He(this["cScale"+p],10):this["cScalePeer"+p]=this["cScalePeer"+p]||Ye(this["cScale"+p],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScaleLabel"+p]=Ye(this["cScale"+p],75);const e=this.darkMode?-4:-1;for(let p=0;p<5;p++)this["surface"+p]=this["surface"+p]||de(this.mainBkg,{h:180,s:-15,l:e*(5+p*3)}),this["surfacePeer"+p]=this["surfacePeer"+p]||de(this.mainBkg,{h:180,s:-15,l:e*(8+p*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||de(this.primaryColor,{h:64}),this.fillType3=this.fillType3||de(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||de(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||de(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||de(this.primaryColor,{h:128}),this.fillType7=this.fillType7||de(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||de(this.primaryColor,{l:-10}),this.pie5=this.pie5||de(this.secondaryColor,{l:-10}),this.pie6=this.pie6||de(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||de(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||de(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||de(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||de(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||de(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||de(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||de(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||de(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||de(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||de(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||de(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||de(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||La(this.quadrant1Fill)?He(this.quadrant1Fill):Ye(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||de(this.primaryColor,{h:-30}),this.git4=this.git4||de(this.primaryColor,{h:-60}),this.git5=this.git5||de(this.primaryColor,{h:-90}),this.git6=this.git6||de(this.primaryColor,{h:60}),this.git7=this.git7||de(this.primaryColor,{h:120}),this.darkMode?(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ge(this.git0),this.gitInv1=this.gitInv1||Ge(this.git1),this.gitInv2=this.gitInv2||Ge(this.git2),this.gitInv3=this.gitInv3||Ge(this.git3),this.gitInv4=this.gitInv4||Ge(this.git4),this.gitInv5=this.gitInv5||Ge(this.git5),this.gitInv6=this.gitInv6||Ge(this.git6),this.gitInv7=this.gitInv7||Ge(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||tl,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||rl}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(Qp,"Theme"),Qp),ALe=x(t=>{const e=new _Le;return e.calculate(t),e},"getThemeVariables"),Ul={base:{getThemeVariables:cLe},dark:{getThemeVariables:hLe},default:{getThemeVariables:fc},forest:{getThemeVariables:pLe},neutral:{getThemeVariables:mLe},neo:{getThemeVariables:vLe},"neo-dark":{getThemeVariables:bLe},redux:{getThemeVariables:CLe},"redux-dark":{getThemeVariables:ELe},"redux-color":{getThemeVariables:kLe},"redux-dark-color":{getThemeVariables:ALe}},_i={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},$Y={..._i,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Ul.default.getThemeVariables(),sequence:{..._i.sequence,messageFont:x(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:x(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:x(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{..._i.gantt,tickInterval:void 0,useWidth:void 0},c4:{..._i.c4,useWidth:void 0,personFont:x(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{..._i.flowchart,inheritDir:!1},external_personFont:x(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:x(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:x(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:x(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:x(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:x(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:x(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:x(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:x(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:x(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:x(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:x(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:x(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:x(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:x(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:x(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:x(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:x(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:x(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:x(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:x(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{..._i.pie,useWidth:984},xyChart:{..._i.xyChart,useWidth:void 0},requirement:{..._i.requirement,useWidth:void 0},packet:{..._i.packet},eventmodeling:{..._i.eventmodeling},treeView:{..._i.treeView,useWidth:void 0},radar:{..._i.radar},railroad:{..._i.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{..._i.ishikawa},sankey:{..._i.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{..._i.venn},cynefin:{..._i.cynefin}},OY=x((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...OY(t[n],"")]:[...r,e+n],[]),"keyify"),RLe=new Set(OY($Y,"")),pr=$Y,LLe={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},ILe=x((t,e)=>{for(const r of Object.keys(t)){const n=t[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||typeof n!="string"||!e.test(n))&&(se.debug("sanitize deleting dictionary entry:",r,n),delete t[r])}},"sanitizeDictionaryConfig"),Ew=x(t=>{if(se.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>Ew(e));return}for(const e of Object.keys(t)){if(se.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!RLe.has(e)||t[e]==null){se.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){const n=LLe[e];n?ILe(t[e],n):(se.debug("sanitizing object",e),Ew(t[e]));continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)e.includes(n)&&(se.debug("sanitizing css option",e),t[e]=PY(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}se.debug("After sanitization",t)}},"sanitizeDirective"),PY=x(t=>{let e=0,r=0;for(const n of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?e++:n==="}"&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),$0=Object.freeze(pr),nl=x(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Ga=Hn({},$0),Sw,od=[],nx=Hn({},$0),Yb=x((t,e)=>{let r=Hn({},t),n={};for(const i of e)zY(i),n=Hn(n,i);if(r=Hn(r,n),n.theme&&n.theme in Ul){const i=Hn({},Sw),a=Hn(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in Ul&&(r.themeVariables=Ul[r.theme].getThemeVariables(a))}return nx=r,PLe(nx),nx},"updateCurrentConfig"),DLe=x(t=>(Ga=Hn({},$0),Ga=Hn(Ga,t),t.theme&&Ul[t.theme]&&(Ga.themeVariables=Ul[t.theme].getThemeVariables(t.themeVariables)),Yb(Ga,od),Ga),"setSiteConfig"),NLe=x(t=>{Sw=Hn({},t)},"saveConfigFromInitialize"),MLe=x(t=>(Ga=Hn(Ga,t),Yb(Ga,od),Ga),"updateSiteConfig"),BY=x(()=>Hn({},Ga),"getSiteConfig"),FY=x(t=>(Yb(nx,[t]),Lt()),"setConfig"),Lt=x(()=>Hn({},nx),"getConfig"),zY=x(t=>{t&&(["secure",...Ga.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(se.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&zY(t[e])}))},"sanitize"),$Le=x(t=>{var e;Ew(t),t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),od.push(t),Yb(Ga,od)},"addDirective"),kw=x((t=Ga)=>{od=[],Yb(t,od)},"reset"),OLe={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},Q8={},GY=x(t=>{Q8[t]||(se.warn(OLe[t]),Q8[t]=!0)},"issueWarning"),PLe=x(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&GY("LAZY_LOAD_DEPRECATED")},"checkConfig"),VY=x(()=>{let t={};Sw&&(t=Hn(t,Sw));for(const e of od)t=Hn(t,e);return t},"getUserDefinedConfig"),Vr=x(t=>{var e,r;return((e=t.flowchart)==null?void 0:e.htmlLabels)!=null&&GY("FLOWCHART_HTML_LABELS_DEPRECATED"),nl(t.htmlLabels??((r=t.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),WY=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,ix=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,BLe=/\s*%%.*\n/gm,Jp,UY=(Jp=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},x(Jp,"UnknownDiagramError"),Jp),ld={},AM=x(function(t,e){t=t.replace(WY,"").replace(ix,"").replace(BLe,`
5
- `);for(const[r,{detector:n}]of Object.entries(ld))if(n(t,e))return r;throw new UY(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),a3=x((...t)=>{for(const{id:e,detector:r,loader:n}of t)qY(e,r,n)},"registerLazyLoadedDiagrams"),qY=x((t,e,r)=>{ld[t]&&se.warn(`Detector with key ${t} already exists. Overwriting.`),ld[t]={detector:e,loader:r},se.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),FLe=x(t=>ld[t].loader,"getDiagramLoader"),gv=/<br\s*\/?>/gi,zLe=x(t=>t?XY(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),GLe=(()=>{let t=!1;return()=>{t||(HY(),t=!0)}})();function HY(){const t="data-temp-href-target";Kl.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Kl.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}x(HY,"setupDompurifyHooks");var YY=x(t=>(GLe(),Kl.sanitize(t)),"removeScript"),J8=x((t,e)=>{if(Vr(e)){const r=e.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=YY(t):r!=="loose"&&(t=XY(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=qLe(t))}return t},"sanitizeMore"),mr=x((t,e)=>t&&(e.dompurifyConfig?t=Kl.sanitize(J8(t,e),e.dompurifyConfig).toString():t=Kl.sanitize(J8(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),VLe=x((t,e)=>typeof t=="string"?mr(t,e):t.flat().map(r=>mr(r,e)),"sanitizeTextOrArray"),WLe=x(t=>gv.test(t),"hasBreaks"),ULe=x(t=>t.split(gv),"splitBreaks"),qLe=x(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),XY=x(t=>t.replace(gv,"#br#"),"breakToPlaceholder"),ek=x(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),HLe=x(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),YLe=x(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),Dc=x(function(t){const e=t.split(/(,)/),r=[];for(let n=0;n<e.length;n++){let i=e[n];if(i===","&&n>0&&n+1<e.length){const a=e[n-1],s=e[n+1];XLe(a,s)&&(i=a+","+s,n++,r.pop())}r.push(jLe(i))}return r.join("")},"parseGenericTypes"),s3=x((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),XLe=x((t,e)=>{const r=s3(t,"~"),n=s3(e,"~");return r===1&&n===1},"shouldCombineSets"),jLe=x(t=>{const e=s3(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),e7=x(()=>window.MathMLElement!==void 0,"isMathMLSupported"),o3=/\$\$(.*?)\$\$/g,Gn=x(t=>{var e;return(((e=t.match(o3))==null?void 0:e.length)??0)>0},"hasKatex"),Xb=x(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await tk(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n==null||n.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),KLe=x(async(t,e)=>{if(!Gn(t))return t;if(!(e7()||e.legacyMathML||e.forceLegacyMathML))return t.replace(o3,"MathML is unsupported in this environment.");{const{default:r}=await Ot(async()=>{const{default:i}=await import("./ui-ZPt_BNBg.js").then(a=>a.b5);return{default:i}},__vite__mapDeps([0,1,2])),n=e.forceLegacyMathML||!e7()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(gv).map(i=>Gn(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(o3,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),tk=x(async(t,e)=>mr(await KLe(t,e),e),"renderKatexSanitized"),mt={getRows:zLe,sanitizeText:mr,sanitizeTextOrArray:VLe,hasBreaks:WLe,splitBreaks:ULe,lineBreakRegex:gv,removeScript:YY,getUrl:ek,evaluate:nl,getMax:HLe,getMin:YLe},ZLe=x(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),QLe=x(function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n},"calculateSvgSizeAttrs"),Nn=x(function(t,e,r,n){const i=QLe(e,r,n);ZLe(t,i)},"configureSvgSize"),mv=x(function(t,e,r,n){const i=e.node().getBBox(),a=i.width,s=i.height;se.info(`SVG bounds: ${a}x${s}`,i);let o=0,l=0;se.info(`Graph bounds: ${o}x${l}`,t),o=a+r*2,l=s+r*2,se.info(`Calculated bounds: ${o}x${l}`),Nn(e,l,o,n);const u=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;e.attr("viewBox",u)},"setupGraphViewbox"),rC={};function l3(t){return[...t.cssRules].map(e=>e.cssText).join(`
5
+ `);for(const[r,{detector:n}]of Object.entries(ld))if(n(t,e))return r;throw new UY(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),a3=x((...t)=>{for(const{id:e,detector:r,loader:n}of t)qY(e,r,n)},"registerLazyLoadedDiagrams"),qY=x((t,e,r)=>{ld[t]&&se.warn(`Detector with key ${t} already exists. Overwriting.`),ld[t]={detector:e,loader:r},se.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),FLe=x(t=>ld[t].loader,"getDiagramLoader"),gv=/<br\s*\/?>/gi,zLe=x(t=>t?XY(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),GLe=(()=>{let t=!1;return()=>{t||(HY(),t=!0)}})();function HY(){const t="data-temp-href-target";Kl.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Kl.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}x(HY,"setupDompurifyHooks");var YY=x(t=>(GLe(),Kl.sanitize(t)),"removeScript"),J8=x((t,e)=>{if(Vr(e)){const r=e.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=YY(t):r!=="loose"&&(t=XY(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=qLe(t))}return t},"sanitizeMore"),mr=x((t,e)=>t&&(e.dompurifyConfig?t=Kl.sanitize(J8(t,e),e.dompurifyConfig).toString():t=Kl.sanitize(J8(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),VLe=x((t,e)=>typeof t=="string"?mr(t,e):t.flat().map(r=>mr(r,e)),"sanitizeTextOrArray"),WLe=x(t=>gv.test(t),"hasBreaks"),ULe=x(t=>t.split(gv),"splitBreaks"),qLe=x(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),XY=x(t=>t.replace(gv,"#br#"),"breakToPlaceholder"),ek=x(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),HLe=x(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),YLe=x(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),Dc=x(function(t){const e=t.split(/(,)/),r=[];for(let n=0;n<e.length;n++){let i=e[n];if(i===","&&n>0&&n+1<e.length){const a=e[n-1],s=e[n+1];XLe(a,s)&&(i=a+","+s,n++,r.pop())}r.push(jLe(i))}return r.join("")},"parseGenericTypes"),s3=x((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),XLe=x((t,e)=>{const r=s3(t,"~"),n=s3(e,"~");return r===1&&n===1},"shouldCombineSets"),jLe=x(t=>{const e=s3(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),e7=x(()=>window.MathMLElement!==void 0,"isMathMLSupported"),o3=/\$\$(.*?)\$\$/g,Gn=x(t=>{var e;return(((e=t.match(o3))==null?void 0:e.length)??0)>0},"hasKatex"),Xb=x(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await tk(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n==null||n.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),KLe=x(async(t,e)=>{if(!Gn(t))return t;if(!(e7()||e.legacyMathML||e.forceLegacyMathML))return t.replace(o3,"MathML is unsupported in this environment.");{const{default:r}=await Ot(async()=>{const{default:i}=await import("./ui-CEFkTVnG.js").then(a=>a.b8);return{default:i}},__vite__mapDeps([0,1,2])),n=e.forceLegacyMathML||!e7()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(gv).map(i=>Gn(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(o3,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),tk=x(async(t,e)=>mr(await KLe(t,e),e),"renderKatexSanitized"),mt={getRows:zLe,sanitizeText:mr,sanitizeTextOrArray:VLe,hasBreaks:WLe,splitBreaks:ULe,lineBreakRegex:gv,removeScript:YY,getUrl:ek,evaluate:nl,getMax:HLe,getMin:YLe},ZLe=x(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),QLe=x(function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n},"calculateSvgSizeAttrs"),Nn=x(function(t,e,r,n){const i=QLe(e,r,n);ZLe(t,i)},"configureSvgSize"),mv=x(function(t,e,r,n){const i=e.node().getBBox(),a=i.width,s=i.height;se.info(`SVG bounds: ${a}x${s}`,i);let o=0,l=0;se.info(`Graph bounds: ${o}x${l}`,t),o=a+r*2,l=s+r*2,se.info(`Calculated bounds: ${o}x${l}`),Nn(e,l,o,n);const u=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;e.attr("viewBox",u)},"setupGraphViewbox"),rC={};function l3(t){return[...t.cssRules].map(e=>e.cssText).join(`
6
6
  `)}x(l3,"cssStyleSheetToString");var JLe=x((t,e,r,n)=>{let i="";return t in rC&&rC[t]?i=rC[t]({...r,svgId:n}):se.warn(`No theme found for ${t}`),`& {
7
7
  font-family: ${r.fontFamily};
8
8
  font-size: ${r.fontSize};