1191 lines
1.2 MiB
Plaintext
1191 lines
1.2 MiB
Plaintext
function qc(){}const pw=a=>a;function L7(a,h){for(const s in h)a[s]=h[s];return a}function gw(a){return a()}function yw(){return Object.create(null)}function gd(a){a.forEach(gw)}function _6(a){return typeof a=="function"}function I7(a,h){return a!=a?h==h:a!==h||a&&typeof a=="object"||typeof a=="function"}function R7(a){return Object.keys(a).length===0}function b6(a,...h){if(a==null)return qc;const s=a.subscribe(...h);return s.unsubscribe?()=>s.unsubscribe():s}function FE(a){let h;return b6(a,s=>h=s)(),h}function PE(a,h,s){a.$$.on_destroy.push(b6(h,s))}function YE(a,h,s,d){if(a){const l=mw(a,h,s,d);return a[0](l)}}function mw(a,h,s,d){return a[1]&&d?L7(s.ctx.slice(),a[1](d(h))):s.ctx}function jE(a,h,s,d){if(a[2]&&d){const l=a[2](d(s));if(h.dirty===void 0)return l;if(typeof l=="object"){const _=[],y=Math.max(h.dirty.length,l.length);for(let w=0;w<y;w+=1)_[w]=h.dirty[w]|l[w];return _}return h.dirty|l}return h.dirty}function UE(a,h,s,d,l,_){if(l){const y=mw(h,s,d,_);a.p(y,l)}}function zE(a){if(a.ctx.length>32){const h=[],s=a.ctx.length/32;for(let d=0;d<s;d++)h[d]=-1;return h}return-1}function WE(a){return a==null?"":a}function HE(a,h,s){return a.set(s),h}const vw=typeof window!="undefined";let F7=vw?()=>window.performance.now():()=>Date.now(),x6=vw?a=>requestAnimationFrame(a):qc;const tp=new Set;function _w(a){tp.forEach(h=>{h.c(a)||(tp.delete(h),h.f())}),tp.size!==0&&x6(_w)}function P7(a){let h;return tp.size===0&&x6(_w),{promise:new Promise(s=>{tp.add(h={c:a,f:s})}),abort(){tp.delete(h)}}}let Ob=!1;function Y7(){Ob=!0}function j7(){Ob=!1}function U7(a,h,s,d){for(;a<h;){const l=a+(h-a>>1);s(l)<=d?a=l+1:h=l}return a}function z7(a){if(a.hydrate_init)return;a.hydrate_init=!0;let h=a.childNodes;if(a.nodeName==="HEAD"){const T=[];for(let A=0;A<h.length;A++){const L=h[A];L.claim_order!==void 0&&T.push(L)}h=T}const s=new Int32Array(h.length+1),d=new Int32Array(h.length);s[0]=-1;let l=0;for(let T=0;T<h.length;T++){const A=h[T].claim_order,L=(l>0&&h[s[l]].claim_order<=A?l+1:U7(1,l,P=>h[s[P]].claim_order,A))-1;d[T]=s[L]+1;const N=L+1;s[N]=T,l=Math.max(N,l)}const _=[],y=[];let w=h.length-1;for(let T=s[l]+1;T!=0;T=d[T-1]){for(_.push(h[T-1]);w>=T;w--)y.push(h[w]);w--}for(;w>=0;w--)y.push(h[w]);_.reverse(),y.sort((T,A)=>T.claim_order-A.claim_order);for(let T=0,A=0;T<y.length;T++){for(;A<_.length&&y[T].claim_order>=_[A].claim_order;)A++;const L=A<_.length?_[A]:null;a.insertBefore(y[T],L)}}function W7(a,h){a.appendChild(h)}function bw(a){if(!a)return document;const h=a.getRootNode?a.getRootNode():a.ownerDocument;return h&&h.host?h:a.ownerDocument}function H7(a){const h=xw("style");return $7(bw(a),h),h}function $7(a,h){W7(a.head||a,h)}function q7(a,h){if(Ob){for(z7(a),(a.actual_end_child===void 0||a.actual_end_child!==null&&a.actual_end_child.parentElement!==a)&&(a.actual_end_child=a.firstChild);a.actual_end_child!==null&&a.actual_end_child.claim_order===void 0;)a.actual_end_child=a.actual_end_child.nextSibling;h!==a.actual_end_child?(h.claim_order!==void 0||h.parentNode!==a)&&a.insertBefore(h,a.actual_end_child):a.actual_end_child=h.nextSibling}else(h.parentNode!==a||h.nextSibling!==null)&&a.appendChild(h)}function $E(a,h,s){Ob&&!s?q7(a,h):(h.parentNode!==a||h.nextSibling!=s)&&a.insertBefore(h,s||null)}function V7(a){a.parentNode.removeChild(a)}function qE(a,h){for(let s=0;s<a.length;s+=1)a[s]&&a[s].d(h)}function xw(a){return document.createElement(a)}function G7(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function w6(a){return document.createTextNode(a)}function VE(){return w6(" ")}function GE(){return w6("")}function XE(a,h,s,d){return a.addEventListener(h,s,d),()=>a.removeEventListener(h,s,d)}function ZE(a){return function(h){return h.stopPropagation(),a.call(this,h)}}function QE(a,h,s){s==null?a.removeAttribute(h):a.getAttribute(h)!==s&&a.setAttribute(h,s)}function JE(a){return a===""?null:+a}function X7(a){return Array.from(a.childNodes)}function Z7(a){a.claim_info===void 0&&(a.claim_info={last_index:0,total_claimed:0})}function ww(a,h,s,d,l=!1){Z7(a);const _=(()=>{for(let y=a.claim_info.last_index;y<a.length;y++){const w=a[y];if(h(w)){const T=s(w);return T===void 0?a.splice(y,1):a[y]=T,l||(a.claim_info.last_index=y),w}}for(let y=a.claim_info.last_index-1;y>=0;y--){const w=a[y];if(h(w)){const T=s(w);return T===void 0?a.splice(y,1):a[y]=T,l?T===void 0&&a.claim_info.last_index--:a.claim_info.last_index=y,w}}return d()})();return _.claim_order=a.claim_info.total_claimed,a.claim_info.total_claimed+=1,_}function kw(a,h,s,d){return ww(a,l=>l.nodeName===h,l=>{const _=[];for(let y=0;y<l.attributes.length;y++){const w=l.attributes[y];s[w.name]||_.push(w.name)}_.forEach(y=>l.removeAttribute(y))},()=>d(h))}function KE(a,h,s){return kw(a,h,s,xw)}function tS(a,h,s){return kw(a,h,s,G7)}function Q7(a,h){return ww(a,s=>s.nodeType===3,s=>{const d=""+h;if(s.data.startsWith(d)){if(s.data.length!==d.length)return s.splitText(d.length)}else s.data=d},()=>w6(h),!0)}function eS(a){return Q7(a," ")}function nS(a,h){h=""+h,a.wholeText!==h&&(a.data=h)}function rS(a,h){a.value=h==null?"":h}function iS(a,h,s,d){a.style.setProperty(h,s,d?"important":"")}function aS(a,h,s){a.classList[s?"add":"remove"](h)}function Tw(a,h,s=!1){const d=document.createEvent("CustomEvent");return d.initCustomEvent(a,s,!1,h),d}const k6=new Set;let Bb=0;function J7(a){let h=5381,s=a.length;for(;s--;)h=(h<<5)-h^a.charCodeAt(s);return h>>>0}function Ew(a,h,s,d,l,_,y,w=0){const T=16.666/d;let A=`{
|
|
`;for(let X=0;X<=1;X+=T){const J=h+(s-h)*_(X);A+=X*100+`%{${y(J,1-J)}}
|
|
`}const L=A+`100% {${y(s,1-s)}}
|
|
}`,N=`__svelte_${J7(L)}_${w}`,P=bw(a);k6.add(P);const W=P.__svelte_stylesheet||(P.__svelte_stylesheet=H7(a).sheet),H=P.__svelte_rules||(P.__svelte_rules={});H[N]||(H[N]=!0,W.insertRule(`@keyframes ${N} ${L}`,W.cssRules.length));const V=a.style.animation||"";return a.style.animation=`${V?`${V}, `:""}${N} ${d}ms linear ${l}ms 1 both`,Bb+=1,N}function K7(a,h){const s=(a.style.animation||"").split(", "),d=s.filter(h?_=>_.indexOf(h)<0:_=>_.indexOf("__svelte")===-1),l=s.length-d.length;l&&(a.style.animation=d.join(", "),Bb-=l,Bb||t8())}function t8(){x6(()=>{Bb||(k6.forEach(a=>{const h=a.__svelte_stylesheet;let s=h.cssRules.length;for(;s--;)h.deleteRule(s);a.__svelte_rules={}}),k6.clear())})}let Lb;function Ib(a){Lb=a}function Rb(){if(!Lb)throw new Error("Function called outside component initialization");return Lb}function oS(a){Rb().$$.on_mount.push(a)}function sS(a){Rb().$$.after_update.push(a)}function cS(){const a=Rb();return(h,s)=>{const d=a.$$.callbacks[h];if(d){const l=Tw(h,s);d.slice().forEach(_=>{_.call(a,l)})}}}function uS(a,h){Rb().$$.context.set(a,h)}function lS(a,h){const s=a.$$.callbacks[h.type];s&&s.slice().forEach(d=>d.call(this,h))}const em=[],Sw=[],Fb=[],T6=[],e8=Promise.resolve();let E6=!1;function n8(){E6||(E6=!0,e8.then(Cw))}function Pb(a){Fb.push(a)}function hS(a){T6.push(a)}let S6=!1;const C6=new Set;function Cw(){if(!S6){S6=!0;do{for(let a=0;a<em.length;a+=1){const h=em[a];Ib(h),r8(h.$$)}for(Ib(null),em.length=0;Sw.length;)Sw.pop()();for(let a=0;a<Fb.length;a+=1){const h=Fb[a];C6.has(h)||(C6.add(h),h())}Fb.length=0}while(em.length);for(;T6.length;)T6.pop()();E6=!1,S6=!1,C6.clear()}}function r8(a){if(a.fragment!==null){a.update(),gd(a.before_update);const h=a.dirty;a.dirty=[-1],a.fragment&&a.fragment.p(a.ctx,h),a.after_update.forEach(Pb)}}let nm;function i8(){return nm||(nm=Promise.resolve(),nm.then(()=>{nm=null})),nm}function M6(a,h,s){a.dispatchEvent(Tw(`${h?"intro":"outro"}${s}`))}const Yb=new Set;let ju;function fS(){ju={r:0,c:[],p:ju}}function dS(){ju.r||gd(ju.c),ju=ju.p}function a8(a,h){a&&a.i&&(Yb.delete(a),a.i(h))}function pS(a,h,s,d){if(a&&a.o){if(Yb.has(a))return;Yb.add(a),ju.c.push(()=>{Yb.delete(a),d&&(s&&a.d(1),d())}),a.o(h)}}const o8={duration:0};function gS(a,h,s,d){let l=h(a,s),_=d?0:1,y=null,w=null,T=null;function A(){T&&K7(a,T)}function L(P,W){const H=P.b-_;return W*=Math.abs(H),{a:_,b:P.b,d:H,duration:W,start:P.start,end:P.start+W,group:P.group}}function N(P){const{delay:W=0,duration:H=300,easing:V=pw,tick:X=qc,css:J}=l||o8,ht={start:F7()+W,b:P};P||(ht.group=ju,ju.r+=1),y||w?w=ht:(J&&(A(),T=Ew(a,_,P,H,W,V,J)),P&&X(0,1),y=L(ht,H),Pb(()=>M6(a,P,"start")),P7(tt=>{if(w&&tt>w.start&&(y=L(w,H),w=null,M6(a,y.b,"start"),J&&(A(),T=Ew(a,_,y.b,y.duration,0,V,l.css))),y){if(tt>=y.end)X(_=y.b,1-_),M6(a,y.b,"end"),w||(y.b?A():--y.group.r||gd(y.group.c)),y=null;else if(tt>=y.start){const kt=tt-y.start;_=y.a+y.d*V(kt/y.duration),X(_,1-_)}}return!!(y||w)}))}return{run(P){_6(l)?i8().then(()=>{l=l(),N(P)}):N(P)},end(){A(),y=w=null}}}function yS(a,h){const s={},d={},l={$$scope:1};let _=a.length;for(;_--;){const y=a[_],w=h[_];if(w){for(const T in y)T in w||(d[T]=1);for(const T in w)l[T]||(s[T]=w[T],l[T]=1);a[_]=w}else for(const T in y)l[T]=1}for(const y in d)y in s||(s[y]=void 0);return s}function mS(a){return typeof a=="object"&&a!==null?a:{}}function vS(a,h,s){const d=a.$$.props[h];d!==void 0&&(a.$$.bound[d]=s,s(a.$$.ctx[d]))}function _S(a){a&&a.c()}function bS(a,h){a&&a.l(h)}function s8(a,h,s,d){const{fragment:l,on_mount:_,on_destroy:y,after_update:w}=a.$$;l&&l.m(h,s),d||Pb(()=>{const T=_.map(gw).filter(_6);y?y.push(...T):gd(T),a.$$.on_mount=[]}),w.forEach(Pb)}function c8(a,h){const s=a.$$;s.fragment!==null&&(gd(s.on_destroy),s.fragment&&s.fragment.d(h),s.on_destroy=s.fragment=null,s.ctx=[])}function u8(a,h){a.$$.dirty[0]===-1&&(em.push(a),n8(),a.$$.dirty.fill(0)),a.$$.dirty[h/31|0]|=1<<h%31}function xS(a,h,s,d,l,_,y,w=[-1]){const T=Lb;Ib(a);const A=a.$$={fragment:null,ctx:null,props:_,update:qc,not_equal:l,bound:yw(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(h.context||(T?T.$$.context:[])),callbacks:yw(),dirty:w,skip_bound:!1,root:h.target||T.$$.root};y&&y(A.root);let L=!1;if(A.ctx=s?s(a,h.props||{},(N,P,...W)=>{const H=W.length?W[0]:P;return A.ctx&&l(A.ctx[N],A.ctx[N]=H)&&(!A.skip_bound&&A.bound[N]&&A.bound[N](H),L&&u8(a,N)),P}):[],A.update(),L=!0,gd(A.before_update),A.fragment=d?d(A.ctx):!1,h.target){if(h.hydrate){Y7();const N=X7(h.target);A.fragment&&A.fragment.l(N),N.forEach(V7)}else A.fragment&&A.fragment.c();h.intro&&a8(a.$$.fragment),s8(a,h.target,h.anchor,h.customElement),j7(),Cw()}Ib(T)}class wS{$destroy(){c8(this,1),this.$destroy=qc}$on(h,s){const d=this.$$.callbacks[h]||(this.$$.callbacks[h]=[]);return d.push(s),()=>{const l=d.indexOf(s);l!==-1&&d.splice(l,1)}}$set(h){this.$$set&&!R7(h)&&(this.$$.skip_bound=!0,this.$$set(h),this.$$.skip_bound=!1)}}const ep=[];function l8(a,h){return{subscribe:h8(a,h).subscribe}}function h8(a,h=qc){let s;const d=new Set;function l(w){if(I7(a,w)&&(a=w,s)){const T=!ep.length;for(const A of d)A[1](),ep.push(A,a);if(T){for(let A=0;A<ep.length;A+=2)ep[A][0](ep[A+1]);ep.length=0}}}function _(w){l(w(a))}function y(w,T=qc){const A=[w,T];return d.add(A),d.size===1&&(s=h(l)||qc),w(a),()=>{d.delete(A),d.size===0&&(s(),s=null)}}return{set:l,update:_,subscribe:y}}function kS(a,h,s){const d=!Array.isArray(a),l=d?[a]:a,_=h.length<2;return l8(s,y=>{let w=!1;const T=[];let A=0,L=qc;const N=()=>{if(A)return;L();const W=h(d?T[0]:T,y);_?y(W):L=_6(W)?W:qc},P=l.map((W,H)=>b6(W,V=>{T[H]=V,A&=~(1<<H),w&&N()},()=>{A|=1<<H}));return w=!0,N(),function(){gd(P),L()}})}var f8={};(function(a){a.defaults={},a.set=function(h,s,d){var l=d||{},_=a.defaults,y=l.expires||_.expires,w=l.domain||_.domain,T=l.path!==void 0?l.path:_.path!==void 0?_.path:"/",A=l.secure!==void 0?l.secure:_.secure,L=l.httponly!==void 0?l.httponly:_.httponly,N=l.samesite!==void 0?l.samesite:_.samesite,P=y?new Date(typeof y=="number"?new Date().getTime()+y*864e5:y):0;document.cookie=h.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+s.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(P&&P.getTime()>=0?";expires="+P.toUTCString():"")+(w?";domain="+w:"")+(T?";path="+T:"")+(A?";secure":"")+(L?";httponly":"")+(N?";samesite="+N:"")},a.get=function(h){for(var s=document.cookie.split(";");s.length;){var d=s.pop(),l=d.indexOf("=");l=l<0?d.length:l;var _=decodeURIComponent(d.slice(0,l).replace(/^\s+/,""));if(_===h)return decodeURIComponent(d.slice(l+1))}return null},a.erase=function(h,s){a.set(h,"",{expires:-1,domain:s&&s.domain,path:s&&s.path,secure:0,httponly:0})},a.all=function(){for(var h={},s=document.cookie.split(";");s.length;){var d=s.pop(),l=d.indexOf("=");l=l<0?d.length:l;var _=decodeURIComponent(d.slice(0,l).replace(/^\s+/,""));h[_]=decodeURIComponent(d.slice(l+1))}return h}})(f8);function TS(a,h,s){const d=h.getValue(s);return d!==null&&a.set(d),h.addListener&&h.addListener(s,l=>{a.set(l)}),a.subscribe(l=>{h.setValue(s,l)}),Object.assign(Object.assign({},a),{delete(){h.deleteValue(s)}})}function d8(a,h=!1){const s=[],d=y=>{const w=y.key;y.storageArea===a&&s.filter(({key:T})=>T===w).forEach(({listener:T})=>{let A=y.newValue;try{A=JSON.parse(y.newValue)}catch(L){}T(A)})},l=()=>{h&&typeof window!="undefined"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",d)},_=()=>{h&&typeof window!="undefined"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",d)};return{addListener(y,w){s.push({key:y,listener:w}),s.length===1&&l()},removeListener(y,w){const T=s.indexOf({key:y,listener:w});T!==-1&&s.splice(T,1),s.length===0&&_()},getValue(y){let w=a.getItem(y);if(w!=null)try{w=JSON.parse(w)}catch(T){}return w},deleteValue(y){a.removeItem(y)},setValue(y,w){a.setItem(y,JSON.stringify(w))}}}function ES(a=!1){return typeof window!="undefined"&&(window==null?void 0:window.localStorage)?d8(window.localStorage,a):(console.warn("Unable to find the localStorage. No data will be persisted."),p8())}function p8(){return{getValue(){return null},deleteValue(){},setValue(){}}}const g8=typeof atob=="function",y8=typeof btoa=="function",np=typeof Buffer=="function",Mw=typeof TextDecoder=="function"?new TextDecoder:void 0,Aw=typeof TextEncoder=="function"?new TextEncoder:void 0,m8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rm=Array.prototype.slice.call(m8),jb=(a=>{let h={};return a.forEach((s,d)=>h[s]=d),h})(rm),v8=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ma=String.fromCharCode.bind(String),Dw=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(a,h=s=>s)=>new Uint8Array(Array.prototype.slice.call(a,0).map(h)),_8=a=>a.replace(/=/g,"").replace(/[+\/]/g,h=>h=="+"?"-":"_"),Nw=a=>a.replace(/[^A-Za-z0-9\+\/]/g,""),b8=a=>{let h,s,d,l,_="";const y=a.length%3;for(let w=0;w<a.length;){if((s=a.charCodeAt(w++))>255||(d=a.charCodeAt(w++))>255||(l=a.charCodeAt(w++))>255)throw new TypeError("invalid character found");h=s<<16|d<<8|l,_+=rm[h>>18&63]+rm[h>>12&63]+rm[h>>6&63]+rm[h&63]}return y?_.slice(0,y-3)+"===".substring(y):_},Ow=y8?a=>btoa(a):np?a=>Buffer.from(a,"binary").toString("base64"):b8,x8=np?a=>Buffer.from(a).toString("base64"):a=>{const h=4096;let s=[];for(let d=0,l=a.length;d<l;d+=h)s.push(Ma.apply(null,a.subarray(d,d+h)));return Ow(s.join(""))},w8=a=>{if(a.length<2){var h=a.charCodeAt(0);return h<128?a:h<2048?Ma(192|h>>>6)+Ma(128|h&63):Ma(224|h>>>12&15)+Ma(128|h>>>6&63)+Ma(128|h&63)}else{var h=65536+(a.charCodeAt(0)-55296)*1024+(a.charCodeAt(1)-56320);return Ma(240|h>>>18&7)+Ma(128|h>>>12&63)+Ma(128|h>>>6&63)+Ma(128|h&63)}},k8=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,T8=a=>a.replace(k8,w8),Bw=np?a=>Buffer.from(a,"utf8").toString("base64"):Aw?a=>x8(Aw.encode(a)):a=>Ow(T8(a)),SS=(a,h=!1)=>h?_8(Bw(a)):Bw(a),E8=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,S8=a=>{switch(a.length){case 4:var h=(7&a.charCodeAt(0))<<18|(63&a.charCodeAt(1))<<12|(63&a.charCodeAt(2))<<6|63&a.charCodeAt(3),s=h-65536;return Ma((s>>>10)+55296)+Ma((s&1023)+56320);case 3:return Ma((15&a.charCodeAt(0))<<12|(63&a.charCodeAt(1))<<6|63&a.charCodeAt(2));default:return Ma((31&a.charCodeAt(0))<<6|63&a.charCodeAt(1))}},C8=a=>a.replace(E8,S8),M8=a=>{if(a=a.replace(/\s+/g,""),!v8.test(a))throw new TypeError("malformed base64.");a+="==".slice(2-(a.length&3));let h,s="",d,l;for(let _=0;_<a.length;)h=jb[a.charAt(_++)]<<18|jb[a.charAt(_++)]<<12|(d=jb[a.charAt(_++)])<<6|(l=jb[a.charAt(_++)]),s+=d===64?Ma(h>>16&255):l===64?Ma(h>>16&255,h>>8&255):Ma(h>>16&255,h>>8&255,h&255);return s},Lw=g8?a=>atob(Nw(a)):np?a=>Buffer.from(a,"base64").toString("binary"):M8,A8=np?a=>Dw(Buffer.from(a,"base64")):a=>Dw(Lw(a),h=>h.charCodeAt(0)),D8=np?a=>Buffer.from(a,"base64").toString("utf8"):Mw?a=>Mw.decode(A8(a)):a=>C8(Lw(a)),N8=a=>Nw(a.replace(/[-_]/g,h=>h=="-"?"+":"/")),CS=a=>D8(N8(a)),MS="8.13.2";function O8(a){const h=a-1;return h*h*h+1}function AS(a,{delay:h=0,duration:s=400,easing:d=pw}={}){const l=+getComputedStyle(a).opacity;return{delay:h,duration:s,easing:d,css:_=>`opacity: ${_*l}`}}function DS(a,{delay:h=0,duration:s=400,easing:d=O8}={}){const l=getComputedStyle(a),_=+l.opacity,y=parseFloat(l.height),w=parseFloat(l.paddingTop),T=parseFloat(l.paddingBottom),A=parseFloat(l.marginTop),L=parseFloat(l.marginBottom),N=parseFloat(l.borderTopWidth),P=parseFloat(l.borderBottomWidth);return{delay:h,duration:s,easing:d,css:W=>`overflow: hidden;opacity: ${Math.min(W*20,1)*_};height: ${W*y}px;padding-top: ${W*w}px;padding-bottom: ${W*T}px;margin-top: ${W*A}px;margin-bottom: ${W*L}px;border-top-width: ${W*N}px;border-bottom-width: ${W*P}px;`}}//! moment.js
|
|
//! version : 2.29.1
|
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
//! license : MIT
|
|
//! momentjs.com
|
|
var Iw;function rn(){return Iw.apply(null,arguments)}function B8(a){Iw=a}function rc(a){return a instanceof Array||Object.prototype.toString.call(a)==="[object Array]"}function yd(a){return a!=null&&Object.prototype.toString.call(a)==="[object Object]"}function Cr(a,h){return Object.prototype.hasOwnProperty.call(a,h)}function A6(a){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(a).length===0;var h;for(h in a)if(Cr(a,h))return!1;return!0}function wo(a){return a===void 0}function Uu(a){return typeof a=="number"||Object.prototype.toString.call(a)==="[object Number]"}function im(a){return a instanceof Date||Object.prototype.toString.call(a)==="[object Date]"}function Rw(a,h){var s=[],d;for(d=0;d<a.length;++d)s.push(h(a[d],d));return s}function gh(a,h){for(var s in h)Cr(h,s)&&(a[s]=h[s]);return Cr(h,"toString")&&(a.toString=h.toString),Cr(h,"valueOf")&&(a.valueOf=h.valueOf),a}function Vc(a,h,s,d){return c7(a,h,s,d,!0).utc()}function L8(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ir(a){return a._pf==null&&(a._pf=L8()),a._pf}var D6;Array.prototype.some?D6=Array.prototype.some:D6=function(a){var h=Object(this),s=h.length>>>0,d;for(d=0;d<s;d++)if(d in h&&a.call(this,h[d],d,h))return!0;return!1};function N6(a){if(a._isValid==null){var h=ir(a),s=D6.call(h.parsedDateParts,function(l){return l!=null}),d=!isNaN(a._d.getTime())&&h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&s);if(a._strict&&(d=d&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(a))a._isValid=d;else return d}return a._isValid}function Ub(a){var h=Vc(NaN);return a!=null?gh(ir(h),a):ir(h).userInvalidated=!0,h}var O6=rn.momentProperties=[],B6=!1;function L6(a,h){var s,d,l;if(wo(h._isAMomentObject)||(a._isAMomentObject=h._isAMomentObject),wo(h._i)||(a._i=h._i),wo(h._f)||(a._f=h._f),wo(h._l)||(a._l=h._l),wo(h._strict)||(a._strict=h._strict),wo(h._tzm)||(a._tzm=h._tzm),wo(h._isUTC)||(a._isUTC=h._isUTC),wo(h._offset)||(a._offset=h._offset),wo(h._pf)||(a._pf=ir(h)),wo(h._locale)||(a._locale=h._locale),O6.length>0)for(s=0;s<O6.length;s++)d=O6[s],l=h[d],wo(l)||(a[d]=l);return a}function am(a){L6(this,a),this._d=new Date(a._d!=null?a._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),B6===!1&&(B6=!0,rn.updateOffset(this),B6=!1)}function ic(a){return a instanceof am||a!=null&&a._isAMomentObject!=null}function Fw(a){rn.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+a)}function ks(a,h){var s=!0;return gh(function(){if(rn.deprecationHandler!=null&&rn.deprecationHandler(null,a),s){var d=[],l,_,y;for(_=0;_<arguments.length;_++){if(l="",typeof arguments[_]=="object"){l+=`
|
|
[`+_+"] ";for(y in arguments[0])Cr(arguments[0],y)&&(l+=y+": "+arguments[0][y]+", ");l=l.slice(0,-2)}else l=arguments[_];d.push(l)}Fw(a+`
|
|
Arguments: `+Array.prototype.slice.call(d).join("")+`
|
|
`+new Error().stack),s=!1}return h.apply(this,arguments)},h)}var Pw={};function Yw(a,h){rn.deprecationHandler!=null&&rn.deprecationHandler(a,h),Pw[a]||(Fw(h),Pw[a]=!0)}rn.suppressDeprecationWarnings=!1;rn.deprecationHandler=null;function Gc(a){return typeof Function!="undefined"&&a instanceof Function||Object.prototype.toString.call(a)==="[object Function]"}function I8(a){var h,s;for(s in a)Cr(a,s)&&(h=a[s],Gc(h)?this[s]=h:this["_"+s]=h);this._config=a,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function I6(a,h){var s=gh({},a),d;for(d in h)Cr(h,d)&&(yd(a[d])&&yd(h[d])?(s[d]={},gh(s[d],a[d]),gh(s[d],h[d])):h[d]!=null?s[d]=h[d]:delete s[d]);for(d in a)Cr(a,d)&&!Cr(h,d)&&yd(a[d])&&(s[d]=gh({},s[d]));return s}function R6(a){a!=null&&this.set(a)}var F6;Object.keys?F6=Object.keys:F6=function(a){var h,s=[];for(h in a)Cr(a,h)&&s.push(h);return s};var R8={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F8(a,h,s){var d=this._calendar[a]||this._calendar.sameElse;return Gc(d)?d.call(h,s):d}function Xc(a,h,s){var d=""+Math.abs(a),l=h-d.length,_=a>=0;return(_?s?"+":"":"-")+Math.pow(10,Math.max(0,l)).toString().substr(1)+d}var P6=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,zb=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y6={},rp={};function En(a,h,s,d){var l=d;typeof d=="string"&&(l=function(){return this[d]()}),a&&(rp[a]=l),h&&(rp[h[0]]=function(){return Xc(l.apply(this,arguments),h[1],h[2])}),s&&(rp[s]=function(){return this.localeData().ordinal(l.apply(this,arguments),a)})}function P8(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function Y8(a){var h=a.match(P6),s,d;for(s=0,d=h.length;s<d;s++)rp[h[s]]?h[s]=rp[h[s]]:h[s]=P8(h[s]);return function(l){var _="",y;for(y=0;y<d;y++)_+=Gc(h[y])?h[y].call(l,a):h[y];return _}}function Wb(a,h){return a.isValid()?(h=jw(h,a.localeData()),Y6[h]=Y6[h]||Y8(h),Y6[h](a)):a.localeData().invalidDate()}function jw(a,h){var s=5;function d(l){return h.longDateFormat(l)||l}for(zb.lastIndex=0;s>=0&&zb.test(a);)a=a.replace(zb,d),zb.lastIndex=0,s-=1;return a}var j8={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function U8(a){var h=this._longDateFormat[a],s=this._longDateFormat[a.toUpperCase()];return h||!s?h:(this._longDateFormat[a]=s.match(P6).map(function(d){return d==="MMMM"||d==="MM"||d==="DD"||d==="dddd"?d.slice(1):d}).join(""),this._longDateFormat[a])}var z8="Invalid date";function W8(){return this._invalidDate}var H8="%d",$8=/\d{1,2}/;function q8(a){return this._ordinal.replace("%d",a)}var V8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function G8(a,h,s,d){var l=this._relativeTime[s];return Gc(l)?l(a,h,s,d):l.replace(/%d/i,a)}function X8(a,h){var s=this._relativeTime[a>0?"future":"past"];return Gc(s)?s(h):s.replace(/%s/i,h)}var om={};function ja(a,h){var s=a.toLowerCase();om[s]=om[s+"s"]=om[h]=a}function Ts(a){return typeof a=="string"?om[a]||om[a.toLowerCase()]:void 0}function j6(a){var h={},s,d;for(d in a)Cr(a,d)&&(s=Ts(d),s&&(h[s]=a[d]));return h}var Uw={};function Ua(a,h){Uw[a]=h}function Z8(a){var h=[],s;for(s in a)Cr(a,s)&&h.push({unit:s,priority:Uw[s]});return h.sort(function(d,l){return d.priority-l.priority}),h}function Hb(a){return a%4==0&&a%100!=0||a%400==0}function Es(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function dr(a){var h=+a,s=0;return h!==0&&isFinite(h)&&(s=Es(h)),s}function ip(a,h){return function(s){return s!=null?(zw(this,a,s),rn.updateOffset(this,h),this):$b(this,a)}}function $b(a,h){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+h]():NaN}function zw(a,h,s){a.isValid()&&!isNaN(s)&&(h==="FullYear"&&Hb(a.year())&&a.month()===1&&a.date()===29?(s=dr(s),a._d["set"+(a._isUTC?"UTC":"")+h](s,a.month(),Jb(s,a.month()))):a._d["set"+(a._isUTC?"UTC":"")+h](s))}function Q8(a){return a=Ts(a),Gc(this[a])?this[a]():this}function J8(a,h){if(typeof a=="object"){a=j6(a);var s=Z8(a),d;for(d=0;d<s.length;d++)this[s[d].unit](a[s[d].unit])}else if(a=Ts(a),Gc(this[a]))return this[a](h);return this}var Ww=/\d/,Vo=/\d\d/,Hw=/\d{3}/,U6=/\d{4}/,qb=/[+-]?\d{6}/,si=/\d\d?/,$w=/\d\d\d\d?/,qw=/\d\d\d\d\d\d?/,Vb=/\d{1,3}/,z6=/\d{1,4}/,Gb=/[+-]?\d{1,6}/,ap=/\d+/,Xb=/[+-]?\d+/,K8=/Z|[+-]\d\d:?\d\d/gi,Zb=/Z|[+-]\d\d(?::?\d\d)?/gi,tk=/[+-]?\d+(\.\d{1,3})?/,sm=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Qb;Qb={};function cn(a,h,s){Qb[a]=Gc(h)?h:function(d,l){return d&&s?s:h}}function ek(a,h){return Cr(Qb,a)?Qb[a](h._strict,h._locale):new RegExp(nk(a))}function nk(a){return Go(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,s,d,l,_){return s||d||l||_}))}function Go(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var W6={};function Gr(a,h){var s,d=h;for(typeof a=="string"&&(a=[a]),Uu(h)&&(d=function(l,_){_[h]=dr(l)}),s=0;s<a.length;s++)W6[a[s]]=d}function cm(a,h){Gr(a,function(s,d,l,_){l._w=l._w||{},h(s,l._w,l,_)})}function rk(a,h,s){h!=null&&Cr(W6,a)&&W6[a](h,s._a,s,a)}var za=0,zu=1,Zc=2,ca=3,ac=4,Wu=5,md=6,ik=7,ak=8;function ok(a,h){return(a%h+h)%h}var ji;Array.prototype.indexOf?ji=Array.prototype.indexOf:ji=function(a){var h;for(h=0;h<this.length;++h)if(this[h]===a)return h;return-1};function Jb(a,h){if(isNaN(a)||isNaN(h))return NaN;var s=ok(h,12);return a+=(h-s)/12,s===1?Hb(a)?29:28:31-s%7%2}En("M",["MM",2],"Mo",function(){return this.month()+1});En("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)});En("MMMM",0,0,function(a){return this.localeData().months(this,a)});ja("month","M");Ua("month",8);cn("M",si);cn("MM",si,Vo);cn("MMM",function(a,h){return h.monthsShortRegex(a)});cn("MMMM",function(a,h){return h.monthsRegex(a)});Gr(["M","MM"],function(a,h){h[zu]=dr(a)-1});Gr(["MMM","MMMM"],function(a,h,s,d){var l=s._locale.monthsParse(a,d,s._strict);l!=null?h[zu]=l:ir(s).invalidMonth=a});var sk="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Vw="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gw=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ck=sm,uk=sm;function lk(a,h){return a?rc(this._months)?this._months[a.month()]:this._months[(this._months.isFormat||Gw).test(h)?"format":"standalone"][a.month()]:rc(this._months)?this._months:this._months.standalone}function hk(a,h){return a?rc(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[Gw.test(h)?"format":"standalone"][a.month()]:rc(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function fk(a,h,s){var d,l,_,y=a.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],d=0;d<12;++d)_=Vc([2e3,d]),this._shortMonthsParse[d]=this.monthsShort(_,"").toLocaleLowerCase(),this._longMonthsParse[d]=this.months(_,"").toLocaleLowerCase();return s?h==="MMM"?(l=ji.call(this._shortMonthsParse,y),l!==-1?l:null):(l=ji.call(this._longMonthsParse,y),l!==-1?l:null):h==="MMM"?(l=ji.call(this._shortMonthsParse,y),l!==-1?l:(l=ji.call(this._longMonthsParse,y),l!==-1?l:null)):(l=ji.call(this._longMonthsParse,y),l!==-1?l:(l=ji.call(this._shortMonthsParse,y),l!==-1?l:null))}function dk(a,h,s){var d,l,_;if(this._monthsParseExact)return fk.call(this,a,h,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;d<12;d++){if(l=Vc([2e3,d]),s&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(l,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(l,"").replace(".","")+"$","i")),!s&&!this._monthsParse[d]&&(_="^"+this.months(l,"")+"|^"+this.monthsShort(l,""),this._monthsParse[d]=new RegExp(_.replace(".",""),"i")),s&&h==="MMMM"&&this._longMonthsParse[d].test(a))return d;if(s&&h==="MMM"&&this._shortMonthsParse[d].test(a))return d;if(!s&&this._monthsParse[d].test(a))return d}}function Xw(a,h){var s;if(!a.isValid())return a;if(typeof h=="string"){if(/^\d+$/.test(h))h=dr(h);else if(h=a.localeData().monthsParse(h),!Uu(h))return a}return s=Math.min(a.date(),Jb(a.year(),h)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](h,s),a}function Zw(a){return a!=null?(Xw(this,a),rn.updateOffset(this,!0),this):$b(this,"Month")}function pk(){return Jb(this.year(),this.month())}function gk(a){return this._monthsParseExact?(Cr(this,"_monthsRegex")||Qw.call(this),a?this._monthsShortStrictRegex:this._monthsShortRegex):(Cr(this,"_monthsShortRegex")||(this._monthsShortRegex=ck),this._monthsShortStrictRegex&&a?this._monthsShortStrictRegex:this._monthsShortRegex)}function yk(a){return this._monthsParseExact?(Cr(this,"_monthsRegex")||Qw.call(this),a?this._monthsStrictRegex:this._monthsRegex):(Cr(this,"_monthsRegex")||(this._monthsRegex=uk),this._monthsStrictRegex&&a?this._monthsStrictRegex:this._monthsRegex)}function Qw(){function a(y,w){return w.length-y.length}var h=[],s=[],d=[],l,_;for(l=0;l<12;l++)_=Vc([2e3,l]),h.push(this.monthsShort(_,"")),s.push(this.months(_,"")),d.push(this.months(_,"")),d.push(this.monthsShort(_,""));for(h.sort(a),s.sort(a),d.sort(a),l=0;l<12;l++)h[l]=Go(h[l]),s[l]=Go(s[l]);for(l=0;l<24;l++)d[l]=Go(d[l]);this._monthsRegex=new RegExp("^("+d.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}En("Y",0,0,function(){var a=this.year();return a<=9999?Xc(a,4):"+"+a});En(0,["YY",2],0,function(){return this.year()%100});En(0,["YYYY",4],0,"year");En(0,["YYYYY",5],0,"year");En(0,["YYYYYY",6,!0],0,"year");ja("year","y");Ua("year",1);cn("Y",Xb);cn("YY",si,Vo);cn("YYYY",z6,U6);cn("YYYYY",Gb,qb);cn("YYYYYY",Gb,qb);Gr(["YYYYY","YYYYYY"],za);Gr("YYYY",function(a,h){h[za]=a.length===2?rn.parseTwoDigitYear(a):dr(a)});Gr("YY",function(a,h){h[za]=rn.parseTwoDigitYear(a)});Gr("Y",function(a,h){h[za]=parseInt(a,10)});function um(a){return Hb(a)?366:365}rn.parseTwoDigitYear=function(a){return dr(a)+(dr(a)>68?1900:2e3)};var Jw=ip("FullYear",!0);function mk(){return Hb(this.year())}function vk(a,h,s,d,l,_,y){var w;return a<100&&a>=0?(w=new Date(a+400,h,s,d,l,_,y),isFinite(w.getFullYear())&&w.setFullYear(a)):w=new Date(a,h,s,d,l,_,y),w}function lm(a){var h,s;return a<100&&a>=0?(s=Array.prototype.slice.call(arguments),s[0]=a+400,h=new Date(Date.UTC.apply(null,s)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(a)):h=new Date(Date.UTC.apply(null,arguments)),h}function Kb(a,h,s){var d=7+h-s,l=(7+lm(a,0,d).getUTCDay()-h)%7;return-l+d-1}function Kw(a,h,s,d,l){var _=(7+s-d)%7,y=Kb(a,d,l),w=1+7*(h-1)+_+y,T,A;return w<=0?(T=a-1,A=um(T)+w):w>um(a)?(T=a+1,A=w-um(a)):(T=a,A=w),{year:T,dayOfYear:A}}function hm(a,h,s){var d=Kb(a.year(),h,s),l=Math.floor((a.dayOfYear()-d-1)/7)+1,_,y;return l<1?(y=a.year()-1,_=l+Hu(y,h,s)):l>Hu(a.year(),h,s)?(_=l-Hu(a.year(),h,s),y=a.year()+1):(y=a.year(),_=l),{week:_,year:y}}function Hu(a,h,s){var d=Kb(a,h,s),l=Kb(a+1,h,s);return(um(a)-d+l)/7}En("w",["ww",2],"wo","week");En("W",["WW",2],"Wo","isoWeek");ja("week","w");ja("isoWeek","W");Ua("week",5);Ua("isoWeek",5);cn("w",si);cn("ww",si,Vo);cn("W",si);cn("WW",si,Vo);cm(["w","ww","W","WW"],function(a,h,s,d){h[d.substr(0,1)]=dr(a)});function _k(a){return hm(a,this._week.dow,this._week.doy).week}var bk={dow:0,doy:6};function xk(){return this._week.dow}function wk(){return this._week.doy}function kk(a){var h=this.localeData().week(this);return a==null?h:this.add((a-h)*7,"d")}function Tk(a){var h=hm(this,1,4).week;return a==null?h:this.add((a-h)*7,"d")}En("d",0,"do","day");En("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)});En("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)});En("dddd",0,0,function(a){return this.localeData().weekdays(this,a)});En("e",0,0,"weekday");En("E",0,0,"isoWeekday");ja("day","d");ja("weekday","e");ja("isoWeekday","E");Ua("day",11);Ua("weekday",11);Ua("isoWeekday",11);cn("d",si);cn("e",si);cn("E",si);cn("dd",function(a,h){return h.weekdaysMinRegex(a)});cn("ddd",function(a,h){return h.weekdaysShortRegex(a)});cn("dddd",function(a,h){return h.weekdaysRegex(a)});cm(["dd","ddd","dddd"],function(a,h,s,d){var l=s._locale.weekdaysParse(a,d,s._strict);l!=null?h.d=l:ir(s).invalidWeekday=a});cm(["d","e","E"],function(a,h,s,d){h[d]=dr(a)});function Ek(a,h){return typeof a!="string"?a:isNaN(a)?(a=h.weekdaysParse(a),typeof a=="number"?a:null):parseInt(a,10)}function Sk(a,h){return typeof a=="string"?h.weekdaysParse(a)%7||7:isNaN(a)?null:a}function H6(a,h){return a.slice(h,7).concat(a.slice(0,h))}var Ck="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),t7="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mk="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ak=sm,Dk=sm,Nk=sm;function Ok(a,h){var s=rc(this._weekdays)?this._weekdays:this._weekdays[a&&a!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return a===!0?H6(s,this._week.dow):a?s[a.day()]:s}function Bk(a){return a===!0?H6(this._weekdaysShort,this._week.dow):a?this._weekdaysShort[a.day()]:this._weekdaysShort}function Lk(a){return a===!0?H6(this._weekdaysMin,this._week.dow):a?this._weekdaysMin[a.day()]:this._weekdaysMin}function Ik(a,h,s){var d,l,_,y=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],d=0;d<7;++d)_=Vc([2e3,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(_,"").toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(_,"").toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(_,"").toLocaleLowerCase();return s?h==="dddd"?(l=ji.call(this._weekdaysParse,y),l!==-1?l:null):h==="ddd"?(l=ji.call(this._shortWeekdaysParse,y),l!==-1?l:null):(l=ji.call(this._minWeekdaysParse,y),l!==-1?l:null):h==="dddd"?(l=ji.call(this._weekdaysParse,y),l!==-1||(l=ji.call(this._shortWeekdaysParse,y),l!==-1)?l:(l=ji.call(this._minWeekdaysParse,y),l!==-1?l:null)):h==="ddd"?(l=ji.call(this._shortWeekdaysParse,y),l!==-1||(l=ji.call(this._weekdaysParse,y),l!==-1)?l:(l=ji.call(this._minWeekdaysParse,y),l!==-1?l:null)):(l=ji.call(this._minWeekdaysParse,y),l!==-1||(l=ji.call(this._weekdaysParse,y),l!==-1)?l:(l=ji.call(this._shortWeekdaysParse,y),l!==-1?l:null))}function Rk(a,h,s){var d,l,_;if(this._weekdaysParseExact)return Ik.call(this,a,h,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),d=0;d<7;d++){if(l=Vc([2e3,1]).day(d),s&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(l,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(l,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(l,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[d]||(_="^"+this.weekdays(l,"")+"|^"+this.weekdaysShort(l,"")+"|^"+this.weekdaysMin(l,""),this._weekdaysParse[d]=new RegExp(_.replace(".",""),"i")),s&&h==="dddd"&&this._fullWeekdaysParse[d].test(a))return d;if(s&&h==="ddd"&&this._shortWeekdaysParse[d].test(a))return d;if(s&&h==="dd"&&this._minWeekdaysParse[d].test(a))return d;if(!s&&this._weekdaysParse[d].test(a))return d}}function Fk(a){if(!this.isValid())return a!=null?this:NaN;var h=this._isUTC?this._d.getUTCDay():this._d.getDay();return a!=null?(a=Ek(a,this.localeData()),this.add(a-h,"d")):h}function Pk(a){if(!this.isValid())return a!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return a==null?h:this.add(a-h,"d")}function Yk(a){if(!this.isValid())return a!=null?this:NaN;if(a!=null){var h=Sk(a,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function jk(a){return this._weekdaysParseExact?(Cr(this,"_weekdaysRegex")||$6.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(Cr(this,"_weekdaysRegex")||(this._weekdaysRegex=Ak),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uk(a){return this._weekdaysParseExact?(Cr(this,"_weekdaysRegex")||$6.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Cr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dk),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function zk(a){return this._weekdaysParseExact?(Cr(this,"_weekdaysRegex")||$6.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Cr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nk),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $6(){function a(L,N){return N.length-L.length}var h=[],s=[],d=[],l=[],_,y,w,T,A;for(_=0;_<7;_++)y=Vc([2e3,1]).day(_),w=Go(this.weekdaysMin(y,"")),T=Go(this.weekdaysShort(y,"")),A=Go(this.weekdays(y,"")),h.push(w),s.push(T),d.push(A),l.push(w),l.push(T),l.push(A);h.sort(a),s.sort(a),d.sort(a),l.sort(a),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function q6(){return this.hours()%12||12}function Wk(){return this.hours()||24}En("H",["HH",2],0,"hour");En("h",["hh",2],0,q6);En("k",["kk",2],0,Wk);En("hmm",0,0,function(){return""+q6.apply(this)+Xc(this.minutes(),2)});En("hmmss",0,0,function(){return""+q6.apply(this)+Xc(this.minutes(),2)+Xc(this.seconds(),2)});En("Hmm",0,0,function(){return""+this.hours()+Xc(this.minutes(),2)});En("Hmmss",0,0,function(){return""+this.hours()+Xc(this.minutes(),2)+Xc(this.seconds(),2)});function e7(a,h){En(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}e7("a",!0);e7("A",!1);ja("hour","h");Ua("hour",13);function n7(a,h){return h._meridiemParse}cn("a",n7);cn("A",n7);cn("H",si);cn("h",si);cn("k",si);cn("HH",si,Vo);cn("hh",si,Vo);cn("kk",si,Vo);cn("hmm",$w);cn("hmmss",qw);cn("Hmm",$w);cn("Hmmss",qw);Gr(["H","HH"],ca);Gr(["k","kk"],function(a,h,s){var d=dr(a);h[ca]=d===24?0:d});Gr(["a","A"],function(a,h,s){s._isPm=s._locale.isPM(a),s._meridiem=a});Gr(["h","hh"],function(a,h,s){h[ca]=dr(a),ir(s).bigHour=!0});Gr("hmm",function(a,h,s){var d=a.length-2;h[ca]=dr(a.substr(0,d)),h[ac]=dr(a.substr(d)),ir(s).bigHour=!0});Gr("hmmss",function(a,h,s){var d=a.length-4,l=a.length-2;h[ca]=dr(a.substr(0,d)),h[ac]=dr(a.substr(d,2)),h[Wu]=dr(a.substr(l)),ir(s).bigHour=!0});Gr("Hmm",function(a,h,s){var d=a.length-2;h[ca]=dr(a.substr(0,d)),h[ac]=dr(a.substr(d))});Gr("Hmmss",function(a,h,s){var d=a.length-4,l=a.length-2;h[ca]=dr(a.substr(0,d)),h[ac]=dr(a.substr(d,2)),h[Wu]=dr(a.substr(l))});function Hk(a){return(a+"").toLowerCase().charAt(0)==="p"}var $k=/[ap]\.?m?\.?/i,qk=ip("Hours",!0);function Vk(a,h,s){return a>11?s?"pm":"PM":s?"am":"AM"}var r7={calendar:R8,longDateFormat:j8,invalidDate:z8,ordinal:H8,dayOfMonthOrdinalParse:$8,relativeTime:V8,months:sk,monthsShort:Vw,week:bk,weekdays:Ck,weekdaysMin:Mk,weekdaysShort:t7,meridiemParse:$k},di={},fm={},dm;function Gk(a,h){var s,d=Math.min(a.length,h.length);for(s=0;s<d;s+=1)if(a[s]!==h[s])return s;return d}function i7(a){return a&&a.toLowerCase().replace("_","-")}function Xk(a){for(var h=0,s,d,l,_;h<a.length;){for(_=i7(a[h]).split("-"),s=_.length,d=i7(a[h+1]),d=d?d.split("-"):null;s>0;){if(l=t4(_.slice(0,s).join("-")),l)return l;if(d&&d.length>=s&&Gk(_,d)>=s-1)break;s--}h++}return dm}function t4(a){var h=null,s;if(di[a]===void 0&&typeof module!="undefined"&&module&&module.exports)try{h=dm._abbr,s=require,s("./locale/"+a),yh(h)}catch(d){di[a]=null}return di[a]}function yh(a,h){var s;return a&&(wo(h)?s=$u(a):s=V6(a,h),s?dm=s:typeof console!="undefined"&&console.warn&&console.warn("Locale "+a+" not found. Did you forget to load it?")),dm._abbr}function V6(a,h){if(h!==null){var s,d=r7;if(h.abbr=a,di[a]!=null)Yw("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),d=di[a]._config;else if(h.parentLocale!=null)if(di[h.parentLocale]!=null)d=di[h.parentLocale]._config;else if(s=t4(h.parentLocale),s!=null)d=s._config;else return fm[h.parentLocale]||(fm[h.parentLocale]=[]),fm[h.parentLocale].push({name:a,config:h}),null;return di[a]=new R6(I6(d,h)),fm[a]&&fm[a].forEach(function(l){V6(l.name,l.config)}),yh(a),di[a]}else return delete di[a],null}function Zk(a,h){if(h!=null){var s,d,l=r7;di[a]!=null&&di[a].parentLocale!=null?di[a].set(I6(di[a]._config,h)):(d=t4(a),d!=null&&(l=d._config),h=I6(l,h),d==null&&(h.abbr=a),s=new R6(h),s.parentLocale=di[a],di[a]=s),yh(a)}else di[a]!=null&&(di[a].parentLocale!=null?(di[a]=di[a].parentLocale,a===yh()&&yh(a)):di[a]!=null&&delete di[a]);return di[a]}function $u(a){var h;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return dm;if(!rc(a)){if(h=t4(a),h)return h;a=[a]}return Xk(a)}function Qk(){return F6(di)}function G6(a){var h,s=a._a;return s&&ir(a).overflow===-2&&(h=s[zu]<0||s[zu]>11?zu:s[Zc]<1||s[Zc]>Jb(s[za],s[zu])?Zc:s[ca]<0||s[ca]>24||s[ca]===24&&(s[ac]!==0||s[Wu]!==0||s[md]!==0)?ca:s[ac]<0||s[ac]>59?ac:s[Wu]<0||s[Wu]>59?Wu:s[md]<0||s[md]>999?md:-1,ir(a)._overflowDayOfYear&&(h<za||h>Zc)&&(h=Zc),ir(a)._overflowWeeks&&h===-1&&(h=ik),ir(a)._overflowWeekday&&h===-1&&(h=ak),ir(a).overflow=h),a}var Jk=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Kk=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,t9=/Z|[+-]\d\d(?::?\d\d)?/,e4=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],X6=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e9=/^\/?Date\((-?\d+)/i,n9=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,r9={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function a7(a){var h,s,d=a._i,l=Jk.exec(d)||Kk.exec(d),_,y,w,T;if(l){for(ir(a).iso=!0,h=0,s=e4.length;h<s;h++)if(e4[h][1].exec(l[1])){y=e4[h][0],_=e4[h][2]!==!1;break}if(y==null){a._isValid=!1;return}if(l[3]){for(h=0,s=X6.length;h<s;h++)if(X6[h][1].exec(l[3])){w=(l[2]||" ")+X6[h][0];break}if(w==null){a._isValid=!1;return}}if(!_&&w!=null){a._isValid=!1;return}if(l[4])if(t9.exec(l[4]))T="Z";else{a._isValid=!1;return}a._f=y+(w||"")+(T||""),Q6(a)}else a._isValid=!1}function i9(a,h,s,d,l,_){var y=[a9(a),Vw.indexOf(h),parseInt(s,10),parseInt(d,10),parseInt(l,10)];return _&&y.push(parseInt(_,10)),y}function a9(a){var h=parseInt(a,10);return h<=49?2e3+h:h<=999?1900+h:h}function o9(a){return a.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function s9(a,h,s){if(a){var d=t7.indexOf(a),l=new Date(h[0],h[1],h[2]).getDay();if(d!==l)return ir(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function c9(a,h,s){if(a)return r9[a];if(h)return 0;var d=parseInt(s,10),l=d%100,_=(d-l)/100;return _*60+l}function o7(a){var h=n9.exec(o9(a._i)),s;if(h){if(s=i9(h[4],h[3],h[2],h[5],h[6],h[7]),!s9(h[1],s,a))return;a._a=s,a._tzm=c9(h[8],h[9],h[10]),a._d=lm.apply(null,a._a),a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),ir(a).rfc2822=!0}else a._isValid=!1}function u9(a){var h=e9.exec(a._i);if(h!==null){a._d=new Date(+h[1]);return}if(a7(a),a._isValid===!1)delete a._isValid;else return;if(o7(a),a._isValid===!1)delete a._isValid;else return;a._strict?a._isValid=!1:rn.createFromInputFallback(a)}rn.createFromInputFallback=ks("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))});function op(a,h,s){return a!=null?a:h!=null?h:s}function l9(a){var h=new Date(rn.now());return a._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function Z6(a){var h,s,d=[],l,_,y;if(!a._d){for(l=l9(a),a._w&&a._a[Zc]==null&&a._a[zu]==null&&h9(a),a._dayOfYear!=null&&(y=op(a._a[za],l[za]),(a._dayOfYear>um(y)||a._dayOfYear===0)&&(ir(a)._overflowDayOfYear=!0),s=lm(y,0,a._dayOfYear),a._a[zu]=s.getUTCMonth(),a._a[Zc]=s.getUTCDate()),h=0;h<3&&a._a[h]==null;++h)a._a[h]=d[h]=l[h];for(;h<7;h++)a._a[h]=d[h]=a._a[h]==null?h===2?1:0:a._a[h];a._a[ca]===24&&a._a[ac]===0&&a._a[Wu]===0&&a._a[md]===0&&(a._nextDay=!0,a._a[ca]=0),a._d=(a._useUTC?lm:vk).apply(null,d),_=a._useUTC?a._d.getUTCDay():a._d.getDay(),a._tzm!=null&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[ca]=24),a._w&&typeof a._w.d!="undefined"&&a._w.d!==_&&(ir(a).weekdayMismatch=!0)}}function h9(a){var h,s,d,l,_,y,w,T,A;h=a._w,h.GG!=null||h.W!=null||h.E!=null?(_=1,y=4,s=op(h.GG,a._a[za],hm(ci(),1,4).year),d=op(h.W,1),l=op(h.E,1),(l<1||l>7)&&(T=!0)):(_=a._locale._week.dow,y=a._locale._week.doy,A=hm(ci(),_,y),s=op(h.gg,a._a[za],A.year),d=op(h.w,A.week),h.d!=null?(l=h.d,(l<0||l>6)&&(T=!0)):h.e!=null?(l=h.e+_,(h.e<0||h.e>6)&&(T=!0)):l=_),d<1||d>Hu(s,_,y)?ir(a)._overflowWeeks=!0:T!=null?ir(a)._overflowWeekday=!0:(w=Kw(s,d,l,_,y),a._a[za]=w.year,a._dayOfYear=w.dayOfYear)}rn.ISO_8601=function(){};rn.RFC_2822=function(){};function Q6(a){if(a._f===rn.ISO_8601){a7(a);return}if(a._f===rn.RFC_2822){o7(a);return}a._a=[],ir(a).empty=!0;var h=""+a._i,s,d,l,_,y,w=h.length,T=0,A;for(l=jw(a._f,a._locale).match(P6)||[],s=0;s<l.length;s++)_=l[s],d=(h.match(ek(_,a))||[])[0],d&&(y=h.substr(0,h.indexOf(d)),y.length>0&&ir(a).unusedInput.push(y),h=h.slice(h.indexOf(d)+d.length),T+=d.length),rp[_]?(d?ir(a).empty=!1:ir(a).unusedTokens.push(_),rk(_,d,a)):a._strict&&!d&&ir(a).unusedTokens.push(_);ir(a).charsLeftOver=w-T,h.length>0&&ir(a).unusedInput.push(h),a._a[ca]<=12&&ir(a).bigHour===!0&&a._a[ca]>0&&(ir(a).bigHour=void 0),ir(a).parsedDateParts=a._a.slice(0),ir(a).meridiem=a._meridiem,a._a[ca]=f9(a._locale,a._a[ca],a._meridiem),A=ir(a).era,A!==null&&(a._a[za]=a._locale.erasConvertYear(A,a._a[za])),Z6(a),G6(a)}function f9(a,h,s){var d;return s==null?h:a.meridiemHour!=null?a.meridiemHour(h,s):(a.isPM!=null&&(d=a.isPM(s),d&&h<12&&(h+=12),!d&&h===12&&(h=0)),h)}function d9(a){var h,s,d,l,_,y,w=!1;if(a._f.length===0){ir(a).invalidFormat=!0,a._d=new Date(NaN);return}for(l=0;l<a._f.length;l++)_=0,y=!1,h=L6({},a),a._useUTC!=null&&(h._useUTC=a._useUTC),h._f=a._f[l],Q6(h),N6(h)&&(y=!0),_+=ir(h).charsLeftOver,_+=ir(h).unusedTokens.length*10,ir(h).score=_,w?_<d&&(d=_,s=h):(d==null||_<d||y)&&(d=_,s=h,y&&(w=!0));gh(a,s||h)}function p9(a){if(!a._d){var h=j6(a._i),s=h.day===void 0?h.date:h.day;a._a=Rw([h.year,h.month,s,h.hour,h.minute,h.second,h.millisecond],function(d){return d&&parseInt(d,10)}),Z6(a)}}function g9(a){var h=new am(G6(s7(a)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function s7(a){var h=a._i,s=a._f;return a._locale=a._locale||$u(a._l),h===null||s===void 0&&h===""?Ub({nullInput:!0}):(typeof h=="string"&&(a._i=h=a._locale.preparse(h)),ic(h)?new am(G6(h)):(im(h)?a._d=h:rc(s)?d9(a):s?Q6(a):y9(a),N6(a)||(a._d=null),a))}function y9(a){var h=a._i;wo(h)?a._d=new Date(rn.now()):im(h)?a._d=new Date(h.valueOf()):typeof h=="string"?u9(a):rc(h)?(a._a=Rw(h.slice(0),function(s){return parseInt(s,10)}),Z6(a)):yd(h)?p9(a):Uu(h)?a._d=new Date(h):rn.createFromInputFallback(a)}function c7(a,h,s,d,l){var _={};return(h===!0||h===!1)&&(d=h,h=void 0),(s===!0||s===!1)&&(d=s,s=void 0),(yd(a)&&A6(a)||rc(a)&&a.length===0)&&(a=void 0),_._isAMomentObject=!0,_._useUTC=_._isUTC=l,_._l=s,_._i=a,_._f=h,_._strict=d,g9(_)}function ci(a,h,s,d){return c7(a,h,s,d,!1)}var m9=ks("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=ci.apply(null,arguments);return this.isValid()&&a.isValid()?a<this?this:a:Ub()}),v9=ks("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=ci.apply(null,arguments);return this.isValid()&&a.isValid()?a>this?this:a:Ub()});function u7(a,h){var s,d;if(h.length===1&&rc(h[0])&&(h=h[0]),!h.length)return ci();for(s=h[0],d=1;d<h.length;++d)(!h[d].isValid()||h[d][a](s))&&(s=h[d]);return s}function _9(){var a=[].slice.call(arguments,0);return u7("isBefore",a)}function b9(){var a=[].slice.call(arguments,0);return u7("isAfter",a)}var x9=function(){return Date.now?Date.now():+new Date},pm=["year","quarter","month","week","day","hour","minute","second","millisecond"];function w9(a){var h,s=!1,d;for(h in a)if(Cr(a,h)&&!(ji.call(pm,h)!==-1&&(a[h]==null||!isNaN(a[h]))))return!1;for(d=0;d<pm.length;++d)if(a[pm[d]]){if(s)return!1;parseFloat(a[pm[d]])!==dr(a[pm[d]])&&(s=!0)}return!0}function k9(){return this._isValid}function T9(){return oc(NaN)}function n4(a){var h=j6(a),s=h.year||0,d=h.quarter||0,l=h.month||0,_=h.week||h.isoWeek||0,y=h.day||0,w=h.hour||0,T=h.minute||0,A=h.second||0,L=h.millisecond||0;this._isValid=w9(h),this._milliseconds=+L+A*1e3+T*6e4+w*1e3*60*60,this._days=+y+_*7,this._months=+l+d*3+s*12,this._data={},this._locale=$u(),this._bubble()}function r4(a){return a instanceof n4}function J6(a){return a<0?Math.round(-1*a)*-1:Math.round(a)}function E9(a,h,s){var d=Math.min(a.length,h.length),l=Math.abs(a.length-h.length),_=0,y;for(y=0;y<d;y++)(s&&a[y]!==h[y]||!s&&dr(a[y])!==dr(h[y]))&&_++;return _+l}function l7(a,h){En(a,0,0,function(){var s=this.utcOffset(),d="+";return s<0&&(s=-s,d="-"),d+Xc(~~(s/60),2)+h+Xc(~~s%60,2)})}l7("Z",":");l7("ZZ","");cn("Z",Zb);cn("ZZ",Zb);Gr(["Z","ZZ"],function(a,h,s){s._useUTC=!0,s._tzm=K6(Zb,a)});var S9=/([\+\-]|\d\d)/gi;function K6(a,h){var s=(h||"").match(a),d,l,_;return s===null?null:(d=s[s.length-1]||[],l=(d+"").match(S9)||["-",0,0],_=+(l[1]*60)+dr(l[2]),_===0?0:l[0]==="+"?_:-_)}function tw(a,h){var s,d;return h._isUTC?(s=h.clone(),d=(ic(a)||im(a)?a.valueOf():ci(a).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+d),rn.updateOffset(s,!1),s):ci(a).local()}function ew(a){return-Math.round(a._d.getTimezoneOffset())}rn.updateOffset=function(){};function C9(a,h,s){var d=this._offset||0,l;if(!this.isValid())return a!=null?this:NaN;if(a!=null){if(typeof a=="string"){if(a=K6(Zb,a),a===null)return this}else Math.abs(a)<16&&!s&&(a=a*60);return!this._isUTC&&h&&(l=ew(this)),this._offset=a,this._isUTC=!0,l!=null&&this.add(l,"m"),d!==a&&(!h||this._changeInProgress?p7(this,oc(a-d,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,rn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?d:ew(this)}function M9(a,h){return a!=null?(typeof a!="string"&&(a=-a),this.utcOffset(a,h),this):-this.utcOffset()}function A9(a){return this.utcOffset(0,a)}function D9(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(ew(this),"m")),this}function N9(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var a=K6(K8,this._i);a!=null?this.utcOffset(a):this.utcOffset(0,!0)}return this}function O9(a){return this.isValid()?(a=a?ci(a).utcOffset():0,(this.utcOffset()-a)%60==0):!1}function B9(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function L9(){if(!wo(this._isDSTShifted))return this._isDSTShifted;var a={},h;return L6(a,this),a=s7(a),a._a?(h=a._isUTC?Vc(a._a):ci(a._a),this._isDSTShifted=this.isValid()&&E9(a._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function I9(){return this.isValid()?!this._isUTC:!1}function R9(){return this.isValid()?this._isUTC:!1}function h7(){return this.isValid()?this._isUTC&&this._offset===0:!1}var F9=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,P9=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function oc(a,h){var s=a,d=null,l,_,y;return r4(a)?s={ms:a._milliseconds,d:a._days,M:a._months}:Uu(a)||!isNaN(+a)?(s={},h?s[h]=+a:s.milliseconds=+a):(d=F9.exec(a))?(l=d[1]==="-"?-1:1,s={y:0,d:dr(d[Zc])*l,h:dr(d[ca])*l,m:dr(d[ac])*l,s:dr(d[Wu])*l,ms:dr(J6(d[md]*1e3))*l}):(d=P9.exec(a))?(l=d[1]==="-"?-1:1,s={y:vd(d[2],l),M:vd(d[3],l),w:vd(d[4],l),d:vd(d[5],l),h:vd(d[6],l),m:vd(d[7],l),s:vd(d[8],l)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(y=Y9(ci(s.from),ci(s.to)),s={},s.ms=y.milliseconds,s.M=y.months),_=new n4(s),r4(a)&&Cr(a,"_locale")&&(_._locale=a._locale),r4(a)&&Cr(a,"_isValid")&&(_._isValid=a._isValid),_}oc.fn=n4.prototype;oc.invalid=T9;function vd(a,h){var s=a&&parseFloat(a.replace(",","."));return(isNaN(s)?0:s)*h}function f7(a,h){var s={};return s.months=h.month()-a.month()+(h.year()-a.year())*12,a.clone().add(s.months,"M").isAfter(h)&&--s.months,s.milliseconds=+h-+a.clone().add(s.months,"M"),s}function Y9(a,h){var s;return a.isValid()&&h.isValid()?(h=tw(h,a),a.isBefore(h)?s=f7(a,h):(s=f7(h,a),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function d7(a,h){return function(s,d){var l,_;return d!==null&&!isNaN(+d)&&(Yw(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),_=s,s=d,d=_),l=oc(s,d),p7(this,l,a),this}}function p7(a,h,s,d){var l=h._milliseconds,_=J6(h._days),y=J6(h._months);!a.isValid()||(d=d==null?!0:d,y&&Xw(a,$b(a,"Month")+y*s),_&&zw(a,"Date",$b(a,"Date")+_*s),l&&a._d.setTime(a._d.valueOf()+l*s),d&&rn.updateOffset(a,_||y))}var j9=d7(1,"add"),U9=d7(-1,"subtract");function g7(a){return typeof a=="string"||a instanceof String}function z9(a){return ic(a)||im(a)||g7(a)||Uu(a)||H9(a)||W9(a)||a===null||a===void 0}function W9(a){var h=yd(a)&&!A6(a),s=!1,d=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l,_;for(l=0;l<d.length;l+=1)_=d[l],s=s||Cr(a,_);return h&&s}function H9(a){var h=rc(a),s=!1;return h&&(s=a.filter(function(d){return!Uu(d)&&g7(a)}).length===0),h&&s}function $9(a){var h=yd(a)&&!A6(a),s=!1,d=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],l,_;for(l=0;l<d.length;l+=1)_=d[l],s=s||Cr(a,_);return h&&s}function q9(a,h){var s=a.diff(h,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function V9(a,h){arguments.length===1&&(arguments[0]?z9(arguments[0])?(a=arguments[0],h=void 0):$9(arguments[0])&&(h=arguments[0],a=void 0):(a=void 0,h=void 0));var s=a||ci(),d=tw(s,this).startOf("day"),l=rn.calendarFormat(this,d)||"sameElse",_=h&&(Gc(h[l])?h[l].call(this,s):h[l]);return this.format(_||this.localeData().calendar(l,this,ci(s)))}function G9(){return new am(this)}function X9(a,h){var s=ic(a)?a:ci(a);return this.isValid()&&s.isValid()?(h=Ts(h)||"millisecond",h==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(h).valueOf()):!1}function Z9(a,h){var s=ic(a)?a:ci(a);return this.isValid()&&s.isValid()?(h=Ts(h)||"millisecond",h==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(h).valueOf()<s.valueOf()):!1}function Q9(a,h,s,d){var l=ic(a)?a:ci(a),_=ic(h)?h:ci(h);return this.isValid()&&l.isValid()&&_.isValid()?(d=d||"()",(d[0]==="("?this.isAfter(l,s):!this.isBefore(l,s))&&(d[1]===")"?this.isBefore(_,s):!this.isAfter(_,s))):!1}function J9(a,h){var s=ic(a)?a:ci(a),d;return this.isValid()&&s.isValid()?(h=Ts(h)||"millisecond",h==="millisecond"?this.valueOf()===s.valueOf():(d=s.valueOf(),this.clone().startOf(h).valueOf()<=d&&d<=this.clone().endOf(h).valueOf())):!1}function K9(a,h){return this.isSame(a,h)||this.isAfter(a,h)}function tT(a,h){return this.isSame(a,h)||this.isBefore(a,h)}function eT(a,h,s){var d,l,_;if(!this.isValid())return NaN;if(d=tw(a,this),!d.isValid())return NaN;switch(l=(d.utcOffset()-this.utcOffset())*6e4,h=Ts(h),h){case"year":_=i4(this,d)/12;break;case"month":_=i4(this,d);break;case"quarter":_=i4(this,d)/3;break;case"second":_=(this-d)/1e3;break;case"minute":_=(this-d)/6e4;break;case"hour":_=(this-d)/36e5;break;case"day":_=(this-d-l)/864e5;break;case"week":_=(this-d-l)/6048e5;break;default:_=this-d}return s?_:Es(_)}function i4(a,h){if(a.date()<h.date())return-i4(h,a);var s=(h.year()-a.year())*12+(h.month()-a.month()),d=a.clone().add(s,"months"),l,_;return h-d<0?(l=a.clone().add(s-1,"months"),_=(h-d)/(d-l)):(l=a.clone().add(s+1,"months"),_=(h-d)/(l-d)),-(s+_)||0}rn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";rn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function nT(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function rT(a){if(!this.isValid())return null;var h=a!==!0,s=h?this.clone().utc():this;return s.year()<0||s.year()>9999?Wb(s,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Gc(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Wb(s,"Z")):Wb(s,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function iT(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var a="moment",h="",s,d,l,_;return this.isLocal()||(a=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),s="["+a+'("]',d=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",l="-MM-DD[T]HH:mm:ss.SSS",_=h+'[")]',this.format(s+d+l+_)}function aT(a){a||(a=this.isUtc()?rn.defaultFormatUtc:rn.defaultFormat);var h=Wb(this,a);return this.localeData().postformat(h)}function oT(a,h){return this.isValid()&&(ic(a)&&a.isValid()||ci(a).isValid())?oc({to:this,from:a}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function sT(a){return this.from(ci(),a)}function cT(a,h){return this.isValid()&&(ic(a)&&a.isValid()||ci(a).isValid())?oc({from:this,to:a}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function uT(a){return this.to(ci(),a)}function y7(a){var h;return a===void 0?this._locale._abbr:(h=$u(a),h!=null&&(this._locale=h),this)}var m7=ks("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return a===void 0?this.localeData():this.locale(a)});function v7(){return this._locale}var a4=1e3,sp=60*a4,o4=60*sp,_7=(365*400+97)*24*o4;function cp(a,h){return(a%h+h)%h}function b7(a,h,s){return a<100&&a>=0?new Date(a+400,h,s)-_7:new Date(a,h,s).valueOf()}function x7(a,h,s){return a<100&&a>=0?Date.UTC(a+400,h,s)-_7:Date.UTC(a,h,s)}function lT(a){var h,s;if(a=Ts(a),a===void 0||a==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?x7:b7,a){case"year":h=s(this.year(),0,1);break;case"quarter":h=s(this.year(),this.month()-this.month()%3,1);break;case"month":h=s(this.year(),this.month(),1);break;case"week":h=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=s(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=cp(h+(this._isUTC?0:this.utcOffset()*sp),o4);break;case"minute":h=this._d.valueOf(),h-=cp(h,sp);break;case"second":h=this._d.valueOf(),h-=cp(h,a4);break}return this._d.setTime(h),rn.updateOffset(this,!0),this}function hT(a){var h,s;if(a=Ts(a),a===void 0||a==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?x7:b7,a){case"year":h=s(this.year()+1,0,1)-1;break;case"quarter":h=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=s(this.year(),this.month()+1,1)-1;break;case"week":h=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=o4-cp(h+(this._isUTC?0:this.utcOffset()*sp),o4)-1;break;case"minute":h=this._d.valueOf(),h+=sp-cp(h,sp)-1;break;case"second":h=this._d.valueOf(),h+=a4-cp(h,a4)-1;break}return this._d.setTime(h),rn.updateOffset(this,!0),this}function fT(){return this._d.valueOf()-(this._offset||0)*6e4}function dT(){return Math.floor(this.valueOf()/1e3)}function pT(){return new Date(this.valueOf())}function gT(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function yT(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function mT(){return this.isValid()?this.toISOString():null}function vT(){return N6(this)}function _T(){return gh({},ir(this))}function bT(){return ir(this).overflow}function xT(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}En("N",0,0,"eraAbbr");En("NN",0,0,"eraAbbr");En("NNN",0,0,"eraAbbr");En("NNNN",0,0,"eraName");En("NNNNN",0,0,"eraNarrow");En("y",["y",1],"yo","eraYear");En("y",["yy",2],0,"eraYear");En("y",["yyy",3],0,"eraYear");En("y",["yyyy",4],0,"eraYear");cn("N",nw);cn("NN",nw);cn("NNN",nw);cn("NNNN",OT);cn("NNNNN",BT);Gr(["N","NN","NNN","NNNN","NNNNN"],function(a,h,s,d){var l=s._locale.erasParse(a,d,s._strict);l?ir(s).era=l:ir(s).invalidEra=a});cn("y",ap);cn("yy",ap);cn("yyy",ap);cn("yyyy",ap);cn("yo",LT);Gr(["y","yy","yyy","yyyy"],za);Gr(["yo"],function(a,h,s,d){var l;s._locale._eraYearOrdinalRegex&&(l=a.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?h[za]=s._locale.eraYearOrdinalParse(a,l):h[za]=parseInt(a,10)});function wT(a,h){var s,d,l,_=this._eras||$u("en")._eras;for(s=0,d=_.length;s<d;++s){switch(typeof _[s].since){case"string":l=rn(_[s].since).startOf("day"),_[s].since=l.valueOf();break}switch(typeof _[s].until){case"undefined":_[s].until=1/0;break;case"string":l=rn(_[s].until).startOf("day").valueOf(),_[s].until=l.valueOf();break}}return _}function kT(a,h,s){var d,l,_=this.eras(),y,w,T;for(a=a.toUpperCase(),d=0,l=_.length;d<l;++d)if(y=_[d].name.toUpperCase(),w=_[d].abbr.toUpperCase(),T=_[d].narrow.toUpperCase(),s)switch(h){case"N":case"NN":case"NNN":if(w===a)return _[d];break;case"NNNN":if(y===a)return _[d];break;case"NNNNN":if(T===a)return _[d];break}else if([y,w,T].indexOf(a)>=0)return _[d]}function TT(a,h){var s=a.since<=a.until?1:-1;return h===void 0?rn(a.since).year():rn(a.since).year()+(h-a.offset)*s}function ET(){var a,h,s,d=this.localeData().eras();for(a=0,h=d.length;a<h;++a)if(s=this.clone().startOf("day").valueOf(),d[a].since<=s&&s<=d[a].until||d[a].until<=s&&s<=d[a].since)return d[a].name;return""}function ST(){var a,h,s,d=this.localeData().eras();for(a=0,h=d.length;a<h;++a)if(s=this.clone().startOf("day").valueOf(),d[a].since<=s&&s<=d[a].until||d[a].until<=s&&s<=d[a].since)return d[a].narrow;return""}function CT(){var a,h,s,d=this.localeData().eras();for(a=0,h=d.length;a<h;++a)if(s=this.clone().startOf("day").valueOf(),d[a].since<=s&&s<=d[a].until||d[a].until<=s&&s<=d[a].since)return d[a].abbr;return""}function MT(){var a,h,s,d,l=this.localeData().eras();for(a=0,h=l.length;a<h;++a)if(s=l[a].since<=l[a].until?1:-1,d=this.clone().startOf("day").valueOf(),l[a].since<=d&&d<=l[a].until||l[a].until<=d&&d<=l[a].since)return(this.year()-rn(l[a].since).year())*s+l[a].offset;return this.year()}function AT(a){return Cr(this,"_erasNameRegex")||rw.call(this),a?this._erasNameRegex:this._erasRegex}function DT(a){return Cr(this,"_erasAbbrRegex")||rw.call(this),a?this._erasAbbrRegex:this._erasRegex}function NT(a){return Cr(this,"_erasNarrowRegex")||rw.call(this),a?this._erasNarrowRegex:this._erasRegex}function nw(a,h){return h.erasAbbrRegex(a)}function OT(a,h){return h.erasNameRegex(a)}function BT(a,h){return h.erasNarrowRegex(a)}function LT(a,h){return h._eraYearOrdinalRegex||ap}function rw(){var a=[],h=[],s=[],d=[],l,_,y=this.eras();for(l=0,_=y.length;l<_;++l)h.push(Go(y[l].name)),a.push(Go(y[l].abbr)),s.push(Go(y[l].narrow)),d.push(Go(y[l].name)),d.push(Go(y[l].abbr)),d.push(Go(y[l].narrow));this._erasRegex=new RegExp("^("+d.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}En(0,["gg",2],0,function(){return this.weekYear()%100});En(0,["GG",2],0,function(){return this.isoWeekYear()%100});function s4(a,h){En(0,[a,a.length],0,h)}s4("gggg","weekYear");s4("ggggg","weekYear");s4("GGGG","isoWeekYear");s4("GGGGG","isoWeekYear");ja("weekYear","gg");ja("isoWeekYear","GG");Ua("weekYear",1);Ua("isoWeekYear",1);cn("G",Xb);cn("g",Xb);cn("GG",si,Vo);cn("gg",si,Vo);cn("GGGG",z6,U6);cn("gggg",z6,U6);cn("GGGGG",Gb,qb);cn("ggggg",Gb,qb);cm(["gggg","ggggg","GGGG","GGGGG"],function(a,h,s,d){h[d.substr(0,2)]=dr(a)});cm(["gg","GG"],function(a,h,s,d){h[d]=rn.parseTwoDigitYear(a)});function IT(a){return w7.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function RT(a){return w7.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function FT(){return Hu(this.year(),1,4)}function PT(){return Hu(this.isoWeekYear(),1,4)}function YT(){var a=this.localeData()._week;return Hu(this.year(),a.dow,a.doy)}function jT(){var a=this.localeData()._week;return Hu(this.weekYear(),a.dow,a.doy)}function w7(a,h,s,d,l){var _;return a==null?hm(this,d,l).year:(_=Hu(a,d,l),h>_&&(h=_),UT.call(this,a,h,s,d,l))}function UT(a,h,s,d,l){var _=Kw(a,h,s,d,l),y=lm(_.year,0,_.dayOfYear);return this.year(y.getUTCFullYear()),this.month(y.getUTCMonth()),this.date(y.getUTCDate()),this}En("Q",0,"Qo","quarter");ja("quarter","Q");Ua("quarter",7);cn("Q",Ww);Gr("Q",function(a,h){h[zu]=(dr(a)-1)*3});function zT(a){return a==null?Math.ceil((this.month()+1)/3):this.month((a-1)*3+this.month()%3)}En("D",["DD",2],"Do","date");ja("date","D");Ua("date",9);cn("D",si);cn("DD",si,Vo);cn("Do",function(a,h){return a?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient});Gr(["D","DD"],Zc);Gr("Do",function(a,h){h[Zc]=dr(a.match(si)[0])});var k7=ip("Date",!0);En("DDD",["DDDD",3],"DDDo","dayOfYear");ja("dayOfYear","DDD");Ua("dayOfYear",4);cn("DDD",Vb);cn("DDDD",Hw);Gr(["DDD","DDDD"],function(a,h,s){s._dayOfYear=dr(a)});function WT(a){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return a==null?h:this.add(a-h,"d")}En("m",["mm",2],0,"minute");ja("minute","m");Ua("minute",14);cn("m",si);cn("mm",si,Vo);Gr(["m","mm"],ac);var HT=ip("Minutes",!1);En("s",["ss",2],0,"second");ja("second","s");Ua("second",15);cn("s",si);cn("ss",si,Vo);Gr(["s","ss"],Wu);var $T=ip("Seconds",!1);En("S",0,0,function(){return~~(this.millisecond()/100)});En(0,["SS",2],0,function(){return~~(this.millisecond()/10)});En(0,["SSS",3],0,"millisecond");En(0,["SSSS",4],0,function(){return this.millisecond()*10});En(0,["SSSSS",5],0,function(){return this.millisecond()*100});En(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});En(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});En(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});En(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ja("millisecond","ms");Ua("millisecond",16);cn("S",Vb,Ww);cn("SS",Vb,Vo);cn("SSS",Vb,Hw);var mh,T7;for(mh="SSSS";mh.length<=9;mh+="S")cn(mh,ap);function qT(a,h){h[md]=dr(("0."+a)*1e3)}for(mh="S";mh.length<=9;mh+="S")Gr(mh,qT);T7=ip("Milliseconds",!1);En("z",0,0,"zoneAbbr");En("zz",0,0,"zoneName");function VT(){return this._isUTC?"UTC":""}function GT(){return this._isUTC?"Coordinated Universal Time":""}var Oe=am.prototype;Oe.add=j9;Oe.calendar=V9;Oe.clone=G9;Oe.diff=eT;Oe.endOf=hT;Oe.format=aT;Oe.from=oT;Oe.fromNow=sT;Oe.to=cT;Oe.toNow=uT;Oe.get=Q8;Oe.invalidAt=bT;Oe.isAfter=X9;Oe.isBefore=Z9;Oe.isBetween=Q9;Oe.isSame=J9;Oe.isSameOrAfter=K9;Oe.isSameOrBefore=tT;Oe.isValid=vT;Oe.lang=m7;Oe.locale=y7;Oe.localeData=v7;Oe.max=v9;Oe.min=m9;Oe.parsingFlags=_T;Oe.set=J8;Oe.startOf=lT;Oe.subtract=U9;Oe.toArray=gT;Oe.toObject=yT;Oe.toDate=pT;Oe.toISOString=rT;Oe.inspect=iT;typeof Symbol!="undefined"&&Symbol.for!=null&&(Oe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Oe.toJSON=mT;Oe.toString=nT;Oe.unix=dT;Oe.valueOf=fT;Oe.creationData=xT;Oe.eraName=ET;Oe.eraNarrow=ST;Oe.eraAbbr=CT;Oe.eraYear=MT;Oe.year=Jw;Oe.isLeapYear=mk;Oe.weekYear=IT;Oe.isoWeekYear=RT;Oe.quarter=Oe.quarters=zT;Oe.month=Zw;Oe.daysInMonth=pk;Oe.week=Oe.weeks=kk;Oe.isoWeek=Oe.isoWeeks=Tk;Oe.weeksInYear=YT;Oe.weeksInWeekYear=jT;Oe.isoWeeksInYear=FT;Oe.isoWeeksInISOWeekYear=PT;Oe.date=k7;Oe.day=Oe.days=Fk;Oe.weekday=Pk;Oe.isoWeekday=Yk;Oe.dayOfYear=WT;Oe.hour=Oe.hours=qk;Oe.minute=Oe.minutes=HT;Oe.second=Oe.seconds=$T;Oe.millisecond=Oe.milliseconds=T7;Oe.utcOffset=C9;Oe.utc=A9;Oe.local=D9;Oe.parseZone=N9;Oe.hasAlignedHourOffset=O9;Oe.isDST=B9;Oe.isLocal=I9;Oe.isUtcOffset=R9;Oe.isUtc=h7;Oe.isUTC=h7;Oe.zoneAbbr=VT;Oe.zoneName=GT;Oe.dates=ks("dates accessor is deprecated. Use date instead.",k7);Oe.months=ks("months accessor is deprecated. Use month instead",Zw);Oe.years=ks("years accessor is deprecated. Use year instead",Jw);Oe.zone=ks("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",M9);Oe.isDSTShifted=ks("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",L9);function XT(a){return ci(a*1e3)}function ZT(){return ci.apply(null,arguments).parseZone()}function E7(a){return a}var Mr=R6.prototype;Mr.calendar=F8;Mr.longDateFormat=U8;Mr.invalidDate=W8;Mr.ordinal=q8;Mr.preparse=E7;Mr.postformat=E7;Mr.relativeTime=G8;Mr.pastFuture=X8;Mr.set=I8;Mr.eras=wT;Mr.erasParse=kT;Mr.erasConvertYear=TT;Mr.erasAbbrRegex=DT;Mr.erasNameRegex=AT;Mr.erasNarrowRegex=NT;Mr.months=lk;Mr.monthsShort=hk;Mr.monthsParse=dk;Mr.monthsRegex=yk;Mr.monthsShortRegex=gk;Mr.week=_k;Mr.firstDayOfYear=wk;Mr.firstDayOfWeek=xk;Mr.weekdays=Ok;Mr.weekdaysMin=Lk;Mr.weekdaysShort=Bk;Mr.weekdaysParse=Rk;Mr.weekdaysRegex=jk;Mr.weekdaysShortRegex=Uk;Mr.weekdaysMinRegex=zk;Mr.isPM=Hk;Mr.meridiem=Vk;function c4(a,h,s,d){var l=$u(),_=Vc().set(d,h);return l[s](_,a)}function S7(a,h,s){if(Uu(a)&&(h=a,a=void 0),a=a||"",h!=null)return c4(a,h,s,"month");var d,l=[];for(d=0;d<12;d++)l[d]=c4(a,d,s,"month");return l}function iw(a,h,s,d){typeof a=="boolean"?(Uu(h)&&(s=h,h=void 0),h=h||""):(h=a,s=h,a=!1,Uu(h)&&(s=h,h=void 0),h=h||"");var l=$u(),_=a?l._week.dow:0,y,w=[];if(s!=null)return c4(h,(s+_)%7,d,"day");for(y=0;y<7;y++)w[y]=c4(h,(y+_)%7,d,"day");return w}function QT(a,h){return S7(a,h,"months")}function JT(a,h){return S7(a,h,"monthsShort")}function KT(a,h,s){return iw(a,h,s,"weekdays")}function tE(a,h,s){return iw(a,h,s,"weekdaysShort")}function eE(a,h,s){return iw(a,h,s,"weekdaysMin")}yh("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var h=a%10,s=dr(a%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return a+s}});rn.lang=ks("moment.lang is deprecated. Use moment.locale instead.",yh);rn.langData=ks("moment.langData is deprecated. Use moment.localeData instead.",$u);var qu=Math.abs;function nE(){var a=this._data;return this._milliseconds=qu(this._milliseconds),this._days=qu(this._days),this._months=qu(this._months),a.milliseconds=qu(a.milliseconds),a.seconds=qu(a.seconds),a.minutes=qu(a.minutes),a.hours=qu(a.hours),a.months=qu(a.months),a.years=qu(a.years),this}function C7(a,h,s,d){var l=oc(h,s);return a._milliseconds+=d*l._milliseconds,a._days+=d*l._days,a._months+=d*l._months,a._bubble()}function rE(a,h){return C7(this,a,h,1)}function iE(a,h){return C7(this,a,h,-1)}function M7(a){return a<0?Math.floor(a):Math.ceil(a)}function aE(){var a=this._milliseconds,h=this._days,s=this._months,d=this._data,l,_,y,w,T;return a>=0&&h>=0&&s>=0||a<=0&&h<=0&&s<=0||(a+=M7(aw(s)+h)*864e5,h=0,s=0),d.milliseconds=a%1e3,l=Es(a/1e3),d.seconds=l%60,_=Es(l/60),d.minutes=_%60,y=Es(_/60),d.hours=y%24,h+=Es(y/24),T=Es(A7(h)),s+=T,h-=M7(aw(T)),w=Es(s/12),s%=12,d.days=h,d.months=s,d.years=w,this}function A7(a){return a*4800/146097}function aw(a){return a*146097/4800}function oE(a){if(!this.isValid())return NaN;var h,s,d=this._milliseconds;if(a=Ts(a),a==="month"||a==="quarter"||a==="year")switch(h=this._days+d/864e5,s=this._months+A7(h),a){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(h=this._days+Math.round(aw(this._months)),a){case"week":return h/7+d/6048e5;case"day":return h+d/864e5;case"hour":return h*24+d/36e5;case"minute":return h*1440+d/6e4;case"second":return h*86400+d/1e3;case"millisecond":return Math.floor(h*864e5)+d;default:throw new Error("Unknown unit "+a)}}function sE(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+dr(this._months/12)*31536e6:NaN}function Vu(a){return function(){return this.as(a)}}var cE=Vu("ms"),uE=Vu("s"),lE=Vu("m"),hE=Vu("h"),fE=Vu("d"),dE=Vu("w"),pE=Vu("M"),gE=Vu("Q"),yE=Vu("y");function mE(){return oc(this)}function vE(a){return a=Ts(a),this.isValid()?this[a+"s"]():NaN}function _d(a){return function(){return this.isValid()?this._data[a]:NaN}}var _E=_d("milliseconds"),bE=_d("seconds"),xE=_d("minutes"),wE=_d("hours"),kE=_d("days"),TE=_d("months"),EE=_d("years");function SE(){return Es(this.days()/7)}var Gu=Math.round,up={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function CE(a,h,s,d,l){return l.relativeTime(h||1,!!s,a,d)}function ME(a,h,s,d){var l=oc(a).abs(),_=Gu(l.as("s")),y=Gu(l.as("m")),w=Gu(l.as("h")),T=Gu(l.as("d")),A=Gu(l.as("M")),L=Gu(l.as("w")),N=Gu(l.as("y")),P=_<=s.ss&&["s",_]||_<s.s&&["ss",_]||y<=1&&["m"]||y<s.m&&["mm",y]||w<=1&&["h"]||w<s.h&&["hh",w]||T<=1&&["d"]||T<s.d&&["dd",T];return s.w!=null&&(P=P||L<=1&&["w"]||L<s.w&&["ww",L]),P=P||A<=1&&["M"]||A<s.M&&["MM",A]||N<=1&&["y"]||["yy",N],P[2]=h,P[3]=+a>0,P[4]=d,CE.apply(null,P)}function AE(a){return a===void 0?Gu:typeof a=="function"?(Gu=a,!0):!1}function DE(a,h){return up[a]===void 0?!1:h===void 0?up[a]:(up[a]=h,a==="s"&&(up.ss=h-1),!0)}function NE(a,h){if(!this.isValid())return this.localeData().invalidDate();var s=!1,d=up,l,_;return typeof a=="object"&&(h=a,a=!1),typeof a=="boolean"&&(s=a),typeof h=="object"&&(d=Object.assign({},up,h),h.s!=null&&h.ss==null&&(d.ss=h.s-1)),l=this.localeData(),_=ME(this,!s,d,l),s&&(_=l.pastFuture(+this,_)),l.postformat(_)}var ow=Math.abs;function lp(a){return(a>0)-(a<0)||+a}function u4(){if(!this.isValid())return this.localeData().invalidDate();var a=ow(this._milliseconds)/1e3,h=ow(this._days),s=ow(this._months),d,l,_,y,w=this.asSeconds(),T,A,L,N;return w?(d=Es(a/60),l=Es(d/60),a%=60,d%=60,_=Es(s/12),s%=12,y=a?a.toFixed(3).replace(/\.?0+$/,""):"",T=w<0?"-":"",A=lp(this._months)!==lp(w)?"-":"",L=lp(this._days)!==lp(w)?"-":"",N=lp(this._milliseconds)!==lp(w)?"-":"",T+"P"+(_?A+_+"Y":"")+(s?A+s+"M":"")+(h?L+h+"D":"")+(l||d||a?"T":"")+(l?N+l+"H":"")+(d?N+d+"M":"")+(a?N+y+"S":"")):"P0D"}var Er=n4.prototype;Er.isValid=k9;Er.abs=nE;Er.add=rE;Er.subtract=iE;Er.as=oE;Er.asMilliseconds=cE;Er.asSeconds=uE;Er.asMinutes=lE;Er.asHours=hE;Er.asDays=fE;Er.asWeeks=dE;Er.asMonths=pE;Er.asQuarters=gE;Er.asYears=yE;Er.valueOf=sE;Er._bubble=aE;Er.clone=mE;Er.get=vE;Er.milliseconds=_E;Er.seconds=bE;Er.minutes=xE;Er.hours=wE;Er.days=kE;Er.weeks=SE;Er.months=TE;Er.years=EE;Er.humanize=NE;Er.toISOString=u4;Er.toString=u4;Er.toJSON=u4;Er.locale=y7;Er.localeData=v7;Er.toIsoString=ks("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",u4);Er.lang=m7;En("X",0,0,"unix");En("x",0,0,"valueOf");cn("x",Xb);cn("X",tk);Gr("X",function(a,h,s){s._d=new Date(parseFloat(a)*1e3)});Gr("x",function(a,h,s){s._d=new Date(dr(a))});//! moment.js
|
|
rn.version="2.29.1";B8(ci);rn.fn=Oe;rn.min=_9;rn.max=b9;rn.now=x9;rn.utc=Vc;rn.unix=XT;rn.months=QT;rn.isDate=im;rn.locale=yh;rn.invalid=Ub;rn.duration=oc;rn.isMoment=ic;rn.weekdays=KT;rn.parseZone=ZT;rn.localeData=$u;rn.isDuration=r4;rn.monthsShort=JT;rn.weekdaysMin=eE;rn.defineLocale=V6;rn.updateLocale=Zk;rn.locales=Qk;rn.weekdaysShort=tE;rn.normalizeUnits=Ts;rn.relativeTimeRounding=AE;rn.relativeTimeThreshold=DE;rn.calendarFormat=q9;rn.prototype=Oe;rn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var OE={633:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(zt,Zt,rt,ae){for(rt=rt||{},ae=zt.length;ae--;rt[zt[ae]]=Zt);return rt},_=[1,6],y=[1,7],w=[1,8],T=[1,9],A=[1,12],L=[1,11],N=[1,15,24],P=[1,19],W=[1,31],H=[1,34],V=[1,32],X=[1,33],J=[1,35],ht=[1,36],tt=[1,37],kt=[1,38],gt=[1,41],ft=[1,42],et=[1,43],K=[1,44],dt=[15,24],Ot=[1,56],Tt=[1,57],lt=[1,58],It=[1,59],Ft=[1,60],ue=[1,61],ye=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],de=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],le=[7,8,9,10,15,18,22,24],Nt=[47,77,78,79,80],jt=[47,54,55,77,78,79,80],Kt=[47,50,51,52,53,77,78,79,80],pe=[15,24,31],ge=[1,93],Pt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(zt,Zt,rt,ae,Ct,Mt,re){var Dt=Mt.length-1;switch(Ct){case 4:ae.setDirection("TB");break;case 5:ae.setDirection("BT");break;case 6:ae.setDirection("RL");break;case 7:ae.setDirection("LR");break;case 11:ae.parseDirective("%%{","open_directive");break;case 12:ae.parseDirective(Mt[Dt],"type_directive");break;case 13:Mt[Dt]=Mt[Dt].trim().replace(/'/g,'"'),ae.parseDirective(Mt[Dt],"arg_directive");break;case 14:ae.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=Mt[Dt];break;case 21:this.$=Mt[Dt-1]+Mt[Dt];break;case 22:case 23:this.$=Mt[Dt-1]+"~"+Mt[Dt];break;case 24:ae.addRelation(Mt[Dt]);break;case 25:Mt[Dt-1].title=ae.cleanupLabel(Mt[Dt]),ae.addRelation(Mt[Dt-1]);break;case 33:ae.addClass(Mt[Dt]);break;case 34:ae.addClass(Mt[Dt-2]),ae.setCssClass(Mt[Dt-2],Mt[Dt]);break;case 35:ae.addClass(Mt[Dt-3]),ae.addMembers(Mt[Dt-3],Mt[Dt-1]);break;case 36:ae.addClass(Mt[Dt-5]),ae.setCssClass(Mt[Dt-5],Mt[Dt-3]),ae.addMembers(Mt[Dt-5],Mt[Dt-1]);break;case 37:ae.addAnnotation(Mt[Dt],Mt[Dt-2]);break;case 38:this.$=[Mt[Dt]];break;case 39:Mt[Dt].push(Mt[Dt-1]),this.$=Mt[Dt];break;case 40:break;case 41:ae.addMember(Mt[Dt-1],ae.cleanupLabel(Mt[Dt]));break;case 42:case 43:break;case 44:this.$={id1:Mt[Dt-2],id2:Mt[Dt],relation:Mt[Dt-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:Mt[Dt-3],id2:Mt[Dt],relation:Mt[Dt-1],relationTitle1:Mt[Dt-2],relationTitle2:"none"};break;case 46:this.$={id1:Mt[Dt-3],id2:Mt[Dt],relation:Mt[Dt-2],relationTitle1:"none",relationTitle2:Mt[Dt-1]};break;case 47:this.$={id1:Mt[Dt-4],id2:Mt[Dt],relation:Mt[Dt-2],relationTitle1:Mt[Dt-3],relationTitle2:Mt[Dt-1]};break;case 48:this.$={type1:Mt[Dt-2],type2:Mt[Dt],lineType:Mt[Dt-1]};break;case 49:this.$={type1:"none",type2:Mt[Dt],lineType:Mt[Dt-1]};break;case 50:this.$={type1:Mt[Dt-1],type2:"none",lineType:Mt[Dt]};break;case 51:this.$={type1:"none",type2:"none",lineType:Mt[Dt]};break;case 52:this.$=ae.relationType.AGGREGATION;break;case 53:this.$=ae.relationType.EXTENSION;break;case 54:this.$=ae.relationType.COMPOSITION;break;case 55:this.$=ae.relationType.DEPENDENCY;break;case 56:this.$=ae.lineType.LINE;break;case 57:this.$=ae.lineType.DOTTED_LINE;break;case 58:case 64:this.$=Mt[Dt-2],ae.setClickEvent(Mt[Dt-1],Mt[Dt]);break;case 59:case 65:this.$=Mt[Dt-3],ae.setClickEvent(Mt[Dt-2],Mt[Dt-1]),ae.setTooltip(Mt[Dt-2],Mt[Dt]);break;case 60:case 68:this.$=Mt[Dt-2],ae.setLink(Mt[Dt-1],Mt[Dt]);break;case 61:this.$=Mt[Dt-3],ae.setLink(Mt[Dt-2],Mt[Dt-1],Mt[Dt]);break;case 62:case 70:this.$=Mt[Dt-3],ae.setLink(Mt[Dt-2],Mt[Dt-1]),ae.setTooltip(Mt[Dt-2],Mt[Dt]);break;case 63:case 71:this.$=Mt[Dt-4],ae.setLink(Mt[Dt-3],Mt[Dt-2],Mt[Dt]),ae.setTooltip(Mt[Dt-3],Mt[Dt-1]);break;case 66:this.$=Mt[Dt-3],ae.setClickEvent(Mt[Dt-2],Mt[Dt-1],Mt[Dt]);break;case 67:this.$=Mt[Dt-4],ae.setClickEvent(Mt[Dt-3],Mt[Dt-2],Mt[Dt-1]),ae.setTooltip(Mt[Dt-3],Mt[Dt]);break;case 69:this.$=Mt[Dt-3],ae.setLink(Mt[Dt-2],Mt[Dt-1],Mt[Dt]);break;case 72:ae.setCssClass(Mt[Dt-1],Mt[Dt])}},table:[{3:1,4:2,5:3,6:4,7:_,8:y,9:w,10:T,11:5,12:10,18:A,22:L},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:_,8:y,9:w,10:T,11:5,12:10,18:A,22:L},{1:[2,8]},l(N,[2,4]),l(N,[2,5]),l(N,[2,6]),l(N,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:P},l([16,21],[2,12]),{5:29,6:28,7:_,8:y,9:w,10:T,12:10,18:A,23:20,25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:W,42:H,44:V,45:X,56:J,57:ht,59:tt,63:kt,77:gt,78:ft,79:et,80:K},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},l(dt,[2,24],{31:[1,50]}),l(dt,[2,26]),l(dt,[2,27]),l(dt,[2,28]),l(dt,[2,29]),l(dt,[2,30]),l(dt,[2,31]),l(dt,[2,32]),l(dt,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:Ot,51:Tt,52:lt,53:It,54:Ft,55:ue}),{26:62,27:39,28:40,77:gt,78:ft,79:et,80:K},l(dt,[2,42]),l(dt,[2,43]),{27:63,77:gt,78:ft,79:et},{26:64,27:39,28:40,77:gt,78:ft,79:et,80:K},{26:65,27:39,28:40,77:gt,78:ft,79:et,80:K},{26:66,27:39,28:40,77:gt,78:ft,79:et,80:K},{47:[1,67]},l(ye,[2,19],{27:39,28:40,26:68,29:[1,69],77:gt,78:ft,79:et,80:K}),l(ye,[2,20],{29:[1,70]}),l(de,[2,86]),l(de,[2,87]),l(de,[2,88]),l([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),l(le,[2,9]),{14:71,21:P},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:_,8:y,9:w,10:T,12:10,18:A,23:72,24:[2,17],25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:W,42:H,44:V,45:X,56:J,57:ht,59:tt,63:kt,77:gt,78:ft,79:et,80:K},l(dt,[2,25]),{26:73,27:39,28:40,47:[1,74],77:gt,78:ft,79:et,80:K},{46:75,48:54,49:55,50:Ot,51:Tt,52:lt,53:It,54:Ft,55:ue},l(dt,[2,41]),{49:76,54:Ft,55:ue},l(Nt,[2,51],{48:77,50:Ot,51:Tt,52:lt,53:It}),l(jt,[2,52]),l(jt,[2,53]),l(jt,[2,54]),l(jt,[2,55]),l(Kt,[2,56]),l(Kt,[2,57]),l(dt,[2,33],{38:[1,78],39:[1,79]}),{43:[1,80]},{47:[1,81]},{47:[1,82]},{60:[1,83],62:[1,84]},{27:85,77:gt,78:ft,79:et},l(ye,[2,21]),l(ye,[2,22]),l(ye,[2,23]),{15:[1,86]},{24:[2,18]},l(pe,[2,44]),{26:87,27:39,28:40,77:gt,78:ft,79:et,80:K},{26:88,27:39,28:40,47:[1,89],77:gt,78:ft,79:et,80:K},l(Nt,[2,50],{48:90,50:Ot,51:Tt,52:lt,53:It}),l(Nt,[2,49]),{27:91,77:gt,78:ft,79:et},{40:92,44:ge},{26:94,27:39,28:40,77:gt,78:ft,79:et,80:K},l(dt,[2,58],{47:[1,95]}),l(dt,[2,60],{47:[1,97],58:[1,96]}),l(dt,[2,64],{47:[1,98],61:[1,99]}),l(dt,[2,68],{47:[1,101],58:[1,100]}),l(dt,[2,72]),l(le,[2,10]),l(pe,[2,46]),l(pe,[2,45]),{26:102,27:39,28:40,77:gt,78:ft,79:et,80:K},l(Nt,[2,48]),l(dt,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:ge},l(dt,[2,37]),l(dt,[2,59]),l(dt,[2,61]),l(dt,[2,62],{58:[1,106]}),l(dt,[2,65]),l(dt,[2,66],{47:[1,107]}),l(dt,[2,69]),l(dt,[2,70],{58:[1,108]}),l(pe,[2,47]),{40:109,44:ge},l(dt,[2,35]),{41:[2,39]},l(dt,[2,63]),l(dt,[2,67]),l(dt,[2,71]),{41:[1,110]},l(dt,[2,36])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],12:[2,11],13:[2,3],19:[2,14],47:[2,13],48:[2,15],72:[2,18],105:[2,39]},parseError:function(zt,Zt){if(!Zt.recoverable){var rt=new Error(zt);throw rt.hash=Zt,rt}this.trace(zt)},parse:function(zt){var Zt=this,rt=[0],ae=[],Ct=[null],Mt=[],re=this.table,Dt="",ne=0,ke=0,me=0,pn=2,Pe=1,Qe=Mt.slice.call(arguments,1),Be=Object.create(this.lexer),Ee={yy:{}};for(var tn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tn)&&(Ee.yy[tn]=this.yy[tn]);Be.setInput(zt,Ee.yy),Ee.yy.lexer=Be,Ee.yy.parser=this,Be.yylloc===void 0&&(Be.yylloc={});var je=Be.yylloc;Mt.push(je);var Je=Be.options&&Be.options.ranges;function Ke(){var Tn;return typeof(Tn=ae.pop()||Be.lex()||Pe)!="number"&&(Tn instanceof Array&&(Tn=(ae=Tn).pop()),Tn=Zt.symbols_[Tn]||Tn),Tn}typeof Ee.yy.parseError=="function"?this.parseError=Ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var On,Sn,Te,Ge,_r,Ur,gn,un,an,xn={};;){if(Te=rt[rt.length-1],this.defaultActions[Te]?Ge=this.defaultActions[Te]:(On==null&&(On=Ke()),Ge=re[Te]&&re[Te][On]),Ge===void 0||!Ge.length||!Ge[0]){var Ze="";for(Ur in an=[],re[Te])this.terminals_[Ur]&&Ur>pn&&an.push("'"+this.terminals_[Ur]+"'");Ze=Be.showPosition?"Parse error on line "+(ne+1)+`:
|
|
`+Be.showPosition()+`
|
|
Expecting `+an.join(", ")+", got '"+(this.terminals_[On]||On)+"'":"Parse error on line "+(ne+1)+": Unexpected "+(On==Pe?"end of input":"'"+(this.terminals_[On]||On)+"'"),this.parseError(Ze,{text:Be.match,token:this.terminals_[On]||On,line:Be.yylineno,loc:je,expected:an})}if(Ge[0]instanceof Array&&Ge.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Te+", token: "+On);switch(Ge[0]){case 1:rt.push(On),Ct.push(Be.yytext),Mt.push(Be.yylloc),rt.push(Ge[1]),On=null,Sn?(On=Sn,Sn=null):(ke=Be.yyleng,Dt=Be.yytext,ne=Be.yylineno,je=Be.yylloc,me>0);break;case 2:if(gn=this.productions_[Ge[1]][1],xn.$=Ct[Ct.length-gn],xn._$={first_line:Mt[Mt.length-(gn||1)].first_line,last_line:Mt[Mt.length-1].last_line,first_column:Mt[Mt.length-(gn||1)].first_column,last_column:Mt[Mt.length-1].last_column},Je&&(xn._$.range=[Mt[Mt.length-(gn||1)].range[0],Mt[Mt.length-1].range[1]]),(_r=this.performAction.apply(xn,[Dt,ke,ne,Ee.yy,Ge[1],Ct,Mt].concat(Qe)))!==void 0)return _r;gn&&(rt=rt.slice(0,-1*gn*2),Ct=Ct.slice(0,-1*gn),Mt=Mt.slice(0,-1*gn)),rt.push(this.productions_[Ge[1]][0]),Ct.push(xn.$),Mt.push(xn._$),un=re[rt[rt.length-2]][rt[rt.length-1]],rt.push(un);break;case 3:return!0}}return!0}},ze={EOF:1,parseError:function(zt,Zt){if(!this.yy.parser)throw new Error(zt);this.yy.parser.parseError(zt,Zt)},setInput:function(zt,Zt){return this.yy=Zt||this.yy||{},this._input=zt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var zt=this._input[0];return this.yytext+=zt,this.yyleng++,this.offset++,this.match+=zt,this.matched+=zt,zt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),zt},unput:function(zt){var Zt=zt.length,rt=zt.split(/(?:\r\n?|\n)/g);this._input=zt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zt),this.offset-=Zt;var ae=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),rt.length-1&&(this.yylineno-=rt.length-1);var Ct=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:rt?(rt.length===ae.length?this.yylloc.first_column:0)+ae[ae.length-rt.length].length-rt[0].length:this.yylloc.first_column-Zt},this.options.ranges&&(this.yylloc.range=[Ct[0],Ct[0]+this.yyleng-Zt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(zt){this.unput(this.match.slice(zt))},pastInput:function(){var zt=this.matched.substr(0,this.matched.length-this.match.length);return(zt.length>20?"...":"")+zt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var zt=this.match;return zt.length<20&&(zt+=this._input.substr(0,20-zt.length)),(zt.substr(0,20)+(zt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var zt=this.pastInput(),Zt=new Array(zt.length+1).join("-");return zt+this.upcomingInput()+`
|
|
`+Zt+"^"},test_match:function(zt,Zt){var rt,ae,Ct;if(this.options.backtrack_lexer&&(Ct={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ct.yylloc.range=this.yylloc.range.slice(0))),(ae=zt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ae.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ae?ae[ae.length-1].length-ae[ae.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+zt[0].length},this.yytext+=zt[0],this.match+=zt[0],this.matches=zt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(zt[0].length),this.matched+=zt[0],rt=this.performAction.call(this,this.yy,this,Zt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),rt)return rt;if(this._backtrack){for(var Mt in Ct)this[Mt]=Ct[Mt];return!1}return!1},next:function(){if(this.done)return this.EOF;var zt,Zt,rt,ae;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ct=this._currentRules(),Mt=0;Mt<Ct.length;Mt++)if((rt=this._input.match(this.rules[Ct[Mt]]))&&(!Zt||rt[0].length>Zt[0].length)){if(Zt=rt,ae=Mt,this.options.backtrack_lexer){if((zt=this.test_match(rt,Ct[Mt]))!==!1)return zt;if(this._backtrack){Zt=!1;continue}return!1}if(!this.options.flex)break}return Zt?(zt=this.test_match(Zt,Ct[ae]))!==!1&&zt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(zt){this.conditionStack.push(zt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(zt){return(zt=this.conditionStack.length-1-Math.abs(zt||0))>=0?this.conditionStack[zt]:"INITIAL"},pushState:function(zt){this.begin(zt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(zt,Zt,rt,ae){switch(rt){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:case 10:break;case 11:return 15;case 12:break;case 13:case 14:return 22;case 15:return this.begin("struct"),39;case 16:return"EOF_IN_STRUCT";case 17:return"OPEN_IN_STRUCT";case 18:return this.popState(),41;case 19:break;case 20:return"MEMBER";case 21:return 37;case 22:return 63;case 23:return 56;case 24:return 57;case 25:return 59;case 26:return 42;case 27:return 43;case 28:this.begin("generic");break;case 29:this.popState();break;case 30:return"GENERICTYPE";case 31:this.begin("string");break;case 32:this.popState();break;case 33:return"STR";case 34:this.begin("bqstring");break;case 35:this.popState();break;case 36:return"BQUOTE_STR";case 37:this.begin("href");break;case 38:this.popState();break;case 39:return 62;case 40:this.begin("callback_name");break;case 41:this.popState();break;case 42:this.popState(),this.begin("callback_args");break;case 43:return 60;case 44:this.popState();break;case 45:return 61;case 46:case 47:case 48:case 49:return 58;case 50:case 51:return 51;case 52:case 53:return 53;case 54:return 52;case 55:return 50;case 56:return 54;case 57:return 55;case 58:return 31;case 59:return 38;case 60:return 75;case 61:return"DOT";case 62:return"PLUS";case 63:return 72;case 64:case 65:return"EQUALS";case 66:return 79;case 67:return"PUNCTUATION";case 68:return 78;case 69:return 77;case 70:return 74;case 71:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[44,45],inclusive:!1},callback_name:{rules:[41,42,43],inclusive:!1},href:{rules:[38,39],inclusive:!1},struct:{rules:[16,17,18,19,20],inclusive:!1},generic:{rules:[29,30],inclusive:!1},bqstring:{rules:[35,36],inclusive:!1},string:{rules:[32,33],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,13,14,15,21,22,23,24,25,26,27,28,31,34,37,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71],inclusive:!0}}};function Qt(){this.yy={}}return Pt.lexer=ze,Qt.prototype=Pt,Pt.Parser=Qt,new Qt}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(8218).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},6890:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(ft,et,K,dt){for(K=K||{},dt=ft.length;dt--;K[ft[dt]]=et);return K},_=[1,2],y=[1,5],w=[6,9,11,23,40],T=[1,17],A=[1,20],L=[1,25],N=[1,26],P=[1,27],W=[1,28],H=[1,37],V=[23,37,38],X=[4,6,9,11,23,40],J=[33,34,35,36],ht=[22,29],tt={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,attributeKeyType:27,COMMENT:28,ATTRIBUTE_WORD:29,ATTRIBUTE_KEY:30,cardinality:31,relType:32,ZERO_OR_ONE:33,ZERO_OR_MORE:34,ONE_OR_MORE:35,ONLY_ONE:36,NON_IDENTIFYING:37,IDENTIFYING:38,WORD:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",28:"COMMENT",29:"ATTRIBUTE_WORD",30:"ATTRIBUTE_KEY",33:"ZERO_OR_ONE",34:"ZERO_OR_MORE",35:"ONE_OR_MORE",36:"ONLY_ONE",37:"NON_IDENTIFYING",38:"IDENTIFYING",39:"WORD",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[17,1],[21,1],[21,2],[24,2],[24,3],[24,3],[24,4],[25,1],[26,1],[27,1],[18,3],[31,1],[31,1],[31,1],[31,1],[32,1],[32,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(ft,et,K,dt,Ot,Tt,lt){var It=Tt.length-1;switch(Ot){case 1:break;case 3:this.$=[];break;case 4:Tt[It-1].push(Tt[It]),this.$=Tt[It-1];break;case 5:case 6:this.$=Tt[It];break;case 7:case 8:this.$=[];break;case 12:dt.addEntity(Tt[It-4]),dt.addEntity(Tt[It-2]),dt.addRelationship(Tt[It-4],Tt[It],Tt[It-2],Tt[It-3]);break;case 13:dt.addEntity(Tt[It-3]),dt.addAttributes(Tt[It-3],Tt[It-1]);break;case 14:dt.addEntity(Tt[It-2]);break;case 15:dt.addEntity(Tt[It]);break;case 16:this.$=Tt[It];break;case 17:this.$=[Tt[It]];break;case 18:Tt[It].push(Tt[It-1]),this.$=Tt[It];break;case 19:this.$={attributeType:Tt[It-1],attributeName:Tt[It]};break;case 20:this.$={attributeType:Tt[It-2],attributeName:Tt[It-1],attributeKeyType:Tt[It]};break;case 21:this.$={attributeType:Tt[It-2],attributeName:Tt[It-1],attributeComment:Tt[It]};break;case 22:this.$={attributeType:Tt[It-3],attributeName:Tt[It-2],attributeKeyType:Tt[It-1],attributeComment:Tt[It]};break;case 23:case 24:case 25:this.$=Tt[It];break;case 26:this.$={cardA:Tt[It],relType:Tt[It-1],cardB:Tt[It-2]};break;case 27:this.$=dt.Cardinality.ZERO_OR_ONE;break;case 28:this.$=dt.Cardinality.ZERO_OR_MORE;break;case 29:this.$=dt.Cardinality.ONE_OR_MORE;break;case 30:this.$=dt.Cardinality.ONLY_ONE;break;case 31:this.$=dt.Identification.NON_IDENTIFYING;break;case 32:this.$=dt.Identification.IDENTIFYING;break;case 33:this.$=Tt[It].replace(/"/g,"");break;case 34:this.$=Tt[It];break;case 35:dt.parseDirective("%%{","open_directive");break;case 36:dt.parseDirective(Tt[It],"type_directive");break;case 37:Tt[It]=Tt[It].trim().replace(/'/g,'"'),dt.parseDirective(Tt[It],"arg_directive");break;case 38:dt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:_,7:3,12:4,40:y},{1:[3]},l(w,[2,3],{5:6}),{3:7,4:_,7:3,12:4,40:y},{13:8,41:[1,9]},{41:[2,35]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:T,40:y},{1:[2,2]},{14:18,15:[1,19],43:A},l([15,43],[2,36]),l(w,[2,8],{1:[2,1]}),l(w,[2,4]),{7:15,10:21,12:4,17:16,23:T,40:y},l(w,[2,6]),l(w,[2,7]),l(w,[2,11]),l(w,[2,15],{18:22,31:24,20:[1,23],33:L,34:N,35:P,36:W}),l([6,9,11,15,20,23,33,34,35,36,40],[2,16]),{11:[1,29]},{16:30,42:[1,31]},{11:[2,38]},l(w,[2,5]),{17:32,23:T},{21:33,22:[1,34],24:35,25:36,29:H},{32:38,37:[1,39],38:[1,40]},l(V,[2,27]),l(V,[2,28]),l(V,[2,29]),l(V,[2,30]),l(X,[2,9]),{14:41,43:A},{43:[2,37]},{15:[1,42]},{22:[1,43]},l(w,[2,14]),{21:44,22:[2,17],24:35,25:36,29:H},{26:45,29:[1,46]},{29:[2,23]},{31:47,33:L,34:N,35:P,36:W},l(J,[2,31]),l(J,[2,32]),{11:[1,48]},{19:49,23:[1,51],39:[1,50]},l(w,[2,13]),{22:[2,18]},l(ht,[2,19],{27:52,28:[1,53],30:[1,54]}),l([22,28,29,30],[2,24]),{23:[2,26]},l(X,[2,10]),l(w,[2,12]),l(w,[2,33]),l(w,[2,34]),l(ht,[2,20],{28:[1,55]}),l(ht,[2,21]),l([22,28,29],[2,25]),l(ht,[2,22])],defaultActions:{5:[2,35],7:[2,2],20:[2,38],31:[2,37],37:[2,23],44:[2,18],47:[2,26]},parseError:function(ft,et){if(!et.recoverable){var K=new Error(ft);throw K.hash=et,K}this.trace(ft)},parse:function(ft){var et=this,K=[0],dt=[],Ot=[null],Tt=[],lt=this.table,It="",Ft=0,ue=0,ye=0,de=2,le=1,Nt=Tt.slice.call(arguments,1),jt=Object.create(this.lexer),Kt={yy:{}};for(var pe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pe)&&(Kt.yy[pe]=this.yy[pe]);jt.setInput(ft,Kt.yy),Kt.yy.lexer=jt,Kt.yy.parser=this,jt.yylloc===void 0&&(jt.yylloc={});var ge=jt.yylloc;Tt.push(ge);var Pt=jt.options&&jt.options.ranges;function ze(){var me;return typeof(me=dt.pop()||jt.lex()||le)!="number"&&(me instanceof Array&&(me=(dt=me).pop()),me=et.symbols_[me]||me),me}typeof Kt.yy.parseError=="function"?this.parseError=Kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Qt,zt,Zt,rt,ae,Ct,Mt,re,Dt,ne={};;){if(Zt=K[K.length-1],this.defaultActions[Zt]?rt=this.defaultActions[Zt]:(Qt==null&&(Qt=ze()),rt=lt[Zt]&<[Zt][Qt]),rt===void 0||!rt.length||!rt[0]){var ke="";for(Ct in Dt=[],lt[Zt])this.terminals_[Ct]&&Ct>de&&Dt.push("'"+this.terminals_[Ct]+"'");ke=jt.showPosition?"Parse error on line "+(Ft+1)+`:
|
|
`+jt.showPosition()+`
|
|
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[Qt]||Qt)+"'":"Parse error on line "+(Ft+1)+": Unexpected "+(Qt==le?"end of input":"'"+(this.terminals_[Qt]||Qt)+"'"),this.parseError(ke,{text:jt.match,token:this.terminals_[Qt]||Qt,line:jt.yylineno,loc:ge,expected:Dt})}if(rt[0]instanceof Array&&rt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Zt+", token: "+Qt);switch(rt[0]){case 1:K.push(Qt),Ot.push(jt.yytext),Tt.push(jt.yylloc),K.push(rt[1]),Qt=null,zt?(Qt=zt,zt=null):(ue=jt.yyleng,It=jt.yytext,Ft=jt.yylineno,ge=jt.yylloc,ye>0);break;case 2:if(Mt=this.productions_[rt[1]][1],ne.$=Ot[Ot.length-Mt],ne._$={first_line:Tt[Tt.length-(Mt||1)].first_line,last_line:Tt[Tt.length-1].last_line,first_column:Tt[Tt.length-(Mt||1)].first_column,last_column:Tt[Tt.length-1].last_column},Pt&&(ne._$.range=[Tt[Tt.length-(Mt||1)].range[0],Tt[Tt.length-1].range[1]]),(ae=this.performAction.apply(ne,[It,ue,Ft,Kt.yy,rt[1],Ot,Tt].concat(Nt)))!==void 0)return ae;Mt&&(K=K.slice(0,-1*Mt*2),Ot=Ot.slice(0,-1*Mt),Tt=Tt.slice(0,-1*Mt)),K.push(this.productions_[rt[1]][0]),Ot.push(ne.$),Tt.push(ne._$),re=lt[K[K.length-2]][K[K.length-1]],K.push(re);break;case 3:return!0}}return!0}},kt={EOF:1,parseError:function(ft,et){if(!this.yy.parser)throw new Error(ft);this.yy.parser.parseError(ft,et)},setInput:function(ft,et){return this.yy=et||this.yy||{},this._input=ft,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ft=this._input[0];return this.yytext+=ft,this.yyleng++,this.offset++,this.match+=ft,this.matched+=ft,ft.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ft},unput:function(ft){var et=ft.length,K=ft.split(/(?:\r\n?|\n)/g);this._input=ft+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-et),this.offset-=et;var dt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),K.length-1&&(this.yylineno-=K.length-1);var Ot=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:K?(K.length===dt.length?this.yylloc.first_column:0)+dt[dt.length-K.length].length-K[0].length:this.yylloc.first_column-et},this.options.ranges&&(this.yylloc.range=[Ot[0],Ot[0]+this.yyleng-et]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(ft){this.unput(this.match.slice(ft))},pastInput:function(){var ft=this.matched.substr(0,this.matched.length-this.match.length);return(ft.length>20?"...":"")+ft.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ft=this.match;return ft.length<20&&(ft+=this._input.substr(0,20-ft.length)),(ft.substr(0,20)+(ft.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ft=this.pastInput(),et=new Array(ft.length+1).join("-");return ft+this.upcomingInput()+`
|
|
`+et+"^"},test_match:function(ft,et){var K,dt,Ot;if(this.options.backtrack_lexer&&(Ot={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ot.yylloc.range=this.yylloc.range.slice(0))),(dt=ft[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=dt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:dt?dt[dt.length-1].length-dt[dt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ft[0].length},this.yytext+=ft[0],this.match+=ft[0],this.matches=ft,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ft[0].length),this.matched+=ft[0],K=this.performAction.call(this,this.yy,this,et,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),K)return K;if(this._backtrack){for(var Tt in Ot)this[Tt]=Ot[Tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var ft,et,K,dt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ot=this._currentRules(),Tt=0;Tt<Ot.length;Tt++)if((K=this._input.match(this.rules[Ot[Tt]]))&&(!et||K[0].length>et[0].length)){if(et=K,dt=Tt,this.options.backtrack_lexer){if((ft=this.test_match(K,Ot[Tt]))!==!1)return ft;if(this._backtrack){et=!1;continue}return!1}if(!this.options.flex)break}return et?(ft=this.test_match(et,Ot[dt]))!==!1&&ft:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(ft){this.conditionStack.push(ft)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ft){return(ft=this.conditionStack.length-1-Math.abs(ft||0))>=0?this.conditionStack[ft]:"INITIAL"},pushState:function(ft){this.begin(ft)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ft,et,K,dt){switch(K){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:case 6:break;case 7:return 11;case 8:break;case 9:return 9;case 10:return 39;case 11:return 4;case 12:return this.begin("block"),20;case 13:break;case 14:return 30;case 15:return 29;case 16:return 28;case 17:break;case 18:return this.popState(),22;case 19:return et.yytext[0];case 20:return 33;case 21:return 34;case 22:return 35;case 23:return 36;case 24:return 33;case 25:return 34;case 26:return 35;case 27:return 37;case 28:return 38;case 29:case 30:return 37;case 31:return 23;case 32:return et.yytext[0];case 33:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:(?:PK)|(?:FK))/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17,18,19],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0}}};function gt(){this.yy={}}return tt.lexer=kt,gt.prototype=tt,tt.Parser=gt,new gt}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(8009).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},5403:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(qe,or,Dn,Ie){for(Dn=Dn||{},Ie=qe.length;Ie--;Dn[qe[Ie]]=or);return Dn},_=[1,9],y=[1,7],w=[1,6],T=[1,8],A=[1,20,21,22,23,38,47,76,77,78,79,80,81,95,96,99,100,101,103,104,110,111,112,113,114,115,116,117,118,119],L=[2,10],N=[1,20],P=[1,21],W=[1,22],H=[1,23],V=[1,30],X=[1,59],J=[1,33],ht=[1,34],tt=[1,35],kt=[1,36],gt=[1,37],ft=[1,53],et=[1,48],K=[1,50],dt=[1,45],Ot=[1,49],Tt=[1,52],lt=[1,56],It=[1,57],Ft=[1,38],ue=[1,39],ye=[1,40],de=[1,41],le=[1,58],Nt=[1,47],jt=[1,51],Kt=[1,54],pe=[1,55],ge=[1,46],Pt=[1,62],ze=[1,67],Qt=[1,20,21,22,23,38,42,47,76,77,78,79,80,81,95,96,99,100,101,103,104,110,111,112,113,114,115,116,117,118,119],zt=[1,71],Zt=[1,70],rt=[1,72],ae=[20,21,23,70,71],Ct=[1,93],Mt=[1,98],re=[1,95],Dt=[1,100],ne=[1,103],ke=[1,101],me=[1,102],pn=[1,96],Pe=[1,108],Qe=[1,107],Be=[1,97],Ee=[1,99],tn=[1,104],je=[1,105],Je=[1,106],Ke=[1,109],On=[20,21,22,23,70,71],Sn=[20,21,22,23,48,70,71],Te=[20,21,22,23,40,47,48,50,52,54,56,58,60,62,63,65,70,71,81,95,96,99,100,101,103,104,114,115,116,117,118,119],Ge=[20,21,23],_r=[20,21,23,47,70,71,81,95,96,99,100,101,103,104,114,115,116,117,118,119],Ur=[1,12,20,21,22,23,24,38,42,47,76,77,78,79,80,81,95,96,99,100,101,103,104,110,111,112,113,114,115,116,117,118,119],gn=[47,81,95,96,99,100,101,103,104,114,115,116,117,118,119],un=[1,141],an=[1,149],xn=[1,150],Ze=[1,151],Tn=[1,152],Cn=[1,136],Zn=[1,137],Xr=[1,133],Wn=[1,144],Un=[1,145],Ln=[1,146],qn=[1,147],Qn=[1,148],er=[1,153],ar=[1,154],Bn=[1,139],Hn=[1,142],In=[1,138],_n=[1,135],so=[20,21,22,23,38,42,47,76,77,78,79,80,81,95,96,99,100,101,103,104,110,111,112,113,114,115,116,117,118,119],hr=[1,157],Ai=[20,21,22,23,26,47,81,95,96,99,100,101,103,104,114,115,116,117,118,119],Rn=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,61,62,64,66,70,71,72,76,77,78,79,80,81,82,85,95,96,99,100,101,103,104,105,106,114,115,116,117,118,119],ko=[12,21,22,24],To=[22,96],Jr=[1,238],ri=[1,242],Rr=[1,239],zr=[1,236],Zr=[1,233],Kr=[1,234],Ar=[1,235],ti=[1,237],qr=[1,240],pi=[1,241],gi=[1,243],yr=[1,260],Di=[20,21,23,96],Vr=[20,21,22,23,76,92,95,96,99,100,101,102,103,104,105],Ui={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,link:44,node:45,vertex:46,AMP:47,STYLE_SEPARATOR:48,idString:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,CYLINDERSTART:58,CYLINDEREND:59,DIAMOND_START:60,DIAMOND_STOP:61,TAGEND:62,TRAPSTART:63,TRAPEND:64,INVTRAPSTART:65,INVTRAPEND:66,linkStatement:67,arrowText:68,TESTSTR:69,START_LINK:70,LINK:71,PIPE:72,textToken:73,STR:74,keywords:75,STYLE:76,LINKSTYLE:77,CLASSDEF:78,CLASS:79,CLICK:80,DOWN:81,UP:82,textNoTags:83,textNoTagsToken:84,DEFAULT:85,stylesOpt:86,alphaNum:87,CALLBACKNAME:88,CALLBACKARGS:89,HREF:90,LINK_TARGET:91,HEX:92,numList:93,INTERPOLATE:94,NUM:95,COMMA:96,style:97,styleComponent:98,ALPHA:99,COLON:100,MINUS:101,UNIT:102,BRKT:103,DOT:104,PCT:105,TAGSTART:106,alphaNumToken:107,idStringToken:108,alphaNumStatement:109,direction_tb:110,direction_bt:111,direction_rl:112,direction_lr:113,PUNCTUATION:114,UNICODE_TEXT:115,PLUS:116,EQUALS:117,MULT:118,UNDERSCORE:119,graphCodeTokens:120,ARROW_CROSS:121,ARROW_POINT:122,ARROW_CIRCLE:123,ARROW_OPEN:124,QUOTE:125,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",47:"AMP",48:"STYLE_SEPARATOR",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"CYLINDERSTART",59:"CYLINDEREND",60:"DIAMOND_START",61:"DIAMOND_STOP",62:"TAGEND",63:"TRAPSTART",64:"TRAPEND",65:"INVTRAPSTART",66:"INVTRAPEND",69:"TESTSTR",70:"START_LINK",71:"LINK",72:"PIPE",74:"STR",76:"STYLE",77:"LINKSTYLE",78:"CLASSDEF",79:"CLASS",80:"CLICK",81:"DOWN",82:"UP",85:"DEFAULT",88:"CALLBACKNAME",89:"CALLBACKARGS",90:"HREF",91:"LINK_TARGET",92:"HEX",94:"INTERPOLATE",95:"NUM",96:"COMMA",99:"ALPHA",100:"COLON",101:"MINUS",102:"UNIT",103:"BRKT",104:"DOT",105:"PCT",106:"TAGSTART",110:"direction_tb",111:"direction_bt",112:"direction_rl",113:"direction_lr",114:"PUNCTUATION",115:"UNICODE_TEXT",116:"PLUS",117:"EQUALS",118:"MULT",119:"UNDERSCORE",121:"ARROW_CROSS",122:"ARROW_POINT",123:"ARROW_CIRCLE",124:"ARROW_OPEN",125:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[45,1],[45,5],[45,3],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[44,2],[44,3],[44,3],[44,1],[44,3],[67,1],[68,3],[39,1],[39,2],[39,1],[75,1],[75,1],[75,1],[75,1],[75,1],[75,1],[75,1],[75,1],[75,1],[75,1],[75,1],[83,1],[83,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[93,1],[93,3],[86,1],[86,3],[97,1],[97,2],[98,1],[98,1],[98,1],[98,1],[98,1],[98,1],[98,1],[98,1],[98,1],[98,1],[98,1],[73,1],[73,1],[73,1],[73,1],[73,1],[73,1],[84,1],[84,1],[84,1],[84,1],[49,1],[49,2],[87,1],[87,2],[109,1],[109,1],[109,1],[109,1],[43,1],[43,1],[43,1],[43,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1]],performAction:function(qe,or,Dn,Ie,br,Bt,De){var Vt=Bt.length-1;switch(br){case 5:Ie.parseDirective("%%{","open_directive");break;case 6:Ie.parseDirective(Bt[Vt],"type_directive");break;case 7:Bt[Vt]=Bt[Vt].trim().replace(/'/g,'"'),Ie.parseDirective(Bt[Vt],"arg_directive");break;case 8:Ie.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:Bt[Vt]!==[]&&Bt[Vt-1].push(Bt[Vt]),this.$=Bt[Vt-1];break;case 12:case 77:case 79:case 91:case 147:case 149:case 150:this.$=Bt[Vt];break;case 19:Ie.setDirection("TB"),this.$="TB";break;case 20:Ie.setDirection(Bt[Vt-1]),this.$=Bt[Vt-1];break;case 35:this.$=Bt[Vt-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=Ie.addSubGraph(Bt[Vt-6],Bt[Vt-1],Bt[Vt-4]);break;case 42:this.$=Ie.addSubGraph(Bt[Vt-3],Bt[Vt-1],Bt[Vt-3]);break;case 43:this.$=Ie.addSubGraph(void 0,Bt[Vt-1],void 0);break;case 48:Ie.addLink(Bt[Vt-2].stmt,Bt[Vt],Bt[Vt-1]),this.$={stmt:Bt[Vt],nodes:Bt[Vt].concat(Bt[Vt-2].nodes)};break;case 49:Ie.addLink(Bt[Vt-3].stmt,Bt[Vt-1],Bt[Vt-2]),this.$={stmt:Bt[Vt-1],nodes:Bt[Vt-1].concat(Bt[Vt-3].nodes)};break;case 50:this.$={stmt:Bt[Vt-1],nodes:Bt[Vt-1]};break;case 51:this.$={stmt:Bt[Vt],nodes:Bt[Vt]};break;case 52:this.$=[Bt[Vt]];break;case 53:this.$=Bt[Vt-4].concat(Bt[Vt]);break;case 54:this.$=[Bt[Vt-2]],Ie.setClass(Bt[Vt-2],Bt[Vt]);break;case 55:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"square");break;case 56:this.$=Bt[Vt-5],Ie.addVertex(Bt[Vt-5],Bt[Vt-2],"circle");break;case 57:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"ellipse");break;case 58:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"stadium");break;case 59:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"subroutine");break;case 60:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"cylinder");break;case 61:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"round");break;case 62:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"diamond");break;case 63:this.$=Bt[Vt-5],Ie.addVertex(Bt[Vt-5],Bt[Vt-2],"hexagon");break;case 64:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"odd");break;case 65:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"trapezoid");break;case 66:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"inv_trapezoid");break;case 67:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"lean_right");break;case 68:this.$=Bt[Vt-3],Ie.addVertex(Bt[Vt-3],Bt[Vt-1],"lean_left");break;case 69:this.$=Bt[Vt],Ie.addVertex(Bt[Vt]);break;case 70:Bt[Vt-1].text=Bt[Vt],this.$=Bt[Vt-1];break;case 71:case 72:Bt[Vt-2].text=Bt[Vt-1],this.$=Bt[Vt-2];break;case 73:this.$=Bt[Vt];break;case 74:var Fr=Ie.destructLink(Bt[Vt],Bt[Vt-2]);this.$={type:Fr.type,stroke:Fr.stroke,length:Fr.length,text:Bt[Vt-1]};break;case 75:Fr=Ie.destructLink(Bt[Vt]),this.$={type:Fr.type,stroke:Fr.stroke,length:Fr.length};break;case 76:this.$=Bt[Vt-1];break;case 78:case 92:case 148:this.$=Bt[Vt-1]+""+Bt[Vt];break;case 93:case 94:this.$=Bt[Vt-4],Ie.addClass(Bt[Vt-2],Bt[Vt]);break;case 95:this.$=Bt[Vt-4],Ie.setClass(Bt[Vt-2],Bt[Vt]);break;case 96:case 104:this.$=Bt[Vt-1],Ie.setClickEvent(Bt[Vt-1],Bt[Vt]);break;case 97:case 105:this.$=Bt[Vt-3],Ie.setClickEvent(Bt[Vt-3],Bt[Vt-2]),Ie.setTooltip(Bt[Vt-3],Bt[Vt]);break;case 98:this.$=Bt[Vt-2],Ie.setClickEvent(Bt[Vt-2],Bt[Vt-1],Bt[Vt]);break;case 99:this.$=Bt[Vt-4],Ie.setClickEvent(Bt[Vt-4],Bt[Vt-3],Bt[Vt-2]),Ie.setTooltip(Bt[Vt-4],Bt[Vt]);break;case 100:case 106:this.$=Bt[Vt-1],Ie.setLink(Bt[Vt-1],Bt[Vt]);break;case 101:case 107:this.$=Bt[Vt-3],Ie.setLink(Bt[Vt-3],Bt[Vt-2]),Ie.setTooltip(Bt[Vt-3],Bt[Vt]);break;case 102:case 108:this.$=Bt[Vt-3],Ie.setLink(Bt[Vt-3],Bt[Vt-2],Bt[Vt]);break;case 103:case 109:this.$=Bt[Vt-5],Ie.setLink(Bt[Vt-5],Bt[Vt-4],Bt[Vt]),Ie.setTooltip(Bt[Vt-5],Bt[Vt-2]);break;case 110:this.$=Bt[Vt-4],Ie.addVertex(Bt[Vt-2],void 0,void 0,Bt[Vt]);break;case 111:case 113:this.$=Bt[Vt-4],Ie.updateLink(Bt[Vt-2],Bt[Vt]);break;case 112:this.$=Bt[Vt-4],Ie.updateLink([Bt[Vt-2]],Bt[Vt]);break;case 114:this.$=Bt[Vt-8],Ie.updateLinkInterpolate([Bt[Vt-6]],Bt[Vt-2]),Ie.updateLink([Bt[Vt-6]],Bt[Vt]);break;case 115:this.$=Bt[Vt-8],Ie.updateLinkInterpolate(Bt[Vt-6],Bt[Vt-2]),Ie.updateLink(Bt[Vt-6],Bt[Vt]);break;case 116:this.$=Bt[Vt-6],Ie.updateLinkInterpolate([Bt[Vt-4]],Bt[Vt]);break;case 117:this.$=Bt[Vt-6],Ie.updateLinkInterpolate(Bt[Vt-4],Bt[Vt]);break;case 118:case 120:this.$=[Bt[Vt]];break;case 119:case 121:Bt[Vt-2].push(Bt[Vt]),this.$=Bt[Vt-2];break;case 123:this.$=Bt[Vt-1]+Bt[Vt];break;case 145:this.$=Bt[Vt];break;case 146:this.$=Bt[Vt-1]+""+Bt[Vt];break;case 151:this.$="v";break;case 152:this.$="-";break;case 153:this.$={stmt:"dir",value:"TB"};break;case 154:this.$={stmt:"dir",value:"BT"};break;case 155:this.$={stmt:"dir",value:"RL"};break;case 156:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:_,16:4,21:y,22:w,24:T},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:_,16:4,21:y,22:w,24:T},l(A,L,{17:11}),{7:12,13:[1,13]},{16:14,21:y,22:w,24:T},{16:15,21:y,22:w,24:T},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:N,21:P,22:W,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,43:31,45:32,46:42,47:X,49:43,76:J,77:ht,78:tt,79:kt,80:gt,81:ft,95:et,96:K,99:dt,100:Ot,101:Tt,103:lt,104:It,108:44,110:Ft,111:ue,112:ye,113:de,114:le,115:Nt,116:jt,117:Kt,118:pe,119:ge},{8:60,10:[1,61],15:Pt},l([10,15],[2,6]),l(A,[2,17]),l(A,[2,18]),l(A,[2,19]),{20:[1,64],21:[1,65],22:ze,27:63,30:66},l(Qt,[2,11]),l(Qt,[2,12]),l(Qt,[2,13]),l(Qt,[2,14]),l(Qt,[2,15]),l(Qt,[2,16]),{9:68,20:zt,21:Zt,23:rt,44:69,67:73,70:[1,74],71:[1,75]},{9:76,20:zt,21:Zt,23:rt},{9:77,20:zt,21:Zt,23:rt},{9:78,20:zt,21:Zt,23:rt},{9:79,20:zt,21:Zt,23:rt},{9:80,20:zt,21:Zt,23:rt},{9:82,20:zt,21:Zt,22:[1,81],23:rt},l(Qt,[2,44]),l(ae,[2,51],{30:83,22:ze}),{22:[1,84]},{22:[1,85]},{22:[1,86]},{22:[1,87]},{26:Ct,47:Mt,74:[1,91],81:re,87:90,88:[1,88],90:[1,89],95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,107:94,109:92,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(Qt,[2,153]),l(Qt,[2,154]),l(Qt,[2,155]),l(Qt,[2,156]),l(On,[2,52],{48:[1,110]}),l(Sn,[2,69],{108:121,40:[1,111],47:X,50:[1,112],52:[1,113],54:[1,114],56:[1,115],58:[1,116],60:[1,117],62:[1,118],63:[1,119],65:[1,120],81:ft,95:et,96:K,99:dt,100:Ot,101:Tt,103:lt,104:It,114:le,115:Nt,116:jt,117:Kt,118:pe,119:ge}),l(Te,[2,145]),l(Te,[2,170]),l(Te,[2,171]),l(Te,[2,172]),l(Te,[2,173]),l(Te,[2,174]),l(Te,[2,175]),l(Te,[2,176]),l(Te,[2,177]),l(Te,[2,178]),l(Te,[2,179]),l(Te,[2,180]),l(Te,[2,181]),l(Te,[2,182]),l(Te,[2,183]),l(Te,[2,184]),{9:122,20:zt,21:Zt,23:rt},{11:123,14:[1,124]},l(Ge,[2,8]),l(A,[2,20]),l(A,[2,26]),l(A,[2,27]),{21:[1,125]},l(_r,[2,34],{30:126,22:ze}),l(Qt,[2,35]),{45:127,46:42,47:X,49:43,81:ft,95:et,96:K,99:dt,100:Ot,101:Tt,103:lt,104:It,108:44,114:le,115:Nt,116:jt,117:Kt,118:pe,119:ge},l(Ur,[2,45]),l(Ur,[2,46]),l(Ur,[2,47]),l(gn,[2,73],{68:128,69:[1,129],72:[1,130]}),{22:un,24:an,26:xn,38:Ze,39:131,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l([47,69,72,81,95,96,99,100,101,103,104,114,115,116,117,118,119],[2,75]),l(Qt,[2,36]),l(Qt,[2,37]),l(Qt,[2,38]),l(Qt,[2,39]),l(Qt,[2,40]),{22:un,24:an,26:xn,38:Ze,39:155,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(so,L,{17:156}),l(ae,[2,50],{47:hr}),{26:Ct,47:Mt,81:re,87:158,92:[1,159],95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,107:94,109:92,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{85:[1,160],93:161,95:[1,162]},{26:Ct,47:Mt,81:re,85:[1,163],87:164,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,107:94,109:92,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{26:Ct,47:Mt,81:re,87:165,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,107:94,109:92,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(Ge,[2,96],{22:[1,166],89:[1,167]}),l(Ge,[2,100],{22:[1,168]}),l(Ge,[2,104],{107:94,109:170,22:[1,169],26:Ct,47:Mt,81:re,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke}),l(Ge,[2,106],{22:[1,171]}),l(Ai,[2,147]),l(Ai,[2,149]),l(Ai,[2,150]),l(Ai,[2,151]),l(Ai,[2,152]),l(Rn,[2,157]),l(Rn,[2,158]),l(Rn,[2,159]),l(Rn,[2,160]),l(Rn,[2,161]),l(Rn,[2,162]),l(Rn,[2,163]),l(Rn,[2,164]),l(Rn,[2,165]),l(Rn,[2,166]),l(Rn,[2,167]),l(Rn,[2,168]),l(Rn,[2,169]),{47:X,49:172,81:ft,95:et,96:K,99:dt,100:Ot,101:Tt,103:lt,104:It,108:44,114:le,115:Nt,116:jt,117:Kt,118:pe,119:ge},{22:un,24:an,26:xn,38:Ze,39:173,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:175,42:Tn,47:Mt,50:[1,174],62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:176,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:177,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:178,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:179,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:180,42:Tn,47:Mt,60:[1,181],62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:182,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:183,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:184,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(Te,[2,146]),l(ko,[2,3]),{8:185,15:Pt},{15:[2,7]},l(A,[2,28]),l(_r,[2,33]),l(ae,[2,48],{30:186,22:ze}),l(gn,[2,70],{22:[1,187]}),{22:[1,188]},{22:un,24:an,26:xn,38:Ze,39:189,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,62:Cn,70:Zn,71:[1,190],73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(Rn,[2,77]),l(Rn,[2,79]),l(Rn,[2,135]),l(Rn,[2,136]),l(Rn,[2,137]),l(Rn,[2,138]),l(Rn,[2,139]),l(Rn,[2,140]),l(Rn,[2,141]),l(Rn,[2,142]),l(Rn,[2,143]),l(Rn,[2,144]),l(Rn,[2,80]),l(Rn,[2,81]),l(Rn,[2,82]),l(Rn,[2,83]),l(Rn,[2,84]),l(Rn,[2,85]),l(Rn,[2,86]),l(Rn,[2,87]),l(Rn,[2,88]),l(Rn,[2,89]),l(Rn,[2,90]),{9:193,20:zt,21:Zt,22:un,23:rt,24:an,26:xn,38:Ze,40:[1,192],42:Tn,47:Mt,62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{18:18,19:19,20:N,21:P,22:W,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,42:[1,194],43:31,45:32,46:42,47:X,49:43,76:J,77:ht,78:tt,79:kt,80:gt,81:ft,95:et,96:K,99:dt,100:Ot,101:Tt,103:lt,104:It,108:44,110:Ft,111:ue,112:ye,113:de,114:le,115:Nt,116:jt,117:Kt,118:pe,119:ge},{22:ze,30:195},{22:[1,196],26:Ct,47:Mt,81:re,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,107:94,109:170,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:[1,197]},{22:[1,198]},{22:[1,199],96:[1,200]},l(To,[2,118]),{22:[1,201]},{22:[1,202],26:Ct,47:Mt,81:re,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,107:94,109:170,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:[1,203],26:Ct,47:Mt,81:re,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,107:94,109:170,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{74:[1,204]},l(Ge,[2,98],{22:[1,205]}),{74:[1,206],91:[1,207]},{74:[1,208]},l(Ai,[2,148]),{74:[1,209],91:[1,210]},l(On,[2,54],{108:121,47:X,81:ft,95:et,96:K,99:dt,100:Ot,101:Tt,103:lt,104:It,114:le,115:Nt,116:jt,117:Kt,118:pe,119:ge}),{22:un,24:an,26:xn,38:Ze,41:[1,211],42:Tn,47:Mt,62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:212,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,51:[1,213],62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,53:[1,214],62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,55:[1,215],62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,57:[1,216],62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,59:[1,217],62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,61:[1,218],62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,39:219,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,41:[1,220],42:Tn,47:Mt,62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,62:Cn,64:[1,221],66:[1,222],70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,62:Cn,64:[1,224],66:[1,223],70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{9:225,20:zt,21:Zt,23:rt},l(ae,[2,49],{47:hr}),l(gn,[2,72]),l(gn,[2,71]),{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,62:Cn,70:Zn,72:[1,226],73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(gn,[2,74]),l(Rn,[2,78]),{22:un,24:an,26:xn,38:Ze,39:227,42:Tn,47:Mt,62:Cn,70:Zn,73:132,74:Xr,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(so,L,{17:228}),l(Qt,[2,43]),{46:229,47:X,49:43,81:ft,95:et,96:K,99:dt,100:Ot,101:Tt,103:lt,104:It,108:44,114:le,115:Nt,116:jt,117:Kt,118:pe,119:ge},{22:Jr,76:ri,86:230,92:Rr,95:zr,97:231,98:232,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi},{22:Jr,76:ri,86:244,92:Rr,95:zr,97:231,98:232,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi},{22:Jr,76:ri,86:245,92:Rr,94:[1,246],95:zr,97:231,98:232,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi},{22:Jr,76:ri,86:247,92:Rr,94:[1,248],95:zr,97:231,98:232,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi},{95:[1,249]},{22:Jr,76:ri,86:250,92:Rr,95:zr,97:231,98:232,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi},{22:Jr,76:ri,86:251,92:Rr,95:zr,97:231,98:232,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi},{26:Ct,47:Mt,81:re,87:252,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,107:94,109:92,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(Ge,[2,97]),{74:[1,253]},l(Ge,[2,101],{22:[1,254]}),l(Ge,[2,102]),l(Ge,[2,105]),l(Ge,[2,107],{22:[1,255]}),l(Ge,[2,108]),l(Sn,[2,55]),{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,51:[1,256],62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(Sn,[2,61]),l(Sn,[2,57]),l(Sn,[2,58]),l(Sn,[2,59]),l(Sn,[2,60]),l(Sn,[2,62]),{22:un,24:an,26:xn,38:Ze,42:Tn,47:Mt,61:[1,257],62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(Sn,[2,64]),l(Sn,[2,65]),l(Sn,[2,67]),l(Sn,[2,66]),l(Sn,[2,68]),l(ko,[2,4]),l([22,47,81,95,96,99,100,101,103,104,114,115,116,117,118,119],[2,76]),{22:un,24:an,26:xn,38:Ze,41:[1,258],42:Tn,47:Mt,62:Cn,70:Zn,73:191,75:143,76:Wn,77:Un,78:Ln,79:qn,80:Qn,81:er,82:ar,84:134,85:Bn,95:Dt,96:ne,99:ke,100:me,101:Hn,103:Pe,104:Qe,105:In,106:_n,107:140,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{18:18,19:19,20:N,21:P,22:W,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,42:[1,259],43:31,45:32,46:42,47:X,49:43,76:J,77:ht,78:tt,79:kt,80:gt,81:ft,95:et,96:K,99:dt,100:Ot,101:Tt,103:lt,104:It,108:44,110:Ft,111:ue,112:ye,113:de,114:le,115:Nt,116:jt,117:Kt,118:pe,119:ge},l(On,[2,53]),l(Ge,[2,110],{96:yr}),l(Di,[2,120],{98:261,22:Jr,76:ri,92:Rr,95:zr,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi}),l(Vr,[2,122]),l(Vr,[2,124]),l(Vr,[2,125]),l(Vr,[2,126]),l(Vr,[2,127]),l(Vr,[2,128]),l(Vr,[2,129]),l(Vr,[2,130]),l(Vr,[2,131]),l(Vr,[2,132]),l(Vr,[2,133]),l(Vr,[2,134]),l(Ge,[2,111],{96:yr}),l(Ge,[2,112],{96:yr}),{22:[1,262]},l(Ge,[2,113],{96:yr}),{22:[1,263]},l(To,[2,119]),l(Ge,[2,93],{96:yr}),l(Ge,[2,94],{96:yr}),l(Ge,[2,95],{107:94,109:170,26:Ct,47:Mt,81:re,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke}),l(Ge,[2,99]),{91:[1,264]},{91:[1,265]},{51:[1,266]},{61:[1,267]},{9:268,20:zt,21:Zt,23:rt},l(Qt,[2,42]),{22:Jr,76:ri,92:Rr,95:zr,97:269,98:232,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi},l(Vr,[2,123]),{26:Ct,47:Mt,81:re,87:270,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,107:94,109:92,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},{26:Ct,47:Mt,81:re,87:271,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,107:94,109:92,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke},l(Ge,[2,103]),l(Ge,[2,109]),l(Sn,[2,56]),l(Sn,[2,63]),l(so,L,{17:272}),l(Di,[2,121],{98:261,22:Jr,76:ri,92:Rr,95:zr,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi}),l(Ge,[2,116],{107:94,109:170,22:[1,273],26:Ct,47:Mt,81:re,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke}),l(Ge,[2,117],{107:94,109:170,22:[1,274],26:Ct,47:Mt,81:re,95:Dt,96:ne,99:ke,100:me,101:pn,103:Pe,104:Qe,114:Be,115:Ee,116:tn,117:je,118:Je,119:Ke}),{18:18,19:19,20:N,21:P,22:W,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,42:[1,275],43:31,45:32,46:42,47:X,49:43,76:J,77:ht,78:tt,79:kt,80:gt,81:ft,95:et,96:K,99:dt,100:Ot,101:Tt,103:lt,104:It,108:44,110:Ft,111:ue,112:ye,113:de,114:le,115:Nt,116:jt,117:Kt,118:pe,119:ge},{22:Jr,76:ri,86:276,92:Rr,95:zr,97:231,98:232,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi},{22:Jr,76:ri,86:277,92:Rr,95:zr,97:231,98:232,99:Zr,100:Kr,101:Ar,102:ti,103:qr,104:pi,105:gi},l(Qt,[2,41]),l(Ge,[2,114],{96:yr}),l(Ge,[2,115],{96:yr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],124:[2,7]},parseError:function(qe,or){if(!or.recoverable){var Dn=new Error(qe);throw Dn.hash=or,Dn}this.trace(qe)},parse:function(qe){var or=this,Dn=[0],Ie=[],br=[null],Bt=[],De=this.table,Vt="",Fr=0,Ss=0,Zo=0,Ha=2,zi=1,Cs=Bt.slice.call(arguments,1),Pr=Object.create(this.lexer),ha={yy:{}};for(var $a in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$a)&&(ha.yy[$a]=this.yy[$a]);Pr.setInput(qe,ha.yy),ha.yy.lexer=Pr,ha.yy.parser=this,Pr.yylloc===void 0&&(Pr.yylloc={});var Mn=Pr.yylloc;Bt.push(Mn);var co=Pr.options&&Pr.options.ranges;function qa(){var Wt;return typeof(Wt=Ie.pop()||Pr.lex()||zi)!="number"&&(Wt instanceof Array&&(Wt=(Ie=Wt).pop()),Wt=or.symbols_[Wt]||Wt),Wt}typeof ha.yy.parseError=="function"?this.parseError=ha.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Yn,Ti,Qr,Dr,Qi,Nr,Wr,Wi,Ni,Ei={};;){if(Qr=Dn[Dn.length-1],this.defaultActions[Qr]?Dr=this.defaultActions[Qr]:(Yn==null&&(Yn=qa()),Dr=De[Qr]&&De[Qr][Yn]),Dr===void 0||!Dr.length||!Dr[0]){var Da="";for(Nr in Ni=[],De[Qr])this.terminals_[Nr]&&Nr>Ha&&Ni.push("'"+this.terminals_[Nr]+"'");Da=Pr.showPosition?"Parse error on line "+(Fr+1)+`:
|
|
`+Pr.showPosition()+`
|
|
Expecting `+Ni.join(", ")+", got '"+(this.terminals_[Yn]||Yn)+"'":"Parse error on line "+(Fr+1)+": Unexpected "+(Yn==zi?"end of input":"'"+(this.terminals_[Yn]||Yn)+"'"),this.parseError(Da,{text:Pr.match,token:this.terminals_[Yn]||Yn,line:Pr.yylineno,loc:Mn,expected:Ni})}if(Dr[0]instanceof Array&&Dr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qr+", token: "+Yn);switch(Dr[0]){case 1:Dn.push(Yn),br.push(Pr.yytext),Bt.push(Pr.yylloc),Dn.push(Dr[1]),Yn=null,Ti?(Yn=Ti,Ti=null):(Ss=Pr.yyleng,Vt=Pr.yytext,Fr=Pr.yylineno,Mn=Pr.yylloc,Zo>0);break;case 2:if(Wr=this.productions_[Dr[1]][1],Ei.$=br[br.length-Wr],Ei._$={first_line:Bt[Bt.length-(Wr||1)].first_line,last_line:Bt[Bt.length-1].last_line,first_column:Bt[Bt.length-(Wr||1)].first_column,last_column:Bt[Bt.length-1].last_column},co&&(Ei._$.range=[Bt[Bt.length-(Wr||1)].range[0],Bt[Bt.length-1].range[1]]),(Qi=this.performAction.apply(Ei,[Vt,Ss,Fr,ha.yy,Dr[1],br,Bt].concat(Cs)))!==void 0)return Qi;Wr&&(Dn=Dn.slice(0,-1*Wr*2),br=br.slice(0,-1*Wr),Bt=Bt.slice(0,-1*Wr)),Dn.push(this.productions_[Dr[1]][0]),br.push(Ei.$),Bt.push(Ei._$),Wi=De[Dn[Dn.length-2]][Dn[Dn.length-1]],Dn.push(Wi);break;case 3:return!0}}return!0}},Wa={EOF:1,parseError:function(qe,or){if(!this.yy.parser)throw new Error(qe);this.yy.parser.parseError(qe,or)},setInput:function(qe,or){return this.yy=or||this.yy||{},this._input=qe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var qe=this._input[0];return this.yytext+=qe,this.yyleng++,this.offset++,this.match+=qe,this.matched+=qe,qe.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),qe},unput:function(qe){var or=qe.length,Dn=qe.split(/(?:\r\n?|\n)/g);this._input=qe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-or),this.offset-=or;var Ie=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Dn.length-1&&(this.yylineno-=Dn.length-1);var br=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Dn?(Dn.length===Ie.length?this.yylloc.first_column:0)+Ie[Ie.length-Dn.length].length-Dn[0].length:this.yylloc.first_column-or},this.options.ranges&&(this.yylloc.range=[br[0],br[0]+this.yyleng-or]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(qe){this.unput(this.match.slice(qe))},pastInput:function(){var qe=this.matched.substr(0,this.matched.length-this.match.length);return(qe.length>20?"...":"")+qe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var qe=this.match;return qe.length<20&&(qe+=this._input.substr(0,20-qe.length)),(qe.substr(0,20)+(qe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var qe=this.pastInput(),or=new Array(qe.length+1).join("-");return qe+this.upcomingInput()+`
|
|
`+or+"^"},test_match:function(qe,or){var Dn,Ie,br;if(this.options.backtrack_lexer&&(br={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(br.yylloc.range=this.yylloc.range.slice(0))),(Ie=qe[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ie?Ie[Ie.length-1].length-Ie[Ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+qe[0].length},this.yytext+=qe[0],this.match+=qe[0],this.matches=qe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(qe[0].length),this.matched+=qe[0],Dn=this.performAction.call(this,this.yy,this,or,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Dn)return Dn;if(this._backtrack){for(var Bt in br)this[Bt]=br[Bt];return!1}return!1},next:function(){if(this.done)return this.EOF;var qe,or,Dn,Ie;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var br=this._currentRules(),Bt=0;Bt<br.length;Bt++)if((Dn=this._input.match(this.rules[br[Bt]]))&&(!or||Dn[0].length>or[0].length)){if(or=Dn,Ie=Bt,this.options.backtrack_lexer){if((qe=this.test_match(Dn,br[Bt]))!==!1)return qe;if(this._backtrack){or=!1;continue}return!1}if(!this.options.flex)break}return or?(qe=this.test_match(or,br[Ie]))!==!1&&qe:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(qe){this.conditionStack.push(qe)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(qe){return(qe=this.conditionStack.length-1-Math.abs(qe||0))>=0?this.conditionStack[qe]:"INITIAL"},pushState:function(qe){this.begin(qe)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(qe,or,Dn,Ie){switch(Dn){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:this.popState();break;case 9:return"STR";case 10:return 76;case 11:return 85;case 12:return 77;case 13:return 94;case 14:return 78;case 15:return 79;case 16:this.begin("href");break;case 17:this.popState();break;case 18:return 90;case 19:this.begin("callbackname");break;case 20:this.popState();break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 88;case 23:this.popState();break;case 24:return 89;case 25:this.begin("click");break;case 26:this.popState();break;case 27:return 80;case 28:case 29:return qe.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 91;case 36:return this.popState(),25;case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:return this.popState(),26;case 47:return 110;case 48:return 111;case 49:return 112;case 50:return 113;case 51:return 95;case 52:return 103;case 53:return 48;case 54:return 100;case 55:return 47;case 56:return 20;case 57:return 96;case 58:return 118;case 59:case 60:case 61:return 71;case 62:case 63:case 64:return 70;case 65:return 52;case 66:return 53;case 67:return 54;case 68:return 55;case 69:return 56;case 70:return 57;case 71:return 58;case 72:return 59;case 73:return 101;case 74:return 104;case 75:return 119;case 76:return 116;case 77:return 105;case 78:case 79:return 117;case 80:return 106;case 81:return 62;case 82:return 82;case 83:return"SEP";case 84:return 81;case 85:return 99;case 86:return 64;case 87:return 63;case 88:return 66;case 89:return 65;case 90:return 114;case 91:return 115;case 92:return 72;case 93:return 50;case 94:return 51;case 95:return 40;case 96:return 41;case 97:return 60;case 98:return 61;case 99:return 125;case 100:return 21;case 101:return 22;case 102:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[23,24],inclusive:!1},callbackname:{rules:[20,21,22],inclusive:!1},href:{rules:[17,18],inclusive:!1},click:{rules:[26,27],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[36,37,38,39,40,41,42,43,44,45,46],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,19,25,28,29,30,31,32,33,34,35,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102],inclusive:!0}}};function Aa(){this.yy={}}return Ui.lexer=Wa,Aa.prototype=Ui,Ui.Parser=Aa,new Aa}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(5354).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},674:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(et,K,dt,Ot){for(dt=dt||{},Ot=et.length;Ot--;dt[et[Ot]]=K);return dt},_=[1,3],y=[1,5],w=[7,9,11,12,13,14,15,16,17,18,19,21,28,33],T=[1,15],A=[1,16],L=[1,17],N=[1,18],P=[1,19],W=[1,20],H=[1,21],V=[1,22],X=[1,24],J=[1,26],ht=[1,29],tt=[5,7,9,11,12,13,14,15,16,17,18,19,21,28,33],kt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,todayMarker:17,title:18,section:19,clickStatement:20,taskTxt:21,taskData:22,openDirective:23,typeDirective:24,closeDirective:25,":":26,argDirective:27,click:28,callbackname:29,callbackargs:30,href:31,clickStatementDebug:32,open_directive:33,type_directive:34,arg_directive:35,close_directive:36,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"todayMarker",18:"title",19:"section",21:"taskTxt",22:"taskData",26:":",28:"click",29:"callbackname",30:"callbackargs",31:"href",33:"open_directive",34:"type_directive",35:"arg_directive",36:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[20,2],[20,3],[20,3],[20,4],[20,3],[20,4],[20,2],[32,2],[32,3],[32,3],[32,4],[32,3],[32,4],[32,2],[23,1],[24,1],[27,1],[25,1]],performAction:function(et,K,dt,Ot,Tt,lt,It){var Ft=lt.length-1;switch(Tt){case 2:return lt[Ft-1];case 3:this.$=[];break;case 4:lt[Ft-1].push(lt[Ft]),this.$=lt[Ft-1];break;case 5:case 6:this.$=lt[Ft];break;case 7:case 8:this.$=[];break;case 9:Ot.setDateFormat(lt[Ft].substr(11)),this.$=lt[Ft].substr(11);break;case 10:Ot.enableInclusiveEndDates(),this.$=lt[Ft].substr(18);break;case 11:Ot.TopAxis(),this.$=lt[Ft].substr(8);break;case 12:Ot.setAxisFormat(lt[Ft].substr(11)),this.$=lt[Ft].substr(11);break;case 13:Ot.setExcludes(lt[Ft].substr(9)),this.$=lt[Ft].substr(9);break;case 14:Ot.setTodayMarker(lt[Ft].substr(12)),this.$=lt[Ft].substr(12);break;case 15:Ot.setTitle(lt[Ft].substr(6)),this.$=lt[Ft].substr(6);break;case 16:Ot.addSection(lt[Ft].substr(8)),this.$=lt[Ft].substr(8);break;case 18:Ot.addTask(lt[Ft-1],lt[Ft]),this.$="task";break;case 22:this.$=lt[Ft-1],Ot.setClickEvent(lt[Ft-1],lt[Ft],null);break;case 23:this.$=lt[Ft-2],Ot.setClickEvent(lt[Ft-2],lt[Ft-1],lt[Ft]);break;case 24:this.$=lt[Ft-2],Ot.setClickEvent(lt[Ft-2],lt[Ft-1],null),Ot.setLink(lt[Ft-2],lt[Ft]);break;case 25:this.$=lt[Ft-3],Ot.setClickEvent(lt[Ft-3],lt[Ft-2],lt[Ft-1]),Ot.setLink(lt[Ft-3],lt[Ft]);break;case 26:this.$=lt[Ft-2],Ot.setClickEvent(lt[Ft-2],lt[Ft],null),Ot.setLink(lt[Ft-2],lt[Ft-1]);break;case 27:this.$=lt[Ft-3],Ot.setClickEvent(lt[Ft-3],lt[Ft-1],lt[Ft]),Ot.setLink(lt[Ft-3],lt[Ft-2]);break;case 28:this.$=lt[Ft-1],Ot.setLink(lt[Ft-1],lt[Ft]);break;case 29:case 35:this.$=lt[Ft-1]+" "+lt[Ft];break;case 30:case 31:case 33:this.$=lt[Ft-2]+" "+lt[Ft-1]+" "+lt[Ft];break;case 32:case 34:this.$=lt[Ft-3]+" "+lt[Ft-2]+" "+lt[Ft-1]+" "+lt[Ft];break;case 36:Ot.parseDirective("%%{","open_directive");break;case 37:Ot.parseDirective(lt[Ft],"type_directive");break;case 38:lt[Ft]=lt[Ft].trim().replace(/'/g,'"'),Ot.parseDirective(lt[Ft],"arg_directive");break;case 39:Ot.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:_,23:4,33:y},{1:[3]},{3:6,4:2,5:_,23:4,33:y},l(w,[2,3],{6:7}),{24:8,34:[1,9]},{34:[2,36]},{1:[2,1]},{4:25,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:T,13:A,14:L,15:N,16:P,17:W,18:H,19:V,20:23,21:X,23:4,28:J,33:y},{25:27,26:[1,28],36:ht},l([26,36],[2,37]),l(w,[2,8],{1:[2,2]}),l(w,[2,4]),{4:25,10:30,12:T,13:A,14:L,15:N,16:P,17:W,18:H,19:V,20:23,21:X,23:4,28:J,33:y},l(w,[2,6]),l(w,[2,7]),l(w,[2,9]),l(w,[2,10]),l(w,[2,11]),l(w,[2,12]),l(w,[2,13]),l(w,[2,14]),l(w,[2,15]),l(w,[2,16]),l(w,[2,17]),{22:[1,31]},l(w,[2,19]),{29:[1,32],31:[1,33]},{11:[1,34]},{27:35,35:[1,36]},{11:[2,39]},l(w,[2,5]),l(w,[2,18]),l(w,[2,22],{30:[1,37],31:[1,38]}),l(w,[2,28],{29:[1,39]}),l(tt,[2,20]),{25:40,36:ht},{36:[2,38]},l(w,[2,23],{31:[1,41]}),l(w,[2,24]),l(w,[2,26],{30:[1,42]}),{11:[1,43]},l(w,[2,25]),l(w,[2,27]),l(tt,[2,21])],defaultActions:{5:[2,36],6:[2,1],29:[2,39],36:[2,38]},parseError:function(et,K){if(!K.recoverable){var dt=new Error(et);throw dt.hash=K,dt}this.trace(et)},parse:function(et){var K=this,dt=[0],Ot=[],Tt=[null],lt=[],It=this.table,Ft="",ue=0,ye=0,de=0,le=2,Nt=1,jt=lt.slice.call(arguments,1),Kt=Object.create(this.lexer),pe={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(pe.yy[ge]=this.yy[ge]);Kt.setInput(et,pe.yy),pe.yy.lexer=Kt,pe.yy.parser=this,Kt.yylloc===void 0&&(Kt.yylloc={});var Pt=Kt.yylloc;lt.push(Pt);var ze=Kt.options&&Kt.options.ranges;function Qt(){var pn;return typeof(pn=Ot.pop()||Kt.lex()||Nt)!="number"&&(pn instanceof Array&&(pn=(Ot=pn).pop()),pn=K.symbols_[pn]||pn),pn}typeof pe.yy.parseError=="function"?this.parseError=pe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var zt,Zt,rt,ae,Ct,Mt,re,Dt,ne,ke={};;){if(rt=dt[dt.length-1],this.defaultActions[rt]?ae=this.defaultActions[rt]:(zt==null&&(zt=Qt()),ae=It[rt]&&It[rt][zt]),ae===void 0||!ae.length||!ae[0]){var me="";for(Mt in ne=[],It[rt])this.terminals_[Mt]&&Mt>le&&ne.push("'"+this.terminals_[Mt]+"'");me=Kt.showPosition?"Parse error on line "+(ue+1)+`:
|
|
`+Kt.showPosition()+`
|
|
Expecting `+ne.join(", ")+", got '"+(this.terminals_[zt]||zt)+"'":"Parse error on line "+(ue+1)+": Unexpected "+(zt==Nt?"end of input":"'"+(this.terminals_[zt]||zt)+"'"),this.parseError(me,{text:Kt.match,token:this.terminals_[zt]||zt,line:Kt.yylineno,loc:Pt,expected:ne})}if(ae[0]instanceof Array&&ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+rt+", token: "+zt);switch(ae[0]){case 1:dt.push(zt),Tt.push(Kt.yytext),lt.push(Kt.yylloc),dt.push(ae[1]),zt=null,Zt?(zt=Zt,Zt=null):(ye=Kt.yyleng,Ft=Kt.yytext,ue=Kt.yylineno,Pt=Kt.yylloc,de>0);break;case 2:if(re=this.productions_[ae[1]][1],ke.$=Tt[Tt.length-re],ke._$={first_line:lt[lt.length-(re||1)].first_line,last_line:lt[lt.length-1].last_line,first_column:lt[lt.length-(re||1)].first_column,last_column:lt[lt.length-1].last_column},ze&&(ke._$.range=[lt[lt.length-(re||1)].range[0],lt[lt.length-1].range[1]]),(Ct=this.performAction.apply(ke,[Ft,ye,ue,pe.yy,ae[1],Tt,lt].concat(jt)))!==void 0)return Ct;re&&(dt=dt.slice(0,-1*re*2),Tt=Tt.slice(0,-1*re),lt=lt.slice(0,-1*re)),dt.push(this.productions_[ae[1]][0]),Tt.push(ke.$),lt.push(ke._$),Dt=It[dt[dt.length-2]][dt[dt.length-1]],dt.push(Dt);break;case 3:return!0}}return!0}},gt={EOF:1,parseError:function(et,K){if(!this.yy.parser)throw new Error(et);this.yy.parser.parseError(et,K)},setInput:function(et,K){return this.yy=K||this.yy||{},this._input=et,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var et=this._input[0];return this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et,et.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),et},unput:function(et){var K=et.length,dt=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-K),this.offset-=K;var Ot=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),dt.length-1&&(this.yylineno-=dt.length-1);var Tt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:dt?(dt.length===Ot.length?this.yylloc.first_column:0)+Ot[Ot.length-dt.length].length-dt[0].length:this.yylloc.first_column-K},this.options.ranges&&(this.yylloc.range=[Tt[0],Tt[0]+this.yyleng-K]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(et){this.unput(this.match.slice(et))},pastInput:function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var et=this.pastInput(),K=new Array(et.length+1).join("-");return et+this.upcomingInput()+`
|
|
`+K+"^"},test_match:function(et,K){var dt,Ot,Tt;if(this.options.backtrack_lexer&&(Tt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Tt.yylloc.range=this.yylloc.range.slice(0))),(Ot=et[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ot.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ot?Ot[Ot.length-1].length-Ot[Ot.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(et[0].length),this.matched+=et[0],dt=this.performAction.call(this,this.yy,this,K,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),dt)return dt;if(this._backtrack){for(var lt in Tt)this[lt]=Tt[lt];return!1}return!1},next:function(){if(this.done)return this.EOF;var et,K,dt,Ot;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Tt=this._currentRules(),lt=0;lt<Tt.length;lt++)if((dt=this._input.match(this.rules[Tt[lt]]))&&(!K||dt[0].length>K[0].length)){if(K=dt,Ot=lt,this.options.backtrack_lexer){if((et=this.test_match(dt,Tt[lt]))!==!1)return et;if(this._backtrack){K=!1;continue}return!1}if(!this.options.flex)break}return K?(et=this.test_match(K,Tt[Ot]))!==!1&&et:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(et){this.conditionStack.push(et)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(et){return(et=this.conditionStack.length-1-Math.abs(et||0))>=0?this.conditionStack[et]:"INITIAL"},pushState:function(et){this.begin(et)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(et,K,dt,Ot){switch(dt){case 0:return this.begin("open_directive"),33;case 1:return this.begin("type_directive"),34;case 2:return this.popState(),this.begin("arg_directive"),26;case 3:return this.popState(),this.popState(),36;case 4:return 35;case 5:case 6:case 7:break;case 8:return 11;case 9:case 10:case 11:break;case 12:this.begin("href");break;case 13:this.popState();break;case 14:return 31;case 15:this.begin("callbackname");break;case 16:this.popState();break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 29;case 19:this.popState();break;case 20:return 30;case 21:this.begin("click");break;case 22:this.popState();break;case 23:return 28;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 16;case 30:return 17;case 31:return"date";case 32:return 18;case 33:return 19;case 34:return 21;case 35:return 22;case 36:return 26;case 37:return 7;case 38:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],inclusive:!0}}};function ft(){this.yy={}}return kt.lexer=gt,ft.prototype=kt,kt.Parser=ft,new ft}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(6878).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},4694:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(H,V,X,J){for(X=X||{},J=H.length;J--;X[H[J]]=V);return X},_=[2,3],y=[1,7],w=[7,12,15,17,19,20,21],T=[7,11,12,15,17,19,20,21],A=[2,20],L=[1,32],N={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(H,V,X,J,ht,tt,kt){var gt=tt.length-1;switch(ht){case 1:return tt[gt-1];case 2:return J.setDirection(tt[gt-3]),tt[gt-1];case 4:J.setOptions(tt[gt-1]),this.$=tt[gt];break;case 5:tt[gt-1]+=tt[gt],this.$=tt[gt-1];break;case 7:this.$=[];break;case 8:tt[gt-1].push(tt[gt]),this.$=tt[gt-1];break;case 9:this.$=tt[gt-1];break;case 11:J.commit(tt[gt]);break;case 12:J.branch(tt[gt]);break;case 13:J.checkout(tt[gt]);break;case 14:J.merge(tt[gt]);break;case 15:J.reset(tt[gt]);break;case 16:this.$="";break;case 17:this.$=tt[gt];break;case 18:this.$=tt[gt-1]+":"+tt[gt];break;case 19:this.$=tt[gt-1]+":"+J.count,J.count=0;break;case 20:J.count=0;break;case 21:J.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:_,9:6,12:y},{5:[1,8]},{7:[1,9]},l(w,[2,7],{10:10,11:[1,11]}),l(T,[2,6]),{6:12,7:_,9:6,12:y},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},l(T,[2,5]),{7:[1,21]},l(w,[2,8]),{12:[1,22]},l(w,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},l(w,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:A,25:31,26:L},{12:A,25:33,26:L},{12:[2,18]},{12:A,25:34,26:L},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(H,V){if(!V.recoverable){var X=new Error(H);throw X.hash=V,X}this.trace(H)},parse:function(H){var V=this,X=[0],J=[],ht=[null],tt=[],kt=this.table,gt="",ft=0,et=0,K=0,dt=2,Ot=1,Tt=tt.slice.call(arguments,1),lt=Object.create(this.lexer),It={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(It.yy[Ft]=this.yy[Ft]);lt.setInput(H,It.yy),It.yy.lexer=lt,It.yy.parser=this,lt.yylloc===void 0&&(lt.yylloc={});var ue=lt.yylloc;tt.push(ue);var ye=lt.options&<.options.ranges;function de(){var rt;return typeof(rt=J.pop()||lt.lex()||Ot)!="number"&&(rt instanceof Array&&(rt=(J=rt).pop()),rt=V.symbols_[rt]||rt),rt}typeof It.yy.parseError=="function"?this.parseError=It.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var le,Nt,jt,Kt,pe,ge,Pt,ze,Qt,zt={};;){if(jt=X[X.length-1],this.defaultActions[jt]?Kt=this.defaultActions[jt]:(le==null&&(le=de()),Kt=kt[jt]&&kt[jt][le]),Kt===void 0||!Kt.length||!Kt[0]){var Zt="";for(ge in Qt=[],kt[jt])this.terminals_[ge]&&ge>dt&&Qt.push("'"+this.terminals_[ge]+"'");Zt=lt.showPosition?"Parse error on line "+(ft+1)+`:
|
|
`+lt.showPosition()+`
|
|
Expecting `+Qt.join(", ")+", got '"+(this.terminals_[le]||le)+"'":"Parse error on line "+(ft+1)+": Unexpected "+(le==Ot?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(Zt,{text:lt.match,token:this.terminals_[le]||le,line:lt.yylineno,loc:ue,expected:Qt})}if(Kt[0]instanceof Array&&Kt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+jt+", token: "+le);switch(Kt[0]){case 1:X.push(le),ht.push(lt.yytext),tt.push(lt.yylloc),X.push(Kt[1]),le=null,Nt?(le=Nt,Nt=null):(et=lt.yyleng,gt=lt.yytext,ft=lt.yylineno,ue=lt.yylloc,K>0);break;case 2:if(Pt=this.productions_[Kt[1]][1],zt.$=ht[ht.length-Pt],zt._$={first_line:tt[tt.length-(Pt||1)].first_line,last_line:tt[tt.length-1].last_line,first_column:tt[tt.length-(Pt||1)].first_column,last_column:tt[tt.length-1].last_column},ye&&(zt._$.range=[tt[tt.length-(Pt||1)].range[0],tt[tt.length-1].range[1]]),(pe=this.performAction.apply(zt,[gt,et,ft,It.yy,Kt[1],ht,tt].concat(Tt)))!==void 0)return pe;Pt&&(X=X.slice(0,-1*Pt*2),ht=ht.slice(0,-1*Pt),tt=tt.slice(0,-1*Pt)),X.push(this.productions_[Kt[1]][0]),ht.push(zt.$),tt.push(zt._$),ze=kt[X[X.length-2]][X[X.length-1]],X.push(ze);break;case 3:return!0}}return!0}},P={EOF:1,parseError:function(H,V){if(!this.yy.parser)throw new Error(H);this.yy.parser.parseError(H,V)},setInput:function(H,V){return this.yy=V||this.yy||{},this._input=H,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var H=this._input[0];return this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H,H.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),H},unput:function(H){var V=H.length,X=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-V),this.offset-=V;var J=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),X.length-1&&(this.yylineno-=X.length-1);var ht=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:X?(X.length===J.length?this.yylloc.first_column:0)+J[J.length-X.length].length-X[0].length:this.yylloc.first_column-V},this.options.ranges&&(this.yylloc.range=[ht[0],ht[0]+this.yyleng-V]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(H){this.unput(this.match.slice(H))},pastInput:function(){var H=this.matched.substr(0,this.matched.length-this.match.length);return(H.length>20?"...":"")+H.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var H=this.match;return H.length<20&&(H+=this._input.substr(0,20-H.length)),(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var H=this.pastInput(),V=new Array(H.length+1).join("-");return H+this.upcomingInput()+`
|
|
`+V+"^"},test_match:function(H,V){var X,J,ht;if(this.options.backtrack_lexer&&(ht={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ht.yylloc.range=this.yylloc.range.slice(0))),(J=H[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=J.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:J?J[J.length-1].length-J[J.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+H[0].length},this.yytext+=H[0],this.match+=H[0],this.matches=H,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(H[0].length),this.matched+=H[0],X=this.performAction.call(this,this.yy,this,V,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),X)return X;if(this._backtrack){for(var tt in ht)this[tt]=ht[tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var H,V,X,J;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ht=this._currentRules(),tt=0;tt<ht.length;tt++)if((X=this._input.match(this.rules[ht[tt]]))&&(!V||X[0].length>V[0].length)){if(V=X,J=tt,this.options.backtrack_lexer){if((H=this.test_match(X,ht[tt]))!==!1)return H;if(this._backtrack){V=!1;continue}return!1}if(!this.options.flex)break}return V?(H=this.test_match(V,ht[J]))!==!1&&H:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(H){this.conditionStack.push(H)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(H){return(H=this.conditionStack.length-1-Math.abs(H||0))>=0?this.conditionStack[H]:"INITIAL"},pushState:function(H){this.begin(H)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(H,V,X,J){switch(X){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 18:this.popState();break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function W(){this.yy={}}return N.lexer=P,W.prototype=N,N.Parser=W,new W}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(8183).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},6023:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(A,L,N,P){for(N=N||{},P=A.length;P--;N[A[P]]=L);return N},_=[6,9,10],y={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(A,L,N,P,W,H,V){switch(H.length,W){case 1:return P;case 4:break;case 6:P.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},l(_,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},l(_,[2,3]),l(_,[2,4]),l(_,[2,5]),l(_,[2,6])],defaultActions:{4:[2,1]},parseError:function(A,L){if(!L.recoverable){var N=new Error(A);throw N.hash=L,N}this.trace(A)},parse:function(A){var L=this,N=[0],P=[],W=[null],H=[],V=this.table,X="",J=0,ht=0,tt=0,kt=2,gt=1,ft=H.slice.call(arguments,1),et=Object.create(this.lexer),K={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(K.yy[dt]=this.yy[dt]);et.setInput(A,K.yy),K.yy.lexer=et,K.yy.parser=this,et.yylloc===void 0&&(et.yylloc={});var Ot=et.yylloc;H.push(Ot);var Tt=et.options&&et.options.ranges;function lt(){var Pt;return typeof(Pt=P.pop()||et.lex()||gt)!="number"&&(Pt instanceof Array&&(Pt=(P=Pt).pop()),Pt=L.symbols_[Pt]||Pt),Pt}typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var It,Ft,ue,ye,de,le,Nt,jt,Kt,pe={};;){if(ue=N[N.length-1],this.defaultActions[ue]?ye=this.defaultActions[ue]:(It==null&&(It=lt()),ye=V[ue]&&V[ue][It]),ye===void 0||!ye.length||!ye[0]){var ge="";for(le in Kt=[],V[ue])this.terminals_[le]&&le>kt&&Kt.push("'"+this.terminals_[le]+"'");ge=et.showPosition?"Parse error on line "+(J+1)+`:
|
|
`+et.showPosition()+`
|
|
Expecting `+Kt.join(", ")+", got '"+(this.terminals_[It]||It)+"'":"Parse error on line "+(J+1)+": Unexpected "+(It==gt?"end of input":"'"+(this.terminals_[It]||It)+"'"),this.parseError(ge,{text:et.match,token:this.terminals_[It]||It,line:et.yylineno,loc:Ot,expected:Kt})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ue+", token: "+It);switch(ye[0]){case 1:N.push(It),W.push(et.yytext),H.push(et.yylloc),N.push(ye[1]),It=null,Ft?(It=Ft,Ft=null):(ht=et.yyleng,X=et.yytext,J=et.yylineno,Ot=et.yylloc,tt>0);break;case 2:if(Nt=this.productions_[ye[1]][1],pe.$=W[W.length-Nt],pe._$={first_line:H[H.length-(Nt||1)].first_line,last_line:H[H.length-1].last_line,first_column:H[H.length-(Nt||1)].first_column,last_column:H[H.length-1].last_column},Tt&&(pe._$.range=[H[H.length-(Nt||1)].range[0],H[H.length-1].range[1]]),(de=this.performAction.apply(pe,[X,ht,J,K.yy,ye[1],W,H].concat(ft)))!==void 0)return de;Nt&&(N=N.slice(0,-1*Nt*2),W=W.slice(0,-1*Nt),H=H.slice(0,-1*Nt)),N.push(this.productions_[ye[1]][0]),W.push(pe.$),H.push(pe._$),jt=V[N[N.length-2]][N[N.length-1]],N.push(jt);break;case 3:return!0}}return!0}},w={EOF:1,parseError:function(A,L){if(!this.yy.parser)throw new Error(A);this.yy.parser.parseError(A,L)},setInput:function(A,L){return this.yy=L||this.yy||{},this._input=A,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var A=this._input[0];return this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A,A.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),A},unput:function(A){var L=A.length,N=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),N.length-1&&(this.yylineno-=N.length-1);var W=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:N?(N.length===P.length?this.yylloc.first_column:0)+P[P.length-N.length].length-N[0].length:this.yylloc.first_column-L},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-L]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(A){this.unput(this.match.slice(A))},pastInput:function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var A=this.pastInput(),L=new Array(A.length+1).join("-");return A+this.upcomingInput()+`
|
|
`+L+"^"},test_match:function(A,L){var N,P,W;if(this.options.backtrack_lexer&&(W={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(W.yylloc.range=this.yylloc.range.slice(0))),(P=A[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+A[0].length},this.yytext+=A[0],this.match+=A[0],this.matches=A,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(A[0].length),this.matched+=A[0],N=this.performAction.call(this,this.yy,this,L,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),N)return N;if(this._backtrack){for(var H in W)this[H]=W[H];return!1}return!1},next:function(){if(this.done)return this.EOF;var A,L,N,P;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),H=0;H<W.length;H++)if((N=this._input.match(this.rules[W[H]]))&&(!L||N[0].length>L[0].length)){if(L=N,P=H,this.options.backtrack_lexer){if((A=this.test_match(N,W[H]))!==!1)return A;if(this._backtrack){L=!1;continue}return!1}if(!this.options.flex)break}return L?(A=this.test_match(L,W[P]))!==!1&&A:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(A){this.conditionStack.push(A)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(A){return(A=this.conditionStack.length-1-Math.abs(A||0))>=0?this.conditionStack[A]:"INITIAL"},pushState:function(A){this.begin(A)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(A,L,N,P){switch(N){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function T(){this.yy={}}return y.lexer=w,T.prototype=y,y.Parser=T,new T}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(1428).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},1443:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(ft,et,K,dt){for(K=K||{},dt=ft.length;dt--;K[ft[dt]]=et);return K},_=[1,4],y=[1,5],w=[1,6],T=[1,7],A=[1,9],L=[1,11,13,20,21,22,23],N=[2,5],P=[1,6,11,13,20,21,22,23],W=[20,21,22],H=[2,8],V=[1,18],X=[1,19],J=[1,24],ht=[6,20,21,22,23],tt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,openDirective:15,typeDirective:16,closeDirective:17,":":18,argDirective:19,NEWLINE:20,";":21,EOF:22,open_directive:23,type_directive:24,arg_directive:25,close_directive:26,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",18:":",20:"NEWLINE",21:";",22:"EOF",23:"open_directive",24:"type_directive",25:"arg_directive",26:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[15,1],[16,1],[19,1],[17,1]],performAction:function(ft,et,K,dt,Ot,Tt,lt){var It=Tt.length-1;switch(Ot){case 4:dt.setShowData(!0);break;case 7:this.$=Tt[It-1];break;case 9:dt.addSection(Tt[It-1],dt.cleanupValue(Tt[It]));break;case 10:this.$=Tt[It].trim(),dt.setTitle(this.$);break;case 17:dt.parseDirective("%%{","open_directive");break;case 18:dt.parseDirective(Tt[It],"type_directive");break;case 19:Tt[It]=Tt[It].trim().replace(/'/g,'"'),dt.parseDirective(Tt[It],"arg_directive");break;case 20:dt.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:_,15:8,20:y,21:w,22:T,23:A},{1:[3]},{3:10,4:2,5:3,6:_,15:8,20:y,21:w,22:T,23:A},{3:11,4:2,5:3,6:_,15:8,20:y,21:w,22:T,23:A},l(L,N,{7:12,8:[1,13]}),l(P,[2,14]),l(P,[2,15]),l(P,[2,16]),{16:14,24:[1,15]},{24:[2,17]},{1:[2,1]},{1:[2,2]},l(W,H,{15:8,9:16,10:17,5:20,1:[2,3],11:V,13:X,23:A}),l(L,N,{7:21}),{17:22,18:[1,23],26:J},l([18,26],[2,18]),l(L,[2,6]),{4:25,20:y,21:w,22:T},{12:[1,26]},{14:[1,27]},l(W,[2,11]),l(W,H,{15:8,9:16,10:17,5:20,1:[2,4],11:V,13:X,23:A}),l(ht,[2,12]),{19:28,25:[1,29]},l(ht,[2,20]),l(L,[2,7]),l(W,[2,9]),l(W,[2,10]),{17:30,26:J},{26:[2,19]},l(ht,[2,13])],defaultActions:{9:[2,17],10:[2,1],11:[2,2],29:[2,19]},parseError:function(ft,et){if(!et.recoverable){var K=new Error(ft);throw K.hash=et,K}this.trace(ft)},parse:function(ft){var et=this,K=[0],dt=[],Ot=[null],Tt=[],lt=this.table,It="",Ft=0,ue=0,ye=0,de=2,le=1,Nt=Tt.slice.call(arguments,1),jt=Object.create(this.lexer),Kt={yy:{}};for(var pe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pe)&&(Kt.yy[pe]=this.yy[pe]);jt.setInput(ft,Kt.yy),Kt.yy.lexer=jt,Kt.yy.parser=this,jt.yylloc===void 0&&(jt.yylloc={});var ge=jt.yylloc;Tt.push(ge);var Pt=jt.options&&jt.options.ranges;function ze(){var me;return typeof(me=dt.pop()||jt.lex()||le)!="number"&&(me instanceof Array&&(me=(dt=me).pop()),me=et.symbols_[me]||me),me}typeof Kt.yy.parseError=="function"?this.parseError=Kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Qt,zt,Zt,rt,ae,Ct,Mt,re,Dt,ne={};;){if(Zt=K[K.length-1],this.defaultActions[Zt]?rt=this.defaultActions[Zt]:(Qt==null&&(Qt=ze()),rt=lt[Zt]&<[Zt][Qt]),rt===void 0||!rt.length||!rt[0]){var ke="";for(Ct in Dt=[],lt[Zt])this.terminals_[Ct]&&Ct>de&&Dt.push("'"+this.terminals_[Ct]+"'");ke=jt.showPosition?"Parse error on line "+(Ft+1)+`:
|
|
`+jt.showPosition()+`
|
|
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[Qt]||Qt)+"'":"Parse error on line "+(Ft+1)+": Unexpected "+(Qt==le?"end of input":"'"+(this.terminals_[Qt]||Qt)+"'"),this.parseError(ke,{text:jt.match,token:this.terminals_[Qt]||Qt,line:jt.yylineno,loc:ge,expected:Dt})}if(rt[0]instanceof Array&&rt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Zt+", token: "+Qt);switch(rt[0]){case 1:K.push(Qt),Ot.push(jt.yytext),Tt.push(jt.yylloc),K.push(rt[1]),Qt=null,zt?(Qt=zt,zt=null):(ue=jt.yyleng,It=jt.yytext,Ft=jt.yylineno,ge=jt.yylloc,ye>0);break;case 2:if(Mt=this.productions_[rt[1]][1],ne.$=Ot[Ot.length-Mt],ne._$={first_line:Tt[Tt.length-(Mt||1)].first_line,last_line:Tt[Tt.length-1].last_line,first_column:Tt[Tt.length-(Mt||1)].first_column,last_column:Tt[Tt.length-1].last_column},Pt&&(ne._$.range=[Tt[Tt.length-(Mt||1)].range[0],Tt[Tt.length-1].range[1]]),(ae=this.performAction.apply(ne,[It,ue,Ft,Kt.yy,rt[1],Ot,Tt].concat(Nt)))!==void 0)return ae;Mt&&(K=K.slice(0,-1*Mt*2),Ot=Ot.slice(0,-1*Mt),Tt=Tt.slice(0,-1*Mt)),K.push(this.productions_[rt[1]][0]),Ot.push(ne.$),Tt.push(ne._$),re=lt[K[K.length-2]][K[K.length-1]],K.push(re);break;case 3:return!0}}return!0}},kt={EOF:1,parseError:function(ft,et){if(!this.yy.parser)throw new Error(ft);this.yy.parser.parseError(ft,et)},setInput:function(ft,et){return this.yy=et||this.yy||{},this._input=ft,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ft=this._input[0];return this.yytext+=ft,this.yyleng++,this.offset++,this.match+=ft,this.matched+=ft,ft.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ft},unput:function(ft){var et=ft.length,K=ft.split(/(?:\r\n?|\n)/g);this._input=ft+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-et),this.offset-=et;var dt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),K.length-1&&(this.yylineno-=K.length-1);var Ot=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:K?(K.length===dt.length?this.yylloc.first_column:0)+dt[dt.length-K.length].length-K[0].length:this.yylloc.first_column-et},this.options.ranges&&(this.yylloc.range=[Ot[0],Ot[0]+this.yyleng-et]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(ft){this.unput(this.match.slice(ft))},pastInput:function(){var ft=this.matched.substr(0,this.matched.length-this.match.length);return(ft.length>20?"...":"")+ft.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ft=this.match;return ft.length<20&&(ft+=this._input.substr(0,20-ft.length)),(ft.substr(0,20)+(ft.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ft=this.pastInput(),et=new Array(ft.length+1).join("-");return ft+this.upcomingInput()+`
|
|
`+et+"^"},test_match:function(ft,et){var K,dt,Ot;if(this.options.backtrack_lexer&&(Ot={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ot.yylloc.range=this.yylloc.range.slice(0))),(dt=ft[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=dt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:dt?dt[dt.length-1].length-dt[dt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ft[0].length},this.yytext+=ft[0],this.match+=ft[0],this.matches=ft,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ft[0].length),this.matched+=ft[0],K=this.performAction.call(this,this.yy,this,et,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),K)return K;if(this._backtrack){for(var Tt in Ot)this[Tt]=Ot[Tt];return!1}return!1},next:function(){if(this.done)return this.EOF;var ft,et,K,dt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ot=this._currentRules(),Tt=0;Tt<Ot.length;Tt++)if((K=this._input.match(this.rules[Ot[Tt]]))&&(!et||K[0].length>et[0].length)){if(et=K,dt=Tt,this.options.backtrack_lexer){if((ft=this.test_match(K,Ot[Tt]))!==!1)return ft;if(this._backtrack){et=!1;continue}return!1}if(!this.options.flex)break}return et?(ft=this.test_match(et,Ot[dt]))!==!1&&ft:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(ft){this.conditionStack.push(ft)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ft){return(ft=this.conditionStack.length-1-Math.abs(ft||0))>=0?this.conditionStack[ft]:"INITIAL"},pushState:function(ft){this.begin(ft)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ft,et,K,dt){switch(K){case 0:return this.begin("open_directive"),23;case 1:return this.begin("type_directive"),24;case 2:return this.popState(),this.begin("arg_directive"),18;case 3:return this.popState(),this.popState(),26;case 4:return 25;case 5:case 6:break;case 7:return 20;case 8:case 9:break;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return 8;case 17:return"value";case 18:return 22}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17,18],inclusive:!0}}};function gt(){this.yy={}}return tt.lexer=kt,gt.prototype=tt,tt.Parser=gt,new gt}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(4551).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},1843:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(Zt,rt,ae,Ct){for(ae=ae||{},Ct=Zt.length;Ct--;ae[Zt[Ct]]=rt);return ae},_=[1,3],y=[1,5],w=[1,17],T=[2,10],A=[1,21],L=[1,22],N=[1,23],P=[1,24],W=[1,25],H=[1,26],V=[1,19],X=[1,27],J=[1,28],ht=[1,31],tt=[66,67],kt=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],gt=[5,6,8,14,35,36,37,38,39,40,48,66,67],ft=[1,51],et=[1,52],K=[1,53],dt=[1,54],Ot=[1,55],Tt=[1,56],lt=[1,57],It=[57,58],Ft=[1,69],ue=[1,65],ye=[1,66],de=[1,67],le=[1,68],Nt=[1,70],jt=[1,74],Kt=[1,75],pe=[1,72],ge=[1,73],Pt=[5,8,14,35,36,37,38,39,40,48,66,67],ze={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,open_directive:14,type_directive:15,arg_directive:16,close_directive:17,requirementDef:18,elementDef:19,relationshipDef:20,requirementType:21,requirementName:22,STRUCT_START:23,requirementBody:24,ID:25,COLONSEP:26,id:27,TEXT:28,text:29,RISK:30,riskLevel:31,VERIFYMTHD:32,verifyType:33,STRUCT_STOP:34,REQUIREMENT:35,FUNCTIONAL_REQUIREMENT:36,INTERFACE_REQUIREMENT:37,PERFORMANCE_REQUIREMENT:38,PHYSICAL_REQUIREMENT:39,DESIGN_CONSTRAINT:40,LOW_RISK:41,MED_RISK:42,HIGH_RISK:43,VERIFY_ANALYSIS:44,VERIFY_DEMONSTRATION:45,VERIFY_INSPECTION:46,VERIFY_TEST:47,ELEMENT:48,elementName:49,elementBody:50,TYPE:51,type:52,DOCREF:53,ref:54,END_ARROW_L:55,relationship:56,LINE:57,END_ARROW_R:58,CONTAINS:59,COPIES:60,DERIVES:61,SATISFIES:62,VERIFIES:63,REFINES:64,TRACES:65,unqString:66,qString:67,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"open_directive",15:"type_directive",16:"arg_directive",17:"close_directive",23:"STRUCT_START",25:"ID",26:"COLONSEP",28:"TEXT",30:"RISK",32:"VERIFYMTHD",34:"STRUCT_STOP",35:"REQUIREMENT",36:"FUNCTIONAL_REQUIREMENT",37:"INTERFACE_REQUIREMENT",38:"PERFORMANCE_REQUIREMENT",39:"PHYSICAL_REQUIREMENT",40:"DESIGN_CONSTRAINT",41:"LOW_RISK",42:"MED_RISK",43:"HIGH_RISK",44:"VERIFY_ANALYSIS",45:"VERIFY_DEMONSTRATION",46:"VERIFY_INSPECTION",47:"VERIFY_TEST",48:"ELEMENT",51:"TYPE",53:"DOCREF",55:"END_ARROW_L",57:"LINE",58:"END_ARROW_R",59:"CONTAINS",60:"COPIES",61:"DERIVES",62:"SATISFIES",63:"VERIFIES",64:"REFINES",65:"TRACES",66:"unqString",67:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[18,5],[24,5],[24,5],[24,5],[24,5],[24,2],[24,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[31,1],[31,1],[31,1],[33,1],[33,1],[33,1],[33,1],[19,5],[50,5],[50,5],[50,2],[50,1],[20,5],[20,5],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[27,1],[27,1],[29,1],[29,1],[49,1],[49,1],[52,1],[52,1],[54,1],[54,1]],performAction:function(Zt,rt,ae,Ct,Mt,re,Dt){var ne=re.length-1;switch(Mt){case 6:Ct.parseDirective("%%{","open_directive");break;case 7:Ct.parseDirective(re[ne],"type_directive");break;case 8:re[ne]=re[ne].trim().replace(/'/g,'"'),Ct.parseDirective(re[ne],"arg_directive");break;case 9:Ct.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:Ct.addRequirement(re[ne-3],re[ne-4]);break;case 17:Ct.setNewReqId(re[ne-2]);break;case 18:Ct.setNewReqText(re[ne-2]);break;case 19:Ct.setNewReqRisk(re[ne-2]);break;case 20:Ct.setNewReqVerifyMethod(re[ne-2]);break;case 23:this.$=Ct.RequirementType.REQUIREMENT;break;case 24:this.$=Ct.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 25:this.$=Ct.RequirementType.INTERFACE_REQUIREMENT;break;case 26:this.$=Ct.RequirementType.PERFORMANCE_REQUIREMENT;break;case 27:this.$=Ct.RequirementType.PHYSICAL_REQUIREMENT;break;case 28:this.$=Ct.RequirementType.DESIGN_CONSTRAINT;break;case 29:this.$=Ct.RiskLevel.LOW_RISK;break;case 30:this.$=Ct.RiskLevel.MED_RISK;break;case 31:this.$=Ct.RiskLevel.HIGH_RISK;break;case 32:this.$=Ct.VerifyType.VERIFY_ANALYSIS;break;case 33:this.$=Ct.VerifyType.VERIFY_DEMONSTRATION;break;case 34:this.$=Ct.VerifyType.VERIFY_INSPECTION;break;case 35:this.$=Ct.VerifyType.VERIFY_TEST;break;case 36:Ct.addElement(re[ne-3]);break;case 37:Ct.setNewElementType(re[ne-2]);break;case 38:Ct.setNewElementDocRef(re[ne-2]);break;case 41:Ct.addRelationship(re[ne-2],re[ne],re[ne-4]);break;case 42:Ct.addRelationship(re[ne-2],re[ne-4],re[ne]);break;case 43:this.$=Ct.Relationships.CONTAINS;break;case 44:this.$=Ct.Relationships.COPIES;break;case 45:this.$=Ct.Relationships.DERIVES;break;case 46:this.$=Ct.Relationships.SATISFIES;break;case 47:this.$=Ct.Relationships.VERIFIES;break;case 48:this.$=Ct.Relationships.REFINES;break;case 49:this.$=Ct.Relationships.TRACES}},table:[{3:1,4:2,6:_,9:4,14:y},{1:[3]},{3:7,4:2,5:[1,6],6:_,9:4,14:y},{5:[1,8]},{10:9,15:[1,10]},{15:[2,6]},{3:11,4:2,6:_,9:4,14:y},{1:[2,2]},{4:16,5:w,7:12,8:T,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:L,37:N,38:P,39:W,40:H,48:V,66:X,67:J},{11:29,12:[1,30],17:ht},l([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:w,7:33,8:T,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:L,37:N,38:P,39:W,40:H,48:V,66:X,67:J},{4:16,5:w,7:34,8:T,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:L,37:N,38:P,39:W,40:H,48:V,66:X,67:J},{4:16,5:w,7:35,8:T,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:L,37:N,38:P,39:W,40:H,48:V,66:X,67:J},{4:16,5:w,7:36,8:T,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:L,37:N,38:P,39:W,40:H,48:V,66:X,67:J},{4:16,5:w,7:37,8:T,9:4,14:y,18:13,19:14,20:15,21:18,27:20,35:A,36:L,37:N,38:P,39:W,40:H,48:V,66:X,67:J},{22:38,66:[1,39],67:[1,40]},{49:41,66:[1,42],67:[1,43]},{55:[1,44],57:[1,45]},l(tt,[2,23]),l(tt,[2,24]),l(tt,[2,25]),l(tt,[2,26]),l(tt,[2,27]),l(tt,[2,28]),l(kt,[2,52]),l(kt,[2,53]),l(gt,[2,4]),{13:46,16:[1,47]},l(gt,[2,9]),{1:[2,3]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{23:[1,48]},{23:[2,50]},{23:[2,51]},{23:[1,49]},{23:[2,56]},{23:[2,57]},{56:50,59:ft,60:et,61:K,62:dt,63:Ot,64:Tt,65:lt},{56:58,59:ft,60:et,61:K,62:dt,63:Ot,64:Tt,65:lt},{11:59,17:ht},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},l(It,[2,43]),l(It,[2,44]),l(It,[2,45]),l(It,[2,46]),l(It,[2,47]),l(It,[2,48]),l(It,[2,49]),{58:[1,63]},l(gt,[2,5]),{5:Ft,24:64,25:ue,28:ye,30:de,32:le,34:Nt},{5:jt,34:Kt,50:71,51:pe,53:ge},{27:76,66:X,67:J},{27:77,66:X,67:J},l(Pt,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:Ft,24:82,25:ue,28:ye,30:de,32:le,34:Nt},l(Pt,[2,22]),l(Pt,[2,36]),{26:[1,83]},{26:[1,84]},{5:jt,34:Kt,50:85,51:pe,53:ge},l(Pt,[2,40]),l(Pt,[2,41]),l(Pt,[2,42]),{27:86,66:X,67:J},{29:87,66:[1,88],67:[1,89]},{31:90,41:[1,91],42:[1,92],43:[1,93]},{33:94,44:[1,95],45:[1,96],46:[1,97],47:[1,98]},l(Pt,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},l(Pt,[2,39]),{5:[1,105]},{5:[1,106]},{5:[2,54]},{5:[2,55]},{5:[1,107]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[1,108]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[1,109]},{5:[2,58]},{5:[2,59]},{5:[1,110]},{5:[2,60]},{5:[2,61]},{5:Ft,24:111,25:ue,28:ye,30:de,32:le,34:Nt},{5:Ft,24:112,25:ue,28:ye,30:de,32:le,34:Nt},{5:Ft,24:113,25:ue,28:ye,30:de,32:le,34:Nt},{5:Ft,24:114,25:ue,28:ye,30:de,32:le,34:Nt},{5:jt,34:Kt,50:115,51:pe,53:ge},{5:jt,34:Kt,50:116,51:pe,53:ge},l(Pt,[2,17]),l(Pt,[2,18]),l(Pt,[2,19]),l(Pt,[2,20]),l(Pt,[2,37]),l(Pt,[2,38])],defaultActions:{5:[2,6],7:[2,2],11:[2,1],32:[2,3],33:[2,11],34:[2,12],35:[2,13],36:[2,14],37:[2,15],39:[2,50],40:[2,51],42:[2,56],43:[2,57],47:[2,8],88:[2,54],89:[2,55],91:[2,29],92:[2,30],93:[2,31],95:[2,32],96:[2,33],97:[2,34],98:[2,35],100:[2,58],101:[2,59],103:[2,60],104:[2,61]},parseError:function(Zt,rt){if(!rt.recoverable){var ae=new Error(Zt);throw ae.hash=rt,ae}this.trace(Zt)},parse:function(Zt){var rt=this,ae=[0],Ct=[],Mt=[null],re=[],Dt=this.table,ne="",ke=0,me=0,pn=0,Pe=2,Qe=1,Be=re.slice.call(arguments,1),Ee=Object.create(this.lexer),tn={yy:{}};for(var je in this.yy)Object.prototype.hasOwnProperty.call(this.yy,je)&&(tn.yy[je]=this.yy[je]);Ee.setInput(Zt,tn.yy),tn.yy.lexer=Ee,tn.yy.parser=this,Ee.yylloc===void 0&&(Ee.yylloc={});var Je=Ee.yylloc;re.push(Je);var Ke=Ee.options&&Ee.options.ranges;function On(){var Cn;return typeof(Cn=Ct.pop()||Ee.lex()||Qe)!="number"&&(Cn instanceof Array&&(Cn=(Ct=Cn).pop()),Cn=rt.symbols_[Cn]||Cn),Cn}typeof tn.yy.parseError=="function"?this.parseError=tn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Sn,Te,Ge,_r,Ur,gn,un,an,xn,Ze={};;){if(Ge=ae[ae.length-1],this.defaultActions[Ge]?_r=this.defaultActions[Ge]:(Sn==null&&(Sn=On()),_r=Dt[Ge]&&Dt[Ge][Sn]),_r===void 0||!_r.length||!_r[0]){var Tn="";for(gn in xn=[],Dt[Ge])this.terminals_[gn]&&gn>Pe&&xn.push("'"+this.terminals_[gn]+"'");Tn=Ee.showPosition?"Parse error on line "+(ke+1)+`:
|
|
`+Ee.showPosition()+`
|
|
Expecting `+xn.join(", ")+", got '"+(this.terminals_[Sn]||Sn)+"'":"Parse error on line "+(ke+1)+": Unexpected "+(Sn==Qe?"end of input":"'"+(this.terminals_[Sn]||Sn)+"'"),this.parseError(Tn,{text:Ee.match,token:this.terminals_[Sn]||Sn,line:Ee.yylineno,loc:Je,expected:xn})}if(_r[0]instanceof Array&&_r.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ge+", token: "+Sn);switch(_r[0]){case 1:ae.push(Sn),Mt.push(Ee.yytext),re.push(Ee.yylloc),ae.push(_r[1]),Sn=null,Te?(Sn=Te,Te=null):(me=Ee.yyleng,ne=Ee.yytext,ke=Ee.yylineno,Je=Ee.yylloc,pn>0);break;case 2:if(un=this.productions_[_r[1]][1],Ze.$=Mt[Mt.length-un],Ze._$={first_line:re[re.length-(un||1)].first_line,last_line:re[re.length-1].last_line,first_column:re[re.length-(un||1)].first_column,last_column:re[re.length-1].last_column},Ke&&(Ze._$.range=[re[re.length-(un||1)].range[0],re[re.length-1].range[1]]),(Ur=this.performAction.apply(Ze,[ne,me,ke,tn.yy,_r[1],Mt,re].concat(Be)))!==void 0)return Ur;un&&(ae=ae.slice(0,-1*un*2),Mt=Mt.slice(0,-1*un),re=re.slice(0,-1*un)),ae.push(this.productions_[_r[1]][0]),Mt.push(Ze.$),re.push(Ze._$),an=Dt[ae[ae.length-2]][ae[ae.length-1]],ae.push(an);break;case 3:return!0}}return!0}},Qt={EOF:1,parseError:function(Zt,rt){if(!this.yy.parser)throw new Error(Zt);this.yy.parser.parseError(Zt,rt)},setInput:function(Zt,rt){return this.yy=rt||this.yy||{},this._input=Zt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Zt=this._input[0];return this.yytext+=Zt,this.yyleng++,this.offset++,this.match+=Zt,this.matched+=Zt,Zt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Zt},unput:function(Zt){var rt=Zt.length,ae=Zt.split(/(?:\r\n?|\n)/g);this._input=Zt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-rt),this.offset-=rt;var Ct=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ae.length-1&&(this.yylineno-=ae.length-1);var Mt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ae?(ae.length===Ct.length?this.yylloc.first_column:0)+Ct[Ct.length-ae.length].length-ae[0].length:this.yylloc.first_column-rt},this.options.ranges&&(this.yylloc.range=[Mt[0],Mt[0]+this.yyleng-rt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Zt){this.unput(this.match.slice(Zt))},pastInput:function(){var Zt=this.matched.substr(0,this.matched.length-this.match.length);return(Zt.length>20?"...":"")+Zt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Zt=this.match;return Zt.length<20&&(Zt+=this._input.substr(0,20-Zt.length)),(Zt.substr(0,20)+(Zt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Zt=this.pastInput(),rt=new Array(Zt.length+1).join("-");return Zt+this.upcomingInput()+`
|
|
`+rt+"^"},test_match:function(Zt,rt){var ae,Ct,Mt;if(this.options.backtrack_lexer&&(Mt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Mt.yylloc.range=this.yylloc.range.slice(0))),(Ct=Zt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ct?Ct[Ct.length-1].length-Ct[Ct.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Zt[0].length},this.yytext+=Zt[0],this.match+=Zt[0],this.matches=Zt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Zt[0].length),this.matched+=Zt[0],ae=this.performAction.call(this,this.yy,this,rt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ae)return ae;if(this._backtrack){for(var re in Mt)this[re]=Mt[re];return!1}return!1},next:function(){if(this.done)return this.EOF;var Zt,rt,ae,Ct;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Mt=this._currentRules(),re=0;re<Mt.length;re++)if((ae=this._input.match(this.rules[Mt[re]]))&&(!rt||ae[0].length>rt[0].length)){if(rt=ae,Ct=re,this.options.backtrack_lexer){if((Zt=this.test_match(ae,Mt[re]))!==!1)return Zt;if(this._backtrack){rt=!1;continue}return!1}if(!this.options.flex)break}return rt?(Zt=this.test_match(rt,Mt[Ct]))!==!1&&Zt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Zt){this.conditionStack.push(Zt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Zt){return(Zt=this.conditionStack.length-1-Math.abs(Zt||0))>=0?this.conditionStack[Zt]:"INITIAL"},pushState:function(Zt){this.begin(Zt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Zt,rt,ae,Ct){switch(ae){case 0:return this.begin("open_directive"),14;case 1:return this.begin("type_directive"),15;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),17;case 4:return 16;case 5:return 5;case 6:case 7:case 8:break;case 9:return 8;case 10:return 6;case 11:return 23;case 12:return 34;case 13:return 26;case 14:return 25;case 15:return 28;case 16:return 30;case 17:return 32;case 18:return 35;case 19:return 36;case 20:return 37;case 21:return 38;case 22:return 39;case 23:return 40;case 24:return 41;case 25:return 42;case 26:return 43;case 27:return 44;case 28:return 45;case 29:return 46;case 30:return 47;case 31:return 48;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 62;case 36:return 63;case 37:return 64;case 38:return 65;case 39:return 51;case 40:return 53;case 41:return 55;case 42:return 58;case 43:return 57;case 44:this.begin("string");break;case 45:this.popState();break;case 46:return"qString";case 47:return rt.yytext=rt.yytext.trim(),66}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[45,46],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,47],inclusive:!0}}};function zt(){this.yy={}}return ze.lexer=Qt,zt.prototype=ze,ze.Parser=zt,new zt}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(8800).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},3296:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(Pt,ze,Qt,zt){for(Qt=Qt||{},zt=Pt.length;zt--;Qt[Pt[zt]]=ze);return Qt},_=[1,2],y=[1,3],w=[1,5],T=[1,7],A=[2,5],L=[1,15],N=[1,17],P=[1,18],W=[1,19],H=[1,21],V=[1,22],X=[1,23],J=[1,29],ht=[1,30],tt=[1,31],kt=[1,32],gt=[1,33],ft=[1,34],et=[1,37],K=[1,38],dt=[1,39],Ot=[1,40],Tt=[1,41],lt=[1,42],It=[1,45],Ft=[1,4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],ue=[1,58],ye=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,42,46,47,48,49,57,67],de=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,41,42,46,47,48,49,57,67],le=[4,5,16,20,22,23,24,30,32,33,34,35,36,38,40,42,46,47,48,49,57,67],Nt=[55,56,57],jt=[1,4,5,7,16,20,22,23,24,30,32,33,34,35,36,38,40,41,42,46,47,48,49,57,67],Kt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,activate:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,text2:31,loop:32,end:33,rect:34,opt:35,alt:36,else_sections:37,par:38,par_sections:39,and:40,else:41,note:42,placement:43,over:44,actor_pair:45,links:46,link:47,properties:48,details:49,spaceList:50,",":51,left_of:52,right_of:53,signaltype:54,"+":55,"-":56,ACTOR:57,SOLID_OPEN_ARROW:58,DOTTED_OPEN_ARROW:59,SOLID_ARROW:60,DOTTED_ARROW:61,SOLID_CROSS:62,DOTTED_CROSS:63,SOLID_POINT:64,DOTTED_POINT:65,TXT:66,open_directive:67,type_directive:68,arg_directive:69,close_directive:70,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"activate",24:"deactivate",30:"title",32:"loop",33:"end",34:"rect",35:"opt",36:"alt",38:"par",40:"and",41:"else",42:"note",44:"over",46:"links",47:"link",48:"properties",49:"details",51:",",52:"left_of",53:"right_of",55:"+",56:"-",57:"ACTOR",58:"SOLID_OPEN_ARROW",59:"DOTTED_OPEN_ARROW",60:"SOLID_ARROW",61:"DOTTED_ARROW",62:"SOLID_CROSS",63:"DOTTED_CROSS",64:"SOLID_POINT",65:"DOTTED_POINT",66:"TXT",67:"open_directive",68:"type_directive",69:"arg_directive",70:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[39,1],[39,4],[37,1],[37,4],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[50,2],[50,1],[45,3],[45,1],[43,1],[43,1],[21,5],[21,5],[21,4],[17,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[31,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(Pt,ze,Qt,zt,Zt,rt,ae){var Ct=rt.length-1;switch(Zt){case 4:return zt.apply(rt[Ct]),rt[Ct];case 5:this.$=[];break;case 6:rt[Ct-1].push(rt[Ct]),this.$=rt[Ct-1];break;case 7:case 8:this.$=rt[Ct];break;case 9:this.$=[];break;case 12:rt[Ct-3].type="addParticipant",rt[Ct-3].description=zt.parseMessage(rt[Ct-1]),this.$=rt[Ct-3];break;case 13:rt[Ct-1].type="addParticipant",this.$=rt[Ct-1];break;case 14:rt[Ct-3].type="addActor",rt[Ct-3].description=zt.parseMessage(rt[Ct-1]),this.$=rt[Ct-3];break;case 15:rt[Ct-1].type="addActor",this.$=rt[Ct-1];break;case 17:zt.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:zt.LINETYPE.ACTIVE_START,actor:rt[Ct-1]};break;case 19:this.$={type:"activeEnd",signalType:zt.LINETYPE.ACTIVE_END,actor:rt[Ct-1]};break;case 25:this.$=[{type:"setTitle",text:rt[Ct-1]}];break;case 26:rt[Ct-1].unshift({type:"loopStart",loopText:zt.parseMessage(rt[Ct-2]),signalType:zt.LINETYPE.LOOP_START}),rt[Ct-1].push({type:"loopEnd",loopText:rt[Ct-2],signalType:zt.LINETYPE.LOOP_END}),this.$=rt[Ct-1];break;case 27:rt[Ct-1].unshift({type:"rectStart",color:zt.parseMessage(rt[Ct-2]),signalType:zt.LINETYPE.RECT_START}),rt[Ct-1].push({type:"rectEnd",color:zt.parseMessage(rt[Ct-2]),signalType:zt.LINETYPE.RECT_END}),this.$=rt[Ct-1];break;case 28:rt[Ct-1].unshift({type:"optStart",optText:zt.parseMessage(rt[Ct-2]),signalType:zt.LINETYPE.OPT_START}),rt[Ct-1].push({type:"optEnd",optText:zt.parseMessage(rt[Ct-2]),signalType:zt.LINETYPE.OPT_END}),this.$=rt[Ct-1];break;case 29:rt[Ct-1].unshift({type:"altStart",altText:zt.parseMessage(rt[Ct-2]),signalType:zt.LINETYPE.ALT_START}),rt[Ct-1].push({type:"altEnd",signalType:zt.LINETYPE.ALT_END}),this.$=rt[Ct-1];break;case 30:rt[Ct-1].unshift({type:"parStart",parText:zt.parseMessage(rt[Ct-2]),signalType:zt.LINETYPE.PAR_START}),rt[Ct-1].push({type:"parEnd",signalType:zt.LINETYPE.PAR_END}),this.$=rt[Ct-1];break;case 33:this.$=rt[Ct-3].concat([{type:"and",parText:zt.parseMessage(rt[Ct-1]),signalType:zt.LINETYPE.PAR_AND},rt[Ct]]);break;case 35:this.$=rt[Ct-3].concat([{type:"else",altText:zt.parseMessage(rt[Ct-1]),signalType:zt.LINETYPE.ALT_ELSE},rt[Ct]]);break;case 36:this.$=[rt[Ct-1],{type:"addNote",placement:rt[Ct-2],actor:rt[Ct-1].actor,text:rt[Ct]}];break;case 37:rt[Ct-2]=[].concat(rt[Ct-1],rt[Ct-1]).slice(0,2),rt[Ct-2][0]=rt[Ct-2][0].actor,rt[Ct-2][1]=rt[Ct-2][1].actor,this.$=[rt[Ct-1],{type:"addNote",placement:zt.PLACEMENT.OVER,actor:rt[Ct-2].slice(0,2),text:rt[Ct]}];break;case 38:this.$=[rt[Ct-1],{type:"addLinks",actor:rt[Ct-1].actor,text:rt[Ct]}];break;case 39:this.$=[rt[Ct-1],{type:"addALink",actor:rt[Ct-1].actor,text:rt[Ct]}];break;case 40:this.$=[rt[Ct-1],{type:"addProperties",actor:rt[Ct-1].actor,text:rt[Ct]}];break;case 41:this.$=[rt[Ct-1],{type:"addDetails",actor:rt[Ct-1].actor,text:rt[Ct]}];break;case 44:this.$=[rt[Ct-2],rt[Ct]];break;case 45:this.$=rt[Ct];break;case 46:this.$=zt.PLACEMENT.LEFTOF;break;case 47:this.$=zt.PLACEMENT.RIGHTOF;break;case 48:this.$=[rt[Ct-4],rt[Ct-1],{type:"addMessage",from:rt[Ct-4].actor,to:rt[Ct-1].actor,signalType:rt[Ct-3],msg:rt[Ct]},{type:"activeStart",signalType:zt.LINETYPE.ACTIVE_START,actor:rt[Ct-1]}];break;case 49:this.$=[rt[Ct-4],rt[Ct-1],{type:"addMessage",from:rt[Ct-4].actor,to:rt[Ct-1].actor,signalType:rt[Ct-3],msg:rt[Ct]},{type:"activeEnd",signalType:zt.LINETYPE.ACTIVE_END,actor:rt[Ct-4]}];break;case 50:this.$=[rt[Ct-3],rt[Ct-1],{type:"addMessage",from:rt[Ct-3].actor,to:rt[Ct-1].actor,signalType:rt[Ct-2],msg:rt[Ct]}];break;case 51:this.$={type:"addParticipant",actor:rt[Ct]};break;case 52:this.$=zt.LINETYPE.SOLID_OPEN;break;case 53:this.$=zt.LINETYPE.DOTTED_OPEN;break;case 54:this.$=zt.LINETYPE.SOLID;break;case 55:this.$=zt.LINETYPE.DOTTED;break;case 56:this.$=zt.LINETYPE.SOLID_CROSS;break;case 57:this.$=zt.LINETYPE.DOTTED_CROSS;break;case 58:this.$=zt.LINETYPE.SOLID_POINT;break;case 59:this.$=zt.LINETYPE.DOTTED_POINT;break;case 60:this.$=zt.parseMessage(rt[Ct].trim().substring(1));break;case 61:zt.parseDirective("%%{","open_directive");break;case 62:zt.parseDirective(rt[Ct],"type_directive");break;case 63:rt[Ct]=rt[Ct].trim().replace(/'/g,'"'),zt.parseDirective(rt[Ct],"arg_directive");break;case 64:zt.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:_,5:y,6:4,7:w,11:6,67:T},{1:[3]},{3:8,4:_,5:y,6:4,7:w,11:6,67:T},{3:9,4:_,5:y,6:4,7:w,11:6,67:T},{3:10,4:_,5:y,6:4,7:w,11:6,67:T},l([1,4,5,16,20,22,23,24,30,32,34,35,36,38,42,46,47,48,49,57,67],A,{8:11}),{12:12,68:[1,13]},{68:[2,61]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:L,5:N,6:35,9:14,10:16,11:6,16:P,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:ht,34:tt,35:kt,36:gt,38:ft,42:et,46:K,47:dt,48:Ot,49:Tt,57:lt,67:T},{13:43,14:[1,44],70:It},l([14,70],[2,62]),l(Ft,[2,6]),{6:35,10:46,11:6,16:P,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:ht,34:tt,35:kt,36:gt,38:ft,42:et,46:K,47:dt,48:Ot,49:Tt,57:lt,67:T},l(Ft,[2,8]),l(Ft,[2,9]),{17:47,57:lt},{17:48,57:lt},{5:[1,49]},l(Ft,[2,17]),{17:50,57:lt},{17:51,57:lt},{5:[1,52]},{5:[1,53]},{5:[1,54]},{5:[1,55]},{5:[1,56]},{31:57,66:ue},{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},l(Ft,[2,31]),{54:64,58:[1,65],59:[1,66],60:[1,67],61:[1,68],62:[1,69],63:[1,70],64:[1,71],65:[1,72]},{43:73,44:[1,74],52:[1,75],53:[1,76]},{17:77,57:lt},{17:78,57:lt},{17:79,57:lt},{17:80,57:lt},l([5,18,51,58,59,60,61,62,63,64,65,66],[2,51]),{5:[1,81]},{15:82,69:[1,83]},{5:[2,64]},l(Ft,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},l(Ft,[2,16]),{5:[1,88]},{5:[1,89]},l(Ft,[2,20]),l(Ft,[2,21]),l(Ft,[2,22]),l(Ft,[2,23]),l(Ft,[2,24]),{5:[1,90]},{5:[2,60]},l(ye,A,{8:91}),l(ye,A,{8:92}),l(ye,A,{8:93}),l(de,A,{37:94,8:95}),l(le,A,{39:96,8:97}),{17:100,55:[1,98],56:[1,99],57:lt},l(Nt,[2,52]),l(Nt,[2,53]),l(Nt,[2,54]),l(Nt,[2,55]),l(Nt,[2,56]),l(Nt,[2,57]),l(Nt,[2,58]),l(Nt,[2,59]),{17:101,57:lt},{17:103,45:102,57:lt},{57:[2,46]},{57:[2,47]},{31:104,66:ue},{31:105,66:ue},{31:106,66:ue},{31:107,66:ue},l(jt,[2,10]),{13:108,70:It},{70:[2,63]},{19:[1,109]},l(Ft,[2,13]),{19:[1,110]},l(Ft,[2,15]),l(Ft,[2,18]),l(Ft,[2,19]),l(Ft,[2,25]),{4:L,5:N,6:35,9:14,10:16,11:6,16:P,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:ht,33:[1,111],34:tt,35:kt,36:gt,38:ft,42:et,46:K,47:dt,48:Ot,49:Tt,57:lt,67:T},{4:L,5:N,6:35,9:14,10:16,11:6,16:P,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:ht,33:[1,112],34:tt,35:kt,36:gt,38:ft,42:et,46:K,47:dt,48:Ot,49:Tt,57:lt,67:T},{4:L,5:N,6:35,9:14,10:16,11:6,16:P,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:ht,33:[1,113],34:tt,35:kt,36:gt,38:ft,42:et,46:K,47:dt,48:Ot,49:Tt,57:lt,67:T},{33:[1,114]},{4:L,5:N,6:35,9:14,10:16,11:6,16:P,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:ht,33:[2,34],34:tt,35:kt,36:gt,38:ft,41:[1,115],42:et,46:K,47:dt,48:Ot,49:Tt,57:lt,67:T},{33:[1,116]},{4:L,5:N,6:35,9:14,10:16,11:6,16:P,17:36,20:W,21:20,22:H,23:V,24:X,25:24,26:25,27:26,28:27,29:28,30:J,32:ht,33:[2,32],34:tt,35:kt,36:gt,38:ft,40:[1,117],42:et,46:K,47:dt,48:Ot,49:Tt,57:lt,67:T},{17:118,57:lt},{17:119,57:lt},{31:120,66:ue},{31:121,66:ue},{31:122,66:ue},{51:[1,123],66:[2,45]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},{5:[1,124]},{5:[1,125]},{5:[1,126]},l(Ft,[2,26]),l(Ft,[2,27]),l(Ft,[2,28]),l(Ft,[2,29]),{19:[1,127]},l(Ft,[2,30]),{19:[1,128]},{31:129,66:ue},{31:130,66:ue},{5:[2,50]},{5:[2,36]},{5:[2,37]},{17:131,57:lt},l(jt,[2,11]),l(Ft,[2,12]),l(Ft,[2,14]),l(de,A,{8:95,37:132}),l(le,A,{8:97,39:133}),{5:[2,48]},{5:[2,49]},{66:[2,44]},{33:[2,35]},{33:[2,33]}],defaultActions:{7:[2,61],8:[2,1],9:[2,2],10:[2,3],45:[2,64],58:[2,60],75:[2,46],76:[2,47],83:[2,63],104:[2,38],105:[2,39],106:[2,40],107:[2,41],120:[2,50],121:[2,36],122:[2,37],129:[2,48],130:[2,49],131:[2,44],132:[2,35],133:[2,33]},parseError:function(Pt,ze){if(!ze.recoverable){var Qt=new Error(Pt);throw Qt.hash=ze,Qt}this.trace(Pt)},parse:function(Pt){var ze=this,Qt=[0],zt=[],Zt=[null],rt=[],ae=this.table,Ct="",Mt=0,re=0,Dt=0,ne=2,ke=1,me=rt.slice.call(arguments,1),pn=Object.create(this.lexer),Pe={yy:{}};for(var Qe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qe)&&(Pe.yy[Qe]=this.yy[Qe]);pn.setInput(Pt,Pe.yy),Pe.yy.lexer=pn,Pe.yy.parser=this,pn.yylloc===void 0&&(pn.yylloc={});var Be=pn.yylloc;rt.push(Be);var Ee=pn.options&&pn.options.ranges;function tn(){var an;return typeof(an=zt.pop()||pn.lex()||ke)!="number"&&(an instanceof Array&&(an=(zt=an).pop()),an=ze.symbols_[an]||an),an}typeof Pe.yy.parseError=="function"?this.parseError=Pe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var je,Je,Ke,On,Sn,Te,Ge,_r,Ur,gn={};;){if(Ke=Qt[Qt.length-1],this.defaultActions[Ke]?On=this.defaultActions[Ke]:(je==null&&(je=tn()),On=ae[Ke]&&ae[Ke][je]),On===void 0||!On.length||!On[0]){var un="";for(Te in Ur=[],ae[Ke])this.terminals_[Te]&&Te>ne&&Ur.push("'"+this.terminals_[Te]+"'");un=pn.showPosition?"Parse error on line "+(Mt+1)+`:
|
|
`+pn.showPosition()+`
|
|
Expecting `+Ur.join(", ")+", got '"+(this.terminals_[je]||je)+"'":"Parse error on line "+(Mt+1)+": Unexpected "+(je==ke?"end of input":"'"+(this.terminals_[je]||je)+"'"),this.parseError(un,{text:pn.match,token:this.terminals_[je]||je,line:pn.yylineno,loc:Be,expected:Ur})}if(On[0]instanceof Array&&On.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ke+", token: "+je);switch(On[0]){case 1:Qt.push(je),Zt.push(pn.yytext),rt.push(pn.yylloc),Qt.push(On[1]),je=null,Je?(je=Je,Je=null):(re=pn.yyleng,Ct=pn.yytext,Mt=pn.yylineno,Be=pn.yylloc,Dt>0);break;case 2:if(Ge=this.productions_[On[1]][1],gn.$=Zt[Zt.length-Ge],gn._$={first_line:rt[rt.length-(Ge||1)].first_line,last_line:rt[rt.length-1].last_line,first_column:rt[rt.length-(Ge||1)].first_column,last_column:rt[rt.length-1].last_column},Ee&&(gn._$.range=[rt[rt.length-(Ge||1)].range[0],rt[rt.length-1].range[1]]),(Sn=this.performAction.apply(gn,[Ct,re,Mt,Pe.yy,On[1],Zt,rt].concat(me)))!==void 0)return Sn;Ge&&(Qt=Qt.slice(0,-1*Ge*2),Zt=Zt.slice(0,-1*Ge),rt=rt.slice(0,-1*Ge)),Qt.push(this.productions_[On[1]][0]),Zt.push(gn.$),rt.push(gn._$),_r=ae[Qt[Qt.length-2]][Qt[Qt.length-1]],Qt.push(_r);break;case 3:return!0}}return!0}},pe={EOF:1,parseError:function(Pt,ze){if(!this.yy.parser)throw new Error(Pt);this.yy.parser.parseError(Pt,ze)},setInput:function(Pt,ze){return this.yy=ze||this.yy||{},this._input=Pt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Pt=this._input[0];return this.yytext+=Pt,this.yyleng++,this.offset++,this.match+=Pt,this.matched+=Pt,Pt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Pt},unput:function(Pt){var ze=Pt.length,Qt=Pt.split(/(?:\r\n?|\n)/g);this._input=Pt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ze),this.offset-=ze;var zt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Qt.length-1&&(this.yylineno-=Qt.length-1);var Zt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Qt?(Qt.length===zt.length?this.yylloc.first_column:0)+zt[zt.length-Qt.length].length-Qt[0].length:this.yylloc.first_column-ze},this.options.ranges&&(this.yylloc.range=[Zt[0],Zt[0]+this.yyleng-ze]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Pt){this.unput(this.match.slice(Pt))},pastInput:function(){var Pt=this.matched.substr(0,this.matched.length-this.match.length);return(Pt.length>20?"...":"")+Pt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Pt=this.match;return Pt.length<20&&(Pt+=this._input.substr(0,20-Pt.length)),(Pt.substr(0,20)+(Pt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Pt=this.pastInput(),ze=new Array(Pt.length+1).join("-");return Pt+this.upcomingInput()+`
|
|
`+ze+"^"},test_match:function(Pt,ze){var Qt,zt,Zt;if(this.options.backtrack_lexer&&(Zt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Zt.yylloc.range=this.yylloc.range.slice(0))),(zt=Pt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=zt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:zt?zt[zt.length-1].length-zt[zt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Pt[0].length},this.yytext+=Pt[0],this.match+=Pt[0],this.matches=Pt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Pt[0].length),this.matched+=Pt[0],Qt=this.performAction.call(this,this.yy,this,ze,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qt)return Qt;if(this._backtrack){for(var rt in Zt)this[rt]=Zt[rt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Pt,ze,Qt,zt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Zt=this._currentRules(),rt=0;rt<Zt.length;rt++)if((Qt=this._input.match(this.rules[Zt[rt]]))&&(!ze||Qt[0].length>ze[0].length)){if(ze=Qt,zt=rt,this.options.backtrack_lexer){if((Pt=this.test_match(Qt,Zt[rt]))!==!1)return Pt;if(this._backtrack){ze=!1;continue}return!1}if(!this.options.flex)break}return ze?(Pt=this.test_match(ze,Zt[zt]))!==!1&&Pt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Pt){this.conditionStack.push(Pt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Pt){return(Pt=this.conditionStack.length-1-Math.abs(Pt||0))>=0?this.conditionStack[Pt]:"INITIAL"},pushState:function(Pt){this.begin(Pt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Pt,ze,Qt,zt){switch(Qt){case 0:return this.begin("open_directive"),67;case 1:return this.begin("type_directive"),68;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),70;case 4:return 69;case 5:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return this.begin("ID"),20;case 13:return ze.yytext=ze.yytext.trim(),this.begin("ALIAS"),57;case 14:return this.popState(),this.popState(),this.begin("LINE"),18;case 15:return this.popState(),this.popState(),5;case 16:return this.begin("LINE"),32;case 17:return this.begin("LINE"),34;case 18:return this.begin("LINE"),35;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),38;case 22:return this.begin("LINE"),40;case 23:return this.popState(),19;case 24:return 33;case 25:return 52;case 26:return 53;case 27:return 46;case 28:return 47;case 29:return 48;case 30:return 49;case 31:return 44;case 32:return 42;case 33:return this.begin("ID"),23;case 34:return this.begin("ID"),24;case 35:return 30;case 36:return 7;case 37:return 22;case 38:return 51;case 39:return 5;case 40:return ze.yytext=ze.yytext.trim(),57;case 41:return 60;case 42:return 61;case 43:return 58;case 44:return 59;case 45:return 62;case 46:return 63;case 47:return 64;case 48:return 65;case 49:return 66;case 50:return 55;case 51:return 56;case 52:return 5;case 53:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,13],inclusive:!1},ALIAS:{rules:[7,8,14,15],inclusive:!1},LINE:{rules:[7,8,23],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],inclusive:!0}}};function ge(){this.yy={}}return Kt.lexer=pe,ge.prototype=Kt,Kt.Parser=ge,new ge}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(1993).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},5784:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(Nt,jt,Kt,pe){for(Kt=Kt||{},pe=Nt.length;pe--;Kt[Nt[pe]]=jt);return Kt},_=[1,2],y=[1,3],w=[1,5],T=[1,7],A=[2,5],L=[1,15],N=[1,17],P=[1,19],W=[1,20],H=[1,21],V=[1,22],X=[1,30],J=[1,23],ht=[1,24],tt=[1,25],kt=[1,26],gt=[1,27],ft=[1,32],et=[1,33],K=[1,34],dt=[1,35],Ot=[1,31],Tt=[1,38],lt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],It=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],Ft=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],ue=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],ye={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"-->":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,openDirective:31,typeDirective:32,closeDirective:33,":":34,argDirective:35,direction_tb:36,direction_bt:37,direction_rl:38,direction_lr:39,eol:40,";":41,EDGE_STATE:42,left_of:43,right_of:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"-->",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",34:":",36:"direction_tb",37:"direction_bt",38:"direction_rl",39:"direction_lr",41:";",42:"EDGE_STATE",43:"left_of",44:"right_of",45:"open_directive",46:"type_directive",47:"arg_directive",48:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[40,1],[40,1],[11,1],[11,1],[28,1],[28,1],[31,1],[32,1],[35,1],[33,1]],performAction:function(Nt,jt,Kt,pe,ge,Pt,ze){var Qt=Pt.length-1;switch(ge){case 4:return pe.setRootDoc(Pt[Qt]),Pt[Qt];case 5:this.$=[];break;case 6:Pt[Qt]!="nl"&&(Pt[Qt-1].push(Pt[Qt]),this.$=Pt[Qt-1]);break;case 7:case 8:this.$=Pt[Qt];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:Pt[Qt],type:"default",description:""};break;case 11:this.$={stmt:"state",id:Pt[Qt-1],type:"default",description:pe.trimColon(Pt[Qt])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:Pt[Qt-2],type:"default",description:""},state2:{stmt:"state",id:Pt[Qt],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:Pt[Qt-3],type:"default",description:""},state2:{stmt:"state",id:Pt[Qt-1],type:"default",description:""},description:Pt[Qt].substr(1).trim()};break;case 17:this.$={stmt:"state",id:Pt[Qt-3],type:"default",description:"",doc:Pt[Qt-1]};break;case 18:var zt=Pt[Qt],Zt=Pt[Qt-2].trim();if(Pt[Qt].match(":")){var rt=Pt[Qt].split(":");zt=rt[0],Zt=[Zt,rt[1]]}this.$={stmt:"state",id:zt,type:"default",description:Zt};break;case 19:this.$={stmt:"state",id:Pt[Qt-3],type:"default",description:Pt[Qt-5],doc:Pt[Qt-1]};break;case 20:this.$={stmt:"state",id:Pt[Qt],type:"fork"};break;case 21:this.$={stmt:"state",id:Pt[Qt],type:"join"};break;case 22:this.$={stmt:"state",id:Pt[Qt],type:"choice"};break;case 23:this.$={stmt:"state",id:pe.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:Pt[Qt-1].trim(),note:{position:Pt[Qt-2].trim(),text:Pt[Qt].trim()}};break;case 30:pe.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:pe.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:pe.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:pe.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 36:case 37:this.$=Pt[Qt];break;case 40:pe.parseDirective("%%{","open_directive");break;case 41:pe.parseDirective(Pt[Qt],"type_directive");break;case 42:Pt[Qt]=Pt[Qt].trim().replace(/'/g,'"'),pe.parseDirective(Pt[Qt],"arg_directive");break;case 43:pe.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:_,5:y,6:4,7:w,31:6,45:T},{1:[3]},{3:8,4:_,5:y,6:4,7:w,31:6,45:T},{3:9,4:_,5:y,6:4,7:w,31:6,45:T},{3:10,4:_,5:y,6:4,7:w,31:6,45:T},l([1,4,5,14,15,17,20,22,23,24,25,26,27,36,37,38,39,42,45],A,{8:11}),{32:12,46:[1,13]},{46:[2,40]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:L,5:N,6:28,9:14,10:16,11:18,14:P,15:W,17:H,20:V,22:X,23:J,24:ht,25:tt,26:kt,27:gt,30:29,31:6,36:ft,37:et,38:K,39:dt,42:Ot,45:T},{33:36,34:[1,37],48:Tt},l([34,48],[2,41]),l(lt,[2,6]),{6:28,10:39,11:18,14:P,15:W,17:H,20:V,22:X,23:J,24:ht,25:tt,26:kt,27:gt,30:29,31:6,36:ft,37:et,38:K,39:dt,42:Ot,45:T},l(lt,[2,8]),l(lt,[2,9]),l(lt,[2,10],{12:[1,40],13:[1,41]}),l(lt,[2,14]),{16:[1,42]},l(lt,[2,16],{18:[1,43]}),{21:[1,44]},l(lt,[2,20]),l(lt,[2,21]),l(lt,[2,22]),l(lt,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},l(lt,[2,26]),l(lt,[2,27]),l(It,[2,36]),l(It,[2,37]),l(lt,[2,30]),l(lt,[2,31]),l(lt,[2,32]),l(lt,[2,33]),l(Ft,[2,28]),{35:49,47:[1,50]},l(Ft,[2,43]),l(lt,[2,7]),l(lt,[2,11]),{11:51,22:X,42:Ot},l(lt,[2,15]),l(ue,A,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:Tt},{48:[2,42]},l(lt,[2,12],{12:[1,57]}),{4:L,5:N,6:28,9:14,10:16,11:18,14:P,15:W,17:H,19:[1,58],20:V,22:X,23:J,24:ht,25:tt,26:kt,27:gt,30:29,31:6,36:ft,37:et,38:K,39:dt,42:Ot,45:T},l(lt,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},l(Ft,[2,29]),l(lt,[2,13]),l(lt,[2,17]),l(ue,A,{8:62}),l(lt,[2,24]),l(lt,[2,25]),{4:L,5:N,6:28,9:14,10:16,11:18,14:P,15:W,17:H,19:[1,63],20:V,22:X,23:J,24:ht,25:tt,26:kt,27:gt,30:29,31:6,36:ft,37:et,38:K,39:dt,42:Ot,45:T},l(lt,[2,19])],defaultActions:{7:[2,40],8:[2,1],9:[2,2],10:[2,3],47:[2,38],48:[2,39],50:[2,42]},parseError:function(Nt,jt){if(!jt.recoverable){var Kt=new Error(Nt);throw Kt.hash=jt,Kt}this.trace(Nt)},parse:function(Nt){var jt=this,Kt=[0],pe=[],ge=[null],Pt=[],ze=this.table,Qt="",zt=0,Zt=0,rt=0,ae=2,Ct=1,Mt=Pt.slice.call(arguments,1),re=Object.create(this.lexer),Dt={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(Dt.yy[ne]=this.yy[ne]);re.setInput(Nt,Dt.yy),Dt.yy.lexer=re,Dt.yy.parser=this,re.yylloc===void 0&&(re.yylloc={});var ke=re.yylloc;Pt.push(ke);var me=re.options&&re.options.ranges;function pn(){var Ge;return typeof(Ge=pe.pop()||re.lex()||Ct)!="number"&&(Ge instanceof Array&&(Ge=(pe=Ge).pop()),Ge=jt.symbols_[Ge]||Ge),Ge}typeof Dt.yy.parseError=="function"?this.parseError=Dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Pe,Qe,Be,Ee,tn,je,Je,Ke,On,Sn={};;){if(Be=Kt[Kt.length-1],this.defaultActions[Be]?Ee=this.defaultActions[Be]:(Pe==null&&(Pe=pn()),Ee=ze[Be]&&ze[Be][Pe]),Ee===void 0||!Ee.length||!Ee[0]){var Te="";for(je in On=[],ze[Be])this.terminals_[je]&&je>ae&&On.push("'"+this.terminals_[je]+"'");Te=re.showPosition?"Parse error on line "+(zt+1)+`:
|
|
`+re.showPosition()+`
|
|
Expecting `+On.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":"Parse error on line "+(zt+1)+": Unexpected "+(Pe==Ct?"end of input":"'"+(this.terminals_[Pe]||Pe)+"'"),this.parseError(Te,{text:re.match,token:this.terminals_[Pe]||Pe,line:re.yylineno,loc:ke,expected:On})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Be+", token: "+Pe);switch(Ee[0]){case 1:Kt.push(Pe),ge.push(re.yytext),Pt.push(re.yylloc),Kt.push(Ee[1]),Pe=null,Qe?(Pe=Qe,Qe=null):(Zt=re.yyleng,Qt=re.yytext,zt=re.yylineno,ke=re.yylloc,rt>0);break;case 2:if(Je=this.productions_[Ee[1]][1],Sn.$=ge[ge.length-Je],Sn._$={first_line:Pt[Pt.length-(Je||1)].first_line,last_line:Pt[Pt.length-1].last_line,first_column:Pt[Pt.length-(Je||1)].first_column,last_column:Pt[Pt.length-1].last_column},me&&(Sn._$.range=[Pt[Pt.length-(Je||1)].range[0],Pt[Pt.length-1].range[1]]),(tn=this.performAction.apply(Sn,[Qt,Zt,zt,Dt.yy,Ee[1],ge,Pt].concat(Mt)))!==void 0)return tn;Je&&(Kt=Kt.slice(0,-1*Je*2),ge=ge.slice(0,-1*Je),Pt=Pt.slice(0,-1*Je)),Kt.push(this.productions_[Ee[1]][0]),ge.push(Sn.$),Pt.push(Sn._$),Ke=ze[Kt[Kt.length-2]][Kt[Kt.length-1]],Kt.push(Ke);break;case 3:return!0}}return!0}},de={EOF:1,parseError:function(Nt,jt){if(!this.yy.parser)throw new Error(Nt);this.yy.parser.parseError(Nt,jt)},setInput:function(Nt,jt){return this.yy=jt||this.yy||{},this._input=Nt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Nt=this._input[0];return this.yytext+=Nt,this.yyleng++,this.offset++,this.match+=Nt,this.matched+=Nt,Nt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Nt},unput:function(Nt){var jt=Nt.length,Kt=Nt.split(/(?:\r\n?|\n)/g);this._input=Nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-jt),this.offset-=jt;var pe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Kt.length-1&&(this.yylineno-=Kt.length-1);var ge=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Kt?(Kt.length===pe.length?this.yylloc.first_column:0)+pe[pe.length-Kt.length].length-Kt[0].length:this.yylloc.first_column-jt},this.options.ranges&&(this.yylloc.range=[ge[0],ge[0]+this.yyleng-jt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Nt){this.unput(this.match.slice(Nt))},pastInput:function(){var Nt=this.matched.substr(0,this.matched.length-this.match.length);return(Nt.length>20?"...":"")+Nt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Nt=this.match;return Nt.length<20&&(Nt+=this._input.substr(0,20-Nt.length)),(Nt.substr(0,20)+(Nt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Nt=this.pastInput(),jt=new Array(Nt.length+1).join("-");return Nt+this.upcomingInput()+`
|
|
`+jt+"^"},test_match:function(Nt,jt){var Kt,pe,ge;if(this.options.backtrack_lexer&&(ge={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ge.yylloc.range=this.yylloc.range.slice(0))),(pe=Nt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=pe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:pe?pe[pe.length-1].length-pe[pe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Nt[0].length},this.yytext+=Nt[0],this.match+=Nt[0],this.matches=Nt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Nt[0].length),this.matched+=Nt[0],Kt=this.performAction.call(this,this.yy,this,jt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Kt)return Kt;if(this._backtrack){for(var Pt in ge)this[Pt]=ge[Pt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Nt,jt,Kt,pe;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ge=this._currentRules(),Pt=0;Pt<ge.length;Pt++)if((Kt=this._input.match(this.rules[ge[Pt]]))&&(!jt||Kt[0].length>jt[0].length)){if(jt=Kt,pe=Pt,this.options.backtrack_lexer){if((Nt=this.test_match(Kt,ge[Pt]))!==!1)return Nt;if(this._backtrack){jt=!1;continue}return!1}if(!this.options.flex)break}return jt?(Nt=this.test_match(jt,ge[pe]))!==!1&&Nt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Nt){this.conditionStack.push(Nt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Nt){return(Nt=this.conditionStack.length-1-Math.abs(Nt||0))>=0?this.conditionStack[Nt]:"INITIAL"},pushState:function(Nt){this.begin(Nt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Nt,jt,Kt,pe){switch(Kt){case 0:return 36;case 1:return 37;case 2:return 38;case 3:return 39;case 4:return this.begin("open_directive"),45;case 5:return this.begin("type_directive"),46;case 6:return this.popState(),this.begin("arg_directive"),34;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:break;case 11:return 5;case 12:case 13:case 14:case 15:break;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:this.popState();break;case 19:this.pushState("STATE");break;case 20:return this.popState(),jt.yytext=jt.yytext.slice(0,-8).trim(),23;case 21:return this.popState(),jt.yytext=jt.yytext.slice(0,-8).trim(),24;case 22:return this.popState(),jt.yytext=jt.yytext.slice(0,-10).trim(),25;case 23:return this.popState(),jt.yytext=jt.yytext.slice(0,-8).trim(),23;case 24:return this.popState(),jt.yytext=jt.yytext.slice(0,-8).trim(),24;case 25:return this.popState(),jt.yytext=jt.yytext.slice(0,-10).trim(),25;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:this.begin("STATE_STRING");break;case 31:return this.popState(),this.pushState("STATE_ID"),"AS";case 32:return this.popState(),"ID";case 33:this.popState();break;case 34:return"STATE_DESCR";case 35:return 17;case 36:this.popState();break;case 37:return this.popState(),this.pushState("struct"),18;case 38:return this.popState(),19;case 39:break;case 40:return this.begin("NOTE"),27;case 41:return this.popState(),this.pushState("NOTE_ID"),43;case 42:return this.popState(),this.pushState("NOTE_ID"),44;case 43:this.popState(),this.pushState("FLOATING_NOTE");break;case 44:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 45:break;case 46:return"NOTE_TEXT";case 47:return this.popState(),"ID";case 48:return this.popState(),this.pushState("NOTE_TEXT"),22;case 49:return this.popState(),jt.yytext=jt.yytext.substr(2).trim(),29;case 50:return this.popState(),jt.yytext=jt.yytext.slice(0,-8).trim(),29;case 51:case 52:return 7;case 53:return 14;case 54:return 42;case 55:return 22;case 56:return jt.yytext=jt.yytext.trim(),12;case 57:return 13;case 58:return 26;case 59:return 5;case 60:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,19,26,27,28,29,38,39,40,54,55,56,57,58],inclusive:!1},FLOATING_NOTE_ID:{rules:[47],inclusive:!1},FLOATING_NOTE:{rules:[44,45,46],inclusive:!1},NOTE_TEXT:{rules:[49,50],inclusive:!1},NOTE_ID:{rules:[48],inclusive:!1},NOTE:{rules:[41,42,43],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[32],inclusive:!1},STATE_STRING:{rules:[33,34],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,20,21,22,23,24,25,30,31,35,36,37],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,37,40,51,52,53,54,55,56,57,59,60],inclusive:!0}}};function le(){this.yy={}}return ye.lexer=de,le.prototype=ye,ye.Parser=le,new le}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(3069).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},9690:(a,h,s)=>{a=s.nmd(a);var d=function(){var l=function(X,J,ht,tt){for(ht=ht||{},tt=X.length;tt--;ht[X[tt]]=J);return ht},_=[1,2],y=[1,5],w=[6,9,11,17,18,19,21],T=[1,15],A=[1,16],L=[1,17],N=[1,21],P=[4,6,9,11,17,18,19,21],W={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(X,J,ht,tt,kt,gt,ft){var et=gt.length-1;switch(kt){case 1:return gt[et-1];case 3:this.$=[];break;case 4:gt[et-1].push(gt[et]),this.$=gt[et-1];break;case 5:case 6:this.$=gt[et];break;case 7:case 8:this.$=[];break;case 11:tt.setTitle(gt[et].substr(6)),this.$=gt[et].substr(6);break;case 12:tt.addSection(gt[et].substr(8)),this.$=gt[et].substr(8);break;case 13:tt.addTask(gt[et-1],gt[et]),this.$="task";break;case 15:tt.parseDirective("%%{","open_directive");break;case 16:tt.parseDirective(gt[et],"type_directive");break;case 17:gt[et]=gt[et].trim().replace(/'/g,'"'),tt.parseDirective(gt[et],"arg_directive");break;case 18:tt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:_,7:3,12:4,21:y},{1:[3]},l(w,[2,3],{5:6}),{3:7,4:_,7:3,12:4,21:y},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:T,18:A,19:L,21:y},{1:[2,2]},{14:19,15:[1,20],24:N},l([15,24],[2,16]),l(w,[2,8],{1:[2,1]}),l(w,[2,4]),{7:18,10:22,12:4,17:T,18:A,19:L,21:y},l(w,[2,6]),l(w,[2,7]),l(w,[2,11]),l(w,[2,12]),{20:[1,23]},l(w,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},l(w,[2,5]),l(w,[2,13]),l(P,[2,9]),{14:27,24:N},{24:[2,17]},{11:[1,28]},l(P,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(X,J){if(!J.recoverable){var ht=new Error(X);throw ht.hash=J,ht}this.trace(X)},parse:function(X){var J=this,ht=[0],tt=[],kt=[null],gt=[],ft=this.table,et="",K=0,dt=0,Ot=0,Tt=2,lt=1,It=gt.slice.call(arguments,1),Ft=Object.create(this.lexer),ue={yy:{}};for(var ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ye)&&(ue.yy[ye]=this.yy[ye]);Ft.setInput(X,ue.yy),ue.yy.lexer=Ft,ue.yy.parser=this,Ft.yylloc===void 0&&(Ft.yylloc={});var de=Ft.yylloc;gt.push(de);var le=Ft.options&&Ft.options.ranges;function Nt(){var Ct;return typeof(Ct=tt.pop()||Ft.lex()||lt)!="number"&&(Ct instanceof Array&&(Ct=(tt=Ct).pop()),Ct=J.symbols_[Ct]||Ct),Ct}typeof ue.yy.parseError=="function"?this.parseError=ue.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var jt,Kt,pe,ge,Pt,ze,Qt,zt,Zt,rt={};;){if(pe=ht[ht.length-1],this.defaultActions[pe]?ge=this.defaultActions[pe]:(jt==null&&(jt=Nt()),ge=ft[pe]&&ft[pe][jt]),ge===void 0||!ge.length||!ge[0]){var ae="";for(ze in Zt=[],ft[pe])this.terminals_[ze]&&ze>Tt&&Zt.push("'"+this.terminals_[ze]+"'");ae=Ft.showPosition?"Parse error on line "+(K+1)+`:
|
|
`+Ft.showPosition()+`
|
|
Expecting `+Zt.join(", ")+", got '"+(this.terminals_[jt]||jt)+"'":"Parse error on line "+(K+1)+": Unexpected "+(jt==lt?"end of input":"'"+(this.terminals_[jt]||jt)+"'"),this.parseError(ae,{text:Ft.match,token:this.terminals_[jt]||jt,line:Ft.yylineno,loc:de,expected:Zt})}if(ge[0]instanceof Array&&ge.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pe+", token: "+jt);switch(ge[0]){case 1:ht.push(jt),kt.push(Ft.yytext),gt.push(Ft.yylloc),ht.push(ge[1]),jt=null,Kt?(jt=Kt,Kt=null):(dt=Ft.yyleng,et=Ft.yytext,K=Ft.yylineno,de=Ft.yylloc,Ot>0);break;case 2:if(Qt=this.productions_[ge[1]][1],rt.$=kt[kt.length-Qt],rt._$={first_line:gt[gt.length-(Qt||1)].first_line,last_line:gt[gt.length-1].last_line,first_column:gt[gt.length-(Qt||1)].first_column,last_column:gt[gt.length-1].last_column},le&&(rt._$.range=[gt[gt.length-(Qt||1)].range[0],gt[gt.length-1].range[1]]),(Pt=this.performAction.apply(rt,[et,dt,K,ue.yy,ge[1],kt,gt].concat(It)))!==void 0)return Pt;Qt&&(ht=ht.slice(0,-1*Qt*2),kt=kt.slice(0,-1*Qt),gt=gt.slice(0,-1*Qt)),ht.push(this.productions_[ge[1]][0]),kt.push(rt.$),gt.push(rt._$),zt=ft[ht[ht.length-2]][ht[ht.length-1]],ht.push(zt);break;case 3:return!0}}return!0}},H={EOF:1,parseError:function(X,J){if(!this.yy.parser)throw new Error(X);this.yy.parser.parseError(X,J)},setInput:function(X,J){return this.yy=J||this.yy||{},this._input=X,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var X=this._input[0];return this.yytext+=X,this.yyleng++,this.offset++,this.match+=X,this.matched+=X,X.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),X},unput:function(X){var J=X.length,ht=X.split(/(?:\r\n?|\n)/g);this._input=X+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-J),this.offset-=J;var tt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ht.length-1&&(this.yylineno-=ht.length-1);var kt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ht?(ht.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-ht.length].length-ht[0].length:this.yylloc.first_column-J},this.options.ranges&&(this.yylloc.range=[kt[0],kt[0]+this.yyleng-J]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(X){this.unput(this.match.slice(X))},pastInput:function(){var X=this.matched.substr(0,this.matched.length-this.match.length);return(X.length>20?"...":"")+X.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var X=this.match;return X.length<20&&(X+=this._input.substr(0,20-X.length)),(X.substr(0,20)+(X.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var X=this.pastInput(),J=new Array(X.length+1).join("-");return X+this.upcomingInput()+`
|
|
`+J+"^"},test_match:function(X,J){var ht,tt,kt;if(this.options.backtrack_lexer&&(kt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(kt.yylloc.range=this.yylloc.range.slice(0))),(tt=X[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:tt?tt[tt.length-1].length-tt[tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+X[0].length},this.yytext+=X[0],this.match+=X[0],this.matches=X,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(X[0].length),this.matched+=X[0],ht=this.performAction.call(this,this.yy,this,J,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;if(this._backtrack){for(var gt in kt)this[gt]=kt[gt];return!1}return!1},next:function(){if(this.done)return this.EOF;var X,J,ht,tt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var kt=this._currentRules(),gt=0;gt<kt.length;gt++)if((ht=this._input.match(this.rules[kt[gt]]))&&(!J||ht[0].length>J[0].length)){if(J=ht,tt=gt,this.options.backtrack_lexer){if((X=this.test_match(ht,kt[gt]))!==!1)return X;if(this._backtrack){J=!1;continue}return!1}if(!this.options.flex)break}return J?(X=this.test_match(J,kt[tt]))!==!1&&X:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(X){this.conditionStack.push(X)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(X){return(X=this.conditionStack.length-1-Math.abs(X||0))>=0?this.conditionStack[X]:"INITIAL"},pushState:function(X){this.begin(X)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(X,J,ht,tt){switch(ht){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:break;case 7:return 11;case 8:case 9:break;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function V(){this.yy={}}return W.lexer=H,V.prototype=W,W.Parser=V,new V}();h.parser=d,h.Parser=d.Parser,h.parse=function(){return d.parse.apply(d,arguments)},h.main=function(l){l[1]||(console.log("Usage: "+l[0]+" FILE"),process.exit(1));var _=s(9143).readFileSync(s(6470).normalize(l[1]),"utf8");return h.parser.parse(_)},s.c[s.s]===a&&h.main(process.argv.slice(1))},9609:a=>{var h=/^(%20|\s)*(javascript|data)/im,s=/[^\x20-\x7E]/gim,d=/^([^:]+):/gm,l=[".","/"];a.exports={sanitizeUrl:function(_){if(!_)return"about:blank";var y,w,T=_.replace(s,"").trim();return function(A){return l.indexOf(A[0])>-1}(T)?T:(w=T.match(d))?(y=w[0],h.test(y)?"about:blank":T):"about:blank"}}},3841:a=>{a.exports=function(h,s){return h.intersect(s)}},4640:(a,h,s)=>{s.d(h,{Z:()=>B7});var d=s(1941),l=s.n(d),_={debug:1,info:2,warn:3,error:4,fatal:5},y={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},w=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),_[t]!==void 0&&(t=_[t])),y.trace=function(){},y.debug=function(){},y.info=function(){},y.warn=function(){},y.error=function(){},y.fatal=function(){},t<=_.fatal&&(y.fatal=console.error?console.error.bind(console,T("FATAL"),"color: orange"):console.log.bind(console,"[35m",T("FATAL"))),t<=_.error&&(y.error=console.error?console.error.bind(console,T("ERROR"),"color: orange"):console.log.bind(console,"[31m",T("ERROR"))),t<=_.warn&&(y.warn=console.warn?console.warn.bind(console,T("WARN"),"color: orange"):console.log.bind(console,"[33m",T("WARN"))),t<=_.info&&(y.info=console.info?console.info.bind(console,T("INFO"),"color: lightblue"):console.log.bind(console,"[34m",T("INFO"))),t<=_.debug&&(y.debug=console.debug?console.debug.bind(console,T("DEBUG"),"color: lightgreen"):console.log.bind(console,"[32m",T("DEBUG")))},T=function(t){var e=l()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function A(t,e){let r;if(e===void 0)for(const o of t)o!=null&&(r<o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let f of t)(f=e(f,++o,t))!=null&&(r<f||r===void 0&&f>=f)&&(r=f)}return r}function L(t,e){let r;if(e===void 0)for(const o of t)o!=null&&(r>o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let f of t)(f=e(f,++o,t))!=null&&(r>f||r===void 0&&f>=f)&&(r=f)}return r}function N(t){return t}var P=1e-6;function W(t){return"translate("+t+",0)"}function H(t){return"translate(0,"+t+")"}function V(t){return e=>+t(e)}function X(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function J(){return!this.__axis}function ht(t,e){var r=[],o=null,f=null,p=6,m=6,b=3,S=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,E=t===1||t===4?-1:1,O=t===4||t===2?"x":"y",j=t===1||t===3?W:H;function F(U){var ot=o==null?e.ticks?e.ticks.apply(e,r):e.domain():o,vt=f==null?e.tickFormat?e.tickFormat.apply(e,r):N:f,_t=Math.max(p,0)+b,xt=e.range(),mt=+xt[0]+S,st=+xt[xt.length-1]+S,qt=(e.bandwidth?X:V)(e.copy(),S),At=U.selection?U.selection():U,pt=At.selectAll(".domain").data([null]),Lt=At.selectAll(".tick").data(ot,e).order(),te=Lt.exit(),Et=Lt.enter().append("g").attr("class","tick"),bt=Lt.select("line"),Ut=Lt.select("text");pt=pt.merge(pt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Lt=Lt.merge(Et),bt=bt.merge(Et.append("line").attr("stroke","currentColor").attr(O+"2",E*p)),Ut=Ut.merge(Et.append("text").attr("fill","currentColor").attr(O,E*_t).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),U!==At&&(pt=pt.transition(U),Lt=Lt.transition(U),bt=bt.transition(U),Ut=Ut.transition(U),te=te.transition(U).attr("opacity",P).attr("transform",function(St){return isFinite(St=qt(St))?j(St+S):this.getAttribute("transform")}),Et.attr("opacity",P).attr("transform",function(St){var Jt=this.parentNode.__axis;return j((Jt&&isFinite(Jt=Jt(St))?Jt:qt(St))+S)})),te.remove(),pt.attr("d",t===4||t===2?m?"M"+E*m+","+mt+"H"+S+"V"+st+"H"+E*m:"M"+S+","+mt+"V"+st:m?"M"+mt+","+E*m+"V"+S+"H"+st+"V"+E*m:"M"+mt+","+S+"H"+st),Lt.attr("opacity",1).attr("transform",function(St){return j(qt(St)+S)}),bt.attr(O+"2",E*p),Ut.attr(O,E*_t).text(vt),At.filter(J).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),At.each(function(){this.__axis=qt})}return F.scale=function(U){return arguments.length?(e=U,F):e},F.ticks=function(){return r=Array.from(arguments),F},F.tickArguments=function(U){return arguments.length?(r=U==null?[]:Array.from(U),F):r.slice()},F.tickValues=function(U){return arguments.length?(o=U==null?null:Array.from(U),F):o&&o.slice()},F.tickFormat=function(U){return arguments.length?(f=U,F):f},F.tickSize=function(U){return arguments.length?(p=m=+U,F):p},F.tickSizeInner=function(U){return arguments.length?(p=+U,F):p},F.tickSizeOuter=function(U){return arguments.length?(m=+U,F):m},F.tickPadding=function(U){return arguments.length?(b=+U,F):b},F.offset=function(U){return arguments.length?(S=+U,F):S},F}function tt(){}function kt(t){return t==null?tt:function(){return this.querySelector(t)}}function gt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function ft(){return[]}function et(t){return t==null?ft:function(){return this.querySelectorAll(t)}}function K(t){return function(){return this.matches(t)}}function dt(t){return function(e){return e.matches(t)}}var Ot=Array.prototype.find;function Tt(){return this.firstElementChild}var lt=Array.prototype.filter;function It(){return Array.from(this.children)}function Ft(t){return new Array(t.length)}function ue(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ye(t){return function(){return t}}function de(t,e,r,o,f,p){for(var m,b=0,S=e.length,E=p.length;b<E;++b)(m=e[b])?(m.__data__=p[b],o[b]=m):r[b]=new ue(t,p[b]);for(;b<S;++b)(m=e[b])&&(f[b]=m)}function le(t,e,r,o,f,p,m){var b,S,E,O=new Map,j=e.length,F=p.length,U=new Array(j);for(b=0;b<j;++b)(S=e[b])&&(U[b]=E=m.call(S,S.__data__,b,e)+"",O.has(E)?f[b]=S:O.set(E,S));for(b=0;b<F;++b)E=m.call(t,p[b],b,p)+"",(S=O.get(E))?(o[b]=S,S.__data__=p[b],O.delete(E)):r[b]=new ue(t,p[b]);for(b=0;b<j;++b)(S=e[b])&&O.get(U[b])===S&&(f[b]=S)}function Nt(t){return t.__data__}function jt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Kt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}ue.prototype={constructor:ue,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var pe="http://www.w3.org/1999/xhtml";const ge={svg:"http://www.w3.org/2000/svg",xhtml:pe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Pt(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),ge.hasOwnProperty(e)?{space:ge[e],local:t}:t}function ze(t){return function(){this.removeAttribute(t)}}function Qt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zt(t,e){return function(){this.setAttribute(t,e)}}function Zt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function rt(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function ae(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 Ct(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Mt(t){return function(){this.style.removeProperty(t)}}function re(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Dt(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function ne(t,e){return t.style.getPropertyValue(e)||Ct(t).getComputedStyle(t,null).getPropertyValue(e)}function ke(t){return function(){delete this[t]}}function me(t,e){return function(){this[t]=e}}function pn(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Pe(t){return t.trim().split(/^|\s+/)}function Qe(t){return t.classList||new Be(t)}function Be(t){this._node=t,this._names=Pe(t.getAttribute("class")||"")}function Ee(t,e){for(var r=Qe(t),o=-1,f=e.length;++o<f;)r.add(e[o])}function tn(t,e){for(var r=Qe(t),o=-1,f=e.length;++o<f;)r.remove(e[o])}function je(t){return function(){Ee(this,t)}}function Je(t){return function(){tn(this,t)}}function Ke(t,e){return function(){(e.apply(this,arguments)?Ee:tn)(this,t)}}function On(){this.textContent=""}function Sn(t){return function(){this.textContent=t}}function Te(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Ge(){this.innerHTML=""}function _r(t){return function(){this.innerHTML=t}}function Ur(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function gn(){this.nextSibling&&this.parentNode.appendChild(this)}function un(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function an(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===pe&&e.documentElement.namespaceURI===pe?e.createElement(t):e.createElementNS(r,t)}}function xn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ze(t){var e=Pt(t);return(e.local?xn:an)(e)}function Tn(){return null}function Cn(){var t=this.parentNode;t&&t.removeChild(this)}function Zn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Xr(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Wn(t){return t.trim().split(/^|\s+/).map(function(e){var r="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}function Un(t){return function(){var e=this.__on;if(e){for(var r,o=0,f=-1,p=e.length;o<p;++o)r=e[o],t.type&&r.type!==t.type||r.name!==t.name?e[++f]=r:this.removeEventListener(r.type,r.listener,r.options);++f?e.length=f:delete this.__on}}}function Ln(t,e,r){return function(){var o,f=this.__on,p=function(S){return function(E){S.call(this,E,this.__data__)}}(e);if(f){for(var m=0,b=f.length;m<b;++m)if((o=f[m]).type===t.type&&o.name===t.name)return this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=p,o.options=r),void(o.value=e)}this.addEventListener(t.type,p,r),o={type:t.type,name:t.name,value:e,listener:p,options:r},f?f.push(o):this.__on=[o]}}function qn(t,e,r){var o=Ct(t),f=o.CustomEvent;typeof f=="function"?f=new f(e,r):(f=o.document.createEvent("Event"),r?(f.initEvent(e,r.bubbles,r.cancelable),f.detail=r.detail):f.initEvent(e,!1,!1)),t.dispatchEvent(f)}function Qn(t,e){return function(){return qn(this,t,e)}}function er(t,e){return function(){return qn(this,t,e.apply(this,arguments))}}Be.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ar=[null];function Bn(t,e){this._groups=t,this._parents=e}function Hn(){return new Bn([[document.documentElement]],ar)}Bn.prototype=Hn.prototype={constructor:Bn,select:function(t){typeof t!="function"&&(t=kt(t));for(var e=this._groups,r=e.length,o=new Array(r),f=0;f<r;++f)for(var p,m,b=e[f],S=b.length,E=o[f]=new Array(S),O=0;O<S;++O)(p=b[O])&&(m=t.call(p,p.__data__,O,b))&&("__data__"in p&&(m.__data__=p.__data__),E[O]=m);return new Bn(o,this._parents)},selectAll:function(t){t=typeof t=="function"?function(O){return function(){return gt(O.apply(this,arguments))}}(t):et(t);for(var e=this._groups,r=e.length,o=[],f=[],p=0;p<r;++p)for(var m,b=e[p],S=b.length,E=0;E<S;++E)(m=b[E])&&(o.push(t.call(m,m.__data__,E,b)),f.push(m));return new Bn(o,f)},selectChild:function(t){return this.select(t==null?Tt:function(e){return function(){return Ot.call(this.children,e)}}(typeof t=="function"?t:dt(t)))},selectChildren:function(t){return this.selectAll(t==null?It:function(e){return function(){return lt.call(this.children,e)}}(typeof t=="function"?t:dt(t)))},filter:function(t){typeof t!="function"&&(t=K(t));for(var e=this._groups,r=e.length,o=new Array(r),f=0;f<r;++f)for(var p,m=e[f],b=m.length,S=o[f]=[],E=0;E<b;++E)(p=m[E])&&t.call(p,p.__data__,E,m)&&S.push(p);return new Bn(o,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Nt);var r=e?le:de,o=this._parents,f=this._groups;typeof t!="function"&&(t=ye(t));for(var p=f.length,m=new Array(p),b=new Array(p),S=new Array(p),E=0;E<p;++E){var O=o[E],j=f[E],F=j.length,U=jt(t.call(O,O&&O.__data__,E,o)),ot=U.length,vt=b[E]=new Array(ot),_t=m[E]=new Array(ot),xt=S[E]=new Array(F);r(O,j,vt,_t,xt,U,e);for(var mt,st,qt=0,At=0;qt<ot;++qt)if(mt=vt[qt]){for(qt>=At&&(At=qt+1);!(st=_t[At])&&++At<ot;);mt._next=st||null}}return(m=new Bn(m,o))._enter=b,m._exit=S,m},enter:function(){return new Bn(this._enter||this._groups.map(Ft),this._parents)},exit:function(){return new Bn(this._exit||this._groups.map(Ft),this._parents)},join:function(t,e,r){var o=this.enter(),f=this,p=this.exit();return typeof t=="function"?(o=t(o))&&(o=o.selection()):o=o.append(t+""),e!=null&&(f=e(f))&&(f=f.selection()),r==null?p.remove():r(p),o&&f?o.merge(f).order():f},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,f=r.length,p=o.length,m=Math.min(f,p),b=new Array(f),S=0;S<m;++S)for(var E,O=r[S],j=o[S],F=O.length,U=b[S]=new Array(F),ot=0;ot<F;++ot)(E=O[ot]||j[ot])&&(U[ot]=E);for(;S<f;++S)b[S]=r[S];return new Bn(b,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o,f=t[e],p=f.length-1,m=f[p];--p>=0;)(o=f[p])&&(m&&4^o.compareDocumentPosition(m)&&m.parentNode.insertBefore(o,m),m=o);return this},sort:function(t){function e(j,F){return j&&F?t(j.__data__,F.__data__):!j-!F}t||(t=Kt);for(var r=this._groups,o=r.length,f=new Array(o),p=0;p<o;++p){for(var m,b=r[p],S=b.length,E=f[p]=new Array(S),O=0;O<S;++O)(m=b[O])&&(E[O]=m);E.sort(e)}return new Bn(f,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],f=0,p=o.length;f<p;++f){var m=o[f];if(m)return m}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,o=e.length;r<o;++r)for(var f,p=e[r],m=0,b=p.length;m<b;++m)(f=p[m])&&t.call(f,f.__data__,m,p);return this},attr:function(t,e){var r=Pt(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?Qt:ze:typeof e=="function"?r.local?ae:rt:r.local?Zt:zt)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?Mt:typeof e=="function"?Dt:re)(t,e,r==null?"":r)):ne(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?ke:typeof e=="function"?pn:me)(t,e)):this.node()[t]},classed:function(t,e){var r=Pe(t+"");if(arguments.length<2){for(var o=Qe(this.node()),f=-1,p=r.length;++f<p;)if(!o.contains(r[f]))return!1;return!0}return this.each((typeof e=="function"?Ke:e?je:Je)(r,e))},text:function(t){return arguments.length?this.each(t==null?On:(typeof t=="function"?Te:Sn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?Ge:(typeof t=="function"?Ur:_r)(t)):this.node().innerHTML},raise:function(){return this.each(gn)},lower:function(){return this.each(un)},append:function(t){var e=typeof t=="function"?t:Ze(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:Ze(t),o=e==null?Tn:typeof e=="function"?e:kt(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function(){return this.each(Cn)},clone:function(t){return this.select(t?Xr:Zn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var o,f,p=Wn(t+""),m=p.length;if(!(arguments.length<2)){for(b=e?Ln:Un,o=0;o<m;++o)this.each(b(p[o],e,r));return this}var b=this.node().__on;if(b){for(var S,E=0,O=b.length;E<O;++E)for(o=0,S=b[E];o<m;++o)if((f=p[o]).type===S.type&&f.name===S.name)return S.value}},dispatch:function(t,e){return this.each((typeof e=="function"?er:Qn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o,f=t[e],p=0,m=f.length;p<m;++p)(o=f[p])&&(yield o)}};const In=Hn;var _n={value:()=>{}};function so(){for(var t,e=0,r=arguments.length,o={};e<r;++e){if(!(t=arguments[e]+"")||t in o||/[\s.]/.test(t))throw new Error("illegal type: "+t);o[t]=[]}return new hr(o)}function hr(t){this._=t}function Ai(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",f=r.indexOf(".");if(f>=0&&(o=r.slice(f+1),r=r.slice(0,f)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}function Rn(t,e){for(var r,o=0,f=t.length;o<f;++o)if((r=t[o]).name===e)return r.value}function ko(t,e,r){for(var o=0,f=t.length;o<f;++o)if(t[o].name===e){t[o]=_n,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}hr.prototype=so.prototype={constructor:hr,on:function(t,e){var r,o=this._,f=Ai(t+"",o),p=-1,m=f.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++p<m;)if(r=(t=f[p]).type)o[r]=ko(o[r],t.name,e);else if(e==null)for(r in o)o[r]=ko(o[r],t.name,null);return this}for(;++p<m;)if((r=(t=f[p]).type)&&(r=Rn(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new hr(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,o,f=new Array(r),p=0;p<r;++p)f[p]=arguments[p+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(p=0,r=(o=this._[t]).length;p<r;++p)o[p].value.apply(e,f)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],f=0,p=o.length;f<p;++f)o[f].value.apply(e,r)}};const To=so;var Jr,ri,Rr=0,zr=0,Zr=0,Kr=0,Ar=0,ti=0,qr=typeof performance=="object"&&performance.now?performance:Date,pi=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function gi(){return Ar||(pi(yr),Ar=qr.now()+ti)}function yr(){Ar=0}function Di(){this._call=this._time=this._next=null}function Vr(t,e,r){var o=new Di;return o.restart(t,e,r),o}function Ui(){Ar=(Kr=qr.now())+ti,Rr=zr=0;try{(function(){gi(),++Rr;for(var t,e=Jr;e;)(t=Ar-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Rr})()}finally{Rr=0,function(){for(var t,e,r=Jr,o=1/0;r;)r._call?(o>r._time&&(o=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Jr=e);ri=t,Aa(o)}(),Ar=0}}function Wa(){var t=qr.now(),e=t-Kr;e>1e3&&(ti-=e,Kr=t)}function Aa(t){Rr||(zr&&(zr=clearTimeout(zr)),t-Ar>24?(t<1/0&&(zr=setTimeout(Ui,t-qr.now()-ti)),Zr&&(Zr=clearInterval(Zr))):(Zr||(Kr=qr.now(),Zr=setInterval(Wa,1e3)),Rr=1,pi(Ui)))}function qe(t,e,r){var o=new Di;return e=e==null?0:+e,o.restart(f=>{o.stop(),t(f+e)},e,r),o}Di.prototype=Vr.prototype={constructor:Di,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?gi():+r)+(e==null?0:+e),this._next||ri===this||(ri?ri._next=this:Jr=this,ri=this),this._call=t,this._time=r,Aa()},stop:function(){this._call&&(this._call=null,this._time=1/0,Aa())}};var or=To("start","end","cancel","interrupt"),Dn=[];function Ie(t,e,r,o,f,p){var m=t.__transition;if(m){if(r in m)return}else t.__transition={};(function(b,S,E){var O,j=b.__transition;function F(vt){var _t,xt,mt,st;if(E.state!==1)return ot();for(_t in j)if((st=j[_t]).name===E.name){if(st.state===3)return qe(F);st.state===4?(st.state=6,st.timer.stop(),st.on.call("interrupt",b,b.__data__,st.index,st.group),delete j[_t]):+_t<S&&(st.state=6,st.timer.stop(),st.on.call("cancel",b,b.__data__,st.index,st.group),delete j[_t])}if(qe(function(){E.state===3&&(E.state=4,E.timer.restart(U,E.delay,E.time),U(vt))}),E.state=2,E.on.call("start",b,b.__data__,E.index,E.group),E.state===2){for(E.state=3,O=new Array(mt=E.tween.length),_t=0,xt=-1;_t<mt;++_t)(st=E.tween[_t].value.call(b,b.__data__,E.index,E.group))&&(O[++xt]=st);O.length=xt+1}}function U(vt){for(var _t=vt<E.duration?E.ease.call(null,vt/E.duration):(E.timer.restart(ot),E.state=5,1),xt=-1,mt=O.length;++xt<mt;)O[xt].call(b,_t);E.state===5&&(E.on.call("end",b,b.__data__,E.index,E.group),ot())}function ot(){for(var vt in E.state=6,E.timer.stop(),delete j[S],j)return;delete b.__transition}j[S]=E,E.timer=Vr(function(vt){E.state=1,E.timer.restart(F,E.delay,E.time),E.delay<=vt&&F(vt-E.delay)},0,E.time)})(t,r,{name:e,index:o,group:f,on:or,tween:Dn,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:0})}function br(t,e){var r=De(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Bt(t,e){var r=De(t,e);if(r.state>3)throw new Error("too late; already running");return r}function De(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Vt(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Fr,Ss=180/Math.PI,Zo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ha(t,e,r,o,f,p){var m,b,S;return(m=Math.sqrt(t*t+e*e))&&(t/=m,e/=m),(S=t*r+e*o)&&(r-=t*S,o-=e*S),(b=Math.sqrt(r*r+o*o))&&(r/=b,o/=b,S/=b),t*o<e*r&&(t=-t,e=-e,S=-S,m=-m),{translateX:f,translateY:p,rotate:Math.atan2(e,t)*Ss,skewX:Math.atan(S)*Ss,scaleX:m,scaleY:b}}function zi(t,e,r,o){function f(p){return p.length?p.pop()+" ":""}return function(p,m){var b=[],S=[];return p=t(p),m=t(m),function(E,O,j,F,U,ot){if(E!==j||O!==F){var vt=U.push("translate(",null,e,null,r);ot.push({i:vt-4,x:Vt(E,j)},{i:vt-2,x:Vt(O,F)})}else(j||F)&&U.push("translate("+j+e+F+r)}(p.translateX,p.translateY,m.translateX,m.translateY,b,S),function(E,O,j,F){E!==O?(E-O>180?O+=360:O-E>180&&(E+=360),F.push({i:j.push(f(j)+"rotate(",null,o)-2,x:Vt(E,O)})):O&&j.push(f(j)+"rotate("+O+o)}(p.rotate,m.rotate,b,S),function(E,O,j,F){E!==O?F.push({i:j.push(f(j)+"skewX(",null,o)-2,x:Vt(E,O)}):O&&j.push(f(j)+"skewX("+O+o)}(p.skewX,m.skewX,b,S),function(E,O,j,F,U,ot){if(E!==j||O!==F){var vt=U.push(f(U)+"scale(",null,",",null,")");ot.push({i:vt-4,x:Vt(E,j)},{i:vt-2,x:Vt(O,F)})}else j===1&&F===1||U.push(f(U)+"scale("+j+","+F+")")}(p.scaleX,p.scaleY,m.scaleX,m.scaleY,b,S),p=m=null,function(E){for(var O,j=-1,F=S.length;++j<F;)b[(O=S[j]).i]=O.x(E);return b.join("")}}}var Cs=zi(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Zo:Ha(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Pr=zi(function(t){return t==null?Zo:(Fr||(Fr=document.createElementNS("http://www.w3.org/2000/svg","g")),Fr.setAttribute("transform",t),(t=Fr.transform.baseVal.consolidate())?Ha((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Zo)},", ",")",")");function ha(t,e){var r,o;return function(){var f=Bt(this,t),p=f.tween;if(p!==r){for(var m=0,b=(o=r=p).length;m<b;++m)if(o[m].name===e){(o=o.slice()).splice(m,1);break}}f.tween=o}}function $a(t,e,r){var o,f;if(typeof r!="function")throw new Error;return function(){var p=Bt(this,t),m=p.tween;if(m!==o){f=(o=m).slice();for(var b={name:e,value:r},S=0,E=f.length;S<E;++S)if(f[S].name===e){f[S]=b;break}S===E&&f.push(b)}p.tween=f}}function Mn(t,e,r){var o=t._id;return t.each(function(){var f=Bt(this,o);(f.value||(f.value={}))[e]=r.apply(this,arguments)}),function(f){return De(f,o).value[e]}}function co(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function qa(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function Yn(){}var Ti=.7,Qr=1/Ti,Dr="\\s*([+-]?\\d+)\\s*",Qi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wr=/^#([0-9a-f]{3,8})$/,Wi=new RegExp("^rgb\\("+[Dr,Dr,Dr]+"\\)$"),Ni=new RegExp("^rgb\\("+[Nr,Nr,Nr]+"\\)$"),Ei=new RegExp("^rgba\\("+[Dr,Dr,Dr,Qi]+"\\)$"),Da=new RegExp("^rgba\\("+[Nr,Nr,Nr,Qi]+"\\)$"),Wt=new RegExp("^hsl\\("+[Qi,Nr,Nr]+"\\)$"),He=new RegExp("^hsla\\("+[Qi,Nr,Nr,Qi]+"\\)$"),Ye={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function sr(){return this.rgb().formatHex()}function Or(){return this.rgb().formatRgb()}function ei(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Wr.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?ii(e):r===3?new Oi(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Eo(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Eo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Wi.exec(t))?new Oi(e[1],e[2],e[3],1):(e=Ni.exec(t))?new Oi(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ei.exec(t))?Eo(e[1],e[2],e[3],e[4]):(e=Da.exec(t))?Eo(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Wt.exec(t))?lo(e[1],e[2]/100,e[3]/100,1):(e=He.exec(t))?lo(e[1],e[2]/100,e[3]/100,e[4]):Ye.hasOwnProperty(t)?ii(Ye[t]):t==="transparent"?new Oi(NaN,NaN,NaN,0):null}function ii(t){return new Oi(t>>16&255,t>>8&255,255&t,1)}function Eo(t,e,r,o){return o<=0&&(t=e=r=NaN),new Oi(t,e,r,o)}function ua(t){return t instanceof Yn||(t=ei(t)),t?new Oi((t=t.rgb()).r,t.g,t.b,t.opacity):new Oi}function So(t,e,r,o){return arguments.length===1?ua(t):new Oi(t,e,r,o==null?1:o)}function Oi(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function Qc(){return"#"+Jc(this.r)+Jc(this.g)+Jc(this.b)}function uo(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Jc(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function lo(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Hi(t,e,r,o)}function Kc(t){if(t instanceof Hi)return new Hi(t.h,t.s,t.l,t.opacity);if(t instanceof Yn||(t=ei(t)),!t)return new Hi;if(t instanceof Hi)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,f=Math.min(e,r,o),p=Math.max(e,r,o),m=NaN,b=p-f,S=(p+f)/2;return b?(m=e===p?(r-o)/b+6*(r<o):r===p?(o-e)/b+2:(e-r)/b+4,b/=S<.5?p+f:2-p-f,m*=60):b=S>0&&S<1?0:m,new Hi(m,b,S,t.opacity)}function Hi(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function ni(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}co(Yn,ei,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:sr,formatHex:sr,formatHsl:function(){return Kc(this).formatHsl()},formatRgb:Or,toString:Or}),co(Oi,So,qa(Yn,{brighter:function(t){return t=t==null?Qr:Math.pow(Qr,t),new Oi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Ti:Math.pow(Ti,t),new Oi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qc,formatHex:Qc,formatRgb:uo,toString:uo})),co(Hi,function(t,e,r,o){return arguments.length===1?Kc(t):new Hi(t,e,r,o==null?1:o)},qa(Yn,{brighter:function(t){return t=t==null?Qr:Math.pow(Qr,t),new Hi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Ti:Math.pow(Ti,t),new Hi(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,f=2*r-o;return new Oi(ni(t>=240?t-240:t+120,f,o),ni(t,f,o),ni(t<120?t+240:t-120,f,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const Xu=t=>()=>t;function Zu(t,e){var r=e-t;return r?function(o,f){return function(p){return o+p*f}}(t,r):Xu(isNaN(t)?e:t)}const Qu=function t(e){var r=function(f){return(f=+f)==1?Zu:function(p,m){return m-p?function(b,S,E){return b=Math.pow(b,E),S=Math.pow(S,E)-b,E=1/E,function(O){return Math.pow(b+O*S,E)}}(p,m,f):Xu(isNaN(p)?m:p)}}(e);function o(f,p){var m=r((f=So(f)).r,(p=So(p)).r),b=r(f.g,p.g),S=r(f.b,p.b),E=Zu(f.opacity,p.opacity);return function(O){return f.r=m(O),f.g=b(O),f.b=S(O),f.opacity=E(O),f+""}}return o.gamma=t,o}(1);var Va=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ju=new RegExp(Va.source,"g");function Ku(t,e){var r,o,f,p=Va.lastIndex=Ju.lastIndex=0,m=-1,b=[],S=[];for(t+="",e+="";(r=Va.exec(t))&&(o=Ju.exec(e));)(f=o.index)>p&&(f=e.slice(p,f),b[m]?b[m]+=f:b[++m]=f),(r=r[0])===(o=o[0])?b[m]?b[m]+=o:b[++m]=o:(b[++m]=null,S.push({i:m,x:Vt(r,o)})),p=Ju.lastIndex;return p<e.length&&(f=e.slice(p),b[m]?b[m]+=f:b[++m]=f),b.length<2?S[0]?function(E){return function(O){return E(O)+""}}(S[0].x):function(E){return function(){return E}}(e):(e=S.length,function(E){for(var O,j=0;j<e;++j)b[(O=S[j]).i]=O.x(E);return b.join("")})}function Ga(t,e){var r;return(typeof e=="number"?Vt:e instanceof ei?Qu:(r=ei(e))?(e=r,Qu):Ku)(t,e)}function Le(t){return function(){this.removeAttribute(t)}}function vh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Br(t,e,r){var o,f,p=r+"";return function(){var m=this.getAttribute(t);return m===p?null:m===o?f:f=e(o=m,r)}}function tu(t,e,r){var o,f,p=r+"";return function(){var m=this.getAttributeNS(t.space,t.local);return m===p?null:m===o?f:f=e(o=m,r)}}function eu(t,e,r){var o,f,p;return function(){var m,b,S=r(this);if(S!=null)return(m=this.getAttribute(t))===(b=S+"")?null:m===o&&b===f?p:(f=b,p=e(o=m,S));this.removeAttribute(t)}}function tl(t,e,r){var o,f,p;return function(){var m,b,S=r(this);if(S!=null)return(m=this.getAttributeNS(t.space,t.local))===(b=S+"")?null:m===o&&b===f?p:(f=b,p=e(o=m,S));this.removeAttributeNS(t.space,t.local)}}function Na(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function yi(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function sc(t,e){var r,o;function f(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&yi(t,p)),r}return f._value=e,f}function _h(t,e){var r,o;function f(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&Na(t,p)),r}return f._value=e,f}function el(t,e){return function(){br(this,t).delay=+e.apply(this,arguments)}}function Co(t,e){return e=+e,function(){br(this,t).delay=e}}function bh(t,e){return function(){Bt(this,t).duration=+e.apply(this,arguments)}}function bd(t,e){return e=+e,function(){Bt(this,t).duration=e}}function hp(t,e){if(typeof e!="function")throw new Error;return function(){Bt(this,t).ease=e}}function xd(t,e,r){var o,f,p=function(m){return(m+"").trim().split(/^|\s+/).every(function(b){var S=b.indexOf(".");return S>=0&&(b=b.slice(0,S)),!b||b==="start"})}(e)?br:Bt;return function(){var m=p(this,t),b=m.on;b!==o&&(f=(o=b).copy()).on(e,r),m.on=f}}var wd=In.prototype.constructor;function fa(t){return function(){this.style.removeProperty(t)}}function kd(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function xh(t,e,r){var o,f;function p(){var m=e.apply(this,arguments);return m!==f&&(o=(f=m)&&kd(t,m,r)),o}return p._value=e,p}function wh(t){return function(e){this.textContent=t.call(this,e)}}function Mo(t){var e,r;function o(){var f=t.apply(this,arguments);return f!==r&&(e=(r=f)&&wh(f)),e}return o._value=t,o}var nu=0;function Xa(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function ru(){return++nu}var da=In.prototype;Xa.prototype={constructor:Xa,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=kt(t));for(var o=this._groups,f=o.length,p=new Array(f),m=0;m<f;++m)for(var b,S,E=o[m],O=E.length,j=p[m]=new Array(O),F=0;F<O;++F)(b=E[F])&&(S=t.call(b,b.__data__,F,E))&&("__data__"in b&&(S.__data__=b.__data__),j[F]=S,Ie(j[F],e,r,F,j,De(b,r)));return new Xa(p,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=et(t));for(var o=this._groups,f=o.length,p=[],m=[],b=0;b<f;++b)for(var S,E=o[b],O=E.length,j=0;j<O;++j)if(S=E[j]){for(var F,U=t.call(S,S.__data__,j,E),ot=De(S,r),vt=0,_t=U.length;vt<_t;++vt)(F=U[vt])&&Ie(F,e,r,vt,U,ot);p.push(U),m.push(S)}return new Xa(p,m,e,r)},selectChild:da.selectChild,selectChildren:da.selectChildren,filter:function(t){typeof t!="function"&&(t=K(t));for(var e=this._groups,r=e.length,o=new Array(r),f=0;f<r;++f)for(var p,m=e[f],b=m.length,S=o[f]=[],E=0;E<b;++E)(p=m[E])&&t.call(p,p.__data__,E,m)&&S.push(p);return new Xa(o,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,o=e.length,f=r.length,p=Math.min(o,f),m=new Array(o),b=0;b<p;++b)for(var S,E=e[b],O=r[b],j=E.length,F=m[b]=new Array(j),U=0;U<j;++U)(S=E[U]||O[U])&&(F[U]=S);for(;b<o;++b)m[b]=e[b];return new Xa(m,this._parents,this._name,this._id)},selection:function(){return new wd(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=ru(),o=this._groups,f=o.length,p=0;p<f;++p)for(var m,b=o[p],S=b.length,E=0;E<S;++E)if(m=b[E]){var O=De(m,e);Ie(m,t,r,E,b,{time:O.time+O.delay+O.duration,delay:0,duration:O.duration,ease:O.ease})}return new Xa(o,this._parents,t,r)},call:da.call,nodes:da.nodes,node:da.node,size:da.size,empty:da.empty,each:da.each,on:function(t,e){var r=this._id;return arguments.length<2?De(this.node(),r).on.on(t):this.each(xd(r,t,e))},attr:function(t,e){var r=Pt(t),o=r==="transform"?Pr:Ga;return this.attrTween(t,typeof e=="function"?(r.local?tl:eu)(r,o,Mn(this,"attr."+t,e)):e==null?(r.local?vh:Le)(r):(r.local?tu:Br)(r,o,e))},attrTween:function(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 o=Pt(t);return this.tween(r,(o.local?sc:_h)(o,e))},style:function(t,e,r){var o=(t+="")=="transform"?Cs:Ga;return e==null?this.styleTween(t,function(f,p){var m,b,S;return function(){var E=ne(this,f),O=(this.style.removeProperty(f),ne(this,f));return E===O?null:E===m&&O===b?S:S=p(m=E,b=O)}}(t,o)).on("end.style."+t,fa(t)):typeof e=="function"?this.styleTween(t,function(f,p,m){var b,S,E;return function(){var O=ne(this,f),j=m(this),F=j+"";return j==null&&(this.style.removeProperty(f),F=j=ne(this,f)),O===F?null:O===b&&F===S?E:(S=F,E=p(b=O,j))}}(t,o,Mn(this,"style."+t,e))).each(function(f,p){var m,b,S,E,O="style."+p,j="end."+O;return function(){var F=Bt(this,f),U=F.on,ot=F.value[O]==null?E||(E=fa(p)):void 0;U===m&&S===ot||(b=(m=U).copy()).on(j,S=ot),F.on=b}}(this._id,t)):this.styleTween(t,function(f,p,m){var b,S,E=m+"";return function(){var O=ne(this,f);return O===E?null:O===b?S:S=p(b=O,m)}}(t,o,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!="function")throw new Error;return this.tween(o,xh(t,e,r==null?"":r))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r==null?"":r}}(Mn(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(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,Mo(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var o,f=De(this.node(),r).tween,p=0,m=f.length;p<m;++p)if((o=f[p]).name===t)return o.value;return null}return this.each((e==null?ha:$a)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?el:Co)(e,t)):De(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bh:bd)(e,t)):De(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(hp(e,t)):De(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,r){return function(){var o=r.apply(this,arguments);if(typeof o!="function")throw new Error;Bt(this,e).ease=o}}(this._id,t))},end:function(){var t,e,r=this,o=r._id,f=r.size();return new Promise(function(p,m){var b={value:m},S={value:function(){--f==0&&p()}};r.each(function(){var E=Bt(this,o),O=E.on;O!==t&&((e=(t=O).copy())._.cancel.push(b),e._.interrupt.push(b),e._.end.push(S)),E.on=e}),f===0&&p()})},[Symbol.iterator]:da[Symbol.iterator]};var Ms={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function nl(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}In.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var o,f,p,m=e.__transition,b=!0;if(m){for(p in r=r==null?null:r+"",m)(o=m[p]).name===r?(f=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(f?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete m[p]):b=!1;b&&delete e.__transition}})(this,t)})},In.prototype.transition=function(t){var e,r;t instanceof Xa?(e=t._id,t=t._name):(e=ru(),(r=Ms).time=gi(),t=t==null?null:t+"");for(var o=this._groups,f=o.length,p=0;p<f;++p)for(var m,b=o[p],S=b.length,E=0;E<S;++E)(m=b[E])&&Ie(m,t,e,E,b,r||nl(m,e));return new Xa(o,this._parents,t,e)};function Ao(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function $i(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function ui(){}var Za=.7,Oa=1/Za,Ji="\\s*([+-]?\\d+)\\s*",$n="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",M="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R=/^#([0-9a-f]{3,8})$/,q=new RegExp("^rgb\\("+[Ji,Ji,Ji]+"\\)$"),at=new RegExp("^rgb\\("+[M,M,M]+"\\)$"),$t=new RegExp("^rgba\\("+[Ji,Ji,Ji,$n]+"\\)$"),he=new RegExp("^rgba\\("+[M,M,M,$n]+"\\)$"),be=new RegExp("^hsl\\("+[$n,M,M]+"\\)$"),Se=new RegExp("^hsla\\("+[$n,M,M,$n]+"\\)$"),Me={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Fe(){return this.rgb().formatHex()}function Ve(){return this.rgb().formatRgb()}function wn(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=R.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?dn(e):r===3?new lr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?fr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?fr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=q.exec(t))?new lr(e[1],e[2],e[3],1):(e=at.exec(t))?new lr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?fr(e[1],e[2],e[3],e[4]):(e=he.exec(t))?fr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=be.exec(t))?fp(e[1],e[2]/100,e[3]/100,1):(e=Se.exec(t))?fp(e[1],e[2]/100,e[3]/100,e[4]):Me.hasOwnProperty(t)?dn(Me[t]):t==="transparent"?new lr(NaN,NaN,NaN,0):null}function dn(t){return new lr(t>>16&255,t>>8&255,255&t,1)}function fr(t,e,r,o){return o<=0&&(t=e=r=NaN),new lr(t,e,r,o)}function pr(t){return t instanceof ui||(t=wn(t)),t?new lr((t=t.rgb()).r,t.g,t.b,t.opacity):new lr}function Lr(t,e,r,o){return arguments.length===1?pr(t):new lr(t,e,r,o==null?1:o)}function lr(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function pa(){return"#"+kh(this.r)+kh(this.g)+kh(this.b)}function As(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function kh(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function fp(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Do(t,e,r,o)}function Th(t){if(t instanceof Do)return new Do(t.h,t.s,t.l,t.opacity);if(t instanceof ui||(t=wn(t)),!t)return new Do;if(t instanceof Do)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,f=Math.min(e,r,o),p=Math.max(e,r,o),m=NaN,b=p-f,S=(p+f)/2;return b?(m=e===p?(r-o)/b+6*(r<o):r===p?(o-e)/b+2:(e-r)/b+4,b/=S<.5?p+f:2-p-f,m*=60):b=S>0&&S<1?0:m,new Do(m,b,S,t.opacity)}function Do(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function Eh(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Ao(ui,wn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHsl:function(){return Th(this).formatHsl()},formatRgb:Ve,toString:Ve}),Ao(lr,Lr,$i(ui,{brighter:function(t){return t=t==null?Oa:Math.pow(Oa,t),new lr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Za:Math.pow(Za,t),new lr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pa,formatHex:pa,formatRgb:As,toString:As})),Ao(Do,function(t,e,r,o){return arguments.length===1?Th(t):new Do(t,e,r,o==null?1:o)},$i(ui,{brighter:function(t){return t=t==null?Oa:Math.pow(Oa,t),new Do(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Za:Math.pow(Za,t),new Do(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,f=2*r-o;return new lr(Eh(t>=240?t-240:t+120,f,o),Eh(t,f,o),Eh(t<120?t+240:t-120,f,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const ym=Math.PI/180,mm=180/Math.PI,dp=.96422,pp=.82521,vm=4/29,gp=6/29,Td=3*gp*gp;function yp(t){if(t instanceof Qo)return new Qo(t.l,t.a,t.b,t.opacity);if(t instanceof Ds)return _m(t);t instanceof lr||(t=pr(t));var e,r,o=bp(t.r),f=bp(t.g),p=bp(t.b),m=mp((.2225045*o+.7168786*f+.0606169*p)/1);return o===f&&f===p?e=r=m:(e=mp((.4360747*o+.3850649*f+.1430804*p)/dp),r=mp((.0139322*o+.0971045*f+.7141733*p)/pp)),new Qo(116*m-16,500*(e-m),200*(m-r),t.opacity)}function Qo(t,e,r,o){this.l=+t,this.a=+e,this.b=+r,this.opacity=+o}function mp(t){return t>.008856451679035631?Math.pow(t,1/3):t/Td+vm}function vp(t){return t>gp?t*t*t:Td*(t-vm)}function _p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bp(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function f4(t){if(t instanceof Ds)return new Ds(t.h,t.c,t.l,t.opacity);if(t instanceof Qo||(t=yp(t)),t.a===0&&t.b===0)return new Ds(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*mm;return new Ds(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function xp(t,e,r,o){return arguments.length===1?f4(t):new Ds(t,e,r,o==null?1:o)}function Ds(t,e,r,o){this.h=+t,this.c=+e,this.l=+r,this.opacity=+o}function _m(t){if(isNaN(t.h))return new Qo(t.l,0,0,t.opacity);var e=t.h*ym;return new Qo(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Ao(Qo,function(t,e,r,o){return arguments.length===1?yp(t):new Qo(t,e,r,o==null?1:o)},$i(ui,{brighter:function(t){return new Qo(this.l+18*(t==null?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Qo(this.l-18*(t==null?1:t),this.a,this.b,this.opacity)},rgb:function(){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 new lr(_p(3.1338561*(e=dp*vp(e))-1.6168667*(t=1*vp(t))-.4906146*(r=pp*vp(r))),_p(-.9787684*e+1.9161415*t+.033454*r),_p(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),Ao(Ds,xp,$i(ui,{brighter:function(t){return new Ds(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},darker:function(t){return new Ds(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},rgb:function(){return _m(this).rgb()}}));const wp=t=>()=>t;function bm(t,e){return function(r){return t+r*e}}function Sh(t,e){var r=e-t;return r?bm(t,r):wp(isNaN(t)?e:t)}function d4(t){return function(e,r){var o=t((e=xp(e)).h,(r=xp(r)).h),f=Sh(e.c,r.c),p=Sh(e.l,r.l),m=Sh(e.opacity,r.opacity);return function(b){return e.h=o(b),e.c=f(b),e.l=p(b),e.opacity=m(b),e+""}}}const p4=d4(function(t,e){var r=e-t;return r?bm(t,r>180||r<-180?r-360*Math.round(r/360):r):wp(isNaN(t)?e:t)});var kp=Math.sqrt(50),Tp=Math.sqrt(10),Ep=Math.sqrt(2);function Sp(t,e,r){var o=(e-t)/Math.max(0,r),f=Math.floor(Math.log(o)/Math.LN10),p=o/Math.pow(10,f);return f>=0?(p>=kp?10:p>=Tp?5:p>=Ep?2:1)*Math.pow(10,f):-Math.pow(10,-f)/(p>=kp?10:p>=Tp?5:p>=Ep?2:1)}function Cp(t,e,r){var o=Math.abs(e-t)/Math.max(0,r),f=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),p=o/f;return p>=kp?f*=10:p>=Tp?f*=5:p>=Ep&&(f*=2),e<t?-f:f}function xm(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Mp(t){let e=t,r=t;function o(f,p,m,b){for(m==null&&(m=0),b==null&&(b=f.length);m<b;){const S=m+b>>>1;r(f[S],p)<0?m=S+1:b=S}return m}return t.length===1&&(e=(f,p)=>t(f)-p,r=function(f){return(p,m)=>xm(f(p),m)}(t)),{left:o,center:function(f,p,m,b){m==null&&(m=0),b==null&&(b=f.length);const S=o(f,p,m,b-1);return S>m&&e(f[S-1],p)>-e(f[S],p)?S-1:S},right:function(f,p,m,b){for(m==null&&(m=0),b==null&&(b=f.length);m<b;){const S=m+b>>>1;r(f[S],p)>0?b=S:m=S+1}return m}}}const g4=Mp(xm),y4=g4.right,Jo=(Mp(function(t){return t===null?NaN:+t}).center,y4);function Ed(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Ap(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function Ko(){}var Sd=.7,Cd=1.4285714285714286,cc="\\s*([+-]?\\d+)\\s*",iu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ts="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",m4=/^#([0-9a-f]{3,8})$/,v4=new RegExp("^rgb\\("+[cc,cc,cc]+"\\)$"),Dp=new RegExp("^rgb\\("+[ts,ts,ts]+"\\)$"),_4=new RegExp("^rgba\\("+[cc,cc,cc,iu]+"\\)$"),wm=new RegExp("^rgba\\("+[ts,ts,ts,iu]+"\\)$"),Np=new RegExp("^hsl\\("+[iu,ts,ts]+"\\)$"),km=new RegExp("^hsla\\("+[iu,ts,ts,iu]+"\\)$"),Md={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function au(){return this.rgb().formatHex()}function ou(){return this.rgb().formatRgb()}function rl(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=m4.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Ad(e):r===3?new Qa(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Dd(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Dd(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=v4.exec(t))?new Qa(e[1],e[2],e[3],1):(e=Dp.exec(t))?new Qa(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=_4.exec(t))?Dd(e[1],e[2],e[3],e[4]):(e=wm.exec(t))?Dd(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Np.exec(t))?Tm(e[1],e[2]/100,e[3]/100,1):(e=km.exec(t))?Tm(e[1],e[2]/100,e[3]/100,e[4]):Md.hasOwnProperty(t)?Ad(Md[t]):t==="transparent"?new Qa(NaN,NaN,NaN,0):null}function Ad(t){return new Qa(t>>16&255,t>>8&255,255&t,1)}function Dd(t,e,r,o){return o<=0&&(t=e=r=NaN),new Qa(t,e,r,o)}function Nd(t){return t instanceof Ko||(t=rl(t)),t?new Qa((t=t.rgb()).r,t.g,t.b,t.opacity):new Qa}function il(t,e,r,o){return arguments.length===1?Nd(t):new Qa(t,e,r,o==null?1:o)}function Qa(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function es(){return"#"+Od(this.r)+Od(this.g)+Od(this.b)}function Op(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Od(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Tm(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ba(t,e,r,o)}function Em(t){if(t instanceof Ba)return new Ba(t.h,t.s,t.l,t.opacity);if(t instanceof Ko||(t=rl(t)),!t)return new Ba;if(t instanceof Ba)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,f=Math.min(e,r,o),p=Math.max(e,r,o),m=NaN,b=p-f,S=(p+f)/2;return b?(m=e===p?(r-o)/b+6*(r<o):r===p?(o-e)/b+2:(e-r)/b+4,b/=S<.5?p+f:2-p-f,m*=60):b=S>0&&S<1?0:m,new Ba(m,b,S,t.opacity)}function Ba(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function Bp(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Ed(Ko,rl,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:au,formatHex:au,formatHsl:function(){return Em(this).formatHsl()},formatRgb:ou,toString:ou}),Ed(Qa,il,Ap(Ko,{brighter:function(t){return t=t==null?Cd:Math.pow(Cd,t),new Qa(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Sd:Math.pow(Sd,t),new Qa(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:es,formatHex:es,formatRgb:Op,toString:Op})),Ed(Ba,function(t,e,r,o){return arguments.length===1?Em(t):new Ba(t,e,r,o==null?1:o)},Ap(Ko,{brighter:function(t){return t=t==null?Cd:Math.pow(Cd,t),new Ba(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Sd:Math.pow(Sd,t),new Ba(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,f=2*r-o;return new Qa(Bp(t>=240?t-240:t+120,f,o),Bp(t,f,o),Bp(t<120?t+240:t-120,f,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const Lp=t=>()=>t;function Sm(t,e){var r=e-t;return r?function(o,f){return function(p){return o+p*f}}(t,r):Lp(isNaN(t)?e:t)}const Bd=function t(e){var r=function(f){return(f=+f)==1?Sm:function(p,m){return m-p?function(b,S,E){return b=Math.pow(b,E),S=Math.pow(S,E)-b,E=1/E,function(O){return Math.pow(b+O*S,E)}}(p,m,f):Lp(isNaN(p)?m:p)}}(e);function o(f,p){var m=r((f=il(f)).r,(p=il(p)).r),b=r(f.g,p.g),S=r(f.b,p.b),E=Sm(f.opacity,p.opacity);return function(O){return f.r=m(O),f.g=b(O),f.b=S(O),f.opacity=E(O),f+""}}return o.gamma=t,o}(1);function b4(t,e){var r,o=e?e.length:0,f=t?Math.min(o,t.length):0,p=new Array(f),m=new Array(o);for(r=0;r<f;++r)p[r]=Id(t[r],e[r]);for(;r<o;++r)m[r]=e[r];return function(b){for(r=0;r<f;++r)m[r]=p[r](b);return m}}function x4(t,e){var r=new Date;return t=+t,e=+e,function(o){return r.setTime(t*(1-o)+e*o),r}}function Ld(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function w4(t,e){var r,o={},f={};for(r in t!==null&&typeof t=="object"||(t={}),e!==null&&typeof e=="object"||(e={}),e)r in t?o[r]=Id(t[r],e[r]):f[r]=e[r];return function(p){for(r in o)f[r]=o[r](p);return f}}var Ip=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ch=new RegExp(Ip.source,"g");function Cm(t,e){var r,o,f,p=Ip.lastIndex=Ch.lastIndex=0,m=-1,b=[],S=[];for(t+="",e+="";(r=Ip.exec(t))&&(o=Ch.exec(e));)(f=o.index)>p&&(f=e.slice(p,f),b[m]?b[m]+=f:b[++m]=f),(r=r[0])===(o=o[0])?b[m]?b[m]+=o:b[++m]=o:(b[++m]=null,S.push({i:m,x:Ld(r,o)})),p=Ch.lastIndex;return p<e.length&&(f=e.slice(p),b[m]?b[m]+=f:b[++m]=f),b.length<2?S[0]?function(E){return function(O){return E(O)+""}}(S[0].x):function(E){return function(){return E}}(e):(e=S.length,function(E){for(var O,j=0;j<e;++j)b[(O=S[j]).i]=O.x(E);return b.join("")})}function Mm(t,e){e||(e=[]);var r,o=t?Math.min(e.length,t.length):0,f=e.slice();return function(p){for(r=0;r<o;++r)f[r]=t[r]*(1-p)+e[r]*p;return f}}function Id(t,e){var r,o,f=typeof e;return e==null||f==="boolean"?Lp(e):(f==="number"?Ld:f==="string"?(r=rl(e))?(e=r,Bd):Cm:e instanceof rl?Bd:e instanceof Date?x4:(o=e,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(e)?b4:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?w4:Ld:Mm))(t,e)}function Rd(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Am(t){return+t}var Rp=[0,1];function al(t){return t}function Fp(t,e){return(e-=t=+t)?function(o){return(o-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function k4(t,e,r){var o=t[0],f=t[1],p=e[0],m=e[1];return f<o?(o=Fp(f,o),p=r(m,p)):(o=Fp(o,f),p=r(p,m)),function(b){return p(o(b))}}function Pp(t,e,r){var o=Math.min(t.length,e.length)-1,f=new Array(o),p=new Array(o),m=-1;for(t[o]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++m<o;)f[m]=Fp(t[m],t[m+1]),p[m]=r(e[m],e[m+1]);return function(b){var S=Jo(t,b,1,o)-1;return p[S](f[S](b))}}function Fd(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Pd(){return function(){var t,e,r,o,f,p,m=Rp,b=Rp,S=Id,E=al;function O(){var F,U,ot,vt=Math.min(m.length,b.length);return E!==al&&(F=m[0],U=m[vt-1],F>U&&(ot=F,F=U,U=ot),E=function(_t){return Math.max(F,Math.min(U,_t))}),o=vt>2?Pp:k4,f=p=null,j}function j(F){return F==null||isNaN(F=+F)?r:(f||(f=o(m.map(t),b,S)))(t(E(F)))}return j.invert=function(F){return E(e((p||(p=o(b,m.map(t),Ld)))(F)))},j.domain=function(F){return arguments.length?(m=Array.from(F,Am),O()):m.slice()},j.range=function(F){return arguments.length?(b=Array.from(F),O()):b.slice()},j.rangeRound=function(F){return b=Array.from(F),S=Rd,O()},j.clamp=function(F){return arguments.length?(E=!!F||al,O()):E!==al},j.interpolate=function(F){return arguments.length?(S=F,O()):S},j.unknown=function(F){return arguments.length?(r=F,j):r},function(F,U){return t=F,e=U,O()}}()(al,al)}function Ns(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Dm,Yp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Mh(t){if(!(e=Yp.exec(t)))throw new Error("invalid format: "+t);var e;return new Os({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Os(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+""}function Yd(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,o=t.slice(0,r);return[o.length>1?o[0]+o.slice(2):o,+t.slice(r+1)]}function ol(t){return(t=Yd(Math.abs(t)))?t[1]:NaN}function Nm(t,e){var r=Yd(t,e);if(!r)return t+"";var o=r[0],f=r[1];return f<0?"0."+new Array(-f).join("0")+o:o.length>f+1?o.slice(0,f+1)+"."+o.slice(f+1):o+new Array(f-o.length+2).join("0")}Mh.prototype=Os.prototype,Os.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Om={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Nm(100*t,e),r:Nm,s:function(t,e){var r=Yd(t,e);if(!r)return t+"";var o=r[0],f=r[1],p=f-(Dm=3*Math.max(-8,Math.min(8,Math.floor(f/3))))+1,m=o.length;return p===m?o:p>m?o+new Array(p-m+1).join("0"):p>0?o.slice(0,p)+"."+o.slice(p):"0."+new Array(1-p).join("0")+Yd(t,Math.max(0,e+p-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Bm(t){return t}var jp,Ja,Ah,Up=Array.prototype.map,Bs=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function T4(t){var e=t.domain;return t.ticks=function(r){var o=e();return function(f,p,m){var b,S,E,O,j=-1;if(m=+m,(f=+f)==(p=+p)&&m>0)return[f];if((b=p<f)&&(S=f,f=p,p=S),(O=Sp(f,p,m))===0||!isFinite(O))return[];if(O>0){let F=Math.round(f/O),U=Math.round(p/O);for(F*O<f&&++F,U*O>p&&--U,E=new Array(S=U-F+1);++j<S;)E[j]=(F+j)*O}else{O=-O;let F=Math.round(f*O),U=Math.round(p*O);for(F/O<f&&++F,U/O>p&&--U,E=new Array(S=U-F+1);++j<S;)E[j]=(F+j)/O}return b&&E.reverse(),E}(o[0],o[o.length-1],r==null?10:r)},t.tickFormat=function(r,o){var f=e();return function(p,m,b,S){var E,O=Cp(p,m,b);switch((S=Mh(S==null?",f":S)).type){case"s":var j=Math.max(Math.abs(p),Math.abs(m));return S.precision!=null||isNaN(E=function(F,U){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ol(U)/3)))-ol(Math.abs(F)))}(O,j))||(S.precision=E),Ah(S,j);case"":case"e":case"g":case"p":case"r":S.precision!=null||isNaN(E=function(F,U){return F=Math.abs(F),U=Math.abs(U)-F,Math.max(0,ol(U)-ol(F))+1}(O,Math.max(Math.abs(p),Math.abs(m))))||(S.precision=E-(S.type==="e"));break;case"f":case"%":S.precision!=null||isNaN(E=function(F){return Math.max(0,-ol(Math.abs(F)))}(O))||(S.precision=E-2*(S.type==="%"))}return Ja(S)}(f[0],f[f.length-1],r==null?10:r,o)},t.nice=function(r){r==null&&(r=10);var o,f,p=e(),m=0,b=p.length-1,S=p[m],E=p[b],O=10;for(E<S&&(f=S,S=E,E=f,f=m,m=b,b=f);O-- >0;){if((f=Sp(S,E,r))===o)return p[m]=S,p[b]=E,e(p);if(f>0)S=Math.floor(S/f)*f,E=Math.ceil(E/f)*f;else{if(!(f<0))break;S=Math.ceil(S*f)/f,E=Math.floor(E*f)/f}o=f}return t},t}function Lm(){var t=Pd();return t.copy=function(){return Fd(t,Lm())},Ns.apply(t,arguments),T4(t)}jp=function(t){var e,r,o=t.grouping===void 0||t.thousands===void 0?Bm:(e=Up.call(t.grouping,Number),r=t.thousands+"",function(F,U){for(var ot=F.length,vt=[],_t=0,xt=e[0],mt=0;ot>0&&xt>0&&(mt+xt+1>U&&(xt=Math.max(1,U-mt)),vt.push(F.substring(ot-=xt,ot+xt)),!((mt+=xt+1)>U));)xt=e[_t=(_t+1)%e.length];return vt.reverse().join(r)}),f=t.currency===void 0?"":t.currency[0]+"",p=t.currency===void 0?"":t.currency[1]+"",m=t.decimal===void 0?".":t.decimal+"",b=t.numerals===void 0?Bm:function(F){return function(U){return U.replace(/[0-9]/g,function(ot){return F[+ot]})}}(Up.call(t.numerals,String)),S=t.percent===void 0?"%":t.percent+"",E=t.minus===void 0?"\u2212":t.minus+"",O=t.nan===void 0?"NaN":t.nan+"";function j(F){var U=(F=Mh(F)).fill,ot=F.align,vt=F.sign,_t=F.symbol,xt=F.zero,mt=F.width,st=F.comma,qt=F.precision,At=F.trim,pt=F.type;pt==="n"?(st=!0,pt="g"):Om[pt]||(qt===void 0&&(qt=12),At=!0,pt="g"),(xt||U==="0"&&ot==="=")&&(xt=!0,U="0",ot="=");var Lt=_t==="$"?f:_t==="#"&&/[boxX]/.test(pt)?"0"+pt.toLowerCase():"",te=_t==="$"?p:/[%p]/.test(pt)?S:"",Et=Om[pt],bt=/[defgprs%]/.test(pt);function Ut(St){var Jt,yt,fe,we=Lt,_e=te;if(pt==="c")_e=Et(St)+_e,St="";else{var Re=(St=+St)<0||1/St<0;if(St=isNaN(St)?O:Et(Math.abs(St),qt),At&&(St=function(fn){t:for(var Ae,Xn=fn.length,mn=1,yn=-1;mn<Xn;++mn)switch(fn[mn]){case".":yn=Ae=mn;break;case"0":yn===0&&(yn=mn),Ae=mn;break;default:if(!+fn[mn])break t;yn>0&&(yn=0)}return yn>0?fn.slice(0,yn)+fn.slice(Ae+1):fn}(St)),Re&&+St==0&&vt!=="+"&&(Re=!1),we=(Re?vt==="("?vt:E:vt==="-"||vt==="("?"":vt)+we,_e=(pt==="s"?Bs[8+Dm/3]:"")+_e+(Re&&vt==="("?")":""),bt){for(Jt=-1,yt=St.length;++Jt<yt;)if(48>(fe=St.charCodeAt(Jt))||fe>57){_e=(fe===46?m+St.slice(Jt+1):St.slice(Jt))+_e,St=St.slice(0,Jt);break}}}st&&!xt&&(St=o(St,1/0));var We=we.length+St.length+_e.length,Ue=We<mt?new Array(mt-We+1).join(U):"";switch(st&&xt&&(St=o(Ue+St,Ue.length?mt-_e.length:1/0),Ue=""),ot){case"<":St=we+St+_e+Ue;break;case"=":St=we+Ue+St+_e;break;case"^":St=Ue.slice(0,We=Ue.length>>1)+we+St+_e+Ue.slice(We);break;default:St=Ue+we+St+_e}return b(St)}return qt=qt===void 0?6:/[gprs]/.test(pt)?Math.max(1,Math.min(21,qt)):Math.max(0,Math.min(20,qt)),Ut.toString=function(){return F+""},Ut}return{format:j,formatPrefix:function(F,U){var ot=j(((F=Mh(F)).type="f",F)),vt=3*Math.max(-8,Math.min(8,Math.floor(ol(U)/3))),_t=Math.pow(10,-vt),xt=Bs[8+vt/3];return function(mt){return ot(_t*mt)+xt}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ja=jp.format,Ah=jp.formatPrefix;class Im extends Map{constructor(e,r=Rm){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[o,f]of e)this.set(o,f)}get(e){return super.get(zp(this,e))}has(e){return super.has(zp(this,e))}set(e,r){return super.set(function({_intern:o,_key:f},p){const m=f(p);return o.has(m)?o.get(m):(o.set(m,p),p)}(this,e),r)}delete(e){return super.delete(function({_intern:r,_key:o},f){const p=o(f);return r.has(p)&&(f=r.get(f),r.delete(p)),f}(this,e))}}function zp({_intern:t,_key:e},r){const o=e(r);return t.has(o)?t.get(o):r}function Rm(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Dh=Symbol("implicit");function uc(){var t=new Im,e=[],r=[],o=Dh;function f(p){let m=t.get(p);if(m===void 0){if(o!==Dh)return o;t.set(p,m=e.push(p)-1)}return r[m%r.length]}return f.domain=function(p){if(!arguments.length)return e.slice();e=[],t=new Im;for(const m of p)t.has(m)||t.set(m,e.push(m)-1);return f},f.range=function(p){return arguments.length?(r=Array.from(p),f):r.slice()},f.unknown=function(p){return arguments.length?(o=p,f):o},f.copy=function(){return uc(e,r).unknown(o)},Ns.apply(f,arguments),f}const sl=1e3,lc=6e4,Nh=36e5,Wp=864e5,Hp=6048e5,jd=31536e6;var Ud=new Date,zd=new Date;function Bi(t,e,r,o){function f(p){return t(p=arguments.length===0?new Date:new Date(+p)),p}return f.floor=function(p){return t(p=new Date(+p)),p},f.ceil=function(p){return t(p=new Date(p-1)),e(p,1),t(p),p},f.round=function(p){var m=f(p),b=f.ceil(p);return p-m<b-p?m:b},f.offset=function(p,m){return e(p=new Date(+p),m==null?1:Math.floor(m)),p},f.range=function(p,m,b){var S,E=[];if(p=f.ceil(p),b=b==null?1:Math.floor(b),!(p<m&&b>0))return E;do E.push(S=new Date(+p)),e(p,b),t(p);while(S<p&&p<m);return E},f.filter=function(p){return Bi(function(m){if(m>=m)for(;t(m),!p(m);)m.setTime(m-1)},function(m,b){if(m>=m)if(b<0)for(;++b<=0;)for(;e(m,-1),!p(m););else for(;--b>=0;)for(;e(m,1),!p(m););})},r&&(f.count=function(p,m){return Ud.setTime(+p),zd.setTime(+m),t(Ud),t(zd),Math.floor(r(Ud,zd))},f.every=function(p){return p=Math.floor(p),isFinite(p)&&p>0?p>1?f.filter(o?function(m){return o(m)%p==0}:function(m){return f.count(0,m)%p==0}):f:null}),f}var Wd=Bi(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Wd.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Bi(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):Wd:null};const $p=Wd;var Fm=Bi(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*sl)},function(t,e){return(e-t)/sl},function(t){return t.getUTCSeconds()});const cl=Fm;var E4=Bi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*sl)},function(t,e){t.setTime(+t+e*lc)},function(t,e){return(e-t)/lc},function(t){return t.getMinutes()});const Oh=E4;var No=Bi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*sl-t.getMinutes()*lc)},function(t,e){t.setTime(+t+e*Nh)},function(t,e){return(e-t)/Nh},function(t){return t.getHours()});const Hd=No;var qp=Bi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*lc)/Wp,t=>t.getDate()-1);const ul=qp;function Ls(t){return Bi(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+7*r)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*lc)/Hp})}var $d=Ls(0),Vp=Ls(1);Ls(2),Ls(3);var hc=Ls(4);Ls(5),Ls(6);var ns=Bi(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const Gp=ns;var Xp=Bi(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Xp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Bi(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)}):null};const Is=Xp;Bi(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*lc)},function(t,e){return(e-t)/lc},function(t){return t.getUTCMinutes()}),Bi(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Nh)},function(t,e){return(e-t)/Nh},function(t){return t.getUTCHours()});var Zp=Bi(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Wp},function(t){return t.getUTCDate()-1});const Bh=Zp;function Oo(t){return Bi(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+7*r)},function(e,r){return(r-e)/Hp})}var Pm=Oo(0),qd=Oo(1);Oo(2),Oo(3);var ll=Oo(4);Oo(5),Oo(6),Bi(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});var Ym=Bi(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Ym.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Bi(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};const ga=Ym;function su(t,e,r,o,f,p){const m=[[cl,1,sl],[cl,5,5e3],[cl,15,15e3],[cl,30,3e4],[p,1,lc],[p,5,3e5],[p,15,9e5],[p,30,18e5],[f,1,Nh],[f,3,108e5],[f,6,216e5],[f,12,432e5],[o,1,Wp],[o,2,1728e5],[r,1,Hp],[e,1,2592e6],[e,3,7776e6],[t,1,jd]];function b(S,E,O){const j=Math.abs(E-S)/O,F=Mp(([,,vt])=>vt).right(m,j);if(F===m.length)return t.every(Cp(S/jd,E/jd,O));if(F===0)return $p.every(Math.max(Cp(S,E,O),1));const[U,ot]=m[j/m[F-1][2]<m[F][2]/j?F-1:F];return U.every(ot)}return[function(S,E,O){const j=E<S;j&&([S,E]=[E,S]);const F=O&&typeof O.range=="function"?O:b(S,E,O),U=F?F.range(S,+E+1):[];return j?U.reverse():U},b]}const[jm,S4]=su(Is,Gp,$d,ul,Hd,Oh);function rs(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 Qp(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 Lh(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Ih,Um,is={"-":"",_:" ",0:"0"},Li=/^\s*\d+/,Jp=/^%/,Kp=/[\\^$*+?|[\]().{}]/g;function xr(t,e,r){var o=t<0?"-":"",f=(o?-t:t)+"",p=f.length;return o+(p<r?new Array(r-p+1).join(e)+f:f)}function C4(t){return t.replace(Kp,"\\$&")}function Rh(t){return new RegExp("^(?:"+t.map(C4).join("|")+")","i")}function Fh(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function Vd(t,e,r){var o=Li.exec(e.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}function tg(t,e,r){var o=Li.exec(e.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}function M4(t,e,r){var o=Li.exec(e.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}function A4(t,e,r){var o=Li.exec(e.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}function D4(t,e,r){var o=Li.exec(e.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}function zm(t,e,r){var o=Li.exec(e.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}function Wm(t,e,r){var o=Li.exec(e.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}function Hm(t,e,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}function eg(t,e,r){var o=Li.exec(e.slice(r,r+1));return o?(t.q=3*o[0]-3,r+o[0].length):-1}function $m(t,e,r){var o=Li.exec(e.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}function ng(t,e,r){var o=Li.exec(e.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}function La(t,e,r){var o=Li.exec(e.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}function Ph(t,e,r){var o=Li.exec(e.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}function cu(t,e,r){var o=Li.exec(e.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}function qm(t,e,r){var o=Li.exec(e.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}function N4(t,e,r){var o=Li.exec(e.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}function O4(t,e,r){var o=Li.exec(e.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}function B4(t,e,r){var o=Jp.exec(e.slice(r,r+1));return o?r+o[0].length:-1}function L4(t,e,r){var o=Li.exec(e.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}function I4(t,e,r){var o=Li.exec(e.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}function Vm(t,e){return xr(t.getDate(),e,2)}function uu(t,e){return xr(t.getHours(),e,2)}function Gm(t,e){return xr(t.getHours()%12||12,e,2)}function R4(t,e){return xr(1+ul.count(Is(t),t),e,3)}function Xm(t,e){return xr(t.getMilliseconds(),e,3)}function F4(t,e){return Xm(t,e)+"000"}function P4(t,e){return xr(t.getMonth()+1,e,2)}function Y4(t,e){return xr(t.getMinutes(),e,2)}function j4(t,e){return xr(t.getSeconds(),e,2)}function U4(t){var e=t.getDay();return e===0?7:e}function z4(t,e){return xr($d.count(Is(t)-1,t),e,2)}function Zm(t){var e=t.getDay();return e>=4||e===0?hc(t):hc.ceil(t)}function W4(t,e){return t=Zm(t),xr(hc.count(Is(t),t)+(Is(t).getDay()===4),e,2)}function H4(t){return t.getDay()}function Qm(t,e){return xr(Vp.count(Is(t)-1,t),e,2)}function $4(t,e){return xr(t.getFullYear()%100,e,2)}function q4(t,e){return xr((t=Zm(t)).getFullYear()%100,e,2)}function Jm(t,e){return xr(t.getFullYear()%1e4,e,4)}function Km(t,e){var r=t.getDay();return xr((t=r>=4||r===0?hc(t):hc.ceil(t)).getFullYear()%1e4,e,4)}function tv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+xr(e/60|0,"0",2)+xr(e%60,"0",2)}function ev(t,e){return xr(t.getUTCDate(),e,2)}function V4(t,e){return xr(t.getUTCHours(),e,2)}function nv(t,e){return xr(t.getUTCHours()%12||12,e,2)}function fc(t,e){return xr(1+Bh.count(ga(t),t),e,3)}function rv(t,e){return xr(t.getUTCMilliseconds(),e,3)}function G4(t,e){return rv(t,e)+"000"}function iv(t,e){return xr(t.getUTCMonth()+1,e,2)}function X4(t,e){return xr(t.getUTCMinutes(),e,2)}function Z4(t,e){return xr(t.getUTCSeconds(),e,2)}function av(t){var e=t.getUTCDay();return e===0?7:e}function Gd(t,e){return xr(Pm.count(ga(t)-1,t),e,2)}function ov(t){var e=t.getUTCDay();return e>=4||e===0?ll(t):ll.ceil(t)}function Yh(t,e){return t=ov(t),xr(ll.count(ga(t),t)+(ga(t).getUTCDay()===4),e,2)}function Q4(t){return t.getUTCDay()}function rg(t,e){return xr(qd.count(ga(t)-1,t),e,2)}function J4(t,e){return xr(t.getUTCFullYear()%100,e,2)}function K4(t,e){return xr((t=ov(t)).getUTCFullYear()%100,e,2)}function sv(t,e){return xr(t.getUTCFullYear()%1e4,e,4)}function hl(t,e){var r=t.getUTCDay();return xr((t=r>=4||r===0?ll(t):ll.ceil(t)).getUTCFullYear()%1e4,e,4)}function t5(){return"+0000"}function ig(){return"%"}function cv(t){return+t}function uv(t){return Math.floor(+t/1e3)}function e5(t){return new Date(t)}function n5(t){return t instanceof Date?+t:+new Date(+t)}function lv(t,e,r,o,f,p,m,b,S,E){var O=Pd(),j=O.invert,F=O.domain,U=E(".%L"),ot=E(":%S"),vt=E("%I:%M"),_t=E("%I %p"),xt=E("%a %d"),mt=E("%b %d"),st=E("%B"),qt=E("%Y");function At(pt){return(S(pt)<pt?U:b(pt)<pt?ot:m(pt)<pt?vt:p(pt)<pt?_t:o(pt)<pt?f(pt)<pt?xt:mt:r(pt)<pt?st:qt)(pt)}return O.invert=function(pt){return new Date(j(pt))},O.domain=function(pt){return arguments.length?F(Array.from(pt,n5)):F().map(e5)},O.ticks=function(pt){var Lt=F();return t(Lt[0],Lt[Lt.length-1],pt==null?10:pt)},O.tickFormat=function(pt,Lt){return Lt==null?At:E(Lt)},O.nice=function(pt){var Lt=F();return pt&&typeof pt.range=="function"||(pt=e(Lt[0],Lt[Lt.length-1],pt==null?10:pt)),pt?F(function(te,Et){var bt,Ut=0,St=(te=te.slice()).length-1,Jt=te[Ut],yt=te[St];return yt<Jt&&(bt=Ut,Ut=St,St=bt,bt=Jt,Jt=yt,yt=bt),te[Ut]=Et.floor(Jt),te[St]=Et.ceil(yt),te}(Lt,pt)):O},O.copy=function(){return Fd(O,lv(t,e,r,o,f,p,m,b,S,E))},O}function r5(){}function fl(t){return t==null?r5:function(){return this.querySelector(t)}}function ag(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function i5(){return[]}function hv(t){return t==null?i5:function(){return this.querySelectorAll(t)}}function fv(t){return function(){return this.matches(t)}}function dv(t){return function(e){return e.matches(t)}}Ih=function(t){var e=t.dateTime,r=t.date,o=t.time,f=t.periods,p=t.days,m=t.shortDays,b=t.months,S=t.shortMonths,E=Rh(f),O=Fh(f),j=Rh(p),F=Fh(p),U=Rh(m),ot=Fh(m),vt=Rh(b),_t=Fh(b),xt=Rh(S),mt=Fh(S),st={a:function(Et){return m[Et.getDay()]},A:function(Et){return p[Et.getDay()]},b:function(Et){return S[Et.getMonth()]},B:function(Et){return b[Et.getMonth()]},c:null,d:Vm,e:Vm,f:F4,g:q4,G:Km,H:uu,I:Gm,j:R4,L:Xm,m:P4,M:Y4,p:function(Et){return f[+(Et.getHours()>=12)]},q:function(Et){return 1+~~(Et.getMonth()/3)},Q:cv,s:uv,S:j4,u:U4,U:z4,V:W4,w:H4,W:Qm,x:null,X:null,y:$4,Y:Jm,Z:tv,"%":ig},qt={a:function(Et){return m[Et.getUTCDay()]},A:function(Et){return p[Et.getUTCDay()]},b:function(Et){return S[Et.getUTCMonth()]},B:function(Et){return b[Et.getUTCMonth()]},c:null,d:ev,e:ev,f:G4,g:K4,G:hl,H:V4,I:nv,j:fc,L:rv,m:iv,M:X4,p:function(Et){return f[+(Et.getUTCHours()>=12)]},q:function(Et){return 1+~~(Et.getUTCMonth()/3)},Q:cv,s:uv,S:Z4,u:av,U:Gd,V:Yh,w:Q4,W:rg,x:null,X:null,y:J4,Y:sv,Z:t5,"%":ig},At={a:function(Et,bt,Ut){var St=U.exec(bt.slice(Ut));return St?(Et.w=ot.get(St[0].toLowerCase()),Ut+St[0].length):-1},A:function(Et,bt,Ut){var St=j.exec(bt.slice(Ut));return St?(Et.w=F.get(St[0].toLowerCase()),Ut+St[0].length):-1},b:function(Et,bt,Ut){var St=xt.exec(bt.slice(Ut));return St?(Et.m=mt.get(St[0].toLowerCase()),Ut+St[0].length):-1},B:function(Et,bt,Ut){var St=vt.exec(bt.slice(Ut));return St?(Et.m=_t.get(St[0].toLowerCase()),Ut+St[0].length):-1},c:function(Et,bt,Ut){return te(Et,e,bt,Ut)},d:ng,e:ng,f:O4,g:Wm,G:zm,H:Ph,I:Ph,j:La,L:N4,m:$m,M:cu,p:function(Et,bt,Ut){var St=E.exec(bt.slice(Ut));return St?(Et.p=O.get(St[0].toLowerCase()),Ut+St[0].length):-1},q:eg,Q:L4,s:I4,S:qm,u:tg,U:M4,V:A4,w:Vd,W:D4,x:function(Et,bt,Ut){return te(Et,r,bt,Ut)},X:function(Et,bt,Ut){return te(Et,o,bt,Ut)},y:Wm,Y:zm,Z:Hm,"%":B4};function pt(Et,bt){return function(Ut){var St,Jt,yt,fe=[],we=-1,_e=0,Re=Et.length;for(Ut instanceof Date||(Ut=new Date(+Ut));++we<Re;)Et.charCodeAt(we)===37&&(fe.push(Et.slice(_e,we)),(Jt=is[St=Et.charAt(++we)])!=null?St=Et.charAt(++we):Jt=St==="e"?" ":"0",(yt=bt[St])&&(St=yt(Ut,Jt)),fe.push(St),_e=we+1);return fe.push(Et.slice(_e,we)),fe.join("")}}function Lt(Et,bt){return function(Ut){var St,Jt,yt=Lh(1900,void 0,1);if(te(yt,Et,Ut+="",0)!=Ut.length)return null;if("Q"in yt)return new Date(yt.Q);if("s"in yt)return new Date(1e3*yt.s+("L"in yt?yt.L:0));if(bt&&!("Z"in yt)&&(yt.Z=0),"p"in yt&&(yt.H=yt.H%12+12*yt.p),yt.m===void 0&&(yt.m="q"in yt?yt.q:0),"V"in yt){if(yt.V<1||yt.V>53)return null;"w"in yt||(yt.w=1),"Z"in yt?(Jt=(St=Qp(Lh(yt.y,0,1))).getUTCDay(),St=Jt>4||Jt===0?qd.ceil(St):qd(St),St=Bh.offset(St,7*(yt.V-1)),yt.y=St.getUTCFullYear(),yt.m=St.getUTCMonth(),yt.d=St.getUTCDate()+(yt.w+6)%7):(Jt=(St=rs(Lh(yt.y,0,1))).getDay(),St=Jt>4||Jt===0?Vp.ceil(St):Vp(St),St=ul.offset(St,7*(yt.V-1)),yt.y=St.getFullYear(),yt.m=St.getMonth(),yt.d=St.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),Jt="Z"in yt?Qp(Lh(yt.y,0,1)).getUTCDay():rs(Lh(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(Jt+5)%7:yt.w+7*yt.U-(Jt+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,Qp(yt)):rs(yt)}}function te(Et,bt,Ut,St){for(var Jt,yt,fe=0,we=bt.length,_e=Ut.length;fe<we;){if(St>=_e)return-1;if((Jt=bt.charCodeAt(fe++))===37){if(Jt=bt.charAt(fe++),!(yt=At[Jt in is?bt.charAt(fe++):Jt])||(St=yt(Et,Ut,St))<0)return-1}else if(Jt!=Ut.charCodeAt(St++))return-1}return St}return st.x=pt(r,st),st.X=pt(o,st),st.c=pt(e,st),qt.x=pt(r,qt),qt.X=pt(o,qt),qt.c=pt(e,qt),{format:function(Et){var bt=pt(Et+="",st);return bt.toString=function(){return Et},bt},parse:function(Et){var bt=Lt(Et+="",!1);return bt.toString=function(){return Et},bt},utcFormat:function(Et){var bt=pt(Et+="",qt);return bt.toString=function(){return Et},bt},utcParse:function(Et){var bt=Lt(Et+="",!0);return bt.toString=function(){return Et},bt}}}({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"]}),Um=Ih.format,Ih.parse,Ih.utcFormat,Ih.utcParse;var a5=Array.prototype.find;function o5(){return this.firstElementChild}var og=Array.prototype.filter;function s5(){return Array.from(this.children)}function pv(t){return new Array(t.length)}function Xd(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function c5(t){return function(){return t}}function Ii(t,e,r,o,f,p){for(var m,b=0,S=e.length,E=p.length;b<E;++b)(m=e[b])?(m.__data__=p[b],o[b]=m):r[b]=new Xd(t,p[b]);for(;b<S;++b)(m=e[b])&&(f[b]=m)}function dc(t,e,r,o,f,p,m){var b,S,E,O=new Map,j=e.length,F=p.length,U=new Array(j);for(b=0;b<j;++b)(S=e[b])&&(U[b]=E=m.call(S,S.__data__,b,e)+"",O.has(E)?f[b]=S:O.set(E,S));for(b=0;b<F;++b)E=m.call(t,p[b],b,p)+"",(S=O.get(E))?(o[b]=S,S.__data__=p[b],O.delete(E)):r[b]=new Xd(t,p[b]);for(b=0;b<j;++b)(S=e[b])&&O.get(U[b])===S&&(f[b]=S)}function gv(t){return t.__data__}function ya(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function u5(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Xd.prototype={constructor:Xd,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var sg="http://www.w3.org/1999/xhtml";const jh={svg:"http://www.w3.org/2000/svg",xhtml:sg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function dl(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),jh.hasOwnProperty(e)?{space:jh[e],local:t}:t}function yv(t){return function(){this.removeAttribute(t)}}function ma(t){return function(){this.removeAttributeNS(t.space,t.local)}}function l5(t,e){return function(){this.setAttribute(t,e)}}function h5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function f5(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function d5(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 cg(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function p5(t){return function(){this.style.removeProperty(t)}}function g5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function y5(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function pl(t,e){return t.style.getPropertyValue(e)||cg(t).getComputedStyle(t,null).getPropertyValue(e)}function m5(t){return function(){delete this[t]}}function v5(t,e){return function(){this[t]=e}}function _5(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function mv(t){return t.trim().split(/^|\s+/)}function ug(t){return t.classList||new Uh(t)}function Uh(t){this._node=t,this._names=mv(t.getAttribute("class")||"")}function lu(t,e){for(var r=ug(t),o=-1,f=e.length;++o<f;)r.add(e[o])}function lg(t,e){for(var r=ug(t),o=-1,f=e.length;++o<f;)r.remove(e[o])}function b5(t){return function(){lu(this,t)}}function zh(t){return function(){lg(this,t)}}function Zd(t,e){return function(){(e.apply(this,arguments)?lu:lg)(this,t)}}function vv(){this.textContent=""}function _v(t){return function(){this.textContent=t}}function bv(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Qd(){this.innerHTML=""}function Jd(t){return function(){this.innerHTML=t}}function hg(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function xv(){this.nextSibling&&this.parentNode.appendChild(this)}function wv(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kv(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===sg&&e.documentElement.namespaceURI===sg?e.createElement(t):e.createElementNS(r,t)}}function Tv(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function fg(t){var e=dl(t);return(e.local?Tv:kv)(e)}function Ev(){return null}function Sv(){var t=this.parentNode;t&&t.removeChild(this)}function pc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Kd(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function t1(t){return t.trim().split(/^|\s+/).map(function(e){var r="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}function Cv(t){return function(){var e=this.__on;if(e){for(var r,o=0,f=-1,p=e.length;o<p;++o)r=e[o],t.type&&r.type!==t.type||r.name!==t.name?e[++f]=r:this.removeEventListener(r.type,r.listener,r.options);++f?e.length=f:delete this.__on}}}function jn(t,e,r){return function(){var o,f=this.__on,p=function(S){return function(E){S.call(this,E,this.__data__)}}(e);if(f){for(var m=0,b=f.length;m<b;++m)if((o=f[m]).type===t.type&&o.name===t.name)return this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=p,o.options=r),void(o.value=e)}this.addEventListener(t.type,p,r),o={type:t.type,name:t.name,value:e,listener:p,options:r},f?f.push(o):this.__on=[o]}}function Wh(t,e,r){var o=cg(t),f=o.CustomEvent;typeof f=="function"?f=new f(e,r):(f=o.document.createEvent("Event"),r?(f.initEvent(e,r.bubbles,r.cancelable),f.detail=r.detail):f.initEvent(e,!1,!1)),t.dispatchEvent(f)}function nr(t,e){return function(){return Wh(this,t,e)}}function li(t,e){return function(){return Wh(this,t,e.apply(this,arguments))}}Uh.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var gl=[null];function Ir(t,e){this._groups=t,this._parents=e}function Yr(){return new Ir([[document.documentElement]],gl)}Ir.prototype=Yr.prototype={constructor:Ir,select:function(t){typeof t!="function"&&(t=fl(t));for(var e=this._groups,r=e.length,o=new Array(r),f=0;f<r;++f)for(var p,m,b=e[f],S=b.length,E=o[f]=new Array(S),O=0;O<S;++O)(p=b[O])&&(m=t.call(p,p.__data__,O,b))&&("__data__"in p&&(m.__data__=p.__data__),E[O]=m);return new Ir(o,this._parents)},selectAll:function(t){t=typeof t=="function"?function(O){return function(){return ag(O.apply(this,arguments))}}(t):hv(t);for(var e=this._groups,r=e.length,o=[],f=[],p=0;p<r;++p)for(var m,b=e[p],S=b.length,E=0;E<S;++E)(m=b[E])&&(o.push(t.call(m,m.__data__,E,b)),f.push(m));return new Ir(o,f)},selectChild:function(t){return this.select(t==null?o5:function(e){return function(){return a5.call(this.children,e)}}(typeof t=="function"?t:dv(t)))},selectChildren:function(t){return this.selectAll(t==null?s5:function(e){return function(){return og.call(this.children,e)}}(typeof t=="function"?t:dv(t)))},filter:function(t){typeof t!="function"&&(t=fv(t));for(var e=this._groups,r=e.length,o=new Array(r),f=0;f<r;++f)for(var p,m=e[f],b=m.length,S=o[f]=[],E=0;E<b;++E)(p=m[E])&&t.call(p,p.__data__,E,m)&&S.push(p);return new Ir(o,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,gv);var r=e?dc:Ii,o=this._parents,f=this._groups;typeof t!="function"&&(t=c5(t));for(var p=f.length,m=new Array(p),b=new Array(p),S=new Array(p),E=0;E<p;++E){var O=o[E],j=f[E],F=j.length,U=ya(t.call(O,O&&O.__data__,E,o)),ot=U.length,vt=b[E]=new Array(ot),_t=m[E]=new Array(ot),xt=S[E]=new Array(F);r(O,j,vt,_t,xt,U,e);for(var mt,st,qt=0,At=0;qt<ot;++qt)if(mt=vt[qt]){for(qt>=At&&(At=qt+1);!(st=_t[At])&&++At<ot;);mt._next=st||null}}return(m=new Ir(m,o))._enter=b,m._exit=S,m},enter:function(){return new Ir(this._enter||this._groups.map(pv),this._parents)},exit:function(){return new Ir(this._exit||this._groups.map(pv),this._parents)},join:function(t,e,r){var o=this.enter(),f=this,p=this.exit();return typeof t=="function"?(o=t(o))&&(o=o.selection()):o=o.append(t+""),e!=null&&(f=e(f))&&(f=f.selection()),r==null?p.remove():r(p),o&&f?o.merge(f).order():f},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,f=r.length,p=o.length,m=Math.min(f,p),b=new Array(f),S=0;S<m;++S)for(var E,O=r[S],j=o[S],F=O.length,U=b[S]=new Array(F),ot=0;ot<F;++ot)(E=O[ot]||j[ot])&&(U[ot]=E);for(;S<f;++S)b[S]=r[S];return new Ir(b,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o,f=t[e],p=f.length-1,m=f[p];--p>=0;)(o=f[p])&&(m&&4^o.compareDocumentPosition(m)&&m.parentNode.insertBefore(o,m),m=o);return this},sort:function(t){function e(j,F){return j&&F?t(j.__data__,F.__data__):!j-!F}t||(t=u5);for(var r=this._groups,o=r.length,f=new Array(o),p=0;p<o;++p){for(var m,b=r[p],S=b.length,E=f[p]=new Array(S),O=0;O<S;++O)(m=b[O])&&(E[O]=m);E.sort(e)}return new Ir(f,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],f=0,p=o.length;f<p;++f){var m=o[f];if(m)return m}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,o=e.length;r<o;++r)for(var f,p=e[r],m=0,b=p.length;m<b;++m)(f=p[m])&&t.call(f,f.__data__,m,p);return this},attr:function(t,e){var r=dl(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?ma:yv:typeof e=="function"?r.local?d5:f5:r.local?h5:l5)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?p5:typeof e=="function"?y5:g5)(t,e,r==null?"":r)):pl(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?m5:typeof e=="function"?_5:v5)(t,e)):this.node()[t]},classed:function(t,e){var r=mv(t+"");if(arguments.length<2){for(var o=ug(this.node()),f=-1,p=r.length;++f<p;)if(!o.contains(r[f]))return!1;return!0}return this.each((typeof e=="function"?Zd:e?b5:zh)(r,e))},text:function(t){return arguments.length?this.each(t==null?vv:(typeof t=="function"?bv:_v)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?Qd:(typeof t=="function"?hg:Jd)(t)):this.node().innerHTML},raise:function(){return this.each(xv)},lower:function(){return this.each(wv)},append:function(t){var e=typeof t=="function"?t:fg(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:fg(t),o=e==null?Ev:typeof e=="function"?e:fl(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function(){return this.each(Sv)},clone:function(t){return this.select(t?Kd:pc)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var o,f,p=t1(t+""),m=p.length;if(!(arguments.length<2)){for(b=e?jn:Cv,o=0;o<m;++o)this.each(b(p[o],e,r));return this}var b=this.node().__on;if(b){for(var S,E=0,O=b.length;E<O;++E)for(o=0,S=b[E];o<m;++o)if((f=p[o]).type===S.type&&f.name===S.name)return S.value}},dispatch:function(t,e){return this.each((typeof e=="function"?li:nr)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o,f=t[e],p=0,m=f.length;p<m;++p)(o=f[p])&&(yield o)}};const bn=Yr;function Ce(t){return typeof t=="string"?new Ir([[document.querySelector(t)]],[document.documentElement]):new Ir([[t]],gl)}function gc(t){return typeof t=="string"?new Ir([document.querySelectorAll(t)],[document.documentElement]):new Ir([ag(t)],gl)}const Ki=Math.PI,ln=2*Ki,as=1e-6,Mv=ln-as;function yl(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function e1(){return new yl}yl.prototype=e1.prototype={constructor:yl,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,o){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+o)},bezierCurveTo:function(t,e,r,o,f,p){this._+="C"+ +t+","+ +e+","+ +r+","+ +o+","+(this._x1=+f)+","+(this._y1=+p)},arcTo:function(t,e,r,o,f){t=+t,e=+e,r=+r,o=+o,f=+f;var p=this._x1,m=this._y1,b=r-t,S=o-e,E=p-t,O=m-e,j=E*E+O*O;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(j>as)if(Math.abs(O*b-S*E)>as&&f){var F=r-p,U=o-m,ot=b*b+S*S,vt=F*F+U*U,_t=Math.sqrt(ot),xt=Math.sqrt(j),mt=f*Math.tan((Ki-Math.acos((ot+j-vt)/(2*_t*xt)))/2),st=mt/xt,qt=mt/_t;Math.abs(st-1)>as&&(this._+="L"+(t+st*E)+","+(e+st*O)),this._+="A"+f+","+f+",0,0,"+ +(O*F>E*U)+","+(this._x1=t+qt*b)+","+(this._y1=e+qt*S)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,o,f,p){t=+t,e=+e,p=!!p;var m=(r=+r)*Math.cos(o),b=r*Math.sin(o),S=t+m,E=e+b,O=1^p,j=p?o-f:f-o;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+S+","+E:(Math.abs(this._x1-S)>as||Math.abs(this._y1-E)>as)&&(this._+="L"+S+","+E),r&&(j<0&&(j=j%ln+ln),j>Mv?this._+="A"+r+","+r+",0,1,"+O+","+(t-m)+","+(e-b)+"A"+r+","+r+",0,1,"+O+","+(this._x1=S)+","+(this._y1=E):j>as&&(this._+="A"+r+","+r+",0,"+ +(j>=Ki)+","+O+","+(this._x1=t+r*Math.cos(f))+","+(this._y1=e+r*Math.sin(f))))},rect:function(t,e,r,o){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +o+"h"+-r+"Z"},toString:function(){return this._}};const on=e1;function wr(t){return function(){return t}}var mi=Math.abs,qi=Math.atan2,yc=Math.cos,va=Math.max,n1=Math.min,kr=Math.sin,Rs=Math.sqrt,_a=1e-12,ml=Math.PI,vl=ml/2,Hh=2*ml;function Bo(t){return t>1?0:t<-1?ml:Math.acos(t)}function dg(t){return t>=1?vl:t<=-1?-vl:Math.asin(t)}function Av(t){return t.innerRadius}function pg(t){return t.outerRadius}function gg(t){return t.startAngle}function yg(t){return t.endAngle}function r1(t){return t&&t.padAngle}function i1(t,e,r,o,f,p,m,b){var S=r-t,E=o-e,O=m-f,j=b-p,F=j*S-O*E;if(!(F*F<_a))return[t+(F=(O*(e-p)-j*(t-f))/F)*S,e+F*E]}function Ka(t,e,r,o,f,p,m){var b=t-r,S=e-o,E=(m?p:-p)/Rs(b*b+S*S),O=E*S,j=-E*b,F=t+O,U=e+j,ot=r+O,vt=o+j,_t=(F+ot)/2,xt=(U+vt)/2,mt=ot-F,st=vt-U,qt=mt*mt+st*st,At=f-p,pt=F*vt-ot*U,Lt=(st<0?-1:1)*Rs(va(0,At*At*qt-pt*pt)),te=(pt*st-mt*Lt)/qt,Et=(-pt*mt-st*Lt)/qt,bt=(pt*st+mt*Lt)/qt,Ut=(-pt*mt+st*Lt)/qt,St=te-_t,Jt=Et-xt,yt=bt-_t,fe=Ut-xt;return St*St+Jt*Jt>yt*yt+fe*fe&&(te=bt,Et=Ut),{cx:te,cy:Et,x01:-O,y01:-j,x11:te*(f/At-1),y11:Et*(f/At-1)}}function mg(){var t=Av,e=pg,r=wr(0),o=null,f=gg,p=yg,m=r1,b=null;function S(){var E,O,j=+t.apply(this,arguments),F=+e.apply(this,arguments),U=f.apply(this,arguments)-vl,ot=p.apply(this,arguments)-vl,vt=mi(ot-U),_t=ot>U;if(b||(b=E=on()),F<j&&(O=F,F=j,j=O),F>_a)if(vt>Hh-_a)b.moveTo(F*yc(U),F*kr(U)),b.arc(0,0,F,U,ot,!_t),j>_a&&(b.moveTo(j*yc(ot),j*kr(ot)),b.arc(0,0,j,ot,U,_t));else{var xt,mt,st=U,qt=ot,At=U,pt=ot,Lt=vt,te=vt,Et=m.apply(this,arguments)/2,bt=Et>_a&&(o?+o.apply(this,arguments):Rs(j*j+F*F)),Ut=n1(mi(F-j)/2,+r.apply(this,arguments)),St=Ut,Jt=Ut;if(bt>_a){var yt=dg(bt/j*kr(Et)),fe=dg(bt/F*kr(Et));(Lt-=2*yt)>_a?(At+=yt*=_t?1:-1,pt-=yt):(Lt=0,At=pt=(U+ot)/2),(te-=2*fe)>_a?(st+=fe*=_t?1:-1,qt-=fe):(te=0,st=qt=(U+ot)/2)}var we=F*yc(st),_e=F*kr(st),Re=j*yc(pt),We=j*kr(pt);if(Ut>_a){var Ue,fn=F*yc(qt),Ae=F*kr(qt),Xn=j*yc(At),mn=j*kr(At);if(vt<ml&&(Ue=i1(we,_e,Xn,mn,fn,Ae,Re,We))){var yn=we-Ue[0],hn=_e-Ue[1],sn=fn-Ue[0],tr=Ae-Ue[1],zn=1/kr(Bo((yn*sn+hn*tr)/(Rs(yn*yn+hn*hn)*Rs(sn*sn+tr*tr)))/2),Pn=Rs(Ue[0]*Ue[0]+Ue[1]*Ue[1]);St=n1(Ut,(j-Pn)/(zn-1)),Jt=n1(Ut,(F-Pn)/(zn+1))}}te>_a?Jt>_a?(xt=Ka(Xn,mn,we,_e,F,Jt,_t),mt=Ka(fn,Ae,Re,We,F,Jt,_t),b.moveTo(xt.cx+xt.x01,xt.cy+xt.y01),Jt<Ut?b.arc(xt.cx,xt.cy,Jt,qi(xt.y01,xt.x01),qi(mt.y01,mt.x01),!_t):(b.arc(xt.cx,xt.cy,Jt,qi(xt.y01,xt.x01),qi(xt.y11,xt.x11),!_t),b.arc(0,0,F,qi(xt.cy+xt.y11,xt.cx+xt.x11),qi(mt.cy+mt.y11,mt.cx+mt.x11),!_t),b.arc(mt.cx,mt.cy,Jt,qi(mt.y11,mt.x11),qi(mt.y01,mt.x01),!_t))):(b.moveTo(we,_e),b.arc(0,0,F,st,qt,!_t)):b.moveTo(we,_e),j>_a&&Lt>_a?St>_a?(xt=Ka(Re,We,fn,Ae,j,-St,_t),mt=Ka(we,_e,Xn,mn,j,-St,_t),b.lineTo(xt.cx+xt.x01,xt.cy+xt.y01),St<Ut?b.arc(xt.cx,xt.cy,St,qi(xt.y01,xt.x01),qi(mt.y01,mt.x01),!_t):(b.arc(xt.cx,xt.cy,St,qi(xt.y01,xt.x01),qi(xt.y11,xt.x11),!_t),b.arc(0,0,j,qi(xt.cy+xt.y11,xt.cx+xt.x11),qi(mt.cy+mt.y11,mt.cx+mt.x11),_t),b.arc(mt.cx,mt.cy,St,qi(mt.y11,mt.x11),qi(mt.y01,mt.x01),!_t))):b.arc(0,0,j,pt,At,_t):b.lineTo(Re,We)}else b.moveTo(0,0);if(b.closePath(),E)return b=null,E+""||null}return S.centroid=function(){var E=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,O=(+f.apply(this,arguments)+ +p.apply(this,arguments))/2-ml/2;return[yc(O)*E,kr(O)*E]},S.innerRadius=function(E){return arguments.length?(t=typeof E=="function"?E:wr(+E),S):t},S.outerRadius=function(E){return arguments.length?(e=typeof E=="function"?E:wr(+E),S):e},S.cornerRadius=function(E){return arguments.length?(r=typeof E=="function"?E:wr(+E),S):r},S.padRadius=function(E){return arguments.length?(o=E==null?null:typeof E=="function"?E:wr(+E),S):o},S.startAngle=function(E){return arguments.length?(f=typeof E=="function"?E:wr(+E),S):f},S.endAngle=function(E){return arguments.length?(p=typeof E=="function"?E:wr(+E),S):p},S.padAngle=function(E){return arguments.length?(m=typeof E=="function"?E:wr(+E),S):m},S.context=function(E){return arguments.length?(b=E==null?null:E,S):b},S}function Dv(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Nv(t){this._context=t}function ho(t){return new Nv(t)}function x5(t){return t[0]}function a1(t){return t[1]}function fo(t,e){var r=wr(!0),o=null,f=ho,p=null;function m(b){var S,E,O,j=(b=Dv(b)).length,F=!1;for(o==null&&(p=f(O=on())),S=0;S<=j;++S)!(S<j&&r(E=b[S],S,b))===F&&((F=!F)?p.lineStart():p.lineEnd()),F&&p.point(+t(E,S,b),+e(E,S,b));if(O)return p=null,O+""||null}return t=typeof t=="function"?t:t===void 0?x5:wr(t),e=typeof e=="function"?e:e===void 0?a1:wr(e),m.x=function(b){return arguments.length?(t=typeof b=="function"?b:wr(+b),m):t},m.y=function(b){return arguments.length?(e=typeof b=="function"?b:wr(+b),m):e},m.defined=function(b){return arguments.length?(r=typeof b=="function"?b:wr(!!b),m):r},m.curve=function(b){return arguments.length?(f=b,o!=null&&(p=f(o)),m):f},m.context=function(b){return arguments.length?(b==null?o=p=null:p=f(o=b),m):o},m}function o1(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function _l(t){return t}function bl(){}function hu(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function $h(t){this._context=t}function jr(t){return new $h(t)}function ba(t){this._context=t}function ai(t){this._context=t}function Ia(t){this._context=t}function mc(t){return t<0?-1:1}function vg(t,e,r){var o=t._x1-t._x0,f=e-t._x1,p=(t._y1-t._y0)/(o||f<0&&-0),m=(r-t._y1)/(f||o<0&&-0),b=(p*f+m*o)/(o+f);return(mc(p)+mc(m))*Math.min(Math.abs(p),Math.abs(m),.5*Math.abs(b))||0}function _g(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function vc(t,e,r){var o=t._x0,f=t._y0,p=t._x1,m=t._y1,b=(p-o)/3;t._context.bezierCurveTo(o+b,f+b*e,p-b,m-b*r,p,m)}function Lo(t){this._context=t}function os(t){this._context=new xl(t)}function xl(t){this._context=t}function qh(t){this._context=t}function Vh(t){var e,r,o=t.length-1,f=new Array(o),p=new Array(o),m=new Array(o);for(f[0]=0,p[0]=2,m[0]=t[0]+2*t[1],e=1;e<o-1;++e)f[e]=1,p[e]=4,m[e]=4*t[e]+2*t[e+1];for(f[o-1]=2,p[o-1]=7,m[o-1]=8*t[o-1]+t[o],e=1;e<o;++e)r=f[e]/p[e-1],p[e]-=r,m[e]-=r*m[e-1];for(f[o-1]=m[o-1]/p[o-1],e=o-2;e>=0;--e)f[e]=(m[e]-f[e+1])/p[e];for(p[o-1]=(t[o]+f[o-1])/2,e=0;e<o-1;++e)p[e]=2*t[e+1]-f[e+1];return[f,p]}function fu(t,e){this._context=t,this._t=e}Nv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},$h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:hu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:hu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ba.prototype={areaStart:bl,areaEnd:bl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:hu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ai.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,o):this._context.moveTo(r,o);break;case 3:this._point=4;default:hu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ia.prototype={areaStart:bl,areaEnd:bl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Lo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:vc(this,this._t0,_g(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,vc(this,_g(this,r=vg(this,t,e)),r);break;default:vc(this,this._t0,r=vg(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(os.prototype=Object.create(Lo.prototype)).point=function(t,e){Lo.prototype.point.call(this,e,t)},xl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,o,f,p){this._context.bezierCurveTo(e,t,o,r,p,f)}},qh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var o=Vh(t),f=Vh(e),p=0,m=1;m<r;++p,++m)this._context.bezierCurveTo(o[0][p],f[0][p],o[1][p],f[1][p],t[m],e[m]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},fu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var wl=new Date,kl=new Date;function po(t,e,r,o){function f(p){return t(p=arguments.length===0?new Date:new Date(+p)),p}return f.floor=function(p){return t(p=new Date(+p)),p},f.ceil=function(p){return t(p=new Date(p-1)),e(p,1),t(p),p},f.round=function(p){var m=f(p),b=f.ceil(p);return p-m<b-p?m:b},f.offset=function(p,m){return e(p=new Date(+p),m==null?1:Math.floor(m)),p},f.range=function(p,m,b){var S,E=[];if(p=f.ceil(p),b=b==null?1:Math.floor(b),!(p<m&&b>0))return E;do E.push(S=new Date(+p)),e(p,b),t(p);while(S<p&&p<m);return E},f.filter=function(p){return po(function(m){if(m>=m)for(;t(m),!p(m);)m.setTime(m-1)},function(m,b){if(m>=m)if(b<0)for(;++b<=0;)for(;e(m,-1),!p(m););else for(;--b>=0;)for(;e(m,1),!p(m););})},r&&(f.count=function(p,m){return wl.setTime(+p),kl.setTime(+m),t(wl),t(kl),Math.floor(r(wl,kl))},f.every=function(p){return p=Math.floor(p),isFinite(p)&&p>0?p>1?f.filter(o?function(m){return o(m)%p==0}:function(m){return f.count(0,m)%p==0}):f:null}),f}const Gh=864e5,s1=6048e5;function Fs(t){return po(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+7*r)},function(e,r){return(r-e)/s1})}var bg=Fs(0),c1=Fs(1);Fs(2),Fs(3);var Tl=Fs(4);Fs(5),Fs(6);var xa=po(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Gh},function(t){return t.getUTCDate()-1});const la=xa;function vi(t){return po(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+7*r)},function(e,r){return(r-e-6e4*(r.getTimezoneOffset()-e.getTimezoneOffset()))/s1})}var Xh=vi(0),Io=vi(1);vi(2),vi(3);var du=vi(4);vi(5),vi(6);var Ov=po(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Gh,t=>t.getDate()-1);const xg=Ov;var wg=po(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});wg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?po(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)}):null};const El=wg;var Bv=po(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Bv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?po(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};const Zh=Bv;function wa(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 kg(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 Sl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Qh,to,u1={"-":"",_:" ",0:"0"},hi=/^\s*\d+/,Lv=/^%/,w5=/[\\^$*+?|[\]().{}]/g;function Tr(t,e,r){var o=t<0?"-":"",f=(o?-t:t)+"",p=f.length;return o+(p<r?new Array(r-p+1).join(e)+f:f)}function Iv(t){return t.replace(w5,"\\$&")}function Jh(t){return new RegExp("^(?:"+t.map(Iv).join("|")+")","i")}function Kh(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function k5(t,e,r){var o=hi.exec(e.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}function Rv(t,e,r){var o=hi.exec(e.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}function T5(t,e,r){var o=hi.exec(e.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}function Cl(t,e,r){var o=hi.exec(e.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}function Tg(t,e,r){var o=hi.exec(e.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}function l1(t,e,r){var o=hi.exec(e.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}function h1(t,e,r){var o=hi.exec(e.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}function Fv(t,e,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}function Pv(t,e,r){var o=hi.exec(e.slice(r,r+1));return o?(t.q=3*o[0]-3,r+o[0].length):-1}function Yv(t,e,r){var o=hi.exec(e.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}function Eg(t,e,r){var o=hi.exec(e.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}function jv(t,e,r){var o=hi.exec(e.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}function Sg(t,e,r){var o=hi.exec(e.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}function E5(t,e,r){var o=hi.exec(e.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}function Uv(t,e,r){var o=hi.exec(e.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}function f1(t,e,r){var o=hi.exec(e.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}function d1(t,e,r){var o=hi.exec(e.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}function zv(t,e,r){var o=Lv.exec(e.slice(r,r+1));return o?r+o[0].length:-1}function Wv(t,e,r){var o=hi.exec(e.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}function Cg(t,e,r){var o=hi.exec(e.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}function p1(t,e){return Tr(t.getDate(),e,2)}function Hv(t,e){return Tr(t.getHours(),e,2)}function $v(t,e){return Tr(t.getHours()%12||12,e,2)}function S5(t,e){return Tr(1+xg.count(El(t),t),e,3)}function qv(t,e){return Tr(t.getMilliseconds(),e,3)}function Mg(t,e){return qv(t,e)+"000"}function Vv(t,e){return Tr(t.getMonth()+1,e,2)}function tf(t,e){return Tr(t.getMinutes(),e,2)}function g1(t,e){return Tr(t.getSeconds(),e,2)}function y1(t){var e=t.getDay();return e===0?7:e}function C5(t,e){return Tr(Xh.count(El(t)-1,t),e,2)}function m1(t){var e=t.getDay();return e>=4||e===0?du(t):du.ceil(t)}function v1(t,e){return t=m1(t),Tr(du.count(El(t),t)+(El(t).getDay()===4),e,2)}function _1(t){return t.getDay()}function Ag(t,e){return Tr(Io.count(El(t)-1,t),e,2)}function Ml(t,e){return Tr(t.getFullYear()%100,e,2)}function M5(t,e){return Tr((t=m1(t)).getFullYear()%100,e,2)}function A5(t,e){return Tr(t.getFullYear()%1e4,e,4)}function D5(t,e){var r=t.getDay();return Tr((t=r>=4||r===0?du(t):du.ceil(t)).getFullYear()%1e4,e,4)}function Gv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Tr(e/60|0,"0",2)+Tr(e%60,"0",2)}function b1(t,e){return Tr(t.getUTCDate(),e,2)}function N5(t,e){return Tr(t.getUTCHours(),e,2)}function x1(t,e){return Tr(t.getUTCHours()%12||12,e,2)}function Xv(t,e){return Tr(1+la.count(Zh(t),t),e,3)}function Dg(t,e){return Tr(t.getUTCMilliseconds(),e,3)}function w1(t,e){return Dg(t,e)+"000"}function Zv(t,e){return Tr(t.getUTCMonth()+1,e,2)}function Qv(t,e){return Tr(t.getUTCMinutes(),e,2)}function Jv(t,e){return Tr(t.getUTCSeconds(),e,2)}function O5(t){var e=t.getUTCDay();return e===0?7:e}function Kv(t,e){return Tr(bg.count(Zh(t)-1,t),e,2)}function t3(t){var e=t.getUTCDay();return e>=4||e===0?Tl(t):Tl.ceil(t)}function e3(t,e){return t=t3(t),Tr(Tl.count(Zh(t),t)+(Zh(t).getUTCDay()===4),e,2)}function n3(t){return t.getUTCDay()}function r3(t,e){return Tr(c1.count(Zh(t)-1,t),e,2)}function B5(t,e){return Tr(t.getUTCFullYear()%100,e,2)}function L5(t,e){return Tr((t=t3(t)).getUTCFullYear()%100,e,2)}function ef(t,e){return Tr(t.getUTCFullYear()%1e4,e,4)}function i3(t,e){var r=t.getUTCDay();return Tr((t=r>=4||r===0?Tl(t):Tl.ceil(t)).getUTCFullYear()%1e4,e,4)}function a3(){return"+0000"}function k1(){return"%"}function T1(t){return+t}function E1(t){return Math.floor(+t/1e3)}Qh=function(t){var e=t.dateTime,r=t.date,o=t.time,f=t.periods,p=t.days,m=t.shortDays,b=t.months,S=t.shortMonths,E=Jh(f),O=Kh(f),j=Jh(p),F=Kh(p),U=Jh(m),ot=Kh(m),vt=Jh(b),_t=Kh(b),xt=Jh(S),mt=Kh(S),st={a:function(Et){return m[Et.getDay()]},A:function(Et){return p[Et.getDay()]},b:function(Et){return S[Et.getMonth()]},B:function(Et){return b[Et.getMonth()]},c:null,d:p1,e:p1,f:Mg,g:M5,G:D5,H:Hv,I:$v,j:S5,L:qv,m:Vv,M:tf,p:function(Et){return f[+(Et.getHours()>=12)]},q:function(Et){return 1+~~(Et.getMonth()/3)},Q:T1,s:E1,S:g1,u:y1,U:C5,V:v1,w:_1,W:Ag,x:null,X:null,y:Ml,Y:A5,Z:Gv,"%":k1},qt={a:function(Et){return m[Et.getUTCDay()]},A:function(Et){return p[Et.getUTCDay()]},b:function(Et){return S[Et.getUTCMonth()]},B:function(Et){return b[Et.getUTCMonth()]},c:null,d:b1,e:b1,f:w1,g:L5,G:i3,H:N5,I:x1,j:Xv,L:Dg,m:Zv,M:Qv,p:function(Et){return f[+(Et.getUTCHours()>=12)]},q:function(Et){return 1+~~(Et.getUTCMonth()/3)},Q:T1,s:E1,S:Jv,u:O5,U:Kv,V:e3,w:n3,W:r3,x:null,X:null,y:B5,Y:ef,Z:a3,"%":k1},At={a:function(Et,bt,Ut){var St=U.exec(bt.slice(Ut));return St?(Et.w=ot.get(St[0].toLowerCase()),Ut+St[0].length):-1},A:function(Et,bt,Ut){var St=j.exec(bt.slice(Ut));return St?(Et.w=F.get(St[0].toLowerCase()),Ut+St[0].length):-1},b:function(Et,bt,Ut){var St=xt.exec(bt.slice(Ut));return St?(Et.m=mt.get(St[0].toLowerCase()),Ut+St[0].length):-1},B:function(Et,bt,Ut){var St=vt.exec(bt.slice(Ut));return St?(Et.m=_t.get(St[0].toLowerCase()),Ut+St[0].length):-1},c:function(Et,bt,Ut){return te(Et,e,bt,Ut)},d:Eg,e:Eg,f:d1,g:h1,G:l1,H:Sg,I:Sg,j:jv,L:f1,m:Yv,M:E5,p:function(Et,bt,Ut){var St=E.exec(bt.slice(Ut));return St?(Et.p=O.get(St[0].toLowerCase()),Ut+St[0].length):-1},q:Pv,Q:Wv,s:Cg,S:Uv,u:Rv,U:T5,V:Cl,w:k5,W:Tg,x:function(Et,bt,Ut){return te(Et,r,bt,Ut)},X:function(Et,bt,Ut){return te(Et,o,bt,Ut)},y:h1,Y:l1,Z:Fv,"%":zv};function pt(Et,bt){return function(Ut){var St,Jt,yt,fe=[],we=-1,_e=0,Re=Et.length;for(Ut instanceof Date||(Ut=new Date(+Ut));++we<Re;)Et.charCodeAt(we)===37&&(fe.push(Et.slice(_e,we)),(Jt=u1[St=Et.charAt(++we)])!=null?St=Et.charAt(++we):Jt=St==="e"?" ":"0",(yt=bt[St])&&(St=yt(Ut,Jt)),fe.push(St),_e=we+1);return fe.push(Et.slice(_e,we)),fe.join("")}}function Lt(Et,bt){return function(Ut){var St,Jt,yt=Sl(1900,void 0,1);if(te(yt,Et,Ut+="",0)!=Ut.length)return null;if("Q"in yt)return new Date(yt.Q);if("s"in yt)return new Date(1e3*yt.s+("L"in yt?yt.L:0));if(bt&&!("Z"in yt)&&(yt.Z=0),"p"in yt&&(yt.H=yt.H%12+12*yt.p),yt.m===void 0&&(yt.m="q"in yt?yt.q:0),"V"in yt){if(yt.V<1||yt.V>53)return null;"w"in yt||(yt.w=1),"Z"in yt?(Jt=(St=kg(Sl(yt.y,0,1))).getUTCDay(),St=Jt>4||Jt===0?c1.ceil(St):c1(St),St=la.offset(St,7*(yt.V-1)),yt.y=St.getUTCFullYear(),yt.m=St.getUTCMonth(),yt.d=St.getUTCDate()+(yt.w+6)%7):(Jt=(St=wa(Sl(yt.y,0,1))).getDay(),St=Jt>4||Jt===0?Io.ceil(St):Io(St),St=xg.offset(St,7*(yt.V-1)),yt.y=St.getFullYear(),yt.m=St.getMonth(),yt.d=St.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),Jt="Z"in yt?kg(Sl(yt.y,0,1)).getUTCDay():wa(Sl(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(Jt+5)%7:yt.w+7*yt.U-(Jt+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,kg(yt)):wa(yt)}}function te(Et,bt,Ut,St){for(var Jt,yt,fe=0,we=bt.length,_e=Ut.length;fe<we;){if(St>=_e)return-1;if((Jt=bt.charCodeAt(fe++))===37){if(Jt=bt.charAt(fe++),!(yt=At[Jt in u1?bt.charAt(fe++):Jt])||(St=yt(Et,Ut,St))<0)return-1}else if(Jt!=Ut.charCodeAt(St++))return-1}return St}return st.x=pt(r,st),st.X=pt(o,st),st.c=pt(e,st),qt.x=pt(r,qt),qt.X=pt(o,qt),qt.c=pt(e,qt),{format:function(Et){var bt=pt(Et+="",st);return bt.toString=function(){return Et},bt},parse:function(Et){var bt=Lt(Et+="",!1);return bt.toString=function(){return Et},bt},utcFormat:function(Et){var bt=pt(Et+="",qt);return bt.toString=function(){return Et},bt},utcParse:function(Et){var bt=Lt(Et+="",!0);return bt.toString=function(){return Et},bt}}}({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"]}),to=Qh.format,Qh.parse,Qh.utcFormat,Qh.utcParse;var Ng={value:()=>{}};function Ps(){for(var t,e=0,r=arguments.length,o={};e<r;++e){if(!(t=arguments[e]+"")||t in o||/[\s.]/.test(t))throw new Error("illegal type: "+t);o[t]=[]}return new S1(o)}function S1(t){this._=t}function I5(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",f=r.indexOf(".");if(f>=0&&(o=r.slice(f+1),r=r.slice(0,f)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}function o3(t,e){for(var r,o=0,f=t.length;o<f;++o)if((r=t[o]).name===e)return r.value}function s3(t,e,r){for(var o=0,f=t.length;o<f;++o)if(t[o].name===e){t[o]=Ng,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}S1.prototype=Ps.prototype={constructor:S1,on:function(t,e){var r,o=this._,f=I5(t+"",o),p=-1,m=f.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++p<m;)if(r=(t=f[p]).type)o[r]=s3(o[r],t.name,e);else if(e==null)for(r in o)o[r]=s3(o[r],t.name,null);return this}for(;++p<m;)if((r=(t=f[p]).type)&&(r=o3(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new S1(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,o,f=new Array(r),p=0;p<r;++p)f[p]=arguments[p+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(p=0,r=(o=this._[t]).length;p<r;++p)o[p].value.apply(e,f)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],f=0,p=o.length;f<p;++f)o[f].value.apply(e,r)}};const c3=Ps;var Ys,_c,ss=0,bc=0,nf=0,pu=0,xc=0,rf=0,Ra=typeof performance=="object"&&performance.now?performance:Date,Ro=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function af(){return xc||(Ro(Og),xc=Ra.now()+rf)}function Og(){xc=0}function wc(){this._call=this._time=this._next=null}function of(t,e,r){var o=new wc;return o.restart(t,e,r),o}function sf(){xc=(pu=Ra.now())+rf,ss=bc=0;try{(function(){af(),++ss;for(var t,e=Ys;e;)(t=xc-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ss})()}finally{ss=0,function(){for(var t,e,r=Ys,o=1/0;r;)r._call?(o>r._time&&(o=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Ys=e);_c=t,cf(o)}(),xc=0}}function Al(){var t=Ra.now(),e=t-pu;e>1e3&&(rf-=e,pu=t)}function cf(t){ss||(bc&&(bc=clearTimeout(bc)),t-xc>24?(t<1/0&&(bc=setTimeout(sf,t-Ra.now()-rf)),nf&&(nf=clearInterval(nf))):(nf||(pu=Ra.now(),nf=setInterval(Al,1e3)),ss=1,Ro(sf)))}function C1(t,e,r){var o=new wc;return e=e==null?0:+e,o.restart(f=>{o.stop(),t(f+e)},e,r),o}wc.prototype=of.prototype={constructor:wc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?af():+r)+(e==null?0:+e),this._next||_c===this||(_c?_c._next=this:Ys=this,_c=this),this._call=t,this._time=r,cf()},stop:function(){this._call&&(this._call=null,this._time=1/0,cf())}};var uf=c3("start","end","cancel","interrupt"),Fo=[];function cs(t,e,r,o,f,p){var m=t.__transition;if(m){if(r in m)return}else t.__transition={};(function(b,S,E){var O,j=b.__transition;function F(vt){var _t,xt,mt,st;if(E.state!==1)return ot();for(_t in j)if((st=j[_t]).name===E.name){if(st.state===3)return C1(F);st.state===4?(st.state=6,st.timer.stop(),st.on.call("interrupt",b,b.__data__,st.index,st.group),delete j[_t]):+_t<S&&(st.state=6,st.timer.stop(),st.on.call("cancel",b,b.__data__,st.index,st.group),delete j[_t])}if(C1(function(){E.state===3&&(E.state=4,E.timer.restart(U,E.delay,E.time),U(vt))}),E.state=2,E.on.call("start",b,b.__data__,E.index,E.group),E.state===2){for(E.state=3,O=new Array(mt=E.tween.length),_t=0,xt=-1;_t<mt;++_t)(st=E.tween[_t].value.call(b,b.__data__,E.index,E.group))&&(O[++xt]=st);O.length=xt+1}}function U(vt){for(var _t=vt<E.duration?E.ease.call(null,vt/E.duration):(E.timer.restart(ot),E.state=5,1),xt=-1,mt=O.length;++xt<mt;)O[xt].call(b,_t);E.state===5&&(E.on.call("end",b,b.__data__,E.index,E.group),ot())}function ot(){for(var vt in E.state=6,E.timer.stop(),delete j[S],j)return;delete b.__transition}j[S]=E,E.timer=of(function(vt){E.state=1,E.timer.restart(F,E.delay,E.time),E.delay<=vt&&F(vt-E.delay)},0,E.time)})(t,r,{name:e,index:o,group:f,on:uf,tween:Fo,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:0})}function M1(t,e){var r=Po(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function us(t,e){var r=Po(t,e);if(r.state>3)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 js(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var A1,u3=180/Math.PI,Bg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lg(t,e,r,o,f,p){var m,b,S;return(m=Math.sqrt(t*t+e*e))&&(t/=m,e/=m),(S=t*r+e*o)&&(r-=t*S,o-=e*S),(b=Math.sqrt(r*r+o*o))&&(r/=b,o/=b,S/=b),t*o<e*r&&(t=-t,e=-e,S=-S,m=-m),{translateX:f,translateY:p,rotate:Math.atan2(e,t)*u3,skewX:Math.atan(S)*u3,scaleX:m,scaleY:b}}function Ig(t,e,r,o){function f(p){return p.length?p.pop()+" ":""}return function(p,m){var b=[],S=[];return p=t(p),m=t(m),function(E,O,j,F,U,ot){if(E!==j||O!==F){var vt=U.push("translate(",null,e,null,r);ot.push({i:vt-4,x:js(E,j)},{i:vt-2,x:js(O,F)})}else(j||F)&&U.push("translate("+j+e+F+r)}(p.translateX,p.translateY,m.translateX,m.translateY,b,S),function(E,O,j,F){E!==O?(E-O>180?O+=360:O-E>180&&(E+=360),F.push({i:j.push(f(j)+"rotate(",null,o)-2,x:js(E,O)})):O&&j.push(f(j)+"rotate("+O+o)}(p.rotate,m.rotate,b,S),function(E,O,j,F){E!==O?F.push({i:j.push(f(j)+"skewX(",null,o)-2,x:js(E,O)}):O&&j.push(f(j)+"skewX("+O+o)}(p.skewX,m.skewX,b,S),function(E,O,j,F,U,ot){if(E!==j||O!==F){var vt=U.push(f(U)+"scale(",null,",",null,")");ot.push({i:vt-4,x:js(E,j)},{i:vt-2,x:js(O,F)})}else j===1&&F===1||U.push(f(U)+"scale("+j+","+F+")")}(p.scaleX,p.scaleY,m.scaleX,m.scaleY,b,S),p=m=null,function(E){for(var O,j=-1,F=S.length;++j<F;)b[(O=S[j]).i]=O.x(E);return b.join("")}}}var l3=Ig(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Bg:Lg(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Rg=Ig(function(t){return t==null?Bg:(A1||(A1=document.createElementNS("http://www.w3.org/2000/svg","g")),A1.setAttribute("transform",t),(t=A1.transform.baseVal.consolidate())?Lg((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Bg)},", ",")",")");function h3(t,e){var r,o;return function(){var f=us(this,t),p=f.tween;if(p!==r){for(var m=0,b=(o=r=p).length;m<b;++m)if(o[m].name===e){(o=o.slice()).splice(m,1);break}}f.tween=o}}function f3(t,e,r){var o,f;if(typeof r!="function")throw new Error;return function(){var p=us(this,t),m=p.tween;if(m!==o){f=(o=m).slice();for(var b={name:e,value:r},S=0,E=f.length;S<E;++S)if(f[S].name===e){f[S]=b;break}S===E&&f.push(b)}p.tween=f}}function gu(t,e,r){var o=t._id;return t.each(function(){var f=us(this,o);(f.value||(f.value={}))[e]=r.apply(this,arguments)}),function(f){return Po(f,o).value[e]}}const Dl=function t(e){var r=function(f){return(f=+f)==1?Sh:function(p,m){return m-p?function(b,S,E){return b=Math.pow(b,E),S=Math.pow(S,E)-b,E=1/E,function(O){return Math.pow(b+O*S,E)}}(p,m,f):wp(isNaN(p)?m:p)}}(e);function o(f,p){var m=r((f=Lr(f)).r,(p=Lr(p)).r),b=r(f.g,p.g),S=r(f.b,p.b),E=Sh(f.opacity,p.opacity);return function(O){return f.r=m(O),f.g=b(O),f.b=S(O),f.opacity=E(O),f+""}}return o.gamma=t,o}(1);var lf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nl=new RegExp(lf.source,"g");function R5(t,e){var r,o,f,p=lf.lastIndex=Nl.lastIndex=0,m=-1,b=[],S=[];for(t+="",e+="";(r=lf.exec(t))&&(o=Nl.exec(e));)(f=o.index)>p&&(f=e.slice(p,f),b[m]?b[m]+=f:b[++m]=f),(r=r[0])===(o=o[0])?b[m]?b[m]+=o:b[++m]=o:(b[++m]=null,S.push({i:m,x:js(r,o)})),p=Nl.lastIndex;return p<e.length&&(f=e.slice(p),b[m]?b[m]+=f:b[++m]=f),b.length<2?S[0]?function(E){return function(O){return E(O)+""}}(S[0].x):function(E){return function(){return E}}(e):(e=S.length,function(E){for(var O,j=0;j<e;++j)b[(O=S[j]).i]=O.x(E);return b.join("")})}function Fg(t,e){var r;return(typeof e=="number"?js:e instanceof wn?Dl:(r=wn(e))?(e=r,Dl):R5)(t,e)}function d3(t){return function(){this.removeAttribute(t)}}function p3(t){return function(){this.removeAttributeNS(t.space,t.local)}}function g3(t,e,r){var o,f,p=r+"";return function(){var m=this.getAttribute(t);return m===p?null:m===o?f:f=e(o=m,r)}}function F5(t,e,r){var o,f,p=r+"";return function(){var m=this.getAttributeNS(t.space,t.local);return m===p?null:m===o?f:f=e(o=m,r)}}function P5(t,e,r){var o,f,p;return function(){var m,b,S=r(this);if(S!=null)return(m=this.getAttribute(t))===(b=S+"")?null:m===o&&b===f?p:(f=b,p=e(o=m,S));this.removeAttribute(t)}}function hf(t,e,r){var o,f,p;return function(){var m,b,S=r(this);if(S!=null)return(m=this.getAttributeNS(t.space,t.local))===(b=S+"")?null:m===o&&b===f?p:(f=b,p=e(o=m,S));this.removeAttributeNS(t.space,t.local)}}function Pg(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function Yg(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function D1(t,e){var r,o;function f(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&Yg(t,p)),r}return f._value=e,f}function jg(t,e){var r,o;function f(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&Pg(t,p)),r}return f._value=e,f}function Ug(t,e){return function(){M1(this,t).delay=+e.apply(this,arguments)}}function zg(t,e){return e=+e,function(){M1(this,t).delay=e}}function Y5(t,e){return function(){us(this,t).duration=+e.apply(this,arguments)}}function y3(t,e){return e=+e,function(){us(this,t).duration=e}}function j5(t,e){if(typeof e!="function")throw new Error;return function(){us(this,t).ease=e}}function U5(t,e,r){var o,f,p=function(m){return(m+"").trim().split(/^|\s+/).every(function(b){var S=b.indexOf(".");return S>=0&&(b=b.slice(0,S)),!b||b==="start"})}(e)?M1:us;return function(){var m=p(this,t),b=m.on;b!==o&&(f=(o=b).copy()).on(e,r),m.on=f}}var m3=bn.prototype.constructor;function Yo(t){return function(){this.style.removeProperty(t)}}function Wg(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function Hg(t,e,r){var o,f;function p(){var m=e.apply(this,arguments);return m!==f&&(o=(f=m)&&Wg(t,m,r)),o}return p._value=e,p}function v3(t){return function(e){this.textContent=t.call(this,e)}}function N1(t){var e,r;function o(){var f=t.apply(this,arguments);return f!==r&&(e=(r=f)&&v3(f)),e}return o._value=t,o}var _3=0;function Us(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function $g(){return++_3}var eo=bn.prototype;Us.prototype={constructor:Us,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=fl(t));for(var o=this._groups,f=o.length,p=new Array(f),m=0;m<f;++m)for(var b,S,E=o[m],O=E.length,j=p[m]=new Array(O),F=0;F<O;++F)(b=E[F])&&(S=t.call(b,b.__data__,F,E))&&("__data__"in b&&(S.__data__=b.__data__),j[F]=S,cs(j[F],e,r,F,j,Po(b,r)));return new Us(p,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=hv(t));for(var o=this._groups,f=o.length,p=[],m=[],b=0;b<f;++b)for(var S,E=o[b],O=E.length,j=0;j<O;++j)if(S=E[j]){for(var F,U=t.call(S,S.__data__,j,E),ot=Po(S,r),vt=0,_t=U.length;vt<_t;++vt)(F=U[vt])&&cs(F,e,r,vt,U,ot);p.push(U),m.push(S)}return new Us(p,m,e,r)},selectChild:eo.selectChild,selectChildren:eo.selectChildren,filter:function(t){typeof t!="function"&&(t=fv(t));for(var e=this._groups,r=e.length,o=new Array(r),f=0;f<r;++f)for(var p,m=e[f],b=m.length,S=o[f]=[],E=0;E<b;++E)(p=m[E])&&t.call(p,p.__data__,E,m)&&S.push(p);return new Us(o,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,o=e.length,f=r.length,p=Math.min(o,f),m=new Array(o),b=0;b<p;++b)for(var S,E=e[b],O=r[b],j=E.length,F=m[b]=new Array(j),U=0;U<j;++U)(S=E[U]||O[U])&&(F[U]=S);for(;b<o;++b)m[b]=e[b];return new Us(m,this._parents,this._name,this._id)},selection:function(){return new m3(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=$g(),o=this._groups,f=o.length,p=0;p<f;++p)for(var m,b=o[p],S=b.length,E=0;E<S;++E)if(m=b[E]){var O=Po(m,e);cs(m,t,r,E,b,{time:O.time+O.delay+O.duration,delay:0,duration:O.duration,ease:O.ease})}return new Us(o,this._parents,t,r)},call:eo.call,nodes:eo.nodes,node:eo.node,size:eo.size,empty:eo.empty,each:eo.each,on:function(t,e){var r=this._id;return arguments.length<2?Po(this.node(),r).on.on(t):this.each(U5(r,t,e))},attr:function(t,e){var r=dl(t),o=r==="transform"?Rg:Fg;return this.attrTween(t,typeof e=="function"?(r.local?hf:P5)(r,o,gu(this,"attr."+t,e)):e==null?(r.local?p3:d3)(r):(r.local?F5:g3)(r,o,e))},attrTween:function(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 o=dl(t);return this.tween(r,(o.local?D1:jg)(o,e))},style:function(t,e,r){var o=(t+="")=="transform"?l3:Fg;return e==null?this.styleTween(t,function(f,p){var m,b,S;return function(){var E=pl(this,f),O=(this.style.removeProperty(f),pl(this,f));return E===O?null:E===m&&O===b?S:S=p(m=E,b=O)}}(t,o)).on("end.style."+t,Yo(t)):typeof e=="function"?this.styleTween(t,function(f,p,m){var b,S,E;return function(){var O=pl(this,f),j=m(this),F=j+"";return j==null&&(this.style.removeProperty(f),F=j=pl(this,f)),O===F?null:O===b&&F===S?E:(S=F,E=p(b=O,j))}}(t,o,gu(this,"style."+t,e))).each(function(f,p){var m,b,S,E,O="style."+p,j="end."+O;return function(){var F=us(this,f),U=F.on,ot=F.value[O]==null?E||(E=Yo(p)):void 0;U===m&&S===ot||(b=(m=U).copy()).on(j,S=ot),F.on=b}}(this._id,t)):this.styleTween(t,function(f,p,m){var b,S,E=m+"";return function(){var O=pl(this,f);return O===E?null:O===b?S:S=p(b=O,m)}}(t,o,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!="function")throw new Error;return this.tween(o,Hg(t,e,r==null?"":r))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r==null?"":r}}(gu(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(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,N1(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var o,f=Po(this.node(),r).tween,p=0,m=f.length;p<m;++p)if((o=f[p]).name===t)return o.value;return null}return this.each((e==null?h3:f3)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Ug:zg)(e,t)):Po(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Y5:y3)(e,t)):Po(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(j5(e,t)):Po(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,r){return function(){var o=r.apply(this,arguments);if(typeof o!="function")throw new Error;us(this,e).ease=o}}(this._id,t))},end:function(){var t,e,r=this,o=r._id,f=r.size();return new Promise(function(p,m){var b={value:m},S={value:function(){--f==0&&p()}};r.each(function(){var E=us(this,o),O=E.on;O!==t&&((e=(t=O).copy())._.cancel.push(b),e._.interrupt.push(b),e._.end.push(S)),E.on=e}),f===0&&p()})},[Symbol.iterator]:eo[Symbol.iterator]};var qg={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function z5(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 Vg(){}function Gg(t){return t==null?Vg:function(){return this.querySelector(t)}}function ff(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function W5(){return[]}function Xg(t){return t==null?W5:function(){return this.querySelectorAll(t)}}function df(t){return function(){return this.matches(t)}}function Zg(t){return function(e){return e.matches(t)}}bn.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var o,f,p,m=e.__transition,b=!0;if(m){for(p in r=r==null?null:r+"",m)(o=m[p]).name===r?(f=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(f?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete m[p]):b=!1;b&&delete e.__transition}})(this,t)})},bn.prototype.transition=function(t){var e,r;t instanceof Us?(e=t._id,t=t._name):(e=$g(),(r=qg).time=af(),t=t==null?null:t+"");for(var o=this._groups,f=o.length,p=0;p<f;++p)for(var m,b=o[p],S=b.length,E=0;E<S;++E)(m=b[E])&&cs(m,t,e,E,b,r||z5(m,e));return new Us(o,this._parents,t,e)};var H5=Array.prototype.find;function pf(){return this.firstElementChild}var $5=Array.prototype.filter;function b3(){return Array.from(this.children)}function x3(t){return new Array(t.length)}function kc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function gf(t){return function(){return t}}function yf(t,e,r,o,f,p){for(var m,b=0,S=e.length,E=p.length;b<E;++b)(m=e[b])?(m.__data__=p[b],o[b]=m):r[b]=new kc(t,p[b]);for(;b<S;++b)(m=e[b])&&(f[b]=m)}function mf(t,e,r,o,f,p,m){var b,S,E,O=new Map,j=e.length,F=p.length,U=new Array(j);for(b=0;b<j;++b)(S=e[b])&&(U[b]=E=m.call(S,S.__data__,b,e)+"",O.has(E)?f[b]=S:O.set(E,S));for(b=0;b<F;++b)E=m.call(t,p[b],b,p)+"",(S=O.get(E))?(o[b]=S,S.__data__=p[b],O.delete(E)):r[b]=new kc(t,p[b]);for(b=0;b<j;++b)(S=e[b])&&O.get(U[b])===S&&(f[b]=S)}function O1(t){return t.__data__}function Qg(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function q5(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}kc.prototype={constructor:kc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var vf="http://www.w3.org/1999/xhtml";const w3={svg:"http://www.w3.org/2000/svg",xhtml:vf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function B1(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),w3.hasOwnProperty(e)?{space:w3[e],local:t}:t}function Jg(t){return function(){this.removeAttribute(t)}}function V5(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Kg(t,e){return function(){this.setAttribute(t,e)}}function G5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ty(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function X5(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 L1(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Z5(t){return function(){this.style.removeProperty(t)}}function Q5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function J5(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Ol(t,e){return t.style.getPropertyValue(e)||L1(t).getComputedStyle(t,null).getPropertyValue(e)}function K5(t){return function(){delete this[t]}}function tx(t,e){return function(){this[t]=e}}function ey(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function k3(t){return t.trim().split(/^|\s+/)}function ny(t){return t.classList||new ry(t)}function ry(t){this._node=t,this._names=k3(t.getAttribute("class")||"")}function yu(t,e){for(var r=ny(t),o=-1,f=e.length;++o<f;)r.add(e[o])}function T3(t,e){for(var r=ny(t),o=-1,f=e.length;++o<f;)r.remove(e[o])}function E3(t){return function(){yu(this,t)}}function ex(t){return function(){T3(this,t)}}function I1(t,e){return function(){(e.apply(this,arguments)?yu:T3)(this,t)}}function S3(){this.textContent=""}function iy(t){return function(){this.textContent=t}}function nx(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function _f(){this.innerHTML=""}function C3(t){return function(){this.innerHTML=t}}function M3(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function A3(){this.nextSibling&&this.parentNode.appendChild(this)}function D3(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function R1(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===vf&&e.documentElement.namespaceURI===vf?e.createElement(t):e.createElementNS(r,t)}}function N3(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function O3(t){var e=B1(t);return(e.local?N3:R1)(e)}function rx(){return null}function F1(){var t=this.parentNode;t&&t.removeChild(this)}function mu(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Bl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ix(t){return t.trim().split(/^|\s+/).map(function(e){var r="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}function ax(t){return function(){var e=this.__on;if(e){for(var r,o=0,f=-1,p=e.length;o<p;++o)r=e[o],t.type&&r.type!==t.type||r.name!==t.name?e[++f]=r:this.removeEventListener(r.type,r.listener,r.options);++f?e.length=f:delete this.__on}}}function B3(t,e,r){return function(){var o,f=this.__on,p=function(S){return function(E){S.call(this,E,this.__data__)}}(e);if(f){for(var m=0,b=f.length;m<b;++m)if((o=f[m]).type===t.type&&o.name===t.name)return this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=p,o.options=r),void(o.value=e)}this.addEventListener(t.type,p,r),o={type:t.type,name:t.name,value:e,listener:p,options:r},f?f.push(o):this.__on=[o]}}function P1(t,e,r){var o=L1(t),f=o.CustomEvent;typeof f=="function"?f=new f(e,r):(f=o.document.createEvent("Event"),r?(f.initEvent(e,r.bubbles,r.cancelable),f.detail=r.detail):f.initEvent(e,!1,!1)),t.dispatchEvent(f)}function L3(t,e){return function(){return P1(this,t,e)}}function I3(t,e){return function(){return P1(this,t,e.apply(this,arguments))}}ry.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var bf=[null];function jo(t,e){this._groups=t,this._parents=e}function R3(){return new jo([[document.documentElement]],bf)}jo.prototype=R3.prototype={constructor:jo,select:function(t){typeof t!="function"&&(t=Gg(t));for(var e=this._groups,r=e.length,o=new Array(r),f=0;f<r;++f)for(var p,m,b=e[f],S=b.length,E=o[f]=new Array(S),O=0;O<S;++O)(p=b[O])&&(m=t.call(p,p.__data__,O,b))&&("__data__"in p&&(m.__data__=p.__data__),E[O]=m);return new jo(o,this._parents)},selectAll:function(t){t=typeof t=="function"?function(O){return function(){return ff(O.apply(this,arguments))}}(t):Xg(t);for(var e=this._groups,r=e.length,o=[],f=[],p=0;p<r;++p)for(var m,b=e[p],S=b.length,E=0;E<S;++E)(m=b[E])&&(o.push(t.call(m,m.__data__,E,b)),f.push(m));return new jo(o,f)},selectChild:function(t){return this.select(t==null?pf:function(e){return function(){return H5.call(this.children,e)}}(typeof t=="function"?t:Zg(t)))},selectChildren:function(t){return this.selectAll(t==null?b3:function(e){return function(){return $5.call(this.children,e)}}(typeof t=="function"?t:Zg(t)))},filter:function(t){typeof t!="function"&&(t=df(t));for(var e=this._groups,r=e.length,o=new Array(r),f=0;f<r;++f)for(var p,m=e[f],b=m.length,S=o[f]=[],E=0;E<b;++E)(p=m[E])&&t.call(p,p.__data__,E,m)&&S.push(p);return new jo(o,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,O1);var r=e?mf:yf,o=this._parents,f=this._groups;typeof t!="function"&&(t=gf(t));for(var p=f.length,m=new Array(p),b=new Array(p),S=new Array(p),E=0;E<p;++E){var O=o[E],j=f[E],F=j.length,U=Qg(t.call(O,O&&O.__data__,E,o)),ot=U.length,vt=b[E]=new Array(ot),_t=m[E]=new Array(ot),xt=S[E]=new Array(F);r(O,j,vt,_t,xt,U,e);for(var mt,st,qt=0,At=0;qt<ot;++qt)if(mt=vt[qt]){for(qt>=At&&(At=qt+1);!(st=_t[At])&&++At<ot;);mt._next=st||null}}return(m=new jo(m,o))._enter=b,m._exit=S,m},enter:function(){return new jo(this._enter||this._groups.map(x3),this._parents)},exit:function(){return new jo(this._exit||this._groups.map(x3),this._parents)},join:function(t,e,r){var o=this.enter(),f=this,p=this.exit();return typeof t=="function"?(o=t(o))&&(o=o.selection()):o=o.append(t+""),e!=null&&(f=e(f))&&(f=f.selection()),r==null?p.remove():r(p),o&&f?o.merge(f).order():f},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,f=r.length,p=o.length,m=Math.min(f,p),b=new Array(f),S=0;S<m;++S)for(var E,O=r[S],j=o[S],F=O.length,U=b[S]=new Array(F),ot=0;ot<F;++ot)(E=O[ot]||j[ot])&&(U[ot]=E);for(;S<f;++S)b[S]=r[S];return new jo(b,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o,f=t[e],p=f.length-1,m=f[p];--p>=0;)(o=f[p])&&(m&&4^o.compareDocumentPosition(m)&&m.parentNode.insertBefore(o,m),m=o);return this},sort:function(t){function e(j,F){return j&&F?t(j.__data__,F.__data__):!j-!F}t||(t=q5);for(var r=this._groups,o=r.length,f=new Array(o),p=0;p<o;++p){for(var m,b=r[p],S=b.length,E=f[p]=new Array(S),O=0;O<S;++O)(m=b[O])&&(E[O]=m);E.sort(e)}return new jo(f,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],f=0,p=o.length;f<p;++f){var m=o[f];if(m)return m}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,o=e.length;r<o;++r)for(var f,p=e[r],m=0,b=p.length;m<b;++m)(f=p[m])&&t.call(f,f.__data__,m,p);return this},attr:function(t,e){var r=B1(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?V5:Jg:typeof e=="function"?r.local?X5:ty:r.local?G5:Kg)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?Z5:typeof e=="function"?J5:Q5)(t,e,r==null?"":r)):Ol(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?K5:typeof e=="function"?ey:tx)(t,e)):this.node()[t]},classed:function(t,e){var r=k3(t+"");if(arguments.length<2){for(var o=ny(this.node()),f=-1,p=r.length;++f<p;)if(!o.contains(r[f]))return!1;return!0}return this.each((typeof e=="function"?I1:e?E3:ex)(r,e))},text:function(t){return arguments.length?this.each(t==null?S3:(typeof t=="function"?nx:iy)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?_f:(typeof t=="function"?M3:C3)(t)):this.node().innerHTML},raise:function(){return this.each(A3)},lower:function(){return this.each(D3)},append:function(t){var e=typeof t=="function"?t:O3(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:O3(t),o=e==null?rx:typeof e=="function"?e:Gg(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function(){return this.each(F1)},clone:function(t){return this.select(t?Bl:mu)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var o,f,p=ix(t+""),m=p.length;if(!(arguments.length<2)){for(b=e?B3:ax,o=0;o<m;++o)this.each(b(p[o],e,r));return this}var b=this.node().__on;if(b){for(var S,E=0,O=b.length;E<O;++E)for(o=0,S=b[E];o<m;++o)if((f=p[o]).type===S.type&&f.name===S.name)return S.value}},dispatch:function(t,e){return this.each((typeof e=="function"?I3:L3)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o,f=t[e],p=0,m=f.length;p<m;++p)(o=f[p])&&(yield o)}};const xf=R3;var ox={value:()=>{}};function F3(){for(var t,e=0,r=arguments.length,o={};e<r;++e){if(!(t=arguments[e]+"")||t in o||/[\s.]/.test(t))throw new Error("illegal type: "+t);o[t]=[]}return new Y1(o)}function Y1(t){this._=t}function sx(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",f=r.indexOf(".");if(f>=0&&(o=r.slice(f+1),r=r.slice(0,f)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}function ay(t,e){for(var r,o=0,f=t.length;o<f;++o)if((r=t[o]).name===e)return r.value}function j1(t,e,r){for(var o=0,f=t.length;o<f;++o)if(t[o].name===e){t[o]=ox,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}Y1.prototype=F3.prototype={constructor:Y1,on:function(t,e){var r,o=this._,f=sx(t+"",o),p=-1,m=f.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++p<m;)if(r=(t=f[p]).type)o[r]=j1(o[r],t.name,e);else if(e==null)for(r in o)o[r]=j1(o[r],t.name,null);return this}for(;++p<m;)if((r=(t=f[p]).type)&&(r=ay(o[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Y1(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,o,f=new Array(r),p=0;p<r;++p)f[p]=arguments[p+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(p=0,r=(o=this._[t]).length;p<r;++p)o[p].value.apply(e,f)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],f=0,p=o.length;f<p;++f)o[f].value.apply(e,r)}};const cx=F3;var U1,Tc,Ll=0,Ec=0,Il=0,wf=0,Sc=0,z1=0,kf=typeof performance=="object"&&performance.now?performance:Date,P3=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function oy(){return Sc||(P3(ux),Sc=kf.now()+z1)}function ux(){Sc=0}function W1(){this._call=this._time=this._next=null}function sy(t,e,r){var o=new W1;return o.restart(t,e,r),o}function Rl(){Sc=(wf=kf.now())+z1,Ll=Ec=0;try{(function(){oy(),++Ll;for(var t,e=U1;e;)(t=Sc-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ll})()}finally{Ll=0,function(){for(var t,e,r=U1,o=1/0;r;)r._call?(o>r._time&&(o=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:U1=e);Tc=t,H1(o)}(),Sc=0}}function Y3(){var t=kf.now(),e=t-wf;e>1e3&&(z1-=e,wf=t)}function H1(t){Ll||(Ec&&(Ec=clearTimeout(Ec)),t-Sc>24?(t<1/0&&(Ec=setTimeout(Rl,t-kf.now()-z1)),Il&&(Il=clearInterval(Il))):(Il||(wf=kf.now(),Il=setInterval(Y3,1e3)),Ll=1,P3(Rl)))}function cy(t,e,r){var o=new W1;return e=e==null?0:+e,o.restart(f=>{o.stop(),t(f+e)},e,r),o}W1.prototype=sy.prototype={constructor:W1,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?oy():+r)+(e==null?0:+e),this._next||Tc===this||(Tc?Tc._next=this:U1=this,Tc=this),this._call=t,this._time=r,H1()},stop:function(){this._call&&(this._call=null,this._time=1/0,H1())}};var lx=cx("start","end","cancel","interrupt"),hx=[];function $1(t,e,r,o,f,p){var m=t.__transition;if(m){if(r in m)return}else t.__transition={};(function(b,S,E){var O,j=b.__transition;function F(vt){var _t,xt,mt,st;if(E.state!==1)return ot();for(_t in j)if((st=j[_t]).name===E.name){if(st.state===3)return cy(F);st.state===4?(st.state=6,st.timer.stop(),st.on.call("interrupt",b,b.__data__,st.index,st.group),delete j[_t]):+_t<S&&(st.state=6,st.timer.stop(),st.on.call("cancel",b,b.__data__,st.index,st.group),delete j[_t])}if(cy(function(){E.state===3&&(E.state=4,E.timer.restart(U,E.delay,E.time),U(vt))}),E.state=2,E.on.call("start",b,b.__data__,E.index,E.group),E.state===2){for(E.state=3,O=new Array(mt=E.tween.length),_t=0,xt=-1;_t<mt;++_t)(st=E.tween[_t].value.call(b,b.__data__,E.index,E.group))&&(O[++xt]=st);O.length=xt+1}}function U(vt){for(var _t=vt<E.duration?E.ease.call(null,vt/E.duration):(E.timer.restart(ot),E.state=5,1),xt=-1,mt=O.length;++xt<mt;)O[xt].call(b,_t);E.state===5&&(E.on.call("end",b,b.__data__,E.index,E.group),ot())}function ot(){for(var vt in E.state=6,E.timer.stop(),delete j[S],j)return;delete b.__transition}j[S]=E,E.timer=sy(function(vt){E.state=1,E.timer.restart(F,E.delay,E.time),E.delay<=vt&&F(vt-E.delay)},0,E.time)})(t,r,{name:e,index:o,group:f,on:lx,tween:hx,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:0})}function q1(t,e){var r=Uo(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function ls(t,e){var r=Uo(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Uo(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function zs(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var V1,Tf=180/Math.PI,uy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j3(t,e,r,o,f,p){var m,b,S;return(m=Math.sqrt(t*t+e*e))&&(t/=m,e/=m),(S=t*r+e*o)&&(r-=t*S,o-=e*S),(b=Math.sqrt(r*r+o*o))&&(r/=b,o/=b,S/=b),t*o<e*r&&(t=-t,e=-e,S=-S,m=-m),{translateX:f,translateY:p,rotate:Math.atan2(e,t)*Tf,skewX:Math.atan(S)*Tf,scaleX:m,scaleY:b}}function U3(t,e,r,o){function f(p){return p.length?p.pop()+" ":""}return function(p,m){var b=[],S=[];return p=t(p),m=t(m),function(E,O,j,F,U,ot){if(E!==j||O!==F){var vt=U.push("translate(",null,e,null,r);ot.push({i:vt-4,x:zs(E,j)},{i:vt-2,x:zs(O,F)})}else(j||F)&&U.push("translate("+j+e+F+r)}(p.translateX,p.translateY,m.translateX,m.translateY,b,S),function(E,O,j,F){E!==O?(E-O>180?O+=360:O-E>180&&(E+=360),F.push({i:j.push(f(j)+"rotate(",null,o)-2,x:zs(E,O)})):O&&j.push(f(j)+"rotate("+O+o)}(p.rotate,m.rotate,b,S),function(E,O,j,F){E!==O?F.push({i:j.push(f(j)+"skewX(",null,o)-2,x:zs(E,O)}):O&&j.push(f(j)+"skewX("+O+o)}(p.skewX,m.skewX,b,S),function(E,O,j,F,U,ot){if(E!==j||O!==F){var vt=U.push(f(U)+"scale(",null,",",null,")");ot.push({i:vt-4,x:zs(E,j)},{i:vt-2,x:zs(O,F)})}else j===1&&F===1||U.push(f(U)+"scale("+j+","+F+")")}(p.scaleX,p.scaleY,m.scaleX,m.scaleY,b,S),p=m=null,function(E){for(var O,j=-1,F=S.length;++j<F;)b[(O=S[j]).i]=O.x(E);return b.join("")}}}var fx=U3(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?uy:j3(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),dx=U3(function(t){return t==null?uy:(V1||(V1=document.createElementNS("http://www.w3.org/2000/svg","g")),V1.setAttribute("transform",t),(t=V1.transform.baseVal.consolidate())?j3((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):uy)},", ",")",")");function px(t,e){var r,o;return function(){var f=ls(this,t),p=f.tween;if(p!==r){for(var m=0,b=(o=r=p).length;m<b;++m)if(o[m].name===e){(o=o.slice()).splice(m,1);break}}f.tween=o}}function z3(t,e,r){var o,f;if(typeof r!="function")throw new Error;return function(){var p=ls(this,t),m=p.tween;if(m!==o){f=(o=m).slice();for(var b={name:e,value:r},S=0,E=f.length;S<E;++S)if(f[S].name===e){f[S]=b;break}S===E&&f.push(b)}p.tween=f}}function ly(t,e,r){var o=t._id;return t.each(function(){var f=ls(this,o);(f.value||(f.value={}))[e]=r.apply(this,arguments)}),function(f){return Uo(f,o).value[e]}}function hy(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function W3(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function hs(){}var G1=.7,Ef=1.4285714285714286,Fl="\\s*([+-]?\\d+)\\s*",Pl="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",fs="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gx=/^#([0-9a-f]{3,8})$/,zo=new RegExp("^rgb\\("+[Fl,Fl,Fl]+"\\)$"),Ws=new RegExp("^rgb\\("+[fs,fs,fs]+"\\)$"),H3=new RegExp("^rgba\\("+[Fl,Fl,Fl,Pl]+"\\)$"),X1=new RegExp("^rgba\\("+[fs,fs,fs,Pl]+"\\)$"),vu=new RegExp("^hsl\\("+[Pl,fs,fs]+"\\)$"),fy=new RegExp("^hsla\\("+[Pl,fs,fs,Pl]+"\\)$"),Z1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Q1(){return this.rgb().formatHex()}function dy(){return this.rgb().formatRgb()}function Sf(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=gx.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?J1(e):r===3?new Fa(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?Cf(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?Cf(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=zo.exec(t))?new Fa(e[1],e[2],e[3],1):(e=Ws.exec(t))?new Fa(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=H3.exec(t))?Cf(e[1],e[2],e[3],e[4]):(e=X1.exec(t))?Cf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=vu.exec(t))?Af(e[1],e[2]/100,e[3]/100,1):(e=fy.exec(t))?Af(e[1],e[2]/100,e[3]/100,e[4]):Z1.hasOwnProperty(t)?J1(Z1[t]):t==="transparent"?new Fa(NaN,NaN,NaN,0):null}function J1(t){return new Fa(t>>16&255,t>>8&255,255&t,1)}function Cf(t,e,r,o){return o<=0&&(t=e=r=NaN),new Fa(t,e,r,o)}function ta(t){return t instanceof hs||(t=Sf(t)),t?new Fa((t=t.rgb()).r,t.g,t.b,t.opacity):new Fa}function Mf(t,e,r,o){return arguments.length===1?ta(t):new Fa(t,e,r,o==null?1:o)}function Fa(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function $3(){return"#"+_u(this.r)+_u(this.g)+_u(this.b)}function q3(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function _u(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Af(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Wo(t,e,r,o)}function py(t){if(t instanceof Wo)return new Wo(t.h,t.s,t.l,t.opacity);if(t instanceof hs||(t=Sf(t)),!t)return new Wo;if(t instanceof Wo)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,f=Math.min(e,r,o),p=Math.max(e,r,o),m=NaN,b=p-f,S=(p+f)/2;return b?(m=e===p?(r-o)/b+6*(r<o):r===p?(o-e)/b+2:(e-r)/b+4,b/=S<.5?p+f:2-p-f,m*=60):b=S>0&&S<1?0:m,new Wo(m,b,S,t.opacity)}function Wo(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function Hs(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}hy(hs,Sf,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Q1,formatHex:Q1,formatHsl:function(){return py(this).formatHsl()},formatRgb:dy,toString:dy}),hy(Fa,Mf,W3(hs,{brighter:function(t){return t=t==null?Ef:Math.pow(Ef,t),new Fa(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?G1:Math.pow(G1,t),new Fa(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$3,formatHex:$3,formatRgb:q3,toString:q3})),hy(Wo,function(t,e,r,o){return arguments.length===1?py(t):new Wo(t,e,r,o==null?1:o)},W3(hs,{brighter:function(t){return t=t==null?Ef:Math.pow(Ef,t),new Wo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?G1:Math.pow(G1,t),new Wo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,f=2*r-o;return new Fa(Hs(t>=240?t-240:t+120,f,o),Hs(t,f,o),Hs(t<120?t+240:t-120,f,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const gy=t=>()=>t;function yy(t,e){var r=e-t;return r?function(o,f){return function(p){return o+p*f}}(t,r):gy(isNaN(t)?e:t)}const my=function t(e){var r=function(f){return(f=+f)==1?yy:function(p,m){return m-p?function(b,S,E){return b=Math.pow(b,E),S=Math.pow(S,E)-b,E=1/E,function(O){return Math.pow(b+O*S,E)}}(p,m,f):gy(isNaN(p)?m:p)}}(e);function o(f,p){var m=r((f=Mf(f)).r,(p=Mf(p)).r),b=r(f.g,p.g),S=r(f.b,p.b),E=yy(f.opacity,p.opacity);return function(O){return f.r=m(O),f.g=b(O),f.b=S(O),f.opacity=E(O),f+""}}return o.gamma=t,o}(1);var K1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,t0=new RegExp(K1.source,"g");function yx(t,e){var r,o,f,p=K1.lastIndex=t0.lastIndex=0,m=-1,b=[],S=[];for(t+="",e+="";(r=K1.exec(t))&&(o=t0.exec(e));)(f=o.index)>p&&(f=e.slice(p,f),b[m]?b[m]+=f:b[++m]=f),(r=r[0])===(o=o[0])?b[m]?b[m]+=o:b[++m]=o:(b[++m]=null,S.push({i:m,x:zs(r,o)})),p=t0.lastIndex;return p<e.length&&(f=e.slice(p),b[m]?b[m]+=f:b[++m]=f),b.length<2?S[0]?function(E){return function(O){return E(O)+""}}(S[0].x):function(E){return function(){return E}}(e):(e=S.length,function(E){for(var O,j=0;j<e;++j)b[(O=S[j]).i]=O.x(E);return b.join("")})}function V3(t,e){var r;return(typeof e=="number"?zs:e instanceof Sf?my:(r=Sf(e))?(e=r,my):yx)(t,e)}function mx(t){return function(){this.removeAttribute(t)}}function G3(t){return function(){this.removeAttributeNS(t.space,t.local)}}function vy(t,e,r){var o,f,p=r+"";return function(){var m=this.getAttribute(t);return m===p?null:m===o?f:f=e(o=m,r)}}function X3(t,e,r){var o,f,p=r+"";return function(){var m=this.getAttributeNS(t.space,t.local);return m===p?null:m===o?f:f=e(o=m,r)}}function Z3(t,e,r){var o,f,p;return function(){var m,b,S=r(this);if(S!=null)return(m=this.getAttribute(t))===(b=S+"")?null:m===o&&b===f?p:(f=b,p=e(o=m,S));this.removeAttribute(t)}}function Q3(t,e,r){var o,f,p;return function(){var m,b,S=r(this);if(S!=null)return(m=this.getAttributeNS(t.space,t.local))===(b=S+"")?null:m===o&&b===f?p:(f=b,p=e(o=m,S));this.removeAttributeNS(t.space,t.local)}}function _y(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function J3(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function K3(t,e){var r,o;function f(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&J3(t,p)),r}return f._value=e,f}function vx(t,e){var r,o;function f(){var p=e.apply(this,arguments);return p!==o&&(r=(o=p)&&_y(t,p)),r}return f._value=e,f}function _x(t,e){return function(){q1(this,t).delay=+e.apply(this,arguments)}}function by(t,e){return e=+e,function(){q1(this,t).delay=e}}function xy(t,e){return function(){ls(this,t).duration=+e.apply(this,arguments)}}function bx(t,e){return e=+e,function(){ls(this,t).duration=e}}function t_(t,e){if(typeof e!="function")throw new Error;return function(){ls(this,t).ease=e}}function e_(t,e,r){var o,f,p=function(m){return(m+"").trim().split(/^|\s+/).every(function(b){var S=b.indexOf(".");return S>=0&&(b=b.slice(0,S)),!b||b==="start"})}(e)?q1:ls;return function(){var m=p(this,t),b=m.on;b!==o&&(f=(o=b).copy()).on(e,r),m.on=f}}var n_=xf.prototype.constructor;function e0(t){return function(){this.style.removeProperty(t)}}function wy(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function Ri(t,e,r){var o,f;function p(){var m=e.apply(this,arguments);return m!==f&&(o=(f=m)&&wy(t,m,r)),o}return p._value=e,p}function ky(t){return function(e){this.textContent=t.call(this,e)}}function bu(t){var e,r;function o(){var f=t.apply(this,arguments);return f!==r&&(e=(r=f)&&ky(f)),e}return o._value=t,o}var xx=0;function ds(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function Ty(){return++xx}var $s=xf.prototype;ds.prototype={constructor:ds,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Gg(t));for(var o=this._groups,f=o.length,p=new Array(f),m=0;m<f;++m)for(var b,S,E=o[m],O=E.length,j=p[m]=new Array(O),F=0;F<O;++F)(b=E[F])&&(S=t.call(b,b.__data__,F,E))&&("__data__"in b&&(S.__data__=b.__data__),j[F]=S,$1(j[F],e,r,F,j,Uo(b,r)));return new ds(p,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Xg(t));for(var o=this._groups,f=o.length,p=[],m=[],b=0;b<f;++b)for(var S,E=o[b],O=E.length,j=0;j<O;++j)if(S=E[j]){for(var F,U=t.call(S,S.__data__,j,E),ot=Uo(S,r),vt=0,_t=U.length;vt<_t;++vt)(F=U[vt])&&$1(F,e,r,vt,U,ot);p.push(U),m.push(S)}return new ds(p,m,e,r)},selectChild:$s.selectChild,selectChildren:$s.selectChildren,filter:function(t){typeof t!="function"&&(t=df(t));for(var e=this._groups,r=e.length,o=new Array(r),f=0;f<r;++f)for(var p,m=e[f],b=m.length,S=o[f]=[],E=0;E<b;++E)(p=m[E])&&t.call(p,p.__data__,E,m)&&S.push(p);return new ds(o,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,o=e.length,f=r.length,p=Math.min(o,f),m=new Array(o),b=0;b<p;++b)for(var S,E=e[b],O=r[b],j=E.length,F=m[b]=new Array(j),U=0;U<j;++U)(S=E[U]||O[U])&&(F[U]=S);for(;b<o;++b)m[b]=e[b];return new ds(m,this._parents,this._name,this._id)},selection:function(){return new n_(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Ty(),o=this._groups,f=o.length,p=0;p<f;++p)for(var m,b=o[p],S=b.length,E=0;E<S;++E)if(m=b[E]){var O=Uo(m,e);$1(m,t,r,E,b,{time:O.time+O.delay+O.duration,delay:0,duration:O.duration,ease:O.ease})}return new ds(o,this._parents,t,r)},call:$s.call,nodes:$s.nodes,node:$s.node,size:$s.size,empty:$s.empty,each:$s.each,on:function(t,e){var r=this._id;return arguments.length<2?Uo(this.node(),r).on.on(t):this.each(e_(r,t,e))},attr:function(t,e){var r=B1(t),o=r==="transform"?dx:V3;return this.attrTween(t,typeof e=="function"?(r.local?Q3:Z3)(r,o,ly(this,"attr."+t,e)):e==null?(r.local?G3:mx)(r):(r.local?X3:vy)(r,o,e))},attrTween:function(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 o=B1(t);return this.tween(r,(o.local?K3:vx)(o,e))},style:function(t,e,r){var o=(t+="")=="transform"?fx:V3;return e==null?this.styleTween(t,function(f,p){var m,b,S;return function(){var E=Ol(this,f),O=(this.style.removeProperty(f),Ol(this,f));return E===O?null:E===m&&O===b?S:S=p(m=E,b=O)}}(t,o)).on("end.style."+t,e0(t)):typeof e=="function"?this.styleTween(t,function(f,p,m){var b,S,E;return function(){var O=Ol(this,f),j=m(this),F=j+"";return j==null&&(this.style.removeProperty(f),F=j=Ol(this,f)),O===F?null:O===b&&F===S?E:(S=F,E=p(b=O,j))}}(t,o,ly(this,"style."+t,e))).each(function(f,p){var m,b,S,E,O="style."+p,j="end."+O;return function(){var F=ls(this,f),U=F.on,ot=F.value[O]==null?E||(E=e0(p)):void 0;U===m&&S===ot||(b=(m=U).copy()).on(j,S=ot),F.on=b}}(this._id,t)):this.styleTween(t,function(f,p,m){var b,S,E=m+"";return function(){var O=Ol(this,f);return O===E?null:O===b?S:S=p(b=O,m)}}(t,o,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!="function")throw new Error;return this.tween(o,Ri(t,e,r==null?"":r))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r==null?"":r}}(ly(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(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,bu(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var o,f=Uo(this.node(),r).tween,p=0,m=f.length;p<m;++p)if((o=f[p]).name===t)return o.value;return null}return this.each((e==null?px:z3)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?_x:by)(e,t)):Uo(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?xy:bx)(e,t)):Uo(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(t_(e,t)):Uo(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,r){return function(){var o=r.apply(this,arguments);if(typeof o!="function")throw new Error;ls(this,e).ease=o}}(this._id,t))},end:function(){var t,e,r=this,o=r._id,f=r.size();return new Promise(function(p,m){var b={value:m},S={value:function(){--f==0&&p()}};r.each(function(){var E=ls(this,o),O=E.on;O!==t&&((e=(t=O).copy())._.cancel.push(b),e._.interrupt.push(b),e._.end.push(S)),E.on=e}),f===0&&p()})},[Symbol.iterator]:$s[Symbol.iterator]};var n0={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function xu(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}xf.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var o,f,p,m=e.__transition,b=!0;if(m){for(p in r=r==null?null:r+"",m)(o=m[p]).name===r?(f=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(f?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete m[p]):b=!1;b&&delete e.__transition}})(this,t)})},xf.prototype.transition=function(t){var e,r;t instanceof ds?(e=t._id,t=t._name):(e=Ty(),(r=n0).time=oy(),t=t==null?null:t+"");for(var o=this._groups,f=o.length,p=0;p<f;++p)for(var m,b=o[p],S=b.length,E=0;E<S;++E)(m=b[E])&&$1(m,t,e,E,b,r||xu(m,e));return new ds(o,this._parents,t,e)};var Df="comm",Ey="rule",Sy="decl",wu=Math.abs,ku=String.fromCharCode;function Yl(t){return t.trim()}function Cy(t,e,r){return t.replace(e,r)}function r0(t,e){return 0|t.charCodeAt(e)}function Ho(t,e,r){return t.slice(e,r)}function qs(t){return t.length}function My(t){return t.length}function Nf(t,e){return e.push(t),t}function r_(t,e){for(var r="",o=My(t),f=0;f<o;f++)r+=e(t[f],f,t,e)||"";return r}function wx(t,e,r,o){switch(t.type){case"@import":case Sy:return t.return=t.return||t.value;case Df:return"";case Ey:t.value=t.props.join(",")}return qs(r=r_(t.children,o))?t.return=t.value+"{"+r+"}":""}var i0=1,jl=1,i_=0,go=0,_i=0,Vs="";function Ay(t,e,r,o,f,p,m){return{value:t,root:e,parent:r,type:o,props:f,children:p,line:i0,column:jl,length:m,return:""}}function a_(){return _i=go>0?r0(Vs,--go):0,jl--,_i===10&&(jl=1,i0--),_i}function yo(){return _i=go<i_?r0(Vs,go++):0,jl++,_i===10&&(jl=1,i0++),_i}function Tu(){return r0(Vs,go)}function Of(){return go}function Bf(t,e){return Ho(Vs,t,e)}function Dy(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ny(t){return Yl(Bf(go-1,Ul(t===91?t+2:t===40?t+1:t)))}function a0(t){for(;(_i=Tu())&&_i<33;)yo();return Dy(t)>2||Dy(_i)>3?"":" "}function o_(t,e){for(;--e&&yo()&&!(_i<48||_i>102||_i>57&&_i<65||_i>70&&_i<97););return Bf(t,Of()+(e<6&&Tu()==32&&yo()==32))}function Ul(t){for(;yo();)switch(_i){case t:return go;case 34:case 39:return Ul(t===34||t===39?t:_i);case 40:t===41&&Ul(t);break;case 92:yo()}return go}function o0(t,e){for(;yo()&&t+_i!==57&&(t+_i!==84||Tu()!==47););return"/*"+Bf(e,go-1)+"*"+ku(t===47?t:yo())}function s_(t){for(;!Dy(Tu());)yo();return Bf(t,go)}function Eu(t){return function(e){return Vs="",e}(Cc("",null,null,null,[""],t=function(e){return i0=jl=1,i_=qs(Vs=e),go=0,[]}(t),0,[0],t))}function Cc(t,e,r,o,f,p,m,b,S){for(var E=0,O=0,j=m,F=0,U=0,ot=0,vt=1,_t=1,xt=1,mt=0,st="",qt=f,At=p,pt=o,Lt=st;_t;)switch(ot=mt,mt=yo()){case 34:case 39:case 91:case 40:Lt+=Ny(mt);break;case 9:case 10:case 13:case 32:Lt+=a0(ot);break;case 92:Lt+=o_(Of()-1,7);continue;case 47:switch(Tu()){case 42:case 47:Nf(c_(o0(yo(),Of()),e,r),S);break;default:Lt+="/"}break;case 123*vt:b[E++]=qs(Lt)*xt;case 125*vt:case 59:case 0:switch(mt){case 0:case 125:_t=0;case 59+O:U>0&&qs(Lt)-j&&Nf(U>32?Oy(Lt+";",o,r,j-1):Oy(Cy(Lt," ","")+";",o,r,j-2),S);break;case 59:Lt+=";";default:if(Nf(pt=zl(Lt,e,r,E,O,f,b,st,qt=[],At=[],j),p),mt===123)if(O===0)Cc(Lt,e,pt,pt,qt,p,j,b,At);else switch(F){case 100:case 109:case 115:Cc(t,pt,pt,o&&Nf(zl(t,pt,pt,0,0,f,b,st,f,qt=[],j),At),f,At,j,b,o?qt:At);break;default:Cc(Lt,pt,pt,pt,[""],At,j,b,At)}}E=O=U=0,vt=xt=1,st=Lt="",j=m;break;case 58:j=1+qs(Lt),U=ot;default:if(vt<1){if(mt==123)--vt;else if(mt==125&&vt++==0&&a_()==125)continue}switch(Lt+=ku(mt),mt*vt){case 38:xt=O>0?1:(Lt+="\f",-1);break;case 44:b[E++]=(qs(Lt)-1)*xt,xt=1;break;case 64:Tu()===45&&(Lt+=Ny(yo())),F=Tu(),O=qs(st=Lt+=s_(Of())),mt++;break;case 45:ot===45&&qs(Lt)==2&&(vt=0)}}return p}function zl(t,e,r,o,f,p,m,b,S,E,O){for(var j=f-1,F=f===0?p:[""],U=My(F),ot=0,vt=0,_t=0;ot<o;++ot)for(var xt=0,mt=Ho(t,j+1,j=wu(vt=m[ot])),st=t;xt<U;++xt)(st=Yl(vt>0?F[xt]+" "+mt:Cy(mt,/&\f/g,F[xt])))&&(S[_t++]=st);return Ay(t,e,r,f===0?Ey:b,S,E,O)}function c_(t,e,r){return Ay(t,e,r,Df,ku(_i),Ho(t,2,-2),0)}function Oy(t,e,r,o){return Ay(t,e,r,Sy,Ho(t,0,o),Ho(t,o+1,-1),o)}const Mc="8.13.2";var By=s(9609),u_=s(7856),l_=s.n(u_),h_=function(t){for(var e="",r=0;r>=0;){if(!((r=t.indexOf("<script"))>=0)){e+=t,r=-1;break}e+=t.substr(0,r),(r=(t=t.substr(r+1)).indexOf("<\/script>"))>=0&&(r+=9,t=t.substr(r))}return(e=(e=(e=(e=e.replace(/script>/gi,"#")).replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},f_=/<br\s*\/?>/gi,d_=function(t){return t.replace(f_,"#br#")},ea=function(t){return t!=="false"&&t!==!1};const Hr={getRows:function(t){if(!t)return 1;var e=d_(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:function(t,e){var r=e.securityLevel;if(console.log("security level",r),!t)return t;var o=l_().sanitize(function(f,p){var m=f,b=!0;if(!p.flowchart||p.flowchart.htmlLabels!==!1&&p.flowchart.htmlLabels!=="false"||(b=!1),b){var S=p.securityLevel;S==="antiscript"?m=h_(m):S!=="loose"&&(m=(m=(m=d_(m)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),m=m.replace(/#br#/g,"<br/>"))}return m}(t,e));return o},hasBreaks:function(t){return/<br\s*[/]?>/gi.test(t)},splitBreaks:function(t){return t.split(/<br\s*[/]?>/gi)},lineBreakRegex:f_,removeScript:h_,getUrl:function(t){var e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e},evaluate:ea};var xe=s(8613),na=function(t,e){return e?(0,xe.adjust)(t,{s:-40,l:10}):(0,xe.adjust)(t,{s:-40,l:-10})};function Wl(t){return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wl(t)}function kx(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var Ly=function(){function t(){(function(o,f){if(!(o instanceof f))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#ddd":"#333"),this.secondaryColor=this.secondaryColor||(0,xe.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,xe.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||na(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||na(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||na(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||na(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,xe.invert)(this.tertiaryColor),this.lineColor=this.lineColor||(0,xe.invert)(this.background),this.textColor=this.textColor||this.primaryTextColor,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?(0,xe.darken)(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||"grey",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||(0,xe.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,xe.invert)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,xe.lighten)(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.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.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,xe.adjust)(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||(0,xe.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,xe.adjust)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,xe.adjust)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,xe.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,xe.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,xe.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,xe.adjust)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,xe.adjust)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,xe.adjust)(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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,xe.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var f=this;if(Wl(o)==="object"){var p=Object.keys(o);p.forEach(function(m){f[m]=o[m]}),this.updateColors(),p.forEach(function(m){f[m]=o[m]})}else this.updateColors()}}],r&&kx(e.prototype,r),t}();function Gs(t){return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gs(t)}function Tx(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var Iy=function(){function t(){(function(o,f){if(!(o instanceof f))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,xe.lighten)(this.primaryColor,16),this.tertiaryColor=(0,xe.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=na(this.primaryColor,this.darkMode),this.secondaryBorderColor=na(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=na(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.tertiaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,xe.lighten)((0,xe.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,xe.rgba)(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.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.sectionBkgColor=(0,xe.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=(0,xe.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,xe.rgba)(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.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=(0,xe.lighten)(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=(0,xe.lighten)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,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.altSectionBkgColor=this.background,this.taskBkgColor=(0,xe.lighten)(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=this.darkTextColor,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=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",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.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,xe.darken)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var f=this;if(Gs(o)==="object"){var p=Object.keys(o);p.forEach(function(m){f[m]=o[m]}),this.updateColors(),p.forEach(function(m){f[m]=o[m]})}else this.updateColors()}}],r&&Tx(e.prototype,r),t}();function Lf(t){return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lf(t)}function If(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var p_=function(){function t(){(function(o,f){if(!(o instanceof f))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,xe.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,xe.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=na(this.primaryColor,this.darkMode),this.secondaryBorderColor=na(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=na(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.tertiaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",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="grey",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.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",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.sectionBkgColor=(0,xe.rgba)(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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var e,r;return e=t,r=[{key:"updateColors",value:function(){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=(0,xe.lighten)(this.border1,23),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.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,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=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,xe.adjust)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,xe.adjust)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,xe.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,xe.adjust)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,xe.adjust)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,xe.adjust)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,xe.adjust)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,xe.adjust)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,xe.adjust)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,xe.adjust)(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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var f=this;if(Lf(o)==="object"){var p=Object.keys(o);p.forEach(function(m){f[m]=o[m]}),this.updateColors(),p.forEach(function(m){f[m]=o[m]})}else this.updateColors()}}],r&&If(e.prototype,r),t}();function Ac(t){return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ac(t)}function Ry(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var g_=function(){function t(){(function(o,f){if(!(o instanceof f))throw new TypeError("Cannot call a class as a function")})(this,t),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=(0,xe.lighten)("#cde498",10),this.primaryBorderColor=na(this.primaryColor,this.darkMode),this.secondaryBorderColor=na(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=na(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.primaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(this.background),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="grey",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.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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=(0,xe.darken)(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.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=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.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=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(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||(0,xe.adjust)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,xe.adjust)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,xe.adjust)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,xe.adjust)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,xe.adjust)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,xe.adjust)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,xe.adjust)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,xe.adjust)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,xe.adjust)(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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var f=this;if(Ac(o)==="object"){var p=Object.keys(o);p.forEach(function(m){f[m]=o[m]}),this.updateColors(),p.forEach(function(m){f[m]=o[m]})}else this.updateColors()}}],r&&Ry(e.prototype,r),t}();function Hl(t){return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hl(t)}function Fy(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var y_=function(){function t(){(function(o,f){if(!(o instanceof f))throw new TypeError("Cannot call a class as a function")})(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,xe.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,xe.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=na(this.primaryColor,this.darkMode),this.secondaryBorderColor=na(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=na(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,xe.invert)(this.primaryColor),this.secondaryTextColor=(0,xe.invert)(this.secondaryColor),this.tertiaryTextColor=(0,xe.invert)(this.tertiaryColor),this.lineColor=(0,xe.invert)(this.background),this.textColor=(0,xe.invert)(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.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="calculated",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.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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=(0,xe.lighten)(this.contrast,55),this.border2=this.contrast,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.actorBorder=(0,xe.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,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.sectionBkgColor=(0,xe.lighten)(this.contrast,30),this.sectionBkgColor2=(0,xe.lighten)(this.contrast,30),this.taskBorderColor=(0,xe.darken)(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=(0,xe.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,xe.darken)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,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=(0,xe.adjust)(this.primaryColor,{h:64}),this.fillType3=(0,xe.adjust)(this.secondaryColor,{h:64}),this.fillType4=(0,xe.adjust)(this.primaryColor,{h:-64}),this.fillType5=(0,xe.adjust)(this.secondaryColor,{h:-64}),this.fillType6=(0,xe.adjust)(this.primaryColor,{h:128}),this.fillType7=(0,xe.adjust)(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor}},{key:"calculate",value:function(o){var f=this;if(Hl(o)==="object"){var p=Object.keys(o);p.forEach(function(m){f[m]=o[m]}),this.updateColors(),p.forEach(function(m){f[m]=o[m]})}else this.updateColors()}}],r&&Fy(e.prototype,r),t}();const oi={base:{getThemeVariables:function(t){var e=new Ly;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new Iy;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new p_;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new g_;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new y_;return e.calculate(t),e}}};function Py(t){return function(e){if(Array.isArray(e))return Yy(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,r){if(e){if(typeof e=="string")return Yy(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Yy(e,r):void 0}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function mr(t){return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mr(t)}var $l={theme:"default",themeVariables:oi.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{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,useMaxWidth:!0,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,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,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"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},state:{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,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,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}};$l.class.arrowMarkerAbsolute=$l.arrowMarkerAbsolute,$l.git.arrowMarkerAbsolute=$l.arrowMarkerAbsolute;var Rf=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(e).reduce(function(o,f){return Array.isArray(e[f])?o:mr(e[f])==="object"&&e[f]!==null?[].concat(Py(o),[r+f],Py(t(e[f],""))):[].concat(Py(o),[r+f])},[])}($l,"");const Ff=$l;var Ex=void 0;function Sx(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function m_(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=jy(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var o=0,f=function(){};return{s:f,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(S){throw S},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,m=!0,b=!1;return{s:function(){r=r.call(t)},n:function(){var S=r.next();return m=S.done,S},e:function(S){b=!0,p=S},f:function(){try{m||r.return==null||r.return()}finally{if(b)throw p}}}}function mo(t){return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mo(t)}function v_(t){return function(e){if(Array.isArray(e))return s0(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||jy(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function jy(t,e){if(t){if(typeof t=="string")return s0(t,e);var r=Object.prototype.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)?s0(t,e):void 0}}function s0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var c0,Cx={curveBasis:jr,curveBasisClosed:function(t){return new ba(t)},curveBasisOpen:function(t){return new ai(t)},curveLinear:ho,curveLinearClosed:function(t){return new Ia(t)},curveMonotoneX:function(t){return new Lo(t)},curveMonotoneY:function(t){return new os(t)},curveNatural:function(t){return new qh(t)},curveStep:function(t){return new fu(t,.5)},curveStepAfter:function(t){return new fu(t,1)},curveStepBefore:function(t){return new fu(t,0)}},u0=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,__=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Mx=/\s*%%.*\n/gm,Uy=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var r=new RegExp("[%]{2}(?![{]".concat(__.source,`)(?=[}][%]{2}).*
|
|
`),"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),y.debug("Detecting diagram directive".concat(e!==null?" type:"+e:""," based on the text:").concat(t));for(var o,f=[];(o=u0.exec(t))!==null;)if(o.index===u0.lastIndex&&u0.lastIndex++,o&&!e||e&&o[1]&&o[1].match(e)||e&&o[2]&&o[2].match(e)){var p=o[1]?o[1]:o[2],m=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;f.push({type:p,args:m})}return f.length===0&&f.push({type:t,args:null}),f.length===1?f[0]:f}catch(b){return y.error("ERROR: ".concat(b.message,` - Unable to parse directive
|
|
`).concat(e!==null?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},b_=function(t,e){return(t=t.replace(u0,"").replace(Mx,`
|
|
`)).match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?e&&e.class&&e.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?e&&e.class&&e.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state":t.match(/^\s*gitGraph/)?"git":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":t.match(/^\s*requirement/)||t.match(/^\s*requirementDiagram/)?"requirement":e&&e.flowchart&&e.flowchart.defaultRenderer==="dagre-wrapper"?"flowchart-v2":"flowchart"},l0=function(t,e){var r={};return function(){for(var o=arguments.length,f=new Array(o),p=0;p<o;p++)f[p]=arguments[p];var m=e?e.apply(Ex,f):f[0];if(m in r)return r[m];var b=t.apply(void 0,f);return r[m]=b,b}},$o=function(t,e){if(!t)return e;var r="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return Cx[r]||e},ql=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},Dc=function(t){for(var e="",r="",o=0;o<t.length;o++)t[o]!==void 0&&(t[o].startsWith("color:")||t[o].startsWith("text-align:")?r=r+t[o]+";":e=e+t[o]+";");return{style:e,labelStyle:r}},x_=0,w_=function(){return x_++,"id-"+Math.random().toString(36).substr(2,12)+"-"+x_},zy=function(t){return function(e){for(var r="",o="0123456789abcdef",f=o.length,p=0;p<e;p++)r+=o.charAt(Math.floor(Math.random()*f));return r}(t.length)},Vi=function t(e,r,o){var f=Object.assign({depth:2,clobber:!1},o),p=f.depth,m=f.clobber;return Array.isArray(r)&&!Array.isArray(e)?(r.forEach(function(b){return t(e,b,o)}),e):Array.isArray(r)&&Array.isArray(e)?(r.forEach(function(b){e.indexOf(b)===-1&&e.push(b)}),e):e===void 0||p<=0?e!=null&&mo(e)==="object"&&mo(r)==="object"?Object.assign(e,r):r:(r!==void 0&&mo(e)==="object"&&mo(r)==="object"&&Object.keys(r).forEach(function(b){mo(r[b])!=="object"||e[b]!==void 0&&mo(e[b])!=="object"?(m||mo(e[b])!=="object"&&mo(r[b])!=="object")&&(e[b]=r[b]):(e[b]===void 0&&(e[b]=Array.isArray(r[b])?[]:{}),e[b]=t(e[b],r[b],{depth:p-1,clobber:m}))}),e)},Ax=function(t,e){var r=e.text.replace(Hr.lineBreakRegex," "),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",e.fontSize),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0&&o.attr("class",e.class);var f=o.append("tspan");return f.attr("x",e.x+2*e.textMargin),f.attr("fill",e.fill),f.text(r),o},Dx=l0(function(t,e,r){if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Hr.lineBreakRegex.test(t)))return t;var o=t.split(" "),f=[],p="";return o.forEach(function(m,b){var S=h0("".concat(m," "),r),E=h0(p,r);if(S>e){var O=k_(m,e,"-",r),j=O.hyphenatedStrings,F=O.remainingWord;f.push.apply(f,[p].concat(v_(j))),p=F}else E+S>=e?(f.push(p),p=m):p=[p,m].filter(Boolean).join(" ");b+1===o.length&&f.push(p)}),f.filter(function(m){return m!==""}).join(r.joinWith)},function(t,e,r){return"".concat(t,"-").concat(e,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily,"-").concat(r.joinWith)}),k_=l0(function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",o=arguments.length>3?arguments[3]:void 0;o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},o);var f=t.split(""),p=[],m="";return f.forEach(function(b,S){var E="".concat(m).concat(b);if(h0(E,o)>=e){var O=S+1,j=f.length===O,F="".concat(E).concat(r);p.push(j?E:F),m=""}else m=E}),{hyphenatedStrings:p,remainingWord:m}},function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",o=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(r,"-").concat(o.fontSize,"-").concat(o.fontWeight,"-").concat(o.fontFamily)}),h0=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),Wy(t,e).width},Wy=l0(function(t,e){var r=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),o=r.fontSize,f=r.fontFamily,p=r.fontWeight;if(!t)return{width:0,height:0};var m=["sans-serif",f],b=t.split(Hr.lineBreakRegex),S=[],E=Ce("body");if(!E.remove)return{width:0,height:0,lineHeight:0};for(var O=E.append("svg"),j=0,F=m;j<F.length;j++){var U,ot=F[j],vt=0,_t={width:0,height:0,lineHeight:0},xt=m_(b);try{for(xt.s();!(U=xt.n()).done;){var mt=U.value,st={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};st.text=mt;var qt=Ax(O,st).style("font-size",o).style("font-weight",p).style("font-family",ot),At=(qt._groups||qt)[0][0].getBBox();_t.width=Math.round(Math.max(_t.width,At.width)),vt=Math.round(At.height),_t.height+=vt,_t.lineHeight=Math.round(Math.max(_t.lineHeight,vt))}}catch(pt){xt.e(pt)}finally{xt.f()}S.push(_t)}return O.remove(),S[isNaN(S[1].height)||isNaN(S[1].width)||isNaN(S[1].lineHeight)||S[0].height>S[1].height&&S[0].width>S[1].width&&S[0].lineHeight>S[1].lineHeight?0:1]},function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)}),T_=function(t,e,r){var o=new Map;return o.set("height",t),r?(o.set("width","100%"),o.set("style","max-width: ".concat(e,"px;"))):o.set("width",e),o},no=function(t,e,r,o){(function(f,p){var m,b=m_(p);try{for(b.s();!(m=b.n()).done;){var S=m.value;f.attr(S[0],S[1])}}catch(E){b.e(E)}finally{b.f()}})(t,T_(e,r,o))},Hy=function t(e){y.debug("directiveSanitizer called with",e),mo(e)==="object"&&(e.length?e.forEach(function(r){return t(r)}):Object.keys(e).forEach(function(r){y.debug("Checking key",r),r.indexOf("__")===0&&(y.debug("sanitize deleting __ option",r),delete e[r]),r.indexOf("proto")>=0&&(y.debug("sanitize deleting proto option",r),delete e[r]),r.indexOf("constr")>=0&&(y.debug("sanitize deleting constr option",r),delete e[r]),Rf.indexOf(r)<0?(y.debug("sanitize deleting option",r),delete e[r]):mo(e[r])==="object"&&(y.debug("sanitize deleting object",r),t(e[r]))}))};const Jn={assignWithDepth:Vi,wrapLabel:Dx,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),Wy(t,e).height},calculateTextWidth:h0,calculateTextDimensions:Wy,calculateSvgSizeAttrs:T_,configureSvgSize:no,detectInit:function(t,e){var r=Uy(t,/(?:init\b)|(?:initialize\b)/),o={};if(Array.isArray(r)){var f=r.map(function(m){return m.args});Hy(f),o=Vi(o,v_(f))}else o=r.args;if(o){var p=b_(t,e);["config"].forEach(function(m){o[m]!==void 0&&(p==="flowchart-v2"&&(p="flowchart"),o[p]=o[m],delete o[m])})}return o},detectDirective:Uy,detectType:b_,isSubstringInArray:function(t,e){for(var r=0;r<e.length;r++)if(e[r].match(t))return r;return-1},interpolateToCurve:$o,calcLabelPosition:function(t){return function(e){var r,o=0;e.forEach(function(m){o+=ql(m,r),r=m});var f=o/2,p=void 0;return r=void 0,e.forEach(function(m){if(r&&!p){var b=ql(m,r);if(b<f)f-=b;else{var S=f/b;S<=0&&(p=r),S>=1&&(p={x:m.x,y:m.y}),S>0&&S<1&&(p={x:(1-S)*r.x+S*m.x,y:(1-S)*r.y+S*m.y})}}r=m}),p}(t)},calcCardinalityPosition:function(t,e,r){var o;y.info("our points",e),e[0]!==r&&(e=e.reverse()),e.forEach(function(E){ql(E,o),o=E});var f,p=25;o=void 0,e.forEach(function(E){if(o&&!f){var O=ql(E,o);if(O<p)p-=O;else{var j=p/O;j<=0&&(f=o),j>=1&&(f={x:E.x,y:E.y}),j>0&&j<1&&(f={x:(1-j)*o.x+j*E.x,y:(1-j)*o.y+j*E.y})}}o=E});var m=t?10:5,b=Math.atan2(e[0].y-f.y,e[0].x-f.x),S={x:0,y:0};return S.x=Math.sin(b)*m+(e[0].x+f.x)/2,S.y=-Math.cos(b)*m+(e[0].y+f.y)/2,S},calcTerminalLabelPosition:function(t,e,r){var o,f=JSON.parse(JSON.stringify(r));y.info("our points",f),e!=="start_left"&&e!=="start_right"&&(f=f.reverse()),f.forEach(function(O){ql(O,o),o=O});var p,m=25+t;o=void 0,f.forEach(function(O){if(o&&!p){var j=ql(O,o);if(j<m)m-=j;else{var F=m/j;F<=0&&(p=o),F>=1&&(p={x:O.x,y:O.y}),F>0&&F<1&&(p={x:(1-F)*o.x+F*O.x,y:(1-F)*o.y+F*O.y})}}o=O});var b=10+.5*t,S=Math.atan2(f[0].y-p.y,f[0].x-p.x),E={x:0,y:0};return E.x=Math.sin(S)*b+(f[0].x+p.x)/2,E.y=-Math.cos(S)*b+(f[0].y+p.y)/2,e==="start_left"&&(E.x=Math.sin(S+Math.PI)*b+(f[0].x+p.x)/2,E.y=-Math.cos(S+Math.PI)*b+(f[0].y+p.y)/2),e==="end_right"&&(E.x=Math.sin(S-Math.PI)*b+(f[0].x+p.x)/2-5,E.y=-Math.cos(S-Math.PI)*b+(f[0].y+p.y)/2-5),e==="end_left"&&(E.x=Math.sin(S)*b+(f[0].x+p.x)/2-5,E.y=-Math.cos(S)*b+(f[0].y+p.y)/2-5),E},formatUrl:function(t,e){var r=t.trim();if(r)return e.securityLevel!=="loose"?(0,By.sanitizeUrl)(r):r},getStylesFromArray:Dc,generateId:w_,random:zy,memoize:l0,runFunc:function(t){for(var e,r=t.split("."),o=r.length-1,f=r[o],p=window,m=0;m<o;m++)if(!(p=p[r[m]]))return;for(var b=arguments.length,S=new Array(b>1?b-1:0),E=1;E<b;E++)S[E-1]=arguments[E];(e=p)[f].apply(e,S)},entityDecode:function(t){return c0=c0||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),c0.innerHTML=t,unescape(c0.textContent)},initIdGeneratior:function(){function t(o,f){(function(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")})(this,t),this.deterministic=o,this.seed=f,this.count=f?f.length:0}var e,r;return e=t,(r=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&Sx(e.prototype,r),t}(),directiveSanitizer:Hy};function f0(t){return f0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f0(t)}var E_,Pf=Object.freeze(Ff),Gi=Vi({},Pf),Yf=[],d0=Vi({},Pf),p0=function(t,e){for(var r=Vi({},t),o={},f=0;f<e.length;f++){var p=e[f];C_(p),o=Vi(o,p)}if(r=Vi(r,o),o.theme){var m=Vi({},E_),b=Vi(m.themeVariables||{},o.themeVariables);r.themeVariables=oi[r.theme].getThemeVariables(b)}return d0=r,r},S_=function(){return Vi({},Gi)},se=function(){return Vi({},d0)},C_=function t(e){Object.keys(Gi.secure).forEach(function(r){e[Gi.secure[r]]!==void 0&&(y.debug("Denied attempt to modify a secure key ".concat(Gi.secure[r]),e[Gi.secure[r]]),delete e[Gi.secure[r]])}),Object.keys(e).forEach(function(r){r.indexOf("__")===0&&delete e[r]}),Object.keys(e).forEach(function(r){typeof e[r]=="string"&&(e[r].indexOf("<")>-1||e[r].indexOf(">")>-1||e[r].indexOf("url(data:")>-1)&&delete e[r],f0(e[r])==="object"&&t(e[r])})},M_=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),Yf.push(t),p0(Gi,Yf)},g0=function(){p0(Gi,Yf=[])};function $y(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var y0="classid-",qy=[],Xi={},A_=0,m0=[],jf=function(t){var e="",r=t;if(t.indexOf("~")>0){var o=t.split("~");r=o[0],e=o[1]}return{className:r,type:e}},Vy=function(t){var e=jf(t);Xi[e.className]===void 0&&(Xi[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:y0+e.className+"-"+A_},A_++)},Uf=function(t){for(var e=Object.keys(Xi),r=0;r<e.length;r++)if(Xi[e[r]].id===t)return Xi[e[r]].domId},D_=function(t,e){var r=jf(t).className,o=Xi[r];if(typeof e=="string"){var f=e.trim();f.startsWith("<<")&&f.endsWith(">>")?o.annotations.push(f.substring(2,f.length-2)):f.indexOf(")")>0?o.methods.push(f):f&&o.members.push(f)}},Gy=function(t,e){t.split(",").forEach(function(r){var o=r;r[0].match(/\d/)&&(o=y0+o),Xi[o]!==void 0&&Xi[o].cssClasses.push(e)})},Nx=function(t,e,r){var o=se(),f=t,p=Uf(f);if(o.securityLevel==="loose"&&e!==void 0&&Xi[f]!==void 0){var m=[];if(typeof r=="string"){m=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var b=0;b<m.length;b++){var S=m[b].trim();S.charAt(0)==='"'&&S.charAt(S.length-1)==='"'&&(S=S.substr(1,S.length-2)),m[b]=S}}m.length===0&&m.push(p),m0.push(function(){var E=document.querySelector('[id="'.concat(p,'"]'));E!==null&&E.addEventListener("click",function(){var O;Jn.runFunc.apply(Jn,[e].concat(function(j){if(Array.isArray(j))return $y(j)}(O=m)||function(j){if(typeof Symbol!="undefined"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}(O)||function(j,F){if(j){if(typeof j=="string")return $y(j,F);var U=Object.prototype.toString.call(j).slice(8,-1);return U==="Object"&&j.constructor&&(U=j.constructor.name),U==="Map"||U==="Set"?Array.from(j):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?$y(j,F):void 0}}(O)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)})}},zf={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},N_=function(t){var e=Ce(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Ce("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Ce(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=Ce(this);if(r.attr("title")!==null){var o=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(r.attr("title")).style("left",window.scrollX+o.left+(o.right-o.left)/2+"px").style("top",window.scrollY+o.top-14+document.body.scrollTop+"px"),r.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Ce(this).classed("hover",!1)})};m0.push(N_);var O_="TB";const ps={parseDirective:function(t,e,r){oa.parseDirective(this,t,e,r)},getConfig:function(){return se().class},addClass:Vy,bindFunctions:function(t){m0.forEach(function(e){e(t)})},clear:function(){qy=[],Xi={},(m0=[]).push(N_)},getClass:function(t){return Xi[t]},getClasses:function(){return Xi},addAnnotation:function(t,e){var r=jf(t).className;Xi[r].annotations.push(e)},getRelations:function(){return qy},addRelation:function(t){y.debug("Adding relation: "+JSON.stringify(t)),Vy(t.id1),Vy(t.id2),t.id1=jf(t.id1).className,t.id2=jf(t.id2).className,qy.push(t)},getDirection:function(){return O_},setDirection:function(t){O_=t},addMember:D_,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(function(r){return D_(t,r)}))},cleanupLabel:function(t){return t.substring(0,1)===":"?t.substr(1).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:zf,setClickEvent:function(t,e,r){t.split(",").forEach(function(o){Nx(o,e,r),Xi[o].haveCallback=!0}),Gy(t,"clickable")},setCssClass:Gy,setLink:function(t,e,r){var o=se();t.split(",").forEach(function(f){var p=f;f[0].match(/\d/)&&(p=y0+p),Xi[p]!==void 0&&(Xi[p].link=Jn.formatUrl(e,o),Xi[p].linkTarget=typeof r=="string"?r:"_blank")}),Gy(t,"clickable")},setTooltip:function(t,e){var r=se();t.split(",").forEach(function(o){e!==void 0&&(Xi[o].tooltip=Hr.sanitizeText(e,r))})},lookUpDomId:Uf};var Ox=s(681),Vl=s.n(Ox),B_=s(8282),Si=s.n(B_),Su=s(633),Xy=s.n(Su),L_=0,Zy=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),r=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!r?Qy(e):r?Bx(r):I_(t)},Qy=function(t){var e="",r="";try{var o=t[1]?t[1].trim():"",f=t[2]?t[2].trim():"",p=t[3]?Gl(t[3].trim()):"",m=t[4]?t[4].trim():"",b=t[5]?t[5].trim():"";r=o+f+p+" "+m,e=v0(b)}catch(S){r=t}return{displayText:r,cssStyle:e}},Bx=function(t){var e="",r="";try{var o=t[1]?t[1].trim():"",f=t[2]?t[2].trim():"",p=t[3]?Gl(t[3].trim()):"",m=t[4]?t[4].trim():"";r=o+f+"("+p+")"+(t[5]?" : "+Gl(t[5]).trim():""),e=v0(m)}catch(b){r=t}return{displayText:r,cssStyle:e}},I_=function(t){var e="",r="",o="",f=t.indexOf("("),p=t.indexOf(")");if(f>1&&p>f&&p<=t.length){var m="",b="",S=t.substring(0,1);S.match(/\w/)?b=t.substring(0,f).trim():(S.match(/\+|-|~|#/)&&(m=S),b=t.substring(1,f).trim());var E=t.substring(f+1,p),O=t.substring(p+1,1);r=v0(O),e=m+b+"("+Gl(E.trim())+")",p<"".length&&(o=t.substring(p+2).trim())!==""&&(o=" : "+Gl(o))}else e=Gl(t);return{displayText:e,cssStyle:r}},Jy=function(t,e,r,o){var f=Zy(e),p=t.append("tspan").attr("x",o.padding).text(f.displayText);f.cssStyle!==""&&p.attr("style",f.cssStyle),r||p.attr("dy",o.textHeight)},Gl=function t(e){var r=e;return e.indexOf("~")!=-1?t(r=(r=r.replace("~","<")).replace("~",">")):r},v0=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const R_=function(t,e,r){y.info("Rendering class "+e);var o,f=e.id,p={id:f,label:e.id,width:0,height:0},m=t.append("g").attr("id",Uf(f)).attr("class","classGroup");o=e.link?m.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):m.append("text").attr("y",r.textHeight+r.padding).attr("x",0);var b=!0;e.annotations.forEach(function(st){var qt=o.append("tspan").text("\xAB"+st+"\xBB");b||qt.attr("dy",r.textHeight),b=!1});var S=e.id;e.type!==void 0&&e.type!==""&&(S+="<"+e.type+">");var E=o.append("tspan").text(S).attr("class","title");b||E.attr("dy",r.textHeight);var O=o.node().getBBox().height,j=m.append("line").attr("x1",0).attr("y1",r.padding+O+r.dividerMargin/2).attr("y2",r.padding+O+r.dividerMargin/2),F=m.append("text").attr("x",r.padding).attr("y",O+r.dividerMargin+r.textHeight).attr("fill","white").attr("class","classText");b=!0,e.members.forEach(function(st){Jy(F,st,b,r),b=!1});var U=F.node().getBBox(),ot=m.append("line").attr("x1",0).attr("y1",r.padding+O+r.dividerMargin+U.height).attr("y2",r.padding+O+r.dividerMargin+U.height),vt=m.append("text").attr("x",r.padding).attr("y",O+2*r.dividerMargin+U.height+r.textHeight).attr("fill","white").attr("class","classText");b=!0,e.methods.forEach(function(st){Jy(vt,st,b,r),b=!1});var _t=m.node().getBBox(),xt=" ";e.cssClasses.length>0&&(xt+=e.cssClasses.join(" "));var mt=m.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",_t.width+2*r.padding).attr("height",_t.height+r.padding+.5*r.dividerMargin).attr("class",xt).node().getBBox().width;return o.node().childNodes.forEach(function(st){st.setAttribute("x",(mt-st.getBBox().width)/2)}),e.tooltip&&o.insert("title").text(e.tooltip),j.attr("x2",mt),ot.attr("x2",mt),p.width=mt,p.height=_t.height+r.padding+.5*r.dividerMargin,p};Su.parser.yy=ps;var _0={},Wf={dividerMargin:10,padding:5,textHeight:10},Hf=function(t){for(var e=Object.keys(_0),r=0;r<e.length;r++)if(_0[e[r]].label===t)return e[r]};const F_=function(t){Object.keys(t).forEach(function(e){Wf[e]=t[e]})},Lx=function(t,e){_0={},Su.parser.yy.clear(),Su.parser.parse(t),y.info("Rendering diagram "+t);var r,o=Ce("[id='".concat(e,"']"));o.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(r=o).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var f=new(Si()).Graph({multigraph:!0});f.setGraph({isMultiGraph:!0}),f.setDefaultEdgeLabel(function(){return{}});for(var p=ps.getClasses(),m=Object.keys(p),b=0;b<m.length;b++){var S=p[m[b]],E=R_(o,S,Wf);_0[E.id]=E,f.setNode(E.id,E),y.info("Org height: "+E.height)}ps.getRelations().forEach(function(ot){y.info("tjoho"+Hf(ot.id1)+Hf(ot.id2)+JSON.stringify(ot)),f.setEdge(Hf(ot.id1),Hf(ot.id2),{relation:ot},ot.title||"DEFAULT")}),Vl().layout(f),f.nodes().forEach(function(ot){ot!==void 0&&f.node(ot)!==void 0&&(y.debug("Node "+ot+": "+JSON.stringify(f.node(ot))),Ce("#"+Uf(ot)).attr("transform","translate("+(f.node(ot).x-f.node(ot).width/2)+","+(f.node(ot).y-f.node(ot).height/2)+" )"))}),f.edges().forEach(function(ot){ot!==void 0&&f.edge(ot)!==void 0&&(y.debug("Edge "+ot.v+" -> "+ot.w+": "+JSON.stringify(f.edge(ot))),function(vt,_t,xt,mt){var st=function(fn){switch(fn){case zf.AGGREGATION:return"aggregation";case zf.EXTENSION:return"extension";case zf.COMPOSITION:return"composition";case zf.DEPENDENCY:return"dependency"}};_t.points=_t.points.filter(function(fn){return!Number.isNaN(fn.y)});var qt,At,pt=_t.points,Lt=fo().x(function(fn){return fn.x}).y(function(fn){return fn.y}).curve(jr),te=vt.append("path").attr("d",Lt(pt)).attr("id","edge"+L_).attr("class","relation"),Et="";mt.arrowMarkerAbsolute&&(Et=(Et=(Et=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),xt.relation.lineType==1&&te.attr("class","relation dashed-line"),xt.relation.type1!=="none"&&te.attr("marker-start","url("+Et+"#"+st(xt.relation.type1)+"Start)"),xt.relation.type2!=="none"&&te.attr("marker-end","url("+Et+"#"+st(xt.relation.type2)+"End)");var bt,Ut,St,Jt,yt=_t.points.length,fe=Jn.calcLabelPosition(_t.points);if(qt=fe.x,At=fe.y,yt%2!=0&&yt>1){var we=Jn.calcCardinalityPosition(xt.relation.type1!=="none",_t.points,_t.points[0]),_e=Jn.calcCardinalityPosition(xt.relation.type2!=="none",_t.points,_t.points[yt-1]);y.debug("cardinality_1_point "+JSON.stringify(we)),y.debug("cardinality_2_point "+JSON.stringify(_e)),bt=we.x,Ut=we.y,St=_e.x,Jt=_e.y}if(xt.title!==void 0){var Re=vt.append("g").attr("class","classLabel"),We=Re.append("text").attr("class","label").attr("x",qt).attr("y",At).attr("fill","red").attr("text-anchor","middle").text(xt.title);window.label=We;var Ue=We.node().getBBox();Re.insert("rect",":first-child").attr("class","box").attr("x",Ue.x-mt.padding/2).attr("y",Ue.y-mt.padding/2).attr("width",Ue.width+mt.padding).attr("height",Ue.height+mt.padding)}y.info("Rendering relation "+JSON.stringify(xt)),xt.relationTitle1!==void 0&&xt.relationTitle1!=="none"&&vt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",bt).attr("y",Ut).attr("fill","black").attr("font-size","6").text(xt.relationTitle1),xt.relationTitle2!==void 0&&xt.relationTitle2!=="none"&&vt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",St).attr("y",Jt).attr("fill","black").attr("font-size","6").text(xt.relationTitle2),L_++}(o,f.edge(ot),f.edge(ot).relation,Wf))});var O=o.node().getBBox(),j=O.width+40,F=O.height+40;no(o,F,j,Wf.useMaxWidth);var U="".concat(O.x-20," ").concat(O.y-20," ").concat(j," ").concat(F);y.debug("viewBox ".concat(U)),o.attr("viewBox",U)};var b0={extension:function(t,e,r){y.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(t,e){t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(t,e){t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(t,e){t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(t,e){t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(t,e){t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(t,e){t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(t,e){t.append("defs").append("marker").attr("id",e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};const Nc=function(t,e,r,o){e.forEach(function(f){b0[f](t,r,o)})};function x0(t){return x0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x0(t)}const ka=function(t,e,r,o){var f,p,m,b,S,E,O=t||"";if(x0(O)==="object"&&(O=O[0]),ea(se().flowchart.htmlLabels))return O=O.replace(/\\n|\n/g,"<br />"),y.info("vertexText"+O),f={isNode:o,label:O.replace(/fa[lrsb]?:fa-[\w-]+/g,function(vt){return"<i class='".concat(vt.replace(":"," "),"'></i>")}),labelStyle:e.replace("fill:","color:")},m=Ce(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),b=m.append("xhtml:div"),S=f.label,E=f.isNode?"nodeLabel":"edgeLabel",b.html('<span class="'+E+'" '+(f.labelStyle?'style="'+f.labelStyle+'"':"")+">"+S+"</span>"),(p=f.labelStyle)&&b.attr("style",p),b.style("display","inline-block"),b.style("white-space","nowrap"),b.attr("xmlns","http://www.w3.org/1999/xhtml"),m.node();var j=document.createElementNS("http://www.w3.org/2000/svg","text");j.setAttribute("style",e.replace("color:","fill:"));var F=[];F=typeof O=="string"?O.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(O)?O:[];for(var U=0;U<F.length;U++){var ot=document.createElementNS("http://www.w3.org/2000/svg","tspan");ot.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ot.setAttribute("dy","1em"),ot.setAttribute("x","0"),r?ot.setAttribute("class","title-row"):ot.setAttribute("class","row"),ot.textContent=F[U].trim(),j.appendChild(ot)}return j};var Ta=function(t,e,r,o){var f;f=r||"node default";var p=t.insert("g").attr("class",f).attr("id",e.domId||e.id),m=p.insert("g").attr("class","label").attr("style",e.labelStyle),b=m.node().appendChild(ka(e.labelText,e.labelStyle,!1,o)),S=b.getBBox();if(ea(se().flowchart.htmlLabels)){var E=b.children[0],O=Ce(b);S=E.getBoundingClientRect(),O.attr("width",S.width),O.attr("height",S.height)}var j=e.padding/2;return m.attr("transform","translate("+-S.width/2+", "+-S.height/2+")"),{shapeSvg:p,bbox:S,halfPadding:j,label:m}},bi=function(t,e){var r=e.node().getBBox();t.width=r.width,t.height=r.height};function Xs(t,e,r,o){return t.insert("polygon",":first-child").attr("points",o.map(function(f){return f.x+","+f.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var vr={},Pa={},Ky={},$f=function(t,e){return y.trace("In isDecendant",e," ",t," = ",Pa[e].indexOf(t)>=0),Pa[e].indexOf(t)>=0},P_=function t(e,r,o,f){y.warn("Copying children of ",e,"root",f,"data",r.node(e),f);var p=r.children(e)||[];e!==f&&p.push(e),y.warn("Copying (nodes) clusterId",e,"nodes",p),p.forEach(function(m){if(r.children(m).length>0)t(m,r,o,f);else{var b=r.node(m);y.info("cp ",m," to ",f," with parent ",e),o.setNode(m,b),f!==r.parent(m)&&(y.warn("Setting parent",m,r.parent(m)),o.setParent(m,r.parent(m))),e!==f&&m!==e?(y.debug("Setting parent",m,e),o.setParent(m,e)):(y.info("In copy ",e,"root",f,"data",r.node(e),f),y.debug("Not Setting parent for node=",m,"cluster!==rootId",e!==f,"node!==clusterId",m!==e));var S=r.edges(m);y.debug("Copying Edges",S),S.forEach(function(E){y.info("Edge",E);var O=r.edge(E.v,E.w,E.name);y.info("Edge data",O,f);try{(function(j,F){return y.info("Decendants of ",F," is ",Pa[F]),y.info("Edge is ",j),j.v!==F&&j.w!==F&&(Pa[F]?(y.info("Here "),Pa[F].indexOf(j.v)>=0||!!$f(j.v,F)||!!$f(j.w,F)||Pa[F].indexOf(j.w)>=0):(y.debug("Tilt, ",F,",not in decendants"),!1))})(E,f)?(y.info("Copying as ",E.v,E.w,O,E.name),o.setEdge(E.v,E.w,O,E.name),y.info("newGraph edges ",o.edges(),o.edge(o.edges()[0]))):y.info("Skipping copy of edge ",E.v,"-->",E.w," rootId: ",f," clusterId:",e)}catch(j){y.error(j)}})}y.debug("Removing node",m),r.removeNode(m)})},t2=function t(e,r){for(var o=r.children(e),f=[].concat(o),p=0;p<o.length;p++)Ky[o[p]]=e,f=f.concat(t(o[p],r));return f},w0=function t(e,r){y.trace("Searching",e);var o=r.children(e);if(y.trace("Searching children of id ",e,o),o.length<1)return y.trace("This is a valid node",e),e;for(var f=0;f<o.length;f++){var p=t(o[f],r);if(p)return y.trace("Found replacement for",e," => ",p),p}},Vn=function(t){return vr[t]&&vr[t].externalConnections&&vr[t]?vr[t].id:t},Ix=function(t,e){!t||e>10?y.debug("Opting out, no graph "):(y.debug("Opting in, graph "),t.nodes().forEach(function(r){t.children(r).length>0&&(y.warn("Cluster identified",r," Replacement id in edges: ",w0(r,t)),Pa[r]=t2(r,t),vr[r]={id:w0(r,t),clusterData:t.node(r)})}),t.nodes().forEach(function(r){var o=t.children(r),f=t.edges();o.length>0?(y.debug("Cluster identified",r,Pa),f.forEach(function(p){p.v!==r&&p.w!==r&&$f(p.v,r)^$f(p.w,r)&&(y.warn("Edge: ",p," leaves cluster ",r),y.warn("Decendants of XXX ",r,": ",Pa[r]),vr[r].externalConnections=!0)})):y.debug("Not a cluster ",r,Pa)}),t.edges().forEach(function(r){var o=t.edge(r);y.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),y.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));var f=r.v,p=r.w;y.warn("Fix XXX",vr,"ids:",r.v,r.w,"Translateing: ",vr[r.v]," --- ",vr[r.w]),(vr[r.v]||vr[r.w])&&(y.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),f=Vn(r.v),p=Vn(r.w),t.removeEdge(r.v,r.w,r.name),f!==r.v&&(o.fromCluster=r.v),p!==r.w&&(o.toCluster=r.w),y.warn("Fix Replacing with XXX",f,p,r.name),t.setEdge(f,p,o,r.name))}),y.warn("Adjusted Graph",Si().json.write(t)),Rx(t,0),y.trace(vr))},Rx=function t(e,r){if(y.warn("extractor - ",r,Si().json.write(e),e.children("D")),r>10)y.error("Bailing out");else{for(var o=e.nodes(),f=!1,p=0;p<o.length;p++){var m=o[p],b=e.children(m);f=f||b.length>0}if(f){y.debug("Nodes = ",o,r);for(var S=0;S<o.length;S++){var E=o[S];if(y.debug("Extracting node",E,vr,vr[E]&&!vr[E].externalConnections,!e.parent(E),e.node(E),e.children("D")," Depth ",r),vr[E])if(!vr[E].externalConnections&&e.children(E)&&e.children(E).length>0){y.warn("Cluster without external connections, without a parent and with children",E,r);var O=e.graph().rankdir==="TB"?"LR":"TB";vr[E]&&vr[E].clusterData&&vr[E].clusterData.dir&&(O=vr[E].clusterData.dir,y.warn("Fixing dir",vr[E].clusterData.dir,O));var j=new(Si()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:O,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});y.warn("Old graph before copy",Si().json.write(e)),P_(E,e,j,E),e.setNode(E,{clusterNode:!0,id:E,clusterData:vr[E].clusterData,labelText:vr[E].labelText,graph:j}),y.warn("New graph after copy node: (",E,")",Si().json.write(j)),y.debug("Old graph after copy",Si().json.write(e))}else y.warn("Cluster ** ",E," **not meeting the criteria !externalConnections:",!vr[E].externalConnections," no parent: ",!e.parent(E)," children ",e.children(E)&&e.children(E).length>0,e.children("D"),r),y.debug(vr);else y.debug("Not a cluster",E,r)}o=e.nodes(),y.warn("New list of nodes",o);for(var F=0;F<o.length;F++){var U=o[F],ot=e.node(U);y.warn(" Now next level",U,ot),ot.clusterNode&&t(ot.graph,r+1)}}else y.debug("Done, no node has children",e.nodes())}},Fx=function t(e,r){if(r.length===0)return[];var o=Object.assign(r);return r.forEach(function(f){var p=e.children(f),m=t(e,p);o=o.concat(m)}),o},Px=function(t){return Fx(t,t.children())},Yx=s(3841);const jx=function(t,e,r,o){var f=t.x,p=t.y,m=f-o.x,b=p-o.y,S=Math.sqrt(e*e*b*b+r*r*m*m),E=Math.abs(e*r*m/S);o.x<f&&(E=-E);var O=Math.abs(e*r*b/S);return o.y<p&&(O=-O),{x:f+E,y:p+O}};function Y_(t,e){return t*e>0}const Ux=function(t,e,r,o){var f,p,m,b,S,E,O,j,F,U,ot,vt,_t;if(f=e.y-t.y,m=t.x-e.x,S=e.x*t.y-t.x*e.y,F=f*r.x+m*r.y+S,U=f*o.x+m*o.y+S,!(F!==0&&U!==0&&Y_(F,U)||(p=o.y-r.y,b=r.x-o.x,E=o.x*r.y-r.x*o.y,O=p*t.x+b*t.y+E,j=p*e.x+b*e.y+E,O!==0&&j!==0&&Y_(O,j)||(ot=f*b-p*m)==0)))return vt=Math.abs(ot/2),{x:(_t=m*E-b*S)<0?(_t-vt)/ot:(_t+vt)/ot,y:(_t=p*S-f*E)<0?(_t-vt)/ot:(_t+vt)/ot}},qf=function(t,e){var r,o,f=t.x,p=t.y,m=e.x-f,b=e.y-p,S=t.width/2,E=t.height/2;return Math.abs(b)*S>Math.abs(m)*E?(b<0&&(E=-E),r=b===0?0:E*m/b,o=E):(m<0&&(S=-S),r=S,o=m===0?0:S*b/m),{x:f+r,y:p+o}},k0=(s.n(Yx)(),function(t,e,r){return jx(t,e,e,r)}),gr=function(t,e,r){var o=t.x,f=t.y,p=[],m=Number.POSITIVE_INFINITY,b=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(ot){m=Math.min(m,ot.x),b=Math.min(b,ot.y)}):(m=Math.min(m,e.x),b=Math.min(b,e.y));for(var S=o-t.width/2-m,E=f-t.height/2-b,O=0;O<e.length;O++){var j=e[O],F=e[O<e.length-1?O+1:0],U=Ux(t,r,{x:S+j.x,y:E+j.y},{x:S+F.x,y:E+F.y});U&&p.push(U)}return p.length?(p.length>1&&p.sort(function(ot,vt){var _t=ot.x-r.x,xt=ot.y-r.y,mt=Math.sqrt(_t*_t+xt*xt),st=vt.x-r.x,qt=vt.y-r.y,At=Math.sqrt(st*st+qt*qt);return mt<At?-1:mt===At?0:1}),p[0]):t},Oc=qf;function T0(t){return T0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T0(t)}var e2=function(t,e,r){var o=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),f=70,p=10;r==="LR"&&(f=10,p=70);var m=o.append("rect").attr("x",-1*f/2).attr("y",-1*p/2).attr("width",f).attr("height",p).attr("class","fork-join");return bi(e,m),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(b){return Oc(e,b)},o},j_={question:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.width+e.padding+(f.height+e.padding),m=[{x:p/2,y:0},{x:p,y:-p/2},{x:p/2,y:-p},{x:0,y:-p/2}];y.info("Question main (Circle)");var b=Xs(o,p,p,m);return b.attr("style",e.style),bi(e,b),e.intersect=function(S){return y.warn("Intersect called"),gr(e,m,S)},o},rect:function(t,e){var r=Ta(t,e,"node "+e.classes,!0),o=r.shapeSvg,f=r.bbox,p=r.halfPadding;y.trace("Classes = ",e.classes);var m=o.insert("rect",":first-child");return m.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-f.width/2-p).attr("y",-f.height/2-p).attr("width",f.width+e.padding).attr("height",f.height+e.padding),bi(e,m),e.intersect=function(b){return Oc(e,b)},o},rectWithTitle:function(t,e){var r;r=e.classes?"node "+e.classes:"node default";var o,f=t.insert("g").attr("class",r).attr("id",e.domId||e.id),p=f.insert("rect",":first-child"),m=f.insert("line"),b=f.insert("g").attr("class","label"),S=e.labelText.flat?e.labelText.flat():e.labelText;o=T0(S)==="object"?S[0]:S,y.info("Label text abc79",o,S,T0(S)==="object");var E=b.node().appendChild(ka(o,e.labelStyle,!0,!0)),O={width:0,height:0};if(ea(se().flowchart.htmlLabels)){var j=E.children[0],F=Ce(E);O=j.getBoundingClientRect(),F.attr("width",O.width),F.attr("height",O.height)}y.info("Text 2",S);var U=S.slice(1,S.length),ot=E.getBBox(),vt=b.node().appendChild(ka(U.join?U.join("<br/>"):U,e.labelStyle,!0,!0));if(ea(se().flowchart.htmlLabels)){var _t=vt.children[0],xt=Ce(vt);O=_t.getBoundingClientRect(),xt.attr("width",O.width),xt.attr("height",O.height)}var mt=e.padding/2;return Ce(vt).attr("transform","translate( "+(O.width>ot.width?0:(ot.width-O.width)/2)+", "+(ot.height+mt+5)+")"),Ce(E).attr("transform","translate( "+(O.width<ot.width?0:-(ot.width-O.width)/2)+", 0)"),O=b.node().getBBox(),b.attr("transform","translate("+-O.width/2+", "+(-O.height/2-mt+3)+")"),p.attr("class","outer title-state").attr("x",-O.width/2-mt).attr("y",-O.height/2-mt).attr("width",O.width+e.padding).attr("height",O.height+e.padding),m.attr("class","divider").attr("x1",-O.width/2-mt).attr("x2",O.width/2+mt).attr("y1",-O.height/2-mt+ot.height+mt).attr("y2",-O.height/2-mt+ot.height+mt),bi(e,p),e.intersect=function(st){return Oc(e,st)},f},choice:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return r.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(o){return o.x+","+o.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(o){return k0(e,14,o)},r},circle:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=r.halfPadding,m=o.insert("circle",":first-child");return m.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",f.width/2+p).attr("width",f.width+e.padding).attr("height",f.height+e.padding),y.info("Circle main"),bi(e,m),e.intersect=function(b){return y.info("Circle intersect",e,f.width/2+p,b),k0(e,f.width/2+p,b)},o},stadium:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.height+e.padding,m=f.width+p/4+e.padding,b=o.insert("rect",":first-child").attr("style",e.style).attr("rx",p/2).attr("ry",p/2).attr("x",-m/2).attr("y",-p/2).attr("width",m).attr("height",p);return bi(e,b),e.intersect=function(S){return Oc(e,S)},o},hexagon:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.height+e.padding,m=p/4,b=f.width+2*m+e.padding,S=[{x:m,y:0},{x:b-m,y:0},{x:b,y:-p/2},{x:b-m,y:-p},{x:m,y:-p},{x:0,y:-p/2}],E=Xs(o,b,p,S);return E.attr("style",e.style),bi(e,E),e.intersect=function(O){return gr(e,S,O)},o},rect_left_inv_arrow:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.width+e.padding,m=f.height+e.padding,b=[{x:-m/2,y:0},{x:p,y:0},{x:p,y:-m},{x:-m/2,y:-m},{x:0,y:-m/2}];return Xs(o,p,m,b).attr("style",e.style),e.width=p+m,e.height=m,e.intersect=function(S){return gr(e,b,S)},o},lean_right:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.width+e.padding,m=f.height+e.padding,b=[{x:-2*m/6,y:0},{x:p-m/6,y:0},{x:p+2*m/6,y:-m},{x:m/6,y:-m}],S=Xs(o,p,m,b);return S.attr("style",e.style),bi(e,S),e.intersect=function(E){return gr(e,b,E)},o},lean_left:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.width+e.padding,m=f.height+e.padding,b=[{x:2*m/6,y:0},{x:p+m/6,y:0},{x:p-2*m/6,y:-m},{x:-m/6,y:-m}],S=Xs(o,p,m,b);return S.attr("style",e.style),bi(e,S),e.intersect=function(E){return gr(e,b,E)},o},trapezoid:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.width+e.padding,m=f.height+e.padding,b=[{x:-2*m/6,y:0},{x:p+2*m/6,y:0},{x:p-m/6,y:-m},{x:m/6,y:-m}],S=Xs(o,p,m,b);return S.attr("style",e.style),bi(e,S),e.intersect=function(E){return gr(e,b,E)},o},inv_trapezoid:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.width+e.padding,m=f.height+e.padding,b=[{x:m/6,y:0},{x:p-m/6,y:0},{x:p+2*m/6,y:-m},{x:-2*m/6,y:-m}],S=Xs(o,p,m,b);return S.attr("style",e.style),bi(e,S),e.intersect=function(E){return gr(e,b,E)},o},rect_right_inv_arrow:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.width+e.padding,m=f.height+e.padding,b=[{x:0,y:0},{x:p+m/2,y:0},{x:p,y:-m/2},{x:p+m/2,y:-m},{x:0,y:-m}],S=Xs(o,p,m,b);return S.attr("style",e.style),bi(e,S),e.intersect=function(E){return gr(e,b,E)},o},cylinder:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.width+e.padding,m=p/2,b=m/(2.5+p/50),S=f.height+b+e.padding,E="M 0,"+b+" a "+m+","+b+" 0,0,0 "+p+" 0 a "+m+","+b+" 0,0,0 "+-p+" 0 l 0,"+S+" a "+m+","+b+" 0,0,0 "+p+" 0 l 0,"+-S,O=o.attr("label-offset-y",b).insert("path",":first-child").attr("style",e.style).attr("d",E).attr("transform","translate("+-p/2+","+-(S/2+b)+")");return bi(e,O),e.intersect=function(j){var F=Oc(e,j),U=F.x-e.x;if(m!=0&&(Math.abs(U)<e.width/2||Math.abs(U)==e.width/2&&Math.abs(F.y-e.y)>e.height/2-b)){var ot=b*b*(1-U*U/(m*m));ot!=0&&(ot=Math.sqrt(ot)),ot=b-ot,j.y-e.y>0&&(ot=-ot),F.y+=ot}return F},o},start:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),o=r.insert("circle",":first-child");return o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),bi(e,o),e.intersect=function(f){return k0(e,7,f)},r},end:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),o=r.insert("circle",":first-child"),f=r.insert("circle",":first-child");return f.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),o.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),bi(e,f),e.intersect=function(p){return k0(e,7,p)},r},note:function(t,e){var r=Ta(t,e,"node "+e.classes,!0),o=r.shapeSvg,f=r.bbox,p=r.halfPadding;y.info("Classes = ",e.classes);var m=o.insert("rect",":first-child");return m.attr("rx",e.rx).attr("ry",e.ry).attr("x",-f.width/2-p).attr("y",-f.height/2-p).attr("width",f.width+e.padding).attr("height",f.height+e.padding),bi(e,m),e.intersect=function(b){return Oc(e,b)},o},subroutine:function(t,e){var r=Ta(t,e,void 0,!0),o=r.shapeSvg,f=r.bbox,p=f.width+e.padding,m=f.height+e.padding,b=[{x:0,y:0},{x:p,y:0},{x:p,y:-m},{x:0,y:-m},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-m},{x:-8,y:-m},{x:-8,y:0}],S=Xs(o,p,m,b);return S.attr("style",e.style),bi(e,S),e.intersect=function(E){return gr(e,b,E)},o},fork:e2,join:e2,class_box:function(t,e){var r,o=e.padding/2;r=e.classes?"node "+e.classes:"node default";var f=t.insert("g").attr("class",r).attr("id",e.domId||e.id),p=f.insert("rect",":first-child"),m=f.insert("line"),b=f.insert("line"),S=0,E=4,O=f.insert("g").attr("class","label"),j=0,F=e.classData.annotations&&e.classData.annotations[0],U=e.classData.annotations[0]?"\xAB"+e.classData.annotations[0]+"\xBB":"",ot=O.node().appendChild(ka(U,e.labelStyle,!0,!0)),vt=ot.getBBox();if(ea(se().flowchart.htmlLabels)){var _t=ot.children[0],xt=Ce(ot);vt=_t.getBoundingClientRect(),xt.attr("width",vt.width),xt.attr("height",vt.height)}e.classData.annotations[0]&&(E+=vt.height+4,S+=vt.width);var mt=e.classData.id;e.classData.type!==void 0&&e.classData.type!==""&&(se().flowchart.htmlLabels?mt+="<"+e.classData.type+">":mt+="<"+e.classData.type+">");var st=O.node().appendChild(ka(mt,e.labelStyle,!0,!0));Ce(st).attr("class","classTitle");var qt=st.getBBox();if(ea(se().flowchart.htmlLabels)){var At=st.children[0],pt=Ce(st);qt=At.getBoundingClientRect(),pt.attr("width",qt.width),pt.attr("height",qt.height)}E+=qt.height+4,qt.width>S&&(S=qt.width);var Lt=[];e.classData.members.forEach(function(Ut){var St=Zy(Ut),Jt=St.displayText;se().flowchart.htmlLabels&&(Jt=Jt.replace(/</g,"<").replace(/>/g,">"));var yt=O.node().appendChild(ka(Jt,St.cssStyle?St.cssStyle:e.labelStyle,!0,!0)),fe=yt.getBBox();if(ea(se().flowchart.htmlLabels)){var we=yt.children[0],_e=Ce(yt);fe=we.getBoundingClientRect(),_e.attr("width",fe.width),_e.attr("height",fe.height)}fe.width>S&&(S=fe.width),E+=fe.height+4,Lt.push(yt)}),E+=8;var te=[];if(e.classData.methods.forEach(function(Ut){var St=Zy(Ut),Jt=St.displayText;se().flowchart.htmlLabels&&(Jt=Jt.replace(/</g,"<").replace(/>/g,">"));var yt=O.node().appendChild(ka(Jt,St.cssStyle?St.cssStyle:e.labelStyle,!0,!0)),fe=yt.getBBox();if(ea(se().flowchart.htmlLabels)){var we=yt.children[0],_e=Ce(yt);fe=we.getBoundingClientRect(),_e.attr("width",fe.width),_e.attr("height",fe.height)}fe.width>S&&(S=fe.width),E+=fe.height+4,te.push(yt)}),E+=8,F){var Et=(S-vt.width)/2;Ce(ot).attr("transform","translate( "+(-1*S/2+Et)+", "+-1*E/2+")"),j=vt.height+4}var bt=(S-qt.width)/2;return Ce(st).attr("transform","translate( "+(-1*S/2+bt)+", "+(-1*E/2+j)+")"),j+=qt.height+4,m.attr("class","divider").attr("x1",-S/2-o).attr("x2",S/2+o).attr("y1",-E/2-o+8+j).attr("y2",-E/2-o+8+j),j+=8,Lt.forEach(function(Ut){Ce(Ut).attr("transform","translate( "+-S/2+", "+(-1*E/2+j+4)+")"),j+=qt.height+4}),j+=8,b.attr("class","divider").attr("x1",-S/2-o).attr("x2",S/2+o).attr("y1",-E/2-o+8+j).attr("y2",-E/2-o+8+j),j+=8,te.forEach(function(Ut){Ce(Ut).attr("transform","translate( "+-S/2+", "+(-1*E/2+j)+")"),j+=qt.height+4}),p.attr("class","outer title-state").attr("x",-S/2-o).attr("y",-E/2-o).attr("width",S+e.padding).attr("height",E+e.padding),bi(e,p),e.intersect=function(Ut){return Oc(e,Ut)},f}},Cu={},U_=function(t){var e=Cu[t.id];y.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},z_={rect:function(t,e){y.trace("Creating subgraph rect for ",e.id,e);var r=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),o=r.insert("rect",":first-child"),f=r.insert("g").attr("class","cluster-label"),p=f.node().appendChild(ka(e.labelText,e.labelStyle,void 0,!0)),m=p.getBBox();if(ea(se().flowchart.htmlLabels)){var b=p.children[0],S=Ce(p);m=b.getBoundingClientRect(),S.attr("width",m.width),S.attr("height",m.height)}var E=0*e.padding,O=E/2,j=e.width<=m.width+E?m.width+E:e.width;e.width<=m.width+E?e.diff=(m.width-e.width)/2:e.diff=-e.padding/2,y.trace("Data ",e,JSON.stringify(e)),o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-j/2).attr("y",e.y-e.height/2-O).attr("width",j).attr("height",e.height+E),f.attr("transform","translate("+(e.x-m.width/2)+", "+(e.y-e.height/2+e.padding/3)+")");var F=o.node().getBBox();return e.width=F.width,e.height=F.height,e.intersect=function(U){return qf(e,U)},r},roundedWithTitle:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),o=r.insert("rect",":first-child"),f=r.insert("g").attr("class","cluster-label"),p=r.append("rect"),m=f.node().appendChild(ka(e.labelText,e.labelStyle,void 0,!0)),b=m.getBBox();if(ea(se().flowchart.htmlLabels)){var S=m.children[0],E=Ce(m);b=S.getBoundingClientRect(),E.attr("width",b.width),E.attr("height",b.height)}b=m.getBBox();var O=0*e.padding,j=O/2,F=e.width<=b.width+e.padding?b.width+e.padding:e.width;e.width<=b.width+e.padding?e.diff=(b.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,o.attr("class","outer").attr("x",e.x-F/2-j).attr("y",e.y-e.height/2-j).attr("width",F+O).attr("height",e.height+O),p.attr("class","inner").attr("x",e.x-F/2-j).attr("y",e.y-e.height/2-j+b.height-1).attr("width",F+O).attr("height",e.height+O-b.height-3),f.attr("transform","translate("+(e.x-b.width/2)+", "+(e.y-e.height/2-e.padding/3+(ea(se().flowchart.htmlLabels)?5:3))+")");var U=o.node().getBBox();return e.height=U.height,e.intersect=function(ot){return qf(e,ot)},r},noteGroup:function(t,e){var r=t.insert("g").attr("class","note-cluster").attr("id",e.id),o=r.insert("rect",":first-child"),f=0*e.padding,p=f/2;o.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-p).attr("y",e.y-e.height/2-p).attr("width",e.width+f).attr("height",e.height+f).attr("fill","none");var m=o.node().getBBox();return e.width=m.width,e.height=m.height,e.intersect=function(b){return qf(e,b)},r},divider:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),o=r.insert("rect",":first-child"),f=0*e.padding,p=f/2;o.attr("class","divider").attr("x",e.x-e.width/2-p).attr("y",e.y-e.height/2).attr("width",e.width+f).attr("height",e.height+f);var m=o.node().getBBox();return e.width=m.width,e.height=m.height,e.diff=-e.padding/2,e.intersect=function(b){return qf(e,b)},r}},W_={},Vf={},ra={},H_=function(t,e){var r=ka(e.label,e.labelStyle),o=t.insert("g").attr("class","edgeLabel"),f=o.insert("g").attr("class","label");f.node().appendChild(r);var p,m=r.getBBox();if(ea(se().flowchart.htmlLabels)){var b=r.children[0],S=Ce(r);m=b.getBoundingClientRect(),S.attr("width",m.width),S.attr("height",m.height)}if(f.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),Vf[e.id]=o,e.width=m.width,e.height=m.height,e.startLabelLeft){var E=ka(e.startLabelLeft,e.labelStyle),O=t.insert("g").attr("class","edgeTerminals"),j=O.insert("g").attr("class","inner");p=j.node().appendChild(E);var F=E.getBBox();j.attr("transform","translate("+-F.width/2+", "+-F.height/2+")"),ra[e.id]||(ra[e.id]={}),ra[e.id].startLeft=O,E0(p,e.startLabelLeft)}if(e.startLabelRight){var U=ka(e.startLabelRight,e.labelStyle),ot=t.insert("g").attr("class","edgeTerminals"),vt=ot.insert("g").attr("class","inner");p=ot.node().appendChild(U),vt.node().appendChild(U);var _t=U.getBBox();vt.attr("transform","translate("+-_t.width/2+", "+-_t.height/2+")"),ra[e.id]||(ra[e.id]={}),ra[e.id].startRight=ot,E0(p,e.startLabelRight)}if(e.endLabelLeft){var xt=ka(e.endLabelLeft,e.labelStyle),mt=t.insert("g").attr("class","edgeTerminals"),st=mt.insert("g").attr("class","inner");p=st.node().appendChild(xt);var qt=xt.getBBox();st.attr("transform","translate("+-qt.width/2+", "+-qt.height/2+")"),mt.node().appendChild(xt),ra[e.id]||(ra[e.id]={}),ra[e.id].endLeft=mt,E0(p,e.endLabelLeft)}if(e.endLabelRight){var At=ka(e.endLabelRight,e.labelStyle),pt=t.insert("g").attr("class","edgeTerminals"),Lt=pt.insert("g").attr("class","inner");p=Lt.node().appendChild(At);var te=At.getBBox();Lt.attr("transform","translate("+-te.width/2+", "+-te.height/2+")"),pt.node().appendChild(At),ra[e.id]||(ra[e.id]={}),ra[e.id].endRight=pt,E0(p,e.endLabelRight)}};function E0(t,e){se().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var $_=function(t,e){y.info("Moving label abc78 ",t.id,t.label,Vf[t.id]);var r=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var o=Vf[t.id],f=t.x,p=t.y;if(r){var m=Jn.calcLabelPosition(r);y.info("Moving label from (",f,",",p,") to (",m.x,",",m.y,") abc78")}o.attr("transform","translate("+f+", "+p+")")}if(t.startLabelLeft){var b=ra[t.id].startLeft,S=t.x,E=t.y;if(r){var O=Jn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);S=O.x,E=O.y}b.attr("transform","translate("+S+", "+E+")")}if(t.startLabelRight){var j=ra[t.id].startRight,F=t.x,U=t.y;if(r){var ot=Jn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);F=ot.x,U=ot.y}j.attr("transform","translate("+F+", "+U+")")}if(t.endLabelLeft){var vt=ra[t.id].endLeft,_t=t.x,xt=t.y;if(r){var mt=Jn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);_t=mt.x,xt=mt.y}vt.attr("transform","translate("+_t+", "+xt+")")}if(t.endLabelRight){var st=ra[t.id].endRight,qt=t.x,At=t.y;if(r){var pt=Jn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);qt=pt.x,At=pt.y}st.attr("transform","translate("+qt+", "+At+")")}},q_=function(t,e){y.warn("abc88 cutPathAtIntersect",t,e);var r=[],o=t[0],f=!1;return t.forEach(function(p){if(y.info("abc88 checking point",p,e),function(S,E){var O=S.x,j=S.y,F=Math.abs(E.x-O),U=Math.abs(E.y-j),ot=S.width/2,vt=S.height/2;return F>=ot||U>=vt}(e,p)||f)y.warn("abc88 outside",p,o),o=p,f||r.push(p);else{var m=function(S,E,O){y.warn(`intersection calc abc89:
|
|
outsidePoint: `.concat(JSON.stringify(E),`
|
|
insidePoint : `).concat(JSON.stringify(O),`
|
|
node : x:`).concat(S.x," y:").concat(S.y," w:").concat(S.width," h:").concat(S.height));var j=S.x,F=S.y,U=Math.abs(j-O.x),ot=S.width/2,vt=O.x<E.x?ot-U:ot+U,_t=S.height/2,xt=Math.abs(E.y-O.y),mt=Math.abs(E.x-O.x);if(Math.abs(F-E.y)*ot>Math.abs(j-E.x)*_t){var st=O.y<E.y?E.y-_t-F:F-_t-E.y;vt=mt*st/xt;var qt={x:O.x<E.x?O.x+vt:O.x-mt+vt,y:O.y<E.y?O.y+xt-st:O.y-xt+st};return vt===0&&(qt.x=E.x,qt.y=E.y),mt===0&&(qt.x=E.x),xt===0&&(qt.y=E.y),y.warn("abc89 topp/bott calc, Q ".concat(xt,", q ").concat(st,", R ").concat(mt,", r ").concat(vt),qt),qt}var At=xt*(vt=O.x<E.x?E.x-ot-j:j-ot-E.x)/mt,pt=O.x<E.x?O.x+mt-vt:O.x-mt+vt,Lt=O.y<E.y?O.y+At:O.y-At;return y.warn("sides calc abc89, Q ".concat(xt,", q ").concat(At,", R ").concat(mt,", r ").concat(vt),{_x:pt,_y:Lt}),vt===0&&(pt=E.x,Lt=E.y),mt===0&&(pt=E.x),xt===0&&(Lt=E.y),{x:pt,y:Lt}}(e,o,p);y.warn("abc88 inside",p,o,m),y.warn("abc88 intersection",m);var b=!1;r.forEach(function(S){b=b||S.x===m.x&&S.y===m.y}),r.find(function(S){return S.x===m.x&&S.y===m.y})?y.warn("abc88 no intersect",m,r):r.push(m),f=!0}}),y.warn("abc88 returning points",r),r},V_=function t(e,r,o,f){y.info("Graph in recursive render: XXX",Si().json.write(r),f);var p=r.graph().rankdir;y.trace("Dir in recursive render - dir:",p);var m=e.insert("g").attr("class","root");r.nodes()?y.info("Recursive render XXX",r.nodes()):y.info("No nodes found for",r),r.edges().length>0&&y.trace("Recursive edges",r.edge(r.edges()[0]));var b=m.insert("g").attr("class","clusters"),S=m.insert("g").attr("class","edgePaths"),E=m.insert("g").attr("class","edgeLabels"),O=m.insert("g").attr("class","nodes");r.nodes().forEach(function(F){var U=r.node(F);if(f!==void 0){var ot=JSON.parse(JSON.stringify(f.clusterData));y.info("Setting data for cluster XXX (",F,") ",ot,f),r.setNode(f.id,ot),r.parent(F)||(y.trace("Setting parent",F,f.id),r.setParent(F,f.id,ot))}if(y.info("(Insert) Node XXX"+F+": "+JSON.stringify(r.node(F))),U&&U.clusterNode){y.info("Cluster identified",F,U.width,r.node(F));var vt=t(O,U.graph,o,r.node(F)),_t=vt.elem;bi(U,_t),U.diff=vt.diff||0,y.info("Node bounds (abc123)",F,U,U.width,U.x,U.y),function(xt,mt){Cu[mt.id]=xt}(_t,U),y.warn("Recursive render complete ",_t,U)}else r.children(F).length>0?(y.info("Cluster - the non recursive path XXX",F,U.id,U,r),y.info(w0(U.id,r)),vr[U.id]={id:w0(U.id,r),node:U}):(y.info("Node - the non recursive path",F,U.id,U),function(xt,mt,st){var qt,At;mt.link?(qt=xt.insert("svg:a").attr("xlink:href",mt.link).attr("target",mt.linkTarget||"_blank"),At=j_[mt.shape](qt,mt,st)):qt=At=j_[mt.shape](xt,mt,st),mt.tooltip&&At.attr("title",mt.tooltip),mt.class&&At.attr("class","node default "+mt.class),Cu[mt.id]=qt,mt.haveCallback&&Cu[mt.id].attr("class",Cu[mt.id].attr("class")+" clickable")}(O,r.node(F),p))}),r.edges().forEach(function(F){var U=r.edge(F.v,F.w,F.name);y.info("Edge "+F.v+" -> "+F.w+": "+JSON.stringify(F)),y.info("Edge "+F.v+" -> "+F.w+": ",F," ",JSON.stringify(r.edge(F))),y.info("Fix",vr,"ids:",F.v,F.w,"Translateing: ",vr[F.v],vr[F.w]),H_(E,U)}),r.edges().forEach(function(F){y.info("Edge "+F.v+" -> "+F.w+": "+JSON.stringify(F))}),y.info("#############################################"),y.info("### Layout ###"),y.info("#############################################"),y.info(r),Vl().layout(r),y.info("Graph after layout:",Si().json.write(r));var j=0;return Px(r).forEach(function(F){var U=r.node(F);y.info("Position "+F+": "+JSON.stringify(r.node(F))),y.info("Position "+F+": ("+U.x,","+U.y,") width: ",U.width," height: ",U.height),U&&U.clusterNode?U_(U):r.children(F).length>0?(function(ot,vt){y.trace("Inserting cluster");var _t=vt.shape||"rect";W_[vt.id]=z_[_t](ot,vt)}(b,U),vr[U.id].node=U):U_(U)}),r.edges().forEach(function(F){var U=r.edge(F);y.info("Edge "+F.v+" -> "+F.w+": "+JSON.stringify(U),U);var ot=function(vt,_t,xt,mt,st,qt){var At=xt.points,pt=!1,Lt=qt.node(_t.v),te=qt.node(_t.w);y.info("abc88 InsertEdge: ",xt),te.intersect&&Lt.intersect&&((At=At.slice(1,xt.points.length-1)).unshift(Lt.intersect(At[0])),y.info("Last point",At[At.length-1],te,te.intersect(At[At.length-1])),At.push(te.intersect(At[At.length-1]))),xt.toCluster&&(y.info("to cluster abc88",mt[xt.toCluster]),At=q_(xt.points,mt[xt.toCluster].node),pt=!0),xt.fromCluster&&(y.info("from cluster abc88",mt[xt.fromCluster]),At=q_(At.reverse(),mt[xt.fromCluster].node).reverse(),pt=!0);var Et,bt=At.filter(function(we){return!Number.isNaN(we.y)});Et=(st==="graph"||st==="flowchart")&&xt.curve||jr;var Ut,St=fo().x(function(we){return we.x}).y(function(we){return we.y}).curve(Et);switch(xt.thickness){case"normal":Ut="edge-thickness-normal";break;case"thick":Ut="edge-thickness-thick";break;default:Ut=""}switch(xt.pattern){case"solid":Ut+=" edge-pattern-solid";break;case"dotted":Ut+=" edge-pattern-dotted";break;case"dashed":Ut+=" edge-pattern-dashed"}var Jt=vt.append("path").attr("d",St(bt)).attr("id",xt.id).attr("class"," "+Ut+(xt.classes?" "+xt.classes:"")).attr("style",xt.style),yt="";switch(se().state.arrowMarkerAbsolute&&(yt=(yt=(yt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),y.info("arrowTypeStart",xt.arrowTypeStart),y.info("arrowTypeEnd",xt.arrowTypeEnd),xt.arrowTypeStart){case"arrow_cross":Jt.attr("marker-start","url("+yt+"#"+st+"-crossStart)");break;case"arrow_point":Jt.attr("marker-start","url("+yt+"#"+st+"-pointStart)");break;case"arrow_barb":Jt.attr("marker-start","url("+yt+"#"+st+"-barbStart)");break;case"arrow_circle":Jt.attr("marker-start","url("+yt+"#"+st+"-circleStart)");break;case"aggregation":Jt.attr("marker-start","url("+yt+"#"+st+"-aggregationStart)");break;case"extension":Jt.attr("marker-start","url("+yt+"#"+st+"-extensionStart)");break;case"composition":Jt.attr("marker-start","url("+yt+"#"+st+"-compositionStart)");break;case"dependency":Jt.attr("marker-start","url("+yt+"#"+st+"-dependencyStart)")}switch(xt.arrowTypeEnd){case"arrow_cross":Jt.attr("marker-end","url("+yt+"#"+st+"-crossEnd)");break;case"arrow_point":Jt.attr("marker-end","url("+yt+"#"+st+"-pointEnd)");break;case"arrow_barb":Jt.attr("marker-end","url("+yt+"#"+st+"-barbEnd)");break;case"arrow_circle":Jt.attr("marker-end","url("+yt+"#"+st+"-circleEnd)");break;case"aggregation":Jt.attr("marker-end","url("+yt+"#"+st+"-aggregationEnd)");break;case"extension":Jt.attr("marker-end","url("+yt+"#"+st+"-extensionEnd)");break;case"composition":Jt.attr("marker-end","url("+yt+"#"+st+"-compositionEnd)");break;case"dependency":Jt.attr("marker-end","url("+yt+"#"+st+"-dependencyEnd)")}var fe={};return pt&&(fe.updatedPath=At),fe.originalPath=xt.points,fe}(S,F,U,vr,o,r);$_(U,ot)}),r.nodes().forEach(function(F){var U=r.node(F);y.info(F,U.type,U.diff),U.type==="group"&&(j=U.diff)}),{elem:m,diff:j}},n2=function(t,e,r,o,f){Nc(t,r,o,f),Cu={},Vf={},ra={},W_={},Pa={},Ky={},vr={},y.warn("Graph at first:",Si().json.write(e)),Ix(e),y.warn("Graph after:",Si().json.write(e)),V_(t,e,o)};Su.parser.yy=ps;var r2={dividerMargin:10,padding:5,textHeight:10};function G_(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;default:e="none"}return e}var Xl={},i2=[],S0="",X_=function(t){return Xl[t]===void 0&&(Xl[t]={attributes:[]},y.info("Added new entity :",t)),Xl[t]};const Ea={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,r){oa.parseDirective(this,t,e,r)},getConfig:function(){return se().er},addEntity:X_,addAttributes:function(t,e){var r,o=X_(t);for(r=e.length-1;r>=0;r--)o.attributes.push(e[r]),y.debug("Added attribute ",e[r].attributeName)},getEntities:function(){return Xl},addRelationship:function(t,e,r,o){var f={entityA:t,roleA:e,entityB:r,relSpec:o};i2.push(f),y.debug("Added new relationship :",f)},getRelationships:function(){return i2},clear:function(){Xl={},i2=[],S0=""},setTitle:function(t){S0=t},getTitle:function(){return S0}};var zx=s(6890),a2=s.n(zx),Zs={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};const Qs=Zs;var $r={},o2=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},Z_=0;const s2=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)$r[e[r]]=t[e[r]]},Wx=function(t,e){y.info("Drawing ER diagram"),Ea.clear();var r=a2().parser;r.yy=Ea;try{r.parse(t)}catch(j){y.debug("Parsing failed")}var o,f=Ce("[id='".concat(e,"']"));(function(j,F){var U;j.append("defs").append("marker").attr("id",Zs.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",F.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),j.append("defs").append("marker").attr("id",Zs.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",F.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(U=j.append("defs").append("marker").attr("id",Zs.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",F.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),U.append("path").attr("stroke",F.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(U=j.append("defs").append("marker").attr("id",Zs.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",F.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),U.append("path").attr("stroke",F.stroke).attr("fill","none").attr("d","M21,0 L21,18"),j.append("defs").append("marker").attr("id",Zs.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",F.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),j.append("defs").append("marker").attr("id",Zs.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",F.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(U=j.append("defs").append("marker").attr("id",Zs.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",F.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),U.append("path").attr("stroke",F.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(U=j.append("defs").append("marker").attr("id",Zs.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",F.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),U.append("path").attr("stroke",F.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(f,$r),o=new(Si()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:$r.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var p=function(j,F,U){var ot;return Object.keys(F).forEach(function(vt){var _t=j.append("g").attr("id",vt);ot=ot===void 0?vt:ot;var xt="entity-"+vt,mt=_t.append("text").attr("class","er entityLabel").attr("id",xt).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+se().fontFamily+"; font-size: "+$r.fontSize+"px").text(vt),st=function(Lt,te,Et){var bt=$r.entityPadding/3,Ut=$r.entityPadding/3,St=.85*$r.fontSize,Jt=te.node().getBBox(),yt=[],fe=!1,we=!1,_e=0,Re=0,We=0,Ue=0,fn=0,Ae=Jt.height+2*bt,Xn=1;Et.forEach(function(tr){var zn="".concat(te.node().id,"-attr-").concat(Xn),Pn=0,sa=0,Yu=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(zn,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+se().fontFamily+"; font-size: "+St+"px").text(tr.attributeType),Hc=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(zn,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+se().fontFamily+"; font-size: "+St+"px").text(tr.attributeName),$c={};$c.tn=Yu,$c.nn=Hc;var Yi=Yu.node().getBBox(),K0=Hc.node().getBBox();if(Re=Math.max(Re,Yi.width),We=Math.max(We,K0.width),Pn+=Yi.width,Pn+=K0.width,sa=Math.max(Yi.height,K0.height),fe||tr.attributeKeyType!==void 0){var lw=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(zn,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+se().fontFamily+"; font-size: "+St+"px").text(tr.attributeKeyType||"");$c.kn=lw;var hw=lw.node().getBBox();Pn+=hw.width,Ue=Math.max(Ue,Pn),sa=Math.max(sa,hw.height),fe=!0}if(we||tr.attributeComment!==void 0){var fw=Lt.append("text").attr("class","er entityLabel").attr("id","".concat(zn,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+se().fontFamily+"; font-size: "+St+"px").text(tr.attributeComment||"");$c.cn=fw;var dw=fw.node().getBBox();Pn+=dw.width,fn=Math.max(Pn,K0.width),sa=Math.max(sa,dw.height),we=!0}$c.height=sa,yt.push($c),_e=Math.max(_e,Pn),Ae+=sa+2*bt,Xn+=1});var mn={width:Math.max($r.minEntityWidth,Math.max(Jt.width+2*$r.entityPadding,_e+4*Ut)),height:Et.length>0?Ae:Math.max($r.minEntityHeight,Jt.height+2*$r.entityPadding)},yn=Math.max(0,mn.width-_e-4*Ut);if(Et.length>0){te.attr("transform","translate("+mn.width/2+","+(bt+Jt.height/2)+")");var hn=Jt.height+2*bt,sn="attributeBoxOdd";yt.forEach(function(tr){var zn=hn+bt+tr.height/2;tr.tn.attr("transform","translate("+Ut+","+zn+")");var Pn=Lt.insert("rect","#"+tr.tn.node().id).attr("class","er ".concat(sn)).attr("fill",$r.fill).attr("fill-opacity","100%").attr("stroke",$r.stroke).attr("x",0).attr("y",hn).attr("width",2*Re+yn/2).attr("height",tr.tn.node().getBBox().height+2*bt);tr.nn.attr("transform","translate("+(parseFloat(Pn.attr("width"))+Ut)+","+zn+")"),Lt.insert("rect","#"+tr.nn.node().id).attr("class","er ".concat(sn)).attr("fill",$r.fill).attr("fill-opacity","100%").attr("stroke",$r.stroke).attr("x","".concat(Pn.attr("x")+Pn.attr("width"))).attr("y",hn).attr("width",We+2*Ut+yn/2).attr("height",tr.nn.node().getBBox().height+2*bt),fe&&(tr.kn.attr("transform","translate("+(parseFloat(Pn.attr("width"))+Ut)+","+zn+")"),Lt.insert("rect","#"+tr.kn.node().id).attr("class","er ".concat(sn)).attr("fill",$r.fill).attr("fill-opacity","100%").attr("stroke",$r.stroke).attr("x","".concat(Pn.attr("x")+Pn.attr("width"))).attr("y",hn).attr("width",Ue+2*Ut+yn/2).attr("height",tr.kn.node().getBBox().height+2*bt)),we&&(tr.cn.attr("transform","translate("+(parseFloat(Pn.attr("width"))+Ut)+","+zn+")"),Lt.insert("rect","#"+tr.cn.node().id).attr("class","er ".concat(sn)).attr("fill",$r.fill).attr("fill-opacity","100%").attr("stroke",$r.stroke).attr("x","".concat(Pn.attr("x")+Pn.attr("width"))).attr("y",hn).attr("width",fn+2*Ut+yn/2).attr("height",tr.cn.node().getBBox().height+2*bt)),hn+=tr.height+2*bt,sn=sn=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else mn.height=Math.max($r.minEntityHeight,Ae),te.attr("transform","translate("+mn.width/2+","+mn.height/2+")");return mn}(_t,mt,F[vt].attributes),qt=st.width,At=st.height,pt=_t.insert("rect","#"+xt).attr("class","er entityBox").attr("fill",$r.fill).attr("fill-opacity","100%").attr("stroke",$r.stroke).attr("x",0).attr("y",0).attr("width",qt).attr("height",At).node().getBBox();U.setNode(vt,{width:pt.width,height:pt.height,shape:"rect",id:vt})}),ot}(f,Ea.getEntities(),o),m=function(j,F){return j.forEach(function(U){F.setEdge(U.entityA,U.entityB,{relationship:U},o2(U))}),j}(Ea.getRelationships(),o);Vl().layout(o),function(j,F){F.nodes().forEach(function(U){U!==void 0&&F.node(U)!==void 0&&j.select("#"+U).attr("transform","translate("+(F.node(U).x-F.node(U).width/2)+","+(F.node(U).y-F.node(U).height/2)+" )")})}(f,o),m.forEach(function(j){(function(F,U,ot,vt){Z_++;var _t=ot.edge(U.entityA,U.entityB,o2(U)),xt=fo().x(function(te){return te.x}).y(function(te){return te.y}).curve(jr),mt=F.insert("path","#"+vt).attr("class","er relationshipLine").attr("d",xt(_t.points)).attr("stroke",$r.stroke).attr("fill","none");U.relSpec.relType===Ea.Identification.NON_IDENTIFYING&&mt.attr("stroke-dasharray","8,8");var st="";switch($r.arrowMarkerAbsolute&&(st=(st=(st=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),U.relSpec.cardA){case Ea.Cardinality.ZERO_OR_ONE:mt.attr("marker-end","url("+st+"#"+Qs.ZERO_OR_ONE_END+")");break;case Ea.Cardinality.ZERO_OR_MORE:mt.attr("marker-end","url("+st+"#"+Qs.ZERO_OR_MORE_END+")");break;case Ea.Cardinality.ONE_OR_MORE:mt.attr("marker-end","url("+st+"#"+Qs.ONE_OR_MORE_END+")");break;case Ea.Cardinality.ONLY_ONE:mt.attr("marker-end","url("+st+"#"+Qs.ONLY_ONE_END+")")}switch(U.relSpec.cardB){case Ea.Cardinality.ZERO_OR_ONE:mt.attr("marker-start","url("+st+"#"+Qs.ZERO_OR_ONE_START+")");break;case Ea.Cardinality.ZERO_OR_MORE:mt.attr("marker-start","url("+st+"#"+Qs.ZERO_OR_MORE_START+")");break;case Ea.Cardinality.ONE_OR_MORE:mt.attr("marker-start","url("+st+"#"+Qs.ONE_OR_MORE_START+")");break;case Ea.Cardinality.ONLY_ONE:mt.attr("marker-start","url("+st+"#"+Qs.ONLY_ONE_START+")")}var qt=mt.node().getTotalLength(),At=mt.node().getPointAtLength(.5*qt),pt="rel"+Z_,Lt=F.append("text").attr("class","er relationshipLabel").attr("id",pt).attr("x",At.x).attr("y",At.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+se().fontFamily+"; font-size: "+$r.fontSize+"px").text(U.roleA).node().getBBox();F.insert("rect","#"+pt).attr("class","er relationshipLabelBox").attr("x",At.x-Lt.width/2).attr("y",At.y-Lt.height/2).attr("width",Lt.width).attr("height",Lt.height).attr("fill","white").attr("fill-opacity","85%")})(f,j,o,p)});var b=$r.diagramPadding,S=f.node().getBBox(),E=S.width+2*b,O=S.height+2*b;no(f,O,E,$r.useMaxWidth),f.attr("viewBox","".concat(S.x-b," ").concat(S.y-b," ").concat(E," ").concat(O))};function C0(t){return C0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C0(t)}function c2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var gs,M0,u2=0,Zl=se(),fi={},Mu=[],Au=[],ys=[],Gf={},l2={},A0=0,h2=!0,Xf=[],D0=function(t){for(var e=Object.keys(fi),r=0;r<e.length;r++)if(fi[e[r]].id===t)return fi[e[r]].domId;return t},Q_=function(t,e,r,o){var f={start:t,end:e,type:void 0,text:""};(o=r.text)!==void 0&&(f.text=Hr.sanitizeText(o.trim(),Zl),f.text[0]==='"'&&f.text[f.text.length-1]==='"'&&(f.text=f.text.substring(1,f.text.length-1))),r!==void 0&&(f.type=r.type,f.stroke=r.stroke,f.length=r.length),Mu.push(f)},f2=function(t,e){t.split(",").forEach(function(r){var o=r;fi[o]!==void 0&&fi[o].classes.push(e),Gf[o]!==void 0&&Gf[o].classes.push(e)})},d2=function(t){var e=Ce(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Ce("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Ce(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=Ce(this);if(r.attr("title")!==null){var o=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(r.attr("title")).style("left",window.scrollX+o.left+(o.right-o.left)/2+"px").style("top",window.scrollY+o.top-14+document.body.scrollTop+"px"),r.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Ce(this).classed("hover",!1)})};Xf.push(d2);var Hx=function(t){for(var e=0;e<ys.length;e++)if(ys[e].id===t)return e;return-1},N0=-1,J_=[],$x=function t(e,r){var o=ys[r].nodes;if(!((N0+=1)>2e3)){if(J_[N0]=r,ys[r].id===e)return{result:!0,count:0};for(var f=0,p=1;f<o.length;){var m=Hx(o[f]);if(m>=0){var b=t(e,m);if(b.result)return{result:!0,count:p+b.count};p+=b.count}f+=1}return{result:!1,count:p}}},K_=function(t,e){var r=!1;return t.forEach(function(o){o.nodes.indexOf(e)>=0&&(r=!0)}),r},tb=function(t,e){var r=[];return t.nodes.forEach(function(o,f){K_(e,o)||r.push(t.nodes[f])}),{nodes:r}};const rr={parseDirective:function(t,e,r){oa.parseDirective(this,t,e,r)},defaultConfig:function(){return Pf.flowchart},addVertex:function(t,e,r,o,f,p){var m,b=t;b!==void 0&&b.trim().length!==0&&(fi[b]===void 0&&(fi[b]={id:b,domId:"flowchart-"+b+"-"+u2,styles:[],classes:[]}),u2++,e!==void 0?(Zl=se(),(m=Hr.sanitizeText(e.trim(),Zl))[0]==='"'&&m[m.length-1]==='"'&&(m=m.substring(1,m.length-1)),fi[b].text=m):fi[b].text===void 0&&(fi[b].text=t),r!==void 0&&(fi[b].type=r),o!=null&&o.forEach(function(S){fi[b].styles.push(S)}),f!=null&&f.forEach(function(S){fi[b].classes.push(S)}),p!==void 0&&(fi[b].dir=p))},lookUpDomId:D0,addLink:function(t,e,r,o){var f,p;for(f=0;f<t.length;f++)for(p=0;p<e.length;p++)Q_(t[f],e[p],r,o)},updateLinkInterpolate:function(t,e){t.forEach(function(r){r==="default"?Mu.defaultInterpolate=e:Mu[r].interpolate=e})},updateLink:function(t,e){t.forEach(function(r){r==="default"?Mu.defaultStyle=e:(Jn.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),Mu[r].style=e)})},addClass:function(t,e){Au[t]===void 0&&(Au[t]={id:t,styles:[],textStyles:[]}),e!=null&&e.forEach(function(r){if(r.match("color")){var o=r.replace("fill","bgFill").replace("color","fill");Au[t].textStyles.push(o)}Au[t].styles.push(r)})},setDirection:function(t){(gs=t).match(/.*</)&&(gs="RL"),gs.match(/.*\^/)&&(gs="BT"),gs.match(/.*>/)&&(gs="LR"),gs.match(/.*v/)&&(gs="TB")},setClass:f2,setTooltip:function(t,e){t.split(",").forEach(function(r){e!==void 0&&(l2[M0==="gen-1"?D0(r):r]=Hr.sanitizeText(e,Zl))})},getTooltip:function(t){return l2[t]},setClickEvent:function(t,e,r){t.split(",").forEach(function(o){(function(f,p,m){var b=D0(f);if(se().securityLevel==="loose"&&p!==void 0){var S=[];if(typeof m=="string"){S=m.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var E=0;E<S.length;E++){var O=S[E].trim();O.charAt(0)==='"'&&O.charAt(O.length-1)==='"'&&(O=O.substr(1,O.length-2)),S[E]=O}}S.length===0&&S.push(f),fi[f]!==void 0&&(fi[f].haveCallback=!0,Xf.push(function(){var j=document.querySelector('[id="'.concat(b,'"]'));j!==null&&j.addEventListener("click",function(){var F;Jn.runFunc.apply(Jn,[p].concat(function(U){if(Array.isArray(U))return c2(U)}(F=S)||function(U){if(typeof Symbol!="undefined"&&U[Symbol.iterator]!=null||U["@@iterator"]!=null)return Array.from(U)}(F)||function(U,ot){if(U){if(typeof U=="string")return c2(U,ot);var vt=Object.prototype.toString.call(U).slice(8,-1);return vt==="Object"&&U.constructor&&(vt=U.constructor.name),vt==="Map"||vt==="Set"?Array.from(U):vt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(vt)?c2(U,ot):void 0}}(F)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)}))}})(o,e,r)}),f2(t,"clickable")},setLink:function(t,e,r){t.split(",").forEach(function(o){fi[o]!==void 0&&(fi[o].link=Jn.formatUrl(e,Zl),fi[o].linkTarget=r)}),f2(t,"clickable")},bindFunctions:function(t){Xf.forEach(function(e){e(t)})},getDirection:function(){return gs.trim()},getVertices:function(){return fi},getEdges:function(){return Mu},getClasses:function(){return Au},clear:function(t){fi={},Au={},Mu=[],(Xf=[]).push(d2),ys=[],Gf={},A0=0,l2=[],h2=!0,M0=t||"gen-1"},setGen:function(t){M0=t||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,r){var o=t.trim(),f=r;t===r&&r.match(/\s/)&&(o=void 0);var p=[],m=function(j){var F,U={boolean:{},number:{},string:{}},ot=[],vt=j.filter(function(_t){var xt=C0(_t);return _t.stmt&&_t.stmt==="dir"?(F=_t.value,!1):_t.trim()!==""&&(xt in U?!U[xt].hasOwnProperty(_t)&&(U[xt][_t]=!0):!(ot.indexOf(_t)>=0)&&ot.push(_t))});return{nodeList:vt,dir:F}}(p.concat.apply(p,e)),b=m.nodeList,S=m.dir;if(p=b,M0==="gen-1"){y.warn("LOOKING UP");for(var E=0;E<p.length;E++)p[E]=D0(p[E])}o=o||"subGraph"+A0,f=f||"",f=Hr.sanitizeText(f,Zl),A0+=1;var O={id:o,nodes:p,title:f.trim(),classes:[],dir:S};return y.info("Adding",O.id,O.nodes,O.dir),O.nodes=tb(O,ys).nodes,ys.push(O),Gf[o]=O,o},getDepthFirstPos:function(t){return J_[t]},indexNodes:function(){N0=-1,ys.length>0&&$x("none",ys.length-1)},getSubGraphs:function(){return ys},destructLink:function(t,e){var r,o=function(f){var p=f.trim(),m=p.slice(0,-1),b="arrow_open";switch(p.slice(-1)){case"x":b="arrow_cross",p[0]==="x"&&(b="double_"+b,m=m.slice(1));break;case">":b="arrow_point",p[0]==="<"&&(b="double_"+b,m=m.slice(1));break;case"o":b="arrow_circle",p[0]==="o"&&(b="double_"+b,m=m.slice(1))}var S="normal",E=m.length-1;m[0]==="="&&(S="thick");var O=function(j,F){for(var U=F.length,ot=0,vt=0;vt<U;++vt)F[vt]==="."&&++ot;return ot}(0,m);return O&&(S="dotted",E=O),{type:b,stroke:S,length:E}}(t);if(e){if(r=function(f){var p=f.trim(),m="arrow_open";switch(p[0]){case"<":m="arrow_point",p=p.slice(1);break;case"x":m="arrow_cross",p=p.slice(1);break;case"o":m="arrow_circle",p=p.slice(1)}var b="normal";return p.indexOf("=")!==-1&&(b="thick"),p.indexOf(".")!==-1&&(b="dotted"),{type:m,stroke:b}}(e),r.stroke!==o.stroke)return{type:"INVALID",stroke:"INVALID"};if(r.type==="arrow_open")r.type=o.type;else{if(r.type!==o.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return r.type==="double_arrow"&&(r.type="double_arrow_point"),r.length=o.length,r}return o},lex:{firstGraph:function(){return!!h2&&(h2=!1,!0)}},exists:K_,makeUniq:tb};var O0=s(5403),B0=s.n(O0),L0=s(4949),ro=s.n(L0),qx=s(8284),eb=s.n(qx);function Vx(t,e,r){var o=.9*(e.width+e.height),f=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],p=Js(t,o,o,f);return r.intersect=function(m){return ro().intersect.polygon(r,f,m)},p}function I0(t,e,r){var o=e.height,f=o/4,p=e.width+2*f,m=[{x:f,y:0},{x:p-f,y:0},{x:p,y:-o/2},{x:p-f,y:-o},{x:f,y:-o},{x:0,y:-o/2}],b=Js(t,p,o,m);return r.intersect=function(S){return ro().intersect.polygon(r,m,S)},b}function Gx(t,e,r){var o=e.width,f=e.height,p=[{x:-f/2,y:0},{x:o,y:0},{x:o,y:-f},{x:-f/2,y:-f},{x:0,y:-f/2}],m=Js(t,o,f,p);return r.intersect=function(b){return ro().intersect.polygon(r,p,b)},m}function Xx(t,e,r){var o=e.width,f=e.height,p=[{x:-2*f/6,y:0},{x:o-f/6,y:0},{x:o+2*f/6,y:-f},{x:f/6,y:-f}],m=Js(t,o,f,p);return r.intersect=function(b){return ro().intersect.polygon(r,p,b)},m}function Zx(t,e,r){var o=e.width,f=e.height,p=[{x:2*f/6,y:0},{x:o+f/6,y:0},{x:o-2*f/6,y:-f},{x:-f/6,y:-f}],m=Js(t,o,f,p);return r.intersect=function(b){return ro().intersect.polygon(r,p,b)},m}function Qx(t,e,r){var o=e.width,f=e.height,p=[{x:-2*f/6,y:0},{x:o+2*f/6,y:0},{x:o-f/6,y:-f},{x:f/6,y:-f}],m=Js(t,o,f,p);return r.intersect=function(b){return ro().intersect.polygon(r,p,b)},m}function Jx(t,e,r){var o=e.width,f=e.height,p=[{x:f/6,y:0},{x:o-f/6,y:0},{x:o+2*f/6,y:-f},{x:-2*f/6,y:-f}],m=Js(t,o,f,p);return r.intersect=function(b){return ro().intersect.polygon(r,p,b)},m}function Kx(t,e,r){var o=e.width,f=e.height,p=[{x:0,y:0},{x:o+f/2,y:0},{x:o,y:-f/2},{x:o+f/2,y:-f},{x:0,y:-f}],m=Js(t,o,f,p);return r.intersect=function(b){return ro().intersect.polygon(r,p,b)},m}function nb(t,e,r){var o=e.height,f=e.width+o/4,p=t.insert("rect",":first-child").attr("rx",o/2).attr("ry",o/2).attr("x",-f/2).attr("y",-o/2).attr("width",f).attr("height",o);return r.intersect=function(m){return ro().intersect.rect(r,m)},p}function p2(t,e,r){var o=e.width,f=e.height,p=[{x:0,y:0},{x:o,y:0},{x:o,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:o+8,y:0},{x:o+8,y:-f},{x:-8,y:-f},{x:-8,y:0}],m=Js(t,o,f,p);return r.intersect=function(b){return ro().intersect.polygon(r,p,b)},m}function t6(t,e,r){var o=e.width,f=o/2,p=f/(2.5+o/50),m=e.height+p,b="M 0,"+p+" a "+f+","+p+" 0,0,0 "+o+" 0 a "+f+","+p+" 0,0,0 "+-o+" 0 l 0,"+m+" a "+f+","+p+" 0,0,0 "+o+" 0 l 0,"+-m,S=t.attr("label-offset-y",p).insert("path",":first-child").attr("d",b).attr("transform","translate("+-o/2+","+-(m/2+p)+")");return r.intersect=function(E){var O=ro().intersect.rect(r,E),j=O.x-r.x;if(f!=0&&(Math.abs(j)<r.width/2||Math.abs(j)==r.width/2&&Math.abs(O.y-r.y)>r.height/2-p)){var F=p*p*(1-j*j/(f*f));F!=0&&(F=Math.sqrt(F)),F=p-F,E.y-r.y>0&&(F=-F),O.y+=F}return O},S}function Js(t,e,r,o){return t.insert("polygon",":first-child").attr("points",o.map(function(f){return f.x+","+f.y}).join(" ")).attr("transform","translate("+-e/2+","+r/2+")")}const cr=function(t){t.shapes().question=Vx,t.shapes().hexagon=I0,t.shapes().stadium=nb,t.shapes().subroutine=p2,t.shapes().cylinder=t6,t.shapes().rect_left_inv_arrow=Gx,t.shapes().lean_right=Xx,t.shapes().lean_left=Zx,t.shapes().trapezoid=Qx,t.shapes().inv_trapezoid=Jx,t.shapes().rect_right_inv_arrow=Kx};var g2={};const ia=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)g2[e[r]]=t[e[r]]},Du=function(t,e){y.info("Drawing flowchart"),rr.clear(),rr.setGen("gen-1");var r=B0().parser;r.yy=rr,r.parse(t);var o=rr.getDirection();o===void 0&&(o="TD");for(var f,p=se().flowchart,m=p.nodeSpacing||50,b=p.rankSpacing||50,S=new(Si()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:m,ranksep:b,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),E=rr.getSubGraphs(),O=E.length-1;O>=0;O--)f=E[O],rr.addVertex(f.id,f.title,"group",void 0,f.classes);var j=rr.getVertices();y.warn("Get vertices",j);var F=rr.getEdges(),U=0;for(U=E.length-1;U>=0;U--){f=E[U],gc("cluster").append("text");for(var ot=0;ot<f.nodes.length;ot++)y.warn("Setting subgraph",f.nodes[ot],rr.lookUpDomId(f.nodes[ot]),rr.lookUpDomId(f.id)),S.setParent(rr.lookUpDomId(f.nodes[ot]),rr.lookUpDomId(f.id))}(function(We,Ue,fn){var Ae=Ce('[id="'.concat(fn,'"]'));Object.keys(We).forEach(function(Xn){var mn=We[Xn],yn="default";mn.classes.length>0&&(yn=mn.classes.join(" "));var hn,sn=Dc(mn.styles),tr=mn.text!==void 0?mn.text:mn.id;if(ea(se().flowchart.htmlLabels)){var zn={label:tr.replace(/fa[lrsb]?:fa-[\w-]+/g,function(K0){return"<i class='".concat(K0.replace(":"," "),"'></i>")})};(hn=eb()(Ae,zn).node()).parentNode.removeChild(hn)}else{var Pn=document.createElementNS("http://www.w3.org/2000/svg","text");Pn.setAttribute("style",sn.labelStyle.replace("color:","fill:"));for(var sa=tr.split(Hr.lineBreakRegex),Yu=0;Yu<sa.length;Yu++){var Hc=document.createElementNS("http://www.w3.org/2000/svg","tspan");Hc.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Hc.setAttribute("dy","1em"),Hc.setAttribute("x","1"),Hc.textContent=sa[Yu],Pn.appendChild(Hc)}hn=Pn}var $c=0,Yi="";switch(mn.type){case"round":$c=5,Yi="rect";break;case"square":Yi="rect";break;case"diamond":Yi="question";break;case"hexagon":Yi="hexagon";break;case"odd":Yi="rect_left_inv_arrow";break;case"lean_right":Yi="lean_right";break;case"lean_left":Yi="lean_left";break;case"trapezoid":Yi="trapezoid";break;case"inv_trapezoid":Yi="inv_trapezoid";break;case"odd_right":Yi="rect_left_inv_arrow";break;case"circle":Yi="circle";break;case"ellipse":Yi="ellipse";break;case"stadium":Yi="stadium";break;case"subroutine":Yi="subroutine";break;case"cylinder":Yi="cylinder";break;default:Yi="rect"}y.warn("Adding node",mn.id,mn.domId),Ue.setNode(rr.lookUpDomId(mn.id),{labelType:"svg",labelStyle:sn.labelStyle,shape:Yi,label:hn,rx:$c,ry:$c,class:yn,style:sn.style,id:rr.lookUpDomId(mn.id)})})})(j,S,e),function(We,Ue){var fn,Ae,Xn=0;if(We.defaultStyle!==void 0){var mn=Dc(We.defaultStyle);fn=mn.style,Ae=mn.labelStyle}We.forEach(function(yn){Xn++;var hn="L-"+yn.start+"-"+yn.end,sn="LS-"+yn.start,tr="LE-"+yn.end,zn={};yn.type==="arrow_open"?zn.arrowhead="none":zn.arrowhead="normal";var Pn="",sa="";if(yn.style!==void 0){var Yu=Dc(yn.style);Pn=Yu.style,sa=Yu.labelStyle}else switch(yn.stroke){case"normal":Pn="fill:none",fn!==void 0&&(Pn=fn),Ae!==void 0&&(sa=Ae);break;case"dotted":Pn="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":Pn=" stroke-width: 3.5px;fill:none"}zn.style=Pn,zn.labelStyle=sa,yn.interpolate!==void 0?zn.curve=$o(yn.interpolate,ho):We.defaultInterpolate!==void 0?zn.curve=$o(We.defaultInterpolate,ho):zn.curve=$o(g2.curve,ho),yn.text===void 0?yn.style!==void 0&&(zn.arrowheadStyle="fill: #333"):(zn.arrowheadStyle="fill: #333",zn.labelpos="c",ea(se().flowchart.htmlLabels)?(zn.labelType="html",zn.label='<span id="L-'.concat(hn,'" class="edgeLabel L-').concat(sn,"' L-").concat(tr,'">').concat(yn.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Hc){return"<i class='".concat(Hc.replace(":"," "),"'></i>")}),"</span>")):(zn.labelType="text",zn.label=yn.text.replace(Hr.lineBreakRegex,`
|
|
`),yn.style===void 0&&(zn.style=zn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),zn.labelStyle=zn.labelStyle.replace("color:","fill:"))),zn.id=hn,zn.class=sn+" "+tr,zn.minlen=yn.length||1,Ue.setEdge(rr.lookUpDomId(yn.start),rr.lookUpDomId(yn.end),zn,Xn)})}(F,S);var vt=new(ro()).render;cr(vt),vt.arrows().none=function(We,Ue,fn,Ae){var Xn=We.append("marker").attr("id",Ue).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");ro().util.applyStyle(Xn,fn[Ae+"Style"])},vt.arrows().normal=function(We,Ue){We.append("marker").attr("id",Ue).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var _t=Ce('[id="'.concat(e,'"]'));_t.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),y.warn(S);var xt=Ce("#"+e+" g");vt(xt,S),xt.selectAll("g.node").attr("title",function(){return rr.getTooltip(this.id)});var mt=p.diagramPadding,st=_t.node().getBBox(),qt=st.width+2*mt,At=st.height+2*mt;no(_t,At,qt,p.useMaxWidth);var pt="".concat(st.x-mt," ").concat(st.y-mt," ").concat(qt," ").concat(At);for(y.debug("viewBox ".concat(pt)),_t.attr("viewBox",pt),rr.indexNodes("subGraph"+U),U=0;U<E.length;U++)if((f=E[U]).title!=="undefined"){var Lt=document.querySelectorAll("#"+e+' [id="'+rr.lookUpDomId(f.id)+'"] rect'),te=document.querySelectorAll("#"+e+' [id="'+rr.lookUpDomId(f.id)+'"]'),Et=Lt[0].x.baseVal.value,bt=Lt[0].y.baseVal.value,Ut=Lt[0].width.baseVal.value,St=Ce(te[0]).select(".label");St.attr("transform","translate(".concat(Et+Ut/2,", ").concat(bt+14,")")),St.attr("id",e+"Text");for(var Jt=0;Jt<f.classes.length;Jt++)te[0].classList.add(f.classes[Jt])}ea(p.htmlLabels);for(var yt=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),fe=0;fe<yt.length;fe++){var we=yt[fe],_e=we.getBBox(),Re=document.createElementNS("http://www.w3.org/2000/svg","rect");Re.setAttribute("rx",0),Re.setAttribute("ry",0),Re.setAttribute("width",_e.width),Re.setAttribute("height",_e.height),we.insertBefore(Re,we.firstChild)}Object.keys(j).forEach(function(We){var Ue=j[We];if(Ue.link){var fn=Ce("#"+e+' [id="'+rr.lookUpDomId(We)+'"]');if(fn){var Ae=document.createElementNS("http://www.w3.org/2000/svg","a");Ae.setAttributeNS("http://www.w3.org/2000/svg","class",Ue.classes.join(" ")),Ae.setAttributeNS("http://www.w3.org/2000/svg","href",Ue.link),Ae.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),Ue.linkTarget&&Ae.setAttributeNS("http://www.w3.org/2000/svg","target",Ue.linkTarget);var Xn=fn.insert(function(){return Ae},":first-child"),mn=fn.select(".label-container");mn&&Xn.append(function(){return mn.node()});var yn=fn.select(".label");yn&&Xn.append(function(){return yn.node()})}}})};var rb={};const R0=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)rb[e[r]]=t[e[r]]},ms=function(t,e){y.info("Drawing flowchart"),rr.clear(),rr.setGen("gen-2");var r=B0().parser;r.yy=rr,r.parse(t);var o=rr.getDirection();o===void 0&&(o="TD");var f,p=se().flowchart,m=p.nodeSpacing||50,b=p.rankSpacing||50,S=new(Si()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:m,ranksep:b,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),E=rr.getSubGraphs();y.info("Subgraphs - ",E);for(var O=E.length-1;O>=0;O--)f=E[O],y.info("Subgraph - ",f),rr.addVertex(f.id,f.title,"group",void 0,f.classes,f.dir);var j=rr.getVertices(),F=rr.getEdges();y.info(F);var U=0;for(U=E.length-1;U>=0;U--){f=E[U],gc("cluster").append("text");for(var ot=0;ot<f.nodes.length;ot++)y.info("Setting up subgraphs",f.nodes[ot],f.id),S.setParent(f.nodes[ot],f.id)}(function(bt,Ut,St){var Jt=Ce('[id="'.concat(St,'"]'));Object.keys(bt).forEach(function(yt){var fe=bt[yt],we="default";fe.classes.length>0&&(we=fe.classes.join(" "));var _e,Re=Dc(fe.styles),We=fe.text!==void 0?fe.text:fe.id;if(ea(se().flowchart.htmlLabels)){var Ue={label:We.replace(/fa[lrsb]?:fa-[\w-]+/g,function(sn){return"<i class='".concat(sn.replace(":"," "),"'></i>")})};(_e=eb()(Jt,Ue).node()).parentNode.removeChild(_e)}else{var fn=document.createElementNS("http://www.w3.org/2000/svg","text");fn.setAttribute("style",Re.labelStyle.replace("color:","fill:"));for(var Ae=We.split(Hr.lineBreakRegex),Xn=0;Xn<Ae.length;Xn++){var mn=document.createElementNS("http://www.w3.org/2000/svg","tspan");mn.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),mn.setAttribute("dy","1em"),mn.setAttribute("x","1"),mn.textContent=Ae[Xn],fn.appendChild(mn)}_e=fn}var yn=0,hn="";switch(fe.type){case"round":yn=5,hn="rect";break;case"square":hn="rect";break;case"diamond":hn="question";break;case"hexagon":hn="hexagon";break;case"odd":hn="rect_left_inv_arrow";break;case"lean_right":hn="lean_right";break;case"lean_left":hn="lean_left";break;case"trapezoid":hn="trapezoid";break;case"inv_trapezoid":hn="inv_trapezoid";break;case"odd_right":hn="rect_left_inv_arrow";break;case"circle":hn="circle";break;case"ellipse":hn="ellipse";break;case"stadium":hn="stadium";break;case"subroutine":hn="subroutine";break;case"cylinder":hn="cylinder";break;default:hn="rect"}Ut.setNode(fe.id,{labelStyle:Re.labelStyle,shape:hn,labelText:We,rx:yn,ry:yn,class:we,style:Re.style,id:fe.id,link:fe.link,linkTarget:fe.linkTarget,tooltip:rr.getTooltip(fe.id)||"",domId:rr.lookUpDomId(fe.id),haveCallback:fe.haveCallback,width:fe.type==="group"?500:void 0,dir:fe.dir,type:fe.type,padding:se().flowchart.padding}),y.info("setNode",{labelStyle:Re.labelStyle,shape:hn,labelText:We,rx:yn,ry:yn,class:we,style:Re.style,id:fe.id,domId:rr.lookUpDomId(fe.id),width:fe.type==="group"?500:void 0,type:fe.type,dir:fe.dir,padding:se().flowchart.padding})})})(j,S,e),function(bt,Ut){y.info("abc78 edges = ",bt);var St,Jt,yt=0,fe={};if(bt.defaultStyle!==void 0){var we=Dc(bt.defaultStyle);St=we.style,Jt=we.labelStyle}bt.forEach(function(_e){yt++;var Re="L-"+_e.start+"-"+_e.end;fe[Re]===void 0?(fe[Re]=0,y.info("abc78 new entry",Re,fe[Re])):(fe[Re]++,y.info("abc78 new entry",Re,fe[Re]));var We=Re+"-"+fe[Re];y.info("abc78 new link id to be used is",Re,We,fe[Re]);var Ue="LS-"+_e.start,fn="LE-"+_e.end,Ae={style:"",labelStyle:""};switch(Ae.minlen=_e.length||1,_e.type==="arrow_open"?Ae.arrowhead="none":Ae.arrowhead="normal",Ae.arrowTypeStart="arrow_open",Ae.arrowTypeEnd="arrow_open",_e.type){case"double_arrow_cross":Ae.arrowTypeStart="arrow_cross";case"arrow_cross":Ae.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":Ae.arrowTypeStart="arrow_point";case"arrow_point":Ae.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":Ae.arrowTypeStart="arrow_circle";case"arrow_circle":Ae.arrowTypeEnd="arrow_circle"}var Xn="",mn="";switch(_e.stroke){case"normal":Xn="fill:none;",St!==void 0&&(Xn=St),Jt!==void 0&&(mn=Jt),Ae.thickness="normal",Ae.pattern="solid";break;case"dotted":Ae.thickness="normal",Ae.pattern="dotted",Ae.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":Ae.thickness="thick",Ae.pattern="solid",Ae.style="stroke-width: 3.5px;fill:none;"}if(_e.style!==void 0){var yn=Dc(_e.style);Xn=yn.style,mn=yn.labelStyle}Ae.style=Ae.style+=Xn,Ae.labelStyle=Ae.labelStyle+=mn,_e.interpolate!==void 0?Ae.curve=$o(_e.interpolate,ho):bt.defaultInterpolate!==void 0?Ae.curve=$o(bt.defaultInterpolate,ho):Ae.curve=$o(rb.curve,ho),_e.text===void 0?_e.style!==void 0&&(Ae.arrowheadStyle="fill: #333"):(Ae.arrowheadStyle="fill: #333",Ae.labelpos="c"),Ae.labelType="text",Ae.label=_e.text.replace(Hr.lineBreakRegex,`
|
|
`),_e.style===void 0&&(Ae.style=Ae.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),Ae.labelStyle=Ae.labelStyle.replace("color:","fill:"),Ae.id=We,Ae.classes="flowchart-link "+Ue+" "+fn,Ut.setEdge(_e.start,_e.end,Ae,yt)})}(F,S);var vt=Ce('[id="'.concat(e,'"]'));vt.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var _t=Ce("#"+e+" g");n2(_t,S,["point","circle","cross"],"flowchart",e);var xt=p.diagramPadding,mt=vt.node().getBBox(),st=mt.width+2*xt,qt=mt.height+2*xt;if(y.debug("new ViewBox 0 0 ".concat(st," ").concat(qt),"translate(".concat(xt-S._label.marginx,", ").concat(xt-S._label.marginy,")")),no(vt,qt,st,p.useMaxWidth),vt.attr("viewBox","0 0 ".concat(st," ").concat(qt)),vt.select("g").attr("transform","translate(".concat(xt-S._label.marginx,", ").concat(xt-mt.y,")")),rr.indexNodes("subGraph"+U),!p.htmlLabels)for(var At=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),pt=0;pt<At.length;pt++){var Lt=At[pt],te=Lt.getBBox(),Et=document.createElementNS("http://www.w3.org/2000/svg","rect");Et.setAttribute("rx",0),Et.setAttribute("ry",0),Et.setAttribute("width",te.width),Et.setAttribute("height",te.height),Lt.insertBefore(Et,Lt.firstChild)}Object.keys(j).forEach(function(bt){var Ut=j[bt];if(Ut.link){var St=Ce("#"+e+' [id="'+bt+'"]');if(St){var Jt=document.createElementNS("http://www.w3.org/2000/svg","a");Jt.setAttributeNS("http://www.w3.org/2000/svg","class",Ut.classes.join(" ")),Jt.setAttributeNS("http://www.w3.org/2000/svg","href",Ut.link),Jt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),Ut.linkTarget&&Jt.setAttributeNS("http://www.w3.org/2000/svg","target",Ut.linkTarget);var yt=St.insert(function(){return Jt},":first-child"),fe=St.select(".label-container");fe&&yt.append(function(){return fe.node()});var we=St.select(".label");we&&yt.append(function(){return we.node()})}}})};function Bc(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var Zi,qo,io="",vs="",y2="",Ql=[],m2="",v2=[],_2=[],Jl="",ib=["active","done","crit","milestone"],F0=[],Lc=!1,b2=!1,P0=0,Y0=function(t,e,r){return t.isoWeekday()>=6&&r.indexOf("weekends")>=0||r.indexOf(t.format("dddd").toLowerCase())>=0||r.indexOf(t.format(e.trim()))>=0},j0=function(t,e,r){if(r.length&&!t.manualEndTime){var o=l()(t.startTime,e,!0);o.add(1,"d");var f=l()(t.endTime,e,!0),p=x2(o,f,e,r);t.endTime=f.toDate(),t.renderEndTime=p}},x2=function(t,e,r,o){for(var f=!1,p=null;t<=e;)f||(p=e.toDate()),(f=Y0(t,r,o))&&e.add(1,"d"),t.add(1,"d");return p},Zf=function(t,e,r){r=r.trim();var o=/^after\s+([\d\w- ]+)/.exec(r.trim());if(o!==null){var f=null;if(o[1].split(" ").forEach(function(b){var S=Ic(b);S!==void 0&&(f?S.endTime>f.endTime&&(f=S):f=S)}),f)return f.endTime;var p=new Date;return p.setHours(0,0,0,0),p}var m=l()(r,e.trim(),!0);return m.isValid()?m.toDate():(y.debug("Invalid date:"+r),y.debug("With date format:"+e.trim()),new Date)},w2=function(t,e){if(t!==null)switch(t[2]){case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},ab=function(t,e,r,o){o=o||!1,r=r.trim();var f=l()(r,e.trim(),!0);return f.isValid()?(o&&f.add(1,"d"),f.toDate()):w2(/^([\d]+)([wdhms])/.exec(r.trim()),l()(t))},ob=0,Kl=function(t){return t===void 0?"task"+(ob+=1):t},xi=[],k2={},Ic=function(t){var e=k2[t];return xi[e]},th=function(){for(var t=function(o){var f=xi[o],p="";switch(xi[o].raw.startTime.type){case"prevTaskEnd":var m=Ic(f.prevTaskId);f.startTime=m.endTime;break;case"getStartDate":(p=Zf(0,io,xi[o].raw.startTime.startData))&&(xi[o].startTime=p)}return xi[o].startTime&&(xi[o].endTime=ab(xi[o].startTime,io,xi[o].raw.endTime.data,Lc),xi[o].endTime&&(xi[o].processed=!0,xi[o].manualEndTime=l()(xi[o].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),j0(xi[o],io,Ql))),xi[o].processed},e=!0,r=0;r<xi.length;r++)t(r),e=e&&xi[r].processed;return e},T2=function(t,e){t.split(",").forEach(function(r){var o=Ic(r);o!==void 0&&o.classes.push(e)})},E2=function(t,e){F0.push(function(){var r=document.querySelector('[id="'.concat(t,'"]'));r!==null&&r.addEventListener("click",function(){e()})}),F0.push(function(){var r=document.querySelector('[id="'.concat(t,'-text"]'));r!==null&&r.addEventListener("click",function(){e()})})};const Ks={parseDirective:function(t,e,r){oa.parseDirective(this,t,e,r)},getConfig:function(){return se().gantt},clear:function(){v2=[],_2=[],Jl="",F0=[],m2="",ob=0,Zi=void 0,qo=void 0,xi=[],io="",vs="",y2="",Ql=[],Lc=!1,b2=!1,P0=0},setDateFormat:function(t){io=t},getDateFormat:function(){return io},enableInclusiveEndDates:function(){Lc=!0},endDatesAreInclusive:function(){return Lc},enableTopAxis:function(){b2=!0},topAxisEnabled:function(){return b2},setAxisFormat:function(t){vs=t},getAxisFormat:function(){return vs},setTodayMarker:function(t){y2=t},getTodayMarker:function(){return y2},setTitle:function(t){m2=t},getTitle:function(){return m2},addSection:function(t){Jl=t,v2.push(t)},getSections:function(){return v2},getTasks:function(){for(var t=th(),e=0;!t&&e<10;)t=th(),e++;return _2=xi},addTask:function(t,e){var r={section:Jl,type:Jl,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},o=function(p,m){var b=(m.substr(0,1)===":"?m.substr(1,m.length):m).split(","),S={};U0(b,S,ib);for(var E=0;E<b.length;E++)b[E]=b[E].trim();switch(b.length){case 1:S.id=Kl(),S.startTime={type:"prevTaskEnd",id:p},S.endTime={data:b[0]};break;case 2:S.id=Kl(),S.startTime={type:"getStartDate",startData:b[0]},S.endTime={data:b[1]};break;case 3:S.id=Kl(b[0]),S.startTime={type:"getStartDate",startData:b[1]},S.endTime={data:b[2]}}return S}(qo,e);r.raw.startTime=o.startTime,r.raw.endTime=o.endTime,r.id=o.id,r.prevTaskId=qo,r.active=o.active,r.done=o.done,r.crit=o.crit,r.milestone=o.milestone,r.order=P0,P0++;var f=xi.push(r);qo=r.id,k2[r.id]=f-1},findTaskById:Ic,addTaskOrg:function(t,e){var r={section:Jl,type:Jl,description:t,task:t,classes:[]},o=function(f,p){var m=(p.substr(0,1)===":"?p.substr(1,p.length):p).split(","),b={};U0(m,b,ib);for(var S=0;S<m.length;S++)m[S]=m[S].trim();var E="";switch(m.length){case 1:b.id=Kl(),b.startTime=f.endTime,E=m[0];break;case 2:b.id=Kl(),b.startTime=Zf(0,io,m[0]),E=m[1];break;case 3:b.id=Kl(m[0]),b.startTime=Zf(0,io,m[1]),E=m[2]}return E&&(b.endTime=ab(b.startTime,io,E,Lc),b.manualEndTime=l()(E,"YYYY-MM-DD",!0).isValid(),j0(b,io,Ql)),b}(Zi,e);r.startTime=o.startTime,r.endTime=o.endTime,r.id=o.id,r.active=o.active,r.done=o.done,r.crit=o.crit,r.milestone=o.milestone,Zi=r,_2.push(r)},setExcludes:function(t){Ql=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return Ql},setClickEvent:function(t,e,r){t.split(",").forEach(function(o){(function(f,p,m){if(se().securityLevel==="loose"&&p!==void 0){var b=[];if(typeof m=="string"){b=m.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var S=0;S<b.length;S++){var E=b[S].trim();E.charAt(0)==='"'&&E.charAt(E.length-1)==='"'&&(E=E.substr(1,E.length-2)),b[S]=E}}b.length===0&&b.push(f),Ic(f)!==void 0&&E2(f,function(){var O;Jn.runFunc.apply(Jn,[p].concat(function(j){if(Array.isArray(j))return Bc(j)}(O=b)||function(j){if(typeof Symbol!="undefined"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}(O)||function(j,F){if(j){if(typeof j=="string")return Bc(j,F);var U=Object.prototype.toString.call(j).slice(8,-1);return U==="Object"&&j.constructor&&(U=j.constructor.name),U==="Map"||U==="Set"?Array.from(j):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?Bc(j,F):void 0}}(O)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))})}})(o,e,r)}),T2(t,"clickable")},setLink:function(t,e){var r=e;se().securityLevel!=="loose"&&(r=(0,By.sanitizeUrl)(e)),t.split(",").forEach(function(o){Ic(o)!==void 0&&E2(o,function(){window.open(r,"_self")})}),T2(t,"clickable")},bindFunctions:function(t){F0.forEach(function(e){e(t)})},durationToDate:w2};function U0(t,e,r){for(var o=!0;o;)o=!1,r.forEach(function(f){var p=new RegExp("^\\s*"+f+"\\s*$");t[0].match(p)&&(e[f]=!0,t.shift(1),o=!0)})}var Rc,Fc=s(674),S2=s.n(Fc);Fc.parser.yy=Ks;const e6=function(t,e){var r=se().gantt;Fc.parser.yy.clear(),Fc.parser.parse(t);var o=document.getElementById(e);(Rc=o.parentElement.offsetWidth)===void 0&&(Rc=1200),r.useWidth!==void 0&&(Rc=r.useWidth);var f=Fc.parser.yy.getTasks(),p=f.length*(r.barHeight+r.barGap)+2*r.topPadding;o.setAttribute("viewBox","0 0 "+Rc+" "+p);for(var m=Ce('[id="'.concat(e,'"]')),b=function(){return Ns.apply(lv(jm,S4,Is,Gp,$d,ul,Hd,Oh,cl,Um).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([L(f,function(j){return j.startTime}),A(f,function(j){return j.endTime})]).rangeRound([0,Rc-r.leftPadding-r.rightPadding]),S=[],E=0;E<f.length;E++)S.push(f[E].type);var O=S;S=function(j){for(var F={},U=[],ot=0,vt=j.length;ot<vt;++ot)F.hasOwnProperty(j[ot])||(F[j[ot]]=!0,U.push(j[ot]));return U}(S),f.sort(function(j,F){var U=j.startTime,ot=F.startTime,vt=0;return U>ot?vt=1:U<ot&&(vt=-1),vt}),function(j,F,U){var ot=r.barHeight,vt=ot+r.barGap,_t=r.topPadding,xt=r.leftPadding;Lm().domain([0,S.length]).range(["#00B9FA","#F95002"]).interpolate(p4),function(mt,st,qt,At){var pt,Lt=(pt=b,ht(3,pt)).tickSize(-At+st+r.gridLineStartPadding).tickFormat(to(Fc.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(m.append("g").attr("class","grid").attr("transform","translate("+mt+", "+(At-50)+")").call(Lt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),Ks.topAxisEnabled()||r.topAxis){var te=function(Et){return ht(1,Et)}(b).tickSize(-At+st+r.gridLineStartPadding).tickFormat(to(Fc.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));m.append("g").attr("class","grid").attr("transform","translate("+mt+", "+st+")").call(te).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(xt,_t,0,U),function(mt,st,qt,At,pt,Lt,te){m.append("g").selectAll("rect").data(mt).enter().append("rect").attr("x",0).attr("y",function(bt,Ut){return bt.order*st+qt-2}).attr("width",function(){return te-r.rightPadding/2}).attr("height",st).attr("class",function(bt){for(var Ut=0;Ut<S.length;Ut++)if(bt.type===S[Ut])return"section section"+Ut%r.numberSectionStyles;return"section section0"});var Et=m.append("g").selectAll("rect").data(mt).enter();Et.append("rect").attr("id",function(bt){return bt.id}).attr("rx",3).attr("ry",3).attr("x",function(bt){return bt.milestone?b(bt.startTime)+At+.5*(b(bt.endTime)-b(bt.startTime))-.5*pt:b(bt.startTime)+At}).attr("y",function(bt,Ut){return bt.order*st+qt}).attr("width",function(bt){return bt.milestone?pt:b(bt.renderEndTime||bt.endTime)-b(bt.startTime)}).attr("height",pt).attr("transform-origin",function(bt,Ut){return Ut=bt.order,(b(bt.startTime)+At+.5*(b(bt.endTime)-b(bt.startTime))).toString()+"px "+(Ut*st+qt+.5*pt).toString()+"px"}).attr("class",function(bt){var Ut="";bt.classes.length>0&&(Ut=bt.classes.join(" "));for(var St=0,Jt=0;Jt<S.length;Jt++)bt.type===S[Jt]&&(St=Jt%r.numberSectionStyles);var yt="";return bt.active?bt.crit?yt+=" activeCrit":yt=" active":bt.done?yt=bt.crit?" doneCrit":" done":bt.crit&&(yt+=" crit"),yt.length===0&&(yt=" task"),bt.milestone&&(yt=" milestone "+yt),"task"+(yt+=St)+" "+Ut}),Et.append("text").attr("id",function(bt){return bt.id+"-text"}).text(function(bt){return bt.task}).attr("font-size",r.fontSize).attr("x",function(bt){var Ut=b(bt.startTime),St=b(bt.renderEndTime||bt.endTime);bt.milestone&&(Ut+=.5*(b(bt.endTime)-b(bt.startTime))-.5*pt),bt.milestone&&(St=Ut+pt);var Jt=this.getBBox().width;return Jt>St-Ut?St+Jt+1.5*r.leftPadding>te?Ut+At-5:St+At+5:(St-Ut)/2+Ut+At}).attr("y",function(bt,Ut){return bt.order*st+r.barHeight/2+(r.fontSize/2-2)+qt}).attr("text-height",pt).attr("class",function(bt){var Ut=b(bt.startTime),St=b(bt.endTime);bt.milestone&&(St=Ut+pt);var Jt=this.getBBox().width,yt="";bt.classes.length>0&&(yt=bt.classes.join(" "));for(var fe=0,we=0;we<S.length;we++)bt.type===S[we]&&(fe=we%r.numberSectionStyles);var _e="";return bt.active&&(_e=bt.crit?"activeCritText"+fe:"activeText"+fe),bt.done?_e=bt.crit?_e+" doneCritText"+fe:_e+" doneText"+fe:bt.crit&&(_e=_e+" critText"+fe),bt.milestone&&(_e+=" milestoneText"),Jt>St-Ut?St+Jt+1.5*r.leftPadding>te?yt+" taskTextOutsideLeft taskTextOutside"+fe+" "+_e:yt+" taskTextOutsideRight taskTextOutside"+fe+" "+_e+" width-"+Jt:yt+" taskText taskText"+fe+" "+_e+" width-"+Jt})}(j,vt,_t,xt,ot,0,F),function(mt,st){for(var qt=[],At=0,pt=0;pt<S.length;pt++)qt[pt]=[S[pt],(Lt=S[pt],te=O,function(Et){for(var bt=Et.length,Ut={};bt;)Ut[Et[--bt]]=(Ut[Et[bt]]||0)+1;return Ut}(te)[Lt]||0)];var Lt,te;m.append("g").selectAll("text").data(qt).enter().append(function(Et){var bt=Et[0].split(Hr.lineBreakRegex),Ut=-(bt.length-1)/2,St=document.createElementNS("http://www.w3.org/2000/svg","text");St.setAttribute("dy",Ut+"em");for(var Jt=0;Jt<bt.length;Jt++){var yt=document.createElementNS("http://www.w3.org/2000/svg","tspan");yt.setAttribute("alignment-baseline","central"),yt.setAttribute("x","10"),Jt>0&&yt.setAttribute("dy","1em"),yt.textContent=bt[Jt],St.appendChild(yt)}return St}).attr("x",10).attr("y",function(Et,bt){if(!(bt>0))return Et[1]*mt/2+st;for(var Ut=0;Ut<bt;Ut++)return At+=qt[bt-1][1],Et[1]*mt/2+At*mt+st}).attr("font-size",r.sectionFontSize).attr("font-size",r.sectionFontSize).attr("class",function(Et){for(var bt=0;bt<S.length;bt++)if(Et[0]===S[bt])return"sectionTitle sectionTitle"+bt%r.numberSectionStyles;return"sectionTitle"})}(vt,_t),function(mt,st,qt,At){var pt=Ks.getTodayMarker();if(pt!=="off"){var Lt=m.append("g").attr("class","today"),te=new Date,Et=Lt.append("line");Et.attr("x1",b(te)+mt).attr("x2",b(te)+mt).attr("y1",r.titleTopMargin).attr("y2",At-r.titleTopMargin).attr("class","today"),pt!==""&&Et.attr("style",pt.replace(/,/g,";"))}}(xt,0,0,U)}(f,Rc,p),no(m,p,Rc,r.useMaxWidth),m.append("text").text(Fc.parser.yy.getTitle()).attr("x",Rc/2).attr("y",r.titleTopMargin).attr("class","titleText")};var Ci={},Sa=null,Fi={master:Sa},_s="master",sb="LR",Qf=0;function C2(){return zy({length:7})}function Jf(t,e){for(y.debug("Entering isfastforwardable:",t.id,e.id);t.seq<=e.seq&&t!==e&&e.parent!=null;){if(Array.isArray(e.parent))return y.debug("In merge commit:",e.parent),Jf(t,Ci[e.parent[0]])||Jf(t,Ci[e.parent[1]]);e=Ci[e.parent]}return y.debug(t.id,e.id),t.id===e.id}var cb={};function M2(t,e,r){var o=t.indexOf(e);o===-1?t.push(r):t.splice(o,1,r)}function A2(t){var e=t.reduce(function(O,j){return O.seq>j.seq?O:j},t[0]),r="";t.forEach(function(O){r+=O===e?" *":" |"});var o,f,p,m=[r,e.id,e.seq];for(var b in Fi)Fi[b]===e.id&&m.push(b);if(y.debug(m.join(" ")),Array.isArray(e.parent)){var S=Ci[e.parent[0]];M2(t,e,S),t.push(Ci[e.parent[1]])}else{if(e.parent==null)return;var E=Ci[e.parent];M2(t,e,E)}o=t,f=function(O){return O.id},p=Object.create(null),A2(t=o.reduce(function(O,j){var F=f(j);return p[F]||(p[F]=!0,O.push(j)),O},[]))}var ub=function(){var t=Object.keys(Ci).map(function(e){return Ci[e]});return t.forEach(function(e){y.debug(e.id)}),t.sort(function(e,r){return r.seq-e.seq}),t};const eh={setDirection:function(t){sb=t},setOptions:function(t){y.debug("options str",t),t=(t=t&&t.trim())||"{}";try{cb=JSON.parse(t)}catch(e){y.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return cb},commit:function(t){var e={id:C2(),message:t,seq:Qf++,parent:Sa==null?null:Sa.id};Sa=e,Ci[e.id]=e,Fi[_s]=e.id,y.debug("in pushCommit "+e.id)},branch:function(t){Fi[t]=Sa!=null?Sa.id:null,y.debug("in createBranch")},merge:function(t){var e=Ci[Fi[_s]],r=Ci[Fi[t]];if(function(f,p){return f.seq>p.seq&&Jf(p,f)}(e,r))y.debug("Already merged");else{if(Jf(e,r))Fi[_s]=Fi[t],Sa=Ci[Fi[_s]];else{var o={id:C2(),message:"merged branch "+t+" into "+_s,seq:Qf++,parent:[Sa==null?null:Sa.id,Fi[t]]};Sa=o,Ci[o.id]=o,Fi[_s]=o.id}y.debug(Fi),y.debug("in mergeBranch")}},checkout:function(t){y.debug("in checkout");var e=Fi[_s=t];Sa=Ci[e]},reset:function(t){y.debug("in reset",t);var e=t.split(":")[0],r=parseInt(t.split(":")[1]),o=e==="HEAD"?Sa:Ci[Fi[e]];for(y.debug(o,r);r>0;)if(r--,!(o=Ci[o.parent])){var f="Critical error - unique parent commit not found during reset";throw y.error(f),f}Sa=o,Fi[_s]=o.id},prettyPrint:function(){y.debug(Ci),A2([ub()[0]])},clear:function(){Ci={},Fi={master:Sa=null},_s="master",Qf=0},getBranchesAsObjArray:function(){var t=[];for(var e in Fi)t.push({name:e,commit:Ci[Fi[e]]});return t},getBranches:function(){return Fi},getCommits:function(){return Ci},getCommitsArray:ub,getCurrentBranch:function(){return _s},getDirection:function(){return sb},getHead:function(){return Sa}};var Nu,lb=s(4694),z0=s.n(lb),tc={},Nn={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},ao={};function Pc(t,e,r,o){var f=$o(o,jr),p=Nn.branchColors[r%Nn.branchColors.length],m=fo().x(function(b){return Math.round(b.x)}).y(function(b){return Math.round(b.y)}).curve(f);t.append("svg:path").attr("d",m(e)).style("stroke",p).style("stroke-width",Nn.lineStrokeWidth).style("fill","none")}function hb(t,e){e=e||t.node().getBBox();var r=t.node().getCTM();return{left:r.e+e.x*r.a,top:r.f+e.y*r.d,width:e.width,height:e.height}}function W0(t,e,r,o,f){y.debug("svgDrawLineForCommits: ",e,r);var p=hb(t.select("#node-"+e+" circle")),m=hb(t.select("#node-"+r+" circle"));switch(o){case"LR":if(p.left-m.left>Nn.nodeSpacing){var b={x:p.left-Nn.nodeSpacing,y:m.top+m.height/2};Pc(t,[b,{x:m.left+m.width,y:m.top+m.height/2}],f,"linear"),Pc(t,[{x:p.left,y:p.top+p.height/2},{x:p.left-Nn.nodeSpacing/2,y:p.top+p.height/2},{x:p.left-Nn.nodeSpacing/2,y:b.y},b],f)}else Pc(t,[{x:p.left,y:p.top+p.height/2},{x:p.left-Nn.nodeSpacing/2,y:p.top+p.height/2},{x:p.left-Nn.nodeSpacing/2,y:m.top+m.height/2},{x:m.left+m.width,y:m.top+m.height/2}],f);break;case"BT":if(m.top-p.top>Nn.nodeSpacing){var S={x:m.left+m.width/2,y:p.top+p.height+Nn.nodeSpacing};Pc(t,[S,{x:m.left+m.width/2,y:m.top}],f,"linear"),Pc(t,[{x:p.left+p.width/2,y:p.top+p.height},{x:p.left+p.width/2,y:p.top+p.height+Nn.nodeSpacing/2},{x:m.left+m.width/2,y:S.y-Nn.nodeSpacing/2},S],f)}else Pc(t,[{x:p.left+p.width/2,y:p.top+p.height},{x:p.left+p.width/2,y:p.top+Nn.nodeSpacing/2},{x:m.left+m.width/2,y:m.top-Nn.nodeSpacing/2},{x:m.left+m.width/2,y:m.top}],f)}}function n6(t,e){return t.select(e).node().cloneNode(!0)}function D2(t,e,r,o){var f,p=Object.keys(tc).length;if(typeof e=="string")do{if(f=tc[e],y.debug("in renderCommitHistory",f.id,f.seq),t.select("#node-"+e).size()>0)return;t.append(function(){return n6(t,"#def-commit")}).attr("class","commit").attr("id",function(){return"node-"+f.id}).attr("transform",function(){switch(o){case"LR":return"translate("+(f.seq*Nn.nodeSpacing+Nn.leftMargin)+", "+Nu*Nn.branchOffset+")";case"BT":return"translate("+(Nu*Nn.branchOffset+Nn.leftMargin)+", "+(p-f.seq)*Nn.nodeSpacing+")"}}).attr("fill",Nn.nodeFillColor).attr("stroke",Nn.nodeStrokeColor).attr("stroke-width",Nn.nodeStrokeWidth);var m=void 0;for(var b in r)if(r[b].commit===f){m=r[b];break}m&&(y.debug("found branch ",m.name),t.select("#node-"+f.id+" p").append("xhtml:span").attr("class","branch-label").text(m.name+", ")),t.select("#node-"+f.id+" p").append("xhtml:span").attr("class","commit-id").text(f.id),f.message!==""&&o==="BT"&&t.select("#node-"+f.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+f.message),e=f.parent}while(e&&tc[e]);Array.isArray(e)&&(y.debug("found merge commmit",e),D2(t,e[0],r,o),Nu++,D2(t,e[1],r,o),Nu--)}function ec(t,e,r,o){for(o=o||0;e.seq>0&&!e.lineDrawn;)typeof e.parent=="string"?(W0(t,e.id,e.parent,r,o),e.lineDrawn=!0,e=tc[e.parent]):Array.isArray(e.parent)&&(W0(t,e.id,e.parent[0],r,o),W0(t,e.id,e.parent[1],r,o+1),ec(t,tc[e.parent[1]],r,o+1),e.lineDrawn=!0,e=tc[e.parent[0]])}const Kf=function(t){ao=t};var td="",fb=!1;const N2={setMessage:function(t){y.debug("Setting message to: "+t),td=t},getMessage:function(){return td},setInfo:function(t){fb=t},getInfo:function(){return fb}};var r6=s(6023),O2=s.n(r6),i6={};const B2=function(t){Object.keys(t).forEach(function(e){i6[e]=t[e]})};var a6=s(1443),ed=s.n(a6),nh={},L2="",nd=!1;const I2={parseDirective:function(t,e,r){oa.parseDirective(this,t,e,r)},getConfig:function(){return se().pie},addSection:function(t,e){nh[t]===void 0&&(nh[t]=e,y.debug("Added new section :",t))},getSections:function(){return nh},cleanupValue:function(t){return t.substring(0,1)===":"&&(t=t.substring(1).trim()),Number(t.trim())},clear:function(){nh={},L2="",nd=!1},setTitle:function(t){L2=t},getTitle:function(){return L2},setShowData:function(t){nd=t},getShowData:function(){return nd}};var bs,nc=se();const R2=function(t,e){try{nc=se();var r=ed().parser;r.yy=I2,y.debug(`Rendering info diagram
|
|
`+t),r.yy.clear(),r.parse(t),y.debug("Parsed info diagram");var o=document.getElementById(e);(bs=o.parentElement.offsetWidth)===void 0&&(bs=1200),nc.useWidth!==void 0&&(bs=nc.useWidth),nc.pie.useWidth!==void 0&&(bs=nc.pie.useWidth);var f=Ce("#"+e);no(f,450,bs,nc.pie.useMaxWidth),o.setAttribute("viewBox","0 0 "+bs+" 450");var p=Math.min(bs,450)/2-40,m=f.append("g").attr("transform","translate("+bs/2+",225)"),b=I2.getSections(),S=0;Object.keys(b).forEach(function(_t){S+=b[_t]});var E=nc.themeVariables,O=[E.pie1,E.pie2,E.pie3,E.pie4,E.pie5,E.pie6,E.pie7,E.pie8,E.pie9,E.pie10,E.pie11,E.pie12],j=uc().range(O),F=function(){var _t=_l,xt=o1,mt=null,st=wr(0),qt=wr(Hh),At=wr(0);function pt(Lt){var te,Et,bt,Ut,St,Jt=(Lt=Dv(Lt)).length,yt=0,fe=new Array(Jt),we=new Array(Jt),_e=+st.apply(this,arguments),Re=Math.min(Hh,Math.max(-Hh,qt.apply(this,arguments)-_e)),We=Math.min(Math.abs(Re)/Jt,At.apply(this,arguments)),Ue=We*(Re<0?-1:1);for(te=0;te<Jt;++te)(St=we[fe[te]=te]=+_t(Lt[te],te,Lt))>0&&(yt+=St);for(xt!=null?fe.sort(function(fn,Ae){return xt(we[fn],we[Ae])}):mt!=null&&fe.sort(function(fn,Ae){return mt(Lt[fn],Lt[Ae])}),te=0,bt=yt?(Re-Jt*Ue)/yt:0;te<Jt;++te,_e=Ut)Et=fe[te],Ut=_e+((St=we[Et])>0?St*bt:0)+Ue,we[Et]={data:Lt[Et],index:te,value:St,startAngle:_e,endAngle:Ut,padAngle:We};return we}return pt.value=function(Lt){return arguments.length?(_t=typeof Lt=="function"?Lt:wr(+Lt),pt):_t},pt.sortValues=function(Lt){return arguments.length?(xt=Lt,mt=null,pt):xt},pt.sort=function(Lt){return arguments.length?(mt=Lt,xt=null,pt):mt},pt.startAngle=function(Lt){return arguments.length?(st=typeof Lt=="function"?Lt:wr(+Lt),pt):st},pt.endAngle=function(Lt){return arguments.length?(qt=typeof Lt=="function"?Lt:wr(+Lt),pt):qt},pt.padAngle=function(Lt){return arguments.length?(At=typeof Lt=="function"?Lt:wr(+Lt),pt):At},pt}().value(function(_t){return _t[1]}),U=F(Object.entries(b)),ot=mg().innerRadius(0).outerRadius(p);m.selectAll("mySlices").data(U).enter().append("path").attr("d",ot).attr("fill",function(_t){return j(_t.data[0])}).attr("class","pieCircle"),m.selectAll("mySlices").data(U).enter().append("text").text(function(_t){return(_t.data[1]/S*100).toFixed(0)+"%"}).attr("transform",function(_t){return"translate("+ot.centroid(_t)+")"}).style("text-anchor","middle").attr("class","slice"),m.append("text").text(r.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var vt=m.selectAll(".legend").data(j.domain()).enter().append("g").attr("class","legend").attr("transform",function(_t,xt){return"translate(216,"+(22*xt-22*j.domain().length/2)+")"});vt.append("rect").attr("width",18).attr("height",18).style("fill",j).style("stroke",j),vt.data(U).append("text").attr("x",22).attr("y",14).text(function(_t){return r.yy.getShowData()||nc.showData||nc.pie.showData?_t.data[0]+" ["+_t.data[1]+"]":_t.data[0]})}catch(_t){y.error("Error while rendering info diagram"),y.error(_t)}};var rd=s(1843),o6=s.n(rd),H0=[],Ya={},rh={},Yc={},ih={};const ah={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,r){oa.parseDirective(this,t,e,r)},getConfig:function(){return se().req},addRequirement:function(t,e){return rh[t]===void 0&&(rh[t]={name:t,type:e,id:Ya.id,text:Ya.text,risk:Ya.risk,verifyMethod:Ya.verifyMethod}),Ya={},rh[t]},getRequirements:function(){return rh},setNewReqId:function(t){Ya!==void 0&&(Ya.id=t)},setNewReqText:function(t){Ya!==void 0&&(Ya.text=t)},setNewReqRisk:function(t){Ya!==void 0&&(Ya.risk=t)},setNewReqVerifyMethod:function(t){Ya!==void 0&&(Ya.verifyMethod=t)},addElement:function(t){return ih[t]===void 0&&(ih[t]={name:t,type:Yc.type,docRef:Yc.docRef},y.info("Added new requirement: ",t)),Yc={},ih[t]},getElements:function(){return ih},setNewElementType:function(t){Yc!==void 0&&(Yc.type=t)},setNewElementDocRef:function(t){Yc!==void 0&&(Yc.docRef=t)},addRelationship:function(t,e,r){H0.push({type:t,src:e,dst:r})},getRelationships:function(){return H0},clear:function(){H0=[],Ya={},rh={},Yc={},ih={}}};var $0={CONTAINS:"contains",ARROW:"arrow"};const db=$0;var wi={},q0=0,id=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",wi.rect_min_width+"px").attr("height",wi.rect_min_height+"px")},F2=function(t,e,r){var o=wi.rect_min_width/2,f=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",o).attr("y",wi.rect_padding).attr("dominant-baseline","hanging"),p=0;r.forEach(function(b){p==0?f.append("tspan").attr("text-anchor","middle").attr("x",wi.rect_min_width/2).attr("dy",0).text(b):f.append("tspan").attr("text-anchor","middle").attr("x",wi.rect_min_width/2).attr("dy",.75*wi.line_height).text(b),p++});var m=1.5*wi.rect_padding+p*wi.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",wi.rect_min_width).attr("y1",m).attr("y2",m),{titleNode:f,y:m}},P2=function(t,e,r,o){var f=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",wi.rect_padding).attr("y",o).attr("dominant-baseline","hanging"),p=0,m=[];return r.forEach(function(b){for(var S=b.length;S>30&&p<3;){var E=b.substring(0,30);S=(b=b.substring(30,b.length)).length,m[m.length]=E,p++}if(p==3){var O=m[m.length-1];m[m.length-1]=O.substring(0,O.length-4)+"..."}else m[m.length]=b;p=0}),m.forEach(function(b){f.append("tspan").attr("x",wi.rect_padding).attr("dy",wi.line_height).text(b)}),f},oh=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const pb=function(t){if(t!==void 0)for(var e=Object.keys(t),r=0;r<e.length;r++)wi[e[r]]=t[e[r]]},gb=function(t,e){rd.parser.yy=ah,rd.parser.yy.clear(),rd.parser.parse(t);var r=Ce("[id='".concat(e,"']"));(function(j,F){var U=j.append("defs").append("marker").attr("id",$0.CONTAINS+"_line_ending").attr("refX",0).attr("refY",F.line_height/2).attr("markerWidth",F.line_height).attr("markerHeight",F.line_height).attr("orient","auto").append("g");U.append("circle").attr("cx",F.line_height/2).attr("cy",F.line_height/2).attr("r",F.line_height/2).attr("fill","none"),U.append("line").attr("x1",0).attr("x2",F.line_height).attr("y1",F.line_height/2).attr("y2",F.line_height/2).attr("stroke-width",1),U.append("line").attr("y1",0).attr("y2",F.line_height).attr("x1",F.line_height/2).attr("x2",F.line_height/2).attr("stroke-width",1),j.append("defs").append("marker").attr("id",$0.ARROW+"_line_ending").attr("refX",F.line_height).attr("refY",.5*F.line_height).attr("markerWidth",F.line_height).attr("markerHeight",F.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
L`.concat(F.line_height,",").concat(F.line_height/2,`
|
|
M`).concat(F.line_height,",").concat(F.line_height/2,`
|
|
L0,`).concat(F.line_height)).attr("stroke-width",1)})(r,wi);var o=new(Si()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:wi.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),f=ah.getRequirements(),p=ah.getElements(),m=ah.getRelationships();(function(j,F,U){Object.keys(j).forEach(function(ot){var vt=j[ot];ot=oh(ot),y.info("Added new requirement: ",ot);var _t=U.append("g").attr("id",ot),xt=id(_t,"req-"+ot),mt=F2(_t,ot+"_title",["<<".concat(vt.type,">>"),"".concat(vt.name)]);P2(_t,ot+"_body",["Id: ".concat(vt.id),"Text: ".concat(vt.text),"Risk: ".concat(vt.risk),"Verification: ".concat(vt.verifyMethod)],mt.y);var st=xt.node().getBBox();F.setNode(ot,{width:st.width,height:st.height,shape:"rect",id:ot})})})(f,o,r),function(j,F,U){Object.keys(j).forEach(function(ot){var vt=j[ot],_t=oh(ot),xt=U.append("g").attr("id",_t),mt="element-"+_t,st=id(xt,mt),qt=F2(xt,mt+"_title",["<<Element>>","".concat(ot)]);P2(xt,mt+"_body",["Type: ".concat(vt.type||"Not Specified"),"Doc Ref: ".concat(vt.docRef||"None")],qt.y);var At=st.node().getBBox();F.setNode(_t,{width:At.width,height:At.height,shape:"rect",id:_t})})}(p,o,r),function(j,F){j.forEach(function(U){var ot=oh(U.src),vt=oh(U.dst);F.setEdge(ot,vt,{relationship:U})})}(m,o),Vl().layout(o),function(j,F){F.nodes().forEach(function(U){U!==void 0&&F.node(U)!==void 0&&(j.select("#"+U),j.select("#"+U).attr("transform","translate("+(F.node(U).x-F.node(U).width/2)+","+(F.node(U).y-F.node(U).height/2)+" )"))})}(r,o),m.forEach(function(j){(function(F,U,ot,vt){var _t=ot.edge(oh(U.src),oh(U.dst)),xt=fo().x(function(st){return st.x}).y(function(st){return st.y}),mt=F.insert("path","#"+vt).attr("class","er relationshipLine").attr("d",xt(_t.points)).attr("fill","none");U.type==ah.Relationships.CONTAINS?mt.attr("marker-start","url("+Hr.getUrl(wi.arrowMarkerAbsolute)+"#"+U.type+"_line_ending)"):(mt.attr("stroke-dasharray","10,7"),mt.attr("marker-end","url("+Hr.getUrl(wi.arrowMarkerAbsolute)+"#"+db.ARROW+"_line_ending)")),function(st,qt,At,pt){var Lt=qt.node().getTotalLength(),te=qt.node().getPointAtLength(.5*Lt),Et="rel"+q0;q0++;var bt=st.append("text").attr("class","req relationshipLabel").attr("id",Et).attr("x",te.x).attr("y",te.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(pt).node().getBBox();st.insert("rect","#"+Et).attr("class","req reqLabelBox").attr("x",te.x-bt.width/2).attr("y",te.y-bt.height/2).attr("width",bt.width).attr("height",bt.height).attr("fill","white").attr("fill-opacity","85%")}(F,mt,0,"<<".concat(U.type,">>"))})(r,j,o,e)});var b=wi.rect_padding,S=r.node().getBBox(),E=S.width+2*b,O=S.height+2*b;no(r,O,E,wi.useMaxWidth),r.attr("viewBox","".concat(S.x-b," ").concat(S.y-b," ").concat(E," ").concat(O))};var en=s(3296),s6=s.n(en),jc=void 0,Uc={},xs=[],yb="",Ou=!1,Bu=!1,mb=!1,Y2=function(t,e,r,o){var f=Uc[t];f&&e===f.name&&r==null||(r!=null&&r.text!=null||(r={text:e,wrap:null,type:o}),o!=null&&r.text!=null||(r={text:e,wrap:null,type:o}),Uc[t]={name:e,description:r.text,wrap:r.wrap===void 0&&Lu()||!!r.wrap,prevActor:jc,links:{},properties:{},actorCnt:null,rectData:null,type:o||"participant"},jc&&Uc[jc]&&(Uc[jc].nextActor=t),jc=t)},c6=function(t){var e,r=0;for(e=0;e<xs.length;e++)xs[e].type===sh.ACTIVE_START&&xs[e].from.actor===t&&r++,xs[e].type===sh.ACTIVE_END&&xs[e].from.actor===t&&r--;return r},oo=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},o=arguments.length>3?arguments[3]:void 0;if(o===sh.ACTIVE_END){var f=c6(t.actor);if(f<1){var p=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw p.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},p}}return xs.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&Lu()||!!r.wrap,type:o}),!0},ad=function(t){return Uc[t]},Lu=function(){return mb},sh={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},vb=function(t,e,r){r.text,r.wrap===void 0&&Lu()||r.wrap;var o=[].concat(t,t);xs.push({from:o[0],to:o[1],message:r.text,wrap:r.wrap===void 0&&Lu()||!!r.wrap,type:sh.NOTE,placement:e})},j2=function(t,e){var r=ad(t);try{V0(r,JSON.parse(e.text))}catch(o){y.error("error while parsing actor link text",o)}};function V0(t,e){if(t.links==null)t.links=e;else for(var r in e)t.links[r]=e[r]}var _b=function(t,e){var r=ad(t);try{bb(r,JSON.parse(e.text))}catch(o){y.error("error while parsing actor properties text",o)}};function bb(t,e){if(t.properties==null)t.properties=e;else for(var r in e)t.properties[r]=e[r]}var xb=function(t,e){var r=ad(t),o=document.getElementById(e.text);try{var f=o.innerHTML,p=JSON.parse(f);p.properties&&bb(r,p.properties),p.links&&V0(r,p.links)}catch(m){y.error("error while parsing actor details text",m)}},U2=function(t){yb=t.text,Ou=t.wrap===void 0&&Lu()||!!t.wrap};const z2={addActor:Y2,addMessage:function(t,e,r,o){xs.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&Lu()||!!r.wrap,answer:o})},addSignal:oo,addLinks:j2,addDetails:xb,addProperties:_b,autoWrap:Lu,setWrap:function(t){mb=t},enableSequenceNumbers:function(){Bu=!0},showSequenceNumbers:function(){return Bu},getMessages:function(){return xs},getActors:function(){return Uc},getActor:ad,getActorKeys:function(){return Object.keys(Uc)},getActorProperty:function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},getTitle:function(){return yb},parseDirective:function(t,e,r){oa.parseDirective(this,t,e,r)},getConfig:function(){return se().sequence},getTitleWrapped:function(){return Ou},clear:function(){Uc={},xs=[]},parseMessage:function(t){var e=t.trim(),r={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:e.match(/^[:]?wrap:/)!==null||e.match(/^[:]?nowrap:/)===null&&void 0};return y.debug("parseMessage:",r),r},LINETYPE:sh,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:vb,setTitle:U2,apply:function t(e){if(e instanceof Array)e.forEach(function(r){t(r)});else switch(e.type){case"addParticipant":Y2(e.actor,e.actor,e.description,"participant");break;case"addActor":Y2(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":oo(e.actor,void 0,void 0,e.signalType);break;case"addNote":vb(e.actor,e.placement,e.text);break;case"addLinks":j2(e.actor,e.text);break;case"addALink":(function(r,o){var f=ad(r);try{var p={},m=o.text.indexOf("@"),b=o.text.slice(0,m-1).trim(),S=o.text.slice(m+1).trim();p[b]=S,V0(f,p)}catch(E){y.error("error while parsing actor link text",E)}})(e.actor,e.text);break;case"addProperties":_b(e.actor,e.text);break;case"addDetails":xb(e.actor,e.text);break;case"addMessage":oo(e.from,e.to,e.msg,e.signalType);break;case"loopStart":oo(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":oo(void 0,void 0,void 0,e.signalType);break;case"rectStart":oo(void 0,void 0,e.color,e.signalType);break;case"rectEnd":oo(void 0,void 0,void 0,e.signalType);break;case"optStart":oo(void 0,void 0,e.optText,e.signalType);break;case"optEnd":oo(void 0,void 0,void 0,e.signalType);break;case"altStart":case"else":oo(void 0,void 0,e.altText,e.signalType);break;case"altEnd":oo(void 0,void 0,void 0,e.signalType);break;case"setTitle":U2(e.text);break;case"parStart":case"and":oo(void 0,void 0,e.parText,e.signalType);break;case"parEnd":oo(void 0,void 0,void 0,e.signalType)}}};var G0=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},W2=function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/javascript:/g,"")},u6=function(t,e,r,o){var f=t.append("image");f.attr("x",e),f.attr("y",r);var p=W2(o);f.attr("xlink:href",p)},l6=function(t,e,r,o){var f=t.append("use");f.attr("x",e),f.attr("y",r);var p=W2(o);f.attr("xlink:href","#"+p)},H2=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'block'; }"},wb=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'none'; }"},od=function(t,e){var r=0,o=0,f=e.text.split(Hr.lineBreakRegex),p=[],m=0,b=function(){return e.y};if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":b=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":b=function(){return Math.round(e.y+(r+o+e.textMargin)/2)};break;case"bottom":case"end":b=function(){return Math.round(e.y+(r+o+2*e.textMargin)-e.textMargin)}}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="text-after-edge",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="text-before-edge",e.alignmentBaseline="middle"}for(var S=0;S<f.length;S++){var E=f[S];e.textMargin!==void 0&&e.textMargin===0&&e.fontSize!==void 0&&(m=S*e.fontSize);var O=t.append("text");if(O.attr("x",e.x),O.attr("y",b()),e.anchor!==void 0&&O.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&O.style("font-family",e.fontFamily),e.fontSize!==void 0&&O.style("font-size",e.fontSize),e.fontWeight!==void 0&&O.style("font-weight",e.fontWeight),e.fill!==void 0&&O.attr("fill",e.fill),e.class!==void 0&&O.attr("class",e.class),e.dy!==void 0?O.attr("dy",e.dy):m!==0&&O.attr("dy",m),e.tspan){var j=O.append("tspan");j.attr("x",e.x),e.fill!==void 0&&j.attr("fill",e.fill),j.text(E)}else O.text(E);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(o+=(O._groups||O)[0][0].getBBox().height,r=o),p.push(O)}return p},$2=function(t,e){var r=t.append("polygon");return r.attr("points",function(o,f,p,m,b){return o+","+f+" "+(o+p)+","+f+" "+(o+p)+","+(f+m-7)+" "+(o+p-8.4)+","+(f+m)+" "+o+","+(f+m)}(e.x,e.y,e.width,e.height)),r.attr("class","labelBox"),e.y=e.y+e.height/2,od(t,e),r},vo=-1,sd=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},cd=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},kb=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},q2=function(){function t(f,p,m,b,S,E,O){o(p.append("text").attr("x",m+S/2).attr("y",b+E/2+5).style("text-anchor","middle").text(f),O)}function e(f,p,m,b,S,E,O,j){for(var F=j.actorFontSize,U=j.actorFontFamily,ot=j.actorFontWeight,vt=f.split(Hr.lineBreakRegex),_t=0;_t<vt.length;_t++){var xt=_t*F-F*(vt.length-1)/2,mt=p.append("text").attr("x",m+S/2).attr("y",b).style("text-anchor","middle").style("font-size",F).style("font-weight",ot).style("font-family",U);mt.append("tspan").attr("x",m+S/2).attr("dy",xt).text(vt[_t]),mt.attr("y",b+E/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(mt,O)}}function r(f,p,m,b,S,E,O,j){var F=p.append("switch"),U=F.append("foreignObject").attr("x",m).attr("y",b).attr("width",S).attr("height",E).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");U.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(f),e(f,F,m,b,S,E,O,j),o(U,O)}function o(f,p){for(var m in p)p.hasOwnProperty(m)&&f.attr(m,p[m])}return function(f){return f.textPlacement==="fo"?r:f.textPlacement==="old"?t:e}}(),ud=function(){function t(f,p,m,b,S,E,O){o(p.append("text").attr("x",m).attr("y",b).style("text-anchor","start").text(f),O)}function e(f,p,m,b,S,E,O,j){for(var F=j.actorFontSize,U=j.actorFontFamily,ot=j.actorFontWeight,vt=f.split(Hr.lineBreakRegex),_t=0;_t<vt.length;_t++){var xt=_t*F-F*(vt.length-1)/2,mt=p.append("text").attr("x",m).attr("y",b).style("text-anchor","start").style("font-size",F).style("font-weight",ot).style("font-family",U);mt.append("tspan").attr("x",m).attr("dy",xt).text(vt[_t]),mt.attr("y",b+E/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(mt,O)}}function r(f,p,m,b,S,E,O,j){var F=p.append("switch"),U=F.append("foreignObject").attr("x",m).attr("y",b).attr("width",S).attr("height",E).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");U.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(f),e(f,F,m,b,0,E,O,j),o(U,O)}function o(f,p){for(var m in p)p.hasOwnProperty(m)&&f.attr(m,p[m])}return function(f){return f.textPlacement==="fo"?r:f.textPlacement==="old"?t:e}}();const ld=G0,X0=function(t,e,r){switch(e.type){case"actor":return function(o,f,p){var m=f.x+f.width/2;f.y===0&&(vo++,o.append("line").attr("id","actor"+vo).attr("x1",m).attr("y1",80).attr("x2",m).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var b=o.append("g");b.attr("class","actor-man");var S={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};S.x=f.x,S.y=f.y,S.fill="#eaeaea",S.width=f.width,S.height=f.height,S.class="actor",S.rx=3,S.ry=3,b.append("line").attr("id","actor-man-torso"+vo).attr("x1",m).attr("y1",f.y+25).attr("x2",m).attr("y2",f.y+45),b.append("line").attr("id","actor-man-arms"+vo).attr("x1",m-18).attr("y1",f.y+33).attr("x2",m+18).attr("y2",f.y+33),b.append("line").attr("x1",m-18).attr("y1",f.y+60).attr("x2",m).attr("y2",f.y+45),b.append("line").attr("x1",m).attr("y1",f.y+45).attr("x2",m+16).attr("y2",f.y+60);var E=b.append("circle");E.attr("cx",f.x+f.width/2),E.attr("cy",f.y+10),E.attr("r",15),E.attr("width",f.width),E.attr("height",f.height);var O=b.node().getBBox();return f.height=O.height,q2(p)(f.description,b,S.x,S.y+35,S.width,S.height,{class:"actor"},p),f.height}(t,e,r);case"participant":return function(o,f,p){var m=f.x+f.width/2,b=o.append("g"),S=b;f.y===0&&(vo++,S.append("line").attr("id","actor"+vo).attr("x1",m).attr("y1",5).attr("x2",m).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),S=b.append("g"),f.actorCnt=vo,f.links!=null&&(S.attr("onmouseover",H2("actor"+vo+"_popup")),S.attr("onmouseout",wb("actor"+vo+"_popup"))));var E={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},O="actor";f.properties!=null&&f.properties.class?O=f.properties.class:E.fill="#eaeaea",E.x=f.x,E.y=f.y,E.width=f.width,E.height=f.height,E.class=O,E.rx=3,E.ry=3;var j=G0(S,E);if(f.rectData=E,f.properties!=null&&f.properties.icon){var F=f.properties.icon.trim();F.charAt(0)==="@"?l6(S,E.x+E.width-20,E.y+10,F.substr(1)):u6(S,E.x+E.width-20,E.y+10,F)}q2(p)(f.description,S,E.x,E.y,E.width,E.height,{class:"actor"},p);var U=f.height;if(j.node){var ot=j.node().getBBox();f.height=ot.height,U=ot.height}return U}(t,e,r)}},h6=function(t,e,r,o,f){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};var p=e.links,m=e.actorCnt,b=e.rectData,S="none";f&&(S="block !important");var E=t.append("g");E.attr("id","actor"+m+"_popup"),E.attr("class","actorPopupMenu"),E.attr("display",S),E.attr("onmouseover",H2("actor"+m+"_popup")),E.attr("onmouseout",wb("actor"+m+"_popup"));var O="";b.class!==void 0&&(O=" "+b.class);var j=b.width>r?b.width:r,F=E.append("rect");if(F.attr("class","actorPopupMenuPanel"+O),F.attr("x",b.x),F.attr("y",b.height),F.attr("fill",b.fill),F.attr("stroke",b.stroke),F.attr("width",j),F.attr("height",b.height),F.attr("rx",b.rx),F.attr("ry",b.ry),p!=null){var U=20;for(var ot in p){var vt=E.append("a"),_t=W2(p[ot]);vt.attr("xlink:href",_t),vt.attr("target","_blank"),ud(o)(ot,vt,b.x+10,b.height+U,j,20,{class:"actor"},o),U+=30}}return F.attr("height",U),{height:b.height+U,width:j}},f6=function(t){return t.append("g")},d6=function(t,e,r,o,f){var p={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},m=e.anchored;p.x=e.startx,p.y=e.starty,p.class="activation"+f%3,p.width=e.stopx-e.startx,p.height=r-e.starty,G0(m,p)},hd=function(t,e,r,o){var f=o.boxMargin,p=o.boxTextMargin,m=o.labelBoxHeight,b=o.labelBoxWidth,S=o.messageFontFamily,E=o.messageFontSize,O=o.messageFontWeight,j=t.append("g"),F=function(vt,_t,xt,mt){return j.append("line").attr("x1",vt).attr("y1",_t).attr("x2",xt).attr("y2",mt).attr("class","loopLine")};F(e.startx,e.starty,e.stopx,e.starty),F(e.stopx,e.starty,e.stopx,e.stopy),F(e.startx,e.stopy,e.stopx,e.stopy),F(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(vt){F(e.startx,vt.y,e.stopx,vt.y).style("stroke-dasharray","3, 3")});var U={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};U.text=r,U.x=e.startx,U.y=e.starty,U.fontFamily=S,U.fontSize=E,U.fontWeight=O,U.anchor="middle",U.valign="middle",U.tspan=!1,U.width=b||50,U.height=m||20,U.textMargin=p,U.class="labelText",$2(j,U),(U={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}).text=e.title,U.x=e.startx+b/2+(e.stopx-e.startx)/2,U.y=e.starty+f+p,U.anchor="middle",U.valign="middle",U.textMargin=p,U.class="loopText",U.fontFamily=S,U.fontSize=E,U.fontWeight=O,U.wrap=!0;var ot=od(j,U);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(vt,_t){if(vt.message){U.text=vt.message,U.x=e.startx+(e.stopx-e.startx)/2,U.y=e.sections[_t].y+f+p,U.class="loopText",U.anchor="middle",U.valign="middle",U.tspan=!1,U.fontFamily=S,U.fontSize=E,U.fontWeight=O,U.wrap=e.wrap,ot=od(j,U);var xt=Math.round(ot.map(function(mt){return(mt._groups||mt)[0][0].getBBox().height}).reduce(function(mt,st){return mt+st}));e.sections[_t].height+=xt-(f+p)}}),e.height=Math.round(e.stopy-e.starty),j},p6=function(t,e){G0(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},V2=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},Tb=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},g6=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},ch=function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},uh=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},Eb=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},y6=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},G2=cd,X2=kb;en.parser.yy=z2;var ce={},Xe={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(function(t){return t.height||0}))+(this.loops.length===0?0:this.loops.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.messages.length===0?0:this.messages.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.notes.length===0?0:this.notes.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,aa(en.parser.yy.getConfig())},updateVal:function(t,e,r,o){t[e]===void 0?t[e]=r:t[e]=o(r,t[e])},updateBounds:function(t,e,r,o){var f=this,p=0;function m(b){return function(S){p++;var E=f.sequenceItems.length-p+1;f.updateVal(S,"starty",e-E*ce.boxMargin,Math.min),f.updateVal(S,"stopy",o+E*ce.boxMargin,Math.max),f.updateVal(Xe.data,"startx",t-E*ce.boxMargin,Math.min),f.updateVal(Xe.data,"stopx",r+E*ce.boxMargin,Math.max),b!=="activation"&&(f.updateVal(S,"startx",t-E*ce.boxMargin,Math.min),f.updateVal(S,"stopx",r+E*ce.boxMargin,Math.max),f.updateVal(Xe.data,"starty",e-E*ce.boxMargin,Math.min),f.updateVal(Xe.data,"stopy",o+E*ce.boxMargin,Math.max))}}this.sequenceItems.forEach(m()),this.activations.forEach(m("activation"))},insert:function(t,e,r,o){var f=Math.min(t,r),p=Math.max(t,r),m=Math.min(e,o),b=Math.max(e,o);this.updateVal(Xe.data,"startx",f,Math.min),this.updateVal(Xe.data,"starty",m,Math.min),this.updateVal(Xe.data,"stopx",p,Math.max),this.updateVal(Xe.data,"stopy",b,Math.max),this.updateBounds(f,m,p,b)},newActivation:function(t,e,r){var o=r[t.from.actor],f=Sr(t.from.actor).length||0,p=o.x+o.width/2+(f-1)*ce.activationWidth/2;this.activations.push({startx:p,starty:this.verticalPos+2,stopx:p+ce.activationWidth,stopy:void 0,actor:t.from.actor,anchored:f6(e)})},endActivation:function(t){var e=this.activations.map(function(r){return r.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:Xe.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},lh=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},hh=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},zc=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},Ca=function(t,e,r,o){for(var f=0,p=0,m=0,b=0;b<r.length;b++){var S=e[r[b]];S.width=S.width||ce.width,S.height=Math.max(S.height||ce.height,ce.height),S.margin=S.margin||ce.actorMargin,S.x=f+p,S.y=o;var E=X0(t,S,ce);m=Math.max(m,E),Xe.insert(S.x,o,S.x+S.width,S.height),f+=S.width,p+=S.margin,Xe.models.addActor(S)}Xe.bumpVerticalPos(m)},fh=function(t,e,r){for(var o=0,f=0,p=0;p<r.length;p++){var m=e[r[p]],b=m6(m),S=h6(t,m,b,ce,ce.forceMenus);S.height>o&&(o=S.height),S.width+m.x>f&&(f=S.width+m.x)}return{maxHeight:o,maxWidth:f}},aa=function(t){Vi(ce,t),t.fontFamily&&(ce.actorFontFamily=ce.noteFontFamily=ce.messageFontFamily=t.fontFamily),t.fontSize&&(ce.actorFontSize=ce.noteFontSize=ce.messageFontSize=t.fontSize),t.fontWeight&&(ce.actorFontWeight=ce.noteFontWeight=ce.messageFontWeight=t.fontWeight)},Sr=function(t){return Xe.activations.filter(function(e){return e.actor===t})},Sb=function(t,e){var r=e[t],o=Sr(t);return[o.reduce(function(f,p){return Math.min(f,p.startx)},r.x+r.width/2),o.reduce(function(f,p){return Math.max(f,p.stopx)},r.x+r.width/2)]};function Iu(t,e,r,o,f){Xe.bumpVerticalPos(r);var p=o;if(e.id&&e.message&&t[e.id]){var m=t[e.id].width,b=lh(ce);e.message=Jn.wrapLabel("[".concat(e.message,"]"),m-2*ce.wrapPadding,b),e.width=m,e.wrap=!0;var S=Jn.calculateTextDimensions(e.message,b),E=Math.max(S.height,ce.labelBoxHeight);p=o+E,y.debug("".concat(E," - ").concat(e.message))}f(e),Xe.bumpVerticalPos(p)}var m6=function(t){var e=0,r=zc(ce);for(var o in t.links){var f=Jn.calculateTextDimensions(o,r).width+2*ce.wrapPadding+2*ce.boxMargin;e<f&&(e=f)}return e};const Ru={bounds:Xe,drawActors:Ca,drawActorsPopup:fh,setConf:aa,draw:function(t,e){ce=se().sequence,en.parser.yy.clear(),en.parser.yy.setWrap(ce.wrap),en.parser.parse(t+`
|
|
`),Xe.init(),y.debug("C:".concat(JSON.stringify(ce,null,2)));var r=Ce('[id="'.concat(e,'"]')),o=en.parser.yy.getActors(),f=en.parser.yy.getActorKeys(),p=en.parser.yy.getMessages(),m=en.parser.yy.getTitle(),b=function(xt,mt){var st={};return mt.forEach(function(qt){if(xt[qt.to]&&xt[qt.from]){var At=xt[qt.to];if(qt.placement===en.parser.yy.PLACEMENT.LEFTOF&&!At.prevActor||qt.placement===en.parser.yy.PLACEMENT.RIGHTOF&&!At.nextActor)return;var pt=qt.placement!==void 0,Lt=!pt,te=pt?hh(ce):lh(ce),Et=qt.wrap?Jn.wrapLabel(qt.message,ce.width-2*ce.wrapPadding,te):qt.message,bt=Jn.calculateTextDimensions(Et,te).width+2*ce.wrapPadding;Lt&&qt.from===At.nextActor?st[qt.to]=Math.max(st[qt.to]||0,bt):Lt&&qt.from===At.prevActor?st[qt.from]=Math.max(st[qt.from]||0,bt):Lt&&qt.from===qt.to?(st[qt.from]=Math.max(st[qt.from]||0,bt/2),st[qt.to]=Math.max(st[qt.to]||0,bt/2)):qt.placement===en.parser.yy.PLACEMENT.RIGHTOF?st[qt.from]=Math.max(st[qt.from]||0,bt):qt.placement===en.parser.yy.PLACEMENT.LEFTOF?st[At.prevActor]=Math.max(st[At.prevActor]||0,bt):qt.placement===en.parser.yy.PLACEMENT.OVER&&(At.prevActor&&(st[At.prevActor]=Math.max(st[At.prevActor]||0,bt/2)),At.nextActor&&(st[qt.from]=Math.max(st[qt.from]||0,bt/2)))}}),y.debug("maxMessageWidthPerActor:",st),st}(o,p);ce.height=function(xt,mt){var st=0;for(var qt in Object.keys(xt).forEach(function(te){var Et=xt[te];Et.wrap&&(Et.description=Jn.wrapLabel(Et.description,ce.width-2*ce.wrapPadding,zc(ce)));var bt=Jn.calculateTextDimensions(Et.description,zc(ce));Et.width=Et.wrap?ce.width:Math.max(ce.width,bt.width+2*ce.wrapPadding),Et.height=Et.wrap?Math.max(bt.height,ce.height):ce.height,st=Math.max(st,Et.height)}),mt){var At=xt[qt];if(At){var pt=xt[At.nextActor];if(pt){var Lt=mt[qt]+ce.actorMargin-At.width/2-pt.width/2;At.margin=Math.max(Lt,ce.actorMargin)}}}return Math.max(st,ce.height)}(o,b),Eb(r),uh(r),y6(r),Ca(r,o,f,0);var S=function(xt,mt){var st,qt,At,pt={},Lt=[];return xt.forEach(function(te){switch(te.id=Jn.random({length:10}),te.type){case en.parser.yy.LINETYPE.LOOP_START:case en.parser.yy.LINETYPE.ALT_START:case en.parser.yy.LINETYPE.OPT_START:case en.parser.yy.LINETYPE.PAR_START:Lt.push({id:te.id,msg:te.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case en.parser.yy.LINETYPE.ALT_ELSE:case en.parser.yy.LINETYPE.PAR_AND:te.message&&(st=Lt.pop(),pt[st.id]=st,pt[te.id]=st,Lt.push(st));break;case en.parser.yy.LINETYPE.LOOP_END:case en.parser.yy.LINETYPE.ALT_END:case en.parser.yy.LINETYPE.OPT_END:case en.parser.yy.LINETYPE.PAR_END:st=Lt.pop(),pt[st.id]=st;break;case en.parser.yy.LINETYPE.ACTIVE_START:var Et=mt[te.from?te.from.actor:te.to.actor],bt=Sr(te.from?te.from.actor:te.to.actor).length,Ut=Et.x+Et.width/2+(bt-1)*ce.activationWidth/2,St={startx:Ut,stopx:Ut+ce.activationWidth,actor:te.from.actor,enabled:!0};Xe.activations.push(St);break;case en.parser.yy.LINETYPE.ACTIVE_END:var Jt=Xe.activations.map(function(yt){return yt.actor}).lastIndexOf(te.from.actor);delete Xe.activations.splice(Jt,1)[0]}te.placement!==void 0?(qt=function(yt,fe){var we=fe[yt.from].x,_e=fe[yt.to].x,Re=yt.wrap&&yt.message,We=Jn.calculateTextDimensions(Re?Jn.wrapLabel(yt.message,ce.width,hh(ce)):yt.message,hh(ce)),Ue={width:Re?ce.width:Math.max(ce.width,We.width+2*ce.noteMargin),height:0,startx:fe[yt.from].x,stopx:0,starty:0,stopy:0,message:yt.message};return yt.placement===en.parser.yy.PLACEMENT.RIGHTOF?(Ue.width=Re?Math.max(ce.width,We.width):Math.max(fe[yt.from].width/2+fe[yt.to].width/2,We.width+2*ce.noteMargin),Ue.startx=we+(fe[yt.from].width+ce.actorMargin)/2):yt.placement===en.parser.yy.PLACEMENT.LEFTOF?(Ue.width=Math.max(Re?ce.width:fe[yt.from].width/2+fe[yt.to].width/2,We.width+2*ce.noteMargin),Ue.startx=we-Ue.width+(fe[yt.from].width-ce.actorMargin)/2):yt.to===yt.from?(We=Jn.calculateTextDimensions(Re?Jn.wrapLabel(yt.message,Math.max(ce.width,fe[yt.from].width),hh(ce)):yt.message,hh(ce)),Ue.width=Re?Math.max(ce.width,fe[yt.from].width):Math.max(fe[yt.from].width,ce.width,We.width+2*ce.noteMargin),Ue.startx=we+(fe[yt.from].width-Ue.width)/2):(Ue.width=Math.abs(we+fe[yt.from].width/2-(_e+fe[yt.to].width/2))+ce.actorMargin,Ue.startx=we<_e?we+fe[yt.from].width/2-ce.actorMargin/2:_e+fe[yt.to].width/2-ce.actorMargin/2),Re&&(Ue.message=Jn.wrapLabel(yt.message,Ue.width-2*ce.wrapPadding,hh(ce))),y.debug("NM:[".concat(Ue.startx,",").concat(Ue.stopx,",").concat(Ue.starty,",").concat(Ue.stopy,":").concat(Ue.width,",").concat(Ue.height,"=").concat(yt.message,"]")),Ue}(te,mt),te.noteModel=qt,Lt.forEach(function(yt){(st=yt).from=Math.min(st.from,qt.startx),st.to=Math.max(st.to,qt.startx+qt.width),st.width=Math.max(st.width,Math.abs(st.from-st.to))-ce.labelBoxWidth})):(At=function(yt,fe){var we=!1;if([en.parser.yy.LINETYPE.SOLID_OPEN,en.parser.yy.LINETYPE.DOTTED_OPEN,en.parser.yy.LINETYPE.SOLID,en.parser.yy.LINETYPE.DOTTED,en.parser.yy.LINETYPE.SOLID_CROSS,en.parser.yy.LINETYPE.DOTTED_CROSS,en.parser.yy.LINETYPE.SOLID_POINT,en.parser.yy.LINETYPE.DOTTED_POINT].includes(yt.type)&&(we=!0),!we)return{};var _e=Sb(yt.from,fe),Re=Sb(yt.to,fe),We=_e[0]<=Re[0]?1:0,Ue=_e[0]<Re[0]?0:1,fn=_e.concat(Re),Ae=Math.abs(Re[Ue]-_e[We]);yt.wrap&&yt.message&&(yt.message=Jn.wrapLabel(yt.message,Math.max(Ae+2*ce.wrapPadding,ce.width),lh(ce)));var Xn=Jn.calculateTextDimensions(yt.message,lh(ce));return{width:Math.max(yt.wrap?0:Xn.width+2*ce.wrapPadding,Ae+2*ce.wrapPadding,ce.width),height:0,startx:_e[We],stopx:Re[Ue],starty:0,stopy:0,message:yt.message,type:yt.type,wrap:yt.wrap,fromBounds:Math.min.apply(null,fn),toBounds:Math.max.apply(null,fn)}}(te,mt),te.msgModel=At,At.startx&&At.stopx&&Lt.length>0&&Lt.forEach(function(yt){if(st=yt,At.startx===At.stopx){var fe=mt[te.from],we=mt[te.to];st.from=Math.min(fe.x-At.width/2,fe.x-fe.width/2,st.from),st.to=Math.max(we.x+At.width/2,we.x+fe.width/2,st.to),st.width=Math.max(st.width,Math.abs(st.to-st.from))-ce.labelBoxWidth}else st.from=Math.min(At.startx,st.from),st.to=Math.max(At.stopx,st.to),st.width=Math.max(st.width,At.width)-ce.labelBoxWidth}))}),Xe.activations=[],y.debug("Loop type widths:",pt),pt}(p,o);V2(r),ch(r),Tb(r),g6(r);var E=1;p.forEach(function(xt){var mt,st,qt;switch(xt.type){case en.parser.yy.LINETYPE.NOTE:st=xt.noteModel,function(At,pt){Xe.bumpVerticalPos(ce.boxMargin),pt.height=ce.boxMargin,pt.starty=Xe.getVerticalPos();var Lt=X2();Lt.x=pt.startx,Lt.y=pt.starty,Lt.width=pt.width||ce.width,Lt.class="note";var te=At.append("g"),Et=ld(te,Lt),bt=G2();bt.x=pt.startx,bt.y=pt.starty,bt.width=Lt.width,bt.dy="1em",bt.text=pt.message,bt.class="noteText",bt.fontFamily=ce.noteFontFamily,bt.fontSize=ce.noteFontSize,bt.fontWeight=ce.noteFontWeight,bt.anchor=ce.noteAlign,bt.textMargin=ce.noteMargin,bt.valign=ce.noteAlign;var Ut=od(te,bt),St=Math.round(Ut.map(function(Jt){return(Jt._groups||Jt)[0][0].getBBox().height}).reduce(function(Jt,yt){return Jt+yt}));Et.attr("height",St+2*ce.noteMargin),pt.height+=St+2*ce.noteMargin,Xe.bumpVerticalPos(St+2*ce.noteMargin),pt.stopy=pt.starty+St+2*ce.noteMargin,pt.stopx=pt.startx+Lt.width,Xe.insert(pt.startx,pt.starty,pt.stopx,pt.stopy),Xe.models.addNote(pt)}(r,st);break;case en.parser.yy.LINETYPE.ACTIVE_START:Xe.newActivation(xt,r,o);break;case en.parser.yy.LINETYPE.ACTIVE_END:(function(At,pt){var Lt=Xe.endActivation(At);Lt.starty+18>pt&&(Lt.starty=pt-6,pt+=12),d6(r,Lt,pt,ce,Sr(At.from.actor).length),Xe.insert(Lt.startx,pt-10,Lt.stopx,pt)})(xt,Xe.getVerticalPos());break;case en.parser.yy.LINETYPE.LOOP_START:Iu(S,xt,ce.boxMargin,ce.boxMargin+ce.boxTextMargin,function(At){return Xe.newLoop(At)});break;case en.parser.yy.LINETYPE.LOOP_END:mt=Xe.endLoop(),hd(r,mt,"loop",ce),Xe.bumpVerticalPos(mt.stopy-Xe.getVerticalPos()),Xe.models.addLoop(mt);break;case en.parser.yy.LINETYPE.RECT_START:Iu(S,xt,ce.boxMargin,ce.boxMargin,function(At){return Xe.newLoop(void 0,At.message)});break;case en.parser.yy.LINETYPE.RECT_END:mt=Xe.endLoop(),p6(r,mt),Xe.models.addLoop(mt),Xe.bumpVerticalPos(mt.stopy-Xe.getVerticalPos());break;case en.parser.yy.LINETYPE.OPT_START:Iu(S,xt,ce.boxMargin,ce.boxMargin+ce.boxTextMargin,function(At){return Xe.newLoop(At)});break;case en.parser.yy.LINETYPE.OPT_END:mt=Xe.endLoop(),hd(r,mt,"opt",ce),Xe.bumpVerticalPos(mt.stopy-Xe.getVerticalPos()),Xe.models.addLoop(mt);break;case en.parser.yy.LINETYPE.ALT_START:Iu(S,xt,ce.boxMargin,ce.boxMargin+ce.boxTextMargin,function(At){return Xe.newLoop(At)});break;case en.parser.yy.LINETYPE.ALT_ELSE:Iu(S,xt,ce.boxMargin+ce.boxTextMargin,ce.boxMargin,function(At){return Xe.addSectionToLoop(At)});break;case en.parser.yy.LINETYPE.ALT_END:mt=Xe.endLoop(),hd(r,mt,"alt",ce),Xe.bumpVerticalPos(mt.stopy-Xe.getVerticalPos()),Xe.models.addLoop(mt);break;case en.parser.yy.LINETYPE.PAR_START:Iu(S,xt,ce.boxMargin,ce.boxMargin+ce.boxTextMargin,function(At){return Xe.newLoop(At)});break;case en.parser.yy.LINETYPE.PAR_AND:Iu(S,xt,ce.boxMargin+ce.boxTextMargin,ce.boxMargin,function(At){return Xe.addSectionToLoop(At)});break;case en.parser.yy.LINETYPE.PAR_END:mt=Xe.endLoop(),hd(r,mt,"par",ce),Xe.bumpVerticalPos(mt.stopy-Xe.getVerticalPos()),Xe.models.addLoop(mt);break;default:try{(qt=xt.msgModel).starty=Xe.getVerticalPos(),qt.sequenceIndex=E,function(At,pt){Xe.bumpVerticalPos(10);var Lt=pt.startx,te=pt.stopx,Et=pt.starty,bt=pt.message,Ut=pt.type,St=pt.sequenceIndex,Jt=Hr.splitBreaks(bt).length,yt=Jn.calculateTextDimensions(bt,lh(ce)),fe=yt.height/Jt;pt.height+=fe,Xe.bumpVerticalPos(fe);var we=G2();we.x=Lt,we.y=Et+10,we.width=te-Lt,we.class="messageText",we.dy="1em",we.text=bt,we.fontFamily=ce.messageFontFamily,we.fontSize=ce.messageFontSize,we.fontWeight=ce.messageFontWeight,we.anchor=ce.messageAlign,we.valign=ce.messageAlign,we.textMargin=ce.wrapPadding,we.tspan=!1,od(At,we);var _e,Re,We=yt.height-10,Ue=yt.width;if(Lt===te){Re=Xe.getVerticalPos()+We,ce.rightAngles?_e=At.append("path").attr("d","M ".concat(Lt,",").concat(Re," H ").concat(Lt+Math.max(ce.width/2,Ue/2)," V ").concat(Re+25," H ").concat(Lt)):(We+=ce.boxMargin,Re=Xe.getVerticalPos()+We,_e=At.append("path").attr("d","M "+Lt+","+Re+" C "+(Lt+60)+","+(Re-10)+" "+(Lt+60)+","+(Re+30)+" "+Lt+","+(Re+20))),We+=30;var fn=Math.max(Ue/2,ce.width/2);Xe.insert(Lt-fn,Xe.getVerticalPos()-10+We,te+fn,Xe.getVerticalPos()+30+We)}else We+=ce.boxMargin,Re=Xe.getVerticalPos()+We,(_e=At.append("line")).attr("x1",Lt),_e.attr("y1",Re),_e.attr("x2",te),_e.attr("y2",Re),Xe.insert(Lt,Re-10,te,Re);Ut===en.parser.yy.LINETYPE.DOTTED||Ut===en.parser.yy.LINETYPE.DOTTED_CROSS||Ut===en.parser.yy.LINETYPE.DOTTED_POINT||Ut===en.parser.yy.LINETYPE.DOTTED_OPEN?(_e.style("stroke-dasharray","3, 3"),_e.attr("class","messageLine1")):_e.attr("class","messageLine0");var Ae="";ce.arrowMarkerAbsolute&&(Ae=(Ae=(Ae=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),_e.attr("stroke-width",2),_e.attr("stroke","none"),_e.style("fill","none"),Ut!==en.parser.yy.LINETYPE.SOLID&&Ut!==en.parser.yy.LINETYPE.DOTTED||_e.attr("marker-end","url("+Ae+"#arrowhead)"),Ut!==en.parser.yy.LINETYPE.SOLID_POINT&&Ut!==en.parser.yy.LINETYPE.DOTTED_POINT||_e.attr("marker-end","url("+Ae+"#filled-head)"),Ut!==en.parser.yy.LINETYPE.SOLID_CROSS&&Ut!==en.parser.yy.LINETYPE.DOTTED_CROSS||_e.attr("marker-end","url("+Ae+"#crosshead)"),(z2.showSequenceNumbers()||ce.showSequenceNumbers)&&(_e.attr("marker-start","url("+Ae+"#sequencenumber)"),At.append("text").attr("x",Lt).attr("y",Re+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(St)),Xe.bumpVerticalPos(We),pt.height+=We,pt.stopy=pt.starty+pt.height,Xe.insert(pt.fromBounds,pt.starty,pt.toBounds,pt.stopy)}(r,qt),Xe.models.addMessage(qt)}catch(At){y.error("error while drawing message",At)}}[en.parser.yy.LINETYPE.SOLID_OPEN,en.parser.yy.LINETYPE.DOTTED_OPEN,en.parser.yy.LINETYPE.SOLID,en.parser.yy.LINETYPE.DOTTED,en.parser.yy.LINETYPE.SOLID_CROSS,en.parser.yy.LINETYPE.DOTTED_CROSS,en.parser.yy.LINETYPE.SOLID_POINT,en.parser.yy.LINETYPE.DOTTED_POINT].includes(xt.type)&&E++}),ce.mirrorActors&&(Xe.bumpVerticalPos(2*ce.boxMargin),Ca(r,o,f,Xe.getVerticalPos()),Xe.bumpVerticalPos(ce.boxMargin),sd(r,Xe.getVerticalPos()));var O=fh(r,o,f),j=Xe.getBounds().bounds;y.debug("For line height fix Querying: #"+e+" .actor-line"),gc("#"+e+" .actor-line").attr("y2",j.stopy);var F=j.stopy-j.starty;F<O.maxHeight&&(F=O.maxHeight);var U=F+2*ce.diagramMarginY;ce.mirrorActors&&(U=U-ce.boxMargin+ce.bottomMarginAdj);var ot=j.stopx-j.startx;ot<O.maxWidth&&(ot=O.maxWidth);var vt=ot+2*ce.diagramMarginX;m&&r.append("text").text(m).attr("x",(j.stopx-j.startx)/2-2*ce.diagramMarginX).attr("y",-25),no(r,U,vt,ce.useMaxWidth);var _t=m?40:0;r.attr("viewBox",j.startx-ce.diagramMarginX+" -"+(ce.diagramMarginY+_t)+" "+vt+" "+(U+_t)),y.debug("models:",Xe.models)}};var Z0=s(5784),fd=s.n(Z0);function Z2(t){return Z2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z2(t)}var _o=function(t){return JSON.parse(JSON.stringify(t))},Fu=[],Cb=function t(e,r,o){if(r.stmt==="relation")t(e,r.state1,!0),t(e,r.state2,!1);else if(r.stmt==="state"&&r.id==="[*]"&&(r.id=o?e.id+"_start":e.id+"_end",r.start=o),r.doc){var f=[],p=0,m=[];for(p=0;p<r.doc.length;p++)if(r.doc[p].type==="divider"){var b=_o(r.doc[p]);b.doc=_o(m),f.push(b),m=[]}else m.push(r.doc[p]);if(f.length>0&&m.length>0){var S={stmt:"state",id:w_(),type:"divider",doc:_o(m)};f.push(_o(S)),r.doc=f}r.doc.forEach(function(E){return t(r,E,!0)})}},dh={root:{relations:[],states:{},documents:{}}},Mi=dh.root,Q2=0,Q0=function(t,e,r,o,f){Mi.states[t]===void 0?Mi.states[t]={id:t,descriptions:[],type:e,doc:r,note:f}:(Mi.states[t].doc||(Mi.states[t].doc=r),Mi.states[t].type||(Mi.states[t].type=e)),o&&(y.info("Adding state ",t,o),typeof o=="string"&&Ab(t,o.trim()),Z2(o)==="object"&&o.forEach(function(p){return Ab(t,p.trim())})),f&&(Mi.states[t].note=f,Mi.states[t].note.text=Hr.sanitizeText(Mi.states[t].note.text,se()))},J2=function(){Mi=(dh={root:{relations:[],states:{},documents:{}}}).root,Mi=dh.root,Q2=0,Db=[]},Mb=function(t,e,r){var o=t,f=e,p="default",m="default";t==="[*]"&&(o="start"+ ++Q2,p="start"),e==="[*]"&&(f="end"+Q2,m="end"),Q0(o,p),Q0(f,m),Mi.relations.push({id1:o,id2:f,title:Hr.sanitizeText(r,se())})},Ab=function(t,e){var r=Mi.states[t],o=e;o[0]===":"&&(o=o.substr(1).trim()),r.descriptions.push(Hr.sanitizeText(o,se()))},v6=0,Db=[],n="TB";const i={parseDirective:function(t,e,r){oa.parseDirective(this,t,e,r)},getConfig:function(){return se().state},addState:Q0,clear:J2,getState:function(t){return Mi.states[t]},getStates:function(){return Mi.states},getRelations:function(){return Mi.relations},getClasses:function(){return Db},getDirection:function(){return n},addRelation:Mb,getDividerId:function(){return"divider-id-"+ ++v6},setDirection:function(t){n=t},cleanupLabel:function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){y.info("Documents = ",dh)},getRootDoc:function(){return Fu},setRootDoc:function(t){y.info("Setting root doc",t),Fu=t},getRootDocV2:function(){return Cb({id:"root"},{id:"root",doc:Fu},!0),{id:"root",doc:Fu}},extract:function(t){var e;e=t.doc?t.doc:t,y.info(e),J2(),y.info("Extract",e),e.forEach(function(r){r.stmt==="state"&&Q0(r.id,r.type,r.doc,r.description,r.note),r.stmt==="relation"&&Mb(r.state1.id,r.state2.id,r.description)})},trimColon:function(t){return t&&t[0]===":"?t.substr(1).trim():t.trim()}};var c={};function u(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var g,v=function(t,e,r){var o,f=se().state.padding,p=2*se().state.padding,m=t.node().getBBox(),b=m.width,S=m.x,E=t.append("text").attr("x",0).attr("y",se().state.titleShift).attr("font-size",se().state.fontSize).attr("class","state-title").text(e.id),O=E.node().getBBox().width+p,j=Math.max(O,b);j===b&&(j+=p);var F=t.node().getBBox();e.doc,o=S-f,O>b&&(o=(b-j)/2+f),Math.abs(S-F.x)<f&&O>b&&(o=S-(O-b)/2);var U=1-se().state.textHeight;return t.insert("rect",":first-child").attr("x",o).attr("y",U).attr("class",r?"alt-composit":"composit").attr("width",j).attr("height",F.height+se().state.textHeight+se().state.titleShift+1).attr("rx","0"),E.attr("x",o+f),O<=b&&E.attr("x",S+(j-p)/2-O/2+f),t.insert("rect",":first-child").attr("x",o).attr("y",se().state.titleShift-se().state.textHeight-se().state.padding).attr("width",j).attr("height",3*se().state.textHeight).attr("rx",se().state.radius),t.insert("rect",":first-child").attr("x",o).attr("y",se().state.titleShift-se().state.textHeight-se().state.padding).attr("width",j).attr("height",F.height+3+2*se().state.textHeight).attr("rx",se().state.radius),t},k=function(t,e){e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",se().state.padding),o=function(m,b,S,E){var O=0,j=E.append("text");j.style("text-anchor","start"),j.attr("class","noteText");var F,U=m.replace(/\r\n/g,"<br/>"),ot=(U=U.replace(/\n/g,"<br/>")).split(Hr.lineBreakRegex),vt=1.25*se().state.noteMargin,_t=function(st,qt){var At=typeof Symbol!="undefined"&&st[Symbol.iterator]||st["@@iterator"];if(!At){if(Array.isArray(st)||(At=function(Ut,St){if(Ut){if(typeof Ut=="string")return u(Ut,St);var Jt=Object.prototype.toString.call(Ut).slice(8,-1);return Jt==="Object"&&Ut.constructor&&(Jt=Ut.constructor.name),Jt==="Map"||Jt==="Set"?Array.from(Ut):Jt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Jt)?u(Ut,St):void 0}}(st))||qt&&st&&typeof st.length=="number"){At&&(st=At);var pt=0,Lt=function(){};return{s:Lt,n:function(){return pt>=st.length?{done:!0}:{done:!1,value:st[pt++]}},e:function(Ut){throw Ut},f:Lt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var te,Et=!0,bt=!1;return{s:function(){At=At.call(st)},n:function(){var Ut=At.next();return Et=Ut.done,Ut},e:function(Ut){bt=!0,te=Ut},f:function(){try{Et||At.return==null||At.return()}finally{if(bt)throw te}}}}(ot);try{for(_t.s();!(F=_t.n()).done;){var xt=F.value.trim();if(xt.length>0){var mt=j.append("tspan");mt.text(xt),vt===0&&(vt+=mt.node().getBBox().height),O+=vt,mt.attr("x",0+se().state.noteMargin),mt.attr("y",0+O+1.25*se().state.noteMargin)}}}catch(st){_t.e(st)}finally{_t.f()}return{textWidth:j.node().getBBox().width,textHeight:O}}(t,0,0,e.append("g")),f=o.textWidth,p=o.textHeight;return r.attr("height",p+2*se().state.noteMargin),r.attr("width",f+2*se().state.noteMargin),r},x=function(t,e){var r=e.id,o={id:r,label:e.id,width:0,height:0},f=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&function(b){b.append("circle").attr("class","start-state").attr("r",se().state.sizeUnit).attr("cx",se().state.padding+se().state.sizeUnit).attr("cy",se().state.padding+se().state.sizeUnit)}(f),e.type==="end"&&function(b){b.append("circle").attr("class","end-state-outer").attr("r",se().state.sizeUnit+se().state.miniPadding).attr("cx",se().state.padding+se().state.sizeUnit+se().state.miniPadding).attr("cy",se().state.padding+se().state.sizeUnit+se().state.miniPadding),b.append("circle").attr("class","end-state-inner").attr("r",se().state.sizeUnit).attr("cx",se().state.padding+se().state.sizeUnit+2).attr("cy",se().state.padding+se().state.sizeUnit+2)}(f),e.type!=="fork"&&e.type!=="join"||function(b,S){var E=se().state.forkWidth,O=se().state.forkHeight;if(S.parentId){var j=E;E=O,O=j}b.append("rect").style("stroke","black").style("fill","black").attr("width",E).attr("height",O).attr("x",se().state.padding).attr("y",se().state.padding)}(f,e),e.type==="note"&&k(e.note.text,f),e.type==="divider"&&function(b){b.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",se().state.textHeight).attr("class","divider").attr("x2",2*se().state.textHeight).attr("y1",0).attr("y2",0)}(f),e.type==="default"&&e.descriptions.length===0&&function(b,S){var E=b.append("text").attr("x",2*se().state.padding).attr("y",se().state.textHeight+2*se().state.padding).attr("font-size",se().state.fontSize).attr("class","state-title").text(S.id).node().getBBox();b.insert("rect",":first-child").attr("x",se().state.padding).attr("y",se().state.padding).attr("width",E.width+2*se().state.padding).attr("height",E.height+2*se().state.padding).attr("rx",se().state.radius)}(f,e),e.type==="default"&&e.descriptions.length>0&&function(b,S){var E=b.append("text").attr("x",2*se().state.padding).attr("y",se().state.textHeight+1.3*se().state.padding).attr("font-size",se().state.fontSize).attr("class","state-title").text(S.descriptions[0]).node().getBBox(),O=E.height,j=b.append("text").attr("x",se().state.padding).attr("y",O+.4*se().state.padding+se().state.dividerMargin+se().state.textHeight).attr("class","state-description"),F=!0,U=!0;S.descriptions.forEach(function(xt){F||(function(mt,st,qt){var At=mt.append("tspan").attr("x",2*se().state.padding).text(st);qt||At.attr("dy",se().state.textHeight)}(j,xt,U),U=!1),F=!1});var ot=b.append("line").attr("x1",se().state.padding).attr("y1",se().state.padding+O+se().state.dividerMargin/2).attr("y2",se().state.padding+O+se().state.dividerMargin/2).attr("class","descr-divider"),vt=j.node().getBBox(),_t=Math.max(vt.width,E.width);ot.attr("x2",_t+3*se().state.padding),b.insert("rect",":first-child").attr("x",se().state.padding).attr("y",se().state.padding).attr("width",_t+2*se().state.padding).attr("height",vt.height+O+2*se().state.padding).attr("rx",se().state.radius)}(f,e);var p,m=f.node().getBBox();return o.width=m.width+2*se().state.padding,o.height=m.height+2*se().state.padding,p=o,c[r]=p,o},C=0;Z0.parser.yy=i;var D={},I=function t(e,r,o,f){var p,m=new(Si()).Graph({compound:!0,multigraph:!0}),b=!0;for(p=0;p<e.length;p++)if(e[p].stmt==="relation"){b=!1;break}o?m.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:b?1:g.edgeLengthFactor,nodeSep:b?1:50,isMultiGraph:!0}):m.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:b?1:g.edgeLengthFactor,nodeSep:b?1:50,ranker:"tight-tree",isMultiGraph:!0}),m.setDefaultEdgeLabel(function(){return{}}),i.extract(e);for(var S=i.getStates(),E=i.getRelations(),O=Object.keys(S),j=0;j<O.length;j++){var F=S[O[j]];o&&(F.parentId=o);var U=void 0;if(F.doc){var ot=r.append("g").attr("id",F.id).attr("class","stateGroup");U=t(F.doc,ot,F.id,!f);var vt=(ot=v(ot,F,f)).node().getBBox();U.width=vt.width,U.height=vt.height+g.padding/2,D[F.id]={y:g.compositTitleSize}}else U=x(r,F);if(F.note){var _t={descriptions:[],id:F.id+"-note",note:F.note,type:"note"},xt=x(r,_t);F.note.position==="left of"?(m.setNode(U.id+"-note",xt),m.setNode(U.id,U)):(m.setNode(U.id,U),m.setNode(U.id+"-note",xt)),m.setParent(U.id,U.id+"-group"),m.setParent(U.id+"-note",U.id+"-group")}else m.setNode(U.id,U)}y.debug("Count=",m.nodeCount(),m);var mt=0;E.forEach(function(pt){var Lt;mt++,y.debug("Setting edge",pt),m.setEdge(pt.id1,pt.id2,{relation:pt,width:(Lt=pt.title,Lt?Lt.length*g.fontSizeFactor:1),height:g.labelHeight*Hr.getRows(pt.title).length,labelpos:"c"},"id"+mt)}),Vl().layout(m),y.debug("Graph after layout",m.nodes());var st=r.node();m.nodes().forEach(function(pt){pt!==void 0&&m.node(pt)!==void 0?(y.warn("Node "+pt+": "+JSON.stringify(m.node(pt))),Ce("#"+st.id+" #"+pt).attr("transform","translate("+(m.node(pt).x-m.node(pt).width/2)+","+(m.node(pt).y+(D[pt]?D[pt].y:0)-m.node(pt).height/2)+" )"),Ce("#"+st.id+" #"+pt).attr("data-x-shift",m.node(pt).x-m.node(pt).width/2),document.querySelectorAll("#"+st.id+" #"+pt+" .divider").forEach(function(Lt){var te=Lt.parentElement,Et=0,bt=0;te&&(te.parentElement&&(Et=te.parentElement.getBBox().width),bt=parseInt(te.getAttribute("data-x-shift"),10),Number.isNaN(bt)&&(bt=0)),Lt.setAttribute("x1",0-bt+8),Lt.setAttribute("x2",Et-bt-8)})):y.debug("No Node "+pt+": "+JSON.stringify(m.node(pt)))});var qt=st.getBBox();m.edges().forEach(function(pt){pt!==void 0&&m.edge(pt)!==void 0&&(y.debug("Edge "+pt.v+" -> "+pt.w+": "+JSON.stringify(m.edge(pt))),function(Lt,te,Et){te.points=te.points.filter(function(Pn){return!Number.isNaN(Pn.y)});var bt=te.points,Ut=fo().x(function(Pn){return Pn.x}).y(function(Pn){return Pn.y}).curve(jr),St=Lt.append("path").attr("d",Ut(bt)).attr("id","edge"+C).attr("class","transition"),Jt="";if(se().state.arrowMarkerAbsolute&&(Jt=(Jt=(Jt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),St.attr("marker-end","url("+Jt+"#"+function(Pn){switch(Pn){case i.relationType.AGGREGATION:return"aggregation";case i.relationType.EXTENSION:return"extension";case i.relationType.COMPOSITION:return"composition";case i.relationType.DEPENDENCY:return"dependency"}}(i.relationType.DEPENDENCY)+"End)"),Et.title!==void 0){for(var yt=Lt.append("g").attr("class","stateLabel"),fe=Jn.calcLabelPosition(te.points),we=fe.x,_e=fe.y,Re=Hr.getRows(Et.title),We=0,Ue=[],fn=0,Ae=0,Xn=0;Xn<=Re.length;Xn++){var mn=yt.append("text").attr("text-anchor","middle").text(Re[Xn]).attr("x",we).attr("y",_e+We),yn=mn.node().getBBox();if(fn=Math.max(fn,yn.width),Ae=Math.min(Ae,yn.x),y.info(yn.x,we,_e+We),We===0){var hn=mn.node().getBBox();We=hn.height,y.info("Title height",We,_e)}Ue.push(mn)}var sn=We*Re.length;if(Re.length>1){var tr=(Re.length-1)*We*.5;Ue.forEach(function(Pn,sa){return Pn.attr("y",_e+sa*We-tr)}),sn=We*Re.length}var zn=yt.node().getBBox();yt.insert("rect",":first-child").attr("class","box").attr("x",we-fn/2-se().state.padding/2).attr("y",_e-sn/2-se().state.padding/2-3.5).attr("width",fn+se().state.padding).attr("height",sn+se().state.padding),y.info(zn)}C++}(r,m.edge(pt),m.edge(pt).relation))}),qt=st.getBBox();var At={id:o||"root",label:o||"root",width:0,height:0};return At.width=qt.width+2*g.padding,At.height=qt.height+2*g.padding,y.debug("Doc rendered",At,m),At};const Y=function(t,e){g=se().state,Z0.parser.yy.clear(),Z0.parser.parse(t),y.debug("Rendering diagram "+t);var r=Ce("[id='".concat(e,"']"));r.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new(Si()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var o=i.getRootDoc();I(o,r,void 0,!1);var f=g.padding,p=r.node().getBBox(),m=p.width+2*f,b=p.height+2*f;no(r,b,1.75*m,g.useMaxWidth),r.attr("viewBox","".concat(p.x-g.padding," ").concat(p.y-g.padding," ")+m+" "+b)};var B={},z={},$=function(t,e,r,o){if(r.id!=="root"){var f="rect";r.start===!0&&(f="start"),r.start===!1&&(f="end"),r.type!=="default"&&(f=r.type),z[r.id]||(z[r.id]={id:r.id,shape:f,description:Hr.sanitizeText(r.id,se()),classes:"statediagram-state"}),r.description&&(Array.isArray(z[r.id].description)?(z[r.id].shape="rectWithTitle",z[r.id].description.push(r.description)):z[r.id].description.length>0?(z[r.id].shape="rectWithTitle",z[r.id].description===r.id?z[r.id].description=[r.description]:z[r.id].description=[z[r.id].description,r.description]):(z[r.id].shape="rect",z[r.id].description=r.description)),!z[r.id].type&&r.doc&&(y.info("Setting cluster for ",r.id,G(r)),z[r.id].type="group",z[r.id].dir=G(r),z[r.id].shape=r.type==="divider"?"divider":"roundedWithTitle",z[r.id].classes=z[r.id].classes+" "+(o?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var p={labelStyle:"",shape:z[r.id].shape,labelText:z[r.id].description,classes:z[r.id].classes,style:"",id:r.id,dir:z[r.id].dir,domId:"state-"+r.id+"-"+Z,type:z[r.id].type,padding:15};if(r.note){var m={labelStyle:"",shape:"note",labelText:r.note.text,classes:"statediagram-note",style:"",id:r.id+"----note-"+Z,domId:"state-"+r.id+"----note-"+Z,type:z[r.id].type,padding:15},b={labelStyle:"",shape:"noteGroup",labelText:r.note.text,classes:z[r.id].classes,style:"",id:r.id+"----parent",domId:"state-"+r.id+"----parent-"+Z,type:"group",padding:0};Z++,t.setNode(r.id+"----parent",b),t.setNode(m.id,m),t.setNode(r.id,p),t.setParent(r.id,r.id+"----parent"),t.setParent(m.id,r.id+"----parent");var S=r.id,E=m.id;r.note.position==="left of"&&(S=m.id,E=r.id),t.setEdge(S,E,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(r.id,p)}e&&e.id!=="root"&&(y.trace("Setting node ",r.id," to be child of its parent ",e.id),t.setParent(r.id,e.id)),r.doc&&(y.trace("Adding nodes children "),Q(t,r,r.doc,!o))},Z=0,Q=function(t,e,r,o){y.trace("items",r),r.forEach(function(f){if(f.stmt==="state"||f.stmt==="default")$(t,e,f,o);else if(f.stmt==="relation"){$(t,e,f.state1,o),$(t,e,f.state2,o);var p={id:"edge"+Z,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:f.description,arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},m=f.state1.id,b=f.state2.id;t.setEdge(m,b,p,Z),Z++}})},G=function(t,e){var r=e||"TB";if(t.doc)for(var o=0;o<t.doc.length;o++){var f=t.doc[o];f.stmt==="dir"&&(r=f.value)}return r};const it=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)B[e[r]]=t[e[r]]};function nt(t){return function(e){if(Array.isArray(e))return ut(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,r){if(e){if(typeof e=="string")return ut(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ut(e,r):void 0}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ut(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var Rt="",Ht="",Xt=[],ve=[],Yt=[],oe=function(){for(var t=!0,e=0;e<Yt.length;e++)Yt[e].processed,t=t&&Yt[e].processed;return t};const ct={parseDirective:function(t,e,r){oa.parseDirective(this,t,e,r)},getConfig:function(){return se().journey},clear:function(){Xt.length=0,ve.length=0,Ht="",Rt="",Yt.length=0},setTitle:function(t){Rt=t},getTitle:function(){return Rt},addSection:function(t){Ht=t,Xt.push(t)},getSections:function(){return Xt},getTasks:function(){for(var t=oe(),e=0;!t&&e<100;)t=oe(),e++;return ve.push.apply(ve,Yt),ve},addTask:function(t,e){var r=e.substr(1).split(":"),o=0,f=[];r.length===1?(o=Number(r[0]),f=[]):(o=Number(r[0]),f=r[1].split(","));var p=f.map(function(b){return b.trim()}),m={section:Ht,type:Ht,people:p,task:t,score:o};Yt.push(m)},addTaskOrg:function(t){var e={section:Ht,type:Ht,description:t,task:t,classes:[]};ve.push(e)},getActors:function(){return t=[],ve.forEach(function(e){e.people&&t.push.apply(t,nt(e.people))}),nt(new Set(t)).sort();var t}};var wt=s(9690),ee=s.n(wt),Gt=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},ie=function(t,e){var r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},Ne=-1,$e=function(){function t(f,p,m,b,S,E,O,j){o(p.append("text").attr("x",m+S/2).attr("y",b+E/2+5).style("font-color",j).style("text-anchor","middle").text(f),O)}function e(f,p,m,b,S,E,O,j,F){for(var U=j.taskFontSize,ot=j.taskFontFamily,vt=f.split(/<br\s*\/?>/gi),_t=0;_t<vt.length;_t++){var xt=_t*U-U*(vt.length-1)/2,mt=p.append("text").attr("x",m+S/2).attr("y",b).attr("fill",F).style("text-anchor","middle").style("font-size",U).style("font-family",ot);mt.append("tspan").attr("x",m+S/2).attr("dy",xt).text(vt[_t]),mt.attr("y",b+E/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(mt,O)}}function r(f,p,m,b,S,E,O,j){var F=p.append("switch"),U=F.append("foreignObject").attr("x",m).attr("y",b).attr("width",S).attr("height",E).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");U.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(f),e(f,F,m,b,S,E,O,j),o(U,O)}function o(f,p){for(var m in p)m in p&&f.attr(m,p[m])}return function(f){return f.textPlacement==="fo"?r:f.textPlacement==="old"?t:e}}();const kn=ie,Kn=function(t,e,r){var o=t.append("g"),f={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};f.x=e.x,f.y=e.y,f.fill=e.fill,f.width=r.width,f.height=r.height,f.class="journey-section section-type-"+e.num,f.rx=3,f.ry=3,Gt(o,f),$e(r)(e.text,o,f.x,f.y,f.width,f.height,{class:"journey-section section-type-"+e.num},r,e.colour)},ur=function(t,e){var r=e.text.replace(/<br\s*\/?>/gi," "),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.attr("class","legend"),o.style("text-anchor",e.anchor),e.class!==void 0&&o.attr("class",e.class);var f=o.append("tspan");return f.attr("x",e.x+2*e.textMargin),f.text(r),o},nn=function(t,e,r){var o,f,p,m=e.x+r.width/2,b=t.append("g");Ne++,b.append("line").attr("id","task"+Ne).attr("x1",m).attr("y1",e.y).attr("x2",m).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),o=b,f={cx:m,cy:300+30*(5-e.score),score:e.score},o.append("circle").attr("cx",f.cx).attr("cy",f.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(p=o.append("g")).append("circle").attr("cx",f.cx-5).attr("cy",f.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),p.append("circle").attr("cx",f.cx+5).attr("cy",f.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),f.score>3?function(O){var j=mg().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);O.append("path").attr("class","mouth").attr("d",j).attr("transform","translate("+f.cx+","+(f.cy+2)+")")}(p):f.score<3?function(O){var j=mg().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);O.append("path").attr("class","mouth").attr("d",j).attr("transform","translate("+f.cx+","+(f.cy+7)+")")}(p):function(O){O.append("line").attr("class","mouth").attr("stroke",2).attr("x1",f.cx-5).attr("y1",f.cy+7).attr("x2",f.cx+5).attr("y2",f.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(p);var S={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};S.x=e.x,S.y=e.y,S.fill=e.fill,S.width=r.width,S.height=r.height,S.class="task task-type-"+e.num,S.rx=3,S.ry=3,Gt(b,S);var E=e.x+14;e.people.forEach(function(O){var j=e.actors[O].color,F={cx:E,cy:e.y,r:7,fill:j,stroke:"#000",title:O,pos:e.actors[O].position};ie(b,F),E+=10}),$e(r)(e.task,b,S.x,S.y,S.width,S.height,{class:"task"},r,e.colour)};wt.parser.yy=ct;var Gn={},An=se().journey,vn=se().journey.leftMargin,Fn={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,r,o){t[e]===void 0?t[e]=r:t[e]=o(r,t[e])},updateBounds:function(t,e,r,o){var f=se().journey,p=this,m=0;this.sequenceItems.forEach(function(b){m++;var S=p.sequenceItems.length-m+1;p.updateVal(b,"starty",e-S*f.boxMargin,Math.min),p.updateVal(b,"stopy",o+S*f.boxMargin,Math.max),p.updateVal(Fn.data,"startx",t-S*f.boxMargin,Math.min),p.updateVal(Fn.data,"stopx",r+S*f.boxMargin,Math.max),p.updateVal(b,"startx",t-S*f.boxMargin,Math.min),p.updateVal(b,"stopx",r+S*f.boxMargin,Math.max),p.updateVal(Fn.data,"starty",e-S*f.boxMargin,Math.min),p.updateVal(Fn.data,"stopy",o+S*f.boxMargin,Math.max)})},insert:function(t,e,r,o){var f=Math.min(t,r),p=Math.max(t,r),m=Math.min(e,o),b=Math.max(e,o);this.updateVal(Fn.data,"startx",f,Math.min),this.updateVal(Fn.data,"starty",m,Math.min),this.updateVal(Fn.data,"stopx",p,Math.max),this.updateVal(Fn.data,"stopy",b,Math.max),this.updateBounds(f,m,p,b)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},Pi=An.sectionFills,ki=An.sectionColours;const ws=function(t){Object.keys(t).forEach(function(e){An[e]=t[e]})},Wc=function(t,e){var r=se().journey;wt.parser.yy.clear(),wt.parser.parse(t+`
|
|
`),Fn.init();var o=Ce("#"+e);o.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),o.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");var f=wt.parser.yy.getTasks(),p=wt.parser.yy.getTitle(),m=wt.parser.yy.getActors();for(var b in Gn)delete Gn[b];var S=0;m.forEach(function(U){Gn[U]={color:r.actorColours[S%r.actorColours.length],position:S},S++}),function(U){var ot=se().journey,vt=60;Object.keys(Gn).forEach(function(_t){var xt=Gn[_t].color,mt={cx:20,cy:vt,r:7,fill:xt,stroke:"#000",pos:Gn[_t].position};kn(U,mt);var st={x:40,y:vt+7,fill:"#666",text:_t,textMargin:5|ot.boxTextMargin};ur(U,st),vt+=20})}(o),Fn.insert(0,0,vn,50*Object.keys(Gn).length),function(U,ot,vt){for(var _t=se().journey,xt="",mt=vt+(2*_t.height+_t.diagramMarginY),st=0,qt="#CCC",At="black",pt=0,Lt=0;Lt<ot.length;Lt++){var te=ot[Lt];if(xt!==te.section){qt=Pi[st%Pi.length],pt=st%Pi.length,At=ki[st%ki.length];var Et={x:Lt*_t.taskMargin+Lt*_t.width+vn,y:50,text:te.section,fill:qt,num:pt,colour:At};Kn(U,Et,_t),xt=te.section,st++}var bt=te.people.reduce(function(Ut,St){return Gn[St]&&(Ut[St]=Gn[St]),Ut},{});te.x=Lt*_t.taskMargin+Lt*_t.width+vn,te.y=mt,te.width=_t.diagramMarginX,te.height=_t.diagramMarginY,te.colour=At,te.fill=qt,te.num=pt,te.actors=bt,nn(U,te,_t),Fn.insert(te.x,te.y,te.x+te.width+_t.taskMargin,450)}}(o,f,0);var E=Fn.getBounds();p&&o.append("text").text(p).attr("x",vn).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var O=E.stopy-E.starty+2*r.diagramMarginY,j=vn+E.stopx+2*r.diagramMarginX;no(o,O,j,r.useMaxWidth),o.append("line").attr("x1",vn).attr("y1",4*r.height).attr("x2",j-vn-4).attr("y2",4*r.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var F=p?70:0;o.attr("viewBox","".concat(E.startx," -25 ").concat(j," ").concat(O+F)),o.attr("preserveAspectRatio","xMinYMin meet"),o.attr("height",O+F+25)};var dd={};const Pu=function(t){return`g.classGroup text {
|
|
fill: `.concat(t.nodeBorder,`;
|
|
fill: `).concat(t.classText,`;
|
|
stroke: none;
|
|
font-family: `).concat(t.fontFamily,`;
|
|
font-size: 10px;
|
|
|
|
.title {
|
|
font-weight: bolder;
|
|
}
|
|
|
|
}
|
|
|
|
.nodeLabel, .edgeLabel {
|
|
color: `).concat(t.classText,`;
|
|
}
|
|
.edgeLabel .label rect {
|
|
fill: `).concat(t.mainBkg,`;
|
|
}
|
|
.label text {
|
|
fill: `).concat(t.classText,`;
|
|
}
|
|
.edgeLabel .label span {
|
|
background: `).concat(t.mainBkg,`;
|
|
}
|
|
|
|
.classTitle {
|
|
font-weight: bolder;
|
|
}
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
|
|
.divider {
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
stroke: 1;
|
|
}
|
|
|
|
g.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
g.classGroup rect {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
}
|
|
|
|
g.classGroup line {
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.classLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: `).concat(t.mainBkg,`;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.classLabel .label {
|
|
fill: `).concat(t.nodeBorder,`;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.relation {
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-width: 1;
|
|
fill: none;
|
|
}
|
|
|
|
.dashed-line{
|
|
stroke-dasharray: 3;
|
|
}
|
|
|
|
#compositionStart, .composition {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#compositionEnd, .composition {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#dependencyStart, .dependency {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#dependencyStart, .dependency {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#extensionStart, .extension {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#extensionEnd, .extension {
|
|
fill: `).concat(t.lineColor,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#aggregationStart, .aggregation {
|
|
fill: `).concat(t.mainBkg,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#aggregationEnd, .aggregation {
|
|
fill: `).concat(t.mainBkg,` !important;
|
|
stroke: `).concat(t.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.edgeTerminals {
|
|
font-size: 11px;
|
|
}
|
|
|
|
`)},K2=function(t){return`.label {
|
|
font-family: `.concat(t.fontFamily,`;
|
|
color: `).concat(t.nodeTextColor||t.textColor,`;
|
|
}
|
|
.cluster-label text {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
.cluster-label span {
|
|
color: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.label text,span {
|
|
fill: `).concat(t.nodeTextColor||t.textColor,`;
|
|
color: `).concat(t.nodeTextColor||t.textColor,`;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: `).concat(t.arrowheadColor,`;
|
|
}
|
|
|
|
.edgePath .path {
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-width: 2.0px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: `).concat(t.lineColor,`;
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: `).concat(t.edgeLabelBackground,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
background-color: `).concat(t.edgeLabelBackground,`;
|
|
fill: `).concat(t.edgeLabelBackground,`;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
fill: `).concat(t.clusterBkg,`;
|
|
stroke: `).concat(t.clusterBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster text {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.cluster span {
|
|
color: `).concat(t.titleColor,`;
|
|
}
|
|
// .cluster div {
|
|
// color: `).concat(t.titleColor,`;
|
|
// }
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: `).concat(t.fontFamily,`;
|
|
font-size: 12px;
|
|
background: `).concat(t.tertiaryColor,`;
|
|
border: 1px solid `).concat(t.border2,`;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
`)},tm=function(t){return`
|
|
defs #statediagram-barbEnd {
|
|
fill: `.concat(t.transitionColor,`;
|
|
stroke: `).concat(t.transitionColor,`;
|
|
}
|
|
g.stateGroup text {
|
|
fill: `).concat(t.nodeBorder,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
g.stateGroup text {
|
|
fill: `).concat(t.textColor,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
|
|
}
|
|
g.stateGroup .state-title {
|
|
font-weight: bolder;
|
|
fill: `).concat(t.stateLabelColor,`;
|
|
}
|
|
|
|
g.stateGroup rect {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
}
|
|
|
|
g.stateGroup line {
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.transition {
|
|
stroke: `).concat(t.transitionColor,`;
|
|
stroke-width: 1;
|
|
fill: none;
|
|
}
|
|
|
|
.stateGroup .composit {
|
|
fill: `).concat(t.background,`;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.stateGroup .alt-composit {
|
|
fill: #e0e0e0;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.state-note {
|
|
stroke: `).concat(t.noteBorderColor,`;
|
|
fill: `).concat(t.noteBkgColor,`;
|
|
|
|
text {
|
|
fill: `).concat(t.noteTextColor,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
|
|
.stateLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: `).concat(t.mainBkg,`;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.edgeLabel .label rect {
|
|
fill: `).concat(t.labelBackgroundColor,`;
|
|
opacity: 0.5;
|
|
}
|
|
.edgeLabel .label text {
|
|
fill: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
|
|
}
|
|
.label div .edgeLabel {
|
|
color: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
|
|
}
|
|
|
|
.stateLabel text {
|
|
fill: `).concat(t.stateLabelColor,`;
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.node circle.state-start {
|
|
fill: `).concat(t.specialStateColor,`;
|
|
stroke: `).concat(t.specialStateColor,`;
|
|
}
|
|
|
|
.node .fork-join {
|
|
fill: `).concat(t.specialStateColor,`;
|
|
stroke: `).concat(t.specialStateColor,`;
|
|
}
|
|
|
|
.node circle.state-end {
|
|
fill: `).concat(t.innerEndBackground,`;
|
|
stroke: `).concat(t.background,`;
|
|
stroke-width: 1.5
|
|
}
|
|
.end-state-inner {
|
|
fill: `).concat(t.compositeBackground||t.background,`;
|
|
// stroke: `).concat(t.background,`;
|
|
stroke-width: 1.5
|
|
}
|
|
|
|
.node rect {
|
|
fill: `).concat(t.stateBkg||t.mainBkg,`;
|
|
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
.node polygon {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.stateBorder||t.nodeBorder,`;;
|
|
stroke-width: 1px;
|
|
}
|
|
#statediagram-barbEnd {
|
|
fill: `).concat(t.lineColor,`;
|
|
}
|
|
|
|
.statediagram-cluster rect {
|
|
fill: `).concat(t.compositeTitleBackground,`;
|
|
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster-label, .nodeLabel {
|
|
color: `).concat(t.stateLabelColor,`;
|
|
}
|
|
|
|
.statediagram-cluster rect.outer {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state .divider {
|
|
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
|
|
}
|
|
|
|
.statediagram-state .title-state {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster .inner {
|
|
fill: `).concat(t.compositeBackground||t.background,`;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
fill: `).concat(t.altBackground?t.altBackground:"#efefef",`;
|
|
}
|
|
|
|
.statediagram-cluster .inner {
|
|
rx:0;
|
|
ry:0;
|
|
}
|
|
|
|
.statediagram-state rect.basic {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state rect.divider {
|
|
stroke-dasharray: 10,10;
|
|
fill: `).concat(t.altBackground?t.altBackground:"#efefef",`;
|
|
}
|
|
|
|
.note-edge {
|
|
stroke-dasharray: 5;
|
|
}
|
|
|
|
.statediagram-note rect {
|
|
fill: `).concat(t.noteBkgColor,`;
|
|
stroke: `).concat(t.noteBorderColor,`;
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
.statediagram-note rect {
|
|
fill: `).concat(t.noteBkgColor,`;
|
|
stroke: `).concat(t.noteBorderColor,`;
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
|
|
.statediagram-note text {
|
|
fill: `).concat(t.noteTextColor,`;
|
|
}
|
|
|
|
.statediagram-note .nodeLabel {
|
|
color: `).concat(t.noteTextColor,`;
|
|
}
|
|
.statediagram .edgeLabel {
|
|
color: red; // `).concat(t.noteTextColor,`;
|
|
}
|
|
|
|
#dependencyStart, #dependencyEnd {
|
|
fill: `).concat(t.lineColor,`;
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
`)};var ph={flowchart:K2,"flowchart-v2":K2,sequence:function(t){return`.actor {
|
|
stroke: `.concat(t.actorBorder,`;
|
|
fill: `).concat(t.actorBkg,`;
|
|
}
|
|
|
|
text.actor > tspan {
|
|
fill: `).concat(t.actorTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.actor-line {
|
|
stroke: `).concat(t.actorLineColor,`;
|
|
}
|
|
|
|
.messageLine0 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: none;
|
|
stroke: `).concat(t.signalColor,`;
|
|
}
|
|
|
|
.messageLine1 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: `).concat(t.signalColor,`;
|
|
}
|
|
|
|
#arrowhead path {
|
|
fill: `).concat(t.signalColor,`;
|
|
stroke: `).concat(t.signalColor,`;
|
|
}
|
|
|
|
.sequenceNumber {
|
|
fill: `).concat(t.sequenceNumberColor,`;
|
|
}
|
|
|
|
#sequencenumber {
|
|
fill: `).concat(t.signalColor,`;
|
|
}
|
|
|
|
#crosshead path {
|
|
fill: `).concat(t.signalColor,`;
|
|
stroke: `).concat(t.signalColor,`;
|
|
}
|
|
|
|
.messageText {
|
|
fill: `).concat(t.signalTextColor,`;
|
|
stroke: `).concat(t.signalTextColor,`;
|
|
}
|
|
|
|
.labelBox {
|
|
stroke: `).concat(t.labelBoxBorderColor,`;
|
|
fill: `).concat(t.labelBoxBkgColor,`;
|
|
}
|
|
|
|
.labelText, .labelText > tspan {
|
|
fill: `).concat(t.labelTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.loopText, .loopText > tspan {
|
|
fill: `).concat(t.loopTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.loopLine {
|
|
stroke-width: 2px;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: `).concat(t.labelBoxBorderColor,`;
|
|
fill: `).concat(t.labelBoxBorderColor,`;
|
|
}
|
|
|
|
.note {
|
|
//stroke: #decc93;
|
|
stroke: `).concat(t.noteBorderColor,`;
|
|
fill: `).concat(t.noteBkgColor,`;
|
|
}
|
|
|
|
.noteText, .noteText > tspan {
|
|
fill: `).concat(t.noteTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.activation0 {
|
|
fill: `).concat(t.activationBkgColor,`;
|
|
stroke: `).concat(t.activationBorderColor,`;
|
|
}
|
|
|
|
.activation1 {
|
|
fill: `).concat(t.activationBkgColor,`;
|
|
stroke: `).concat(t.activationBorderColor,`;
|
|
}
|
|
|
|
.activation2 {
|
|
fill: `).concat(t.activationBkgColor,`;
|
|
stroke: `).concat(t.activationBorderColor,`;
|
|
}
|
|
|
|
.actorPopupMenu {
|
|
position: absolute;
|
|
}
|
|
|
|
.actorPopupMenuPanel {
|
|
position: absolute;
|
|
fill: `).concat(t.actorBkg,`;
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
}
|
|
.actor-man line {
|
|
stroke: `).concat(t.actorBorder,`;
|
|
fill: `).concat(t.actorBkg,`;
|
|
}
|
|
.actor-man circle, line {
|
|
stroke: `).concat(t.actorBorder,`;
|
|
fill: `).concat(t.actorBkg,`;
|
|
stroke-width: 2px;
|
|
}
|
|
`)},gantt:function(t){return`
|
|
.mermaid-main-font {
|
|
font-family: "trebuchet ms", verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
|
|
.section {
|
|
stroke: none;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.section0 {
|
|
fill: `.concat(t.sectionBkgColor,`;
|
|
}
|
|
|
|
.section2 {
|
|
fill: `).concat(t.sectionBkgColor2,`;
|
|
}
|
|
|
|
.section1,
|
|
.section3 {
|
|
fill: `).concat(t.altSectionBkgColor,`;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.sectionTitle0 {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle1 {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle2 {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle3 {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle {
|
|
text-anchor: start;
|
|
// font-size: `).concat(t.ganttFontSize,`;
|
|
// text-height: 14px;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
|
|
}
|
|
|
|
|
|
/* Grid and axis */
|
|
|
|
.grid .tick {
|
|
stroke: `).concat(t.gridColor,`;
|
|
opacity: 0.8;
|
|
shape-rendering: crispEdges;
|
|
text {
|
|
font-family: `).concat(t.fontFamily,`;
|
|
fill: `).concat(t.textColor,`;
|
|
}
|
|
}
|
|
|
|
.grid path {
|
|
stroke-width: 0;
|
|
}
|
|
|
|
|
|
/* Today line */
|
|
|
|
.today {
|
|
fill: none;
|
|
stroke: `).concat(t.todayLineColor,`;
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
|
|
/* Task styling */
|
|
|
|
/* Default task */
|
|
|
|
.task {
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.taskText {
|
|
text-anchor: middle;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
|
|
// .taskText:not([font-size]) {
|
|
// font-size: `).concat(t.ganttFontSize,`;
|
|
// }
|
|
|
|
.taskTextOutsideRight {
|
|
fill: `).concat(t.taskTextDarkColor,`;
|
|
text-anchor: start;
|
|
// font-size: `).concat(t.ganttFontSize,`;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
|
|
}
|
|
|
|
.taskTextOutsideLeft {
|
|
fill: `).concat(t.taskTextDarkColor,`;
|
|
text-anchor: end;
|
|
// font-size: `).concat(t.ganttFontSize,`;
|
|
}
|
|
|
|
/* Special case clickable */
|
|
.task.clickable {
|
|
cursor: pointer;
|
|
}
|
|
.taskText.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(t.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideLeft.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(t.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideRight.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(t.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Specific task settings for the sections*/
|
|
|
|
.taskText0,
|
|
.taskText1,
|
|
.taskText2,
|
|
.taskText3 {
|
|
fill: `).concat(t.taskTextColor,`;
|
|
}
|
|
|
|
.task0,
|
|
.task1,
|
|
.task2,
|
|
.task3 {
|
|
fill: `).concat(t.taskBkgColor,`;
|
|
stroke: `).concat(t.taskBorderColor,`;
|
|
}
|
|
|
|
.taskTextOutside0,
|
|
.taskTextOutside2
|
|
{
|
|
fill: `).concat(t.taskTextOutsideColor,`;
|
|
}
|
|
|
|
.taskTextOutside1,
|
|
.taskTextOutside3 {
|
|
fill: `).concat(t.taskTextOutsideColor,`;
|
|
}
|
|
|
|
|
|
/* Active task */
|
|
|
|
.active0,
|
|
.active1,
|
|
.active2,
|
|
.active3 {
|
|
fill: `).concat(t.activeTaskBkgColor,`;
|
|
stroke: `).concat(t.activeTaskBorderColor,`;
|
|
}
|
|
|
|
.activeText0,
|
|
.activeText1,
|
|
.activeText2,
|
|
.activeText3 {
|
|
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
|
|
/* Completed task */
|
|
|
|
.done0,
|
|
.done1,
|
|
.done2,
|
|
.done3 {
|
|
stroke: `).concat(t.doneTaskBorderColor,`;
|
|
fill: `).concat(t.doneTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneText0,
|
|
.doneText1,
|
|
.doneText2,
|
|
.doneText3 {
|
|
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
|
|
/* Tasks on the critical line */
|
|
|
|
.crit0,
|
|
.crit1,
|
|
.crit2,
|
|
.crit3 {
|
|
stroke: `).concat(t.critBorderColor,`;
|
|
fill: `).concat(t.critBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.activeCrit0,
|
|
.activeCrit1,
|
|
.activeCrit2,
|
|
.activeCrit3 {
|
|
stroke: `).concat(t.critBorderColor,`;
|
|
fill: `).concat(t.activeTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneCrit0,
|
|
.doneCrit1,
|
|
.doneCrit2,
|
|
.doneCrit3 {
|
|
stroke: `).concat(t.critBorderColor,`;
|
|
fill: `).concat(t.doneTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
cursor: pointer;
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
.milestone {
|
|
transform: rotate(45deg) scale(0.8,0.8);
|
|
}
|
|
|
|
.milestoneText {
|
|
font-style: italic;
|
|
}
|
|
.doneCritText0,
|
|
.doneCritText1,
|
|
.doneCritText2,
|
|
.doneCritText3 {
|
|
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
.activeCritText0,
|
|
.activeCritText1,
|
|
.activeCritText2,
|
|
.activeCritText3 {
|
|
fill: `).concat(t.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
.titleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: `).concat(t.textColor,` ;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
`)},classDiagram:Pu,"classDiagram-v2":Pu,class:Pu,stateDiagram:tm,state:tm,git:function(){return`
|
|
.commit-id,
|
|
.commit-msg,
|
|
.branch-label {
|
|
fill: lightgrey;
|
|
color: lightgrey;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
`},info:function(){return""},pie:function(t){return`
|
|
.pieCircle{
|
|
stroke: `.concat(t.pieStrokeColor,`;
|
|
stroke-width : `).concat(t.pieStrokeWidth,`;
|
|
opacity : `).concat(t.pieOpacity,`;
|
|
}
|
|
.pieTitleText {
|
|
text-anchor: middle;
|
|
font-size: `).concat(t.pieTitleTextSize,`;
|
|
fill: `).concat(t.pieTitleTextColor,`;
|
|
font-family: `).concat(t.fontFamily,`;
|
|
}
|
|
.slice {
|
|
font-family: `).concat(t.fontFamily,`;
|
|
fill: `).concat(t.pieSectionTextColor,`;
|
|
font-size:`).concat(t.pieSectionTextSize,`;
|
|
// fill: white;
|
|
}
|
|
.legend text {
|
|
fill: `).concat(t.pieLegendTextColor,`;
|
|
font-family: `).concat(t.fontFamily,`;
|
|
font-size: `).concat(t.pieLegendTextSize,`;
|
|
}
|
|
`)},er:function(t){return`
|
|
.entityBox {
|
|
fill: `.concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
}
|
|
|
|
.attributeBoxOdd {
|
|
fill: #ffffff;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
}
|
|
|
|
.attributeBoxEven {
|
|
fill: #f2f2f2;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
}
|
|
|
|
.relationshipLabelBox {
|
|
fill: `).concat(t.tertiaryColor,`;
|
|
opacity: 0.7;
|
|
background-color: `).concat(t.tertiaryColor,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.relationshipLine {
|
|
stroke: `).concat(t.lineColor,`;
|
|
}
|
|
`)},journey:function(t){return`.label {
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
color: `.concat(t.textColor,`;
|
|
}
|
|
.mouth {
|
|
stroke: #666;
|
|
}
|
|
|
|
line {
|
|
stroke: `).concat(t.textColor,`
|
|
}
|
|
|
|
.legend {
|
|
fill: `).concat(t.textColor,`;
|
|
}
|
|
|
|
.label text {
|
|
fill: #333;
|
|
}
|
|
.label {
|
|
color: `).concat(t.textColor,`
|
|
}
|
|
|
|
.face {
|
|
`).concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",`;
|
|
stroke: #999;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(t.mainBkg,`;
|
|
stroke: `).concat(t.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: `).concat(t.arrowheadColor,`;
|
|
}
|
|
|
|
.edgePath .path {
|
|
stroke: `).concat(t.lineColor,`;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: `).concat(t.lineColor,`;
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: `).concat(t.edgeLabelBackground,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
}
|
|
|
|
.cluster text {
|
|
fill: `).concat(t.titleColor,`;
|
|
}
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
font-size: 12px;
|
|
background: `).concat(t.tertiaryColor,`;
|
|
border: 1px solid `).concat(t.border2,`;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
.task-type-0, .section-type-0 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType0):"",`;
|
|
}
|
|
.task-type-1, .section-type-1 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType1):"",`;
|
|
}
|
|
.task-type-2, .section-type-2 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType2):"",`;
|
|
}
|
|
.task-type-3, .section-type-3 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType3):"",`;
|
|
}
|
|
.task-type-4, .section-type-4 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType4):"",`;
|
|
}
|
|
.task-type-5, .section-type-5 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType5):"",`;
|
|
}
|
|
.task-type-6, .section-type-6 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType6):"",`;
|
|
}
|
|
.task-type-7, .section-type-7 {
|
|
`).concat(t.fillType0?"fill: ".concat(t.fillType7):"",`;
|
|
}
|
|
|
|
.actor-0 {
|
|
`).concat(t.actor0?"fill: ".concat(t.actor0):"",`;
|
|
}
|
|
.actor-1 {
|
|
`).concat(t.actor1?"fill: ".concat(t.actor1):"",`;
|
|
}
|
|
.actor-2 {
|
|
`).concat(t.actor2?"fill: ".concat(t.actor2):"",`;
|
|
}
|
|
.actor-3 {
|
|
`).concat(t.actor3?"fill: ".concat(t.actor3):"",`;
|
|
}
|
|
.actor-4 {
|
|
`).concat(t.actor4?"fill: ".concat(t.actor4):"",`;
|
|
}
|
|
.actor-5 {
|
|
`).concat(t.actor5?"fill: ".concat(t.actor5):"",`;
|
|
}
|
|
|
|
}
|
|
`)},requirement:function(t){return`
|
|
|
|
marker {
|
|
fill: `.concat(t.relationColor,`;
|
|
stroke: `).concat(t.relationColor,`;
|
|
}
|
|
|
|
marker.cross {
|
|
stroke: `).concat(t.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(t.fontFamily,`;
|
|
font-size: `).concat(t.fontSize,`;
|
|
}
|
|
|
|
.reqBox {
|
|
fill: `).concat(t.requirementBackground,`;
|
|
fill-opacity: 100%;
|
|
stroke: `).concat(t.requirementBorderColor,`;
|
|
stroke-width: `).concat(t.requirementBorderSize,`;
|
|
}
|
|
|
|
.reqTitle, .reqLabel{
|
|
fill: `).concat(t.requirementTextColor,`;
|
|
}
|
|
.reqLabelBox {
|
|
fill: `).concat(t.relationLabelBackground,`;
|
|
fill-opacity: 100%;
|
|
}
|
|
|
|
.req-title-line {
|
|
stroke: `).concat(t.requirementBorderColor,`;
|
|
stroke-width: `).concat(t.requirementBorderSize,`;
|
|
}
|
|
.relationshipLine {
|
|
stroke: `).concat(t.relationColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
.relationshipLabel {
|
|
fill: `).concat(t.relationLabelColor,`;
|
|
}
|
|
|
|
`)}};function J0(t){return J0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J0(t)}var pd={};function Nb(t){var e;Kf(t.git),ia(t.flowchart),R0(t.flowchart),t.sequenceDiagram!==void 0&&Ru.setConf(Vi(t.sequence,t.sequenceDiagram)),Ru.setConf(t.sequence),t.gantt,F_(t.class),t.state,it(t.state),B2(t.class),s2(t.er),ws(t.journey),pb(t.requirement),e=t.class,Object.keys(e).forEach(function(r){dd[r]=e[r]})}var bo=Object.freeze({render:function(t,e,r,o){g0();var f=e,p=Jn.detectInit(f);p&&M_(p);var m=se();if(e.length>m.maxTextSize&&(f="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),o!==void 0)o.innerHTML="",Ce(o).append("div").attr("id","d"+t).attr("style","font-family: "+m.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g");else{var b=document.getElementById(t);b&&b.remove();var S=document.querySelector("#d"+t);S&&S.remove(),Ce("body").append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}window.txt=f,f=f.replace(/style.*:\S*#.*;/g,function(At){return At.substring(0,At.length-1)}).replace(/classDef.*:\S*#.*;/g,function(At){return At.substring(0,At.length-1)}).replace(/#\w+;/g,function(At){var pt=At.substring(1,At.length-1);return/^\+?\d+$/.test(pt)?"\uFB02\xB0\xB0"+pt+"\xB6\xDF":"\uFB02\xB0"+pt+"\xB6\xDF"});var E=Ce("#d"+t).node(),O=Jn.detectType(f,m),j=E.firstChild,F=j.firstChild,U="";if(m.themeCSS!==void 0&&(U+=`
|
|
`.concat(m.themeCSS)),m.fontFamily!==void 0&&(U+=`
|
|
:root { --mermaid-font-family: `.concat(m.fontFamily,"}")),m.altFontFamily!==void 0&&(U+=`
|
|
:root { --mermaid-alt-font-family: `.concat(m.altFontFamily,"}")),O==="flowchart"||O==="flowchart-v2"||O==="graph"){var ot=function(At){y.info("Extracting classes"),rr.clear();try{var pt=B0().parser;return pt.yy=rr,pt.parse(At),rr.getClasses()}catch(Lt){return}}(f),vt=m.htmlLabels||m.flowchart.htmlLabels;for(var _t in ot)vt?(U+=`
|
|
.`.concat(_t," > * { ").concat(ot[_t].styles.join(" !important; ")," !important; }"),U+=`
|
|
.`.concat(_t," span { ").concat(ot[_t].styles.join(" !important; ")," !important; }")):(U+=`
|
|
.`.concat(_t," path { ").concat(ot[_t].styles.join(" !important; ")," !important; }"),U+=`
|
|
.`.concat(_t," rect { ").concat(ot[_t].styles.join(" !important; ")," !important; }"),U+=`
|
|
.`.concat(_t," polygon { ").concat(ot[_t].styles.join(" !important; ")," !important; }"),U+=`
|
|
.`.concat(_t," ellipse { ").concat(ot[_t].styles.join(" !important; ")," !important; }"),U+=`
|
|
.`.concat(_t," circle { ").concat(ot[_t].styles.join(" !important; ")," !important; }"),ot[_t].textStyles&&(U+=`
|
|
.`.concat(_t," tspan { ").concat(ot[_t].textStyles.join(" !important; ")," !important; }")))}var xt=function(At,pt){return r_(Eu("".concat(At,"{").concat(pt,"}")),wx)}("#".concat(t),function(At,pt,Lt){return` {
|
|
font-family: `.concat(Lt.fontFamily,`;
|
|
font-size: `).concat(Lt.fontSize,`;
|
|
fill: `).concat(Lt.textColor,`
|
|
}
|
|
|
|
/* Classes common for multiple diagrams */
|
|
|
|
.error-icon {
|
|
fill: `).concat(Lt.errorBkgColor,`;
|
|
}
|
|
.error-text {
|
|
fill: `).concat(Lt.errorTextColor,`;
|
|
stroke: `).concat(Lt.errorTextColor,`;
|
|
}
|
|
|
|
.edge-thickness-normal {
|
|
stroke-width: 2px;
|
|
}
|
|
.edge-thickness-thick {
|
|
stroke-width: 3.5px
|
|
}
|
|
.edge-pattern-solid {
|
|
stroke-dasharray: 0;
|
|
}
|
|
|
|
.edge-pattern-dashed{
|
|
stroke-dasharray: 3;
|
|
}
|
|
.edge-pattern-dotted {
|
|
stroke-dasharray: 2;
|
|
}
|
|
|
|
.marker {
|
|
fill: `).concat(Lt.lineColor,`;
|
|
stroke: `).concat(Lt.lineColor,`;
|
|
}
|
|
.marker.cross {
|
|
stroke: `).concat(Lt.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(Lt.fontFamily,`;
|
|
font-size: `).concat(Lt.fontSize,`;
|
|
}
|
|
|
|
`).concat(ph[At](Lt),`
|
|
|
|
`).concat(pt,`
|
|
`)}(O,U,m.themeVariables)),mt=document.createElement("style");mt.innerHTML="#".concat(t," ")+xt,j.insertBefore(mt,F);try{switch(O){case"git":m.flowchart.arrowMarkerAbsolute=m.arrowMarkerAbsolute,Kf(m.git),function(At,pt,Lt){try{var te=z0().parser;te.yy=eh,te.yy.clear(),y.debug("in gitgraph renderer",At+`
|
|
`,"id:",pt,Lt),te.parse(At+`
|
|
`),Nn=Object.assign(Nn,ao,eh.getOptions()),y.debug("effective options",Nn);var Et=eh.getDirection();tc=eh.getCommits();var bt=eh.getBranchesAsObjArray();Et==="BT"&&(Nn.nodeLabel.x=bt.length*Nn.branchOffset,Nn.nodeLabel.width="100%",Nn.nodeLabel.y=-2*Nn.nodeRadius);var Ut=Ce('[id="'.concat(pt,'"]'));for(var St in function(yt){yt.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",Nn.nodeRadius).attr("cx",0).attr("cy",0),yt.select("#def-commit").append("foreignObject").attr("width",Nn.nodeLabel.width).attr("height",Nn.nodeLabel.height).attr("x",Nn.nodeLabel.x).attr("y",Nn.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(Ut),Nu=1,bt){var Jt=bt[St];D2(Ut,Jt.commit.id,bt,Et),ec(Ut,Jt.commit,Et),Nu++}Ut.attr("height",function(){return Et==="BT"?Object.keys(tc).length*Nn.nodeSpacing:(bt.length+1)*Nn.branchOffset})}catch(yt){y.error("Error while rendering gitgraph"),y.error(yt.message)}}(f,t,!1);break;case"flowchart":m.flowchart.arrowMarkerAbsolute=m.arrowMarkerAbsolute,ia(m.flowchart),Du(f,t);break;case"flowchart-v2":m.flowchart.arrowMarkerAbsolute=m.arrowMarkerAbsolute,R0(m.flowchart),ms(f,t);break;case"sequence":m.sequence.arrowMarkerAbsolute=m.arrowMarkerAbsolute,m.sequenceDiagram?(Ru.setConf(Object.assign(m.sequence,m.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):Ru.setConf(m.sequence),Ru.draw(f,t);break;case"gantt":m.gantt.arrowMarkerAbsolute=m.arrowMarkerAbsolute,m.gantt,e6(f,t);break;case"class":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,F_(m.class),Lx(f,t);break;case"classDiagram":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,function(At){Object.keys(At).forEach(function(pt){r2[pt]=At[pt]})}(m.class),function(At,pt){y.info("Drawing class"),ps.clear(),Su.parser.parse(At);var Lt=se().flowchart;y.info("config:",Lt);var te=Lt.nodeSpacing||50,Et=Lt.rankSpacing||50,bt=new(Si()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:ps.getDirection(),nodesep:te,ranksep:Et,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Ut=ps.getClasses(),St=ps.getRelations();y.info(St),function(Xn,mn){var yn=Object.keys(Xn);y.info("keys:",yn),y.info(Xn),yn.forEach(function(hn){var sn=Xn[hn],tr="";sn.cssClasses.length>0&&(tr=tr+" "+sn.cssClasses.join(" "));var zn,Pn={labelStyle:""},sa=sn.text!==void 0?sn.text:sn.id;sn.type,zn="class_box",mn.setNode(sn.id,{labelStyle:Pn.labelStyle,shape:zn,labelText:sa,classData:sn,rx:0,ry:0,class:tr,style:Pn.style,id:sn.id,domId:sn.domId,haveCallback:sn.haveCallback,link:sn.link,width:sn.type==="group"?500:void 0,type:sn.type,padding:se().flowchart.padding}),y.info("setNode",{labelStyle:Pn.labelStyle,shape:zn,labelText:sa,rx:0,ry:0,class:tr,style:Pn.style,id:sn.id,width:sn.type==="group"?500:void 0,type:sn.type,padding:se().flowchart.padding})})}(Ut,bt),function(Xn,mn){var yn=0;Xn.forEach(function(hn){yn++;var sn={classes:"relation"};sn.pattern=hn.relation.lineType==1?"dashed":"solid",sn.id="id"+yn,hn.type==="arrow_open"?sn.arrowhead="none":sn.arrowhead="normal",y.info(sn,hn),sn.startLabelRight=hn.relationTitle1==="none"?"":hn.relationTitle1,sn.endLabelLeft=hn.relationTitle2==="none"?"":hn.relationTitle2,sn.arrowTypeStart=G_(hn.relation.type1),sn.arrowTypeEnd=G_(hn.relation.type2);var tr="",zn="";if(hn.style!==void 0){var Pn=Dc(hn.style);tr=Pn.style,zn=Pn.labelStyle}else tr="fill:none";sn.style=tr,sn.labelStyle=zn,hn.interpolate!==void 0?sn.curve=$o(hn.interpolate,ho):Xn.defaultInterpolate!==void 0?sn.curve=$o(Xn.defaultInterpolate,ho):sn.curve=$o(r2.curve,ho),hn.text=hn.title,hn.text===void 0?hn.style!==void 0&&(sn.arrowheadStyle="fill: #333"):(sn.arrowheadStyle="fill: #333",sn.labelpos="c",se().flowchart.htmlLabels?(sn.labelType="html",sn.label='<span class="edgeLabel">'+hn.text+"</span>"):(sn.labelType="text",sn.label=hn.text.replace(Hr.lineBreakRegex,`
|
|
`),hn.style===void 0&&(sn.style=sn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),sn.labelStyle=sn.labelStyle.replace("color:","fill:"))),mn.setEdge(hn.id1,hn.id2,sn,yn)})}(St,bt);var Jt=Ce('[id="'.concat(pt,'"]'));Jt.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var yt=Ce("#"+pt+" g");n2(yt,bt,["aggregation","extension","composition","dependency"],"classDiagram",pt);var fe=Jt.node().getBBox(),we=fe.width+16,_e=fe.height+16;if(y.debug("new ViewBox 0 0 ".concat(we," ").concat(_e),"translate(".concat(8-bt._label.marginx,", ").concat(8-bt._label.marginy,")")),no(Jt,_e,we,Lt.useMaxWidth),Jt.attr("viewBox","0 0 ".concat(we," ").concat(_e)),Jt.select("g").attr("transform","translate(".concat(8-bt._label.marginx,", ").concat(8-fe.y,")")),!Lt.htmlLabels)for(var Re=document.querySelectorAll('[id="'+pt+'"] .edgeLabel .label'),We=0;We<Re.length;We++){var Ue=Re[We],fn=Ue.getBBox(),Ae=document.createElementNS("http://www.w3.org/2000/svg","rect");Ae.setAttribute("rx",0),Ae.setAttribute("ry",0),Ae.setAttribute("width",fn.width),Ae.setAttribute("height",fn.height),Ue.insertBefore(Ae,Ue.firstChild)}}(f,t);break;case"state":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,m.state,Y(f,t);break;case"stateDiagram":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,it(m.state),function(At,pt){y.info("Drawing state diagram (v2)",pt),i.clear(),z={};var Lt=fd().parser;Lt.yy=i,Lt.parse(At);var te=i.getDirection();te===void 0&&(te="LR");var Et=se().state,bt=Et.nodeSpacing||50,Ut=Et.rankSpacing||50;y.info(i.getRootDocV2()),i.extract(i.getRootDocV2()),y.info(i.getRootDocV2());var St=new(Si()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:G(i.getRootDocV2()),nodesep:bt,ranksep:Ut,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});$(St,void 0,i.getRootDocV2(),!0);var Jt=Ce('[id="'.concat(pt,'"]')),yt=Ce("#"+pt+" g");n2(yt,St,["barb"],"statediagram",pt);var fe=Jt.node().getBBox(),we=fe.width+16,_e=fe.height+16;Jt.attr("class","statediagram");var Re=Jt.node().getBBox();no(Jt,_e,1.75*we,Et.useMaxWidth);var We="".concat(Re.x-8," ").concat(Re.y-8," ").concat(we," ").concat(_e);y.debug("viewBox ".concat(We)),Jt.attr("viewBox",We);for(var Ue=document.querySelectorAll('[id="'+pt+'"] .edgeLabel .label'),fn=0;fn<Ue.length;fn++){var Ae=Ue[fn],Xn=Ae.getBBox(),mn=document.createElementNS("http://www.w3.org/2000/svg","rect");mn.setAttribute("rx",0),mn.setAttribute("ry",0),mn.setAttribute("width",Xn.width),mn.setAttribute("height",Xn.height),Ae.insertBefore(mn,Ae.firstChild)}}(f,t);break;case"info":m.class.arrowMarkerAbsolute=m.arrowMarkerAbsolute,B2(m.class),function(At,pt,Lt){try{var te=O2().parser;te.yy=N2,y.debug(`Renering info diagram
|
|
`+At),te.parse(At),y.debug("Parsed info diagram");var Et=Ce("#"+pt);Et.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+Lt),Et.attr("height",100),Et.attr("width",400)}catch(bt){y.error("Error while rendering info diagram"),y.error(bt.message)}}(f,t,Mc);break;case"pie":R2(f,t);break;case"er":s2(m.er),Wx(f,t);break;case"journey":ws(m.journey),Wc(f,t);break;case"requirement":pb(m.requirement),gb(f,t)}}catch(At){throw function(pt,Lt){try{y.debug(`Renering svg for syntax error
|
|
`);var te=Ce("#"+pt),Et=te.append("g");Et.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),Et.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),Et.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),Et.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),Et.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),Et.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),Et.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),Et.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+Lt),te.attr("height",100),te.attr("width",400),te.attr("viewBox","768 0 512 512")}catch(bt){y.error("Error while rendering info diagram"),y.error(bt.message)}}(t,Mc),At}Ce('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var st=Ce("#d"+t).node().innerHTML;if(y.debug("cnf.arrowMarkerAbsolute",m.arrowMarkerAbsolute),m.arrowMarkerAbsolute&&m.arrowMarkerAbsolute!=="false"||(st=st.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),st=function(At){return At.replace(/fl°°/g,function(){return"&#"}).replace(/fl°/g,function(){return"&"}).replace(/¶ß/g,function(){return";"})}(st),st=st.replace(/<br>/g,"<br/>"),r!==void 0)switch(O){case"flowchart":case"flowchart-v2":r(st,rr.bindFunctions);break;case"gantt":r(st,Ks.bindFunctions);break;case"class":case"classDiagram":r(st,ps.bindFunctions);break;default:r(st)}else y.debug("CB = undefined!");var qt=Ce("#d"+t).node();return qt!==null&&typeof qt.remove=="function"&&Ce("#d"+t).node().remove(),st},parse:function(t){var e=se(),r=Jn.detectInit(t,e);r&&y.debug("reinit ",r);var o,f=Jn.detectType(t,e);switch(y.debug("Type "+f),f){case"git":(o=z0()).parser.yy=eh;break;case"flowchart":case"flowchart-v2":rr.clear(),(o=B0()).parser.yy=rr;break;case"sequence":(o=s6()).parser.yy=z2;break;case"gantt":(o=S2()).parser.yy=Ks;break;case"class":case"classDiagram":(o=Xy()).parser.yy=ps;break;case"state":case"stateDiagram":(o=fd()).parser.yy=i;break;case"info":y.debug("info info info"),(o=O2()).parser.yy=N2;break;case"pie":y.debug("pie"),(o=ed()).parser.yy=I2;break;case"er":y.debug("er"),(o=a2()).parser.yy=Ea;break;case"journey":y.debug("Journey"),(o=ee()).parser.yy=ct;break;case"requirement":case"requirementDiagram":y.debug("RequirementDiagram"),(o=o6()).parser.yy=ah}return o.parser.yy.graphType=f,o.parser.yy.parseError=function(p,m){throw{str:p,hash:m}},o.parse(t),o},parseDirective:function(t,e,r,o){try{if(e!==void 0)switch(e=e.trim(),r){case"open_directive":pd={};break;case"type_directive":pd.type=e.toLowerCase();break;case"arg_directive":pd.args=JSON.parse(e);break;case"close_directive":(function(f,p,m){switch(y.debug("Directive type=".concat(p.type," with args:"),p.args),p.type){case"init":case"initialize":["config"].forEach(function(b){p.args[b]!==void 0&&(m==="flowchart-v2"&&(m="flowchart"),p.args[m]=p.args[b],delete p.args[b])}),y.debug("sanitize in handleDirective",p.args),Hy(p.args),y.debug("sanitize in handleDirective (done)",p.args),p.args,M_(p.args);break;case"wrap":case"nowrap":f&&f.setWrap&&f.setWrap(p.type==="wrap");break;default:y.warn("Unhandled directive: source: '%%{".concat(p.type,": ").concat(JSON.stringify(p.args?p.args:{}),"}%%"),p)}})(t,pd,o),pd=null}}catch(f){y.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(r)),y.error(f.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(r){E_=Vi({},r)}(t),t&&t.theme&&oi[t.theme]?t.themeVariables=oi[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=oi.default.getThemeVariables(t.themeVariables));var e=J0(t)==="object"?function(r){return Gi=Vi({},Pf),Gi=Vi(Gi,r),r.theme&&(Gi.themeVariables=oi[r.theme].getThemeVariables(r.themeVariables)),d0=p0(Gi,Yf),Gi}(t):S_();Nb(e),w(e.logLevel)},reinitialize:function(){},getConfig:se,setConfig:function(t){return Vi(d0,t),se()},getSiteConfig:S_,updateSiteConfig:function(t){return Gi=Vi(Gi,t),p0(Gi,Yf),Gi},reset:function(){g0()},globalReset:function(){g0(),Nb(se())},defaultConfig:Pf});w(se().logLevel),g0(se());const oa=bo;var uw=function(){xo.startOnLoad?oa.getConfig().startOnLoad&&xo.init():xo.startOnLoad===void 0&&(y.debug("In start, no config"),oa.getConfig().startOnLoad&&xo.init())};typeof document!="undefined"&&window.addEventListener("load",function(){uw()},!1);var xo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:oa,parse:oa.parse,render:oa.render,init:function(){var t,e,r=this,o=oa.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(xo.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],typeof arguments[arguments.length-1]=="function"?(e=arguments[arguments.length-1],y.debug("Callback function found")):o.mermaid!==void 0&&(typeof o.mermaid.callback=="function"?(e=o.mermaid.callback,y.debug("Callback function found")):y.debug("No Callback function found")),t=t===void 0?document.querySelectorAll(".mermaid"):typeof t=="string"?document.querySelectorAll(t):t instanceof window.Node?[t]:t,y.debug("Start On Load before: "+xo.startOnLoad),xo.startOnLoad!==void 0&&(y.debug("Start On Load inner: "+xo.startOnLoad),oa.updateSiteConfig({startOnLoad:xo.startOnLoad})),xo.ganttConfig!==void 0&&oa.updateSiteConfig({gantt:xo.ganttConfig});for(var f,p=new Jn.initIdGeneratior(o.deterministicIds,o.deterministicIDSeed),m=function(S){var E=t[S];if(E.getAttribute("data-processed"))return"continue";E.setAttribute("data-processed",!0);var O="mermaid-".concat(p.next());f=E.innerHTML,f=Jn.entityDecode(f).trim().replace(/<br\s*\/?>/gi,"<br/>");var j=Jn.detectInit(f);j&&y.debug("Detected early reinit: ",j);try{oa.render(O,f,function(F,U){E.innerHTML=F,e!==void 0&&e(O),U&&U(E)},E)}catch(F){y.warn("Syntax Error rendering"),y.warn(F),r.parseError&&r.parseError(F)}},b=0;b<t.length;b++)m(b)},initialize:function(t){t.mermaid!==void 0&&(t.mermaid.startOnLoad!==void 0&&(xo.startOnLoad=t.mermaid.startOnLoad),t.mermaid.htmlLabels!==void 0&&(xo.htmlLabels=t.mermaid.htmlLabels!=="false"&&t.mermaid.htmlLabels!==!1)),oa.initialize(t)},contentLoaded:uw};const B7=xo},4949:(a,h,s)=>{a.exports={graphlib:s(6614),dagre:s(1463),intersect:s(8114),render:s(5787),util:s(8355),version:s(5689)}},9144:(a,h,s)=>{var d=s(8355);function l(_,y,w,T){var A=_.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");d.applyStyle(A,w[T+"Style"]),w[T+"Class"]&&A.attr("class",w[T+"Class"])}a.exports={default:l,normal:l,vee:function(_,y,w,T){var A=_.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");d.applyStyle(A,w[T+"Style"]),w[T+"Class"]&&A.attr("class",w[T+"Class"])},undirected:function(_,y,w,T){var A=_.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");d.applyStyle(A,w[T+"Style"]),w[T+"Class"]&&A.attr("class",w[T+"Class"])}}},5632:(a,h,s)=>{var d=s(8355),l=s(4322),_=s(1322);a.exports=function(y,w){var T,A=w.nodes().filter(function(N){return d.isSubgraph(w,N)}),L=y.selectAll("g.cluster").data(A,function(N){return N});return L.selectAll("*").remove(),L.enter().append("g").attr("class","cluster").attr("id",function(N){return w.node(N).id}).style("opacity",0),L=y.selectAll("g.cluster"),d.applyTransition(L,w).style("opacity",1),L.each(function(N){var P=w.node(N),W=l.select(this);l.select(this).append("rect");var H=W.append("g").attr("class","label");_(H,P,P.clusterLabelPos)}),L.selectAll("rect").each(function(N){var P=w.node(N),W=l.select(this);d.applyStyle(W,P.style)}),T=L.exit?L.exit():L.selectAll(null),d.applyTransition(T,w).style("opacity",0).remove(),L}},6315:(a,h,s)=>{var d=s(1034),l=s(1322),_=s(8355),y=s(4322);a.exports=function(w,T){var A,L=w.selectAll("g.edgeLabel").data(T.edges(),function(N){return _.edgeToId(N)}).classed("update",!0);return L.exit().remove(),L.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(L=w.selectAll("g.edgeLabel")).each(function(N){var P=y.select(this);P.select(".label").remove();var W=T.edge(N),H=l(P,T.edge(N),0,0).classed("label",!0),V=H.node().getBBox();W.labelId&&H.attr("id",W.labelId),d.has(W,"width")||(W.width=V.width),d.has(W,"height")||(W.height=V.height)}),A=L.exit?L.exit():L.selectAll(null),_.applyTransition(A,T).style("opacity",0).remove(),L}},940:(a,h,s)=>{var d=s(1034),l=s(7584),_=s(8355),y=s(4322);function w(T,A){var L=(y.line||y.svg.line)().x(function(N){return N.x}).y(function(N){return N.y});return(L.curve||L.interpolate)(T.curve),L(A)}a.exports=function(T,A,L){var N=T.selectAll("g.edgePath").data(A.edges(),function(H){return _.edgeToId(H)}).classed("update",!0),P=function(H,V){var X=H.enter().append("g").attr("class","edgePath").style("opacity",0);return X.append("path").attr("class","path").attr("d",function(J){var ht=V.edge(J),tt=V.node(J.v).elem;return w(ht,d.range(ht.points.length).map(function(){return gt=(kt=tt).getBBox(),{x:(ft=kt.ownerSVGElement.getScreenCTM().inverse().multiply(kt.getScreenCTM()).translate(gt.width/2,gt.height/2)).e,y:ft.f};var kt,gt,ft}))}),X.append("defs"),X}(N,A);(function(H,V){var X=H.exit();_.applyTransition(X,V).style("opacity",0).remove()})(N,A);var W=N.merge!==void 0?N.merge(P):N;return _.applyTransition(W,A).style("opacity",1),W.each(function(H){var V=y.select(this),X=A.edge(H);X.elem=this,X.id&&V.attr("id",X.id),_.applyClass(V,X.class,(V.classed("update")?"update ":"")+"edgePath")}),W.selectAll("path.path").each(function(H){var V=A.edge(H);V.arrowheadId=d.uniqueId("arrowhead");var X=y.select(this).attr("marker-end",function(){return"url("+(J=location.href,ht=V.arrowheadId,J.split("#")[0]+"#"+ht+")");var J,ht}).style("fill","none");_.applyTransition(X,A).attr("d",function(J){return function(ht,tt){var kt=ht.edge(tt),gt=ht.node(tt.v),ft=ht.node(tt.w),et=kt.points.slice(1,kt.points.length-1);return et.unshift(l(gt,et[0])),et.push(l(ft,et[et.length-1])),w(kt,et)}(A,J)}),_.applyStyle(X,V.style)}),W.selectAll("defs *").remove(),W.selectAll("defs").each(function(H){var V=A.edge(H);(0,L[V.arrowhead])(y.select(this),V.arrowheadId,V,"arrowhead")}),W}},607:(a,h,s)=>{var d=s(1034),l=s(1322),_=s(8355),y=s(4322);a.exports=function(w,T,A){var L,N=T.nodes().filter(function(W){return!_.isSubgraph(T,W)}),P=w.selectAll("g.node").data(N,function(W){return W}).classed("update",!0);return P.exit().remove(),P.enter().append("g").attr("class","node").style("opacity",0),(P=w.selectAll("g.node")).each(function(W){var H=T.node(W),V=y.select(this);_.applyClass(V,H.class,(V.classed("update")?"update ":"")+"node"),V.select("g.label").remove();var X=V.append("g").attr("class","label"),J=l(X,H),ht=A[H.shape],tt=d.pick(J.node().getBBox(),"width","height");H.elem=this,H.id&&V.attr("id",H.id),H.labelId&&X.attr("id",H.labelId),d.has(H,"width")&&(tt.width=H.width),d.has(H,"height")&&(tt.height=H.height),tt.width+=H.paddingLeft+H.paddingRight,tt.height+=H.paddingTop+H.paddingBottom,X.attr("transform","translate("+(H.paddingLeft-H.paddingRight)/2+","+(H.paddingTop-H.paddingBottom)/2+")");var kt=y.select(this);kt.select(".label-container").remove();var gt=ht(kt,tt,H).classed("label-container",!0);_.applyStyle(gt,H.style);var ft=gt.node().getBBox();H.width=ft.width,H.height=ft.height}),L=P.exit?P.exit():P.selectAll(null),_.applyTransition(L,T).style("opacity",0).remove(),P}},4322:(a,h,s)=>{var d;if(!d)try{d=s(7188)}catch(l){}d||(d=window.d3),a.exports=d},1463:(a,h,s)=>{var d;try{d=s(681)}catch(l){}d||(d=window.dagre),a.exports=d},6614:(a,h,s)=>{var d;try{d=s(8282)}catch(l){}d||(d=window.graphlib),a.exports=d},8114:(a,h,s)=>{a.exports={node:s(7584),circle:s(6587),ellipse:s(3260),polygon:s(5337),rect:s(8049)}},6587:(a,h,s)=>{var d=s(3260);a.exports=function(l,_,y){return d(l,_,_,y)}},3260:a=>{a.exports=function(h,s,d,l){var _=h.x,y=h.y,w=_-l.x,T=y-l.y,A=Math.sqrt(s*s*T*T+d*d*w*w),L=Math.abs(s*d*w/A);l.x<_&&(L=-L);var N=Math.abs(s*d*T/A);return l.y<y&&(N=-N),{x:_+L,y:y+N}}},6808:a=>{function h(s,d){return s*d>0}a.exports=function(s,d,l,_){var y,w,T,A,L,N,P,W,H,V,X,J,ht;if(y=d.y-s.y,T=s.x-d.x,L=d.x*s.y-s.x*d.y,H=y*l.x+T*l.y+L,V=y*_.x+T*_.y+L,!(H!==0&&V!==0&&h(H,V)||(w=_.y-l.y,A=l.x-_.x,N=_.x*l.y-l.x*_.y,P=w*s.x+A*s.y+N,W=w*d.x+A*d.y+N,P!==0&&W!==0&&h(P,W)||(X=y*A-w*T)==0)))return J=Math.abs(X/2),{x:(ht=T*N-A*L)<0?(ht-J)/X:(ht+J)/X,y:(ht=w*L-y*N)<0?(ht-J)/X:(ht+J)/X}}},7584:a=>{a.exports=function(h,s){return h.intersect(s)}},5337:(a,h,s)=>{var d=s(6808);a.exports=function(l,_,y){var w=l.x,T=l.y,A=[],L=Number.POSITIVE_INFINITY,N=Number.POSITIVE_INFINITY;_.forEach(function(ht){L=Math.min(L,ht.x),N=Math.min(N,ht.y)});for(var P=w-l.width/2-L,W=T-l.height/2-N,H=0;H<_.length;H++){var V=_[H],X=_[H<_.length-1?H+1:0],J=d(l,y,{x:P+V.x,y:W+V.y},{x:P+X.x,y:W+X.y});J&&A.push(J)}return A.length?(A.length>1&&A.sort(function(ht,tt){var kt=ht.x-y.x,gt=ht.y-y.y,ft=Math.sqrt(kt*kt+gt*gt),et=tt.x-y.x,K=tt.y-y.y,dt=Math.sqrt(et*et+K*K);return ft<dt?-1:ft===dt?0:1}),A[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",l),l)}},8049:a=>{a.exports=function(h,s){var d,l,_=h.x,y=h.y,w=s.x-_,T=s.y-y,A=h.width/2,L=h.height/2;return Math.abs(T)*A>Math.abs(w)*L?(T<0&&(L=-L),d=T===0?0:L*w/T,l=L):(w<0&&(A=-A),d=A,l=w===0?0:A*T/w),{x:_+d,y:y+l}}},8284:(a,h,s)=>{var d=s(8355);a.exports=function(l,_){var y=l.append("foreignObject").attr("width","100000"),w=y.append("xhtml:div");w.attr("xmlns","http://www.w3.org/1999/xhtml");var T=_.label;switch(typeof T){case"function":w.insert(T);break;case"object":w.insert(function(){return T});break;default:w.html(T)}d.applyStyle(w,_.labelStyle),w.style("display","inline-block"),w.style("white-space","nowrap");var A=w.node().getBoundingClientRect();return y.attr("width",A.width).attr("height",A.height),y}},1322:(a,h,s)=>{var d=s(7318),l=s(8284),_=s(8287);a.exports=function(y,w,T){var A=w.label,L=y.append("g");w.labelType==="svg"?_(L,w):typeof A!="string"||w.labelType==="html"?l(L,w):d(L,w);var N,P=L.node().getBBox();switch(T){case"top":N=-w.height/2;break;case"bottom":N=w.height/2-P.height;break;default:N=-P.height/2}return L.attr("transform","translate("+-P.width/2+","+N+")"),L}},8287:(a,h,s)=>{var d=s(8355);a.exports=function(l,_){var y=l;return y.node().appendChild(_.label),d.applyStyle(y,_.labelStyle),y}},7318:(a,h,s)=>{var d=s(8355);a.exports=function(l,_){for(var y=l.append("text"),w=function(A){for(var L,N="",P=!1,W=0;W<A.length;++W)L=A[W],P?(N+=L==="n"?`
|
|
`:L,P=!1):L==="\\"?P=!0:N+=L;return N}(_.label).split(`
|
|
`),T=0;T<w.length;T++)y.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(w[T]);return d.applyStyle(y,_.labelStyle),y}},1034:(a,h,s)=>{var d;try{d={defaults:s(1747),each:s(6073),isFunction:s(3560),isPlainObject:s(8630),pick:s(9722),has:s(8721),range:s(6026),uniqueId:s(3955)}}catch(l){}d||(d=window._),a.exports=d},6381:(a,h,s)=>{var d=s(8355),l=s(4322);a.exports=function(_,y){var w=_.filter(function(){return!l.select(this).classed("update")});function T(A){var L=y.node(A);return"translate("+L.x+","+L.y+")"}w.attr("transform",T),d.applyTransition(_,y).style("opacity",1).attr("transform",T),d.applyTransition(w.selectAll("rect"),y).attr("width",function(A){return y.node(A).width}).attr("height",function(A){return y.node(A).height}).attr("x",function(A){return-y.node(A).width/2}).attr("y",function(A){return-y.node(A).height/2})}},4577:(a,h,s)=>{var d=s(8355),l=s(4322),_=s(1034);a.exports=function(y,w){function T(A){var L=w.edge(A);return _.has(L,"x")?"translate("+L.x+","+L.y+")":""}y.filter(function(){return!l.select(this).classed("update")}).attr("transform",T),d.applyTransition(y,w).style("opacity",1).attr("transform",T)}},4849:(a,h,s)=>{var d=s(8355),l=s(4322);a.exports=function(_,y){function w(T){var A=y.node(T);return"translate("+A.x+","+A.y+")"}_.filter(function(){return!l.select(this).classed("update")}).attr("transform",w),d.applyTransition(_,y).style("opacity",1).attr("transform",w)}},5787:(a,h,s)=>{var d=s(1034),l=s(4322),_=s(1463).layout;a.exports=function(){var A=s(607),L=s(5632),N=s(6315),P=s(940),W=s(4849),H=s(4577),V=s(6381),X=s(4418),J=s(9144),ht=function(tt,kt){(function(Tt){Tt.nodes().forEach(function(lt){var It=Tt.node(lt);d.has(It,"label")||Tt.children(lt).length||(It.label=lt),d.has(It,"paddingX")&&d.defaults(It,{paddingLeft:It.paddingX,paddingRight:It.paddingX}),d.has(It,"paddingY")&&d.defaults(It,{paddingTop:It.paddingY,paddingBottom:It.paddingY}),d.has(It,"padding")&&d.defaults(It,{paddingLeft:It.padding,paddingRight:It.padding,paddingTop:It.padding,paddingBottom:It.padding}),d.defaults(It,y),d.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(Ft){It[Ft]=Number(It[Ft])}),d.has(It,"width")&&(It._prevWidth=It.width),d.has(It,"height")&&(It._prevHeight=It.height)}),Tt.edges().forEach(function(lt){var It=Tt.edge(lt);d.has(It,"label")||(It.label=""),d.defaults(It,w)})})(kt);var gt=T(tt,"output"),ft=T(gt,"clusters"),et=T(gt,"edgePaths"),K=N(T(gt,"edgeLabels"),kt),dt=A(T(gt,"nodes"),kt,X);_(kt),W(dt,kt),H(K,kt),P(et,kt,J);var Ot=L(ft,kt);V(Ot,kt),function(Tt){d.each(Tt.nodes(),function(lt){var It=Tt.node(lt);d.has(It,"_prevWidth")?It.width=It._prevWidth:delete It.width,d.has(It,"_prevHeight")?It.height=It._prevHeight:delete It.height,delete It._prevWidth,delete It._prevHeight})}(kt)};return ht.createNodes=function(tt){return arguments.length?(A=tt,ht):A},ht.createClusters=function(tt){return arguments.length?(L=tt,ht):L},ht.createEdgeLabels=function(tt){return arguments.length?(N=tt,ht):N},ht.createEdgePaths=function(tt){return arguments.length?(P=tt,ht):P},ht.shapes=function(tt){return arguments.length?(X=tt,ht):X},ht.arrows=function(tt){return arguments.length?(J=tt,ht):J},ht};var y={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},w={arrowhead:"normal",curve:l.curveLinear};function T(A,L){var N=A.select("g."+L);return N.empty()&&(N=A.append("g").attr("class",L)),N}},4418:(a,h,s)=>{var d=s(8049),l=s(3260),_=s(6587),y=s(5337);a.exports={rect:function(w,T,A){var L=w.insert("rect",":first-child").attr("rx",A.rx).attr("ry",A.ry).attr("x",-T.width/2).attr("y",-T.height/2).attr("width",T.width).attr("height",T.height);return A.intersect=function(N){return d(A,N)},L},ellipse:function(w,T,A){var L=T.width/2,N=T.height/2,P=w.insert("ellipse",":first-child").attr("x",-T.width/2).attr("y",-T.height/2).attr("rx",L).attr("ry",N);return A.intersect=function(W){return l(A,L,N,W)},P},circle:function(w,T,A){var L=Math.max(T.width,T.height)/2,N=w.insert("circle",":first-child").attr("x",-T.width/2).attr("y",-T.height/2).attr("r",L);return A.intersect=function(P){return _(A,L,P)},N},diamond:function(w,T,A){var L=T.width*Math.SQRT2/2,N=T.height*Math.SQRT2/2,P=[{x:0,y:-N},{x:-L,y:0},{x:0,y:N},{x:L,y:0}],W=w.insert("polygon",":first-child").attr("points",P.map(function(H){return H.x+","+H.y}).join(" "));return A.intersect=function(H){return y(A,P,H)},W}}},8355:(a,h,s)=>{var d=s(1034);a.exports={isSubgraph:function(y,w){return!!y.children(w).length},edgeToId:function(y){return _(y.v)+":"+_(y.w)+":"+_(y.name)},applyStyle:function(y,w){w&&y.attr("style",w)},applyClass:function(y,w,T){w&&y.attr("class",w).attr("class",T+" "+y.attr("class"))},applyTransition:function(y,w){var T=w.graph();if(d.isPlainObject(T)){var A=T.transition;if(d.isFunction(A))return A(y)}return y}};var l=/:/g;function _(y){return y?String(y).replace(l,"\\:"):""}},5689:a=>{a.exports="0.6.4"},7188:(a,h,s)=>{s.r(h),s.d(h,{FormatSpecifier:()=>Zd,active:()=>v4,arc:()=>b2,area:()=>w2,areaRadial:()=>E2,ascending:()=>l,autoType:()=>U4,axisBottom:()=>Ee,axisLeft:()=>tn,axisRight:()=>Be,axisTop:()=>Qe,bisect:()=>A,bisectLeft:()=>T,bisectRight:()=>w,bisector:()=>_,blob:()=>e5,brush:()=>Ip,brushSelection:()=>x4,brushX:()=>Ld,brushY:()=>w4,buffer:()=>lv,chord:()=>Fp,clientPoint:()=>ru,cluster:()=>K5,color:()=>uo,contourDensity:()=>Fh,contours:()=>Li,create:()=>Jx,creator:()=>qe,cross:()=>P,csv:()=>hv,csvFormat:()=>O4,csvFormatBody:()=>B4,csvFormatRow:()=>I4,csvFormatRows:()=>L4,csvFormatValue:()=>Vm,csvParse:()=>qm,csvParseRows:()=>N4,cubehelix:()=>ga,curveBasis:()=>fb,curveBasisClosed:()=>r6,curveBasisOpen:()=>i6,curveBundle:()=>a6,curveCardinal:()=>L2,curveCardinalClosed:()=>I2,curveCardinalOpen:()=>nc,curveCatmullRom:()=>o6,curveCatmullRomClosed:()=>Ya,curveCatmullRomOpen:()=>Yc,curveLinear:()=>Y0,curveLinearClosed:()=>ah,curveMonotoneX:()=>oh,curveMonotoneY:()=>pb,curveNatural:()=>s6,curveStep:()=>Uc,curveStepAfter:()=>yb,curveStepBefore:()=>xs,customEvent:()=>zi,descending:()=>W,deviation:()=>X,dispatch:()=>Ge,drag:()=>Wm,dragDisable:()=>Dr,dragEnable:()=>Qi,dsv:()=>i5,dsvFormat:()=>Ph,easeBack:()=>sv,easeBackIn:()=>J4,easeBackInOut:()=>sv,easeBackOut:()=>K4,easeBounce:()=>Yh,easeBounceIn:()=>ov,easeBounceInOut:()=>Q4,easeBounceOut:()=>Yh,easeCircle:()=>av,easeCircleIn:()=>X4,easeCircleInOut:()=>av,easeCircleOut:()=>Z4,easeCubic:()=>cc,easeCubicIn:()=>Sd,easeCubicInOut:()=>cc,easeCubicOut:()=>Cd,easeElastic:()=>ig,easeElasticIn:()=>t5,easeElasticInOut:()=>cv,easeElasticOut:()=>ig,easeExp:()=>iv,easeExpIn:()=>rv,easeExpInOut:()=>iv,easeExpOut:()=>G4,easeLinear:()=>Zm,easePoly:()=>Jm,easePolyIn:()=>$4,easePolyInOut:()=>Jm,easePolyOut:()=>q4,easeQuad:()=>Qm,easeQuadIn:()=>W4,easeQuadInOut:()=>Qm,easeQuadOut:()=>H4,easeSin:()=>nv,easeSinIn:()=>ev,easeSinInOut:()=>nv,easeSinOut:()=>V4,entries:()=>Hp,event:()=>De,extent:()=>J,forceCenter:()=>c5,forceCollide:()=>f5,forceLink:()=>p5,forceManyBody:()=>v5,forceRadial:()=>_5,forceSimulation:()=>m5,forceX:()=>mv,forceY:()=>ug,format:()=>Jd,formatDefaultLocale:()=>Tv,formatLocale:()=>kv,formatPrefix:()=>hg,formatSpecifier:()=>zh,geoAlbers:()=>_3,geoAlbersUsa:()=>Us,geoArea:()=>x5,geoAzimuthalEqualArea:()=>z5,geoAzimuthalEqualAreaRaw:()=>qg,geoAzimuthalEquidistant:()=>Gg,geoAzimuthalEquidistantRaw:()=>Vg,geoBounds:()=>Qh,geoCentroid:()=>T5,geoCircle:()=>E5,geoClipAntimeridian:()=>Mg,geoClipCircle:()=>Vv,geoClipExtent:()=>C5,geoClipRectangle:()=>y1,geoConicConformal:()=>H5,geoConicConformalRaw:()=>Zg,geoConicEqualArea:()=>N1,geoConicEqualAreaRaw:()=>v3,geoConicEquidistant:()=>x3,geoConicEquidistantRaw:()=>b3,geoContains:()=>t3,geoDistance:()=>x1,geoEqualEarth:()=>q5,geoEqualEarthRaw:()=>Qg,geoEquirectangular:()=>$5,geoEquirectangularRaw:()=>pf,geoGnomonic:()=>w3,geoGnomonicRaw:()=>vf,geoGraticule:()=>r3,geoGraticule10:()=>B5,geoIdentity:()=>B1,geoInterpolate:()=>L5,geoLength:()=>Gv,geoMercator:()=>W5,geoMercatorRaw:()=>ff,geoNaturalEarth1:()=>V5,geoNaturalEarth1Raw:()=>Jg,geoOrthographic:()=>G5,geoOrthographicRaw:()=>Kg,geoPath:()=>F5,geoProjection:()=>Yo,geoProjectionMutator:()=>Wg,geoRotation:()=>Eg,geoStereographic:()=>X5,geoStereographicRaw:()=>ty,geoStream:()=>Bo,geoTransform:()=>P5,geoTransverseMercator:()=>Z5,geoTransverseMercatorRaw:()=>L1,gray:()=>E4,hcl:()=>hc,hierarchy:()=>ey,histogram:()=>ue,hsl:()=>Ku,html:()=>pv,image:()=>dv,interpolate:()=>nu,interpolateArray:()=>hp,interpolateBasis:()=>Br,interpolateBasisClosed:()=>tu,interpolateBlues:()=>l2,interpolateBrBG:()=>T0,interpolateBuGn:()=>i2,interpolateBuPu:()=>X_,interpolateCividis:()=>$x,interpolateCool:()=>rr,interpolateCubehelix:()=>V1,interpolateCubehelixDefault:()=>K_,interpolateCubehelixLong:()=>Tf,interpolateDate:()=>wd,interpolateDiscrete:()=>ux,interpolateGnBu:()=>zx,interpolateGreens:()=>h2,interpolateGreys:()=>D0,interpolateHcl:()=>ls,interpolateHclLong:()=>Uo,interpolateHsl:()=>lx,interpolateHslLong:()=>hx,interpolateHue:()=>W1,interpolateInferno:()=>Zx,interpolateLab:()=>$1,interpolateMagma:()=>Xx,interpolateNumber:()=>fa,interpolateNumberArray:()=>bh,interpolateObject:()=>kd,interpolateOrRd:()=>Zs,interpolateOranges:()=>J_,interpolatePRGn:()=>j_,interpolatePiYG:()=>U_,interpolatePlasma:()=>Qx,interpolatePuBu:()=>Z_,interpolatePuBuGn:()=>$r,interpolatePuOr:()=>W_,interpolatePuRd:()=>Wx,interpolatePurples:()=>f2,interpolateRainbow:()=>B0,interpolateRdBu:()=>ra,interpolateRdGy:()=>E0,interpolateRdPu:()=>c2,interpolateRdYlBu:()=>q_,interpolateRdYlGn:()=>n2,interpolateReds:()=>Hx,interpolateRgb:()=>sc,interpolateRgbBasis:()=>el,interpolateRgbBasisClosed:()=>Co,interpolateRound:()=>sy,interpolateSinebow:()=>eb,interpolateSpectral:()=>G_,interpolateString:()=>Mo,interpolateTransformCss:()=>dp,interpolateTransformSvg:()=>pp,interpolateTurbo:()=>Vx,interpolateViridis:()=>Gx,interpolateWarm:()=>tb,interpolateYlGn:()=>Zl,interpolateYlGnBu:()=>M0,interpolateYlOrBr:()=>Mu,interpolateYlOrRd:()=>ys,interpolateZoom:()=>H1,interrupt:()=>pa,interval:()=>l6,isoFormat:()=>G0,isoParse:()=>u6,json:()=>o5,keys:()=>Nh,lab:()=>Oh,lch:()=>Vp,line:()=>Zf,lineRadial:()=>T2,linkHorizontal:()=>Fi,linkRadial:()=>sb,linkVertical:()=>_s,local:()=>nb,map:()=>Bs,matcher:()=>an,max:()=>Nt,mean:()=>jt,median:()=>Kt,merge:()=>pe,min:()=>ge,mouse:()=>Ms,namespace:()=>Un,namespaces:()=>Wn,nest:()=>T4,now:()=>q,pack:()=>ax,packEnclose:()=>E3,packSiblings:()=>O3,pairs:()=>L,partition:()=>jo,path:()=>Os,permute:()=>Pt,pie:()=>Kl,piecewise:()=>uy,pointRadial:()=>Ks,polygonArea:()=>U3,polygonCentroid:()=>fx,polygonContains:()=>hy,polygonHull:()=>ly,polygonLength:()=>W3,precisionFixed:()=>fg,precisionPrefix:()=>Ev,precisionRound:()=>Sv,quadtree:()=>jh,quantile:()=>ye,quantize:()=>j3,radialArea:()=>E2,radialLine:()=>T2,randomBates:()=>fs,randomExponential:()=>gx,randomIrwinHall:()=>Pl,randomLogNormal:()=>Fl,randomNormal:()=>Ef,randomUniform:()=>G1,range:()=>et,rgb:()=>Hi,ribbon:()=>jp,scaleBand:()=>Q1,scaleDiverging:()=>Ky,scaleDivergingLog:()=>$f,scaleDivergingPow:()=>t2,scaleDivergingSqrt:()=>w0,scaleDivergingSymlog:()=>P_,scaleIdentity:()=>yy,scaleImplicit:()=>fy,scaleLinear:()=>gy,scaleLog:()=>X3,scaleOrdinal:()=>Z1,scalePoint:()=>Sf,scalePow:()=>xy,scaleQuantile:()=>t_,scaleQuantize:()=>e_,scaleSequential:()=>x0,scaleSequentialLog:()=>ka,scaleSequentialPow:()=>bi,scaleSequentialQuantile:()=>vr,scaleSequentialSqrt:()=>Xs,scaleSequentialSymlog:()=>Ta,scaleSqrt:()=>bx,scaleSymlog:()=>J3,scaleThreshold:()=>n_,scaleTime:()=>Bx,scaleUtc:()=>Lx,scan:()=>ze,schemeAccent:()=>Rx,schemeBlues:()=>Gf,schemeBrBG:()=>Oc,schemeBuGn:()=>Xl,schemeBuPu:()=>S0,schemeCategory10:()=>Ix,schemeDark2:()=>Fx,schemeGnBu:()=>Ea,schemeGreens:()=>A0,schemeGreys:()=>Xf,schemeOrRd:()=>a2,schemeOranges:()=>N0,schemePRGn:()=>e2,schemePaired:()=>Px,schemePastel1:()=>Yx,schemePastel2:()=>jx,schemePiYG:()=>Cu,schemePuBu:()=>o2,schemePuBuGn:()=>Qs,schemePuOr:()=>z_,schemePuRd:()=>s2,schemePurples:()=>Q_,schemeRdBu:()=>Vf,schemeRdGy:()=>H_,schemeRdPu:()=>C0,schemeRdYlBu:()=>$_,schemeRdYlGn:()=>V_,schemeReds:()=>d2,schemeSet1:()=>Y_,schemeSet2:()=>Ux,schemeSet3:()=>qf,schemeSpectral:()=>r2,schemeTableau10:()=>k0,schemeYlGn:()=>u2,schemeYlGnBu:()=>gs,schemeYlOrBr:()=>fi,schemeYlOrRd:()=>Au,select:()=>Yn,selectAll:()=>t6,selection:()=>qa,selector:()=>Ur,selectorAll:()=>un,set:()=>lc,shuffle:()=>Qt,stack:()=>Y2,stackOffsetDiverging:()=>oo,stackOffsetExpand:()=>c6,stackOffsetNone:()=>Ou,stackOffsetSilhouette:()=>ad,stackOffsetWiggle:()=>Lu,stackOrderAppearance:()=>sh,stackOrderAscending:()=>j2,stackOrderDescending:()=>_b,stackOrderInsideOut:()=>bb,stackOrderNone:()=>Bu,stackOrderReverse:()=>xb,stratify:()=>Y1,style:()=>hr,sum:()=>zt,svg:()=>Xd,symbol:()=>D2,symbolCircle:()=>Qf,symbolCross:()=>C2,symbolDiamond:()=>M2,symbolSquare:()=>lb,symbolStar:()=>Nu,symbolTriangle:()=>tc,symbolWye:()=>W0,symbols:()=>n6,text:()=>fl,thresholdFreedmanDiaconis:()=>de,thresholdScott:()=>le,thresholdSturges:()=>Ft,tickFormat:()=>Wo,tickIncrement:()=>lt,tickStep:()=>It,ticks:()=>Tt,timeDay:()=>Vs,timeDays:()=>Ay,timeFormat:()=>Ry,timeFormatDefaultLocale:()=>Su,timeFormatLocale:()=>p_,timeFriday:()=>qs,timeFridays:()=>i_,timeHour:()=>yo,timeHours:()=>Tu,timeInterval:()=>Ri,timeMillisecond:()=>o0,timeMilliseconds:()=>s_,timeMinute:()=>Bf,timeMinutes:()=>Dy,timeMonday:()=>Yl,timeMondays:()=>r_,timeMonth:()=>Ty,timeMonths:()=>$s,timeParse:()=>g_,timeSaturday:()=>My,timeSaturdays:()=>go,timeSecond:()=>a0,timeSeconds:()=>o_,timeSunday:()=>ku,timeSundays:()=>Nf,timeThursday:()=>Ho,timeThursdays:()=>jl,timeTuesday:()=>Cy,timeTuesdays:()=>wx,timeWednesday:()=>r0,timeWednesdays:()=>i0,timeWeek:()=>ku,timeWeeks:()=>Nf,timeYear:()=>bu,timeYears:()=>xx,timeout:()=>Ve,timer:()=>he,timerFlush:()=>be,touch:()=>da,touches:()=>Js,transition:()=>Ed,transpose:()=>Zt,tree:()=>Ll,treemap:()=>z1,treemapBinary:()=>kf,treemapDice:()=>bf,treemapResquarify:()=>oy,treemapSlice:()=>Ec,treemapSliceDice:()=>P3,treemapSquarify:()=>Sc,tsv:()=>fv,tsvFormat:()=>Xm,tsvFormatBody:()=>F4,tsvFormatRow:()=>Y4,tsvFormatRows:()=>P4,tsvFormatValue:()=>j4,tsvParse:()=>Gm,tsvParseRows:()=>R4,utcDay:()=>Wl,utcDays:()=>kx,utcFormat:()=>Hl,utcFriday:()=>By,utcFridays:()=>Hr,utcHour:()=>R_,utcHours:()=>_0,utcMillisecond:()=>o0,utcMilliseconds:()=>s_,utcMinute:()=>Hf,utcMinutes:()=>F_,utcMonday:()=>zl,utcMondays:()=>h_,utcMonth:()=>Jy,utcMonths:()=>Gl,utcParse:()=>Fy,utcSaturday:()=>u_,utcSaturdays:()=>xe,utcSecond:()=>a0,utcSeconds:()=>o_,utcSunday:()=>Cc,utcSundays:()=>l_,utcThursday:()=>Mc,utcThursdays:()=>ea,utcTuesday:()=>c_,utcTuesdays:()=>f_,utcWednesday:()=>Oy,utcWednesdays:()=>d_,utcWeek:()=>Cc,utcWeeks:()=>l_,utcYear:()=>Gs,utcYears:()=>Tx,values:()=>Wp,variance:()=>V,version:()=>d,voronoi:()=>Z0,window:()=>Hn,xml:()=>s5,zip:()=>ae,zoom:()=>Db,zoomIdentity:()=>Fu,zoomTransform:()=>Cb});var d="5.16.0";function l(n,i){return n<i?-1:n>i?1:n>=i?0:NaN}function _(n){var i;return n.length===1&&(i=n,n=function(c,u){return l(i(c),u)}),{left:function(c,u,g,v){for(g==null&&(g=0),v==null&&(v=c.length);g<v;){var k=g+v>>>1;n(c[k],u)<0?g=k+1:v=k}return g},right:function(c,u,g,v){for(g==null&&(g=0),v==null&&(v=c.length);g<v;){var k=g+v>>>1;n(c[k],u)>0?v=k:g=k+1}return g}}}var y=_(l),w=y.right,T=y.left;const A=w;function L(n,i){i==null&&(i=N);for(var c=0,u=n.length-1,g=n[0],v=new Array(u<0?0:u);c<u;)v[c]=i(g,g=n[++c]);return v}function N(n,i){return[n,i]}function P(n,i,c){var u,g,v,k,x=n.length,C=i.length,D=new Array(x*C);for(c==null&&(c=N),u=v=0;u<x;++u)for(k=n[u],g=0;g<C;++g,++v)D[v]=c(k,i[g]);return D}function W(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function H(n){return n===null?NaN:+n}function V(n,i){var c,u,g=n.length,v=0,k=-1,x=0,C=0;if(i==null)for(;++k<g;)isNaN(c=H(n[k]))||(C+=(u=c-x)*(c-(x+=u/++v)));else for(;++k<g;)isNaN(c=H(i(n[k],k,n)))||(C+=(u=c-x)*(c-(x+=u/++v)));if(v>1)return C/(v-1)}function X(n,i){var c=V(n,i);return c&&Math.sqrt(c)}function J(n,i){var c,u,g,v=n.length,k=-1;if(i==null){for(;++k<v;)if((c=n[k])!=null&&c>=c)for(u=g=c;++k<v;)(c=n[k])!=null&&(u>c&&(u=c),g<c&&(g=c))}else for(;++k<v;)if((c=i(n[k],k,n))!=null&&c>=c)for(u=g=c;++k<v;)(c=i(n[k],k,n))!=null&&(u>c&&(u=c),g<c&&(g=c));return[u,g]}var ht=Array.prototype,tt=ht.slice,kt=ht.map;function gt(n){return function(){return n}}function ft(n){return n}function et(n,i,c){n=+n,i=+i,c=(g=arguments.length)<2?(i=n,n=0,1):g<3?1:+c;for(var u=-1,g=0|Math.max(0,Math.ceil((i-n)/c)),v=new Array(g);++u<g;)v[u]=n+u*c;return v}var K=Math.sqrt(50),dt=Math.sqrt(10),Ot=Math.sqrt(2);function Tt(n,i,c){var u,g,v,k,x=-1;if(c=+c,(n=+n)==(i=+i)&&c>0)return[n];if((u=i<n)&&(g=n,n=i,i=g),(k=lt(n,i,c))===0||!isFinite(k))return[];if(k>0)for(n=Math.ceil(n/k),i=Math.floor(i/k),v=new Array(g=Math.ceil(i-n+1));++x<g;)v[x]=(n+x)*k;else for(n=Math.floor(n*k),i=Math.ceil(i*k),v=new Array(g=Math.ceil(n-i+1));++x<g;)v[x]=(n-x)/k;return u&&v.reverse(),v}function lt(n,i,c){var u=(i-n)/Math.max(0,c),g=Math.floor(Math.log(u)/Math.LN10),v=u/Math.pow(10,g);return g>=0?(v>=K?10:v>=dt?5:v>=Ot?2:1)*Math.pow(10,g):-Math.pow(10,-g)/(v>=K?10:v>=dt?5:v>=Ot?2:1)}function It(n,i,c){var u=Math.abs(i-n)/Math.max(0,c),g=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),v=u/g;return v>=K?g*=10:v>=dt?g*=5:v>=Ot&&(g*=2),i<n?-g:g}function Ft(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function ue(){var n=ft,i=J,c=Ft;function u(g){var v,k,x=g.length,C=new Array(x);for(v=0;v<x;++v)C[v]=n(g[v],v,g);var D=i(C),I=D[0],Y=D[1],B=c(C,I,Y);Array.isArray(B)||(B=It(I,Y,B),B=et(Math.ceil(I/B)*B,Y,B));for(var z=B.length;B[0]<=I;)B.shift(),--z;for(;B[z-1]>Y;)B.pop(),--z;var $,Z=new Array(z+1);for(v=0;v<=z;++v)($=Z[v]=[]).x0=v>0?B[v-1]:I,$.x1=v<z?B[v]:Y;for(v=0;v<x;++v)I<=(k=C[v])&&k<=Y&&Z[A(B,k,0,z)].push(g[v]);return Z}return u.value=function(g){return arguments.length?(n=typeof g=="function"?g:gt(g),u):n},u.domain=function(g){return arguments.length?(i=typeof g=="function"?g:gt([g[0],g[1]]),u):i},u.thresholds=function(g){return arguments.length?(c=typeof g=="function"?g:Array.isArray(g)?gt(tt.call(g)):gt(g),u):c},u}function ye(n,i,c){if(c==null&&(c=H),u=n.length){if((i=+i)<=0||u<2)return+c(n[0],0,n);if(i>=1)return+c(n[u-1],u-1,n);var u,g=(u-1)*i,v=Math.floor(g),k=+c(n[v],v,n);return k+(+c(n[v+1],v+1,n)-k)*(g-v)}}function de(n,i,c){return n=kt.call(n,H).sort(l),Math.ceil((c-i)/(2*(ye(n,.75)-ye(n,.25))*Math.pow(n.length,-1/3)))}function le(n,i,c){return Math.ceil((c-i)/(3.5*X(n)*Math.pow(n.length,-1/3)))}function Nt(n,i){var c,u,g=n.length,v=-1;if(i==null){for(;++v<g;)if((c=n[v])!=null&&c>=c)for(u=c;++v<g;)(c=n[v])!=null&&c>u&&(u=c)}else for(;++v<g;)if((c=i(n[v],v,n))!=null&&c>=c)for(u=c;++v<g;)(c=i(n[v],v,n))!=null&&c>u&&(u=c);return u}function jt(n,i){var c,u=n.length,g=u,v=-1,k=0;if(i==null)for(;++v<u;)isNaN(c=H(n[v]))?--g:k+=c;else for(;++v<u;)isNaN(c=H(i(n[v],v,n)))?--g:k+=c;if(g)return k/g}function Kt(n,i){var c,u=n.length,g=-1,v=[];if(i==null)for(;++g<u;)isNaN(c=H(n[g]))||v.push(c);else for(;++g<u;)isNaN(c=H(i(n[g],g,n)))||v.push(c);return ye(v.sort(l),.5)}function pe(n){for(var i,c,u,g=n.length,v=-1,k=0;++v<g;)k+=n[v].length;for(c=new Array(k);--g>=0;)for(i=(u=n[g]).length;--i>=0;)c[--k]=u[i];return c}function ge(n,i){var c,u,g=n.length,v=-1;if(i==null){for(;++v<g;)if((c=n[v])!=null&&c>=c)for(u=c;++v<g;)(c=n[v])!=null&&u>c&&(u=c)}else for(;++v<g;)if((c=i(n[v],v,n))!=null&&c>=c)for(u=c;++v<g;)(c=i(n[v],v,n))!=null&&u>c&&(u=c);return u}function Pt(n,i){for(var c=i.length,u=new Array(c);c--;)u[c]=n[i[c]];return u}function ze(n,i){if(c=n.length){var c,u,g=0,v=0,k=n[v];for(i==null&&(i=l);++g<c;)(i(u=n[g],k)<0||i(k,k)!==0)&&(k=u,v=g);return i(k,k)===0?v:void 0}}function Qt(n,i,c){for(var u,g,v=(c==null?n.length:c)-(i=i==null?0:+i);v;)g=Math.random()*v--|0,u=n[v+i],n[v+i]=n[g+i],n[g+i]=u;return n}function zt(n,i){var c,u=n.length,g=-1,v=0;if(i==null)for(;++g<u;)(c=+n[g])&&(v+=c);else for(;++g<u;)(c=+i(n[g],g,n))&&(v+=c);return v}function Zt(n){if(!(g=n.length))return[];for(var i=-1,c=ge(n,rt),u=new Array(c);++i<c;)for(var g,v=-1,k=u[i]=new Array(g);++v<g;)k[v]=n[v][i];return u}function rt(n){return n.length}function ae(){return Zt(arguments)}var Ct=Array.prototype.slice;function Mt(n){return n}var re=1e-6;function Dt(n){return"translate("+(n+.5)+",0)"}function ne(n){return"translate(0,"+(n+.5)+")"}function ke(n){return function(i){return+n(i)}}function me(n){var i=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(i=Math.round(i)),function(c){return+n(c)+i}}function pn(){return!this.__axis}function Pe(n,i){var c=[],u=null,g=null,v=6,k=6,x=3,C=n===1||n===4?-1:1,D=n===4||n===2?"x":"y",I=n===1||n===3?Dt:ne;function Y(B){var z=u==null?i.ticks?i.ticks.apply(i,c):i.domain():u,$=g==null?i.tickFormat?i.tickFormat.apply(i,c):Mt:g,Z=Math.max(v,0)+x,Q=i.range(),G=+Q[0]+.5,it=+Q[Q.length-1]+.5,nt=(i.bandwidth?me:ke)(i.copy()),ut=B.selection?B.selection():B,Rt=ut.selectAll(".domain").data([null]),Ht=ut.selectAll(".tick").data(z,i).order(),Xt=Ht.exit(),ve=Ht.enter().append("g").attr("class","tick"),Yt=Ht.select("line"),oe=Ht.select("text");Rt=Rt.merge(Rt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Ht=Ht.merge(ve),Yt=Yt.merge(ve.append("line").attr("stroke","currentColor").attr(D+"2",C*v)),oe=oe.merge(ve.append("text").attr("fill","currentColor").attr(D,C*Z).attr("dy",n===1?"0em":n===3?"0.71em":"0.32em")),B!==ut&&(Rt=Rt.transition(B),Ht=Ht.transition(B),Yt=Yt.transition(B),oe=oe.transition(B),Xt=Xt.transition(B).attr("opacity",re).attr("transform",function(ct){return isFinite(ct=nt(ct))?I(ct):this.getAttribute("transform")}),ve.attr("opacity",re).attr("transform",function(ct){var wt=this.parentNode.__axis;return I(wt&&isFinite(wt=wt(ct))?wt:nt(ct))})),Xt.remove(),Rt.attr("d",n===4||n==2?k?"M"+C*k+","+G+"H0.5V"+it+"H"+C*k:"M0.5,"+G+"V"+it:k?"M"+G+","+C*k+"V0.5H"+it+"V"+C*k:"M"+G+",0.5H"+it),Ht.attr("opacity",1).attr("transform",function(ct){return I(nt(ct))}),Yt.attr(D+"2",C*v),oe.attr(D,C*Z).text($),ut.filter(pn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===2?"start":n===4?"end":"middle"),ut.each(function(){this.__axis=nt})}return Y.scale=function(B){return arguments.length?(i=B,Y):i},Y.ticks=function(){return c=Ct.call(arguments),Y},Y.tickArguments=function(B){return arguments.length?(c=B==null?[]:Ct.call(B),Y):c.slice()},Y.tickValues=function(B){return arguments.length?(u=B==null?null:Ct.call(B),Y):u&&u.slice()},Y.tickFormat=function(B){return arguments.length?(g=B,Y):g},Y.tickSize=function(B){return arguments.length?(v=k=+B,Y):v},Y.tickSizeInner=function(B){return arguments.length?(v=+B,Y):v},Y.tickSizeOuter=function(B){return arguments.length?(k=+B,Y):k},Y.tickPadding=function(B){return arguments.length?(x=+B,Y):x},Y}function Qe(n){return Pe(1,n)}function Be(n){return Pe(2,n)}function Ee(n){return Pe(3,n)}function tn(n){return Pe(4,n)}var je={value:function(){}};function Je(){for(var n,i=0,c=arguments.length,u={};i<c;++i){if(!(n=arguments[i]+"")||n in u||/[\s.]/.test(n))throw new Error("illegal type: "+n);u[n]=[]}return new Ke(u)}function Ke(n){this._=n}function On(n,i){return n.trim().split(/^|\s+/).map(function(c){var u="",g=c.indexOf(".");if(g>=0&&(u=c.slice(g+1),c=c.slice(0,g)),c&&!i.hasOwnProperty(c))throw new Error("unknown type: "+c);return{type:c,name:u}})}function Sn(n,i){for(var c,u=0,g=n.length;u<g;++u)if((c=n[u]).name===i)return c.value}function Te(n,i,c){for(var u=0,g=n.length;u<g;++u)if(n[u].name===i){n[u]=je,n=n.slice(0,u).concat(n.slice(u+1));break}return c!=null&&n.push({name:i,value:c}),n}Ke.prototype=Je.prototype={constructor:Ke,on:function(n,i){var c,u=this._,g=On(n+"",u),v=-1,k=g.length;if(!(arguments.length<2)){if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++v<k;)if(c=(n=g[v]).type)u[c]=Te(u[c],n.name,i);else if(i==null)for(c in u)u[c]=Te(u[c],n.name,null);return this}for(;++v<k;)if((c=(n=g[v]).type)&&(c=Sn(u[c],n.name)))return c},copy:function(){var n={},i=this._;for(var c in i)n[c]=i[c].slice();return new Ke(n)},call:function(n,i){if((c=arguments.length-2)>0)for(var c,u,g=new Array(c),v=0;v<c;++v)g[v]=arguments[v+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(v=0,c=(u=this._[n]).length;v<c;++v)u[v].value.apply(i,g)},apply:function(n,i,c){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var u=this._[n],g=0,v=u.length;g<v;++g)u[g].value.apply(i,c)}};const Ge=Je;function _r(){}function Ur(n){return n==null?_r:function(){return this.querySelector(n)}}function gn(){return[]}function un(n){return n==null?gn:function(){return this.querySelectorAll(n)}}function an(n){return function(){return this.matches(n)}}function xn(n){return new Array(n.length)}function Ze(n,i){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=i}function Tn(n,i,c,u,g,v){for(var k,x=0,C=i.length,D=v.length;x<D;++x)(k=i[x])?(k.__data__=v[x],u[x]=k):c[x]=new Ze(n,v[x]);for(;x<C;++x)(k=i[x])&&(g[x]=k)}function Cn(n,i,c,u,g,v,k){var x,C,D,I={},Y=i.length,B=v.length,z=new Array(Y);for(x=0;x<Y;++x)(C=i[x])&&(z[x]=D="$"+k.call(C,C.__data__,x,i),D in I?g[x]=C:I[D]=C);for(x=0;x<B;++x)(C=I[D="$"+k.call(n,v[x],x,v)])?(u[x]=C,C.__data__=v[x],I[D]=null):c[x]=new Ze(n,v[x]);for(x=0;x<Y;++x)(C=i[x])&&I[z[x]]===C&&(g[x]=C)}function Zn(n,i){return n<i?-1:n>i?1:n>=i?0:NaN}Ze.prototype={constructor:Ze,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,i){return this._parent.insertBefore(n,i)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Xr="http://www.w3.org/1999/xhtml";const Wn={svg:"http://www.w3.org/2000/svg",xhtml:Xr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Un(n){var i=n+="",c=i.indexOf(":");return c>=0&&(i=n.slice(0,c))!=="xmlns"&&(n=n.slice(c+1)),Wn.hasOwnProperty(i)?{space:Wn[i],local:n}:n}function Ln(n){return function(){this.removeAttribute(n)}}function qn(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Qn(n,i){return function(){this.setAttribute(n,i)}}function er(n,i){return function(){this.setAttributeNS(n.space,n.local,i)}}function ar(n,i){return function(){var c=i.apply(this,arguments);c==null?this.removeAttribute(n):this.setAttribute(n,c)}}function Bn(n,i){return function(){var c=i.apply(this,arguments);c==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,c)}}function Hn(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function In(n){return function(){this.style.removeProperty(n)}}function _n(n,i,c){return function(){this.style.setProperty(n,i,c)}}function so(n,i,c){return function(){var u=i.apply(this,arguments);u==null?this.style.removeProperty(n):this.style.setProperty(n,u,c)}}function hr(n,i){return n.style.getPropertyValue(i)||Hn(n).getComputedStyle(n,null).getPropertyValue(i)}function Ai(n){return function(){delete this[n]}}function Rn(n,i){return function(){this[n]=i}}function ko(n,i){return function(){var c=i.apply(this,arguments);c==null?delete this[n]:this[n]=c}}function To(n){return n.trim().split(/^|\s+/)}function Jr(n){return n.classList||new ri(n)}function ri(n){this._node=n,this._names=To(n.getAttribute("class")||"")}function Rr(n,i){for(var c=Jr(n),u=-1,g=i.length;++u<g;)c.add(i[u])}function zr(n,i){for(var c=Jr(n),u=-1,g=i.length;++u<g;)c.remove(i[u])}function Zr(n){return function(){Rr(this,n)}}function Kr(n){return function(){zr(this,n)}}function Ar(n,i){return function(){(i.apply(this,arguments)?Rr:zr)(this,n)}}function ti(){this.textContent=""}function qr(n){return function(){this.textContent=n}}function pi(n){return function(){var i=n.apply(this,arguments);this.textContent=i==null?"":i}}function gi(){this.innerHTML=""}function yr(n){return function(){this.innerHTML=n}}function Di(n){return function(){var i=n.apply(this,arguments);this.innerHTML=i==null?"":i}}function Vr(){this.nextSibling&&this.parentNode.appendChild(this)}function Ui(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Wa(n){return function(){var i=this.ownerDocument,c=this.namespaceURI;return c===Xr&&i.documentElement.namespaceURI===Xr?i.createElement(n):i.createElementNS(c,n)}}function Aa(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function qe(n){var i=Un(n);return(i.local?Aa:Wa)(i)}function or(){return null}function Dn(){var n=this.parentNode;n&&n.removeChild(this)}function Ie(){var n=this.cloneNode(!1),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}function br(){var n=this.cloneNode(!0),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}ri.prototype={add:function(n){this._names.indexOf(n)<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var i=this._names.indexOf(n);i>=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Bt={},De=null;function Vt(n,i,c){return n=Fr(n,i,c),function(u){var g=u.relatedTarget;g&&(g===this||8&g.compareDocumentPosition(this))||n.call(this,u)}}function Fr(n,i,c){return function(u){var g=De;De=u;try{n.call(this,this.__data__,i,c)}finally{De=g}}}function Ss(n){return n.trim().split(/^|\s+/).map(function(i){var c="",u=i.indexOf(".");return u>=0&&(c=i.slice(u+1),i=i.slice(0,u)),{type:i,name:c}})}function Zo(n){return function(){var i=this.__on;if(i){for(var c,u=0,g=-1,v=i.length;u<v;++u)c=i[u],n.type&&c.type!==n.type||c.name!==n.name?i[++g]=c:this.removeEventListener(c.type,c.listener,c.capture);++g?i.length=g:delete this.__on}}}function Ha(n,i,c){var u=Bt.hasOwnProperty(n.type)?Vt:Fr;return function(g,v,k){var x,C=this.__on,D=u(i,v,k);if(C){for(var I=0,Y=C.length;I<Y;++I)if((x=C[I]).type===n.type&&x.name===n.name)return this.removeEventListener(x.type,x.listener,x.capture),this.addEventListener(x.type,x.listener=D,x.capture=c),void(x.value=i)}this.addEventListener(n.type,D,c),x={type:n.type,name:n.name,value:i,listener:D,capture:c},C?C.push(x):this.__on=[x]}}function zi(n,i,c,u){var g=De;n.sourceEvent=De,De=n;try{return i.apply(c,u)}finally{De=g}}function Cs(n,i,c){var u=Hn(n),g=u.CustomEvent;typeof g=="function"?g=new g(i,c):(g=u.document.createEvent("Event"),c?(g.initEvent(i,c.bubbles,c.cancelable),g.detail=c.detail):g.initEvent(i,!1,!1)),n.dispatchEvent(g)}function Pr(n,i){return function(){return Cs(this,n,i)}}function ha(n,i){return function(){return Cs(this,n,i.apply(this,arguments))}}typeof document!="undefined"&&("onmouseenter"in document.documentElement||(Bt={mouseenter:"mouseover",mouseleave:"mouseout"}));var $a=[null];function Mn(n,i){this._groups=n,this._parents=i}function co(){return new Mn([[document.documentElement]],$a)}Mn.prototype=co.prototype={constructor:Mn,select:function(n){typeof n!="function"&&(n=Ur(n));for(var i=this._groups,c=i.length,u=new Array(c),g=0;g<c;++g)for(var v,k,x=i[g],C=x.length,D=u[g]=new Array(C),I=0;I<C;++I)(v=x[I])&&(k=n.call(v,v.__data__,I,x))&&("__data__"in v&&(k.__data__=v.__data__),D[I]=k);return new Mn(u,this._parents)},selectAll:function(n){typeof n!="function"&&(n=un(n));for(var i=this._groups,c=i.length,u=[],g=[],v=0;v<c;++v)for(var k,x=i[v],C=x.length,D=0;D<C;++D)(k=x[D])&&(u.push(n.call(k,k.__data__,D,x)),g.push(k));return new Mn(u,g)},filter:function(n){typeof n!="function"&&(n=an(n));for(var i=this._groups,c=i.length,u=new Array(c),g=0;g<c;++g)for(var v,k=i[g],x=k.length,C=u[g]=[],D=0;D<x;++D)(v=k[D])&&n.call(v,v.__data__,D,k)&&C.push(v);return new Mn(u,this._parents)},data:function(n,i){if(!n)return $=new Array(this.size()),I=-1,this.each(function(Ht){$[++I]=Ht}),$;var c,u=i?Cn:Tn,g=this._parents,v=this._groups;typeof n!="function"&&(c=n,n=function(){return c});for(var k=v.length,x=new Array(k),C=new Array(k),D=new Array(k),I=0;I<k;++I){var Y=g[I],B=v[I],z=B.length,$=n.call(Y,Y&&Y.__data__,I,g),Z=$.length,Q=C[I]=new Array(Z),G=x[I]=new Array(Z);u(Y,B,Q,G,D[I]=new Array(z),$,i);for(var it,nt,ut=0,Rt=0;ut<Z;++ut)if(it=Q[ut]){for(ut>=Rt&&(Rt=ut+1);!(nt=G[Rt])&&++Rt<Z;);it._next=nt||null}}return(x=new Mn(x,g))._enter=C,x._exit=D,x},enter:function(){return new Mn(this._enter||this._groups.map(xn),this._parents)},exit:function(){return new Mn(this._exit||this._groups.map(xn),this._parents)},join:function(n,i,c){var u=this.enter(),g=this,v=this.exit();return u=typeof n=="function"?n(u):u.append(n+""),i!=null&&(g=i(g)),c==null?v.remove():c(v),u&&g?u.merge(g).order():g},merge:function(n){for(var i=this._groups,c=n._groups,u=i.length,g=c.length,v=Math.min(u,g),k=new Array(u),x=0;x<v;++x)for(var C,D=i[x],I=c[x],Y=D.length,B=k[x]=new Array(Y),z=0;z<Y;++z)(C=D[z]||I[z])&&(B[z]=C);for(;x<u;++x)k[x]=i[x];return new Mn(k,this._parents)},order:function(){for(var n=this._groups,i=-1,c=n.length;++i<c;)for(var u,g=n[i],v=g.length-1,k=g[v];--v>=0;)(u=g[v])&&(k&&4^u.compareDocumentPosition(k)&&k.parentNode.insertBefore(u,k),k=u);return this},sort:function(n){function i(Y,B){return Y&&B?n(Y.__data__,B.__data__):!Y-!B}n||(n=Zn);for(var c=this._groups,u=c.length,g=new Array(u),v=0;v<u;++v){for(var k,x=c[v],C=x.length,D=g[v]=new Array(C),I=0;I<C;++I)(k=x[I])&&(D[I]=k);D.sort(i)}return new Mn(g,this._parents).order()},call:function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function(){var n=new Array(this.size()),i=-1;return this.each(function(){n[++i]=this}),n},node:function(){for(var n=this._groups,i=0,c=n.length;i<c;++i)for(var u=n[i],g=0,v=u.length;g<v;++g){var k=u[g];if(k)return k}return null},size:function(){var n=0;return this.each(function(){++n}),n},empty:function(){return!this.node()},each:function(n){for(var i=this._groups,c=0,u=i.length;c<u;++c)for(var g,v=i[c],k=0,x=v.length;k<x;++k)(g=v[k])&&n.call(g,g.__data__,k,v);return this},attr:function(n,i){var c=Un(n);if(arguments.length<2){var u=this.node();return c.local?u.getAttributeNS(c.space,c.local):u.getAttribute(c)}return this.each((i==null?c.local?qn:Ln:typeof i=="function"?c.local?Bn:ar:c.local?er:Qn)(c,i))},style:function(n,i,c){return arguments.length>1?this.each((i==null?In:typeof i=="function"?so:_n)(n,i,c==null?"":c)):hr(this.node(),n)},property:function(n,i){return arguments.length>1?this.each((i==null?Ai:typeof i=="function"?ko:Rn)(n,i)):this.node()[n]},classed:function(n,i){var c=To(n+"");if(arguments.length<2){for(var u=Jr(this.node()),g=-1,v=c.length;++g<v;)if(!u.contains(c[g]))return!1;return!0}return this.each((typeof i=="function"?Ar:i?Zr:Kr)(c,i))},text:function(n){return arguments.length?this.each(n==null?ti:(typeof n=="function"?pi:qr)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(n==null?gi:(typeof n=="function"?Di:yr)(n)):this.node().innerHTML},raise:function(){return this.each(Vr)},lower:function(){return this.each(Ui)},append:function(n){var i=typeof n=="function"?n:qe(n);return this.select(function(){return this.appendChild(i.apply(this,arguments))})},insert:function(n,i){var c=typeof n=="function"?n:qe(n),u=i==null?or:typeof i=="function"?i:Ur(i);return this.select(function(){return this.insertBefore(c.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(Dn)},clone:function(n){return this.select(n?br:Ie)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,i,c){var u,g,v=Ss(n+""),k=v.length;if(!(arguments.length<2)){for(x=i?Ha:Zo,c==null&&(c=!1),u=0;u<k;++u)this.each(x(v[u],i,c));return this}var x=this.node().__on;if(x){for(var C,D=0,I=x.length;D<I;++D)for(u=0,C=x[D];u<k;++u)if((g=v[u]).type===C.type&&g.name===C.name)return C.value}},dispatch:function(n,i){return this.each((typeof i=="function"?ha:Pr)(n,i))}};const qa=co;function Yn(n){return typeof n=="string"?new Mn([[document.querySelector(n)]],[document.documentElement]):new Mn([[n]],$a)}function Ti(){De.stopImmediatePropagation()}function Qr(){De.preventDefault(),De.stopImmediatePropagation()}function Dr(n){var i=n.document.documentElement,c=Yn(n).on("dragstart.drag",Qr,!0);"onselectstart"in i?c.on("selectstart.drag",Qr,!0):(i.__noselect=i.style.MozUserSelect,i.style.MozUserSelect="none")}function Qi(n,i){var c=n.document.documentElement,u=Yn(n).on("dragstart.drag",null);i&&(u.on("click.drag",Qr,!0),setTimeout(function(){u.on("click.drag",null)},0)),"onselectstart"in c?u.on("selectstart.drag",null):(c.style.MozUserSelect=c.__noselect,delete c.__noselect)}function Nr(n,i,c){n.prototype=i.prototype=c,c.constructor=n}function Wr(n,i){var c=Object.create(n.prototype);for(var u in i)c[u]=i[u];return c}function Wi(){}var Ni=.7,Ei=1/Ni,Da="\\s*([+-]?\\d+)\\s*",Wt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",He="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ye=/^#([0-9a-f]{3,8})$/,sr=new RegExp("^rgb\\("+[Da,Da,Da]+"\\)$"),Or=new RegExp("^rgb\\("+[He,He,He]+"\\)$"),ei=new RegExp("^rgba\\("+[Da,Da,Da,Wt]+"\\)$"),ii=new RegExp("^rgba\\("+[He,He,He,Wt]+"\\)$"),Eo=new RegExp("^hsl\\("+[Wt,He,He]+"\\)$"),ua=new RegExp("^hsla\\("+[Wt,He,He,Wt]+"\\)$"),So={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Oi(){return this.rgb().formatHex()}function Qc(){return this.rgb().formatRgb()}function uo(n){var i,c;return n=(n+"").trim().toLowerCase(),(i=Ye.exec(n))?(c=i[1].length,i=parseInt(i[1],16),c===6?Jc(i):c===3?new ni(i>>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):c===8?lo(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):c===4?lo(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|240&i,((15&i)<<4|15&i)/255):null):(i=sr.exec(n))?new ni(i[1],i[2],i[3],1):(i=Or.exec(n))?new ni(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=ei.exec(n))?lo(i[1],i[2],i[3],i[4]):(i=ii.exec(n))?lo(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=Eo.exec(n))?Va(i[1],i[2]/100,i[3]/100,1):(i=ua.exec(n))?Va(i[1],i[2]/100,i[3]/100,i[4]):So.hasOwnProperty(n)?Jc(So[n]):n==="transparent"?new ni(NaN,NaN,NaN,0):null}function Jc(n){return new ni(n>>16&255,n>>8&255,255&n,1)}function lo(n,i,c,u){return u<=0&&(n=i=c=NaN),new ni(n,i,c,u)}function Kc(n){return n instanceof Wi||(n=uo(n)),n?new ni((n=n.rgb()).r,n.g,n.b,n.opacity):new ni}function Hi(n,i,c,u){return arguments.length===1?Kc(n):new ni(n,i,c,u==null?1:u)}function ni(n,i,c,u){this.r=+n,this.g=+i,this.b=+c,this.opacity=+u}function Xu(){return"#"+Qu(this.r)+Qu(this.g)+Qu(this.b)}function Zu(){var n=this.opacity;return((n=isNaN(n)?1:Math.max(0,Math.min(1,n)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(n===1?")":", "+n+")")}function Qu(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Va(n,i,c,u){return u<=0?n=i=c=NaN:c<=0||c>=1?n=i=NaN:i<=0&&(n=NaN),new Ga(n,i,c,u)}function Ju(n){if(n instanceof Ga)return new Ga(n.h,n.s,n.l,n.opacity);if(n instanceof Wi||(n=uo(n)),!n)return new Ga;if(n instanceof Ga)return n;var i=(n=n.rgb()).r/255,c=n.g/255,u=n.b/255,g=Math.min(i,c,u),v=Math.max(i,c,u),k=NaN,x=v-g,C=(v+g)/2;return x?(k=i===v?(c-u)/x+6*(c<u):c===v?(u-i)/x+2:(i-c)/x+4,x/=C<.5?v+g:2-v-g,k*=60):x=C>0&&C<1?0:k,new Ga(k,x,C,n.opacity)}function Ku(n,i,c,u){return arguments.length===1?Ju(n):new Ga(n,i,c,u==null?1:u)}function Ga(n,i,c,u){this.h=+n,this.s=+i,this.l=+c,this.opacity=+u}function Le(n,i,c){return 255*(n<60?i+(c-i)*n/60:n<180?c:n<240?i+(c-i)*(240-n)/60:i)}function vh(n,i,c,u,g){var v=n*n,k=v*n;return((1-3*n+3*v-k)*i+(4-6*v+3*k)*c+(1+3*n+3*v-3*k)*u+k*g)/6}function Br(n){var i=n.length-1;return function(c){var u=c<=0?c=0:c>=1?(c=1,i-1):Math.floor(c*i),g=n[u],v=n[u+1],k=u>0?n[u-1]:2*g-v,x=u<i-1?n[u+2]:2*v-g;return vh((c-u/i)*i,k,g,v,x)}}function tu(n){var i=n.length;return function(c){var u=Math.floor(((c%=1)<0?++c:c)*i),g=n[(u+i-1)%i],v=n[u%i],k=n[(u+1)%i],x=n[(u+2)%i];return vh((c-u/i)*i,g,v,k,x)}}function eu(n){return function(){return n}}function tl(n,i){return function(c){return n+c*i}}function Na(n,i){var c=i-n;return c?tl(n,c>180||c<-180?c-360*Math.round(c/360):c):eu(isNaN(n)?i:n)}function yi(n,i){var c=i-n;return c?tl(n,c):eu(isNaN(n)?i:n)}Nr(Wi,uo,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Oi,formatHex:Oi,formatHsl:function(){return Ju(this).formatHsl()},formatRgb:Qc,toString:Qc}),Nr(ni,Hi,Wr(Wi,{brighter:function(n){return n=n==null?Ei:Math.pow(Ei,n),new ni(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?Ni:Math.pow(Ni,n),new ni(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xu,formatHex:Xu,formatRgb:Zu,toString:Zu})),Nr(Ga,Ku,Wr(Wi,{brighter:function(n){return n=n==null?Ei:Math.pow(Ei,n),new Ga(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Ni:Math.pow(Ni,n),new Ga(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),i=isNaN(n)||isNaN(this.s)?0:this.s,c=this.l,u=c+(c<.5?c:1-c)*i,g=2*c-u;return new ni(Le(n>=240?n-240:n+120,g,u),Le(n,g,u),Le(n<120?n+240:n-120,g,u),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return((n=isNaN(n)?1:Math.max(0,Math.min(1,n)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(n===1?")":", "+n+")")}}));const sc=function n(i){var c=function(g){return(g=+g)==1?yi:function(v,k){return k-v?function(x,C,D){return x=Math.pow(x,D),C=Math.pow(C,D)-x,D=1/D,function(I){return Math.pow(x+I*C,D)}}(v,k,g):eu(isNaN(v)?k:v)}}(i);function u(g,v){var k=c((g=Hi(g)).r,(v=Hi(v)).r),x=c(g.g,v.g),C=c(g.b,v.b),D=yi(g.opacity,v.opacity);return function(I){return g.r=k(I),g.g=x(I),g.b=C(I),g.opacity=D(I),g+""}}return u.gamma=n,u}(1);function _h(n){return function(i){var c,u,g=i.length,v=new Array(g),k=new Array(g),x=new Array(g);for(c=0;c<g;++c)u=Hi(i[c]),v[c]=u.r||0,k[c]=u.g||0,x[c]=u.b||0;return v=n(v),k=n(k),x=n(x),u.opacity=1,function(C){return u.r=v(C),u.g=k(C),u.b=x(C),u+""}}}var el=_h(Br),Co=_h(tu);function bh(n,i){i||(i=[]);var c,u=n?Math.min(i.length,n.length):0,g=i.slice();return function(v){for(c=0;c<u;++c)g[c]=n[c]*(1-v)+i[c]*v;return g}}function bd(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function hp(n,i){return(bd(i)?bh:xd)(n,i)}function xd(n,i){var c,u=i?i.length:0,g=n?Math.min(u,n.length):0,v=new Array(g),k=new Array(u);for(c=0;c<g;++c)v[c]=nu(n[c],i[c]);for(;c<u;++c)k[c]=i[c];return function(x){for(c=0;c<g;++c)k[c]=v[c](x);return k}}function wd(n,i){var c=new Date;return n=+n,i=+i,function(u){return c.setTime(n*(1-u)+i*u),c}}function fa(n,i){return n=+n,i=+i,function(c){return n*(1-c)+i*c}}function kd(n,i){var c,u={},g={};for(c in n!==null&&typeof n=="object"||(n={}),i!==null&&typeof i=="object"||(i={}),i)c in n?u[c]=nu(n[c],i[c]):g[c]=i[c];return function(v){for(c in u)g[c]=u[c](v);return g}}var xh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wh=new RegExp(xh.source,"g");function Mo(n,i){var c,u,g,v=xh.lastIndex=wh.lastIndex=0,k=-1,x=[],C=[];for(n+="",i+="";(c=xh.exec(n))&&(u=wh.exec(i));)(g=u.index)>v&&(g=i.slice(v,g),x[k]?x[k]+=g:x[++k]=g),(c=c[0])===(u=u[0])?x[k]?x[k]+=u:x[++k]=u:(x[++k]=null,C.push({i:k,x:fa(c,u)})),v=wh.lastIndex;return v<i.length&&(g=i.slice(v),x[k]?x[k]+=g:x[++k]=g),x.length<2?C[0]?function(D){return function(I){return D(I)+""}}(C[0].x):function(D){return function(){return D}}(i):(i=C.length,function(D){for(var I,Y=0;Y<i;++Y)x[(I=C[Y]).i]=I.x(D);return x.join("")})}function nu(n,i){var c,u=typeof i;return i==null||u==="boolean"?eu(i):(u==="number"?fa:u==="string"?(c=uo(i))?(i=c,sc):Mo:i instanceof uo?sc:i instanceof Date?wd:bd(i)?bh:Array.isArray(i)?xd:typeof i.valueOf!="function"&&typeof i.toString!="function"||isNaN(i)?kd:fa)(n,i)}function Xa(){for(var n,i=De;n=i.sourceEvent;)i=n;return i}function ru(n,i){var c=n.ownerSVGElement||n;if(c.createSVGPoint){var u=c.createSVGPoint();return u.x=i.clientX,u.y=i.clientY,[(u=u.matrixTransform(n.getScreenCTM().inverse())).x,u.y]}var g=n.getBoundingClientRect();return[i.clientX-g.left-n.clientLeft,i.clientY-g.top-n.clientTop]}function da(n,i,c){arguments.length<3&&(c=i,i=Xa().changedTouches);for(var u,g=0,v=i?i.length:0;g<v;++g)if((u=i[g]).identifier===c)return ru(n,u);return null}function Ms(n){var i=Xa();return i.changedTouches&&(i=i.changedTouches[0]),ru(n,i)}var nl,Ao,$i=0,ui=0,Za=0,Oa=0,Ji=0,$n=0,M=typeof performance=="object"&&performance.now?performance:Date,R=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function q(){return Ji||(R(at),Ji=M.now()+$n)}function at(){Ji=0}function $t(){this._call=this._time=this._next=null}function he(n,i,c){var u=new $t;return u.restart(n,i,c),u}function be(){q(),++$i;for(var n,i=nl;i;)(n=Ji-i._time)>=0&&i._call.call(null,n),i=i._next;--$i}function Se(){Ji=(Oa=M.now())+$n,$i=ui=0;try{be()}finally{$i=0,function(){for(var n,i,c=nl,u=1/0;c;)c._call?(u>c._time&&(u=c._time),n=c,c=c._next):(i=c._next,c._next=null,c=n?n._next=i:nl=i);Ao=n,Fe(u)}(),Ji=0}}function Me(){var n=M.now(),i=n-Oa;i>1e3&&($n-=i,Oa=n)}function Fe(n){$i||(ui&&(ui=clearTimeout(ui)),n-Ji>24?(n<1/0&&(ui=setTimeout(Se,n-M.now()-$n)),Za&&(Za=clearInterval(Za))):(Za||(Oa=M.now(),Za=setInterval(Me,1e3)),$i=1,R(Se)))}function Ve(n,i,c){var u=new $t;return i=i==null?0:+i,u.restart(function(g){u.stop(),n(g+i)},i,c),u}$t.prototype=he.prototype={constructor:$t,restart:function(n,i,c){if(typeof n!="function")throw new TypeError("callback is not a function");c=(c==null?q():+c)+(i==null?0:+i),this._next||Ao===this||(Ao?Ao._next=this:nl=this,Ao=this),this._call=n,this._time=c,Fe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fe())}};var wn=Ge("start","end","cancel","interrupt"),dn=[];function fr(n,i,c,u,g,v){var k=n.__transition;if(k){if(c in k)return}else n.__transition={};(function(x,C,D){var I,Y=x.__transition;function B(Z){var Q,G,it,nt;if(D.state!==1)return $();for(Q in Y)if((nt=Y[Q]).name===D.name){if(nt.state===3)return Ve(B);nt.state===4?(nt.state=6,nt.timer.stop(),nt.on.call("interrupt",x,x.__data__,nt.index,nt.group),delete Y[Q]):+Q<C&&(nt.state=6,nt.timer.stop(),nt.on.call("cancel",x,x.__data__,nt.index,nt.group),delete Y[Q])}if(Ve(function(){D.state===3&&(D.state=4,D.timer.restart(z,D.delay,D.time),z(Z))}),D.state=2,D.on.call("start",x,x.__data__,D.index,D.group),D.state===2){for(D.state=3,I=new Array(it=D.tween.length),Q=0,G=-1;Q<it;++Q)(nt=D.tween[Q].value.call(x,x.__data__,D.index,D.group))&&(I[++G]=nt);I.length=G+1}}function z(Z){for(var Q=Z<D.duration?D.ease.call(null,Z/D.duration):(D.timer.restart($),D.state=5,1),G=-1,it=I.length;++G<it;)I[G].call(x,Q);D.state===5&&(D.on.call("end",x,x.__data__,D.index,D.group),$())}function $(){for(var Z in D.state=6,D.timer.stop(),delete Y[C],Y)return;delete x.__transition}Y[C]=D,D.timer=he(function(Z){D.state=1,D.timer.restart(B,D.delay,D.time),D.delay<=Z&&B(Z-D.delay)},0,D.time)})(n,c,{name:i,index:u,group:g,on:wn,tween:dn,time:v.time,delay:v.delay,duration:v.duration,ease:v.ease,timer:null,state:0})}function pr(n,i){var c=lr(n,i);if(c.state>0)throw new Error("too late; already scheduled");return c}function Lr(n,i){var c=lr(n,i);if(c.state>3)throw new Error("too late; already running");return c}function lr(n,i){var c=n.__transition;if(!c||!(c=c[i]))throw new Error("transition not found");return c}function pa(n,i){var c,u,g,v=n.__transition,k=!0;if(v){for(g in i=i==null?null:i+"",v)(c=v[g]).name===i?(u=c.state>2&&c.state<5,c.state=6,c.timer.stop(),c.on.call(u?"interrupt":"cancel",n,n.__data__,c.index,c.group),delete v[g]):k=!1;k&&delete n.__transition}}var As,kh,fp,Th,Do=180/Math.PI,Eh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ym(n,i,c,u,g,v){var k,x,C;return(k=Math.sqrt(n*n+i*i))&&(n/=k,i/=k),(C=n*c+i*u)&&(c-=n*C,u-=i*C),(x=Math.sqrt(c*c+u*u))&&(c/=x,u/=x,C/=x),n*u<i*c&&(n=-n,i=-i,C=-C,k=-k),{translateX:g,translateY:v,rotate:Math.atan2(i,n)*Do,skewX:Math.atan(C)*Do,scaleX:k,scaleY:x}}function mm(n,i,c,u){function g(v){return v.length?v.pop()+" ":""}return function(v,k){var x=[],C=[];return v=n(v),k=n(k),function(D,I,Y,B,z,$){if(D!==Y||I!==B){var Z=z.push("translate(",null,i,null,c);$.push({i:Z-4,x:fa(D,Y)},{i:Z-2,x:fa(I,B)})}else(Y||B)&&z.push("translate("+Y+i+B+c)}(v.translateX,v.translateY,k.translateX,k.translateY,x,C),function(D,I,Y,B){D!==I?(D-I>180?I+=360:I-D>180&&(D+=360),B.push({i:Y.push(g(Y)+"rotate(",null,u)-2,x:fa(D,I)})):I&&Y.push(g(Y)+"rotate("+I+u)}(v.rotate,k.rotate,x,C),function(D,I,Y,B){D!==I?B.push({i:Y.push(g(Y)+"skewX(",null,u)-2,x:fa(D,I)}):I&&Y.push(g(Y)+"skewX("+I+u)}(v.skewX,k.skewX,x,C),function(D,I,Y,B,z,$){if(D!==Y||I!==B){var Z=z.push(g(z)+"scale(",null,",",null,")");$.push({i:Z-4,x:fa(D,Y)},{i:Z-2,x:fa(I,B)})}else Y===1&&B===1||z.push(g(z)+"scale("+Y+","+B+")")}(v.scaleX,v.scaleY,k.scaleX,k.scaleY,x,C),v=k=null,function(D){for(var I,Y=-1,B=C.length;++Y<B;)x[(I=C[Y]).i]=I.x(D);return x.join("")}}}var dp=mm(function(n){return n==="none"?Eh:(As||(As=document.createElement("DIV"),kh=document.documentElement,fp=document.defaultView),As.style.transform=n,n=fp.getComputedStyle(kh.appendChild(As),null).getPropertyValue("transform"),kh.removeChild(As),ym(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),pp=mm(function(n){return n==null?Eh:(Th||(Th=document.createElementNS("http://www.w3.org/2000/svg","g")),Th.setAttribute("transform",n),(n=Th.transform.baseVal.consolidate())?ym((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):Eh)},", ",")",")");function vm(n,i){var c,u;return function(){var g=Lr(this,n),v=g.tween;if(v!==c){for(var k=0,x=(u=c=v).length;k<x;++k)if(u[k].name===i){(u=u.slice()).splice(k,1);break}}g.tween=u}}function gp(n,i,c){var u,g;if(typeof c!="function")throw new Error;return function(){var v=Lr(this,n),k=v.tween;if(k!==u){g=(u=k).slice();for(var x={name:i,value:c},C=0,D=g.length;C<D;++C)if(g[C].name===i){g[C]=x;break}C===D&&g.push(x)}v.tween=g}}function Td(n,i,c){var u=n._id;return n.each(function(){var g=Lr(this,u);(g.value||(g.value={}))[i]=c.apply(this,arguments)}),function(g){return lr(g,u).value[i]}}function yp(n,i){var c;return(typeof i=="number"?fa:i instanceof uo?sc:(c=uo(i))?(i=c,sc):Mo)(n,i)}function Qo(n){return function(){this.removeAttribute(n)}}function mp(n){return function(){this.removeAttributeNS(n.space,n.local)}}function vp(n,i,c){var u,g,v=c+"";return function(){var k=this.getAttribute(n);return k===v?null:k===u?g:g=i(u=k,c)}}function _p(n,i,c){var u,g,v=c+"";return function(){var k=this.getAttributeNS(n.space,n.local);return k===v?null:k===u?g:g=i(u=k,c)}}function bp(n,i,c){var u,g,v;return function(){var k,x,C=c(this);if(C!=null)return(k=this.getAttribute(n))===(x=C+"")?null:k===u&&x===g?v:(g=x,v=i(u=k,C));this.removeAttribute(n)}}function f4(n,i,c){var u,g,v;return function(){var k,x,C=c(this);if(C!=null)return(k=this.getAttributeNS(n.space,n.local))===(x=C+"")?null:k===u&&x===g?v:(g=x,v=i(u=k,C));this.removeAttributeNS(n.space,n.local)}}function xp(n,i){return function(c){this.setAttribute(n,i.call(this,c))}}function Ds(n,i){return function(c){this.setAttributeNS(n.space,n.local,i.call(this,c))}}function _m(n,i){var c,u;function g(){var v=i.apply(this,arguments);return v!==u&&(c=(u=v)&&Ds(n,v)),c}return g._value=i,g}function wp(n,i){var c,u;function g(){var v=i.apply(this,arguments);return v!==u&&(c=(u=v)&&xp(n,v)),c}return g._value=i,g}function bm(n,i){return function(){pr(this,n).delay=+i.apply(this,arguments)}}function Sh(n,i){return i=+i,function(){pr(this,n).delay=i}}function d4(n,i){return function(){Lr(this,n).duration=+i.apply(this,arguments)}}function p4(n,i){return i=+i,function(){Lr(this,n).duration=i}}function kp(n,i){if(typeof i!="function")throw new Error;return function(){Lr(this,n).ease=i}}function Tp(n,i,c){var u,g,v=function(k){return(k+"").trim().split(/^|\s+/).every(function(x){var C=x.indexOf(".");return C>=0&&(x=x.slice(0,C)),!x||x==="start"})}(i)?pr:Lr;return function(){var k=v(this,n),x=k.on;x!==u&&(g=(u=x).copy()).on(i,c),k.on=g}}var Ep=qa.prototype.constructor;function Sp(n){return function(){this.style.removeProperty(n)}}function Cp(n,i,c){return function(u){this.style.setProperty(n,i.call(this,u),c)}}function xm(n,i,c){var u,g;function v(){var k=i.apply(this,arguments);return k!==g&&(u=(g=k)&&Cp(n,k,c)),u}return v._value=i,v}function Mp(n){return function(i){this.textContent=n.call(this,i)}}function g4(n){var i,c;function u(){var g=n.apply(this,arguments);return g!==c&&(i=(c=g)&&Mp(g)),i}return u._value=n,u}var y4=0;function Jo(n,i,c,u){this._groups=n,this._parents=i,this._name=c,this._id=u}function Ed(n){return qa().transition(n)}function Ap(){return++y4}var Ko=qa.prototype;function Sd(n){return n*n*n}function Cd(n){return--n*n*n+1}function cc(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Jo.prototype=Ed.prototype={constructor:Jo,select:function(n){var i=this._name,c=this._id;typeof n!="function"&&(n=Ur(n));for(var u=this._groups,g=u.length,v=new Array(g),k=0;k<g;++k)for(var x,C,D=u[k],I=D.length,Y=v[k]=new Array(I),B=0;B<I;++B)(x=D[B])&&(C=n.call(x,x.__data__,B,D))&&("__data__"in x&&(C.__data__=x.__data__),Y[B]=C,fr(Y[B],i,c,B,Y,lr(x,c)));return new Jo(v,this._parents,i,c)},selectAll:function(n){var i=this._name,c=this._id;typeof n!="function"&&(n=un(n));for(var u=this._groups,g=u.length,v=[],k=[],x=0;x<g;++x)for(var C,D=u[x],I=D.length,Y=0;Y<I;++Y)if(C=D[Y]){for(var B,z=n.call(C,C.__data__,Y,D),$=lr(C,c),Z=0,Q=z.length;Z<Q;++Z)(B=z[Z])&&fr(B,i,c,Z,z,$);v.push(z),k.push(C)}return new Jo(v,k,i,c)},filter:function(n){typeof n!="function"&&(n=an(n));for(var i=this._groups,c=i.length,u=new Array(c),g=0;g<c;++g)for(var v,k=i[g],x=k.length,C=u[g]=[],D=0;D<x;++D)(v=k[D])&&n.call(v,v.__data__,D,k)&&C.push(v);return new Jo(u,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var i=this._groups,c=n._groups,u=i.length,g=c.length,v=Math.min(u,g),k=new Array(u),x=0;x<v;++x)for(var C,D=i[x],I=c[x],Y=D.length,B=k[x]=new Array(Y),z=0;z<Y;++z)(C=D[z]||I[z])&&(B[z]=C);for(;x<u;++x)k[x]=i[x];return new Jo(k,this._parents,this._name,this._id)},selection:function(){return new Ep(this._groups,this._parents)},transition:function(){for(var n=this._name,i=this._id,c=Ap(),u=this._groups,g=u.length,v=0;v<g;++v)for(var k,x=u[v],C=x.length,D=0;D<C;++D)if(k=x[D]){var I=lr(k,i);fr(k,n,c,D,x,{time:I.time+I.delay+I.duration,delay:0,duration:I.duration,ease:I.ease})}return new Jo(u,this._parents,n,c)},call:Ko.call,nodes:Ko.nodes,node:Ko.node,size:Ko.size,empty:Ko.empty,each:Ko.each,on:function(n,i){var c=this._id;return arguments.length<2?lr(this.node(),c).on.on(n):this.each(Tp(c,n,i))},attr:function(n,i){var c=Un(n),u=c==="transform"?pp:yp;return this.attrTween(n,typeof i=="function"?(c.local?f4:bp)(c,u,Td(this,"attr."+n,i)):i==null?(c.local?mp:Qo)(c):(c.local?_p:vp)(c,u,i))},attrTween:function(n,i){var c="attr."+n;if(arguments.length<2)return(c=this.tween(c))&&c._value;if(i==null)return this.tween(c,null);if(typeof i!="function")throw new Error;var u=Un(n);return this.tween(c,(u.local?_m:wp)(u,i))},style:function(n,i,c){var u=(n+="")=="transform"?dp:yp;return i==null?this.styleTween(n,function(g,v){var k,x,C;return function(){var D=hr(this,g),I=(this.style.removeProperty(g),hr(this,g));return D===I?null:D===k&&I===x?C:C=v(k=D,x=I)}}(n,u)).on("end.style."+n,Sp(n)):typeof i=="function"?this.styleTween(n,function(g,v,k){var x,C,D;return function(){var I=hr(this,g),Y=k(this),B=Y+"";return Y==null&&(this.style.removeProperty(g),B=Y=hr(this,g)),I===B?null:I===x&&B===C?D:(C=B,D=v(x=I,Y))}}(n,u,Td(this,"style."+n,i))).each(function(g,v){var k,x,C,D,I="style."+v,Y="end."+I;return function(){var B=Lr(this,g),z=B.on,$=B.value[I]==null?D||(D=Sp(v)):void 0;z===k&&C===$||(x=(k=z).copy()).on(Y,C=$),B.on=x}}(this._id,n)):this.styleTween(n,function(g,v,k){var x,C,D=k+"";return function(){var I=hr(this,g);return I===D?null:I===x?C:C=v(x=I,k)}}(n,u,i),c).on("end.style."+n,null)},styleTween:function(n,i,c){var u="style."+(n+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(i==null)return this.tween(u,null);if(typeof i!="function")throw new Error;return this.tween(u,xm(n,i,c==null?"":c))},text:function(n){return this.tween("text",typeof n=="function"?function(i){return function(){var c=i(this);this.textContent=c==null?"":c}}(Td(this,"text",n)):function(i){return function(){this.textContent=i}}(n==null?"":n+""))},textTween:function(n){var i="text";if(arguments.length<1)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;return this.tween(i,g4(n))},remove:function(){return this.on("end.remove",function(n){return function(){var i=this.parentNode;for(var c in this.__transition)if(+c!==n)return;i&&i.removeChild(this)}}(this._id))},tween:function(n,i){var c=this._id;if(n+="",arguments.length<2){for(var u,g=lr(this.node(),c).tween,v=0,k=g.length;v<k;++v)if((u=g[v]).name===n)return u.value;return null}return this.each((i==null?vm:gp)(c,n,i))},delay:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?bm:Sh)(i,n)):lr(this.node(),i).delay},duration:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?d4:p4)(i,n)):lr(this.node(),i).duration},ease:function(n){var i=this._id;return arguments.length?this.each(kp(i,n)):lr(this.node(),i).ease},end:function(){var n,i,c=this,u=c._id,g=c.size();return new Promise(function(v,k){var x={value:k},C={value:function(){--g==0&&v()}};c.each(function(){var D=Lr(this,u),I=D.on;I!==n&&((i=(n=I).copy())._.cancel.push(x),i._.interrupt.push(x),i._.end.push(C)),D.on=i})})}};var iu={time:null,delay:0,duration:250,ease:cc};function ts(n,i){for(var c;!(c=n.__transition)||!(c=c[i]);)if(!(n=n.parentNode))return iu.time=q(),iu;return c}qa.prototype.interrupt=function(n){return this.each(function(){pa(this,n)})},qa.prototype.transition=function(n){var i,c;n instanceof Jo?(i=n._id,n=n._name):(i=Ap(),(c=iu).time=q(),n=n==null?null:n+"");for(var u=this._groups,g=u.length,v=0;v<g;++v)for(var k,x=u[v],C=x.length,D=0;D<C;++D)(k=x[D])&&fr(k,n,i,D,x,c||ts(k,i));return new Jo(u,this._parents,n,i)};var m4=[null];function v4(n,i){var c,u,g=n.__transition;if(g){for(u in i=i==null?null:i+"",g)if((c=g[u]).state>1&&c.name===i)return new Jo([[n]],m4,i,+u)}return null}function Dp(n){return function(){return n}}function _4(n,i,c){this.target=n,this.type=i,this.selection=c}function wm(){De.stopImmediatePropagation()}function Np(){De.preventDefault(),De.stopImmediatePropagation()}var km={name:"drag"},Md={name:"space"},au={name:"handle"},ou={name:"center"};function rl(n){return[+n[0],+n[1]]}function Ad(n){return[rl(n[0]),rl(n[1])]}function Dd(n){return function(i){return da(i,De.touches,n)}}var Nd={name:"x",handles:["w","e"].map(Ba),input:function(n,i){return n==null?null:[[+n[0],i[0][1]],[+n[1],i[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},il={name:"y",handles:["n","s"].map(Ba),input:function(n,i){return n==null?null:[[i[0][0],+n[0]],[i[1][0],+n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},Qa={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ba),input:function(n){return n==null?null:Ad(n)},output:function(n){return n}},es={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Op={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Od={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Tm={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Em={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ba(n){return{type:n}}function Bp(){return!De.ctrlKey&&!De.button}function Lp(){var n=this.ownerSVGElement||this;return n.hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function Sm(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bd(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function b4(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function x4(n){var i=n.__brush;return i?i.dim.output(i.selection):null}function Ld(){return Ch(Nd)}function w4(){return Ch(il)}function Ip(){return Ch(Qa)}function Ch(n){var i,c=Lp,u=Bp,g=Sm,v=!0,k=Ge("start","brush","end"),x=6;function C(Q){var G=Q.property("__brush",Z).selectAll(".overlay").data([Ba("overlay")]);G.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",es.overlay).merge(G).each(function(){var nt=Bd(this).extent;Yn(this).attr("x",nt[0][0]).attr("y",nt[0][1]).attr("width",nt[1][0]-nt[0][0]).attr("height",nt[1][1]-nt[0][1])}),Q.selectAll(".selection").data([Ba("selection")]).enter().append("rect").attr("class","selection").attr("cursor",es.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var it=Q.selectAll(".handle").data(n.handles,function(nt){return nt.type});it.exit().remove(),it.enter().append("rect").attr("class",function(nt){return"handle handle--"+nt.type}).attr("cursor",function(nt){return es[nt.type]}),Q.each(D).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",B).filter(g).on("touchstart.brush",B).on("touchmove.brush",z).on("touchend.brush touchcancel.brush",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function D(){var Q=Yn(this),G=Bd(this).selection;G?(Q.selectAll(".selection").style("display",null).attr("x",G[0][0]).attr("y",G[0][1]).attr("width",G[1][0]-G[0][0]).attr("height",G[1][1]-G[0][1]),Q.selectAll(".handle").style("display",null).attr("x",function(it){return it.type[it.type.length-1]==="e"?G[1][0]-x/2:G[0][0]-x/2}).attr("y",function(it){return it.type[0]==="s"?G[1][1]-x/2:G[0][1]-x/2}).attr("width",function(it){return it.type==="n"||it.type==="s"?G[1][0]-G[0][0]+x:x}).attr("height",function(it){return it.type==="e"||it.type==="w"?G[1][1]-G[0][1]+x:x})):Q.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function I(Q,G,it){var nt=Q.__brush.emitter;return!nt||it&&nt.clean?new Y(Q,G,it):nt}function Y(Q,G,it){this.that=Q,this.args=G,this.state=Q.__brush,this.active=0,this.clean=it}function B(){if((!i||De.touches)&&u.apply(this,arguments)){var Q,G,it,nt,ut,Rt,Ht,Xt,ve,Yt,oe,ct=this,wt=De.target.__data__.type,ee=(v&&De.metaKey?wt="overlay":wt)==="selection"?km:v&&De.altKey?ou:au,Gt=n===il?null:Tm[wt],ie=n===Nd?null:Em[wt],Ne=Bd(ct),$e=Ne.extent,kn=Ne.selection,Kn=$e[0][0],ur=$e[0][1],nn=$e[1][0],Gn=$e[1][1],An=0,vn=0,Fn=Gt&&ie&&v&&De.shiftKey,Pi=De.touches?Dd(De.changedTouches[0].identifier):Ms,ki=Pi(ct),ws=ki,Wc=I(ct,arguments,!0).beforestart();wt==="overlay"?(kn&&(ve=!0),Ne.selection=kn=[[Q=n===il?Kn:ki[0],it=n===Nd?ur:ki[1]],[ut=n===il?nn:Q,Ht=n===Nd?Gn:it]]):(Q=kn[0][0],it=kn[0][1],ut=kn[1][0],Ht=kn[1][1]),G=Q,nt=it,Rt=ut,Xt=Ht;var dd=Yn(ct).attr("pointer-events","none"),Pu=dd.selectAll(".overlay").attr("cursor",es[wt]);if(De.touches)Wc.moved=tm,Wc.ended=J0;else{var K2=Yn(De.view).on("mousemove.brush",tm,!0).on("mouseup.brush",J0,!0);v&&K2.on("keydown.brush",pd,!0).on("keyup.brush",Nb,!0),Dr(De.view)}wm(),pa(ct),D.call(ct),Wc.start()}function tm(){var bo=Pi(ct);!Fn||Yt||oe||(Math.abs(bo[0]-ws[0])>Math.abs(bo[1]-ws[1])?oe=!0:Yt=!0),ws=bo,ve=!0,Np(),ph()}function ph(){var bo;switch(An=ws[0]-ki[0],vn=ws[1]-ki[1],ee){case Md:case km:Gt&&(An=Math.max(Kn-Q,Math.min(nn-ut,An)),G=Q+An,Rt=ut+An),ie&&(vn=Math.max(ur-it,Math.min(Gn-Ht,vn)),nt=it+vn,Xt=Ht+vn);break;case au:Gt<0?(An=Math.max(Kn-Q,Math.min(nn-Q,An)),G=Q+An,Rt=ut):Gt>0&&(An=Math.max(Kn-ut,Math.min(nn-ut,An)),G=Q,Rt=ut+An),ie<0?(vn=Math.max(ur-it,Math.min(Gn-it,vn)),nt=it+vn,Xt=Ht):ie>0&&(vn=Math.max(ur-Ht,Math.min(Gn-Ht,vn)),nt=it,Xt=Ht+vn);break;case ou:Gt&&(G=Math.max(Kn,Math.min(nn,Q-An*Gt)),Rt=Math.max(Kn,Math.min(nn,ut+An*Gt))),ie&&(nt=Math.max(ur,Math.min(Gn,it-vn*ie)),Xt=Math.max(ur,Math.min(Gn,Ht+vn*ie)))}Rt<G&&(Gt*=-1,bo=Q,Q=ut,ut=bo,bo=G,G=Rt,Rt=bo,wt in Op&&Pu.attr("cursor",es[wt=Op[wt]])),Xt<nt&&(ie*=-1,bo=it,it=Ht,Ht=bo,bo=nt,nt=Xt,Xt=bo,wt in Od&&Pu.attr("cursor",es[wt=Od[wt]])),Ne.selection&&(kn=Ne.selection),Yt&&(G=kn[0][0],Rt=kn[1][0]),oe&&(nt=kn[0][1],Xt=kn[1][1]),kn[0][0]===G&&kn[0][1]===nt&&kn[1][0]===Rt&&kn[1][1]===Xt||(Ne.selection=[[G,nt],[Rt,Xt]],D.call(ct),Wc.brush())}function J0(){if(wm(),De.touches){if(De.touches.length)return;i&&clearTimeout(i),i=setTimeout(function(){i=null},500)}else Qi(De.view,ve),K2.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);dd.attr("pointer-events","all"),Pu.attr("cursor",es.overlay),Ne.selection&&(kn=Ne.selection),b4(kn)&&(Ne.selection=null,D.call(ct)),Wc.end()}function pd(){switch(De.keyCode){case 16:Fn=Gt&&ie;break;case 18:ee===au&&(Gt&&(ut=Rt-An*Gt,Q=G+An*Gt),ie&&(Ht=Xt-vn*ie,it=nt+vn*ie),ee=ou,ph());break;case 32:ee!==au&&ee!==ou||(Gt<0?ut=Rt-An:Gt>0&&(Q=G-An),ie<0?Ht=Xt-vn:ie>0&&(it=nt-vn),ee=Md,Pu.attr("cursor",es.selection),ph());break;default:return}Np()}function Nb(){switch(De.keyCode){case 16:Fn&&(Yt=oe=Fn=!1,ph());break;case 18:ee===ou&&(Gt<0?ut=Rt:Gt>0&&(Q=G),ie<0?Ht=Xt:ie>0&&(it=nt),ee=au,ph());break;case 32:ee===Md&&(De.altKey?(Gt&&(ut=Rt-An*Gt,Q=G+An*Gt),ie&&(Ht=Xt-vn*ie,it=nt+vn*ie),ee=ou):(Gt<0?ut=Rt:Gt>0&&(Q=G),ie<0?Ht=Xt:ie>0&&(it=nt),ee=au),Pu.attr("cursor",es[wt]),ph());break;default:return}Np()}}function z(){I(this,arguments).moved()}function $(){I(this,arguments).ended()}function Z(){var Q=this.__brush||{selection:null};return Q.extent=Ad(c.apply(this,arguments)),Q.dim=n,Q}return C.move=function(Q,G){Q.selection?Q.on("start.brush",function(){I(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){I(this,arguments).end()}).tween("brush",function(){var it=this,nt=it.__brush,ut=I(it,arguments),Rt=nt.selection,Ht=n.input(typeof G=="function"?G.apply(this,arguments):G,nt.extent),Xt=nu(Rt,Ht);function ve(Yt){nt.selection=Yt===1&&Ht===null?null:Xt(Yt),D.call(it),ut.brush()}return Rt!==null&&Ht!==null?ve:ve(1)}):Q.each(function(){var it=this,nt=arguments,ut=it.__brush,Rt=n.input(typeof G=="function"?G.apply(it,nt):G,ut.extent),Ht=I(it,nt).beforestart();pa(it),ut.selection=Rt===null?null:Rt,D.call(it),Ht.start().brush().end()})},C.clear=function(Q){C.move(Q,null)},Y.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return--this.active==0&&(delete this.state.emitter,this.emit("end")),this},emit:function(Q){zi(new _4(C,Q,n.output(this.state.selection)),k.apply,k,[Q,this.that,this.args])}},C.extent=function(Q){return arguments.length?(c=typeof Q=="function"?Q:Dp(Ad(Q)),C):c},C.filter=function(Q){return arguments.length?(u=typeof Q=="function"?Q:Dp(!!Q),C):u},C.touchable=function(Q){return arguments.length?(g=typeof Q=="function"?Q:Dp(!!Q),C):g},C.handleSize=function(Q){return arguments.length?(x=+Q,C):x},C.keyModifiers=function(Q){return arguments.length?(v=!!Q,C):v},C.on=function(){var Q=k.on.apply(k,arguments);return Q===k?C:Q},C}var Cm=Math.cos,Mm=Math.sin,Id=Math.PI,Rd=Id/2,Am=2*Id,Rp=Math.max;function al(n){return function(i,c){return n(i.source.value+i.target.value,c.source.value+c.target.value)}}function Fp(){var n=0,i=null,c=null,u=null;function g(v){var k,x,C,D,I,Y,B=v.length,z=[],$=et(B),Z=[],Q=[],G=Q.groups=new Array(B),it=new Array(B*B);for(k=0,I=-1;++I<B;){for(x=0,Y=-1;++Y<B;)x+=v[I][Y];z.push(x),Z.push(et(B)),k+=x}for(i&&$.sort(function(oe,ct){return i(z[oe],z[ct])}),c&&Z.forEach(function(oe,ct){oe.sort(function(wt,ee){return c(v[ct][wt],v[ct][ee])})}),D=(k=Rp(0,Am-n*B)/k)?n:Am/B,x=0,I=-1;++I<B;){for(C=x,Y=-1;++Y<B;){var nt=$[I],ut=Z[nt][Y],Rt=v[nt][ut],Ht=x,Xt=x+=Rt*k;it[ut*B+nt]={index:nt,subindex:ut,startAngle:Ht,endAngle:Xt,value:Rt}}G[nt]={index:nt,startAngle:C,endAngle:x,value:z[nt]},x+=D}for(I=-1;++I<B;)for(Y=I-1;++Y<B;){var ve=it[Y*B+I],Yt=it[I*B+Y];(ve.value||Yt.value)&&Q.push(ve.value<Yt.value?{source:Yt,target:ve}:{source:ve,target:Yt})}return u?Q.sort(u):Q}return g.padAngle=function(v){return arguments.length?(n=Rp(0,v),g):n},g.sortGroups=function(v){return arguments.length?(i=v,g):i},g.sortSubgroups=function(v){return arguments.length?(c=v,g):c},g.sortChords=function(v){return arguments.length?(v==null?u=null:(u=al(v))._=v,g):u&&u._},g}var k4=Array.prototype.slice;function Pp(n){return function(){return n}}var Fd=Math.PI,Pd=2*Fd,Ns=1e-6,Dm=Pd-Ns;function Yp(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Mh(){return new Yp}Yp.prototype=Mh.prototype={constructor:Yp,moveTo:function(n,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,i){this._+="L"+(this._x1=+n)+","+(this._y1=+i)},quadraticCurveTo:function(n,i,c,u){this._+="Q"+ +n+","+ +i+","+(this._x1=+c)+","+(this._y1=+u)},bezierCurveTo:function(n,i,c,u,g,v){this._+="C"+ +n+","+ +i+","+ +c+","+ +u+","+(this._x1=+g)+","+(this._y1=+v)},arcTo:function(n,i,c,u,g){n=+n,i=+i,c=+c,u=+u,g=+g;var v=this._x1,k=this._y1,x=c-n,C=u-i,D=v-n,I=k-i,Y=D*D+I*I;if(g<0)throw new Error("negative radius: "+g);if(this._x1===null)this._+="M"+(this._x1=n)+","+(this._y1=i);else if(Y>Ns)if(Math.abs(I*x-C*D)>Ns&&g){var B=c-v,z=u-k,$=x*x+C*C,Z=B*B+z*z,Q=Math.sqrt($),G=Math.sqrt(Y),it=g*Math.tan((Fd-Math.acos(($+Y-Z)/(2*Q*G)))/2),nt=it/G,ut=it/Q;Math.abs(nt-1)>Ns&&(this._+="L"+(n+nt*D)+","+(i+nt*I)),this._+="A"+g+","+g+",0,0,"+ +(I*B>D*z)+","+(this._x1=n+ut*x)+","+(this._y1=i+ut*C)}else this._+="L"+(this._x1=n)+","+(this._y1=i)},arc:function(n,i,c,u,g,v){n=+n,i=+i,v=!!v;var k=(c=+c)*Math.cos(u),x=c*Math.sin(u),C=n+k,D=i+x,I=1^v,Y=v?u-g:g-u;if(c<0)throw new Error("negative radius: "+c);this._x1===null?this._+="M"+C+","+D:(Math.abs(this._x1-C)>Ns||Math.abs(this._y1-D)>Ns)&&(this._+="L"+C+","+D),c&&(Y<0&&(Y=Y%Pd+Pd),Y>Dm?this._+="A"+c+","+c+",0,1,"+I+","+(n-k)+","+(i-x)+"A"+c+","+c+",0,1,"+I+","+(this._x1=C)+","+(this._y1=D):Y>Ns&&(this._+="A"+c+","+c+",0,"+ +(Y>=Fd)+","+I+","+(this._x1=n+c*Math.cos(g))+","+(this._y1=i+c*Math.sin(g))))},rect:function(n,i,c,u){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+i)+"h"+ +c+"v"+ +u+"h"+-c+"Z"},toString:function(){return this._}};const Os=Mh;function Yd(n){return n.source}function ol(n){return n.target}function Nm(n){return n.radius}function Om(n){return n.startAngle}function Bm(n){return n.endAngle}function jp(){var n=Yd,i=ol,c=Nm,u=Om,g=Bm,v=null;function k(){var x,C=k4.call(arguments),D=n.apply(this,C),I=i.apply(this,C),Y=+c.apply(this,(C[0]=D,C)),B=u.apply(this,C)-Rd,z=g.apply(this,C)-Rd,$=Y*Cm(B),Z=Y*Mm(B),Q=+c.apply(this,(C[0]=I,C)),G=u.apply(this,C)-Rd,it=g.apply(this,C)-Rd;if(v||(v=x=Os()),v.moveTo($,Z),v.arc(0,0,Y,B,z),B===G&&z===it||(v.quadraticCurveTo(0,0,Q*Cm(G),Q*Mm(G)),v.arc(0,0,Q,G,it)),v.quadraticCurveTo(0,0,$,Z),v.closePath(),x)return v=null,x+""||null}return k.radius=function(x){return arguments.length?(c=typeof x=="function"?x:Pp(+x),k):c},k.startAngle=function(x){return arguments.length?(u=typeof x=="function"?x:Pp(+x),k):u},k.endAngle=function(x){return arguments.length?(g=typeof x=="function"?x:Pp(+x),k):g},k.source=function(x){return arguments.length?(n=x,k):n},k.target=function(x){return arguments.length?(i=x,k):i},k.context=function(x){return arguments.length?(v=x==null?null:x,k):v},k}var Ja="$";function Ah(){}function Up(n,i){var c=new Ah;if(n instanceof Ah)n.each(function(x,C){c.set(C,x)});else if(Array.isArray(n)){var u,g=-1,v=n.length;if(i==null)for(;++g<v;)c.set(g,n[g]);else for(;++g<v;)c.set(i(u=n[g],g,n),u)}else if(n)for(var k in n)c.set(k,n[k]);return c}Ah.prototype=Up.prototype={constructor:Ah,has:function(n){return Ja+n in this},get:function(n){return this[Ja+n]},set:function(n,i){return this[Ja+n]=i,this},remove:function(n){var i=Ja+n;return i in this&&delete this[i]},clear:function(){for(var n in this)n[0]===Ja&&delete this[n]},keys:function(){var n=[];for(var i in this)i[0]===Ja&&n.push(i.slice(1));return n},values:function(){var n=[];for(var i in this)i[0]===Ja&&n.push(this[i]);return n},entries:function(){var n=[];for(var i in this)i[0]===Ja&&n.push({key:i.slice(1),value:this[i]});return n},size:function(){var n=0;for(var i in this)i[0]===Ja&&++n;return n},empty:function(){for(var n in this)if(n[0]===Ja)return!1;return!0},each:function(n){for(var i in this)i[0]===Ja&&n(this[i],i.slice(1),this)}};const Bs=Up;function T4(){var n,i,c,u=[],g=[];function v(x,C,D,I){if(C>=u.length)return n!=null&&x.sort(n),i!=null?i(x):x;for(var Y,B,z,$=-1,Z=x.length,Q=u[C++],G=Bs(),it=D();++$<Z;)(z=G.get(Y=Q(B=x[$])+""))?z.push(B):G.set(Y,[B]);return G.each(function(nt,ut){I(it,ut,v(nt,C,D,I))}),it}function k(x,C){if(++C>u.length)return x;var D,I=g[C-1];return i!=null&&C>=u.length?D=x.entries():(D=[],x.each(function(Y,B){D.push({key:B,values:k(Y,C)})})),I!=null?D.sort(function(Y,B){return I(Y.key,B.key)}):D}return c={object:function(x){return v(x,0,Lm,Im)},map:function(x){return v(x,0,zp,Rm)},entries:function(x){return k(v(x,0,zp,Rm),0)},key:function(x){return u.push(x),c},sortKeys:function(x){return g[u.length-1]=x,c},sortValues:function(x){return n=x,c},rollup:function(x){return i=x,c}}}function Lm(){return{}}function Im(n,i,c){n[i]=c}function zp(){return Bs()}function Rm(n,i,c){n.set(i,c)}function Dh(){}var uc=Bs.prototype;function sl(n,i){var c=new Dh;if(n instanceof Dh)n.each(function(v){c.add(v)});else if(n){var u=-1,g=n.length;if(i==null)for(;++u<g;)c.add(n[u]);else for(;++u<g;)c.add(i(n[u],u,n))}return c}Dh.prototype=sl.prototype={constructor:Dh,has:uc.has,add:function(n){return this[Ja+(n+="")]=n,this},remove:uc.remove,clear:uc.clear,values:uc.keys,size:uc.size,empty:uc.empty,each:uc.each};const lc=sl;function Nh(n){var i=[];for(var c in n)i.push(c);return i}function Wp(n){var i=[];for(var c in n)i.push(n[c]);return i}function Hp(n){var i=[];for(var c in n)i.push({key:c,value:n[c]});return i}var jd=Math.PI/180,Ud=180/Math.PI,zd=.96422,Bi=.82521,Wd=4/29,$p=6/29,Fm=3*$p*$p;function cl(n){if(n instanceof No)return new No(n.l,n.a,n.b,n.opacity);if(n instanceof ns)return Gp(n);n instanceof ni||(n=Kc(n));var i,c,u=Ls(n.r),g=Ls(n.g),v=Ls(n.b),k=Hd((.2225045*u+.7168786*g+.0606169*v)/1);return u===g&&g===v?i=c=k:(i=Hd((.4360747*u+.3850649*g+.1430804*v)/zd),c=Hd((.0139322*u+.0971045*g+.7141733*v)/Bi)),new No(116*k-16,500*(i-k),200*(k-c),n.opacity)}function E4(n,i){return new No(n,0,0,i==null?1:i)}function Oh(n,i,c,u){return arguments.length===1?cl(n):new No(n,i,c,u==null?1:u)}function No(n,i,c,u){this.l=+n,this.a=+i,this.b=+c,this.opacity=+u}function Hd(n){return n>.008856451679035631?Math.pow(n,1/3):n/Fm+Wd}function qp(n){return n>$p?n*n*n:Fm*(n-Wd)}function ul(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Ls(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function $d(n){if(n instanceof ns)return new ns(n.h,n.c,n.l,n.opacity);if(n instanceof No||(n=cl(n)),n.a===0&&n.b===0)return new ns(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var i=Math.atan2(n.b,n.a)*Ud;return new ns(i<0?i+360:i,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Vp(n,i,c,u){return arguments.length===1?$d(n):new ns(c,i,n,u==null?1:u)}function hc(n,i,c,u){return arguments.length===1?$d(n):new ns(n,i,c,u==null?1:u)}function ns(n,i,c,u){this.h=+n,this.c=+i,this.l=+c,this.opacity=+u}function Gp(n){if(isNaN(n.h))return new No(n.l,0,0,n.opacity);var i=n.h*jd;return new No(n.l,Math.cos(i)*n.c,Math.sin(i)*n.c,n.opacity)}Nr(No,Oh,Wr(Wi,{brighter:function(n){return new No(this.l+18*(n==null?1:n),this.a,this.b,this.opacity)},darker:function(n){return new No(this.l-18*(n==null?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,i=isNaN(this.a)?n:n+this.a/500,c=isNaN(this.b)?n:n-this.b/200;return new ni(ul(3.1338561*(i=zd*qp(i))-1.6168667*(n=1*qp(n))-.4906146*(c=Bi*qp(c))),ul(-.9787684*i+1.9161415*n+.033454*c),ul(.0719453*i-.2289914*n+1.4052427*c),this.opacity)}})),Nr(ns,hc,Wr(Wi,{brighter:function(n){return new ns(this.h,this.c,this.l+18*(n==null?1:n),this.opacity)},darker:function(n){return new ns(this.h,this.c,this.l-18*(n==null?1:n),this.opacity)},rgb:function(){return Gp(this).rgb()}}));var Xp=-.14861,Is=1.78277,Zp=-.29227,Bh=-.90649,Oo=1.97294,Pm=Oo*Bh,qd=Oo*Is,ll=Is*Zp-Bh*Xp;function Ym(n){if(n instanceof su)return new su(n.h,n.s,n.l,n.opacity);n instanceof ni||(n=Kc(n));var i=n.r/255,c=n.g/255,u=n.b/255,g=(ll*u+Pm*i-qd*c)/(ll+Pm-qd),v=u-g,k=(Oo*(c-g)-Zp*v)/Bh,x=Math.sqrt(k*k+v*v)/(Oo*g*(1-g)),C=x?Math.atan2(k,v)*Ud-120:NaN;return new su(C<0?C+360:C,x,g,n.opacity)}function ga(n,i,c,u){return arguments.length===1?Ym(n):new su(n,i,c,u==null?1:u)}function su(n,i,c,u){this.h=+n,this.s=+i,this.l=+c,this.opacity=+u}Nr(su,ga,Wr(Wi,{brighter:function(n){return n=n==null?Ei:Math.pow(Ei,n),new su(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Ni:Math.pow(Ni,n),new su(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*jd,i=+this.l,c=isNaN(this.s)?0:this.s*i*(1-i),u=Math.cos(n),g=Math.sin(n);return new ni(255*(i+c*(Xp*u+Is*g)),255*(i+c*(Zp*u+Bh*g)),255*(i+c*(Oo*u)),this.opacity)}}));var jm=Array.prototype.slice;function S4(n,i){return n-i}function rs(n){return function(){return n}}function Qp(n,i){for(var c,u=-1,g=i.length;++u<g;)if(c=Lh(n,i[u]))return c;return 0}function Lh(n,i){for(var c=i[0],u=i[1],g=-1,v=0,k=n.length,x=k-1;v<k;x=v++){var C=n[v],D=C[0],I=C[1],Y=n[x],B=Y[0],z=Y[1];if(Ih(C,Y,i))return 0;I>u!=z>u&&c<(B-D)*(u-I)/(z-I)+D&&(g=-g)}return g}function Ih(n,i,c){var u,g,v,k;return function(x,C,D){return(C[0]-x[0])*(D[1]-x[1])==(D[0]-x[0])*(C[1]-x[1])}(n,i,c)&&(g=n[u=+(n[0]===i[0])],v=c[u],k=i[u],g<=v&&v<=k||k<=v&&v<=g)}function Um(){}var is=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Li(){var n=1,i=1,c=Ft,u=x;function g(C){var D=c(C);if(Array.isArray(D))D=D.slice().sort(S4);else{var I=J(C),Y=I[0],B=I[1];D=It(Y,B,D),D=et(Math.floor(Y/D)*D,Math.floor(B/D)*D,D)}return D.map(function(z){return v(C,z)})}function v(C,D){var I=[],Y=[];return function(B,z,$){var Z,Q,G,it,nt,ut,Rt=new Array,Ht=new Array;for(Z=Q=-1,it=B[0]>=z,is[it<<1].forEach(Xt);++Z<n-1;)G=it,it=B[Z+1]>=z,is[G|it<<1].forEach(Xt);for(is[it<<0].forEach(Xt);++Q<i-1;){for(Z=-1,it=B[Q*n+n]>=z,nt=B[Q*n]>=z,is[it<<1|nt<<2].forEach(Xt);++Z<n-1;)G=it,it=B[Q*n+n+Z+1]>=z,ut=nt,nt=B[Q*n+Z+1]>=z,is[G|it<<1|nt<<2|ut<<3].forEach(Xt);is[it|nt<<3].forEach(Xt)}for(Z=-1,nt=B[Q*n]>=z,is[nt<<2].forEach(Xt);++Z<n-1;)ut=nt,nt=B[Q*n+Z+1]>=z,is[nt<<2|ut<<3].forEach(Xt);function Xt(ve){var Yt,oe,ct=[ve[0][0]+Z,ve[0][1]+Q],wt=[ve[1][0]+Z,ve[1][1]+Q],ee=k(ct),Gt=k(wt);(Yt=Ht[ee])?(oe=Rt[Gt])?(delete Ht[Yt.end],delete Rt[oe.start],Yt===oe?(Yt.ring.push(wt),$(Yt.ring)):Rt[Yt.start]=Ht[oe.end]={start:Yt.start,end:oe.end,ring:Yt.ring.concat(oe.ring)}):(delete Ht[Yt.end],Yt.ring.push(wt),Ht[Yt.end=Gt]=Yt):(Yt=Rt[Gt])?(oe=Ht[ee])?(delete Rt[Yt.start],delete Ht[oe.end],Yt===oe?(Yt.ring.push(wt),$(Yt.ring)):Rt[oe.start]=Ht[Yt.end]={start:oe.start,end:Yt.end,ring:oe.ring.concat(Yt.ring)}):(delete Rt[Yt.start],Yt.ring.unshift(ct),Rt[Yt.start=ee]=Yt):Rt[ee]=Ht[Gt]={start:ee,end:Gt,ring:[ct,wt]}}is[nt<<3].forEach(Xt)}(C,D,function(B){u(B,C,D),function(z){for(var $=0,Z=z.length,Q=z[Z-1][1]*z[0][0]-z[Z-1][0]*z[0][1];++$<Z;)Q+=z[$-1][1]*z[$][0]-z[$-1][0]*z[$][1];return Q}(B)>0?I.push([B]):Y.push(B)}),Y.forEach(function(B){for(var z,$=0,Z=I.length;$<Z;++$)if(Qp((z=I[$])[0],B)!==-1)return void z.push(B)}),{type:"MultiPolygon",value:D,coordinates:I}}function k(C){return 2*C[0]+C[1]*(n+1)*4}function x(C,D,I){C.forEach(function(Y){var B,z=Y[0],$=Y[1],Z=0|z,Q=0|$,G=D[Q*n+Z];z>0&&z<n&&Z===z&&(B=D[Q*n+Z-1],Y[0]=z+(I-B)/(G-B)-.5),$>0&&$<i&&Q===$&&(B=D[(Q-1)*n+Z],Y[1]=$+(I-B)/(G-B)-.5)})}return g.contour=v,g.size=function(C){if(!arguments.length)return[n,i];var D=Math.ceil(C[0]),I=Math.ceil(C[1]);if(!(D>0&&I>0))throw new Error("invalid size");return n=D,i=I,g},g.thresholds=function(C){return arguments.length?(c=typeof C=="function"?C:Array.isArray(C)?rs(jm.call(C)):rs(C),g):c},g.smooth=function(C){return arguments.length?(u=C?x:Um,g):u===x},g}function Jp(n,i,c){for(var u=n.width,g=n.height,v=1+(c<<1),k=0;k<g;++k)for(var x=0,C=0;x<u+c;++x)x<u&&(C+=n.data[x+k*u]),x>=c&&(x>=v&&(C-=n.data[x-v+k*u]),i.data[x-c+k*u]=C/Math.min(x+1,u-1+v-x,v))}function Kp(n,i,c){for(var u=n.width,g=n.height,v=1+(c<<1),k=0;k<u;++k)for(var x=0,C=0;x<g+c;++x)x<g&&(C+=n.data[k+x*u]),x>=c&&(x>=v&&(C-=n.data[k+(x-v)*u]),i.data[k+(x-c)*u]=C/Math.min(x+1,g-1+v-x,v))}function xr(n){return n[0]}function C4(n){return n[1]}function Rh(){return 1}function Fh(){var n=xr,i=C4,c=Rh,u=960,g=500,v=20,k=2,x=3*v,C=u+2*x>>k,D=g+2*x>>k,I=rs(20);function Y(G){var it=new Float32Array(C*D),nt=new Float32Array(C*D);G.forEach(function(Ht,Xt,ve){var Yt=+n(Ht,Xt,ve)+x>>k,oe=+i(Ht,Xt,ve)+x>>k,ct=+c(Ht,Xt,ve);Yt>=0&&Yt<C&&oe>=0&&oe<D&&(it[Yt+oe*C]+=ct)}),Jp({width:C,height:D,data:it},{width:C,height:D,data:nt},v>>k),Kp({width:C,height:D,data:nt},{width:C,height:D,data:it},v>>k),Jp({width:C,height:D,data:it},{width:C,height:D,data:nt},v>>k),Kp({width:C,height:D,data:nt},{width:C,height:D,data:it},v>>k),Jp({width:C,height:D,data:it},{width:C,height:D,data:nt},v>>k),Kp({width:C,height:D,data:nt},{width:C,height:D,data:it},v>>k);var ut=I(it);if(!Array.isArray(ut)){var Rt=Nt(it);ut=It(0,Rt,ut),(ut=et(0,Math.floor(Rt/ut)*ut,ut)).shift()}return Li().thresholds(ut).size([C,D])(it).map(B)}function B(G){return G.value*=Math.pow(2,-2*k),G.coordinates.forEach(z),G}function z(G){G.forEach($)}function $(G){G.forEach(Z)}function Z(G){G[0]=G[0]*Math.pow(2,k)-x,G[1]=G[1]*Math.pow(2,k)-x}function Q(){return C=u+2*(x=3*v)>>k,D=g+2*x>>k,Y}return Y.x=function(G){return arguments.length?(n=typeof G=="function"?G:rs(+G),Y):n},Y.y=function(G){return arguments.length?(i=typeof G=="function"?G:rs(+G),Y):i},Y.weight=function(G){return arguments.length?(c=typeof G=="function"?G:rs(+G),Y):c},Y.size=function(G){if(!arguments.length)return[u,g];var it=Math.ceil(G[0]),nt=Math.ceil(G[1]);if(!(it>=0||it>=0))throw new Error("invalid size");return u=it,g=nt,Q()},Y.cellSize=function(G){if(!arguments.length)return 1<<k;if(!((G=+G)>=1))throw new Error("invalid cell size");return k=Math.floor(Math.log(G)/Math.LN2),Q()},Y.thresholds=function(G){return arguments.length?(I=typeof G=="function"?G:Array.isArray(G)?rs(jm.call(G)):rs(G),Y):I},Y.bandwidth=function(G){if(!arguments.length)return Math.sqrt(v*(v+1));if(!((G=+G)>=0))throw new Error("invalid bandwidth");return v=Math.round((Math.sqrt(4*G*G+1)-1)/2),Q()},Y}function Vd(n){return function(){return n}}function tg(n,i,c,u,g,v,k,x,C,D){this.target=n,this.type=i,this.subject=c,this.identifier=u,this.active=g,this.x=v,this.y=k,this.dx=x,this.dy=C,this._=D}function M4(){return!De.ctrlKey&&!De.button}function A4(){return this.parentNode}function D4(n){return n==null?{x:De.x,y:De.y}:n}function zm(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wm(){var n,i,c,u,g=M4,v=A4,k=D4,x=zm,C={},D=Ge("start","drag","end"),I=0,Y=0;function B(ut){ut.on("mousedown.drag",z).filter(x).on("touchstart.drag",Q).on("touchmove.drag",G).on("touchend.drag touchcancel.drag",it).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function z(){if(!u&&g.apply(this,arguments)){var ut=nt("mouse",v.apply(this,arguments),Ms,this,arguments);ut&&(Yn(De.view).on("mousemove.drag",$,!0).on("mouseup.drag",Z,!0),Dr(De.view),Ti(),c=!1,n=De.clientX,i=De.clientY,ut("start"))}}function $(){if(Qr(),!c){var ut=De.clientX-n,Rt=De.clientY-i;c=ut*ut+Rt*Rt>Y}C.mouse("drag")}function Z(){Yn(De.view).on("mousemove.drag mouseup.drag",null),Qi(De.view,c),Qr(),C.mouse("end")}function Q(){if(g.apply(this,arguments)){var ut,Rt,Ht=De.changedTouches,Xt=v.apply(this,arguments),ve=Ht.length;for(ut=0;ut<ve;++ut)(Rt=nt(Ht[ut].identifier,Xt,da,this,arguments))&&(Ti(),Rt("start"))}}function G(){var ut,Rt,Ht=De.changedTouches,Xt=Ht.length;for(ut=0;ut<Xt;++ut)(Rt=C[Ht[ut].identifier])&&(Qr(),Rt("drag"))}function it(){var ut,Rt,Ht=De.changedTouches,Xt=Ht.length;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),ut=0;ut<Xt;++ut)(Rt=C[Ht[ut].identifier])&&(Ti(),Rt("end"))}function nt(ut,Rt,Ht,Xt,ve){var Yt,oe,ct,wt=Ht(Rt,ut),ee=D.copy();if(zi(new tg(B,"beforestart",Yt,ut,I,wt[0],wt[1],0,0,ee),function(){return(De.subject=Yt=k.apply(Xt,ve))!=null&&(oe=Yt.x-wt[0]||0,ct=Yt.y-wt[1]||0,!0)}))return function Gt(ie){var Ne,$e=wt;switch(ie){case"start":C[ut]=Gt,Ne=I++;break;case"end":delete C[ut],--I;case"drag":wt=Ht(Rt,ut),Ne=I}zi(new tg(B,ie,Yt,ut,Ne,wt[0]+oe,wt[1]+ct,wt[0]-$e[0],wt[1]-$e[1],ee),ee.apply,ee,[ie,Xt,ve])}}return B.filter=function(ut){return arguments.length?(g=typeof ut=="function"?ut:Vd(!!ut),B):g},B.container=function(ut){return arguments.length?(v=typeof ut=="function"?ut:Vd(ut),B):v},B.subject=function(ut){return arguments.length?(k=typeof ut=="function"?ut:Vd(ut),B):k},B.touchable=function(ut){return arguments.length?(x=typeof ut=="function"?ut:Vd(!!ut),B):x},B.on=function(){var ut=D.on.apply(D,arguments);return ut===D?B:ut},B.clickDistance=function(ut){return arguments.length?(Y=(ut=+ut)*ut,B):Math.sqrt(Y)},B}tg.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Hm={},eg={};function $m(n){return new Function("d","return {"+n.map(function(i,c){return JSON.stringify(i)+": d["+c+'] || ""'}).join(",")+"}")}function ng(n){var i=Object.create(null),c=[];return n.forEach(function(u){for(var g in u)g in i||c.push(i[g]=g)}),c}function La(n,i){var c=n+"",u=c.length;return u<i?new Array(i-u+1).join(0)+c:c}function Ph(n){var i=new RegExp('["'+n+`
|
|
\r]`),c=n.charCodeAt(0);function u(x,C){var D,I=[],Y=x.length,B=0,z=0,$=Y<=0,Z=!1;function Q(){if($)return eg;if(Z)return Z=!1,Hm;var it,nt,ut=B;if(x.charCodeAt(ut)===34){for(;B++<Y&&x.charCodeAt(B)!==34||x.charCodeAt(++B)===34;);return(it=B)>=Y?$=!0:(nt=x.charCodeAt(B++))===10?Z=!0:nt===13&&(Z=!0,x.charCodeAt(B)===10&&++B),x.slice(ut+1,it-1).replace(/""/g,'"')}for(;B<Y;){if((nt=x.charCodeAt(it=B++))===10)Z=!0;else if(nt===13)Z=!0,x.charCodeAt(B)===10&&++B;else if(nt!==c)continue;return x.slice(ut,it)}return $=!0,x.slice(ut,Y)}for(x.charCodeAt(Y-1)===10&&--Y,x.charCodeAt(Y-1)===13&&--Y;(D=Q())!==eg;){for(var G=[];D!==Hm&&D!==eg;)G.push(D),D=Q();C&&(G=C(G,z++))==null||I.push(G)}return I}function g(x,C){return x.map(function(D){return C.map(function(I){return k(D[I])}).join(n)})}function v(x){return x.map(k).join(n)}function k(x){return x==null?"":x instanceof Date?function(C){var D=C.getUTCHours(),I=C.getUTCMinutes(),Y=C.getUTCSeconds(),B=C.getUTCMilliseconds();return isNaN(C)?"Invalid Date":function(z){return z<0?"-"+La(-z,6):z>9999?"+"+La(z,6):La(z,4)}(C.getUTCFullYear())+"-"+La(C.getUTCMonth()+1,2)+"-"+La(C.getUTCDate(),2)+(B?"T"+La(D,2)+":"+La(I,2)+":"+La(Y,2)+"."+La(B,3)+"Z":Y?"T"+La(D,2)+":"+La(I,2)+":"+La(Y,2)+"Z":I||D?"T"+La(D,2)+":"+La(I,2)+"Z":"")}(x):i.test(x+="")?'"'+x.replace(/"/g,'""')+'"':x}return{parse:function(x,C){var D,I,Y=u(x,function(B,z){if(D)return D(B,z-1);I=B,D=C?function($,Z){var Q=$m($);return function(G,it){return Z(Q(G),it,$)}}(B,C):$m(B)});return Y.columns=I||[],Y},parseRows:u,format:function(x,C){return C==null&&(C=ng(x)),[C.map(k).join(n)].concat(g(x,C)).join(`
|
|
`)},formatBody:function(x,C){return C==null&&(C=ng(x)),g(x,C).join(`
|
|
`)},formatRows:function(x){return x.map(v).join(`
|
|
`)},formatRow:v,formatValue:k}}var cu=Ph(","),qm=cu.parse,N4=cu.parseRows,O4=cu.format,B4=cu.formatBody,L4=cu.formatRows,I4=cu.formatRow,Vm=cu.formatValue,uu=Ph(" "),Gm=uu.parse,R4=uu.parseRows,Xm=uu.format,F4=uu.formatBody,P4=uu.formatRows,Y4=uu.formatRow,j4=uu.formatValue;function U4(n){for(var i in n){var c,u,g=n[i].trim();if(g)if(g==="true")g=!0;else if(g==="false")g=!1;else if(g==="NaN")g=NaN;else if(isNaN(c=+g)){if(!(u=g.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;z4&&u[4]&&!u[7]&&(g=g.replace(/-/g,"/").replace(/T/," ")),g=new Date(g)}else g=c;else g=null;n[i]=g}return n}var z4=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Zm(n){return+n}function W4(n){return n*n}function H4(n){return n*(2-n)}function Qm(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var $4=function n(i){function c(u){return Math.pow(u,i)}return i=+i,c.exponent=n,c}(3),q4=function n(i){function c(u){return 1-Math.pow(1-u,i)}return i=+i,c.exponent=n,c}(3),Jm=function n(i){function c(u){return((u*=2)<=1?Math.pow(u,i):2-Math.pow(2-u,i))/2}return i=+i,c.exponent=n,c}(3),Km=Math.PI,tv=Km/2;function ev(n){return+n==1?1:1-Math.cos(n*tv)}function V4(n){return Math.sin(n*tv)}function nv(n){return(1-Math.cos(Km*n))/2}function fc(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function rv(n){return fc(1-+n)}function G4(n){return 1-fc(n)}function iv(n){return((n*=2)<=1?fc(1-n):2-fc(n-1))/2}function X4(n){return 1-Math.sqrt(1-n*n)}function Z4(n){return Math.sqrt(1- --n*n)}function av(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var Gd=7.5625;function ov(n){return 1-Yh(1-n)}function Yh(n){return(n=+n)<.36363636363636365?Gd*n*n:n<.7272727272727273?Gd*(n-=.5454545454545454)*n+.75:n<.9090909090909091?Gd*(n-=.8181818181818182)*n+.9375:Gd*(n-=.9545454545454546)*n+.984375}function Q4(n){return((n*=2)<=1?1-Yh(1-n):Yh(n-1)+1)/2}var rg=1.70158,J4=function n(i){function c(u){return(u=+u)*u*(i*(u-1)+u)}return i=+i,c.overshoot=n,c}(rg),K4=function n(i){function c(u){return--u*u*((u+1)*i+u)+1}return i=+i,c.overshoot=n,c}(rg),sv=function n(i){function c(u){return((u*=2)<1?u*u*((i+1)*u-i):(u-=2)*u*((i+1)*u+i)+2)/2}return i=+i,c.overshoot=n,c}(rg),hl=2*Math.PI,t5=function n(i,c){var u=Math.asin(1/(i=Math.max(1,i)))*(c/=hl);function g(v){return i*fc(- --v)*Math.sin((u-v)/c)}return g.amplitude=function(v){return n(v,c*hl)},g.period=function(v){return n(i,v)},g}(1,.3),ig=function n(i,c){var u=Math.asin(1/(i=Math.max(1,i)))*(c/=hl);function g(v){return 1-i*fc(v=+v)*Math.sin((v+u)/c)}return g.amplitude=function(v){return n(v,c*hl)},g.period=function(v){return n(i,v)},g}(1,.3),cv=function n(i,c){var u=Math.asin(1/(i=Math.max(1,i)))*(c/=hl);function g(v){return((v=2*v-1)<0?i*fc(-v)*Math.sin((u-v)/c):2-i*fc(v)*Math.sin((u+v)/c))/2}return g.amplitude=function(v){return n(v,c*hl)},g.period=function(v){return n(i,v)},g}(1,.3);function uv(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function e5(n,i){return fetch(n,i).then(uv)}function n5(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function lv(n,i){return fetch(n,i).then(n5)}function r5(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function fl(n,i){return fetch(n,i).then(r5)}function ag(n){return function(i,c,u){return arguments.length===2&&typeof c=="function"&&(u=c,c=void 0),fl(i,c).then(function(g){return n(g,u)})}}function i5(n,i,c,u){arguments.length===3&&typeof c=="function"&&(u=c,c=void 0);var g=Ph(n);return fl(i,c).then(function(v){return g.parse(v,u)})}var hv=ag(qm),fv=ag(Gm);function dv(n,i){return new Promise(function(c,u){var g=new Image;for(var v in i)g[v]=i[v];g.onerror=u,g.onload=function(){c(g)},g.src=n})}function a5(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(n.status!==204&&n.status!==205)return n.json()}function o5(n,i){return fetch(n,i).then(a5)}function og(n){return function(i,c){return fl(i,c).then(function(u){return new DOMParser().parseFromString(u,n)})}}const s5=og("application/xml");var pv=og("text/html"),Xd=og("image/svg+xml");function c5(n,i){var c;function u(){var g,v,k=c.length,x=0,C=0;for(g=0;g<k;++g)x+=(v=c[g]).x,C+=v.y;for(x=x/k-n,C=C/k-i,g=0;g<k;++g)(v=c[g]).x-=x,v.y-=C}return n==null&&(n=0),i==null&&(i=0),u.initialize=function(g){c=g},u.x=function(g){return arguments.length?(n=+g,u):n},u.y=function(g){return arguments.length?(i=+g,u):i},u}function Ii(n){return function(){return n}}function dc(){return 1e-6*(Math.random()-.5)}function gv(n,i,c,u){if(isNaN(i)||isNaN(c))return n;var g,v,k,x,C,D,I,Y,B,z=n._root,$={data:u},Z=n._x0,Q=n._y0,G=n._x1,it=n._y1;if(!z)return n._root=$,n;for(;z.length;)if((D=i>=(v=(Z+G)/2))?Z=v:G=v,(I=c>=(k=(Q+it)/2))?Q=k:it=k,g=z,!(z=z[Y=I<<1|D]))return g[Y]=$,n;if(x=+n._x.call(null,z.data),C=+n._y.call(null,z.data),i===x&&c===C)return $.next=z,g?g[Y]=$:n._root=$,n;do g=g?g[Y]=new Array(4):n._root=new Array(4),(D=i>=(v=(Z+G)/2))?Z=v:G=v,(I=c>=(k=(Q+it)/2))?Q=k:it=k;while((Y=I<<1|D)==(B=(C>=k)<<1|x>=v));return g[B]=z,g[Y]=$,n}function ya(n,i,c,u,g){this.node=n,this.x0=i,this.y0=c,this.x1=u,this.y1=g}function u5(n){return n[0]}function sg(n){return n[1]}function jh(n,i,c){var u=new dl(i==null?u5:i,c==null?sg:c,NaN,NaN,NaN,NaN);return n==null?u:u.addAll(n)}function dl(n,i,c,u,g,v){this._x=n,this._y=i,this._x0=c,this._y0=u,this._x1=g,this._y1=v,this._root=void 0}function yv(n){for(var i={data:n.data},c=i;n=n.next;)c=c.next={data:n.data};return i}var ma=jh.prototype=dl.prototype;function l5(n){return n.x+n.vx}function h5(n){return n.y+n.vy}function f5(n){var i,c,u=1,g=1;function v(){for(var C,D,I,Y,B,z,$,Z=i.length,Q=0;Q<g;++Q)for(D=jh(i,l5,h5).visitAfter(k),C=0;C<Z;++C)I=i[C],z=c[I.index],$=z*z,Y=I.x+I.vx,B=I.y+I.vy,D.visit(G);function G(it,nt,ut,Rt,Ht){var Xt=it.data,ve=it.r,Yt=z+ve;if(!Xt)return nt>Y+Yt||Rt<Y-Yt||ut>B+Yt||Ht<B-Yt;if(Xt.index>I.index){var oe=Y-Xt.x-Xt.vx,ct=B-Xt.y-Xt.vy,wt=oe*oe+ct*ct;wt<Yt*Yt&&(oe===0&&(wt+=(oe=dc())*oe),ct===0&&(wt+=(ct=dc())*ct),wt=(Yt-(wt=Math.sqrt(wt)))/wt*u,I.vx+=(oe*=wt)*(Yt=(ve*=ve)/($+ve)),I.vy+=(ct*=wt)*Yt,Xt.vx-=oe*(Yt=1-Yt),Xt.vy-=ct*Yt)}}}function k(C){if(C.data)return C.r=c[C.data.index];for(var D=C.r=0;D<4;++D)C[D]&&C[D].r>C.r&&(C.r=C[D].r)}function x(){if(i){var C,D,I=i.length;for(c=new Array(I),C=0;C<I;++C)D=i[C],c[D.index]=+n(D,C,i)}}return typeof n!="function"&&(n=Ii(n==null?1:+n)),v.initialize=function(C){i=C,x()},v.iterations=function(C){return arguments.length?(g=+C,v):g},v.strength=function(C){return arguments.length?(u=+C,v):u},v.radius=function(C){return arguments.length?(n=typeof C=="function"?C:Ii(+C),x(),v):n},v}function d5(n){return n.index}function cg(n,i){var c=n.get(i);if(!c)throw new Error("missing: "+i);return c}function p5(n){var i,c,u,g,v,k=d5,x=function($){return 1/Math.min(g[$.source.index],g[$.target.index])},C=Ii(30),D=1;function I($){for(var Z=0,Q=n.length;Z<D;++Z)for(var G,it,nt,ut,Rt,Ht,Xt,ve=0;ve<Q;++ve)it=(G=n[ve]).source,ut=(nt=G.target).x+nt.vx-it.x-it.vx||dc(),Rt=nt.y+nt.vy-it.y-it.vy||dc(),ut*=Ht=((Ht=Math.sqrt(ut*ut+Rt*Rt))-c[ve])/Ht*$*i[ve],Rt*=Ht,nt.vx-=ut*(Xt=v[ve]),nt.vy-=Rt*Xt,it.vx+=ut*(Xt=1-Xt),it.vy+=Rt*Xt}function Y(){if(u){var $,Z,Q=u.length,G=n.length,it=Bs(u,k);for($=0,g=new Array(Q);$<G;++$)(Z=n[$]).index=$,typeof Z.source!="object"&&(Z.source=cg(it,Z.source)),typeof Z.target!="object"&&(Z.target=cg(it,Z.target)),g[Z.source.index]=(g[Z.source.index]||0)+1,g[Z.target.index]=(g[Z.target.index]||0)+1;for($=0,v=new Array(G);$<G;++$)Z=n[$],v[$]=g[Z.source.index]/(g[Z.source.index]+g[Z.target.index]);i=new Array(G),B(),c=new Array(G),z()}}function B(){if(u)for(var $=0,Z=n.length;$<Z;++$)i[$]=+x(n[$],$,n)}function z(){if(u)for(var $=0,Z=n.length;$<Z;++$)c[$]=+C(n[$],$,n)}return n==null&&(n=[]),I.initialize=function($){u=$,Y()},I.links=function($){return arguments.length?(n=$,Y(),I):n},I.id=function($){return arguments.length?(k=$,I):k},I.iterations=function($){return arguments.length?(D=+$,I):D},I.strength=function($){return arguments.length?(x=typeof $=="function"?$:Ii(+$),B(),I):x},I.distance=function($){return arguments.length?(C=typeof $=="function"?$:Ii(+$),z(),I):C},I}function g5(n){return n.x}function y5(n){return n.y}ma.copy=function(){var n,i,c=new dl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),u=this._root;if(!u)return c;if(!u.length)return c._root=yv(u),c;for(n=[{source:u,target:c._root=new Array(4)}];u=n.pop();)for(var g=0;g<4;++g)(i=u.source[g])&&(i.length?n.push({source:i,target:u.target[g]=new Array(4)}):u.target[g]=yv(i));return c},ma.add=function(n){var i=+this._x.call(null,n),c=+this._y.call(null,n);return gv(this.cover(i,c),i,c,n)},ma.addAll=function(n){var i,c,u,g,v=n.length,k=new Array(v),x=new Array(v),C=1/0,D=1/0,I=-1/0,Y=-1/0;for(c=0;c<v;++c)isNaN(u=+this._x.call(null,i=n[c]))||isNaN(g=+this._y.call(null,i))||(k[c]=u,x[c]=g,u<C&&(C=u),u>I&&(I=u),g<D&&(D=g),g>Y&&(Y=g));if(C>I||D>Y)return this;for(this.cover(C,D).cover(I,Y),c=0;c<v;++c)gv(this,k[c],x[c],n[c]);return this},ma.cover=function(n,i){if(isNaN(n=+n)||isNaN(i=+i))return this;var c=this._x0,u=this._y0,g=this._x1,v=this._y1;if(isNaN(c))g=(c=Math.floor(n))+1,v=(u=Math.floor(i))+1;else{for(var k,x,C=g-c,D=this._root;c>n||n>=g||u>i||i>=v;)switch(x=(i<u)<<1|n<c,(k=new Array(4))[x]=D,D=k,C*=2,x){case 0:g=c+C,v=u+C;break;case 1:c=g-C,v=u+C;break;case 2:g=c+C,u=v-C;break;case 3:c=g-C,u=v-C}this._root&&this._root.length&&(this._root=D)}return this._x0=c,this._y0=u,this._x1=g,this._y1=v,this},ma.data=function(){var n=[];return this.visit(function(i){if(!i.length)do n.push(i.data);while(i=i.next)}),n},ma.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ma.find=function(n,i,c){var u,g,v,k,x,C,D,I=this._x0,Y=this._y0,B=this._x1,z=this._y1,$=[],Z=this._root;for(Z&&$.push(new ya(Z,I,Y,B,z)),c==null?c=1/0:(I=n-c,Y=i-c,B=n+c,z=i+c,c*=c);C=$.pop();)if(!(!(Z=C.node)||(g=C.x0)>B||(v=C.y0)>z||(k=C.x1)<I||(x=C.y1)<Y))if(Z.length){var Q=(g+k)/2,G=(v+x)/2;$.push(new ya(Z[3],Q,G,k,x),new ya(Z[2],g,G,Q,x),new ya(Z[1],Q,v,k,G),new ya(Z[0],g,v,Q,G)),(D=(i>=G)<<1|n>=Q)&&(C=$[$.length-1],$[$.length-1]=$[$.length-1-D],$[$.length-1-D]=C)}else{var it=n-+this._x.call(null,Z.data),nt=i-+this._y.call(null,Z.data),ut=it*it+nt*nt;if(ut<c){var Rt=Math.sqrt(c=ut);I=n-Rt,Y=i-Rt,B=n+Rt,z=i+Rt,u=Z.data}}return u},ma.remove=function(n){if(isNaN(v=+this._x.call(null,n))||isNaN(k=+this._y.call(null,n)))return this;var i,c,u,g,v,k,x,C,D,I,Y,B,z=this._root,$=this._x0,Z=this._y0,Q=this._x1,G=this._y1;if(!z)return this;if(z.length)for(;;){if((D=v>=(x=($+Q)/2))?$=x:Q=x,(I=k>=(C=(Z+G)/2))?Z=C:G=C,i=z,!(z=z[Y=I<<1|D]))return this;if(!z.length)break;(i[Y+1&3]||i[Y+2&3]||i[Y+3&3])&&(c=i,B=Y)}for(;z.data!==n;)if(u=z,!(z=z.next))return this;return(g=z.next)&&delete z.next,u?(g?u.next=g:delete u.next,this):i?(g?i[Y]=g:delete i[Y],(z=i[0]||i[1]||i[2]||i[3])&&z===(i[3]||i[2]||i[1]||i[0])&&!z.length&&(c?c[B]=z:this._root=z),this):(this._root=g,this)},ma.removeAll=function(n){for(var i=0,c=n.length;i<c;++i)this.remove(n[i]);return this},ma.root=function(){return this._root},ma.size=function(){var n=0;return this.visit(function(i){if(!i.length)do++n;while(i=i.next)}),n},ma.visit=function(n){var i,c,u,g,v,k,x=[],C=this._root;for(C&&x.push(new ya(C,this._x0,this._y0,this._x1,this._y1));i=x.pop();)if(!n(C=i.node,u=i.x0,g=i.y0,v=i.x1,k=i.y1)&&C.length){var D=(u+v)/2,I=(g+k)/2;(c=C[3])&&x.push(new ya(c,D,I,v,k)),(c=C[2])&&x.push(new ya(c,u,I,D,k)),(c=C[1])&&x.push(new ya(c,D,g,v,I)),(c=C[0])&&x.push(new ya(c,u,g,D,I))}return this},ma.visitAfter=function(n){var i,c=[],u=[];for(this._root&&c.push(new ya(this._root,this._x0,this._y0,this._x1,this._y1));i=c.pop();){var g=i.node;if(g.length){var v,k=i.x0,x=i.y0,C=i.x1,D=i.y1,I=(k+C)/2,Y=(x+D)/2;(v=g[0])&&c.push(new ya(v,k,x,I,Y)),(v=g[1])&&c.push(new ya(v,I,x,C,Y)),(v=g[2])&&c.push(new ya(v,k,Y,I,D)),(v=g[3])&&c.push(new ya(v,I,Y,C,D))}u.push(i)}for(;i=u.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},ma.x=function(n){return arguments.length?(this._x=n,this):this._x},ma.y=function(n){return arguments.length?(this._y=n,this):this._y};var pl=Math.PI*(3-Math.sqrt(5));function m5(n){var i,c=1,u=.001,g=1-Math.pow(u,1/300),v=0,k=.6,x=Bs(),C=he(I),D=Ge("tick","end");function I(){Y(),D.call("tick",i),c<u&&(C.stop(),D.call("end",i))}function Y($){var Z,Q,G=n.length;$===void 0&&($=1);for(var it=0;it<$;++it)for(c+=(v-c)*g,x.each(function(nt){nt(c)}),Z=0;Z<G;++Z)(Q=n[Z]).fx==null?Q.x+=Q.vx*=k:(Q.x=Q.fx,Q.vx=0),Q.fy==null?Q.y+=Q.vy*=k:(Q.y=Q.fy,Q.vy=0);return i}function B(){for(var $,Z=0,Q=n.length;Z<Q;++Z){if(($=n[Z]).index=Z,$.fx!=null&&($.x=$.fx),$.fy!=null&&($.y=$.fy),isNaN($.x)||isNaN($.y)){var G=10*Math.sqrt(Z),it=Z*pl;$.x=G*Math.cos(it),$.y=G*Math.sin(it)}(isNaN($.vx)||isNaN($.vy))&&($.vx=$.vy=0)}}function z($){return $.initialize&&$.initialize(n),$}return n==null&&(n=[]),B(),i={tick:Y,restart:function(){return C.restart(I),i},stop:function(){return C.stop(),i},nodes:function($){return arguments.length?(n=$,B(),x.each(z),i):n},alpha:function($){return arguments.length?(c=+$,i):c},alphaMin:function($){return arguments.length?(u=+$,i):u},alphaDecay:function($){return arguments.length?(g=+$,i):+g},alphaTarget:function($){return arguments.length?(v=+$,i):v},velocityDecay:function($){return arguments.length?(k=1-$,i):1-k},force:function($,Z){return arguments.length>1?(Z==null?x.remove($):x.set($,z(Z)),i):x.get($)},find:function($,Z,Q){var G,it,nt,ut,Rt,Ht=0,Xt=n.length;for(Q==null?Q=1/0:Q*=Q,Ht=0;Ht<Xt;++Ht)(nt=(G=$-(ut=n[Ht]).x)*G+(it=Z-ut.y)*it)<Q&&(Rt=ut,Q=nt);return Rt},on:function($,Z){return arguments.length>1?(D.on($,Z),i):D.on($)}}}function v5(){var n,i,c,u,g=Ii(-30),v=1,k=1/0,x=.81;function C(B){var z,$=n.length,Z=jh(n,g5,y5).visitAfter(I);for(c=B,z=0;z<$;++z)i=n[z],Z.visit(Y)}function D(){if(n){var B,z,$=n.length;for(u=new Array($),B=0;B<$;++B)z=n[B],u[z.index]=+g(z,B,n)}}function I(B){var z,$,Z,Q,G,it=0,nt=0;if(B.length){for(Z=Q=G=0;G<4;++G)(z=B[G])&&($=Math.abs(z.value))&&(it+=z.value,nt+=$,Z+=$*z.x,Q+=$*z.y);B.x=Z/nt,B.y=Q/nt}else{(z=B).x=z.data.x,z.y=z.data.y;do it+=u[z.data.index];while(z=z.next)}B.value=it}function Y(B,z,$,Z){if(!B.value)return!0;var Q=B.x-i.x,G=B.y-i.y,it=Z-z,nt=Q*Q+G*G;if(it*it/x<nt)return nt<k&&(Q===0&&(nt+=(Q=dc())*Q),G===0&&(nt+=(G=dc())*G),nt<v&&(nt=Math.sqrt(v*nt)),i.vx+=Q*B.value*c/nt,i.vy+=G*B.value*c/nt),!0;if(!(B.length||nt>=k)){(B.data!==i||B.next)&&(Q===0&&(nt+=(Q=dc())*Q),G===0&&(nt+=(G=dc())*G),nt<v&&(nt=Math.sqrt(v*nt)));do B.data!==i&&(it=u[B.data.index]*c/nt,i.vx+=Q*it,i.vy+=G*it);while(B=B.next)}}return C.initialize=function(B){n=B,D()},C.strength=function(B){return arguments.length?(g=typeof B=="function"?B:Ii(+B),D(),C):g},C.distanceMin=function(B){return arguments.length?(v=B*B,C):Math.sqrt(v)},C.distanceMax=function(B){return arguments.length?(k=B*B,C):Math.sqrt(k)},C.theta=function(B){return arguments.length?(x=B*B,C):Math.sqrt(x)},C}function _5(n,i,c){var u,g,v,k=Ii(.1);function x(D){for(var I=0,Y=u.length;I<Y;++I){var B=u[I],z=B.x-i||1e-6,$=B.y-c||1e-6,Z=Math.sqrt(z*z+$*$),Q=(v[I]-Z)*g[I]*D/Z;B.vx+=z*Q,B.vy+=$*Q}}function C(){if(u){var D,I=u.length;for(g=new Array(I),v=new Array(I),D=0;D<I;++D)v[D]=+n(u[D],D,u),g[D]=isNaN(v[D])?0:+k(u[D],D,u)}}return typeof n!="function"&&(n=Ii(+n)),i==null&&(i=0),c==null&&(c=0),x.initialize=function(D){u=D,C()},x.strength=function(D){return arguments.length?(k=typeof D=="function"?D:Ii(+D),C(),x):k},x.radius=function(D){return arguments.length?(n=typeof D=="function"?D:Ii(+D),C(),x):n},x.x=function(D){return arguments.length?(i=+D,x):i},x.y=function(D){return arguments.length?(c=+D,x):c},x}function mv(n){var i,c,u,g=Ii(.1);function v(x){for(var C,D=0,I=i.length;D<I;++D)(C=i[D]).vx+=(u[D]-C.x)*c[D]*x}function k(){if(i){var x,C=i.length;for(c=new Array(C),u=new Array(C),x=0;x<C;++x)c[x]=isNaN(u[x]=+n(i[x],x,i))?0:+g(i[x],x,i)}}return typeof n!="function"&&(n=Ii(n==null?0:+n)),v.initialize=function(x){i=x,k()},v.strength=function(x){return arguments.length?(g=typeof x=="function"?x:Ii(+x),k(),v):g},v.x=function(x){return arguments.length?(n=typeof x=="function"?x:Ii(+x),k(),v):n},v}function ug(n){var i,c,u,g=Ii(.1);function v(x){for(var C,D=0,I=i.length;D<I;++D)(C=i[D]).vy+=(u[D]-C.y)*c[D]*x}function k(){if(i){var x,C=i.length;for(c=new Array(C),u=new Array(C),x=0;x<C;++x)c[x]=isNaN(u[x]=+n(i[x],x,i))?0:+g(i[x],x,i)}}return typeof n!="function"&&(n=Ii(n==null?0:+n)),v.initialize=function(x){i=x,k()},v.strength=function(x){return arguments.length?(g=typeof x=="function"?x:Ii(+x),k(),v):g},v.y=function(x){return arguments.length?(n=typeof x=="function"?x:Ii(+x),k(),v):n},v}function Uh(n,i){if((c=(n=i?n.toExponential(i-1):n.toExponential()).indexOf("e"))<0)return null;var c,u=n.slice(0,c);return[u.length>1?u[0]+u.slice(2):u,+n.slice(c+1)]}function lu(n){return(n=Uh(Math.abs(n)))?n[1]:NaN}var lg,b5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function zh(n){if(!(i=b5.exec(n)))throw new Error("invalid format: "+n);var i;return new Zd({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}function Zd(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}function vv(n,i){var c=Uh(n,i);if(!c)return n+"";var u=c[0],g=c[1];return g<0?"0."+new Array(-g).join("0")+u:u.length>g+1?u.slice(0,g+1)+"."+u.slice(g+1):u+new Array(g-u.length+2).join("0")}zh.prototype=Zd.prototype,Zd.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const _v={"%":function(n,i){return(100*n).toFixed(i)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:function(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:function(n,i){return n.toExponential(i)},f:function(n,i){return n.toFixed(i)},g:function(n,i){return n.toPrecision(i)},o:function(n){return Math.round(n).toString(8)},p:function(n,i){return vv(100*n,i)},r:vv,s:function(n,i){var c=Uh(n,i);if(!c)return n+"";var u=c[0],g=c[1],v=g-(lg=3*Math.max(-8,Math.min(8,Math.floor(g/3))))+1,k=u.length;return v===k?u:v>k?u+new Array(v-k+1).join("0"):v>0?u.slice(0,v)+"."+u.slice(v):"0."+new Array(1-v).join("0")+Uh(n,Math.max(0,i+v-1))[0]},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}};function bv(n){return n}var Qd,Jd,hg,xv=Array.prototype.map,wv=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function kv(n){var i,c,u=n.grouping===void 0||n.thousands===void 0?bv:(i=xv.call(n.grouping,Number),c=n.thousands+"",function(B,z){for(var $=B.length,Z=[],Q=0,G=i[0],it=0;$>0&&G>0&&(it+G+1>z&&(G=Math.max(1,z-it)),Z.push(B.substring($-=G,$+G)),!((it+=G+1)>z));)G=i[Q=(Q+1)%i.length];return Z.reverse().join(c)}),g=n.currency===void 0?"":n.currency[0]+"",v=n.currency===void 0?"":n.currency[1]+"",k=n.decimal===void 0?".":n.decimal+"",x=n.numerals===void 0?bv:function(B){return function(z){return z.replace(/[0-9]/g,function($){return B[+$]})}}(xv.call(n.numerals,String)),C=n.percent===void 0?"%":n.percent+"",D=n.minus===void 0?"-":n.minus+"",I=n.nan===void 0?"NaN":n.nan+"";function Y(B){var z=(B=zh(B)).fill,$=B.align,Z=B.sign,Q=B.symbol,G=B.zero,it=B.width,nt=B.comma,ut=B.precision,Rt=B.trim,Ht=B.type;Ht==="n"?(nt=!0,Ht="g"):_v[Ht]||(ut===void 0&&(ut=12),Rt=!0,Ht="g"),(G||z==="0"&&$==="=")&&(G=!0,z="0",$="=");var Xt=Q==="$"?g:Q==="#"&&/[boxX]/.test(Ht)?"0"+Ht.toLowerCase():"",ve=Q==="$"?v:/[%p]/.test(Ht)?C:"",Yt=_v[Ht],oe=/[defgprs%]/.test(Ht);function ct(wt){var ee,Gt,ie,Ne=Xt,$e=ve;if(Ht==="c")$e=Yt(wt)+$e,wt="";else{var kn=(wt=+wt)<0||1/wt<0;if(wt=isNaN(wt)?I:Yt(Math.abs(wt),ut),Rt&&(wt=function(nn){t:for(var Gn,An=nn.length,vn=1,Fn=-1;vn<An;++vn)switch(nn[vn]){case".":Fn=Gn=vn;break;case"0":Fn===0&&(Fn=vn),Gn=vn;break;default:if(!+nn[vn])break t;Fn>0&&(Fn=0)}return Fn>0?nn.slice(0,Fn)+nn.slice(Gn+1):nn}(wt)),kn&&+wt==0&&Z!=="+"&&(kn=!1),Ne=(kn?Z==="("?Z:D:Z==="-"||Z==="("?"":Z)+Ne,$e=(Ht==="s"?wv[8+lg/3]:"")+$e+(kn&&Z==="("?")":""),oe){for(ee=-1,Gt=wt.length;++ee<Gt;)if(48>(ie=wt.charCodeAt(ee))||ie>57){$e=(ie===46?k+wt.slice(ee+1):wt.slice(ee))+$e,wt=wt.slice(0,ee);break}}}nt&&!G&&(wt=u(wt,1/0));var Kn=Ne.length+wt.length+$e.length,ur=Kn<it?new Array(it-Kn+1).join(z):"";switch(nt&&G&&(wt=u(ur+wt,ur.length?it-$e.length:1/0),ur=""),$){case"<":wt=Ne+wt+$e+ur;break;case"=":wt=Ne+ur+wt+$e;break;case"^":wt=ur.slice(0,Kn=ur.length>>1)+Ne+wt+$e+ur.slice(Kn);break;default:wt=ur+Ne+wt+$e}return x(wt)}return ut=ut===void 0?6:/[gprs]/.test(Ht)?Math.max(1,Math.min(21,ut)):Math.max(0,Math.min(20,ut)),ct.toString=function(){return B+""},ct}return{format:Y,formatPrefix:function(B,z){var $=Y(((B=zh(B)).type="f",B)),Z=3*Math.max(-8,Math.min(8,Math.floor(lu(z)/3))),Q=Math.pow(10,-Z),G=wv[8+Z/3];return function(it){return $(Q*it)+G}}}}function Tv(n){return Qd=kv(n),Jd=Qd.format,hg=Qd.formatPrefix,Qd}function fg(n){return Math.max(0,-lu(Math.abs(n)))}function Ev(n,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lu(i)/3)))-lu(Math.abs(n)))}function Sv(n,i){return n=Math.abs(n),i=Math.abs(i)-n,Math.max(0,lu(i)-lu(n))+1}function pc(){return new Kd}function Kd(){this.reset()}Tv({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Kd.prototype={constructor:Kd,reset:function(){this.s=this.t=0},add:function(n){Cv(t1,n,this.t),Cv(this,t1.s,this.s),this.s?this.t+=t1.t:this.s=t1.t},valueOf:function(){return this.s}};var t1=new Kd;function Cv(n,i,c){var u=n.s=i+c,g=u-i,v=u-g;n.t=i-v+(c-g)}var jn=1e-6,Wh=1e-12,nr=Math.PI,li=nr/2,gl=nr/4,Ir=2*nr,Yr=180/nr,bn=nr/180,Ce=Math.abs,gc=Math.atan,Ki=Math.atan2,ln=Math.cos,as=Math.ceil,Mv=Math.exp,yl=Math.log,e1=Math.pow,on=Math.sin,wr=Math.sign||function(n){return n>0?1:n<0?-1:0},mi=Math.sqrt,qi=Math.tan;function yc(n){return n>1?0:n<-1?nr:Math.acos(n)}function va(n){return n>1?li:n<-1?-li:Math.asin(n)}function n1(n){return(n=on(n/2))*n}function kr(){}function Rs(n,i){n&&ml.hasOwnProperty(n.type)&&ml[n.type](n,i)}var _a={Feature:function(n,i){Rs(n.geometry,i)},FeatureCollection:function(n,i){for(var c=n.features,u=-1,g=c.length;++u<g;)Rs(c[u].geometry,i)}},ml={Sphere:function(n,i){i.sphere()},Point:function(n,i){n=n.coordinates,i.point(n[0],n[1],n[2])},MultiPoint:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)n=c[u],i.point(n[0],n[1],n[2])},LineString:function(n,i){vl(n.coordinates,i,0)},MultiLineString:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)vl(c[u],i,0)},Polygon:function(n,i){Hh(n.coordinates,i)},MultiPolygon:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)Hh(c[u],i)},GeometryCollection:function(n,i){for(var c=n.geometries,u=-1,g=c.length;++u<g;)Rs(c[u],i)}};function vl(n,i,c){var u,g=-1,v=n.length-c;for(i.lineStart();++g<v;)u=n[g],i.point(u[0],u[1],u[2]);i.lineEnd()}function Hh(n,i){var c=-1,u=n.length;for(i.polygonStart();++c<u;)vl(n[c],i,1);i.polygonEnd()}function Bo(n,i){n&&_a.hasOwnProperty(n.type)?_a[n.type](n,i):Rs(n,i)}var dg,Av,pg,gg,yg,r1=pc(),i1=pc(),Ka={point:kr,lineStart:kr,lineEnd:kr,polygonStart:function(){r1.reset(),Ka.lineStart=mg,Ka.lineEnd=Dv},polygonEnd:function(){var n=+r1;i1.add(n<0?Ir+n:n),this.lineStart=this.lineEnd=this.point=kr},sphere:function(){i1.add(Ir)}};function mg(){Ka.point=Nv}function Dv(){ho(dg,Av)}function Nv(n,i){Ka.point=ho,dg=n,Av=i,pg=n*=bn,gg=ln(i=(i*=bn)/2+gl),yg=on(i)}function ho(n,i){var c=(n*=bn)-pg,u=c>=0?1:-1,g=u*c,v=ln(i=(i*=bn)/2+gl),k=on(i),x=yg*k,C=gg*v+x*ln(g),D=x*u*on(g);r1.add(Ki(D,C)),pg=n,gg=v,yg=k}function x5(n){return i1.reset(),Bo(n,Ka),2*i1}function a1(n){return[Ki(n[1],n[0]),va(n[2])]}function fo(n){var i=n[0],c=n[1],u=ln(c);return[u*ln(i),u*on(i),on(c)]}function o1(n,i){return n[0]*i[0]+n[1]*i[1]+n[2]*i[2]}function _l(n,i){return[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]]}function bl(n,i){n[0]+=i[0],n[1]+=i[1],n[2]+=i[2]}function hu(n,i){return[n[0]*i,n[1]*i,n[2]*i]}function $h(n){var i=mi(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=i,n[1]/=i,n[2]/=i}var jr,ba,ai,Ia,mc,vg,_g,vc,Lo,os,xl,qh,Vh,fu,wl,kl,po,Gh,s1,Fs,bg,c1,Tl,xa,la,vi,Xh=pc(),Io={point:du,lineStart:xg,lineEnd:wg,polygonStart:function(){Io.point=El,Io.lineStart=Bv,Io.lineEnd=Zh,Xh.reset(),Ka.polygonStart()},polygonEnd:function(){Ka.polygonEnd(),Io.point=du,Io.lineStart=xg,Io.lineEnd=wg,r1<0?(jr=-(ai=180),ba=-(Ia=90)):Xh>jn?Ia=90:Xh<-1e-6&&(ba=-90),os[0]=jr,os[1]=ai},sphere:function(){jr=-(ai=180),ba=-(Ia=90)}};function du(n,i){Lo.push(os=[jr=n,ai=n]),i<ba&&(ba=i),i>Ia&&(Ia=i)}function Ov(n,i){var c=fo([n*bn,i*bn]);if(vc){var u=_l(vc,c),g=_l([u[1],-u[0],0],u);$h(g),g=a1(g);var v,k=n-mc,x=k>0?1:-1,C=g[0]*Yr*x,D=Ce(k)>180;D^(x*mc<C&&C<x*n)?(v=g[1]*Yr)>Ia&&(Ia=v):D^(x*mc<(C=(C+360)%360-180)&&C<x*n)?(v=-g[1]*Yr)<ba&&(ba=v):(i<ba&&(ba=i),i>Ia&&(Ia=i)),D?n<mc?wa(jr,n)>wa(jr,ai)&&(ai=n):wa(n,ai)>wa(jr,ai)&&(jr=n):ai>=jr?(n<jr&&(jr=n),n>ai&&(ai=n)):n>mc?wa(jr,n)>wa(jr,ai)&&(ai=n):wa(n,ai)>wa(jr,ai)&&(jr=n)}else Lo.push(os=[jr=n,ai=n]);i<ba&&(ba=i),i>Ia&&(Ia=i),vc=c,mc=n}function xg(){Io.point=Ov}function wg(){os[0]=jr,os[1]=ai,Io.point=du,vc=null}function El(n,i){if(vc){var c=n-mc;Xh.add(Ce(c)>180?c+(c>0?360:-360):c)}else vg=n,_g=i;Ka.point(n,i),Ov(n,i)}function Bv(){Ka.lineStart()}function Zh(){El(vg,_g),Ka.lineEnd(),Ce(Xh)>jn&&(jr=-(ai=180)),os[0]=jr,os[1]=ai,vc=null}function wa(n,i){return(i-=n)<0?i+360:i}function kg(n,i){return n[0]-i[0]}function Sl(n,i){return n[0]<=n[1]?n[0]<=i&&i<=n[1]:i<n[0]||n[1]<i}function Qh(n){var i,c,u,g,v,k,x;if(Ia=ai=-(jr=ba=1/0),Lo=[],Bo(n,Io),c=Lo.length){for(Lo.sort(kg),i=1,v=[u=Lo[0]];i<c;++i)Sl(u,(g=Lo[i])[0])||Sl(u,g[1])?(wa(u[0],g[1])>wa(u[0],u[1])&&(u[1]=g[1]),wa(g[0],u[1])>wa(u[0],u[1])&&(u[0]=g[0])):v.push(u=g);for(k=-1/0,i=0,u=v[c=v.length-1];i<=c;u=g,++i)g=v[i],(x=wa(u[1],g[0]))>k&&(k=x,jr=g[0],ai=u[1])}return Lo=os=null,jr===1/0||ba===1/0?[[NaN,NaN],[NaN,NaN]]:[[jr,ba],[ai,Ia]]}var to={sphere:kr,point:u1,lineStart:Lv,lineEnd:Iv,polygonStart:function(){to.lineStart=Jh,to.lineEnd=Kh},polygonEnd:function(){to.lineStart=Lv,to.lineEnd=Iv}};function u1(n,i){n*=bn;var c=ln(i*=bn);hi(c*ln(n),c*on(n),on(i))}function hi(n,i,c){++xl,Vh+=(n-Vh)/xl,fu+=(i-fu)/xl,wl+=(c-wl)/xl}function Lv(){to.point=w5}function w5(n,i){n*=bn;var c=ln(i*=bn);xa=c*ln(n),la=c*on(n),vi=on(i),to.point=Tr,hi(xa,la,vi)}function Tr(n,i){n*=bn;var c=ln(i*=bn),u=c*ln(n),g=c*on(n),v=on(i),k=Ki(mi((k=la*v-vi*g)*k+(k=vi*u-xa*v)*k+(k=xa*g-la*u)*k),xa*u+la*g+vi*v);qh+=k,kl+=k*(xa+(xa=u)),po+=k*(la+(la=g)),Gh+=k*(vi+(vi=v)),hi(xa,la,vi)}function Iv(){to.point=u1}function Jh(){to.point=k5}function Kh(){Rv(c1,Tl),to.point=u1}function k5(n,i){c1=n,Tl=i,n*=bn,i*=bn,to.point=Rv;var c=ln(i);xa=c*ln(n),la=c*on(n),vi=on(i),hi(xa,la,vi)}function Rv(n,i){n*=bn;var c=ln(i*=bn),u=c*ln(n),g=c*on(n),v=on(i),k=la*v-vi*g,x=vi*u-xa*v,C=xa*g-la*u,D=mi(k*k+x*x+C*C),I=va(D),Y=D&&-I/D;s1+=Y*k,Fs+=Y*x,bg+=Y*C,qh+=I,kl+=I*(xa+(xa=u)),po+=I*(la+(la=g)),Gh+=I*(vi+(vi=v)),hi(xa,la,vi)}function T5(n){xl=qh=Vh=fu=wl=kl=po=Gh=s1=Fs=bg=0,Bo(n,to);var i=s1,c=Fs,u=bg,g=i*i+c*c+u*u;return g<Wh&&(i=kl,c=po,u=Gh,qh<jn&&(i=Vh,c=fu,u=wl),(g=i*i+c*c+u*u)<Wh)?[NaN,NaN]:[Ki(c,i)*Yr,va(u/mi(g))*Yr]}function Cl(n){return function(){return n}}function Tg(n,i){function c(u,g){return u=n(u,g),i(u[0],u[1])}return n.invert&&i.invert&&(c.invert=function(u,g){return(u=i.invert(u,g))&&n.invert(u[0],u[1])}),c}function l1(n,i){return[Ce(n)>nr?n+Math.round(-n/Ir)*Ir:n,i]}function h1(n,i,c){return(n%=Ir)?i||c?Tg(Pv(n),Yv(i,c)):Pv(n):i||c?Yv(i,c):l1}function Fv(n){return function(i,c){return[(i+=n)>nr?i-Ir:i<-nr?i+Ir:i,c]}}function Pv(n){var i=Fv(n);return i.invert=Fv(-n),i}function Yv(n,i){var c=ln(n),u=on(n),g=ln(i),v=on(i);function k(x,C){var D=ln(C),I=ln(x)*D,Y=on(x)*D,B=on(C),z=B*c+I*u;return[Ki(Y*g-z*v,I*c-B*u),va(z*g+Y*v)]}return k.invert=function(x,C){var D=ln(C),I=ln(x)*D,Y=on(x)*D,B=on(C),z=B*g-Y*v;return[Ki(Y*g+B*v,I*c+z*u),va(z*c-I*u)]},k}function Eg(n){function i(c){return(c=n(c[0]*bn,c[1]*bn))[0]*=Yr,c[1]*=Yr,c}return n=h1(n[0]*bn,n[1]*bn,n.length>2?n[2]*bn:0),i.invert=function(c){return(c=n.invert(c[0]*bn,c[1]*bn))[0]*=Yr,c[1]*=Yr,c},i}function jv(n,i,c,u,g,v){if(c){var k=ln(i),x=on(i),C=u*c;g==null?(g=i+u*Ir,v=i-C/2):(g=Sg(k,g),v=Sg(k,v),(u>0?g<v:g>v)&&(g+=u*Ir));for(var D,I=g;u>0?I>v:I<v;I-=C)D=a1([k,-x*ln(I),-x*on(I)]),n.point(D[0],D[1])}}function Sg(n,i){(i=fo(i))[0]-=n,$h(i);var c=yc(-i[1]);return((-i[2]<0?-c:c)+Ir-jn)%Ir}function E5(){var n,i,c=Cl([0,0]),u=Cl(90),g=Cl(6),v={point:function(x,C){n.push(x=i(x,C)),x[0]*=Yr,x[1]*=Yr}};function k(){var x=c.apply(this,arguments),C=u.apply(this,arguments)*bn,D=g.apply(this,arguments)*bn;return n=[],i=h1(-x[0]*bn,-x[1]*bn,0).invert,jv(v,C,D,1),x={type:"Polygon",coordinates:[n]},n=i=null,x}return k.center=function(x){return arguments.length?(c=typeof x=="function"?x:Cl([+x[0],+x[1]]),k):c},k.radius=function(x){return arguments.length?(u=typeof x=="function"?x:Cl(+x),k):u},k.precision=function(x){return arguments.length?(g=typeof x=="function"?x:Cl(+x),k):g},k}function Uv(){var n,i=[];return{point:function(c,u,g){n.push([c,u,g])},lineStart:function(){i.push(n=[])},lineEnd:kr,rejoin:function(){i.length>1&&i.push(i.pop().concat(i.shift()))},result:function(){var c=i;return i=[],n=null,c}}}function f1(n,i){return Ce(n[0]-i[0])<jn&&Ce(n[1]-i[1])<jn}function d1(n,i,c,u){this.x=n,this.z=i,this.o=c,this.e=u,this.v=!1,this.n=this.p=null}function zv(n,i,c,u,g){var v,k,x=[],C=[];if(n.forEach(function($){if(!((Z=$.length-1)<=0)){var Z,Q,G=$[0],it=$[Z];if(f1(G,it)){if(!G[2]&&!it[2]){for(g.lineStart(),v=0;v<Z;++v)g.point((G=$[v])[0],G[1]);return void g.lineEnd()}it[0]+=2e-6}x.push(Q=new d1(G,$,null,!0)),C.push(Q.o=new d1(G,null,Q,!1)),x.push(Q=new d1(it,$,null,!1)),C.push(Q.o=new d1(it,null,Q,!0))}}),x.length){for(C.sort(i),Wv(x),Wv(C),v=0,k=C.length;v<k;++v)C[v].e=c=!c;for(var D,I,Y=x[0];;){for(var B=Y,z=!0;B.v;)if((B=B.n)===Y)return;D=B.z,g.lineStart();do{if(B.v=B.o.v=!0,B.e){if(z)for(v=0,k=D.length;v<k;++v)g.point((I=D[v])[0],I[1]);else u(B.x,B.n.x,1,g);B=B.n}else{if(z)for(D=B.p.z,v=D.length-1;v>=0;--v)g.point((I=D[v])[0],I[1]);else u(B.x,B.p.x,-1,g);B=B.p}D=(B=B.o).z,z=!z}while(!B.v);g.lineEnd()}}}function Wv(n){if(i=n.length){for(var i,c,u=0,g=n[0];++u<i;)g.n=c=n[u],c.p=g,g=c;g.n=c=n[0],c.p=g}}l1.invert=l1;var Cg=pc();function p1(n){return Ce(n[0])<=nr?n[0]:wr(n[0])*((Ce(n[0])+nr)%Ir-nr)}function Hv(n,i){var c=p1(i),u=i[1],g=on(u),v=[on(c),-ln(c),0],k=0,x=0;Cg.reset(),g===1?u=li+jn:g===-1&&(u=-li-jn);for(var C=0,D=n.length;C<D;++C)if(Y=(I=n[C]).length)for(var I,Y,B=I[Y-1],z=p1(B),$=B[1]/2+gl,Z=on($),Q=ln($),G=0;G<Y;++G,z=nt,Z=Rt,Q=Ht,B=it){var it=I[G],nt=p1(it),ut=it[1]/2+gl,Rt=on(ut),Ht=ln(ut),Xt=nt-z,ve=Xt>=0?1:-1,Yt=ve*Xt,oe=Yt>nr,ct=Z*Rt;if(Cg.add(Ki(ct*ve*on(Yt),Q*Ht+ct*ln(Yt))),k+=oe?Xt+ve*Ir:Xt,oe^z>=c^nt>=c){var wt=_l(fo(B),fo(it));$h(wt);var ee=_l(v,wt);$h(ee);var Gt=(oe^Xt>=0?-1:1)*va(ee[2]);(u>Gt||u===Gt&&(wt[0]||wt[1]))&&(x+=oe^Xt>=0?1:-1)}}return(k<-1e-6||k<jn&&Cg<-1e-6)^1&x}function $v(n,i,c,u){return function(g){var v,k,x,C=i(g),D=Uv(),I=i(D),Y=!1,B={point:z,lineStart:Z,lineEnd:Q,polygonStart:function(){B.point=G,B.lineStart=it,B.lineEnd=nt,k=[],v=[]},polygonEnd:function(){B.point=z,B.lineStart=Z,B.lineEnd=Q,k=pe(k);var ut=Hv(v,u);k.length?(Y||(g.polygonStart(),Y=!0),zv(k,qv,ut,c,g)):ut&&(Y||(g.polygonStart(),Y=!0),g.lineStart(),c(null,null,1,g),g.lineEnd()),Y&&(g.polygonEnd(),Y=!1),k=v=null},sphere:function(){g.polygonStart(),g.lineStart(),c(null,null,1,g),g.lineEnd(),g.polygonEnd()}};function z(ut,Rt){n(ut,Rt)&&g.point(ut,Rt)}function $(ut,Rt){C.point(ut,Rt)}function Z(){B.point=$,C.lineStart()}function Q(){B.point=z,C.lineEnd()}function G(ut,Rt){x.push([ut,Rt]),I.point(ut,Rt)}function it(){I.lineStart(),x=[]}function nt(){G(x[0][0],x[0][1]),I.lineEnd();var ut,Rt,Ht,Xt,ve=I.clean(),Yt=D.result(),oe=Yt.length;if(x.pop(),v.push(x),x=null,oe)if(1&ve){if((Rt=(Ht=Yt[0]).length-1)>0){for(Y||(g.polygonStart(),Y=!0),g.lineStart(),ut=0;ut<Rt;++ut)g.point((Xt=Ht[ut])[0],Xt[1]);g.lineEnd()}}else oe>1&&2&ve&&Yt.push(Yt.pop().concat(Yt.shift())),k.push(Yt.filter(S5))}return B}}function S5(n){return n.length>1}function qv(n,i){return((n=n.x)[0]<0?n[1]-li-jn:li-n[1])-((i=i.x)[0]<0?i[1]-li-jn:li-i[1])}const Mg=$v(function(){return!0},function(n){var i,c=NaN,u=NaN,g=NaN;return{lineStart:function(){n.lineStart(),i=1},point:function(v,k){var x=v>0?nr:-nr,C=Ce(v-c);Ce(C-nr)<jn?(n.point(c,u=(u+k)/2>0?li:-li),n.point(g,u),n.lineEnd(),n.lineStart(),n.point(x,u),n.point(v,u),i=0):g!==x&&C>=nr&&(Ce(c-g)<jn&&(c-=g*jn),Ce(v-x)<jn&&(v-=x*jn),u=function(D,I,Y,B){var z,$,Z=on(D-Y);return Ce(Z)>jn?gc((on(I)*($=ln(B))*on(Y)-on(B)*(z=ln(I))*on(D))/(z*$*Z)):(I+B)/2}(c,u,v,k),n.point(g,u),n.lineEnd(),n.lineStart(),n.point(x,u),i=0),n.point(c=v,u=k),g=x},lineEnd:function(){n.lineEnd(),c=u=NaN},clean:function(){return 2-i}}},function(n,i,c,u){var g;if(n==null)g=c*li,u.point(-nr,g),u.point(0,g),u.point(nr,g),u.point(nr,0),u.point(nr,-g),u.point(0,-g),u.point(-nr,-g),u.point(-nr,0),u.point(-nr,g);else if(Ce(n[0]-i[0])>jn){var v=n[0]<i[0]?nr:-nr;g=c*v/2,u.point(-v,g),u.point(0,g),u.point(v,g)}else u.point(i[0],i[1])},[-nr,-li]);function Vv(n){var i=ln(n),c=6*bn,u=i>0,g=Ce(i)>jn;function v(C,D){return ln(C)*ln(D)>i}function k(C,D,I){var Y=[1,0,0],B=_l(fo(C),fo(D)),z=o1(B,B),$=B[0],Z=z-$*$;if(!Z)return!I&&C;var Q=i*z/Z,G=-i*$/Z,it=_l(Y,B),nt=hu(Y,Q);bl(nt,hu(B,G));var ut=it,Rt=o1(nt,ut),Ht=o1(ut,ut),Xt=Rt*Rt-Ht*(o1(nt,nt)-1);if(!(Xt<0)){var ve=mi(Xt),Yt=hu(ut,(-Rt-ve)/Ht);if(bl(Yt,nt),Yt=a1(Yt),!I)return Yt;var oe,ct=C[0],wt=D[0],ee=C[1],Gt=D[1];wt<ct&&(oe=ct,ct=wt,wt=oe);var ie=wt-ct,Ne=Ce(ie-nr)<jn;if(!Ne&&Gt<ee&&(oe=ee,ee=Gt,Gt=oe),Ne||ie<jn?Ne?ee+Gt>0^Yt[1]<(Ce(Yt[0]-ct)<jn?ee:Gt):ee<=Yt[1]&&Yt[1]<=Gt:ie>nr^(ct<=Yt[0]&&Yt[0]<=wt)){var $e=hu(ut,(-Rt+ve)/Ht);return bl($e,nt),[Yt,a1($e)]}}}function x(C,D){var I=u?n:nr-n,Y=0;return C<-I?Y|=1:C>I&&(Y|=2),D<-I?Y|=4:D>I&&(Y|=8),Y}return $v(v,function(C){var D,I,Y,B,z;return{lineStart:function(){B=Y=!1,z=1},point:function($,Z){var Q,G=[$,Z],it=v($,Z),nt=u?it?0:x($,Z):it?x($+($<0?nr:-nr),Z):0;if(!D&&(B=Y=it)&&C.lineStart(),it!==Y&&(!(Q=k(D,G))||f1(D,Q)||f1(G,Q))&&(G[2]=1),it!==Y)z=0,it?(C.lineStart(),Q=k(G,D),C.point(Q[0],Q[1])):(Q=k(D,G),C.point(Q[0],Q[1],2),C.lineEnd()),D=Q;else if(g&&D&&u^it){var ut;nt&I||!(ut=k(G,D,!0))||(z=0,u?(C.lineStart(),C.point(ut[0][0],ut[0][1]),C.point(ut[1][0],ut[1][1]),C.lineEnd()):(C.point(ut[1][0],ut[1][1]),C.lineEnd(),C.lineStart(),C.point(ut[0][0],ut[0][1],3)))}!it||D&&f1(D,G)||C.point(G[0],G[1]),D=G,Y=it,I=nt},lineEnd:function(){Y&&C.lineEnd(),D=null},clean:function(){return z|(B&&Y)<<1}}},function(C,D,I,Y){jv(Y,n,c,I,C,D)},u?[0,-n]:[-nr,n-nr])}var tf=1e9,g1=-tf;function y1(n,i,c,u){function g(D,I){return n<=D&&D<=c&&i<=I&&I<=u}function v(D,I,Y,B){var z=0,$=0;if(D==null||(z=k(D,Y))!==($=k(I,Y))||C(D,I)<0^Y>0)do B.point(z===0||z===3?n:c,z>1?u:i);while((z=(z+Y+4)%4)!==$);else B.point(I[0],I[1])}function k(D,I){return Ce(D[0]-n)<jn?I>0?0:3:Ce(D[0]-c)<jn?I>0?2:1:Ce(D[1]-i)<jn?I>0?1:0:I>0?3:2}function x(D,I){return C(D.x,I.x)}function C(D,I){var Y=k(D,1),B=k(I,1);return Y!==B?Y-B:Y===0?I[1]-D[1]:Y===1?D[0]-I[0]:Y===2?D[1]-I[1]:I[0]-D[0]}return function(D){var I,Y,B,z,$,Z,Q,G,it,nt,ut,Rt=D,Ht=Uv(),Xt={point:ve,lineStart:function(){Xt.point=Yt,Y&&Y.push(B=[]),nt=!0,it=!1,Q=G=NaN},lineEnd:function(){I&&(Yt(z,$),Z&&it&&Ht.rejoin(),I.push(Ht.result())),Xt.point=ve,it&&Rt.lineEnd()},polygonStart:function(){Rt=Ht,I=[],Y=[],ut=!0},polygonEnd:function(){var oe=function(){for(var ee=0,Gt=0,ie=Y.length;Gt<ie;++Gt)for(var Ne,$e,kn=Y[Gt],Kn=1,ur=kn.length,nn=kn[0],Gn=nn[0],An=nn[1];Kn<ur;++Kn)Ne=Gn,$e=An,Gn=(nn=kn[Kn])[0],An=nn[1],$e<=u?An>u&&(Gn-Ne)*(u-$e)>(An-$e)*(n-Ne)&&++ee:An<=u&&(Gn-Ne)*(u-$e)<(An-$e)*(n-Ne)&&--ee;return ee}(),ct=ut&&oe,wt=(I=pe(I)).length;(ct||wt)&&(D.polygonStart(),ct&&(D.lineStart(),v(null,null,1,D),D.lineEnd()),wt&&zv(I,x,oe,v,D),D.polygonEnd()),Rt=D,I=Y=B=null}};function ve(oe,ct){g(oe,ct)&&Rt.point(oe,ct)}function Yt(oe,ct){var wt=g(oe,ct);if(Y&&B.push([oe,ct]),nt)z=oe,$=ct,Z=wt,nt=!1,wt&&(Rt.lineStart(),Rt.point(oe,ct));else if(wt&&it)Rt.point(oe,ct);else{var ee=[Q=Math.max(g1,Math.min(tf,Q)),G=Math.max(g1,Math.min(tf,G))],Gt=[oe=Math.max(g1,Math.min(tf,oe)),ct=Math.max(g1,Math.min(tf,ct))];(function(ie,Ne,$e,kn,Kn,ur){var nn,Gn=ie[0],An=ie[1],vn=0,Fn=1,Pi=Ne[0]-Gn,ki=Ne[1]-An;if(nn=$e-Gn,Pi||!(nn>0)){if(nn/=Pi,Pi<0){if(nn<vn)return;nn<Fn&&(Fn=nn)}else if(Pi>0){if(nn>Fn)return;nn>vn&&(vn=nn)}if(nn=Kn-Gn,Pi||!(nn<0)){if(nn/=Pi,Pi<0){if(nn>Fn)return;nn>vn&&(vn=nn)}else if(Pi>0){if(nn<vn)return;nn<Fn&&(Fn=nn)}if(nn=kn-An,ki||!(nn>0)){if(nn/=ki,ki<0){if(nn<vn)return;nn<Fn&&(Fn=nn)}else if(ki>0){if(nn>Fn)return;nn>vn&&(vn=nn)}if(nn=ur-An,ki||!(nn<0)){if(nn/=ki,ki<0){if(nn>Fn)return;nn>vn&&(vn=nn)}else if(ki>0){if(nn<vn)return;nn<Fn&&(Fn=nn)}return vn>0&&(ie[0]=Gn+vn*Pi,ie[1]=An+vn*ki),Fn<1&&(Ne[0]=Gn+Fn*Pi,Ne[1]=An+Fn*ki),!0}}}}})(ee,Gt,n,i,c,u)?(it||(Rt.lineStart(),Rt.point(ee[0],ee[1])),Rt.point(Gt[0],Gt[1]),wt||Rt.lineEnd(),ut=!1):wt&&(Rt.lineStart(),Rt.point(oe,ct),ut=!1)}Q=oe,G=ct,it=wt}return Xt}}function C5(){var n,i,c,u=0,g=0,v=960,k=500;return c={stream:function(x){return n&&i===x?n:n=y1(u,g,v,k)(i=x)},extent:function(x){return arguments.length?(u=+x[0][0],g=+x[0][1],v=+x[1][0],k=+x[1][1],n=i=null,c):[[u,g],[v,k]]}}}var m1,v1,_1,Ag=pc(),Ml={sphere:kr,point:kr,lineStart:function(){Ml.point=A5,Ml.lineEnd=M5},lineEnd:kr,polygonStart:kr,polygonEnd:kr};function M5(){Ml.point=Ml.lineEnd=kr}function A5(n,i){m1=n*=bn,v1=on(i*=bn),_1=ln(i),Ml.point=D5}function D5(n,i){n*=bn;var c=on(i*=bn),u=ln(i),g=Ce(n-m1),v=ln(g),k=u*on(g),x=_1*c-v1*u*v,C=v1*c+_1*u*v;Ag.add(Ki(mi(k*k+x*x),C)),m1=n,v1=c,_1=u}function Gv(n){return Ag.reset(),Bo(n,Ml),+Ag}var b1=[null,null],N5={type:"LineString",coordinates:b1};function x1(n,i){return b1[0]=n,b1[1]=i,Gv(N5)}var Xv={Feature:function(n,i){return w1(n.geometry,i)},FeatureCollection:function(n,i){for(var c=n.features,u=-1,g=c.length;++u<g;)if(w1(c[u].geometry,i))return!0;return!1}},Dg={Sphere:function(){return!0},Point:function(n,i){return Zv(n.coordinates,i)},MultiPoint:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)if(Zv(c[u],i))return!0;return!1},LineString:function(n,i){return Qv(n.coordinates,i)},MultiLineString:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)if(Qv(c[u],i))return!0;return!1},Polygon:function(n,i){return Jv(n.coordinates,i)},MultiPolygon:function(n,i){for(var c=n.coordinates,u=-1,g=c.length;++u<g;)if(Jv(c[u],i))return!0;return!1},GeometryCollection:function(n,i){for(var c=n.geometries,u=-1,g=c.length;++u<g;)if(w1(c[u],i))return!0;return!1}};function w1(n,i){return!(!n||!Dg.hasOwnProperty(n.type))&&Dg[n.type](n,i)}function Zv(n,i){return x1(n,i)===0}function Qv(n,i){for(var c,u,g,v=0,k=n.length;v<k;v++){if((u=x1(n[v],i))===0||v>0&&(g=x1(n[v],n[v-1]))>0&&c<=g&&u<=g&&(c+u-g)*(1-Math.pow((c-u)/g,2))<Wh*g)return!0;c=u}return!1}function Jv(n,i){return!!Hv(n.map(O5),Kv(i))}function O5(n){return(n=n.map(Kv)).pop(),n}function Kv(n){return[n[0]*bn,n[1]*bn]}function t3(n,i){return(n&&Xv.hasOwnProperty(n.type)?Xv[n.type]:w1)(n,i)}function e3(n,i,c){var u=et(n,i-jn,c).concat(i);return function(g){return u.map(function(v){return[g,v]})}}function n3(n,i,c){var u=et(n,i-jn,c).concat(i);return function(g){return u.map(function(v){return[v,g]})}}function r3(){var n,i,c,u,g,v,k,x,C,D,I,Y,B=10,z=B,$=90,Z=360,Q=2.5;function G(){return{type:"MultiLineString",coordinates:it()}}function it(){return et(as(u/$)*$,c,$).map(I).concat(et(as(x/Z)*Z,k,Z).map(Y)).concat(et(as(i/B)*B,n,B).filter(function(nt){return Ce(nt%$)>jn}).map(C)).concat(et(as(v/z)*z,g,z).filter(function(nt){return Ce(nt%Z)>jn}).map(D))}return G.lines=function(){return it().map(function(nt){return{type:"LineString",coordinates:nt}})},G.outline=function(){return{type:"Polygon",coordinates:[I(u).concat(Y(k).slice(1),I(c).reverse().slice(1),Y(x).reverse().slice(1))]}},G.extent=function(nt){return arguments.length?G.extentMajor(nt).extentMinor(nt):G.extentMinor()},G.extentMajor=function(nt){return arguments.length?(u=+nt[0][0],c=+nt[1][0],x=+nt[0][1],k=+nt[1][1],u>c&&(nt=u,u=c,c=nt),x>k&&(nt=x,x=k,k=nt),G.precision(Q)):[[u,x],[c,k]]},G.extentMinor=function(nt){return arguments.length?(i=+nt[0][0],n=+nt[1][0],v=+nt[0][1],g=+nt[1][1],i>n&&(nt=i,i=n,n=nt),v>g&&(nt=v,v=g,g=nt),G.precision(Q)):[[i,v],[n,g]]},G.step=function(nt){return arguments.length?G.stepMajor(nt).stepMinor(nt):G.stepMinor()},G.stepMajor=function(nt){return arguments.length?($=+nt[0],Z=+nt[1],G):[$,Z]},G.stepMinor=function(nt){return arguments.length?(B=+nt[0],z=+nt[1],G):[B,z]},G.precision=function(nt){return arguments.length?(Q=+nt,C=e3(v,g,90),D=n3(i,n,Q),I=e3(x,k,90),Y=n3(u,c,Q),G):Q},G.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function B5(){return r3()()}function L5(n,i){var c=n[0]*bn,u=n[1]*bn,g=i[0]*bn,v=i[1]*bn,k=ln(u),x=on(u),C=ln(v),D=on(v),I=k*ln(c),Y=k*on(c),B=C*ln(g),z=C*on(g),$=2*va(mi(n1(v-u)+k*C*n1(g-c))),Z=on($),Q=$?function(G){var it=on(G*=$)/Z,nt=on($-G)/Z,ut=nt*I+it*B,Rt=nt*Y+it*z,Ht=nt*x+it*D;return[Ki(Rt,ut)*Yr,Ki(Ht,mi(ut*ut+Rt*Rt))*Yr]}:function(){return[c*Yr,u*Yr]};return Q.distance=$,Q}function ef(n){return n}var i3,a3,k1,T1,E1=pc(),Ng=pc(),Ps={point:kr,lineStart:kr,lineEnd:kr,polygonStart:function(){Ps.lineStart=S1,Ps.lineEnd=s3},polygonEnd:function(){Ps.lineStart=Ps.lineEnd=Ps.point=kr,E1.add(Ce(Ng)),Ng.reset()},result:function(){var n=E1/2;return E1.reset(),n}};function S1(){Ps.point=I5}function I5(n,i){Ps.point=o3,i3=k1=n,a3=T1=i}function o3(n,i){Ng.add(T1*n-k1*i),k1=n,T1=i}function s3(){o3(i3,a3)}const c3=Ps;var Ys=1/0,_c=Ys,ss=-Ys,bc=ss,nf={point:function(n,i){n<Ys&&(Ys=n),n>ss&&(ss=n),i<_c&&(_c=i),i>bc&&(bc=i)},lineStart:kr,lineEnd:kr,polygonStart:kr,polygonEnd:kr,result:function(){var n=[[Ys,_c],[ss,bc]];return ss=bc=-(_c=Ys=1/0),n}};const pu=nf;var xc,rf,Ra,Ro,af=0,Og=0,wc=0,of=0,sf=0,Al=0,cf=0,C1=0,uf=0,Fo={point:cs,lineStart:M1,lineEnd:js,polygonStart:function(){Fo.lineStart=A1,Fo.lineEnd=u3},polygonEnd:function(){Fo.point=cs,Fo.lineStart=M1,Fo.lineEnd=js},result:function(){var n=uf?[cf/uf,C1/uf]:Al?[of/Al,sf/Al]:wc?[af/wc,Og/wc]:[NaN,NaN];return af=Og=wc=of=sf=Al=cf=C1=uf=0,n}};function cs(n,i){af+=n,Og+=i,++wc}function M1(){Fo.point=us}function us(n,i){Fo.point=Po,cs(Ra=n,Ro=i)}function Po(n,i){var c=n-Ra,u=i-Ro,g=mi(c*c+u*u);of+=g*(Ra+n)/2,sf+=g*(Ro+i)/2,Al+=g,cs(Ra=n,Ro=i)}function js(){Fo.point=cs}function A1(){Fo.point=Bg}function u3(){Lg(xc,rf)}function Bg(n,i){Fo.point=Lg,cs(xc=Ra=n,rf=Ro=i)}function Lg(n,i){var c=n-Ra,u=i-Ro,g=mi(c*c+u*u);of+=g*(Ra+n)/2,sf+=g*(Ro+i)/2,Al+=g,cf+=(g=Ro*n-Ra*i)*(Ra+n),C1+=g*(Ro+i),uf+=3*g,cs(Ra=n,Ro=i)}const Ig=Fo;function l3(n){this._context=n}l3.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(n,i){switch(this._point){case 0:this._context.moveTo(n,i),this._point=1;break;case 1:this._context.lineTo(n,i);break;default:this._context.moveTo(n+this._radius,i),this._context.arc(n,i,this._radius,0,Ir)}},result:kr};var Rg,h3,f3,gu,Dl,lf=pc(),Nl={point:kr,lineStart:function(){Nl.point=R5},lineEnd:function(){Rg&&Fg(h3,f3),Nl.point=kr},polygonStart:function(){Rg=!0},polygonEnd:function(){Rg=null},result:function(){var n=+lf;return lf.reset(),n}};function R5(n,i){Nl.point=Fg,h3=gu=n,f3=Dl=i}function Fg(n,i){gu-=n,Dl-=i,lf.add(mi(gu*gu+Dl*Dl)),gu=n,Dl=i}const d3=Nl;function p3(){this._string=[]}function g3(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function F5(n,i){var c,u,g=4.5;function v(k){return k&&(typeof g=="function"&&u.pointRadius(+g.apply(this,arguments)),Bo(k,c(u))),u.result()}return v.area=function(k){return Bo(k,c(c3)),c3.result()},v.measure=function(k){return Bo(k,c(d3)),d3.result()},v.bounds=function(k){return Bo(k,c(pu)),pu.result()},v.centroid=function(k){return Bo(k,c(Ig)),Ig.result()},v.projection=function(k){return arguments.length?(c=k==null?(n=null,ef):(n=k).stream,v):n},v.context=function(k){return arguments.length?(u=k==null?(i=null,new p3):new l3(i=k),typeof g!="function"&&u.pointRadius(g),v):i},v.pointRadius=function(k){return arguments.length?(g=typeof k=="function"?k:(u.pointRadius(+k),+k),v):g},v.projection(n).context(i)}function P5(n){return{stream:hf(n)}}function hf(n){return function(i){var c=new Pg;for(var u in n)c[u]=n[u];return c.stream=i,c}}function Pg(){}function Yg(n,i,c){var u=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),u!=null&&n.clipExtent(null),Bo(c,n.stream(pu)),i(pu.result()),u!=null&&n.clipExtent(u),n}function D1(n,i,c){return Yg(n,function(u){var g=i[1][0]-i[0][0],v=i[1][1]-i[0][1],k=Math.min(g/(u[1][0]-u[0][0]),v/(u[1][1]-u[0][1])),x=+i[0][0]+(g-k*(u[1][0]+u[0][0]))/2,C=+i[0][1]+(v-k*(u[1][1]+u[0][1]))/2;n.scale(150*k).translate([x,C])},c)}function jg(n,i,c){return D1(n,[[0,0],i],c)}function Ug(n,i,c){return Yg(n,function(u){var g=+i,v=g/(u[1][0]-u[0][0]),k=(g-v*(u[1][0]+u[0][0]))/2,x=-v*u[0][1];n.scale(150*v).translate([k,x])},c)}function zg(n,i,c){return Yg(n,function(u){var g=+i,v=g/(u[1][1]-u[0][1]),k=-v*u[0][0],x=(g-v*(u[1][1]+u[0][1]))/2;n.scale(150*v).translate([k,x])},c)}p3.prototype={_radius:4.5,_circle:g3(4.5),pointRadius:function(n){return(n=+n)!==this._radius&&(this._radius=n,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(n,i){switch(this._point){case 0:this._string.push("M",n,",",i),this._point=1;break;case 1:this._string.push("L",n,",",i);break;default:this._circle==null&&(this._circle=g3(this._radius)),this._string.push("M",n,",",i,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}return null}},Pg.prototype={constructor:Pg,point:function(n,i){this.stream.point(n,i)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Y5=ln(30*bn);function y3(n,i){return+i?function(c,u){function g(v,k,x,C,D,I,Y,B,z,$,Z,Q,G,it){var nt=Y-v,ut=B-k,Rt=nt*nt+ut*ut;if(Rt>4*u&&G--){var Ht=C+$,Xt=D+Z,ve=I+Q,Yt=mi(Ht*Ht+Xt*Xt+ve*ve),oe=va(ve/=Yt),ct=Ce(Ce(ve)-1)<jn||Ce(x-z)<jn?(x+z)/2:Ki(Xt,Ht),wt=c(ct,oe),ee=wt[0],Gt=wt[1],ie=ee-v,Ne=Gt-k,$e=ut*ie-nt*Ne;($e*$e/Rt>u||Ce((nt*ie+ut*Ne)/Rt-.5)>.3||C*$+D*Z+I*Q<Y5)&&(g(v,k,x,C,D,I,ee,Gt,ct,Ht/=Yt,Xt/=Yt,ve,G,it),it.point(ee,Gt),g(ee,Gt,ct,Ht,Xt,ve,Y,B,z,$,Z,Q,G,it))}}return function(v){var k,x,C,D,I,Y,B,z,$,Z,Q,G,it={point:nt,lineStart:ut,lineEnd:Ht,polygonStart:function(){v.polygonStart(),it.lineStart=Xt},polygonEnd:function(){v.polygonEnd(),it.lineStart=ut}};function nt(oe,ct){oe=c(oe,ct),v.point(oe[0],oe[1])}function ut(){z=NaN,it.point=Rt,v.lineStart()}function Rt(oe,ct){var wt=fo([oe,ct]),ee=c(oe,ct);g(z,$,B,Z,Q,G,z=ee[0],$=ee[1],B=oe,Z=wt[0],Q=wt[1],G=wt[2],16,v),v.point(z,$)}function Ht(){it.point=nt,v.lineEnd()}function Xt(){ut(),it.point=ve,it.lineEnd=Yt}function ve(oe,ct){Rt(k=oe,ct),x=z,C=$,D=Z,I=Q,Y=G,it.point=Rt}function Yt(){g(z,$,B,Z,Q,G,x,C,k,D,I,Y,16,v),it.lineEnd=Ht,Ht()}return it}}(n,i):function(c){return hf({point:function(u,g){u=c(u,g),this.stream.point(u[0],u[1])}})}(n)}var j5=hf({point:function(n,i){this.stream.point(n*bn,i*bn)}});function U5(n,i,c,u,g){function v(k,x){return[i+n*(k*=u),c-n*(x*=g)]}return v.invert=function(k,x){return[(k-i)/n*u,(c-x)/n*g]},v}function m3(n,i,c,u,g,v){var k=ln(v),x=on(v),C=k*n,D=x*n,I=k/n,Y=x/n,B=(x*c-k*i)/n,z=(x*i+k*c)/n;function $(Z,Q){return[C*(Z*=u)-D*(Q*=g)+i,c-D*Z-C*Q]}return $.invert=function(Z,Q){return[u*(I*Z-Y*Q+B),g*(z-Y*Z-I*Q)]},$}function Yo(n){return Wg(function(){return n})()}function Wg(n){var i,c,u,g,v,k,x,C,D,I,Y=150,B=480,z=250,$=0,Z=0,Q=0,G=0,it=0,nt=0,ut=1,Rt=1,Ht=null,Xt=Mg,ve=null,Yt=ef,oe=.5;function ct(ie){return C(ie[0]*bn,ie[1]*bn)}function wt(ie){return(ie=C.invert(ie[0],ie[1]))&&[ie[0]*Yr,ie[1]*Yr]}function ee(){var ie=m3(Y,0,0,ut,Rt,nt).apply(null,i($,Z)),Ne=(nt?m3:U5)(Y,B-ie[0],z-ie[1],ut,Rt,nt);return c=h1(Q,G,it),x=Tg(i,Ne),C=Tg(c,x),k=y3(x,oe),Gt()}function Gt(){return D=I=null,ct}return ct.stream=function(ie){return D&&I===ie?D:D=j5(function(Ne){return hf({point:function($e,kn){var Kn=Ne($e,kn);return this.stream.point(Kn[0],Kn[1])}})}(c)(Xt(k(Yt(I=ie)))))},ct.preclip=function(ie){return arguments.length?(Xt=ie,Ht=void 0,Gt()):Xt},ct.postclip=function(ie){return arguments.length?(Yt=ie,ve=u=g=v=null,Gt()):Yt},ct.clipAngle=function(ie){return arguments.length?(Xt=+ie?Vv(Ht=ie*bn):(Ht=null,Mg),Gt()):Ht*Yr},ct.clipExtent=function(ie){return arguments.length?(Yt=ie==null?(ve=u=g=v=null,ef):y1(ve=+ie[0][0],u=+ie[0][1],g=+ie[1][0],v=+ie[1][1]),Gt()):ve==null?null:[[ve,u],[g,v]]},ct.scale=function(ie){return arguments.length?(Y=+ie,ee()):Y},ct.translate=function(ie){return arguments.length?(B=+ie[0],z=+ie[1],ee()):[B,z]},ct.center=function(ie){return arguments.length?($=ie[0]%360*bn,Z=ie[1]%360*bn,ee()):[$*Yr,Z*Yr]},ct.rotate=function(ie){return arguments.length?(Q=ie[0]%360*bn,G=ie[1]%360*bn,it=ie.length>2?ie[2]%360*bn:0,ee()):[Q*Yr,G*Yr,it*Yr]},ct.angle=function(ie){return arguments.length?(nt=ie%360*bn,ee()):nt*Yr},ct.reflectX=function(ie){return arguments.length?(ut=ie?-1:1,ee()):ut<0},ct.reflectY=function(ie){return arguments.length?(Rt=ie?-1:1,ee()):Rt<0},ct.precision=function(ie){return arguments.length?(k=y3(x,oe=ie*ie),Gt()):mi(oe)},ct.fitExtent=function(ie,Ne){return D1(ct,ie,Ne)},ct.fitSize=function(ie,Ne){return jg(ct,ie,Ne)},ct.fitWidth=function(ie,Ne){return Ug(ct,ie,Ne)},ct.fitHeight=function(ie,Ne){return zg(ct,ie,Ne)},function(){return i=n.apply(this,arguments),ct.invert=i.invert&&wt,ee()}}function Hg(n){var i=0,c=nr/3,u=Wg(n),g=u(i,c);return g.parallels=function(v){return arguments.length?u(i=v[0]*bn,c=v[1]*bn):[i*Yr,c*Yr]},g}function v3(n,i){var c=on(n),u=(c+on(i))/2;if(Ce(u)<jn)return function(x){var C=ln(x);function D(I,Y){return[I*C,on(Y)/C]}return D.invert=function(I,Y){return[I/C,va(Y*C)]},D}(n);var g=1+c*(2*u-c),v=mi(g)/u;function k(x,C){var D=mi(g-2*u*on(C))/u;return[D*on(x*=u),v-D*ln(x)]}return k.invert=function(x,C){var D=v-C,I=Ki(x,Ce(D))*wr(D);return D*u<0&&(I-=nr*wr(x)*wr(D)),[I/u,va((g-(x*x+D*D)*u*u)/(2*u))]},k}function N1(){return Hg(v3).scale(155.424).center([0,33.6442])}function _3(){return N1().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Us(){var n,i,c,u,g,v,k=_3(),x=N1().rotate([154,0]).center([-2,58.5]).parallels([55,65]),C=N1().rotate([157,0]).center([-3,19.9]).parallels([8,18]),D={point:function(B,z){v=[B,z]}};function I(B){var z=B[0],$=B[1];return v=null,c.point(z,$),v||(u.point(z,$),v)||(g.point(z,$),v)}function Y(){return n=i=null,I}return I.invert=function(B){var z=k.scale(),$=k.translate(),Z=(B[0]-$[0])/z,Q=(B[1]-$[1])/z;return(Q>=.12&&Q<.234&&Z>=-.425&&Z<-.214?x:Q>=.166&&Q<.234&&Z>=-.214&&Z<-.115?C:k).invert(B)},I.stream=function(B){return n&&i===B?n:(z=[k.stream(i=B),x.stream(B),C.stream(B)],$=z.length,n={point:function(Z,Q){for(var G=-1;++G<$;)z[G].point(Z,Q)},sphere:function(){for(var Z=-1;++Z<$;)z[Z].sphere()},lineStart:function(){for(var Z=-1;++Z<$;)z[Z].lineStart()},lineEnd:function(){for(var Z=-1;++Z<$;)z[Z].lineEnd()},polygonStart:function(){for(var Z=-1;++Z<$;)z[Z].polygonStart()},polygonEnd:function(){for(var Z=-1;++Z<$;)z[Z].polygonEnd()}});var z,$},I.precision=function(B){return arguments.length?(k.precision(B),x.precision(B),C.precision(B),Y()):k.precision()},I.scale=function(B){return arguments.length?(k.scale(B),x.scale(.35*B),C.scale(B),I.translate(k.translate())):k.scale()},I.translate=function(B){if(!arguments.length)return k.translate();var z=k.scale(),$=+B[0],Z=+B[1];return c=k.translate(B).clipExtent([[$-.455*z,Z-.238*z],[$+.455*z,Z+.238*z]]).stream(D),u=x.translate([$-.307*z,Z+.201*z]).clipExtent([[$-.425*z+jn,Z+.12*z+jn],[$-.214*z-jn,Z+.234*z-jn]]).stream(D),g=C.translate([$-.205*z,Z+.212*z]).clipExtent([[$-.214*z+jn,Z+.166*z+jn],[$-.115*z-jn,Z+.234*z-jn]]).stream(D),Y()},I.fitExtent=function(B,z){return D1(I,B,z)},I.fitSize=function(B,z){return jg(I,B,z)},I.fitWidth=function(B,z){return Ug(I,B,z)},I.fitHeight=function(B,z){return zg(I,B,z)},I.scale(1070)}function $g(n){return function(i,c){var u=ln(i),g=ln(c),v=n(u*g);return[v*g*on(i),v*on(c)]}}function eo(n){return function(i,c){var u=mi(i*i+c*c),g=n(u),v=on(g),k=ln(g);return[Ki(i*v,u*k),va(u&&c*v/u)]}}var qg=$g(function(n){return mi(2/(1+n))});function z5(){return Yo(qg).scale(124.75).clipAngle(179.999)}qg.invert=eo(function(n){return 2*va(n/2)});var Vg=$g(function(n){return(n=yc(n))&&n/on(n)});function Gg(){return Yo(Vg).scale(79.4188).clipAngle(179.999)}function ff(n,i){return[n,yl(qi((li+i)/2))]}function W5(){return Xg(ff).scale(961/Ir)}function Xg(n){var i,c,u,g=Yo(n),v=g.center,k=g.scale,x=g.translate,C=g.clipExtent,D=null;function I(){var Y=nr*k(),B=g(Eg(g.rotate()).invert([0,0]));return C(D==null?[[B[0]-Y,B[1]-Y],[B[0]+Y,B[1]+Y]]:n===ff?[[Math.max(B[0]-Y,D),i],[Math.min(B[0]+Y,c),u]]:[[D,Math.max(B[1]-Y,i)],[c,Math.min(B[1]+Y,u)]])}return g.scale=function(Y){return arguments.length?(k(Y),I()):k()},g.translate=function(Y){return arguments.length?(x(Y),I()):x()},g.center=function(Y){return arguments.length?(v(Y),I()):v()},g.clipExtent=function(Y){return arguments.length?(Y==null?D=i=c=u=null:(D=+Y[0][0],i=+Y[0][1],c=+Y[1][0],u=+Y[1][1]),I()):D==null?null:[[D,i],[c,u]]},I()}function df(n){return qi((li+n)/2)}function Zg(n,i){var c=ln(n),u=n===i?on(n):yl(c/ln(i))/yl(df(i)/df(n)),g=c*e1(df(n),u)/u;if(!u)return ff;function v(k,x){g>0?x<-li+jn&&(x=-li+jn):x>li-jn&&(x=li-jn);var C=g/e1(df(x),u);return[C*on(u*k),g-C*ln(u*k)]}return v.invert=function(k,x){var C=g-x,D=wr(u)*mi(k*k+C*C),I=Ki(k,Ce(C))*wr(C);return C*u<0&&(I-=nr*wr(k)*wr(C)),[I/u,2*gc(e1(g/D,1/u))-li]},v}function H5(){return Hg(Zg).scale(109.5).parallels([30,30])}function pf(n,i){return[n,i]}function $5(){return Yo(pf).scale(152.63)}function b3(n,i){var c=ln(n),u=n===i?on(n):(c-ln(i))/(i-n),g=c/u+n;if(Ce(u)<jn)return pf;function v(k,x){var C=g-x,D=u*k;return[C*on(D),g-C*ln(D)]}return v.invert=function(k,x){var C=g-x,D=Ki(k,Ce(C))*wr(C);return C*u<0&&(D-=nr*wr(k)*wr(C)),[D/u,g-wr(u)*mi(k*k+C*C)]},v}function x3(){return Hg(b3).scale(131.154).center([0,13.9389])}Vg.invert=eo(function(n){return n}),ff.invert=function(n,i){return[n,2*gc(Mv(i))-li]},pf.invert=pf;var kc=1.340264,gf=-.081106,yf=893e-6,mf=.003796,O1=mi(3)/2;function Qg(n,i){var c=va(O1*on(i)),u=c*c,g=u*u*u;return[n*ln(c)/(O1*(kc+3*gf*u+g*(7*yf+9*mf*u))),c*(kc+gf*u+g*(yf+mf*u))]}function q5(){return Yo(Qg).scale(177.158)}function vf(n,i){var c=ln(i),u=ln(n)*c;return[c*on(n)/u,on(i)/u]}function w3(){return Yo(vf).scale(144.049).clipAngle(60)}function B1(){var n,i,c,u,g,v,k,x=1,C=0,D=0,I=1,Y=1,B=0,z=null,$=1,Z=1,Q=hf({point:function(ut,Rt){var Ht=nt([ut,Rt]);this.stream.point(Ht[0],Ht[1])}}),G=ef;function it(){return $=x*I,Z=x*Y,v=k=null,nt}function nt(ut){var Rt=ut[0]*$,Ht=ut[1]*Z;if(B){var Xt=Ht*n-Rt*i;Rt=Rt*n+Ht*i,Ht=Xt}return[Rt+C,Ht+D]}return nt.invert=function(ut){var Rt=ut[0]-C,Ht=ut[1]-D;if(B){var Xt=Ht*n+Rt*i;Rt=Rt*n-Ht*i,Ht=Xt}return[Rt/$,Ht/Z]},nt.stream=function(ut){return v&&k===ut?v:v=Q(G(k=ut))},nt.postclip=function(ut){return arguments.length?(G=ut,z=c=u=g=null,it()):G},nt.clipExtent=function(ut){return arguments.length?(G=ut==null?(z=c=u=g=null,ef):y1(z=+ut[0][0],c=+ut[0][1],u=+ut[1][0],g=+ut[1][1]),it()):z==null?null:[[z,c],[u,g]]},nt.scale=function(ut){return arguments.length?(x=+ut,it()):x},nt.translate=function(ut){return arguments.length?(C=+ut[0],D=+ut[1],it()):[C,D]},nt.angle=function(ut){return arguments.length?(i=on(B=ut%360*bn),n=ln(B),it()):B*Yr},nt.reflectX=function(ut){return arguments.length?(I=ut?-1:1,it()):I<0},nt.reflectY=function(ut){return arguments.length?(Y=ut?-1:1,it()):Y<0},nt.fitExtent=function(ut,Rt){return D1(nt,ut,Rt)},nt.fitSize=function(ut,Rt){return jg(nt,ut,Rt)},nt.fitWidth=function(ut,Rt){return Ug(nt,ut,Rt)},nt.fitHeight=function(ut,Rt){return zg(nt,ut,Rt)},nt}function Jg(n,i){var c=i*i,u=c*c;return[n*(.8707-.131979*c+u*(u*(.003971*c-.001529*u)-.013791)),i*(1.007226+c*(.015085+u*(.028874*c-.044475-.005916*u)))]}function V5(){return Yo(Jg).scale(175.295)}function Kg(n,i){return[ln(i)*on(n),on(i)]}function G5(){return Yo(Kg).scale(249.5).clipAngle(90.000001)}function ty(n,i){var c=ln(i),u=1+ln(n)*c;return[c*on(n)/u,on(i)/u]}function X5(){return Yo(ty).scale(250).clipAngle(142)}function L1(n,i){return[yl(qi((li+i)/2)),-n]}function Z5(){var n=Xg(L1),i=n.center,c=n.rotate;return n.center=function(u){return arguments.length?i([-u[1],u[0]]):[(u=i())[1],-u[0]]},n.rotate=function(u){return arguments.length?c([u[0],u[1],u.length>2?u[2]+90:90]):[(u=c())[0],u[1],u[2]-90]},c([0,0,90]).scale(159.155)}function Q5(n,i){return n.parent===i.parent?1:2}function J5(n,i){return n+i.x}function Ol(n,i){return Math.max(n,i.y)}function K5(){var n=Q5,i=1,c=1,u=!1;function g(v){var k,x=0;v.eachAfter(function(B){var z=B.children;z?(B.x=function($){return $.reduce(J5,0)/$.length}(z),B.y=function($){return 1+$.reduce(Ol,0)}(z)):(B.x=k?x+=n(B,k):0,B.y=0,k=B)});var C=function(B){for(var z;z=B.children;)B=z[0];return B}(v),D=function(B){for(var z;z=B.children;)B=z[z.length-1];return B}(v),I=C.x-n(C,D)/2,Y=D.x+n(D,C)/2;return v.eachAfter(u?function(B){B.x=(B.x-v.x)*i,B.y=(v.y-B.y)*c}:function(B){B.x=(B.x-I)/(Y-I)*i,B.y=(1-(v.y?B.y/v.y:1))*c})}return g.separation=function(v){return arguments.length?(n=v,g):n},g.size=function(v){return arguments.length?(u=!1,i=+v[0],c=+v[1],g):u?null:[i,c]},g.nodeSize=function(v){return arguments.length?(u=!0,i=+v[0],c=+v[1],g):u?[i,c]:null},g}function tx(n){var i=0,c=n.children,u=c&&c.length;if(u)for(;--u>=0;)i+=c[u].value;else i=1;n.value=i}function ey(n,i){var c,u,g,v,k,x=new yu(n),C=+n.value&&(x.value=n.value),D=[x];for(i==null&&(i=k3);c=D.pop();)if(C&&(c.value=+c.data.value),(g=i(c.data))&&(k=g.length))for(c.children=new Array(k),v=k-1;v>=0;--v)D.push(u=c.children[v]=new yu(g[v])),u.parent=c,u.depth=c.depth+1;return x.eachBefore(ry)}function k3(n){return n.children}function ny(n){n.data=n.data.data}function ry(n){var i=0;do n.height=i;while((n=n.parent)&&n.height<++i)}function yu(n){this.data=n,this.depth=this.height=0,this.parent=null}Qg.invert=function(n,i){for(var c,u=i,g=u*u,v=g*g*g,k=0;k<12&&(v=(g=(u-=c=(u*(kc+gf*g+v*(yf+mf*g))-i)/(kc+3*gf*g+v*(7*yf+9*mf*g)))*u)*g*g,!(Ce(c)<Wh));++k);return[O1*n*(kc+3*gf*g+v*(7*yf+9*mf*g))/ln(u),va(on(u)/O1)]},vf.invert=eo(gc),Jg.invert=function(n,i){var c,u=i,g=25;do{var v=u*u,k=v*v;u-=c=(u*(1.007226+v*(.015085+k*(.028874*v-.044475-.005916*k)))-i)/(1.007226+v*(.045255+k*(.259866*v-.311325-.005916*11*k)))}while(Ce(c)>jn&&--g>0);return[n/(.8707+(v=u*u)*(v*(v*v*v*(.003971-.001529*v)-.013791)-.131979)),u]},Kg.invert=eo(va),ty.invert=eo(function(n){return 2*gc(n)}),L1.invert=function(n,i){return[-i,2*gc(Mv(n))-li]},yu.prototype=ey.prototype={constructor:yu,count:function(){return this.eachAfter(tx)},each:function(n){var i,c,u,g,v=this,k=[v];do for(i=k.reverse(),k=[];v=i.pop();)if(n(v),c=v.children)for(u=0,g=c.length;u<g;++u)k.push(c[u]);while(k.length);return this},eachAfter:function(n){for(var i,c,u,g=this,v=[g],k=[];g=v.pop();)if(k.push(g),i=g.children)for(c=0,u=i.length;c<u;++c)v.push(i[c]);for(;g=k.pop();)n(g);return this},eachBefore:function(n){for(var i,c,u=this,g=[u];u=g.pop();)if(n(u),i=u.children)for(c=i.length-1;c>=0;--c)g.push(i[c]);return this},sum:function(n){return this.eachAfter(function(i){for(var c=+n(i.data)||0,u=i.children,g=u&&u.length;--g>=0;)c+=u[g].value;i.value=c})},sort:function(n){return this.eachBefore(function(i){i.children&&i.children.sort(n)})},path:function(n){for(var i=this,c=function(v,k){if(v===k)return v;var x=v.ancestors(),C=k.ancestors(),D=null;for(v=x.pop(),k=C.pop();v===k;)D=v,v=x.pop(),k=C.pop();return D}(i,n),u=[i];i!==c;)i=i.parent,u.push(i);for(var g=u.length;n!==c;)u.splice(g,0,n),n=n.parent;return u},ancestors:function(){for(var n=this,i=[n];n=n.parent;)i.push(n);return i},descendants:function(){var n=[];return this.each(function(i){n.push(i)}),n},leaves:function(){var n=[];return this.eachBefore(function(i){i.children||n.push(i)}),n},links:function(){var n=this,i=[];return n.each(function(c){c!==n&&i.push({source:c.parent,target:c})}),i},copy:function(){return ey(this).eachBefore(ny)}};var T3=Array.prototype.slice;function E3(n){for(var i,c,u=0,g=(n=function(k){for(var x,C,D=k.length;D;)C=Math.random()*D--|0,x=k[D],k[D]=k[C],k[C]=x;return k}(T3.call(n))).length,v=[];u<g;)i=n[u],c&&S3(c,i)?++u:(c=nx(v=ex(v,i)),u=0);return c}function ex(n,i){var c,u;if(iy(i,n))return[i];for(c=0;c<n.length;++c)if(I1(i,n[c])&&iy(_f(n[c],i),n))return[n[c],i];for(c=0;c<n.length-1;++c)for(u=c+1;u<n.length;++u)if(I1(_f(n[c],n[u]),i)&&I1(_f(n[c],i),n[u])&&I1(_f(n[u],i),n[c])&&iy(C3(n[c],n[u],i),n))return[n[c],n[u],i];throw new Error}function I1(n,i){var c=n.r-i.r,u=i.x-n.x,g=i.y-n.y;return c<0||c*c<u*u+g*g}function S3(n,i){var c=n.r-i.r+1e-6,u=i.x-n.x,g=i.y-n.y;return c>0&&c*c>u*u+g*g}function iy(n,i){for(var c=0;c<i.length;++c)if(!S3(n,i[c]))return!1;return!0}function nx(n){switch(n.length){case 1:return function(i){return{x:i.x,y:i.y,r:i.r}}(n[0]);case 2:return _f(n[0],n[1]);case 3:return C3(n[0],n[1],n[2])}}function _f(n,i){var c=n.x,u=n.y,g=n.r,v=i.x,k=i.y,x=i.r,C=v-c,D=k-u,I=x-g,Y=Math.sqrt(C*C+D*D);return{x:(c+v+C/Y*I)/2,y:(u+k+D/Y*I)/2,r:(Y+g+x)/2}}function C3(n,i,c){var u=n.x,g=n.y,v=n.r,k=i.x,x=i.y,C=i.r,D=c.x,I=c.y,Y=c.r,B=u-k,z=u-D,$=g-x,Z=g-I,Q=C-v,G=Y-v,it=u*u+g*g-v*v,nt=it-k*k-x*x+C*C,ut=it-D*D-I*I+Y*Y,Rt=z*$-B*Z,Ht=($*ut-Z*nt)/(2*Rt)-u,Xt=(Z*Q-$*G)/Rt,ve=(z*nt-B*ut)/(2*Rt)-g,Yt=(B*G-z*Q)/Rt,oe=Xt*Xt+Yt*Yt-1,ct=2*(v+Ht*Xt+ve*Yt),wt=Ht*Ht+ve*ve-v*v,ee=-(oe?(ct+Math.sqrt(ct*ct-4*oe*wt))/(2*oe):wt/ct);return{x:u+Ht+Xt*ee,y:g+ve+Yt*ee,r:ee}}function M3(n,i,c){var u,g,v,k,x=n.x-i.x,C=n.y-i.y,D=x*x+C*C;D?(g=i.r+c.r,g*=g,k=n.r+c.r,g>(k*=k)?(u=(D+k-g)/(2*D),v=Math.sqrt(Math.max(0,k/D-u*u)),c.x=n.x-u*x-v*C,c.y=n.y-u*C+v*x):(u=(D+g-k)/(2*D),v=Math.sqrt(Math.max(0,g/D-u*u)),c.x=i.x+u*x-v*C,c.y=i.y+u*C+v*x)):(c.x=i.x+c.r,c.y=i.y)}function A3(n,i){var c=n.r+i.r-1e-6,u=i.x-n.x,g=i.y-n.y;return c>0&&c*c>u*u+g*g}function D3(n){var i=n._,c=n.next._,u=i.r+c.r,g=(i.x*c.r+c.x*i.r)/u,v=(i.y*c.r+c.y*i.r)/u;return g*g+v*v}function R1(n){this._=n,this.next=null,this.previous=null}function N3(n){if(!(g=n.length))return 0;var i,c,u,g,v,k,x,C,D,I,Y;if((i=n[0]).x=0,i.y=0,!(g>1))return i.r;if(c=n[1],i.x=-c.r,c.x=i.r,c.y=0,!(g>2))return i.r+c.r;M3(c,i,u=n[2]),i=new R1(i),c=new R1(c),u=new R1(u),i.next=u.previous=c,c.next=i.previous=u,u.next=c.previous=i;t:for(x=3;x<g;++x){M3(i._,c._,u=n[x]),u=new R1(u),C=c.next,D=i.previous,I=c._.r,Y=i._.r;do if(I<=Y){if(A3(C._,u._)){c=C,i.next=c,c.previous=i,--x;continue t}I+=C._.r,C=C.next}else{if(A3(D._,u._)){(i=D).next=c,c.previous=i,--x;continue t}Y+=D._.r,D=D.previous}while(C!==D.next);for(u.previous=i,u.next=c,i.next=c.previous=c=u,v=D3(i);(u=u.next)!==c;)(k=D3(u))<v&&(i=u,v=k);c=i.next}for(i=[c._],u=c;(u=u.next)!==c;)i.push(u._);for(u=E3(i),x=0;x<g;++x)(i=n[x]).x-=u.x,i.y-=u.y;return u.r}function O3(n){return N3(n),n}function rx(n){return n==null?null:F1(n)}function F1(n){if(typeof n!="function")throw new Error;return n}function mu(){return 0}function Bl(n){return function(){return n}}function ix(n){return Math.sqrt(n.value)}function ax(){var n=null,i=1,c=1,u=mu;function g(v){return v.x=i/2,v.y=c/2,n?v.eachBefore(B3(n)).eachAfter(P1(u,.5)).eachBefore(L3(1)):v.eachBefore(B3(ix)).eachAfter(P1(mu,1)).eachAfter(P1(u,v.r/Math.min(i,c))).eachBefore(L3(Math.min(i,c)/(2*v.r))),v}return g.radius=function(v){return arguments.length?(n=rx(v),g):n},g.size=function(v){return arguments.length?(i=+v[0],c=+v[1],g):[i,c]},g.padding=function(v){return arguments.length?(u=typeof v=="function"?v:Bl(+v),g):u},g}function B3(n){return function(i){i.children||(i.r=Math.max(0,+n(i)||0))}}function P1(n,i){return function(c){if(u=c.children){var u,g,v,k=u.length,x=n(c)*i||0;if(x)for(g=0;g<k;++g)u[g].r+=x;if(v=N3(u),x)for(g=0;g<k;++g)u[g].r-=x;c.r=v+x}}}function L3(n){return function(i){var c=i.parent;i.r*=n,c&&(i.x=c.x+n*i.x,i.y=c.y+n*i.y)}}function I3(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function bf(n,i,c,u,g){for(var v,k=n.children,x=-1,C=k.length,D=n.value&&(u-i)/n.value;++x<C;)(v=k[x]).y0=c,v.y1=g,v.x0=i,v.x1=i+=v.value*D}function jo(){var n=1,i=1,c=0,u=!1;function g(v){var k=v.height+1;return v.x0=v.y0=c,v.x1=n,v.y1=i/k,v.eachBefore(function(x,C){return function(D){D.children&&bf(D,D.x0,x*(D.depth+1)/C,D.x1,x*(D.depth+2)/C);var I=D.x0,Y=D.y0,B=D.x1-c,z=D.y1-c;B<I&&(I=B=(I+B)/2),z<Y&&(Y=z=(Y+z)/2),D.x0=I,D.y0=Y,D.x1=B,D.y1=z}}(i,k)),u&&v.eachBefore(I3),v}return g.round=function(v){return arguments.length?(u=!!v,g):u},g.size=function(v){return arguments.length?(n=+v[0],i=+v[1],g):[n,i]},g.padding=function(v){return arguments.length?(c=+v,g):c},g}var R3={depth:-1},xf={};function ox(n){return n.id}function F3(n){return n.parentId}function Y1(){var n=ox,i=F3;function c(u){var g,v,k,x,C,D,I,Y=u.length,B=new Array(Y),z={};for(v=0;v<Y;++v)g=u[v],C=B[v]=new yu(g),(D=n(g,v,u))!=null&&(D+="")&&(z[I="$"+(C.id=D)]=I in z?xf:C);for(v=0;v<Y;++v)if(C=B[v],(D=i(u[v],v,u))!=null&&(D+="")){if(!(x=z["$"+D]))throw new Error("missing: "+D);if(x===xf)throw new Error("ambiguous: "+D);x.children?x.children.push(C):x.children=[C],C.parent=x}else{if(k)throw new Error("multiple roots");k=C}if(!k)throw new Error("no root");if(k.parent=R3,k.eachBefore(function($){$.depth=$.parent.depth+1,--Y}).eachBefore(ry),k.parent=null,Y>0)throw new Error("cycle");return k}return c.id=function(u){return arguments.length?(n=F1(u),c):n},c.parentId=function(u){return arguments.length?(i=F1(u),c):i},c}function sx(n,i){return n.parent===i.parent?1:2}function ay(n){var i=n.children;return i?i[0]:n.t}function j1(n){var i=n.children;return i?i[i.length-1]:n.t}function cx(n,i,c){var u=c/(i.i-n.i);i.c-=u,i.s+=c,n.c+=u,i.z+=c,i.m+=c}function U1(n,i,c){return n.a.parent===i.parent?n.a:c}function Tc(n,i){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=i}function Ll(){var n=sx,i=1,c=1,u=null;function g(C){var D=function(G){for(var it,nt,ut,Rt,Ht,Xt=new Tc(G,0),ve=[Xt];it=ve.pop();)if(ut=it._.children)for(it.children=new Array(Ht=ut.length),Rt=Ht-1;Rt>=0;--Rt)ve.push(nt=it.children[Rt]=new Tc(ut[Rt],Rt)),nt.parent=it;return(Xt.parent=new Tc(null,0)).children=[Xt],Xt}(C);if(D.eachAfter(v),D.parent.m=-D.z,D.eachBefore(k),u)C.eachBefore(x);else{var I=C,Y=C,B=C;C.eachBefore(function(G){G.x<I.x&&(I=G),G.x>Y.x&&(Y=G),G.depth>B.depth&&(B=G)});var z=I===Y?1:n(I,Y)/2,$=z-I.x,Z=i/(Y.x+z+$),Q=c/(B.depth||1);C.eachBefore(function(G){G.x=(G.x+$)*Z,G.y=G.depth*Q})}return C}function v(C){var D=C.children,I=C.parent.children,Y=C.i?I[C.i-1]:null;if(D){(function(z){for(var $,Z=0,Q=0,G=z.children,it=G.length;--it>=0;)($=G[it]).z+=Z,$.m+=Z,Z+=$.s+(Q+=$.c)})(C);var B=(D[0].z+D[D.length-1].z)/2;Y?(C.z=Y.z+n(C._,Y._),C.m=C.z-B):C.z=B}else Y&&(C.z=Y.z+n(C._,Y._));C.parent.A=function(z,$,Z){if($){for(var Q,G=z,it=z,nt=$,ut=G.parent.children[0],Rt=G.m,Ht=it.m,Xt=nt.m,ve=ut.m;nt=j1(nt),G=ay(G),nt&&G;)ut=ay(ut),(it=j1(it)).a=z,(Q=nt.z+Xt-G.z-Rt+n(nt._,G._))>0&&(cx(U1(nt,z,Z),z,Q),Rt+=Q,Ht+=Q),Xt+=nt.m,Rt+=G.m,ve+=ut.m,Ht+=it.m;nt&&!j1(it)&&(it.t=nt,it.m+=Xt-Ht),G&&!ay(ut)&&(ut.t=G,ut.m+=Rt-ve,Z=z)}return Z}(C,Y,C.parent.A||I[0])}function k(C){C._.x=C.z+C.parent.m,C.m+=C.parent.m}function x(C){C.x*=i,C.y=C.depth*c}return g.separation=function(C){return arguments.length?(n=C,g):n},g.size=function(C){return arguments.length?(u=!1,i=+C[0],c=+C[1],g):u?null:[i,c]},g.nodeSize=function(C){return arguments.length?(u=!0,i=+C[0],c=+C[1],g):u?[i,c]:null},g}function Ec(n,i,c,u,g){for(var v,k=n.children,x=-1,C=k.length,D=n.value&&(g-c)/n.value;++x<C;)(v=k[x]).x0=i,v.x1=u,v.y0=c,v.y1=c+=v.value*D}Tc.prototype=Object.create(yu.prototype);var Il=(1+Math.sqrt(5))/2;function wf(n,i,c,u,g,v){for(var k,x,C,D,I,Y,B,z,$,Z,Q,G=[],it=i.children,nt=0,ut=0,Rt=it.length,Ht=i.value;nt<Rt;){C=g-c,D=v-u;do I=it[ut++].value;while(!I&&ut<Rt);for(Y=B=I,Q=I*I*(Z=Math.max(D/C,C/D)/(Ht*n)),$=Math.max(B/Q,Q/Y);ut<Rt;++ut){if(I+=x=it[ut].value,x<Y&&(Y=x),x>B&&(B=x),Q=I*I*Z,(z=Math.max(B/Q,Q/Y))>$){I-=x;break}$=z}G.push(k={value:I,dice:C<D,children:it.slice(nt,ut)}),k.dice?bf(k,c,u,g,Ht?u+=D*I/Ht:v):Ec(k,c,u,Ht?c+=C*I/Ht:g,v),Ht-=I,nt=ut}return G}const Sc=function n(i){function c(u,g,v,k,x){wf(i,u,g,v,k,x)}return c.ratio=function(u){return n((u=+u)>1?u:1)},c}(Il);function z1(){var n=Sc,i=!1,c=1,u=1,g=[0],v=mu,k=mu,x=mu,C=mu,D=mu;function I(B){return B.x0=B.y0=0,B.x1=c,B.y1=u,B.eachBefore(Y),g=[0],i&&B.eachBefore(I3),B}function Y(B){var z=g[B.depth],$=B.x0+z,Z=B.y0+z,Q=B.x1-z,G=B.y1-z;Q<$&&($=Q=($+Q)/2),G<Z&&(Z=G=(Z+G)/2),B.x0=$,B.y0=Z,B.x1=Q,B.y1=G,B.children&&(z=g[B.depth+1]=v(B)/2,$+=D(B)-z,Z+=k(B)-z,(Q-=x(B)-z)<$&&($=Q=($+Q)/2),(G-=C(B)-z)<Z&&(Z=G=(Z+G)/2),n(B,$,Z,Q,G))}return I.round=function(B){return arguments.length?(i=!!B,I):i},I.size=function(B){return arguments.length?(c=+B[0],u=+B[1],I):[c,u]},I.tile=function(B){return arguments.length?(n=F1(B),I):n},I.padding=function(B){return arguments.length?I.paddingInner(B).paddingOuter(B):I.paddingInner()},I.paddingInner=function(B){return arguments.length?(v=typeof B=="function"?B:Bl(+B),I):v},I.paddingOuter=function(B){return arguments.length?I.paddingTop(B).paddingRight(B).paddingBottom(B).paddingLeft(B):I.paddingTop()},I.paddingTop=function(B){return arguments.length?(k=typeof B=="function"?B:Bl(+B),I):k},I.paddingRight=function(B){return arguments.length?(x=typeof B=="function"?B:Bl(+B),I):x},I.paddingBottom=function(B){return arguments.length?(C=typeof B=="function"?B:Bl(+B),I):C},I.paddingLeft=function(B){return arguments.length?(D=typeof B=="function"?B:Bl(+B),I):D},I}function kf(n,i,c,u,g){var v,k,x=n.children,C=x.length,D=new Array(C+1);for(D[0]=k=v=0;v<C;++v)D[v+1]=k+=x[v].value;(function I(Y,B,z,$,Z,Q,G){if(Y>=B-1){var it=x[Y];return it.x0=$,it.y0=Z,it.x1=Q,void(it.y1=G)}for(var nt=D[Y],ut=z/2+nt,Rt=Y+1,Ht=B-1;Rt<Ht;){var Xt=Rt+Ht>>>1;D[Xt]<ut?Rt=Xt+1:Ht=Xt}ut-D[Rt-1]<D[Rt]-ut&&Y+1<Rt&&--Rt;var ve=D[Rt]-nt,Yt=z-ve;if(Q-$>G-Z){var oe=($*Yt+Q*ve)/z;I(Y,Rt,ve,$,Z,oe,G),I(Rt,B,Yt,oe,Z,Q,G)}else{var ct=(Z*Yt+G*ve)/z;I(Y,Rt,ve,$,Z,Q,ct),I(Rt,B,Yt,$,ct,Q,G)}})(0,C,n.value,i,c,u,g)}function P3(n,i,c,u,g){(1&n.depth?Ec:bf)(n,i,c,u,g)}const oy=function n(i){function c(u,g,v,k,x){if((C=u._squarify)&&C.ratio===i)for(var C,D,I,Y,B,z=-1,$=C.length,Z=u.value;++z<$;){for(I=(D=C[z]).children,Y=D.value=0,B=I.length;Y<B;++Y)D.value+=I[Y].value;D.dice?bf(D,g,v,k,v+=(x-v)*D.value/Z):Ec(D,g,v,g+=(k-g)*D.value/Z,x),Z-=D.value}else u._squarify=C=wf(i,u,g,v,k,x),C.ratio=i}return c.ratio=function(u){return n((u=+u)>1?u:1)},c}(Il);function ux(n){var i=n.length;return function(c){return n[Math.max(0,Math.min(i-1,Math.floor(c*i)))]}}function W1(n,i){var c=Na(+n,+i);return function(u){var g=c(u);return g-360*Math.floor(g/360)}}function sy(n,i){return n=+n,i=+i,function(c){return Math.round(n*(1-c)+i*c)}}var Rl=Math.SQRT2;function Y3(n){return((n=Math.exp(n))+1/n)/2}function H1(n,i){var c,u,g=n[0],v=n[1],k=n[2],x=i[0],C=i[1],D=i[2],I=x-g,Y=C-v,B=I*I+Y*Y;if(B<1e-12)u=Math.log(D/k)/Rl,c=function(it){return[g+it*I,v+it*Y,k*Math.exp(Rl*it*u)]};else{var z=Math.sqrt(B),$=(D*D-k*k+4*B)/(2*k*2*z),Z=(D*D-k*k-4*B)/(2*D*2*z),Q=Math.log(Math.sqrt($*$+1)-$),G=Math.log(Math.sqrt(Z*Z+1)-Z);u=(G-Q)/Rl,c=function(it){var nt,ut=it*u,Rt=Y3(Q),Ht=k/(2*z)*(Rt*(nt=Rl*ut+Q,((nt=Math.exp(2*nt))-1)/(nt+1))-function(Xt){return((Xt=Math.exp(Xt))-1/Xt)/2}(Q));return[g+Ht*I,v+Ht*Y,k*Rt/Y3(Rl*ut+Q)]}}return c.duration=1e3*u,c}function cy(n){return function(i,c){var u=n((i=Ku(i)).h,(c=Ku(c)).h),g=yi(i.s,c.s),v=yi(i.l,c.l),k=yi(i.opacity,c.opacity);return function(x){return i.h=u(x),i.s=g(x),i.l=v(x),i.opacity=k(x),i+""}}}const lx=cy(Na);var hx=cy(yi);function $1(n,i){var c=yi((n=Oh(n)).l,(i=Oh(i)).l),u=yi(n.a,i.a),g=yi(n.b,i.b),v=yi(n.opacity,i.opacity);return function(k){return n.l=c(k),n.a=u(k),n.b=g(k),n.opacity=v(k),n+""}}function q1(n){return function(i,c){var u=n((i=hc(i)).h,(c=hc(c)).h),g=yi(i.c,c.c),v=yi(i.l,c.l),k=yi(i.opacity,c.opacity);return function(x){return i.h=u(x),i.c=g(x),i.l=v(x),i.opacity=k(x),i+""}}}const ls=q1(Na);var Uo=q1(yi);function zs(n){return function i(c){function u(g,v){var k=n((g=ga(g)).h,(v=ga(v)).h),x=yi(g.s,v.s),C=yi(g.l,v.l),D=yi(g.opacity,v.opacity);return function(I){return g.h=k(I),g.s=x(I),g.l=C(Math.pow(I,c)),g.opacity=D(I),g+""}}return c=+c,u.gamma=i,u}(1)}const V1=zs(Na);var Tf=zs(yi);function uy(n,i){for(var c=0,u=i.length-1,g=i[0],v=new Array(u<0?0:u);c<u;)v[c]=n(g,g=i[++c]);return function(k){var x=Math.max(0,Math.min(u-1,Math.floor(k*=u)));return v[x](k-x)}}function j3(n,i){for(var c=new Array(i),u=0;u<i;++u)c[u]=n(u/(i-1));return c}function U3(n){for(var i,c=-1,u=n.length,g=n[u-1],v=0;++c<u;)i=g,g=n[c],v+=i[1]*g[0]-i[0]*g[1];return v/2}function fx(n){for(var i,c,u=-1,g=n.length,v=0,k=0,x=n[g-1],C=0;++u<g;)i=x,x=n[u],C+=c=i[0]*x[1]-x[0]*i[1],v+=(i[0]+x[0])*c,k+=(i[1]+x[1])*c;return[v/(C*=3),k/C]}function dx(n,i,c){return(i[0]-n[0])*(c[1]-n[1])-(i[1]-n[1])*(c[0]-n[0])}function px(n,i){return n[0]-i[0]||n[1]-i[1]}function z3(n){for(var i=n.length,c=[0,1],u=2,g=2;g<i;++g){for(;u>1&&dx(n[c[u-2]],n[c[u-1]],n[g])<=0;)--u;c[u++]=g}return c.slice(0,u)}function ly(n){if((c=n.length)<3)return null;var i,c,u=new Array(c),g=new Array(c);for(i=0;i<c;++i)u[i]=[+n[i][0],+n[i][1],i];for(u.sort(px),i=0;i<c;++i)g[i]=[u[i][0],-u[i][1]];var v=z3(u),k=z3(g),x=k[0]===v[0],C=k[k.length-1]===v[v.length-1],D=[];for(i=v.length-1;i>=0;--i)D.push(n[u[v[i]][2]]);for(i=+x;i<k.length-C;++i)D.push(n[u[k[i]][2]]);return D}function hy(n,i){for(var c,u,g=n.length,v=n[g-1],k=i[0],x=i[1],C=v[0],D=v[1],I=!1,Y=0;Y<g;++Y)c=(v=n[Y])[0],(u=v[1])>x!=D>x&&k<(C-c)*(x-u)/(D-u)+c&&(I=!I),C=c,D=u;return I}function W3(n){for(var i,c,u=-1,g=n.length,v=n[g-1],k=v[0],x=v[1],C=0;++u<g;)i=k,c=x,i-=k=(v=n[u])[0],c-=x=v[1],C+=Math.sqrt(i*i+c*c);return C}function hs(){return Math.random()}const G1=function n(i){function c(u,g){return u=u==null?0:+u,g=g==null?1:+g,arguments.length===1?(g=u,u=0):g-=u,function(){return i()*g+u}}return c.source=n,c}(hs),Ef=function n(i){function c(u,g){var v,k;return u=u==null?0:+u,g=g==null?1:+g,function(){var x;if(v!=null)x=v,v=null;else do v=2*i()-1,x=2*i()-1,k=v*v+x*x;while(!k||k>1);return u+g*x*Math.sqrt(-2*Math.log(k)/k)}}return c.source=n,c}(hs),Fl=function n(i){function c(){var u=Ef.source(i).apply(this,arguments);return function(){return Math.exp(u())}}return c.source=n,c}(hs),Pl=function n(i){function c(u){return function(){for(var g=0,v=0;v<u;++v)g+=i();return g}}return c.source=n,c}(hs),fs=function n(i){function c(u){var g=Pl.source(i)(u);return function(){return g()/u}}return c.source=n,c}(hs),gx=function n(i){function c(u){return function(){return-Math.log(1-i())/u}}return c.source=n,c}(hs);function zo(n,i){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(i).domain(n)}return this}function Ws(n,i){switch(arguments.length){case 0:break;case 1:this.interpolator(n);break;default:this.interpolator(i).domain(n)}return this}var H3=Array.prototype,X1=H3.map,vu=H3.slice,fy={name:"implicit"};function Z1(){var n=Bs(),i=[],c=[],u=fy;function g(v){var k=v+"",x=n.get(k);if(!x){if(u!==fy)return u;n.set(k,x=i.push(v))}return c[(x-1)%c.length]}return g.domain=function(v){if(!arguments.length)return i.slice();i=[],n=Bs();for(var k,x,C=-1,D=v.length;++C<D;)n.has(x=(k=v[C])+"")||n.set(x,i.push(k));return g},g.range=function(v){return arguments.length?(c=vu.call(v),g):c.slice()},g.unknown=function(v){return arguments.length?(u=v,g):u},g.copy=function(){return Z1(i,c).unknown(u)},zo.apply(g,arguments),g}function Q1(){var n,i,c=Z1().unknown(void 0),u=c.domain,g=c.range,v=[0,1],k=!1,x=0,C=0,D=.5;function I(){var Y=u().length,B=v[1]<v[0],z=v[B-0],$=v[1-B];n=($-z)/Math.max(1,Y-x+2*C),k&&(n=Math.floor(n)),z+=($-z-n*(Y-x))*D,i=n*(1-x),k&&(z=Math.round(z),i=Math.round(i));var Z=et(Y).map(function(Q){return z+n*Q});return g(B?Z.reverse():Z)}return delete c.unknown,c.domain=function(Y){return arguments.length?(u(Y),I()):u()},c.range=function(Y){return arguments.length?(v=[+Y[0],+Y[1]],I()):v.slice()},c.rangeRound=function(Y){return v=[+Y[0],+Y[1]],k=!0,I()},c.bandwidth=function(){return i},c.step=function(){return n},c.round=function(Y){return arguments.length?(k=!!Y,I()):k},c.padding=function(Y){return arguments.length?(x=Math.min(1,C=+Y),I()):x},c.paddingInner=function(Y){return arguments.length?(x=Math.min(1,Y),I()):x},c.paddingOuter=function(Y){return arguments.length?(C=+Y,I()):C},c.align=function(Y){return arguments.length?(D=Math.max(0,Math.min(1,Y)),I()):D},c.copy=function(){return Q1(u(),v).round(k).paddingInner(x).paddingOuter(C).align(D)},zo.apply(I(),arguments)}function dy(n){var i=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return dy(i())},n}function Sf(){return dy(Q1.apply(null,arguments).paddingInner(1))}function J1(n){return+n}var Cf=[0,1];function ta(n){return n}function Mf(n,i){return(i-=n=+n)?function(u){return(u-n)/i}:(c=isNaN(i)?NaN:.5,function(){return c});var c}function Fa(n){var i,c=n[0],u=n[n.length-1];return c>u&&(i=c,c=u,u=i),function(g){return Math.max(c,Math.min(u,g))}}function $3(n,i,c){var u=n[0],g=n[1],v=i[0],k=i[1];return g<u?(u=Mf(g,u),v=c(k,v)):(u=Mf(u,g),v=c(v,k)),function(x){return v(u(x))}}function q3(n,i,c){var u=Math.min(n.length,i.length)-1,g=new Array(u),v=new Array(u),k=-1;for(n[u]<n[0]&&(n=n.slice().reverse(),i=i.slice().reverse());++k<u;)g[k]=Mf(n[k],n[k+1]),v[k]=c(i[k],i[k+1]);return function(x){var C=A(n,x,1,u)-1;return v[C](g[C](x))}}function _u(n,i){return i.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Af(){var n,i,c,u,g,v,k=Cf,x=Cf,C=nu,D=ta;function I(){return u=Math.min(k.length,x.length)>2?q3:$3,g=v=null,Y}function Y(B){return isNaN(B=+B)?c:(g||(g=u(k.map(n),x,C)))(n(D(B)))}return Y.invert=function(B){return D(i((v||(v=u(x,k.map(n),fa)))(B)))},Y.domain=function(B){return arguments.length?(k=X1.call(B,J1),D===ta||(D=Fa(k)),I()):k.slice()},Y.range=function(B){return arguments.length?(x=vu.call(B),I()):x.slice()},Y.rangeRound=function(B){return x=vu.call(B),C=sy,I()},Y.clamp=function(B){return arguments.length?(D=B?Fa(k):ta,Y):D!==ta},Y.interpolate=function(B){return arguments.length?(C=B,I()):C},Y.unknown=function(B){return arguments.length?(c=B,Y):c},function(B,z){return n=B,i=z,I()}}function py(n,i){return Af()(n,i)}function Wo(n,i,c,u){var g,v=It(n,i,c);switch((u=zh(u==null?",f":u)).type){case"s":var k=Math.max(Math.abs(n),Math.abs(i));return u.precision!=null||isNaN(g=Ev(v,k))||(u.precision=g),hg(u,k);case"":case"e":case"g":case"p":case"r":u.precision!=null||isNaN(g=Sv(v,Math.max(Math.abs(n),Math.abs(i))))||(u.precision=g-(u.type==="e"));break;case"f":case"%":u.precision!=null||isNaN(g=fg(v))||(u.precision=g-2*(u.type==="%"))}return Jd(u)}function Hs(n){var i=n.domain;return n.ticks=function(c){var u=i();return Tt(u[0],u[u.length-1],c==null?10:c)},n.tickFormat=function(c,u){var g=i();return Wo(g[0],g[g.length-1],c==null?10:c,u)},n.nice=function(c){c==null&&(c=10);var u,g=i(),v=0,k=g.length-1,x=g[v],C=g[k];return C<x&&(u=x,x=C,C=u,u=v,v=k,k=u),(u=lt(x,C,c))>0?u=lt(x=Math.floor(x/u)*u,C=Math.ceil(C/u)*u,c):u<0&&(u=lt(x=Math.ceil(x*u)/u,C=Math.floor(C*u)/u,c)),u>0?(g[v]=Math.floor(x/u)*u,g[k]=Math.ceil(C/u)*u,i(g)):u<0&&(g[v]=Math.ceil(x*u)/u,g[k]=Math.floor(C*u)/u,i(g)),n},n}function gy(){var n=py(ta,ta);return n.copy=function(){return _u(n,gy())},zo.apply(n,arguments),Hs(n)}function yy(n){var i;function c(u){return isNaN(u=+u)?i:u}return c.invert=c,c.domain=c.range=function(u){return arguments.length?(n=X1.call(u,J1),c):n.slice()},c.unknown=function(u){return arguments.length?(i=u,c):i},c.copy=function(){return yy(n).unknown(i)},n=arguments.length?X1.call(n,J1):[0,1],Hs(c)}function my(n,i){var c,u=0,g=(n=n.slice()).length-1,v=n[u],k=n[g];return k<v&&(c=u,u=g,g=c,c=v,v=k,k=c),n[u]=i.floor(v),n[g]=i.ceil(k),n}function K1(n){return Math.log(n)}function t0(n){return Math.exp(n)}function yx(n){return-Math.log(-n)}function V3(n){return-Math.exp(-n)}function mx(n){return isFinite(n)?+("1e"+n):n<0?0:n}function G3(n){return function(i){return-n(-i)}}function vy(n){var i,c,u=n(K1,t0),g=u.domain,v=10;function k(){return i=function(x){return x===Math.E?Math.log:x===10&&Math.log10||x===2&&Math.log2||(x=Math.log(x),function(C){return Math.log(C)/x})}(v),c=function(x){return x===10?mx:x===Math.E?Math.exp:function(C){return Math.pow(x,C)}}(v),g()[0]<0?(i=G3(i),c=G3(c),n(yx,V3)):n(K1,t0),u}return u.base=function(x){return arguments.length?(v=+x,k()):v},u.domain=function(x){return arguments.length?(g(x),k()):g()},u.ticks=function(x){var C,D=g(),I=D[0],Y=D[D.length-1];(C=Y<I)&&(Z=I,I=Y,Y=Z);var B,z,$,Z=i(I),Q=i(Y),G=x==null?10:+x,it=[];if(!(v%1)&&Q-Z<G){if(Z=Math.round(Z)-1,Q=Math.round(Q)+1,I>0){for(;Z<Q;++Z)for(z=1,B=c(Z);z<v;++z)if(!(($=B*z)<I)){if($>Y)break;it.push($)}}else for(;Z<Q;++Z)for(z=v-1,B=c(Z);z>=1;--z)if(!(($=B*z)<I)){if($>Y)break;it.push($)}}else it=Tt(Z,Q,Math.min(Q-Z,G)).map(c);return C?it.reverse():it},u.tickFormat=function(x,C){if(C==null&&(C=v===10?".0e":","),typeof C!="function"&&(C=Jd(C)),x===1/0)return C;x==null&&(x=10);var D=Math.max(1,v*x/u.ticks().length);return function(I){var Y=I/c(Math.round(i(I)));return Y*v<v-.5&&(Y*=v),Y<=D?C(I):""}},u.nice=function(){return g(my(g(),{floor:function(x){return c(Math.floor(i(x)))},ceil:function(x){return c(Math.ceil(i(x)))}}))},u}function X3(){var n=vy(Af()).domain([1,10]);return n.copy=function(){return _u(n,X3()).base(n.base())},zo.apply(n,arguments),n}function Z3(n){return function(i){return Math.sign(i)*Math.log1p(Math.abs(i/n))}}function Q3(n){return function(i){return Math.sign(i)*Math.expm1(Math.abs(i))*n}}function _y(n){var i=1,c=n(Z3(i),Q3(i));return c.constant=function(u){return arguments.length?n(Z3(i=+u),Q3(i)):i},Hs(c)}function J3(){var n=_y(Af());return n.copy=function(){return _u(n,J3()).constant(n.constant())},zo.apply(n,arguments)}function K3(n){return function(i){return i<0?-Math.pow(-i,n):Math.pow(i,n)}}function vx(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function _x(n){return n<0?-n*n:n*n}function by(n){var i=n(ta,ta),c=1;function u(){return c===1?n(ta,ta):c===.5?n(vx,_x):n(K3(c),K3(1/c))}return i.exponent=function(g){return arguments.length?(c=+g,u()):c},Hs(i)}function xy(){var n=by(Af());return n.copy=function(){return _u(n,xy()).exponent(n.exponent())},zo.apply(n,arguments),n}function bx(){return xy.apply(null,arguments).exponent(.5)}function t_(){var n,i=[],c=[],u=[];function g(){var k=0,x=Math.max(1,c.length);for(u=new Array(x-1);++k<x;)u[k-1]=ye(i,k/x);return v}function v(k){return isNaN(k=+k)?n:c[A(u,k)]}return v.invertExtent=function(k){var x=c.indexOf(k);return x<0?[NaN,NaN]:[x>0?u[x-1]:i[0],x<u.length?u[x]:i[i.length-1]]},v.domain=function(k){if(!arguments.length)return i.slice();i=[];for(var x,C=0,D=k.length;C<D;++C)(x=k[C])==null||isNaN(x=+x)||i.push(x);return i.sort(l),g()},v.range=function(k){return arguments.length?(c=vu.call(k),g()):c.slice()},v.unknown=function(k){return arguments.length?(n=k,v):n},v.quantiles=function(){return u.slice()},v.copy=function(){return t_().domain(i).range(c).unknown(n)},zo.apply(v,arguments)}function e_(){var n,i=0,c=1,u=1,g=[.5],v=[0,1];function k(C){return C<=C?v[A(g,C,0,u)]:n}function x(){var C=-1;for(g=new Array(u);++C<u;)g[C]=((C+1)*c-(C-u)*i)/(u+1);return k}return k.domain=function(C){return arguments.length?(i=+C[0],c=+C[1],x()):[i,c]},k.range=function(C){return arguments.length?(u=(v=vu.call(C)).length-1,x()):v.slice()},k.invertExtent=function(C){var D=v.indexOf(C);return D<0?[NaN,NaN]:D<1?[i,g[0]]:D>=u?[g[u-1],c]:[g[D-1],g[D]]},k.unknown=function(C){return arguments.length&&(n=C),k},k.thresholds=function(){return g.slice()},k.copy=function(){return e_().domain([i,c]).range(v).unknown(n)},zo.apply(Hs(k),arguments)}function n_(){var n,i=[.5],c=[0,1],u=1;function g(v){return v<=v?c[A(i,v,0,u)]:n}return g.domain=function(v){return arguments.length?(i=vu.call(v),u=Math.min(i.length,c.length-1),g):i.slice()},g.range=function(v){return arguments.length?(c=vu.call(v),u=Math.min(i.length,c.length-1),g):c.slice()},g.invertExtent=function(v){var k=c.indexOf(v);return[i[k-1],i[k]]},g.unknown=function(v){return arguments.length?(n=v,g):n},g.copy=function(){return n_().domain(i).range(c).unknown(n)},zo.apply(g,arguments)}var e0=new Date,wy=new Date;function Ri(n,i,c,u){function g(v){return n(v=arguments.length===0?new Date:new Date(+v)),v}return g.floor=function(v){return n(v=new Date(+v)),v},g.ceil=function(v){return n(v=new Date(v-1)),i(v,1),n(v),v},g.round=function(v){var k=g(v),x=g.ceil(v);return v-k<x-v?k:x},g.offset=function(v,k){return i(v=new Date(+v),k==null?1:Math.floor(k)),v},g.range=function(v,k,x){var C,D=[];if(v=g.ceil(v),x=x==null?1:Math.floor(x),!(v<k&&x>0))return D;do D.push(C=new Date(+v)),i(v,x),n(v);while(C<v&&v<k);return D},g.filter=function(v){return Ri(function(k){if(k>=k)for(;n(k),!v(k);)k.setTime(k-1)},function(k,x){if(k>=k)if(x<0)for(;++x<=0;)for(;i(k,-1),!v(k););else for(;--x>=0;)for(;i(k,1),!v(k););})},c&&(g.count=function(v,k){return e0.setTime(+v),wy.setTime(+k),n(e0),n(wy),Math.floor(c(e0,wy))},g.every=function(v){return v=Math.floor(v),isFinite(v)&&v>0?v>1?g.filter(u?function(k){return u(k)%v==0}:function(k){return g.count(0,k)%v==0}):g:null}),g}var ky=Ri(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,i){n.setFullYear(n.getFullYear()+i)},function(n,i){return i.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});ky.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ri(function(i){i.setFullYear(Math.floor(i.getFullYear()/n)*n),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,c){i.setFullYear(i.getFullYear()+c*n)}):null};const bu=ky;var xx=ky.range,ds=Ri(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,i){n.setMonth(n.getMonth()+i)},function(n,i){return i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())},function(n){return n.getMonth()});const Ty=ds;var $s=ds.range,n0=1e3,xu=6e4,Df=36e5,Ey=864e5,Sy=6048e5;function wu(n){return Ri(function(i){i.setDate(i.getDate()-(i.getDay()+7-n)%7),i.setHours(0,0,0,0)},function(i,c){i.setDate(i.getDate()+7*c)},function(i,c){return(c-i-(c.getTimezoneOffset()-i.getTimezoneOffset())*xu)/Sy})}var ku=wu(0),Yl=wu(1),Cy=wu(2),r0=wu(3),Ho=wu(4),qs=wu(5),My=wu(6),Nf=ku.range,r_=Yl.range,wx=Cy.range,i0=r0.range,jl=Ho.range,i_=qs.range,go=My.range,_i=Ri(function(n){n.setHours(0,0,0,0)},function(n,i){n.setDate(n.getDate()+i)},function(n,i){return(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*xu)/Ey},function(n){return n.getDate()-1});const Vs=_i;var Ay=_i.range,a_=Ri(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*n0-n.getMinutes()*xu)},function(n,i){n.setTime(+n+i*Df)},function(n,i){return(i-n)/Df},function(n){return n.getHours()});const yo=a_;var Tu=a_.range,Of=Ri(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*n0)},function(n,i){n.setTime(+n+i*xu)},function(n,i){return(i-n)/xu},function(n){return n.getMinutes()});const Bf=Of;var Dy=Of.range,Ny=Ri(function(n){n.setTime(n-n.getMilliseconds())},function(n,i){n.setTime(+n+i*n0)},function(n,i){return(i-n)/n0},function(n){return n.getUTCSeconds()});const a0=Ny;var o_=Ny.range,Ul=Ri(function(){},function(n,i){n.setTime(+n+i)},function(n,i){return i-n});Ul.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Ri(function(i){i.setTime(Math.floor(i/n)*n)},function(i,c){i.setTime(+i+c*n)},function(i,c){return(c-i)/n}):Ul:null};const o0=Ul;var s_=Ul.range;function Eu(n){return Ri(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-n)%7),i.setUTCHours(0,0,0,0)},function(i,c){i.setUTCDate(i.getUTCDate()+7*c)},function(i,c){return(c-i)/Sy})}var Cc=Eu(0),zl=Eu(1),c_=Eu(2),Oy=Eu(3),Mc=Eu(4),By=Eu(5),u_=Eu(6),l_=Cc.range,h_=zl.range,f_=c_.range,d_=Oy.range,ea=Mc.range,Hr=By.range,xe=u_.range,na=Ri(function(n){n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCDate(n.getUTCDate()+i)},function(n,i){return(i-n)/Ey},function(n){return n.getUTCDate()-1});const Wl=na;var kx=na.range,Ly=Ri(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i)},function(n,i){return i.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Ly.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ri(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/n)*n),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,c){i.setUTCFullYear(i.getUTCFullYear()+c*n)}):null};const Gs=Ly;var Tx=Ly.range;function Iy(n){if(0<=n.y&&n.y<100){var i=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return i.setFullYear(n.y),i}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Lf(n){if(0<=n.y&&n.y<100){var i=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return i.setUTCFullYear(n.y),i}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function If(n,i,c){return{y:n,m:i,d:c,H:0,M:0,S:0,L:0}}function p_(n){var i=n.dateTime,c=n.date,u=n.time,g=n.periods,v=n.days,k=n.shortDays,x=n.months,C=n.shortMonths,D=Rf(g),I=Ff(g),Y=Rf(v),B=Ff(v),z=Rf(k),$=Ff(k),Z=Rf(x),Q=Ff(x),G=Rf(C),it=Ff(C),nt={a:function(Yt){return k[Yt.getDay()]},A:function(Yt){return v[Yt.getDay()]},b:function(Yt){return C[Yt.getMonth()]},B:function(Yt){return x[Yt.getMonth()]},c:null,d:zy,e:zy,f:h0,g:d0,G:S_,H:Vi,I:Ax,j:Dx,L:k_,m:Wy,M:T_,p:function(Yt){return g[+(Yt.getHours()>=12)]},q:function(Yt){return 1+~~(Yt.getMonth()/3)},Q:B_,s:Si,S:no,u:Hy,U:Jn,V:E_,w:Pf,W:Gi,x:null,X:null,y:Yf,Y:p0,Z:se,"%":Vl},ut={a:function(Yt){return k[Yt.getUTCDay()]},A:function(Yt){return v[Yt.getUTCDay()]},b:function(Yt){return C[Yt.getUTCMonth()]},B:function(Yt){return x[Yt.getUTCMonth()]},c:null,d:C_,e:C_,f:qy,g:N_,G:ps,H:M_,I:g0,j:$y,L:y0,m:Xi,M:A_,p:function(Yt){return g[+(Yt.getUTCHours()>=12)]},q:function(Yt){return 1+~~(Yt.getUTCMonth()/3)},Q:B_,s:Si,S:m0,u:jf,U:Vy,V:D_,w:Gy,W:Nx,x:null,X:null,y:zf,Y:O_,Z:Ox,"%":Vl},Rt={a:function(Yt,oe,ct){var wt=z.exec(oe.slice(ct));return wt?(Yt.w=$[wt[0].toLowerCase()],ct+wt[0].length):-1},A:function(Yt,oe,ct){var wt=Y.exec(oe.slice(ct));return wt?(Yt.w=B[wt[0].toLowerCase()],ct+wt[0].length):-1},b:function(Yt,oe,ct){var wt=G.exec(oe.slice(ct));return wt?(Yt.m=it[wt[0].toLowerCase()],ct+wt[0].length):-1},B:function(Yt,oe,ct){var wt=Z.exec(oe.slice(ct));return wt?(Yt.m=Q[wt[0].toLowerCase()],ct+wt[0].length):-1},c:function(Yt,oe,ct){return ve(Yt,i,oe,ct)},d:__,e:__,f:ql,g:s0,G:jy,H:Uy,I:Uy,j:Mx,L:$o,m:u0,M:b_,p:function(Yt,oe,ct){var wt=D.exec(oe.slice(ct));return wt?(Yt.p=I[wt[0].toLowerCase()],ct+wt[0].length):-1},q:Cx,Q:x_,s:w_,S:l0,u:Sx,U:m_,V:mo,w:Ex,W:v_,x:function(Yt,oe,ct){return ve(Yt,c,oe,ct)},X:function(Yt,oe,ct){return ve(Yt,u,oe,ct)},y:s0,Y:jy,Z:c0,"%":Dc};function Ht(Yt,oe){return function(ct){var wt,ee,Gt,ie=[],Ne=-1,$e=0,kn=Yt.length;for(ct instanceof Date||(ct=new Date(+ct));++Ne<kn;)Yt.charCodeAt(Ne)===37&&(ie.push(Yt.slice($e,Ne)),(ee=y_[wt=Yt.charAt(++Ne)])!=null?wt=Yt.charAt(++Ne):ee=wt==="e"?" ":"0",(Gt=oe[wt])&&(wt=Gt(ct,ee)),ie.push(wt),$e=Ne+1);return ie.push(Yt.slice($e,Ne)),ie.join("")}}function Xt(Yt,oe){return function(ct){var wt,ee,Gt=If(1900,void 0,1);if(ve(Gt,Yt,ct+="",0)!=ct.length)return null;if("Q"in Gt)return new Date(Gt.Q);if("s"in Gt)return new Date(1e3*Gt.s+("L"in Gt?Gt.L:0));if(oe&&!("Z"in Gt)&&(Gt.Z=0),"p"in Gt&&(Gt.H=Gt.H%12+12*Gt.p),Gt.m===void 0&&(Gt.m="q"in Gt?Gt.q:0),"V"in Gt){if(Gt.V<1||Gt.V>53)return null;"w"in Gt||(Gt.w=1),"Z"in Gt?(ee=(wt=Lf(If(Gt.y,0,1))).getUTCDay(),wt=ee>4||ee===0?zl.ceil(wt):zl(wt),wt=Wl.offset(wt,7*(Gt.V-1)),Gt.y=wt.getUTCFullYear(),Gt.m=wt.getUTCMonth(),Gt.d=wt.getUTCDate()+(Gt.w+6)%7):(ee=(wt=Iy(If(Gt.y,0,1))).getDay(),wt=ee>4||ee===0?Yl.ceil(wt):Yl(wt),wt=Vs.offset(wt,7*(Gt.V-1)),Gt.y=wt.getFullYear(),Gt.m=wt.getMonth(),Gt.d=wt.getDate()+(Gt.w+6)%7)}else("W"in Gt||"U"in Gt)&&("w"in Gt||(Gt.w="u"in Gt?Gt.u%7:"W"in Gt?1:0),ee="Z"in Gt?Lf(If(Gt.y,0,1)).getUTCDay():Iy(If(Gt.y,0,1)).getDay(),Gt.m=0,Gt.d="W"in Gt?(Gt.w+6)%7+7*Gt.W-(ee+5)%7:Gt.w+7*Gt.U-(ee+6)%7);return"Z"in Gt?(Gt.H+=Gt.Z/100|0,Gt.M+=Gt.Z%100,Lf(Gt)):Iy(Gt)}}function ve(Yt,oe,ct,wt){for(var ee,Gt,ie=0,Ne=oe.length,$e=ct.length;ie<Ne;){if(wt>=$e)return-1;if((ee=oe.charCodeAt(ie++))===37){if(ee=oe.charAt(ie++),!(Gt=Rt[ee in y_?oe.charAt(ie++):ee])||(wt=Gt(Yt,ct,wt))<0)return-1}else if(ee!=ct.charCodeAt(wt++))return-1}return wt}return nt.x=Ht(c,nt),nt.X=Ht(u,nt),nt.c=Ht(i,nt),ut.x=Ht(c,ut),ut.X=Ht(u,ut),ut.c=Ht(i,ut),{format:function(Yt){var oe=Ht(Yt+="",nt);return oe.toString=function(){return Yt},oe},parse:function(Yt){var oe=Xt(Yt+="",!1);return oe.toString=function(){return Yt},oe},utcFormat:function(Yt){var oe=Ht(Yt+="",ut);return oe.toString=function(){return Yt},oe},utcParse:function(Yt){var oe=Xt(Yt+="",!0);return oe.toString=function(){return Yt},oe}}}var Ac,Ry,g_,Hl,Fy,y_={"-":"",_:" ",0:"0"},oi=/^\s*\d+/,Py=/^%/,Yy=/[\\^$*+?|[\]().{}]/g;function mr(n,i,c){var u=n<0?"-":"",g=(u?-n:n)+"",v=g.length;return u+(v<c?new Array(c-v+1).join(i)+g:g)}function $l(n){return n.replace(Yy,"\\$&")}function Rf(n){return new RegExp("^(?:"+n.map($l).join("|")+")","i")}function Ff(n){for(var i={},c=-1,u=n.length;++c<u;)i[n[c].toLowerCase()]=c;return i}function Ex(n,i,c){var u=oi.exec(i.slice(c,c+1));return u?(n.w=+u[0],c+u[0].length):-1}function Sx(n,i,c){var u=oi.exec(i.slice(c,c+1));return u?(n.u=+u[0],c+u[0].length):-1}function m_(n,i,c){var u=oi.exec(i.slice(c,c+2));return u?(n.U=+u[0],c+u[0].length):-1}function mo(n,i,c){var u=oi.exec(i.slice(c,c+2));return u?(n.V=+u[0],c+u[0].length):-1}function v_(n,i,c){var u=oi.exec(i.slice(c,c+2));return u?(n.W=+u[0],c+u[0].length):-1}function jy(n,i,c){var u=oi.exec(i.slice(c,c+4));return u?(n.y=+u[0],c+u[0].length):-1}function s0(n,i,c){var u=oi.exec(i.slice(c,c+2));return u?(n.y=+u[0]+(+u[0]>68?1900:2e3),c+u[0].length):-1}function c0(n,i,c){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(c,c+6));return u?(n.Z=u[1]?0:-(u[2]+(u[3]||"00")),c+u[0].length):-1}function Cx(n,i,c){var u=oi.exec(i.slice(c,c+1));return u?(n.q=3*u[0]-3,c+u[0].length):-1}function u0(n,i,c){var u=oi.exec(i.slice(c,c+2));return u?(n.m=u[0]-1,c+u[0].length):-1}function __(n,i,c){var u=oi.exec(i.slice(c,c+2));return u?(n.d=+u[0],c+u[0].length):-1}function Mx(n,i,c){var u=oi.exec(i.slice(c,c+3));return u?(n.m=0,n.d=+u[0],c+u[0].length):-1}function Uy(n,i,c){var u=oi.exec(i.slice(c,c+2));return u?(n.H=+u[0],c+u[0].length):-1}function b_(n,i,c){var u=oi.exec(i.slice(c,c+2));return u?(n.M=+u[0],c+u[0].length):-1}function l0(n,i,c){var u=oi.exec(i.slice(c,c+2));return u?(n.S=+u[0],c+u[0].length):-1}function $o(n,i,c){var u=oi.exec(i.slice(c,c+3));return u?(n.L=+u[0],c+u[0].length):-1}function ql(n,i,c){var u=oi.exec(i.slice(c,c+6));return u?(n.L=Math.floor(u[0]/1e3),c+u[0].length):-1}function Dc(n,i,c){var u=Py.exec(i.slice(c,c+1));return u?c+u[0].length:-1}function x_(n,i,c){var u=oi.exec(i.slice(c));return u?(n.Q=+u[0],c+u[0].length):-1}function w_(n,i,c){var u=oi.exec(i.slice(c));return u?(n.s=+u[0],c+u[0].length):-1}function zy(n,i){return mr(n.getDate(),i,2)}function Vi(n,i){return mr(n.getHours(),i,2)}function Ax(n,i){return mr(n.getHours()%12||12,i,2)}function Dx(n,i){return mr(1+Vs.count(bu(n),n),i,3)}function k_(n,i){return mr(n.getMilliseconds(),i,3)}function h0(n,i){return k_(n,i)+"000"}function Wy(n,i){return mr(n.getMonth()+1,i,2)}function T_(n,i){return mr(n.getMinutes(),i,2)}function no(n,i){return mr(n.getSeconds(),i,2)}function Hy(n){var i=n.getDay();return i===0?7:i}function Jn(n,i){return mr(ku.count(bu(n)-1,n),i,2)}function f0(n){var i=n.getDay();return i>=4||i===0?Ho(n):Ho.ceil(n)}function E_(n,i){return n=f0(n),mr(Ho.count(bu(n),n)+(bu(n).getDay()===4),i,2)}function Pf(n){return n.getDay()}function Gi(n,i){return mr(Yl.count(bu(n)-1,n),i,2)}function Yf(n,i){return mr(n.getFullYear()%100,i,2)}function d0(n,i){return mr((n=f0(n)).getFullYear()%100,i,2)}function p0(n,i){return mr(n.getFullYear()%1e4,i,4)}function S_(n,i){var c=n.getDay();return mr((n=c>=4||c===0?Ho(n):Ho.ceil(n)).getFullYear()%1e4,i,4)}function se(n){var i=n.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+mr(i/60|0,"0",2)+mr(i%60,"0",2)}function C_(n,i){return mr(n.getUTCDate(),i,2)}function M_(n,i){return mr(n.getUTCHours(),i,2)}function g0(n,i){return mr(n.getUTCHours()%12||12,i,2)}function $y(n,i){return mr(1+Wl.count(Gs(n),n),i,3)}function y0(n,i){return mr(n.getUTCMilliseconds(),i,3)}function qy(n,i){return y0(n,i)+"000"}function Xi(n,i){return mr(n.getUTCMonth()+1,i,2)}function A_(n,i){return mr(n.getUTCMinutes(),i,2)}function m0(n,i){return mr(n.getUTCSeconds(),i,2)}function jf(n){var i=n.getUTCDay();return i===0?7:i}function Vy(n,i){return mr(Cc.count(Gs(n)-1,n),i,2)}function Uf(n){var i=n.getUTCDay();return i>=4||i===0?Mc(n):Mc.ceil(n)}function D_(n,i){return n=Uf(n),mr(Mc.count(Gs(n),n)+(Gs(n).getUTCDay()===4),i,2)}function Gy(n){return n.getUTCDay()}function Nx(n,i){return mr(zl.count(Gs(n)-1,n),i,2)}function zf(n,i){return mr(n.getUTCFullYear()%100,i,2)}function N_(n,i){return mr((n=Uf(n)).getUTCFullYear()%100,i,2)}function O_(n,i){return mr(n.getUTCFullYear()%1e4,i,4)}function ps(n,i){var c=n.getUTCDay();return mr((n=c>=4||c===0?Mc(n):Mc.ceil(n)).getUTCFullYear()%1e4,i,4)}function Ox(){return"+0000"}function Vl(){return"%"}function B_(n){return+n}function Si(n){return Math.floor(+n/1e3)}function Su(n){return Ac=p_(n),Ry=Ac.format,g_=Ac.parse,Hl=Ac.utcFormat,Fy=Ac.utcParse,Ac}Su({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Xy=31536e6;function L_(n){return new Date(n)}function Zy(n){return n instanceof Date?+n:+new Date(+n)}function Qy(n,i,c,u,g,v,k,x,C){var D=py(ta,ta),I=D.invert,Y=D.domain,B=C(".%L"),z=C(":%S"),$=C("%I:%M"),Z=C("%I %p"),Q=C("%a %d"),G=C("%b %d"),it=C("%B"),nt=C("%Y"),ut=[[k,1,1e3],[k,5,5e3],[k,15,15e3],[k,30,3e4],[v,1,6e4],[v,5,3e5],[v,15,9e5],[v,30,18e5],[g,1,36e5],[g,3,108e5],[g,6,216e5],[g,12,432e5],[u,1,864e5],[u,2,1728e5],[c,1,6048e5],[i,1,2592e6],[i,3,7776e6],[n,1,Xy]];function Rt(Xt){return(k(Xt)<Xt?B:v(Xt)<Xt?z:g(Xt)<Xt?$:u(Xt)<Xt?Z:i(Xt)<Xt?c(Xt)<Xt?Q:G:n(Xt)<Xt?it:nt)(Xt)}function Ht(Xt,ve,Yt,oe){if(Xt==null&&(Xt=10),typeof Xt=="number"){var ct=Math.abs(Yt-ve)/Xt,wt=_(function(ee){return ee[2]}).right(ut,ct);wt===ut.length?(oe=It(ve/Xy,Yt/Xy,Xt),Xt=n):wt?(oe=(wt=ut[ct/ut[wt-1][2]<ut[wt][2]/ct?wt-1:wt])[1],Xt=wt[0]):(oe=Math.max(It(ve,Yt,Xt),1),Xt=x)}return oe==null?Xt:Xt.every(oe)}return D.invert=function(Xt){return new Date(I(Xt))},D.domain=function(Xt){return arguments.length?Y(X1.call(Xt,Zy)):Y().map(L_)},D.ticks=function(Xt,ve){var Yt,oe=Y(),ct=oe[0],wt=oe[oe.length-1],ee=wt<ct;return ee&&(Yt=ct,ct=wt,wt=Yt),Yt=(Yt=Ht(Xt,ct,wt,ve))?Yt.range(ct,wt+1):[],ee?Yt.reverse():Yt},D.tickFormat=function(Xt,ve){return ve==null?Rt:C(ve)},D.nice=function(Xt,ve){var Yt=Y();return(Xt=Ht(Xt,Yt[0],Yt[Yt.length-1],ve))?Y(my(Yt,Xt)):D},D.copy=function(){return _u(D,Qy(n,i,c,u,g,v,k,x,C))},D}function Bx(){return zo.apply(Qy(bu,Ty,ku,Vs,yo,Bf,a0,o0,Ry).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var I_=Ri(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCMonth(n.getUTCMonth()+i)},function(n,i){return i.getUTCMonth()-n.getUTCMonth()+12*(i.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()});const Jy=I_;var Gl=I_.range,v0=Ri(function(n){n.setUTCMinutes(0,0,0)},function(n,i){n.setTime(+n+i*Df)},function(n,i){return(i-n)/Df},function(n){return n.getUTCHours()});const R_=v0;var _0=v0.range,Wf=Ri(function(n){n.setUTCSeconds(0,0)},function(n,i){n.setTime(+n+i*xu)},function(n,i){return(i-n)/xu},function(n){return n.getUTCMinutes()});const Hf=Wf;var F_=Wf.range;function Lx(){return zo.apply(Qy(Gs,Jy,Cc,Wl,R_,Hf,a0,o0,Hl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function b0(){var n,i,c,u,g,v=0,k=1,x=ta,C=!1;function D(I){return isNaN(I=+I)?g:x(c===0?.5:(I=(u(I)-n)*c,C?Math.max(0,Math.min(1,I)):I))}return D.domain=function(I){return arguments.length?(n=u(v=+I[0]),i=u(k=+I[1]),c=n===i?0:1/(i-n),D):[v,k]},D.clamp=function(I){return arguments.length?(C=!!I,D):C},D.interpolator=function(I){return arguments.length?(x=I,D):x},D.unknown=function(I){return arguments.length?(g=I,D):g},function(I){return u=I,n=I(v),i=I(k),c=n===i?0:1/(i-n),D}}function Nc(n,i){return i.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function x0(){var n=Hs(b0()(ta));return n.copy=function(){return Nc(n,x0())},Ws.apply(n,arguments)}function ka(){var n=vy(b0()).domain([1,10]);return n.copy=function(){return Nc(n,ka()).base(n.base())},Ws.apply(n,arguments)}function Ta(){var n=_y(b0());return n.copy=function(){return Nc(n,Ta()).constant(n.constant())},Ws.apply(n,arguments)}function bi(){var n=by(b0());return n.copy=function(){return Nc(n,bi()).exponent(n.exponent())},Ws.apply(n,arguments)}function Xs(){return bi.apply(null,arguments).exponent(.5)}function vr(){var n=[],i=ta;function c(u){if(!isNaN(u=+u))return i((A(n,u)-1)/(n.length-1))}return c.domain=function(u){if(!arguments.length)return n.slice();n=[];for(var g,v=0,k=u.length;v<k;++v)(g=u[v])==null||isNaN(g=+g)||n.push(g);return n.sort(l),c},c.interpolator=function(u){return arguments.length?(i=u,c):i},c.copy=function(){return vr(i).domain(n)},Ws.apply(c,arguments)}function Pa(){var n,i,c,u,g,v,k,x=0,C=.5,D=1,I=ta,Y=!1;function B(z){return isNaN(z=+z)?k:(z=.5+((z=+v(z))-i)*(z<i?u:g),I(Y?Math.max(0,Math.min(1,z)):z))}return B.domain=function(z){return arguments.length?(n=v(x=+z[0]),i=v(C=+z[1]),c=v(D=+z[2]),u=n===i?0:.5/(i-n),g=i===c?0:.5/(c-i),B):[x,C,D]},B.clamp=function(z){return arguments.length?(Y=!!z,B):Y},B.interpolator=function(z){return arguments.length?(I=z,B):I},B.unknown=function(z){return arguments.length?(k=z,B):k},function(z){return v=z,n=z(x),i=z(C),c=z(D),u=n===i?0:.5/(i-n),g=i===c?0:.5/(c-i),B}}function Ky(){var n=Hs(Pa()(ta));return n.copy=function(){return Nc(n,Ky())},Ws.apply(n,arguments)}function $f(){var n=vy(Pa()).domain([.1,1,10]);return n.copy=function(){return Nc(n,$f()).base(n.base())},Ws.apply(n,arguments)}function P_(){var n=_y(Pa());return n.copy=function(){return Nc(n,P_()).constant(n.constant())},Ws.apply(n,arguments)}function t2(){var n=by(Pa());return n.copy=function(){return Nc(n,t2()).exponent(n.exponent())},Ws.apply(n,arguments)}function w0(){return t2.apply(null,arguments).exponent(.5)}function Vn(n){for(var i=n.length/6|0,c=new Array(i),u=0;u<i;)c[u]="#"+n.slice(6*u,6*++u);return c}const Ix=Vn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Rx=Vn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Fx=Vn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Px=Vn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Yx=Vn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),jx=Vn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Y_=Vn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Ux=Vn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),qf=Vn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),k0=Vn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function gr(n){return el(n[n.length-1])}var Oc=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Vn);const T0=gr(Oc);var e2=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Vn);const j_=gr(e2);var Cu=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Vn);const U_=gr(Cu);var z_=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Vn);const W_=gr(z_);var Vf=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Vn);const ra=gr(Vf);var H_=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Vn);const E0=gr(H_);var $_=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Vn);const q_=gr($_);var V_=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Vn);const n2=gr(V_);var r2=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Vn);const G_=gr(r2);var Xl=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Vn);const i2=gr(Xl);var S0=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Vn);const X_=gr(S0);var Ea=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Vn);const zx=gr(Ea);var a2=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Vn);const Zs=gr(a2);var Qs=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Vn);const $r=gr(Qs);var o2=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Vn);const Z_=gr(o2);var s2=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Vn);const Wx=gr(s2);var C0=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Vn);const c2=gr(C0);var gs=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Vn);const M0=gr(gs);var u2=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Vn);const Zl=gr(u2);var fi=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Vn);const Mu=gr(fi);var Au=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Vn);const ys=gr(Au);var Gf=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Vn);const l2=gr(Gf);var A0=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Vn);const h2=gr(A0);var Xf=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Vn);const D0=gr(Xf);var Q_=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Vn);const f2=gr(Q_);var d2=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Vn);const Hx=gr(d2);var N0=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Vn);const J_=gr(N0);function $x(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-n*(35.34-n*(2381.73-n*(6402.7-n*(7024.72-2710.57*n)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+n*(170.73+n*(52.82-n*(131.46-n*(176.58-67.37*n)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+n*(442.36-n*(2482.43-n*(6167.24-n*(6614.94-2475.67*n)))))))+")"}const K_=Tf(ga(300,.5,0),ga(-240,.5,1));var tb=Tf(ga(-100,.75,.35),ga(80,1.5,.8)),rr=Tf(ga(260,.75,.35),ga(80,1.5,.8)),O0=ga();function B0(n){(n<0||n>1)&&(n-=Math.floor(n));var i=Math.abs(n-.5);return O0.h=360*n-100,O0.s=1.5-1.5*i,O0.l=.8-.9*i,O0+""}var L0=Hi(),ro=Math.PI/3,qx=2*Math.PI/3;function eb(n){var i;return n=(.5-n)*Math.PI,L0.r=255*(i=Math.sin(n))*i,L0.g=255*(i=Math.sin(n+ro))*i,L0.b=255*(i=Math.sin(n+qx))*i,L0+""}function Vx(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+n*(1172.33-n*(10793.56-n*(33300.12-n*(38394.49-14825.05*n)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+n*(557.33+n*(1225.33-n*(3574.96-n*(1073.77+707.56*n)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+n*(3211.1-n*(15327.97-n*(27814-n*(22569.18-6838.66*n)))))))+")"}function I0(n){var i=n.length;return function(c){return n[Math.max(0,Math.min(i-1,Math.floor(c*i)))]}}const Gx=I0(Vn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Xx=I0(Vn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Zx=I0(Vn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Qx=I0(Vn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Jx(n){return Yn(qe(n).call(document.documentElement))}var Kx=0;function nb(){return new p2}function p2(){this._="@"+(++Kx).toString(36)}function t6(n){return typeof n=="string"?new Mn([document.querySelectorAll(n)],[document.documentElement]):new Mn([n==null?[]:n],$a)}function Js(n,i){i==null&&(i=Xa().touches);for(var c=0,u=i?i.length:0,g=new Array(u);c<u;++c)g[c]=ru(n,i[c]);return g}function cr(n){return function(){return n}}p2.prototype=nb.prototype={constructor:p2,get:function(n){for(var i=this._;!(i in n);)if(!(n=n.parentNode))return;return n[i]},set:function(n,i){return n[this._]=i},remove:function(n){return this._ in n&&delete n[this._]},toString:function(){return this._}};var g2=Math.abs,ia=Math.atan2,Du=Math.cos,rb=Math.max,R0=Math.min,ms=Math.sin,Bc=Math.sqrt,Zi=1e-12,qo=Math.PI,io=qo/2,vs=2*qo;function y2(n){return n>1?0:n<-1?qo:Math.acos(n)}function Ql(n){return n>=1?io:n<=-1?-io:Math.asin(n)}function m2(n){return n.innerRadius}function v2(n){return n.outerRadius}function _2(n){return n.startAngle}function Jl(n){return n.endAngle}function ib(n){return n&&n.padAngle}function F0(n,i,c,u,g,v,k,x){var C=c-n,D=u-i,I=k-g,Y=x-v,B=Y*C-I*D;if(!(B*B<Zi))return[n+(B=(I*(i-v)-Y*(n-g))/B)*C,i+B*D]}function Lc(n,i,c,u,g,v,k){var x=n-c,C=i-u,D=(k?v:-v)/Bc(x*x+C*C),I=D*C,Y=-D*x,B=n+I,z=i+Y,$=c+I,Z=u+Y,Q=(B+$)/2,G=(z+Z)/2,it=$-B,nt=Z-z,ut=it*it+nt*nt,Rt=g-v,Ht=B*Z-$*z,Xt=(nt<0?-1:1)*Bc(rb(0,Rt*Rt*ut-Ht*Ht)),ve=(Ht*nt-it*Xt)/ut,Yt=(-Ht*it-nt*Xt)/ut,oe=(Ht*nt+it*Xt)/ut,ct=(-Ht*it+nt*Xt)/ut,wt=ve-Q,ee=Yt-G,Gt=oe-Q,ie=ct-G;return wt*wt+ee*ee>Gt*Gt+ie*ie&&(ve=oe,Yt=ct),{cx:ve,cy:Yt,x01:-I,y01:-Y,x11:ve*(g/Rt-1),y11:Yt*(g/Rt-1)}}function b2(){var n=m2,i=v2,c=cr(0),u=null,g=_2,v=Jl,k=ib,x=null;function C(){var D,I,Y=+n.apply(this,arguments),B=+i.apply(this,arguments),z=g.apply(this,arguments)-io,$=v.apply(this,arguments)-io,Z=g2($-z),Q=$>z;if(x||(x=D=Os()),B<Y&&(I=B,B=Y,Y=I),B>Zi)if(Z>vs-Zi)x.moveTo(B*Du(z),B*ms(z)),x.arc(0,0,B,z,$,!Q),Y>Zi&&(x.moveTo(Y*Du($),Y*ms($)),x.arc(0,0,Y,$,z,Q));else{var G,it,nt=z,ut=$,Rt=z,Ht=$,Xt=Z,ve=Z,Yt=k.apply(this,arguments)/2,oe=Yt>Zi&&(u?+u.apply(this,arguments):Bc(Y*Y+B*B)),ct=R0(g2(B-Y)/2,+c.apply(this,arguments)),wt=ct,ee=ct;if(oe>Zi){var Gt=Ql(oe/Y*ms(Yt)),ie=Ql(oe/B*ms(Yt));(Xt-=2*Gt)>Zi?(Rt+=Gt*=Q?1:-1,Ht-=Gt):(Xt=0,Rt=Ht=(z+$)/2),(ve-=2*ie)>Zi?(nt+=ie*=Q?1:-1,ut-=ie):(ve=0,nt=ut=(z+$)/2)}var Ne=B*Du(nt),$e=B*ms(nt),kn=Y*Du(Ht),Kn=Y*ms(Ht);if(ct>Zi){var ur,nn=B*Du(ut),Gn=B*ms(ut),An=Y*Du(Rt),vn=Y*ms(Rt);if(Z<qo&&(ur=F0(Ne,$e,An,vn,nn,Gn,kn,Kn))){var Fn=Ne-ur[0],Pi=$e-ur[1],ki=nn-ur[0],ws=Gn-ur[1],Wc=1/ms(y2((Fn*ki+Pi*ws)/(Bc(Fn*Fn+Pi*Pi)*Bc(ki*ki+ws*ws)))/2),dd=Bc(ur[0]*ur[0]+ur[1]*ur[1]);wt=R0(ct,(Y-dd)/(Wc-1)),ee=R0(ct,(B-dd)/(Wc+1))}}ve>Zi?ee>Zi?(G=Lc(An,vn,Ne,$e,B,ee,Q),it=Lc(nn,Gn,kn,Kn,B,ee,Q),x.moveTo(G.cx+G.x01,G.cy+G.y01),ee<ct?x.arc(G.cx,G.cy,ee,ia(G.y01,G.x01),ia(it.y01,it.x01),!Q):(x.arc(G.cx,G.cy,ee,ia(G.y01,G.x01),ia(G.y11,G.x11),!Q),x.arc(0,0,B,ia(G.cy+G.y11,G.cx+G.x11),ia(it.cy+it.y11,it.cx+it.x11),!Q),x.arc(it.cx,it.cy,ee,ia(it.y11,it.x11),ia(it.y01,it.x01),!Q))):(x.moveTo(Ne,$e),x.arc(0,0,B,nt,ut,!Q)):x.moveTo(Ne,$e),Y>Zi&&Xt>Zi?wt>Zi?(G=Lc(kn,Kn,nn,Gn,Y,-wt,Q),it=Lc(Ne,$e,An,vn,Y,-wt,Q),x.lineTo(G.cx+G.x01,G.cy+G.y01),wt<ct?x.arc(G.cx,G.cy,wt,ia(G.y01,G.x01),ia(it.y01,it.x01),!Q):(x.arc(G.cx,G.cy,wt,ia(G.y01,G.x01),ia(G.y11,G.x11),!Q),x.arc(0,0,Y,ia(G.cy+G.y11,G.cx+G.x11),ia(it.cy+it.y11,it.cx+it.x11),Q),x.arc(it.cx,it.cy,wt,ia(it.y11,it.x11),ia(it.y01,it.x01),!Q))):x.arc(0,0,Y,Ht,Rt,Q):x.lineTo(kn,Kn)}else x.moveTo(0,0);if(x.closePath(),D)return x=null,D+""||null}return C.centroid=function(){var D=(+n.apply(this,arguments)+ +i.apply(this,arguments))/2,I=(+g.apply(this,arguments)+ +v.apply(this,arguments))/2-qo/2;return[Du(I)*D,ms(I)*D]},C.innerRadius=function(D){return arguments.length?(n=typeof D=="function"?D:cr(+D),C):n},C.outerRadius=function(D){return arguments.length?(i=typeof D=="function"?D:cr(+D),C):i},C.cornerRadius=function(D){return arguments.length?(c=typeof D=="function"?D:cr(+D),C):c},C.padRadius=function(D){return arguments.length?(u=D==null?null:typeof D=="function"?D:cr(+D),C):u},C.startAngle=function(D){return arguments.length?(g=typeof D=="function"?D:cr(+D),C):g},C.endAngle=function(D){return arguments.length?(v=typeof D=="function"?D:cr(+D),C):v},C.padAngle=function(D){return arguments.length?(k=typeof D=="function"?D:cr(+D),C):k},C.context=function(D){return arguments.length?(x=D==null?null:D,C):x},C}function P0(n){this._context=n}function Y0(n){return new P0(n)}function j0(n){return n[0]}function x2(n){return n[1]}function Zf(){var n=j0,i=x2,c=cr(!0),u=null,g=Y0,v=null;function k(x){var C,D,I,Y=x.length,B=!1;for(u==null&&(v=g(I=Os())),C=0;C<=Y;++C)!(C<Y&&c(D=x[C],C,x))===B&&((B=!B)?v.lineStart():v.lineEnd()),B&&v.point(+n(D,C,x),+i(D,C,x));if(I)return v=null,I+""||null}return k.x=function(x){return arguments.length?(n=typeof x=="function"?x:cr(+x),k):n},k.y=function(x){return arguments.length?(i=typeof x=="function"?x:cr(+x),k):i},k.defined=function(x){return arguments.length?(c=typeof x=="function"?x:cr(!!x),k):c},k.curve=function(x){return arguments.length?(g=x,u!=null&&(v=g(u)),k):g},k.context=function(x){return arguments.length?(x==null?u=v=null:v=g(u=x),k):u},k}function w2(){var n=j0,i=null,c=cr(0),u=x2,g=cr(!0),v=null,k=Y0,x=null;function C(I){var Y,B,z,$,Z,Q=I.length,G=!1,it=new Array(Q),nt=new Array(Q);for(v==null&&(x=k(Z=Os())),Y=0;Y<=Q;++Y){if(!(Y<Q&&g($=I[Y],Y,I))===G)if(G=!G)B=Y,x.areaStart(),x.lineStart();else{for(x.lineEnd(),x.lineStart(),z=Y-1;z>=B;--z)x.point(it[z],nt[z]);x.lineEnd(),x.areaEnd()}G&&(it[Y]=+n($,Y,I),nt[Y]=+c($,Y,I),x.point(i?+i($,Y,I):it[Y],u?+u($,Y,I):nt[Y]))}if(Z)return x=null,Z+""||null}function D(){return Zf().defined(g).curve(k).context(v)}return C.x=function(I){return arguments.length?(n=typeof I=="function"?I:cr(+I),i=null,C):n},C.x0=function(I){return arguments.length?(n=typeof I=="function"?I:cr(+I),C):n},C.x1=function(I){return arguments.length?(i=I==null?null:typeof I=="function"?I:cr(+I),C):i},C.y=function(I){return arguments.length?(c=typeof I=="function"?I:cr(+I),u=null,C):c},C.y0=function(I){return arguments.length?(c=typeof I=="function"?I:cr(+I),C):c},C.y1=function(I){return arguments.length?(u=I==null?null:typeof I=="function"?I:cr(+I),C):u},C.lineX0=C.lineY0=function(){return D().x(n).y(c)},C.lineY1=function(){return D().x(n).y(u)},C.lineX1=function(){return D().x(i).y(c)},C.defined=function(I){return arguments.length?(g=typeof I=="function"?I:cr(!!I),C):g},C.curve=function(I){return arguments.length?(k=I,v!=null&&(x=k(v)),C):k},C.context=function(I){return arguments.length?(I==null?v=x=null:x=k(v=I),C):v},C}function ab(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function ob(n){return n}function Kl(){var n=ob,i=ab,c=null,u=cr(0),g=cr(vs),v=cr(0);function k(x){var C,D,I,Y,B,z=x.length,$=0,Z=new Array(z),Q=new Array(z),G=+u.apply(this,arguments),it=Math.min(vs,Math.max(-vs,g.apply(this,arguments)-G)),nt=Math.min(Math.abs(it)/z,v.apply(this,arguments)),ut=nt*(it<0?-1:1);for(C=0;C<z;++C)(B=Q[Z[C]=C]=+n(x[C],C,x))>0&&($+=B);for(i!=null?Z.sort(function(Rt,Ht){return i(Q[Rt],Q[Ht])}):c!=null&&Z.sort(function(Rt,Ht){return c(x[Rt],x[Ht])}),C=0,I=$?(it-z*ut)/$:0;C<z;++C,G=Y)D=Z[C],Y=G+((B=Q[D])>0?B*I:0)+ut,Q[D]={data:x[D],index:C,value:B,startAngle:G,endAngle:Y,padAngle:nt};return Q}return k.value=function(x){return arguments.length?(n=typeof x=="function"?x:cr(+x),k):n},k.sortValues=function(x){return arguments.length?(i=x,c=null,k):i},k.sort=function(x){return arguments.length?(c=x,i=null,k):c},k.startAngle=function(x){return arguments.length?(u=typeof x=="function"?x:cr(+x),k):u},k.endAngle=function(x){return arguments.length?(g=typeof x=="function"?x:cr(+x),k):g},k.padAngle=function(x){return arguments.length?(v=typeof x=="function"?x:cr(+x),k):v},k}P0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;default:this._context.lineTo(n,i)}}};var xi=Ic(Y0);function k2(n){this._curve=n}function Ic(n){function i(c){return new k2(n(c))}return i._curve=n,i}function th(n){var i=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(c){return arguments.length?i(Ic(c)):i()._curve},n}function T2(){return th(Zf().curve(xi))}function E2(){var n=w2().curve(xi),i=n.curve,c=n.lineX0,u=n.lineX1,g=n.lineY0,v=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return th(c())},delete n.lineX0,n.lineEndAngle=function(){return th(u())},delete n.lineX1,n.lineInnerRadius=function(){return th(g())},delete n.lineY0,n.lineOuterRadius=function(){return th(v())},delete n.lineY1,n.curve=function(k){return arguments.length?i(Ic(k)):i()._curve},n}function Ks(n,i){return[(i=+i)*Math.cos(n-=Math.PI/2),i*Math.sin(n)]}k2.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(n,i){this._curve.point(i*Math.sin(n),i*-Math.cos(n))}};var U0=Array.prototype.slice;function Rc(n){return n.source}function Fc(n){return n.target}function S2(n){var i=Rc,c=Fc,u=j0,g=x2,v=null;function k(){var x,C=U0.call(arguments),D=i.apply(this,C),I=c.apply(this,C);if(v||(v=x=Os()),n(v,+u.apply(this,(C[0]=D,C)),+g.apply(this,C),+u.apply(this,(C[0]=I,C)),+g.apply(this,C)),x)return v=null,x+""||null}return k.source=function(x){return arguments.length?(i=x,k):i},k.target=function(x){return arguments.length?(c=x,k):c},k.x=function(x){return arguments.length?(u=typeof x=="function"?x:cr(+x),k):u},k.y=function(x){return arguments.length?(g=typeof x=="function"?x:cr(+x),k):g},k.context=function(x){return arguments.length?(v=x==null?null:x,k):v},k}function e6(n,i,c,u,g){n.moveTo(i,c),n.bezierCurveTo(i=(i+u)/2,c,i,g,u,g)}function Ci(n,i,c,u,g){n.moveTo(i,c),n.bezierCurveTo(i,c=(c+g)/2,u,c,u,g)}function Sa(n,i,c,u,g){var v=Ks(i,c),k=Ks(i,c=(c+g)/2),x=Ks(u,c),C=Ks(u,g);n.moveTo(v[0],v[1]),n.bezierCurveTo(k[0],k[1],x[0],x[1],C[0],C[1])}function Fi(){return S2(e6)}function _s(){return S2(Ci)}function sb(){var n=S2(Sa);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}const Qf={draw:function(n,i){var c=Math.sqrt(i/qo);n.moveTo(c,0),n.arc(0,0,c,0,vs)}},C2={draw:function(n,i){var c=Math.sqrt(i/5)/2;n.moveTo(-3*c,-c),n.lineTo(-c,-c),n.lineTo(-c,-3*c),n.lineTo(c,-3*c),n.lineTo(c,-c),n.lineTo(3*c,-c),n.lineTo(3*c,c),n.lineTo(c,c),n.lineTo(c,3*c),n.lineTo(-c,3*c),n.lineTo(-c,c),n.lineTo(-3*c,c),n.closePath()}};var Jf=Math.sqrt(1/3),cb=2*Jf;const M2={draw:function(n,i){var c=Math.sqrt(i/cb),u=c*Jf;n.moveTo(0,-c),n.lineTo(u,0),n.lineTo(0,c),n.lineTo(-u,0),n.closePath()}};var A2=Math.sin(qo/10)/Math.sin(7*qo/10),ub=Math.sin(vs/10)*A2,eh=-Math.cos(vs/10)*A2;const Nu={draw:function(n,i){var c=Math.sqrt(.8908130915292852*i),u=ub*c,g=eh*c;n.moveTo(0,-c),n.lineTo(u,g);for(var v=1;v<5;++v){var k=vs*v/5,x=Math.cos(k),C=Math.sin(k);n.lineTo(C*c,-x*c),n.lineTo(x*u-C*g,C*u+x*g)}n.closePath()}},lb={draw:function(n,i){var c=Math.sqrt(i),u=-c/2;n.rect(u,u,c,c)}};var z0=Math.sqrt(3);const tc={draw:function(n,i){var c=-Math.sqrt(i/(3*z0));n.moveTo(0,2*c),n.lineTo(-z0*c,-c),n.lineTo(z0*c,-c),n.closePath()}};var Nn=-.5,ao=Math.sqrt(3)/2,Pc=1/Math.sqrt(12),hb=3*(Pc/2+1);const W0={draw:function(n,i){var c=Math.sqrt(i/hb),u=c/2,g=c*Pc,v=u,k=c*Pc+c,x=-v,C=k;n.moveTo(u,g),n.lineTo(v,k),n.lineTo(x,C),n.lineTo(Nn*u-ao*g,ao*u+Nn*g),n.lineTo(Nn*v-ao*k,ao*v+Nn*k),n.lineTo(Nn*x-ao*C,ao*x+Nn*C),n.lineTo(Nn*u+ao*g,Nn*g-ao*u),n.lineTo(Nn*v+ao*k,Nn*k-ao*v),n.lineTo(Nn*x+ao*C,Nn*C-ao*x),n.closePath()}};var n6=[Qf,C2,M2,lb,Nu,tc,W0];function D2(){var n=cr(Qf),i=cr(64),c=null;function u(){var g;if(c||(c=g=Os()),n.apply(this,arguments).draw(c,+i.apply(this,arguments)),g)return c=null,g+""||null}return u.type=function(g){return arguments.length?(n=typeof g=="function"?g:cr(g),u):n},u.size=function(g){return arguments.length?(i=typeof g=="function"?g:cr(+g),u):i},u.context=function(g){return arguments.length?(c=g==null?null:g,u):c},u}function ec(){}function Kf(n,i,c){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+i)/6,(n._y0+4*n._y1+c)/6)}function td(n){this._context=n}function fb(n){return new td(n)}function N2(n){this._context=n}function r6(n){return new N2(n)}function O2(n){this._context=n}function i6(n){return new O2(n)}function B2(n,i){this._basis=new td(n),this._beta=i}td.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Kf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Kf(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},N2.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._x2=n,this._y2=i;break;case 1:this._point=2,this._x3=n,this._y3=i;break;case 2:this._point=3,this._x4=n,this._y4=i,this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+i)/6);break;default:Kf(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},O2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var c=(this._x0+4*this._x1+n)/6,u=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(c,u):this._context.moveTo(c,u);break;case 3:this._point=4;default:Kf(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},B2.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,i=this._y,c=n.length-1;if(c>0)for(var u,g=n[0],v=i[0],k=n[c]-g,x=i[c]-v,C=-1;++C<=c;)u=C/c,this._basis.point(this._beta*n[C]+(1-this._beta)*(g+u*k),this._beta*i[C]+(1-this._beta)*(v+u*x));this._x=this._y=null,this._basis.lineEnd()},point:function(n,i){this._x.push(+n),this._y.push(+i)}};const a6=function n(i){function c(u){return i===1?new td(u):new B2(u,i)}return c.beta=function(u){return n(+u)},c}(.85);function ed(n,i,c){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-i),n._y2+n._k*(n._y1-c),n._x2,n._y2)}function nh(n,i){this._context=n,this._k=(1-i)/6}nh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ed(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2,this._x1=n,this._y1=i;break;case 2:this._point=3;default:ed(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const L2=function n(i){function c(u){return new nh(u,i)}return c.tension=function(u){return n(+u)},c}(0);function nd(n,i){this._context=n,this._k=(1-i)/6}nd.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._x3=n,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=i);break;case 2:this._point=3,this._x5=n,this._y5=i;break;default:ed(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const I2=function n(i){function c(u){return new nd(u,i)}return c.tension=function(u){return n(+u)},c}(0);function bs(n,i){this._context=n,this._k=(1-i)/6}bs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ed(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const nc=function n(i){function c(u){return new bs(u,i)}return c.tension=function(u){return n(+u)},c}(0);function R2(n,i,c){var u=n._x1,g=n._y1,v=n._x2,k=n._y2;if(n._l01_a>Zi){var x=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,C=3*n._l01_a*(n._l01_a+n._l12_a);u=(u*x-n._x0*n._l12_2a+n._x2*n._l01_2a)/C,g=(g*x-n._y0*n._l12_2a+n._y2*n._l01_2a)/C}if(n._l23_a>Zi){var D=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,I=3*n._l23_a*(n._l23_a+n._l12_a);v=(v*D+n._x1*n._l23_2a-i*n._l12_2a)/I,k=(k*D+n._y1*n._l23_2a-c*n._l12_2a)/I}n._context.bezierCurveTo(u,g,v,k,n._x2,n._y2)}function rd(n,i){this._context=n,this._alpha=i}rd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){if(n=+n,i=+i,this._point){var c=this._x2-n,u=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+u*u,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;break;case 2:this._point=3;default:R2(this,n,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const o6=function n(i){function c(u){return i?new rd(u,i):new nh(u,0)}return c.alpha=function(u){return n(+u)},c}(.5);function H0(n,i){this._context=n,this._alpha=i}H0.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,i){if(n=+n,i=+i,this._point){var c=this._x2-n,u=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+u*u,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=n,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=i);break;case 2:this._point=3,this._x5=n,this._y5=i;break;default:R2(this,n,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const Ya=function n(i){function c(u){return i?new H0(u,i):new nd(u,0)}return c.alpha=function(u){return n(+u)},c}(.5);function rh(n,i){this._context=n,this._alpha=i}rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){if(n=+n,i=+i,this._point){var c=this._x2-n,u=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+u*u,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:R2(this,n,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const Yc=function n(i){function c(u){return i?new rh(u,i):new bs(u,0)}return c.alpha=function(u){return n(+u)},c}(.5);function ih(n){this._context=n}function ah(n){return new ih(n)}function $0(n){return n<0?-1:1}function db(n,i,c){var u=n._x1-n._x0,g=i-n._x1,v=(n._y1-n._y0)/(u||g<0&&-0),k=(c-n._y1)/(g||u<0&&-0),x=(v*g+k*u)/(u+g);return($0(v)+$0(k))*Math.min(Math.abs(v),Math.abs(k),.5*Math.abs(x))||0}function wi(n,i){var c=n._x1-n._x0;return c?(3*(n._y1-n._y0)/c-i)/2:i}function q0(n,i,c){var u=n._x0,g=n._y0,v=n._x1,k=n._y1,x=(v-u)/3;n._context.bezierCurveTo(u+x,g+x*i,v-x,k-x*c,v,k)}function id(n){this._context=n}function F2(n){this._context=new P2(n)}function P2(n){this._context=n}function oh(n){return new id(n)}function pb(n){return new F2(n)}function gb(n){this._context=n}function en(n){var i,c,u=n.length-1,g=new Array(u),v=new Array(u),k=new Array(u);for(g[0]=0,v[0]=2,k[0]=n[0]+2*n[1],i=1;i<u-1;++i)g[i]=1,v[i]=4,k[i]=4*n[i]+2*n[i+1];for(g[u-1]=2,v[u-1]=7,k[u-1]=8*n[u-1]+n[u],i=1;i<u;++i)c=g[i]/v[i-1],v[i]-=c,k[i]-=c*k[i-1];for(g[u-1]=k[u-1]/v[u-1],i=u-2;i>=0;--i)g[i]=(k[i]-g[i+1])/v[i];for(v[u-1]=(n[u]+g[u-1])/2,i=0;i<u-1;++i)v[i]=2*n[i+1]-g[i+1];return[g,v]}function s6(n){return new gb(n)}function jc(n,i){this._context=n,this._t=i}function Uc(n){return new jc(n,.5)}function xs(n){return new jc(n,0)}function yb(n){return new jc(n,1)}function Ou(n,i){if((g=n.length)>1)for(var c,u,g,v=1,k=n[i[0]],x=k.length;v<g;++v)for(u=k,k=n[i[v]],c=0;c<x;++c)k[c][1]+=k[c][0]=isNaN(u[c][1])?u[c][0]:u[c][1]}function Bu(n){for(var i=n.length,c=new Array(i);--i>=0;)c[i]=i;return c}function mb(n,i){return n[i]}function Y2(){var n=cr([]),i=Bu,c=Ou,u=mb;function g(v){var k,x,C=n.apply(this,arguments),D=v.length,I=C.length,Y=new Array(I);for(k=0;k<I;++k){for(var B,z=C[k],$=Y[k]=new Array(D),Z=0;Z<D;++Z)$[Z]=B=[0,+u(v[Z],z,Z,v)],B.data=v[Z];$.key=z}for(k=0,x=i(Y);k<I;++k)Y[x[k]].index=k;return c(Y,x),Y}return g.keys=function(v){return arguments.length?(n=typeof v=="function"?v:cr(U0.call(v)),g):n},g.value=function(v){return arguments.length?(u=typeof v=="function"?v:cr(+v),g):u},g.order=function(v){return arguments.length?(i=v==null?Bu:typeof v=="function"?v:cr(U0.call(v)),g):i},g.offset=function(v){return arguments.length?(c=v==null?Ou:v,g):c},g}function c6(n,i){if((u=n.length)>0){for(var c,u,g,v=0,k=n[0].length;v<k;++v){for(g=c=0;c<u;++c)g+=n[c][v][1]||0;if(g)for(c=0;c<u;++c)n[c][v][1]/=g}Ou(n,i)}}function oo(n,i){if((x=n.length)>0)for(var c,u,g,v,k,x,C=0,D=n[i[0]].length;C<D;++C)for(v=k=0,c=0;c<x;++c)(g=(u=n[i[c]][C])[1]-u[0])>0?(u[0]=v,u[1]=v+=g):g<0?(u[1]=k,u[0]=k+=g):(u[0]=0,u[1]=g)}function ad(n,i){if((c=n.length)>0){for(var c,u=0,g=n[i[0]],v=g.length;u<v;++u){for(var k=0,x=0;k<c;++k)x+=n[k][u][1]||0;g[u][1]+=g[u][0]=-x/2}Ou(n,i)}}function Lu(n,i){if((g=n.length)>0&&(u=(c=n[i[0]]).length)>0){for(var c,u,g,v=0,k=1;k<u;++k){for(var x=0,C=0,D=0;x<g;++x){for(var I=n[i[x]],Y=I[k][1]||0,B=(Y-(I[k-1][1]||0))/2,z=0;z<x;++z){var $=n[i[z]];B+=($[k][1]||0)-($[k-1][1]||0)}C+=Y,D+=B*Y}c[k-1][1]+=c[k-1][0]=v,C&&(v-=D/C)}c[k-1][1]+=c[k-1][0]=v,Ou(n,i)}}function sh(n){var i=n.map(vb);return Bu(n).sort(function(c,u){return i[c]-i[u]})}function vb(n){for(var i,c=-1,u=0,g=n.length,v=-1/0;++c<g;)(i=+n[c][1])>v&&(v=i,u=c);return u}function j2(n){var i=n.map(V0);return Bu(n).sort(function(c,u){return i[c]-i[u]})}function V0(n){for(var i,c=0,u=-1,g=n.length;++u<g;)(i=+n[u][1])&&(c+=i);return c}function _b(n){return j2(n).reverse()}function bb(n){var i,c,u=n.length,g=n.map(V0),v=sh(n),k=0,x=0,C=[],D=[];for(i=0;i<u;++i)c=v[i],k<x?(k+=g[c],C.push(c)):(x+=g[c],D.push(c));return D.reverse().concat(C)}function xb(n){return Bu(n).reverse()}ih.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(n,i){n=+n,i=+i,this._point?this._context.lineTo(n,i):(this._point=1,this._context.moveTo(n,i))}},id.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:q0(this,this._t0,wi(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){var c=NaN;if(i=+i,(n=+n)!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;break;case 2:this._point=3,q0(this,wi(this,c=db(this,n,i)),c);break;default:q0(this,this._t0,c=db(this,n,i))}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i,this._t0=c}}},(F2.prototype=Object.create(id.prototype)).point=function(n,i){id.prototype.point.call(this,i,n)},P2.prototype={moveTo:function(n,i){this._context.moveTo(i,n)},closePath:function(){this._context.closePath()},lineTo:function(n,i){this._context.lineTo(i,n)},bezierCurveTo:function(n,i,c,u,g,v){this._context.bezierCurveTo(i,n,u,c,v,g)}},gb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var n=this._x,i=this._y,c=n.length;if(c)if(this._line?this._context.lineTo(n[0],i[0]):this._context.moveTo(n[0],i[0]),c===2)this._context.lineTo(n[1],i[1]);else for(var u=en(n),g=en(i),v=0,k=1;k<c;++v,++k)this._context.bezierCurveTo(u[0][v],g[0][v],u[1][v],g[1][v],n[k],i[k]);(this._line||this._line!==0&&c===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(n,i){this._x.push(+n),this._y.push(+i)}},jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(n,i);else{var c=this._x*(1-this._t)+n*this._t;this._context.lineTo(c,this._y),this._context.lineTo(c,i)}}this._x=n,this._y=i}};var U2="%Y-%m-%dT%H:%M:%S.%LZ",z2=Date.prototype.toISOString?function(n){return n.toISOString()}:Hl(U2);const G0=z2;var W2=+new Date("2000-01-01T00:00:00.000Z")?function(n){var i=new Date(n);return isNaN(i)?null:i}:Fy(U2);const u6=W2;function l6(n,i,c){var u=new $t,g=i;return i==null?(u.restart(n,i,c),u):(i=+i,c=c==null?q():+c,u.restart(function v(k){k+=g,u.restart(v,g+=i,c),n(k)},i,c),u)}function H2(n){return function(){return n}}function wb(n){return n[0]}function od(n){return n[1]}function $2(){this._=null}function vo(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function sd(n,i){var c=i,u=i.R,g=c.U;g?g.L===c?g.L=u:g.R=u:n._=u,u.U=g,c.U=u,c.R=u.L,c.R&&(c.R.U=c),u.L=c}function cd(n,i){var c=i,u=i.L,g=c.U;g?g.L===c?g.L=u:g.R=u:n._=u,u.U=g,c.U=u,c.L=u.R,c.L&&(c.L.U=c),u.R=c}function kb(n){for(;n.L;)n=n.L;return n}$2.prototype={constructor:$2,insert:function(n,i){var c,u,g;if(n){if(i.P=n,i.N=n.N,n.N&&(n.N.P=i),n.N=i,n.R){for(n=n.R;n.L;)n=n.L;n.L=i}else n.R=i;c=n}else this._?(n=kb(this._),i.P=null,i.N=n,n.P=n.L=i,c=n):(i.P=i.N=null,this._=i,c=null);for(i.L=i.R=null,i.U=c,i.C=!0,n=i;c&&c.C;)c===(u=c.U).L?(g=u.R)&&g.C?(c.C=g.C=!1,u.C=!0,n=u):(n===c.R&&(sd(this,c),c=(n=c).U),c.C=!1,u.C=!0,cd(this,u)):(g=u.L)&&g.C?(c.C=g.C=!1,u.C=!0,n=u):(n===c.L&&(cd(this,c),c=(n=c).U),c.C=!1,u.C=!0,sd(this,u)),c=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var i,c,u,g=n.U,v=n.L,k=n.R;if(c=v?k?kb(k):v:k,g?g.L===n?g.L=c:g.R=c:this._=c,v&&k?(u=c.C,c.C=n.C,c.L=v,v.U=c,c!==k?(g=c.U,c.U=n.U,n=c.R,g.L=n,c.R=k,k.U=c):(c.U=g,g=c,n=c.R)):(u=n.C,n=c),n&&(n.U=g),!u)if(n&&n.C)n.C=!1;else{do{if(n===this._)break;if(n===g.L){if((i=g.R).C&&(i.C=!1,g.C=!0,sd(this,g),i=g.R),i.L&&i.L.C||i.R&&i.R.C){i.R&&i.R.C||(i.L.C=!1,i.C=!0,cd(this,i),i=g.R),i.C=g.C,g.C=i.R.C=!1,sd(this,g),n=this._;break}}else if((i=g.L).C&&(i.C=!1,g.C=!0,cd(this,g),i=g.L),i.L&&i.L.C||i.R&&i.R.C){i.L&&i.L.C||(i.R.C=!1,i.C=!0,sd(this,i),i=g.L),i.C=g.C,g.C=i.L.C=!1,cd(this,g),n=this._;break}i.C=!0,n=g,g=g.U}while(!n.C);n&&(n.C=!1)}}};const q2=$2;function ud(n,i,c,u){var g=[null,null],v=aa.push(g)-1;return g.left=n,g.right=i,c&&X0(g,n,i,c),u&&X0(g,i,n,u),Ca[n.index].halfedges.push(v),Ca[i.index].halfedges.push(v),g}function ld(n,i,c){var u=[i,c];return u.left=n,u}function X0(n,i,c,u){n[0]||n[1]?n.left===c?n[1]=u:n[0]=u:(n[0]=u,n.left=i,n.right=c)}function h6(n,i,c,u,g){var v,k=n[0],x=n[1],C=k[0],D=k[1],I=0,Y=1,B=x[0]-C,z=x[1]-D;if(v=i-C,B||!(v>0)){if(v/=B,B<0){if(v<I)return;v<Y&&(Y=v)}else if(B>0){if(v>Y)return;v>I&&(I=v)}if(v=u-C,B||!(v<0)){if(v/=B,B<0){if(v>Y)return;v>I&&(I=v)}else if(B>0){if(v<I)return;v<Y&&(Y=v)}if(v=c-D,z||!(v>0)){if(v/=z,z<0){if(v<I)return;v<Y&&(Y=v)}else if(z>0){if(v>Y)return;v>I&&(I=v)}if(v=g-D,z||!(v<0)){if(v/=z,z<0){if(v>Y)return;v>I&&(I=v)}else if(z>0){if(v<I)return;v<Y&&(Y=v)}return!(I>0||Y<1)||(I>0&&(n[0]=[C+I*B,D+I*z]),Y<1&&(n[1]=[C+Y*B,D+Y*z]),!0)}}}}}function f6(n,i,c,u,g){var v=n[1];if(v)return!0;var k,x,C=n[0],D=n.left,I=n.right,Y=D[0],B=D[1],z=I[0],$=I[1],Z=(Y+z)/2,Q=(B+$)/2;if($===B){if(Z<i||Z>=u)return;if(Y>z){if(C){if(C[1]>=g)return}else C=[Z,c];v=[Z,g]}else{if(C){if(C[1]<c)return}else C=[Z,g];v=[Z,c]}}else if(x=Q-(k=(Y-z)/($-B))*Z,k<-1||k>1)if(Y>z){if(C){if(C[1]>=g)return}else C=[(c-x)/k,c];v=[(g-x)/k,g]}else{if(C){if(C[1]<c)return}else C=[(g-x)/k,g];v=[(c-x)/k,c]}else if(B<$){if(C){if(C[0]>=u)return}else C=[i,k*i+x];v=[u,k*u+x]}else{if(C){if(C[0]<i)return}else C=[u,k*u+x];v=[i,k*i+x]}return n[0]=C,n[1]=v,!0}function d6(n,i){var c=n.site,u=i.left,g=i.right;return c===g&&(g=u,u=c),g?Math.atan2(g[1]-u[1],g[0]-u[0]):(c===u?(u=i[1],g=i[0]):(u=i[0],g=i[1]),Math.atan2(u[0]-g[0],g[1]-u[1]))}function hd(n,i){return i[+(i.left!==n.site)]}function p6(n,i){return i[+(i.left===n.site)]}var V2,Tb=[];function g6(){vo(this),this.x=this.y=this.arc=this.site=this.cy=null}function ch(n){var i=n.P,c=n.N;if(i&&c){var u=i.site,g=n.site,v=c.site;if(u!==v){var k=g[0],x=g[1],C=u[0]-k,D=u[1]-x,I=v[0]-k,Y=v[1]-x,B=2*(C*Y-D*I);if(!(B>=-Sb)){var z=C*C+D*D,$=I*I+Y*Y,Z=(Y*z-D*$)/B,Q=(C*$-I*z)/B,G=Tb.pop()||new g6;G.arc=n,G.site=g,G.x=Z+k,G.y=(G.cy=Q+x)+Math.sqrt(Z*Z+Q*Q),n.circle=G;for(var it=null,nt=fh._;nt;)if(G.y<nt.y||G.y===nt.y&&G.x<=nt.x){if(!nt.L){it=nt.P;break}nt=nt.L}else{if(!nt.R){it=nt;break}nt=nt.R}fh.insert(it,G),it||(V2=G)}}}}function uh(n){var i=n.circle;i&&(i.P||(V2=i.N),fh.remove(i),Tb.push(i),vo(i),n.circle=null)}var Eb=[];function y6(){vo(this),this.edge=this.site=this.circle=null}function G2(n){var i=Eb.pop()||new y6;return i.site=n,i}function X2(n){uh(n),zc.remove(n),Eb.push(n),vo(n)}function ce(n){var i=n.circle,c=i.x,u=i.cy,g=[c,u],v=n.P,k=n.N,x=[n];X2(n);for(var C=v;C.circle&&Math.abs(c-C.circle.x)<Sr&&Math.abs(u-C.circle.cy)<Sr;)v=C.P,x.unshift(C),X2(C),C=v;x.unshift(C),uh(C);for(var D=k;D.circle&&Math.abs(c-D.circle.x)<Sr&&Math.abs(u-D.circle.cy)<Sr;)k=D.N,x.push(D),X2(D),D=k;x.push(D),uh(D);var I,Y=x.length;for(I=1;I<Y;++I)D=x[I],C=x[I-1],X0(D.edge,C.site,D.site,g);C=x[0],(D=x[Y-1]).edge=ud(C.site,D.site,null,g),ch(C),ch(D)}function Xe(n){for(var i,c,u,g,v=n[0],k=n[1],x=zc._;x;)if((u=lh(x,k)-v)>Sr)x=x.L;else{if(!((g=v-hh(x,k))>Sr)){u>-Sr?(i=x.P,c=x):g>-Sr?(i=x,c=x.N):i=c=x;break}if(!x.R){i=x;break}x=x.R}(function(Rt){Ca[Rt.index]={site:Rt,halfedges:[]}})(n);var C=G2(n);if(zc.insert(i,C),i||c){if(i===c)return uh(i),c=G2(i.site),zc.insert(C,c),C.edge=c.edge=ud(i.site,C.site),ch(i),void ch(c);if(c){uh(i),uh(c);var D=i.site,I=D[0],Y=D[1],B=n[0]-I,z=n[1]-Y,$=c.site,Z=$[0]-I,Q=$[1]-Y,G=2*(B*Q-z*Z),it=B*B+z*z,nt=Z*Z+Q*Q,ut=[(Q*it-z*nt)/G+I,(B*nt-Z*it)/G+Y];X0(c.edge,D,$,ut),C.edge=ud(D,n,null,ut),c.edge=ud(n,$,null,ut),ch(i),ch(c)}else C.edge=ud(i.site,C.site)}}function lh(n,i){var c=n.site,u=c[0],g=c[1],v=g-i;if(!v)return u;var k=n.P;if(!k)return-1/0;var x=(c=k.site)[0],C=c[1],D=C-i;if(!D)return x;var I=x-u,Y=1/v-1/D,B=I/D;return Y?(-B+Math.sqrt(B*B-2*Y*(I*I/(-2*D)-C+D/2+g-v/2)))/Y+u:(u+x)/2}function hh(n,i){var c=n.N;if(c)return lh(c,i);var u=n.site;return u[1]===i?u[0]:1/0}var zc,Ca,fh,aa,Sr=1e-6,Sb=1e-12;function Iu(n,i,c){return(n[0]-c[0])*(i[1]-n[1])-(n[0]-i[0])*(c[1]-n[1])}function m6(n,i){return i[1]-n[1]||i[0]-n[0]}function Ru(n,i){var c,u,g,v=n.sort(m6).pop();for(aa=[],Ca=new Array(n.length),zc=new q2,fh=new q2;;)if(g=V2,v&&(!g||v[1]<g.y||v[1]===g.y&&v[0]<g.x))v[0]===c&&v[1]===u||(Xe(v),c=v[0],u=v[1]),v=n.pop();else{if(!g)break;ce(g.arc)}if(function(){for(var I,Y,B,z,$=0,Z=Ca.length;$<Z;++$)if((I=Ca[$])&&(z=(Y=I.halfedges).length)){var Q=new Array(z),G=new Array(z);for(B=0;B<z;++B)Q[B]=B,G[B]=d6(I,aa[Y[B]]);for(Q.sort(function(it,nt){return G[nt]-G[it]}),B=0;B<z;++B)G[B]=Y[Q[B]];for(B=0;B<z;++B)Y[B]=G[B]}}(),i){var k=+i[0][0],x=+i[0][1],C=+i[1][0],D=+i[1][1];(function(I,Y,B,z){for(var $,Z=aa.length;Z--;)f6($=aa[Z],I,Y,B,z)&&h6($,I,Y,B,z)&&(Math.abs($[0][0]-$[1][0])>Sr||Math.abs($[0][1]-$[1][1])>Sr)||delete aa[Z]})(k,x,C,D),function(I,Y,B,z){var $,Z,Q,G,it,nt,ut,Rt,Ht,Xt,ve,Yt,oe=Ca.length,ct=!0;for($=0;$<oe;++$)if(Z=Ca[$]){for(Q=Z.site,G=(it=Z.halfedges).length;G--;)aa[it[G]]||it.splice(G,1);for(G=0,nt=it.length;G<nt;)ve=(Xt=p6(Z,aa[it[G]]))[0],Yt=Xt[1],Rt=(ut=hd(Z,aa[it[++G%nt]]))[0],Ht=ut[1],(Math.abs(ve-Rt)>Sr||Math.abs(Yt-Ht)>Sr)&&(it.splice(G,0,aa.push(ld(Q,Xt,Math.abs(ve-I)<Sr&&z-Yt>Sr?[I,Math.abs(Rt-I)<Sr?Ht:z]:Math.abs(Yt-z)<Sr&&B-ve>Sr?[Math.abs(Ht-z)<Sr?Rt:B,z]:Math.abs(ve-B)<Sr&&Yt-Y>Sr?[B,Math.abs(Rt-B)<Sr?Ht:Y]:Math.abs(Yt-Y)<Sr&&ve-I>Sr?[Math.abs(Ht-Y)<Sr?Rt:I,Y]:null))-1),++nt);nt&&(ct=!1)}if(ct){var wt,ee,Gt,ie=1/0;for($=0,ct=null;$<oe;++$)(Z=Ca[$])&&(Gt=(wt=(Q=Z.site)[0]-I)*wt+(ee=Q[1]-Y)*ee)<ie&&(ie=Gt,ct=Z);if(ct){var Ne=[I,Y],$e=[I,z],kn=[B,z],Kn=[B,Y];ct.halfedges.push(aa.push(ld(Q=ct.site,Ne,$e))-1,aa.push(ld(Q,$e,kn))-1,aa.push(ld(Q,kn,Kn))-1,aa.push(ld(Q,Kn,Ne))-1)}}for($=0;$<oe;++$)(Z=Ca[$])&&(Z.halfedges.length||delete Ca[$])}(k,x,C,D)}this.edges=aa,this.cells=Ca,zc=fh=aa=Ca=null}function Z0(){var n=wb,i=od,c=null;function u(g){return new Ru(g.map(function(v,k){var x=[Math.round(n(v,k,g)/Sr)*Sr,Math.round(i(v,k,g)/Sr)*Sr];return x.index=k,x.data=v,x}),c)}return u.polygons=function(g){return u(g).polygons()},u.links=function(g){return u(g).links()},u.triangles=function(g){return u(g).triangles()},u.x=function(g){return arguments.length?(n=typeof g=="function"?g:H2(+g),u):n},u.y=function(g){return arguments.length?(i=typeof g=="function"?g:H2(+g),u):i},u.extent=function(g){return arguments.length?(c=g==null?null:[[+g[0][0],+g[0][1]],[+g[1][0],+g[1][1]]],u):c&&[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},u.size=function(g){return arguments.length?(c=g==null?null:[[0,0],[+g[0],+g[1]]],u):c&&[c[1][0]-c[0][0],c[1][1]-c[0][1]]},u}function fd(n){return function(){return n}}function Z2(n,i,c){this.target=n,this.type=i,this.transform=c}function _o(n,i,c){this.k=n,this.x=i,this.y=c}Ru.prototype={constructor:Ru,polygons:function(){var n=this.edges;return this.cells.map(function(i){var c=i.halfedges.map(function(u){return hd(i,n[u])});return c.data=i.site.data,c})},triangles:function(){var n=[],i=this.edges;return this.cells.forEach(function(c,u){if(v=(g=c.halfedges).length)for(var g,v,k,x=c.site,C=-1,D=i[g[v-1]],I=D.left===x?D.right:D.left;++C<v;)k=I,I=(D=i[g[C]]).left===x?D.right:D.left,k&&I&&u<k.index&&u<I.index&&Iu(x,k,I)<0&&n.push([x.data,k.data,I.data])}),n},links:function(){return this.edges.filter(function(n){return n.right}).map(function(n){return{source:n.left.data,target:n.right.data}})},find:function(n,i,c){for(var u,g,v=this,k=v._found||0,x=v.cells.length;!(g=v.cells[k]);)if(++k>=x)return null;var C=n-g.site[0],D=i-g.site[1],I=C*C+D*D;do g=v.cells[u=k],k=null,g.halfedges.forEach(function(Y){var B=v.edges[Y],z=B.left;if(z!==g.site&&z||(z=B.right)){var $=n-z[0],Z=i-z[1],Q=$*$+Z*Z;Q<I&&(I=Q,k=z.index)}});while(k!==null);return v._found=u,c==null||I<=c*c?g.site:null}},_o.prototype={constructor:_o,scale:function(n){return n===1?this:new _o(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new _o(this.k,this.x+this.k*n,this.y+this.k*i)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Fu=new _o(1,0,0);function Cb(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Fu;return n.__zoom}function dh(){De.stopImmediatePropagation()}function Mi(){De.preventDefault(),De.stopImmediatePropagation()}function Q2(){return!De.ctrlKey&&!De.button}function Q0(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function J2(){return this.__zoom||Fu}function Mb(){return-De.deltaY*(De.deltaMode===1?.05:De.deltaMode?1:.002)}function Ab(){return navigator.maxTouchPoints||"ontouchstart"in this}function v6(n,i,c){var u=n.invertX(i[0][0])-c[0][0],g=n.invertX(i[1][0])-c[1][0],v=n.invertY(i[0][1])-c[0][1],k=n.invertY(i[1][1])-c[1][1];return n.translate(g>u?(u+g)/2:Math.min(0,u)||Math.max(0,g),k>v?(v+k)/2:Math.min(0,v)||Math.max(0,k))}function Db(){var n,i,c=Q2,u=Q0,g=v6,v=Mb,k=Ab,x=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],D=250,I=H1,Y=Ge("start","zoom","end"),B=500,z=0;function $(ct){ct.property("__zoom",J2).on("wheel.zoom",Rt).on("mousedown.zoom",Ht).on("dblclick.zoom",Xt).filter(k).on("touchstart.zoom",ve).on("touchmove.zoom",Yt).on("touchend.zoom touchcancel.zoom",oe).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Z(ct,wt){return(wt=Math.max(x[0],Math.min(x[1],wt)))===ct.k?ct:new _o(wt,ct.x,ct.y)}function Q(ct,wt,ee){var Gt=wt[0]-ee[0]*ct.k,ie=wt[1]-ee[1]*ct.k;return Gt===ct.x&&ie===ct.y?ct:new _o(ct.k,Gt,ie)}function G(ct){return[(+ct[0][0]+ +ct[1][0])/2,(+ct[0][1]+ +ct[1][1])/2]}function it(ct,wt,ee){ct.on("start.zoom",function(){nt(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){nt(this,arguments).end()}).tween("zoom",function(){var Gt=this,ie=arguments,Ne=nt(Gt,ie),$e=u.apply(Gt,ie),kn=ee==null?G($e):typeof ee=="function"?ee.apply(Gt,ie):ee,Kn=Math.max($e[1][0]-$e[0][0],$e[1][1]-$e[0][1]),ur=Gt.__zoom,nn=typeof wt=="function"?wt.apply(Gt,ie):wt,Gn=I(ur.invert(kn).concat(Kn/ur.k),nn.invert(kn).concat(Kn/nn.k));return function(An){if(An===1)An=nn;else{var vn=Gn(An),Fn=Kn/vn[2];An=new _o(Fn,kn[0]-vn[0]*Fn,kn[1]-vn[1]*Fn)}Ne.zoom(null,An)}})}function nt(ct,wt,ee){return!ee&&ct.__zooming||new ut(ct,wt)}function ut(ct,wt){this.that=ct,this.args=wt,this.active=0,this.extent=u.apply(ct,wt),this.taps=0}function Rt(){if(c.apply(this,arguments)){var ct=nt(this,arguments),wt=this.__zoom,ee=Math.max(x[0],Math.min(x[1],wt.k*Math.pow(2,v.apply(this,arguments)))),Gt=Ms(this);if(ct.wheel)ct.mouse[0][0]===Gt[0]&&ct.mouse[0][1]===Gt[1]||(ct.mouse[1]=wt.invert(ct.mouse[0]=Gt)),clearTimeout(ct.wheel);else{if(wt.k===ee)return;ct.mouse=[Gt,wt.invert(Gt)],pa(this),ct.start()}Mi(),ct.wheel=setTimeout(ie,150),ct.zoom("mouse",g(Q(Z(wt,ee),ct.mouse[0],ct.mouse[1]),ct.extent,C))}function ie(){ct.wheel=null,ct.end()}}function Ht(){if(!i&&c.apply(this,arguments)){var ct=nt(this,arguments,!0),wt=Yn(De.view).on("mousemove.zoom",Ne,!0).on("mouseup.zoom",$e,!0),ee=Ms(this),Gt=De.clientX,ie=De.clientY;Dr(De.view),dh(),ct.mouse=[ee,this.__zoom.invert(ee)],pa(this),ct.start()}function Ne(){if(Mi(),!ct.moved){var kn=De.clientX-Gt,Kn=De.clientY-ie;ct.moved=kn*kn+Kn*Kn>z}ct.zoom("mouse",g(Q(ct.that.__zoom,ct.mouse[0]=Ms(ct.that),ct.mouse[1]),ct.extent,C))}function $e(){wt.on("mousemove.zoom mouseup.zoom",null),Qi(De.view,ct.moved),Mi(),ct.end()}}function Xt(){if(c.apply(this,arguments)){var ct=this.__zoom,wt=Ms(this),ee=ct.invert(wt),Gt=ct.k*(De.shiftKey?.5:2),ie=g(Q(Z(ct,Gt),wt,ee),u.apply(this,arguments),C);Mi(),D>0?Yn(this).transition().duration(D).call(it,ie,wt):Yn(this).call($.transform,ie)}}function ve(){if(c.apply(this,arguments)){var ct,wt,ee,Gt,ie=De.touches,Ne=ie.length,$e=nt(this,arguments,De.changedTouches.length===Ne);for(dh(),wt=0;wt<Ne;++wt)Gt=[Gt=da(this,ie,(ee=ie[wt]).identifier),this.__zoom.invert(Gt),ee.identifier],$e.touch0?$e.touch1||$e.touch0[2]===Gt[2]||($e.touch1=Gt,$e.taps=0):($e.touch0=Gt,ct=!0,$e.taps=1+!!n);n&&(n=clearTimeout(n)),ct&&($e.taps<2&&(n=setTimeout(function(){n=null},B)),pa(this),$e.start())}}function Yt(){if(this.__zooming){var ct,wt,ee,Gt,ie=nt(this,arguments),Ne=De.changedTouches,$e=Ne.length;for(Mi(),n&&(n=clearTimeout(n)),ie.taps=0,ct=0;ct<$e;++ct)ee=da(this,Ne,(wt=Ne[ct]).identifier),ie.touch0&&ie.touch0[2]===wt.identifier?ie.touch0[0]=ee:ie.touch1&&ie.touch1[2]===wt.identifier&&(ie.touch1[0]=ee);if(wt=ie.that.__zoom,ie.touch1){var kn=ie.touch0[0],Kn=ie.touch0[1],ur=ie.touch1[0],nn=ie.touch1[1],Gn=(Gn=ur[0]-kn[0])*Gn+(Gn=ur[1]-kn[1])*Gn,An=(An=nn[0]-Kn[0])*An+(An=nn[1]-Kn[1])*An;wt=Z(wt,Math.sqrt(Gn/An)),ee=[(kn[0]+ur[0])/2,(kn[1]+ur[1])/2],Gt=[(Kn[0]+nn[0])/2,(Kn[1]+nn[1])/2]}else{if(!ie.touch0)return;ee=ie.touch0[0],Gt=ie.touch0[1]}ie.zoom("touch",g(Q(wt,ee,Gt),ie.extent,C))}}function oe(){if(this.__zooming){var ct,wt,ee=nt(this,arguments),Gt=De.changedTouches,ie=Gt.length;for(dh(),i&&clearTimeout(i),i=setTimeout(function(){i=null},B),ct=0;ct<ie;++ct)wt=Gt[ct],ee.touch0&&ee.touch0[2]===wt.identifier?delete ee.touch0:ee.touch1&&ee.touch1[2]===wt.identifier&&delete ee.touch1;if(ee.touch1&&!ee.touch0&&(ee.touch0=ee.touch1,delete ee.touch1),ee.touch0)ee.touch0[1]=this.__zoom.invert(ee.touch0[0]);else if(ee.end(),ee.taps===2){var Ne=Yn(this).on("dblclick.zoom");Ne&&Ne.apply(this,arguments)}}}return $.transform=function(ct,wt,ee){var Gt=ct.selection?ct.selection():ct;Gt.property("__zoom",J2),ct!==Gt?it(ct,wt,ee):Gt.interrupt().each(function(){nt(this,arguments).start().zoom(null,typeof wt=="function"?wt.apply(this,arguments):wt).end()})},$.scaleBy=function(ct,wt,ee){$.scaleTo(ct,function(){var Gt=this.__zoom.k,ie=typeof wt=="function"?wt.apply(this,arguments):wt;return Gt*ie},ee)},$.scaleTo=function(ct,wt,ee){$.transform(ct,function(){var Gt=u.apply(this,arguments),ie=this.__zoom,Ne=ee==null?G(Gt):typeof ee=="function"?ee.apply(this,arguments):ee,$e=ie.invert(Ne),kn=typeof wt=="function"?wt.apply(this,arguments):wt;return g(Q(Z(ie,kn),Ne,$e),Gt,C)},ee)},$.translateBy=function(ct,wt,ee){$.transform(ct,function(){return g(this.__zoom.translate(typeof wt=="function"?wt.apply(this,arguments):wt,typeof ee=="function"?ee.apply(this,arguments):ee),u.apply(this,arguments),C)})},$.translateTo=function(ct,wt,ee,Gt){$.transform(ct,function(){var ie=u.apply(this,arguments),Ne=this.__zoom,$e=Gt==null?G(ie):typeof Gt=="function"?Gt.apply(this,arguments):Gt;return g(Fu.translate($e[0],$e[1]).scale(Ne.k).translate(typeof wt=="function"?-wt.apply(this,arguments):-wt,typeof ee=="function"?-ee.apply(this,arguments):-ee),ie,C)},Gt)},ut.prototype={start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ct,wt){return this.mouse&&ct!=="mouse"&&(this.mouse[1]=wt.invert(this.mouse[0])),this.touch0&&ct!=="touch"&&(this.touch0[1]=wt.invert(this.touch0[0])),this.touch1&&ct!=="touch"&&(this.touch1[1]=wt.invert(this.touch1[0])),this.that.__zoom=wt,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ct){zi(new Z2($,ct,this.that.__zoom),Y.apply,Y,[ct,this.that,this.args])}},$.wheelDelta=function(ct){return arguments.length?(v=typeof ct=="function"?ct:fd(+ct),$):v},$.filter=function(ct){return arguments.length?(c=typeof ct=="function"?ct:fd(!!ct),$):c},$.touchable=function(ct){return arguments.length?(k=typeof ct=="function"?ct:fd(!!ct),$):k},$.extent=function(ct){return arguments.length?(u=typeof ct=="function"?ct:fd([[+ct[0][0],+ct[0][1]],[+ct[1][0],+ct[1][1]]]),$):u},$.scaleExtent=function(ct){return arguments.length?(x[0]=+ct[0],x[1]=+ct[1],$):[x[0],x[1]]},$.translateExtent=function(ct){return arguments.length?(C[0][0]=+ct[0][0],C[1][0]=+ct[1][0],C[0][1]=+ct[0][1],C[1][1]=+ct[1][1],$):[[C[0][0],C[0][1]],[C[1][0],C[1][1]]]},$.constrain=function(ct){return arguments.length?(g=ct,$):g},$.duration=function(ct){return arguments.length?(D=+ct,$):D},$.interpolate=function(ct){return arguments.length?(I=ct,$):I},$.on=function(){var ct=Y.on.apply(Y,arguments);return ct===Y?$:ct},$.clickDistance=function(ct){return arguments.length?(z=(ct=+ct)*ct,$):Math.sqrt(z)},$}Cb.prototype=_o.prototype},681:(a,h,s)=>{a.exports={graphlib:s(574),layout:s(8123),debug:s(7570),util:{time:s(1138).time,notime:s(1138).notime},version:s(8177)}},2188:(a,h,s)=>{var d=s(8436),l=s(4079);a.exports={run:function(_){var y=_.graph().acyclicer==="greedy"?l(_,function(w){return function(T){return w.edge(T).weight}}(_)):function(w){var T=[],A={},L={};return d.forEach(w.nodes(),function N(P){d.has(L,P)||(L[P]=!0,A[P]=!0,d.forEach(w.outEdges(P),function(W){d.has(A,W.w)?T.push(W):N(W.w)}),delete A[P])}),T}(_);d.forEach(y,function(w){var T=_.edge(w);_.removeEdge(w),T.forwardName=w.name,T.reversed=!0,_.setEdge(w.w,w.v,T,d.uniqueId("rev"))})},undo:function(_){d.forEach(_.edges(),function(y){var w=_.edge(y);if(w.reversed){_.removeEdge(y);var T=w.forwardName;delete w.reversed,delete w.forwardName,_.setEdge(y.w,y.v,w,T)}})}}},1133:(a,h,s)=>{var d=s(8436),l=s(1138);function _(y,w,T,A,L,N){var P={width:0,height:0,rank:N,borderType:w},W=L[w][N-1],H=l.addDummyNode(y,"border",P,T);L[w][N]=H,y.setParent(H,A),W&&y.setEdge(W,H,{weight:1})}a.exports=function(y){d.forEach(y.children(),function w(T){var A=y.children(T),L=y.node(T);if(A.length&&d.forEach(A,w),d.has(L,"minRank")){L.borderLeft=[],L.borderRight=[];for(var N=L.minRank,P=L.maxRank+1;N<P;++N)_(y,"borderLeft","_bl",T,L,N),_(y,"borderRight","_br",T,L,N)}})}},3258:(a,h,s)=>{var d=s(8436);function l(T){d.forEach(T.nodes(),function(A){_(T.node(A))}),d.forEach(T.edges(),function(A){_(T.edge(A))})}function _(T){var A=T.width;T.width=T.height,T.height=A}function y(T){T.y=-T.y}function w(T){var A=T.x;T.x=T.y,T.y=A}a.exports={adjust:function(T){var A=T.graph().rankdir.toLowerCase();A!=="lr"&&A!=="rl"||l(T)},undo:function(T){var A=T.graph().rankdir.toLowerCase();A!=="bt"&&A!=="rl"||function(L){d.forEach(L.nodes(),function(N){y(L.node(N))}),d.forEach(L.edges(),function(N){var P=L.edge(N);d.forEach(P.points,y),d.has(P,"y")&&y(P)})}(T),A!=="lr"&&A!=="rl"||(function(L){d.forEach(L.nodes(),function(N){w(L.node(N))}),d.forEach(L.edges(),function(N){var P=L.edge(N);d.forEach(P.points,w),d.has(P,"x")&&w(P)})}(T),l(T))}}},7822:a=>{function h(){var l={};l._next=l._prev=l,this._sentinel=l}function s(l){l._prev._next=l._next,l._next._prev=l._prev,delete l._next,delete l._prev}function d(l,_){if(l!=="_next"&&l!=="_prev")return _}a.exports=h,h.prototype.dequeue=function(){var l=this._sentinel,_=l._prev;if(_!==l)return s(_),_},h.prototype.enqueue=function(l){var _=this._sentinel;l._prev&&l._next&&s(l),l._next=_._next,_._next._prev=l,_._next=l,l._prev=_},h.prototype.toString=function(){for(var l=[],_=this._sentinel,y=_._prev;y!==_;)l.push(JSON.stringify(y,d)),y=y._prev;return"["+l.join(", ")+"]"}},7570:(a,h,s)=>{var d=s(8436),l=s(1138),_=s(574).Graph;a.exports={debugOrdering:function(y){var w=l.buildLayerMatrix(y),T=new _({compound:!0,multigraph:!0}).setGraph({});return d.forEach(y.nodes(),function(A){T.setNode(A,{label:A}),T.setParent(A,"layer"+y.node(A).rank)}),d.forEach(y.edges(),function(A){T.setEdge(A.v,A.w,{},A.name)}),d.forEach(w,function(A,L){var N="layer"+L;T.setNode(N,{rank:"same"}),d.reduce(A,function(P,W){return T.setEdge(P,W,{style:"invis"}),W})}),T}}},574:(a,h,s)=>{var d;try{d=s(8282)}catch(l){}d||(d=window.graphlib),a.exports=d},4079:(a,h,s)=>{var d=s(8436),l=s(574).Graph,_=s(7822);a.exports=function(A,L){if(A.nodeCount()<=1)return[];var N=function(W,H){var V=new l,X=0,J=0;d.forEach(W.nodes(),function(kt){V.setNode(kt,{v:kt,in:0,out:0})}),d.forEach(W.edges(),function(kt){var gt=V.edge(kt.v,kt.w)||0,ft=H(kt),et=gt+ft;V.setEdge(kt.v,kt.w,et),J=Math.max(J,V.node(kt.v).out+=ft),X=Math.max(X,V.node(kt.w).in+=ft)});var ht=d.range(J+X+3).map(function(){return new _}),tt=X+1;return d.forEach(V.nodes(),function(kt){T(ht,tt,V.node(kt))}),{graph:V,buckets:ht,zeroIdx:tt}}(A,L||y),P=function(W,H,V){for(var X,J=[],ht=H[H.length-1],tt=H[0];W.nodeCount();){for(;X=tt.dequeue();)w(W,H,V,X);for(;X=ht.dequeue();)w(W,H,V,X);if(W.nodeCount()){for(var kt=H.length-2;kt>0;--kt)if(X=H[kt].dequeue()){J=J.concat(w(W,H,V,X,!0));break}}}return J}(N.graph,N.buckets,N.zeroIdx);return d.flatten(d.map(P,function(W){return A.outEdges(W.v,W.w)}),!0)};var y=d.constant(1);function w(A,L,N,P,W){var H=W?[]:void 0;return d.forEach(A.inEdges(P.v),function(V){var X=A.edge(V),J=A.node(V.v);W&&H.push({v:V.v,w:V.w}),J.out-=X,T(L,N,J)}),d.forEach(A.outEdges(P.v),function(V){var X=A.edge(V),J=V.w,ht=A.node(J);ht.in-=X,T(L,N,ht)}),A.removeNode(P.v),H}function T(A,L,N){N.out?N.in?A[N.out-N.in+L].enqueue(N):A[A.length-1].enqueue(N):A[0].enqueue(N)}},8123:(a,h,s)=>{var d=s(8436),l=s(2188),_=s(5995),y=s(8093),w=s(1138).normalizeRanks,T=s(4219),A=s(1138).removeEmptyRanks,L=s(2981),N=s(1133),P=s(3258),W=s(3408),H=s(7873),V=s(1138),X=s(574).Graph;a.exports=function(Tt,lt){var It=lt&<.debugTiming?V.time:V.notime;It("layout",function(){var Ft=It(" buildLayoutGraph",function(){return function(ue){var ye=new X({multigraph:!0,compound:!0}),de=Ot(ue.graph());return ye.setGraph(d.merge({},ht,dt(de,J),d.pick(de,tt))),d.forEach(ue.nodes(),function(le){var Nt=Ot(ue.node(le));ye.setNode(le,d.defaults(dt(Nt,kt),gt)),ye.setParent(le,ue.parent(le))}),d.forEach(ue.edges(),function(le){var Nt=Ot(ue.edge(le));ye.setEdge(le,d.merge({},et,dt(Nt,ft),d.pick(Nt,K)))}),ye}(Tt)});It(" runLayout",function(){(function(ue,ye){ye(" makeSpaceForEdgeLabels",function(){(function(de){var le=de.graph();le.ranksep/=2,d.forEach(de.edges(),function(Nt){var jt=de.edge(Nt);jt.minlen*=2,jt.labelpos.toLowerCase()!=="c"&&(le.rankdir==="TB"||le.rankdir==="BT"?jt.width+=jt.labeloffset:jt.height+=jt.labeloffset)})})(ue)}),ye(" removeSelfEdges",function(){(function(de){d.forEach(de.edges(),function(le){if(le.v===le.w){var Nt=de.node(le.v);Nt.selfEdges||(Nt.selfEdges=[]),Nt.selfEdges.push({e:le,label:de.edge(le)}),de.removeEdge(le)}})})(ue)}),ye(" acyclic",function(){l.run(ue)}),ye(" nestingGraph.run",function(){L.run(ue)}),ye(" rank",function(){y(V.asNonCompoundGraph(ue))}),ye(" injectEdgeLabelProxies",function(){(function(de){d.forEach(de.edges(),function(le){var Nt=de.edge(le);if(Nt.width&&Nt.height){var jt=de.node(le.v),Kt={rank:(de.node(le.w).rank-jt.rank)/2+jt.rank,e:le};V.addDummyNode(de,"edge-proxy",Kt,"_ep")}})})(ue)}),ye(" removeEmptyRanks",function(){A(ue)}),ye(" nestingGraph.cleanup",function(){L.cleanup(ue)}),ye(" normalizeRanks",function(){w(ue)}),ye(" assignRankMinMax",function(){(function(de){var le=0;d.forEach(de.nodes(),function(Nt){var jt=de.node(Nt);jt.borderTop&&(jt.minRank=de.node(jt.borderTop).rank,jt.maxRank=de.node(jt.borderBottom).rank,le=d.max(le,jt.maxRank))}),de.graph().maxRank=le})(ue)}),ye(" removeEdgeLabelProxies",function(){(function(de){d.forEach(de.nodes(),function(le){var Nt=de.node(le);Nt.dummy==="edge-proxy"&&(de.edge(Nt.e).labelRank=Nt.rank,de.removeNode(le))})})(ue)}),ye(" normalize.run",function(){_.run(ue)}),ye(" parentDummyChains",function(){T(ue)}),ye(" addBorderSegments",function(){N(ue)}),ye(" order",function(){W(ue)}),ye(" insertSelfEdges",function(){(function(de){var le=V.buildLayerMatrix(de);d.forEach(le,function(Nt){var jt=0;d.forEach(Nt,function(Kt,pe){var ge=de.node(Kt);ge.order=pe+jt,d.forEach(ge.selfEdges,function(Pt){V.addDummyNode(de,"selfedge",{width:Pt.label.width,height:Pt.label.height,rank:ge.rank,order:pe+ ++jt,e:Pt.e,label:Pt.label},"_se")}),delete ge.selfEdges})})})(ue)}),ye(" adjustCoordinateSystem",function(){P.adjust(ue)}),ye(" position",function(){H(ue)}),ye(" positionSelfEdges",function(){(function(de){d.forEach(de.nodes(),function(le){var Nt=de.node(le);if(Nt.dummy==="selfedge"){var jt=de.node(Nt.e.v),Kt=jt.x+jt.width/2,pe=jt.y,ge=Nt.x-Kt,Pt=jt.height/2;de.setEdge(Nt.e,Nt.label),de.removeNode(le),Nt.label.points=[{x:Kt+2*ge/3,y:pe-Pt},{x:Kt+5*ge/6,y:pe-Pt},{x:Kt+ge,y:pe},{x:Kt+5*ge/6,y:pe+Pt},{x:Kt+2*ge/3,y:pe+Pt}],Nt.label.x=Nt.x,Nt.label.y=Nt.y}})})(ue)}),ye(" removeBorderNodes",function(){(function(de){d.forEach(de.nodes(),function(le){if(de.children(le).length){var Nt=de.node(le),jt=de.node(Nt.borderTop),Kt=de.node(Nt.borderBottom),pe=de.node(d.last(Nt.borderLeft)),ge=de.node(d.last(Nt.borderRight));Nt.width=Math.abs(ge.x-pe.x),Nt.height=Math.abs(Kt.y-jt.y),Nt.x=pe.x+Nt.width/2,Nt.y=jt.y+Nt.height/2}}),d.forEach(de.nodes(),function(le){de.node(le).dummy==="border"&&de.removeNode(le)})})(ue)}),ye(" normalize.undo",function(){_.undo(ue)}),ye(" fixupEdgeLabelCoords",function(){(function(de){d.forEach(de.edges(),function(le){var Nt=de.edge(le);if(d.has(Nt,"x"))switch(Nt.labelpos!=="l"&&Nt.labelpos!=="r"||(Nt.width-=Nt.labeloffset),Nt.labelpos){case"l":Nt.x-=Nt.width/2+Nt.labeloffset;break;case"r":Nt.x+=Nt.width/2+Nt.labeloffset}})})(ue)}),ye(" undoCoordinateSystem",function(){P.undo(ue)}),ye(" translateGraph",function(){(function(de){var le=Number.POSITIVE_INFINITY,Nt=0,jt=Number.POSITIVE_INFINITY,Kt=0,pe=de.graph(),ge=pe.marginx||0,Pt=pe.marginy||0;function ze(Qt){var zt=Qt.x,Zt=Qt.y,rt=Qt.width,ae=Qt.height;le=Math.min(le,zt-rt/2),Nt=Math.max(Nt,zt+rt/2),jt=Math.min(jt,Zt-ae/2),Kt=Math.max(Kt,Zt+ae/2)}d.forEach(de.nodes(),function(Qt){ze(de.node(Qt))}),d.forEach(de.edges(),function(Qt){var zt=de.edge(Qt);d.has(zt,"x")&&ze(zt)}),le-=ge,jt-=Pt,d.forEach(de.nodes(),function(Qt){var zt=de.node(Qt);zt.x-=le,zt.y-=jt}),d.forEach(de.edges(),function(Qt){var zt=de.edge(Qt);d.forEach(zt.points,function(Zt){Zt.x-=le,Zt.y-=jt}),d.has(zt,"x")&&(zt.x-=le),d.has(zt,"y")&&(zt.y-=jt)}),pe.width=Nt-le+ge,pe.height=Kt-jt+Pt})(ue)}),ye(" assignNodeIntersects",function(){(function(de){d.forEach(de.edges(),function(le){var Nt,jt,Kt=de.edge(le),pe=de.node(le.v),ge=de.node(le.w);Kt.points?(Nt=Kt.points[0],jt=Kt.points[Kt.points.length-1]):(Kt.points=[],Nt=ge,jt=pe),Kt.points.unshift(V.intersectRect(pe,Nt)),Kt.points.push(V.intersectRect(ge,jt))})})(ue)}),ye(" reversePoints",function(){(function(de){d.forEach(de.edges(),function(le){var Nt=de.edge(le);Nt.reversed&&Nt.points.reverse()})})(ue)}),ye(" acyclic.undo",function(){l.undo(ue)})})(Ft,It)}),It(" updateInputGraph",function(){(function(ue,ye){d.forEach(ue.nodes(),function(de){var le=ue.node(de),Nt=ye.node(de);le&&(le.x=Nt.x,le.y=Nt.y,ye.children(de).length&&(le.width=Nt.width,le.height=Nt.height))}),d.forEach(ue.edges(),function(de){var le=ue.edge(de),Nt=ye.edge(de);le.points=Nt.points,d.has(Nt,"x")&&(le.x=Nt.x,le.y=Nt.y)}),ue.graph().width=ye.graph().width,ue.graph().height=ye.graph().height})(Tt,Ft)})})};var J=["nodesep","edgesep","ranksep","marginx","marginy"],ht={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},tt=["acyclicer","ranker","rankdir","align"],kt=["width","height"],gt={width:0,height:0},ft=["minlen","weight","width","height","labeloffset"],et={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function dt(Tt,lt){return d.mapValues(d.pick(Tt,lt),Number)}function Ot(Tt){var lt={};return d.forEach(Tt,function(It,Ft){lt[Ft.toLowerCase()]=It}),lt}},8436:(a,h,s)=>{var d;try{d={cloneDeep:s(361),constant:s(5703),defaults:s(1747),each:s(6073),filter:s(3105),find:s(3311),flatten:s(5564),forEach:s(4486),forIn:s(2620),has:s(8721),isUndefined:s(2353),last:s(928),map:s(5161),mapValues:s(6604),max:s(6162),merge:s(3857),min:s(3632),minBy:s(2762),now:s(7771),pick:s(9722),range:s(6026),reduce:s(4061),sortBy:s(9734),uniqueId:s(3955),values:s(2628),zipObject:s(7287)}}catch(l){}d||(d=window._),a.exports=d},2981:(a,h,s)=>{var d=s(8436),l=s(1138);function _(y,w,T,A,L,N,P){var W=y.children(P);if(W.length){var H=l.addBorderNode(y,"_bt"),V=l.addBorderNode(y,"_bb"),X=y.node(P);y.setParent(H,P),X.borderTop=H,y.setParent(V,P),X.borderBottom=V,d.forEach(W,function(J){_(y,w,T,A,L,N,J);var ht=y.node(J),tt=ht.borderTop?ht.borderTop:J,kt=ht.borderBottom?ht.borderBottom:J,gt=ht.borderTop?A:2*A,ft=tt!==kt?1:L-N[P]+1;y.setEdge(H,tt,{weight:gt,minlen:ft,nestingEdge:!0}),y.setEdge(kt,V,{weight:gt,minlen:ft,nestingEdge:!0})}),y.parent(P)||y.setEdge(w,H,{weight:0,minlen:L+N[P]})}else P!==w&&y.setEdge(w,P,{weight:0,minlen:T})}a.exports={run:function(y){var w=l.addDummyNode(y,"root",{},"_root"),T=function(P){var W={};function H(V,X){var J=P.children(V);J&&J.length&&d.forEach(J,function(ht){H(ht,X+1)}),W[V]=X}return d.forEach(P.children(),function(V){H(V,1)}),W}(y),A=d.max(d.values(T))-1,L=2*A+1;y.graph().nestingRoot=w,d.forEach(y.edges(),function(P){y.edge(P).minlen*=L});var N=function(P){return d.reduce(P.edges(),function(W,H){return W+P.edge(H).weight},0)}(y)+1;d.forEach(y.children(),function(P){_(y,w,L,N,A,T,P)}),y.graph().nodeRankFactor=L},cleanup:function(y){var w=y.graph();y.removeNode(w.nestingRoot),delete w.nestingRoot,d.forEach(y.edges(),function(T){y.edge(T).nestingEdge&&y.removeEdge(T)})}}},5995:(a,h,s)=>{var d=s(8436),l=s(1138);a.exports={run:function(_){_.graph().dummyChains=[],d.forEach(_.edges(),function(y){(function(w,T){var A,L,N,P=T.v,W=w.node(P).rank,H=T.w,V=w.node(H).rank,X=T.name,J=w.edge(T),ht=J.labelRank;if(V!==W+1){for(w.removeEdge(T),N=0,++W;W<V;++N,++W)J.points=[],L={width:0,height:0,edgeLabel:J,edgeObj:T,rank:W},A=l.addDummyNode(w,"edge",L,"_d"),W===ht&&(L.width=J.width,L.height=J.height,L.dummy="edge-label",L.labelpos=J.labelpos),w.setEdge(P,A,{weight:J.weight},X),N===0&&w.graph().dummyChains.push(A),P=A;w.setEdge(P,H,{weight:J.weight},X)}})(_,y)})},undo:function(_){d.forEach(_.graph().dummyChains,function(y){var w,T=_.node(y),A=T.edgeLabel;for(_.setEdge(T.edgeObj,A);T.dummy;)w=_.successors(y)[0],_.removeNode(y),A.points.push({x:T.x,y:T.y}),T.dummy==="edge-label"&&(A.x=T.x,A.y=T.y,A.width=T.width,A.height=T.height),y=w,T=_.node(y)})}}},5093:(a,h,s)=>{var d=s(8436);a.exports=function(l,_,y){var w,T={};d.forEach(y,function(A){for(var L,N,P=l.parent(A);P;){if((L=l.parent(P))?(N=T[L],T[L]=P):(N=w,w=P),N&&N!==P)return void _.setEdge(N,P);P=L}})}},5439:(a,h,s)=>{var d=s(8436);a.exports=function(l,_){return d.map(_,function(y){var w=l.inEdges(y);if(w.length){var T=d.reduce(w,function(A,L){var N=l.edge(L),P=l.node(L.v);return{sum:A.sum+N.weight*P.order,weight:A.weight+N.weight}},{sum:0,weight:0});return{v:y,barycenter:T.sum/T.weight,weight:T.weight}}return{v:y}})}},3128:(a,h,s)=>{var d=s(8436),l=s(574).Graph;a.exports=function(_,y,w){var T=function(L){for(var N;L.hasNode(N=d.uniqueId("_root")););return N}(_),A=new l({compound:!0}).setGraph({root:T}).setDefaultNodeLabel(function(L){return _.node(L)});return d.forEach(_.nodes(),function(L){var N=_.node(L),P=_.parent(L);(N.rank===y||N.minRank<=y&&y<=N.maxRank)&&(A.setNode(L),A.setParent(L,P||T),d.forEach(_[w](L),function(W){var H=W.v===L?W.w:W.v,V=A.edge(H,L),X=d.isUndefined(V)?0:V.weight;A.setEdge(H,L,{weight:_.edge(W).weight+X})}),d.has(N,"minRank")&&A.setNode(L,{borderLeft:N.borderLeft[y],borderRight:N.borderRight[y]}))}),A}},6630:(a,h,s)=>{var d=s(8436);function l(_,y,w){for(var T=d.zipObject(w,d.map(w,function(H,V){return V})),A=d.flatten(d.map(y,function(H){return d.sortBy(d.map(_.outEdges(H),function(V){return{pos:T[V.w],weight:_.edge(V).weight}}),"pos")}),!0),L=1;L<w.length;)L<<=1;var N=2*L-1;L-=1;var P=d.map(new Array(N),function(){return 0}),W=0;return d.forEach(A.forEach(function(H){var V=H.pos+L;P[V]+=H.weight;for(var X=0;V>0;)V%2&&(X+=P[V+1]),P[V=V-1>>1]+=H.weight;W+=H.weight*X})),W}a.exports=function(_,y){for(var w=0,T=1;T<y.length;++T)w+=l(_,y[T-1],y[T]);return w}},3408:(a,h,s)=>{var d=s(8436),l=s(2588),_=s(6630),y=s(1026),w=s(3128),T=s(5093),A=s(574).Graph,L=s(1138);function N(H,V,X){return d.map(V,function(J){return w(H,J,X)})}function P(H,V){var X=new A;d.forEach(H,function(J){var ht=J.graph().root,tt=y(J,ht,X,V);d.forEach(tt.vs,function(kt,gt){J.node(kt).order=gt}),T(J,X,tt.vs)})}function W(H,V){d.forEach(V,function(X){d.forEach(X,function(J,ht){H.node(J).order=ht})})}a.exports=function(H){var V=L.maxRank(H),X=N(H,d.range(1,V+1),"inEdges"),J=N(H,d.range(V-1,-1,-1),"outEdges"),ht=l(H);W(H,ht);for(var tt,kt=Number.POSITIVE_INFINITY,gt=0,ft=0;ft<4;++gt,++ft){P(gt%2?X:J,gt%4>=2),ht=L.buildLayerMatrix(H);var et=_(H,ht);et<kt&&(ft=0,tt=d.cloneDeep(ht),kt=et)}W(H,tt)}},2588:(a,h,s)=>{var d=s(8436);a.exports=function(l){var _={},y=d.filter(l.nodes(),function(L){return!l.children(L).length}),w=d.max(d.map(y,function(L){return l.node(L).rank})),T=d.map(d.range(w+1),function(){return[]}),A=d.sortBy(y,function(L){return l.node(L).rank});return d.forEach(A,function L(N){if(!d.has(_,N)){_[N]=!0;var P=l.node(N);T[P.rank].push(N),d.forEach(l.successors(N),L)}}),T}},9567:(a,h,s)=>{var d=s(8436);a.exports=function(l,_){var y={};return d.forEach(l,function(w,T){var A=y[w.v]={indegree:0,in:[],out:[],vs:[w.v],i:T};d.isUndefined(w.barycenter)||(A.barycenter=w.barycenter,A.weight=w.weight)}),d.forEach(_.edges(),function(w){var T=y[w.v],A=y[w.w];d.isUndefined(T)||d.isUndefined(A)||(A.indegree++,T.out.push(y[w.w]))}),function(w){var T=[];function A(P){return function(W){var H,V,X,J;W.merged||(d.isUndefined(W.barycenter)||d.isUndefined(P.barycenter)||W.barycenter>=P.barycenter)&&(V=W,X=0,J=0,(H=P).weight&&(X+=H.barycenter*H.weight,J+=H.weight),V.weight&&(X+=V.barycenter*V.weight,J+=V.weight),H.vs=V.vs.concat(H.vs),H.barycenter=X/J,H.weight=J,H.i=Math.min(V.i,H.i),V.merged=!0)}}function L(P){return function(W){W.in.push(P),--W.indegree==0&&w.push(W)}}for(;w.length;){var N=w.pop();T.push(N),d.forEach(N.in.reverse(),A(N)),d.forEach(N.out,L(N))}return d.map(d.filter(T,function(P){return!P.merged}),function(P){return d.pick(P,["vs","i","barycenter","weight"])})}(d.filter(y,function(w){return!w.indegree}))}},1026:(a,h,s)=>{var d=s(8436),l=s(5439),_=s(9567),y=s(7304);a.exports=function w(T,A,L,N){var P=T.children(A),W=T.node(A),H=W?W.borderLeft:void 0,V=W?W.borderRight:void 0,X={};H&&(P=d.filter(P,function(ft){return ft!==H&&ft!==V}));var J=l(T,P);d.forEach(J,function(ft){if(T.children(ft.v).length){var et=w(T,ft.v,L,N);X[ft.v]=et,d.has(et,"barycenter")&&(K=ft,dt=et,d.isUndefined(K.barycenter)?(K.barycenter=dt.barycenter,K.weight=dt.weight):(K.barycenter=(K.barycenter*K.weight+dt.barycenter*dt.weight)/(K.weight+dt.weight),K.weight+=dt.weight))}var K,dt});var ht=_(J,L);(function(ft,et){d.forEach(ft,function(K){K.vs=d.flatten(K.vs.map(function(dt){return et[dt]?et[dt].vs:dt}),!0)})})(ht,X);var tt=y(ht,N);if(H&&(tt.vs=d.flatten([H,tt.vs,V],!0),T.predecessors(H).length)){var kt=T.node(T.predecessors(H)[0]),gt=T.node(T.predecessors(V)[0]);d.has(tt,"barycenter")||(tt.barycenter=0,tt.weight=0),tt.barycenter=(tt.barycenter*tt.weight+kt.order+gt.order)/(tt.weight+2),tt.weight+=2}return tt}},7304:(a,h,s)=>{var d=s(8436),l=s(1138);function _(y,w,T){for(var A;w.length&&(A=d.last(w)).i<=T;)w.pop(),y.push(A.vs),T++;return T}a.exports=function(y,w){var T,A=l.partition(y,function(J){return d.has(J,"barycenter")}),L=A.lhs,N=d.sortBy(A.rhs,function(J){return-J.i}),P=[],W=0,H=0,V=0;L.sort((T=!!w,function(J,ht){return J.barycenter<ht.barycenter?-1:J.barycenter>ht.barycenter?1:T?ht.i-J.i:J.i-ht.i})),V=_(P,N,V),d.forEach(L,function(J){V+=J.vs.length,P.push(J.vs),W+=J.barycenter*J.weight,H+=J.weight,V=_(P,N,V)});var X={vs:d.flatten(P,!0)};return H&&(X.barycenter=W/H,X.weight=H),X}},4219:(a,h,s)=>{var d=s(8436);a.exports=function(l){var _=function(y){var w={},T=0;return d.forEach(y.children(),function A(L){var N=T;d.forEach(y.children(L),A),w[L]={low:N,lim:T++}}),w}(l);d.forEach(l.graph().dummyChains,function(y){for(var w=l.node(y),T=w.edgeObj,A=function(V,X,J,ht){var tt,kt,gt=[],ft=[],et=Math.min(X[J].low,X[ht].low),K=Math.max(X[J].lim,X[ht].lim);tt=J;do tt=V.parent(tt),gt.push(tt);while(tt&&(X[tt].low>et||K>X[tt].lim));for(kt=tt,tt=ht;(tt=V.parent(tt))!==kt;)ft.push(tt);return{path:gt.concat(ft.reverse()),lca:kt}}(l,_,T.v,T.w),L=A.path,N=A.lca,P=0,W=L[P],H=!0;y!==T.w;){if(w=l.node(y),H){for(;(W=L[P])!==N&&l.node(W).maxRank<w.rank;)P++;W===N&&(H=!1)}if(!H){for(;P<L.length-1&&l.node(W=L[P+1]).minRank<=w.rank;)P++;W=L[P]}l.setParent(y,W),y=l.successors(y)[0]}})}},3573:(a,h,s)=>{var d=s(8436),l=s(574).Graph,_=s(1138);function y(V,X){var J={};return d.reduce(X,function(ht,tt){var kt=0,gt=0,ft=ht.length,et=d.last(tt);return d.forEach(tt,function(K,dt){var Ot=function(lt,It){if(lt.node(It).dummy)return d.find(lt.predecessors(It),function(Ft){return lt.node(Ft).dummy})}(V,K),Tt=Ot?V.node(Ot).order:ft;(Ot||K===et)&&(d.forEach(tt.slice(gt,dt+1),function(lt){d.forEach(V.predecessors(lt),function(It){var Ft=V.node(It),ue=Ft.order;!(ue<kt||Tt<ue)||Ft.dummy&&V.node(lt).dummy||T(J,It,lt)})}),gt=dt+1,kt=Tt)}),tt}),J}function w(V,X){var J={};function ht(tt,kt,gt,ft,et){var K;d.forEach(d.range(kt,gt),function(dt){K=tt[dt],V.node(K).dummy&&d.forEach(V.predecessors(K),function(Ot){var Tt=V.node(Ot);Tt.dummy&&(Tt.order<ft||Tt.order>et)&&T(J,Ot,K)})})}return d.reduce(X,function(tt,kt){var gt,ft=-1,et=0;return d.forEach(kt,function(K,dt){if(V.node(K).dummy==="border"){var Ot=V.predecessors(K);Ot.length&&(gt=V.node(Ot[0]).order,ht(kt,et,dt,ft,gt),et=dt,ft=gt)}ht(kt,et,kt.length,gt,tt.length)}),kt}),J}function T(V,X,J){if(X>J){var ht=X;X=J,J=ht}var tt=V[X];tt||(V[X]=tt={}),tt[J]=!0}function A(V,X,J){if(X>J){var ht=X;X=J,J=ht}return d.has(V[X],J)}function L(V,X,J,ht){var tt={},kt={},gt={};return d.forEach(X,function(ft){d.forEach(ft,function(et,K){tt[et]=et,kt[et]=et,gt[et]=K})}),d.forEach(X,function(ft){var et=-1;d.forEach(ft,function(K){var dt=ht(K);if(dt.length){dt=d.sortBy(dt,function(Ft){return gt[Ft]});for(var Ot=(dt.length-1)/2,Tt=Math.floor(Ot),lt=Math.ceil(Ot);Tt<=lt;++Tt){var It=dt[Tt];kt[K]===K&&et<gt[It]&&!A(J,K,It)&&(kt[It]=K,kt[K]=tt[K]=tt[It],et=gt[It])}}})}),{root:tt,align:kt}}function N(V,X,J,ht,tt){var kt={},gt=function(K,dt,Ot,Tt){var lt=new l,It=K.graph(),Ft=function(ue,ye,de){return function(le,Nt,jt){var Kt,pe=le.node(Nt),ge=le.node(jt),Pt=0;if(Pt+=pe.width/2,d.has(pe,"labelpos"))switch(pe.labelpos.toLowerCase()){case"l":Kt=-pe.width/2;break;case"r":Kt=pe.width/2}if(Kt&&(Pt+=de?Kt:-Kt),Kt=0,Pt+=(pe.dummy?ye:ue)/2,Pt+=(ge.dummy?ye:ue)/2,Pt+=ge.width/2,d.has(ge,"labelpos"))switch(ge.labelpos.toLowerCase()){case"l":Kt=ge.width/2;break;case"r":Kt=-ge.width/2}return Kt&&(Pt+=de?Kt:-Kt),Kt=0,Pt}}(It.nodesep,It.edgesep,Tt);return d.forEach(dt,function(ue){var ye;d.forEach(ue,function(de){var le=Ot[de];if(lt.setNode(le),ye){var Nt=Ot[ye],jt=lt.edge(Nt,le);lt.setEdge(Nt,le,Math.max(Ft(K,de,ye),jt||0))}ye=de})}),lt}(V,X,J,tt),ft=tt?"borderLeft":"borderRight";function et(K,dt){for(var Ot=gt.nodes(),Tt=Ot.pop(),lt={};Tt;)lt[Tt]?K(Tt):(lt[Tt]=!0,Ot.push(Tt),Ot=Ot.concat(dt(Tt))),Tt=Ot.pop()}return et(function(K){kt[K]=gt.inEdges(K).reduce(function(dt,Ot){return Math.max(dt,kt[Ot.v]+gt.edge(Ot))},0)},gt.predecessors.bind(gt)),et(function(K){var dt=gt.outEdges(K).reduce(function(Tt,lt){return Math.min(Tt,kt[lt.w]-gt.edge(lt))},Number.POSITIVE_INFINITY),Ot=V.node(K);dt!==Number.POSITIVE_INFINITY&&Ot.borderType!==ft&&(kt[K]=Math.max(kt[K],dt))},gt.successors.bind(gt)),d.forEach(ht,function(K){kt[K]=kt[J[K]]}),kt}function P(V,X){return d.minBy(d.values(X),function(J){var ht=Number.NEGATIVE_INFINITY,tt=Number.POSITIVE_INFINITY;return d.forIn(J,function(kt,gt){var ft=function(et,K){return et.node(K).width}(V,gt)/2;ht=Math.max(kt+ft,ht),tt=Math.min(kt-ft,tt)}),ht-tt})}function W(V,X){var J=d.values(X),ht=d.min(J),tt=d.max(J);d.forEach(["u","d"],function(kt){d.forEach(["l","r"],function(gt){var ft,et=kt+gt,K=V[et];if(K!==X){var dt=d.values(K);(ft=gt==="l"?ht-d.min(dt):tt-d.max(dt))&&(V[et]=d.mapValues(K,function(Ot){return Ot+ft}))}})})}function H(V,X){return d.mapValues(V.ul,function(J,ht){if(X)return V[X.toLowerCase()][ht];var tt=d.sortBy(d.map(V,ht));return(tt[1]+tt[2])/2})}a.exports={positionX:function(V){var X,J=_.buildLayerMatrix(V),ht=d.merge(y(V,J),w(V,J)),tt={};d.forEach(["u","d"],function(gt){X=gt==="u"?J:d.values(J).reverse(),d.forEach(["l","r"],function(ft){ft==="r"&&(X=d.map(X,function(Ot){return d.values(Ot).reverse()}));var et=(gt==="u"?V.predecessors:V.successors).bind(V),K=L(0,X,ht,et),dt=N(V,X,K.root,K.align,ft==="r");ft==="r"&&(dt=d.mapValues(dt,function(Ot){return-Ot})),tt[gt+ft]=dt})});var kt=P(V,tt);return W(tt,kt),H(tt,V.graph().align)},findType1Conflicts:y,findType2Conflicts:w,addConflict:T,hasConflict:A,verticalAlignment:L,horizontalCompaction:N,alignCoordinates:W,findSmallestWidthAlignment:P,balance:H}},7873:(a,h,s)=>{var d=s(8436),l=s(1138),_=s(3573).positionX;a.exports=function(y){(function(w){var T=l.buildLayerMatrix(w),A=w.graph().ranksep,L=0;d.forEach(T,function(N){var P=d.max(d.map(N,function(W){return w.node(W).height}));d.forEach(N,function(W){w.node(W).y=L+P/2}),L+=P+A})})(y=l.asNonCompoundGraph(y)),d.forEach(_(y),function(w,T){y.node(T).x=w})}},300:(a,h,s)=>{var d=s(8436),l=s(574).Graph,_=s(6681).slack;function y(A,L){return d.forEach(A.nodes(),function N(P){d.forEach(L.nodeEdges(P),function(W){var H=W.v,V=P===H?W.w:H;A.hasNode(V)||_(L,W)||(A.setNode(V,{}),A.setEdge(P,V,{}),N(V))})}),A.nodeCount()}function w(A,L){return d.minBy(L.edges(),function(N){if(A.hasNode(N.v)!==A.hasNode(N.w))return _(L,N)})}function T(A,L,N){d.forEach(A.nodes(),function(P){L.node(P).rank+=N})}a.exports=function(A){var L,N,P=new l({directed:!1}),W=A.nodes()[0],H=A.nodeCount();for(P.setNode(W,{});y(P,A)<H;)L=w(P,A),N=P.hasNode(L.v)?_(A,L):-_(A,L),T(P,A,N);return P}},8093:(a,h,s)=>{var d=s(6681).longestPath,l=s(300),_=s(2472);a.exports=function(T){switch(T.graph().ranker){case"network-simplex":w(T);break;case"tight-tree":(function(A){d(A),l(A)})(T);break;case"longest-path":y(T);break;default:w(T)}};var y=d;function w(T){_(T)}},2472:(a,h,s)=>{var d=s(8436),l=s(300),_=s(6681).slack,y=s(6681).longestPath,w=s(574).alg.preorder,T=s(574).alg.postorder,A=s(1138).simplify;function L(tt){tt=A(tt),y(tt);var kt,gt=l(tt);for(W(gt),N(gt,tt);kt=V(gt);)J(gt,tt,kt,X(gt,tt,kt))}function N(tt,kt){var gt=T(tt,tt.nodes());gt=gt.slice(0,gt.length-1),d.forEach(gt,function(ft){(function(et,K,dt){var Ot=et.node(dt).parent;et.edge(dt,Ot).cutvalue=P(et,K,dt)})(tt,kt,ft)})}function P(tt,kt,gt){var ft=tt.node(gt).parent,et=!0,K=kt.edge(gt,ft),dt=0;return K||(et=!1,K=kt.edge(ft,gt)),dt=K.weight,d.forEach(kt.nodeEdges(gt),function(Ot){var Tt,lt,It=Ot.v===gt,Ft=It?Ot.w:Ot.v;if(Ft!==ft){var ue=It===et,ye=kt.edge(Ot).weight;if(dt+=ue?ye:-ye,Tt=gt,lt=Ft,tt.hasEdge(Tt,lt)){var de=tt.edge(gt,Ft).cutvalue;dt+=ue?-de:de}}}),dt}function W(tt,kt){arguments.length<2&&(kt=tt.nodes()[0]),H(tt,{},1,kt)}function H(tt,kt,gt,ft,et){var K=gt,dt=tt.node(ft);return kt[ft]=!0,d.forEach(tt.neighbors(ft),function(Ot){d.has(kt,Ot)||(gt=H(tt,kt,gt,Ot,ft))}),dt.low=K,dt.lim=gt++,et?dt.parent=et:delete dt.parent,gt}function V(tt){return d.find(tt.edges(),function(kt){return tt.edge(kt).cutvalue<0})}function X(tt,kt,gt){var ft=gt.v,et=gt.w;kt.hasEdge(ft,et)||(ft=gt.w,et=gt.v);var K=tt.node(ft),dt=tt.node(et),Ot=K,Tt=!1;K.lim>dt.lim&&(Ot=dt,Tt=!0);var lt=d.filter(kt.edges(),function(It){return Tt===ht(0,tt.node(It.v),Ot)&&Tt!==ht(0,tt.node(It.w),Ot)});return d.minBy(lt,function(It){return _(kt,It)})}function J(tt,kt,gt,ft){var et=gt.v,K=gt.w;tt.removeEdge(et,K),tt.setEdge(ft.v,ft.w,{}),W(tt),N(tt,kt),function(dt,Ot){var Tt=d.find(dt.nodes(),function(It){return!Ot.node(It).parent}),lt=w(dt,Tt);lt=lt.slice(1),d.forEach(lt,function(It){var Ft=dt.node(It).parent,ue=Ot.edge(It,Ft),ye=!1;ue||(ue=Ot.edge(Ft,It),ye=!0),Ot.node(It).rank=Ot.node(Ft).rank+(ye?ue.minlen:-ue.minlen)})}(tt,kt)}function ht(tt,kt,gt){return gt.low<=kt.lim&&kt.lim<=gt.lim}a.exports=L,L.initLowLimValues=W,L.initCutValues=N,L.calcCutValue=P,L.leaveEdge=V,L.enterEdge=X,L.exchangeEdges=J},6681:(a,h,s)=>{var d=s(8436);a.exports={longestPath:function(l){var _={};d.forEach(l.sources(),function y(w){var T=l.node(w);if(d.has(_,w))return T.rank;_[w]=!0;var A=d.min(d.map(l.outEdges(w),function(L){return y(L.w)-l.edge(L).minlen}));return A!==Number.POSITIVE_INFINITY&&A!=null||(A=0),T.rank=A})},slack:function(l,_){return l.node(_.w).rank-l.node(_.v).rank-l.edge(_).minlen}}},1138:(a,h,s)=>{var d=s(8436),l=s(574).Graph;function _(w,T,A,L){var N;do N=d.uniqueId(L);while(w.hasNode(N));return A.dummy=T,w.setNode(N,A),N}function y(w){return d.max(d.map(w.nodes(),function(T){var A=w.node(T).rank;if(!d.isUndefined(A))return A}))}a.exports={addDummyNode:_,simplify:function(w){var T=new l().setGraph(w.graph());return d.forEach(w.nodes(),function(A){T.setNode(A,w.node(A))}),d.forEach(w.edges(),function(A){var L=T.edge(A.v,A.w)||{weight:0,minlen:1},N=w.edge(A);T.setEdge(A.v,A.w,{weight:L.weight+N.weight,minlen:Math.max(L.minlen,N.minlen)})}),T},asNonCompoundGraph:function(w){var T=new l({multigraph:w.isMultigraph()}).setGraph(w.graph());return d.forEach(w.nodes(),function(A){w.children(A).length||T.setNode(A,w.node(A))}),d.forEach(w.edges(),function(A){T.setEdge(A,w.edge(A))}),T},successorWeights:function(w){var T=d.map(w.nodes(),function(A){var L={};return d.forEach(w.outEdges(A),function(N){L[N.w]=(L[N.w]||0)+w.edge(N).weight}),L});return d.zipObject(w.nodes(),T)},predecessorWeights:function(w){var T=d.map(w.nodes(),function(A){var L={};return d.forEach(w.inEdges(A),function(N){L[N.v]=(L[N.v]||0)+w.edge(N).weight}),L});return d.zipObject(w.nodes(),T)},intersectRect:function(w,T){var A,L,N=w.x,P=w.y,W=T.x-N,H=T.y-P,V=w.width/2,X=w.height/2;if(!W&&!H)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(H)*V>Math.abs(W)*X?(H<0&&(X=-X),A=X*W/H,L=X):(W<0&&(V=-V),A=V,L=V*H/W),{x:N+A,y:P+L}},buildLayerMatrix:function(w){var T=d.map(d.range(y(w)+1),function(){return[]});return d.forEach(w.nodes(),function(A){var L=w.node(A),N=L.rank;d.isUndefined(N)||(T[N][L.order]=A)}),T},normalizeRanks:function(w){var T=d.min(d.map(w.nodes(),function(A){return w.node(A).rank}));d.forEach(w.nodes(),function(A){var L=w.node(A);d.has(L,"rank")&&(L.rank-=T)})},removeEmptyRanks:function(w){var T=d.min(d.map(w.nodes(),function(P){return w.node(P).rank})),A=[];d.forEach(w.nodes(),function(P){var W=w.node(P).rank-T;A[W]||(A[W]=[]),A[W].push(P)});var L=0,N=w.graph().nodeRankFactor;d.forEach(A,function(P,W){d.isUndefined(P)&&W%N!=0?--L:L&&d.forEach(P,function(H){w.node(H).rank+=L})})},addBorderNode:function(w,T,A,L){var N={width:0,height:0};return arguments.length>=4&&(N.rank=A,N.order=L),_(w,"border",N,T)},maxRank:y,partition:function(w,T){var A={lhs:[],rhs:[]};return d.forEach(w,function(L){T(L)?A.lhs.push(L):A.rhs.push(L)}),A},time:function(w,T){var A=d.now();try{return T()}finally{console.log(w+" time: "+(d.now()-A)+"ms")}},notime:function(w,T){return T()}}},8177:a=>{a.exports="0.8.5"},7856:function(a){a.exports=function(){var h=Object.hasOwnProperty,s=Object.setPrototypeOf,d=Object.isFrozen,l=Object.getPrototypeOf,_=Object.getOwnPropertyDescriptor,y=Object.freeze,w=Object.seal,T=Object.create,A=typeof Reflect!="undefined"&&Reflect,L=A.apply,N=A.construct;L||(L=function(re,Dt,ne){return re.apply(Dt,ne)}),y||(y=function(re){return re}),w||(w=function(re){return re}),N||(N=function(re,Dt){return new(Function.prototype.bind.apply(re,[null].concat(function(ne){if(Array.isArray(ne)){for(var ke=0,me=Array(ne.length);ke<ne.length;ke++)me[ke]=ne[ke];return me}return Array.from(ne)}(Dt))))});var P,W=et(Array.prototype.forEach),H=et(Array.prototype.pop),V=et(Array.prototype.push),X=et(String.prototype.toLowerCase),J=et(String.prototype.match),ht=et(String.prototype.replace),tt=et(String.prototype.indexOf),kt=et(String.prototype.trim),gt=et(RegExp.prototype.test),ft=(P=TypeError,function(){for(var re=arguments.length,Dt=Array(re),ne=0;ne<re;ne++)Dt[ne]=arguments[ne];return N(P,Dt)});function et(re){return function(Dt){for(var ne=arguments.length,ke=Array(ne>1?ne-1:0),me=1;me<ne;me++)ke[me-1]=arguments[me];return L(re,Dt,ke)}}function K(re,Dt){s&&s(re,null);for(var ne=Dt.length;ne--;){var ke=Dt[ne];if(typeof ke=="string"){var me=X(ke);me!==ke&&(d(Dt)||(Dt[ne]=me),ke=me)}re[ke]=!0}return re}function dt(re){var Dt=T(null),ne=void 0;for(ne in re)L(h,re,[ne])&&(Dt[ne]=re[ne]);return Dt}function Ot(re,Dt){for(;re!==null;){var ne=_(re,Dt);if(ne){if(ne.get)return et(ne.get);if(typeof ne.value=="function")return et(ne.value)}re=l(re)}return function(ke){return console.warn("fallback value for",ke),null}}var Tt=y(["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","section","select","shadow","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"]),lt=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),It=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ft=y(["animate","color-profile","cursor","discard","fedropshadow","feimage","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"]),ue=y(["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"]),ye=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),de=y(["#text"]),le=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Nt=y(["accent-height","accumulate","additive","alignment-baseline","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","dur","edgemode","elevation","end","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","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","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","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","targetx","targety","transform","text-anchor","text-decoration","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"]),jt=y(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),Kt=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pe=w(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ge=w(/<%[\s\S]*|[\s\S]*%>/gm),Pt=w(/^data-[\-\w.\u00B7-\uFFFF]/),ze=w(/^aria-[\-\w]+$/),Qt=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zt=w(/^(?:\w+script|data):/i),Zt=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re};function ae(re){if(Array.isArray(re)){for(var Dt=0,ne=Array(re.length);Dt<re.length;Dt++)ne[Dt]=re[Dt];return ne}return Array.from(re)}var Ct=function(){return typeof window=="undefined"?null:window},Mt=function(re,Dt){if((re===void 0?"undefined":rt(re))!=="object"||typeof re.createPolicy!="function")return null;var ne=null,ke="data-tt-policy-suffix";Dt.currentScript&&Dt.currentScript.hasAttribute(ke)&&(ne=Dt.currentScript.getAttribute(ke));var me="dompurify"+(ne?"#"+ne:"");try{return re.createPolicy(me,{createHTML:function(pn){return pn}})}catch(pn){return console.warn("TrustedTypes policy "+me+" could not be created."),null}};return function re(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ct(),ne=function(Wt){return re(Wt)};if(ne.version="2.3.3",ne.removed=[],!Dt||!Dt.document||Dt.document.nodeType!==9)return ne.isSupported=!1,ne;var ke=Dt.document,me=Dt.document,pn=Dt.DocumentFragment,Pe=Dt.HTMLTemplateElement,Qe=Dt.Node,Be=Dt.Element,Ee=Dt.NodeFilter,tn=Dt.NamedNodeMap,je=tn===void 0?Dt.NamedNodeMap||Dt.MozNamedAttrMap:tn,Je=Dt.Text,Ke=Dt.Comment,On=Dt.DOMParser,Sn=Dt.trustedTypes,Te=Be.prototype,Ge=Ot(Te,"cloneNode"),_r=Ot(Te,"nextSibling"),Ur=Ot(Te,"childNodes"),gn=Ot(Te,"parentNode");if(typeof Pe=="function"){var un=me.createElement("template");un.content&&un.content.ownerDocument&&(me=un.content.ownerDocument)}var an=Mt(Sn,ke),xn=an&&pi?an.createHTML(""):"",Ze=me,Tn=Ze.implementation,Cn=Ze.createNodeIterator,Zn=Ze.createDocumentFragment,Xr=Ze.getElementsByTagName,Wn=ke.importNode,Un={};try{Un=dt(me).documentMode?me.documentMode:{}}catch(Wt){}var Ln={};ne.isSupported=typeof gn=="function"&&Tn&&Tn.createHTMLDocument!==void 0&&Un!==9;var qn=pe,Qn=ge,er=Pt,ar=ze,Bn=zt,Hn=Zt,In=Qt,_n=null,so=K({},[].concat(ae(Tt),ae(lt),ae(It),ae(ue),ae(de))),hr=null,Ai=K({},[].concat(ae(le),ae(Nt),ae(jt),ae(Kt))),Rn=null,ko=null,To=!0,Jr=!0,ri=!1,Rr=!1,zr=!1,Zr=!1,Kr=!1,Ar=!1,ti=!1,qr=!0,pi=!1,gi=!0,yr=!0,Di=!1,Vr={},Ui=null,Wa=K({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Aa=null,qe=K({},["audio","video","img","source","image","track"]),or=null,Dn=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",br="http://www.w3.org/2000/svg",Bt="http://www.w3.org/1999/xhtml",De=Bt,Vt=!1,Fr=void 0,Ss=["application/xhtml+xml","text/html"],Zo="text/html",Ha=void 0,zi=null,Cs=me.createElement("form"),Pr=function(Wt){zi&&zi===Wt||(Wt&&(Wt===void 0?"undefined":rt(Wt))==="object"||(Wt={}),Wt=dt(Wt),_n="ALLOWED_TAGS"in Wt?K({},Wt.ALLOWED_TAGS):so,hr="ALLOWED_ATTR"in Wt?K({},Wt.ALLOWED_ATTR):Ai,or="ADD_URI_SAFE_ATTR"in Wt?K(dt(Dn),Wt.ADD_URI_SAFE_ATTR):Dn,Aa="ADD_DATA_URI_TAGS"in Wt?K(dt(qe),Wt.ADD_DATA_URI_TAGS):qe,Ui="FORBID_CONTENTS"in Wt?K({},Wt.FORBID_CONTENTS):Wa,Rn="FORBID_TAGS"in Wt?K({},Wt.FORBID_TAGS):{},ko="FORBID_ATTR"in Wt?K({},Wt.FORBID_ATTR):{},Vr="USE_PROFILES"in Wt&&Wt.USE_PROFILES,To=Wt.ALLOW_ARIA_ATTR!==!1,Jr=Wt.ALLOW_DATA_ATTR!==!1,ri=Wt.ALLOW_UNKNOWN_PROTOCOLS||!1,Rr=Wt.SAFE_FOR_TEMPLATES||!1,zr=Wt.WHOLE_DOCUMENT||!1,Ar=Wt.RETURN_DOM||!1,ti=Wt.RETURN_DOM_FRAGMENT||!1,qr=Wt.RETURN_DOM_IMPORT!==!1,pi=Wt.RETURN_TRUSTED_TYPE||!1,Kr=Wt.FORCE_BODY||!1,gi=Wt.SANITIZE_DOM!==!1,yr=Wt.KEEP_CONTENT!==!1,Di=Wt.IN_PLACE||!1,In=Wt.ALLOWED_URI_REGEXP||In,De=Wt.NAMESPACE||Bt,Fr=Fr=Ss.indexOf(Wt.PARSER_MEDIA_TYPE)===-1?Zo:Wt.PARSER_MEDIA_TYPE,Ha=Fr==="application/xhtml+xml"?function(He){return He}:X,Rr&&(Jr=!1),ti&&(Ar=!0),Vr&&(_n=K({},[].concat(ae(de))),hr=[],Vr.html===!0&&(K(_n,Tt),K(hr,le)),Vr.svg===!0&&(K(_n,lt),K(hr,Nt),K(hr,Kt)),Vr.svgFilters===!0&&(K(_n,It),K(hr,Nt),K(hr,Kt)),Vr.mathMl===!0&&(K(_n,ue),K(hr,jt),K(hr,Kt))),Wt.ADD_TAGS&&(_n===so&&(_n=dt(_n)),K(_n,Wt.ADD_TAGS)),Wt.ADD_ATTR&&(hr===Ai&&(hr=dt(hr)),K(hr,Wt.ADD_ATTR)),Wt.ADD_URI_SAFE_ATTR&&K(or,Wt.ADD_URI_SAFE_ATTR),Wt.FORBID_CONTENTS&&(Ui===Wa&&(Ui=dt(Ui)),K(Ui,Wt.FORBID_CONTENTS)),yr&&(_n["#text"]=!0),zr&&K(_n,["html","head","body"]),_n.table&&(K(_n,["tbody"]),delete Rn.tbody),y&&y(Wt),zi=Wt)},ha=K({},["mi","mo","mn","ms","mtext"]),$a=K({},["foreignobject","desc","title","annotation-xml"]),Mn=K({},lt);K(Mn,It),K(Mn,Ft);var co=K({},ue);K(co,ye);var qa=function(Wt){var He=gn(Wt);He&&He.tagName||(He={namespaceURI:Bt,tagName:"template"});var Ye=X(Wt.tagName),sr=X(He.tagName);if(Wt.namespaceURI===br)return He.namespaceURI===Bt?Ye==="svg":He.namespaceURI===Ie?Ye==="svg"&&(sr==="annotation-xml"||ha[sr]):Boolean(Mn[Ye]);if(Wt.namespaceURI===Ie)return He.namespaceURI===Bt?Ye==="math":He.namespaceURI===br?Ye==="math"&&$a[sr]:Boolean(co[Ye]);if(Wt.namespaceURI===Bt){if(He.namespaceURI===br&&!$a[sr]||He.namespaceURI===Ie&&!ha[sr])return!1;var Or=K({},["title","style","font","a","script"]);return!co[Ye]&&(Or[Ye]||!Mn[Ye])}return!1},Yn=function(Wt){V(ne.removed,{element:Wt});try{Wt.parentNode.removeChild(Wt)}catch(He){try{Wt.outerHTML=xn}catch(Ye){Wt.remove()}}},Ti=function(Wt,He){try{V(ne.removed,{attribute:He.getAttributeNode(Wt),from:He})}catch(Ye){V(ne.removed,{attribute:null,from:He})}if(He.removeAttribute(Wt),Wt==="is"&&!hr[Wt])if(Ar||ti)try{Yn(He)}catch(Ye){}else try{He.setAttribute(Wt,"")}catch(Ye){}},Qr=function(Wt){var He=void 0,Ye=void 0;if(Kr)Wt="<remove></remove>"+Wt;else{var sr=J(Wt,/^[\r\n\t ]+/);Ye=sr&&sr[0]}Fr==="application/xhtml+xml"&&(Wt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Wt+"</body></html>");var Or=an?an.createHTML(Wt):Wt;if(De===Bt)try{He=new On().parseFromString(Or,Fr)}catch(ii){}if(!He||!He.documentElement){He=Tn.createDocument(De,"template",null);try{He.documentElement.innerHTML=Vt?"":Or}catch(ii){}}var ei=He.body||He.documentElement;return Wt&&Ye&&ei.insertBefore(me.createTextNode(Ye),ei.childNodes[0]||null),De===Bt?Xr.call(He,zr?"html":"body")[0]:zr?He.documentElement:ei},Dr=function(Wt){return Cn.call(Wt.ownerDocument||Wt,Wt,Ee.SHOW_ELEMENT|Ee.SHOW_COMMENT|Ee.SHOW_TEXT,null,!1)},Qi=function(Wt){return!(Wt instanceof Je||Wt instanceof Ke||typeof Wt.nodeName=="string"&&typeof Wt.textContent=="string"&&typeof Wt.removeChild=="function"&&Wt.attributes instanceof je&&typeof Wt.removeAttribute=="function"&&typeof Wt.setAttribute=="function"&&typeof Wt.namespaceURI=="string"&&typeof Wt.insertBefore=="function")},Nr=function(Wt){return(Qe===void 0?"undefined":rt(Qe))==="object"?Wt instanceof Qe:Wt&&(Wt===void 0?"undefined":rt(Wt))==="object"&&typeof Wt.nodeType=="number"&&typeof Wt.nodeName=="string"},Wr=function(Wt,He,Ye){Ln[Wt]&&W(Ln[Wt],function(sr){sr.call(ne,He,Ye,zi)})},Wi=function(Wt){var He=void 0;if(Wr("beforeSanitizeElements",Wt,null),Qi(Wt)||J(Wt.nodeName,/[\u0080-\uFFFF]/))return Yn(Wt),!0;var Ye=Ha(Wt.nodeName);if(Wr("uponSanitizeElement",Wt,{tagName:Ye,allowedTags:_n}),!Nr(Wt.firstElementChild)&&(!Nr(Wt.content)||!Nr(Wt.content.firstElementChild))&>(/<[/\w]/g,Wt.innerHTML)&>(/<[/\w]/g,Wt.textContent)||Ye==="select"&>(/<template/i,Wt.innerHTML))return Yn(Wt),!0;if(!_n[Ye]||Rn[Ye]){if(yr&&!Ui[Ye]){var sr=gn(Wt)||Wt.parentNode,Or=Ur(Wt)||Wt.childNodes;if(Or&&sr)for(var ei=Or.length-1;ei>=0;--ei)sr.insertBefore(Ge(Or[ei],!0),_r(Wt))}return Yn(Wt),!0}return Wt instanceof Be&&!qa(Wt)?(Yn(Wt),!0):Ye!=="noscript"&&Ye!=="noembed"||!gt(/<\/no(script|embed)/i,Wt.innerHTML)?(Rr&&Wt.nodeType===3&&(He=Wt.textContent,He=ht(He,qn," "),He=ht(He,Qn," "),Wt.textContent!==He&&(V(ne.removed,{element:Wt.cloneNode()}),Wt.textContent=He)),Wr("afterSanitizeElements",Wt,null),!1):(Yn(Wt),!0)},Ni=function(Wt,He,Ye){if(gi&&(He==="id"||He==="name")&&(Ye in me||Ye in Cs))return!1;if(!(Jr&&!ko[He]&>(er,He))){if(!(To&>(ar,He))){if(!hr[He]||ko[He])return!1;if(!or[He]){if(!gt(In,ht(Ye,Hn,""))){if((He!=="src"&&He!=="xlink:href"&&He!=="href"||Wt==="script"||tt(Ye,"data:")!==0||!Aa[Wt])&&!(ri&&!gt(Bn,ht(Ye,Hn,"")))){if(Ye)return!1}}}}}return!0},Ei=function(Wt){var He=void 0,Ye=void 0,sr=void 0,Or=void 0;Wr("beforeSanitizeAttributes",Wt,null);var ei=Wt.attributes;if(ei){var ii={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:hr};for(Or=ei.length;Or--;){var Eo=He=ei[Or],ua=Eo.name,So=Eo.namespaceURI;if(Ye=kt(He.value),sr=Ha(ua),ii.attrName=sr,ii.attrValue=Ye,ii.keepAttr=!0,ii.forceKeepAttr=void 0,Wr("uponSanitizeAttribute",Wt,ii),Ye=ii.attrValue,!ii.forceKeepAttr&&(Ti(ua,Wt),ii.keepAttr))if(gt(/\/>/i,Ye))Ti(ua,Wt);else{Rr&&(Ye=ht(Ye,qn," "),Ye=ht(Ye,Qn," "));var Oi=Ha(Wt.nodeName);if(Ni(Oi,sr,Ye))try{So?Wt.setAttributeNS(So,ua,Ye):Wt.setAttribute(ua,Ye),H(ne.removed)}catch(Qc){}}}Wr("afterSanitizeAttributes",Wt,null)}},Da=function Wt(He){var Ye=void 0,sr=Dr(He);for(Wr("beforeSanitizeShadowDOM",He,null);Ye=sr.nextNode();)Wr("uponSanitizeShadowNode",Ye,null),Wi(Ye)||(Ye.content instanceof pn&&Wt(Ye.content),Ei(Ye));Wr("afterSanitizeShadowDOM",He,null)};return ne.sanitize=function(Wt,He){var Ye=void 0,sr=void 0,Or=void 0,ei=void 0,ii=void 0;if((Vt=!Wt)&&(Wt="<!-->"),typeof Wt!="string"&&!Nr(Wt)){if(typeof Wt.toString!="function")throw ft("toString is not a function");if(typeof(Wt=Wt.toString())!="string")throw ft("dirty is not a string, aborting")}if(!ne.isSupported){if(rt(Dt.toStaticHTML)==="object"||typeof Dt.toStaticHTML=="function"){if(typeof Wt=="string")return Dt.toStaticHTML(Wt);if(Nr(Wt))return Dt.toStaticHTML(Wt.outerHTML)}return Wt}if(Zr||Pr(He),ne.removed=[],typeof Wt=="string"&&(Di=!1),!Di)if(Wt instanceof Qe)(sr=(Ye=Qr("<!---->")).ownerDocument.importNode(Wt,!0)).nodeType===1&&sr.nodeName==="BODY"||sr.nodeName==="HTML"?Ye=sr:Ye.appendChild(sr);else{if(!Ar&&!Rr&&!zr&&Wt.indexOf("<")===-1)return an&&pi?an.createHTML(Wt):Wt;if(!(Ye=Qr(Wt)))return Ar?null:xn}Ye&&Kr&&Yn(Ye.firstChild);for(var Eo=Dr(Di?Wt:Ye);Or=Eo.nextNode();)Or.nodeType===3&&Or===ei||Wi(Or)||(Or.content instanceof pn&&Da(Or.content),Ei(Or),ei=Or);if(ei=null,Di)return Wt;if(Ar){if(ti)for(ii=Zn.call(Ye.ownerDocument);Ye.firstChild;)ii.appendChild(Ye.firstChild);else ii=Ye;return qr&&(ii=Wn.call(ke,ii,!0)),ii}var ua=zr?Ye.outerHTML:Ye.innerHTML;return Rr&&(ua=ht(ua,qn," "),ua=ht(ua,Qn," ")),an&&pi?an.createHTML(ua):ua},ne.setConfig=function(Wt){Pr(Wt),Zr=!0},ne.clearConfig=function(){zi=null,Zr=!1},ne.isValidAttribute=function(Wt,He,Ye){zi||Pr({});var sr=Ha(Wt),Or=Ha(He);return Ni(sr,Or,Ye)},ne.addHook=function(Wt,He){typeof He=="function"&&(Ln[Wt]=Ln[Wt]||[],V(Ln[Wt],He))},ne.removeHook=function(Wt){Ln[Wt]&&H(Ln[Wt])},ne.removeHooks=function(Wt){Ln[Wt]&&(Ln[Wt]=[])},ne.removeAllHooks=function(){Ln={}},ne}()}()},8282:(a,h,s)=>{var d=s(2354);a.exports={Graph:d.Graph,json:s(8974),alg:s(2440),version:d.version}},2842:(a,h,s)=>{var d=s(9126);a.exports=function(l){var _,y={},w=[];function T(A){d.has(y,A)||(y[A]=!0,_.push(A),d.each(l.successors(A),T),d.each(l.predecessors(A),T))}return d.each(l.nodes(),function(A){_=[],T(A),_.length&&w.push(_)}),w}},3984:(a,h,s)=>{var d=s(9126);function l(_,y,w,T,A,L){d.has(T,y)||(T[y]=!0,w||L.push(y),d.each(A(y),function(N){l(_,N,w,T,A,L)}),w&&L.push(y))}a.exports=function(_,y,w){d.isArray(y)||(y=[y]);var T=(_.isDirected()?_.successors:_.neighbors).bind(_),A=[],L={};return d.each(y,function(N){if(!_.hasNode(N))throw new Error("Graph does not have node: "+N);l(_,N,w==="post",L,T,A)}),A}},4847:(a,h,s)=>{var d=s(3763),l=s(9126);a.exports=function(_,y,w){return l.transform(_.nodes(),function(T,A){T[A]=d(_,A,y,w)},{})}},3763:(a,h,s)=>{var d=s(9126),l=s(9675);a.exports=function(y,w,T,A){return function(L,N,P,W){var H,V,X={},J=new l,ht=function(tt){var kt=tt.v!==H?tt.v:tt.w,gt=X[kt],ft=P(tt),et=V.distance+ft;if(ft<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+tt+" Weight: "+ft);et<gt.distance&&(gt.distance=et,gt.predecessor=H,J.decrease(kt,et))};for(L.nodes().forEach(function(tt){var kt=tt===N?0:Number.POSITIVE_INFINITY;X[tt]={distance:kt},J.add(tt,kt)});J.size()>0&&(H=J.removeMin(),(V=X[H]).distance!==Number.POSITIVE_INFINITY);)W(H).forEach(ht);return X}(y,String(w),T||_,A||function(L){return y.outEdges(L)})};var _=d.constant(1)},9096:(a,h,s)=>{var d=s(9126),l=s(5023);a.exports=function(_){return d.filter(l(_),function(y){return y.length>1||y.length===1&&_.hasEdge(y[0],y[0])})}},8924:(a,h,s)=>{var d=s(9126);a.exports=function(_,y,w){return function(T,A,L){var N={},P=T.nodes();return P.forEach(function(W){N[W]={},N[W][W]={distance:0},P.forEach(function(H){W!==H&&(N[W][H]={distance:Number.POSITIVE_INFINITY})}),L(W).forEach(function(H){var V=H.v===W?H.w:H.v,X=A(H);N[W][V]={distance:X,predecessor:W}})}),P.forEach(function(W){var H=N[W];P.forEach(function(V){var X=N[V];P.forEach(function(J){var ht=X[W],tt=H[J],kt=X[J],gt=ht.distance+tt.distance;gt<kt.distance&&(kt.distance=gt,kt.predecessor=tt.predecessor)})})}),N}(_,y||l,w||function(T){return _.outEdges(T)})};var l=d.constant(1)},2440:(a,h,s)=>{a.exports={components:s(2842),dijkstra:s(3763),dijkstraAll:s(4847),findCycles:s(9096),floydWarshall:s(8924),isAcyclic:s(2707),postorder:s(8828),preorder:s(2648),prim:s(514),tarjan:s(5023),topsort:s(2166)}},2707:(a,h,s)=>{var d=s(2166);a.exports=function(l){try{d(l)}catch(_){if(_ instanceof d.CycleException)return!1;throw _}return!0}},8828:(a,h,s)=>{var d=s(3984);a.exports=function(l,_){return d(l,_,"post")}},2648:(a,h,s)=>{var d=s(3984);a.exports=function(l,_){return d(l,_,"pre")}},514:(a,h,s)=>{var d=s(9126),l=s(771),_=s(9675);a.exports=function(y,w){var T,A=new l,L={},N=new _;function P(H){var V=H.v===T?H.w:H.v,X=N.priority(V);if(X!==void 0){var J=w(H);J<X&&(L[V]=T,N.decrease(V,J))}}if(y.nodeCount()===0)return A;d.each(y.nodes(),function(H){N.add(H,Number.POSITIVE_INFINITY),A.setNode(H)}),N.decrease(y.nodes()[0],0);for(var W=!1;N.size()>0;){if(T=N.removeMin(),d.has(L,T))A.setEdge(T,L[T]);else{if(W)throw new Error("Input graph is not connected: "+y);W=!0}y.nodeEdges(T).forEach(P)}return A}},5023:(a,h,s)=>{var d=s(9126);a.exports=function(l){var _=0,y=[],w={},T=[];function A(L){var N=w[L]={onStack:!0,lowlink:_,index:_++};if(y.push(L),l.successors(L).forEach(function(H){d.has(w,H)?w[H].onStack&&(N.lowlink=Math.min(N.lowlink,w[H].index)):(A(H),N.lowlink=Math.min(N.lowlink,w[H].lowlink))}),N.lowlink===N.index){var P,W=[];do P=y.pop(),w[P].onStack=!1,W.push(P);while(L!==P);T.push(W)}}return l.nodes().forEach(function(L){d.has(w,L)||A(L)}),T}},2166:(a,h,s)=>{var d=s(9126);function l(y){var w={},T={},A=[];if(d.each(y.sinks(),function L(N){if(d.has(T,N))throw new _;d.has(w,N)||(T[N]=!0,w[N]=!0,d.each(y.predecessors(N),L),delete T[N],A.push(N))}),d.size(w)!==y.nodeCount())throw new _;return A}function _(){}a.exports=l,l.CycleException=_,_.prototype=new Error},9675:(a,h,s)=>{var d=s(9126);function l(){this._arr=[],this._keyIndices={}}a.exports=l,l.prototype.size=function(){return this._arr.length},l.prototype.keys=function(){return this._arr.map(function(_){return _.key})},l.prototype.has=function(_){return d.has(this._keyIndices,_)},l.prototype.priority=function(_){var y=this._keyIndices[_];if(y!==void 0)return this._arr[y].priority},l.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},l.prototype.add=function(_,y){var w=this._keyIndices;if(_=String(_),!d.has(w,_)){var T=this._arr,A=T.length;return w[_]=A,T.push({key:_,priority:y}),this._decrease(A),!0}return!1},l.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},l.prototype.decrease=function(_,y){var w=this._keyIndices[_];if(y>this._arr[w].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[w].priority+" New: "+y);this._arr[w].priority=y,this._decrease(w)},l.prototype._heapify=function(_){var y=this._arr,w=2*_,T=w+1,A=_;w<y.length&&(A=y[w].priority<y[A].priority?w:A,T<y.length&&(A=y[T].priority<y[A].priority?T:A),A!==_&&(this._swap(_,A),this._heapify(A)))},l.prototype._decrease=function(_){for(var y,w=this._arr,T=w[_].priority;_!==0&&!(w[y=_>>1].priority<T);)this._swap(_,y),_=y},l.prototype._swap=function(_,y){var w=this._arr,T=this._keyIndices,A=w[_],L=w[y];w[_]=L,w[y]=A,T[L.key]=_,T[A.key]=y}},771:(a,h,s)=>{var d=s(9126);a.exports=_;var l="\0";function _(N){this._isDirected=!d.has(N,"directed")||N.directed,this._isMultigraph=!!d.has(N,"multigraph")&&N.multigraph,this._isCompound=!!d.has(N,"compound")&&N.compound,this._label=void 0,this._defaultNodeLabelFn=d.constant(void 0),this._defaultEdgeLabelFn=d.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function y(N,P){N[P]?N[P]++:N[P]=1}function w(N,P){--N[P]||delete N[P]}function T(N,P,W,H){var V=""+P,X=""+W;if(!N&&V>X){var J=V;V=X,X=J}return V+""+X+""+(d.isUndefined(H)?"\0":H)}function A(N,P,W,H){var V=""+P,X=""+W;if(!N&&V>X){var J=V;V=X,X=J}var ht={v:V,w:X};return H&&(ht.name=H),ht}function L(N,P){return T(N,P.v,P.w,P.name)}_.prototype._nodeCount=0,_.prototype._edgeCount=0,_.prototype.isDirected=function(){return this._isDirected},_.prototype.isMultigraph=function(){return this._isMultigraph},_.prototype.isCompound=function(){return this._isCompound},_.prototype.setGraph=function(N){return this._label=N,this},_.prototype.graph=function(){return this._label},_.prototype.setDefaultNodeLabel=function(N){return d.isFunction(N)||(N=d.constant(N)),this._defaultNodeLabelFn=N,this},_.prototype.nodeCount=function(){return this._nodeCount},_.prototype.nodes=function(){return d.keys(this._nodes)},_.prototype.sources=function(){var N=this;return d.filter(this.nodes(),function(P){return d.isEmpty(N._in[P])})},_.prototype.sinks=function(){var N=this;return d.filter(this.nodes(),function(P){return d.isEmpty(N._out[P])})},_.prototype.setNodes=function(N,P){var W=arguments,H=this;return d.each(N,function(V){W.length>1?H.setNode(V,P):H.setNode(V)}),this},_.prototype.setNode=function(N,P){return d.has(this._nodes,N)?(arguments.length>1&&(this._nodes[N]=P),this):(this._nodes[N]=arguments.length>1?P:this._defaultNodeLabelFn(N),this._isCompound&&(this._parent[N]=l,this._children[N]={},this._children["\0"][N]=!0),this._in[N]={},this._preds[N]={},this._out[N]={},this._sucs[N]={},++this._nodeCount,this)},_.prototype.node=function(N){return this._nodes[N]},_.prototype.hasNode=function(N){return d.has(this._nodes,N)},_.prototype.removeNode=function(N){var P=this;if(d.has(this._nodes,N)){var W=function(H){P.removeEdge(P._edgeObjs[H])};delete this._nodes[N],this._isCompound&&(this._removeFromParentsChildList(N),delete this._parent[N],d.each(this.children(N),function(H){P.setParent(H)}),delete this._children[N]),d.each(d.keys(this._in[N]),W),delete this._in[N],delete this._preds[N],d.each(d.keys(this._out[N]),W),delete this._out[N],delete this._sucs[N],--this._nodeCount}return this},_.prototype.setParent=function(N,P){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(d.isUndefined(P))P=l;else{for(var W=P+="";!d.isUndefined(W);W=this.parent(W))if(W===N)throw new Error("Setting "+P+" as parent of "+N+" would create a cycle");this.setNode(P)}return this.setNode(N),this._removeFromParentsChildList(N),this._parent[N]=P,this._children[P][N]=!0,this},_.prototype._removeFromParentsChildList=function(N){delete this._children[this._parent[N]][N]},_.prototype.parent=function(N){if(this._isCompound){var P=this._parent[N];if(P!==l)return P}},_.prototype.children=function(N){if(d.isUndefined(N)&&(N=l),this._isCompound){var P=this._children[N];if(P)return d.keys(P)}else{if(N===l)return this.nodes();if(this.hasNode(N))return[]}},_.prototype.predecessors=function(N){var P=this._preds[N];if(P)return d.keys(P)},_.prototype.successors=function(N){var P=this._sucs[N];if(P)return d.keys(P)},_.prototype.neighbors=function(N){var P=this.predecessors(N);if(P)return d.union(P,this.successors(N))},_.prototype.isLeaf=function(N){return(this.isDirected()?this.successors(N):this.neighbors(N)).length===0},_.prototype.filterNodes=function(N){var P=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});P.setGraph(this.graph());var W=this;d.each(this._nodes,function(X,J){N(J)&&P.setNode(J,X)}),d.each(this._edgeObjs,function(X){P.hasNode(X.v)&&P.hasNode(X.w)&&P.setEdge(X,W.edge(X))});var H={};function V(X){var J=W.parent(X);return J===void 0||P.hasNode(J)?(H[X]=J,J):J in H?H[J]:V(J)}return this._isCompound&&d.each(P.nodes(),function(X){P.setParent(X,V(X))}),P},_.prototype.setDefaultEdgeLabel=function(N){return d.isFunction(N)||(N=d.constant(N)),this._defaultEdgeLabelFn=N,this},_.prototype.edgeCount=function(){return this._edgeCount},_.prototype.edges=function(){return d.values(this._edgeObjs)},_.prototype.setPath=function(N,P){var W=this,H=arguments;return d.reduce(N,function(V,X){return H.length>1?W.setEdge(V,X,P):W.setEdge(V,X),X}),this},_.prototype.setEdge=function(){var N,P,W,H,V=!1,X=arguments[0];typeof X=="object"&&X!==null&&"v"in X?(N=X.v,P=X.w,W=X.name,arguments.length===2&&(H=arguments[1],V=!0)):(N=X,P=arguments[1],W=arguments[3],arguments.length>2&&(H=arguments[2],V=!0)),N=""+N,P=""+P,d.isUndefined(W)||(W=""+W);var J=T(this._isDirected,N,P,W);if(d.has(this._edgeLabels,J))return V&&(this._edgeLabels[J]=H),this;if(!d.isUndefined(W)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(N),this.setNode(P),this._edgeLabels[J]=V?H:this._defaultEdgeLabelFn(N,P,W);var ht=A(this._isDirected,N,P,W);return N=ht.v,P=ht.w,Object.freeze(ht),this._edgeObjs[J]=ht,y(this._preds[P],N),y(this._sucs[N],P),this._in[P][J]=ht,this._out[N][J]=ht,this._edgeCount++,this},_.prototype.edge=function(N,P,W){var H=arguments.length===1?L(this._isDirected,arguments[0]):T(this._isDirected,N,P,W);return this._edgeLabels[H]},_.prototype.hasEdge=function(N,P,W){var H=arguments.length===1?L(this._isDirected,arguments[0]):T(this._isDirected,N,P,W);return d.has(this._edgeLabels,H)},_.prototype.removeEdge=function(N,P,W){var H=arguments.length===1?L(this._isDirected,arguments[0]):T(this._isDirected,N,P,W),V=this._edgeObjs[H];return V&&(N=V.v,P=V.w,delete this._edgeLabels[H],delete this._edgeObjs[H],w(this._preds[P],N),w(this._sucs[N],P),delete this._in[P][H],delete this._out[N][H],this._edgeCount--),this},_.prototype.inEdges=function(N,P){var W=this._in[N];if(W){var H=d.values(W);return P?d.filter(H,function(V){return V.v===P}):H}},_.prototype.outEdges=function(N,P){var W=this._out[N];if(W){var H=d.values(W);return P?d.filter(H,function(V){return V.w===P}):H}},_.prototype.nodeEdges=function(N,P){var W=this.inEdges(N,P);if(W)return W.concat(this.outEdges(N,P))}},2354:(a,h,s)=>{a.exports={Graph:s(771),version:s(9631)}},8974:(a,h,s)=>{var d=s(9126),l=s(771);function _(w){return d.map(w.nodes(),function(T){var A=w.node(T),L=w.parent(T),N={v:T};return d.isUndefined(A)||(N.value=A),d.isUndefined(L)||(N.parent=L),N})}function y(w){return d.map(w.edges(),function(T){var A=w.edge(T),L={v:T.v,w:T.w};return d.isUndefined(T.name)||(L.name=T.name),d.isUndefined(A)||(L.value=A),L})}a.exports={write:function(w){var T={options:{directed:w.isDirected(),multigraph:w.isMultigraph(),compound:w.isCompound()},nodes:_(w),edges:y(w)};return d.isUndefined(w.graph())||(T.value=d.clone(w.graph())),T},read:function(w){var T=new l(w.options).setGraph(w.value);return d.each(w.nodes,function(A){T.setNode(A.v,A.value),A.parent&&T.setParent(A.v,A.parent)}),d.each(w.edges,function(A){T.setEdge({v:A.v,w:A.w,name:A.name},A.value)}),T}}},9126:(a,h,s)=>{var d;try{d={clone:s(6678),constant:s(5703),each:s(6073),filter:s(3105),has:s(8721),isArray:s(1469),isEmpty:s(1609),isFunction:s(3560),isUndefined:s(2353),keys:s(3674),map:s(5161),reduce:s(4061),size:s(4238),transform:s(8718),union:s(3386),values:s(2628)}}catch(l){}d||(d=window._),a.exports=d},9631:a=>{a.exports="2.1.8"},1773:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(7628),_=function(){function y(w,T){this.color=T,this.changed=!1,this.data=w,this.type=new l.default}return y.prototype.set=function(w,T){return this.color=T,this.changed=!1,this.data=w,this.type.type=0,this},y.prototype._ensureHSL=function(){var w=this.data,T=w.h,A=w.s,L=w.l;T===void 0&&(w.h=d.default.channel.rgb2hsl(w,"h")),A===void 0&&(w.s=d.default.channel.rgb2hsl(w,"s")),L===void 0&&(w.l=d.default.channel.rgb2hsl(w,"l"))},y.prototype._ensureRGB=function(){var w=this.data,T=w.r,A=w.g,L=w.b;T===void 0&&(w.r=d.default.channel.hsl2rgb(w,"r")),A===void 0&&(w.g=d.default.channel.hsl2rgb(w,"g")),L===void 0&&(w.b=d.default.channel.hsl2rgb(w,"b"))},Object.defineProperty(y.prototype,"r",{get:function(){var w=this.data,T=w.r;return this.type.is(2)||T===void 0?(this._ensureHSL(),d.default.channel.hsl2rgb(w,"r")):T},set:function(w){this.type.set(1),this.changed=!0,this.data.r=w},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"g",{get:function(){var w=this.data,T=w.g;return this.type.is(2)||T===void 0?(this._ensureHSL(),d.default.channel.hsl2rgb(w,"g")):T},set:function(w){this.type.set(1),this.changed=!0,this.data.g=w},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"b",{get:function(){var w=this.data,T=w.b;return this.type.is(2)||T===void 0?(this._ensureHSL(),d.default.channel.hsl2rgb(w,"b")):T},set:function(w){this.type.set(1),this.changed=!0,this.data.b=w},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"h",{get:function(){var w=this.data,T=w.h;return this.type.is(1)||T===void 0?(this._ensureRGB(),d.default.channel.rgb2hsl(w,"h")):T},set:function(w){this.type.set(2),this.changed=!0,this.data.h=w},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"s",{get:function(){var w=this.data,T=w.s;return this.type.is(1)||T===void 0?(this._ensureRGB(),d.default.channel.rgb2hsl(w,"s")):T},set:function(w){this.type.set(2),this.changed=!0,this.data.s=w},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"l",{get:function(){var w=this.data,T=w.l;return this.type.is(1)||T===void 0?(this._ensureRGB(),d.default.channel.rgb2hsl(w,"l")):T},set:function(w){this.type.set(2),this.changed=!0,this.data.l=w},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"a",{get:function(){return this.data.a},set:function(w){this.changed=!0,this.data.a=w},enumerable:!0,configurable:!0}),y}();h.default=_},8167:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=new(s(1773)).default({r:0,g:0,b:0,a:0},"transparent");h.default=d},7628:(a,h)=>{Object.defineProperty(h,"__esModule",{value:!0});var s=function(){function d(){this.type=0}return d.prototype.get=function(){return this.type},d.prototype.set=function(l){if(this.type&&this.type!==l)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=l},d.prototype.reset=function(){this.type=0},d.prototype.is=function(l){return this.type===l},d}();h.default=s},1655:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(8167),l=s(6061),_={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(y){if(y.charCodeAt(0)===35){var w=y.match(_.re);if(w){var T=w[1],A=parseInt(T,16),L=T.length,N=L%4==0,P=L>4,W=P?1:17,H=P?8:4,V=N?0:-1,X=P?255:15;return d.default.set({r:(A>>H*(V+3)&X)*W,g:(A>>H*(V+2)&X)*W,b:(A>>H*(V+1)&X)*W,a:N?(A&X)*W/255:1},y)}}},stringify:function(y){var w=y.r,T=y.g,A=y.b,L=y.a;return L<1?"#"+l.DEC2HEX[Math.round(w)]+l.DEC2HEX[Math.round(T)]+l.DEC2HEX[Math.round(A)]+l.DEC2HEX[Math.round(255*L)]:"#"+l.DEC2HEX[Math.round(w)]+l.DEC2HEX[Math.round(T)]+l.DEC2HEX[Math.round(A)]}};h.default=_},8589:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(8167),_={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:function(y){var w=y.match(_.hueRe);if(w){var T=w[1];switch(w[2]){case"grad":return d.default.channel.clamp.h(.9*parseFloat(T));case"rad":return d.default.channel.clamp.h(180*parseFloat(T)/Math.PI);case"turn":return d.default.channel.clamp.h(360*parseFloat(T))}}return d.default.channel.clamp.h(parseFloat(y))},parse:function(y){var w=y.charCodeAt(0);if(w===104||w===72){var T=y.match(_.re);if(T){var A=T[1],L=T[2],N=T[3],P=T[4],W=T[5];return l.default.set({h:_._hue2deg(A),s:d.default.channel.clamp.s(parseFloat(L)),l:d.default.channel.clamp.l(parseFloat(N)),a:P?d.default.channel.clamp.a(W?parseFloat(P)/100:parseFloat(P)):1},y)}}},stringify:function(y){var w=y.h,T=y.s,A=y.l,L=y.a;return L<1?"hsla("+d.default.lang.round(w)+", "+d.default.lang.round(T)+"%, "+d.default.lang.round(A)+"%, "+L+")":"hsl("+d.default.lang.round(w)+", "+d.default.lang.round(T)+"%, "+d.default.lang.round(A)+"%)"}};h.default=_},2191:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1655),l=s(7538),_=s(6762),y=s(8589),w={format:{keyword:l.default,hex:d.default,rgb:_.default,rgba:_.default,hsl:y.default,hsla:y.default},parse:function(T){if(typeof T!="string")return T;var A=d.default.parse(T)||_.default.parse(T)||y.default.parse(T)||l.default.parse(T);if(A)return A;throw new Error('Unsupported color format: "'+T+'"')},stringify:function(T){return!T.changed&&T.color?T.color:T.type.is(2)||T.data.r===void 0?y.default.stringify(T):T.a<1||!Number.isInteger(T.r)||!Number.isInteger(T.g)||!Number.isInteger(T.b)?_.default.stringify(T):d.default.stringify(T)}};h.default=w},7538:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1655),l={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:function(_){_=_.toLowerCase();var y=l.colors[_];if(y)return d.default.parse(y)},stringify:function(_){var y=d.default.stringify(_);for(var w in l.colors)if(l.colors[w]===y)return w}};h.default=l},6762:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(8167),_={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:function(y){var w=y.charCodeAt(0);if(w===114||w===82){var T=y.match(_.re);if(T){var A=T[1],L=T[2],N=T[3],P=T[4],W=T[5],H=T[6],V=T[7],X=T[8];return l.default.set({r:d.default.channel.clamp.r(L?2.55*parseFloat(A):parseFloat(A)),g:d.default.channel.clamp.g(P?2.55*parseFloat(N):parseFloat(N)),b:d.default.channel.clamp.b(H?2.55*parseFloat(W):parseFloat(W)),a:V?d.default.channel.clamp.a(X?parseFloat(V)/100:parseFloat(V)):1},y)}}},stringify:function(y){var w=y.r,T=y.g,A=y.b,L=y.a;return L<1?"rgba("+d.default.lang.round(w)+", "+d.default.lang.round(T)+", "+d.default.lang.round(A)+", "+d.default.lang.round(L)+")":"rgb("+d.default.lang.round(w)+", "+d.default.lang.round(T)+", "+d.default.lang.round(A)+")"}};h.default=_},6061:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l={};h.DEC2HEX=l;for(var _=0;_<=255;_++)l[_]=d.default.unit.dec2hex(_)},8613:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0}),function(d){for(var l in d)h.hasOwnProperty(l)||(h[l]=d[l])}(s(1203))},5371:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(2191),l=s(418);h.default=function(_,y){var w=d.default.parse(_),T={};for(var A in y)y[A]&&(T[A]=w[A]+y[A]);return l.default(_,T)}},1416:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(2191);h.default=function(_,y,w){var T=l.default.parse(_),A=T[y],L=d.default.channel.clamp[y](A+w);return A!==L&&(T[y]=L),l.default.stringify(T)}},9353:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(6197);h.default=function(l){return d.default(l,"a")}},3394:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(6197);h.default=function(l){return d.default(l,"b")}},418:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(2191);h.default=function(_,y){var w=l.default.parse(_);for(var T in y)w[T]=d.default.channel.clamp[T](y[T]);return l.default.stringify(w)}},6197:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(2191);h.default=function(_,y){return d.default.lang.round(l.default.parse(_)[y])}},7361:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1416);h.default=function(l){return d.default(l,"h",180)}},3042:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(8346);h.default=function(_,y){var w=l.default(_),T=l.default(y),A=Math.max(w,T),L=Math.min(w,T),N=(A+Number.EPSILON)/(L+Number.EPSILON);return d.default.lang.round(d.default.lang.clamp(N,1,10))}},1364:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1416);h.default=function(l,_){return d.default(l,"l",-_)}},9610:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1416);h.default=function(l,_){return d.default(l,"s",-_)}},572:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(418);h.default=function(l){return d.default(l,{s:0})}},2299:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(6197);h.default=function(l){return d.default(l,"g")}},3116:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(8167),_=s(2191);h.default=function(y,w,T,A){A===void 0&&(A=1);var L=l.default.set({h:d.default.channel.clamp.h(y),s:d.default.channel.clamp.s(w),l:d.default.channel.clamp.l(T),a:d.default.channel.clamp.a(A)});return _.default.stringify(L)}},3008:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(6197);h.default=function(l){return d.default(l,"h")}},1203:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(6538);h.hex=d.default;var l=s(6538);h.rgb=l.default;var _=s(6538);h.rgba=_.default;var y=s(3116);h.hsl=y.default;var w=s(3116);h.hsla=w.default;var T=s(2619);h.toKeyword=T.default;var A=s(4307);h.toHex=A.default;var L=s(4125);h.toRgba=L.default;var N=s(7329);h.toHsla=N.default;var P=s(6197);h.channel=P.default;var W=s(9640);h.red=W.default;var H=s(2299);h.green=H.default;var V=s(3394);h.blue=V.default;var X=s(3008);h.hue=X.default;var J=s(6451);h.saturation=J.default;var ht=s(9235);h.lightness=ht.default;var tt=s(9353);h.alpha=tt.default;var kt=s(9353);h.opacity=kt.default;var gt=s(3042);h.contrast=gt.default;var ft=s(8346);h.luminance=ft.default;var et=s(4117);h.isDark=et.default;var K=s(2224);h.isLight=K.default;var dt=s(585);h.isValid=dt.default;var Ot=s(1080);h.saturate=Ot.default;var Tt=s(9610);h.desaturate=Tt.default;var lt=s(3235);h.lighten=lt.default;var It=s(1364);h.darken=It.default;var Ft=s(7189);h.opacify=Ft.default;var ue=s(7189);h.fadeIn=ue.default;var ye=s(4989);h.transparentize=ye.default;var de=s(4989);h.fadeOut=de.default;var le=s(7361);h.complement=le.default;var Nt=s(572);h.grayscale=Nt.default;var jt=s(5371);h.adjust=jt.default;var Kt=s(418);h.change=Kt.default;var pe=s(566);h.invert=pe.default;var ge=s(1861);h.mix=ge.default;var Pt=s(7081);h.scale=Pt.default},566:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(2191),l=s(1861);h.default=function(_,y){y===void 0&&(y=100);var w=d.default.parse(_);return w.r=255-w.r,w.g=255-w.g,w.b=255-w.b,l.default(w,_,y)}},4117:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(2224);h.default=function(l){return!d.default(l)}},2224:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(8346);h.default=function(l){return d.default(l)>=.5}},585:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(2191);h.default=function(l){try{return d.default.parse(l),!0}catch(_){return!1}}},3235:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1416);h.default=function(l,_){return d.default(l,"l",_)}},9235:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(6197);h.default=function(l){return d.default(l,"l")}},8346:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(2191);h.default=function(_){var y=l.default.parse(_),w=y.r,T=y.g,A=y.b,L=.2126*d.default.channel.toLinear(w)+.7152*d.default.channel.toLinear(T)+.0722*d.default.channel.toLinear(A);return d.default.lang.round(L)}},1861:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(2191),l=s(6538);h.default=function(_,y,w){w===void 0&&(w=50);var T=d.default.parse(_),A=T.r,L=T.g,N=T.b,P=T.a,W=d.default.parse(y),H=W.r,V=W.g,X=W.b,J=W.a,ht=w/100,tt=2*ht-1,kt=P-J,gt=((tt*kt==-1?tt:(tt+kt)/(1+tt*kt))+1)/2,ft=1-gt,et=A*gt+H*ft,K=L*gt+V*ft,dt=N*gt+X*ft,Ot=P*ht+J*(1-ht);return l.default(et,K,dt,Ot)}},7189:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1416);h.default=function(l,_){return d.default(l,"a",_)}},9640:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(6197);h.default=function(l){return d.default(l,"r")}},6538:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(8167),_=s(2191),y=s(418);h.default=function(w,T,A,L){if(A===void 0&&(A=0),L===void 0&&(L=1),typeof w!="number")return y.default(w,{a:T});var N=l.default.set({r:d.default.channel.clamp.r(w),g:d.default.channel.clamp.g(T),b:d.default.channel.clamp.b(A),a:d.default.channel.clamp.a(L)});return _.default.stringify(N)}},1080:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1416);h.default=function(l,_){return d.default(l,"s",_)}},6451:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(6197);h.default=function(l){return d.default(l,"s")}},7081:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1083),l=s(2191),_=s(5371);h.default=function(y,w){var T,A,L,N=l.default.parse(y),P={};for(var W in w)P[W]=(T=N[W],A=w[W],L=d.default.channel.max[W],A>0?(L-T)*A/100:T*A/100);return _.default(y,P)}},4307:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(2191);h.default=function(l){return d.default.format.hex.stringify(d.default.parse(l))}},7329:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(2191);h.default=function(l){return d.default.format.hsla.stringify(d.default.parse(l))}},2619:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(2191);h.default=function(l){return d.default.format.keyword.stringify(d.default.parse(l))}},4125:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(2191);h.default=function(l){return d.default.format.rgba.stringify(d.default.parse(l))}},4989:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(1416);h.default=function(l,_){return d.default(l,"a",-_)}},7994:(a,h)=>{Object.defineProperty(h,"__esModule",{value:!0});var s={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:function(d){return d>=255?255:d<0?0:d},g:function(d){return d>=255?255:d<0?0:d},b:function(d){return d>=255?255:d<0?0:d},h:function(d){return d%360},s:function(d){return d>=100?100:d<0?0:d},l:function(d){return d>=100?100:d<0?0:d},a:function(d){return d>=1?1:d<0?0:d}},toLinear:function(d){var l=d/255;return d>.03928?Math.pow((l+.055)/1.055,2.4):l/12.92},hue2rgb:function(d,l,_){return _<0&&(_+=1),_>1&&(_-=1),_<1/6?d+6*(l-d)*_:_<.5?l:_<2/3?d+(l-d)*(2/3-_)*6:d},hsl2rgb:function(d,l){var _=d.h,y=d.s,w=d.l;if(!y)return 2.55*w;_/=360,y/=100;var T=(w/=100)<.5?w*(1+y):w+y-w*y,A=2*w-T;switch(l){case"r":return 255*s.hue2rgb(A,T,_+1/3);case"g":return 255*s.hue2rgb(A,T,_);case"b":return 255*s.hue2rgb(A,T,_-1/3)}},rgb2hsl:function(d,l){var _=d.r,y=d.g,w=d.b;_/=255,y/=255,w/=255;var T=Math.max(_,y,w),A=Math.min(_,y,w),L=(T+A)/2;if(l==="l")return 100*L;if(T===A)return 0;var N=T-A;if(l==="s")return 100*(L>.5?N/(2-T-A):N/(T+A));switch(T){case _:return 60*((y-w)/N+(y<w?6:0));case y:return 60*((w-_)/N+2);case w:return 60*((_-y)/N+4);default:return-1}}};h.default=s},1083:(a,h,s)=>{Object.defineProperty(h,"__esModule",{value:!0});var d=s(7994),l=s(4027),_=s(318),y={channel:d.default,lang:l.default,unit:_.default};h.default=y},4027:(a,h)=>{Object.defineProperty(h,"__esModule",{value:!0});var s={clamp:function(d,l,_){return l>_?Math.min(l,Math.max(_,d)):Math.min(_,Math.max(l,d))},round:function(d){return Math.round(1e10*d)/1e10}};h.default=s},318:(a,h)=>{Object.defineProperty(h,"__esModule",{value:!0});var s={dec2hex:function(d){var l=Math.round(d).toString(16);return l.length>1?l:"0"+l}};h.default=s},8552:(a,h,s)=>{var d=s(852)(s(5639),"DataView");a.exports=d},1989:(a,h,s)=>{var d=s(1789),l=s(401),_=s(7667),y=s(1327),w=s(1866);function T(A){var L=-1,N=A==null?0:A.length;for(this.clear();++L<N;){var P=A[L];this.set(P[0],P[1])}}T.prototype.clear=d,T.prototype.delete=l,T.prototype.get=_,T.prototype.has=y,T.prototype.set=w,a.exports=T},8407:(a,h,s)=>{var d=s(7040),l=s(1362),_=s(2117),y=s(7518),w=s(4705);function T(A){var L=-1,N=A==null?0:A.length;for(this.clear();++L<N;){var P=A[L];this.set(P[0],P[1])}}T.prototype.clear=d,T.prototype.delete=l,T.prototype.get=_,T.prototype.has=y,T.prototype.set=w,a.exports=T},7071:(a,h,s)=>{var d=s(852)(s(5639),"Map");a.exports=d},3369:(a,h,s)=>{var d=s(4785),l=s(1285),_=s(6e3),y=s(9916),w=s(5265);function T(A){var L=-1,N=A==null?0:A.length;for(this.clear();++L<N;){var P=A[L];this.set(P[0],P[1])}}T.prototype.clear=d,T.prototype.delete=l,T.prototype.get=_,T.prototype.has=y,T.prototype.set=w,a.exports=T},3818:(a,h,s)=>{var d=s(852)(s(5639),"Promise");a.exports=d},8525:(a,h,s)=>{var d=s(852)(s(5639),"Set");a.exports=d},8668:(a,h,s)=>{var d=s(3369),l=s(619),_=s(2385);function y(w){var T=-1,A=w==null?0:w.length;for(this.__data__=new d;++T<A;)this.add(w[T])}y.prototype.add=y.prototype.push=l,y.prototype.has=_,a.exports=y},6384:(a,h,s)=>{var d=s(8407),l=s(7465),_=s(3779),y=s(7599),w=s(4758),T=s(4309);function A(L){var N=this.__data__=new d(L);this.size=N.size}A.prototype.clear=l,A.prototype.delete=_,A.prototype.get=y,A.prototype.has=w,A.prototype.set=T,a.exports=A},2705:(a,h,s)=>{var d=s(5639).Symbol;a.exports=d},1149:(a,h,s)=>{var d=s(5639).Uint8Array;a.exports=d},577:(a,h,s)=>{var d=s(852)(s(5639),"WeakMap");a.exports=d},6874:a=>{a.exports=function(h,s,d){switch(d.length){case 0:return h.call(s);case 1:return h.call(s,d[0]);case 2:return h.call(s,d[0],d[1]);case 3:return h.call(s,d[0],d[1],d[2])}return h.apply(s,d)}},7412:a=>{a.exports=function(h,s){for(var d=-1,l=h==null?0:h.length;++d<l&&s(h[d],d,h)!==!1;);return h}},4963:a=>{a.exports=function(h,s){for(var d=-1,l=h==null?0:h.length,_=0,y=[];++d<l;){var w=h[d];s(w,d,h)&&(y[_++]=w)}return y}},7443:(a,h,s)=>{var d=s(2118);a.exports=function(l,_){return!(l==null||!l.length)&&d(l,_,0)>-1}},1196:a=>{a.exports=function(h,s,d){for(var l=-1,_=h==null?0:h.length;++l<_;)if(d(s,h[l]))return!0;return!1}},4636:(a,h,s)=>{var d=s(2545),l=s(5694),_=s(1469),y=s(4144),w=s(5776),T=s(6719),A=Object.prototype.hasOwnProperty;a.exports=function(L,N){var P=_(L),W=!P&&l(L),H=!P&&!W&&y(L),V=!P&&!W&&!H&&T(L),X=P||W||H||V,J=X?d(L.length,String):[],ht=J.length;for(var tt in L)!N&&!A.call(L,tt)||X&&(tt=="length"||H&&(tt=="offset"||tt=="parent")||V&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||w(tt,ht))||J.push(tt);return J}},9932:a=>{a.exports=function(h,s){for(var d=-1,l=h==null?0:h.length,_=Array(l);++d<l;)_[d]=s(h[d],d,h);return _}},2488:a=>{a.exports=function(h,s){for(var d=-1,l=s.length,_=h.length;++d<l;)h[_+d]=s[d];return h}},2663:a=>{a.exports=function(h,s,d,l){var _=-1,y=h==null?0:h.length;for(l&&y&&(d=h[++_]);++_<y;)d=s(d,h[_],_,h);return d}},2908:a=>{a.exports=function(h,s){for(var d=-1,l=h==null?0:h.length;++d<l;)if(s(h[d],d,h))return!0;return!1}},8983:(a,h,s)=>{var d=s(371)("length");a.exports=d},6556:(a,h,s)=>{var d=s(9465),l=s(7813);a.exports=function(_,y,w){(w!==void 0&&!l(_[y],w)||w===void 0&&!(y in _))&&d(_,y,w)}},4865:(a,h,s)=>{var d=s(9465),l=s(7813),_=Object.prototype.hasOwnProperty;a.exports=function(y,w,T){var A=y[w];_.call(y,w)&&l(A,T)&&(T!==void 0||w in y)||d(y,w,T)}},8470:(a,h,s)=>{var d=s(7813);a.exports=function(l,_){for(var y=l.length;y--;)if(d(l[y][0],_))return y;return-1}},4037:(a,h,s)=>{var d=s(8363),l=s(3674);a.exports=function(_,y){return _&&d(y,l(y),_)}},3886:(a,h,s)=>{var d=s(8363),l=s(1704);a.exports=function(_,y){return _&&d(y,l(y),_)}},9465:(a,h,s)=>{var d=s(8777);a.exports=function(l,_,y){_=="__proto__"&&d?d(l,_,{configurable:!0,enumerable:!0,value:y,writable:!0}):l[_]=y}},5990:(a,h,s)=>{var d=s(6384),l=s(7412),_=s(4865),y=s(4037),w=s(3886),T=s(4626),A=s(278),L=s(8805),N=s(1911),P=s(8234),W=s(6904),H=s(4160),V=s(3824),X=s(9148),J=s(8517),ht=s(1469),tt=s(4144),kt=s(6688),gt=s(3218),ft=s(2928),et=s(3674),K=s(1704),dt="[object Arguments]",Ot="[object Function]",Tt="[object Object]",lt={};lt[dt]=lt["[object Array]"]=lt["[object ArrayBuffer]"]=lt["[object DataView]"]=lt["[object Boolean]"]=lt["[object Date]"]=lt["[object Float32Array]"]=lt["[object Float64Array]"]=lt["[object Int8Array]"]=lt["[object Int16Array]"]=lt["[object Int32Array]"]=lt["[object Map]"]=lt["[object Number]"]=lt[Tt]=lt["[object RegExp]"]=lt["[object Set]"]=lt["[object String]"]=lt["[object Symbol]"]=lt["[object Uint8Array]"]=lt["[object Uint8ClampedArray]"]=lt["[object Uint16Array]"]=lt["[object Uint32Array]"]=!0,lt["[object Error]"]=lt[Ot]=lt["[object WeakMap]"]=!1,a.exports=function It(Ft,ue,ye,de,le,Nt){var jt,Kt=1&ue,pe=2&ue,ge=4&ue;if(ye&&(jt=le?ye(Ft,de,le,Nt):ye(Ft)),jt!==void 0)return jt;if(!gt(Ft))return Ft;var Pt=ht(Ft);if(Pt){if(jt=V(Ft),!Kt)return A(Ft,jt)}else{var ze=H(Ft),Qt=ze==Ot||ze=="[object GeneratorFunction]";if(tt(Ft))return T(Ft,Kt);if(ze==Tt||ze==dt||Qt&&!le){if(jt=pe||Qt?{}:J(Ft),!Kt)return pe?N(Ft,w(jt,Ft)):L(Ft,y(jt,Ft))}else{if(!lt[ze])return le?Ft:{};jt=X(Ft,ze,Kt)}}Nt||(Nt=new d);var zt=Nt.get(Ft);if(zt)return zt;Nt.set(Ft,jt),ft(Ft)?Ft.forEach(function(rt){jt.add(It(rt,ue,ye,rt,Ft,Nt))}):kt(Ft)&&Ft.forEach(function(rt,ae){jt.set(ae,It(rt,ue,ye,ae,Ft,Nt))});var Zt=Pt?void 0:(ge?pe?W:P:pe?K:et)(Ft);return l(Zt||Ft,function(rt,ae){Zt&&(rt=Ft[ae=rt]),_(jt,ae,It(rt,ue,ye,ae,Ft,Nt))}),jt}},3118:(a,h,s)=>{var d=s(3218),l=Object.create,_=function(){function y(){}return function(w){if(!d(w))return{};if(l)return l(w);y.prototype=w;var T=new y;return y.prototype=void 0,T}}();a.exports=_},9881:(a,h,s)=>{var d=s(7816),l=s(9291)(d);a.exports=l},6029:(a,h,s)=>{var d=s(3448);a.exports=function(l,_,y){for(var w=-1,T=l.length;++w<T;){var A=l[w],L=_(A);if(L!=null&&(N===void 0?L==L&&!d(L):y(L,N)))var N=L,P=A}return P}},760:(a,h,s)=>{var d=s(9881);a.exports=function(l,_){var y=[];return d(l,function(w,T,A){_(w,T,A)&&y.push(w)}),y}},1848:a=>{a.exports=function(h,s,d,l){for(var _=h.length,y=d+(l?1:-1);l?y--:++y<_;)if(s(h[y],y,h))return y;return-1}},1078:(a,h,s)=>{var d=s(2488),l=s(7285);a.exports=function _(y,w,T,A,L){var N=-1,P=y.length;for(T||(T=l),L||(L=[]);++N<P;){var W=y[N];w>0&&T(W)?w>1?_(W,w-1,T,A,L):d(L,W):A||(L[L.length]=W)}return L}},8483:(a,h,s)=>{var d=s(5063)();a.exports=d},7816:(a,h,s)=>{var d=s(8483),l=s(3674);a.exports=function(_,y){return _&&d(_,y,l)}},7786:(a,h,s)=>{var d=s(1811),l=s(327);a.exports=function(_,y){for(var w=0,T=(y=d(y,_)).length;_!=null&&w<T;)_=_[l(y[w++])];return w&&w==T?_:void 0}},8866:(a,h,s)=>{var d=s(2488),l=s(1469);a.exports=function(_,y,w){var T=y(_);return l(_)?T:d(T,w(_))}},4239:(a,h,s)=>{var d=s(2705),l=s(9607),_=s(2333),y=d?d.toStringTag:void 0;a.exports=function(w){return w==null?w===void 0?"[object Undefined]":"[object Null]":y&&y in Object(w)?l(w):_(w)}},3325:a=>{a.exports=function(h,s){return h>s}},8565:a=>{var h=Object.prototype.hasOwnProperty;a.exports=function(s,d){return s!=null&&h.call(s,d)}},13:a=>{a.exports=function(h,s){return h!=null&&s in Object(h)}},2118:(a,h,s)=>{var d=s(1848),l=s(2722),_=s(2351);a.exports=function(y,w,T){return w==w?_(y,w,T):d(y,l,T)}},9454:(a,h,s)=>{var d=s(4239),l=s(7005);a.exports=function(_){return l(_)&&d(_)=="[object Arguments]"}},939:(a,h,s)=>{var d=s(2492),l=s(7005);a.exports=function _(y,w,T,A,L){return y===w||(y==null||w==null||!l(y)&&!l(w)?y!=y&&w!=w:d(y,w,T,A,_,L))}},2492:(a,h,s)=>{var d=s(6384),l=s(7114),_=s(8351),y=s(6096),w=s(4160),T=s(1469),A=s(4144),L=s(6719),N="[object Arguments]",P="[object Array]",W="[object Object]",H=Object.prototype.hasOwnProperty;a.exports=function(V,X,J,ht,tt,kt){var gt=T(V),ft=T(X),et=gt?P:w(V),K=ft?P:w(X),dt=(et=et==N?W:et)==W,Ot=(K=K==N?W:K)==W,Tt=et==K;if(Tt&&A(V)){if(!A(X))return!1;gt=!0,dt=!1}if(Tt&&!dt)return kt||(kt=new d),gt||L(V)?l(V,X,J,ht,tt,kt):_(V,X,et,J,ht,tt,kt);if(!(1&J)){var lt=dt&&H.call(V,"__wrapped__"),It=Ot&&H.call(X,"__wrapped__");if(lt||It){var Ft=lt?V.value():V,ue=It?X.value():X;return kt||(kt=new d),tt(Ft,ue,J,ht,kt)}}return!!Tt&&(kt||(kt=new d),y(V,X,J,ht,tt,kt))}},5588:(a,h,s)=>{var d=s(4160),l=s(7005);a.exports=function(_){return l(_)&&d(_)=="[object Map]"}},2958:(a,h,s)=>{var d=s(6384),l=s(939);a.exports=function(_,y,w,T){var A=w.length,L=A,N=!T;if(_==null)return!L;for(_=Object(_);A--;){var P=w[A];if(N&&P[2]?P[1]!==_[P[0]]:!(P[0]in _))return!1}for(;++A<L;){var W=(P=w[A])[0],H=_[W],V=P[1];if(N&&P[2]){if(H===void 0&&!(W in _))return!1}else{var X=new d;if(T)var J=T(H,V,W,_,y,X);if(!(J===void 0?l(V,H,3,T,X):J))return!1}}return!0}},2722:a=>{a.exports=function(h){return h!=h}},8458:(a,h,s)=>{var d=s(3560),l=s(5346),_=s(3218),y=s(346),w=/^\[object .+?Constructor\]$/,T=Function.prototype,A=Object.prototype,L=T.toString,N=A.hasOwnProperty,P=RegExp("^"+L.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a.exports=function(W){return!(!_(W)||l(W))&&(d(W)?P:w).test(y(W))}},9221:(a,h,s)=>{var d=s(4160),l=s(7005);a.exports=function(_){return l(_)&&d(_)=="[object Set]"}},8749:(a,h,s)=>{var d=s(4239),l=s(1780),_=s(7005),y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y["[object Arguments]"]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y["[object Map]"]=y["[object Number]"]=y["[object Object]"]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1,a.exports=function(w){return _(w)&&l(w.length)&&!!y[d(w)]}},7206:(a,h,s)=>{var d=s(1573),l=s(6432),_=s(6557),y=s(1469),w=s(9601);a.exports=function(T){return typeof T=="function"?T:T==null?_:typeof T=="object"?y(T)?l(T[0],T[1]):d(T):w(T)}},280:(a,h,s)=>{var d=s(5726),l=s(6916),_=Object.prototype.hasOwnProperty;a.exports=function(y){if(!d(y))return l(y);var w=[];for(var T in Object(y))_.call(y,T)&&T!="constructor"&&w.push(T);return w}},313:(a,h,s)=>{var d=s(3218),l=s(5726),_=s(3498),y=Object.prototype.hasOwnProperty;a.exports=function(w){if(!d(w))return _(w);var T=l(w),A=[];for(var L in w)(L!="constructor"||!T&&y.call(w,L))&&A.push(L);return A}},433:a=>{a.exports=function(h,s){return h<s}},9199:(a,h,s)=>{var d=s(9881),l=s(8612);a.exports=function(_,y){var w=-1,T=l(_)?Array(_.length):[];return d(_,function(A,L,N){T[++w]=y(A,L,N)}),T}},1573:(a,h,s)=>{var d=s(2958),l=s(1499),_=s(2634);a.exports=function(y){var w=l(y);return w.length==1&&w[0][2]?_(w[0][0],w[0][1]):function(T){return T===y||d(T,y,w)}}},6432:(a,h,s)=>{var d=s(939),l=s(1917),_=s(9095),y=s(1378),w=s(9162),T=s(2634),A=s(327);a.exports=function(L,N){return y(L)&&w(N)?T(A(L),N):function(P){var W=l(P,L);return W===void 0&&W===N?_(P,L):d(N,W,3)}}},2980:(a,h,s)=>{var d=s(6384),l=s(6556),_=s(8483),y=s(9783),w=s(3218),T=s(1704),A=s(6390);a.exports=function L(N,P,W,H,V){N!==P&&_(P,function(X,J){if(V||(V=new d),w(X))y(N,P,J,W,L,H,V);else{var ht=H?H(A(N,J),X,J+"",N,P,V):void 0;ht===void 0&&(ht=X),l(N,J,ht)}},T)}},9783:(a,h,s)=>{var d=s(6556),l=s(4626),_=s(7133),y=s(278),w=s(8517),T=s(5694),A=s(1469),L=s(9246),N=s(4144),P=s(3560),W=s(3218),H=s(8630),V=s(6719),X=s(6390),J=s(3678);a.exports=function(ht,tt,kt,gt,ft,et,K){var dt=X(ht,kt),Ot=X(tt,kt),Tt=K.get(Ot);if(Tt)d(ht,kt,Tt);else{var lt=et?et(dt,Ot,kt+"",ht,tt,K):void 0,It=lt===void 0;if(It){var Ft=A(Ot),ue=!Ft&&N(Ot),ye=!Ft&&!ue&&V(Ot);lt=Ot,Ft||ue||ye?A(dt)?lt=dt:L(dt)?lt=y(dt):ue?(It=!1,lt=l(Ot,!0)):ye?(It=!1,lt=_(Ot,!0)):lt=[]:H(Ot)||T(Ot)?(lt=dt,T(dt)?lt=J(dt):W(dt)&&!P(dt)||(lt=w(Ot))):It=!1}It&&(K.set(Ot,lt),ft(lt,Ot,gt,et,K),K.delete(Ot)),d(ht,kt,lt)}}},9556:(a,h,s)=>{var d=s(9932),l=s(7786),_=s(7206),y=s(9199),w=s(1131),T=s(1717),A=s(5022),L=s(6557),N=s(1469);a.exports=function(P,W,H){W=W.length?d(W,function(J){return N(J)?function(ht){return l(ht,J.length===1?J[0]:J)}:J}):[L];var V=-1;W=d(W,T(_));var X=y(P,function(J,ht,tt){return{criteria:d(W,function(kt){return kt(J)}),index:++V,value:J}});return w(X,function(J,ht){return A(J,ht,H)})}},5970:(a,h,s)=>{var d=s(3012),l=s(9095);a.exports=function(_,y){return d(_,y,function(w,T){return l(_,T)})}},3012:(a,h,s)=>{var d=s(7786),l=s(611),_=s(1811);a.exports=function(y,w,T){for(var A=-1,L=w.length,N={};++A<L;){var P=w[A],W=d(y,P);T(W,P)&&l(N,_(P,y),W)}return N}},371:a=>{a.exports=function(h){return function(s){return s==null?void 0:s[h]}}},9152:(a,h,s)=>{var d=s(7786);a.exports=function(l){return function(_){return d(_,l)}}},98:a=>{var h=Math.ceil,s=Math.max;a.exports=function(d,l,_,y){for(var w=-1,T=s(h((l-d)/(_||1)),0),A=Array(T);T--;)A[y?T:++w]=d,d+=_;return A}},107:a=>{a.exports=function(h,s,d,l,_){return _(h,function(y,w,T){d=l?(l=!1,y):s(d,y,w,T)}),d}},5976:(a,h,s)=>{var d=s(6557),l=s(5357),_=s(61);a.exports=function(y,w){return _(l(y,w,d),y+"")}},611:(a,h,s)=>{var d=s(4865),l=s(1811),_=s(5776),y=s(3218),w=s(327);a.exports=function(T,A,L,N){if(!y(T))return T;for(var P=-1,W=(A=l(A,T)).length,H=W-1,V=T;V!=null&&++P<W;){var X=w(A[P]),J=L;if(X==="__proto__"||X==="constructor"||X==="prototype")return T;if(P!=H){var ht=V[X];(J=N?N(ht,X,V):void 0)===void 0&&(J=y(ht)?ht:_(A[P+1])?[]:{})}d(V,X,J),V=V[X]}return T}},6560:(a,h,s)=>{var d=s(5703),l=s(8777),_=s(6557),y=l?function(w,T){return l(w,"toString",{configurable:!0,enumerable:!1,value:d(T),writable:!0})}:_;a.exports=y},1131:a=>{a.exports=function(h,s){var d=h.length;for(h.sort(s);d--;)h[d]=h[d].value;return h}},2545:a=>{a.exports=function(h,s){for(var d=-1,l=Array(h);++d<h;)l[d]=s(d);return l}},531:(a,h,s)=>{var d=s(2705),l=s(9932),_=s(1469),y=s(3448),w=d?d.prototype:void 0,T=w?w.toString:void 0;a.exports=function A(L){if(typeof L=="string")return L;if(_(L))return l(L,A)+"";if(y(L))return T?T.call(L):"";var N=L+"";return N=="0"&&1/L==-1/0?"-0":N}},7561:(a,h,s)=>{var d=s(7990),l=/^\s+/;a.exports=function(_){return _&&_.slice(0,d(_)+1).replace(l,"")}},1717:a=>{a.exports=function(h){return function(s){return h(s)}}},5652:(a,h,s)=>{var d=s(8668),l=s(7443),_=s(1196),y=s(4757),w=s(3593),T=s(1814);a.exports=function(A,L,N){var P=-1,W=l,H=A.length,V=!0,X=[],J=X;if(N)V=!1,W=_;else if(H>=200){var ht=L?null:w(A);if(ht)return T(ht);V=!1,W=y,J=new d}else J=L?[]:X;t:for(;++P<H;){var tt=A[P],kt=L?L(tt):tt;if(tt=N||tt!==0?tt:0,V&&kt==kt){for(var gt=J.length;gt--;)if(J[gt]===kt)continue t;L&&J.push(kt),X.push(tt)}else W(J,kt,N)||(J!==X&&J.push(kt),X.push(tt))}return X}},7415:(a,h,s)=>{var d=s(9932);a.exports=function(l,_){return d(_,function(y){return l[y]})}},1757:a=>{a.exports=function(h,s,d){for(var l=-1,_=h.length,y=s.length,w={};++l<_;){var T=l<y?s[l]:void 0;d(w,h[l],T)}return w}},4757:a=>{a.exports=function(h,s){return h.has(s)}},4290:(a,h,s)=>{var d=s(6557);a.exports=function(l){return typeof l=="function"?l:d}},1811:(a,h,s)=>{var d=s(1469),l=s(1378),_=s(5514),y=s(9833);a.exports=function(w,T){return d(w)?w:l(w,T)?[w]:_(y(w))}},4318:(a,h,s)=>{var d=s(1149);a.exports=function(l){var _=new l.constructor(l.byteLength);return new d(_).set(new d(l)),_}},4626:(a,h,s)=>{a=s.nmd(a);var d=s(5639),l=h&&!h.nodeType&&h,_=l&&a&&!a.nodeType&&a,y=_&&_.exports===l?d.Buffer:void 0,w=y?y.allocUnsafe:void 0;a.exports=function(T,A){if(A)return T.slice();var L=T.length,N=w?w(L):new T.constructor(L);return T.copy(N),N}},7157:(a,h,s)=>{var d=s(4318);a.exports=function(l,_){var y=_?d(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.byteLength)}},3147:a=>{var h=/\w*$/;a.exports=function(s){var d=new s.constructor(s.source,h.exec(s));return d.lastIndex=s.lastIndex,d}},419:(a,h,s)=>{var d=s(2705),l=d?d.prototype:void 0,_=l?l.valueOf:void 0;a.exports=function(y){return _?Object(_.call(y)):{}}},7133:(a,h,s)=>{var d=s(4318);a.exports=function(l,_){var y=_?d(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.length)}},6393:(a,h,s)=>{var d=s(3448);a.exports=function(l,_){if(l!==_){var y=l!==void 0,w=l===null,T=l==l,A=d(l),L=_!==void 0,N=_===null,P=_==_,W=d(_);if(!N&&!W&&!A&&l>_||A&&L&&P&&!N&&!W||w&&L&&P||!y&&P||!T)return 1;if(!w&&!A&&!W&&l<_||W&&y&&T&&!w&&!A||N&&y&&T||!L&&T||!P)return-1}return 0}},5022:(a,h,s)=>{var d=s(6393);a.exports=function(l,_,y){for(var w=-1,T=l.criteria,A=_.criteria,L=T.length,N=y.length;++w<L;){var P=d(T[w],A[w]);if(P)return w>=N?P:P*(y[w]=="desc"?-1:1)}return l.index-_.index}},278:a=>{a.exports=function(h,s){var d=-1,l=h.length;for(s||(s=Array(l));++d<l;)s[d]=h[d];return s}},8363:(a,h,s)=>{var d=s(4865),l=s(9465);a.exports=function(_,y,w,T){var A=!w;w||(w={});for(var L=-1,N=y.length;++L<N;){var P=y[L],W=T?T(w[P],_[P],P,w,_):void 0;W===void 0&&(W=_[P]),A?l(w,P,W):d(w,P,W)}return w}},8805:(a,h,s)=>{var d=s(8363),l=s(9551);a.exports=function(_,y){return d(_,l(_),y)}},1911:(a,h,s)=>{var d=s(8363),l=s(1442);a.exports=function(_,y){return d(_,l(_),y)}},4429:(a,h,s)=>{var d=s(5639)["__core-js_shared__"];a.exports=d},1750:(a,h,s)=>{var d=s(5976),l=s(6612);a.exports=function(_){return d(function(y,w){var T=-1,A=w.length,L=A>1?w[A-1]:void 0,N=A>2?w[2]:void 0;for(L=_.length>3&&typeof L=="function"?(A--,L):void 0,N&&l(w[0],w[1],N)&&(L=A<3?void 0:L,A=1),y=Object(y);++T<A;){var P=w[T];P&&_(y,P,T,L)}return y})}},9291:(a,h,s)=>{var d=s(8612);a.exports=function(l,_){return function(y,w){if(y==null)return y;if(!d(y))return l(y,w);for(var T=y.length,A=_?T:-1,L=Object(y);(_?A--:++A<T)&&w(L[A],A,L)!==!1;);return y}}},5063:a=>{a.exports=function(h){return function(s,d,l){for(var _=-1,y=Object(s),w=l(s),T=w.length;T--;){var A=w[h?T:++_];if(d(y[A],A,y)===!1)break}return s}}},7740:(a,h,s)=>{var d=s(7206),l=s(8612),_=s(3674);a.exports=function(y){return function(w,T,A){var L=Object(w);if(!l(w)){var N=d(T,3);w=_(w),T=function(W){return N(L[W],W,L)}}var P=y(w,T,A);return P>-1?L[N?w[P]:P]:void 0}}},7445:(a,h,s)=>{var d=s(98),l=s(6612),_=s(8601);a.exports=function(y){return function(w,T,A){return A&&typeof A!="number"&&l(w,T,A)&&(T=A=void 0),w=_(w),T===void 0?(T=w,w=0):T=_(T),A=A===void 0?w<T?1:-1:_(A),d(w,T,A,y)}}},3593:(a,h,s)=>{var d=s(8525),l=s(308),_=s(1814),y=d&&1/_(new d([,-0]))[1]==1/0?function(w){return new d(w)}:l;a.exports=y},8777:(a,h,s)=>{var d=s(852),l=function(){try{var _=d(Object,"defineProperty");return _({},"",{}),_}catch(y){}}();a.exports=l},7114:(a,h,s)=>{var d=s(8668),l=s(2908),_=s(4757);a.exports=function(y,w,T,A,L,N){var P=1&T,W=y.length,H=w.length;if(W!=H&&!(P&&H>W))return!1;var V=N.get(y),X=N.get(w);if(V&&X)return V==w&&X==y;var J=-1,ht=!0,tt=2&T?new d:void 0;for(N.set(y,w),N.set(w,y);++J<W;){var kt=y[J],gt=w[J];if(A)var ft=P?A(gt,kt,J,w,y,N):A(kt,gt,J,y,w,N);if(ft!==void 0){if(ft)continue;ht=!1;break}if(tt){if(!l(w,function(et,K){if(!_(tt,K)&&(kt===et||L(kt,et,T,A,N)))return tt.push(K)})){ht=!1;break}}else if(kt!==gt&&!L(kt,gt,T,A,N)){ht=!1;break}}return N.delete(y),N.delete(w),ht}},8351:(a,h,s)=>{var d=s(2705),l=s(1149),_=s(7813),y=s(7114),w=s(8776),T=s(1814),A=d?d.prototype:void 0,L=A?A.valueOf:void 0;a.exports=function(N,P,W,H,V,X,J){switch(W){case"[object DataView]":if(N.byteLength!=P.byteLength||N.byteOffset!=P.byteOffset)return!1;N=N.buffer,P=P.buffer;case"[object ArrayBuffer]":return!(N.byteLength!=P.byteLength||!X(new l(N),new l(P)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+N,+P);case"[object Error]":return N.name==P.name&&N.message==P.message;case"[object RegExp]":case"[object String]":return N==P+"";case"[object Map]":var ht=w;case"[object Set]":var tt=1&H;if(ht||(ht=T),N.size!=P.size&&!tt)return!1;var kt=J.get(N);if(kt)return kt==P;H|=2,J.set(N,P);var gt=y(ht(N),ht(P),H,V,X,J);return J.delete(N),gt;case"[object Symbol]":if(L)return L.call(N)==L.call(P)}return!1}},6096:(a,h,s)=>{var d=s(8234),l=Object.prototype.hasOwnProperty;a.exports=function(_,y,w,T,A,L){var N=1&w,P=d(_),W=P.length;if(W!=d(y).length&&!N)return!1;for(var H=W;H--;){var V=P[H];if(!(N?V in y:l.call(y,V)))return!1}var X=L.get(_),J=L.get(y);if(X&&J)return X==y&&J==_;var ht=!0;L.set(_,y),L.set(y,_);for(var tt=N;++H<W;){var kt=_[V=P[H]],gt=y[V];if(T)var ft=N?T(gt,kt,V,y,_,L):T(kt,gt,V,_,y,L);if(!(ft===void 0?kt===gt||A(kt,gt,w,T,L):ft)){ht=!1;break}tt||(tt=V=="constructor")}if(ht&&!tt){var et=_.constructor,K=y.constructor;et==K||!("constructor"in _)||!("constructor"in y)||typeof et=="function"&&et instanceof et&&typeof K=="function"&&K instanceof K||(ht=!1)}return L.delete(_),L.delete(y),ht}},9021:(a,h,s)=>{var d=s(5564),l=s(5357),_=s(61);a.exports=function(y){return _(l(y,void 0,d),y+"")}},1957:(a,h,s)=>{var d=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g;a.exports=d},8234:(a,h,s)=>{var d=s(8866),l=s(9551),_=s(3674);a.exports=function(y){return d(y,_,l)}},6904:(a,h,s)=>{var d=s(8866),l=s(1442),_=s(1704);a.exports=function(y){return d(y,_,l)}},5050:(a,h,s)=>{var d=s(7019);a.exports=function(l,_){var y=l.__data__;return d(_)?y[typeof _=="string"?"string":"hash"]:y.map}},1499:(a,h,s)=>{var d=s(9162),l=s(3674);a.exports=function(_){for(var y=l(_),w=y.length;w--;){var T=y[w],A=_[T];y[w]=[T,A,d(A)]}return y}},852:(a,h,s)=>{var d=s(8458),l=s(7801);a.exports=function(_,y){var w=l(_,y);return d(w)?w:void 0}},5924:(a,h,s)=>{var d=s(5569)(Object.getPrototypeOf,Object);a.exports=d},9607:(a,h,s)=>{var d=s(2705),l=Object.prototype,_=l.hasOwnProperty,y=l.toString,w=d?d.toStringTag:void 0;a.exports=function(T){var A=_.call(T,w),L=T[w];try{T[w]=void 0;var N=!0}catch(W){}var P=y.call(T);return N&&(A?T[w]=L:delete T[w]),P}},9551:(a,h,s)=>{var d=s(4963),l=s(479),_=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,w=y?function(T){return T==null?[]:(T=Object(T),d(y(T),function(A){return _.call(T,A)}))}:l;a.exports=w},1442:(a,h,s)=>{var d=s(2488),l=s(5924),_=s(9551),y=s(479),w=Object.getOwnPropertySymbols?function(T){for(var A=[];T;)d(A,_(T)),T=l(T);return A}:y;a.exports=w},4160:(a,h,s)=>{var d=s(8552),l=s(7071),_=s(3818),y=s(8525),w=s(577),T=s(4239),A=s(346),L="[object Map]",N="[object Promise]",P="[object Set]",W="[object WeakMap]",H="[object DataView]",V=A(d),X=A(l),J=A(_),ht=A(y),tt=A(w),kt=T;(d&&kt(new d(new ArrayBuffer(1)))!=H||l&&kt(new l)!=L||_&&kt(_.resolve())!=N||y&&kt(new y)!=P||w&&kt(new w)!=W)&&(kt=function(gt){var ft=T(gt),et=ft=="[object Object]"?gt.constructor:void 0,K=et?A(et):"";if(K)switch(K){case V:return H;case X:return L;case J:return N;case ht:return P;case tt:return W}return ft}),a.exports=kt},7801:a=>{a.exports=function(h,s){return h==null?void 0:h[s]}},222:(a,h,s)=>{var d=s(1811),l=s(5694),_=s(1469),y=s(5776),w=s(1780),T=s(327);a.exports=function(A,L,N){for(var P=-1,W=(L=d(L,A)).length,H=!1;++P<W;){var V=T(L[P]);if(!(H=A!=null&&N(A,V)))break;A=A[V]}return H||++P!=W?H:!!(W=A==null?0:A.length)&&w(W)&&y(V,W)&&(_(A)||l(A))}},2689:a=>{var h=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");a.exports=function(s){return h.test(s)}},1789:(a,h,s)=>{var d=s(4536);a.exports=function(){this.__data__=d?d(null):{},this.size=0}},401:a=>{a.exports=function(h){var s=this.has(h)&&delete this.__data__[h];return this.size-=s?1:0,s}},7667:(a,h,s)=>{var d=s(4536),l=Object.prototype.hasOwnProperty;a.exports=function(_){var y=this.__data__;if(d){var w=y[_];return w==="__lodash_hash_undefined__"?void 0:w}return l.call(y,_)?y[_]:void 0}},1327:(a,h,s)=>{var d=s(4536),l=Object.prototype.hasOwnProperty;a.exports=function(_){var y=this.__data__;return d?y[_]!==void 0:l.call(y,_)}},1866:(a,h,s)=>{var d=s(4536);a.exports=function(l,_){var y=this.__data__;return this.size+=this.has(l)?0:1,y[l]=d&&_===void 0?"__lodash_hash_undefined__":_,this}},3824:a=>{var h=Object.prototype.hasOwnProperty;a.exports=function(s){var d=s.length,l=new s.constructor(d);return d&&typeof s[0]=="string"&&h.call(s,"index")&&(l.index=s.index,l.input=s.input),l}},9148:(a,h,s)=>{var d=s(4318),l=s(7157),_=s(3147),y=s(419),w=s(7133);a.exports=function(T,A,L){var N=T.constructor;switch(A){case"[object ArrayBuffer]":return d(T);case"[object Boolean]":case"[object Date]":return new N(+T);case"[object DataView]":return l(T,L);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return w(T,L);case"[object Map]":return new N;case"[object Number]":case"[object String]":return new N(T);case"[object RegExp]":return _(T);case"[object Set]":return new N;case"[object Symbol]":return y(T)}}},8517:(a,h,s)=>{var d=s(3118),l=s(5924),_=s(5726);a.exports=function(y){return typeof y.constructor!="function"||_(y)?{}:d(l(y))}},7285:(a,h,s)=>{var d=s(2705),l=s(5694),_=s(1469),y=d?d.isConcatSpreadable:void 0;a.exports=function(w){return _(w)||l(w)||!!(y&&w&&w[y])}},5776:a=>{var h=/^(?:0|[1-9]\d*)$/;a.exports=function(s,d){var l=typeof s;return!!(d=d==null?9007199254740991:d)&&(l=="number"||l!="symbol"&&h.test(s))&&s>-1&&s%1==0&&s<d}},6612:(a,h,s)=>{var d=s(7813),l=s(8612),_=s(5776),y=s(3218);a.exports=function(w,T,A){if(!y(A))return!1;var L=typeof T;return!!(L=="number"?l(A)&&_(T,A.length):L=="string"&&T in A)&&d(A[T],w)}},1378:(a,h,s)=>{var d=s(1469),l=s(3448),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y=/^\w*$/;a.exports=function(w,T){if(d(w))return!1;var A=typeof w;return!(A!="number"&&A!="symbol"&&A!="boolean"&&w!=null&&!l(w))||y.test(w)||!_.test(w)||T!=null&&w in Object(T)}},7019:a=>{a.exports=function(h){var s=typeof h;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?h!=="__proto__":h===null}},5346:(a,h,s)=>{var d,l=s(4429),_=(d=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"";a.exports=function(y){return!!_&&_ in y}},5726:a=>{var h=Object.prototype;a.exports=function(s){var d=s&&s.constructor;return s===(typeof d=="function"&&d.prototype||h)}},9162:(a,h,s)=>{var d=s(3218);a.exports=function(l){return l==l&&!d(l)}},7040:a=>{a.exports=function(){this.__data__=[],this.size=0}},1362:(a,h,s)=>{var d=s(8470),l=Array.prototype.splice;a.exports=function(_){var y=this.__data__,w=d(y,_);return!(w<0||(w==y.length-1?y.pop():l.call(y,w,1),--this.size,0))}},2117:(a,h,s)=>{var d=s(8470);a.exports=function(l){var _=this.__data__,y=d(_,l);return y<0?void 0:_[y][1]}},7518:(a,h,s)=>{var d=s(8470);a.exports=function(l){return d(this.__data__,l)>-1}},4705:(a,h,s)=>{var d=s(8470);a.exports=function(l,_){var y=this.__data__,w=d(y,l);return w<0?(++this.size,y.push([l,_])):y[w][1]=_,this}},4785:(a,h,s)=>{var d=s(1989),l=s(8407),_=s(7071);a.exports=function(){this.size=0,this.__data__={hash:new d,map:new(_||l),string:new d}}},1285:(a,h,s)=>{var d=s(5050);a.exports=function(l){var _=d(this,l).delete(l);return this.size-=_?1:0,_}},6e3:(a,h,s)=>{var d=s(5050);a.exports=function(l){return d(this,l).get(l)}},9916:(a,h,s)=>{var d=s(5050);a.exports=function(l){return d(this,l).has(l)}},5265:(a,h,s)=>{var d=s(5050);a.exports=function(l,_){var y=d(this,l),w=y.size;return y.set(l,_),this.size+=y.size==w?0:1,this}},8776:a=>{a.exports=function(h){var s=-1,d=Array(h.size);return h.forEach(function(l,_){d[++s]=[_,l]}),d}},2634:a=>{a.exports=function(h,s){return function(d){return d!=null&&d[h]===s&&(s!==void 0||h in Object(d))}}},4523:(a,h,s)=>{var d=s(8306);a.exports=function(l){var _=d(l,function(w){return y.size===500&&y.clear(),w}),y=_.cache;return _}},4536:(a,h,s)=>{var d=s(852)(Object,"create");a.exports=d},6916:(a,h,s)=>{var d=s(5569)(Object.keys,Object);a.exports=d},3498:a=>{a.exports=function(h){var s=[];if(h!=null)for(var d in Object(h))s.push(d);return s}},1167:(a,h,s)=>{a=s.nmd(a);var d=s(1957),l=h&&!h.nodeType&&h,_=l&&a&&!a.nodeType&&a,y=_&&_.exports===l&&d.process,w=function(){try{return _&&_.require&&_.require("util").types||y&&y.binding&&y.binding("util")}catch(T){}}();a.exports=w},2333:a=>{var h=Object.prototype.toString;a.exports=function(s){return h.call(s)}},5569:a=>{a.exports=function(h,s){return function(d){return h(s(d))}}},5357:(a,h,s)=>{var d=s(6874),l=Math.max;a.exports=function(_,y,w){return y=l(y===void 0?_.length-1:y,0),function(){for(var T=arguments,A=-1,L=l(T.length-y,0),N=Array(L);++A<L;)N[A]=T[y+A];A=-1;for(var P=Array(y+1);++A<y;)P[A]=T[A];return P[y]=w(N),d(_,this,P)}}},5639:(a,h,s)=>{var d=s(1957),l=typeof self=="object"&&self&&self.Object===Object&&self,_=d||l||Function("return this")();a.exports=_},6390:a=>{a.exports=function(h,s){if((s!=="constructor"||typeof h[s]!="function")&&s!="__proto__")return h[s]}},619:a=>{a.exports=function(h){return this.__data__.set(h,"__lodash_hash_undefined__"),this}},2385:a=>{a.exports=function(h){return this.__data__.has(h)}},1814:a=>{a.exports=function(h){var s=-1,d=Array(h.size);return h.forEach(function(l){d[++s]=l}),d}},61:(a,h,s)=>{var d=s(6560),l=s(1275)(d);a.exports=l},1275:a=>{var h=Date.now;a.exports=function(s){var d=0,l=0;return function(){var _=h(),y=16-(_-l);if(l=_,y>0){if(++d>=800)return arguments[0]}else d=0;return s.apply(void 0,arguments)}}},7465:(a,h,s)=>{var d=s(8407);a.exports=function(){this.__data__=new d,this.size=0}},3779:a=>{a.exports=function(h){var s=this.__data__,d=s.delete(h);return this.size=s.size,d}},7599:a=>{a.exports=function(h){return this.__data__.get(h)}},4758:a=>{a.exports=function(h){return this.__data__.has(h)}},4309:(a,h,s)=>{var d=s(8407),l=s(7071),_=s(3369);a.exports=function(y,w){var T=this.__data__;if(T instanceof d){var A=T.__data__;if(!l||A.length<199)return A.push([y,w]),this.size=++T.size,this;T=this.__data__=new _(A)}return T.set(y,w),this.size=T.size,this}},2351:a=>{a.exports=function(h,s,d){for(var l=d-1,_=h.length;++l<_;)if(h[l]===s)return l;return-1}},8016:(a,h,s)=>{var d=s(8983),l=s(2689),_=s(1903);a.exports=function(y){return l(y)?_(y):d(y)}},5514:(a,h,s)=>{var d=s(4523),l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,y=d(function(w){var T=[];return w.charCodeAt(0)===46&&T.push(""),w.replace(l,function(A,L,N,P){T.push(N?P.replace(_,"$1"):L||A)}),T});a.exports=y},327:(a,h,s)=>{var d=s(3448);a.exports=function(l){if(typeof l=="string"||d(l))return l;var _=l+"";return _=="0"&&1/l==-1/0?"-0":_}},346:a=>{var h=Function.prototype.toString;a.exports=function(s){if(s!=null){try{return h.call(s)}catch(d){}try{return s+""}catch(d){}}return""}},7990:a=>{var h=/\s/;a.exports=function(s){for(var d=s.length;d--&&h.test(s.charAt(d)););return d}},1903:a=>{var h="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",s="\\ud83c[\\udffb-\\udfff]",d="[^\\ud800-\\udfff]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",y="(?:"+h+"|"+s+")?",w="[\\ufe0e\\ufe0f]?",T=w+y+"(?:\\u200d(?:"+[d,l,_].join("|")+")"+w+y+")*",A="(?:"+[d+h+"?",h,l,_,"[\\ud800-\\udfff]"].join("|")+")",L=RegExp(s+"(?="+s+")|"+A+T,"g");a.exports=function(N){for(var P=L.lastIndex=0;L.test(N);)++P;return P}},6678:(a,h,s)=>{var d=s(5990);a.exports=function(l){return d(l,4)}},361:(a,h,s)=>{var d=s(5990);a.exports=function(l){return d(l,5)}},5703:a=>{a.exports=function(h){return function(){return h}}},1747:(a,h,s)=>{var d=s(5976),l=s(7813),_=s(6612),y=s(1704),w=Object.prototype,T=w.hasOwnProperty,A=d(function(L,N){L=Object(L);var P=-1,W=N.length,H=W>2?N[2]:void 0;for(H&&_(N[0],N[1],H)&&(W=1);++P<W;)for(var V=N[P],X=y(V),J=-1,ht=X.length;++J<ht;){var tt=X[J],kt=L[tt];(kt===void 0||l(kt,w[tt])&&!T.call(L,tt))&&(L[tt]=V[tt])}return L});a.exports=A},6073:(a,h,s)=>{a.exports=s(4486)},7813:a=>{a.exports=function(h,s){return h===s||h!=h&&s!=s}},3105:(a,h,s)=>{var d=s(4963),l=s(760),_=s(7206),y=s(1469);a.exports=function(w,T){return(y(w)?d:l)(w,_(T,3))}},3311:(a,h,s)=>{var d=s(7740)(s(998));a.exports=d},998:(a,h,s)=>{var d=s(1848),l=s(7206),_=s(554),y=Math.max;a.exports=function(w,T,A){var L=w==null?0:w.length;if(!L)return-1;var N=A==null?0:_(A);return N<0&&(N=y(L+N,0)),d(w,l(T,3),N)}},5564:(a,h,s)=>{var d=s(1078);a.exports=function(l){return l!=null&&l.length?d(l,1):[]}},4486:(a,h,s)=>{var d=s(7412),l=s(9881),_=s(4290),y=s(1469);a.exports=function(w,T){return(y(w)?d:l)(w,_(T))}},2620:(a,h,s)=>{var d=s(8483),l=s(4290),_=s(1704);a.exports=function(y,w){return y==null?y:d(y,l(w),_)}},1917:(a,h,s)=>{var d=s(7786);a.exports=function(l,_,y){var w=l==null?void 0:d(l,_);return w===void 0?y:w}},8721:(a,h,s)=>{var d=s(8565),l=s(222);a.exports=function(_,y){return _!=null&&l(_,y,d)}},9095:(a,h,s)=>{var d=s(13),l=s(222);a.exports=function(_,y){return _!=null&&l(_,y,d)}},6557:a=>{a.exports=function(h){return h}},5694:(a,h,s)=>{var d=s(9454),l=s(7005),_=Object.prototype,y=_.hasOwnProperty,w=_.propertyIsEnumerable,T=d(function(){return arguments}())?d:function(A){return l(A)&&y.call(A,"callee")&&!w.call(A,"callee")};a.exports=T},1469:a=>{var h=Array.isArray;a.exports=h},8612:(a,h,s)=>{var d=s(3560),l=s(1780);a.exports=function(_){return _!=null&&l(_.length)&&!d(_)}},9246:(a,h,s)=>{var d=s(8612),l=s(7005);a.exports=function(_){return l(_)&&d(_)}},4144:(a,h,s)=>{a=s.nmd(a);var d=s(5639),l=s(5062),_=h&&!h.nodeType&&h,y=_&&a&&!a.nodeType&&a,w=y&&y.exports===_?d.Buffer:void 0,T=(w?w.isBuffer:void 0)||l;a.exports=T},1609:(a,h,s)=>{var d=s(280),l=s(4160),_=s(5694),y=s(1469),w=s(8612),T=s(4144),A=s(5726),L=s(6719),N=Object.prototype.hasOwnProperty;a.exports=function(P){if(P==null)return!0;if(w(P)&&(y(P)||typeof P=="string"||typeof P.splice=="function"||T(P)||L(P)||_(P)))return!P.length;var W=l(P);if(W=="[object Map]"||W=="[object Set]")return!P.size;if(A(P))return!d(P).length;for(var H in P)if(N.call(P,H))return!1;return!0}},3560:(a,h,s)=>{var d=s(4239),l=s(3218);a.exports=function(_){if(!l(_))return!1;var y=d(_);return y=="[object Function]"||y=="[object GeneratorFunction]"||y=="[object AsyncFunction]"||y=="[object Proxy]"}},1780:a=>{a.exports=function(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=9007199254740991}},6688:(a,h,s)=>{var d=s(5588),l=s(1717),_=s(1167),y=_&&_.isMap,w=y?l(y):d;a.exports=w},3218:a=>{a.exports=function(h){var s=typeof h;return h!=null&&(s=="object"||s=="function")}},7005:a=>{a.exports=function(h){return h!=null&&typeof h=="object"}},8630:(a,h,s)=>{var d=s(4239),l=s(5924),_=s(7005),y=Function.prototype,w=Object.prototype,T=y.toString,A=w.hasOwnProperty,L=T.call(Object);a.exports=function(N){if(!_(N)||d(N)!="[object Object]")return!1;var P=l(N);if(P===null)return!0;var W=A.call(P,"constructor")&&P.constructor;return typeof W=="function"&&W instanceof W&&T.call(W)==L}},2928:(a,h,s)=>{var d=s(9221),l=s(1717),_=s(1167),y=_&&_.isSet,w=y?l(y):d;a.exports=w},7037:(a,h,s)=>{var d=s(4239),l=s(1469),_=s(7005);a.exports=function(y){return typeof y=="string"||!l(y)&&_(y)&&d(y)=="[object String]"}},3448:(a,h,s)=>{var d=s(4239),l=s(7005);a.exports=function(_){return typeof _=="symbol"||l(_)&&d(_)=="[object Symbol]"}},6719:(a,h,s)=>{var d=s(8749),l=s(1717),_=s(1167),y=_&&_.isTypedArray,w=y?l(y):d;a.exports=w},2353:a=>{a.exports=function(h){return h===void 0}},3674:(a,h,s)=>{var d=s(4636),l=s(280),_=s(8612);a.exports=function(y){return _(y)?d(y):l(y)}},1704:(a,h,s)=>{var d=s(4636),l=s(313),_=s(8612);a.exports=function(y){return _(y)?d(y,!0):l(y)}},928:a=>{a.exports=function(h){var s=h==null?0:h.length;return s?h[s-1]:void 0}},5161:(a,h,s)=>{var d=s(9932),l=s(7206),_=s(9199),y=s(1469);a.exports=function(w,T){return(y(w)?d:_)(w,l(T,3))}},6604:(a,h,s)=>{var d=s(9465),l=s(7816),_=s(7206);a.exports=function(y,w){var T={};return w=_(w,3),l(y,function(A,L,N){d(T,L,w(A,L,N))}),T}},6162:(a,h,s)=>{var d=s(6029),l=s(3325),_=s(6557);a.exports=function(y){return y&&y.length?d(y,_,l):void 0}},8306:(a,h,s)=>{var d=s(3369);function l(_,y){if(typeof _!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var w=function(){var T=arguments,A=y?y.apply(this,T):T[0],L=w.cache;if(L.has(A))return L.get(A);var N=_.apply(this,T);return w.cache=L.set(A,N)||L,N};return w.cache=new(l.Cache||d),w}l.Cache=d,a.exports=l},3857:(a,h,s)=>{var d=s(2980),l=s(1750)(function(_,y,w){d(_,y,w)});a.exports=l},3632:(a,h,s)=>{var d=s(6029),l=s(433),_=s(6557);a.exports=function(y){return y&&y.length?d(y,_,l):void 0}},2762:(a,h,s)=>{var d=s(6029),l=s(7206),_=s(433);a.exports=function(y,w){return y&&y.length?d(y,l(w,2),_):void 0}},308:a=>{a.exports=function(){}},7771:(a,h,s)=>{var d=s(5639);a.exports=function(){return d.Date.now()}},9722:(a,h,s)=>{var d=s(5970),l=s(9021)(function(_,y){return _==null?{}:d(_,y)});a.exports=l},9601:(a,h,s)=>{var d=s(371),l=s(9152),_=s(1378),y=s(327);a.exports=function(w){return _(w)?d(y(w)):l(w)}},6026:(a,h,s)=>{var d=s(7445)();a.exports=d},4061:(a,h,s)=>{var d=s(2663),l=s(9881),_=s(7206),y=s(107),w=s(1469);a.exports=function(T,A,L){var N=w(T)?d:y,P=arguments.length<3;return N(T,_(A,4),L,P,l)}},4238:(a,h,s)=>{var d=s(280),l=s(4160),_=s(8612),y=s(7037),w=s(8016);a.exports=function(T){if(T==null)return 0;if(_(T))return y(T)?w(T):T.length;var A=l(T);return A=="[object Map]"||A=="[object Set]"?T.size:d(T).length}},9734:(a,h,s)=>{var d=s(1078),l=s(9556),_=s(5976),y=s(6612),w=_(function(T,A){if(T==null)return[];var L=A.length;return L>1&&y(T,A[0],A[1])?A=[]:L>2&&y(A[0],A[1],A[2])&&(A=[A[0]]),l(T,d(A,1),[])});a.exports=w},479:a=>{a.exports=function(){return[]}},5062:a=>{a.exports=function(){return!1}},8601:(a,h,s)=>{var d=s(4841);a.exports=function(l){return l?(l=d(l))===1/0||l===-1/0?17976931348623157e292*(l<0?-1:1):l==l?l:0:l===0?l:0}},554:(a,h,s)=>{var d=s(8601);a.exports=function(l){var _=d(l),y=_%1;return _==_?y?_-y:_:0}},4841:(a,h,s)=>{var d=s(7561),l=s(3218),_=s(3448),y=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,T=/^0o[0-7]+$/i,A=parseInt;a.exports=function(L){if(typeof L=="number")return L;if(_(L))return NaN;if(l(L)){var N=typeof L.valueOf=="function"?L.valueOf():L;L=l(N)?N+"":N}if(typeof L!="string")return L===0?L:+L;L=d(L);var P=w.test(L);return P||T.test(L)?A(L.slice(2),P?2:8):y.test(L)?NaN:+L}},3678:(a,h,s)=>{var d=s(8363),l=s(1704);a.exports=function(_){return d(_,l(_))}},9833:(a,h,s)=>{var d=s(531);a.exports=function(l){return l==null?"":d(l)}},8718:(a,h,s)=>{var d=s(7412),l=s(3118),_=s(7816),y=s(7206),w=s(5924),T=s(1469),A=s(4144),L=s(3560),N=s(3218),P=s(6719);a.exports=function(W,H,V){var X=T(W),J=X||A(W)||P(W);if(H=y(H,4),V==null){var ht=W&&W.constructor;V=J?X?new ht:[]:N(W)&&L(ht)?l(w(W)):{}}return(J?d:_)(W,function(tt,kt,gt){return H(V,tt,kt,gt)}),V}},3386:(a,h,s)=>{var d=s(1078),l=s(5976),_=s(5652),y=s(9246),w=l(function(T){return _(d(T,1,y,!0))});a.exports=w},3955:(a,h,s)=>{var d=s(9833),l=0;a.exports=function(_){var y=++l;return d(_)+y}},2628:(a,h,s)=>{var d=s(7415),l=s(3674);a.exports=function(_){return _==null?[]:d(_,l(_))}},7287:(a,h,s)=>{var d=s(4865),l=s(1757);a.exports=function(_,y){return l(_||[],y||[],d)}},9234:()=>{},1748:(a,h,s)=>{var d={"./locale":9234,"./locale.js":9234};function l(y){var w=_(y);return s(w)}function _(y){if(!s.o(d,y)){var w=new Error("Cannot find module '"+y+"'");throw w.code="MODULE_NOT_FOUND",w}return d[y]}l.keys=function(){return Object.keys(d)},l.resolve=_,a.exports=l,l.id=1748},1941:function(a,h,s){(a=s.nmd(a)).exports=function(){var d,l;function _(){return d.apply(null,arguments)}function y(M){return M instanceof Array||Object.prototype.toString.call(M)==="[object Array]"}function w(M){return M!=null&&Object.prototype.toString.call(M)==="[object Object]"}function T(M){return M===void 0}function A(M){return typeof M=="number"||Object.prototype.toString.call(M)==="[object Number]"}function L(M){return M instanceof Date||Object.prototype.toString.call(M)==="[object Date]"}function N(M,R){var q,at=[];for(q=0;q<M.length;++q)at.push(R(M[q],q));return at}function P(M,R){return Object.prototype.hasOwnProperty.call(M,R)}function W(M,R){for(var q in R)P(R,q)&&(M[q]=R[q]);return P(R,"toString")&&(M.toString=R.toString),P(R,"valueOf")&&(M.valueOf=R.valueOf),M}function H(M,R,q,at){return $a(M,R,q,at,!0).utc()}function V(M){return M._pf==null&&(M._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),M._pf}function X(M){if(M._isValid==null){var R=V(M),q=l.call(R.parsedDateParts,function($t){return $t!=null}),at=!isNaN(M._d.getTime())&&R.overflow<0&&!R.empty&&!R.invalidMonth&&!R.invalidWeekday&&!R.weekdayMismatch&&!R.nullInput&&!R.invalidFormat&&!R.userInvalidated&&(!R.meridiem||R.meridiem&&q);if(M._strict&&(at=at&&R.charsLeftOver===0&&R.unusedTokens.length===0&&R.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(M))return at;M._isValid=at}return M._isValid}function J(M){var R=H(NaN);return M!=null?W(V(R),M):V(R).userInvalidated=!0,R}l=Array.prototype.some?Array.prototype.some:function(M){for(var R=Object(this),q=R.length>>>0,at=0;at<q;at++)if(at in R&&M.call(this,R[at],at,R))return!0;return!1};var ht=_.momentProperties=[];function tt(M,R){var q,at,$t;if(T(R._isAMomentObject)||(M._isAMomentObject=R._isAMomentObject),T(R._i)||(M._i=R._i),T(R._f)||(M._f=R._f),T(R._l)||(M._l=R._l),T(R._strict)||(M._strict=R._strict),T(R._tzm)||(M._tzm=R._tzm),T(R._isUTC)||(M._isUTC=R._isUTC),T(R._offset)||(M._offset=R._offset),T(R._pf)||(M._pf=V(R)),T(R._locale)||(M._locale=R._locale),0<ht.length)for(q=0;q<ht.length;q++)T($t=R[at=ht[q]])||(M[at]=$t);return M}var kt=!1;function gt(M){tt(this,M),this._d=new Date(M._d!=null?M._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),kt===!1&&(kt=!0,_.updateOffset(this),kt=!1)}function ft(M){return M instanceof gt||M!=null&&M._isAMomentObject!=null}function et(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function K(M){var R=+M,q=0;return R!==0&&isFinite(R)&&(q=et(R)),q}function dt(M,R,q){var at,$t=Math.min(M.length,R.length),he=Math.abs(M.length-R.length),be=0;for(at=0;at<$t;at++)(q&&M[at]!==R[at]||!q&&K(M[at])!==K(R[at]))&&be++;return be+he}function Ot(M){_.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+M)}function Tt(M,R){var q=!0;return W(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,M),q){for(var at,$t=[],he=0;he<arguments.length;he++){if(at="",typeof arguments[he]=="object"){for(var be in at+=`
|
|
[`+he+"] ",arguments[0])at+=be+": "+arguments[0][be]+", ";at=at.slice(0,-2)}else at=arguments[he];$t.push(at)}Ot(M+`
|
|
Arguments: `+Array.prototype.slice.call($t).join("")+`
|
|
`+new Error().stack),q=!1}return R.apply(this,arguments)},R)}var lt,It={};function Ft(M,R){_.deprecationHandler!=null&&_.deprecationHandler(M,R),It[M]||(Ot(R),It[M]=!0)}function ue(M){return M instanceof Function||Object.prototype.toString.call(M)==="[object Function]"}function ye(M,R){var q,at=W({},M);for(q in R)P(R,q)&&(w(M[q])&&w(R[q])?(at[q]={},W(at[q],M[q]),W(at[q],R[q])):R[q]!=null?at[q]=R[q]:delete at[q]);for(q in M)P(M,q)&&!P(R,q)&&w(M[q])&&(at[q]=W({},at[q]));return at}function de(M){M!=null&&this.set(M)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null,lt=Object.keys?Object.keys:function(M){var R,q=[];for(R in M)P(M,R)&&q.push(R);return q};var le={};function Nt(M,R){var q=M.toLowerCase();le[q]=le[q+"s"]=le[R]=M}function jt(M){return typeof M=="string"?le[M]||le[M.toLowerCase()]:void 0}function Kt(M){var R,q,at={};for(q in M)P(M,q)&&(R=jt(q))&&(at[R]=M[q]);return at}var pe={};function ge(M,R){pe[M]=R}function Pt(M,R,q){var at=""+Math.abs(M),$t=R-at.length;return(0<=M?q?"+":"":"-")+Math.pow(10,Math.max(0,$t)).toString().substr(1)+at}var ze=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Qt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zt={},Zt={};function rt(M,R,q,at){var $t=at;typeof at=="string"&&($t=function(){return this[at]()}),M&&(Zt[M]=$t),R&&(Zt[R[0]]=function(){return Pt($t.apply(this,arguments),R[1],R[2])}),q&&(Zt[q]=function(){return this.localeData().ordinal($t.apply(this,arguments),M)})}function ae(M,R){return M.isValid()?(R=Ct(R,M.localeData()),zt[R]=zt[R]||function(q){var at,$t,he,be=q.match(ze);for(at=0,$t=be.length;at<$t;at++)Zt[be[at]]?be[at]=Zt[be[at]]:be[at]=(he=be[at]).match(/\[[\s\S]/)?he.replace(/^\[|\]$/g,""):he.replace(/\\/g,"");return function(Se){var Me,Fe="";for(Me=0;Me<$t;Me++)Fe+=ue(be[Me])?be[Me].call(Se,q):be[Me];return Fe}}(R),zt[R](M)):M.localeData().invalidDate()}function Ct(M,R){var q=5;function at($t){return R.longDateFormat($t)||$t}for(Qt.lastIndex=0;0<=q&&Qt.test(M);)M=M.replace(Qt,at),Qt.lastIndex=0,q-=1;return M}var Mt=/\d/,re=/\d\d/,Dt=/\d{3}/,ne=/\d{4}/,ke=/[+-]?\d{6}/,me=/\d\d?/,pn=/\d\d\d\d?/,Pe=/\d\d\d\d\d\d?/,Qe=/\d{1,3}/,Be=/\d{1,4}/,Ee=/[+-]?\d{1,6}/,tn=/\d+/,je=/[+-]?\d+/,Je=/Z|[+-]\d\d:?\d\d/gi,Ke=/Z|[+-]\d\d(?::?\d\d)?/gi,On=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Sn={};function Te(M,R,q){Sn[M]=ue(R)?R:function(at,$t){return at&&q?q:R}}function Ge(M,R){return P(Sn,M)?Sn[M](R._strict,R._locale):new RegExp(_r(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(q,at,$t,he,be){return at||$t||he||be})))}function _r(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ur={};function gn(M,R){var q,at=R;for(typeof M=="string"&&(M=[M]),A(R)&&(at=function($t,he){he[R]=K($t)}),q=0;q<M.length;q++)Ur[M[q]]=at}function un(M,R){gn(M,function(q,at,$t,he){$t._w=$t._w||{},R(q,$t._w,$t,he)})}function an(M){return xn(M)?366:365}function xn(M){return M%4==0&&M%100!=0||M%400==0}rt("Y",0,0,function(){var M=this.year();return M<=9999?""+M:"+"+M}),rt(0,["YY",2],0,function(){return this.year()%100}),rt(0,["YYYY",4],0,"year"),rt(0,["YYYYY",5],0,"year"),rt(0,["YYYYYY",6,!0],0,"year"),Nt("year","y"),ge("year",1),Te("Y",je),Te("YY",me,re),Te("YYYY",Be,ne),Te("YYYYY",Ee,ke),Te("YYYYYY",Ee,ke),gn(["YYYYY","YYYYYY"],0),gn("YYYY",function(M,R){R[0]=M.length===2?_.parseTwoDigitYear(M):K(M)}),gn("YY",function(M,R){R[0]=_.parseTwoDigitYear(M)}),gn("Y",function(M,R){R[0]=parseInt(M,10)}),_.parseTwoDigitYear=function(M){return K(M)+(68<K(M)?1900:2e3)};var Ze,Tn=Cn("FullYear",!0);function Cn(M,R){return function(q){return q!=null?(Xr(this,M,q),_.updateOffset(this,R),this):Zn(this,M)}}function Zn(M,R){return M.isValid()?M._d["get"+(M._isUTC?"UTC":"")+R]():NaN}function Xr(M,R,q){M.isValid()&&!isNaN(q)&&(R==="FullYear"&&xn(M.year())&&M.month()===1&&M.date()===29?M._d["set"+(M._isUTC?"UTC":"")+R](q,M.month(),Wn(q,M.month())):M._d["set"+(M._isUTC?"UTC":"")+R](q))}function Wn(M,R){if(isNaN(M)||isNaN(R))return NaN;var q=(R%12+12)%12;return M+=(R-q)/12,q===1?xn(M)?29:28:31-q%7%2}Ze=Array.prototype.indexOf?Array.prototype.indexOf:function(M){var R;for(R=0;R<this.length;++R)if(this[R]===M)return R;return-1},rt("M",["MM",2],"Mo",function(){return this.month()+1}),rt("MMM",0,0,function(M){return this.localeData().monthsShort(this,M)}),rt("MMMM",0,0,function(M){return this.localeData().months(this,M)}),Nt("month","M"),ge("month",8),Te("M",me),Te("MM",me,re),Te("MMM",function(M,R){return R.monthsShortRegex(M)}),Te("MMMM",function(M,R){return R.monthsRegex(M)}),gn(["M","MM"],function(M,R){R[1]=K(M)-1}),gn(["MMM","MMMM"],function(M,R,q,at){var $t=q._locale.monthsParse(M,at,q._strict);$t!=null?R[1]=$t:V(q).invalidMonth=M});var Un=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ln="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Qn(M,R){var q;if(!M.isValid())return M;if(typeof R=="string"){if(/^\d+$/.test(R))R=K(R);else if(!A(R=M.localeData().monthsParse(R)))return M}return q=Math.min(M.date(),Wn(M.year(),R)),M._d["set"+(M._isUTC?"UTC":"")+"Month"](R,q),M}function er(M){return M!=null?(Qn(this,M),_.updateOffset(this,!0),this):Zn(this,"Month")}var ar=On,Bn=On;function Hn(){function M(be,Se){return Se.length-be.length}var R,q,at=[],$t=[],he=[];for(R=0;R<12;R++)q=H([2e3,R]),at.push(this.monthsShort(q,"")),$t.push(this.months(q,"")),he.push(this.months(q,"")),he.push(this.monthsShort(q,""));for(at.sort(M),$t.sort(M),he.sort(M),R=0;R<12;R++)at[R]=_r(at[R]),$t[R]=_r($t[R]);for(R=0;R<24;R++)he[R]=_r(he[R]);this._monthsRegex=new RegExp("^("+he.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+$t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+at.join("|")+")","i")}function In(M){var R;if(M<100&&0<=M){var q=Array.prototype.slice.call(arguments);q[0]=M+400,R=new Date(Date.UTC.apply(null,q)),isFinite(R.getUTCFullYear())&&R.setUTCFullYear(M)}else R=new Date(Date.UTC.apply(null,arguments));return R}function _n(M,R,q){var at=7+R-q;return-(7+In(M,0,at).getUTCDay()-R)%7+at-1}function so(M,R,q,at,$t){var he,be,Se=1+7*(R-1)+(7+q-at)%7+_n(M,at,$t);return be=Se<=0?an(he=M-1)+Se:Se>an(M)?(he=M+1,Se-an(M)):(he=M,Se),{year:he,dayOfYear:be}}function hr(M,R,q){var at,$t,he=_n(M.year(),R,q),be=Math.floor((M.dayOfYear()-he-1)/7)+1;return be<1?at=be+Ai($t=M.year()-1,R,q):be>Ai(M.year(),R,q)?(at=be-Ai(M.year(),R,q),$t=M.year()+1):($t=M.year(),at=be),{week:at,year:$t}}function Ai(M,R,q){var at=_n(M,R,q),$t=_n(M+1,R,q);return(an(M)-at+$t)/7}function Rn(M,R){return M.slice(R,7).concat(M.slice(0,R))}rt("w",["ww",2],"wo","week"),rt("W",["WW",2],"Wo","isoWeek"),Nt("week","w"),Nt("isoWeek","W"),ge("week",5),ge("isoWeek",5),Te("w",me),Te("ww",me,re),Te("W",me),Te("WW",me,re),un(["w","ww","W","WW"],function(M,R,q,at){R[at.substr(0,1)]=K(M)}),rt("d",0,"do","day"),rt("dd",0,0,function(M){return this.localeData().weekdaysMin(this,M)}),rt("ddd",0,0,function(M){return this.localeData().weekdaysShort(this,M)}),rt("dddd",0,0,function(M){return this.localeData().weekdays(this,M)}),rt("e",0,0,"weekday"),rt("E",0,0,"isoWeekday"),Nt("day","d"),Nt("weekday","e"),Nt("isoWeekday","E"),ge("day",11),ge("weekday",11),ge("isoWeekday",11),Te("d",me),Te("e",me),Te("E",me),Te("dd",function(M,R){return R.weekdaysMinRegex(M)}),Te("ddd",function(M,R){return R.weekdaysShortRegex(M)}),Te("dddd",function(M,R){return R.weekdaysRegex(M)}),un(["dd","ddd","dddd"],function(M,R,q,at){var $t=q._locale.weekdaysParse(M,at,q._strict);$t!=null?R.d=$t:V(q).invalidWeekday=M}),un(["d","e","E"],function(M,R,q,at){R[at]=K(M)});var ko="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),To="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ri=On,Rr=On,zr=On;function Zr(){function M(Ve,wn){return wn.length-Ve.length}var R,q,at,$t,he,be=[],Se=[],Me=[],Fe=[];for(R=0;R<7;R++)q=H([2e3,1]).day(R),at=this.weekdaysMin(q,""),$t=this.weekdaysShort(q,""),he=this.weekdays(q,""),be.push(at),Se.push($t),Me.push(he),Fe.push(at),Fe.push($t),Fe.push(he);for(be.sort(M),Se.sort(M),Me.sort(M),Fe.sort(M),R=0;R<7;R++)Se[R]=_r(Se[R]),Me[R]=_r(Me[R]),Fe[R]=_r(Fe[R]);this._weekdaysRegex=new RegExp("^("+Fe.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Me.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Se.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+be.join("|")+")","i")}function Kr(){return this.hours()%12||12}function Ar(M,R){rt(M,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),R)})}function ti(M,R){return R._meridiemParse}rt("H",["HH",2],0,"hour"),rt("h",["hh",2],0,Kr),rt("k",["kk",2],0,function(){return this.hours()||24}),rt("hmm",0,0,function(){return""+Kr.apply(this)+Pt(this.minutes(),2)}),rt("hmmss",0,0,function(){return""+Kr.apply(this)+Pt(this.minutes(),2)+Pt(this.seconds(),2)}),rt("Hmm",0,0,function(){return""+this.hours()+Pt(this.minutes(),2)}),rt("Hmmss",0,0,function(){return""+this.hours()+Pt(this.minutes(),2)+Pt(this.seconds(),2)}),Ar("a",!0),Ar("A",!1),Nt("hour","h"),ge("hour",13),Te("a",ti),Te("A",ti),Te("H",me),Te("h",me),Te("k",me),Te("HH",me,re),Te("hh",me,re),Te("kk",me,re),Te("hmm",pn),Te("hmmss",Pe),Te("Hmm",pn),Te("Hmmss",Pe),gn(["H","HH"],3),gn(["k","kk"],function(M,R,q){var at=K(M);R[3]=at===24?0:at}),gn(["a","A"],function(M,R,q){q._isPm=q._locale.isPM(M),q._meridiem=M}),gn(["h","hh"],function(M,R,q){R[3]=K(M),V(q).bigHour=!0}),gn("hmm",function(M,R,q){var at=M.length-2;R[3]=K(M.substr(0,at)),R[4]=K(M.substr(at)),V(q).bigHour=!0}),gn("hmmss",function(M,R,q){var at=M.length-4,$t=M.length-2;R[3]=K(M.substr(0,at)),R[4]=K(M.substr(at,2)),R[5]=K(M.substr($t)),V(q).bigHour=!0}),gn("Hmm",function(M,R,q){var at=M.length-2;R[3]=K(M.substr(0,at)),R[4]=K(M.substr(at))}),gn("Hmmss",function(M,R,q){var at=M.length-4,$t=M.length-2;R[3]=K(M.substr(0,at)),R[4]=K(M.substr(at,2)),R[5]=K(M.substr($t))});var qr,pi=Cn("Hours",!0),gi={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ln,monthsShort:qn,week:{dow:0,doy:6},weekdays:ko,weekdaysMin:Jr,weekdaysShort:To,meridiemParse:/[ap]\.?m?\.?/i},yr={},Di={};function Vr(M){return M&&M.toLowerCase().replace("_","-")}function Ui(M){var R=null;if(!yr[M]&&a&&a.exports)try{R=qr._abbr,s(1748)("./"+M),Wa(R)}catch(q){}return yr[M]}function Wa(M,R){var q;return M&&((q=T(R)?qe(M):Aa(M,R))?qr=q:typeof console!="undefined"&&console.warn&&console.warn("Locale "+M+" not found. Did you forget to load it?")),qr._abbr}function Aa(M,R){if(R===null)return delete yr[M],null;var q,at=gi;if(R.abbr=M,yr[M]!=null)Ft("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),at=yr[M]._config;else if(R.parentLocale!=null)if(yr[R.parentLocale]!=null)at=yr[R.parentLocale]._config;else{if((q=Ui(R.parentLocale))==null)return Di[R.parentLocale]||(Di[R.parentLocale]=[]),Di[R.parentLocale].push({name:M,config:R}),null;at=q._config}return yr[M]=new de(ye(at,R)),Di[M]&&Di[M].forEach(function($t){Aa($t.name,$t.config)}),Wa(M),yr[M]}function qe(M){var R;if(M&&M._locale&&M._locale._abbr&&(M=M._locale._abbr),!M)return qr;if(!y(M)){if(R=Ui(M))return R;M=[M]}return function(q){for(var at,$t,he,be,Se=0;Se<q.length;){for(at=(be=Vr(q[Se]).split("-")).length,$t=($t=Vr(q[Se+1]))?$t.split("-"):null;0<at;){if(he=Ui(be.slice(0,at).join("-")))return he;if($t&&$t.length>=at&&dt(be,$t,!0)>=at-1)break;at--}Se++}return qr}(M)}function or(M){var R,q=M._a;return q&&V(M).overflow===-2&&(R=q[1]<0||11<q[1]?1:q[2]<1||q[2]>Wn(q[0],q[1])?2:q[3]<0||24<q[3]||q[3]===24&&(q[4]!==0||q[5]!==0||q[6]!==0)?3:q[4]<0||59<q[4]?4:q[5]<0||59<q[5]?5:q[6]<0||999<q[6]?6:-1,V(M)._overflowDayOfYear&&(R<0||2<R)&&(R=2),V(M)._overflowWeeks&&R===-1&&(R=7),V(M)._overflowWeekday&&R===-1&&(R=8),V(M).overflow=R),M}function Dn(M,R,q){return M!=null?M:R!=null?R:q}function Ie(M){var R,q,at,$t,he,be=[];if(!M._d){var Se,Me;for(Se=M,Me=new Date(_.now()),at=Se._useUTC?[Me.getUTCFullYear(),Me.getUTCMonth(),Me.getUTCDate()]:[Me.getFullYear(),Me.getMonth(),Me.getDate()],M._w&&M._a[2]==null&&M._a[1]==null&&function(Fe){var Ve,wn,dn,fr,pr,Lr,lr,pa;if((Ve=Fe._w).GG!=null||Ve.W!=null||Ve.E!=null)pr=1,Lr=4,wn=Dn(Ve.GG,Fe._a[0],hr(Mn(),1,4).year),dn=Dn(Ve.W,1),((fr=Dn(Ve.E,1))<1||7<fr)&&(pa=!0);else{pr=Fe._locale._week.dow,Lr=Fe._locale._week.doy;var As=hr(Mn(),pr,Lr);wn=Dn(Ve.gg,Fe._a[0],As.year),dn=Dn(Ve.w,As.week),Ve.d!=null?((fr=Ve.d)<0||6<fr)&&(pa=!0):Ve.e!=null?(fr=Ve.e+pr,(Ve.e<0||6<Ve.e)&&(pa=!0)):fr=pr}dn<1||dn>Ai(wn,pr,Lr)?V(Fe)._overflowWeeks=!0:pa!=null?V(Fe)._overflowWeekday=!0:(lr=so(wn,dn,fr,pr,Lr),Fe._a[0]=lr.year,Fe._dayOfYear=lr.dayOfYear)}(M),M._dayOfYear!=null&&(he=Dn(M._a[0],at[0]),(M._dayOfYear>an(he)||M._dayOfYear===0)&&(V(M)._overflowDayOfYear=!0),q=In(he,0,M._dayOfYear),M._a[1]=q.getUTCMonth(),M._a[2]=q.getUTCDate()),R=0;R<3&&M._a[R]==null;++R)M._a[R]=be[R]=at[R];for(;R<7;R++)M._a[R]=be[R]=M._a[R]==null?R===2?1:0:M._a[R];M._a[3]===24&&M._a[4]===0&&M._a[5]===0&&M._a[6]===0&&(M._nextDay=!0,M._a[3]=0),M._d=(M._useUTC?In:function(Fe,Ve,wn,dn,fr,pr,Lr){var lr;return Fe<100&&0<=Fe?(lr=new Date(Fe+400,Ve,wn,dn,fr,pr,Lr),isFinite(lr.getFullYear())&&lr.setFullYear(Fe)):lr=new Date(Fe,Ve,wn,dn,fr,pr,Lr),lr}).apply(null,be),$t=M._useUTC?M._d.getUTCDay():M._d.getDay(),M._tzm!=null&&M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),M._nextDay&&(M._a[3]=24),M._w&&M._w.d!==void 0&&M._w.d!==$t&&(V(M).weekdayMismatch=!0)}}var br=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Bt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,De=/Z|[+-]\d\d(?::?\d\d)?/,Vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Fr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ss=/^\/?Date\((\-?\d+)/i;function Zo(M){var R,q,at,$t,he,be,Se=M._i,Me=br.exec(Se)||Bt.exec(Se);if(Me){for(V(M).iso=!0,R=0,q=Vt.length;R<q;R++)if(Vt[R][1].exec(Me[1])){$t=Vt[R][0],at=Vt[R][2]!==!1;break}if($t==null)return void(M._isValid=!1);if(Me[3]){for(R=0,q=Fr.length;R<q;R++)if(Fr[R][1].exec(Me[3])){he=(Me[2]||" ")+Fr[R][0];break}if(he==null)return void(M._isValid=!1)}if(!at&&he!=null)return void(M._isValid=!1);if(Me[4]){if(!De.exec(Me[4]))return void(M._isValid=!1);be="Z"}M._f=$t+(he||"")+(be||""),Pr(M)}else M._isValid=!1}var Ha=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,zi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Cs(M){var R,q,at,$t=Ha.exec(M._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if($t){var he=function(be,Se,Me,Fe,Ve,wn){var dn=[function(fr){var pr=parseInt(fr,10);return pr<=49?2e3+pr:pr<=999?1900+pr:pr}(be),qn.indexOf(Se),parseInt(Me,10),parseInt(Fe,10),parseInt(Ve,10)];return wn&&dn.push(parseInt(wn,10)),dn}($t[4],$t[3],$t[2],$t[5],$t[6],$t[7]);if(q=he,at=M,(R=$t[1])&&To.indexOf(R)!==new Date(q[0],q[1],q[2]).getDay()&&(V(at).weekdayMismatch=!0,!(at._isValid=!1)))return;M._a=he,M._tzm=function(be,Se,Me){if(be)return zi[be];if(Se)return 0;var Fe=parseInt(Me,10),Ve=Fe%100;return(Fe-Ve)/100*60+Ve}($t[8],$t[9],$t[10]),M._d=In.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),V(M).rfc2822=!0}else M._isValid=!1}function Pr(M){if(M._f!==_.ISO_8601)if(M._f!==_.RFC_2822){M._a=[],V(M).empty=!0;var R,q,at,$t,he,be,Se,Me,Fe=""+M._i,Ve=Fe.length,wn=0;for(at=Ct(M._f,M._locale).match(ze)||[],R=0;R<at.length;R++)$t=at[R],(q=(Fe.match(Ge($t,M))||[])[0])&&(0<(he=Fe.substr(0,Fe.indexOf(q))).length&&V(M).unusedInput.push(he),Fe=Fe.slice(Fe.indexOf(q)+q.length),wn+=q.length),Zt[$t]?(q?V(M).empty=!1:V(M).unusedTokens.push($t),be=$t,Me=M,(Se=q)!=null&&P(Ur,be)&&Ur[be](Se,Me._a,Me,be)):M._strict&&!q&&V(M).unusedTokens.push($t);V(M).charsLeftOver=Ve-wn,0<Fe.length&&V(M).unusedInput.push(Fe),M._a[3]<=12&&V(M).bigHour===!0&&0<M._a[3]&&(V(M).bigHour=void 0),V(M).parsedDateParts=M._a.slice(0),V(M).meridiem=M._meridiem,M._a[3]=function(dn,fr,pr){var Lr;return pr==null?fr:dn.meridiemHour!=null?dn.meridiemHour(fr,pr):(dn.isPM!=null&&((Lr=dn.isPM(pr))&&fr<12&&(fr+=12),Lr||fr!==12||(fr=0)),fr)}(M._locale,M._a[3],M._meridiem),Ie(M),or(M)}else Cs(M);else Zo(M)}function ha(M){var R,q,at,$t,he=M._i,be=M._f;return M._locale=M._locale||qe(M._l),he===null||be===void 0&&he===""?J({nullInput:!0}):(typeof he=="string"&&(M._i=he=M._locale.preparse(he)),ft(he)?new gt(or(he)):(L(he)?M._d=he:y(be)?function(Se){var Me,Fe,Ve,wn,dn;if(Se._f.length===0)return V(Se).invalidFormat=!0,Se._d=new Date(NaN);for(wn=0;wn<Se._f.length;wn++)dn=0,Me=tt({},Se),Se._useUTC!=null&&(Me._useUTC=Se._useUTC),Me._f=Se._f[wn],Pr(Me),X(Me)&&(dn+=V(Me).charsLeftOver,dn+=10*V(Me).unusedTokens.length,V(Me).score=dn,(Ve==null||dn<Ve)&&(Ve=dn,Fe=Me));W(Se,Fe||Me)}(M):be?Pr(M):T(q=(R=M)._i)?R._d=new Date(_.now()):L(q)?R._d=new Date(q.valueOf()):typeof q=="string"?(at=R,($t=Ss.exec(at._i))===null?(Zo(at),at._isValid===!1&&(delete at._isValid,Cs(at),at._isValid===!1&&(delete at._isValid,_.createFromInputFallback(at)))):at._d=new Date(+$t[1])):y(q)?(R._a=N(q.slice(0),function(Se){return parseInt(Se,10)}),Ie(R)):w(q)?function(Se){if(!Se._d){var Me=Kt(Se._i);Se._a=N([Me.year,Me.month,Me.day||Me.date,Me.hour,Me.minute,Me.second,Me.millisecond],function(Fe){return Fe&&parseInt(Fe,10)}),Ie(Se)}}(R):A(q)?R._d=new Date(q):_.createFromInputFallback(R),X(M)||(M._d=null),M))}function $a(M,R,q,at,$t){var he,be={};return q!==!0&&q!==!1||(at=q,q=void 0),(w(M)&&function(Se){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Se).length===0;var Me;for(Me in Se)if(Se.hasOwnProperty(Me))return!1;return!0}(M)||y(M)&&M.length===0)&&(M=void 0),be._isAMomentObject=!0,be._useUTC=be._isUTC=$t,be._l=q,be._i=M,be._f=R,be._strict=at,(he=new gt(or(ha(be))))._nextDay&&(he.add(1,"d"),he._nextDay=void 0),he}function Mn(M,R,q,at){return $a(M,R,q,at,!1)}_.createFromInputFallback=Tt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(M){M._d=new Date(M._i+(M._useUTC?" UTC":""))}),_.ISO_8601=function(){},_.RFC_2822=function(){};var co=Tt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var M=Mn.apply(null,arguments);return this.isValid()&&M.isValid()?M<this?this:M:J()}),qa=Tt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var M=Mn.apply(null,arguments);return this.isValid()&&M.isValid()?this<M?this:M:J()});function Yn(M,R){var q,at;if(R.length===1&&y(R[0])&&(R=R[0]),!R.length)return Mn();for(q=R[0],at=1;at<R.length;++at)R[at].isValid()&&!R[at][M](q)||(q=R[at]);return q}var Ti=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Qr(M){var R=Kt(M),q=R.year||0,at=R.quarter||0,$t=R.month||0,he=R.week||R.isoWeek||0,be=R.day||0,Se=R.hour||0,Me=R.minute||0,Fe=R.second||0,Ve=R.millisecond||0;this._isValid=function(wn){for(var dn in wn)if(Ze.call(Ti,dn)===-1||wn[dn]!=null&&isNaN(wn[dn]))return!1;for(var fr=!1,pr=0;pr<Ti.length;++pr)if(wn[Ti[pr]]){if(fr)return!1;parseFloat(wn[Ti[pr]])!==K(wn[Ti[pr]])&&(fr=!0)}return!0}(R),this._milliseconds=+Ve+1e3*Fe+6e4*Me+1e3*Se*60*60,this._days=+be+7*he,this._months=+$t+3*at+12*q,this._data={},this._locale=qe(),this._bubble()}function Dr(M){return M instanceof Qr}function Qi(M){return M<0?-1*Math.round(-1*M):Math.round(M)}function Nr(M,R){rt(M,0,0,function(){var q=this.utcOffset(),at="+";return q<0&&(q=-q,at="-"),at+Pt(~~(q/60),2)+R+Pt(~~q%60,2)})}Nr("Z",":"),Nr("ZZ",""),Te("Z",Ke),Te("ZZ",Ke),gn(["Z","ZZ"],function(M,R,q){q._useUTC=!0,q._tzm=Wi(Ke,M)});var Wr=/([\+\-]|\d\d)/gi;function Wi(M,R){var q=(R||"").match(M);if(q===null)return null;var at=((q[q.length-1]||[])+"").match(Wr)||["-",0,0],$t=60*at[1]+K(at[2]);return $t===0?0:at[0]==="+"?$t:-$t}function Ni(M,R){var q,at;return R._isUTC?(q=R.clone(),at=(ft(M)||L(M)?M.valueOf():Mn(M).valueOf())-q.valueOf(),q._d.setTime(q._d.valueOf()+at),_.updateOffset(q,!1),q):Mn(M).local()}function Ei(M){return 15*-Math.round(M._d.getTimezoneOffset()/15)}function Da(){return!!this.isValid()&&this._isUTC&&this._offset===0}_.updateOffset=function(){};var Wt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,He=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ye(M,R){var q,at,$t,he=M,be=null;return Dr(M)?he={ms:M._milliseconds,d:M._days,M:M._months}:A(M)?(he={},R?he[R]=M:he.milliseconds=M):(be=Wt.exec(M))?(q=be[1]==="-"?-1:1,he={y:0,d:K(be[2])*q,h:K(be[3])*q,m:K(be[4])*q,s:K(be[5])*q,ms:K(Qi(1e3*be[6]))*q}):(be=He.exec(M))?(q=be[1]==="-"?-1:1,he={y:sr(be[2],q),M:sr(be[3],q),w:sr(be[4],q),d:sr(be[5],q),h:sr(be[6],q),m:sr(be[7],q),s:sr(be[8],q)}):he==null?he={}:typeof he=="object"&&("from"in he||"to"in he)&&($t=function(Se,Me){var Fe;return Se.isValid()&&Me.isValid()?(Me=Ni(Me,Se),Se.isBefore(Me)?Fe=Or(Se,Me):((Fe=Or(Me,Se)).milliseconds=-Fe.milliseconds,Fe.months=-Fe.months),Fe):{milliseconds:0,months:0}}(Mn(he.from),Mn(he.to)),(he={}).ms=$t.milliseconds,he.M=$t.months),at=new Qr(he),Dr(M)&&P(M,"_locale")&&(at._locale=M._locale),at}function sr(M,R){var q=M&&parseFloat(M.replace(",","."));return(isNaN(q)?0:q)*R}function Or(M,R){var q={};return q.months=R.month()-M.month()+12*(R.year()-M.year()),M.clone().add(q.months,"M").isAfter(R)&&--q.months,q.milliseconds=+R-+M.clone().add(q.months,"M"),q}function ei(M,R){return function(q,at){var $t;return at===null||isNaN(+at)||(Ft(R,"moment()."+R+"(period, number) is deprecated. Please use moment()."+R+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$t=q,q=at,at=$t),ii(this,Ye(q=typeof q=="string"?+q:q,at),M),this}}function ii(M,R,q,at){var $t=R._milliseconds,he=Qi(R._days),be=Qi(R._months);M.isValid()&&(at=at==null||at,be&&Qn(M,Zn(M,"Month")+be*q),he&&Xr(M,"Date",Zn(M,"Date")+he*q),$t&&M._d.setTime(M._d.valueOf()+$t*q),at&&_.updateOffset(M,he||be))}Ye.fn=Qr.prototype,Ye.invalid=function(){return Ye(NaN)};var Eo=ei(1,"add"),ua=ei(-1,"subtract");function So(M,R){var q=12*(R.year()-M.year())+(R.month()-M.month()),at=M.clone().add(q,"months");return-(q+(R-at<0?(R-at)/(at-M.clone().add(q-1,"months")):(R-at)/(M.clone().add(q+1,"months")-at)))||0}function Oi(M){var R;return M===void 0?this._locale._abbr:((R=qe(M))!=null&&(this._locale=R),this)}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qc=Tt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(M){return M===void 0?this.localeData():this.locale(M)});function uo(){return this._locale}var Jc=126227808e5;function lo(M,R){return(M%R+R)%R}function Kc(M,R,q){return M<100&&0<=M?new Date(M+400,R,q)-Jc:new Date(M,R,q).valueOf()}function Hi(M,R,q){return M<100&&0<=M?Date.UTC(M+400,R,q)-Jc:Date.UTC(M,R,q)}function ni(M,R){rt(0,[M,M.length],0,R)}function Xu(M,R,q,at,$t){var he;return M==null?hr(this,at,$t).year:((he=Ai(M,at,$t))<R&&(R=he),function(be,Se,Me,Fe,Ve){var wn=so(be,Se,Me,Fe,Ve),dn=In(wn.year,0,wn.dayOfYear);return this.year(dn.getUTCFullYear()),this.month(dn.getUTCMonth()),this.date(dn.getUTCDate()),this}.call(this,M,R,q,at,$t))}rt(0,["gg",2],0,function(){return this.weekYear()%100}),rt(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ni("gggg","weekYear"),ni("ggggg","weekYear"),ni("GGGG","isoWeekYear"),ni("GGGGG","isoWeekYear"),Nt("weekYear","gg"),Nt("isoWeekYear","GG"),ge("weekYear",1),ge("isoWeekYear",1),Te("G",je),Te("g",je),Te("GG",me,re),Te("gg",me,re),Te("GGGG",Be,ne),Te("gggg",Be,ne),Te("GGGGG",Ee,ke),Te("ggggg",Ee,ke),un(["gggg","ggggg","GGGG","GGGGG"],function(M,R,q,at){R[at.substr(0,2)]=K(M)}),un(["gg","GG"],function(M,R,q,at){R[at]=_.parseTwoDigitYear(M)}),rt("Q",0,"Qo","quarter"),Nt("quarter","Q"),ge("quarter",7),Te("Q",Mt),gn("Q",function(M,R){R[1]=3*(K(M)-1)}),rt("D",["DD",2],"Do","date"),Nt("date","D"),ge("date",9),Te("D",me),Te("DD",me,re),Te("Do",function(M,R){return M?R._dayOfMonthOrdinalParse||R._ordinalParse:R._dayOfMonthOrdinalParseLenient}),gn(["D","DD"],2),gn("Do",function(M,R){R[2]=K(M.match(me)[0])});var Zu=Cn("Date",!0);rt("DDD",["DDDD",3],"DDDo","dayOfYear"),Nt("dayOfYear","DDD"),ge("dayOfYear",4),Te("DDD",Qe),Te("DDDD",Dt),gn(["DDD","DDDD"],function(M,R,q){q._dayOfYear=K(M)}),rt("m",["mm",2],0,"minute"),Nt("minute","m"),ge("minute",14),Te("m",me),Te("mm",me,re),gn(["m","mm"],4);var Qu=Cn("Minutes",!1);rt("s",["ss",2],0,"second"),Nt("second","s"),ge("second",15),Te("s",me),Te("ss",me,re),gn(["s","ss"],5);var Va,Ju=Cn("Seconds",!1);for(rt("S",0,0,function(){return~~(this.millisecond()/100)}),rt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),rt(0,["SSS",3],0,"millisecond"),rt(0,["SSSS",4],0,function(){return 10*this.millisecond()}),rt(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),rt(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),rt(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),rt(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),rt(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Nt("millisecond","ms"),ge("millisecond",16),Te("S",Qe,Mt),Te("SS",Qe,re),Te("SSS",Qe,Dt),Va="SSSS";Va.length<=9;Va+="S")Te(Va,tn);function Ku(M,R){R[6]=K(1e3*("0."+M))}for(Va="S";Va.length<=9;Va+="S")gn(Va,Ku);var Ga=Cn("Milliseconds",!1);rt("z",0,0,"zoneAbbr"),rt("zz",0,0,"zoneName");var Le=gt.prototype;function vh(M){return M}Le.add=Eo,Le.calendar=function(M,R){var q=M||Mn(),at=Ni(q,this).startOf("day"),$t=_.calendarFormat(this,at)||"sameElse",he=R&&(ue(R[$t])?R[$t].call(this,q):R[$t]);return this.format(he||this.localeData().calendar($t,this,Mn(q)))},Le.clone=function(){return new gt(this)},Le.diff=function(M,R,q){var at,$t,he;if(!this.isValid())return NaN;if(!(at=Ni(M,this)).isValid())return NaN;switch($t=6e4*(at.utcOffset()-this.utcOffset()),R=jt(R)){case"year":he=So(this,at)/12;break;case"month":he=So(this,at);break;case"quarter":he=So(this,at)/3;break;case"second":he=(this-at)/1e3;break;case"minute":he=(this-at)/6e4;break;case"hour":he=(this-at)/36e5;break;case"day":he=(this-at-$t)/864e5;break;case"week":he=(this-at-$t)/6048e5;break;default:he=this-at}return q?he:et(he)},Le.endOf=function(M){var R;if((M=jt(M))===void 0||M==="millisecond"||!this.isValid())return this;var q=this._isUTC?Hi:Kc;switch(M){case"year":R=q(this.year()+1,0,1)-1;break;case"quarter":R=q(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":R=q(this.year(),this.month()+1,1)-1;break;case"week":R=q(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":R=q(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":R=q(this.year(),this.month(),this.date()+1)-1;break;case"hour":R=this._d.valueOf(),R+=36e5-lo(R+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":R=this._d.valueOf(),R+=6e4-lo(R,6e4)-1;break;case"second":R=this._d.valueOf(),R+=1e3-lo(R,1e3)-1}return this._d.setTime(R),_.updateOffset(this,!0),this},Le.format=function(M){M||(M=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var R=ae(this,M);return this.localeData().postformat(R)},Le.from=function(M,R){return this.isValid()&&(ft(M)&&M.isValid()||Mn(M).isValid())?Ye({to:this,from:M}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()},Le.fromNow=function(M){return this.from(Mn(),M)},Le.to=function(M,R){return this.isValid()&&(ft(M)&&M.isValid()||Mn(M).isValid())?Ye({from:this,to:M}).locale(this.locale()).humanize(!R):this.localeData().invalidDate()},Le.toNow=function(M){return this.to(Mn(),M)},Le.get=function(M){return ue(this[M=jt(M)])?this[M]():this},Le.invalidAt=function(){return V(this).overflow},Le.isAfter=function(M,R){var q=ft(M)?M:Mn(M);return!(!this.isValid()||!q.isValid())&&((R=jt(R)||"millisecond")==="millisecond"?this.valueOf()>q.valueOf():q.valueOf()<this.clone().startOf(R).valueOf())},Le.isBefore=function(M,R){var q=ft(M)?M:Mn(M);return!(!this.isValid()||!q.isValid())&&((R=jt(R)||"millisecond")==="millisecond"?this.valueOf()<q.valueOf():this.clone().endOf(R).valueOf()<q.valueOf())},Le.isBetween=function(M,R,q,at){var $t=ft(M)?M:Mn(M),he=ft(R)?R:Mn(R);return!!(this.isValid()&&$t.isValid()&&he.isValid())&&((at=at||"()")[0]==="("?this.isAfter($t,q):!this.isBefore($t,q))&&(at[1]===")"?this.isBefore(he,q):!this.isAfter(he,q))},Le.isSame=function(M,R){var q,at=ft(M)?M:Mn(M);return!(!this.isValid()||!at.isValid())&&((R=jt(R)||"millisecond")==="millisecond"?this.valueOf()===at.valueOf():(q=at.valueOf(),this.clone().startOf(R).valueOf()<=q&&q<=this.clone().endOf(R).valueOf()))},Le.isSameOrAfter=function(M,R){return this.isSame(M,R)||this.isAfter(M,R)},Le.isSameOrBefore=function(M,R){return this.isSame(M,R)||this.isBefore(M,R)},Le.isValid=function(){return X(this)},Le.lang=Qc,Le.locale=Oi,Le.localeData=uo,Le.max=qa,Le.min=co,Le.parsingFlags=function(){return W({},V(this))},Le.set=function(M,R){if(typeof M=="object")for(var q=function($t){var he=[];for(var be in $t)he.push({unit:be,priority:pe[be]});return he.sort(function(Se,Me){return Se.priority-Me.priority}),he}(M=Kt(M)),at=0;at<q.length;at++)this[q[at].unit](M[q[at].unit]);else if(ue(this[M=jt(M)]))return this[M](R);return this},Le.startOf=function(M){var R;if((M=jt(M))===void 0||M==="millisecond"||!this.isValid())return this;var q=this._isUTC?Hi:Kc;switch(M){case"year":R=q(this.year(),0,1);break;case"quarter":R=q(this.year(),this.month()-this.month()%3,1);break;case"month":R=q(this.year(),this.month(),1);break;case"week":R=q(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":R=q(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":R=q(this.year(),this.month(),this.date());break;case"hour":R=this._d.valueOf(),R-=lo(R+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":R=this._d.valueOf(),R-=lo(R,6e4);break;case"second":R=this._d.valueOf(),R-=lo(R,1e3)}return this._d.setTime(R),_.updateOffset(this,!0),this},Le.subtract=ua,Le.toArray=function(){var M=this;return[M.year(),M.month(),M.date(),M.hour(),M.minute(),M.second(),M.millisecond()]},Le.toObject=function(){var M=this;return{years:M.year(),months:M.month(),date:M.date(),hours:M.hours(),minutes:M.minutes(),seconds:M.seconds(),milliseconds:M.milliseconds()}},Le.toDate=function(){return new Date(this.valueOf())},Le.toISOString=function(M){if(!this.isValid())return null;var R=M!==!0,q=R?this.clone().utc():this;return q.year()<0||9999<q.year()?ae(q,R?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ue(Date.prototype.toISOString)?R?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ae(q,"Z")):ae(q,R?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Le.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var M="moment",R="";this.isLocal()||(M=this.utcOffset()===0?"moment.utc":"moment.parseZone",R="Z");var q="["+M+'("]',at=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",$t=R+'[")]';return this.format(q+at+"-MM-DD[T]HH:mm:ss.SSS"+$t)},Le.toJSON=function(){return this.isValid()?this.toISOString():null},Le.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Le.unix=function(){return Math.floor(this.valueOf()/1e3)},Le.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Le.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Le.year=Tn,Le.isLeapYear=function(){return xn(this.year())},Le.weekYear=function(M){return Xu.call(this,M,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Le.isoWeekYear=function(M){return Xu.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)},Le.quarter=Le.quarters=function(M){return M==null?Math.ceil((this.month()+1)/3):this.month(3*(M-1)+this.month()%3)},Le.month=er,Le.daysInMonth=function(){return Wn(this.year(),this.month())},Le.week=Le.weeks=function(M){var R=this.localeData().week(this);return M==null?R:this.add(7*(M-R),"d")},Le.isoWeek=Le.isoWeeks=function(M){var R=hr(this,1,4).week;return M==null?R:this.add(7*(M-R),"d")},Le.weeksInYear=function(){var M=this.localeData()._week;return Ai(this.year(),M.dow,M.doy)},Le.isoWeeksInYear=function(){return Ai(this.year(),1,4)},Le.date=Zu,Le.day=Le.days=function(M){if(!this.isValid())return M!=null?this:NaN;var R,q,at=this._isUTC?this._d.getUTCDay():this._d.getDay();return M!=null?(R=M,q=this.localeData(),M=typeof R!="string"?R:isNaN(R)?typeof(R=q.weekdaysParse(R))=="number"?R:null:parseInt(R,10),this.add(M-at,"d")):at},Le.weekday=function(M){if(!this.isValid())return M!=null?this:NaN;var R=(this.day()+7-this.localeData()._week.dow)%7;return M==null?R:this.add(M-R,"d")},Le.isoWeekday=function(M){if(!this.isValid())return M!=null?this:NaN;if(M==null)return this.day()||7;var R,q,at=(R=M,q=this.localeData(),typeof R=="string"?q.weekdaysParse(R)%7||7:isNaN(R)?null:R);return this.day(this.day()%7?at:at-7)},Le.dayOfYear=function(M){var R=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return M==null?R:this.add(M-R,"d")},Le.hour=Le.hours=pi,Le.minute=Le.minutes=Qu,Le.second=Le.seconds=Ju,Le.millisecond=Le.milliseconds=Ga,Le.utcOffset=function(M,R,q){var at,$t=this._offset||0;if(!this.isValid())return M!=null?this:NaN;if(M==null)return this._isUTC?$t:Ei(this);if(typeof M=="string"){if((M=Wi(Ke,M))===null)return this}else Math.abs(M)<16&&!q&&(M*=60);return!this._isUTC&&R&&(at=Ei(this)),this._offset=M,this._isUTC=!0,at!=null&&this.add(at,"m"),$t!==M&&(!R||this._changeInProgress?ii(this,Ye(M-$t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this},Le.utc=function(M){return this.utcOffset(0,M)},Le.local=function(M){return this._isUTC&&(this.utcOffset(0,M),this._isUTC=!1,M&&this.subtract(Ei(this),"m")),this},Le.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var M=Wi(Je,this._i);M!=null?this.utcOffset(M):this.utcOffset(0,!0)}return this},Le.hasAlignedHourOffset=function(M){return!!this.isValid()&&(M=M?Mn(M).utcOffset():0,(this.utcOffset()-M)%60==0)},Le.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Le.isLocal=function(){return!!this.isValid()&&!this._isUTC},Le.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Le.isUtc=Da,Le.isUTC=Da,Le.zoneAbbr=function(){return this._isUTC?"UTC":""},Le.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Le.dates=Tt("dates accessor is deprecated. Use date instead.",Zu),Le.months=Tt("months accessor is deprecated. Use month instead",er),Le.years=Tt("years accessor is deprecated. Use year instead",Tn),Le.zone=Tt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(M,R){return M!=null?(typeof M!="string"&&(M=-M),this.utcOffset(M,R),this):-this.utcOffset()}),Le.isDSTShifted=Tt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!T(this._isDSTShifted))return this._isDSTShifted;var M={};if(tt(M,this),(M=ha(M))._a){var R=M._isUTC?H(M._a):Mn(M._a);this._isDSTShifted=this.isValid()&&0<dt(M._a,R.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Br=de.prototype;function tu(M,R,q,at){var $t=qe(),he=H().set(at,R);return $t[q](he,M)}function eu(M,R,q){if(A(M)&&(R=M,M=void 0),M=M||"",R!=null)return tu(M,R,q,"month");var at,$t=[];for(at=0;at<12;at++)$t[at]=tu(M,at,q,"month");return $t}function tl(M,R,q,at){typeof M=="boolean"?A(R)&&(q=R,R=void 0):(R=M,M=!1,A(q=R)&&(q=R,R=void 0)),R=R||"";var $t,he=qe(),be=M?he._week.dow:0;if(q!=null)return tu(R,(q+be)%7,at,"day");var Se=[];for($t=0;$t<7;$t++)Se[$t]=tu(R,($t+be)%7,at,"day");return Se}Br.calendar=function(M,R,q){var at=this._calendar[M]||this._calendar.sameElse;return ue(at)?at.call(R,q):at},Br.longDateFormat=function(M){var R=this._longDateFormat[M],q=this._longDateFormat[M.toUpperCase()];return R||!q?R:(this._longDateFormat[M]=q.replace(/MMMM|MM|DD|dddd/g,function(at){return at.slice(1)}),this._longDateFormat[M])},Br.invalidDate=function(){return this._invalidDate},Br.ordinal=function(M){return this._ordinal.replace("%d",M)},Br.preparse=vh,Br.postformat=vh,Br.relativeTime=function(M,R,q,at){var $t=this._relativeTime[q];return ue($t)?$t(M,R,q,at):$t.replace(/%d/i,M)},Br.pastFuture=function(M,R){var q=this._relativeTime[0<M?"future":"past"];return ue(q)?q(R):q.replace(/%s/i,R)},Br.set=function(M){var R,q;for(q in M)ue(R=M[q])?this[q]=R:this["_"+q]=R;this._config=M,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Br.months=function(M,R){return M?y(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||Un).test(R)?"format":"standalone"][M.month()]:y(this._months)?this._months:this._months.standalone},Br.monthsShort=function(M,R){return M?y(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[Un.test(R)?"format":"standalone"][M.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Br.monthsParse=function(M,R,q){var at,$t,he;if(this._monthsParseExact)return function(be,Se,Me){var Fe,Ve,wn,dn=be.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Fe=0;Fe<12;++Fe)wn=H([2e3,Fe]),this._shortMonthsParse[Fe]=this.monthsShort(wn,"").toLocaleLowerCase(),this._longMonthsParse[Fe]=this.months(wn,"").toLocaleLowerCase();return Me?Se==="MMM"?(Ve=Ze.call(this._shortMonthsParse,dn))!==-1?Ve:null:(Ve=Ze.call(this._longMonthsParse,dn))!==-1?Ve:null:Se==="MMM"?(Ve=Ze.call(this._shortMonthsParse,dn))!==-1||(Ve=Ze.call(this._longMonthsParse,dn))!==-1?Ve:null:(Ve=Ze.call(this._longMonthsParse,dn))!==-1||(Ve=Ze.call(this._shortMonthsParse,dn))!==-1?Ve:null}.call(this,M,R,q);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),at=0;at<12;at++)if($t=H([2e3,at]),q&&!this._longMonthsParse[at]&&(this._longMonthsParse[at]=new RegExp("^"+this.months($t,"").replace(".","")+"$","i"),this._shortMonthsParse[at]=new RegExp("^"+this.monthsShort($t,"").replace(".","")+"$","i")),q||this._monthsParse[at]||(he="^"+this.months($t,"")+"|^"+this.monthsShort($t,""),this._monthsParse[at]=new RegExp(he.replace(".",""),"i")),q&&R==="MMMM"&&this._longMonthsParse[at].test(M)||q&&R==="MMM"&&this._shortMonthsParse[at].test(M)||!q&&this._monthsParse[at].test(M))return at},Br.monthsRegex=function(M){return this._monthsParseExact?(P(this,"_monthsRegex")||Hn.call(this),M?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=Bn),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)},Br.monthsShortRegex=function(M){return this._monthsParseExact?(P(this,"_monthsRegex")||Hn.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=ar),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)},Br.week=function(M){return hr(M,this._week.dow,this._week.doy).week},Br.firstDayOfYear=function(){return this._week.doy},Br.firstDayOfWeek=function(){return this._week.dow},Br.weekdays=function(M,R){var q=y(this._weekdays)?this._weekdays:this._weekdays[M&&M!==!0&&this._weekdays.isFormat.test(R)?"format":"standalone"];return M===!0?Rn(q,this._week.dow):M?q[M.day()]:q},Br.weekdaysMin=function(M){return M===!0?Rn(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin},Br.weekdaysShort=function(M){return M===!0?Rn(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort},Br.weekdaysParse=function(M,R,q){var at,$t,he;if(this._weekdaysParseExact)return function(be,Se,Me){var Fe,Ve,wn,dn=be.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Fe=0;Fe<7;++Fe)wn=H([2e3,1]).day(Fe),this._minWeekdaysParse[Fe]=this.weekdaysMin(wn,"").toLocaleLowerCase(),this._shortWeekdaysParse[Fe]=this.weekdaysShort(wn,"").toLocaleLowerCase(),this._weekdaysParse[Fe]=this.weekdays(wn,"").toLocaleLowerCase();return Me?Se==="dddd"?(Ve=Ze.call(this._weekdaysParse,dn))!==-1?Ve:null:Se==="ddd"?(Ve=Ze.call(this._shortWeekdaysParse,dn))!==-1?Ve:null:(Ve=Ze.call(this._minWeekdaysParse,dn))!==-1?Ve:null:Se==="dddd"?(Ve=Ze.call(this._weekdaysParse,dn))!==-1||(Ve=Ze.call(this._shortWeekdaysParse,dn))!==-1||(Ve=Ze.call(this._minWeekdaysParse,dn))!==-1?Ve:null:Se==="ddd"?(Ve=Ze.call(this._shortWeekdaysParse,dn))!==-1||(Ve=Ze.call(this._weekdaysParse,dn))!==-1||(Ve=Ze.call(this._minWeekdaysParse,dn))!==-1?Ve:null:(Ve=Ze.call(this._minWeekdaysParse,dn))!==-1||(Ve=Ze.call(this._weekdaysParse,dn))!==-1||(Ve=Ze.call(this._shortWeekdaysParse,dn))!==-1?Ve:null}.call(this,M,R,q);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),at=0;at<7;at++)if($t=H([2e3,1]).day(at),q&&!this._fullWeekdaysParse[at]&&(this._fullWeekdaysParse[at]=new RegExp("^"+this.weekdays($t,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[at]=new RegExp("^"+this.weekdaysShort($t,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[at]=new RegExp("^"+this.weekdaysMin($t,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[at]||(he="^"+this.weekdays($t,"")+"|^"+this.weekdaysShort($t,"")+"|^"+this.weekdaysMin($t,""),this._weekdaysParse[at]=new RegExp(he.replace(".",""),"i")),q&&R==="dddd"&&this._fullWeekdaysParse[at].test(M)||q&&R==="ddd"&&this._shortWeekdaysParse[at].test(M)||q&&R==="dd"&&this._minWeekdaysParse[at].test(M)||!q&&this._weekdaysParse[at].test(M))return at},Br.weekdaysRegex=function(M){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Zr.call(this),M?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=ri),this._weekdaysStrictRegex&&M?this._weekdaysStrictRegex:this._weekdaysRegex)},Br.weekdaysShortRegex=function(M){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Zr.call(this),M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rr),this._weekdaysShortStrictRegex&&M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Br.weekdaysMinRegex=function(M){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Zr.call(this),M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zr),this._weekdaysMinStrictRegex&&M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Br.isPM=function(M){return(M+"").toLowerCase().charAt(0)==="p"},Br.meridiem=function(M,R,q){return 11<M?q?"pm":"PM":q?"am":"AM"},Wa("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(M){var R=M%10;return M+(K(M%100/10)===1?"th":R===1?"st":R===2?"nd":R===3?"rd":"th")}}),_.lang=Tt("moment.lang is deprecated. Use moment.locale instead.",Wa),_.langData=Tt("moment.langData is deprecated. Use moment.localeData instead.",qe);var Na=Math.abs;function yi(M,R,q,at){var $t=Ye(R,q);return M._milliseconds+=at*$t._milliseconds,M._days+=at*$t._days,M._months+=at*$t._months,M._bubble()}function sc(M){return M<0?Math.floor(M):Math.ceil(M)}function _h(M){return 4800*M/146097}function el(M){return 146097*M/4800}function Co(M){return function(){return this.as(M)}}var bh=Co("ms"),bd=Co("s"),hp=Co("m"),xd=Co("h"),wd=Co("d"),fa=Co("w"),kd=Co("M"),xh=Co("Q"),wh=Co("y");function Mo(M){return function(){return this.isValid()?this._data[M]:NaN}}var nu=Mo("milliseconds"),Xa=Mo("seconds"),ru=Mo("minutes"),da=Mo("hours"),Ms=Mo("days"),nl=Mo("months"),Ao=Mo("years"),$i=Math.round,ui={ss:44,s:45,m:45,h:22,d:26,M:11},Za=Math.abs;function Oa(M){return(0<M)-(M<0)||+M}function Ji(){if(!this.isValid())return this.localeData().invalidDate();var M,R,q=Za(this._milliseconds)/1e3,at=Za(this._days),$t=Za(this._months);R=et((M=et(q/60))/60),q%=60,M%=60;var he=et($t/12),be=$t%=12,Se=at,Me=R,Fe=M,Ve=q?q.toFixed(3).replace(/\.?0+$/,""):"",wn=this.asSeconds();if(!wn)return"P0D";var dn=wn<0?"-":"",fr=Oa(this._months)!==Oa(wn)?"-":"",pr=Oa(this._days)!==Oa(wn)?"-":"",Lr=Oa(this._milliseconds)!==Oa(wn)?"-":"";return dn+"P"+(he?fr+he+"Y":"")+(be?fr+be+"M":"")+(Se?pr+Se+"D":"")+(Me||Fe||Ve?"T":"")+(Me?Lr+Me+"H":"")+(Fe?Lr+Fe+"M":"")+(Ve?Lr+Ve+"S":"")}var $n=Qr.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var M=this._data;return this._milliseconds=Na(this._milliseconds),this._days=Na(this._days),this._months=Na(this._months),M.milliseconds=Na(M.milliseconds),M.seconds=Na(M.seconds),M.minutes=Na(M.minutes),M.hours=Na(M.hours),M.months=Na(M.months),M.years=Na(M.years),this},$n.add=function(M,R){return yi(this,M,R,1)},$n.subtract=function(M,R){return yi(this,M,R,-1)},$n.as=function(M){if(!this.isValid())return NaN;var R,q,at=this._milliseconds;if((M=jt(M))==="month"||M==="quarter"||M==="year")switch(R=this._days+at/864e5,q=this._months+_h(R),M){case"month":return q;case"quarter":return q/3;case"year":return q/12}else switch(R=this._days+Math.round(el(this._months)),M){case"week":return R/7+at/6048e5;case"day":return R+at/864e5;case"hour":return 24*R+at/36e5;case"minute":return 1440*R+at/6e4;case"second":return 86400*R+at/1e3;case"millisecond":return Math.floor(864e5*R)+at;default:throw new Error("Unknown unit "+M)}},$n.asMilliseconds=bh,$n.asSeconds=bd,$n.asMinutes=hp,$n.asHours=xd,$n.asDays=wd,$n.asWeeks=fa,$n.asMonths=kd,$n.asQuarters=xh,$n.asYears=wh,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*K(this._months/12):NaN},$n._bubble=function(){var M,R,q,at,$t,he=this._milliseconds,be=this._days,Se=this._months,Me=this._data;return 0<=he&&0<=be&&0<=Se||he<=0&&be<=0&&Se<=0||(he+=864e5*sc(el(Se)+be),Se=be=0),Me.milliseconds=he%1e3,M=et(he/1e3),Me.seconds=M%60,R=et(M/60),Me.minutes=R%60,q=et(R/60),Me.hours=q%24,Se+=$t=et(_h(be+=et(q/24))),be-=sc(el($t)),at=et(Se/12),Se%=12,Me.days=be,Me.months=Se,Me.years=at,this},$n.clone=function(){return Ye(this)},$n.get=function(M){return M=jt(M),this.isValid()?this[M+"s"]():NaN},$n.milliseconds=nu,$n.seconds=Xa,$n.minutes=ru,$n.hours=da,$n.days=Ms,$n.weeks=function(){return et(this.days()/7)},$n.months=nl,$n.years=Ao,$n.humanize=function(M){if(!this.isValid())return this.localeData().invalidDate();var R,q,at,$t,he,be,Se,Me,Fe,Ve,wn=this.localeData(),dn=(R=!M,q=wn,at=Ye(this).abs(),$t=$i(at.as("s")),he=$i(at.as("m")),be=$i(at.as("h")),Se=$i(at.as("d")),Me=$i(at.as("M")),Fe=$i(at.as("y")),(Ve=$t<=ui.ss&&["s",$t]||$t<ui.s&&["ss",$t]||he<=1&&["m"]||he<ui.m&&["mm",he]||be<=1&&["h"]||be<ui.h&&["hh",be]||Se<=1&&["d"]||Se<ui.d&&["dd",Se]||Me<=1&&["M"]||Me<ui.M&&["MM",Me]||Fe<=1&&["y"]||["yy",Fe])[2]=R,Ve[3]=0<+this,Ve[4]=q,function(fr,pr,Lr,lr,pa){return pa.relativeTime(pr||1,!!Lr,fr,lr)}.apply(null,Ve));return M&&(dn=wn.pastFuture(+this,dn)),wn.postformat(dn)},$n.toISOString=Ji,$n.toString=Ji,$n.toJSON=Ji,$n.locale=Oi,$n.localeData=uo,$n.toIsoString=Tt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ji),$n.lang=Qc,rt("X",0,0,"unix"),rt("x",0,0,"valueOf"),Te("x",je),Te("X",/[+-]?\d+(\.\d{1,3})?/),gn("X",function(M,R,q){q._d=new Date(1e3*parseFloat(M,10))}),gn("x",function(M,R,q){q._d=new Date(K(M))}),_.version="2.24.0",d=Mn,_.fn=Le,_.min=function(){return Yn("isBefore",[].slice.call(arguments,0))},_.max=function(){return Yn("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=H,_.unix=function(M){return Mn(1e3*M)},_.months=function(M,R){return eu(M,R,"months")},_.isDate=L,_.locale=Wa,_.invalid=J,_.duration=Ye,_.isMoment=ft,_.weekdays=function(M,R,q){return tl(M,R,q,"weekdays")},_.parseZone=function(){return Mn.apply(null,arguments).parseZone()},_.localeData=qe,_.isDuration=Dr,_.monthsShort=function(M,R){return eu(M,R,"monthsShort")},_.weekdaysMin=function(M,R,q){return tl(M,R,q,"weekdaysMin")},_.defineLocale=Aa,_.updateLocale=function(M,R){if(R!=null){var q,at,$t=gi;(at=Ui(M))!=null&&($t=at._config),(q=new de(R=ye($t,R))).parentLocale=yr[M],yr[M]=q,Wa(M)}else yr[M]!=null&&(yr[M].parentLocale!=null?yr[M]=yr[M].parentLocale:yr[M]!=null&&delete yr[M]);return yr[M]},_.locales=function(){return lt(yr)},_.weekdaysShort=function(M,R,q){return tl(M,R,q,"weekdaysShort")},_.normalizeUnits=jt,_.relativeTimeRounding=function(M){return M===void 0?$i:typeof M=="function"&&($i=M,!0)},_.relativeTimeThreshold=function(M,R){return ui[M]!==void 0&&(R===void 0?ui[M]:(ui[M]=R,M==="s"&&(ui.ss=R-1),!0))},_.calendarFormat=function(M,R){var q=M.diff(R,"days",!0);return q<-6?"sameElse":q<-1?"lastWeek":q<0?"lastDay":q<1?"sameDay":q<2?"nextDay":q<7?"nextWeek":"sameElse"},_.prototype=Le,_.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},_}()},6470:a=>{function h(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function s(l,_){for(var y,w="",T=0,A=-1,L=0,N=0;N<=l.length;++N){if(N<l.length)y=l.charCodeAt(N);else{if(y===47)break;y=47}if(y===47){if(!(A===N-1||L===1))if(A!==N-1&&L===2){if(w.length<2||T!==2||w.charCodeAt(w.length-1)!==46||w.charCodeAt(w.length-2)!==46){if(w.length>2){var P=w.lastIndexOf("/");if(P!==w.length-1){P===-1?(w="",T=0):T=(w=w.slice(0,P)).length-1-w.lastIndexOf("/"),A=N,L=0;continue}}else if(w.length===2||w.length===1){w="",T=0,A=N,L=0;continue}}_&&(w.length>0?w+="/..":w="..",T=2)}else w.length>0?w+="/"+l.slice(A+1,N):w=l.slice(A+1,N),T=N-A-1;A=N,L=0}else y===46&&L!==-1?++L:L=-1}return w}var d={resolve:function(){for(var l,_="",y=!1,w=arguments.length-1;w>=-1&&!y;w--){var T;w>=0?T=arguments[w]:(l===void 0&&(l=process.cwd()),T=l),h(T),T.length!==0&&(_=T+"/"+_,y=T.charCodeAt(0)===47)}return _=s(_,!y),y?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(l){if(h(l),l.length===0)return".";var _=l.charCodeAt(0)===47,y=l.charCodeAt(l.length-1)===47;return(l=s(l,!_)).length!==0||_||(l="."),l.length>0&&y&&(l+="/"),_?"/"+l:l},isAbsolute:function(l){return h(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,_=0;_<arguments.length;++_){var y=arguments[_];h(y),y.length>0&&(l===void 0?l=y:l+="/"+y)}return l===void 0?".":d.normalize(l)},relative:function(l,_){if(h(l),h(_),l===_||(l=d.resolve(l))===(_=d.resolve(_)))return"";for(var y=1;y<l.length&&l.charCodeAt(y)===47;++y);for(var w=l.length,T=w-y,A=1;A<_.length&&_.charCodeAt(A)===47;++A);for(var L=_.length-A,N=T<L?T:L,P=-1,W=0;W<=N;++W){if(W===N){if(L>N){if(_.charCodeAt(A+W)===47)return _.slice(A+W+1);if(W===0)return _.slice(A+W)}else T>N&&(l.charCodeAt(y+W)===47?P=W:W===0&&(P=0));break}var H=l.charCodeAt(y+W);if(H!==_.charCodeAt(A+W))break;H===47&&(P=W)}var V="";for(W=y+P+1;W<=w;++W)W!==w&&l.charCodeAt(W)!==47||(V.length===0?V+="..":V+="/..");return V.length>0?V+_.slice(A+P):(A+=P,_.charCodeAt(A)===47&&++A,_.slice(A))},_makeLong:function(l){return l},dirname:function(l){if(h(l),l.length===0)return".";for(var _=l.charCodeAt(0),y=_===47,w=-1,T=!0,A=l.length-1;A>=1;--A)if((_=l.charCodeAt(A))===47){if(!T){w=A;break}}else T=!1;return w===-1?y?"/":".":y&&w===1?"//":l.slice(0,w)},basename:function(l,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');h(l);var y,w=0,T=-1,A=!0;if(_!==void 0&&_.length>0&&_.length<=l.length){if(_.length===l.length&&_===l)return"";var L=_.length-1,N=-1;for(y=l.length-1;y>=0;--y){var P=l.charCodeAt(y);if(P===47){if(!A){w=y+1;break}}else N===-1&&(A=!1,N=y+1),L>=0&&(P===_.charCodeAt(L)?--L==-1&&(T=y):(L=-1,T=N))}return w===T?T=N:T===-1&&(T=l.length),l.slice(w,T)}for(y=l.length-1;y>=0;--y)if(l.charCodeAt(y)===47){if(!A){w=y+1;break}}else T===-1&&(A=!1,T=y+1);return T===-1?"":l.slice(w,T)},extname:function(l){h(l);for(var _=-1,y=0,w=-1,T=!0,A=0,L=l.length-1;L>=0;--L){var N=l.charCodeAt(L);if(N!==47)w===-1&&(T=!1,w=L+1),N===46?_===-1?_=L:A!==1&&(A=1):_!==-1&&(A=-1);else if(!T){y=L+1;break}}return _===-1||w===-1||A===0||A===1&&_===w-1&&_===y+1?"":l.slice(_,w)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(_,y){var w=y.dir||y.root,T=y.base||(y.name||"")+(y.ext||"");return w?w===y.root?w+T:w+"/"+T:T}(0,l)},parse:function(l){h(l);var _={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return _;var y,w=l.charCodeAt(0),T=w===47;T?(_.root="/",y=1):y=0;for(var A=-1,L=0,N=-1,P=!0,W=l.length-1,H=0;W>=y;--W)if((w=l.charCodeAt(W))!==47)N===-1&&(P=!1,N=W+1),w===46?A===-1?A=W:H!==1&&(H=1):A!==-1&&(H=-1);else if(!P){L=W+1;break}return A===-1||N===-1||H===0||H===1&&A===N-1&&A===L+1?N!==-1&&(_.base=_.name=L===0&&T?l.slice(1,N):l.slice(L,N)):(L===0&&T?(_.name=l.slice(1,A),_.base=l.slice(1,N)):(_.name=l.slice(L,A),_.base=l.slice(L,N)),_.ext=l.slice(A,N)),L>0?_.dir=l.slice(0,L-1):T&&(_.dir="/"),_},sep:"/",delimiter:":",win32:null,posix:null};d.posix=d,a.exports=d},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},sw={};function Xo(a){var h=sw[a];if(h!==void 0)return h.exports;var s=sw[a]={id:a,loaded:!1,exports:{}};return OE[a].call(s.exports,s,s.exports,Xo),s.loaded=!0,s.exports}Xo.c=sw,Xo.n=a=>{var h=a&&a.__esModule?()=>a.default:()=>a;return Xo.d(h,{a:h}),h},Xo.d=(a,h)=>{for(var s in h)Xo.o(h,s)&&!Xo.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:h[s]})},Xo.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}}(),Xo.o=(a,h)=>Object.prototype.hasOwnProperty.call(a,h),Xo.r=a=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},Xo.nmd=a=>(a.paths=[],a.children||(a.children=[]),a);var NS=Xo(Xo.s=4640).Z,l4=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},gm={},D7={};(function(a){var h=l4&&l4.__values||function(d){var l=typeof Symbol=="function"&&Symbol.iterator,_=l&&d[l],y=0;if(_)return _.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(a,"__esModule",{value:!0}),a.getWordsByCategory=a.wordList=void 0,a.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"actor",categories:["profession"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"airport",categories:["transportation"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apple",categories:["food"]},{word:"architect",categories:["profession"]},{word:"army",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animal"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abundant",categories:["quantity"]},{word:"acidic",categories:["taste"]},{word:"aggressive",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alive",categories:["condition"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"bald",categories:["appearance"]},{word:"beautiful",categories:["appearance"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"blue",categories:["color"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"broad",categories:["shapes"]},{word:"bumpy",categories:["touch"]},{word:"calm",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function s(d,l){var _,y;l===void 0&&(l=[]);var w=new Set(l),T=[];try{for(var A=h(a.wordList[d]),L=A.next();!L.done;L=A.next()){var N=L.value;(l.length===0||N.categories.some(function(P){return w.has(P)}))&&T.push(N.word)}}catch(P){_={error:P}}finally{try{L&&!L.done&&(y=A.return)&&y.call(A)}finally{if(_)throw _.error}}return T}a.getWordsByCategory=s})(D7);var h4=l4&&l4.__assign||function(){return h4=Object.assign||function(a){for(var h,s=1,d=arguments.length;s<d;s++){h=arguments[s];for(var l in h)Object.prototype.hasOwnProperty.call(h,l)&&(a[l]=h[l])}return a},h4.apply(this,arguments)};Object.defineProperty(gm,"__esModule",{value:!0});gm.totalUniqueSlugs=LE=gm.generateSlug=void 0;var cw=D7,N7=3;function BE(a,h){for(var s=a||N7,d={partsOfSpeech:O7(s),categories:{},format:"kebab"},l=h4(h4({},d),h),_=[],y=0;y<s;y++){var w=l.partsOfSpeech[y],T=cw.getWordsByCategory(l.partsOfSpeech[y],l.categories[w]),A=T[Math.floor(Math.random()*T.length)];_.push(A)}return IE(_,l.format)}var LE=gm.generateSlug=BE;function O7(a){for(var h=[],s=0;s<a-1;s++)h.push("adjective");return h.push("noun"),h}function IE(a,h){return h==="kebab"?a.join("-").toLowerCase():h==="camel"?a.map(function(s,d){return d===0?s.toLowerCase():s[0].toUpperCase()+s.slice(1).toLowerCase()}).join(""):h==="lower"?a.join(" ").toLowerCase():h==="sentence"?a.map(function(s,d){return d===0?s[0].toUpperCase()+s.slice(1).toLowerCase():s}).join(" "):a.map(function(s){return s[0].toUpperCase()+s.slice(1).toLowerCase()}).join(" ")}function RE(a,h){for(var s,d,l=cw.getWordsByCategory("adjective",(s=h==null?void 0:h.categories)===null||s===void 0?void 0:s.adjective).length,_=cw.getWordsByCategory("noun",(d=h==null?void 0:h.categories)===null||d===void 0?void 0:d.noun).length,y={adjective:l,noun:_},w=a||N7,T=(h==null?void 0:h.partsOfSpeech)||O7(w),A=1,L=0;L<w;L++)A*=y[T[L]];return A}gm.totalUniqueSlugs=RE;export{Pb as $,oS as A,L7 as B,h8 as C,YE as D,q7 as E,UE as F,zE as G,jE as H,PE as I,TS as J,ES as K,kS as L,SS as M,FE as N,CS as O,qc as P,cS as Q,Sw as R,wS as S,XE as T,G7 as U,tS as V,qE as W,MS as X,WE as Y,aS as Z,ZE as _,X7 as a,gS as a0,AS as a1,vS as a2,hS as a3,DS as a4,lS as a5,rS as a6,JE as a7,gd as a8,rn as a9,iS as aa,HE as ab,NS as ac,LE as ad,QE as b,KE as c,V7 as d,xw as e,$E as f,Q7 as g,nS as h,xS as i,_S as j,VE as k,GE as l,bS as m,eS as n,s8 as o,yS as p,mS as q,fS as r,I7 as s,w6 as t,pS as u,c8 as v,dS as w,a8 as x,uS as y,sS as z};
|